有没有办法获取a对应的DOM元素Marker http://leafletjs.com/reference.html#marker or Layer http://leafletjs.com/reference.html#ilayer与传单,就像使用 Google 地图一样 https://stackoverflow.com/questions/1233034/how-to-obtain-the-html-dom-element-of-a-google-maps-marker?
getContainer()
是获取 DOM 元素的更正式方法,但仅适用于Map http://leafletjs.com/reference.html#map-getcontainer, 平铺层 http://leafletjs.com/reference.html#tilelayer-getcontainer, and Controls http://leafletjs.com/reference.html#control-getcontainer类。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)