Bing Maps v8 - SVG inline pushpin not trigger correct infobox

巧了我就是萌 提交于 2019-12-11 08:00:06

问题


I am having issue with Bing Maps v8 with inline SVG string image for pushpin. I have added multiple pushpin with infobox using SVG inline image.

Once map is loaded with pushpin (https://jsfiddle.net/pakpatel/9dc4oxfk/5/show/). I click pushpin #3 , #7 and #6, it always trigger pushpin #2. After I zoom in to map and try it again it works fine.

Here is jsfiddle https://jsfiddle.net/pakpatel/9dc4oxfk/5

enter code here

回答1:


The issue is with the width and height setting of the svg icon element. Currently you sets width="500" height="500". Try after changing it to small width and height width="70" height="20"



来源:https://stackoverflow.com/questions/44461347/bing-maps-v8-svg-inline-pushpin-not-trigger-correct-infobox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!