Rename _ol_style_Style_ to Style
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user