al246
al246

Reputation: 230

Take maps Lat/Long on centre point of screen

Does anyone know how to take map coordinates from centre point of the screen?

There are several different answers but they're all for Google Maps -

Flutter: how to get location coordinates of point in the center of screen

I am using HERE maps.

Thank you

Upvotes: 0

Views: 1011

Answers (1)

Nusatad
Nusatad

Reputation: 3551

As indicated in the user guide simply get it by calling:

hereMapController.camera.state.targetCoordinates

In HERE's terminology the target specifies the point at which the camera looks. By default, it's looking at the center of the map view, unless it was changed with a principal point.

When the map is panned or moved programmatically, the camera still looks at the center of the map view, so the values are updated each time.

Upvotes: 1

Related Questions