change MapProvider

Topics: Windows Forms
Oct 17, 2011 at 10:23 PM

Hey :)

I use Vb.net 2010 express and i've just found your control 

i just can't get it work

i think the problem is in this line

Mainmap.MapProvider = MapProviders.GoogleMapProvider.WebProxy

plzz help :p

Coordinator
Oct 18, 2011 at 6:20 AM

WebProxy ;}

man, you just do: Mainmap.MapProvider = MapProviders.GoogleMap;

Oct 18, 2011 at 1:12 PM

didn't work with   : Mainmap.MapProvider = MapProviders.GoogleMap

but it works with  : Mainmap.MapProvider = MapProviders.GoogleMapProvider.Instance

Thank you for yur help

Coordinator
Oct 18, 2011 at 1:22 PM

sorry: MainMap.MapProvider = GMapProviders.GoogleMap;

Oct 18, 2011 at 1:25 PM

with : Mainmap.MapProvider = GMapProviders.GoogleMap it gives me 

'GMapProviders' n'est pas déclaré. Il peut être inaccessible en raison de son niveau de protection

'GMapProviders' is not declared , maybe because of its protection level

Coordinator
Oct 18, 2011 at 1:53 PM

add:

using GMap.NET.MapProviders; 

Oct 18, 2011 at 6:55 PM

Ty so much RadioMan , it works :) :)

i have other questions i wish u have time for me :)

Oct 18, 2011 at 7:55 PM

How to surf in the map using mouse (up,down,left,right) like in googleMaps ?

Coordinator
Oct 18, 2011 at 8:04 PM

surf ;} you mean drag?

Oct 18, 2011 at 8:06 PM

srry for my bad english :p :p

yes its drag :) , how to do it ??

Oct 18, 2011 at 8:17 PM

i found it lol 

Mainmap.DragButton = MouseButtons.Left

an other question plzz

how to costumize markers , when user click on it ,  it give him something

Coordinator
Oct 18, 2011 at 8:19 PM

what do you mean?

Oct 18, 2011 at 8:24 PM

i have a point with lat and long marked in the map with that google marker green

i want when user click on it in the map , a small form showing information will appear

Coordinator
Oct 18, 2011 at 9:05 PM

map.OnMarkerClick ?

Oct 18, 2011 at 9:10 PM

im gonna try it :)

Ty so much my friend

Oct 18, 2011 at 9:10 PM

im gonna try it :)

Ty so much my friend

Oct 18, 2011 at 11:39 PM
Edited Oct 18, 2011 at 11:50 PM

an other question Radioman :)

im trying to make an overlay so i can mark points but i have a problem

i make this in form_load

Dim overlayOne As New GMapOverlay(Mainmap, "OverlayOne")   

Mainmap.Overlays.Add(overlayOne)

and i have a Module where the function getlocation that marks points , i put this code in the function.

" overlayOne.Markers.Add(New GMap.NET.WindowsForms.Markers.GMapMarkerCross(New PointLatLng(Lat, Lon))) "

but it gives me that : " Overlyeone is not declared , maybe because of protection level "

Oct 18, 2011 at 11:39 PM

an other question Radioman :)

im trying to make an overlay but i have a problem

i make this in form_load

Dim overlayOne As New GMapOverlay(Mainmap, "OverlayOne")   

Mainmap.Overlays.Add(overlayOne)

and i have a function getlocation , where im gonna put markers , i put this code in it :

" overlayOne.Markers.Add(New GMap.NET.WindowsForms.Markers.GMapMarkerCross(New PointLatLng(Lat, Lon))) "

but it gives me that : " Overlyeone is not declared , maybe because of protection level "

Coordinator
Oct 19, 2011 at 6:25 AM

i'm not here to teach you programming language ;}

Sep 11, 2012 at 11:46 AM

Hi,

I am having a bit of a trouble using 

."MapProvider = GMapProviders.GoogleMap"

Here in case i use Bing or yahoomap it works fine but when i tried using GoogleMap it dose not run,

I get no errors but it just dose not run. Is there anything i need to include for GoogleMap ?

 

Thanks

Coordinator
Sep 11, 2012 at 11:54 AM

i bet you use debug build and do not see the output window ;}

Sep 11, 2012 at 12:02 PM

Nop just running the program not using debug.

Coordinator
Sep 11, 2012 at 12:11 PM

you mean, your program or the demo?

Sep 11, 2012 at 12:13 PM

My Program

simple code example available.

Coordinator
Sep 11, 2012 at 12:24 PM

hot build has no problems for me