Browse Source

moved open layers to static

Piotr Labudda 8 năm trước cách đây
mục cha
commit
7ff7174620
74 tập tin đã thay đổi với 46 bổ sung46 xóa
  1. 1 1
      SE/se-lib/TableAjaxMap.php
  2. 0 0
      SE/static/open-layers-2/OpenLayers.js
  3. 0 0
      SE/static/open-layers-2/img/blank.gif
  4. 0 0
      SE/static/open-layers-2/img/cloud-popup-relative.png
  5. 0 0
      SE/static/open-layers-2/img/drag-rectangle-off.png
  6. 0 0
      SE/static/open-layers-2/img/drag-rectangle-on.png
  7. 0 0
      SE/static/open-layers-2/img/east-mini.png
  8. 0 0
      SE/static/open-layers-2/img/layer-switcher-maximize.png
  9. 0 0
      SE/static/open-layers-2/img/layer-switcher-minimize.png
  10. 0 0
      SE/static/open-layers-2/img/marker-blue.png
  11. 0 0
      SE/static/open-layers-2/img/marker-gold.png
  12. 0 0
      SE/static/open-layers-2/img/marker-green.png
  13. 0 0
      SE/static/open-layers-2/img/marker.png
  14. 0 0
      SE/static/open-layers-2/img/measuring-stick-off.png
  15. 0 0
      SE/static/open-layers-2/img/measuring-stick-on.png
  16. 0 0
      SE/static/open-layers-2/img/north-mini.png
  17. 0 0
      SE/static/open-layers-2/img/panning-hand-off.png
  18. 0 0
      SE/static/open-layers-2/img/panning-hand-on.png
  19. 0 0
      SE/static/open-layers-2/img/slider.png
  20. 0 0
      SE/static/open-layers-2/img/south-mini.png
  21. 0 0
      SE/static/open-layers-2/img/west-mini.png
  22. 0 0
      SE/static/open-layers-2/img/zoom-minus-mini.png
  23. 0 0
      SE/static/open-layers-2/img/zoom-plus-mini.png
  24. 0 0
      SE/static/open-layers-2/img/zoom-world-mini.png
  25. 0 0
      SE/static/open-layers-2/img/zoombar.png
  26. 0 0
      SE/static/open-layers-2/style.css
  27. 0 0
      SE/static/open-layers-2/theme/default/google.css
  28. 0 0
      SE/static/open-layers-2/theme/default/google.tidy.css
  29. 0 0
      SE/static/open-layers-2/theme/default/ie6-style.css
  30. 0 0
      SE/static/open-layers-2/theme/default/ie6-style.tidy.css
  31. 0 0
      SE/static/open-layers-2/theme/default/img/add_point_off.png
  32. 0 0
      SE/static/open-layers-2/theme/default/img/add_point_on.png
  33. 0 0
      SE/static/open-layers-2/theme/default/img/blank.gif
  34. 0 0
      SE/static/open-layers-2/theme/default/img/close.gif
  35. 0 0
      SE/static/open-layers-2/theme/default/img/drag-rectangle-off.png
  36. 0 0
      SE/static/open-layers-2/theme/default/img/drag-rectangle-on.png
  37. 0 0
      SE/static/open-layers-2/theme/default/img/draw_line_off.png
  38. 0 0
      SE/static/open-layers-2/theme/default/img/draw_line_on.png
  39. 0 0
      SE/static/open-layers-2/theme/default/img/draw_point_off.png
  40. 0 0
      SE/static/open-layers-2/theme/default/img/draw_point_on.png
  41. 0 0
      SE/static/open-layers-2/theme/default/img/draw_polygon_off.png
  42. 0 0
      SE/static/open-layers-2/theme/default/img/draw_polygon_on.png
  43. 0 0
      SE/static/open-layers-2/theme/default/img/editing_tool_bar.png
  44. 0 0
      SE/static/open-layers-2/theme/default/img/geolocation-off.png
  45. 0 0
      SE/static/open-layers-2/theme/default/img/geolocation-on.png
  46. 0 0
      SE/static/open-layers-2/theme/default/img/move_feature_off.png
  47. 0 0
      SE/static/open-layers-2/theme/default/img/move_feature_on.png
  48. 0 0
      SE/static/open-layers-2/theme/default/img/navigation_history.png
  49. 0 0
      SE/static/open-layers-2/theme/default/img/overview_replacement.gif
  50. 0 0
      SE/static/open-layers-2/theme/default/img/pan-panel-NOALPHA.png
  51. 0 0
      SE/static/open-layers-2/theme/default/img/pan-panel.png
  52. 0 0
      SE/static/open-layers-2/theme/default/img/pan_off.png
  53. 0 0
      SE/static/open-layers-2/theme/default/img/pan_on.png
  54. 0 0
      SE/static/open-layers-2/theme/default/img/panning-hand-off.png
  55. 0 0
      SE/static/open-layers-2/theme/default/img/panning-hand-on.png
  56. 0 0
      SE/static/open-layers-2/theme/default/img/refresh_feature_off.png
  57. 0 0
      SE/static/open-layers-2/theme/default/img/refresh_feature_on.png
  58. 0 0
      SE/static/open-layers-2/theme/default/img/remove_point_off.png
  59. 0 0
      SE/static/open-layers-2/theme/default/img/remove_point_on.png
  60. 0 0
      SE/static/open-layers-2/theme/default/img/ruler.png
  61. 0 0
      SE/static/open-layers-2/theme/default/img/save_features_off.png
  62. 0 0
      SE/static/open-layers-2/theme/default/img/save_features_on.png
  63. 0 0
      SE/static/open-layers-2/theme/default/img/view_next_off.png
  64. 0 0
      SE/static/open-layers-2/theme/default/img/view_next_on.png
  65. 0 0
      SE/static/open-layers-2/theme/default/img/view_previous_off.png
  66. 0 0
      SE/static/open-layers-2/theme/default/img/view_previous_on.png
  67. 0 0
      SE/static/open-layers-2/theme/default/img/zoom-panel-NOALPHA.png
  68. 0 0
      SE/static/open-layers-2/theme/default/img/zoom-panel.png
  69. 0 0
      SE/static/open-layers-2/theme/default/style.css
  70. 0 0
      SE/static/open-layers-2/theme/default/style.mobile.css
  71. 0 0
      SE/static/open-layers-2/theme/default/style.mobile.tidy.css
  72. 0 0
      SE/static/open-layers-2/theme/default/style.tidy.css
  73. 0 0
      SE/static/open-layers-2/wps.js
  74. 45 45
      SE/superedit-OPEN_LAYERS_WPS.php

