Rename _ol_style_Style_ to Style

This commit is contained in:
Tim Schaub
2018-01-11 13:22:43 -07:00
parent 5f40eec148
commit 4f4c90fc20
80 changed files with 420 additions and 420 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ import OSM from '../src/ol/source/OSM.js';
import VectorSource from '../src/ol/source/Vector.js';
import _ol_style_Icon_ from '../src/ol/style/Icon.js';
import _ol_style_Stroke_ from '../src/ol/style/Stroke.js';
import _ol_style_Style_ from '../src/ol/style/Style.js';
import Style from '../src/ol/style/Style.js';
var raster = new TileLayer({
source: new OSM()
@@ -20,7 +20,7 @@ var styleFunction = function(feature) {
var geometry = feature.getGeometry();
var styles = [
// linestring
new _ol_style_Style_({
new Style({
stroke: new _ol_style_Stroke_({
color: '#ffcc33',
width: 2
@@ -33,7 +33,7 @@ var styleFunction = function(feature) {
var dy = end[1] - start[1];
var rotation = Math.atan2(dy, dx);
// arrows
styles.push(new _ol_style_Style_({
styles.push(new Style({
geometry: new Point(end),
image: new _ol_style_Icon_({
src: 'data/arrow.png',