0

I am trying to create layergroup that use data from geojson file with angular-leaflet-directive. but have not found the solution. Is it possible to use leaflet.js to create dynamic layergroup when I am using angular-leaflet-directive?

Thanks for your help.

Sepid
  • 107
  • 1
  • 10

1 Answers1

0

I asked some questions about Showing GeoJSON data on overlay because we add and remove the objects during runtime but in the end we accessed the leaflet layers directly.

Check out the plunker. There we add geo objects with some 'name' to specific layers. See the functions transformGeoObjToPath and geoToLeafletLayer how the data is transformed and added. In our example we use object names 'keyframent' to identify the geojson layer objects for later use.

Community
  • 1
  • 1