/trunk/bibliotheque/bazar.fonct.cal.php |
---|
159,7 → 159,7 |
} |
$url->removeQueryString('ctt'); |
$url->removeQueryString('tt'); |
$tc_txt = 'Afficher les titres complets des événements'; |
$tc_txt = 'Afficher les titres complets des �v�nements'; |
if (isset($_GET['tt']) && $_GET['tt'] == '0') { |
$tc_txt = 'Tronquer les titres des �v�nements'; |
$url->addQueryString('tt', $_GET['tt']); |
/trunk/bibliotheque/elements/carte_google.php |
---|
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']); |
120,7 → 108,7 |
GEN_stockerFichierScript('googleMapScript', "http://maps.googleapis.com/maps/api/js?sensor=false&key=".BAZ_GOOGLE_KEY); |
// On ajoute l attribut load a la balise body |
//GEN_AttributsBody('onload', 'load()'); |
$html = '<div id="map" style="width: 600px; height: 300px"></div>'; |
$html = '<div id="map" style="width: 400px; height: 300px"></div>'; |
return $html; |
} |
} |
/trunk/bibliotheque/bazar.fonct.google.php |
---|
84,19 → 84,6 |
maxZoom: 19 |
})); |
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(); |
} |
}); |
google.maps.event.addListener(map, "click", function(event) { |
if (marker != null) { |
marker.setMap(null); |