cd-mapgis 1.0.72 → 1.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/LayerUtil.js +2 -2
- package/src/StyleUtil.js +2 -0
package/package.json
CHANGED
package/src/LayerUtil.js
CHANGED
|
@@ -202,7 +202,7 @@ export default class LayerUtil {
|
|
|
202
202
|
let geometry = geoJSON.readGeometry(p.data);
|
|
203
203
|
let feature = new Feature({ geometry: geometry });
|
|
204
204
|
let vectorSource = new VectorSource({ features: [feature] });
|
|
205
|
-
p.style = p.style ? StyleUtil.getPointStyle(p) : StyleUtil.getViewOnTemplayerStyle();
|
|
205
|
+
p.style = p.style ? StyleUtil.getPointStyle(p.style) : StyleUtil.getViewOnTemplayerStyle();
|
|
206
206
|
let layer = new VectorLayer({
|
|
207
207
|
source: vectorSource,
|
|
208
208
|
style: p.style
|
|
@@ -218,7 +218,7 @@ export default class LayerUtil {
|
|
|
218
218
|
let geometry = wktFormat.readGeometry(p.data);
|
|
219
219
|
let feature = new Feature({ geometry: geometry });
|
|
220
220
|
let vectorSource = new VectorSource({ features: [feature] });
|
|
221
|
-
p.style = p.style ? StyleUtil.getPointStyle(p) : StyleUtil.getViewOnTemplayerStyle();
|
|
221
|
+
p.style = p.style ? StyleUtil.getPointStyle(p.style) : StyleUtil.getViewOnTemplayerStyle();
|
|
222
222
|
let layer = new VectorLayer({
|
|
223
223
|
source: vectorSource,
|
|
224
224
|
style: p.style
|