Hi,
I've bulit an app for iOS and I can show, zoom and rotate the maps in it. Now, I am trying to do the same with PyQt5. I am able to show the maps, change location, zoom into a region, and enable / disable the view of the compass. I just cannot rotate the map: I receive the error message "js: [MapKit] Rotation is not available."
The mapkit js documentation refers to the property "isRotationAvailable" and the method "setRotationAnimated" (https://developer.apple.com/documentation/mapkitjs/mapkit/map/2991323-setrotationanimated)
Here is the html code I am using:
<script>
mapkit.init({
authorizationCallback: function(done) {
done(".myToken");},
language: "en"
});
var map = new mapkit.Map("map");
// Hide the zoom controls.
map.showsZoomControl = true;
map.isZoomEnabled = true;
map.isRotationAvailabe = true;
function set_zoom(latitude, longitude, span_lat, span_lon) {
var newCenter = new mapkit.Coordinate(latitude, longitude);
var span = new mapkit.CoordinateSpan(span_lat, span_lat);
var region = new mapkit.CoordinateRegion(newCenter, span);
var zoomRange = new mapkit.CameraZoomRange(250, 2000);
map.setRegionAnimated(region);
map.cameraZoomRange = zoomRange;
// Either two of these lines raise the warning message
map.rotation = 90;
map.setRotationAnimated(90);
}
</script>
Am I missing something really basic here or is this feature still not supported for mapkits js?
Thanks a lot