Fix initialization error
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
28e75d5a0d
commit
1b000c6112
@ -48,7 +48,7 @@ export const {
|
|||||||
export class MapEffects {
|
export class MapEffects {
|
||||||
private _geojsonFormat: GeoJSON;
|
private _geojsonFormat: GeoJSON;
|
||||||
private _wktFormat: WKT;
|
private _wktFormat: WKT;
|
||||||
private overrideSelectedItemLayer
|
private overrideSelectedItemLayer: boolean = false;
|
||||||
|
|
||||||
private toPointFeature(updateEvent:commonActions.DeviceUpdateEvent): Feature {
|
private toPointFeature(updateEvent:commonActions.DeviceUpdateEvent): Feature {
|
||||||
var f = this._wktFormat.readFeature(updateEvent.attributes["geometry"],{
|
var f = this._wktFormat.readFeature(updateEvent.attributes["geometry"],{
|
||||||
@ -394,6 +394,8 @@ export class MapEffects {
|
|||||||
if(data && data["fm-map-map"]) {
|
if(data && data["fm-map-map"]) {
|
||||||
let params = data["fm-map-map"];
|
let params = data["fm-map-map"];
|
||||||
this.overrideSelectedItemLayer = params["overrideSelectedItemlayer"] ? params["overrideSelectedItemlayer"] : false;
|
this.overrideSelectedItemLayer = params["overrideSelectedItemlayer"] ? params["overrideSelectedItemlayer"] : false;
|
||||||
|
} else {
|
||||||
|
this.overrideSelectedItemLayer = false;
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user