cd-mapgis 1.0.70 → 1.0.72
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 +3 -1
package/package.json
CHANGED
package/src/LayerUtil.js
CHANGED
|
@@ -202,6 +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
206
|
let layer = new VectorLayer({
|
|
206
207
|
source: vectorSource,
|
|
207
208
|
style: p.style
|
|
@@ -217,6 +218,7 @@ export default class LayerUtil {
|
|
|
217
218
|
let geometry = wktFormat.readGeometry(p.data);
|
|
218
219
|
let feature = new Feature({ geometry: geometry });
|
|
219
220
|
let vectorSource = new VectorSource({ features: [feature] });
|
|
221
|
+
p.style = p.style ? StyleUtil.getPointStyle(p) : StyleUtil.getViewOnTemplayerStyle();
|
|
220
222
|
let layer = new VectorLayer({
|
|
221
223
|
source: vectorSource,
|
|
222
224
|
style: p.style
|
|
@@ -335,7 +337,7 @@ export default class LayerUtil {
|
|
|
335
337
|
* @param {*} p
|
|
336
338
|
* @returns
|
|
337
339
|
*/
|
|
338
|
-
static getPolygonLayerByPoints(p) {
|
|
340
|
+
static getPolygonLayerByPoints(p) {
|
|
339
341
|
let polygon = new Polygon([p.data]);
|
|
340
342
|
let feature = new Feature({ geometry: polygon });
|
|
341
343
|
let vectorSource = new VectorSource({ features: [feature] });
|