从谷歌地图迁移到bing地图 [英] Migration from google maps to bing maps

查看:124
本文介绍了从谷歌地图迁移到bing地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有谷歌地图的代码,我想用bing地图替换它,如果有人有想法帮助我。



这个地图代码:



i have code for google maps and i want to replace it with bing maps , if someone have an idea help me.

This code for maps :

<pre lang="xml">
map = new google.maps.Map(document.getElementById("maps-canvas"), null);
    directionsService = new google.maps.DirectionsService();
    directionsDisplay = new google.maps.DirectionsRenderer();
    directionsDisplay.setMap(map);

var wpgeo_icon_small = new google.maps.MarkerImage('<%=cr.resa.Global.ResaApplicationUrl %>' + "/images/small-marker.png", new google.maps.Size(10, 17, null, null), null, null , null);//, size?:Size, origin?:Point, anchor?:Point, scaledSize?:Size)		
		
//listeners for change zoom and map type
google.maps.event.addListener(map, 'zoom_changed', function f(){showImages(map);});
google.maps.event.addListener(map, 'maptypeid_changed', function f(){showImages(map);});
</pre>

推荐答案

您必须重新编写它才能使用bing贴图。我建议从这里开始, http://www.microsoft.com/maps/choose- your-bing-maps-API.aspx [ ^ ],并浏览所有资源。
You'll have to re-write it to work with bing maps. I would suggest starting here, http://www.microsoft.com/maps/choose-your-bing-maps-API.aspx[^], and go through all the resources.


这篇关于从谷歌地图迁移到bing地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