From 42f4663638627577bd9d96d2a6853f365683ef78 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 17 Feb 2010 17:27:25 +0000 Subject: [PATCH] 2010-02-17 Miguel de Dios * include/functions_gis.php: add the parameter id layer in the function "makeLayer" for add the id layer (id of db) in the layer. Fill in the sourcecode in the function "activateAjaxRefresh" that now show new agents in the map in real time and add make changes in this function. * operation/gis_maps/render_view.php: use the new parameter in the call of function "makeLayer". * operation/gis_maps/ajax.php: add code to return new positions (and name and icon) when the ask the positions in "activateAjaxRefresh". git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2373 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 13 ++++ pandora_console/include/functions_gis.php | 41 ++++++++-- pandora_console/operation/gis_maps/ajax.php | 75 ++++++++++++++++--- .../operation/gis_maps/render_view.php | 2 +- pandora_console/pandoradb.sql | 5 -- 5 files changed, 115 insertions(+), 21 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 76d7656fbd..2e17ee541f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,16 @@ +2010-02-17 Miguel de Dios + + * include/functions_gis.php: add the parameter id layer in the function + "makeLayer" for add the id layer (id of db) in the layer. Fill in the + sourcecode in the function "activateAjaxRefresh" that now show new + agents in the map in real time and add make changes in this function. + + * operation/gis_maps/render_view.php: use the new parameter in the call + of function "makeLayer". + + * operation/gis_maps/ajax.php: add code to return new positions (and name + and icon) when the ask the positions in "activateAjaxRefresh". + 2010-02-16 Raúl Mateos * extensions/module_groups.php: Better description text. Changed font diff --git a/pandora_console/include/functions_gis.php b/pandora_console/include/functions_gis.php index c5d98f07f0..9a87ba803d 100644 --- a/pandora_console/include/functions_gis.php +++ b/pandora_console/include/functions_gis.php @@ -90,7 +90,7 @@ function printMap($idDiv, $iniZoom, $numLevelZooms, $latCenter, $lonCenter, $bas ', {styleMap: style} ); + layer.data = {}; + layer.data.id = ''; + layer.setVisibility(); map.addLayer(layer); @@ -192,7 +195,7 @@ function activateAjaxRefresh($layers = null, $lastTimeOfData = null) { ?>