This is a matter of having your ItemizedOverlay handle more than one marker, in your size() and createItem() methods. The size() method should return the number of markers you want and createItem() should return each OverlayItem based on the index.
This is a matter of having your ItemizedOverlay handle more than one marker, in your size() and createItem() methods. The size() method should return the number of markers you want and createItem() should return each OverlayItem based on the index. Here is a sample project demonstrating a map with four markers.
Thanks for your link and it works...But I want to add a marker in my current location and others marker in different location. After detecting my current location, I can't add the marker...can you tell me why – shopno nill Sep 29 at 6:12.
If you are using a low number of markers, you can also use the same overlay class multiple times. The basic map overlay is a lot easier to use, but after a certain point, it becomes very inefficient. I used two instances of a class for a current location and a flagged location as follows: overlayList = mapView.getOverlays(); overlayList.clear(); locationOverlay = new MapOverlay(); pushpinOverlay = new MapOverlay(); Set the marker id for the png, the x offset, and the y offset here.(Functions coded in the MapOverlay class.) overlayList.
Add(locationOverlay); overlayList. Add(pushpinOverlay); Eventually invalidate map to force a redraw. For two markers, it worked very nicely.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.