{"id":1117,"date":"2011-09-09T14:08:22","date_gmt":"2011-09-09T12:08:22","guid":{"rendered":"http:\/\/www.switchbl8.nl\/blog\/?p=1117"},"modified":"2011-09-09T14:08:22","modified_gmt":"2011-09-09T12:08:22","slug":"annoying-maps","status":"publish","type":"post","link":"https:\/\/www.switchbl8.nl\/blog\/2011\/09\/annoying-maps\/","title":{"rendered":"Annoying Maps"},"content":{"rendered":"<p>I&#8217;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&#8217;t seem to add that to my MapView. As soon as I do that, I get a Forced Close.<\/p>\n<p>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&#8230;&#8230;.<\/p>\n<p><strong>Update: the initial code was created very late at night. And then things get mixed up. Don&#8217;t use before instantiate&#8230;.DUH. Needless to say, it works now \ud83d\ude09<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;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&#8217;t seem to add that to my MapView. As soon as I do that, I get <a href='https:\/\/www.switchbl8.nl\/blog\/2011\/09\/annoying-maps\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[47,59,60],"class_list":["post-1117","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-android","tag-gis","tag-google","category-1-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/comments?post=1117"}],"version-history":[{"count":0,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1117\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/media?parent=1117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/categories?post=1117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/tags?post=1117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}