decide Map Rectange with Lat,Lng

Topics: Help
Feb 22, 2012 at 6:27 AM

Thank you. I am using your project very well.

When I create route, some margins between Top, left, right, bottom of route and map happen.

sometimes, route fill only 50% area of the map.

so. I want to remove them and fill route points on map tightly.

What Can I do it? or decide Map Boundary with Latitude, longitude, not zoom.

Always thank you for your work. 

 

 

Coordinator
Feb 22, 2012 at 6:34 AM

what do you mean?

Feb 22, 2012 at 7:10 AM

;} Sorry.

When I call ZoomAndCenterRoute in GMapControl class,

sometimes I see zoom level is mismatch with boundary I set Map Rectangle.

Below is my code.

            MapRoute rount = new MapRoute(new List(), "TEST");
            rount.Points.Add(new PointLatLng(locRect.sp.y, locRect.sp.x));
            rount.Points.Add(new PointLatLng(locRect.ep.y, locRect.ep.x));

            this.ZoomAndCenterRoute(rount);

locRect.sp and ep are TopLeft and bottomRight LatLng of objects I want to draw on Map.
After loading tiles, I draw my objects with GPS info in OnPaintOverlays().
But, When I draw these objects on zoomed map, they display only in middle of map and doesn't place near boundary.
I would like to fill up my objects on the map. but I don't know how to do.
Do you understand me? Thank you.
Coordinator
Feb 22, 2012 at 7:12 AM

use markers

Feb 22, 2012 at 9:01 AM

Thanks.

But, It seems that marker and route has same internal routine. 

Could you explain difference ?

Coordinator
Feb 22, 2012 at 10:54 AM

nop ;}