DEPRECATED-mapbox-ios-sdk icon indicating copy to clipboard operation
DEPRECATED-mapbox-ios-sdk copied to clipboard

Tap on annotations doesn't provide enough information (both long & single taps)

Open mohpor opened this issue 11 years ago • 0 comments

If the annotation that is tapped contains more than one point on map (RMShape for example) the delegate methods doesn't provide enough information to help determine where it was touched.

For example, consider a situation where the developer wants to know where on its shape on map the user tapped.

This can be done simply by adding touch information to delegate methods of longPressOnAnnotation:onMap: and tapOnAnnotation:onMap

P.S.: In order to keep it backward compatible, I think it's more appropriate to add new (more precise) delegate methods to RMMapViewDelegate and call whichever methods the user has implemented. P.P.S: @incanus I know the priority of Mapbox-gl is higher than this basic functionalities, but I guess you don't want to start from scratch there and you would keep the gl in sync with this framework, therefore, keeping this framework up to date is not moot. I have the solutions to most of my issues here and I'd love to share it with others through pull requests, but I can't help if pull requests doesn't get merged. Thanks

mohpor avatar Sep 09 '14 10:09 mohpor