【发布时间】:2013-07-24 12:45:50
【问题描述】:
我正在寻找一种将自定义 WMS 服务与 bingmaps api 7.0 一起使用的方法,但我找不到任何关于它的好教程。
我有一个显示 bing 地图的简单 javascript 演示。
<script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
<script type="text/javascript">
var map = null;
function GetMap() {
// Initialize the map and set the view to a specific location
map = new Microsoft.Maps.Map(document.getElementById("mapDiv"), {
credentials: "YOUR_BING_MAPS_KEY",
center: new Microsoft.Maps.Location(47.6, -122.3),
zoom: 11
});
Microsoft.Maps.loadModule('Microsoft.Maps.VenueMaps', { callback: function () {
venueMapFactory = new Microsoft.Maps.VenueMaps.VenueMapFactory(map);
venueMapFactory.create({ venueMapId: 'bingmapsteam-bellevuesquare',
success: function (vm, args) { venueMap = vm; venueMap.show(); map.setView(venueMap.bestMapView); }
});
}
});
}
</script>
但如果我想使用这张由 bings 当前地图组成的 Nasa 地图
http://neowms.sci.gsfc.nasa.gov/wms/wms?version=1.3.0&service=WMS&request=GetCapabilities
如何在 ASP.NET 中创建一个可以使用不同源的简单 Web 应用程序?这甚至可能还是我应该使用 Sharpmap、gmaps.net 或其他东西? 谁能指出我正确的方向?
【问题讨论】:
标签: c# google-maps bing-maps wms sharpmap