This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Problem with getting proper center with zooming

-1

when I'm working with geofence after the creation of them when i'm going to select geofence i seen that every time function map.getCenter(position,zoom) returning different look as like i have total two geofence which already created on different location with different radius and latlong. Now when i'm going to select each geofence to display on map. It's show me properly but zoom is not focus properly on selected geofence as center. So, how to solve this that i could working further.

asked 19 May '16, 10:59

CDesai's gravatar image

CDesai
5334
accept rate: 0%

3

This help site is about "OpenStreetMap" itself. It sounds like you're asking about some framework or other (which is unclear because I suspect that most have a "map.get" function!).

I'd suggest that you describe in a bit more detail what you're doing (what platform, what framework, what version, what tutorial you're following etc.), and also that you try and find a help site about that particular framework, where you'll get more people familiar with it.

(19 May '16, 11:03) SomeoneElse ♦

Source code available on GitHub .