Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 475 → Rev 476

/branches/v3.1-blanche-neige/bibliotheque/bazar.fonct.google.php
60,14 → 60,13
// On centre la carte sur le languedoc roussillon
center: new google.maps.LatLng(43.84245116699036, 3.768310546875),
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]
mapTypeIds: ["OSM",
google.maps.MapTypeId.ROADMAP,
google.maps.MapTypeId.HYBRID,
google.maps.MapTypeId.SATELLITE,
google.maps.MapTypeId.TERRAIN]
},
mapTypeControl: true,
scaleControl: true
/branches/v3.1-blanche-neige/bibliotheque/elements/carte_google.php
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 = 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,