如何在bing地图中的信息框中显示数据,从asp.net中的数据库中提取数据?

时间:2021-05-26 01:40:14

I'm trying to pull data from a db including images and display it in an infobox in bing maps. Do I need to do a custom infobox? Thanks for everyone's help. I will be using asp.net MVC for this project.

我正在尝试从包含图像的数据库中提取数据,并将其显示在bing地图中的信息框中。我需要自定义信息框吗?谢谢大家的帮助。我将在这个项目中使用asp.net MVC。

1 个解决方案

#1


0  

Yes, you will need custom HTML for your infobox. There are a couple of options for this. One option is to use the built in Infobox control and set it's HTML content. This wipes out the whole style of the infobox so a bit more work is required. I have a blog post on how to handle this here: http://rbrundritt.wordpress.com/2011/11/08/simple-custom-infoboxes-in-bing-maps-v7/

是的,您需要为您的信息框提供自定义HTML。有几种选择。一种选择是使用内置的Infobox控件并设置它的HTML内容。这消除了信息框的整体风格,因此需要更多的工作。我有一篇关于如何处理这个问题的博客文章:http://rbrundritt.wordpress.com/2011/11/08/simple-custom-infoboxes-in-bing-maps-v7/

Another option is to use the Custom Infobox module I created for Bing Maps a while back. It gives you a lot more options when it comes to customizing infoboxes: http://bingmapsv7modules.codeplex.com/wikipage?title=Custom%20Infobox%20Control

另一种选择是使用我之前为Bing Maps创建的Custom Infobox模块。在定制信息框时,它为您提供了更多选择:http://bingmapsv7modules.codeplex.com/wikipage?title = Custom%20Infobox%20Control

#1


0  

Yes, you will need custom HTML for your infobox. There are a couple of options for this. One option is to use the built in Infobox control and set it's HTML content. This wipes out the whole style of the infobox so a bit more work is required. I have a blog post on how to handle this here: http://rbrundritt.wordpress.com/2011/11/08/simple-custom-infoboxes-in-bing-maps-v7/

是的,您需要为您的信息框提供自定义HTML。有几种选择。一种选择是使用内置的Infobox控件并设置它的HTML内容。这消除了信息框的整体风格,因此需要更多的工作。我有一篇关于如何处理这个问题的博客文章:http://rbrundritt.wordpress.com/2011/11/08/simple-custom-infoboxes-in-bing-maps-v7/

Another option is to use the Custom Infobox module I created for Bing Maps a while back. It gives you a lot more options when it comes to customizing infoboxes: http://bingmapsv7modules.codeplex.com/wikipage?title=Custom%20Infobox%20Control

另一种选择是使用我之前为Bing Maps创建的Custom Infobox模块。在定制信息框时,它为您提供了更多选择:http://bingmapsv7modules.codeplex.com/wikipage?title = Custom%20Infobox%20Control