From 8a1fd27b22bc839533b7fe72122cc5b3028d6683 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 3 Mar 2010 16:25:39 +0000 Subject: [PATCH] 2010-03-03 Miguel de Dios * include/functions_gis.php: add in the last time a function "printMap2" that it is a clean function. Change the function "printMap" to call "printMap2". * include/javascript/openlayers.pandora.js: in function "js_printMap" set the spherical Mercator for google maps. * operation/gis_maps/render_view.php: add to list of $baselayers the name of baselayer. Change order of div for map because now the script don't call when document ready. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2458 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 13 ++ pandora_console/include/functions_gis.php | 155 ++++++++++++++++++ .../include/javascript/openlayers.pandora.js | 10 +- .../operation/gis_maps/render_view.php | 15 +- 4 files changed, 181 insertions(+), 12 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 4ba3918969..ac30902c9f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,16 @@ +2010-03-03 Miguel de Dios + + * include/functions_gis.php: add in the last time a function "printMap2" + that it is a clean function. Change the function "printMap" to call + "printMap2". + + * include/javascript/openlayers.pandora.js: in function "js_printMap" set + the spherical Mercator for google maps. + + * operation/gis_maps/render_view.php: add to list of $baselayers the name + of baselayer. Change order of div for map because now the script don't + call when document ready. + 2010-03-03 Ramon Novoa * include/functions_db.php: Use mysql_fetch_assoc instead of diff --git a/pandora_console/include/functions_gis.php b/pandora_console/include/functions_gis.php index 4356b4da70..7684d627bb 100644 --- a/pandora_console/include/functions_gis.php +++ b/pandora_console/include/functions_gis.php @@ -52,10 +52,165 @@ function getDataLastPositionAgent($idAgent, $returnEmptyArrayInFail = false) { return $returnVar; } +function printMap2($idDiv, $iniZoom, $numLevelZooms, $latCenter, $lonCenter, $baselayers, $controls = null) { + ?> + +