Bing Maps代码位于C#中. [英] Bing Maps codebehind in C#.

查看:102
本文介绍了Bing Maps代码位于C#中.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了在C#中进行地理编码和反向地理编码所需的所有功能,但是现在我想要在javascript中使用.现在我在javascript中有这段代码,但是他只启动了我想要的功能,当用户在我的文本框中搜索内容时,他将焦点放在地图上并将其放置在图钉上.

Hi I had created all the functions that I need to geocode and reverse geocode in c# but now i want in javascript. Right now I have this code in javascript but he only starts the I want that when the user search something on my textbox he center on the map and put it a pushpin on it.

function GetMap() {
   // Initialize the map
   map = new Microsoft.Maps.Map(document.getElementById("mapDiv"), {
      credentials: "My Bing Maps Key",
      mapTypeId: Microsoft.Maps.MapTypeId.road});
}

推荐答案

这可能对您有帮助:
使用纯Javascript的Microsoft VEMap [
this may help you:
Microsoft VEMap Using Pure Javascript[^]


这篇关于Bing Maps代码位于C#中.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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