Daily Archives: November 19, 2005

Work Around in MTGoogle Plugin

Well, as a work around, if the Browser is Intenet Explorer, the Entry will use Yahoo Maps Beta.
The Javascript for this is Odd to say the least. 

I suppose the Plugin might have to be renamed a bit. 


More tweaking later… 

Found out what the Issue is with Internet Explorer…

The long and short of it: Internet Explorer wants this tidbit of code to be OUTSIDE the <div> boundries…
<sigh> Move this little snippet outside of all <div> boundries and it works ok.
Nuts. I need to do a little research and see if the API will allow me to insert this little Snippet into the bottom portion of the HTML code…

var icon = new GIcon();
icon.image = "http://www.google.com/mapfiles/marker.png";
icon.shadow = "http://www.google.com/mapfiles/shadow50.png";
icon.iconSize = new GSize(20, 34);
icon.shadowSize = new GSize(37, 34);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);

var map = new GMap(document.getElementById("map001"));
// map.addControl(new GLargeMapControl());
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.centerAndZoom(new GPoint(-73.987707, 40.741805), 2);
var point = map.getCenterLatLng();
var marker = new GMarker(point, icon);
var WINDOW_HTML = ‘<div style="width: 12em; style: font-size: small">11 Madison Avenue Nice Place</div>’;
GEvent.addListener(marker, ‘click’, function() {