Rename _ol_style_Stroke_ to Stroke
This commit is contained in:
@@ -7,7 +7,7 @@ import VectorLayer from '../src/ol/layer/Vector.js';
|
||||
import VectorSource from '../src/ol/source/Vector.js';
|
||||
import _ol_style_Circle_ from '../src/ol/style/Circle.js';
|
||||
import Fill from '../src/ol/style/Fill.js';
|
||||
import _ol_style_Stroke_ from '../src/ol/style/Stroke.js';
|
||||
import Stroke from '../src/ol/style/Stroke.js';
|
||||
import Style from '../src/ol/style/Style.js';
|
||||
|
||||
|
||||
@@ -28,14 +28,14 @@ var styles = {
|
||||
image: new _ol_style_Circle_({
|
||||
radius: 5,
|
||||
fill: new Fill({color: '#666666'}),
|
||||
stroke: new _ol_style_Stroke_({color: '#bada55', width: 1})
|
||||
stroke: new Stroke({color: '#bada55', width: 1})
|
||||
})
|
||||
}),
|
||||
'20': new Style({
|
||||
image: new _ol_style_Circle_({
|
||||
radius: 10,
|
||||
fill: new Fill({color: '#666666'}),
|
||||
stroke: new _ol_style_Stroke_({color: '#bada55', width: 1})
|
||||
stroke: new Stroke({color: '#bada55', width: 1})
|
||||
})
|
||||
})
|
||||
};
|
||||
@@ -96,7 +96,7 @@ map.on('click', function(evt) {
|
||||
displaySnap(evt.coordinate);
|
||||
});
|
||||
|
||||
var stroke = new _ol_style_Stroke_({
|
||||
var stroke = new Stroke({
|
||||
color: 'rgba(255,255,0,0.9)',
|
||||
width: 3
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user