You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Adding a polygon in the MGLMapView and add a UIImageView to facilitate Drag and Drop of the polygon.
After long pressing the polygon, now it's ready to move. I get the old center point of the polygon as CLLocationCoordinate and the current point from UIImageView’s touch move function, then find the difference between old point and current point. Loop all the points of the polygon and change the coordinate values with respect to the difference between two points.
Now I have the new updated coordinates of the polygon .
I removed the old polygon and added the new polygon in the mapView.
Expected behaviour
Screen shot of google maps behaviour
Actual behavior
But in MapBox there is lots of flickering and movement doesn't seem to be native/realistic.
The text was updated successfully, but these errors were encountered:
Hi, @BharathM02. Thank you for using Mapbox. This repo is for reporting issues or requesting features related to the Mapbox Map SDK. For support or assistance with "how to" questions, please reach out to our support team or check our documentation. You can also ask other users on StackOverflow.
Hi @fabian-guerra , sorry if the title mislead you to assume this as a support ticket. This is actually a issue and a feature request.
When i change the coordinates on a polygon, in addition to showing the new polygon, the old polygon isn't removed hence i need to remove the source polygon and add it as a new one, thus this doesn't render properly and looks non-realistic.
Platform: IOS
Mapbox SDK version: 4.1.0
What I’m doing :
Adding a polygon in the MGLMapView and add a UIImageView to facilitate Drag and Drop of the polygon.
After long pressing the polygon, now it's ready to move. I get the old center point of the polygon as CLLocationCoordinate and the current point from UIImageView’s touch move function, then find the difference between old point and current point. Loop all the points of the polygon and change the coordinate values with respect to the difference between two points.
Now I have the new updated coordinates of the polygon .
I removed the old polygon and added the new polygon in the mapView.
Expected behaviour
Screen shot of google maps behaviour
Actual behavior
But in MapBox there is lots of flickering and movement doesn't seem to be native/realistic.
The text was updated successfully, but these errors were encountered: