Cool Infobox and plot polygons through xml …in bing maps , pure javascript

元气小坏坏 提交于 2019-12-12 22:18:15

问题


I have just started with bing maps and wish to accompilish two things for my project . a) define layers/shapes by loading data via xml B) Have a tooltip/infobox like this site:-

check the source file here


回答1:


For custom infoboxes in Bing Maps there are two options. The first is to use the built in infobox control and set the html content property. I have a blog post on how to do this here: http://rbrundritt.wordpress.com/2011/11/08/simple-custom-infoboxes-in-bing-maps-v7/

The second method is to use the custom infobox module I created for Bing Maps V7 here: http://bingmapsv7modules.codeplex.com/wikipage?title=Custom%20Infobox%20Control




回答2:


As for XML data, if it is in GeoRSS or GML format then you can use this module: http://bingmapsv7modules.codeplex.com/wikipage?title=GeoRSS%20Plugin

If it is in GPX format you can use this module: http://bingmapsv7modules.codeplex.com/wikipage?title=GPX%20Parser




回答3:


For tooltips you can take a look at this blog post: http://rbrundritt.wordpress.com/2011/11/21/pushpin-tooltips-in-bing-maps-v7/



来源:https://stackoverflow.com/questions/9269455/cool-infobox-and-plot-polygons-through-xml-in-bing-maps-pure-javascript

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