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

How would you modify this to work with KML layer? #2

Open nhajiyani opened 10 years ago

nhajiyani commented 10 years ago

Wondering if there is an easy way to modify this script to work directly with the KML layers?

cbaines commented 10 years ago

Firstly, what KML layer class (for leaflet) are you intending using? I have found one example here, is it this? http://harrywood.co.uk/maps/examples/leaflet/kml.view.html

Secondly, for KML support, the options are either to make it an option for the L.Indoor class, or write a L.Indoor.KML which uses KML (what to do will become clearer when I know more about how you intend to handle the KML layers). The L.Control.Level class is completely independent of the L.Indoor class, so this can be used even if the L.Indoor class is not.