Hi there,

I've been playing around with the MapActivity all day and haven't
figured out how to add more than 1 OverlayItem to the map overlays.

>From following the 
>http://developer.android.com/guide/tutorials/views/hello-mapview.html
tutorial, it says that another overlayitem can be added by writing the
following lines before the addOverlay method is called:
***
because we created our ItemizedOverlay class with an ArrayList, we can
continue adding new OverlayItems. Try adding another one. Before the
addOverlay() method is called, add these lines:

GeoPoint point2 = new GeoPoint(35410000, 139460000);
OverlayItem overlayitem2 = new OverlayItem(point2, "", "");
***

However, I can't get the second GeoPoint to show up on the Map in the
emulator at all. I then tried instantiating another ItemizedOverlay
and adding the second overlayItem to it, and then adding the second
overlay to the mapOverlays list and that did not work either.

Has anyone gotten this tutorial to show Tokyo successfully?

Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to