SetCurrentPositionByKeywords and GetPlacemarkFromGeocoder don't work

Topics: Help
Sep 30, 2011 at 9:33 AM

Hi,
I need help!

I'm using GMap.NET.Core.dll and GMap.NET.WindowsForms.dll (downloaded from this site two days ago...)
and all work fine, except when I try to find a location (city, country ...) with SetCurrentPositionByKeywords.
I always receive unknown and I can't find any place in the world.

Also GetPlacemarkFromGeocoder function doesn't work...

Another indication: I'm in Italy. Is it a problem? I have to do a particular configuration?

This is my vbnet code:

Me.cntMainMap.MapType = GMap.NET.MapType.BingMap
Me.cntMainMap.MinZoom = 3
Me.cntMainMap.MaxZoom = 17
Me.cntMainMap.Zoom = 4
Me.cntMainMap.Manager.Mode = GMap.NET.AccessMode.ServerOnly

Me.cntMainMap.CanDragMap = True
Me.cntMainMap.DragButton = Windows.Forms.MouseButtons.Left

Me.cntMainMap.SetCurrentPositionByKeywords("USA")
Dim overlayOne As New GMap.NET.WindowsForms.GMapOverlay(Me.cntMainMap, "OverlayOne")

Me.cntMainMap.Overlays.Add(overlayOne)

Someone can help me?

Thanks.

Coordinator
Sep 30, 2011 at 9:44 AM

use hot build, lats release is quite old

Sep 30, 2011 at 10:02 AM

Ok, I find it, but MapType ?
Is it deleted?

How do you substitute it?

Coordinator
Sep 30, 2011 at 11:23 AM

MainMap.MapProvider = GMapProviders.GoogleMap;

Sep 30, 2011 at 12:10 PM

Ok!

Thanks!