2010-01-27 Miguel de Dios <miguel.dedios@artica.es>

* operation/gis_maps/render_view.php: add the check if there aren't any
	connection to map.
	
	* operation/menu.php: change parameter "id" to "id_map". 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2318 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-01-28 18:15:16 +00:00
parent be35a2a1ee
commit afa846c554
3 changed files with 19 additions and 10 deletions

View File

@ -1,3 +1,10 @@
2010-01-27 Miguel de Dios <miguel.dedios@artica.es>
* operation/gis_maps/render_view.php: add the check if there aren't any
connection to map.
* operation/menu.php: change parameter "id" to "id_map".
2010-01-27 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: add function "deleteMap" for to delete the map

View File

@ -27,8 +27,9 @@ $map = get_db_row ('tgis_map', 'id_tgis_map', $idMap);
$confMap = getMapConf($idMap);
$num_baselayer=0;
foreach ($confMap as $mapC) {
if ($confMap !== false) {
foreach ($confMap as $mapC) {
$baselayers[$num_baselayer]['typeBaseLayer'] = $mapC['connection_type'];
$baselayers[$num_baselayer]['name'] = $mapC['conection_name'];
$decodeJSON = json_decode($mapC['conection_data'], true);
@ -38,6 +39,7 @@ foreach ($confMap as $mapC) {
$numZoomLevels = $mapC['num_zoom_levels'];
}
}
}
$controls = array('PanZoom', 'ScaleLine', 'Navigation', 'MousePosition', 'OverviewMap');

View File

@ -79,8 +79,8 @@ if (give_acl ($config['id_user'], 0, "AR")) {
if (! give_acl ($config["id_user"], $gisMap["group_id"], "AR")) {
continue;
}
$sub["operation/gis_maps/render_view&amp;id=".$gisMap["id_tgis_map"]]["text"] = mb_substr ($gisMap["map_name"], 0, 15);
$sub["operation/gis_maps/render_view&amp;id=".$gisMap["id_tgis_map"]]["refr"] = 0;
$sub["operation/gis_maps/render_view&amp;map_id=".$gisMap["id_tgis_map"]]["text"] = mb_substr ($gisMap["map_name"], 0, 15);
$sub["operation/gis_maps/render_view&amp;map_id=".$gisMap["id_tgis_map"]]["refr"] = 0;
}
$menu["gismaps"]["sub"] = $sub;