Sep 092011

I’m creating a Maps applicition on Android. I had my location in an ItemizedOverlay, displaying a man-icon (similar to the yellow streetview marker). Then I wanted to add a layer with markers, so I created another ItemizedOverlay. But I can’t seem to add that to my MapView. As soon as I do that, I get a Forced Close.

Changing the first ItemizedOverlay to a MyLocationOverlay does not do the trick, the FC still kicks in as soon as I try to add the second overlay. I must be doing something wrong…….

Update: the initial code was created very late at night. And then things get mixed up. Don’t use before instantiate….DUH. Needless to say, it works now 😉

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>