Get Image by Lat\Lng & ZoomLevel

Aug 4, 2009 at 6: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.

 

Thanks

Coordinator
Aug 4, 2009 at 6: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 7:00 AM

Thanks Radioman!

Have a nice day! :}

Coordinator
Aug 4, 2009 at 3:14 PM

check it now ;}

Aug 5, 2009 at 7: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?

Thanks

Coordinator
Aug 5, 2009 at 8:01 AM

check Demo.WindowsForms. class StaticImage ;}

 

Aug 5, 2009 at 8: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

Coordinator
Aug 5, 2009 at 9:15 AM

..no you don't see ;}

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

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

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

 

Coordinator
Aug 5, 2009 at 10:24 AM

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

Aug 5, 2009 at 12: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 :)

Coordinator
Aug 5, 2009 at 12: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 12:41 PM

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