3

What is the best practice for opening a map from the mobile internet explorer on windows phone 7? On BlackBerry you use a JavaScript method and on Android/iOS you simply link to a google maps URL.

I am planning to integrate the different ways of opening maps into my mobile geo javascript library and don't have a windows phone device.

http://code.google.com/p/geo-location-javascript/

Thanks, Stan Wiechers

2 Answers 2

8

Use the maps: protocol for WP7. I haven't found any documentation but this works.

<a href="maps:Vancouver V5L 4G1"></a>

<a href="maps:49.275267 -122.988617"></a>
1
0

There currently isn't a built in way to link to the maps application from within a webpage on a device (or emulator). (Nor is it possible from other apps either.)

I'd recommend linking directly to a mobile Bing page. Such as the following which searches / shows a map for "London":

http://m.bing.com/search/search.aspx?A=mapdetails&L=London

3
  • Thanks much, this seems to be quite a missing feature. I will add in bing maps, assume that works better then google maps. Do you happen to have a bing URL convention document? Would be great. In the library i would like that users can open a map via a query and via a lat/lon address. Jan 4, 2011 at 21:34
  • @Stan It doesn't look like Lat/Long is a supported format (m.bing.com/search/search.aspx?A=modifylocation)
    – Matt Lacey
    Jan 4, 2011 at 21:51
  • @Stan sorry couldn't find a URL format document. Try asking at bing.com/community/bingsearch/f/12244.aspx
    – Matt Lacey
    Jan 4, 2011 at 21:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.