Answered by:
Bing Maps Desktop Application

Question
-
Hi,
I've coded some AJAX and Silverlight Bing Map applications before so ok with that, but now I have need to create a desktop application. The requirements are that it look like and behave like any normal web app but runs on a desktop, however it must be able to run online and offline.... Online is obviously ok, but offline is an issue. Is it possible to set a tilesource to a location on the HDD and load tiles from there? At this point I should mention the tiles are custom tiles and i'm not storing MS tiles offline.
Is the best method for running bing maps as a desktop application to set it to run out-of-browser?
Thanks,
Michael
Web Developer MCTS SharePoint 2007 Developer- Moved by Ricky_Brundritt Saturday, March 10, 2012 10:27 AM (From:Bing Maps: Map Control and Web services Development)
Wednesday, August 3, 2011 11:17 AM
Answers
-
Yes you can. Just use a url starting with 'file:///' for the uriConstructor.
var tileSource = new Microsoft.Maps.TileSource({ uriConstructor: 'file:///c:/tilefolder/{quadkey}.png'}); var tileLayer = new Microsoft.Maps.TileLayer({mercator: tileSource});
-SamWednesday, August 3, 2011 5:20 PM -
You can use the use Bing Maps Silverlight control to create desktop applications. Just set the silverlight application as an out of browser silverlight application. Getting local tiles to load is a bit tricky but possible. Elevated permissions are required.
http://rbrundritt.wordpress.com- Proposed as answer by Ricky_Brundritt Wednesday, August 3, 2011 7:08 PM
- Marked as answer by MDraisey Thursday, August 4, 2011 8:56 AM
Wednesday, August 3, 2011 7:07 PM
All replies
-
Yes you can. Just use a url starting with 'file:///' for the uriConstructor.
var tileSource = new Microsoft.Maps.TileSource({ uriConstructor: 'file:///c:/tilefolder/{quadkey}.png'}); var tileLayer = new Microsoft.Maps.TileLayer({mercator: tileSource});
-SamWednesday, August 3, 2011 5:20 PM -
You can use the use Bing Maps Silverlight control to create desktop applications. Just set the silverlight application as an out of browser silverlight application. Getting local tiles to load is a bit tricky but possible. Elevated permissions are required.
http://rbrundritt.wordpress.com- Proposed as answer by Ricky_Brundritt Wednesday, August 3, 2011 7:08 PM
- Marked as answer by MDraisey Thursday, August 4, 2011 8:56 AM
Wednesday, August 3, 2011 7:07 PM