Silverlight Bing通过SSL映射

本文关键字:映射 SSL 通过 Bing Silverlight | 更新日期: 2023-09-27 18:16:39

我有一个使用Bing地图的silverlight 4应用程序。现在,当应用程序在http上运行时,一切都工作得很好。但是当我们在SSL上托管silverlight应用程序时,必应地图停止工作。下面是显示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&amp;mkt={Culture}&amp;shading=hill&amp;n=z"/>
        <add key="AerialUriFormat"  value="http://ecn.t1.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=1&amp;n=z"/>
        <add key="AerialWithLabelsUriFormat" value="http://ecn.t1.tiles.virtualearth.net/tiles/h{quadkey}.jpeg?g=1&amp;mkt={Culture}&amp;n=z"/>
        <add key="AerialLabelsUriFormat" value="http://ecn.t1.tiles.virtualearth.net/tiles/ho{quadkey}.jpeg?g=1&amp;mkt={Culture}&amp;n=z"/>
    </MapControl>
</configuration>

现在请让我知道要做什么才能通过SSL获得地图数据。如果有人能帮我,我将非常感激。

我还听说,对于SSL silverlight应用程序,我们必须通过SSL托管我们自己的bing地图服务器。这是真的吗?

如果没有什么可以做,那么我们必须转换完整的项目asp.net/HTML5

Silverlight Bing通过SSL映射

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