![]() console.dir(omnivore.kml('Point.kml')) īut when executing the getLayers method, the layers array appears empty. When I try to access the layers they appear empty console.dir(omnivore.kml('Point.kml').getLayers()) īut when I inspect the omnivore kml object I can see that _layers contains the objects and coordinates. Omnivore.kml('Point.kml').addTo(drawnItems) Īnd when I try to access the layers coordinates to create objects by myself and add them to drawnItems, I can't seem to do so, since I can't find a way to access the object coordinates. If I add the kmlFile to map it works perfectly, but in order to make the shapes editable I need to add the layer to drawnItems var drawnItems = new L.FeatureGroup() It will mantain almost all its functionality, and will be compatible with the current features of the directive, but I must start from a fresh point, so I'm going to close this issue. Next, open Element Symbology (View > Element Symbology). In the Drawing tab, change the Symbol Size multiplier to 0.1. I'm using leaflet-omnivore to import the KML. I'm going to rework&redesign angular-leaflet-directive to be compatible with Leaflet v1.0. To see this, in WaterGEMS standalone, go to Tools > Options. ![]() I'm trying to import a KML file into leaflet and make it editable for leaflet-draw.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |