fivenine-zurich/UnifiedMaps

Overlays touch event

Closed this issue · 7 comments

Is there an event that triggers when you play a circle made with overlays?

or some way of drawing a polygon and having a click event?

Greetings.

Next week some Map Click Events will be available, Also Pin drag availability
But not on polygon.

In some way you will be able to attach some Pin to the polygon's vertices or to his center,
then drag pins and redraw the overlay.

there are #83 #81 #76

Is the drag of the pin already available? What I was thinking is to have the pin in the middle of the map always and the pin in a static position, or will the pin drag be anywhere on the map?

Greetings.

For now the pin will be draggable anywhere by a long press on the static map.

If you want a pin fixed on the middle on a mobile map.
I think we will need to implement another event when MapRegion or Camera is Moving and put the pin at his center each time is moving.
Or managed it by a pin never setted to MKAnnotationViewDragState.None when drag on iOS.
For Android there are some tutorial in Java.

Then the UnifieMaps or the IMapPin will have one Enum for two draggable type. "Fixed" or "Mobile"?

I have no time for the moment to do it.
But maybe you could take a look?

Regards,

Also GoogleMap.IOnCameraChangeListener has been Obsoleted on Android
So Unified Map will need an update on it.

Hi Mobilityappsinc,

I have that case in an app we develop as well. We just use the custom marker image as another view on top of UnifiedMaps exactly at the center, so it is always static. Getting the coordinates of center of the current mapview should be straight forward.

I don't think this is something UnifiedMaps needs to support, as it is easily done on a per App basis.

Thanks veryhumble.

And excellent work with the draggable functionality.

Thanks very much.