mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
2010-03-04 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: in function "printMap2" disable by default to add the control "layerSwitcher". * operation/gis_maps/render_view.php: add the "layerSwitcher" to controls to show. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2472 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
6e6f3f5bb8
commit
0fb2a95770
@ -1,3 +1,11 @@
|
|||||||
|
2010-03-04 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_gis.php: in function "printMap2" disable by default
|
||||||
|
to add the control "layerSwitcher".
|
||||||
|
|
||||||
|
* operation/gis_maps/render_view.php: add the "layerSwitcher" to controls to
|
||||||
|
show.
|
||||||
|
|
||||||
2010-03-04 Miguel de Dios <miguel.dedios@artica.es>
|
2010-03-04 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_gis.php: in function "getAgentMap" change the controls
|
* include/functions_gis.php: in function "getAgentMap" change the controls
|
||||||
|
@ -59,33 +59,41 @@ function printMap2($idDiv, $iniZoom, $numLevelZooms, $latCenter, $lonCenter, $ba
|
|||||||
|
|
||||||
var controlVar = [
|
var controlVar = [
|
||||||
<?php
|
<?php
|
||||||
foreach ($controls as $control) {
|
$first = true;
|
||||||
|
foreach ($controls as $control) {
|
||||||
|
if (!$first)
|
||||||
|
echo ',';
|
||||||
|
$first = false;
|
||||||
|
|
||||||
switch ($control) {
|
switch ($control) {
|
||||||
case 'Navigation':
|
case 'Navigation':
|
||||||
echo "new OpenLayers.Control.Navigation(),";
|
echo "new OpenLayers.Control.Navigation()";
|
||||||
break;
|
break;
|
||||||
case 'MousePosition':
|
case 'MousePosition':
|
||||||
echo "new OpenLayers.Control.MousePosition(),";
|
echo "new OpenLayers.Control.MousePosition()";
|
||||||
break;
|
break;
|
||||||
case 'OverviewMap':
|
case 'OverviewMap':
|
||||||
echo "new OpenLayers.Control.OverviewMap(),";
|
echo "new OpenLayers.Control.OverviewMap()";
|
||||||
break;
|
break;
|
||||||
case 'PanZoom':
|
case 'PanZoom':
|
||||||
echo "new OpenLayers.Control.PanZoom(),";
|
echo "new OpenLayers.Control.PanZoom()";
|
||||||
break;
|
break;
|
||||||
case 'PanZoomBar':
|
case 'PanZoomBar':
|
||||||
echo "new OpenLayers.Control.PanZoomBar(),";
|
echo "new OpenLayers.Control.PanZoomBar()";
|
||||||
break;
|
break;
|
||||||
case 'ScaleLine':
|
case 'ScaleLine':
|
||||||
echo "new OpenLayers.Control.ScaleLine(),";
|
echo "new OpenLayers.Control.ScaleLine()";
|
||||||
break;
|
break;
|
||||||
case 'Scale':
|
case 'Scale':
|
||||||
echo "new OpenLayers.Control.Scale(),";
|
echo "new OpenLayers.Control.Scale()";
|
||||||
|
break;
|
||||||
|
case 'layerSwitcher':
|
||||||
|
echo "new OpenLayers.Control.LayerSwitcher()";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
new OpenLayers.Control.LayerSwitcher()];
|
];
|
||||||
|
|
||||||
|
|
||||||
var option = {
|
var option = {
|
||||||
|
@ -71,7 +71,7 @@ if ($gmap_layer === true) {
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
$controls = array('PanZoomBar', 'ScaleLine', 'Navigation', 'MousePosition');
|
$controls = array('PanZoomBar', 'ScaleLine', 'Navigation', 'MousePosition', 'layerSwitcher');
|
||||||
|
|
||||||
$layers = getLayers($idMap);
|
$layers = getLayers($idMap);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user