improve and refactor geo json property handling

This commit is contained in:
Fabian Jeglinski
2019-05-04 17:58:16 +02:00
parent 52501275b5
commit 9a9a5d1bd6
2 changed files with 41 additions and 14 deletions
+5 -1
View File
@@ -53,7 +53,7 @@ export class MapComponent implements OnInit {
* The properties of the current feature. The current layer is the layer beneath the cursor.
*/
public currentFeatureInfo: any;
/**
* A simple cache to save styles
*/
@@ -243,6 +243,10 @@ export class MapComponent implements OnInit {
this.customLayerCollection.insertAt(event.currentIndex, tmp);
}
/**
* Deletes a layer from custom layer collection
* @param layer
*/
deleteLayer(layer: VectorLayer) {
this.customLayerCollection.remove(layer);
}