19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: bazar.carte_google.php,v 1.1 2007-06-04 15:26:57 alexandre_tb Exp $ |
// CVS : $Id: bazar.carte_google.php,v 1.2 2007-06-13 10:02:47 alexandre_tb Exp $ |
/** |
* |
*@package bazar |
27,7 → 27,7 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2007 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
69,7 → 69,32 |
var map = null; |
var lat = document.getElementById("latitude"); |
var lon = document.getElementById("longitude"); |
// Pour gerer la taille |
var winW = 630, winH = 460; |
var deltaH = 320; |
var deltaW = 320; |
|
function setWinHW() { |
if (window.innerHeight) { |
winW = window.innerWidth - deltaW; |
winH = window.innerHeight - deltaH; |
} else { |
winW = document.documentElement.offsetWidth - 20 - deltaW; |
winH = document.documentElement.offsetHeight - 20 - deltaH ; |
} |
|
var me = document.getElementById("map"); |
if (me != null) { |
me.style.width= \'\' + winW + \'px\'; |
me.style.height= \'\' + winH + \'px\'; |
} |
} |
|
window.onresize = function () { |
setWinHW(); |
if (map) map.checkResize(); |
} |
|
function createMarker(point, chaine) { |
var marker = new GMarker(point); |
GEvent.addListener(marker, "click", function() { |
78,6 → 103,7 |
return marker; |
} |
function load() { |
setWinHW(); |
if (GBrowserIsCompatible()) { |
map = new GMap2(document.getElementById("map")); |
map.addControl(new GSmallMapControl()); |
108,5 → 134,8 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.1 2007-06-04 15:26:57 alexandre_tb |
* version initiale |
* |
* +-- Fin du code ----------------------------------------------------------------------------------------+ |
*/ |