Rename _ol_style_RegularShape_ to RegularShape
This commit is contained in:
@@ -11,7 +11,7 @@ import Stamen from '../src/ol/source/Stamen.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_RegularShape_ from '../src/ol/style/RegularShape.js';
|
||||
import RegularShape from '../src/ol/style/RegularShape.js';
|
||||
import Stroke from '../src/ol/style/Stroke.js';
|
||||
import Style from '../src/ol/style/Style.js';
|
||||
import Text from '../src/ol/style/Text.js';
|
||||
@@ -45,7 +45,7 @@ function createEarthquakeStyle(feature) {
|
||||
|
||||
return new Style({
|
||||
geometry: feature.getGeometry(),
|
||||
image: new _ol_style_RegularShape_({
|
||||
image: new RegularShape({
|
||||
radius1: radius,
|
||||
radius2: 3,
|
||||
points: 5,
|
||||
|
||||
@@ -5,7 +5,7 @@ import Point from '../src/ol/geom/Point.js';
|
||||
import VectorLayer from '../src/ol/layer/Vector.js';
|
||||
import VectorSource from '../src/ol/source/Vector.js';
|
||||
import Fill from '../src/ol/style/Fill.js';
|
||||
import _ol_style_RegularShape_ from '../src/ol/style/RegularShape.js';
|
||||
import RegularShape from '../src/ol/style/RegularShape.js';
|
||||
import Stroke from '../src/ol/style/Stroke.js';
|
||||
import Style from '../src/ol/style/Style.js';
|
||||
|
||||
@@ -14,7 +14,7 @@ var stroke = new Stroke({color: 'black', width: 1});
|
||||
|
||||
var styles = {
|
||||
'square': new Style({
|
||||
image: new _ol_style_RegularShape_({
|
||||
image: new RegularShape({
|
||||
fill: new Fill({color: 'blue'}),
|
||||
stroke: stroke,
|
||||
points: 4,
|
||||
@@ -23,7 +23,7 @@ var styles = {
|
||||
})
|
||||
}),
|
||||
'triangle': new Style({
|
||||
image: new _ol_style_RegularShape_({
|
||||
image: new RegularShape({
|
||||
fill: new Fill({color: 'red'}),
|
||||
stroke: stroke,
|
||||
points: 3,
|
||||
@@ -33,7 +33,7 @@ var styles = {
|
||||
})
|
||||
}),
|
||||
'star': new Style({
|
||||
image: new _ol_style_RegularShape_({
|
||||
image: new RegularShape({
|
||||
fill: new Fill({color: 'green'}),
|
||||
stroke: stroke,
|
||||
points: 5,
|
||||
|
||||
@@ -5,7 +5,7 @@ import Point from '../src/ol/geom/Point.js';
|
||||
import VectorLayer from '../src/ol/layer/Vector.js';
|
||||
import VectorSource from '../src/ol/source/Vector.js';
|
||||
import Fill from '../src/ol/style/Fill.js';
|
||||
import _ol_style_RegularShape_ from '../src/ol/style/RegularShape.js';
|
||||
import RegularShape from '../src/ol/style/RegularShape.js';
|
||||
import Stroke from '../src/ol/style/Stroke.js';
|
||||
import Style from '../src/ol/style/Style.js';
|
||||
|
||||
@@ -15,7 +15,7 @@ var fill = new Fill({color: 'red'});
|
||||
|
||||
var styles = {
|
||||
'square': new Style({
|
||||
image: new _ol_style_RegularShape_({
|
||||
image: new RegularShape({
|
||||
fill: fill,
|
||||
stroke: stroke,
|
||||
points: 4,
|
||||
@@ -24,7 +24,7 @@ var styles = {
|
||||
})
|
||||
}),
|
||||
'triangle': new Style({
|
||||
image: new _ol_style_RegularShape_({
|
||||
image: new RegularShape({
|
||||
fill: fill,
|
||||
stroke: stroke,
|
||||
points: 3,
|
||||
@@ -34,7 +34,7 @@ var styles = {
|
||||
})
|
||||
}),
|
||||
'star': new Style({
|
||||
image: new _ol_style_RegularShape_({
|
||||
image: new RegularShape({
|
||||
fill: fill,
|
||||
stroke: stroke,
|
||||
points: 5,
|
||||
@@ -44,7 +44,7 @@ var styles = {
|
||||
})
|
||||
}),
|
||||
'cross': new Style({
|
||||
image: new _ol_style_RegularShape_({
|
||||
image: new RegularShape({
|
||||
fill: fill,
|
||||
stroke: stroke,
|
||||
points: 4,
|
||||
@@ -54,7 +54,7 @@ var styles = {
|
||||
})
|
||||
}),
|
||||
'x': new Style({
|
||||
image: new _ol_style_RegularShape_({
|
||||
image: new RegularShape({
|
||||
fill: fill,
|
||||
stroke: stroke,
|
||||
points: 4,
|
||||
|
||||
@@ -7,7 +7,7 @@ import VectorSource from '../src/ol/source/Vector.js';
|
||||
import AtlasManager from '../src/ol/style/AtlasManager.js';
|
||||
import _ol_style_Circle_ from '../src/ol/style/Circle.js';
|
||||
import Fill from '../src/ol/style/Fill.js';
|
||||
import _ol_style_RegularShape_ from '../src/ol/style/RegularShape.js';
|
||||
import RegularShape from '../src/ol/style/RegularShape.js';
|
||||
import Stroke from '../src/ol/style/Stroke.js';
|
||||
import Style from '../src/ol/style/Style.js';
|
||||
|
||||
@@ -64,7 +64,7 @@ for (i = 0; i < symbolInfo.length; ++i) {
|
||||
}));
|
||||
|
||||
// star symbol
|
||||
symbols.push(new _ol_style_RegularShape_({
|
||||
symbols.push(new RegularShape({
|
||||
points: 8,
|
||||
opacity: info.opacity,
|
||||
scale: info.scale,
|
||||
|
||||
Reference in New Issue
Block a user