Export map with Bing layer to image

3861
0
03-02-2012 05:21 AM
AlexZlotin
New Contributor
I have a map with a number of dynamic and cached layers and also the Bing maps layer. When exporting the map to an image I ran into the cross-domain security issue which I addressed for dynamic and cached layers by specifying a proxy URL. Is there a similar workaround for the Bing layer?

One approach that may work is to use the Bing API to export the layer as a bitmap (see this link), then export the rest of the layers from the map as another bitmap and then blend the two images to create the final output using the WriteableBitmapEx library from Codeplex. Depending on the size of the map the Bing layer may have to be exported in multiple tiles as the maximum Bing image size is around 900 pixels. Note that the export needs to be done client-side only in Silverlight.

Has anyone attempted this? Is there a simpler way to get a map with the Bing layer exported to an image?

Thanks
Alex
0 Kudos
0 Replies