Unable to create WPF application in GMAP.NET

Aug 26, 2009 at 9:28 AM

I have tried GMap.NET several times but its not working.

I have created a gmap control named gmapcontrol1.

Code used for this project.

            gMapControl1.MapType = MapType.GoogleSatellite;
            gMapControl1.MaxZoom = 13;
            gMapControl1.MinZoom = 1;
            gMapControl1.Zoom = 5;

it shows a blank map

Coordinator
Aug 26, 2009 at 9:30 AM

are you using x64? are you setting you position?

Aug 26, 2009 at 9:36 AM

I am using 32 bit machine & windows XP SP2 OS.

Can you please provide me a sample code on GMap.NET.

Coordinator
Aug 26, 2009 at 9:38 AM

well demos are exactly for and only for that ;}

Aug 26, 2009 at 10:05 AM

            gMapControl1.MapType = MapType.GoogleMap;
            gMapControl1.MaxZoom = 13;
            gMapControl1.MinZoom = 1;
            gMapControl1.Zoom = 5;

            gMapControl1.CurrentPosition = new PointLatLng(22.3, 88.5);

Is this correct code.

should I need to set any property of gMapControl1. Because gMapControl1 should fetch maps from google map right.

pls help me...........

I am trying it again and again but it is not working.........

Coordinator
Aug 26, 2009 at 10:26 AM

works perfect, are you sure you set target to x86?

Coordinator
Aug 26, 2009 at 10:44 AM
Edited Sep 12, 2009 at 7:25 PM

here are your super-simple demo

any question? ask any time ;}

Aug 26, 2009 at 11:26 AM

Thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu

lolz.........

:)

 

Coordinator
Aug 26, 2009 at 11:31 AM

;}

Sep 7, 2009 at 1:11 AM

Hi Radioman,

WPF for maps is very excited. Can you post again demo example for this, because the link above was died.

Thanks,

 

Coordinator
Sep 7, 2009 at 9:33 AM

should be ok, strange it was lost ;/

Sep 7, 2009 at 3:42 PM

Thank you for your help.

Best regards,

Coordinator
Sep 7, 2009 at 6:19 PM

welcome! ;}

Sep 12, 2009 at 4:08 PM

Hi Radioman.

Could you please post the code or the demo? I have some poblems with GMap - the map is not blank but it says "We are sorry we don't have imagery at this level fot this region". However, the demo project I have downloaded with the libraries works good. The way I ty to run the map is (after placing it on the canvas):

this.gMapControl1.MapType = GMap.NET.MapType.GoogleMap;
this.gMapControl1.MinZoom = 1;
this.gMapControl1.MaxZoom = 5;
this.gMapControl1.Zoom = 5;
this.gMapControl1.CurrentPosition = new GMap.NET.PointLatLng(53.6961334816182, 17.2985095977783);
this.gMapControl1.ReloadMap();

I would be very grateful for any suggerstions.

Coordinator
Sep 12, 2009 at 4:11 PM

but i allready posted it ;}

Sep 12, 2009 at 6:26 PM

First of all, thank you for such a quick response.

I am affraid the link above doesn't work. Nevertheless I have successfully run the project. Somehow one of the dlls did not overwrite the previous one.

Best regards,

Piotr

Coordinator
Sep 12, 2009 at 7:27 PM

sorry, skydrive storage again changed my link, and i fixed it again now ;}