2010-02-18 Miguel de Dios <miguel.dedios@artica.es>

* operation/gis_maps/render_view.php: change to use new tables.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2378 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-02-18 17:32:14 +00:00
parent 5b1ce7cc82
commit ced57d7aa1
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2010-02-18 Miguel de Dios <miguel.dedios@artica.es>
* operation/gis_maps/render_view.php: change to use new tables.
2010-02-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: check in the function "addPath" if the agent

View File

@ -78,9 +78,9 @@ if ($layers != false) {
$agentNames = get_group_agents($layer['tgrupo_id_grupo'],false,'none');
foreach ($agentNames as $agentName) {
$idAgent = get_agent_id($agentName);
$coords = get_agent_last_coords($idAgent);
$coords = getDataLastPositionAgent($idAgent);
if ($coords['last_latitude'] == null)
if ($coords === false)
continue;
$icon = get_agent_icon_map($idAgent, true);
@ -88,7 +88,7 @@ if ($layers != false) {
if ($show_history == 'y') {
addPath($layer['layer_name'], $idAgent);
}
addPoint($layer['layer_name'], $agentName, $coords['last_latitude'], $coords['last_longitude'], $icon, 20, 20, $idAgent, 'point_agent_info');
addPoint($layer['layer_name'], $agentName, $coords['stored_latitude'], $coords['stored_longitude'], $icon, 20, 20, $idAgent, 'point_agent_info');
}
}