1) The markers display for IE8 but not for IE9.
2) Here is the code that creates the arkers.
/**** Create Markers from the data ****/
function createMarker(map, data, index) {
var tooltip;
var marker;
var pt = new GLatLng(data.pts[0], data.pts[1]);
if (data.icon[0] == '') {
marker = new GMarker(pt);
}
else {
var myIcon = new GIcon();
myIcon.image= data.icon[0];
myIcon.iconSize = new GSize(data.icon[1],data.icon[2]);
var half = (data.icon[1]/2) -1;
myIcon.iconAnchor= new GPoint(half,data.icon[2]);
markerOptions = {icon:myIcon};
marker = new GMarker(pt,markerOptions);
}
if (data.html != '')
/
*************************************************************************/
/*** use description variable for math
scores ***/
/*** use html variable for reading scores and add line breaks -
sasayd ***/
/
*************************************************************************/
var windowtext = "<b>"+data.name+'</b><br>'+data.description +
'<br>'+ data.html;
/* var windowtext = "<b>"+data.name+'</b><br/> '+data.description
+' <a href='+data.html+' target="new">'+data.html+'</a>'; */
else
var windowtext = "<b>"+data.name+'</b><br/> '+data.description;
GEvent.addListener(marker,'click', function() {
map.openInfoWindowHtml(pt, windowtext);
});
/*** Add a new marker "mouseover" listener - sasayd ***/
GEvent.addListener(marker,"mouseover", function() {
map.openInfoWindowHtml(pt, windowtext);
});
map.addOverlay(marker);
allAnno.push(marker);
}
3) The data for the markers is stored in a javascript file like this,
var SASGadata=
[
{ Gtype: 'GMarker',
name: "ABC School",
description: "Prior Math Score: 105 - 2012 Target Score: 133",
colors: ['#FF0000'],
transparency: ['0.5'],
size: "0.7",
html: 'Prior Reading Score: 154 - 2012 Target Score: 184',
icon: ['http://maps.google.com/mapfiles/ms/micons/red-dot.png', 32,
32],
pts: [41.336352,-73.05111]
},
{ Gtype: 'GMarker',
name: "ABCD School",
description: "Prior Math Score: 102 - 2012 Target Score: 132",
colors: ['#FF0000'],
transparency: ['0.5'],
size: "0.7",
html: 'Prior Reading Score: 154 - 2012 Target Score: 183',
icon: ['http://maps.google.com/mapfiles/ms/micons/red-dot.png', 32,
32],
pts: [41.342081,-73.07169]
},
{ Gtype: 'GMarker',
name: "Abc Middle School",
description: "Prior Math Score: 264 - 2012 Target Score: 280",
colors: ['#FF0000'],
transparency: ['0.5'],
size: "0.7",
html: 'Prior Reading Score: 206 - 2012 Target Score: 228',
icon: ['http://maps.google.com/mapfiles/ms/micons/red-dot.png', 32,
32],
pts: [41.3409891823408,-73.083761270665]
}
];
Is there a workaround we can use to get this to work using Google Maps
API V2 and IE9. I don't think we can change the hundreds of maps we
have to V3.
Thanks, Annette
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.