简体   繁体   English

小叶角度指令中的KML

[英]KML in leaflet angular directive

I am using angular leaflet directive from tombatossals 我正在使用tombatossals中的角度传单指令

First of all thank you tombatossals for creating such a extensive directive that works awesome with leaflet.. 首先,感谢tombatossals创建了如此广泛的指令,该指令可与传单一起使用。

Question

1) Anyone has used used KML with this directive or Does this lib support KML ? 1)任何人都已将此KML与该指令一起使用,或者此lib是否支持KML?

The leaflet-angular directives do not support kml. 小叶角度指令不支持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 访问地图对象的示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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