Reputation: 8957
I am using MapView
in my application, Which contains several markers of same user at different locations. How can i give numbers to each incoming markers in order to identify the user path in which he moves ?
Can anyone help me ?
Upvotes: 0
Views: 131
Reputation: 10713
You can extend OverlayItem by your own class and store all the information inside.
MyOverlayItem<Data> myMarker = new MyOverlayItem<Data>(geoPoint, "", "");
myMarker.setID(0);
Also yoo need to extend ItemizedOverlay
and bring markers to your MyOverlayMarker
Upvotes: 2