cbaines / leaflet-indoor

Provides basic tools to create indoor maps with Leaflet
http://cbaines.github.io/leaflet-indoor/examples/
BSD 2-Clause "Simplified" License
356 stars 100 forks source link

Different polygons on zoom level #10

Open ozzargueyo opened 7 years ago

ozzargueyo commented 7 years ago

Hi,thanks for this repository. I think it is a great start for anyone looking to start in indoor maps like myself.

How can i make to have differente polygons on differents zoom levels. For example In zoom level 1 i can see sectors and in a zoom level 2 the map renders the rooms of that sectors (polygons too)

Can you give me a hint? leaflet-indoor can manage that requirement?

Thanks again for this amazing repository!

jasperfirecai2 commented 6 years ago

You could use two separate geoJSON files/strings and using leaflets own way of seeing the zoomlevel to change between the two files/Strings and then re-draw the indoor map layer? it's a bit of a late comment but nonetheless hope this helps