Fr0sT-Brutal / Delphi_OSMMap

Visual control for Delphi and Lazarus to display OSM map
Mozilla Public License 2.0
66 stars 23 forks source link

show a spécific region of a map #22

Closed ClubACNews closed 1 year ago

ClubACNews commented 1 year ago

Hello Sir, I'm trying to use your components to replace the one I was using and I'm trying to display this point in the center of the map area: //Center.Longitude=4.4384765625 //Center.Latitude=49.6925084788933 Thanks

ClubACNews commented 1 year ago

I've find :

var
LGeoPoint: TGeoPoint;
begin
  LGeoPoint.Long := StrToFloat('4,4384765625');
  LGeoPoint.Lat := StrToFloat('49,6925084788933');
  mMap.SetZoom(10);
  mMap.CenterPoint := LGeoPoint;