简体   繁体   中英

KML in leaflet angular directive

I am using angular leaflet directive from tombatossals

First of all thank you tombatossals for creating such a extensive directive that works awesome with leaflet..

Question

1) Anyone has used used KML with this directive or Does this lib support KML ?

The leaflet-angular directives do not support kml. You will need a Leaflet plugin such as this to get this functionality and interact directly with the map object:

leafletData.getMap().then(function(map) { //add L.KML from plugin to map });

example of accessing map object

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM