49,7 → 49,7 |
$val = $this->options['nom_bdd']; |
$script = ' |
// Variables globales |
// cette fonction peut déjà être présente |
// cette fonction peut d�j� �tre pr�sente |
if (typeof(addListener) != \'function\') { |
// fonction portable pour ajout de listeners |
function addListener(element, baseName, handler) |
73,11 → 73,29 |
// On centre la carte sur le languedoc roussillon |
center: point, |
zoom: 7, |
mapTypeId: google.maps.MapTypeId.G_HYBRID_MAP, |
mapTypeId: "OSM", |
mapTypeControlOptions: { |
mapTypeIds: ["OSM", |
google.maps.MapTypeId.ROADMAP, |
google.maps.MapTypeId.HYBRID, |
google.maps.MapTypeId.SATELLITE, |
google.maps.MapTypeId.TERRAIN] |
}, |
mapTypeControl: true, |
scaleControl: true |
}; |
map = new google.maps.Map(document.getElementById("map"), optionsGoogleMapsv3); |
map.mapTypes.set("OSM", new google.maps.ImageMapType({ |
getTileUrl: function(coord, zoom) { |
return "http://osm.tela-botanica.org/tile/" + // cache de tuiles avec nginx |
zoom + "/" + coord.x + "/" + coord.y + ".png"; |
}, |
tileSize: new google.maps.Size(256, 256), |
isPng: true, |
alt: "OpenStreetMap", |
name: "OSM", |
maxZoom: 19 |
})); |
|
marker = new google.maps.Marker({ |
position: point, |