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) { ?>