Rename _ol_style_Style_ to Style
This commit is contained in:
@@ -8,7 +8,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';
|
||||
import _ol_style_Text_ from '../src/ol/style/Text.js';
|
||||
|
||||
var openSansAdded = false;
|
||||
@@ -128,7 +128,7 @@ var createTextStyle = function(feature, resolution, dom) {
|
||||
|
||||
// Polygons
|
||||
function polygonStyleFunction(feature, resolution) {
|
||||
return new _ol_style_Style_({
|
||||
return new Style({
|
||||
stroke: new _ol_style_Stroke_({
|
||||
color: 'blue',
|
||||
width: 1
|
||||
@@ -151,7 +151,7 @@ var vectorPolygons = new VectorLayer({
|
||||
|
||||
// Lines
|
||||
function lineStyleFunction(feature, resolution) {
|
||||
return new _ol_style_Style_({
|
||||
return new Style({
|
||||
stroke: new _ol_style_Stroke_({
|
||||
color: 'green',
|
||||
width: 2
|
||||
@@ -171,7 +171,7 @@ var vectorLines = new VectorLayer({
|
||||
|
||||
// Points
|
||||
function pointStyleFunction(feature, resolution) {
|
||||
return new _ol_style_Style_({
|
||||
return new Style({
|
||||
image: new _ol_style_Circle_({
|
||||
radius: 10,
|
||||
fill: new _ol_style_Fill_({color: 'rgba(255, 0, 0, 0.1)'}),
|
||||
|
||||
Reference in New Issue
Block a user