Sorry if this is wrong please to post my message - I'm out of options
right now.
I have the following code :
function initialize_all_venues() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
//map.setCenter(new GLatLng(53.48077, -2.23437), 12);
map.setCenter(new GLatLng(51.50002, -0.12618), 12);
// map.setUIToDefault();
}
$.get("sites/all/themes/zen/zen/template_ajax.php",{},function(xml)
{
// Run the function for each venue tag in the XML file
$('venue',xml).each(function(i) {
//alert('checking : ');
VenueNid = $(this).find("nid").text();
venueName = $(this).find("name").text();
venueLong = $(this).find("long").text();
venueLat = $(this).find("lat").text();
var point = new GLatLng(venueLat, venueLong);
var marker ;//= new Array();
marker = new GMarker(point);
map.addOverlay(marker);
setMarkerDetails(marker, venueName,
base_url+'/node/'+VenueNid);
});
});
}
function setMarkerDetails(marker, stuff, nid){
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml( "<a href='"+nid+"'
target='_blank'>"+stuff+"</a>" );
//marker.openInfoWindowHtml( "testing" );
}
);
}
Firstly, You'll notice I commented out map.setUIToDefault();. That is
because I don't want my mousewheel to zoom the map. However, the map
terrain types on the right and the zoom control bar on the left also
disappear I can't seem to find a means to active them ?!?
And secondly, IE8 for some reason wont process the loop which
processes the XML begining after the "// Run the function for each
venue tag in the XML file" comment.
Can anyone kindly shed some light on what I'm not doing or doing
wrong, please ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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
-~----------~----~----~----~------~----~------~--~---