+ 1 - 1
SE/se-lib/TableAjaxMap.php

@@ -62,8 +62,8 @@ class TableAjaxMap {
 	public function printJS() {
 		$layers = TableAjaxMap::getAdditionalLayers($this->_zasobID);
 		$testFirstLayer = (count($layers))? $layers[0] : array();
+		echo UI::h('script', [ 'src' => "static/open-layers-2/OpenLayers.js" ]);
 		?>
-<script src="stuff/open-layers/OpenLayers.js"></script>
 <script>
 OpenLayers.ProxyHost = "index-ajax.php?_zasobID=<?php echo $this->_zasobID; ?>&_cls=<?php echo __CLASS__; ?>&_task=PROXY&url=";
 

+ 0 - 0
SE/stuff/open-layers/OpenLayers.js → SE/static/open-layers-2/OpenLayers.js


+ 0 - 0
SE/stuff/open-layers/img/blank.gif → SE/static/open-layers-2/img/blank.gif


+ 0 - 0
SE/stuff/open-layers/img/cloud-popup-relative.png → SE/static/open-layers-2/img/cloud-popup-relative.png


+ 0 - 0
SE/stuff/open-layers/img/drag-rectangle-off.png → SE/static/open-layers-2/img/drag-rectangle-off.png


+ 0 - 0
SE/stuff/open-layers/img/drag-rectangle-on.png → SE/static/open-layers-2/img/drag-rectangle-on.png


+ 0 - 0
SE/stuff/open-layers/img/east-mini.png → SE/static/open-layers-2/img/east-mini.png


+ 0 - 0
SE/stuff/open-layers/img/layer-switcher-maximize.png → SE/static/open-layers-2/img/layer-switcher-maximize.png


+ 0 - 0
SE/stuff/open-layers/img/layer-switcher-minimize.png → SE/static/open-layers-2/img/layer-switcher-minimize.png


+ 0 - 0
SE/stuff/open-layers/img/marker-blue.png → SE/static/open-layers-2/img/marker-blue.png


+ 0 - 0
SE/stuff/open-layers/img/marker-gold.png → SE/static/open-layers-2/img/marker-gold.png


+ 0 - 0
SE/stuff/open-layers/img/marker-green.png → SE/static/open-layers-2/img/marker-green.png


+ 0 - 0
SE/stuff/open-layers/img/marker.png → SE/static/open-layers-2/img/marker.png


+ 0 - 0
SE/stuff/open-layers/img/measuring-stick-off.png → SE/static/open-layers-2/img/measuring-stick-off.png


+ 0 - 0
SE/stuff/open-layers/img/measuring-stick-on.png → SE/static/open-layers-2/img/measuring-stick-on.png


+ 0 - 0
SE/stuff/open-layers/img/north-mini.png → SE/static/open-layers-2/img/north-mini.png


+ 0 - 0
SE/stuff/open-layers/img/panning-hand-off.png → SE/static/open-layers-2/img/panning-hand-off.png


+ 0 - 0
SE/stuff/open-layers/img/panning-hand-on.png → SE/static/open-layers-2/img/panning-hand-on.png


+ 0 - 0
SE/stuff/open-layers/img/slider.png → SE/static/open-layers-2/img/slider.png


+ 0 - 0
SE/stuff/open-layers/img/south-mini.png → SE/static/open-layers-2/img/south-mini.png


+ 0 - 0
SE/stuff/open-layers/img/west-mini.png → SE/static/open-layers-2/img/west-mini.png


+ 0 - 0
SE/stuff/open-layers/img/zoom-minus-mini.png → SE/static/open-layers-2/img/zoom-minus-mini.png


+ 0 - 0
SE/stuff/open-layers/img/zoom-plus-mini.png → SE/static/open-layers-2/img/zoom-plus-mini.png


+ 0 - 0
SE/stuff/open-layers/img/zoom-world-mini.png → SE/static/open-layers-2/img/zoom-world-mini.png


+ 0 - 0
SE/stuff/open-layers/img/zoombar.png → SE/static/open-layers-2/img/zoombar.png


+ 0 - 0
SE/stuff/open-layers/style.css → SE/static/open-layers-2/style.css


+ 0 - 0
SE/stuff/open-layers/theme/default/google.css → SE/static/open-layers-2/theme/default/google.css


+ 0 - 0
SE/stuff/open-layers/theme/default/google.tidy.css → SE/static/open-layers-2/theme/default/google.tidy.css


+ 0 - 0
SE/stuff/open-layers/theme/default/ie6-style.css → SE/static/open-layers-2/theme/default/ie6-style.css


+ 0 - 0
SE/stuff/open-layers/theme/default/ie6-style.tidy.css → SE/static/open-layers-2/theme/default/ie6-style.tidy.css


+ 0 - 0
SE/stuff/open-layers/theme/default/img/add_point_off.png → SE/static/open-layers-2/theme/default/img/add_point_off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/add_point_on.png → SE/static/open-layers-2/theme/default/img/add_point_on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/blank.gif → SE/static/open-layers-2/theme/default/img/blank.gif


+ 0 - 0
SE/stuff/open-layers/theme/default/img/close.gif → SE/static/open-layers-2/theme/default/img/close.gif


+ 0 - 0
SE/stuff/open-layers/theme/default/img/drag-rectangle-off.png → SE/static/open-layers-2/theme/default/img/drag-rectangle-off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/drag-rectangle-on.png → SE/static/open-layers-2/theme/default/img/drag-rectangle-on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/draw_line_off.png → SE/static/open-layers-2/theme/default/img/draw_line_off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/draw_line_on.png → SE/static/open-layers-2/theme/default/img/draw_line_on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/draw_point_off.png → SE/static/open-layers-2/theme/default/img/draw_point_off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/draw_point_on.png → SE/static/open-layers-2/theme/default/img/draw_point_on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/draw_polygon_off.png → SE/static/open-layers-2/theme/default/img/draw_polygon_off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/draw_polygon_on.png → SE/static/open-layers-2/theme/default/img/draw_polygon_on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/editing_tool_bar.png → SE/static/open-layers-2/theme/default/img/editing_tool_bar.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/geolocation-off.png → SE/static/open-layers-2/theme/default/img/geolocation-off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/geolocation-on.png → SE/static/open-layers-2/theme/default/img/geolocation-on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/move_feature_off.png → SE/static/open-layers-2/theme/default/img/move_feature_off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/move_feature_on.png → SE/static/open-layers-2/theme/default/img/move_feature_on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/navigation_history.png → SE/static/open-layers-2/theme/default/img/navigation_history.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/overview_replacement.gif → SE/static/open-layers-2/theme/default/img/overview_replacement.gif


+ 0 - 0
SE/stuff/open-layers/theme/default/img/pan-panel-NOALPHA.png → SE/static/open-layers-2/theme/default/img/pan-panel-NOALPHA.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/pan-panel.png → SE/static/open-layers-2/theme/default/img/pan-panel.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/pan_off.png → SE/static/open-layers-2/theme/default/img/pan_off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/pan_on.png → SE/static/open-layers-2/theme/default/img/pan_on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/panning-hand-off.png → SE/static/open-layers-2/theme/default/img/panning-hand-off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/panning-hand-on.png → SE/static/open-layers-2/theme/default/img/panning-hand-on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/refresh_feature_off.png → SE/static/open-layers-2/theme/default/img/refresh_feature_off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/refresh_feature_on.png → SE/static/open-layers-2/theme/default/img/refresh_feature_on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/remove_point_off.png → SE/static/open-layers-2/theme/default/img/remove_point_off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/remove_point_on.png → SE/static/open-layers-2/theme/default/img/remove_point_on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/ruler.png → SE/static/open-layers-2/theme/default/img/ruler.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/save_features_off.png → SE/static/open-layers-2/theme/default/img/save_features_off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/save_features_on.png → SE/static/open-layers-2/theme/default/img/save_features_on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/view_next_off.png → SE/static/open-layers-2/theme/default/img/view_next_off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/view_next_on.png → SE/static/open-layers-2/theme/default/img/view_next_on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/view_previous_off.png → SE/static/open-layers-2/theme/default/img/view_previous_off.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/view_previous_on.png → SE/static/open-layers-2/theme/default/img/view_previous_on.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/zoom-panel-NOALPHA.png → SE/static/open-layers-2/theme/default/img/zoom-panel-NOALPHA.png


+ 0 - 0
SE/stuff/open-layers/theme/default/img/zoom-panel.png → SE/static/open-layers-2/theme/default/img/zoom-panel.png


+ 0 - 0
SE/stuff/open-layers/theme/default/style.css → SE/static/open-layers-2/theme/default/style.css


+ 0 - 0
SE/stuff/open-layers/theme/default/style.mobile.css → SE/static/open-layers-2/theme/default/style.mobile.css


+ 0 - 0
SE/stuff/open-layers/theme/default/style.mobile.tidy.css → SE/static/open-layers-2/theme/default/style.mobile.tidy.css


+ 0 - 0
SE/stuff/open-layers/theme/default/style.tidy.css → SE/static/open-layers-2/theme/default/style.tidy.css


+ 0 - 0
SE/stuff/open-layers/wps.js → SE/static/open-layers-2/wps.js


+ 45 - 45
SE/superedit-OPEN_LAYERS_WPS.php

@@ -3,7 +3,7 @@
 /**
  * http://openlayers.org/dev/examples/wps.html
  * http://geoinformatyka.com.pl/usluga-wfs-jak-to-dziala/
- * 
+ *
  * TODO: brak ModifyFeature - html btn: olControlModifyFeatureItemInactive
  */
 
@@ -109,14 +109,14 @@ SQL;
 		}
 		default:
 	}
