101,19 → 101,7 |
position: point, |
map: map |
}); |
|
var mention = \'<div id="origine-donnees">Tuiles : <a href="http://www.openstreetmap.fr" target="_blank">OsmFr</a><br/>\'; |
mention += \'Carte : <a href="http://www.openstreetmap.org/copyright" target="_blank">© les contributeurs d\\\'OpenStreetMap</a></div>\'; |
$("#map").append(mention); |
|
// ecouteur sur changement de fond |
google.maps.event.addListener( map, \'maptypeid_changed\', function() { |
if (map.getMapTypeId() == "OSM") { |
$("#origine-donnees").show(); |
} else { |
$("#origine-donnees").hide(); |
} |
}); |
|
};' ; |
GEN_stockerCodeScript($script); |
//GEN_stockerFichierScript('googleMapScript', $this->options['nom_bdd']); |