Reputation: 24832
Is there any function that allows us to rotate an Here map using the JavaScript API ?
I have found it for android (https://developer.here.com/mobile-sdks/documentation/android-hybrid-plus/topics/maps.html) but I am not able to find it for JavaScript.
If this function does not exist what is the best alternative (still using Here JavaScript API) ?
Upvotes: 0
Views: 1350
Reputation: 126
The documentation for rotation isn't very well described but I found an example in the organisation's repo:
You can affect the rotation of a map by setting the heading
property in the ViewModel:
let mapView = map.getViewModel();
mapView.setLookAtData({
heading: 90
});
Upvotes: 2
Reputation: 181
H.map.ViewModel.control
It looks like you can control the angleX
or angleY
from the ViewModel if you are able to set this somewhere.
Upvotes: 0