Skip to content

Centering map when markers loading is done #4

@pnizet

Description

@pnizet

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions