简体   繁体   English

如何嵌入必应地图

[英]How to embed a Bing Map

I am working in a application that is using Bing (AJAX) to generate a map object to a webpage. 我正在使用Bing(AJAX)生成到网页的地图对象的应用程序中工作。

In addition to creating the map, we are using the API to add pushpins and create polygons that we color to highlight an area on the map. 除了创建地图之外,我们还使用API​​添加图钉并创建可着色的多边形以突出显示地图上的区域。

What I would like to do is to be able to embed that final map into another document such as word or powerpoint. 我想做的是能够将最终地图嵌入到另一个文档中,例如word或powerpoint。

Once I have a generated map how can I go about embedding it? 生成地图后,如何进行嵌入? In my markup I don't an "img" tag. 在我的标记中,我没有“ img”标签。

There isn't a good solution to this. 没有一个好的解决方案。 As I mentioned on the MSND forums one of the many HTML 2 canvas libraries may be an option. 正如我在MSND论坛上提到的,许多HTML 2 canvas库之一可能是一个选择。 The one you tried didn't seem to work. 您尝试的那个似乎无效。 I have made a code sample that does what you need but it is really complicated and requires rendering the image server side. 我已经制作了一个代码示例,可以满足您的需要,但是它确实很复杂,需要渲染图像服务器端。 If you email me as I mentioned in my MSDN response I'll email you a copy of the project. 如果您按照我在MSDN答复中提到的方式给我发送电子邮件,我将通过电子邮件将项目的副本发送给您。 In the future there will likely be a better option for this. 将来可能会有更好的选择。

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

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