From 4ac27420e12dfd620ed23cc3611ec168a3178308 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 25 Feb 2010 12:46:47 +0000 Subject: [PATCH] 2010-02-24 Miguel de Dios * include/functions_gis.php: change the setup params "maxExtent", "maxResolution", "numZoomLevels" from map to baselayer. Add new function "getAgentsLayer" to get agent info of agents in layer, but only agents not in group in layer. * operation/gis_maps/render_view.php: use new function "getAgentsLayer". * operation/gis_maps/ajax.php: fix the extract agent gis info, and clean source code. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2418 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 12 ++++++ pandora_console/include/functions_gis.php | 42 +++++++++++++++---- pandora_console/operation/gis_maps/ajax.php | 31 ++++---------- .../operation/gis_maps/render_view.php | 6 ++- 4 files changed, 59 insertions(+), 32 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b4002aa7a3..d0a4f1f73f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,15 @@ +2010-02-24 Miguel de Dios + + * include/functions_gis.php: change the setup params "maxExtent", + "maxResolution", "numZoomLevels" from map to baselayer. Add new function + "getAgentsLayer" to get agent info of agents in layer, but only agents not + in group in layer. + + * operation/gis_maps/render_view.php: use new function "getAgentsLayer". + + * operation/gis_maps/ajax.php: fix the extract agent gis info, and clean + source code. + 2010-02-25 Pablo de la ConcepciĆ³n * godmode/setup/gis_step_2.php: Modified to get the KEY to load the Google diff --git a/pandora_console/include/functions_gis.php b/pandora_console/include/functions_gis.php index 0108731018..3ccb5bf170 100644 --- a/pandora_console/include/functions_gis.php +++ b/pandora_console/include/functions_gis.php @@ -73,12 +73,7 @@ function printMap($idDiv, $iniZoom, $numLevelZooms, $latCenter, $lonCenter, $bas echo ", new OpenLayers.Control.LayerSwitcher()"; echo "],"; ?> - maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), - maxResolution: 156543.0399, - numZoomLevels: , units: 'm', //metros - //Disabled projection because with Image map not run fine...I don't know -// projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326") }); @@ -91,7 +86,11 @@ function printMap($idDiv, $iniZoom, $numLevelZooms, $latCenter, $lonCenter, $bas case 'OSM': ?> var baseLayer = new OpenLayers.Layer.OSM("", - "", {numZoomLevels: }); + "", {numZoomLevels: , + maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), + maxResolution: 156543.0399, + projection: new OpenLayers.Projection("EPSG:900913") + }); map.addLayer(baseLayer); $agent) { + $agents[$index] = $agent['nombre']; + } + + + return $agents; +} + function addPointPath($layerName, $lat, $lon, $color, $manual = 1, $id) { ?>