Cannot display a map in WebBrowser control on a Windows Mobile 5 device

Has anyone been able to display a live map in a Windows Mobile 5 device using a System.Windows.Forms.WebBrowser control

I can display the map nicely in my Internet Explorer 6, but it doesn't work on my device, is this due to the JavaScripts

Can I in this case somehow use the Live maps API to get a normal jpg image back to the browser component if it cannot handle the Live JavaScripts

If this cannot be done using Microsofts WebBrowser component does anyone know of a different map provider that only returns jpg's

// Mikael

Here is the Javascripts I have on my page:

var map = null;

function GetMap()
{
map = new VEMap('myMap');
map.LoadMap();
DrawPoly();
map.HideDashboard();
}

function DrawPoly()
{
var points = new Array(
new VELatLong(57.74603,11.923745),
new VELatLong(57.7468266666667,11.9194966666667),
new VELatLong(57.7468266666667,11.9194966666667),
new VELatLong(57.7468266666667,11.9194966666667),
new VELatLong(57.7468266666667,11.9194966666667),
new VELatLong(57.7468983333333,11.9194416666667),
new VELatLong(57.7468983333333,11.9194416666667),
new VELatLong(57.7468983333333,11.9194416666667),
new VELatLong(57.7468983333333,11.9194416666667),
new VELatLong(57.7468983333333,11.9194416666667),
new VELatLong(57.747,11.9196883333333),
new VELatLong(57.7470083333333,11.9196983333333),
new VELatLong(57.7468616666667,11.9195616666667)
);

poly = new VEPolyline('1',points);
poly.SetWidth(3);
poly.SetColor(new VEColor(0,150,150,100));
map.AddPolyline(poly);
map.SetMapView(points);
}



Answer this question

Cannot display a map in WebBrowser control on a Windows Mobile 5 device

  • Napalm-uk-RTW

    Ok, thanks I didn't know that.

    This seems to cost money though & I am making a free solution so this is not an option.

    But if I understand it correctly it is not possible to use the "normal" MSN/Google/Yahoo maps in the mobile device due to the browser not being able to handle the javascript needed for this.

    FYI:

    I did find that it is possible to use the Yahoo maps API to get a map in the browser on the mobile device, but it is not possible to have any polygons or icons on it.

    Thanks for your replies Smile

    // Mikael


  • dabd

    Is your goal to run VE off a handheld At the moment the requirements are running VE are too high to be handled properly by a mobile handheld. That being said, thats what Mappoint Web Service is for.

  • Luxsy

    Yes, the current set of mobile browsers is the issue, I'm sure we are not far away from mobile browsers that support AJAX. It will be interesting to see what the iphone does to the market. I know there is an alpha around for the next generation windows mobile browser also.

    But you can make a mobile app that uses the tiles now, MSFT made a great version of live search here:
    http://mobile.search.live.com/client/download.aspx

    John.



  • ThunderRock

    Yeah,

    i guess some of the jabbascript is too advanced to run on your pocket-billiard device.



  • Cannot display a map in WebBrowser control on a Windows Mobile 5 device