Rename _ol_style_Fill_ to Fill
This commit is contained in:
@@ -11,7 +11,7 @@ import VectorLayer from '../src/ol/layer/Vector.js';
|
||||
import OSM from '../src/ol/source/OSM.js';
|
||||
import VectorSource from '../src/ol/source/Vector.js';
|
||||
import _ol_style_Circle_ from '../src/ol/style/Circle.js';
|
||||
import _ol_style_Fill_ from '../src/ol/style/Fill.js';
|
||||
import Fill from '../src/ol/style/Fill.js';
|
||||
import _ol_style_Stroke_ from '../src/ol/style/Stroke.js';
|
||||
import Style from '../src/ol/style/Style.js';
|
||||
|
||||
@@ -25,7 +25,7 @@ var source = new VectorSource();
|
||||
var vector = new VectorLayer({
|
||||
source: source,
|
||||
style: new Style({
|
||||
fill: new _ol_style_Fill_({
|
||||
fill: new Fill({
|
||||
color: 'rgba(255, 255, 255, 0.2)'
|
||||
}),
|
||||
stroke: new _ol_style_Stroke_({
|
||||
@@ -34,7 +34,7 @@ var vector = new VectorLayer({
|
||||
}),
|
||||
image: new _ol_style_Circle_({
|
||||
radius: 7,
|
||||
fill: new _ol_style_Fill_({
|
||||
fill: new Fill({
|
||||
color: '#ffcc33'
|
||||
})
|
||||
})
|
||||
@@ -181,7 +181,7 @@ function addInteraction() {
|
||||
source: source,
|
||||
type: type,
|
||||
style: new Style({
|
||||
fill: new _ol_style_Fill_({
|
||||
fill: new Fill({
|
||||
color: 'rgba(255, 255, 255, 0.2)'
|
||||
}),
|
||||
stroke: new _ol_style_Stroke_({
|
||||
@@ -194,7 +194,7 @@ function addInteraction() {
|
||||
stroke: new _ol_style_Stroke_({
|
||||
color: 'rgba(0, 0, 0, 0.7)'
|
||||
}),
|
||||
fill: new _ol_style_Fill_({
|
||||
fill: new Fill({
|
||||
color: 'rgba(255, 255, 255, 0.2)'
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user