Is there a way to use bearing in here explorer SDK

261 Views Asked by At

Currently this is the icon i use to track the drivers position as it moves on the map : driver

so if the driver turns right or left ,the marker keeps pointing at the same direction and i wanted to make use of BEARING . But as far as my research went, i am not able to do that with heremaps if im using the explorer edition because i'd need a 3d icon.

But is there a way to do that with 2d icons that im missing here?

2

There are 2 best solutions below

0
Victor Pierre On BEST ANSWER

I did find a way to do this and forgot to reply to myself, and i did it through Location Indicator object. it allows the user to use a predefined 3d marker and it behaves exactly like i want it to.

more on :

https://developer.here.com/documentation/android-sdk-navigate/4.7.4.0/dev_guide/topics/map-items.html

even tho it says navigate here, explorer sdk has the same object.

1
Nusatad On

What you want to do is to rotate the marker image. Indeed, this cannot be done with the MapMarker class. Instead create a flat marker, like in this example.

The Explore Edition fully supports 3D icons, so there's no reason not to use them.

A MapMarker3D instance can be created right-aways from a PNG image - just like a 2D MapMarker. See also here and scroll to the end of the chapter.