heremaps / here-sdk-examples

Android, iOS and Flutter example apps for the HERE SDK 4.x (Lite Edition, Explore Edition, Navigate Edition)
https://developer.here.com/products/here-sdk
Apache License 2.0
169 stars 135 forks source link

Geocoordinates of the center of the screen in the visualNavigator #339

Open MauroGentile opened 3 weeks ago

MauroGentile commented 3 weeks ago

From visualNavigator, is it possible to know the geocoordinates of the point in the center of the screen?

If I use

hereMapController.camera.state.targetCoordinates

when visualNavigator on, sometimes I get a point that is vertically shifted wrt the point in the center of the screen.

HERE-SDK-Support-Team commented 2 weeks ago

Hi @MauroGentile,

The VisualNavigator controls the principal point. Get the CameraBehavior from the VisualNavigator and from there access the normalized principal point. By default, this is shifted vertically.

However, if you have not changed this on app-side, the point should not change during tbt. And you are correct, the targetCoordinates should always indicate that location.

Can you share how you are accessing the targetCoordinates? And how do you verify, that the coords are vertically shifted? Is this visible in the app? Thanks.