-	
+
 
 //$_POST['url'] = 'http://demo.opengeo.org/geoserver/wfs';
 //$entityBody = Request::getRequestBody();
 	$url = V::get('_url', '', $_GET);
 	if ($url) {// @see OpenLayers/examples/proxy.cgi
-		$allowedHosts = array('www.openlayers.org', 'openlayers.org', 
-										'labs.metacarta.com', 'world.freemap.in', 
+		$allowedHosts = array('www.openlayers.org', 'openlayers.org',
+										'labs.metacarta.com', 'world.freemap.in',
 										'prototype.openmnnd.org', 'geo.openplans.org',
 										'sigma.openplans.org', 'demo.opengeo.org',
 										'www.openstreetmap.org', 'sample.azavea.com',
@@ -146,8 +146,8 @@ SQL;
 			exit;
 		}
 		else if (substr($url, 0, 7) == 'http://' || substr($url, 0, 8) == 'https://') {
-			$ch = curl_init(); 
-			
+			$ch = curl_init();
+
 			if (!empty($_POST)) {
 /*
             length = int(os.environ["CONTENT_LENGTH"])
@@ -196,12 +196,12 @@ SQL;
     <link rel="stylesheet" href="stuff/open-layers/theme/default/style.css" type="text/css">
 	<link rel="stylesheet" href="stuff/open-layers/style.css" type="text/css">
     <style type="text/css">
-         .olControlEditingToolbar .olControlModifyFeatureItemInactive { 
-             background-image: url(stuff/open-layers/theme/default/img/draw_point_off.png); 
-         } 
-         .olControlEditingToolbar .olControlModifyFeatureItemActive { 
-             background-image: url(stuff/open-layers/theme/default/img/draw_point_on.png); 
-         } 
+         .olControlEditingToolbar .olControlModifyFeatureItemInactive {
+             background-image: url(stuff/open-layers/theme/default/img/draw_point_off.png);
+         }
+         .olControlEditingToolbar .olControlModifyFeatureItemActive {
+             background-image: url(stuff/open-layers/theme/default/img/draw_point_on.png);
+         }
         .olControlRefresh {
         	 background-image: url(stuff/open-layers/theme/default/img/save_features_off.png);
          }
@@ -232,7 +232,7 @@ SQL;
 
 		<div id="TreeTableMap"></div>
 
-    <script src="stuff/open-layers/OpenLayers.js"></script>
+    <script src="static/open-layers-2/OpenLayers.js"></script>
 <!--    <script src="stuff/open-layers/wps.js"></script> -->
     <script>
 (function ( $ ) {
@@ -322,7 +322,7 @@ SQL;
 			});
 
 			style.addRules([rule]);
-			
+
 			_layer = new OpenLayers.Layer.Vector("Warstwa rysowania", {
 				strategies:  [new OpenLayers.Strategy.BBOX(), new OpenLayers.Strategy.Cluster( {distance: 15, threshold: 2})],
 				projection: new OpenLayers.Projection("EPSG:4326"),
@@ -341,26 +341,26 @@ SQL;
 			var toolbar = new OpenLayers.Control.EditingToolbar(_layer);
 			toolbar.addControls([new OpenLayers.Control.ModifyFeature(_layer, {
 				title: "Wybierz",
-				mode: OpenLayers.Control.ModifyFeature.DRAG | OpenLayers.Control.ModifyFeature.RESHAPE		
-			})]);					    
-			    	
+				mode: OpenLayers.Control.ModifyFeature.DRAG | OpenLayers.Control.ModifyFeature.RESHAPE
+			})]);
+
  			var btnZoomToPoly = new OpenLayers.Control.Button({
- 				displayClass: "olControlZoomToPoly", 
+ 				displayClass: "olControlZoomToPoly",
                 title: "Zbliz",
- 				trigger: 
+ 				trigger:
  					function() {
  				   		var multiPolygon = OpenLayers.Geometry.fromWKT(
  			                    "MULTIPOLYGON(((2072016.74395199 7234076.79293037,2072016.74395199 7234115.01144451,2072131.3994944 7234115.01144451,2072131.3994944 7234076.79293037,2072016.74395199 7234076.79293037)))"
- 			                ).getBounds(); 		
+ 			                ).getBounds();
  						map.zoomToExtent(multiPolygon);
 	                }
  			});
- 				toolbar.addControls([btnZoomToPoly]);	
+ 				toolbar.addControls([btnZoomToPoly]);
 
 			var btnRefresh = new OpenLayers.Control.Button({
-			    displayClass: "olControlRefresh", 
+			    displayClass: "olControlRefresh",
 	            title: "Odswiez",
-			    trigger: 
+			    trigger:
 			    	function() {
 						_layer.refresh({force:true});
 			    }
@@ -373,7 +373,7 @@ SQL;
                displayClass: "olControlDelete",
                title: "Usun"
             });
-               
+
             deleteFeatureControl.events.register("featurehighlighted", this, function(e) {
                if (confirm('Czy na pewno chcesz usunąć ten obiekt?')) {
                    _layer.removeFeatures([e.feature]);
@@ -384,7 +384,7 @@ SQL;
             });
 
     		toolbar.addControls([deleteFeatureControl]);
-	            
+
 			var extent = new OpenLayers.Bounds(
 				2035059.4410645328, 7200979.560689885, 2113330.958028555, 7279251.0776539035
 			);
@@ -408,7 +408,7 @@ SQL;
 		                            1.194328566789627, 0.5971642833948135],
 		        transitionEffect: 'resize'
 		    });
-	
+
 			var map = new OpenLayers.Map(_nodeMapId, {
 				projection: new OpenLayers.Projection("EPSG:4326"),
 				displayProjection: new OpenLayers.Projection("EPSG:4326"),
@@ -420,20 +420,20 @@ SQL;
 					new OpenLayers.Control.LayerSwitcher(),
 					new OpenLayers.Control.ScaleLine(),
 					new OpenLayers.Control.KeyboardDefaults()
-				//	new OpenLayers.Control.MousePosition()				
+				//	new OpenLayers.Control.MousePosition()
 				], layers: [gphy]
 			});
 			map.addLayer(_layer);
-		
+
 			map.events.register("zoomend", this, function(e) {
 				var zoom = map.getZoom();
 				console.log("Zoom = "  + zoom);
 				console.log(_layer.strategies[1]);
 				if (zoom > 15 && _layer.strategies[1].active) {
- 					_layer.strategies[1].deactivate();					
+ 					_layer.strategies[1].deactivate();
  					_layer.refresh({force:true});
  				} else if (zoom <= 15 && !_layer.strategies[1].active) {
- 					_layer.strategies[1].activate();					
+ 					_layer.strategies[1].activate();
  					_layer.refresh({force:true});
  				}
 				//	map.addLayer(_layer);
@@ -441,26 +441,26 @@ SQL;
 				//	var myLayer = map.getLayersByName('Warstwa rysowania');
 				//	myLayer[0].destroy();
 
-				//	_layer.destroy();					
-				//	map.removeLayer(_layer, false);	
+				//	_layer.destroy();
+				//	map.removeLayer(_layer, false);
 				//	console.log("costam: "+ map.getLayer());
-				//	map.addLayer(_layer);	
+				//	map.addLayer(_layer);
 				//	_layer.setVisibility(false);
-				
+
 				//	map.addLayer(_layer);
-				
+
 				//	map.removeLayer(_layer, false);
-					
+
 				//	map.refresh();
-			});   
+			});
+
 
-			
 			map.zoomToMaxExtent();
 
 			};
 
-	
-		
+
+
 
 		// using OpenLayers.Format.WPSCapabilities to read the capabilities
 		priv.getCapabilities = function() {
@@ -521,7 +521,7 @@ SQL;
 					_nodeInput.append(document.createTextNode("* "));
 				}
 			}
-			
+
 			if (supported) {
 				var executeButton = document.createElement("button");
 				executeButton.innerHTML = "Execute";
@@ -882,7 +882,7 @@ class WfsAction {
 	public function execute($args) {
 /*
  * Mapa odczytywanie punktów: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/
- * 
+ *
  * CI50:
 			18.613243103027344 54.33614429135817
 			18.613243103027344 54.33634445792519
@@ -905,9 +905,9 @@ class WfsAction {
 		/**
 		 * <og:recordId><?php echo $kId; ?></og:recordId>
 		 * <og:tblId><?php echo $tblId; ?></og:tblId>
-		 * 
+		 *
 		 * goes to js: @see priv.addWKTInput _layer.selectedFeatures[0]
-		 * 
+		 *
 		 *	attributes: Object
 					recordId: "1130"
 					tblId: "16"
@@ -970,7 +970,7 @@ class WpsServer {
 								$data[$inputIdentifier] = (string)$input->children('wps', TRUE)->Data->ComplexData;
 								break;
 							default:
-								
+
 						}
 					} else {
 						// brak zdefiniowanego inputa