Hi Neelay,
Query 1: How to make arrow in the end of arc and lines?
There is no direct support for drawing arrows at the end of the arcs or lines. If you wish to draw custom shape above the maps, you can use the
MapZoomPanBehavior.paint() override method. Please check the following links to know more about it.
Query 2: Is there any way to show the distance in coordinates in lines. Is there any in build method?
We don’t have any built-in methods to calculate the distance of the coordinates. We have already logged a feature request for this, and the status can be tracked from the feedback portal link.
We will prioritize the features every release based on the demands and priority. So, this feature will be available in any of our releases. If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal.
Disclaimer: The date for this feature implementation is tentative and not a commitment on our parts.
Query 3: onclick event for line and arc in the map hope you can guide me.
We have a tap callback for the
MapLine and
MapArc layers to get the notification in which line or arc has interacted. Please check the following UG documentation to know about these callbacks.
Please let us know if you need any further assistance in this.
Regards,
Praveen G.