MapKit read-only

Using MBS I’d like to have a map view NOT be movable by the user’s touch, pinch, etc.
Is this possible?

Overlay a picture in a canvas?

Googeling for “mapkit lock map” reveals a post that might give some ideas

putting a control in front may catch events before map view gets them.

self.mapView.zoomEnabled = false
self.mapView.scrollEnabled = false
self.mapView.userInteractionEnabled = false

I’ll add userInteractionEnabled property, but it’s iOS only.

Yes this does work.

I’ll try.
The bad thing about the canvas in front is that it catches a taps.
I have the map in a custom table cell, and I want to have the selection changed event fire.
This solution could work.

Thanks Christian.

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.