Feb 17, 2009 at 7:47 AM
When calling this function it returns numbers that are very high (ie 40548) which are obviously too high to be actual screen coordinates.  Is there some type of conversion that has to be done to make this number usable or is this a feature that is not fully baked yet?

Thank you,
Feb 17, 2009 at 1:22 PM
Edited Oct 15, 2010 at 6:00 AM

it is pixel on global map matrix at current zoom and there is billions of them....;}, if you want local coordinates for custom map drawing, use public GMapNET.Point FromLatLngToLocal(PointLatLng point)

Oct 14, 2010 at 11:24 PM

FromLatLngToLocal is giving me values like 2826, 5774, which don't look like screen coordinates; 

I have a lot of items on the map and need to avoid ToolTips being on top of each other. Real screen coordinates would really help.

Oct 15, 2010 at 6:00 AM

yes it is

Oct 15, 2010 at 6:01 PM

Ok, I have 2 screens; one is 1280 high and the other 900; both of those are less than 2826. Am I missing something?

Oct 15, 2010 at 6:43 PM

where do you find these numbers?

Oct 15, 2010 at 7:07 PM


GMap.NET.Point pt = mapControl.FromLatLngToLocal(pll);

where pll is a point on the map and mapControl is a GMapControl

I get it; these are virtual screen coordinates; my zoom level is currently not showing the whole map so some of my points are off the screen resulting in large numbers.


On another topic, does mapControl.ZoomAndCenterMarkers(null) work? It seems to Zoom okay, but seems to center on the last added marker.



Oct 15, 2010 at 7:13 PM

try latest version