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
+4 -4
View File
@@ -12,7 +12,7 @@ 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 _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 colors = {
@@ -28,7 +28,7 @@ var styleFunction = function(feature) {
var color = colors[feature.get('PLT')];
var style = styleCache[color];
if (!style) {
style = new _ol_style_Style_({
style = new Style({
stroke: new _ol_style_Stroke_({
color: color,
width: 3
@@ -156,7 +156,7 @@ var stroke = new _ol_style_Stroke_({
color: 'rgba(255,0,0,0.9)',
width: 1
});
var style = new _ol_style_Style_({
var style = new Style({
stroke: stroke,
image: new _ol_style_Circle_({
radius: 5,
@@ -178,7 +178,7 @@ map.on('postcompose', function(evt) {
var featureOverlay = new VectorLayer({
source: new VectorSource(),
map: map,
style: new _ol_style_Style_({
style: new Style({
image: new _ol_style_Circle_({
radius: 5,
fill: new _ol_style_Fill_({