Screen Marker Selection
Screen marker selection works just like vector selection. WhirlyGlobe-Maply is doing very different thing to make them happen, but on the user side it’s all the same.
We’ll need an XCode project here, so if you haven’t done the Screen Markers tutorial go do that. If you haven’t got one yet, here’s a suitable ViewController (for Objective-C or Swift)
Selecting Screen Markers
If you’ve got screen markers displaying, selecting them is pretty simple. Change your handleSelection method as follows.
That’s all there is to it. We’re just handed a MaplyScreenMarker back if that’s what the user selected. We pop up a little annotation over the marker like so.
All the other features are exactly the same. You check if you got that type back and do something appropriate if you did.