0

Is there a best practice or common pattern for allowing users to select a precise location on a map using MapKit?

I've seen examples where a user can enter an address in a search box. But what about the case where a user doesn't know the exact address and wants to select a location from the map?

Julian Bonilla
  • 243
  • 3
  • 8

3 Answers3

0

It's a bit more complex task than it seems.

Here is the guide how to detect single taps on a Web View.

I've used the same pattern to detect single taps on Map View but allowing zooming and dragging at the same time.

Hope it helps.

knuku
  • 6,082
  • 1
  • 35
  • 43
0

I would say that replicating the Maps application is close to a best practice for map applications.

You can test it for yourself; tap and hold somewhere on the map and a pin that you can move around by dragging will be dropped where you held your finger.

David Rönnqvist
  • 56,267
  • 18
  • 167
  • 205
0

The Google Maps app seems to tackle what is a reasonable idea by touching the map by instead allowing you to drop a pin on the map; the SO post might help out.

Community
  • 1
  • 1
petert
  • 6,672
  • 3
  • 38
  • 46