Get Image by Lat\Lng & ZoomLevel

Aug 4, 2009 at 7:40 AM

Hello, is there a function that I can call to get the map tile (in the cache or not), passing Lat\Lng & ZoomLevel?I will use this in a report.



Aug 4, 2009 at 7:57 AM

for now, check BigMapMaker-ConsoleApplication\Program.cs in solution

p.s. there is new function in demo to make static maps , but i'll add source files(i foget to include them ;}) only about >18h

Aug 4, 2009 at 8:00 AM

Thanks Radioman!

Have a nice day! :}

Aug 4, 2009 at 4:14 PM

check it now ;}

Aug 5, 2009 at 8:09 AM

I think I have to use this function:

GetImageFrom(MapType type, Point pos, int zoom)

My problem is that I don't have a GMap.NET.Point (pos argument) but a GMap.NET.PointLatLng...

How can I do?


Aug 5, 2009 at 9:01 AM

check Demo.WindowsForms. class StaticImage ;}


Aug 5, 2009 at 9:38 AM

I see..but I don't have neither a RectLatLng nor a couple of GMap.NET.PointLatLng..only 1 GMap.NET.PointLatLng

Sorry, I think that I'm missing something..could you please post the code to get the image passing MapType,Lat\Lng & ZoomLevel?


Sorry for the disturb

Aug 5, 2009 at 10:15 AM you don't see ;}

look at class StaticImage ;}, is it so hard to construct RectLatLng(point, 0, 0) // ? ;}

Aug 5, 2009 at 10:32 AM
Edited Aug 5, 2009 at 10:57 AM

Ok, I understand...I didn't know to use 0,0..thanks!


Aug 5, 2009 at 11:24 AM

..can you explain what do you want to do exactly? ;}

Aug 5, 2009 at 1:32 PM

I just want to get the tile of a particular lat\lng,zoom and map type... Then I save the image in a file.Now I try to use RectLatLng(point, 0, 0).

Thanks :)

Aug 5, 2009 at 1:35 PM

..but if your location is on the corner of tile?, you must select few tiles around your point, and make image from parts of the tiles, so your position can be in the center as like in static map demo...

Aug 5, 2009 at 1:41 PM

That's right..but I will show the image as is..