Open GoogleCodeExporter opened 8 years ago
Having the same problem here.
Looks like an issue in the MarkerManager at line 97 because sType will throw an
error for the "constructor" property:
for (var sType in mapTypes ) {
if (typeof map.mapTypes.get(sType) …
We have to add `mapTypes.hasOwnProperty(sType)` to the condition:
for (var sType in mapTypes ) {
if (mapTypes.hasOwnProperty(sType) && typeof map.mapTypes.get(sType) === 'object' && typeof map.mapTypes.get(sType).maxZoom === 'number') {
var mapTypeMaxZoom = map.mapTypes.get(sType).maxZoom;
if (mapTypeMaxZoom > mapMaxZoom) {
mapMaxZoom = mapTypeMaxZoom;
}
}
}
Hope this fixes your issue!
– Martin
Original comment by kleppe
on 21 Nov 2012 at 10:21
[deleted comment]
yes it works.
Thanks Martin.
Original comment by le.thanh...@greensun.com.vn
on 21 Nov 2012 at 11:08
it worked for me too.
Thanks Martin
Original comment by JCA...@gmail.com
on 21 Nov 2012 at 8:46
Original issue reported on code.google.com by
le.thanh...@greensun.com.vn
on 21 Nov 2012 at 8:09