Anchor a object on map

Topics: Etc...
Mar 28, 2012 at 1:00 PM

How to anchor a object on map. I am using c#.

My created map:

GMapControl MainMap = new GMapControl();           

MainMap.MapProvider = GMapProviders.GoogleMap;           

MainMap.Position = new GMap.NET.PointLatLng(48.019324, 102.700195);           

MainMap.MinZoom = 1;           

MainMap.MaxZoom = 17;           

MainMap.Zoom = 8;           

MainMap.Dock = DockStyle.Fill;           

MainMap.DragButton = MouseButtons.Left;           


Mar 28, 2012 at 4:05 PM


Nov 17, 2012 at 10:15 AM

Dear Radioman,

it is possible to add an image or any other things instead of googlemarker, for instance a small car, bus or bike picture

thanks alot

Nov 17, 2012 at 10:24 AM

googlemarker just renders custom image, you can use your own if you want to

Nov 17, 2012 at 10:49 AM

Dear Radioman,

how can I do it, could you give me a hint,

thanks a lot

Nov 17, 2012 at 10:50 AM

check the source

Nov 17, 2012 at 10:56 AM


Nov 21, 2012 at 10:03 AM


Dear Radioman,

I am so sorry, but I can not find the source that how I can add image instead of google marker, could you show me some line of code.

thanks a lot

Nov 21, 2012 at 10:54 AM

google marker has overloaded parameter for bitmap

Nov 21, 2012 at 5:21 PM

Dear Radioman,

still I can not :(

Nov 21, 2012 at 5:26 PM

var mark = new GMarkerGoogle(map.Position, Properties.Resources.MyImage);

Nov 21, 2012 at 5:29 PM
Edited Nov 21, 2012 at 5:29 PM

your are very kind man :)


Nov 21, 2012 at 5:46 PM
Edited Nov 21, 2012 at 5:56 PM

Ok, now ,I understand my problem that is I can not declare a variable its type is GMarkerGoogle, I can just declare GMapMarker, dear Radioman, you have an idea,


Also I have added GMarkerGoogle.cs  class to my project (I have taken it from your demo project) ALso I still have  problem.

thanks a lot.