gachseang / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
0 stars 0 forks source link

[GoogleEarth] function findMapTypeControlDiv_() returns undefined in IE8 #100

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The call to GoogleEarth.prototype.findMapTypeControlDiv_() return undefined in 
IE8 so a JavaScript exception is thrown after the next call to 
this.setZIndexes_(mapTypeControlDiv).

Using the debugger I've found the reason to be the expect string 
'title="Earth"' is in reality 'title=Earth', without double quotes.

I suggest replacing the search string with ">Earth<":

//  var title = 'title="' + this.earthTitle_ + '"';
  var title = '>' + this.earthTitle_ + '<';

Original issue reported on code.google.com by theb...@emanueleziglioli.it on 13 Jun 2011 at 1:41