我有一个使用 Bing map 的 silverlight 4 应用程序。现在,当应用程序通过 http 运行时,一切正常。但是当我们在 SSL 上托管 silverlight 应用程序时,必应 map 停止工作。下面是用于显示 map 的代码。
在应用程序开始时
Vexel.Maps.SilverlightExtension.Configuration.SynchronousConfiguration.LoadMapConfiguration();
文件:Configuration.baselayer.xml
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<MapControl version="v1">
<!-- MapMode Uri Format -->
<!-- Meritech Office Bing -->
<add key="RoadUriFormat" value="http://ecn.t1.tiles.virtualearth.net/tiles/r{quadkey}.png?g=1&mkt={Culture}&shading=hill&n=z"/>
<add key="AerialUriFormat" value="http://ecn.t1.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=1&n=z"/>
<add key="AerialWithLabelsUriFormat" value="http://ecn.t1.tiles.virtualearth.net/tiles/h{quadkey}.jpeg?g=1&mkt={Culture}&n=z"/>
<add key="AerialLabelsUriFormat" value="http://ecn.t1.tiles.virtualearth.net/tiles/ho{quadkey}.jpeg?g=1&mkt={Culture}&n=z"/>
</MapControl>
</configuration>
现在请告诉我要通过 SSL 获取 map 数据需要做什么。 如果有人可以帮助我,我将非常感激。
我还听说,对于 SSL silverlight 应用程序,我们必须通过 SSL 托管我们自己的 bing map 服务器。这是真的吗?
如果什么都做不了,那么我们必须在 asp.net/HTML5 中转换整个项目。
最佳答案
Bing Maps Silverlight 控件不支持开箱即用的 HTTPS。然而,有人想出了一个有趣的解决方法 http://social.msdn.microsoft.com/Forums/en-US/43c13236-5733-4779-97c6-136a1ecabc6a/tell-bing-maps-silverlight-control-to-use-https
关于c# - Silverlight Bing 通过 SSL 映射,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16895548/