Skip to content

Change the map center depending on the bus line being displayed #15

Description

@puchka

Description

Currently, the map has a fixed center.

Changing the center to the geometric center of all points composing a bus line would be better.

There are two options to find the centroid (geometric center of the coordinates of points composing a bus line)

  • Add all latitude/longitude together and compute the average
  • Find min and max latitude/longitude and find the middle point

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions