-
Notifications
You must be signed in to change notification settings - Fork 4
Centering map when markers loading is done #4
Copy link
Copy link
Open
Description
With the json loading the computation of the center of the map doesn't work anymore.
//loop to populate the median for(var idx in points) { // Only for non empty coordinates if((points[idx].cLng != 0) && (points[idx].cLat != 0)) { LngA.push(points[idx].cLng); LatA.push(points[idx].cLat); } }
So @pspoerri setup the map center in Zurich...
Why not. but Why ??
Could we find a way the compute the median latitude and longitude of the markers and center the map when the json loading is done ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels