'+content+'
'
google.maps.event.addListener(marker, "click", function() {
if (infowindow) infowindow.close();
infowindow = new google.maps.InfoWindow({content: html});
infowindow.open(map,marker);
});
marker.mycategory = category;
gmarkers.push(marker);
}
function geocodeMarker(address,title,content,category,icon) {
if (geocoder) {
geocoder.geocode( { "address" : address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var latlng = results[0].geometry.location;
addMarker(results[0].geometry.location,title,content,category,icon)
}
});
}
}
function geocodeCenter(address) {
if (geocoder) {
geocoder.geocode( { "address": address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
} else {
}
});
}
}
function addDirection(from,to) {
var request = {
origin:from,
destination:to,
travelMode: google.maps.DirectionsTravelMode.DRIVING
};
directionsService.route(request, function(response, status) {
if (status == google.maps.DirectionsStatus.OK) {
directions.setDirections(response);
}
});
if(infowindow) { infowindow.close(); }
}
function showCategory(category) {
for (var i=0; i ","","https://wii-attitude.fr/upload2/images/nc-wii-icone.png");
}
window.onload=initialize;