Closed GoogleCodeExporter closed 9 years ago
Did a little more digging, seems like this error happens anytime a
MarkerwithLabel is removed from the map with .setMap(null);
For example:
if (defaultCityMarkers) {
for (i = 0; i < defaultCityMarkers.length; i++) {
defaultCityMarkers[i].setMap(null);
}
}
Is this a bug or am I doing something wrong?
Original comment by justin.k...@gmail.com
on 14 Sep 2011 at 12:38
Out of curiosity, do you see the same error if you change "new MarkerWithLabel"
to "new google.maps.Marker" ?
Also, put try { xxx } catch (e ) { alert(e.message); } around the loop where
you call setMap(null) to see what error message appears.
Original comment by garylitt...@gmail.com
on 14 Sep 2011 at 4:02
Still testing a few things, but to get back to you, the error message when
using a try/catch is 'this.labelDiv_.parentNode' is null or not an object.
I'm guessing it has something to do with how I'm loading/unloading the markers,
not actually with this add-on. I'll return with more info as/if I have it.
Original comment by justin.k...@gmail.com
on 14 Sep 2011 at 6:20
Are you calling the code to remove markers from the map before the markers have
been added to the map.
Original comment by garylitt...@gmail.com
on 15 Sep 2011 at 8:34
Request for info was ignored, so marking this bug as invalid.
Original comment by garylitt...@gmail.com
on 21 Feb 2012 at 7:49
Original issue reported on code.google.com by
justin.k...@gmail.com
on 13 Sep 2011 at 10:27