diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers.js.xml index 1c83240ba16b8332985d738075e7566b4baaab23..19cd5b40f9468f3e9acec08fdb7e31e0aafffeef 100644 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers.js.xml +++ b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers.js.xml @@ -8,7 +8,7 @@ <dictionary> <item> <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.76</string> </value> + <value> <string>ts54094902.62</string> </value> </item> <item> <key> <string>__name__</string> </key> @@ -18,442 +18,1660 @@ <key> <string>content_type</string> </key> <value> <string>application/javascript</string> </value> </item> + <item> + <key> <string>data</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>precondition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <int>739725</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>OpenLayers.js</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Pdata" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> <item> <key> <string>data</string> </key> <value> <string encoding="cdata"><![CDATA[ -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/* \n - * @requires OpenLayers/BaseTypes.js\n - * @requires OpenLayers/Lang/en.js\n - * @requires OpenLayers/Console.js\n - */\n - \n /*\n - * TODO: In 3.0, we will stop supporting build profiles that include\n - * OpenLayers.js. This means we will not need the singleFile and scriptFile\n - * variables, because we don\'t have to handle the singleFile case any more.\n - */\n \n -(function() {\n - /**\n - * Before creating the OpenLayers namespace, check to see if\n - * OpenLayers.singleFile is true. This occurs if the\n - * OpenLayers/SingleFile.js script is included before this one - as is the\n - * case with old single file build profiles that included both\n - * OpenLayers.js and OpenLayers/SingleFile.js.\n - */\n - var singleFile = (typeof OpenLayers == "object" && OpenLayers.singleFile);\n - \n - /**\n - * Relative path of this script.\n - */\n - var scriptName = (!singleFile) ? "lib/OpenLayers.js" : "OpenLayers.js";\n + OpenLayers.js -- OpenLayers Map Viewer Library\n \n - /*\n - * If window.OpenLayers isn\'t set when this script (OpenLayers.js) is\n - * evaluated (and if singleFile is false) then this script will load\n - * *all* OpenLayers scripts. If window.OpenLayers is set to an array\n - * then this script will attempt to load scripts for each string of\n - * the array, using the string as the src of the script.\n - *\n - * Example:\n - * (code)\n - * <script type="text/javascript">\n - * window.OpenLayers = [\n - * "OpenLayers/Util.js",\n - * "OpenLayers/BaseTypes.js"\n - * ];\n - * </script>\n - * <script type="text/javascript" src="../lib/OpenLayers.js"></script>\n - * (end)\n - * In this example OpenLayers.js will load Util.js and BaseTypes.js only.\n - */\n - var jsFiles = window.OpenLayers;\n + Copyright (c) 2006-2012 by OpenLayers Contributors\n + Published under the 2-clause BSD license.\n + See http://openlayers.org/dev/license.txt for the full text of the license, and http://openlayers.org/dev/authors.txt for full list of contributors.\n \n - /**\n - * Namespace: OpenLayers\n - * The OpenLayers object provides a namespace for all things OpenLayers\n - */\n - window.OpenLayers = {\n - /**\n - * Method: _getScriptLocation\n - * Return the path to this script. This is also implemented in\n - * OpenLayers/SingleFile.js\n - *\n - * Returns:\n - * {String} Path to this script\n - */\n - _getScriptLocation: (function() {\n - var r = new RegExp("(^|(.*?\\\\/))(" + scriptName + ")(\\\\?|$)"),\n - s = document.getElementsByTagName(\'script\'),\n - src, m, l = "";\n - for(var i=0, len=s.length; i<len; i++) {\n - src = s[i].getAttribute(\'src\');\n - if(src) {\n - m = src.match(r);\n - if(m) {\n - l = m[1];\n - break;\n - }\n - }\n - }\n - return (function() { return l; });\n - })(),\n - \n - /**\n - * APIProperty: ImgPath\n - * {String} Set this to the path where control images are stored, a path \n - * given here must end with a slash. If set to \'\' (which is the default) \n - * OpenLayers will use its script location + "img/".\n - * \n - * You will need to set this property when you have a singlefile build of \n - * OpenLayers that either is not named "OpenLayers.js" or if you move\n - * the file in a way such that the image directory cannot be derived from \n - * the script location.\n - * \n - * If your custom OpenLayers build is named "my-custom-ol.js" and the images\n - * of OpenLayers are in a folder "/resources/external/images/ol" a correct\n - * way of including OpenLayers in your HTML would be:\n - * \n - * (code)\n - * <script src="/path/to/my-custom-ol.js" type="text/javascript"></script>\n - * <script type="text/javascript">\n - * // tell OpenLayers where the control images are\n - * // remember the trailing slash\n - * OpenLayers.ImgPath = "/resources/external/images/ol/";\n - * </script>\n - * (end code)\n - * \n - * Please remember that when your OpenLayers script is not named \n - * "OpenLayers.js" you will have to make sure that the default theme is \n - * loaded into the page by including an appropriate <link>-tag, \n - * e.g.:\n - * \n - * (code)\n - * <link rel="stylesheet" href="/path/to/default/style.css" type="text/css">\n - * (end code)\n - */\n - ImgPath : \'\'\n - };\n + Includes compressed code under the following licenses:\n \n - /**\n - * OpenLayers.singleFile is a flag indicating this file is being included\n - * in a Single File Library build of the OpenLayers Library.\n - * \n - * When we are *not* part of a SFL build we dynamically include the\n - * OpenLayers library code.\n - * \n - * When we *are* part of a SFL build we do not dynamically include the \n - * OpenLayers library code as it will be appended at the end of this file.\n - */\n - if(!singleFile) {\n - if (!jsFiles) {\n - jsFiles = [\n - "OpenLayers/BaseTypes/Class.js",\n - "OpenLayers/Util.js",\n - "OpenLayers/Animation.js",\n - "OpenLayers/BaseTypes.js",\n - "OpenLayers/BaseTypes/Bounds.js",\n - "OpenLayers/BaseTypes/Date.js",\n - "OpenLayers/BaseTypes/Element.js",\n - "OpenLayers/BaseTypes/LonLat.js",\n - "OpenLayers/BaseTypes/Pixel.js",\n - "OpenLayers/BaseTypes/Size.js",\n - "OpenLayers/Console.js",\n - "OpenLayers/Tween.js",\n - "OpenLayers/Kinetic.js",\n - "Rico/Corner.js",\n - "Rico/Color.js",\n - "OpenLayers/Events.js",\n - "OpenLayers/Events/buttonclick.js",\n - "OpenLayers/Request.js",\n - "OpenLayers/Request/XMLHttpRequest.js",\n - "OpenLayers/Projection.js",\n - "OpenLayers/Map.js",\n - "OpenLayers/Layer.js",\n - "OpenLayers/Icon.js",\n - "OpenLayers/Marker.js",\n - "OpenLayers/Marker/Box.js",\n - "OpenLayers/Popup.js",\n - "OpenLayers/Tile.js",\n - "OpenLayers/Tile/Image.js",\n - "OpenLayers/Tile/Image/IFrame.js",\n - "OpenLayers/Tile/UTFGrid.js",\n - "OpenLayers/Layer/Image.js",\n - "OpenLayers/Layer/SphericalMercator.js",\n - "OpenLayers/Layer/EventPane.js",\n - "OpenLayers/Layer/FixedZoomLevels.js",\n - "OpenLayers/Layer/Google.js",\n - "OpenLayers/Layer/Google/v3.js",\n - "OpenLayers/Layer/HTTPRequest.js",\n - "OpenLayers/Layer/Grid.js",\n - "OpenLayers/Layer/MapGuide.js",\n - "OpenLayers/Layer/MapServer.js",\n - "OpenLayers/Layer/KaMap.js",\n - "OpenLayers/Layer/KaMapCache.js",\n - "OpenLayers/Layer/Markers.js",\n - "OpenLayers/Layer/Text.js",\n - "OpenLayers/Layer/WorldWind.js",\n - "OpenLayers/Layer/ArcGIS93Rest.js",\n - "OpenLayers/Layer/WMS.js",\n - "OpenLayers/Layer/WMTS.js",\n - "OpenLayers/Layer/ArcIMS.js",\n - "OpenLayers/Layer/GeoRSS.js",\n - "OpenLayers/Layer/Boxes.js",\n - "OpenLayers/Layer/XYZ.js",\n - "OpenLayers/Layer/UTFGrid.js",\n - "OpenLayers/Layer/OSM.js",\n - "OpenLayers/Layer/Bing.js",\n - "OpenLayers/Layer/TMS.js",\n - "OpenLayers/Layer/TileCache.js",\n - "OpenLayers/Layer/Zoomify.js",\n - "OpenLayers/Layer/ArcGISCache.js",\n - "OpenLayers/Popup/Anchored.js",\n - "OpenLayers/Popup/AnchoredBubble.js",\n - "OpenLayers/Popup/Framed.js",\n - "OpenLayers/Popup/FramedCloud.js",\n - "OpenLayers/Feature.js",\n - "OpenLayers/Feature/Vector.js",\n - "OpenLayers/Handler.js",\n - "OpenLayers/Handler/Click.js",\n - "OpenLayers/Handler/Hover.js",\n - "OpenLayers/Handler/Point.js",\n - "OpenLayers/Handler/Path.js",\n - "OpenLayers/Handler/Polygon.js",\n - "OpenLayers/Handler/Feature.js",\n - "OpenLayers/Handler/Drag.js",\n - "OpenLayers/Handler/Pinch.js",\n - "OpenLayers/Handler/RegularPolygon.js",\n - "OpenLayers/Handler/Box.js",\n - "OpenLayers/Handler/MouseWheel.js",\n - "OpenLayers/Handler/Keyboard.js",\n - "OpenLayers/Control.js",\n - "OpenLayers/Control/Attribution.js",\n - "OpenLayers/Control/Button.js",\n - "OpenLayers/Control/CacheRead.js",\n - "OpenLayers/Control/CacheWrite.js",\n - "OpenLayers/Control/ZoomBox.js",\n - "OpenLayers/Control/ZoomToMaxExtent.js",\n - "OpenLayers/Control/DragPan.js",\n - "OpenLayers/Control/Navigation.js",\n - "OpenLayers/Control/PinchZoom.js",\n - "OpenLayers/Control/TouchNavigation.js",\n - "OpenLayers/Control/MousePosition.js",\n - "OpenLayers/Control/OverviewMap.js",\n - "OpenLayers/Control/KeyboardDefaults.js",\n - "OpenLayers/Control/PanZoom.js",\n - "OpenLayers/Control/PanZoomBar.js",\n - "OpenLayers/Control/ArgParser.js",\n - "OpenLayers/Control/Permalink.js",\n - "OpenLayers/Control/Scale.js",\n - "OpenLayers/Control/ScaleLine.js",\n - "OpenLayers/Control/Snapping.js",\n - "OpenLayers/Control/Split.js",\n - "OpenLayers/Control/LayerSwitcher.js",\n - "OpenLayers/Control/DrawFeature.js",\n - "OpenLayers/Control/DragFeature.js",\n - "OpenLayers/Control/ModifyFeature.js",\n - "OpenLayers/Control/Panel.js",\n - "OpenLayers/Control/SelectFeature.js",\n - "OpenLayers/Control/NavigationHistory.js",\n - "OpenLayers/Control/Measure.js",\n - "OpenLayers/Control/WMSGetFeatureInfo.js",\n - "OpenLayers/Control/WMTSGetFeatureInfo.js",\n - "OpenLayers/Control/Graticule.js",\n - "OpenLayers/Control/TransformFeature.js",\n - "OpenLayers/Control/UTFGrid.js",\n - "OpenLayers/Control/SLDSelect.js",\n - "OpenLayers/Control/Zoom.js",\n - "OpenLayers/Geometry.js",\n - "OpenLayers/Geometry/Collection.js",\n - "OpenLayers/Geometry/Point.js",\n - "OpenLayers/Geometry/MultiPoint.js",\n - "OpenLayers/Geometry/Curve.js",\n - "OpenLayers/Geometry/LineString.js",\n - "OpenLayers/Geometry/LinearRing.js",\n - "OpenLayers/Geometry/Polygon.js",\n - "OpenLayers/Geometry/MultiLineString.js",\n - "OpenLayers/Geometry/MultiPolygon.js",\n - "OpenLayers/Renderer.js",\n - "OpenLayers/Renderer/Elements.js",\n - "OpenLayers/Renderer/SVG.js",\n - "OpenLayers/Renderer/Canvas.js",\n - "OpenLayers/Renderer/VML.js",\n - "OpenLayers/Layer/Vector.js",\n - "OpenLayers/Layer/PointGrid.js",\n - "OpenLayers/Layer/Vector/RootContainer.js",\n - "OpenLayers/Strategy.js",\n - "OpenLayers/Strategy/Filter.js",\n - "OpenLayers/Strategy/Fixed.js",\n - "OpenLayers/Strategy/Cluster.js",\n - "OpenLayers/Strategy/Paging.js",\n - "OpenLayers/Strategy/BBOX.js",\n - "OpenLayers/Strategy/Save.js",\n - "OpenLayers/Strategy/Refresh.js",\n - "OpenLayers/Filter.js",\n - "OpenLayers/Filter/FeatureId.js",\n - "OpenLayers/Filter/Logical.js",\n - "OpenLayers/Filter/Comparison.js",\n - "OpenLayers/Filter/Spatial.js",\n - "OpenLayers/Filter/Function.js", \n - "OpenLayers/Protocol.js",\n - "OpenLayers/Protocol/HTTP.js",\n - "OpenLayers/Protocol/WFS.js",\n - "OpenLayers/Protocol/WFS/v1.js",\n - "OpenLayers/Protocol/WFS/v1_0_0.js",\n - "OpenLayers/Protocol/WFS/v1_1_0.js",\n - "OpenLayers/Protocol/CSW.js", \n - "OpenLayers/Protocol/CSW/v2_0_2.js",\n - "OpenLayers/Protocol/Script.js",\n - "OpenLayers/Protocol/SOS.js",\n - "OpenLayers/Protocol/SOS/v1_0_0.js",\n - "OpenLayers/Layer/PointTrack.js",\n - "OpenLayers/Style.js",\n - "OpenLayers/Style2.js",\n - "OpenLayers/StyleMap.js",\n - "OpenLayers/Rule.js",\n - "OpenLayers/Format.js",\n - "OpenLayers/Format/QueryStringFilter.js",\n - "OpenLayers/Format/XML.js",\n - "OpenLayers/Format/XML/VersionedOGC.js",\n - "OpenLayers/Format/Context.js",\n - "OpenLayers/Format/ArcXML.js",\n - "OpenLayers/Format/ArcXML/Features.js",\n - "OpenLayers/Format/GML.js",\n - "OpenLayers/Format/GML/Base.js",\n - "OpenLayers/Format/GML/v2.js",\n - "OpenLayers/Format/GML/v3.js",\n - "OpenLayers/Format/Atom.js",\n - "OpenLayers/Format/KML.js",\n - "OpenLayers/Format/GeoRSS.js",\n - "OpenLayers/Format/WFS.js",\n - "OpenLayers/Format/OWSCommon.js",\n - "OpenLayers/Format/OWSCommon/v1.js",\n - "OpenLayers/Format/OWSCommon/v1_0_0.js",\n - "OpenLayers/Format/OWSCommon/v1_1_0.js",\n - "OpenLayers/Format/WFSCapabilities.js",\n - "OpenLayers/Format/WFSCapabilities/v1.js",\n - "OpenLayers/Format/WFSCapabilities/v1_0_0.js",\n - "OpenLayers/Format/WFSCapabilities/v1_1_0.js",\n - "OpenLayers/Format/WFSDescribeFeatureType.js",\n - "OpenLayers/Format/WMSDescribeLayer.js",\n - "OpenLayers/Format/WMSDescribeLayer/v1_1.js",\n - "OpenLayers/Format/WKT.js",\n - "OpenLayers/Format/CQL.js",\n - "OpenLayers/Format/OSM.js",\n - "OpenLayers/Format/GPX.js",\n - "OpenLayers/Format/Filter.js",\n - "OpenLayers/Format/Filter/v1.js",\n - "OpenLayers/Format/Filter/v1_0_0.js",\n - "OpenLayers/Format/Filter/v1_1_0.js",\n - "OpenLayers/Format/SLD.js",\n - "OpenLayers/Format/SLD/v1.js",\n - "OpenLayers/Format/SLD/v1_0_0.js",\n - "OpenLayers/Format/SLD/v1_0_0_GeoServer.js",\n - "OpenLayers/Format/OWSCommon.js",\n - "OpenLayers/Format/OWSCommon/v1.js",\n - "OpenLayers/Format/OWSCommon/v1_0_0.js",\n - "OpenLayers/Format/OWSCommon/v1_1_0.js",\n - "OpenLayers/Format/CSWGetDomain.js",\n - "OpenLayers/Format/CSWGetDomain/v2_0_2.js",\n - "OpenLayers/Format/CSWGetRecords.js",\n - "OpenLayers/Format/CSWGetRecords/v2_0_2.js",\n - "OpenLayers/Format/WFST.js",\n - "OpenLayers/Format/WFST/v1.js",\n - "OpenLayers/Format/WFST/v1_0_0.js",\n - "OpenLayers/Format/WFST/v1_1_0.js",\n - "OpenLayers/Format/Text.js",\n - "OpenLayers/Format/JSON.js",\n - "OpenLayers/Format/GeoJSON.js",\n - "OpenLayers/Format/WMC.js",\n - "OpenLayers/Format/WMC/v1.js",\n - "OpenLayers/Format/WMC/v1_0_0.js",\n - "OpenLayers/Format/WMC/v1_1_0.js",\n - "OpenLayers/Format/WCSGetCoverage.js",\n - "OpenLayers/Format/WMSCapabilities.js",\n - "OpenLayers/Format/WMSCapabilities/v1.js",\n - "OpenLayers/Format/WMSCapabilities/v1_1.js",\n - "OpenLayers/Format/WMSCapabilities/v1_1_0.js",\n - "OpenLayers/Format/WMSCapabilities/v1_1_1.js",\n - "OpenLayers/Format/WMSCapabilities/v1_3.js",\n - "OpenLayers/Format/WMSCapabilities/v1_3_0.js",\n - "OpenLayers/Format/WMSCapabilities/v1_1_1_WMSC.js",\n - "OpenLayers/Format/WMSGetFeatureInfo.js",\n - "OpenLayers/Format/SOSCapabilities.js",\n - "OpenLayers/Format/SOSCapabilities/v1_0_0.js",\n - "OpenLayers/Format/SOSGetFeatureOfInterest.js",\n - "OpenLayers/Format/SOSGetObservation.js",\n - "OpenLayers/Format/OWSContext.js",\n - "OpenLayers/Format/OWSContext/v0_3_1.js",\n - "OpenLayers/Format/WMTSCapabilities.js",\n - "OpenLayers/Format/WMTSCapabilities/v1_0_0.js",\n - "OpenLayers/Format/WPSCapabilities.js",\n - "OpenLayers/Format/WPSCapabilities/v1_0_0.js",\n - "OpenLayers/Format/WPSDescribeProcess.js",\n - "OpenLayers/Format/WPSExecute.js",\n - "OpenLayers/Format/XLS.js",\n - "OpenLayers/Format/XLS/v1.js",\n - "OpenLayers/Format/XLS/v1_1_0.js",\n - "OpenLayers/Format/OGCExceptionReport.js",\n - "OpenLayers/Control/GetFeature.js",\n - "OpenLayers/Control/NavToolbar.js",\n - "OpenLayers/Control/PanPanel.js",\n - "OpenLayers/Control/Pan.js",\n - "OpenLayers/Control/ZoomIn.js",\n - "OpenLayers/Control/ZoomOut.js",\n - "OpenLayers/Control/ZoomPanel.js",\n - "OpenLayers/Control/EditingToolbar.js",\n - "OpenLayers/Control/Geolocate.js",\n - "OpenLayers/Symbolizer.js",\n - "OpenLayers/Symbolizer/Point.js",\n - "OpenLayers/Symbolizer/Line.js",\n - "OpenLayers/Symbolizer/Polygon.js",\n - "OpenLayers/Symbolizer/Text.js",\n - "OpenLayers/Symbolizer/Raster.js",\n - "OpenLayers/Lang.js",\n - "OpenLayers/Lang/en.js",\n - "OpenLayers/Spherical.js"\n - ]; // etc.\n - }\n + (For uncompressed versions of the code used, please see the\n + OpenLayers Github repository: <https://github.com/openlayers/openlayers>)\n \n - // use "parser-inserted scripts" for guaranteed execution order\n - // http://hsivonen.iki.fi/script-execution/\n - var scriptTags = new Array(jsFiles.length);\n - var host = OpenLayers._getScriptLocation() + "lib/";\n - for (var i=0, len=jsFiles.length; i<len; i++) {\n - scriptTags[i] = "<script src=\'" + host + jsFiles[i] +\n - "\'></script>"; \n - }\n - if (scriptTags.length > 0) {\n - document.write(scriptTags.join(""));\n - }\n - }\n -})();\n +*/\n \n /**\n - * Constant: VERSION_NUMBER\n + * Contains XMLHttpRequest.js <http://code.google.com/p/xmlhttprequest/>\n + * Copyright 2007 Sergey Ilinsky (http://www.ilinsky.com)\n + *\n + * Licensed under the Apache License, Version 2.0 (the "License");\n + * you may not use this file except in compliance with the License.\n + * You may obtain a copy of the License at\n + * http://www.apache.org/licenses/LICENSE-2.0\n */\n -OpenLayers.VERSION_NUMBER="Release 2.12";\n +\n +/**\n + * OpenLayers.Util.pagePosition is based on Yahoo\'s getXY method, which is\n + * Copyright (c) 2006, Yahoo! Inc.\n + * All rights reserved.\n + * \n + * Redistribution and use of this software in source and binary forms, with or\n + * without modification, are permitted provided that the following conditions\n + * are met:\n + * \n + * * Redistributions of source code must retain the above copyright notice,\n + * this list of conditions and the following disclaimer.\n + * \n + * * Redistributions in binary form must reproduce the above copyright notice,\n + * this list of conditions and the following disclaimer in the documentation\n + * and/or other materials provided with the distribution.\n + * \n + * * Neither the name of Yahoo! Inc. nor the names of its contributors may be\n + * used to endorse or promote products derived from this software without\n + * specific prior written permission of Yahoo! Inc.\n + * \n + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\n + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \n + * POSSIBILITY OF SUCH DAMAGE.\n + */\n +var OpenLayers={VERSION_NUMBER:"Release 2.12",singleFile:!0,_getScriptLocation:function(){for(var a=/(^|(.*?\\/))(OpenLayers[^\\/]*?\\.js)(\\?|$)/,b=document.getElementsByTagName("script"),c,d="",e=0,f=b.length;e<f;e++)if(c=b[e].getAttribute("src"))if(c=c.match(a)){d=c[1];break}return function(){return d}}(),ImgPath:""};OpenLayers.Class=function(){var a=arguments.length,b=arguments[0],c=arguments[a-1],d="function"==typeof c.initialize?c.initialize:function(){b.prototype.initialize.apply(this,arguments)};1<a?(a=[d,b].concat(Array.prototype.slice.call(arguments).slice(1,a-1),c),OpenLayers.inherit.apply(null,a)):d.prototype=c;return d};\n +OpenLayers.inherit=function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;var d,e,c=2;for(d=arguments.length;c<d;c++)e=arguments[c],"function"===typeof e&&(e=e.prototype),OpenLayers.Util.extend(a.prototype,e)};OpenLayers.Util=OpenLayers.Util||{};OpenLayers.Util.extend=function(a,b){a=a||{};if(b){for(var c in b){var d=b[c];void 0!==d&&(a[c]=d)}!("function"==typeof window.Event&&b instanceof window.Event)&&(b.hasOwnProperty&&b.hasOwnProperty("toString"))&&(a.toString=b.toString)}return a};OpenLayers.String={startsWith:function(a,b){return 0==a.indexOf(b)},contains:function(a,b){return-1!=a.indexOf(b)},trim:function(a){return a.replace(/^\\s\\s*/,"").replace(/\\s\\s*$/,"")},camelize:function(a){for(var a=a.split("-"),b=a[0],c=1,d=a.length;c<d;c++)var e=a[c],b=b+(e.charAt(0).toUpperCase()+e.substring(1));return b},format:function(a,b,c){b||(b=window);return a.replace(OpenLayers.String.tokenRegEx,function(a,e){for(var f,g=e.split(/\\.+/),h=0;h<g.length;h++)0==h&&(f=b),f=f[g[h]];"function"==\n +typeof f&&(f=c?f.apply(null,c):f());return"undefined"==typeof f?"undefined":f})},tokenRegEx:/\\$\\{([\\w.]+?)\\}/g,numberRegEx:/^([+-]?)(?=\\d|\\.\\d)\\d*(\\.\\d*)?([Ee]([+-]?\\d+))?$/,isNumeric:function(a){return OpenLayers.String.numberRegEx.test(a)},numericIf:function(a){return OpenLayers.String.isNumeric(a)?parseFloat(a):a}};\n +OpenLayers.Number={decimalSeparator:".",thousandsSeparator:",",limitSigDigs:function(a,b){var c=0;0<b&&(c=parseFloat(a.toPrecision(b)));return c},format:function(a,b,c,d){b="undefined"!=typeof b?b:0;c="undefined"!=typeof c?c:OpenLayers.Number.thousandsSeparator;d="undefined"!=typeof d?d:OpenLayers.Number.decimalSeparator;null!=b&&(a=parseFloat(a.toFixed(b)));var e=a.toString().split(".");1==e.length&&null==b&&(b=0);a=e[0];if(c)for(var f=/(-?[0-9]+)([0-9]{3})/;f.test(a);)a=a.replace(f,"$1"+c+"$2");\n +0==b?b=a:(c=1<e.length?e[1]:"0",null!=b&&(c+=Array(b-c.length+1).join("0")),b=a+d+c);return b}};OpenLayers.Function={bind:function(a,b){var c=Array.prototype.slice.apply(arguments,[2]);return function(){var d=c.concat(Array.prototype.slice.apply(arguments,[0]));return a.apply(b,d)}},bindAsEventListener:function(a,b){return function(c){return a.call(b,c||window.event)}},False:function(){return!1},True:function(){return!0},Void:function(){}};\n +OpenLayers.Array={filter:function(a,b,c){var d=[];if(Array.prototype.filter)d=a.filter(b,c);else{var e=a.length;if("function"!=typeof b)throw new TypeError;for(var f=0;f<e;f++)if(f in a){var g=a[f];b.call(c,g,f,a)&&d.push(g)}}return d}};OpenLayers.Bounds=OpenLayers.Class({left:null,bottom:null,right:null,top:null,centerLonLat:null,initialize:function(a,b,c,d){OpenLayers.Util.isArray(a)&&(d=a[3],c=a[2],b=a[1],a=a[0]);null!=a&&(this.left=OpenLayers.Util.toFloat(a));null!=b&&(this.bottom=OpenLayers.Util.toFloat(b));null!=c&&(this.right=OpenLayers.Util.toFloat(c));null!=d&&(this.top=OpenLayers.Util.toFloat(d))},clone:function(){return new OpenLayers.Bounds(this.left,this.bottom,this.right,this.top)},equals:function(a){var b=!1;null!=\n +a&&(b=this.left==a.left&&this.right==a.right&&this.top==a.top&&this.bottom==a.bottom);return b},toString:function(){return[this.left,this.bottom,this.right,this.top].join()},toArray:function(a){return!0===a?[this.bottom,this.left,this.top,this.right]:[this.left,this.bottom,this.right,this.top]},toBBOX:function(a,b){null==a&&(a=6);var c=Math.pow(10,a),d=Math.round(this.left*c)/c,e=Math.round(this.bottom*c)/c,f=Math.round(this.right*c)/c,c=Math.round(this.top*c)/c;return!0===b?e+","+d+","+c+","+f:d+\n +","+e+","+f+","+c},toGeometry:function(){return new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing([new OpenLayers.Geometry.Point(this.left,this.bottom),new OpenLayers.Geometry.Point(this.right,this.bottom),new OpenLayers.Geometry.Point(this.right,this.top),new OpenLayers.Geometry.Point(this.left,this.top)])])},getWidth:function(){return this.right-this.left},getHeight:function(){return this.top-this.bottom},getSize:function(){return new OpenLayers.Size(this.getWidth(),this.getHeight())},\n +getCenterPixel:function(){return new OpenLayers.Pixel((this.left+this.right)/2,(this.bottom+this.top)/2)},getCenterLonLat:function(){this.centerLonLat||(this.centerLonLat=new OpenLayers.LonLat((this.left+this.right)/2,(this.bottom+this.top)/2));return this.centerLonLat},scale:function(a,b){null==b&&(b=this.getCenterLonLat());var c,d;"OpenLayers.LonLat"==b.CLASS_NAME?(c=b.lon,d=b.lat):(c=b.x,d=b.y);return new OpenLayers.Bounds((this.left-c)*a+c,(this.bottom-d)*a+d,(this.right-c)*a+c,(this.top-d)*a+\n +d)},add:function(a,b){if(null==a||null==b)throw new TypeError("Bounds.add cannot receive null values");return new OpenLayers.Bounds(this.left+a,this.bottom+b,this.right+a,this.top+b)},extend:function(a){var b=null;if(a){switch(a.CLASS_NAME){case "OpenLayers.LonLat":b=new OpenLayers.Bounds(a.lon,a.lat,a.lon,a.lat);break;case "OpenLayers.Geometry.Point":b=new OpenLayers.Bounds(a.x,a.y,a.x,a.y);break;case "OpenLayers.Bounds":b=a}if(b){this.centerLonLat=null;if(null==this.left||b.left<this.left)this.left=\n +b.left;if(null==this.bottom||b.bottom<this.bottom)this.bottom=b.bottom;if(null==this.right||b.right>this.right)this.right=b.right;if(null==this.top||b.top>this.top)this.top=b.top}}},containsLonLat:function(a,b){"boolean"===typeof b&&(b={inclusive:b});var b=b||{},c=this.contains(a.lon,a.lat,b.inclusive),d=b.worldBounds;d&&!c&&(c=d.getWidth(),d=Math.round((a.lon-(d.left+d.right)/2)/c),c=this.containsLonLat({lon:a.lon-d*c,lat:a.lat},{inclusive:b.inclusive}));return c},containsPixel:function(a,b){return this.contains(a.x,\n +a.y,b)},contains:function(a,b,c){null==c&&(c=!0);if(null==a||null==b)return!1;var a=OpenLayers.Util.toFloat(a),b=OpenLayers.Util.toFloat(b),d=!1;return d=c?a>=this.left&&a<=this.right&&b>=this.bottom&&b<=this.top:a>this.left&&a<this.right&&b>this.bottom&&b<this.top},intersectsBounds:function(a,b){"boolean"===typeof b&&(b={inclusive:b});b=b||{};if(b.worldBounds)var c=this.wrapDateLine(b.worldBounds),a=a.wrapDateLine(b.worldBounds);else c=this;null==b.inclusive&&(b.inclusive=!0);var d=!1,e=c.left==\n +a.right||c.right==a.left||c.top==a.bottom||c.bottom==a.top;if(b.inclusive||!e)var d=a.top>=c.bottom&&a.top<=c.top||c.top>a.bottom&&c.top<a.top,e=a.left>=c.left&&a.left<=c.right||c.left>=a.left&&c.left<=a.right,f=a.right>=c.left&&a.right<=c.right||c.right>=a.left&&c.right<=a.right,d=(a.bottom>=c.bottom&&a.bottom<=c.top||c.bottom>=a.bottom&&c.bottom<=a.top||d)&&(e||f);if(b.worldBounds&&!d){var g=b.worldBounds,e=g.getWidth(),f=!g.containsBounds(c),g=!g.containsBounds(a);f&&!g?(a=a.add(-e,0),d=c.intersectsBounds(a,\n +{inclusive:b.inclusive})):g&&!f&&(c=c.add(-e,0),d=a.intersectsBounds(c,{inclusive:b.inclusive}))}return d},containsBounds:function(a,b,c){null==b&&(b=!1);null==c&&(c=!0);var d=this.contains(a.left,a.bottom,c),e=this.contains(a.right,a.bottom,c),f=this.contains(a.left,a.top,c),a=this.contains(a.right,a.top,c);return b?d||e||f||a:d&&e&&f&&a},determineQuadrant:function(a){var b="",c=this.getCenterLonLat(),b=b+(a.lat<c.lat?"b":"t");return b+=a.lon<c.lon?"l":"r"},transform:function(a,b){this.centerLonLat=\n +null;var c=OpenLayers.Projection.transform({x:this.left,y:this.bottom},a,b),d=OpenLayers.Projection.transform({x:this.right,y:this.bottom},a,b),e=OpenLayers.Projection.transform({x:this.left,y:this.top},a,b),f=OpenLayers.Projection.transform({x:this.right,y:this.top},a,b);this.left=Math.min(c.x,e.x);this.bottom=Math.min(c.y,d.y);this.right=Math.max(d.x,f.x);this.top=Math.max(e.y,f.y);return this},wrapDateLine:function(a,b){var b=b||{},c=b.leftTolerance||0,d=b.rightTolerance||0,e=this.clone();if(a){for(var f=\n +a.getWidth();e.left<a.left&&e.right-d<=a.left;)e=e.add(f,0);for(;e.left+c>=a.right&&e.right>a.right;)e=e.add(-f,0);c=e.left+c;c<a.right&&(c>a.left&&e.right-d>a.right)&&(e=e.add(-f,0))}return e},CLASS_NAME:"OpenLayers.Bounds"});OpenLayers.Bounds.fromString=function(a,b){var c=a.split(",");return OpenLayers.Bounds.fromArray(c,b)};OpenLayers.Bounds.fromArray=function(a,b){return!0===b?new OpenLayers.Bounds(a[1],a[0],a[3],a[2]):new OpenLayers.Bounds(a[0],a[1],a[2],a[3])};\n +OpenLayers.Bounds.fromSize=function(a){return new OpenLayers.Bounds(0,a.h,a.w,0)};OpenLayers.Bounds.oppositeQuadrant=function(a){var b;b=""+("t"==a.charAt(0)?"b":"t");return b+="l"==a.charAt(1)?"r":"l"};OpenLayers.Element={visible:function(a){return"none"!=OpenLayers.Util.getElement(a).style.display},toggle:function(){for(var a=0,b=arguments.length;a<b;a++){var c=OpenLayers.Util.getElement(arguments[a]),d=OpenLayers.Element.visible(c)?"none":"";c.style.display=d}},remove:function(a){a=OpenLayers.Util.getElement(a);a.parentNode.removeChild(a)},getHeight:function(a){a=OpenLayers.Util.getElement(a);return a.offsetHeight},hasClass:function(a,b){var c=a.className;return!!c&&RegExp("(^|\\\\s)"+b+"(\\\\s|$)").test(c)},\n +addClass:function(a,b){OpenLayers.Element.hasClass(a,b)||(a.className+=(a.className?" ":"")+b);return a},removeClass:function(a,b){var c=a.className;c&&(a.className=OpenLayers.String.trim(c.replace(RegExp("(^|\\\\s+)"+b+"(\\\\s+|$)")," ")));return a},toggleClass:function(a,b){OpenLayers.Element.hasClass(a,b)?OpenLayers.Element.removeClass(a,b):OpenLayers.Element.addClass(a,b);return a},getStyle:function(a,b){var a=OpenLayers.Util.getElement(a),c=null;if(a&&a.style){c=a.style[OpenLayers.String.camelize(b)];\n +c||(document.defaultView&&document.defaultView.getComputedStyle?c=(c=document.defaultView.getComputedStyle(a,null))?c.getPropertyValue(b):null:a.currentStyle&&(c=a.currentStyle[OpenLayers.String.camelize(b)]));var d=["left","top","right","bottom"];window.opera&&(-1!=OpenLayers.Util.indexOf(d,b)&&"static"==OpenLayers.Element.getStyle(a,"position"))&&(c="auto")}return"auto"==c?null:c}};OpenLayers.LonLat=OpenLayers.Class({lon:0,lat:0,initialize:function(a,b){OpenLayers.Util.isArray(a)&&(b=a[1],a=a[0]);this.lon=OpenLayers.Util.toFloat(a);this.lat=OpenLayers.Util.toFloat(b)},toString:function(){return"lon="+this.lon+",lat="+this.lat},toShortString:function(){return this.lon+", "+this.lat},clone:function(){return new OpenLayers.LonLat(this.lon,this.lat)},add:function(a,b){if(null==a||null==b)throw new TypeError("LonLat.add cannot receive null values");return new OpenLayers.LonLat(this.lon+\n +OpenLayers.Util.toFloat(a),this.lat+OpenLayers.Util.toFloat(b))},equals:function(a){var b=!1;null!=a&&(b=this.lon==a.lon&&this.lat==a.lat||isNaN(this.lon)&&isNaN(this.lat)&&isNaN(a.lon)&&isNaN(a.lat));return b},transform:function(a,b){var c=OpenLayers.Projection.transform({x:this.lon,y:this.lat},a,b);this.lon=c.x;this.lat=c.y;return this},wrapDateLine:function(a){var b=this.clone();if(a){for(;b.lon<a.left;)b.lon+=a.getWidth();for(;b.lon>a.right;)b.lon-=a.getWidth()}return b},CLASS_NAME:"OpenLayers.LonLat"});\n +OpenLayers.LonLat.fromString=function(a){a=a.split(",");return new OpenLayers.LonLat(a[0],a[1])};OpenLayers.LonLat.fromArray=function(a){var b=OpenLayers.Util.isArray(a);return new OpenLayers.LonLat(b&&a[0],b&&a[1])};OpenLayers.Pixel=OpenLayers.Class({x:0,y:0,initialize:function(a,b){this.x=parseFloat(a);this.y=parseFloat(b)},toString:function(){return"x="+this.x+",y="+this.y},clone:function(){return new OpenLayers.Pixel(this.x,this.y)},equals:function(a){var b=!1;null!=a&&(b=this.x==a.x&&this.y==a.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(a.x)&&isNaN(a.y));return b},distanceTo:function(a){return Math.sqrt(Math.pow(this.x-a.x,2)+Math.pow(this.y-a.y,2))},add:function(a,b){if(null==a||null==b)throw new TypeError("Pixel.add cannot receive null values");\n +return new OpenLayers.Pixel(this.x+a,this.y+b)},offset:function(a){var b=this.clone();a&&(b=this.add(a.x,a.y));return b},CLASS_NAME:"OpenLayers.Pixel"});OpenLayers.Size=OpenLayers.Class({w:0,h:0,initialize:function(a,b){this.w=parseFloat(a);this.h=parseFloat(b)},toString:function(){return"w="+this.w+",h="+this.h},clone:function(){return new OpenLayers.Size(this.w,this.h)},equals:function(a){var b=!1;null!=a&&(b=this.w==a.w&&this.h==a.h||isNaN(this.w)&&isNaN(this.h)&&isNaN(a.w)&&isNaN(a.h));return b},CLASS_NAME:"OpenLayers.Size"});OpenLayers.Console={log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){},userError:function(a){alert(a)},assert:function(){},dir:function(){},dirxml:function(){},trace:function(){},group:function(){},groupEnd:function(){},time:function(){},timeEnd:function(){},profile:function(){},profileEnd:function(){},count:function(){},CLASS_NAME:"OpenLayers.Console"};\n +(function(){for(var a=document.getElementsByTagName("script"),b=0,c=a.length;b<c;++b)if(-1!=a[b].src.indexOf("firebug.js")&&console){OpenLayers.Util.extend(OpenLayers.Console,console);break}})();OpenLayers.Lang={code:null,defaultCode:"en",getCode:function(){OpenLayers.Lang.code||OpenLayers.Lang.setCode();return OpenLayers.Lang.code},setCode:function(a){var b;a||(a="msie"==OpenLayers.BROWSER_NAME?navigator.userLanguage:navigator.language);a=a.split("-");a[0]=a[0].toLowerCase();"object"==typeof OpenLayers.Lang[a[0]]&&(b=a[0]);if(a[1]){var c=a[0]+"-"+a[1].toUpperCase();"object"==typeof OpenLayers.Lang[c]&&(b=c)}b||(OpenLayers.Console.warn("Failed to find OpenLayers.Lang."+a.join("-")+" dictionary, falling back to default language"),\n +b=OpenLayers.Lang.defaultCode);OpenLayers.Lang.code=b},translate:function(a,b){var c=OpenLayers.Lang[OpenLayers.Lang.getCode()];(c=c&&c[a])||(c=a);b&&(c=OpenLayers.String.format(c,b));return c}};OpenLayers.i18n=OpenLayers.Lang.translate;OpenLayers.Util=OpenLayers.Util||{};OpenLayers.Util.getElement=function(){for(var a=[],b=0,c=arguments.length;b<c;b++){var d=arguments[b];"string"==typeof d&&(d=document.getElementById(d));if(1==arguments.length)return d;a.push(d)}return a};OpenLayers.Util.isElement=function(a){return!!(a&&1===a.nodeType)};OpenLayers.Util.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)};"undefined"===typeof window.$&&(window.$=OpenLayers.Util.getElement);\n +OpenLayers.Util.removeItem=function(a,b){for(var c=a.length-1;c>=0;c--)a[c]==b&&a.splice(c,1);return a};OpenLayers.Util.indexOf=function(a,b){if(typeof a.indexOf=="function")return a.indexOf(b);for(var c=0,d=a.length;c<d;c++)if(a[c]==b)return c;return-1};\n +OpenLayers.Util.modifyDOMElement=function(a,b,c,d,e,f,g,h){if(b)a.id=b;if(c){a.style.left=c.x+"px";a.style.top=c.y+"px"}if(d){a.style.width=d.w+"px";a.style.height=d.h+"px"}if(e)a.style.position=e;if(f)a.style.border=f;if(g)a.style.overflow=g;if(parseFloat(h)>=0&&parseFloat(h)<1){a.style.filter="alpha(opacity="+h*100+")";a.style.opacity=h}else if(parseFloat(h)==1){a.style.filter="";a.style.opacity=""}};\n +OpenLayers.Util.createDiv=function(a,b,c,d,e,f,g,h){var i=document.createElement("div");if(d)i.style.backgroundImage="url("+d+")";a||(a=OpenLayers.Util.createUniqueID("OpenLayersDiv"));e||(e="absolute");OpenLayers.Util.modifyDOMElement(i,a,b,c,e,f,g,h);return i};\n +OpenLayers.Util.createImage=function(a,b,c,d,e,f,g,h){var i=document.createElement("img");a||(a=OpenLayers.Util.createUniqueID("OpenLayersDiv"));e||(e="relative");OpenLayers.Util.modifyDOMElement(i,a,b,c,e,f,null,g);if(h){i.style.display="none";b=function(){i.style.display="";OpenLayers.Event.stopObservingElement(i)};OpenLayers.Event.observe(i,"load",b);OpenLayers.Event.observe(i,"error",b)}i.style.alt=a;i.galleryImg="no";if(d)i.src=d;return i};OpenLayers.IMAGE_RELOAD_ATTEMPTS=0;\n +OpenLayers.Util.alphaHackNeeded=null;OpenLayers.Util.alphaHack=function(){if(OpenLayers.Util.alphaHackNeeded==null){var a=navigator.appVersion.split("MSIE"),a=parseFloat(a[1]),b=false;try{b=!!document.body.filters}catch(c){}OpenLayers.Util.alphaHackNeeded=b&&a>=5.5&&a<7}return OpenLayers.Util.alphaHackNeeded};\n +OpenLayers.Util.modifyAlphaImageDiv=function(a,b,c,d,e,f,g,h,i){OpenLayers.Util.modifyDOMElement(a,b,c,d,f,null,null,i);b=a.childNodes[0];if(e)b.src=e;OpenLayers.Util.modifyDOMElement(b,a.id+"_innerImage",null,d,"relative",g);if(OpenLayers.Util.alphaHack()){if(a.style.display!="none")a.style.display="inline-block";h==null&&(h="scale");a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'"+b.src+"\', sizingMethod=\'"+h+"\')";if(parseFloat(a.style.opacity)>=0&&parseFloat(a.style.opacity)<\n +1)a.style.filter=a.style.filter+(" alpha(opacity="+a.style.opacity*100+")");b.style.filter="alpha(opacity=0)"}};OpenLayers.Util.createAlphaImageDiv=function(a,b,c,d,e,f,g,h,i){var j=OpenLayers.Util.createDiv(),i=OpenLayers.Util.createImage(null,null,null,null,null,null,null,i);i.className="olAlphaImg";j.appendChild(i);OpenLayers.Util.modifyAlphaImageDiv(j,a,b,c,d,e,f,g,h);return j};OpenLayers.Util.upperCaseObject=function(a){var b={},c;for(c in a)b[c.toUpperCase()]=a[c];return b};\n +OpenLayers.Util.applyDefaults=function(a,b){var a=a||{},c=typeof window.Event=="function"&&b instanceof window.Event,d;for(d in b)if(a[d]===void 0||!c&&b.hasOwnProperty&&b.hasOwnProperty(d)&&!a.hasOwnProperty(d))a[d]=b[d];if(!c&&b&&b.hasOwnProperty&&b.hasOwnProperty("toString")&&!a.hasOwnProperty("toString"))a.toString=b.toString;return a};\n +OpenLayers.Util.getParameterString=function(a){var b=[],c;for(c in a){var d=a[c];if(d!=null&&typeof d!="function"){if(typeof d=="object"&&d.constructor==Array){for(var e=[],f,g=0,h=d.length;g<h;g++){f=d[g];e.push(encodeURIComponent(f===null||f===void 0?"":f))}d=e.join(",")}else d=encodeURIComponent(d);b.push(encodeURIComponent(c)+"="+d)}}return b.join("&")};OpenLayers.Util.urlAppend=function(a,b){var c=a;if(b)var d=(a+" ").split(/[?&]/),c=c+(d.pop()===" "?b:d.length?"&"+b:"?"+b);return c};\n +OpenLayers.Util.getImagesLocation=function(){return OpenLayers.ImgPath||OpenLayers._getScriptLocation()+"img/"};OpenLayers.Util.getImageLocation=function(a){return OpenLayers.Util.getImagesLocation()+a};OpenLayers.Util.Try=function(){for(var a=null,b=0,c=arguments.length;b<c;b++){var d=arguments[b];try{a=d();break}catch(e){}}return a};\n +OpenLayers.Util.getXmlNodeValue=function(a){var b=null;OpenLayers.Util.Try(function(){b=a.text;if(!b)b=a.textContent;if(!b)b=a.firstChild.nodeValue},function(){b=a.textContent});return b};OpenLayers.Util.mouseLeft=function(a,b){for(var c=a.relatedTarget?a.relatedTarget:a.toElement;c!=b&&c!=null;)c=c.parentNode;return c!=b};OpenLayers.Util.DEFAULT_PRECISION=14;\n +OpenLayers.Util.toFloat=function(a,b){if(b==null)b=OpenLayers.Util.DEFAULT_PRECISION;typeof a!=="number"&&(a=parseFloat(a));return b===0?a:parseFloat(a.toPrecision(b))};OpenLayers.Util.rad=function(a){return a*Math.PI/180};OpenLayers.Util.deg=function(a){return a*180/Math.PI};OpenLayers.Util.VincentyConstants={a:6378137,b:6356752.3142,f:1/298.257223563};\n +OpenLayers.Util.distVincenty=function(a,b){for(var c=OpenLayers.Util.VincentyConstants,d=c.a,e=c.b,c=c.f,f=OpenLayers.Util.rad(b.lon-a.lon),g=Math.atan((1-c)*Math.tan(OpenLayers.Util.rad(a.lat))),h=Math.atan((1-c)*Math.tan(OpenLayers.Util.rad(b.lat))),i=Math.sin(g),g=Math.cos(g),j=Math.sin(h),h=Math.cos(h),k=f,l=2*Math.PI,m=20;Math.abs(k-l)>1.0E-12&&--m>0;){var n=Math.sin(k),o=Math.cos(k),p=Math.sqrt(h*n*h*n+(g*j-i*h*o)*(g*j-i*h*o));if(p==0)return 0;var o=i*j+g*h*o,q=Math.atan2(p,o),r=Math.asin(g*\n +h*n/p),s=Math.cos(r)*Math.cos(r),n=o-2*i*j/s,t=c/16*s*(4+c*(4-3*s)),l=k,k=f+(1-t)*c*Math.sin(r)*(q+t*p*(n+t*o*(-1+2*n*n)))}if(m==0)return NaN;d=s*(d*d-e*e)/(e*e);c=d/1024*(256+d*(-128+d*(74-47*d)));return(e*(1+d/16384*(4096+d*(-768+d*(320-175*d))))*(q-c*p*(n+c/4*(o*(-1+2*n*n)-c/6*n*(-3+4*p*p)*(-3+4*n*n))))).toFixed(3)/1E3};\n +OpenLayers.Util.destinationVincenty=function(a,b,c){for(var d=OpenLayers.Util,e=d.VincentyConstants,f=e.a,g=e.b,h=e.f,e=a.lon,a=a.lat,i=d.rad(b),b=Math.sin(i),i=Math.cos(i),a=(1-h)*Math.tan(d.rad(a)),j=1/Math.sqrt(1+a*a),k=a*j,l=Math.atan2(a,i),a=j*b,m=1-a*a,f=m*(f*f-g*g)/(g*g),n=1+f/16384*(4096+f*(-768+f*(320-175*f))),o=f/1024*(256+f*(-128+f*(74-47*f))),f=c/(g*n),p=2*Math.PI;Math.abs(f-p)>1.0E-12;)var q=Math.cos(2*l+f),r=Math.sin(f),s=Math.cos(f),t=o*r*(q+o/4*(s*(-1+2*q*q)-o/6*q*(-3+4*r*r)*(-3+4*\n +q*q))),p=f,f=c/(g*n)+t;c=k*r-j*s*i;g=Math.atan2(k*s+j*r*i,(1-h)*Math.sqrt(a*a+c*c));b=Math.atan2(r*b,j*s-k*r*i);i=h/16*m*(4+h*(4-3*m));q=b-(1-i)*h*a*(f+i*r*(q+i*s*(-1+2*q*q)));Math.atan2(a,-c);return new OpenLayers.LonLat(e+d.deg(q),d.deg(g))};\n +OpenLayers.Util.getParameters=function(a){var a=a===null||a===void 0?window.location.href:a,b="";if(OpenLayers.String.contains(a,"?"))var b=a.indexOf("?")+1,c=OpenLayers.String.contains(a,"#")?a.indexOf("#"):a.length,b=a.substring(b,c);for(var a={},b=b.split(/[&;]/),c=0,d=b.length;c<d;++c){var e=b[c].split("=");if(e[0]){var f=e[0];try{f=decodeURIComponent(f)}catch(g){f=unescape(f)}e=(e[1]||"").replace(/\\+/g," ");try{e=decodeURIComponent(e)}catch(h){e=unescape(e)}e=e.split(",");e.length==1&&(e=e[0]);\n +a[f]=e}}return a};OpenLayers.Util.lastSeqID=0;OpenLayers.Util.createUniqueID=function(a){a==null&&(a="id_");OpenLayers.Util.lastSeqID=OpenLayers.Util.lastSeqID+1;return a+OpenLayers.Util.lastSeqID};OpenLayers.INCHES_PER_UNIT={inches:1,ft:12,mi:63360,m:39.3701,km:39370.1,dd:4374754,yd:36};OpenLayers.INCHES_PER_UNIT["in"]=OpenLayers.INCHES_PER_UNIT.inches;OpenLayers.INCHES_PER_UNIT.degrees=OpenLayers.INCHES_PER_UNIT.dd;OpenLayers.INCHES_PER_UNIT.nmi=1852*OpenLayers.INCHES_PER_UNIT.m;\n +OpenLayers.METERS_PER_INCH=0.0254000508001016;\n +OpenLayers.Util.extend(OpenLayers.INCHES_PER_UNIT,{Inch:OpenLayers.INCHES_PER_UNIT.inches,Meter:1/OpenLayers.METERS_PER_INCH,Foot:0.3048006096012192/OpenLayers.METERS_PER_INCH,IFoot:0.3048/OpenLayers.METERS_PER_INCH,ClarkeFoot:0.3047972651151/OpenLayers.METERS_PER_INCH,SearsFoot:0.30479947153867626/OpenLayers.METERS_PER_INCH,GoldCoastFoot:0.3047997101815088/OpenLayers.METERS_PER_INCH,IInch:0.0254/OpenLayers.METERS_PER_INCH,MicroInch:2.54E-5/OpenLayers.METERS_PER_INCH,Mil:2.54E-8/OpenLayers.METERS_PER_INCH,\n +Centimeter:0.01/OpenLayers.METERS_PER_INCH,Kilometer:1E3/OpenLayers.METERS_PER_INCH,Yard:0.9144018288036576/OpenLayers.METERS_PER_INCH,SearsYard:0.914398414616029/OpenLayers.METERS_PER_INCH,IndianYard:0.9143985307444408/OpenLayers.METERS_PER_INCH,IndianYd37:0.91439523/OpenLayers.METERS_PER_INCH,IndianYd62:0.9143988/OpenLayers.METERS_PER_INCH,IndianYd75:0.9143985/OpenLayers.METERS_PER_INCH,IndianFoot:0.30479951/OpenLayers.METERS_PER_INCH,IndianFt37:0.30479841/OpenLayers.METERS_PER_INCH,IndianFt62:0.3047996/\n +OpenLayers.METERS_PER_INCH,IndianFt75:0.3047995/OpenLayers.METERS_PER_INCH,Mile:1609.3472186944373/OpenLayers.METERS_PER_INCH,IYard:0.9144/OpenLayers.METERS_PER_INCH,IMile:1609.344/OpenLayers.METERS_PER_INCH,NautM:1852/OpenLayers.METERS_PER_INCH,"Lat-66":110943.31648893273/OpenLayers.METERS_PER_INCH,"Lat-83":110946.25736872235/OpenLayers.METERS_PER_INCH,Decimeter:0.1/OpenLayers.METERS_PER_INCH,Millimeter:0.001/OpenLayers.METERS_PER_INCH,Dekameter:10/OpenLayers.METERS_PER_INCH,Decameter:10/OpenLayers.METERS_PER_INCH,\n +Hectometer:100/OpenLayers.METERS_PER_INCH,GermanMeter:1.0000135965/OpenLayers.METERS_PER_INCH,CaGrid:0.999738/OpenLayers.METERS_PER_INCH,ClarkeChain:20.1166194976/OpenLayers.METERS_PER_INCH,GunterChain:20.11684023368047/OpenLayers.METERS_PER_INCH,BenoitChain:20.116782494375872/OpenLayers.METERS_PER_INCH,SearsChain:20.11676512155/OpenLayers.METERS_PER_INCH,ClarkeLink:0.201166194976/OpenLayers.METERS_PER_INCH,GunterLink:0.2011684023368047/OpenLayers.METERS_PER_INCH,BenoitLink:0.20116782494375873/OpenLayers.METERS_PER_INCH,\n +SearsLink:0.2011676512155/OpenLayers.METERS_PER_INCH,Rod:5.02921005842012/OpenLayers.METERS_PER_INCH,IntnlChain:20.1168/OpenLayers.METERS_PER_INCH,IntnlLink:0.201168/OpenLayers.METERS_PER_INCH,Perch:5.02921005842012/OpenLayers.METERS_PER_INCH,Pole:5.02921005842012/OpenLayers.METERS_PER_INCH,Furlong:201.1684023368046/OpenLayers.METERS_PER_INCH,Rood:3.778266898/OpenLayers.METERS_PER_INCH,CapeFoot:0.3047972615/OpenLayers.METERS_PER_INCH,Brealey:375/OpenLayers.METERS_PER_INCH,ModAmFt:0.304812252984506/\n +OpenLayers.METERS_PER_INCH,Fathom:1.8288/OpenLayers.METERS_PER_INCH,"NautM-UK":1853.184/OpenLayers.METERS_PER_INCH,"50kilometers":5E4/OpenLayers.METERS_PER_INCH,"150kilometers":15E4/OpenLayers.METERS_PER_INCH});\n +OpenLayers.Util.extend(OpenLayers.INCHES_PER_UNIT,{mm:OpenLayers.INCHES_PER_UNIT.Meter/1E3,cm:OpenLayers.INCHES_PER_UNIT.Meter/100,dm:100*OpenLayers.INCHES_PER_UNIT.Meter,km:1E3*OpenLayers.INCHES_PER_UNIT.Meter,kmi:OpenLayers.INCHES_PER_UNIT.nmi,fath:OpenLayers.INCHES_PER_UNIT.Fathom,ch:OpenLayers.INCHES_PER_UNIT.IntnlChain,link:OpenLayers.INCHES_PER_UNIT.IntnlLink,"us-in":OpenLayers.INCHES_PER_UNIT.inches,"us-ft":OpenLayers.INCHES_PER_UNIT.Foot,"us-yd":OpenLayers.INCHES_PER_UNIT.Yard,"us-ch":OpenLayers.INCHES_PER_UNIT.GunterChain,\n +"us-mi":OpenLayers.INCHES_PER_UNIT.Mile,"ind-yd":OpenLayers.INCHES_PER_UNIT.IndianYd37,"ind-ft":OpenLayers.INCHES_PER_UNIT.IndianFt37,"ind-ch":20.11669506/OpenLayers.METERS_PER_INCH});OpenLayers.DOTS_PER_INCH=72;OpenLayers.Util.normalizeScale=function(a){return a>1?1/a:a};OpenLayers.Util.getResolutionFromScale=function(a,b){var c;if(a){b==null&&(b="degrees");c=1/(OpenLayers.Util.normalizeScale(a)*OpenLayers.INCHES_PER_UNIT[b]*OpenLayers.DOTS_PER_INCH)}return c};\n +OpenLayers.Util.getScaleFromResolution=function(a,b){b==null&&(b="degrees");return a*OpenLayers.INCHES_PER_UNIT[b]*OpenLayers.DOTS_PER_INCH};\n +OpenLayers.Util.pagePosition=function(a){var b=[0,0],c=OpenLayers.Util.getViewportElement();if(!a||a==window||a==c)return b;var d=OpenLayers.IS_GECKO&&document.getBoxObjectFor&&OpenLayers.Element.getStyle(a,"position")=="absolute"&&(a.style.top==""||a.style.left==""),e=null;if(a.getBoundingClientRect){a=a.getBoundingClientRect();e=c.scrollTop;b[0]=a.left+c.scrollLeft;b[1]=a.top+e}else if(document.getBoxObjectFor&&!d){a=document.getBoxObjectFor(a);c=document.getBoxObjectFor(c);b[0]=a.screenX-c.screenX;\n +b[1]=a.screenY-c.screenY}else{b[0]=a.offsetLeft;b[1]=a.offsetTop;e=a.offsetParent;if(e!=a)for(;e;){b[0]=b[0]+e.offsetLeft;b[1]=b[1]+e.offsetTop;e=e.offsetParent}c=OpenLayers.BROWSER_NAME;if(c=="opera"||c=="safari"&&OpenLayers.Element.getStyle(a,"position")=="absolute")b[1]=b[1]-document.body.offsetTop;for(e=a.offsetParent;e&&e!=document.body;){b[0]=b[0]-e.scrollLeft;if(c!="opera"||e.tagName!="TR")b[1]=b[1]-e.scrollTop;e=e.offsetParent}}return b};\n +OpenLayers.Util.getViewportElement=function(){var a=arguments.callee.viewportElement;if(a==void 0){a=OpenLayers.BROWSER_NAME=="msie"&&document.compatMode!="CSS1Compat"?document.body:document.documentElement;arguments.callee.viewportElement=a}return a};\n +OpenLayers.Util.isEquivalentUrl=function(a,b,c){c=c||{};OpenLayers.Util.applyDefaults(c,{ignoreCase:true,ignorePort80:true,ignoreHash:true});var a=OpenLayers.Util.createUrlObject(a,c),b=OpenLayers.Util.createUrlObject(b,c),d;for(d in a)if(d!=="args"&&a[d]!=b[d])return false;for(d in a.args){if(a.args[d]!=b.args[d])return false;delete b.args[d]}for(d in b.args)return false;return true};\n +OpenLayers.Util.createUrlObject=function(a,b){b=b||{};if(!/^\\w+:\\/\\//.test(a)){var c=window.location,d=c.port?":"+c.port:"",d=c.protocol+"//"+c.host.split(":").shift()+d;if(a.indexOf("/")===0)a=d+a;else{c=c.pathname.split("/");c.pop();a=d+c.join("/")+"/"+a}}b.ignoreCase&&(a=a.toLowerCase());c=document.createElement("a");c.href=a;d={};d.host=c.host.split(":").shift();d.protocol=c.protocol;d.port=b.ignorePort80?c.port=="80"||c.port=="0"?"":c.port:c.port==""||c.port=="0"?"80":c.port;d.hash=b.ignoreHash||\n +c.hash==="#"?"":c.hash;var e=c.search;if(!e){e=a.indexOf("?");e=e!=-1?a.substr(e):""}d.args=OpenLayers.Util.getParameters(e);d.pathname=c.pathname.charAt(0)=="/"?c.pathname:"/"+c.pathname;return d};OpenLayers.Util.removeTail=function(a){var b=null,b=a.indexOf("?"),c=a.indexOf("#");return b=b==-1?c!=-1?a.substr(0,c):a:c!=-1?a.substr(0,Math.min(b,c)):a.substr(0,b)};OpenLayers.IS_GECKO=function(){var a=navigator.userAgent.toLowerCase();return a.indexOf("webkit")==-1&&a.indexOf("gecko")!=-1}();\n +OpenLayers.CANVAS_SUPPORTED=function(){var a=document.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))}();OpenLayers.BROWSER_NAME=function(){var a="",b=navigator.userAgent.toLowerCase();b.indexOf("opera")!=-1?a="opera":b.indexOf("msie")!=-1?a="msie":b.indexOf("safari")!=-1?a="safari":b.indexOf("mozilla")!=-1&&(a=b.indexOf("firefox")!=-1?"firefox":"mozilla");return a}();OpenLayers.Util.getBrowserName=function(){return OpenLayers.BROWSER_NAME};\n +OpenLayers.Util.getRenderedDimensions=function(a,b,c){var d,e,f=document.createElement("div");f.style.visibility="hidden";for(var g=c&&c.containerElement?c.containerElement:document.body,h=false,i=null,j=g;j&&j.tagName.toLowerCase()!="body";){var k=OpenLayers.Element.getStyle(j,"position");if(k=="absolute"){h=true;break}else if(k&&k!="static")break;j=j.parentNode}if(h&&(g.clientHeight===0||g.clientWidth===0)){i=document.createElement("div");i.style.visibility="hidden";i.style.position="absolute";\n +i.style.overflow="visible";i.style.width=document.body.clientWidth+"px";i.style.height=document.body.clientHeight+"px";i.appendChild(f)}f.style.position="absolute";if(b)if(b.w){d=b.w;f.style.width=d+"px"}else if(b.h){e=b.h;f.style.height=e+"px"}if(c&&c.displayClass)f.className=c.displayClass;b=document.createElement("div");b.innerHTML=a;b.style.overflow="visible";if(b.childNodes){a=0;for(c=b.childNodes.length;a<c;a++)if(b.childNodes[a].style)b.childNodes[a].style.overflow="visible"}f.appendChild(b);\n +i?g.appendChild(i):g.appendChild(f);if(!d){d=parseInt(b.scrollWidth);f.style.width=d+"px"}e||(e=parseInt(b.scrollHeight));f.removeChild(b);if(i){i.removeChild(f);g.removeChild(i)}else g.removeChild(f);return new OpenLayers.Size(d,e)};\n +OpenLayers.Util.getScrollbarWidth=function(){var a=OpenLayers.Util._scrollbarWidth;if(a==null){var b=null,c=null,b=a=0,b=document.createElement("div");b.style.position="absolute";b.style.top="-1000px";b.style.left="-1000px";b.style.width="100px";b.style.height="50px";b.style.overflow="hidden";c=document.createElement("div");c.style.width="100%";c.style.height="200px";b.appendChild(c);document.body.appendChild(b);a=c.offsetWidth;b.style.overflow="scroll";b=c.offsetWidth;document.body.removeChild(document.body.lastChild);\n +OpenLayers.Util._scrollbarWidth=a-b;a=OpenLayers.Util._scrollbarWidth}return a};\n +OpenLayers.Util.getFormattedLonLat=function(a,b,c){c||(c="dms");var a=(a+540)%360-180,d=Math.abs(a),e=Math.floor(d),f=d=(d-e)/(1/60),d=Math.floor(d),f=Math.round((f-d)/(1/60)*10),f=f/10;if(f>=60){f=f-60;d=d+1;if(d>=60){d=d-60;e=e+1}}e<10&&(e="0"+e);e=e+"\\u00b0";if(c.indexOf("dm")>=0){d<10&&(d="0"+d);e=e+(d+"\'");if(c.indexOf("dms")>=0){f<10&&(f="0"+f);e=e+(f+\'"\')}}return e=b=="lon"?e+(a<0?OpenLayers.i18n("W"):OpenLayers.i18n("E")):e+(a<0?OpenLayers.i18n("S"):OpenLayers.i18n("N"))};OpenLayers.Format=OpenLayers.Class({options:null,externalProjection:null,internalProjection:null,data:null,keepData:!1,initialize:function(a){OpenLayers.Util.extend(this,a);this.options=a},destroy:function(){},read:function(){throw Error("Read not implemented.");},write:function(){throw Error("Write not implemented.");},CLASS_NAME:"OpenLayers.Format"});OpenLayers.Format.CSWGetRecords=function(a){var a=OpenLayers.Util.applyDefaults(a,OpenLayers.Format.CSWGetRecords.DEFAULTS),b=OpenLayers.Format.CSWGetRecords["v"+a.version.replace(/\\./g,"_")];if(!b)throw"Unsupported CSWGetRecords version: "+a.version;return new b(a)};OpenLayers.Format.CSWGetRecords.DEFAULTS={version:"2.0.2"};OpenLayers.Control=OpenLayers.Class({id:null,map:null,div:null,type:null,allowSelection:!1,displayClass:"",title:"",autoActivate:!1,active:null,handler:null,eventListeners:null,events:null,initialize:function(a){this.displayClass=this.CLASS_NAME.replace("OpenLayers.","ol").replace(/\\./g,"");OpenLayers.Util.extend(this,a);this.events=new OpenLayers.Events(this);if(this.eventListeners instanceof Object)this.events.on(this.eventListeners);null==this.id&&(this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+\n +"_"))},destroy:function(){this.events&&(this.eventListeners&&this.events.un(this.eventListeners),this.events.destroy(),this.events=null);this.eventListeners=null;this.handler&&(this.handler.destroy(),this.handler=null);if(this.handlers){for(var a in this.handlers)this.handlers.hasOwnProperty(a)&&"function"==typeof this.handlers[a].destroy&&this.handlers[a].destroy();this.handlers=null}this.map&&(this.map.removeControl(this),this.map=null);this.div=null},setMap:function(a){this.map=a;this.handler&&\n +this.handler.setMap(a)},draw:function(a){if(null==this.div&&(this.div=OpenLayers.Util.createDiv(this.id),this.div.className=this.displayClass,this.allowSelection||(this.div.className+=" olControlNoSelect",this.div.setAttribute("unselectable","on",0),this.div.onselectstart=OpenLayers.Function.False),""!=this.title))this.div.title=this.title;null!=a&&(this.position=a.clone());this.moveTo(this.position);return this.div},moveTo:function(a){null!=a&&null!=this.div&&(this.div.style.left=a.x+"px",this.div.style.top=\n +a.y+"px")},activate:function(){if(this.active)return!1;this.handler&&this.handler.activate();this.active=!0;this.map&&OpenLayers.Element.addClass(this.map.viewPortDiv,this.displayClass.replace(/ /g,"")+"Active");this.events.triggerEvent("activate");return!0},deactivate:function(){return this.active?(this.handler&&this.handler.deactivate(),this.active=!1,this.map&&OpenLayers.Element.removeClass(this.map.viewPortDiv,this.displayClass.replace(/ /g,"")+"Active"),this.events.triggerEvent("deactivate"),\n +!0):!1},CLASS_NAME:"OpenLayers.Control"});OpenLayers.Control.TYPE_BUTTON=1;OpenLayers.Control.TYPE_TOGGLE=2;OpenLayers.Control.TYPE_TOOL=3;OpenLayers.Event={observers:!1,KEY_SPACE:32,KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(a){return a.target||a.srcElement},isSingleTouch:function(a){return a.touches&&1==a.touches.length},isMultiTouch:function(a){return a.touches&&1<a.touches.length},isLeftClick:function(a){return a.which&&1==a.which||a.button&&1==a.button},isRightClick:function(a){return a.which&&3==a.which||a.button&&2==a.button},stop:function(a,\n +b){b||(a.preventDefault?a.preventDefault():a.returnValue=!1);a.stopPropagation?a.stopPropagation():a.cancelBubble=!0},findElement:function(a,b){for(var c=OpenLayers.Event.element(a);c.parentNode&&(!c.tagName||c.tagName.toUpperCase()!=b.toUpperCase());)c=c.parentNode;return c},observe:function(a,b,c,d){a=OpenLayers.Util.getElement(a);d=d||!1;if("keypress"==b&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||a.attachEvent))b="keydown";this.observers||(this.observers={});if(!a._eventCacheID){var e=\n +"eventCacheID_";a.id&&(e=a.id+"_"+e);a._eventCacheID=OpenLayers.Util.createUniqueID(e)}e=a._eventCacheID;this.observers[e]||(this.observers[e]=[]);this.observers[e].push({element:a,name:b,observer:c,useCapture:d});a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},stopObservingElement:function(a){a=OpenLayers.Util.getElement(a)._eventCacheID;this._removeElementObservers(OpenLayers.Event.observers[a])},_removeElementObservers:function(a){if(a)for(var b=a.length-1;0<=\n +b;b--){var c=a[b];OpenLayers.Event.stopObserving.apply(this,[c.element,c.name,c.observer,c.useCapture])}},stopObserving:function(a,b,c,d){var d=d||!1,a=OpenLayers.Util.getElement(a),e=a._eventCacheID;if("keypress"==b&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||a.detachEvent))b="keydown";var f=!1,g=OpenLayers.Event.observers[e];if(g)for(var h=0;!f&&h<g.length;){var i=g[h];if(i.name==b&&i.observer==c&&i.useCapture==d){g.splice(h,1);0==g.length&&delete OpenLayers.Event.observers[e];f=!0;\n +break}h++}f&&(a.removeEventListener?a.removeEventListener(b,c,d):a&&a.detachEvent&&a.detachEvent("on"+b,c));return f},unloadCache:function(){if(OpenLayers.Event&&OpenLayers.Event.observers){for(var a in OpenLayers.Event.observers)OpenLayers.Event._removeElementObservers.apply(this,[OpenLayers.Event.observers[a]]);OpenLayers.Event.observers=!1}},CLASS_NAME:"OpenLayers.Event"};OpenLayers.Event.observe(window,"unload",OpenLayers.Event.unloadCache,!1);\n +OpenLayers.Events=OpenLayers.Class({BROWSER_EVENTS:"mouseover mouseout mousedown mouseup mousemove click dblclick rightclick dblrightclick resize focus blur touchstart touchmove touchend keydown".split(" "),listeners:null,object:null,element:null,eventHandler:null,fallThrough:null,includeXY:!1,extensions:null,extensionCount:null,clearMouseListener:null,initialize:function(a,b,c,d,e){OpenLayers.Util.extend(this,e);this.object=a;this.fallThrough=d;this.listeners={};this.extensions={};this.extensionCount=\n +{};null!=b&&this.attachToElement(b)},destroy:function(){for(var a in this.extensions)"boolean"!==typeof this.extensions[a]&&this.extensions[a].destroy();this.extensions=null;this.element&&(OpenLayers.Event.stopObservingElement(this.element),this.element.hasScrollEvent&&OpenLayers.Event.stopObserving(window,"scroll",this.clearMouseListener));this.eventHandler=this.fallThrough=this.object=this.listeners=this.element=null},addEventType:function(){},attachToElement:function(a){this.element?OpenLayers.Event.stopObservingElement(this.element):\n +(this.eventHandler=OpenLayers.Function.bindAsEventListener(this.handleBrowserEvent,this),this.clearMouseListener=OpenLayers.Function.bind(this.clearMouseCache,this));this.element=a;for(var b=0,c=this.BROWSER_EVENTS.length;b<c;b++)OpenLayers.Event.observe(a,this.BROWSER_EVENTS[b],this.eventHandler);OpenLayers.Event.observe(a,"dragstart",OpenLayers.Event.stop)},on:function(a){for(var b in a)"scope"!=b&&a.hasOwnProperty(b)&&this.register(b,a.scope,a[b])},register:function(a,b,c,d){a in OpenLayers.Events&&\n +!this.extensions[a]&&(this.extensions[a]=new OpenLayers.Events[a](this));if(null!=c){null==b&&(b=this.object);var e=this.listeners[a];e||(e=[],this.listeners[a]=e,this.extensionCount[a]=0);b={obj:b,func:c};d?(e.splice(this.extensionCount[a],0,b),"object"===typeof d&&d.extension&&this.extensionCount[a]++):e.push(b)}},registerPriority:function(a,b,c){this.register(a,b,c,!0)},un:function(a){for(var b in a)"scope"!=b&&a.hasOwnProperty(b)&&this.unregister(b,a.scope,a[b])},unregister:function(a,b,c){null==\n +b&&(b=this.object);a=this.listeners[a];if(null!=a)for(var d=0,e=a.length;d<e;d++)if(a[d].obj==b&&a[d].func==c){a.splice(d,1);break}},remove:function(a){null!=this.listeners[a]&&(this.listeners[a]=[])},triggerEvent:function(a,b){var c=this.listeners[a];if(c&&0!=c.length){null==b&&(b={});b.object=this.object;b.element=this.element;b.type||(b.type=a);for(var c=c.slice(),d,e=0,f=c.length;e<f&&!(d=c[e],d=d.func.apply(d.obj,[b]),void 0!=d&&!1==d);e++);this.fallThrough||OpenLayers.Event.stop(b,!0);return d}},\n +handleBrowserEvent:function(a){var b=a.type,c=this.listeners[b];if(c&&0!=c.length){if((c=a.touches)&&c[0]){for(var d=0,e=0,f=c.length,g,h=0;h<f;++h)g=c[h],d+=g.clientX,e+=g.clientY;a.clientX=d/f;a.clientY=e/f}this.includeXY&&(a.xy=this.getMousePosition(a));this.triggerEvent(b,a)}},clearMouseCache:function(){this.element.scrolls=null;this.element.lefttop=null;var a=document.body;if(a&&(!(0!=a.scrollTop||0!=a.scrollLeft)||!navigator.userAgent.match(/iPhone/i)))this.element.offsets=null},getMousePosition:function(a){this.includeXY?\n +this.element.hasScrollEvent||(OpenLayers.Event.observe(window,"scroll",this.clearMouseListener),this.element.hasScrollEvent=!0):this.clearMouseCache();if(!this.element.scrolls){var b=OpenLayers.Util.getViewportElement();this.element.scrolls=[b.scrollLeft,b.scrollTop]}this.element.lefttop||(this.element.lefttop=[document.documentElement.clientLeft||0,document.documentElement.clientTop||0]);this.element.offsets||(this.element.offsets=OpenLayers.Util.pagePosition(this.element));return new OpenLayers.Pixel(a.clientX+\n +this.element.scrolls[0]-this.element.offsets[0]-this.element.lefttop[0],a.clientY+this.element.scrolls[1]-this.element.offsets[1]-this.element.lefttop[1])},CLASS_NAME:"OpenLayers.Events"});OpenLayers.Events.buttonclick=OpenLayers.Class({target:null,events:"mousedown mouseup click dblclick touchstart touchmove touchend keydown".split(" "),startRegEx:/^mousedown|touchstart$/,cancelRegEx:/^touchmove$/,completeRegEx:/^mouseup|touchend$/,initialize:function(a){this.target=a;for(a=this.events.length-1;0<=a;--a)this.target.register(this.events[a],this,this.buttonClick,{extension:!0})},destroy:function(){for(var a=this.events.length-1;0<=a;--a)this.target.unregister(this.events[a],this,this.buttonClick);\n +delete this.target},getPressedButton:function(a){var b=3,c;do{if(OpenLayers.Element.hasClass(a,"olButton")){c=a;break}a=a.parentNode}while(0<--b&&a);return c},buttonClick:function(a){var b=!0,c=OpenLayers.Event.element(a);if(c&&(OpenLayers.Event.isLeftClick(a)||!~a.type.indexOf("mouse")))if(c=this.getPressedButton(c)){if("keydown"===a.type)switch(a.keyCode){case OpenLayers.Event.KEY_RETURN:case OpenLayers.Event.KEY_SPACE:this.target.triggerEvent("buttonclick",{buttonElement:c}),OpenLayers.Event.stop(a),\n +b=!1}else this.startEvt&&(this.completeRegEx.test(a.type)&&(b=OpenLayers.Util.pagePosition(c),this.target.triggerEvent("buttonclick",{buttonElement:c,buttonXY:{x:this.startEvt.clientX-b[0],y:this.startEvt.clientY-b[1]}})),this.cancelRegEx.test(a.type)&&delete this.startEvt,OpenLayers.Event.stop(a),b=!1);this.startRegEx.test(a.type)&&(this.startEvt=a,OpenLayers.Event.stop(a),b=!1)}else delete this.startEvt;return b}});OpenLayers.Control.OverviewMap=OpenLayers.Class(OpenLayers.Control,{element:null,ovmap:null,size:{w:180,h:90},layers:null,minRectSize:15,minRectDisplayClass:"RectReplacement",minRatio:8,maxRatio:32,mapOptions:null,autoPan:!1,handlers:null,resolutionFactor:1,maximized:!1,initialize:function(a){this.layers=[];this.handlers={};OpenLayers.Control.prototype.initialize.apply(this,[a])},destroy:function(){this.mapDiv&&(this.handlers.click&&this.handlers.click.destroy(),this.handlers.drag&&this.handlers.drag.destroy(),\n +this.ovmap&&this.ovmap.viewPortDiv.removeChild(this.extentRectangle),this.extentRectangle=null,this.rectEvents&&(this.rectEvents.destroy(),this.rectEvents=null),this.ovmap&&(this.ovmap.destroy(),this.ovmap=null),this.element.removeChild(this.mapDiv),this.mapDiv=null,this.div.removeChild(this.element),this.element=null,this.maximizeDiv&&(this.div.removeChild(this.maximizeDiv),this.maximizeDiv=null),this.minimizeDiv&&(this.div.removeChild(this.minimizeDiv),this.minimizeDiv=null),this.map.events.un({buttonclick:this.onButtonClick,\n +moveend:this.update,changebaselayer:this.baseLayerDraw,scope:this}),OpenLayers.Control.prototype.destroy.apply(this,arguments))},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);if(0===this.layers.length)if(this.map.baseLayer)this.layers=[this.map.baseLayer.clone()];else return this.map.events.register("changebaselayer",this,this.baseLayerDraw),this.div;this.element=document.createElement("div");this.element.className=this.displayClass+"Element";this.element.style.display="none";\n +this.mapDiv=document.createElement("div");this.mapDiv.style.width=this.size.w+"px";this.mapDiv.style.height=this.size.h+"px";this.mapDiv.style.position="relative";this.mapDiv.style.overflow="hidden";this.mapDiv.id=OpenLayers.Util.createUniqueID("overviewMap");this.extentRectangle=document.createElement("div");this.extentRectangle.style.position="absolute";this.extentRectangle.style.zIndex=1E3;this.extentRectangle.className=this.displayClass+"ExtentRectangle";this.element.appendChild(this.mapDiv);\n +this.div.appendChild(this.element);if(this.outsideViewport)this.element.style.display="";else{this.div.className+=" "+this.displayClass+"Container";var a=OpenLayers.Util.getImageLocation("layer-switcher-maximize.png");this.maximizeDiv=OpenLayers.Util.createAlphaImageDiv(this.displayClass+"MaximizeButton",null,null,a,"absolute");this.maximizeDiv.style.display="none";this.maximizeDiv.className=this.displayClass+"MaximizeButton olButton";this.div.appendChild(this.maximizeDiv);a=OpenLayers.Util.getImageLocation("layer-switcher-minimize.png");\n +this.minimizeDiv=OpenLayers.Util.createAlphaImageDiv("OpenLayers_Control_minimizeDiv",null,null,a,"absolute");this.minimizeDiv.style.display="none";this.minimizeDiv.className=this.displayClass+"MinimizeButton olButton";this.div.appendChild(this.minimizeDiv);this.minimizeControl()}this.map.getExtent()&&this.update();this.map.events.on({buttonclick:this.onButtonClick,moveend:this.update,scope:this});this.maximized&&this.maximizeControl();return this.div},baseLayerDraw:function(){this.draw();this.map.events.unregister("changebaselayer",\n +this,this.baseLayerDraw)},rectDrag:function(a){var b=this.handlers.drag.last.x-a.x,c=this.handlers.drag.last.y-a.y;if(0!=b||0!=c){var d=this.rectPxBounds.top,e=this.rectPxBounds.left,a=Math.abs(this.rectPxBounds.getHeight()),f=this.rectPxBounds.getWidth(),c=Math.max(0,d-c),c=Math.min(c,this.ovmap.size.h-this.hComp-a),b=Math.max(0,e-b),b=Math.min(b,this.ovmap.size.w-this.wComp-f);this.setRectPxBounds(new OpenLayers.Bounds(b,c+a,b+f,c))}},mapDivClick:function(a){var b=this.rectPxBounds.getCenterPixel(),\n +c=a.xy.x-b.x,d=a.xy.y-b.y,e=this.rectPxBounds.top,f=this.rectPxBounds.left,a=Math.abs(this.rectPxBounds.getHeight()),b=this.rectPxBounds.getWidth(),d=Math.max(0,e+d),d=Math.min(d,this.ovmap.size.h-a),c=Math.max(0,f+c),c=Math.min(c,this.ovmap.size.w-b);this.setRectPxBounds(new OpenLayers.Bounds(c,d+a,c+b,d));this.updateMapToRect()},onButtonClick:function(a){a.buttonElement===this.minimizeDiv?this.minimizeControl():a.buttonElement===this.maximizeDiv&&this.maximizeControl()},maximizeControl:function(a){this.element.style.display=\n +"";this.showToggle(!1);null!=a&&OpenLayers.Event.stop(a)},minimizeControl:function(a){this.element.style.display="none";this.showToggle(!0);null!=a&&OpenLayers.Event.stop(a)},showToggle:function(a){this.maximizeDiv.style.display=a?"":"none";this.minimizeDiv.style.display=a?"none":""},update:function(){null==this.ovmap&&this.createMap();(this.autoPan||!this.isSuitableOverview())&&this.updateOverview();this.updateRectToMap()},isSuitableOverview:function(){var a=this.map.getExtent(),b=this.map.maxExtent,\n +a=new OpenLayers.Bounds(Math.max(a.left,b.left),Math.max(a.bottom,b.bottom),Math.min(a.right,b.right),Math.min(a.top,b.top));this.ovmap.getProjection()!=this.map.getProjection()&&(a=a.transform(this.map.getProjectionObject(),this.ovmap.getProjectionObject()));b=this.ovmap.getResolution()/this.map.getResolution();return b>this.minRatio&&b<=this.maxRatio&&this.ovmap.getExtent().containsBounds(a)},updateOverview:function(){var a=this.map.getResolution(),b=this.ovmap.getResolution(),c=b/a;c>this.maxRatio?\n +b=this.minRatio*a:c<=this.minRatio&&(b=this.maxRatio*a);this.ovmap.getProjection()!=this.map.getProjection()?(a=this.map.center.clone(),a.transform(this.map.getProjectionObject(),this.ovmap.getProjectionObject())):a=this.map.center;this.ovmap.setCenter(a,this.ovmap.getZoomForResolution(b*this.resolutionFactor));this.updateRectToMap()},createMap:function(){var a=OpenLayers.Util.extend({controls:[],maxResolution:"auto",fallThrough:!1},this.mapOptions);this.ovmap=new OpenLayers.Map(this.mapDiv,a);this.ovmap.viewPortDiv.appendChild(this.extentRectangle);\n +OpenLayers.Event.stopObserving(window,"unload",this.ovmap.unloadDestroy);this.ovmap.addLayers(this.layers);this.ovmap.zoomToMaxExtent();this.wComp=(this.wComp=parseInt(OpenLayers.Element.getStyle(this.extentRectangle,"border-left-width"))+parseInt(OpenLayers.Element.getStyle(this.extentRectangle,"border-right-width")))?this.wComp:2;this.hComp=(this.hComp=parseInt(OpenLayers.Element.getStyle(this.extentRectangle,"border-top-width"))+parseInt(OpenLayers.Element.getStyle(this.extentRectangle,"border-bottom-width")))?\n +this.hComp:2;this.handlers.drag=new OpenLayers.Handler.Drag(this,{move:this.rectDrag,done:this.updateMapToRect},{map:this.ovmap});this.handlers.click=new OpenLayers.Handler.Click(this,{click:this.mapDivClick},{single:!0,"double":!1,stopSingle:!0,stopDouble:!0,pixelTolerance:1,map:this.ovmap});this.handlers.click.activate();this.rectEvents=new OpenLayers.Events(this,this.extentRectangle,null,!0);this.rectEvents.register("mouseover",this,function(){!this.handlers.drag.active&&!this.map.dragging&&this.handlers.drag.activate()});\n +this.rectEvents.register("mouseout",this,function(){this.handlers.drag.dragging||this.handlers.drag.deactivate()});if(this.ovmap.getProjection()!=this.map.getProjection()){var a=this.map.getProjectionObject().getUnits()||this.map.units||this.map.baseLayer.units,b=this.ovmap.getProjectionObject().getUnits()||this.ovmap.units||this.ovmap.baseLayer.units;this.resolutionFactor=a&&b?OpenLayers.INCHES_PER_UNIT[a]/OpenLayers.INCHES_PER_UNIT[b]:1}},updateRectToMap:function(){var a=this.getRectBoundsFromMapBounds(this.ovmap.getProjection()!=\n +this.map.getProjection()?this.map.getExtent().transform(this.map.getProjectionObject(),this.ovmap.getProjectionObject()):this.map.getExtent());a&&this.setRectPxBounds(a)},updateMapToRect:function(){var a=this.getMapBoundsFromRectBounds(this.rectPxBounds);this.ovmap.getProjection()!=this.map.getProjection()&&(a=a.transform(this.ovmap.getProjectionObject(),this.map.getProjectionObject()));this.map.panTo(a.getCenterLonLat())},setRectPxBounds:function(a){var b=Math.max(a.top,0),c=Math.max(a.left,0),d=\n +Math.min(a.top+Math.abs(a.getHeight()),this.ovmap.size.h-this.hComp),a=Math.min(a.left+a.getWidth(),this.ovmap.size.w-this.wComp),e=Math.max(a-c,0),f=Math.max(d-b,0);e<this.minRectSize||f<this.minRectSize?(this.extentRectangle.className=this.displayClass+this.minRectDisplayClass,e=c+e/2-this.minRectSize/2,this.extentRectangle.style.top=Math.round(b+f/2-this.minRectSize/2)+"px",this.extentRectangle.style.left=Math.round(e)+"px",this.extentRectangle.style.height=this.minRectSize+"px",this.extentRectangle.style.width=\n +this.minRectSize+"px"):(this.extentRectangle.className=this.displayClass+"ExtentRectangle",this.extentRectangle.style.top=Math.round(b)+"px",this.extentRectangle.style.left=Math.round(c)+"px",this.extentRectangle.style.height=Math.round(f)+"px",this.extentRectangle.style.width=Math.round(e)+"px");this.rectPxBounds=new OpenLayers.Bounds(Math.round(c),Math.round(d),Math.round(a),Math.round(b))},getRectBoundsFromMapBounds:function(a){var b=this.getOverviewPxFromLonLat({lon:a.left,lat:a.bottom}),a=this.getOverviewPxFromLonLat({lon:a.right,\n +lat:a.top}),c=null;b&&a&&(c=new OpenLayers.Bounds(b.x,b.y,a.x,a.y));return c},getMapBoundsFromRectBounds:function(a){var b=this.getLonLatFromOverviewPx({x:a.left,y:a.bottom}),a=this.getLonLatFromOverviewPx({x:a.right,y:a.top});return new OpenLayers.Bounds(b.lon,b.lat,a.lon,a.lat)},getLonLatFromOverviewPx:function(a){var b=this.ovmap.size,c=this.ovmap.getResolution(),d=this.ovmap.getExtent().getCenterLonLat();return{lon:d.lon+(a.x-b.w/2)*c,lat:d.lat-(a.y-b.h/2)*c}},getOverviewPxFromLonLat:function(a){var b=\n +this.ovmap.getResolution(),c=this.ovmap.getExtent();if(c)return{x:Math.round(1/b*(a.lon-c.left)),y:Math.round(1/b*(c.top-a.lat))}},CLASS_NAME:"OpenLayers.Control.OverviewMap"});OpenLayers.Animation=function(a){var b=!(!a.requestAnimationFrame&&!a.webkitRequestAnimationFrame&&!a.mozRequestAnimationFrame&&!a.oRequestAnimationFrame&&!a.msRequestAnimationFrame),c=function(){var b=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||function(b){a.setTimeout(b,16)};return function(c,d){b.apply(a,[c,d])}}(),d=0,e={};return{isNative:b,requestFrame:c,start:function(a,b,h){var b=0<b?b:Number.POSITIVE_INFINITY,\n +i=++d,j=+new Date;e[i]=function(){e[i]&&+new Date-j<=b?(a(),e[i]&&c(e[i],h)):delete e[i]};c(e[i],h);return i},stop:function(a){delete e[a]}}}(window);OpenLayers.Tween=OpenLayers.Class({easing:null,begin:null,finish:null,duration:null,callbacks:null,time:null,animationId:null,playing:!1,initialize:function(a){this.easing=a?a:OpenLayers.Easing.Expo.easeOut},start:function(a,b,c,d){this.playing=!0;this.begin=a;this.finish=b;this.duration=c;this.callbacks=d.callbacks;this.time=0;OpenLayers.Animation.stop(this.animationId);this.animationId=null;this.callbacks&&this.callbacks.start&&this.callbacks.start.call(this,this.begin);this.animationId=OpenLayers.Animation.start(OpenLayers.Function.bind(this.play,\n +this))},stop:function(){this.playing&&(this.callbacks&&this.callbacks.done&&this.callbacks.done.call(this,this.finish),OpenLayers.Animation.stop(this.animationId),this.animationId=null,this.playing=!1)},play:function(){var a={},b;for(b in this.begin){var c=this.begin[b],d=this.finish[b];if(null==c||null==d||isNaN(c)||isNaN(d))throw new TypeError("invalid value for Tween");a[b]=this.easing.apply(this,[this.time,c,d-c,this.duration])}this.time++;this.callbacks&&this.callbacks.eachStep&&this.callbacks.eachStep.call(this,\n +a);this.time>this.duration&&this.stop()},CLASS_NAME:"OpenLayers.Tween"});OpenLayers.Easing={CLASS_NAME:"OpenLayers.Easing"};OpenLayers.Easing.Linear={easeIn:function(a,b,c,d){return c*a/d+b},easeOut:function(a,b,c,d){return c*a/d+b},easeInOut:function(a,b,c,d){return c*a/d+b},CLASS_NAME:"OpenLayers.Easing.Linear"};\n +OpenLayers.Easing.Expo={easeIn:function(a,b,c,d){return 0==a?b:c*Math.pow(2,10*(a/d-1))+b},easeOut:function(a,b,c,d){return a==d?b+c:c*(-Math.pow(2,-10*a/d)+1)+b},easeInOut:function(a,b,c,d){return 0==a?b:a==d?b+c:1>(a/=d/2)?c/2*Math.pow(2,10*(a-1))+b:c/2*(-Math.pow(2,-10*--a)+2)+b},CLASS_NAME:"OpenLayers.Easing.Expo"};\n +OpenLayers.Easing.Quad={easeIn:function(a,b,c,d){return c*(a/=d)*a+b},easeOut:function(a,b,c,d){return-c*(a/=d)*(a-2)+b},easeInOut:function(a,b,c,d){return 1>(a/=d/2)?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b},CLASS_NAME:"OpenLayers.Easing.Quad"};OpenLayers.Projection=OpenLayers.Class({proj:null,projCode:null,titleRegEx:/\\+title=[^\\+]*/,initialize:function(a,b){OpenLayers.Util.extend(this,b);this.projCode=a;window.Proj4js&&(this.proj=new Proj4js.Proj(a))},getCode:function(){return this.proj?this.proj.srsCode:this.projCode},getUnits:function(){return this.proj?this.proj.units:null},toString:function(){return this.getCode()},equals:function(a){var b=!1;a&&(a instanceof OpenLayers.Projection||(a=new OpenLayers.Projection(a)),window.Proj4js&&\n +this.proj.defData&&a.proj.defData?b=this.proj.defData.replace(this.titleRegEx,"")==a.proj.defData.replace(this.titleRegEx,""):a.getCode&&(b=this.getCode(),a=a.getCode(),b=b==a||!!OpenLayers.Projection.transforms[b]&&OpenLayers.Projection.transforms[b][a]===OpenLayers.Projection.nullTransform));return b},destroy:function(){delete this.proj;delete this.projCode},CLASS_NAME:"OpenLayers.Projection"});OpenLayers.Projection.transforms={};\n +OpenLayers.Projection.defaults={"EPSG:4326":{units:"degrees",maxExtent:[-180,-90,180,90],yx:!0},"CRS:84":{units:"degrees",maxExtent:[-180,-90,180,90]},"EPSG:900913":{units:"m",maxExtent:[-2.003750834E7,-2.003750834E7,2.003750834E7,2.003750834E7]}};\n +OpenLayers.Projection.addTransform=function(a,b,c){if(c===OpenLayers.Projection.nullTransform){var d=OpenLayers.Projection.defaults[a];d&&!OpenLayers.Projection.defaults[b]&&(OpenLayers.Projection.defaults[b]=d)}OpenLayers.Projection.transforms[a]||(OpenLayers.Projection.transforms[a]={});OpenLayers.Projection.transforms[a][b]=c};\n +OpenLayers.Projection.transform=function(a,b,c){if(b&&c)if(b instanceof OpenLayers.Projection||(b=new OpenLayers.Projection(b)),c instanceof OpenLayers.Projection||(c=new OpenLayers.Projection(c)),b.proj&&c.proj)a=Proj4js.transform(b.proj,c.proj,a);else{var b=b.getCode(),c=c.getCode(),d=OpenLayers.Projection.transforms;if(d[b]&&d[b][c])d[b][c](a)}return a};OpenLayers.Projection.nullTransform=function(a){return a};\n +(function(){function a(a){a.x=180*a.x/d;a.y=180/Math.PI*(2*Math.atan(Math.exp(a.y/d*Math.PI))-Math.PI/2);return a}function b(a){a.x=a.x*d/180;a.y=Math.log(Math.tan((90+a.y)*Math.PI/360))/Math.PI*d;return a}function c(c,d){var e=OpenLayers.Projection.addTransform,f=OpenLayers.Projection.nullTransform,g,m,n,o,p;g=0;for(m=d.length;g<m;++g){n=d[g];e(c,n,b);e(n,c,a);for(p=g+1;p<m;++p)o=d[p],e(n,o,f),e(o,n,f)}}var d=2.003750834E7,e=["EPSG:900913","EPSG:3857","EPSG:102113","EPSG:102100"],f=["CRS:84","urn:ogc:def:crs:EPSG:6.6:4326",\n +"EPSG:4326"],g;for(g=e.length-1;0<=g;--g)c(e[g],f);for(g=f.length-1;0<=g;--g)c(f[g],e)})();OpenLayers.Map=OpenLayers.Class({Z_INDEX_BASE:{BaseLayer:100,Overlay:325,Feature:725,Popup:750,Control:1E3},id:null,fractionalZoom:!1,events:null,allOverlays:!1,div:null,dragging:!1,size:null,viewPortDiv:null,layerContainerOrigin:null,layerContainerDiv:null,layers:null,controls:null,popups:null,baseLayer:null,center:null,resolution:null,zoom:0,panRatio:1.5,options:null,tileSize:null,projection:"EPSG:4326",units:null,resolutions:null,maxResolution:null,minResolution:null,maxScale:null,minScale:null,\n +maxExtent:null,minExtent:null,restrictedExtent:null,numZoomLevels:16,theme:null,displayProjection:null,fallThrough:!0,panTween:null,eventListeners:null,panMethod:OpenLayers.Easing.Expo.easeOut,panDuration:50,paddingForPopups:null,minPx:null,maxPx:null,initialize:function(a,b){1===arguments.length&&"object"===typeof a&&(a=(b=a)&&b.div);this.tileSize=new OpenLayers.Size(OpenLayers.Map.TILE_WIDTH,OpenLayers.Map.TILE_HEIGHT);this.paddingForPopups=new OpenLayers.Bounds(15,15,15,15);this.theme=OpenLayers._getScriptLocation()+\n +"theme/default/style.css";this.options=OpenLayers.Util.extend({},b);OpenLayers.Util.extend(this,b);OpenLayers.Util.applyDefaults(this,OpenLayers.Projection.defaults[this.projection instanceof OpenLayers.Projection?this.projection.projCode:this.projection]);this.maxExtent&&!(this.maxExtent instanceof OpenLayers.Bounds)&&(this.maxExtent=new OpenLayers.Bounds(this.maxExtent));this.minExtent&&!(this.minExtent instanceof OpenLayers.Bounds)&&(this.minExtent=new OpenLayers.Bounds(this.minExtent));this.restrictedExtent&&\n +!(this.restrictedExtent instanceof OpenLayers.Bounds)&&(this.restrictedExtent=new OpenLayers.Bounds(this.restrictedExtent));this.center&&!(this.center instanceof OpenLayers.LonLat)&&(this.center=new OpenLayers.LonLat(this.center));this.layers=[];this.id=OpenLayers.Util.createUniqueID("OpenLayers.Map_");this.div=OpenLayers.Util.getElement(a);this.div||(this.div=document.createElement("div"),this.div.style.height="1px",this.div.style.width="1px");OpenLayers.Element.addClass(this.div,"olMap");var c=\n +this.id+"_OpenLayers_ViewPort";this.viewPortDiv=OpenLayers.Util.createDiv(c,null,null,null,"relative",null,"hidden");this.viewPortDiv.style.width="100%";this.viewPortDiv.style.height="100%";this.viewPortDiv.className="olMapViewport";this.div.appendChild(this.viewPortDiv);this.events=new OpenLayers.Events(this,this.viewPortDiv,null,this.fallThrough,{includeXY:!0});c=this.id+"_OpenLayers_Container";this.layerContainerDiv=OpenLayers.Util.createDiv(c);this.layerContainerDiv.style.width="100px";this.layerContainerDiv.style.height=\n +"100px";this.layerContainerDiv.style.zIndex=this.Z_INDEX_BASE.Popup-1;this.viewPortDiv.appendChild(this.layerContainerDiv);this.updateSize();if(this.eventListeners instanceof Object)this.events.on(this.eventListeners);9>parseFloat(navigator.appVersion.split("MSIE")[1])?this.events.register("resize",this,this.updateSize):(this.updateSizeDestroy=OpenLayers.Function.bind(this.updateSize,this),OpenLayers.Event.observe(window,"resize",this.updateSizeDestroy));if(this.theme){for(var c=!0,d=document.getElementsByTagName("link"),\n +e=0,f=d.length;e<f;++e)if(OpenLayers.Util.isEquivalentUrl(d.item(e).href,this.theme)){c=!1;break}c&&(c=document.createElement("link"),c.setAttribute("rel","stylesheet"),c.setAttribute("type","text/css"),c.setAttribute("href",this.theme),document.getElementsByTagName("head")[0].appendChild(c))}null==this.controls&&(this.controls=[],null!=OpenLayers.Control&&(OpenLayers.Control.Navigation?this.controls.push(new OpenLayers.Control.Navigation):OpenLayers.Control.TouchNavigation&&this.controls.push(new OpenLayers.Control.TouchNavigation),\n +OpenLayers.Control.Zoom?this.controls.push(new OpenLayers.Control.Zoom):OpenLayers.Control.PanZoom&&this.controls.push(new OpenLayers.Control.PanZoom),OpenLayers.Control.ArgParser&&this.controls.push(new OpenLayers.Control.ArgParser),OpenLayers.Control.Attribution&&this.controls.push(new OpenLayers.Control.Attribution)));e=0;for(f=this.controls.length;e<f;e++)this.addControlToMap(this.controls[e]);this.popups=[];this.unloadDestroy=OpenLayers.Function.bind(this.destroy,this);OpenLayers.Event.observe(window,\n +"unload",this.unloadDestroy);b&&b.layers&&(delete this.center,this.addLayers(b.layers),b.center&&!this.getCenter()&&this.setCenter(b.center,b.zoom))},getViewport:function(){return this.viewPortDiv},render:function(a){this.div=OpenLayers.Util.getElement(a);OpenLayers.Element.addClass(this.div,"olMap");this.viewPortDiv.parentNode.removeChild(this.viewPortDiv);this.div.appendChild(this.viewPortDiv);this.updateSize()},unloadDestroy:null,updateSizeDestroy:null,destroy:function(){if(!this.unloadDestroy)return!1;\n +this.panTween&&(this.panTween.stop(),this.panTween=null);OpenLayers.Event.stopObserving(window,"unload",this.unloadDestroy);this.unloadDestroy=null;this.updateSizeDestroy?OpenLayers.Event.stopObserving(window,"resize",this.updateSizeDestroy):this.events.unregister("resize",this,this.updateSize);this.paddingForPopups=null;if(null!=this.controls){for(var a=this.controls.length-1;0<=a;--a)this.controls[a].destroy();this.controls=null}if(null!=this.layers){for(a=this.layers.length-1;0<=a;--a)this.layers[a].destroy(!1);\n +this.layers=null}this.viewPortDiv&&this.div.removeChild(this.viewPortDiv);this.viewPortDiv=null;this.eventListeners&&(this.events.un(this.eventListeners),this.eventListeners=null);this.events.destroy();this.options=this.events=null},setOptions:function(a){var b=this.minPx&&a.restrictedExtent!=this.restrictedExtent;OpenLayers.Util.extend(this,a);b&&this.moveTo(this.getCachedCenter(),this.zoom,{forceZoomChange:!0})},getTileSize:function(){return this.tileSize},getBy:function(a,b,c){var d="function"==\n +typeof c.test;return OpenLayers.Array.filter(this[a],function(a){return a[b]==c||d&&c.test(a[b])})},getLayersBy:function(a,b){return this.getBy("layers",a,b)},getLayersByName:function(a){return this.getLayersBy("name",a)},getLayersByClass:function(a){return this.getLayersBy("CLASS_NAME",a)},getControlsBy:function(a,b){return this.getBy("controls",a,b)},getControlsByClass:function(a){return this.getControlsBy("CLASS_NAME",a)},getLayer:function(a){for(var b=null,c=0,d=this.layers.length;c<d;c++){var e=\n +this.layers[c];if(e.id==a){b=e;break}}return b},setLayerZIndex:function(a,b){a.setZIndex(this.Z_INDEX_BASE[a.isBaseLayer?"BaseLayer":"Overlay"]+5*b)},resetLayersZIndex:function(){for(var a=0,b=this.layers.length;a<b;a++)this.setLayerZIndex(this.layers[a],a)},addLayer:function(a){for(var b=0,c=this.layers.length;b<c;b++)if(this.layers[b]==a)return!1;if(!1===this.events.triggerEvent("preaddlayer",{layer:a}))return!1;this.allOverlays&&(a.isBaseLayer=!1);a.div.className="olLayerDiv";a.div.style.overflow=\n +"";this.setLayerZIndex(a,this.layers.length);a.isFixed?this.viewPortDiv.appendChild(a.div):this.layerContainerDiv.appendChild(a.div);this.layers.push(a);a.setMap(this);a.isBaseLayer||this.allOverlays&&!this.baseLayer?null==this.baseLayer?this.setBaseLayer(a):a.setVisibility(!1):a.redraw();this.events.triggerEvent("addlayer",{layer:a});a.events.triggerEvent("added",{map:this,layer:a});a.afterAdd();return!0},addLayers:function(a){for(var b=0,c=a.length;b<c;b++)this.addLayer(a[b])},removeLayer:function(a,\n +b){if(!1!==this.events.triggerEvent("preremovelayer",{layer:a})){null==b&&(b=!0);a.isFixed?this.viewPortDiv.removeChild(a.div):this.layerContainerDiv.removeChild(a.div);OpenLayers.Util.removeItem(this.layers,a);a.removeMap(this);a.map=null;if(this.baseLayer==a&&(this.baseLayer=null,b))for(var c=0,d=this.layers.length;c<d;c++){var e=this.layers[c];if(e.isBaseLayer||this.allOverlays){this.setBaseLayer(e);break}}this.resetLayersZIndex();this.events.triggerEvent("removelayer",{layer:a});a.events.triggerEvent("removed",\n +{map:this,layer:a})}},getNumLayers:function(){return this.layers.length},getLayerIndex:function(a){return OpenLayers.Util.indexOf(this.layers,a)},setLayerIndex:function(a,b){var c=this.getLayerIndex(a);0>b?b=0:b>this.layers.length&&(b=this.layers.length);if(c!=b){this.layers.splice(c,1);this.layers.splice(b,0,a);for(var c=0,d=this.layers.length;c<d;c++)this.setLayerZIndex(this.layers[c],c);this.events.triggerEvent("changelayer",{layer:a,property:"order"});this.allOverlays&&(0===b?this.setBaseLayer(a):\n +this.baseLayer!==this.layers[0]&&this.setBaseLayer(this.layers[0]))}},raiseLayer:function(a,b){var c=this.getLayerIndex(a)+b;this.setLayerIndex(a,c)},setBaseLayer:function(a){if(a!=this.baseLayer&&-1!=OpenLayers.Util.indexOf(this.layers,a)){var b=this.getCachedCenter(),c=OpenLayers.Util.getResolutionFromScale(this.getScale(),a.units);null!=this.baseLayer&&!this.allOverlays&&this.baseLayer.setVisibility(!1);this.baseLayer=a;if(!this.allOverlays||this.baseLayer.visibility)this.baseLayer.setVisibility(!0),\n +!1===this.baseLayer.inRange&&this.baseLayer.redraw();null!=b&&(a=this.getZoomForResolution(c||this.resolution,!0),this.setCenter(b,a,!1,!0));this.events.triggerEvent("changebaselayer",{layer:this.baseLayer})}},addControl:function(a,b){this.controls.push(a);this.addControlToMap(a,b)},addControls:function(a,b){for(var c=1===arguments.length?[]:b,d=0,e=a.length;d<e;d++)this.addControl(a[d],c[d]?c[d]:null)},addControlToMap:function(a,b){a.outsideViewport=null!=a.div;this.displayProjection&&!a.displayProjection&&\n +(a.displayProjection=this.displayProjection);a.setMap(this);var c=a.draw(b);c&&!a.outsideViewport&&(c.style.zIndex=this.Z_INDEX_BASE.Control+this.controls.length,this.viewPortDiv.appendChild(c));a.autoActivate&&a.activate()},getControl:function(a){for(var b=null,c=0,d=this.controls.length;c<d;c++){var e=this.controls[c];if(e.id==a){b=e;break}}return b},removeControl:function(a){a&&a==this.getControl(a.id)&&(a.div&&a.div.parentNode==this.viewPortDiv&&this.viewPortDiv.removeChild(a.div),OpenLayers.Util.removeItem(this.controls,\n +a))},addPopup:function(a,b){if(b)for(var c=this.popups.length-1;0<=c;--c)this.removePopup(this.popups[c]);a.map=this;this.popups.push(a);if(c=a.draw())c.style.zIndex=this.Z_INDEX_BASE.Popup+this.popups.length,this.layerContainerDiv.appendChild(c)},removePopup:function(a){OpenLayers.Util.removeItem(this.popups,a);if(a.div)try{this.layerContainerDiv.removeChild(a.div)}catch(b){}a.map=null},getSize:function(){var a=null;null!=this.size&&(a=this.size.clone());return a},updateSize:function(){var a=this.getCurrentSize();\n +if(a&&!isNaN(a.h)&&!isNaN(a.w)){this.events.clearMouseCache();var b=this.getSize();null==b&&(this.size=b=a);if(!a.equals(b)){this.size=a;a=0;for(b=this.layers.length;a<b;a++)this.layers[a].onMapResize();a=this.getCachedCenter();null!=this.baseLayer&&null!=a&&(b=this.getZoom(),this.zoom=null,this.setCenter(a,b))}}},getCurrentSize:function(){var a=new OpenLayers.Size(this.div.clientWidth,this.div.clientHeight);if(0==a.w&&0==a.h||isNaN(a.w)&&isNaN(a.h))a.w=this.div.offsetWidth,a.h=this.div.offsetHeight;\n +if(0==a.w&&0==a.h||isNaN(a.w)&&isNaN(a.h))a.w=parseInt(this.div.style.width),a.h=parseInt(this.div.style.height);return a},calculateBounds:function(a,b){var c=null;null==a&&(a=this.getCachedCenter());null==b&&(b=this.getResolution());if(null!=a&&null!=b)var c=this.size.w*b/2,d=this.size.h*b/2,c=new OpenLayers.Bounds(a.lon-c,a.lat-d,a.lon+c,a.lat+d);return c},getCenter:function(){var a=null,b=this.getCachedCenter();b&&(a=b.clone());return a},getCachedCenter:function(){!this.center&&this.size&&(this.center=\n +this.getLonLatFromViewPortPx({x:this.size.w/2,y:this.size.h/2}));return this.center},getZoom:function(){return this.zoom},pan:function(a,b,c){c=OpenLayers.Util.applyDefaults(c,{animate:!0,dragging:!1});if(c.dragging)(0!=a||0!=b)&&this.moveByPx(a,b);else{var d=this.getViewPortPxFromLonLat(this.getCachedCenter()),a=d.add(a,b);if(this.dragging||!a.equals(d))d=this.getLonLatFromViewPortPx(a),c.animate?this.panTo(d):(this.moveTo(d),this.dragging&&(this.dragging=!1,this.events.triggerEvent("moveend")))}},\n +panTo:function(a){if(this.panMethod&&this.getExtent().scale(this.panRatio).containsLonLat(a)){this.panTween||(this.panTween=new OpenLayers.Tween(this.panMethod));var b=this.getCachedCenter();if(!a.equals(b)){var b=this.getPixelFromLonLat(b),c=this.getPixelFromLonLat(a),d=0,e=0;this.panTween.start({x:0,y:0},{x:c.x-b.x,y:c.y-b.y},this.panDuration,{callbacks:{eachStep:OpenLayers.Function.bind(function(a){this.moveByPx(a.x-d,a.y-e);d=Math.round(a.x);e=Math.round(a.y)},this),done:OpenLayers.Function.bind(function(){this.moveTo(a);\n +this.dragging=false;this.events.triggerEvent("moveend")},this)}})}}else this.setCenter(a)},setCenter:function(a,b,c,d){this.panTween&&this.panTween.stop();this.moveTo(a,b,{dragging:c,forceZoomChange:d})},moveByPx:function(a,b){var c=this.size.w/2,d=this.size.h/2,e=c+a,f=d+b,g=this.baseLayer.wrapDateLine,h=0,i=0;this.restrictedExtent&&(h=c,i=d,g=!1);a=g||e<=this.maxPx.x-h&&e>=this.minPx.x+h?Math.round(a):0;b=f<=this.maxPx.y-i&&f>=this.minPx.y+i?Math.round(b):0;if(a||b){this.dragging||(this.dragging=\n +!0,this.events.triggerEvent("movestart"));this.center=null;a&&(this.layerContainerDiv.style.left=parseInt(this.layerContainerDiv.style.left)-a+"px",this.minPx.x-=a,this.maxPx.x-=a);b&&(this.layerContainerDiv.style.top=parseInt(this.layerContainerDiv.style.top)-b+"px",this.minPx.y-=b,this.maxPx.y-=b);d=0;for(e=this.layers.length;d<e;++d)if(c=this.layers[d],c.visibility&&(c===this.baseLayer||c.inRange))c.moveByPx(a,b),c.events.triggerEvent("move");this.events.triggerEvent("move")}},adjustZoom:function(a){var b=\n +this.baseLayer.resolutions,c=this.getMaxExtent().getWidth()/this.size.w;if(this.getResolutionForZoom(a)>c)for(var d=a|0,e=b.length;d<e;++d)if(b[d]<=c){a=d;break}return a},moveTo:function(a,b,c){null!=a&&!(a instanceof OpenLayers.LonLat)&&(a=new OpenLayers.LonLat(a));c||(c={});null!=b&&(b=parseFloat(b),this.fractionalZoom||(b=Math.round(b)));if(this.baseLayer.wrapDateLine){var d=b,b=this.adjustZoom(b);b!==d&&(a=this.getCenter())}var d=c.dragging||this.dragging,e=c.forceZoomChange;!this.getCachedCenter()&&\n +!this.isValidLonLat(a)&&(a=this.maxExtent.getCenterLonLat(),this.center=a.clone());if(null!=this.restrictedExtent){null==a&&(a=this.center);null==b&&(b=this.getZoom());var f=this.getResolutionForZoom(b),f=this.calculateBounds(a,f);if(!this.restrictedExtent.containsBounds(f)){var g=this.restrictedExtent.getCenterLonLat();f.getWidth()>this.restrictedExtent.getWidth()?a=new OpenLayers.LonLat(g.lon,a.lat):f.left<this.restrictedExtent.left?a=a.add(this.restrictedExtent.left-f.left,0):f.right>this.restrictedExtent.right&&\n +(a=a.add(this.restrictedExtent.right-f.right,0));f.getHeight()>this.restrictedExtent.getHeight()?a=new OpenLayers.LonLat(a.lon,g.lat):f.bottom<this.restrictedExtent.bottom?a=a.add(0,this.restrictedExtent.bottom-f.bottom):f.top>this.restrictedExtent.top&&(a=a.add(0,this.restrictedExtent.top-f.top))}}e=e||this.isValidZoomLevel(b)&&b!=this.getZoom();f=this.isValidLonLat(a)&&!a.equals(this.center);if(e||f||d){d||this.events.triggerEvent("movestart");f&&(!e&&this.center&&this.centerLayerContainer(a),this.center=\n +a.clone());a=e?this.getResolutionForZoom(b):this.getResolution();if(e||null==this.layerContainerOrigin){this.layerContainerOrigin=this.getCachedCenter();this.layerContainerDiv.style.left="0px";this.layerContainerDiv.style.top="0px";var f=this.getMaxExtent({restricted:!0}),h=f.getCenterLonLat(),g=this.center.lon-h.lon,h=h.lat-this.center.lat,i=Math.round(f.getWidth()/a),j=Math.round(f.getHeight()/a);this.minPx={x:(this.size.w-i)/2-g/a,y:(this.size.h-j)/2-h/a};this.maxPx={x:this.minPx.x+Math.round(f.getWidth()/\n +a),y:this.minPx.y+Math.round(f.getHeight()/a)}}e&&(this.zoom=b,this.resolution=a);a=this.getExtent();this.baseLayer.visibility&&(this.baseLayer.moveTo(a,e,c.dragging),c.dragging||this.baseLayer.events.triggerEvent("moveend",{zoomChanged:e}));a=this.baseLayer.getExtent();for(b=this.layers.length-1;0<=b;--b)if(f=this.layers[b],f!==this.baseLayer&&!f.isBaseLayer&&(g=f.calculateInRange(),f.inRange!=g&&((f.inRange=g)||f.display(!1),this.events.triggerEvent("changelayer",{layer:f,property:"visibility"})),\n +g&&f.visibility))f.moveTo(a,e,c.dragging),c.dragging||f.events.triggerEvent("moveend",{zoomChanged:e});this.events.triggerEvent("move");d||this.events.triggerEvent("moveend");if(e){b=0;for(c=this.popups.length;b<c;b++)this.popups[b].updatePosition();this.events.triggerEvent("zoomend")}}},centerLayerContainer:function(a){var b=this.getViewPortPxFromLonLat(this.layerContainerOrigin),c=this.getViewPortPxFromLonLat(a);if(null!=b&&null!=c){var d=parseInt(this.layerContainerDiv.style.left),a=parseInt(this.layerContainerDiv.style.top),\n +e=Math.round(b.x-c.x),b=Math.round(b.y-c.y);this.layerContainerDiv.style.left=e+"px";this.layerContainerDiv.style.top=b+"px";d-=e;a-=b;this.minPx.x-=d;this.maxPx.x-=d;this.minPx.y-=a;this.maxPx.y-=a}},isValidZoomLevel:function(a){return null!=a&&0<=a&&a<this.getNumZoomLevels()},isValidLonLat:function(a){var b=!1;null!=a&&(b=this.getMaxExtent(),b=b.containsLonLat(a,{worldBounds:this.baseLayer.wrapDateLine&&b}));return b},getProjection:function(){var a=this.getProjectionObject();return a?a.getCode():\n +null},getProjectionObject:function(){var a=null;null!=this.baseLayer&&(a=this.baseLayer.projection);return a},getMaxResolution:function(){var a=null;null!=this.baseLayer&&(a=this.baseLayer.maxResolution);return a},getMaxExtent:function(a){var b=null;a&&a.restricted&&this.restrictedExtent?b=this.restrictedExtent:null!=this.baseLayer&&(b=this.baseLayer.maxExtent);return b},getNumZoomLevels:function(){var a=null;null!=this.baseLayer&&(a=this.baseLayer.numZoomLevels);return a},getExtent:function(){var a=\n +null;null!=this.baseLayer&&(a=this.baseLayer.getExtent());return a},getResolution:function(){var a=null;null!=this.baseLayer?a=this.baseLayer.getResolution():!0===this.allOverlays&&0<this.layers.length&&(a=this.layers[0].getResolution());return a},getUnits:function(){var a=null;null!=this.baseLayer&&(a=this.baseLayer.units);return a},getScale:function(){var a=null;null!=this.baseLayer&&(a=this.getResolution(),a=OpenLayers.Util.getScaleFromResolution(a,this.baseLayer.units));return a},getZoomForExtent:function(a,\n +b){var c=null;null!=this.baseLayer&&(c=this.baseLayer.getZoomForExtent(a,b));return c},getResolutionForZoom:function(a){var b=null;this.baseLayer&&(b=this.baseLayer.getResolutionForZoom(a));return b},getZoomForResolution:function(a,b){var c=null;null!=this.baseLayer&&(c=this.baseLayer.getZoomForResolution(a,b));return c},zoomTo:function(a){this.isValidZoomLevel(a)&&this.setCenter(null,a)},zoomIn:function(){this.zoomTo(this.getZoom()+1)},zoomOut:function(){this.zoomTo(this.getZoom()-1)},zoomToExtent:function(a,\n +b){a instanceof OpenLayers.Bounds||(a=new OpenLayers.Bounds(a));var c=a.getCenterLonLat();if(this.baseLayer.wrapDateLine){c=this.getMaxExtent();for(a=a.clone();a.right<a.left;)a.right+=c.getWidth();c=a.getCenterLonLat().wrapDateLine(c)}this.setCenter(c,this.getZoomForExtent(a,b))},zoomToMaxExtent:function(a){this.zoomToExtent(this.getMaxExtent({restricted:a?a.restricted:!0}))},zoomToScale:function(a,b){var c=OpenLayers.Util.getResolutionFromScale(a,this.baseLayer.units),d=this.size.w*c/2,c=this.size.h*\n +c/2,e=this.getCachedCenter();this.zoomToExtent(new OpenLayers.Bounds(e.lon-d,e.lat-c,e.lon+d,e.lat+c),b)},getLonLatFromViewPortPx:function(a){var b=null;null!=this.baseLayer&&(b=this.baseLayer.getLonLatFromViewPortPx(a));return b},getViewPortPxFromLonLat:function(a){var b=null;null!=this.baseLayer&&(b=this.baseLayer.getViewPortPxFromLonLat(a));return b},getLonLatFromPixel:function(a){return this.getLonLatFromViewPortPx(a)},getPixelFromLonLat:function(a){a=this.getViewPortPxFromLonLat(a);a.x=Math.round(a.x);\n +a.y=Math.round(a.y);return a},getGeodesicPixelSize:function(a){var b=a?this.getLonLatFromPixel(a):this.getCachedCenter()||new OpenLayers.LonLat(0,0),c=this.getResolution(),a=b.add(-c/2,0),d=b.add(c/2,0),e=b.add(0,-c/2),b=b.add(0,c/2),c=new OpenLayers.Projection("EPSG:4326"),f=this.getProjectionObject()||c;f.equals(c)||(a.transform(f,c),d.transform(f,c),e.transform(f,c),b.transform(f,c));return new OpenLayers.Size(OpenLayers.Util.distVincenty(a,d),OpenLayers.Util.distVincenty(e,b))},getViewPortPxFromLayerPx:function(a){var b=\n +null;if(null!=a)var b=parseInt(this.layerContainerDiv.style.left),c=parseInt(this.layerContainerDiv.style.top),b=a.add(b,c);return b},getLayerPxFromViewPortPx:function(a){var b=null;if(null!=a){var b=-parseInt(this.layerContainerDiv.style.left),c=-parseInt(this.layerContainerDiv.style.top),b=a.add(b,c);if(isNaN(b.x)||isNaN(b.y))b=null}return b},getLonLatFromLayerPx:function(a){a=this.getViewPortPxFromLayerPx(a);return this.getLonLatFromViewPortPx(a)},getLayerPxFromLonLat:function(a){return this.getLayerPxFromViewPortPx(this.getPixelFromLonLat(a))},\n +CLASS_NAME:"OpenLayers.Map"});OpenLayers.Map.TILE_WIDTH=256;OpenLayers.Map.TILE_HEIGHT=256;OpenLayers.Layer=OpenLayers.Class({id:null,name:null,div:null,opacity:1,alwaysInRange:null,RESOLUTION_PROPERTIES:"scales resolutions maxScale minScale maxResolution minResolution numZoomLevels maxZoomLevel".split(" "),events:null,map:null,isBaseLayer:!1,alpha:!1,displayInLayerSwitcher:!0,visibility:!0,attribution:null,inRange:!1,imageSize:null,options:null,eventListeners:null,gutter:0,projection:null,units:null,scales:null,resolutions:null,maxExtent:null,minExtent:null,maxResolution:null,minResolution:null,\n +numZoomLevels:null,minScale:null,maxScale:null,displayOutsideMaxExtent:!1,wrapDateLine:!1,metadata:null,initialize:function(a,b){this.metadata={};this.addOptions(b);this.name=a;if(null==this.id&&(this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_"),this.div=OpenLayers.Util.createDiv(this.id),this.div.style.width="100%",this.div.style.height="100%",this.div.dir="ltr",this.events=new OpenLayers.Events(this,this.div),this.eventListeners instanceof Object))this.events.on(this.eventListeners)},\n +destroy:function(a){null==a&&(a=!0);null!=this.map&&this.map.removeLayer(this,a);this.options=this.div=this.name=this.map=this.projection=null;this.events&&(this.eventListeners&&this.events.un(this.eventListeners),this.events.destroy());this.events=this.eventListeners=null},clone:function(a){null==a&&(a=new OpenLayers.Layer(this.name,this.getOptions()));OpenLayers.Util.applyDefaults(a,this);a.map=null;return a},getOptions:function(){var a={},b;for(b in this.options)a[b]=this[b];return a},setName:function(a){a!=\n +this.name&&(this.name=a,null!=this.map&&this.map.events.triggerEvent("changelayer",{layer:this,property:"name"}))},addOptions:function(a,b){null==this.options&&(this.options={});if(a&&("string"==typeof a.projection&&(a.projection=new OpenLayers.Projection(a.projection)),a.projection&&OpenLayers.Util.applyDefaults(a,OpenLayers.Projection.defaults[a.projection.getCode()]),a.maxExtent&&!(a.maxExtent instanceof OpenLayers.Bounds)&&(a.maxExtent=new OpenLayers.Bounds(a.maxExtent)),a.minExtent&&!(a.minExtent instanceof\n +OpenLayers.Bounds)))a.minExtent=new OpenLayers.Bounds(a.minExtent);OpenLayers.Util.extend(this.options,a);OpenLayers.Util.extend(this,a);this.projection&&this.projection.getUnits()&&(this.units=this.projection.getUnits());if(this.map){var c=this.map.getResolution(),d=this.RESOLUTION_PROPERTIES.concat(["projection","units","minExtent","maxExtent"]),e;for(e in a)if(a.hasOwnProperty(e)&&0<=OpenLayers.Util.indexOf(d,e)){this.initResolutions();b&&this.map.baseLayer===this&&(this.map.setCenter(this.map.getCenter(),\n +this.map.getZoomForResolution(c),!1,!0),this.map.events.triggerEvent("changebaselayer",{layer:this}));break}}},onMapResize:function(){},redraw:function(){var a=!1;if(this.map){this.inRange=this.calculateInRange();var b=this.getExtent();b&&(this.inRange&&this.visibility)&&(this.moveTo(b,!0,!1),this.events.triggerEvent("moveend",{zoomChanged:!0}),a=!0)}return a},moveTo:function(){var a=this.visibility;this.isBaseLayer||(a=a&&this.inRange);this.display(a)},moveByPx:function(){},setMap:function(a){null==\n +this.map&&(this.map=a,this.maxExtent=this.maxExtent||this.map.maxExtent,this.minExtent=this.minExtent||this.map.minExtent,this.projection=this.projection||this.map.projection,"string"==typeof this.projection&&(this.projection=new OpenLayers.Projection(this.projection)),this.units=this.projection.getUnits()||this.units||this.map.units,this.initResolutions(),this.isBaseLayer||(this.inRange=this.calculateInRange(),this.div.style.display=this.visibility&&this.inRange?"":"none"),this.setTileSize())},afterAdd:function(){},\n +removeMap:function(){},getImageSize:function(){return this.imageSize||this.tileSize},setTileSize:function(a){this.tileSize=a=a?a:this.tileSize?this.tileSize:this.map.getTileSize();this.gutter&&(this.imageSize=new OpenLayers.Size(a.w+2*this.gutter,a.h+2*this.gutter))},getVisibility:function(){return this.visibility},setVisibility:function(a){a!=this.visibility&&(this.visibility=a,this.display(a),this.redraw(),null!=this.map&&this.map.events.triggerEvent("changelayer",{layer:this,property:"visibility"}),\n +this.events.triggerEvent("visibilitychanged"))},display:function(a){a!=("none"!=this.div.style.display)&&(this.div.style.display=a&&this.calculateInRange()?"block":"none")},calculateInRange:function(){var a=!1;this.alwaysInRange?a=!0:this.map&&(a=this.map.getResolution(),a=a>=this.minResolution&&a<=this.maxResolution);return a},setIsBaseLayer:function(a){a!=this.isBaseLayer&&(this.isBaseLayer=a,null!=this.map&&this.map.events.triggerEvent("changebaselayer",{layer:this}))},initResolutions:function(){var a,\n +b,c,d={},e=!0;a=0 + +]]></string> </value> + </item> + <item> + <key> <string>next</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="Pdata" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> <string encoding="cdata"><![CDATA[ +;for(b=this.RESOLUTION_PROPERTIES.length;a<b;a++)c=this.RESOLUTION_PROPERTIES[a],d[c]=this.options[c],e&&this.options[c]&&(e=!1);null==this.alwaysInRange&&(this.alwaysInRange=e);null==d.resolutions&&(d.resolutions=this.resolutionsFromScales(d.scales));null==d.resolutions&&(d.resolutions=this.calculateResolutions(d));if(null==d.resolutions){a=0;for(b=this.RESOLUTION_PROPERTIES.length;a<b;a++)c=this.RESOLUTION_PROPERTIES[a],d[c]=null!=this.options[c]?this.options[c]:this.map[c];null==\n +d.resolutions&&(d.resolutions=this.resolutionsFromScales(d.scales));null==d.resolutions&&(d.resolutions=this.calculateResolutions(d))}var f;this.options.maxResolution&&"auto"!==this.options.maxResolution&&(f=this.options.maxResolution);this.options.minScale&&(f=OpenLayers.Util.getResolutionFromScale(this.options.minScale,this.units));var g;this.options.minResolution&&"auto"!==this.options.minResolution&&(g=this.options.minResolution);this.options.maxScale&&(g=OpenLayers.Util.getResolutionFromScale(this.options.maxScale,\n +this.units));d.resolutions&&(d.resolutions.sort(function(a,b){return b-a}),f||(f=d.resolutions[0]),g||(g=d.resolutions[d.resolutions.length-1]));if(this.resolutions=d.resolutions){b=this.resolutions.length;this.scales=Array(b);for(a=0;a<b;a++)this.scales[a]=OpenLayers.Util.getScaleFromResolution(this.resolutions[a],this.units);this.numZoomLevels=b}if(this.minResolution=g)this.maxScale=OpenLayers.Util.getScaleFromResolution(g,this.units);if(this.maxResolution=f)this.minScale=OpenLayers.Util.getScaleFromResolution(f,\n +this.units)},resolutionsFromScales:function(a){if(null!=a){var b,c,d;d=a.length;b=Array(d);for(c=0;c<d;c++)b[c]=OpenLayers.Util.getResolutionFromScale(a[c],this.units);return b}},calculateResolutions:function(a){var b,c,d=a.maxResolution;null!=a.minScale?d=OpenLayers.Util.getResolutionFromScale(a.minScale,this.units):"auto"==d&&null!=this.maxExtent&&(b=this.map.getSize(),c=this.maxExtent.getWidth()/b.w,b=this.maxExtent.getHeight()/b.h,d=Math.max(c,b));c=a.minResolution;null!=a.maxScale?c=OpenLayers.Util.getResolutionFromScale(a.maxScale,\n +this.units):"auto"==a.minResolution&&null!=this.minExtent&&(b=this.map.getSize(),c=this.minExtent.getWidth()/b.w,b=this.minExtent.getHeight()/b.h,c=Math.max(c,b));"number"!==typeof d&&("number"!==typeof c&&null!=this.maxExtent)&&(d=this.map.getTileSize(),d=Math.max(this.maxExtent.getWidth()/d.w,this.maxExtent.getHeight()/d.h));b=a.maxZoomLevel;a=a.numZoomLevels;"number"===typeof c&&"number"===typeof d&&void 0===a?a=Math.floor(Math.log(d/c)/Math.log(2))+1:void 0===a&&null!=b&&(a=b+1);if(!("number"!==\n +typeof a||0>=a||"number"!==typeof d&&"number"!==typeof c)){b=Array(a);var e=2;"number"==typeof c&&"number"==typeof d&&(e=Math.pow(d/c,1/(a-1)));var f;if("number"===typeof d)for(f=0;f<a;f++)b[f]=d/Math.pow(e,f);else for(f=0;f<a;f++)b[a-1-f]=c*Math.pow(e,f);return b}},getResolution:function(){return this.getResolutionForZoom(this.map.getZoom())},getExtent:function(){return this.map.calculateBounds()},getZoomForExtent:function(a,b){var c=this.map.getSize();return this.getZoomForResolution(Math.max(a.getWidth()/\n +c.w,a.getHeight()/c.h),b)},getDataExtent:function(){},getResolutionForZoom:function(a){a=Math.max(0,Math.min(a,this.resolutions.length-1));if(this.map.fractionalZoom)var b=Math.floor(a),c=Math.ceil(a),a=this.resolutions[b]-(a-b)*(this.resolutions[b]-this.resolutions[c]);else a=this.resolutions[Math.round(a)];return a},getZoomForResolution:function(a,b){var c,d;if(this.map.fractionalZoom){var e=0,f=this.resolutions[e],g=this.resolutions[this.resolutions.length-1],h;c=0;for(d=this.resolutions.length;c<\n +d;++c)if(h=this.resolutions[c],h>=a&&(f=h,e=c),h<=a){g=h;break}c=f-g;c=0<c?e+(f-a)/c:e}else{f=Number.POSITIVE_INFINITY;c=0;for(d=this.resolutions.length;c<d;c++)if(b){e=Math.abs(this.resolutions[c]-a);if(e>f)break;f=e}else if(this.resolutions[c]<a)break;c=Math.max(0,c-1)}return c},getLonLatFromViewPortPx:function(a){var b=null,c=this.map;if(null!=a&&c.minPx){var b=c.getResolution(),d=c.getMaxExtent({restricted:!0}),b=new OpenLayers.LonLat((a.x-c.minPx.x)*b+d.left,(c.minPx.y-a.y)*b+d.top);this.wrapDateLine&&\n +(b=b.wrapDateLine(this.maxExtent))}return b},getViewPortPxFromLonLat:function(a,b){var c=null;null!=a&&(b=b||this.map.getResolution(),c=this.map.calculateBounds(null,b),c=new OpenLayers.Pixel(1/b*(a.lon-c.left),1/b*(c.top-a.lat)));return c},setOpacity:function(a){if(a!=this.opacity){this.opacity=a;for(var b=this.div.childNodes,c=0,d=b.length;c<d;++c){var e=b[c].firstChild||b[c],f=b[c].lastChild;f&&"iframe"===f.nodeName.toLowerCase()&&(e=f.parentNode);OpenLayers.Util.modifyDOMElement(e,null,null,null,\n +null,null,null,a)}null!=this.map&&this.map.events.triggerEvent("changelayer",{layer:this,property:"opacity"})}},getZIndex:function(){return this.div.style.zIndex},setZIndex:function(a){this.div.style.zIndex=a},adjustBounds:function(a){if(this.gutter)var b=this.gutter*this.map.getResolution(),a=new OpenLayers.Bounds(a.left-b,a.bottom-b,a.right+b,a.top+b);this.wrapDateLine&&(b={rightTolerance:this.getResolution(),leftTolerance:this.getResolution()},a=a.wrapDateLine(this.maxExtent,b));return a},CLASS_NAME:"OpenLayers.Layer"});OpenLayers.Layer.SphericalMercator={getExtent:function(){var a=null;return a=this.sphericalMercator?this.map.calculateBounds():OpenLayers.Layer.FixedZoomLevels.prototype.getExtent.apply(this)},getLonLatFromViewPortPx:function(a){return OpenLayers.Layer.prototype.getLonLatFromViewPortPx.apply(this,arguments)},getViewPortPxFromLonLat:function(a){return OpenLayers.Layer.prototype.getViewPortPxFromLonLat.apply(this,arguments)},initMercatorParameters:function(){this.RESOLUTIONS=[];for(var a=0;a<=this.MAX_ZOOM_LEVEL;++a)this.RESOLUTIONS[a]=\n +156543.03390625/Math.pow(2,a);this.units="m";this.projection=this.projection||"EPSG:900913"},forwardMercator:function(){var a=new OpenLayers.Projection("EPSG:4326"),b=new OpenLayers.Projection("EPSG:900913");return function(c,d){var e=OpenLayers.Projection.transform({x:c,y:d},a,b);return new OpenLayers.LonLat(e.x,e.y)}}(),inverseMercator:function(){var a=new OpenLayers.Projection("EPSG:4326"),b=new OpenLayers.Projection("EPSG:900913");return function(c,d){var e=OpenLayers.Projection.transform({x:c,\n +y:d},b,a);return new OpenLayers.LonLat(e.x,e.y)}}()};OpenLayers.Layer.EventPane=OpenLayers.Class(OpenLayers.Layer,{smoothDragPan:!0,isBaseLayer:!0,isFixed:!0,pane:null,mapObject:null,initialize:function(a,b){OpenLayers.Layer.prototype.initialize.apply(this,arguments);null==this.pane&&(this.pane=OpenLayers.Util.createDiv(this.div.id+"_EventPane"))},destroy:function(){this.pane=this.mapObject=null;OpenLayers.Layer.prototype.destroy.apply(this,arguments)},setMap:function(a){OpenLayers.Layer.prototype.setMap.apply(this,arguments);this.pane.style.zIndex=\n +parseInt(this.div.style.zIndex)+1;this.pane.style.display=this.div.style.display;this.pane.style.width="100%";this.pane.style.height="100%";"msie"==OpenLayers.BROWSER_NAME&&(this.pane.style.background="url("+OpenLayers.Util.getImageLocation("blank.gif")+")");this.isFixed?this.map.viewPortDiv.appendChild(this.pane):this.map.layerContainerDiv.appendChild(this.pane);this.loadMapObject();null==this.mapObject&&this.loadWarningMessage()},removeMap:function(a){this.pane&&this.pane.parentNode&&this.pane.parentNode.removeChild(this.pane);\n +OpenLayers.Layer.prototype.removeMap.apply(this,arguments)},loadWarningMessage:function(){this.div.style.backgroundColor="darkblue";var a=this.map.getSize(),b=Math.min(a.w,300),c=Math.min(a.h,200),b=new OpenLayers.Size(b,c),a=(new OpenLayers.Pixel(a.w/2,a.h/2)).add(-b.w/2,-b.h/2),a=OpenLayers.Util.createDiv(this.name+"_warning",a,b,null,null,null,"auto");a.style.padding="7px";a.style.backgroundColor="yellow";a.innerHTML=this.getWarningHTML();this.div.appendChild(a)},getWarningHTML:function(){return""},\n +display:function(a){OpenLayers.Layer.prototype.display.apply(this,arguments);this.pane.style.display=this.div.style.display},setZIndex:function(a){OpenLayers.Layer.prototype.setZIndex.apply(this,arguments);this.pane.style.zIndex=parseInt(this.div.style.zIndex)+1},moveByPx:function(a,b){OpenLayers.Layer.prototype.moveByPx.apply(this,arguments);this.dragPanMapObject?this.dragPanMapObject(a,-b):this.moveTo(this.map.getCachedCenter())},moveTo:function(a,b,c){OpenLayers.Layer.prototype.moveTo.apply(this,\n +arguments);if(null!=this.mapObject){var d=this.map.getCenter(),e=this.map.getZoom();if(null!=d){var f=this.getOLLonLatFromMapObjectLonLat(this.getMapObjectCenter()),g=this.getOLZoomFromMapObjectZoom(this.getMapObjectZoom());if(!d.equals(f)||e!=g)!b&&f&&this.dragPanMapObject&&this.smoothDragPan?(e=this.map.getViewPortPxFromLonLat(f),d=this.map.getViewPortPxFromLonLat(d),this.dragPanMapObject(d.x-e.x,e.y-d.y)):(d=this.getMapObjectLonLatFromOLLonLat(d),e=this.getMapObjectZoomFromOLZoom(e),this.setMapObjectCenter(d,\n +e,c))}}},getLonLatFromViewPortPx:function(a){var b=null;null!=this.mapObject&&null!=this.getMapObjectCenter()&&(b=this.getOLLonLatFromMapObjectLonLat(this.getMapObjectLonLatFromMapObjectPixel(this.getMapObjectPixelFromOLPixel(a))));return b},getViewPortPxFromLonLat:function(a){var b=null;null!=this.mapObject&&null!=this.getMapObjectCenter()&&(b=this.getOLPixelFromMapObjectPixel(this.getMapObjectPixelFromMapObjectLonLat(this.getMapObjectLonLatFromOLLonLat(a))));return b},getOLLonLatFromMapObjectLonLat:function(a){var b=\n +null;null!=a&&(b=this.getLongitudeFromMapObjectLonLat(a),a=this.getLatitudeFromMapObjectLonLat(a),b=new OpenLayers.LonLat(b,a));return b},getMapObjectLonLatFromOLLonLat:function(a){var b=null;null!=a&&(b=this.getMapObjectLonLatFromLonLat(a.lon,a.lat));return b},getOLPixelFromMapObjectPixel:function(a){var b=null;null!=a&&(b=this.getXFromMapObjectPixel(a),a=this.getYFromMapObjectPixel(a),b=new OpenLayers.Pixel(b,a));return b},getMapObjectPixelFromOLPixel:function(a){var b=null;null!=a&&(b=this.getMapObjectPixelFromXY(a.x,\n +a.y));return b},CLASS_NAME:"OpenLayers.Layer.EventPane"});OpenLayers.Layer.FixedZoomLevels=OpenLayers.Class({initialize:function(){},initResolutions:function(){for(var a=["minZoomLevel","maxZoomLevel","numZoomLevels"],b=0,c=a.length;b<c;b++){var d=a[b];this[d]=null!=this.options[d]?this.options[d]:this.map[d]}if(null==this.minZoomLevel||this.minZoomLevel<this.MIN_ZOOM_LEVEL)this.minZoomLevel=this.MIN_ZOOM_LEVEL;a=this.MAX_ZOOM_LEVEL-this.minZoomLevel+1;b=null==this.options.numZoomLevels&&null!=this.options.maxZoomLevel||null==this.numZoomLevels&&null!=this.maxZoomLevel?\n +this.maxZoomLevel-this.minZoomLevel+1:this.numZoomLevels;this.numZoomLevels=null!=b?Math.min(b,a):a;this.maxZoomLevel=this.minZoomLevel+this.numZoomLevels-1;if(null!=this.RESOLUTIONS){a=0;this.resolutions=[];for(b=this.minZoomLevel;b<=this.maxZoomLevel;b++)this.resolutions[a++]=this.RESOLUTIONS[b];this.maxResolution=this.resolutions[0];this.minResolution=this.resolutions[this.resolutions.length-1]}},getResolution:function(){if(null!=this.resolutions)return OpenLayers.Layer.prototype.getResolution.apply(this,\n +arguments);var a=null,b=this.map.getSize(),c=this.getExtent();null!=b&&null!=c&&(a=Math.max(c.getWidth()/b.w,c.getHeight()/b.h));return a},getExtent:function(){var a=this.map.getSize(),b=this.getLonLatFromViewPortPx({x:0,y:0}),a=this.getLonLatFromViewPortPx({x:a.w,y:a.h});return null!=b&&null!=a?new OpenLayers.Bounds(b.lon,a.lat,a.lon,b.lat):null},getZoomForResolution:function(a){return null!=this.resolutions?OpenLayers.Layer.prototype.getZoomForResolution.apply(this,arguments):this.getZoomForExtent(OpenLayers.Layer.prototype.getExtent.apply(this,\n +[]))},getOLZoomFromMapObjectZoom:function(a){var b=null;null!=a&&(b=a-this.minZoomLevel,this.map.baseLayer!==this&&(b=this.map.baseLayer.getZoomForResolution(this.getResolutionForZoom(b))));return b},getMapObjectZoomFromOLZoom:function(a){var b=null;null!=a&&(b=a+this.minZoomLevel,this.map.baseLayer!==this&&(b=this.getZoomForResolution(this.map.baseLayer.getResolutionForZoom(b))));return b},CLASS_NAME:"OpenLayers.Layer.FixedZoomLevels"});OpenLayers.Layer.Google=OpenLayers.Class(OpenLayers.Layer.EventPane,OpenLayers.Layer.FixedZoomLevels,{MIN_ZOOM_LEVEL:0,MAX_ZOOM_LEVEL:21,RESOLUTIONS:[1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,6.866455078125E-4,3.4332275390625E-4,1.71661376953125E-4,8.58306884765625E-5,4.291534423828125E-5,2.145767211914062E-5,1.072883605957031E-5,5.36441802978515E-6,2.68220901489257E-6,1.341104507446289E-6,6.705522537231445E-7],\n +type:null,wrapDateLine:!0,sphericalMercator:!1,version:null,initialize:function(a,b){b=b||{};b.version||(b.version="function"===typeof GMap2?"2":"3");var c=OpenLayers.Layer.Google["v"+b.version.replace(/\\./g,"_")];if(c)OpenLayers.Util.applyDefaults(b,c);else throw"Unsupported Google Maps API version: "+b.version;OpenLayers.Util.applyDefaults(b,c.DEFAULTS);b.maxExtent&&(b.maxExtent=b.maxExtent.clone());OpenLayers.Layer.EventPane.prototype.initialize.apply(this,[a,b]);OpenLayers.Layer.FixedZoomLevels.prototype.initialize.apply(this,\n +[a,b]);this.sphericalMercator&&(OpenLayers.Util.extend(this,OpenLayers.Layer.SphericalMercator),this.initMercatorParameters())},clone:function(){return new OpenLayers.Layer.Google(this.name,this.getOptions())},setVisibility:function(a){var b=null==this.opacity?1:this.opacity;OpenLayers.Layer.EventPane.prototype.setVisibility.apply(this,arguments);this.setOpacity(b)},display:function(a){this._dragging||this.setGMapVisibility(a);OpenLayers.Layer.EventPane.prototype.display.apply(this,arguments)},moveTo:function(a,\n +b,c){this._dragging=c;OpenLayers.Layer.EventPane.prototype.moveTo.apply(this,arguments);delete this._dragging},setOpacity:function(a){a!==this.opacity&&(null!=this.map&&this.map.events.triggerEvent("changelayer",{layer:this,property:"opacity"}),this.opacity=a);if(this.getVisibility()){var b=this.getMapContainer();OpenLayers.Util.modifyDOMElement(b,null,null,null,null,null,null,a)}},destroy:function(){if(this.map){this.setGMapVisibility(!1);var a=OpenLayers.Layer.Google.cache[this.map.id];a&&1>=a.count&&\n +this.removeGMapElements()}OpenLayers.Layer.EventPane.prototype.destroy.apply(this,arguments)},removeGMapElements:function(){var a=OpenLayers.Layer.Google.cache[this.map.id];if(a){var b=this.mapObject&&this.getMapContainer();b&&b.parentNode&&b.parentNode.removeChild(b);(b=a.termsOfUse)&&b.parentNode&&b.parentNode.removeChild(b);(a=a.poweredBy)&&a.parentNode&&a.parentNode.removeChild(a)}},removeMap:function(a){this.visibility&&this.mapObject&&this.setGMapVisibility(!1);var b=OpenLayers.Layer.Google.cache[a.id];\n +b&&(1>=b.count?(this.removeGMapElements(),delete OpenLayers.Layer.Google.cache[a.id]):--b.count);delete this.termsOfUse;delete this.poweredBy;delete this.mapObject;delete this.dragObject;OpenLayers.Layer.EventPane.prototype.removeMap.apply(this,arguments)},getOLBoundsFromMapObjectBounds:function(a){var b=null;null!=a&&(b=a.getSouthWest(),a=a.getNorthEast(),this.sphericalMercator?(b=this.forwardMercator(b.lng(),b.lat()),a=this.forwardMercator(a.lng(),a.lat())):(b=new OpenLayers.LonLat(b.lng(),b.lat()),\n +a=new OpenLayers.LonLat(a.lng(),a.lat())),b=new OpenLayers.Bounds(b.lon,b.lat,a.lon,a.lat));return b},getWarningHTML:function(){return OpenLayers.i18n("googleWarning")},getMapObjectCenter:function(){return this.mapObject.getCenter()},getMapObjectZoom:function(){return this.mapObject.getZoom()},getLongitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.lng(),a.lat()).lon:a.lng()},getLatitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.lng(),\n +a.lat()).lat:a.lat()},getXFromMapObjectPixel:function(a){return a.x},getYFromMapObjectPixel:function(a){return a.y},CLASS_NAME:"OpenLayers.Layer.Google"});OpenLayers.Layer.Google.cache={};\n +OpenLayers.Layer.Google.v2={termsOfUse:null,poweredBy:null,dragObject:null,loadMapObject:function(){this.type||(this.type=G_NORMAL_MAP);var a,b,c,d=OpenLayers.Layer.Google.cache[this.map.id];if(d)a=d.mapObject,b=d.termsOfUse,c=d.poweredBy,++d.count;else{var d=this.map.viewPortDiv,e=document.createElement("div");e.id=this.map.id+"_GMap2Container";e.style.position="absolute";e.style.width="100%";e.style.height="100%";d.appendChild(e);try{a=new GMap2(e),b=e.lastChild,d.appendChild(b),b.style.zIndex=\n +"1100",b.style.right="",b.style.bottom="",b.className="olLayerGoogleCopyright",c=e.lastChild,d.appendChild(c),c.style.zIndex="1100",c.style.right="",c.style.bottom="",c.className="olLayerGooglePoweredBy gmnoprint"}catch(f){throw f;}OpenLayers.Layer.Google.cache[this.map.id]={mapObject:a,termsOfUse:b,poweredBy:c,count:1}}this.mapObject=a;this.termsOfUse=b;this.poweredBy=c;-1===OpenLayers.Util.indexOf(this.mapObject.getMapTypes(),this.type)&&this.mapObject.addMapType(this.type);"function"==typeof a.getDragObject?\n +this.dragObject=a.getDragObject():this.dragPanMapObject=null;!1===this.isBaseLayer&&this.setGMapVisibility("none"!==this.div.style.display)},onMapResize:function(){if(this.visibility&&this.mapObject.isLoaded())this.mapObject.checkResize();else{if(!this._resized)var a=this,b=GEvent.addListener(this.mapObject,"load",function(){GEvent.removeListener(b);delete a._resized;a.mapObject.checkResize();a.moveTo(a.map.getCenter(),a.map.getZoom())});this._resized=!0}},setGMapVisibility:function(a){var b=OpenLayers.Layer.Google.cache[this.map.id];\n +if(b){var c=this.mapObject.getContainer();!0===a?(this.mapObject.setMapType(this.type),c.style.display="",this.termsOfUse.style.left="",this.termsOfUse.style.display="",this.poweredBy.style.display="",b.displayed=this.id):(b.displayed===this.id&&delete b.displayed,b.displayed||(c.style.display="none",this.termsOfUse.style.display="none",this.termsOfUse.style.left="-9999px",this.poweredBy.style.display="none"))}},getMapContainer:function(){return this.mapObject.getContainer()},getMapObjectBoundsFromOLBounds:function(a){var b=\n +null;null!=a&&(b=this.sphericalMercator?this.inverseMercator(a.bottom,a.left):new OpenLayers.LonLat(a.bottom,a.left),a=this.sphericalMercator?this.inverseMercator(a.top,a.right):new OpenLayers.LonLat(a.top,a.right),b=new GLatLngBounds(new GLatLng(b.lat,b.lon),new GLatLng(a.lat,a.lon)));return b},setMapObjectCenter:function(a,b){this.mapObject.setCenter(a,b)},dragPanMapObject:function(a,b){this.dragObject.moveBy(new GSize(-a,b))},getMapObjectLonLatFromMapObjectPixel:function(a){return this.mapObject.fromContainerPixelToLatLng(a)},\n +getMapObjectPixelFromMapObjectLonLat:function(a){return this.mapObject.fromLatLngToContainerPixel(a)},getMapObjectZoomFromMapObjectBounds:function(a){return this.mapObject.getBoundsZoomLevel(a)},getMapObjectLonLatFromLonLat:function(a,b){var c;this.sphericalMercator?(c=this.inverseMercator(a,b),c=new GLatLng(c.lat,c.lon)):c=new GLatLng(b,a);return c},getMapObjectPixelFromXY:function(a,b){return new GPoint(a,b)}};OpenLayers.Format.XML=OpenLayers.Class(OpenLayers.Format,{namespaces:null,namespaceAlias:null,defaultPrefix:null,readers:{},writers:{},xmldom:null,initialize:function(a){window.ActiveXObject&&(this.xmldom=new ActiveXObject("Microsoft.XMLDOM"));OpenLayers.Format.prototype.initialize.apply(this,[a]);this.namespaces=OpenLayers.Util.extend({},this.namespaces);this.namespaceAlias={};for(var b in this.namespaces)this.namespaceAlias[this.namespaces[b]]=b},destroy:function(){this.xmldom=null;OpenLayers.Format.prototype.destroy.apply(this,\n +arguments)},setNamespace:function(a,b){this.namespaces[a]=b;this.namespaceAlias[b]=a},read:function(a){var b=a.indexOf("<");0<b&&(a=a.substring(b));b=OpenLayers.Util.Try(OpenLayers.Function.bind(function(){var b;b=window.ActiveXObject&&!this.xmldom?new ActiveXObject("Microsoft.XMLDOM"):this.xmldom;b.loadXML(a);return b},this),function(){return(new DOMParser).parseFromString(a,"text/xml")},function(){var b=new XMLHttpRequest;b.open("GET","data:text/xml;charset=utf-8,"+encodeURIComponent(a),!1);b.overrideMimeType&&\n +b.overrideMimeType("text/xml");b.send(null);return b.responseXML});this.keepData&&(this.data=b);return b},write:function(a){if(this.xmldom)a=a.xml;else{var b=new XMLSerializer;if(1==a.nodeType){var c=document.implementation.createDocument("","",null);c.importNode&&(a=c.importNode(a,!0));c.appendChild(a);a=b.serializeToString(c)}else a=b.serializeToString(a)}return a},createElementNS:function(a,b){return this.xmldom?"string"==typeof a?this.xmldom.createNode(1,b,a):this.xmldom.createNode(1,b,""):document.createElementNS(a,\n +b)},createTextNode:function(a){"string"!==typeof a&&(a=""+a);return this.xmldom?this.xmldom.createTextNode(a):document.createTextNode(a)},getElementsByTagNameNS:function(a,b,c){var d=[];if(a.getElementsByTagNameNS)d=a.getElementsByTagNameNS(b,c);else for(var a=a.getElementsByTagName("*"),e,f,g=0,h=a.length;g<h;++g)if(e=a[g],f=e.prefix?e.prefix+":"+c:c,"*"==c||f==e.nodeName)("*"==b||b==e.namespaceURI)&&d.push(e);return d},getAttributeNodeNS:function(a,b,c){var d=null;if(a.getAttributeNodeNS)d=a.getAttributeNodeNS(b,\n +c);else for(var a=a.attributes,e,f,g=0,h=a.length;g<h;++g)if(e=a[g],e.namespaceURI==b&&(f=e.prefix?e.prefix+":"+c:c,f==e.nodeName)){d=e;break}return d},getAttributeNS:function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else if(a=this.getAttributeNodeNS(a,b,c))d=a.nodeValue;return d},getChildValue:function(a,b){var c=b||"";if(a)for(var d=a.firstChild;d;d=d.nextSibling)switch(d.nodeType){case 3:case 4:c+=d.nodeValue}return c},isSimpleContent:function(a){for(var b=!0,a=a.firstChild;a;a=\n +a.nextSibling)if(1===a.nodeType){b=!1;break}return b},contentType:function(a){for(var b=!1,c=!1,d=OpenLayers.Format.XML.CONTENT_TYPE.EMPTY,a=a.firstChild;a;a=a.nextSibling){switch(a.nodeType){case 1:c=!0;break;case 8:break;default:b=!0}if(c&&b)break}if(c&&b)d=OpenLayers.Format.XML.CONTENT_TYPE.MIXED;else{if(c)return OpenLayers.Format.XML.CONTENT_TYPE.COMPLEX;if(b)return OpenLayers.Format.XML.CONTENT_TYPE.SIMPLE}return d},hasAttributeNS:function(a,b,c){var d=!1;return d=a.hasAttributeNS?a.hasAttributeNS(b,\n +c):!!this.getAttributeNodeNS(a,b,c)},setAttributeNS:function(a,b,c,d){if(a.setAttributeNS)a.setAttributeNS(b,c,d);else if(this.xmldom)b?(b=a.ownerDocument.createNode(2,c,b),b.nodeValue=d,a.setAttributeNode(b)):a.setAttribute(c,d);else throw"setAttributeNS not implemented";},createElementNSPlus:function(a,b){var b=b||{},c=b.uri||this.namespaces[b.prefix];c||(c=a.indexOf(":"),c=this.namespaces[a.substring(0,c)]);c||(c=this.namespaces[this.defaultPrefix]);c=this.createElementNS(c,a);b.attributes&&this.setAttributes(c,\n +b.attributes);var d=b.value;null!=d&&c.appendChild(this.createTextNode(d));return c},setAttributes:function(a,b){var c,d,e;for(e in b)null!=b[e]&&b[e].toString&&(c=b[e].toString(),d=this.namespaces[e.substring(0,e.indexOf(":"))]||null,this.setAttributeNS(a,d,e,c))},readNode:function(a,b){b||(b={});var c=this.readers[a.namespaceURI?this.namespaceAlias[a.namespaceURI]:this.defaultPrefix];if(c){var d=a.localName||a.nodeName.split(":").pop();(c=c[d]||c["*"])&&c.apply(this,[a,b])}return b},readChildNodes:function(a,\n +b){b||(b={});for(var c=a.childNodes,d,e=0,f=c.length;e<f;++e)d=c[e],1==d.nodeType&&this.readNode(d,b);return b},writeNode:function(a,b,c){var d,e=a.indexOf(":");0<e?(d=a.substring(0,e),a=a.substring(e+1)):d=c?this.namespaceAlias[c.namespaceURI]:this.defaultPrefix;b=this.writers[d][a].apply(this,[b]);c&&c.appendChild(b);return b},getChildEl:function(a,b,c){return a&&this.getThisOrNextEl(a.firstChild,b,c)},getNextEl:function(a,b,c){return a&&this.getThisOrNextEl(a.nextSibling,b,c)},getThisOrNextEl:function(a,\n +b,c){a:for(;a;a=a.nextSibling)switch(a.nodeType){case 1:if((!b||b===(a.localName||a.nodeName.split(":").pop()))&&(!c||c===a.namespaceURI))break a;a=null;break a;case 3:if(/^\\s*$/.test(a.nodeValue))break;case 4:case 6:case 12:case 10:case 11:a=null;break a}return a||null},lookupNamespaceURI:function(a,b){var c=null;if(a)if(a.lookupNamespaceURI)c=a.lookupNamespaceURI(b);else a:switch(a.nodeType){case 1:if(null!==a.namespaceURI&&a.prefix===b){c=a.namespaceURI;break a}if(c=a.attributes.length)for(var d,\n +e=0;e<c;++e)if(d=a.attributes[e],"xmlns"===d.prefix&&d.name==="xmlns:"+b){c=d.value||null;break a}else if("xmlns"===d.name&&null===b){c=d.value||null;break a}c=this.lookupNamespaceURI(a.parentNode,b);break a;case 2:c=this.lookupNamespaceURI(a.ownerElement,b);break a;case 9:c=this.lookupNamespaceURI(a.documentElement,b);break a;case 6:case 12:case 10:case 11:break a;default:c=this.lookupNamespaceURI(a.parentNode,b)}return c},getXMLDoc:function(){!OpenLayers.Format.XML.document&&!this.xmldom&&(document.implementation&&\n +document.implementation.createDocument?OpenLayers.Format.XML.document=document.implementation.createDocument("","",null):!this.xmldom&&window.ActiveXObject&&(this.xmldom=new ActiveXObject("Microsoft.XMLDOM")));return OpenLayers.Format.XML.document||this.xmldom},CLASS_NAME:"OpenLayers.Format.XML"});OpenLayers.Format.XML.CONTENT_TYPE={EMPTY:0,SIMPLE:1,COMPLEX:2,MIXED:3};OpenLayers.Format.XML.lookupNamespaceURI=OpenLayers.Function.bind(OpenLayers.Format.XML.prototype.lookupNamespaceURI,OpenLayers.Format.XML.prototype);\n +OpenLayers.Format.XML.document=null;OpenLayers.Format.WFST=function(a){var a=OpenLayers.Util.applyDefaults(a,OpenLayers.Format.WFST.DEFAULTS),b=OpenLayers.Format.WFST["v"+a.version.replace(/\\./g,"_")];if(!b)throw"Unsupported WFST version: "+a.version;return new b(a)};OpenLayers.Format.WFST.DEFAULTS={version:"1.0.0"};OpenLayers.Format.WFST.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance",wfs:"http://www.opengis.net/wfs",gml:"http://www.opengis.net/gml",ogc:"http://www.opengis.net/ogc",ows:"http://www.opengis.net/ows"},defaultPrefix:"wfs",version:null,schemaLocations:null,srsName:null,extractAttributes:!0,xy:!0,stateName:null,initialize:function(a){this.stateName={};this.stateName[OpenLayers.State.INSERT]="wfs:Insert";this.stateName[OpenLayers.State.UPDATE]=\n +"wfs:Update";this.stateName[OpenLayers.State.DELETE]="wfs:Delete";OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},getSrsName:function(a,b){var c=b&&b.srsName;c||(c=a&&a.layer?a.layer.projection.getCode():this.srsName);return c},read:function(a,b){b=b||{};OpenLayers.Util.applyDefaults(b,{output:"features"});"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));a&&9==a.nodeType&&(a=a.documentElement);var c={};a&&this.readNode(a,c,!0);c.features&&"features"===b.output&&\n +(c=c.features);return c},readers:{wfs:{FeatureCollection:function(a,b){b.features=[];this.readChildNodes(a,b)}}},write:function(a,b){var c=this.writeNode("wfs:Transaction",{features:a,options:b}),d=this.schemaLocationAttr();d&&this.setAttributeNS(c,this.namespaces.xsi,"xsi:schemaLocation",d);return OpenLayers.Format.XML.prototype.write.apply(this,[c])},writers:{wfs:{GetFeature:function(a){var b=this.createElementNSPlus("wfs:GetFeature",{attributes:{service:"WFS",version:this.version,handle:a&&a.handle,\n +outputFormat:a&&a.outputFormat,maxFeatures:a&&a.maxFeatures,"xsi:schemaLocation":this.schemaLocationAttr(a)}});if("string"==typeof this.featureType)this.writeNode("Query",a,b);else for(var c=0,d=this.featureType.length;c<d;c++)a.featureType=this.featureType[c],this.writeNode("Query",a,b);return b},Transaction:function(a){var a=a||{},b=a.options||{},c=this.createElementNSPlus("wfs:Transaction",{attributes:{service:"WFS",version:this.version,handle:b.handle}}),d,e=a.features;if(e){!0===b.multi&&OpenLayers.Util.extend(this.geometryTypes,\n +{"OpenLayers.Geometry.Point":"MultiPoint","OpenLayers.Geometry.LineString":!0===this.multiCurve?"MultiCurve":"MultiLineString","OpenLayers.Geometry.Polygon":!0===this.multiSurface?"MultiSurface":"MultiPolygon"});var f,g,a=0;for(d=e.length;a<d;++a)g=e[a],(f=this.stateName[g.state])&&this.writeNode(f,{feature:g,options:b},c);!0===b.multi&&this.setGeometryTypes()}if(b.nativeElements){a=0;for(d=b.nativeElements.length;a<d;++a)this.writeNode("wfs:Native",b.nativeElements[a],c)}return c},Native:function(a){return this.createElementNSPlus("wfs:Native",\n +{attributes:{vendorId:a.vendorId,safeToIgnore:a.safeToIgnore},value:a.value})},Insert:function(a){var b=a.feature,a=a.options,a=this.createElementNSPlus("wfs:Insert",{attributes:{handle:a&&a.handle}});this.srsName=this.getSrsName(b);this.writeNode("feature:_typeName",b,a);return a},Update:function(a){var b=a.feature,a=a.options,a=this.createElementNSPlus("wfs:Update",{attributes:{handle:a&&a.handle,typeName:(this.featureNS?this.featurePrefix+":":"")+this.featureType}});this.featureNS&&a.setAttribute("xmlns:"+\n +this.featurePrefix,this.featureNS);var c=b.modified;if(null!==this.geometryName&&(!c||void 0!==c.geometry))this.srsName=this.getSrsName(b),this.writeNode("Property",{name:this.geometryName,value:b.geometry},a);for(var d in b.attributes)void 0!==b.attributes[d]&&(!c||!c.attributes||c.attributes&&void 0!==c.attributes[d])&&this.writeNode("Property",{name:d,value:b.attributes[d]},a);this.writeNode("ogc:Filter",new OpenLayers.Filter.FeatureId({fids:[b.fid]}),a);return a},Property:function(a){var b=this.createElementNSPlus("wfs:Property");\n +this.writeNode("Name",a.name,b);null!==a.value&&this.writeNode("Value",a.value,b);return b},Name:function(a){return this.createElementNSPlus("wfs:Name",{value:a})},Value:function(a){var b;a instanceof OpenLayers.Geometry?(b=this.createElementNSPlus("wfs:Value"),a=this.writeNode("feature:_geometry",a).firstChild,b.appendChild(a)):b=this.createElementNSPlus("wfs:Value",{value:a});return b},Delete:function(a){var b=a.feature,a=a.options,a=this.createElementNSPlus("wfs:Delete",{attributes:{handle:a&&\n +a.handle,typeName:(this.featureNS?this.featurePrefix+":":"")+this.featureType}});this.featureNS&&a.setAttribute("xmlns:"+this.featurePrefix,this.featureNS);this.writeNode("ogc:Filter",new OpenLayers.Filter.FeatureId({fids:[b.fid]}),a);return a}}},schemaLocationAttr:function(a){var a=OpenLayers.Util.extend({featurePrefix:this.featurePrefix,schema:this.schema},a),b=OpenLayers.Util.extend({},this.schemaLocations);a.schema&&(b[a.featurePrefix]=a.schema);var a=[],c,d;for(d in b)(c=this.namespaces[d])&&\n +a.push(c+" "+b[d]);return a.join(" ")||void 0},setFilterProperty:function(a){if(a.filters)for(var b=0,c=a.filters.length;b<c;++b)OpenLayers.Format.WFST.v1.prototype.setFilterProperty.call(this,a.filters[b]);else a instanceof OpenLayers.Filter.Spatial&&!a.property&&(a.property=this.geometryName)},CLASS_NAME:"OpenLayers.Format.WFST.v1"});OpenLayers.Format.OGCExceptionReport=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ogc:"http://www.opengis.net/ogc"},regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},defaultPrefix:"ogc",read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var b={exceptionReport:null};a.documentElement&&(this.readChildNodes(a,b),null===b.exceptionReport&&(b=(new OpenLayers.Format.OWSCommon).read(a)));return b},readers:{ogc:{ServiceExceptionReport:function(a,\n +b){b.exceptionReport={exceptions:[]};this.readChildNodes(a,b.exceptionReport)},ServiceException:function(a,b){var c={code:a.getAttribute("code"),locator:a.getAttribute("locator"),text:this.getChildValue(a)};b.exceptions.push(c)}}},CLASS_NAME:"OpenLayers.Format.OGCExceptionReport"});OpenLayers.Format.XML.VersionedOGC=OpenLayers.Class(OpenLayers.Format.XML,{defaultVersion:null,version:null,profile:null,errorProperty:null,name:null,stringifyOutput:!1,parser:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);a=this.CLASS_NAME;this.name=a.substring(a.lastIndexOf(".")+1)},getVersion:function(a,b){var c;a?(c=this.version,c||(c=a.getAttribute("version"),c||(c=this.defaultVersion))):c=b&&b.version||this.version||this.defaultVersion;return c},getParser:function(a){var a=\n +a||this.defaultVersion,b=this.profile?"_"+this.profile:"";if(!this.parser||this.parser.VERSION!=a){var c=OpenLayers.Format[this.name]["v"+a.replace(/\\./g,"_")+b];if(!c)throw"Can\'t find a "+this.name+" parser for version "+a+b;this.parser=new c(this.options)}return this.parser},write:function(a,b){this.parser=this.getParser(this.getVersion(null,b));var c=this.parser.write(a,b);return!1===this.stringifyOutput?c:OpenLayers.Format.XML.prototype.write.apply(this,[c])},read:function(a,b){"string"==typeof a&&\n +(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var c=this.getVersion(a.documentElement);this.parser=this.getParser(c);var d=this.parser.read(a,b);if(null!==this.errorProperty&&void 0===d[this.errorProperty]){var e=new OpenLayers.Format.OGCExceptionReport;d.error=e.read(a)}d.version=c;return d},CLASS_NAME:"OpenLayers.Format.XML.VersionedOGC"});OpenLayers.Feature=OpenLayers.Class({layer:null,id:null,lonlat:null,data:null,marker:null,popupClass:null,popup:null,initialize:function(a,b,c){this.layer=a;this.lonlat=b;this.data=null!=c?c:{};this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},destroy:function(){null!=this.layer&&null!=this.layer.map&&null!=this.popup&&this.layer.map.removePopup(this.popup);null!=this.layer&&null!=this.marker&&this.layer.removeMarker(this.marker);this.data=this.lonlat=this.id=this.layer=null;null!=this.marker&&\n +(this.destroyMarker(this.marker),this.marker=null);null!=this.popup&&(this.destroyPopup(this.popup),this.popup=null)},onScreen:function(){var a=!1;null!=this.layer&&null!=this.layer.map&&(a=this.layer.map.getExtent().containsLonLat(this.lonlat));return a},createMarker:function(){null!=this.lonlat&&(this.marker=new OpenLayers.Marker(this.lonlat,this.data.icon));return this.marker},destroyMarker:function(){this.marker.destroy()},createPopup:function(a){null!=this.lonlat&&(this.popup||(this.popup=new (this.popupClass?\n +this.popupClass:OpenLayers.Popup.Anchored)(this.id+"_popup",this.lonlat,this.data.popupSize,this.data.popupContentHTML,this.marker?this.marker.icon:null,a)),null!=this.data.overflow&&(this.popup.contentDiv.style.overflow=this.data.overflow),this.popup.feature=this);return this.popup},destroyPopup:function(){this.popup&&(this.popup.feature=null,this.popup.destroy(),this.popup=null)},CLASS_NAME:"OpenLayers.Feature"});OpenLayers.State={UNKNOWN:"Unknown",INSERT:"Insert",UPDATE:"Update",DELETE:"Delete"};\n +OpenLayers.Feature.Vector=OpenLayers.Class(OpenLayers.Feature,{fid:null,geometry:null,attributes:null,bounds:null,state:null,style:null,url:null,renderIntent:"default",modified:null,initialize:function(a,b,c){OpenLayers.Feature.prototype.initialize.apply(this,[null,null,b]);this.lonlat=null;this.geometry=a?a:null;this.state=null;this.attributes={};b&&(this.attributes=OpenLayers.Util.extend(this.attributes,b));this.style=c?c:null},destroy:function(){this.layer&&(this.layer.removeFeatures(this),this.layer=\n +null);this.modified=this.geometry=null;OpenLayers.Feature.prototype.destroy.apply(this,arguments)},clone:function(){return new OpenLayers.Feature.Vector(this.geometry?this.geometry.clone():null,this.attributes,this.style)},onScreen:function(a){var b=!1;this.layer&&this.layer.map&&(b=this.layer.map.getExtent(),a?(a=this.geometry.getBounds(),b=b.intersectsBounds(a)):b=b.toGeometry().intersects(this.geometry));return b},getVisibility:function(){return!(this.style&&"none"==this.style.display||!this.layer||\n +this.layer&&this.layer.styleMap&&"none"==this.layer.styleMap.createSymbolizer(this,this.renderIntent).display||this.layer&&!this.layer.getVisibility())},createMarker:function(){return null},destroyMarker:function(){},createPopup:function(){return null},atPoint:function(a,b,c){var d=!1;this.geometry&&(d=this.geometry.atPoint(a,b,c));return d},destroyPopup:function(){},move:function(a){if(this.layer&&this.geometry.move){var a="OpenLayers.LonLat"==a.CLASS_NAME?this.layer.getViewPortPxFromLonLat(a):a,\n +b=this.layer.getViewPortPxFromLonLat(this.geometry.getBounds().getCenterLonLat()),c=this.layer.map.getResolution();this.geometry.move(c*(a.x-b.x),c*(b.y-a.y));this.layer.drawFeature(this);return b}},toState:function(a){if(a==OpenLayers.State.UPDATE)switch(this.state){case OpenLayers.State.UNKNOWN:case OpenLayers.State.DELETE:this.state=a}else if(a==OpenLayers.State.INSERT)switch(this.state){case OpenLayers.State.UNKNOWN:break;default:this.state=a}else if(a==OpenLayers.State.DELETE)switch(this.state){case OpenLayers.State.UNKNOWN:case OpenLayers.State.UPDATE:this.state=\n +a}else a==OpenLayers.State.UNKNOWN&&(this.state=a)},CLASS_NAME:"OpenLayers.Feature.Vector"});\n +OpenLayers.Feature.Vector.style={"default":{fillColor:"#ee9900",fillOpacity:0.4,hoverFillColor:"white",hoverFillOpacity:0.8,strokeColor:"#ee9900",strokeOpacity:1,strokeWidth:1,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:0.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"inherit",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},select:{fillColor:"blue",fillOpacity:0.4,\n +hoverFillColor:"white",hoverFillOpacity:0.8,strokeColor:"blue",strokeOpacity:1,strokeWidth:2,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:0.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"pointer",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},temporary:{fillColor:"#66cccc",fillOpacity:0.2,hoverFillColor:"white",hoverFillOpacity:0.8,strokeColor:"#66cccc",strokeOpacity:1,\n +strokeLinecap:"round",strokeWidth:2,strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:0.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"inherit",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},"delete":{display:"none"}};OpenLayers.Style=OpenLayers.Class({id:null,name:null,title:null,description:null,layerName:null,isDefault:!1,rules:null,context:null,defaultStyle:null,defaultsPerSymbolizer:!1,propertyStyles:null,initialize:function(a,b){OpenLayers.Util.extend(this,b);this.rules=[];b&&b.rules&&this.addRules(b.rules);this.setDefaultStyle(a||OpenLayers.Feature.Vector.style["default"]);this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},destroy:function(){for(var a=0,b=this.rules.length;a<b;a++)this.rules[a].destroy(),\n +this.rules[a]=null;this.defaultStyle=this.rules=null},createSymbolizer:function(a){for(var b=this.defaultsPerSymbolizer?{}:this.createLiterals(OpenLayers.Util.extend({},this.defaultStyle),a),c=this.rules,d,e=[],f=!1,g=0,h=c.length;g<h;g++)d=c[g],d.evaluate(a)&&(d instanceof OpenLayers.Rule&&d.elseFilter?e.push(d):(f=!0,this.applySymbolizer(d,b,a)));if(!1==f&&0<e.length){f=!0;g=0;for(h=e.length;g<h;g++)this.applySymbolizer(e[g],b,a)}0<c.length&&!1==f&&(b.display="none");null!=b.label&&"string"!==typeof b.label&&\n +(b.label=""+b.label);return b},applySymbolizer:function(a,b,c){var d=c.geometry?this.getSymbolizerPrefix(c.geometry):OpenLayers.Style.SYMBOLIZER_PREFIXES[0],a=a.symbolizer[d]||a.symbolizer;!0===this.defaultsPerSymbolizer&&(d=this.defaultStyle,OpenLayers.Util.applyDefaults(a,{pointRadius:d.pointRadius}),(!0===a.stroke||!0===a.graphic)&&OpenLayers.Util.applyDefaults(a,{strokeWidth:d.strokeWidth,strokeColor:d.strokeColor,strokeOpacity:d.strokeOpacity,strokeDashstyle:d.strokeDashstyle,strokeLinecap:d.strokeLinecap}),\n +(!0===a.fill||!0===a.graphic)&&OpenLayers.Util.applyDefaults(a,{fillColor:d.fillColor,fillOpacity:d.fillOpacity}),!0===a.graphic&&OpenLayers.Util.applyDefaults(a,{pointRadius:this.defaultStyle.pointRadius,externalGraphic:this.defaultStyle.externalGraphic,graphicName:this.defaultStyle.graphicName,graphicOpacity:this.defaultStyle.graphicOpacity,graphicWidth:this.defaultStyle.graphicWidth,graphicHeight:this.defaultStyle.graphicHeight,graphicXOffset:this.defaultStyle.graphicXOffset,graphicYOffset:this.defaultStyle.graphicYOffset}));\n +return this.createLiterals(OpenLayers.Util.extend(b,a),c)},createLiterals:function(a,b){var c=OpenLayers.Util.extend({},b.attributes||b.data);OpenLayers.Util.extend(c,this.context);for(var d in this.propertyStyles)a[d]=OpenLayers.Style.createLiteral(a[d],c,b,d);return a},findPropertyStyles:function(){var a={};this.addPropertyStyles(a,this.defaultStyle);for(var b=this.rules,c,d,e=0,f=b.length;e<f;e++){c=b[e].symbolizer;for(var g in c)if(d=c[g],"object"==typeof d)this.addPropertyStyles(a,d);else{this.addPropertyStyles(a,\n +c);break}}return a},addPropertyStyles:function(a,b){var c,d;for(d in b)c=b[d],"string"==typeof c&&c.match(/\\$\\{\\w+\\}/)&&(a[d]=!0);return a},addRules:function(a){Array.prototype.push.apply(this.rules,a);this.propertyStyles=this.findPropertyStyles()},setDefaultStyle:function(a){this.defaultStyle=a;this.propertyStyles=this.findPropertyStyles()},getSymbolizerPrefix:function(a){for(var b=OpenLayers.Style.SYMBOLIZER_PREFIXES,c=0,d=b.length;c<d;c++)if(-1!=a.CLASS_NAME.indexOf(b[c]))return b[c]},clone:function(){var a=\n +OpenLayers.Util.extend({},this);if(this.rules){a.rules=[];for(var b=0,c=this.rules.length;b<c;++b)a.rules.push(this.rules[b].clone())}a.context=this.context&&OpenLayers.Util.extend({},this.context);b=OpenLayers.Util.extend({},this.defaultStyle);return new OpenLayers.Style(b,a)},CLASS_NAME:"OpenLayers.Style"});OpenLayers.Style.createLiteral=function(a,b,c,d){"string"==typeof a&&-1!=a.indexOf("${")&&(a=OpenLayers.String.format(a,b,[c,d]),a=isNaN(a)||!a?a:parseFloat(a));return a};\n +OpenLayers.Style.SYMBOLIZER_PREFIXES=["Point","Line","Polygon","Text","Raster"];OpenLayers.Filter=OpenLayers.Class({initialize:function(a){OpenLayers.Util.extend(this,a)},destroy:function(){},evaluate:function(){return!0},clone:function(){return null},toString:function(){return OpenLayers.Format&&OpenLayers.Format.CQL?OpenLayers.Format.CQL.prototype.write(this):Object.prototype.toString.call(this)},CLASS_NAME:"OpenLayers.Filter"});OpenLayers.Filter.FeatureId=OpenLayers.Class(OpenLayers.Filter,{fids:null,type:"FID",initialize:function(a){this.fids=[];OpenLayers.Filter.prototype.initialize.apply(this,[a])},evaluate:function(a){for(var b=0,c=this.fids.length;b<c;b++)if((a.fid||a.id)==this.fids[b])return!0;return!1},clone:function(){var a=new OpenLayers.Filter.FeatureId;OpenLayers.Util.extend(a,this);a.fids=this.fids.slice();return a},CLASS_NAME:"OpenLayers.Filter.FeatureId"});OpenLayers.Filter.Logical=OpenLayers.Class(OpenLayers.Filter,{filters:null,type:null,initialize:function(a){this.filters=[];OpenLayers.Filter.prototype.initialize.apply(this,[a])},destroy:function(){this.filters=null;OpenLayers.Filter.prototype.destroy.apply(this)},evaluate:function(a){var b,c;switch(this.type){case OpenLayers.Filter.Logical.AND:b=0;for(c=this.filters.length;b<c;b++)if(!1==this.filters[b].evaluate(a))return!1;return!0;case OpenLayers.Filter.Logical.OR:b=0;for(c=this.filters.length;b<\n +c;b++)if(!0==this.filters[b].evaluate(a))return!0;return!1;case OpenLayers.Filter.Logical.NOT:return!this.filters[0].evaluate(a)}},clone:function(){for(var a=[],b=0,c=this.filters.length;b<c;++b)a.push(this.filters[b].clone());return new OpenLayers.Filter.Logical({type:this.type,filters:a})},CLASS_NAME:"OpenLayers.Filter.Logical"});OpenLayers.Filter.Logical.AND="&&";OpenLayers.Filter.Logical.OR="||";OpenLayers.Filter.Logical.NOT="!";OpenLayers.Filter.Comparison=OpenLayers.Class(OpenLayers.Filter,{type:null,property:null,value:null,matchCase:!0,lowerBoundary:null,upperBoundary:null,initialize:function(a){OpenLayers.Filter.prototype.initialize.apply(this,[a]);this.type===OpenLayers.Filter.Comparison.LIKE&&void 0===a.matchCase&&(this.matchCase=null)},evaluate:function(a){a instanceof OpenLayers.Feature.Vector&&(a=a.attributes);var b=!1,a=a[this.property];switch(this.type){case OpenLayers.Filter.Comparison.EQUAL_TO:b=this.value;\n +b=!this.matchCase&&"string"==typeof a&&"string"==typeof b?a.toUpperCase()==b.toUpperCase():a==b;break;case OpenLayers.Filter.Comparison.NOT_EQUAL_TO:b=this.value;b=!this.matchCase&&"string"==typeof a&&"string"==typeof b?a.toUpperCase()!=b.toUpperCase():a!=b;break;case OpenLayers.Filter.Comparison.LESS_THAN:b=a<this.value;break;case OpenLayers.Filter.Comparison.GREATER_THAN:b=a>this.value;break;case OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO:b=a<=this.value;break;case OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO:b=\n +a>=this.value;break;case OpenLayers.Filter.Comparison.BETWEEN:b=a>=this.lowerBoundary&&a<=this.upperBoundary;break;case OpenLayers.Filter.Comparison.LIKE:b=RegExp(this.value,"gi").test(a)}return b},value2regex:function(a,b,c){if("."==a)throw Error("\'.\' is an unsupported wildCard character for OpenLayers.Filter.Comparison");a=a?a:"*";b=b?b:".";this.value=this.value.replace(RegExp("\\\\"+(c?c:"!")+"(.|$)","g"),"\\\\$1");this.value=this.value.replace(RegExp("\\\\"+b,"g"),".");this.value=this.value.replace(RegExp("\\\\"+\n +a,"g"),".*");this.value=this.value.replace(RegExp("\\\\\\\\.\\\\*","g"),"\\\\"+a);return this.value=this.value.replace(RegExp("\\\\\\\\\\\\.","g"),"\\\\"+b)},regex2value:function(){var a=this.value,a=a.replace(/!/g,"!!"),a=a.replace(/(\\\\)?\\\\\\./g,function(a,c){return c?a:"!."}),a=a.replace(/(\\\\)?\\\\\\*/g,function(a,c){return c?a:"!*"}),a=a.replace(/\\\\\\\\/g,"\\\\");return a=a.replace(/\\.\\*/g,"*")},clone:function(){return OpenLayers.Util.extend(new OpenLayers.Filter.Comparison,this)},CLASS_NAME:"OpenLayers.Filter.Comparison"});\n +OpenLayers.Filter.Comparison.EQUAL_TO="==";OpenLayers.Filter.Comparison.NOT_EQUAL_TO="!=";OpenLayers.Filter.Comparison.LESS_THAN="<";OpenLayers.Filter.Comparison.GREATER_THAN=">";OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO="<=";OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO=">=";OpenLayers.Filter.Comparison.BETWEEN="..";OpenLayers.Filter.Comparison.LIKE="~";OpenLayers.Format.Filter=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.0.0",CLASS_NAME:"OpenLayers.Format.Filter"});OpenLayers.Filter.Function=OpenLayers.Class(OpenLayers.Filter,{name:null,params:null,CLASS_NAME:"OpenLayers.Filter.Function"});OpenLayers.Format.Filter.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ogc:"http://www.opengis.net/ogc",gml:"http://www.opengis.net/gml",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},defaultPrefix:"ogc",schemaLocation:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){var b={};this.readers.ogc.Filter.apply(this,[a,b]);return b.filter},readers:{ogc:{_expression:function(a){for(var b="",c=a.firstChild;c;c=\n +c.nextSibling)switch(c.nodeType){case 1:a=this.readNode(c);a.property?b+="${"+a.property+"}":void 0!==a.value&&(b+=a.value);break;case 3:case 4:b+=c.nodeValue}return b},Filter:function(a,b){var c={fids:[],filters:[]};this.readChildNodes(a,c);0<c.fids.length?b.filter=new OpenLayers.Filter.FeatureId({fids:c.fids}):0<c.filters.length&&(b.filter=c.filters[0])},FeatureId:function(a,b){var c=a.getAttribute("fid");c&&b.fids.push(c)},And:function(a,b){var c=new OpenLayers.Filter.Logical({type:OpenLayers.Filter.Logical.AND});\n +this.readChildNodes(a,c);b.filters.push(c)},Or:function(a,b){var c=new OpenLayers.Filter.Logical({type:OpenLayers.Filter.Logical.OR});this.readChildNodes(a,c);b.filters.push(c)},Not:function(a,b){var c=new OpenLayers.Filter.Logical({type:OpenLayers.Filter.Logical.NOT});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsLessThan:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.LESS_THAN});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsGreaterThan:function(a,\n +b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.GREATER_THAN});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsLessThanOrEqualTo:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsGreaterThanOrEqualTo:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO});this.readChildNodes(a,c);b.filters.push(c)},\n +PropertyIsBetween:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.BETWEEN});this.readChildNodes(a,c);b.filters.push(c)},Literal:function(a,b){b.value=OpenLayers.String.numericIf(this.getChildValue(a))},PropertyName:function(a,b){b.property=this.getChildValue(a)},LowerBoundary:function(a,b){b.lowerBoundary=OpenLayers.String.numericIf(this.readers.ogc._expression.call(this,a))},UpperBoundary:function(a,b){b.upperBoundary=OpenLayers.String.numericIf(this.readers.ogc._expression.call(this,\n +a))},Intersects:function(a,b){this.readSpatial(a,b,OpenLayers.Filter.Spatial.INTERSECTS)},Within:function(a,b){this.readSpatial(a,b,OpenLayers.Filter.Spatial.WITHIN)},Contains:function(a,b){this.readSpatial(a,b,OpenLayers.Filter.Spatial.CONTAINS)},DWithin:function(a,b){this.readSpatial(a,b,OpenLayers.Filter.Spatial.DWITHIN)},Distance:function(a,b){b.distance=parseInt(this.getChildValue(a));b.distanceUnits=a.getAttribute("units")},Function:function(){}}},readSpatial:function(a,b,c){c=new OpenLayers.Filter.Spatial({type:c});\n +this.readChildNodes(a,c);c.value=c.components[0];delete c.components;b.filters.push(c)},writeOgcExpression:function(a,b){if(a instanceof OpenLayers.Filter.Function){var c=this.writeNode("Function",a,b);b.appendChild(c)}else this.writeNode("Literal",a,b);return b},write:function(a){return this.writers.ogc.Filter.apply(this,[a])},writeFeatureIdNodes:function(a,b){for(var c=0,d=a.fids.length;c<d;++c)this.writeNode("FeatureId",a.fids[c],b)},writers:{ogc:{Filter:function(a){var b=this.createElementNSPlus("ogc:Filter");\n +"FID"===a.type?OpenLayers.Format.Filter.v1.prototype.writeFeatureIdNodes.call(this,a,b):this.writeNode(this.getFilterType(a),a,b);return b},FeatureId:function(a){return this.createElementNSPlus("ogc:FeatureId",{attributes:{fid:a}})},And:function(a){for(var b=this.createElementNSPlus("ogc:And"),c,d=0,e=a.filters.length;d<e;++d)c=a.filters[d],"FID"===c.type?OpenLayers.Format.Filter.v1.prototype.writeFeatureIdNodes.call(this,c,b):this.writeNode(this.getFilterType(c),c,b);return b},Or:function(a){for(var b=\n +this.createElementNSPlus("ogc:Or"),c,d=0,e=a.filters.length;d<e;++d)c=a.filters[d],"FID"===c.type?OpenLayers.Format.Filter.v1.prototype.writeFeatureIdNodes.call(this,c,b):this.writeNode(this.getFilterType(c),c,b);return b},Not:function(a){var b=this.createElementNSPlus("ogc:Not"),a=a.filters[0];"FID"===a.type?OpenLayers.Format.Filter.v1.prototype.writeFeatureIdNodes.call(this,a,b):this.writeNode(this.getFilterType(a),a,b);return b},PropertyIsLessThan:function(a){var b=this.createElementNSPlus("ogc:PropertyIsLessThan");\n +this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsGreaterThan:function(a){var b=this.createElementNSPlus("ogc:PropertyIsGreaterThan");this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsLessThanOrEqualTo:function(a){var b=this.createElementNSPlus("ogc:PropertyIsLessThanOrEqualTo");this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsGreaterThanOrEqualTo:function(a){var b=this.createElementNSPlus("ogc:PropertyIsGreaterThanOrEqualTo");\n +this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsBetween:function(a){var b=this.createElementNSPlus("ogc:PropertyIsBetween");this.writeNode("PropertyName",a,b);this.writeNode("LowerBoundary",a,b);this.writeNode("UpperBoundary",a,b);return b},PropertyName:function(a){return this.createElementNSPlus("ogc:PropertyName",{value:a.property})},Literal:function(a){return this.createElementNSPlus("ogc:Literal",{value:a})},LowerBoundary:function(a){var b=this.createElementNSPlus("ogc:LowerBoundary");\n +this.writeOgcExpression(a.lowerBoundary,b);return b},UpperBoundary:function(a){var b=this.createElementNSPlus("ogc:UpperBoundary");this.writeNode("Literal",a.upperBoundary,b);return b},INTERSECTS:function(a){return this.writeSpatial(a,"Intersects")},WITHIN:function(a){return this.writeSpatial(a,"Within")},CONTAINS:function(a){return this.writeSpatial(a,"Contains")},DWITHIN:function(a){var b=this.writeSpatial(a,"DWithin");this.writeNode("Distance",a,b);return b},Distance:function(a){return this.createElementNSPlus("ogc:Distance",\n +{attributes:{units:a.distanceUnits},value:a.distance})},Function:function(a){for(var b=this.createElementNSPlus("ogc:Function",{attributes:{name:a.name}}),a=a.params,c=0,d=a.length;c<d;c++)this.writeOgcExpression(a[c],b);return b}}},getFilterType:function(a){var b=this.filterMap[a.type];if(!b)throw"Filter writing not supported for rule type: "+a.type;return b},filterMap:{"&&":"And","||":"Or","!":"Not","==":"PropertyIsEqualTo","!=":"PropertyIsNotEqualTo","<":"PropertyIsLessThan",">":"PropertyIsGreaterThan",\n +"<=":"PropertyIsLessThanOrEqualTo",">=":"PropertyIsGreaterThanOrEqualTo","..":"PropertyIsBetween","~":"PropertyIsLike",BBOX:"BBOX",DWITHIN:"DWITHIN",WITHIN:"WITHIN",CONTAINS:"CONTAINS",INTERSECTS:"INTERSECTS",FID:"FeatureId"},CLASS_NAME:"OpenLayers.Format.Filter.v1"});OpenLayers.Geometry=OpenLayers.Class({id:null,parent:null,bounds:null,initialize:function(){this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},destroy:function(){this.bounds=this.id=null},clone:function(){return new OpenLayers.Geometry},setBounds:function(a){a&&(this.bounds=a.clone())},clearBounds:function(){this.bounds=null;this.parent&&this.parent.clearBounds()},extendBounds:function(a){this.getBounds()?this.bounds.extend(a):this.setBounds(a)},getBounds:function(){null==this.bounds&&this.calculateBounds();\n +return this.bounds},calculateBounds:function(){},distanceTo:function(){},getVertices:function(){},atPoint:function(a,b,c){var d=!1;null!=this.getBounds()&&null!=a&&(b=null!=b?b:0,c=null!=c?c:0,d=(new OpenLayers.Bounds(this.bounds.left-b,this.bounds.bottom-c,this.bounds.right+b,this.bounds.top+c)).containsLonLat(a));return d},getLength:function(){return 0},getArea:function(){return 0},getCentroid:function(){return null},toString:function(){return OpenLayers.Format&&OpenLayers.Format.WKT?OpenLayers.Format.WKT.prototype.write(new OpenLayers.Feature.Vector(this)):\n +Object.prototype.toString.call(this)},CLASS_NAME:"OpenLayers.Geometry"});OpenLayers.Geometry.fromWKT=function(a){var b;if(OpenLayers.Format&&OpenLayers.Format.WKT){var c=OpenLayers.Geometry.fromWKT.format;c||(c=new OpenLayers.Format.WKT,OpenLayers.Geometry.fromWKT.format=c);a=c.read(a);if(a instanceof OpenLayers.Feature.Vector)b=a.geometry;else if(OpenLayers.Util.isArray(a)){b=a.length;for(var c=Array(b),d=0;d<b;++d)c[d]=a[d].geometry;b=new OpenLayers.Geometry.Collection(c)}}return b};\n +OpenLayers.Geometry.segmentsIntersect=function(a,b,c){var d=c&&c.point,c=c&&c.tolerance,e=!1,f=a.x1-b.x1,g=a.y1-b.y1,h=a.x2-a.x1,i=a.y2-a.y1,j=b.y2-b.y1,k=b.x2-b.x1,l=j*h-k*i,j=k*g-j*f,g=h*g-i*f;0==l?0==j&&0==g&&(e=!0):(f=j/l,l=g/l,0<=f&&(1>=f&&0<=l&&1>=l)&&(d?(h=a.x1+f*h,l=a.y1+f*i,e=new OpenLayers.Geometry.Point(h,l)):e=!0));if(c)if(e){if(d){a=[a,b];b=0;a:for(;2>b;++b){f=a[b];for(i=1;3>i;++i)if(h=f["x"+i],l=f["y"+i],d=Math.sqrt(Math.pow(h-e.x,2)+Math.pow(l-e.y,2)),d<c){e.x=h;e.y=l;break a}}}}else{a=\n +[a,b];b=0;a:for(;2>b;++b){h=a[b];l=a[(b+1)%2];for(i=1;3>i;++i)if(f={x:h["x"+i],y:h["y"+i]},g=OpenLayers.Geometry.distanceToSegment(f,l),g.distance<c){e=d?new OpenLayers.Geometry.Point(f.x,f.y):!0;break a}}}return e};OpenLayers.Geometry.distanceToSegment=function(a,b){var c=a.x,d=a.y,e=b.x1,f=b.y1,g=b.x2,h=b.y2,i=g-e,j=h-f,k=(i*(c-e)+j*(d-f))/(Math.pow(i,2)+Math.pow(j,2));0>=k||(1<=k?(e=g,f=h):(e+=k*i,f+=k*j));return{distance:Math.sqrt(Math.pow(e-c,2)+Math.pow(f-d,2)),x:e,y:f}};OpenLayers.Geometry.Point=OpenLayers.Class(OpenLayers.Geometry,{x:null,y:null,initialize:function(a,b){OpenLayers.Geometry.prototype.initialize.apply(this,arguments);this.x=parseFloat(a);this.y=parseFloat(b)},clone:function(a){null==a&&(a=new OpenLayers.Geometry.Point(this.x,this.y));OpenLayers.Util.applyDefaults(a,this);return a},calculateBounds:function(){this.bounds=new OpenLayers.Bounds(this.x,this.y,this.x,this.y)},distanceTo:function(a,b){var c=!(b&&!1===b.edge)&&b&&b.details,d,e,f,g,h;a instanceof\n +OpenLayers.Geometry.Point?(e=this.x,f=this.y,g=a.x,h=a.y,d=Math.sqrt(Math.pow(e-g,2)+Math.pow(f-h,2)),d=!c?d:{x0:e,y0:f,x1:g,y1:h,distance:d}):(d=a.distanceTo(this,b),c&&(d={x0:d.x1,y0:d.y1,x1:d.x0,y1:d.y0,distance:d.distance}));return d},equals:function(a){var b=!1;null!=a&&(b=this.x==a.x&&this.y==a.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(a.x)&&isNaN(a.y));return b},toShortString:function(){return this.x+", "+this.y},move:function(a,b){this.x+=a;this.y+=b;this.clearBounds()},rotate:function(a,b){var a=\n +a*(Math.PI/180),c=this.distanceTo(b),d=a+Math.atan2(this.y-b.y,this.x-b.x);this.x=b.x+c*Math.cos(d);this.y=b.y+c*Math.sin(d);this.clearBounds()},getCentroid:function(){return new OpenLayers.Geometry.Point(this.x,this.y)},resize:function(a,b,c){this.x=b.x+a*(void 0==c?1:c)*(this.x-b.x);this.y=b.y+a*(this.y-b.y);this.clearBounds();return this},intersects:function(a){var b=!1;return b="OpenLayers.Geometry.Point"==a.CLASS_NAME?this.equals(a):a.intersects(this)},transform:function(a,b){a&&b&&(OpenLayers.Projection.transform(this,\n +a,b),this.bounds=null);return this},getVertices:function(){return[this]},CLASS_NAME:"OpenLayers.Geometry.Point"});OpenLayers.Geometry.Collection=OpenLayers.Class(OpenLayers.Geometry,{components:null,componentTypes:null,initialize:function(a){OpenLayers.Geometry.prototype.initialize.apply(this,arguments);this.components=[];null!=a&&this.addComponents(a)},destroy:function(){this.components.length=0;this.components=null;OpenLayers.Geometry.prototype.destroy.apply(this,arguments)},clone:function(){for(var a=eval("new "+this.CLASS_NAME+"()"),b=0,c=this.components.length;b<c;b++)a.addComponent(this.components[b].clone());\n +OpenLayers.Util.applyDefaults(a,this);return a},getComponentsString:function(){for(var a=[],b=0,c=this.components.length;b<c;b++)a.push(this.components[b].toShortString());return a.join(",")},calculateBounds:function(){this.bounds=null;var a=new OpenLayers.Bounds,b=this.components;if(b)for(var c=0,d=b.length;c<d;c++)a.extend(b[c].getBounds());null!=a.left&&(null!=a.bottom&&null!=a.right&&null!=a.top)&&this.setBounds(a)},addComponents:function(a){OpenLayers.Util.isArray(a)||(a=[a]);for(var b=0,c=a.length;b<\n +c;b++)this.addComponent(a[b])},addComponent:function(a,b){var c=!1;if(a&&(null==this.componentTypes||-1<OpenLayers.Util.indexOf(this.componentTypes,a.CLASS_NAME))){if(null!=b&&b<this.components.length){var c=this.components.slice(0,b),d=this.components.slice(b,this.components.length);c.push(a);this.components=c.concat(d)}else this.components.push(a);a.parent=this;this.clearBounds();c=!0}return c},removeComponents:function(a){var b=!1;OpenLayers.Util.isArray(a)||(a=[a]);for(var c=a.length-1;0<=c;--c)b=\n +this.removeComponent(a[c])||b;return b},removeComponent:function(a){OpenLayers.Util.removeItem(this.components,a);this.clearBounds();return!0},getLength:function(){for(var a=0,b=0,c=this.components.length;b<c;b++)a+=this.components[b].getLength();return a},getArea:function(){for(var a=0,b=0,c=this.components.length;b<c;b++)a+=this.components[b].getArea();return a},getGeodesicArea:function(a){for(var b=0,c=0,d=this.components.length;c<d;c++)b+=this.components[c].getGeodesicArea(a);return b},getCentroid:function(a){if(!a)return this.components.length&&\n +this.components[0].getCentroid();a=this.components.length;if(!a)return!1;for(var b=[],c=[],d=0,e=Number.MAX_VALUE,f,g=0;g<a;++g){f=this.components[g];var h=f.getArea();f=f.getCentroid(!0);!isNaN(h)&&(!isNaN(f.x)&&!isNaN(f.y))&&(b.push(h),d+=h,e=h<e&&0<h?h:e,c.push(f))}a=b.length;if(0===d){for(g=0;g<a;++g)b[g]=1;d=b.length}else{for(g=0;g<a;++g)b[g]/=e;d/=e}for(var i=e=0,g=0;g<a;++g)f=c[g],h=b[g],e+=f.x*h,i+=f.y*h;return new OpenLayers.Geometry.Point(e/d,i/d)},getGeodesicLength:function(a){for(var b=\n +0,c=0,d=this.components.length;c<d;c++)b+=this.components[c].getGeodesicLength(a);return b},move:function(a,b){for(var c=0,d=this.components.length;c<d;c++)this.components[c].move(a,b)},rotate:function(a,b){for(var c=0,d=this.components.length;c<d;++c)this.components[c].rotate(a,b)},resize:function(a,b,c){for(var d=0;d<this.components.length;++d)this.components[d].resize(a,b,c);return this},distanceTo:function(a,b){for(var c=!(b&&!1===b.edge)&&b&&b.details,d,e,f,g=Number.POSITIVE_INFINITY,h=0,i=this.components.length;h<\n +i&&!(d=this.components[h].distanceTo(a,b),f=c?d.distance:d,f<g&&(g=f,e=d,0==g));++h);return e},equals:function(a){var b=!0;if(!a||!a.CLASS_NAME||this.CLASS_NAME!=a.CLASS_NAME)b=!1;else if(!OpenLayers.Util.isArray(a.components)||a.components.length!=this.components.length)b=!1;else for(var c=0,d=this.components.length;c<d;++c)if(!this.components[c].equals(a.components[c])){b=!1;break}return b},transform:function(a,b){if(a&&b){for(var c=0,d=this.components.length;c<d;c++)this.components[c].transform(a,\n +b);this.bounds=null}return this},intersects:function(a){for(var b=!1,c=0,d=this.components.length;c<d&&!(b=a.intersects(this.components[c]));++c);return b},getVertices:function(a){for(var b=[],c=0,d=this.components.length;c<d;++c)Array.prototype.push.apply(b,this.components[c].getVertices(a));return b},CLASS_NAME:"OpenLayers.Geometry.Collection"});OpenLayers.Geometry.MultiPoint=OpenLayers.Class(OpenLayers.Geometry.Collection,{componentTypes:["OpenLayers.Geometry.Point"],addPoint:function(a,b){this.addComponent(a,b)},removePoint:function(a){this.removeComponent(a)},CLASS_NAME:"OpenLayers.Geometry.MultiPoint"});OpenLayers.Geometry.Curve=OpenLayers.Class(OpenLayers.Geometry.MultiPoint,{componentTypes:["OpenLayers.Geometry.Point"],getLength:function(){var a=0;if(this.components&&1<this.components.length)for(var b=1,c=this.components.length;b<c;b++)a+=this.components[b-1].distanceTo(this.components[b]);return a},getGeodesicLength:function(a){var b=this;if(a){var c=new OpenLayers.Projection("EPSG:4326");c.equals(a)||(b=this.clone().transform(a,c))}a=0;if(b.components&&1<b.components.length)for(var d,e=1,f=b.components.length;e<\n +f;e++)c=b.components[e-1],d=b.components[e],a+=OpenLayers.Util.distVincenty({lon:c.x,lat:c.y},{lon:d.x,lat:d.y});return 1E3*a},CLASS_NAME:"OpenLayers.Geometry.Curve"});OpenLayers.Geometry.LineString=OpenLayers.Class(OpenLayers.Geometry.Curve,{removeComponent:function(a){var b=this.components&&2<this.components.length;b&&OpenLayers.Geometry.Collection.prototype.removeComponent.apply(this,arguments);return b},intersects:function(a){var b=!1,c=a.CLASS_NAME;if("OpenLayers.Geometry.LineString"==c||"OpenLayers.Geometry.LinearRing"==c||"OpenLayers.Geometry.Point"==c){var d=this.getSortedSegments(),a="OpenLayers.Geometry.Point"==c?[{x1:a.x,y1:a.y,x2:a.x,y2:a.y}]:a.getSortedSegments(),\n +e,f,g,h,i,j,k,l=0,m=d.length;a:for(;l<m;++l){c=d[l];e=c.x1;f=c.x2;g=c.y1;h=c.y2;var n=0,o=a.length;for(;n<o;++n){i=a[n];if(i.x1>f)break;if(!(i.x2<e)&&(j=i.y1,k=i.y2,!(Math.min(j,k)>Math.max(g,h))&&!(Math.max(j,k)<Math.min(g,h))&&OpenLayers.Geometry.segmentsIntersect(c,i))){b=!0;break a}}}}else b=a.intersects(this);return b},getSortedSegments:function(){for(var a=this.components.length-1,b=Array(a),c,d,e=0;e<a;++e)c=this.components[e],d=this.components[e+1],b[e]=c.x<d.x?{x1:c.x,y1:c.y,x2:d.x,y2:d.y}:\n +{x1:d.x,y1:d.y,x2:c.x,y2:c.y};return b.sort(function(a,b){return a.x1-b.x1})},splitWithSegment:function(a,b){for(var c=!(b&&!1===b.edge),d=b&&b.tolerance,e=[],f=this.getVertices(),g=[],h=[],i=!1,j,k,l,m={point:!0,tolerance:d},n=null,o=0,p=f.length-2;o<=p;++o)if(d=f[o],g.push(d.clone()),j=f[o+1],k={x1:d.x,y1:d.y,x2:j.x,y2:j.y},k=OpenLayers.Geometry.segmentsIntersect(a,k,m),k instanceof OpenLayers.Geometry.Point&&((l=k.x===a.x1&&k.y===a.y1||k.x===a.x2&&k.y===a.y2||k.equals(d)||k.equals(j)?!0:!1)||c))k.equals(h[h.length-\n +1])||h.push(k.clone()),!(0===o&&k.equals(d))&&!k.equals(j)&&(i=!0,k.equals(d)||g.push(k),e.push(new OpenLayers.Geometry.LineString(g)),g=[k.clone()]);i&&(g.push(j.clone()),e.push(new OpenLayers.Geometry.LineString(g)));if(0<h.length)var q=a.x1<a.x2?1:-1,r=a.y1<a.y2?1:-1,n={lines:e,points:h.sort(function(a,b){return q*a.x-q*b.x||r*a.y-r*b.y})};return n},split:function(a,b){var c=null,d=b&&b.mutual,e,f,g,h;if(a instanceof OpenLayers.Geometry.LineString){var i=this.getVertices(),j,k,l,m,n,o=[];g=[];\n +for(var p=0,q=i.length-2;p<=q;++p){j=i[p];k=i[p+1];l={x1:j.x,y1:j.y,x2:k.x,y2:k.y};h=h||[a];d&&o.push(j.clone());for(var r=0;r<h.length;++r)if(m=h[r].splitWithSegment(l,b))if(n=m.lines,0<n.length&&(n.unshift(r,1),Array.prototype.splice.apply(h,n),r+=n.length-2),d)for(var s=0,t=m.points.length;s<t;++s)n=m.points[s],n.equals(j)||(o.push(n),g.push(new OpenLayers.Geometry.LineString(o)),o=n.equals(k)?[]:[n.clone()])}d&&(0<g.length&&0<o.length)&&(o.push(k.clone()),g.push(new OpenLayers.Geometry.LineString(o)))}else c=\n +a.splitWith(this,b);h&&1<h.length?f=!0:h=[];g&&1<g.length?e=!0:g=[];if(f||e)c=d?[g,h]:h;return c},splitWith:function(a,b){return a.split(this,b)},getVertices:function(a){return!0===a?[this.components[0],this.components[this.components.length-1]]:!1===a?this.components.slice(1,this.components.length-1):this.components.slice()},distanceTo:function(a,b){var c=!(b&&!1===b.edge)&&b&&b.details,d,e={},f=Number.POSITIVE_INFINITY;if(a instanceof OpenLayers.Geometry.Point){for(var g=this.getSortedSegments(),\n +h=a.x,i=a.y,j,k=0,l=g.length;k<l;++k)if(j=g[k],d=OpenLayers.Geometry.distanceToSegment(a,j),d.distance<f){if(f=d.distance,e=d,0===f)break}else if(j.x2>h&&(i>j.y1&&i<j.y2||i<j.y1&&i>j.y2))break;e=c?{distance:e.distance,x0:e.x,y0:e.y,x1:h,y1:i}:e.distance}else if(a instanceof OpenLayers.Geometry.LineString){var g=this.getSortedSegments(),h=a.getSortedSegments(),m,n,o=h.lengt ]]></string> </value> </item> <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> + <key> <string>next</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="Pdata" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> <item> - <key> <string>size</string> </key> - <value> <int>18867</int> </value> + <key> <string>data</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +h,p={point:!0},k=0,l=g.length;a:for(;k<l;++k){i=g[k];j=i.x1;n=i.y1;for(var q=0;q<o;++q)if(d=h[q],m=OpenLayers.Geometry.segmentsIntersect(i,\n +d,p)){f=0;e={distance:0,x0:m.x,y0:m.y,x1:m.x,y1:m.y};break a}else d=OpenLayers.Geometry.distanceToSegment({x:j,y:n},d),d.distance<f&&(f=d.distance,e={distance:f,x0:j,y0:n,x1:d.x,y1:d.y})}c||(e=e.distance);0!==f&&i&&(d=a.distanceTo(new OpenLayers.Geometry.Point(i.x2,i.y2),b),k=c?d.distance:d,k<f&&(e=c?{distance:f,x0:d.x1,y0:d.y1,x1:d.x0,y1:d.y0}:k))}else e=a.distanceTo(this,b),c&&(e={distance:e.distance,x0:e.x1,y0:e.y1,x1:e.x0,y1:e.y0});return e},simplify:function(a){if(this&&null!==this){var b=this.getVertices();\n +if(3>b.length)return this;var c=function(a,b,d,i){for(var j=0,k=0,l=b,m;l<d;l++){m=a[b];var n=a[d],o=a[l],o=Math.abs(0.5*(m.x*n.y+n.x*o.y+o.x*m.y-n.x*m.y-o.x*n.y-m.x*o.y));m=Math.sqrt(Math.pow(m.x-n.x,2)+Math.pow(m.y-n.y,2));m=2*(o/m);m>j&&(j=m,k=l)}j>i&&k!=b&&(e.push(k),c(a,b,k,i),c(a,k,d,i))},d=b.length-1,e=[];e.push(0);for(e.push(d);b[0].equals(b[d]);)d--,e.push(d);c(b,0,d,a);a=[];e.sort(function(a,b){return a-b});for(d=0;d<e.length;d++)a.push(b[e[d]]);return new OpenLayers.Geometry.LineString(a)}return this},\n +CLASS_NAME:"OpenLayers.Geometry.LineString"});OpenLayers.Geometry.MultiLineString=OpenLayers.Class(OpenLayers.Geometry.Collection,{componentTypes:["OpenLayers.Geometry.LineString"],split:function(a,b){for(var c=null,d=b&&b.mutual,e,f,g,h,i=[],j=[a],k=0,l=this.components.length;k<l;++k){f=this.components[k];g=!1;for(var m=0;m<j.length;++m)if(e=f.split(j[m],b)){if(d){g=e[0];for(var n=0,o=g.length;n<o;++n)0===n&&i.length?i[i.length-1].addComponent(g[n]):i.push(new OpenLayers.Geometry.MultiLineString([g[n]]));g=!0;e=e[1]}if(e.length){e.unshift(m,\n +1);Array.prototype.splice.apply(j,e);break}}g||(i.length?i[i.length-1].addComponent(f.clone()):i=[new OpenLayers.Geometry.MultiLineString(f.clone())])}i&&1<i.length?g=!0:i=[];j&&1<j.length?h=!0:j=[];if(g||h)c=d?[i,j]:j;return c},splitWith:function(a,b){var c=null,d=b&&b.mutual,e,f,g,h,i,j;if(a instanceof OpenLayers.Geometry.LineString){j=[];i=[a];for(var k=0,l=this.components.length;k<l;++k){g=!1;f=this.components[k];for(var m=0;m<i.length;++m)if(e=i[m].split(f,b)){d&&(g=e[0],g.length&&(g.unshift(m,\n +1),Array.prototype.splice.apply(i,g),m+=g.length-2),e=e[1],0===e.length&&(e=[f.clone()]));g=0;for(var n=e.length;g<n;++g)0===g&&j.length?j[j.length-1].addComponent(e[g]):j.push(new OpenLayers.Geometry.MultiLineString([e[g]]));g=!0}g||(j.length?j[j.length-1].addComponent(f.clone()):j=[new OpenLayers.Geometry.MultiLineString([f.clone()])])}}else c=a.split(this);i&&1<i.length?h=!0:i=[];j&&1<j.length?g=!0:j=[];if(h||g)c=d?[i,j]:j;return c},CLASS_NAME:"OpenLayers.Geometry.MultiLineString"});OpenLayers.Geometry.LinearRing=OpenLayers.Class(OpenLayers.Geometry.LineString,{componentTypes:["OpenLayers.Geometry.Point"],addComponent:function(a,b){var c=!1,d=this.components.pop();if(null!=b||!a.equals(d))c=OpenLayers.Geometry.Collection.prototype.addComponent.apply(this,arguments);OpenLayers.Geometry.Collection.prototype.addComponent.apply(this,[this.components[0]]);return c},removeComponent:function(a){var b=this.components&&3<this.components.length;b&&(this.components.pop(),OpenLayers.Geometry.Collection.prototype.removeComponent.apply(this,\n +arguments),OpenLayers.Geometry.Collection.prototype.addComponent.apply(this,[this.components[0]]));return b},move:function(a,b){for(var c=0,d=this.components.length;c<d-1;c++)this.components[c].move(a,b)},rotate:function(a,b){for(var c=0,d=this.components.length;c<d-1;++c)this.components[c].rotate(a,b)},resize:function(a,b,c){for(var d=0,e=this.components.length;d<e-1;++d)this.components[d].resize(a,b,c);return this},transform:function(a,b){if(a&&b){for(var c=0,d=this.components.length;c<d-1;c++)this.components[c].transform(a,\n +b);this.bounds=null}return this},getCentroid:function(){if(this.components&&2<this.components.length){for(var a=0,b=0,c=0;c<this.components.length-1;c++)var d=this.components[c],e=this.components[c+1],a=a+(d.x+e.x)*(d.x*e.y-e.x*d.y),b=b+(d.y+e.y)*(d.x*e.y-e.x*d.y);c=-1*this.getArea();return new OpenLayers.Geometry.Point(a/(6*c),b/(6*c))}return null},getArea:function(){var a=0;if(this.components&&2<this.components.length){for(var b=a=0,c=this.components.length;b<c-1;b++)var d=this.components[b],e=\n +this.components[b+1],a=a+(d.x+e.x)*(e.y-d.y);a=-a/2}return a},getGeodesicArea:function(a){var b=this;if(a){var c=new OpenLayers.Projection("EPSG:4326");c.equals(a)||(b=this.clone().transform(a,c))}a=0;c=b.components&&b.components.length;if(2<c){for(var d,e,f=0;f<c-1;f++)d=b.components[f],e=b.components[f+1],a+=OpenLayers.Util.rad(e.x-d.x)*(2+Math.sin(OpenLayers.Util.rad(d.y))+Math.sin(OpenLayers.Util.rad(e.y)));a=40680631590769*a/2}return a},containsPoint:function(a){for(var b=OpenLayers.Number.limitSigDigs,\n +c=b(a.x,14),a=b(a.y,14),d=this.components.length-1,e,f,g,h,i,j=0,k=0;k<d;++k)if(e=this.components[k],g=b(e.x,14),e=b(e.y,14),f=this.components[k+1],h=b(f.x,14),f=b(f.y,14),e==f){if(a==e&&(g<=h&&c>=g&&c<=h||g>=h&&c<=g&&c>=h)){j=-1;break}}else{i=b((a-f)*((h-g)/(f-e))+h,14);if(i==c&&(e<f&&a>=e&&a<=f||e>f&&a<=e&&a>=f)){j=-1;break}i<=c||g!=h&&(i<Math.min(g,h)||i>Math.max(g,h))||(e<f&&a>=e&&a<f||e>f&&a<e&&a>=f)&&++j}return-1==j?1:!!(j&1)},intersects:function(a){var b=!1;if("OpenLayers.Geometry.Point"==\n +a.CLASS_NAME)b=this.containsPoint(a);else if("OpenLayers.Geometry.LineString"==a.CLASS_NAME)b=a.intersects(this);else if("OpenLayers.Geometry.LinearRing"==a.CLASS_NAME)b=OpenLayers.Geometry.LineString.prototype.intersects.apply(this,[a]);else for(var c=0,d=a.components.length;c<d&&!(b=a.components[c].intersects(this));++c);return b},getVertices:function(a){return!0===a?[]:this.components.slice(0,this.components.length-1)},CLASS_NAME:"OpenLayers.Geometry.LinearRing"});OpenLayers.Geometry.Polygon=OpenLayers.Class(OpenLayers.Geometry.Collection,{componentTypes:["OpenLayers.Geometry.LinearRing"],getArea:function(){var a=0;if(this.components&&0<this.components.length)for(var a=a+Math.abs(this.components[0].getArea()),b=1,c=this.components.length;b<c;b++)a-=Math.abs(this.components[b].getArea());return a},getGeodesicArea:function(a){var b=0;if(this.components&&0<this.components.length)for(var b=b+Math.abs(this.components[0].getGeodesicArea(a)),c=1,d=this.components.length;c<\n +d;c++)b-=Math.abs(this.components[c].getGeodesicArea(a));return b},containsPoint:function(a){var b=this.components.length,c=!1;if(0<b&&(c=this.components[0].containsPoint(a),1!==c&&c&&1<b))for(var d,e=1;e<b;++e)if(d=this.components[e].containsPoint(a)){c=1===d?1:!1;break}return c},intersects:function(a){var b=!1,c,d;if("OpenLayers.Geometry.Point"==a.CLASS_NAME)b=this.containsPoint(a);else if("OpenLayers.Geometry.LineString"==a.CLASS_NAME||"OpenLayers.Geometry.LinearRing"==a.CLASS_NAME){c=0;for(d=\n +this.components.length;c<d&&!(b=a.intersects(this.components[c]));++c);if(!b){c=0;for(d=a.components.length;c<d&&!(b=this.containsPoint(a.components[c]));++c);}}else{c=0;for(d=a.components.length;c<d&&!(b=this.intersects(a.components[c]));++c);}if(!b&&"OpenLayers.Geometry.Polygon"==a.CLASS_NAME){var e=this.components[0];c=0;for(d=e.components.length;c<d&&!(b=a.containsPoint(e.components[c]));++c);}return b},distanceTo:function(a,b){return b&&!1===b.edge&&this.intersects(a)?0:OpenLayers.Geometry.Collection.prototype.distanceTo.apply(this,\n +[a,b])},CLASS_NAME:"OpenLayers.Geometry.Polygon"});OpenLayers.Geometry.Polygon.createRegularPolygon=function(a,b,c,d){var e=Math.PI*(1/c-0.5);d&&(e+=d/180*Math.PI);for(var f,g=[],h=0;h<c;++h)f=e+2*h*Math.PI/c,d=a.x+b*Math.cos(f),f=a.y+b*Math.sin(f),g.push(new OpenLayers.Geometry.Point(d,f));a=new OpenLayers.Geometry.LinearRing(g);return new OpenLayers.Geometry.Polygon([a])};OpenLayers.Geometry.MultiPolygon=OpenLayers.Class(OpenLayers.Geometry.Collection,{componentTypes:["OpenLayers.Geometry.Polygon"],CLASS_NAME:"OpenLayers.Geometry.MultiPolygon"});OpenLayers.Format.GML=OpenLayers.Class(OpenLayers.Format.XML,{featureNS:"http://mapserver.gis.umn.edu/mapserver",featurePrefix:"feature",featureName:"featureMember",layerName:"features",geometryName:"geometry",collectionName:"FeatureCollection",gmlns:"http://www.opengis.net/gml",extractAttributes:!0,xy:!0,initialize:function(a){this.regExes={trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g};OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){"string"==\n +typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));for(var a=this.getElementsByTagNameNS(a.documentElement,this.gmlns,this.featureName),b=[],c=0;c<a.length;c++){var d=this.parseFeature(a[c]);d&&b.push(d)}return b},parseFeature:function(a){for(var b="MultiPolygon Polygon MultiLineString LineString MultiPoint Point Envelope".split(" "),c,d,e,f=0;f<b.length;++f)if(c=b[f],d=this.getElementsByTagNameNS(a,this.gmlns,c),0<d.length){if(e=this.parseGeometry[c.toLowerCase()])e=e.apply(this,\n +[d[0]]),this.internalProjection&&this.externalProjection&&e.transform(this.externalProjection,this.internalProjection);else throw new TypeError("Unsupported geometry type: "+c);break}var g;c=this.getElementsByTagNameNS(a,this.gmlns,"Box");for(f=0;f<c.length;++f)b=c[f],d=this.parseGeometry.box.apply(this,[b]),b=b.parentNode,"boundedBy"===(b.localName||b.nodeName.split(":").pop())?g=d:e=d.toGeometry();var h;this.extractAttributes&&(h=this.parseAttributes(a));h=new OpenLayers.Feature.Vector(e,h);h.bounds=\n +g;h.gml={featureType:a.firstChild.nodeName.split(":")[1],featureNS:a.firstChild.namespaceURI,featureNSPrefix:a.firstChild.prefix};for(var a=a.firstChild,i;a&&!(1==a.nodeType&&(i=a.getAttribute("fid")||a.getAttribute("id")));)a=a.nextSibling;h.fid=i;return h},parseGeometry:{point:function(a){var b,c;c=[];b=this.getElementsByTagNameNS(a,this.gmlns,"pos");0<b.length&&(c=b[0].firstChild.nodeValue,c=c.replace(this.regExes.trimSpace,""),c=c.split(this.regExes.splitSpace));0==c.length&&(b=this.getElementsByTagNameNS(a,\n +this.gmlns,"coordinates"),0<b.length&&(c=b[0].firstChild.nodeValue,c=c.replace(this.regExes.removeSpace,""),c=c.split(",")));0==c.length&&(b=this.getElementsByTagNameNS(a,this.gmlns,"coord"),0<b.length&&(a=this.getElementsByTagNameNS(b[0],this.gmlns,"X"),b=this.getElementsByTagNameNS(b[0],this.gmlns,"Y"),0<a.length&&0<b.length&&(c=[a[0].firstChild.nodeValue,b[0].firstChild.nodeValue])));2==c.length&&(c[2]=null);return this.xy?new OpenLayers.Geometry.Point(c[0],c[1],c[2]):new OpenLayers.Geometry.Point(c[1],\n +c[0],c[2])},multipoint:function(a){var a=this.getElementsByTagNameNS(a,this.gmlns,"Point"),b=[];if(0<a.length)for(var c,d=0;d<a.length;++d)(c=this.parseGeometry.point.apply(this,[a[d]]))&&b.push(c);return new OpenLayers.Geometry.MultiPoint(b)},linestring:function(a,b){var c,d;d=[];var e=[];c=this.getElementsByTagNameNS(a,this.gmlns,"posList");if(0<c.length){d=this.getChildValue(c[0]);d=d.replace(this.regExes.trimSpace,"");d=d.split(this.regExes.splitSpace);var f=parseInt(c[0].getAttribute("dimension")),\n +g,h,i;for(c=0;c<d.length/f;++c)g=c*f,h=d[g],i=d[g+1],g=2==f?null:d[g+2],this.xy?e.push(new OpenLayers.Geometry.Point(h,i,g)):e.push(new OpenLayers.Geometry.Point(i,h,g))}if(0==d.length&&(c=this.getElementsByTagNameNS(a,this.gmlns,"coordinates"),0<c.length)){d=this.getChildValue(c[0]);d=d.replace(this.regExes.trimSpace,"");d=d.replace(this.regExes.trimComma,",");f=d.split(this.regExes.splitSpace);for(c=0;c<f.length;++c)d=f[c].split(","),2==d.length&&(d[2]=null),this.xy?e.push(new OpenLayers.Geometry.Point(d[0],\n +d[1],d[2])):e.push(new OpenLayers.Geometry.Point(d[1],d[0],d[2]))}d=null;0!=e.length&&(d=b?new OpenLayers.Geometry.LinearRing(e):new OpenLayers.Geometry.LineString(e));return d},multilinestring:function(a){var a=this.getElementsByTagNameNS(a,this.gmlns,"LineString"),b=[];if(0<a.length)for(var c,d=0;d<a.length;++d)(c=this.parseGeometry.linestring.apply(this,[a[d]]))&&b.push(c);return new OpenLayers.Geometry.MultiLineString(b)},polygon:function(a){var a=this.getElementsByTagNameNS(a,this.gmlns,"LinearRing"),\n +b=[];if(0<a.length)for(var c,d=0;d<a.length;++d)(c=this.parseGeometry.linestring.apply(this,[a[d],!0]))&&b.push(c);return new OpenLayers.Geometry.Polygon(b)},multipolygon:function(a){var a=this.getElementsByTagNameNS(a,this.gmlns,"Polygon"),b=[];if(0<a.length)for(var c,d=0;d<a.length;++d)(c=this.parseGeometry.polygon.apply(this,[a[d]]))&&b.push(c);return new OpenLayers.Geometry.MultiPolygon(b)},envelope:function(a){var b=[],c,d,e=this.getElementsByTagNameNS(a,this.gmlns,"lowerCorner");if(0<e.length){c=\n +[];0<e.length&&(c=e[0].firstChild.nodeValue,c=c.replace(this.regExes.trimSpace,""),c=c.split(this.regExes.splitSpace));2==c.length&&(c[2]=null);var f=this.xy?new OpenLayers.Geometry.Point(c[0],c[1],c[2]):new OpenLayers.Geometry.Point(c[1],c[0],c[2])}a=this.getElementsByTagNameNS(a,this.gmlns,"upperCorner");if(0<a.length){c=[];0<a.length&&(c=a[0].firstChild.nodeValue,c=c.replace(this.regExes.trimSpace,""),c=c.split(this.regExes.splitSpace));2==c.length&&(c[2]=null);var g=this.xy?new OpenLayers.Geometry.Point(c[0],\n +c[1],c[2]):new OpenLayers.Geometry.Point(c[1],c[0],c[2])}f&&g&&(b.push(new OpenLayers.Geometry.Point(f.x,f.y)),b.push(new OpenLayers.Geometry.Point(g.x,f.y)),b.push(new OpenLayers.Geometry.Point(g.x,g.y)),b.push(new OpenLayers.Geometry.Point(f.x,g.y)),b.push(new OpenLayers.Geometry.Point(f.x,f.y)),b=new OpenLayers.Geometry.LinearRing(b),d=new OpenLayers.Geometry.Polygon([b]));return d},box:function(a){var b=this.getElementsByTagNameNS(a,this.gmlns,"coordinates"),c=a=null;0<b.length&&(b=b[0].firstChild.nodeValue,\n +b=b.split(" "),2==b.length&&(a=b[0].split(","),c=b[1].split(",")));if(null!==a&&null!==c)return new OpenLayers.Bounds(parseFloat(a[0]),parseFloat(a[1]),parseFloat(c[0]),parseFloat(c[1]))}},parseAttributes:function(a){for(var b={},a=a.firstChild,c,d,e;a;){if(1==a.nodeType){a=a.childNodes;for(c=0;c<a.length;++c)if(d=a[c],1==d.nodeType)if(e=d.childNodes,1==e.length){if(e=e[0],3==e.nodeType||4==e.nodeType)d=d.prefix?d.nodeName.split(":")[1]:d.nodeName,e=e.nodeValue.replace(this.regExes.trimSpace,""),\n +b[d]=e}else b[d.nodeName.split(":").pop()]=null;break}a=a.nextSibling}return b},write:function(a){OpenLayers.Util.isArray(a)||(a=[a]);for(var b=this.createElementNS("http://www.opengis.net/wfs","wfs:"+this.collectionName),c=0;c<a.length;c++)b.appendChild(this.createFeatureXML(a[c]));return OpenLayers.Format.XML.prototype.write.apply(this,[b])},createFeatureXML:function(a){var b=this.buildGeometryNode(a.geometry),c=this.createElementNS(this.featureNS,this.featurePrefix+":"+this.geometryName);c.appendChild(b);\n +var b=this.createElementNS(this.gmlns,"gml:"+this.featureName),d=this.createElementNS(this.featureNS,this.featurePrefix+":"+this.layerName);d.setAttribute("fid",a.fid||a.id);d.appendChild(c);for(var e in a.attributes){var c=this.createTextNode(a.attributes[e]),f=this.createElementNS(this.featureNS,this.featurePrefix+":"+e.substring(e.lastIndexOf(":")+1));f.appendChild(c);d.appendChild(f)}b.appendChild(d);return b},buildGeometryNode:function(a){this.externalProjection&&this.internalProjection&&(a=\n +a.clone(),a.transform(this.internalProjection,this.externalProjection));var b=a.CLASS_NAME;return this.buildGeometry[b.substring(b.lastIndexOf(".")+1).toLowerCase()].apply(this,[a])},buildGeometry:{point:function(a){var b=this.createElementNS(this.gmlns,"gml:Point");b.appendChild(this.buildCoordinatesNode(a));return b},multipoint:function(a){for(var b=this.createElementNS(this.gmlns,"gml:MultiPoint"),a=a.components,c,d,e=0;e<a.length;e++)c=this.createElementNS(this.gmlns,"gml:pointMember"),d=this.buildGeometry.point.apply(this,\n +[a[e]]),c.appendChild(d),b.appendChild(c);return b},linestring:function(a){var b=this.createElementNS(this.gmlns,"gml:LineString");b.appendChild(this.buildCoordinatesNode(a));return b},multilinestring:function(a){for(var b=this.createElementNS(this.gmlns,"gml:MultiLineString"),a=a.components,c,d,e=0;e<a.length;++e)c=this.createElementNS(this.gmlns,"gml:lineStringMember"),d=this.buildGeometry.linestring.apply(this,[a[e]]),c.appendChild(d),b.appendChild(c);return b},linearring:function(a){var b=this.createElementNS(this.gmlns,\n +"gml:LinearRing");b.appendChild(this.buildCoordinatesNode(a));return b},polygon:function(a){for(var b=this.createElementNS(this.gmlns,"gml:Polygon"),a=a.components,c,d,e=0;e<a.length;++e)c=0==e?"outerBoundaryIs":"innerBoundaryIs",c=this.createElementNS(this.gmlns,"gml:"+c),d=this.buildGeometry.linearring.apply(this,[a[e]]),c.appendChild(d),b.appendChild(c);return b},multipolygon:function(a){for(var b=this.createElementNS(this.gmlns,"gml:MultiPolygon"),a=a.components,c,d,e=0;e<a.length;++e)c=this.createElementNS(this.gmlns,\n +"gml:polygonMember"),d=this.buildGeometry.polygon.apply(this,[a[e]]),c.appendChild(d),b.appendChild(c);return b},bounds:function(a){var b=this.createElementNS(this.gmlns,"gml:Box");b.appendChild(this.buildCoordinatesNode(a));return b}},buildCoordinatesNode:function(a){var b=this.createElementNS(this.gmlns,"gml:coordinates");b.setAttribute("decimal",".");b.setAttribute("cs",",");b.setAttribute("ts"," ");var c=[];if(a instanceof OpenLayers.Bounds)c.push(a.left+","+a.bottom),c.push(a.right+","+a.top);\n +else for(var a=a.components?a.components:[a],d=0;d<a.length;d++)c.push(a[d].x+","+a[d].y);c=this.createTextNode(c.join(" "));b.appendChild(c);return b},CLASS_NAME:"OpenLayers.Format.GML"});OpenLayers.Format.GML||(OpenLayers.Format.GML={});\n +OpenLayers.Format.GML.Base=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{gml:"http://www.opengis.net/gml",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance",wfs:"http://www.opengis.net/wfs"},defaultPrefix:"gml",schemaLocation:null,featureType:null,featureNS:null,geometryName:"geometry",extractAttributes:!0,srsName:null,xy:!0,geometryTypes:null,singleFeatureType:null,regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g,featureMember:/^(.*:)?featureMembers?$/},\n +initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);this.setGeometryTypes();a&&a.featureNS&&this.setNamespace("feature",a.featureNS);this.singleFeatureType=!a||typeof a.featureType==="string"},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));if(a&&a.nodeType==9)a=a.documentElement;var b=[];this.readNode(a,{features:b},true);if(b.length==0){var c=this.getElementsByTagNameNS(a,this.namespaces.gml,"featureMember");if(c.length)for(var a=\n +0,d=c.length;a<d;++a)this.readNode(c[a],{features:b},true);else{c=this.getElementsByTagNameNS(a,this.namespaces.gml,"featureMembers");c.length&&this.readNode(c[0],{features:b},true)}}return b},readNode:function(a,b,c){if(c===true&&this.autoConfig===true){this.featureType=null;delete this.namespaceAlias[this.featureNS];delete this.namespaces.feature;this.featureNS=null}if(!this.featureNS&&!(a.prefix in this.namespaces)&&a.parentNode.namespaceURI==this.namespaces.gml&&this.regExes.featureMember.test(a.parentNode.nodeName)){this.featureType=\n +a.nodeName.split(":").pop();this.setNamespace("feature",a.namespaceURI);this.featureNS=a.namespaceURI;this.autoConfig=true}return OpenLayers.Format.XML.prototype.readNode.apply(this,[a,b])},readers:{gml:{featureMember:function(a,b){this.readChildNodes(a,b)},featureMembers:function(a,b){this.readChildNodes(a,b)},name:function(a,b){b.name=this.getChildValue(a)},boundedBy:function(a,b){var c={};this.readChildNodes(a,c);if(c.components&&c.components.length>0)b.bounds=c.components[0]},Point:function(a,\n +b){var c={points:[]};this.readChildNodes(a,c);if(!b.components)b.components=[];b.components.push(c.points[0])},coordinates:function(a,b){for(var c=this.getChildValue(a).replace(this.regExes.trimSpace,""),c=c.replace(this.regExes.trimComma,","),c=c.split(this.regExes.splitSpace),d,e=c.length,f=Array(e),g=0;g<e;++g){d=c[g].split(",");f[g]=this.xy?new OpenLayers.Geometry.Point(d[0],d[1],d[2]):new OpenLayers.Geometry.Point(d[1],d[0],d[2])}b.points=f},coord:function(a,b){var c={};this.readChildNodes(a,\n +c);if(!b.points)b.points=[];b.points.push(new OpenLayers.Geometry.Point(c.x,c.y,c.z))},X:function(a,b){b.x=this.getChildValue(a)},Y:function(a,b){b.y=this.getChildValue(a)},Z:function(a,b){b.z=this.getChildValue(a)},MultiPoint:function(a,b){var c={components:[]};this.readChildNodes(a,c);b.components=[new OpenLayers.Geometry.MultiPoint(c.components)]},pointMember:function(a,b){this.readChildNodes(a,b)},LineString:function(a,b){var c={};this.readChildNodes(a,c);if(!b.components)b.components=[];b.components.push(new OpenLayers.Geometry.LineString(c.points))},\n +MultiLineString:function(a,b){var c={components:[]};this.readChildNodes(a,c);b.components=[new OpenLayers.Geometry.MultiLineString(c.components)]},lineStringMember:function(a,b){this.readChildNodes(a,b)},Polygon:function(a,b){var c={outer:null,inner:[]};this.readChildNodes(a,c);c.inner.unshift(c.outer);if(!b.components)b.components=[];b.components.push(new OpenLayers.Geometry.Polygon(c.inner))},LinearRing:function(a,b){var c={};this.readChildNodes(a,c);b.components=[new OpenLayers.Geometry.LinearRing(c.points)]},\n +MultiPolygon:function(a,b){var c={components:[]};this.readChildNodes(a,c);b.components=[new OpenLayers.Geometry.MultiPolygon(c.components)]},polygonMember:function(a,b){this.readChildNodes(a,b)},GeometryCollection:function(a,b){var c={components:[]};this.readChildNodes(a,c);b.components=[new OpenLayers.Geometry.Collection(c.components)]},geometryMember:function(a,b){this.readChildNodes(a,b)}},feature:{"*":function(a,b){var c,d=a.localName||a.nodeName.split(":").pop();b.features?!this.singleFeatureType&&\n +OpenLayers.Util.indexOf(this.featureType,d)!==-1?c="_typeName":d===this.featureType&&(c="_typeName"):a.childNodes.length==0||a.childNodes.length==1&&a.firstChild.nodeType==3?this.extractAttributes&&(c="_attribute"):c="_geometry";c&&this.readers.feature[c].apply(this,[a,b])},_typeName:function(a,b){var c={components:[],attributes:{}};this.readChildNodes(a,c);if(c.name)c.attributes.name=c.name;var d=new OpenLayers.Feature.Vector(c.components[0],c.attributes);if(!this.singleFeatureType){d.type=a.nodeName.split(":").pop();\n +d.namespace=a.namespaceURI}var e=a.getAttribute("fid")||this.getAttributeNS(a,this.namespaces.gml,"id");if(e)d.fid=e;this.internalProjection&&(this.externalProjection&&d.geometry)&&d.geometry.transform(this.externalProjection,this.internalProjection);if(c.bounds)d.bounds=c.bounds;b.features.push(d)},_geometry:function(a,b){if(!this.geometryName)this.geometryName=a.nodeName.split(":").pop();this.readChildNodes(a,b)},_attribute:function(a,b){var c=a.localName||a.nodeName.split(":").pop(),d=this.getChildValue(a);\n +b.attributes[c]=d}},wfs:{FeatureCollection:function(a,b){this.readChildNodes(a,b)}}},write:function(a){a=this.writeNode("gml:"+(OpenLayers.Util.isArray(a)?"featureMembers":"featureMember"),a);this.setAttributeNS(a,this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{gml:{featureMember:function(a){var b=this.createElementNSPlus("gml:featureMember");this.writeNode("feature:_typeName",a,b);return b},MultiPoint:function(a){for(var b=\n +this.createElementNSPlus("gml:MultiPoint"),a=a.components||[a],c=0,d=a.length;c<d;++c)this.writeNode("pointMember",a[c],b);return b},pointMember:function(a){var b=this.createElementNSPlus("gml:pointMember");this.writeNode("Point",a,b);return b},MultiLineString:function(a){for(var b=this.createElementNSPlus("gml:MultiLineString"),a=a.components||[a],c=0,d=a.length;c<d;++c)this.writeNode("lineStringMember",a[c],b);return b},lineStringMember:function(a){var b=this.createElementNSPlus("gml:lineStringMember");\n +this.writeNode("LineString",a,b);return b},MultiPolygon:function(a){for(var b=this.createElementNSPlus("gml:MultiPolygon"),a=a.components||[a],c=0,d=a.length;c<d;++c)this.writeNode("polygonMember",a[c],b);return b},polygonMember:function(a){var b=this.createElementNSPlus("gml:polygonMember");this.writeNode("Polygon",a,b);return b},GeometryCollection:function(a){for(var b=this.createElementNSPlus("gml:GeometryCollection"),c=0,d=a.components.length;c<d;++c)this.writeNode("geometryMember",a.components[c],\n +b);return b},geometryMember:function(a){var b=this.createElementNSPlus("gml:geometryMember"),a=this.writeNode("feature:_geometry",a);b.appendChild(a.firstChild);return b}},feature:{_typeName:function(a){var b=this.createElementNSPlus("feature:"+this.featureType,{attributes:{fid:a.fid}});a.geometry&&this.writeNode("feature:_geometry",a.geometry,b);for(var c in a.attributes){var d=a.attributes[c];d!=null&&this.writeNode("feature:_attribute",{name:c,value:d},b)}return b},_geometry:function(a){this.externalProjection&&\n +this.internalProjection&&(a=a.clone().transform(this.internalProjection,this.externalProjection));var b=this.createElementNSPlus("feature:"+this.geometryName),a=this.writeNode("gml:"+this.geometryTypes[a.CLASS_NAME],a,b);this.srsName&&a.setAttribute("srsName",this.srsName);return b},_attribute:function(a){return this.createElementNSPlus("feature:"+a.name,{value:a.value})}},wfs:{FeatureCollection:function(a){for(var b=this.createElementNSPlus("wfs:FeatureCollection"),c=0,d=a.length;c<d;++c)this.writeNode("gml:featureMember",\n +a[c],b);return b}}},setGeometryTypes:function(){this.geometryTypes={"OpenLayers.Geometry.Point":"Point","OpenLayers.Geometry.MultiPoint":"MultiPoint","OpenLayers.Geometry.LineString":"LineString","OpenLayers.Geometry.MultiLineString":"MultiLineString","OpenLayers.Geometry.Polygon":"Polygon","OpenLayers.Geometry.MultiPolygon":"MultiPolygon","OpenLayers.Geometry.Collection":"GeometryCollection"}},CLASS_NAME:"OpenLayers.Format.GML.Base"});OpenLayers.Format.GML.v3=OpenLayers.Class(OpenLayers.Format.GML.Base,{schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd",curve:!1,multiCurve:!0,surface:!1,multiSurface:!0,initialize:function(a){OpenLayers.Format.GML.Base.prototype.initialize.apply(this,[a])},readers:{gml:OpenLayers.Util.applyDefaults({featureMembers:function(a,b){this.readChildNodes(a,b)},Curve:function(a,b){var c={points:[]};this.readChildNodes(a,c);b.components||\n +(b.components=[]);b.components.push(new OpenLayers.Geometry.LineString(c.points))},segments:function(a,b){this.readChildNodes(a,b)},LineStringSegment:function(a,b){var c={};this.readChildNodes(a,c);c.points&&Array.prototype.push.apply(b.points,c.points)},pos:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,"").split(this.regExes.splitSpace),c=this.xy?new OpenLayers.Geometry.Point(c[0],c[1],c[2]):new OpenLayers.Geometry.Point(c[1],c[0],c[2]);b.points=[c]},posList:function(a,\n +b){for(var c=this.getChildValue(a).replace(this.regExes.trimSpace,"").split(this.regExes.splitSpace),d=parseInt(a.getAttribute("dimension"))||2,e,f,g,h=Array(c.length/d),i=0,j=c.length;i<j;i+=d)e=c[i],f=c[i+1],g=2==d?void 0:c[i+2],h[i/d]=this.xy?new OpenLayers.Geometry.Point(e,f,g):new OpenLayers.Geometry.Point(f,e,g);b.points=h},Surface:function(a,b){this.readChildNodes(a,b)},patches:function(a,b){this.readChildNodes(a,b)},PolygonPatch:function(a,b){this.readers.gml.Polygon.apply(this,[a,b])},exterior:function(a,\n +b){var c={};this.readChildNodes(a,c);b.outer=c.components[0]},interior:function(a,b){var c={};this.readChildNodes(a,c);b.inner.push(c.components[0])},MultiCurve:function(a,b){var c={components:[]};this.readChildNodes(a,c);0<c.components.length&&(b.components=[new OpenLayers.Geometry.MultiLineString(c.components)])},curveMember:function(a,b){this.readChildNodes(a,b)},MultiSurface:function(a,b){var c={components:[]};this.readChildNodes(a,c);0<c.components.length&&(b.components=[new OpenLayers.Geometry.MultiPolygon(c.components)])},\n +surfaceMember:function(a,b){this.readChildNodes(a,b)},surfaceMembers:function(a,b){this.readChildNodes(a,b)},pointMembers:function(a,b){this.readChildNodes(a,b)},lineStringMembers:function(a,b){this.readChildNodes(a,b)},polygonMembers:function(a,b){this.readChildNodes(a,b)},geometryMembers:function(a,b){this.readChildNodes(a,b)},Envelope:function(a,b){var c={points:Array(2)};this.readChildNodes(a,c);b.components||(b.components=[]);var d=c.points[0],c=c.points[1];b.components.push(new OpenLayers.Bounds(d.x,\n +d.y,c.x,c.y))},lowerCorner:function(a,b){var c={};this.readers.gml.pos.apply(this,[a,c]);b.points[0]=c.points[0]},upperCorner:function(a,b){var c={};this.readers.gml.pos.apply(this,[a,c]);b.points[1]=c.points[0]}},OpenLayers.Format.GML.Base.prototype.readers.gml),feature:OpenLayers.Format.GML.Base.prototype.readers.feature,wfs:OpenLayers.Format.GML.Base.prototype.readers.wfs},write:function(a){a=this.writeNode("gml:"+(OpenLayers.Util.isArray(a)?"featureMembers":"featureMember"),a);this.setAttributeNS(a,\n +this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{gml:OpenLayers.Util.applyDefaults({featureMembers:function(a){for(var b=this.createElementNSPlus("gml:featureMembers"),c=0,d=a.length;c<d;++c)this.writeNode("feature:_typeName",a[c],b);return b},Point:function(a){var b=this.createElementNSPlus("gml:Point");this.writeNode("pos",a,b);return b},pos:function(a){return this.createElementNSPlus("gml:pos",{value:this.xy?a.x+\n +" "+a.y:a.y+" "+a.x})},LineString:function(a){var b=this.createElementNSPlus("gml:LineString");this.writeNode("posList",a.components,b);return b},Curve:function(a){var b=this.createElementNSPlus("gml:Curve");this.writeNode("segments",a,b);return b},segments:function(a){var b=this.createElementNSPlus("gml:segments");this.writeNode("LineStringSegment",a,b);return b},LineStringSegment:function(a){var b=this.createElementNSPlus("gml:LineStringSegment");this.writeNode("posList",a.components,b);return b},\n +posList:function(a){for(var b=a.length,c=Array(b),d,e=0;e<b;++e)d=a[e],c[e]=this.xy?d.x+" "+d.y:d.y+" "+d.x;return this.createElementNSPlus("gml:posList",{value:c.join(" ")})},Surface:function(a){var b=this.createElementNSPlus("gml:Surface");this.writeNode("patches",a,b);return b},patches:function(a){var b=this.createElementNSPlus("gml:patches");this.writeNode("PolygonPatch",a,b);return b},PolygonPatch:function(a){var b=this.createElementNSPlus("gml:PolygonPatch",{attributes:{interpolation:"planar"}});\n +this.writeNode("exterior",a.components[0],b);for(var c=1,d=a.components.length;c<d;++c)this.writeNode("interior",a.components[c],b);return b},Polygon:function(a){var b=this.createElementNSPlus("gml:Polygon");this.writeNode("exterior",a.components[0],b);for(var c=1,d=a.components.length;c<d;++c)this.writeNode("interior",a.components[c],b);return b},exterior:function(a){var b=this.createElementNSPlus("gml:exterior");this.writeNode("LinearRing",a,b);return b},interior:function(a){var b=this.createElementNSPlus("gml:interior");\n +this.writeNode("LinearRing",a,b);return b},LinearRing:function(a){var b=this.createElementNSPlus("gml:LinearRing");this.writeNode("posList",a.components,b);return b},MultiCurve:function(a){for(var b=this.createElementNSPlus("gml:MultiCurve"),a=a.components||[a],c=0,d=a.length;c<d;++c)this.writeNode("curveMember",a[c],b);return b},curveMember:function(a){var b=this.createElementNSPlus("gml:curveMember");this.curve?this.writeNode("Curve",a,b):this.writeNode("LineString",a,b);return b},MultiSurface:function(a){for(var b=\n +this.createElementNSPlus("gml:MultiSurface"),a=a.components||[a],c=0,d=a.length;c<d;++c)this.writeNode("surfaceMember",a[c],b);return b},surfaceMember:function(a){var b=this.createElementNSPlus("gml:surfaceMember");this.surface?this.writeNode("Surface",a,b):this.writeNode("Polygon",a,b);return b},Envelope:function(a){var b=this.createElementNSPlus("gml:Envelope");this.writeNode("lowerCorner",a,b);this.writeNode("upperCorner",a,b);this.srsName&&b.setAttribute("srsName",this.srsName);return b},lowerCorner:function(a){return this.createElementNSPlus("gml:lowerCorner",\n +{value:this.xy?a.left+" "+a.bottom:a.bottom+" "+a.left})},upperCorner:function(a){return this.createElementNSPlus("gml:upperCorner",{value:this.xy?a.right+" "+a.top:a.top+" "+a.right})}},OpenLayers.Format.GML.Base.prototype.writers.gml),feature:OpenLayers.Format.GML.Base.prototype.writers.feature,wfs:OpenLayers.Format.GML.Base.prototype.writers.wfs},setGeometryTypes:function(){this.geometryTypes={"OpenLayers.Geometry.Point":"Point","OpenLayers.Geometry.MultiPoint":"MultiPoint","OpenLayers.Geometry.LineString":!0===\n +this.curve?"Curve":"LineString","OpenLayers.Geometry.MultiLineString":!1===this.multiCurve?"MultiLineString":"MultiCurve","OpenLayers.Geometry.Polygon":!0===this.surface?"Surface":"Polygon","OpenLayers.Geometry.MultiPolygon":!1===this.multiSurface?"MultiPolygon":"MultiSurface","OpenLayers.Geometry.Collection":"GeometryCollection"}},CLASS_NAME:"OpenLayers.Format.GML.v3"});OpenLayers.Format.Filter.v1_1_0=OpenLayers.Class(OpenLayers.Format.GML.v3,OpenLayers.Format.Filter.v1,{VERSION:"1.1.0",schemaLocation:"http://www.opengis.net/ogc/filter/1.1.0/filter.xsd",initialize:function(a){OpenLayers.Format.GML.v3.prototype.initialize.apply(this,[a])},readers:{ogc:OpenLayers.Util.applyDefaults({PropertyIsEqualTo:function(a,b){var c=a.getAttribute("matchCase"),c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.EQUAL_TO,matchCase:!("false"===c||"0"===c)});this.readChildNodes(a,\n +c);b.filters.push(c)},PropertyIsNotEqualTo:function(a,b){var c=a.getAttribute("matchCase"),c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.NOT_EQUAL_TO,matchCase:!("false"===c||"0"===c)});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsLike:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.LIKE});this.readChildNodes(a,c);var d=a.getAttribute("wildCard"),e=a.getAttribute("singleChar"),f=a.getAttribute("escapeChar");c.value2regex(d,e,\n +f);b.filters.push(c)}},OpenLayers.Format.Filter.v1.prototype.readers.ogc),gml:OpenLayers.Format.GML.v3.prototype.readers.gml,feature:OpenLayers.Format.GML.v3.prototype.readers.feature},writers:{ogc:OpenLayers.Util.applyDefaults({PropertyIsEqualTo:function(a){var b=this.createElementNSPlus("ogc:PropertyIsEqualTo",{attributes:{matchCase:a.matchCase}});this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsNotEqualTo:function(a){var b=this.createElementNSPlus("ogc:PropertyIsNotEqualTo",\n +{attributes:{matchCase:a.matchCase}});this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsLike:function(a){var b=this.createElementNSPlus("ogc:PropertyIsLike",{attributes:{matchCase:a.matchCase,wildCard:"*",singleChar:".",escapeChar:"!"}});this.writeNode("PropertyName",a,b);this.writeNode("Literal",a.regex2value(),b);return b},BBOX:function(a){var b=this.createElementNSPlus("ogc:BBOX");a.property&&this.writeNode("PropertyName",a,b);var c=this.writeNode("gml:Envelope",\n +a.value);a.projection&&c.setAttribute("srsName",a.projection);b.appendChild(c);return b},SortBy:function(a){for(var b=this.createElementNSPlus("ogc:SortBy"),c=0,d=a.length;c<d;c++)this.writeNode("ogc:SortProperty",a[c],b);return b},SortProperty:function(a){var b=this.createElementNSPlus("ogc:SortProperty");this.writeNode("ogc:PropertyName",a,b);this.writeNode("ogc:SortOrder","DESC"==a.order?"DESC":"ASC",b);return b},SortOrder:function(a){return this.createElementNSPlus("ogc:SortOrder",{value:a})}},\n +OpenLayers.Format.Filter.v1.prototype.writers.ogc),gml:OpenLayers.Format.GML.v3.prototype.writers.gml,feature:OpenLayers.Format.GML.v3.prototype.writers.feature},writeSpatial:function(a,b){var c=this.createElementNSPlus("ogc:"+b);this.writeNode("PropertyName",a,c);if(a.value instanceof OpenLayers.Filter.Function)this.writeNode("Function",a.value,c);else{var d;d=a.value instanceof OpenLayers.Geometry?this.writeNode("feature:_geometry",a.value).firstChild:this.writeNode("gml:Envelope",a.value);a.projection&&\n +d.setAttribute("srsName",a.projection);c.appendChild(d)}return c},CLASS_NAME:"OpenLayers.Format.Filter.v1_1_0"});OpenLayers.Format.OWSCommon=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.0.0",getVersion:function(a){var b=this.version;b||((a=a.getAttribute("xmlns:ows"))&&"1.1"===a.substring(a.lastIndexOf("/")+1)&&(b="1.1.0"),b||(b=this.defaultVersion));return b},CLASS_NAME:"OpenLayers.Format.OWSCommon"});OpenLayers.Format.OWSCommon.v1=OpenLayers.Class(OpenLayers.Format.XML,{regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},read:function(a,b){OpenLayers.Util.applyDefaults(b,this.options);var c={};this.readChildNodes(a,c);return c},readers:{ows:{Exception:function(a,b){var c={code:a.getAttribute("exceptionCode"),locator:a.getAttribute("locator"),texts:[]};b.exceptions.push(c);this.readChildNodes(a,c)},ExceptionText:function(a,b){var c=this.getChildValue(a);b.texts.push(c)},\n +ServiceIdentification:function(a,b){b.serviceIdentification={};this.readChildNodes(a,b.serviceIdentification)},Title:function(a,b){b.title=this.getChildValue(a)},Abstract:function(a,b){b["abstract"]=this.getChildValue(a)},Keywords:function(a,b){b.keywords={};this.readChildNodes(a,b.keywords)},Keyword:function(a,b){b[this.getChildValue(a)]=!0},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:this.getChildValue(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=\n +this.getChildValue(a)},Fees:function(a,b){b.fees=this.getChildValue(a)},AccessConstraints:function(a,b){b.accessConstraints=this.getChildValue(a)},ServiceProvider:function(a,b){b.serviceProvider={};this.readChildNodes(a,b.serviceProvider)},ProviderName:function(a,b){b.providerName=this.getChildValue(a)},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,this.namespaces.xlink,"href")},ServiceContact:function(a,b){b.serviceContact={};this.readChildNodes(a,b.serviceContact)},IndividualName:function(a,\n +b){b.individualName=this.getChildValue(a)},PositionName:function(a,b){b.positionName=this.getChildValue(a)},ContactInfo:function(a,b){b.contactInfo={};this.readChildNodes(a,b.contactInfo)},Phone:function(a,b){b.phone={};this.readChildNodes(a,b.phone)},Voice:function(a,b){b.voice=this.getChildValue(a)},Address:function(a,b){b.address={};this.readChildNodes(a,b.address)},DeliveryPoint:function(a,b){b.deliveryPoint=this.getChildValue(a)},City:function(a,b){b.city=this.getChildValue(a)},AdministrativeArea:function(a,\n +b){b.administrativeArea=this.getChildValue(a)},PostalCode:function(a,b){b.postalCode=this.getChildValue(a)},Country:function(a,b){b.country=this.getChildValue(a)},ElectronicMailAddress:function(a,b){b.electronicMailAddress=this.getChildValue(a)},Role:function(a,b){b.role=this.getChildValue(a)},OperationsMetadata:function(a,b){b.operationsMetadata={};this.readChildNodes(a,b.operationsMetadata)},Operation:function(a,b){var c=a.getAttribute("name");b[c]={};this.readChildNodes(a,b[c])},DCP:function(a,\n +b){b.dcp={};this.readChildNodes(a,b.dcp)},HTTP:function(a,b){b.http={};this.readChildNodes(a,b.http)},Get:function(a,b){b.get||(b.get=[]);var c={url:this.getAttributeNS(a,this.namespaces.xlink,"href")};this.readChildNodes(a,c);b.get.push(c)},Post:function(a,b){b.post||(b.post=[]);var c={url:this.getAttributeNS(a,this.namespaces.xlink,"href")};this.readChildNodes(a,c);b.post.push(c)},Parameter:function(a,b){b.parameters||(b.parameters={});var c=a.getAttribute("name");b.parameters[c]={};this.readChildNodes(a,\n +b.parameters[c])},Constraint:function(a,b){b.constraints||(b.constraints={});var c=a.getAttribute("name");b.constraints[c]={};this.readChildNodes(a,b.constraints[c])},Value:function(a,b){b[this.getChildValue(a)]=!0},OutputFormat:function(a,b){b.formats.push({value:this.getChildValue(a)});this.readChildNodes(a,b)},WGS84BoundingBox:function(a,b){var c={};c.crs=a.getAttribute("crs");b.BoundingBox?b.BoundingBox.push(c):(b.projection=c.crs,c=b);this.readChildNodes(a,c)},BoundingBox:function(a,b){this.readers.ows.WGS84BoundingBox.apply(this,\n +[a,b])},LowerCorner:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,""),c=c.replace(this.regExes.trimComma,","),c=c.split(this.regExes.splitSpace);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,""),c=c.replace(this.regExes.trimComma,","),c=c.split(this.regExes.splitSpace);b.right=c[0];b.top=c[1];b.bounds=new OpenLayers.Bounds(b.left,b.bottom,b.right,b.top);delete b.left;delete b.bottom;delete b.right;delete b.top},\n +Language:function(a,b){b.language=this.getChildValue(a)}}},writers:{ows:{BoundingBox:function(a){var b=this.createElementNSPlus("ows:BoundingBox",{attributes:{crs:a.projection}});this.writeNode("ows:LowerCorner",a,b);this.writeNode("ows:UpperCorner",a,b);return b},LowerCorner:function(a){return this.createElementNSPlus("ows:LowerCorner",{value:a.bounds.left+" "+a.bounds.bottom})},UpperCorner:function(a){return this.createElementNSPlus("ows:UpperCorner",{value:a.bounds.right+" "+a.bounds.top})},Identifier:function(a){return this.createElementNSPlus("ows:Identifier",\n +{value:a})},Title:function(a){return this.createElementNSPlus("ows:Title",{value:a})},Abstract:function(a){return this.createElementNSPlus("ows:Abstract",{value:a})},OutputFormat:function(a){return this.createElementNSPlus("ows:OutputFormat",{value:a})}}},CLASS_NAME:"OpenLayers.Format.OWSCommon.v1"});OpenLayers.Format.OWSCommon.v1_0_0=OpenLayers.Class(OpenLayers.Format.OWSCommon.v1,{namespaces:{ows:"http://www.opengis.net/ows",xlink:"http://www.w3.org/1999/xlink"},readers:{ows:OpenLayers.Util.applyDefaults({ExceptionReport:function(a,b){b.success=!1;b.exceptionReport={version:a.getAttribute("version"),language:a.getAttribute("language"),exceptions:[]};this.readChildNodes(a,b.exceptionReport)}},OpenLayers.Format.OWSCommon.v1.prototype.readers.ows)},writers:{ows:OpenLayers.Format.OWSCommon.v1.prototype.writers.ows},\n +CLASS_NAME:"OpenLayers.Format.OWSCommon.v1_0_0"});OpenLayers.Format.WFST.v1_1_0=OpenLayers.Class(OpenLayers.Format.Filter.v1_1_0,OpenLayers.Format.WFST.v1,{version:"1.1.0",schemaLocations:{wfs:"http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"},initialize:function(a){OpenLayers.Format.Filter.v1_1_0.prototype.initialize.apply(this,[a]);OpenLayers.Format.WFST.v1.prototype.initialize.apply(this,[a])},readNode:function(a,b){return OpenLayers.Format.GML.v3.prototype.readNode.apply(this,[a,b])},readers:{wfs:OpenLayers.Util.applyDefaults({FeatureCollection:function(a,\n +b){b.numberOfFeatures=parseInt(a.getAttribute("numberOfFeatures"));OpenLayers.Format.WFST.v1.prototype.readers.wfs.FeatureCollection.apply(this,arguments)},TransactionResponse:function(a,b){b.insertIds=[];b.success=!1;this.readChildNodes(a,b)},TransactionSummary:function(a,b){b.success=!0},InsertResults:function(a,b){this.readChildNodes(a,b)},Feature:function(a,b){var c={fids:[]};this.readChildNodes(a,c);b.insertIds.push(c.fids[0])}},OpenLayers.Format.WFST.v1.prototype.readers.wfs),gml:OpenLayers.Format.GML.v3.prototype.readers.gml,\n +feature:OpenLayers.Format.GML.v3.prototype.readers.feature,ogc:OpenLayers.Format.Filter.v1_1_0.prototype.readers.ogc,ows:OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers.ows},writers:{wfs:OpenLayers.Util.applyDefaults({GetFeature:function(a){var b=OpenLayers.Format.WFST.v1.prototype.writers.wfs.GetFeature.apply(this,arguments);a&&this.setAttributes(b,{resultType:a.resultType,startIndex:a.startIndex,count:a.count});return b},Query:function(a){var a=OpenLayers.Util.extend({featureNS:this.featureNS,\n +featurePrefix:this.featurePrefix,featureType:this.featureType,srsName:this.srsName},a),b=a.featurePrefix,c=this.createElementNSPlus("wfs:Query",{attributes:{typeName:(b?b+":":"")+a.featureType,srsName:a.srsName}});a.featureNS&&c.setAttribute("xmlns:"+b,a.featureNS);if(a.propertyNames)for(var b=0,d=a.propertyNames.length;b<d;b++)this.writeNode("wfs:PropertyName",{property:a.propertyNames[b]},c);a.filter&&(OpenLayers.Format.WFST.v1_1_0.prototype.setFilterProperty.call(this,a.filter),this.writeNode("ogc:Filter",\n +a.filter,c));return c},PropertyName:function(a){return this.createElementNSPlus("wfs:PropertyName",{value:a.property})}},OpenLayers.Format.WFST.v1.prototype.writers.wfs),gml:OpenLayers.Format.GML.v3.prototype.writers.gml,feature:OpenLayers.Format.GML.v3.prototype.writers.feature,ogc:OpenLayers.Format.Filter.v1_1_0.prototype.writers.ogc},CLASS_NAME:"OpenLayers.Format.WFST.v1_1_0"});OpenLayers.Protocol=OpenLayers.Class({format:null,options:null,autoDestroy:!0,defaultFilter:null,initialize:function(a){a=a||{};OpenLayers.Util.extend(this,a);this.options=a},mergeWithDefaultFilter:function(a){return a&&this.defaultFilter?new OpenLayers.Filter.Logical({type:OpenLayers.Filter.Logical.AND,filters:[this.defaultFilter,a]}):a||this.defaultFilter||void 0},destroy:function(){this.format=this.options=null},read:function(a){a=a||{};a.filter=this.mergeWithDefaultFilter(a.filter)},create:function(){},\n +update:function(){},"delete":function(){},commit:function(){},abort:function(){},createCallback:function(a,b,c){return OpenLayers.Function.bind(function(){a.apply(this,[b,c])},this)},CLASS_NAME:"OpenLayers.Protocol"});OpenLayers.Protocol.Response=OpenLayers.Class({code:null,requestType:null,last:!0,features:null,data:null,reqFeatures:null,priv:null,error:null,initialize:function(a){OpenLayers.Util.extend(this,a)},success:function(){return 0<this.code},CLASS_NAME:"OpenLayers.Protocol.Response"});\n +OpenLayers.Protocol.Response.SUCCESS=1;OpenLayers.Protocol.Response.FAILURE=0;OpenLayers.Format.JSON=OpenLayers.Class(OpenLayers.Format,{indent:" ",space:" ",newline:"\\n",level:0,pretty:!1,nativeJSON:function(){return!(!window.JSON||!("function"==typeof JSON.parse&&"function"==typeof JSON.stringify))}(),read:function(a,b){var c;if(this.nativeJSON)c=JSON.parse(a,b);else try{if(/^[\\],:{}\\s]*$/.test(a.replace(/\\\\["\\\\\\/bfnrtu]/g,"@").replace(/"[^"\\\\\\n\\r]*"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,"]").replace(/(?:^|:|,)(?:\\s*\\[)+/g,""))&&(c=eval("("+a+")"),"function"===\n +typeof b)){var d=function(a,c){if(c&&"object"===typeof c)for(var e in c)c.hasOwnProperty(e)&&(c[e]=d(e,c[e]));return b(a,c)};c=d("",c)}}catch(e){}this.keepData&&(this.data=c);return c},write:function(a,b){this.pretty=!!b;var c=null,d=typeof a;if(this.serialize[d])try{c=!this.pretty&&this.nativeJSON?JSON.stringify(a):this.serialize[d].apply(this,[a])}catch(e){OpenLayers.Console.error("Trouble serializing: "+e)}return c},writeIndent:function(){var a=[];if(this.pretty)for(var b=0;b<this.level;++b)a.push(this.indent);\n +return a.join("")},writeNewline:function(){return this.pretty?this.newline:""},writeSpace:function(){return this.pretty?this.space:""},serialize:{object:function(a){if(null==a)return"null";if(a.constructor==Date)return this.serialize.date.apply(this,[a]);if(a.constructor==Array)return this.serialize.array.apply(this,[a]);var b=["{"];this.level+=1;var c,d,e,f=!1;for(c in a)a.hasOwnProperty(c)&&(d=OpenLayers.Format.JSON.prototype.write.apply(this,[c,this.pretty]),e=OpenLayers.Format.JSON.prototype.write.apply(this,\n +[a[c],this.pretty]),null!=d&&null!=e&&(f&&b.push(","),b.push(this.writeNewline(),this.writeIndent(),d,":",this.writeSpace(),e),f=!0));this.level-=1;b.push(this.writeNewline(),this.writeIndent(),"}");return b.join("")},array:function(a){var b,c=["["];this.level+=1;for(var d=0,e=a.length;d<e;++d)b=OpenLayers.Format.JSON.prototype.write.apply(this,[a[d],this.pretty]),null!=b&&(0<d&&c.push(","),c.push(this.writeNewline(),this.writeIndent(),b));this.level-=1;c.push(this.writeNewline(),this.writeIndent(),\n +"]");return c.join("")},string:function(a){var b={"\\u0008":"\\\\b","\\t":"\\\\t","\\n":"\\\\n","\\u000c":"\\\\f","\\r":"\\\\r",\'"\':\'\\\\"\',"\\\\":"\\\\\\\\"};return/["\\\\\\x00-\\x1f]/.test(a)?\'"\'+a.replace(/([\\x00-\\x1f\\\\"])/g,function(a,d){var e=b[d];if(e)return e;e=d.charCodeAt();return"\\\\u00"+Math.floor(e/16).toString(16)+(e%16).toString(16)})+\'"\':\'"\'+a+\'"\'},number:function(a){return isFinite(a)?""+a:"null"},"boolean":function(a){return""+a},date:function(a){function b(a){return 10>a?"0"+a:a}return\'"\'+a.getFullYear()+"-"+\n +b(a.getMonth()+1)+"-"+b(a.getDate())+"T"+b(a.getHours())+":"+b(a.getMinutes())+":"+b(a.getSeconds())+\'"\'}},CLASS_NAME:"OpenLayers.Format.JSON"});OpenLayers.Format.GeoJSON=OpenLayers.Class(OpenLayers.Format.JSON,{ignoreExtraDims:!1,read:function(a,b,c){var b=b?b:"FeatureCollection",d=null,e=null;if(e="string"==typeof a?OpenLayers.Format.JSON.prototype.read.apply(this,[a,c]):a)if("string"!=typeof e.type)OpenLayers.Console.error("Bad GeoJSON - no type: "+a);else{if(this.isValidType(e,b))switch(b){case "Geometry":try{d=this.parseGeometry(e)}catch(f){OpenLayers.Console.error(f)}break;case "Feature":try{d=this.parseFeature(e),d.type="Feature"}catch(g){OpenLayers.Console.error(g)}break;\n +case "FeatureCollection":switch(d=[],e.type){case "Feature":try{d.push(this.parseFeature(e))}catch(h){d=null,OpenLayers.Console.error(h)}break;case "FeatureCollection":a=0;for(b=e.features.length;a<b;++a)try{d.push(this.parseFeature(e.features[a]))}catch(i){d=null,OpenLayers.Console.error(i)}break;default:try{var j=this.parseGeometry(e);d.push(new OpenLayers.Feature.Vector(j))}catch(k){d=null,OpenLayers.Console.error(k)}}}}else OpenLayers.Console.error("Bad JSON: "+a);return d},isValidType:function(a,\n +b){var c=!1;switch(b){case "Geometry":-1==OpenLayers.Util.indexOf("Point MultiPoint LineString MultiLineString Polygon MultiPolygon Box GeometryCollection".split(" "),a.type)?OpenLayers.Console.error("Unsupported geometry type: "+a.type):c=!0;break;case "FeatureCollection":c=!0;break;default:a.type==b?c=!0:OpenLayers.Console.error("Cannot convert types from "+a.type+" to "+b)}return c},parseFeature:function(a){var b,c,d;c=a.properties?a.properties:{};d=a.geometry&&a.geometry.bbox||a.bbox;try{b=this.parseGeometry(a.geometry)}catch(e){throw e;\n +}b=new OpenLayers.Feature.Vector(b,c);d&&(b.bounds=OpenLayers.Bounds.fromArray(d));a.id&&(b.fid=a.id);return b},parseGeometry:function(a){if(null==a)return null;var b,c=!1;if("GeometryCollection"==a.type){if(!OpenLayers.Util.isArray(a.geometries))throw"GeometryCollection must have geometries array: "+a;b=a.geometries.length;for(var c=Array(b),d=0;d<b;++d)c[d]=this.parseGeometry.apply(this,[a.geometries[d]]);b=new OpenLayers.Geometry.Collection(c);c=!0}else{if(!OpenLayers.Util.isArray(a.coordinates))throw"Geometry must have coordinates array: "+\n +a;if(!this.parseCoords[a.type.toLowerCase()])throw"Unsupported geometry type: "+a.type;try{b=this.parseCoords[a.type.toLowerCase()].apply(this,[a.coordinates])}catch(e){throw e;}}this.internalProjection&&(this.externalProjection&&!c)&&b.transform(this.externalProjection,this.internalProjection);return b},parseCoords:{point:function(a){if(!1==this.ignoreExtraDims&&2!=a.length)throw"Only 2D points are supported: "+a;return new OpenLayers.Geometry.Point(a[0],a[1])},multipoint:function(a){for(var b=[],\n +c=null,d=0,e=a.length;d<e;++d){try{c=this.parseCoords.point.apply(this,[a[d]])}catch(f){throw f;}b.push(c)}return new OpenLayers.Geometry.MultiPoint(b)},linestring:function(a){for(var b=[],c=null,d=0,e=a.length;d<e;++d){try{c=this.parseCoords.point.apply(this,[a[d]])}catch(f){throw f;}b.push(c)}return new OpenLayers.Geometry.LineString(b)},multilinestring:function(a){for(var b=[],c=null,d=0,e=a.length;d<e;++d){try{c=this.parseCoords.linestring.apply(this,[a[d]])}catch(f){throw f;}b.push(c)}return new OpenLayers.Geometry.MultiLineString(b)},\n +polygon:function(a){for(var b=[],c,d,e=0,f=a.length;e<f;++e){try{d=this.parseCoords.linestring.apply(this,[a[e]])}catch(g){throw g;}c=new OpenLayers.Geometry.LinearRing(d.components);b.push(c)}return new OpenLayers.Geometry.Polygon(b)},multipolygon:function(a){for(var b=[],c=null,d=0,e=a.length;d<e;++d){try{c=this.parseCoords.polygon.apply(this,[a[d]])}catch(f){throw f;}b.push(c)}return new OpenLayers.Geometry.MultiPolygon(b)},box:function(a){if(2!=a.length)throw"GeoJSON box coordinates must have 2 elements";\n +return new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing([new OpenLayers.Geometry.Point(a[0][0],a[0][1]),new OpenLayers.Geometry.Point(a[1][0],a[0][1]),new OpenLayers.Geometry.Point(a[1][0],a[1][1]),new OpenLayers.Geometry.Point(a[0][0],a[1][1]),new OpenLayers.Geometry.Point(a[0][0],a[0][1])])])}},write:function(a,b){var c={type:null};if(OpenLayers.Util.isArray(a)){c.type="FeatureCollection";var d=a.length;c.features=Array(d);for(var e=0;e<d;++e){var f=a[e];if(!f instanceof OpenLayers.Feature.Vector)throw"FeatureCollection only supports collections of features: "+\n +f;c.features[e]=this.extract.feature.apply(this,[f])}}else 0==a.CLASS_NAME.indexOf("OpenLayers.Geometry")?c=this.extract.geometry.apply(this,[a]):a instanceof OpenLayers.Feature.Vector&&(c=this.extract.feature.apply(this,[a]),a.layer&&a.layer.projection&&(c.crs=this.createCRSObject(a)));return OpenLayers.Format.JSON.prototype.write.apply(this,[c,b])},createCRSObject:function(a){var a=a.layer.projection.toString(),b={};a.match(/epsg:/i)&&(a=parseInt(a.substring(a.indexOf(":")+1)),b=4326==a?{type:"name",\n +properties:{name:"urn:ogc:def:crs:OGC:1.3:CRS84"}}:{type:"name",properties:{name:"EPSG:"+a}});return b},extract:{feature:function(a){var b=this.extract.geometry.apply(this,[a.geometry]),b={type:"Feature",properties:a.attributes,geometry:b};null!=a.fid&&(b.id=a.fid);return b},geometry:function(a){if(null==a)return null;this.internalProjection&&this.externalProjection&&(a=a.clone(),a.transform(this.internalProjection,this.externalProjection));var b=a.CLASS_NAME.split(".")[2],a=this.extract[b.toLowerCase()].apply(this,\n +[a]);return"Collection"==b?{type:"GeometryCollection",geometries:a}:{type:b,coordinates:a}},point:function(a){return[a.x,a.y]},multipoint:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push(this.extract.point.apply(this,[a.components[c]]));return b},linestring:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push(this.extract.point.apply(this,[a.components[c]]));return b},multilinestring:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push(this.extract.linestring.apply(this,\n +[a.components[c]]));return b},polygon:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push(this.extract.linestring.apply(this,[a.components[c]]));return b},multipolygon:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push(this.extract.polygon.apply(this,[a.components[c]]));return b},collection:function(a){for(var b=a.components.length,c=Array(b),d=0;d<b;++d)c[d]=this.extract.geometry.apply(this,[a.components[d]]);return c}},CLASS_NAME:"OpenLayers.Format.GeoJSON"});OpenLayers.Protocol.Script=OpenLayers.Class(OpenLayers.Protocol,{url:null,params:null,callback:null,callbackTemplate:"OpenLayers.Protocol.Script.registry.${id}",callbackKey:"callback",callbackPrefix:"",scope:null,format:null,pendingRequests:null,srsInBBOX:!1,initialize:function(a){a=a||{};this.params={};this.pendingRequests={};OpenLayers.Protocol.prototype.initialize.apply(this,arguments);this.format||(this.format=new OpenLayers.Format.GeoJSON);if(!this.filterToParams&&OpenLayers.Format.QueryStringFilter){var b=\n +new OpenLayers.Format.QueryStringFilter({srsInBBOX:this.srsInBBOX});this.filterToParams=function(a,d){return b.write(a,d)}}},read:function(a){OpenLayers.Protocol.prototype.read.apply(this,arguments);a=OpenLayers.Util.applyDefaults(a,this.options);a.params=OpenLayers.Util.applyDefaults(a.params,this.options.params);a.filter&&this.filterToParams&&(a.params=this.filterToParams(a.filter,a.params));var b=new OpenLayers.Protocol.Response({requestType:"read"}),c=this.createRequest(a.url,a.params,OpenLayers.Function.bind(function(c){b.data=\n +c;this.handleRead(b,a)},this));b.priv=c;return b},createRequest:function(a,b,c){var c=OpenLayers.Protocol.Script.register(c),d=OpenLayers.String.format(this.callbackTemplate,{id:c}),b=OpenLayers.Util.extend({},b);b[this.callbackKey]=this.callbackPrefix+d;a=OpenLayers.Util.urlAppend(a,OpenLayers.Util.getParameterString(b));b=document.createElement("script");b.type="text/javascript";b.src=a;b.id="OpenLayers_Protocol_Script_"+c;this.pendingRequests[b.id]=b;document.getElementsByTagName("head")[0].appendChild(b);\n +return b},destroyRequest:function(a){OpenLayers.Protocol.Script.unregister(a.id.split("_").pop());delete this.pendingRequests[a.id];a.parentNode&&a.parentNode.removeChild(a)},handleRead:function(a,b){this.handleResponse(a,b)},handleResponse:function(a,b){b.callback&&(a.data?(a.features=this.parseFeatures(a.data),a.code=OpenLayers.Protocol.Response.SUCCESS):a.code=OpenLayers.Protocol.Response.FAILURE,this.destroyRequest(a.priv),b.callback.call(b.scope,a))},parseFeatures:function(a){return this.format.read(a)},\n +abort:function(a){if(a)this.destroyRequest(a.priv);else for(var b in this.pendingRequests)this.destroyRequest(this.pendingRequests[b])},destroy:function(){this.abort();delete this.params;delete this.format;OpenLayers.Protocol.prototype.destroy.apply(this)},CLASS_NAME:"OpenLayers.Protocol.Script"});(function(){var a=OpenLayers.Protocol.Script,b=0;a.registry={};a.register=function(c){var d="c"+ ++b;a.registry[d]=function(){c.apply(this,arguments)};return d};a.unregister=function(b){delete a.registry[b]}})();OpenLayers.Control.Panel=OpenLayers.Class(OpenLayers.Control,{controls:null,autoActivate:!0,defaultControl:null,saveState:!1,allowDepress:!1,activeState:null,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,[a]);this.controls=[];this.activeState={}},destroy:function(){this.map&&this.map.events.unregister("buttonclick",this,this.onButtonClick);OpenLayers.Control.prototype.destroy.apply(this,arguments);for(var a,b=this.controls.length-1;0<=b;b--)a=this.controls[b],a.events&&\n +a.events.un({activate:this.iconOn,deactivate:this.iconOff}),a.panel_div=null;this.activeState=null},activate:function(){if(OpenLayers.Control.prototype.activate.apply(this,arguments)){for(var a,b=0,c=this.controls.length;b<c;b++)a=this.controls[b],(a===this.defaultControl||this.saveState&&this.activeState[a.id])&&a.activate();!0===this.saveState&&(this.defaultControl=null);this.redraw();return!0}return!1},deactivate:function(){if(OpenLayers.Control.prototype.deactivate.apply(this,arguments)){for(var a,\n +b=0,c=this.controls.length;b<c;b++)a=this.controls[b],this.activeState[a.id]=a.deactivate();this.redraw();return!0}return!1},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);this.outsideViewport?(this.events.attachToElement(this.div),this.events.register("buttonclick",this,this.onButtonClick)):this.map.events.register("buttonclick",this,this.onButtonClick);this.addControlsToMap(this.controls);return this.div},redraw:function(){for(var a=this.div.childNodes.length-1;0<=a;a--)this.div.removeChild(this.div.childNodes[a]);\n +this.div.innerHTML="";if(this.active)for(var a=0,b=this.controls.length;a<b;a++)this.div.appendChild(this.controls[a].panel_div)},activateControl:function(a){if(!this.active)return!1;if(a.type==OpenLayers.Control.TYPE_BUTTON)a.trigger();else if(a.type==OpenLayers.Control.TYPE_TOGGLE)a.active?a.deactivate():a.activate();else if(this.allowDepress&&a.active)a.deactivate();else{for(var b,c=0,d=this.controls.length;c<d;c++)b=this.controls[c],b!=a&&(b.type===OpenLayers.Control.TYPE_TOOL||null==b.type)&&\n +b.deactivate();a.activate()}},addControls:function(a){OpenLayers.Util.isArray(a)||(a=[a]);this.controls=this.controls.concat(a);for(var b=0,c=a.length;b<c;b++){var d=a[b],e=this.createControlMarkup(d);OpenLayers.Element.addClass(e,d.displayClass+"ItemInactive");OpenLayers.Element.addClass(e,"olButton");""!=d.title&&!e.title&&(e.title=d.title);d.panel_div=e}this.map&&(this.addControlsToMap(a),this.redraw())},createControlMarkup:function(){return document.createElement("div")},addControlsToMap:function(a){for(var b,\n +c=0,d=a.length;c<d;c++)b=a[c],!0===b.autoActivate?(b.autoActivate=!1,this.map.addControl(b),b.autoActivate=!0):(this.map.addControl(b),b.deactivate()),b.events.on({activate:this.iconOn,deactivate:this.iconOff})},iconOn:function(){var a=this.panel_div;a.className=a.className.replace(RegExp("\\\\b("+this.displayClass+"Item)Inactive\\\\b"),"$1Active")},iconOff:function(){var a=this.panel_div;a.className=a.className.replace(RegExp("\\\\b("+this.displayClass+"Item)Active\\\\b"),"$1Inactive")},onButtonClick:function(a){for(var b=\n +this.controls,a=a.buttonElement,c=b.length-1;0<=c;--c)if(b[c].panel_div===a){this.activateControl(b[c]);break}},getControlsBy:function(a,b){var c="function"==typeof b.test;return OpenLayers.Array.filter(this.controls,function(d){return d[a]==b||c&&b.test(d[a])})},getControlsByName:function(a){return this.getControlsBy("name",a)},getControlsByClass:function(a){return this.getControlsBy("CLASS_NAME",a)},CLASS_NAME:"OpenLayers.Control.Panel"});OpenLayers.Control.ZoomIn=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_BUTTON,trigger:function(){this.map.zoomIn()},CLASS_NAME:"OpenLayers.Control.ZoomIn"});OpenLayers.Control.ZoomOut=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_BUTTON,trigger:function(){this.map.zoomOut()},CLASS_NAME:"OpenLayers.Control.ZoomOut"});OpenLayers.Control.ZoomToMaxExtent=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_BUTTON,trigger:function(){this.map&&this.map.zoomToMaxExtent()},CLASS_NAME:"OpenLayers.Control.ZoomToMaxExtent"});OpenLayers.Control.ZoomPanel=OpenLayers.Class(OpenLayers.Control.Panel,{initialize:function(a){OpenLayers.Control.Panel.prototype.initialize.apply(this,[a]);this.addControls([new OpenLayers.Control.ZoomIn,new OpenLayers.Control.ZoomToMaxExtent,new OpenLayers.Control.ZoomOut])},CLASS_NAME:"OpenLayers.Control.ZoomPanel"});OpenLayers.Layer.HTTPRequest=OpenLayers.Class(OpenLayers.Layer,{URL_HASH_FACTOR:(Math.sqrt(5)-1)/2,url:null,params:null,reproject:!1,initialize:function(a,b,c,d){OpenLayers.Layer.prototype.initialize.apply(this,[a,d]);this.url=b;this.params||(this.params=OpenLayers.Util.extend({},c))},destroy:function(){this.params=this.url=null;OpenLayers.Layer.prototype.destroy.apply(this,arguments)},clone:function(a){null==a&&(a=new OpenLayers.Layer.HTTPRequest(this.name,this.url,this.params,this.getOptions()));\n +return a=OpenLayers.Layer.prototype.clone.apply(this,[a])},setUrl:function(a){this.url=a},mergeNewParams:function(a){this.params=OpenLayers.Util.extend(this.params,a);a=this.redraw();null!=this.map&&this.map.events.triggerEvent("changelayer",{layer:this,property:"params"});return a},redraw:function(a){return a?this.mergeNewParams({_olSalt:Math.random()}):OpenLayers.Layer.prototype.redraw.apply(this,[])},selectUrl:function(a,b){for(var c=1,d=0,e=a.length;d<e;d++)c*=a.charCodeAt(d)*this.URL_HASH_FACTOR,\n +c-=Math.floor(c);return b[Math.floor(c*b.length)]},getFullRequestString:function(a,b){var c=b||this.url,d=OpenLayers.Util.extend({},this.params),d=OpenLayers.Util.extend(d,a),e=OpenLayers.Util.getParameterString(d);OpenLayers.Util.isArray(c)&&(c=this.selectUrl(e,c));var e=OpenLayers.Util.upperCaseObject(OpenLayers.Util.getParameters(c)),f;for(f in d)f.toUpperCase()in e&&delete d[f];e=OpenLayers.Util.getParameterString(d);return OpenLayers.Util.urlAppend(c,e)},CLASS_NAME:"OpenLayers.Layer.HTTPRequest"});OpenLayers.Tile=OpenLayers.Class({events:null,eventListeners:null,id:null,layer:null,url:null,bounds:null,size:null,position:null,isLoading:!1,initialize:function(a,b,c,d,e,f){this.layer=a;this.position=b.clone();this.setBounds(c);this.url=d;e&&(this.size=e.clone());this.id=OpenLayers.Util.createUniqueID("Tile_");OpenLayers.Util.extend(this,f);this.events=new OpenLayers.Events(this);if(this.eventListeners instanceof Object)this.events.on(this.eventListeners)},unload:function(){this.isLoading&&(this.isLoading=\n +!1,this.events.triggerEvent("unload"))},destroy:function(){this.position=this.size=this.bounds=this.layer=null;this.eventListeners&&this.events.un(this.eventListeners);this.events.destroy();this.events=this.eventListeners=null},draw:function(a){a||this.clear();var b=this.shouldDraw();b&&!a&&(b=!1!==this.events.triggerEvent("beforedraw"));return b},shouldDraw:function(){var a=!1,b=this.layer.maxExtent;if(b){var c=this.layer.map,c=c.baseLayer.wrapDateLine&&c.getMaxExtent();this.bounds.intersectsBounds(b,\n +{inclusive:!1,worldBounds:c})&&(a=!0)}return a||this.layer.displayOutsideMaxExtent},setBounds:function(a){a=a.clone();if(this.layer.map.baseLayer.wrapDateLine)var b=this.layer.map.getMaxExtent(),c=this.layer.map.getResolution(),a=a.wrapDateLine(b,{leftTolerance:c,rightTolerance:c});this.bounds=a},moveTo:function(a,b,c){null==c&&(c=!0);this.setBounds(a);this.position=b.clone();c&&this.draw()},clear:function(){},CLASS_NAME:"OpenLayers.Tile"});OpenLayers.Tile.Image=OpenLayers.Class(OpenLayers.Tile,{url:null,imgDiv:null,frame:null,imageReloadAttempts:null,layerAlphaHack:null,asyncRequestId:null,blankImageUrl:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAQAIBRAA7",maxGetUrlLength:null,canvasContext:null,crossOriginKeyword:null,initialize:function(a,b,c,d,e,f){OpenLayers.Tile.prototype.initialize.apply(this,arguments);this.url=d;this.layerAlphaHack=this.layer.alpha&&OpenLayers.Util.alphaHack();if(null!=this.maxGetUrlLength||\n +this.layer.gutter||this.layerAlphaHack)this.frame=document.createElement("div"),this.frame.style.position="absolute",this.frame.style.overflow="hidden";null!=this.maxGetUrlLength&&OpenLayers.Util.extend(this,OpenLayers.Tile.Image.IFrame)},destroy:function(){this.imgDiv&&(this.clear(),this.frame=this.imgDiv=null);this.asyncRequestId=null;OpenLayers.Tile.prototype.destroy.apply(this,arguments)},draw:function(){var a=OpenLayers.Tile.prototype.draw.apply(this,arguments);a?(this.layer!=this.layer.map.baseLayer&&\n +this.la + +]]></string> </value> </item> <item> - <key> <string>title</string> </key> - <value> <string></string> </value> + <key> <string>next</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="5" aka="AAAAAAAAAAU="> + <pickle> + <global name="Pdata" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +yer.reproject&&(this.bounds=this.getBoundsFromBaseLayer(this.position)),this.isLoading?this._loadEvent="reload":(this.isLoading=!0,this._loadEvent="loadstart"),this.positionTile(),this.renderTile()):this.unload();return a},renderTile:function(){this.layer.div.appendChild(this.getTile());if(this.layer.async){var a=this.asyncRequestId=(this.asyncRequestId||0)+1;this.layer.getURLasync(this.bounds,function(b){a==this.asyncRequestId&&(this.url=b,this.initImage())},this)}else this.url=this.layer.getURL(this.bounds),\n +this.initImage()},positionTile:function(){var a=this.getTile().style,b=this.frame?this.size:this.layer.getImageSize(this.bounds);a.left=this.position.x+"%";a.top=this.position.y+"%";a.width=b.w+"%";a.height=b.h+"%"},clear:function(){OpenLayers.Tile.prototype.clear.apply(this,arguments);var a=this.imgDiv;if(a){OpenLayers.Event.stopObservingElement(a);var b=this.getTile();b.parentNode===this.layer.div&&this.layer.div.removeChild(b);this.setImgSrc();!0===this.layerAlphaHack&&(a.style.filter="");OpenLayers.Element.removeClass(a,\n +"olImageLoadError")}this.canvasContext=null},getImage:function(){if(!this.imgDiv){this.imgDiv=document.createElement("img");this.imgDiv.className="olTileImage";this.imgDiv.galleryImg="no";var a=this.imgDiv.style;if(this.frame){var b=0,c=0;this.layer.gutter&&(b=100*(this.layer.gutter/this.layer.tileSize.w),c=100*(this.layer.gutter/this.layer.tileSize.h));a.left=-b+"%";a.top=-c+"%";a.width=2*b+100+"%";a.height=2*c+100+"%"}a.visibility="hidden";a.opacity=0;1>this.layer.opacity&&(a.filter="alpha(opacity="+\n +100*this.layer.opacity+")");a.position="absolute";this.layerAlphaHack&&(a.paddingTop=a.height,a.height="0",a.width="100%");this.frame&&this.frame.appendChild(this.imgDiv)}return this.imgDiv},initImage:function(){this.events.triggerEvent(this._loadEvent);var a=this.getImage();if(this.url&&a.getAttribute("src")==this.url)this.onImageLoad();else{var b=OpenLayers.Function.bind(function(){OpenLayers.Event.stopObservingElement(a);OpenLayers.Event.observe(a,"load",OpenLayers.Function.bind(this.onImageLoad,\n +this));OpenLayers.Event.observe(a,"error",OpenLayers.Function.bind(this.onImageError,this));this.imageReloadAttempts=0;this.setImgSrc(this.url)},this);a.getAttribute("src")==this.blankImageUrl?b():(OpenLayers.Event.observe(a,"load",b),OpenLayers.Event.observe(a,"error",b),this.crossOriginKeyword&&a.removeAttribute("crossorigin"),a.src=this.blankImageUrl)}},setImgSrc:function(a){var b=this.imgDiv;b.style.visibility="hidden";b.style.opacity=0;a&&(this.crossOriginKeyword&&("data:"!==a.substr(0,5)?b.setAttribute("crossorigin",\n +this.crossOriginKeyword):b.removeAttribute("crossorigin")),b.src=a)},getTile:function(){return this.frame?this.frame:this.getImage()},createBackBuffer:function(){if(this.imgDiv&&!this.isLoading){var a;this.frame?(a=this.frame.cloneNode(!1),a.appendChild(this.imgDiv)):a=this.imgDiv;this.imgDiv=null;return a}},onImageLoad:function(){var a=this.imgDiv;OpenLayers.Event.stopObservingElement(a);a.style.visibility="inherit";a.style.opacity=this.layer.opacity;this.isLoading=!1;this.canvasContext=null;this.events.triggerEvent("loadend");\n +if(7>parseFloat(navigator.appVersion.split("MSIE")[1])&&this.layer&&this.layer.div){var b=document.createElement("span");b.style.display="none";var c=this.layer.div;c.appendChild(b);window.setTimeout(function(){b.parentNode===c&&b.parentNode.removeChild(b)},0)}!0===this.layerAlphaHack&&(a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'"+a.src+"\', sizingMethod=\'scale\')")},onImageError:function(){var a=this.imgDiv;null!=a.src&&(this.imageReloadAttempts++,this.imageReloadAttempts<=\n +OpenLayers.IMAGE_RELOAD_ATTEMPTS?this.setImgSrc(this.layer.getURL(this.bounds)):(OpenLayers.Element.addClass(a,"olImageLoadError"),this.events.triggerEvent("loaderror"),this.onImageLoad()))},getCanvasContext:function(){if(OpenLayers.CANVAS_SUPPORTED&&this.imgDiv&&!this.isLoading){if(!this.canvasContext){var a=document.createElement("canvas");a.width=this.size.w;a.height=this.size.h;this.canvasContext=a.getContext("2d");this.canvasContext.drawImage(this.imgDiv,0,0)}return this.canvasContext}},CLASS_NAME:"OpenLayers.Tile.Image"});OpenLayers.Layer.Grid=OpenLayers.Class(OpenLayers.Layer.HTTPRequest,{tileSize:null,tileOriginCorner:"bl",tileOrigin:null,tileOptions:null,tileClass:OpenLayers.Tile.Image,grid:null,singleTile:!1,ratio:1.5,buffer:0,transitionEffect:null,numLoadingTiles:0,tileLoadingDelay:85,serverResolutions:null,moveTimerId:null,deferMoveGriddedTiles:null,tileQueueId:null,tileQueue:null,loading:!1,backBuffer:null,gridResolution:null,backBufferResolution:null,backBufferLonLat:null,backBufferTimerId:null,removeBackBufferDelay:null,\n +className:null,initialize:function(a,b,c,d){OpenLayers.Layer.HTTPRequest.prototype.initialize.apply(this,arguments);this.grid=[];this.tileQueue=[];null===this.removeBackBufferDelay&&(this.removeBackBufferDelay=this.singleTile?0:2500);null===this.className&&(this.className=this.singleTile?"olLayerGridSingleTile":"olLayerGrid");OpenLayers.Animation.isNative||(this.deferMoveGriddedTiles=OpenLayers.Function.bind(function(){this.moveGriddedTiles(true);this.moveTimerId=null},this))},setMap:function(a){OpenLayers.Layer.HTTPRequest.prototype.setMap.call(this,\n +a);OpenLayers.Element.addClass(this.div,this.className)},removeMap:function(){null!==this.moveTimerId&&(window.clearTimeout(this.moveTimerId),this.moveTimerId=null);this.clearTileQueue();null!==this.backBufferTimerId&&(window.clearTimeout(this.backBufferTimerId),this.backBufferTimerId=null)},destroy:function(){this.removeBackBuffer();this.clearGrid();this.tileSize=this.grid=null;OpenLayers.Layer.HTTPRequest.prototype.destroy.apply(this,arguments)},clearGrid:function(){this.clearTileQueue();if(this.grid){for(var a=\n +0,b=this.grid.length;a<b;a++)for(var c=this.grid[a],d=0,e=c.length;d<e;d++)this.destroyTile(c[d]);this.grid=[];this.gridResolution=null}},clone:function(a){null==a&&(a=new OpenLayers.Layer.Grid(this.name,this.url,this.params,this.getOptions()));a=OpenLayers.Layer.HTTPRequest.prototype.clone.apply(this,[a]);null!=this.tileSize&&(a.tileSize=this.tileSize.clone());a.grid=[];a.gridResolution=null;a.backBuffer=null;a.backBufferTimerId=null;a.tileQueue=[];a.tileQueueId=null;a.loading=!1;a.moveTimerId=null;\n +return a},moveTo:function(a,b,c){OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments);a=a||this.map.getExtent();if(null!=a){var d=!this.grid.length||b,e=this.getTilesBounds(),f=this.map.getResolution(),g=this.getServerResolution(f);if(this.singleTile){if(d||!c&&!e.containsBounds(a))b&&"resize"!==this.transitionEffect&&this.removeBackBuffer(),(!b||"resize"===this.transitionEffect)&&this.applyBackBuffer(g),this.initSingleTile(a)}else(d=d||!e.intersectsBounds(a,{worldBounds:this.map.baseLayer.wrapDateLine&&\n +this.map.getMaxExtent()}),f!==g?(a=this.map.calculateBounds(null,g),d&&this.transformDiv(g/f)):(this.div.style.width="100%",this.div.style.height="100%",this.div.style.left="0%",this.div.style.top="0%"),d)?(b&&"resize"===this.transitionEffect&&this.applyBackBuffer(g),this.initGriddedTiles(a)):this.moveGriddedTiles()}},getTileData:function(a){var b=null,c=a.lon,d=a.lat,e=this.grid.length;if(this.map&&e){var f=this.map.getResolution(),a=this.tileSize.w,g=this.tileSize.h,h=this.grid[0][0].bounds,i=h.left,\n +h=h.top;if(c<i&&this.map.baseLayer.wrapDateLine)var j=this.map.getMaxExtent().getWidth(),k=Math.ceil((i-c)/j),c=c+j*k;c=(c-i)/(f*a);d=(h-d)/(f*g);f=Math.floor(c);i=Math.floor(d);0<=i&&i<e&&(e=this.grid[i][f])&&(b={tile:e,i:Math.floor((c-f)*a),j:Math.floor((d-i)*g)})}return b},queueTileDraw:function(a){a=a.object;~OpenLayers.Util.indexOf(this.tileQueue,a)||this.tileQueue.push(a);this.tileQueueId||(this.tileQueueId=OpenLayers.Animation.start(OpenLayers.Function.bind(this.drawTileFromQueue,this),null,\n +this.div));return!1},drawTileFromQueue:function(){0===this.tileQueue.length?this.clearTileQueue():this.tileQueue.shift().draw(!0)},clearTileQueue:function(){OpenLayers.Animation.stop(this.tileQueueId);this.tileQueueId=null;this.tileQueue=[]},destroyTile:function(a){this.removeTileMonitoringHooks(a);a.destroy()},getServerResolution:function(a){a=a||this.map.getResolution();if(this.serverResolutions&&-1===OpenLayers.Util.indexOf(this.serverResolutions,a)){var b,c;for(b=this.serverResolutions.length-\n +1;0<=b;b--)if(c=this.serverResolutions[b],c>a){a=c;break}if(-1===b)throw"no appropriate resolution in serverResolutions";}return a},getServerZoom:function(){var a=this.getServerResolution();return this.serverResolutions?OpenLayers.Util.indexOf(this.serverResolutions,a):this.map.getZoomForResolution(a)+(this.zoomOffset||0)},transformDiv:function(a){this.div.style.width=100*a+"%";this.div.style.height=100*a+"%";var b=this.map.getSize(),c=parseInt(this.map.layerContainerDiv.style.left,10),d=(parseInt(this.map.layerContainerDiv.style.top,\n +10)-b.h/2)*(a-1);this.div.style.left=(c-b.w/2)*(a-1)+"%";this.div.style.top=d+"%"},getResolutionScale:function(){return parseInt(this.div.style.width,10)/100},applyBackBuffer:function(a){null!==this.backBufferTimerId&&this.removeBackBuffer();var b=this.backBuffer;if(!b){b=this.createBackBuffer();if(!b)return;this.div.insertBefore(b,this.div.firstChild);this.backBuffer=b;var c=this.grid[0][0].bounds;this.backBufferLonLat={lon:c.left,lat:c.top};this.backBufferResolution=this.gridResolution}var c=b.style,\n +d=this.backBufferResolution/a;c.width=100*d+"%";c.height=100*d+"%";a=this.getViewPortPxFromLonLat(this.backBufferLonLat,a);c=parseInt(this.map.layerContainerDiv.style.left,10);d=parseInt(this.map.layerContainerDiv.style.top,10);b.style.left=Math.round(a.x-c)+"%";b.style.top=Math.round(a.y-d)+"%"},createBackBuffer:function(){var a;if(0<this.grid.length){a=document.createElement("div");a.id=this.div.id+"_bb";a.className="olBackBuffer";a.style.position="absolute";a.style.width="100%";a.style.height=\n +"100%";for(var b=0,c=this.grid.length;b<c;b++)for(var d=0,e=this.grid[b].length;d<e;d++){var f=this.grid[b][d].createBackBuffer();f&&(f.style.top=b*this.tileSize.h+"%",f.style.left=d*this.tileSize.w+"%",a.appendChild(f))}}return a},removeBackBuffer:function(){this.backBuffer&&(this.div.removeChild(this.backBuffer),this.backBufferResolution=this.backBuffer=null,null!==this.backBufferTimerId&&(window.clearTimeout(this.backBufferTimerId),this.backBufferTimerId=null))},moveByPx:function(){this.singleTile||\n +this.moveGriddedTiles()},setTileSize:function(a){this.singleTile&&(a=this.map.getSize(),a.h=parseInt(a.h*this.ratio),a.w=parseInt(a.w*this.ratio));OpenLayers.Layer.HTTPRequest.prototype.setTileSize.apply(this,[a])},getTilesBounds:function(){var a=null,b=this.grid.length;if(b)var a=this.grid[b-1][0].bounds,b=this.grid[0].length*a.getWidth(),c=this.grid.length*a.getHeight(),a=new OpenLayers.Bounds(a.left,a.bottom,a.left+b,a.bottom+c);return a},initSingleTile:function(a){this.clearTileQueue();var b=\n +a.getCenterLonLat(),c=a.getWidth()*this.ratio,a=a.getHeight()*this.ratio,b=new OpenLayers.Bounds(b.lon-c/2,b.lat-a/2,b.lon+c/2,b.lat+a/2),c=this.map.getLayerPxFromLonLat({lon:b.left,lat:b.top});this.grid.length||(this.grid[0]=[]);(a=this.grid[0][0])?a.moveTo(b,c):(a=this.addTile(b,c),this.addTileMonitoringHooks(a),a.draw(),this.grid[0][0]=a);this.removeExcessTiles(1,1);this.gridResolution=this.getServerResolution()},calculateGridLayout:function(a,b,c){var d=c*this.tileSize.w,c=c*this.tileSize.h,e=\n +a.left-b.lon,f=Math.floor(e/d)-this.buffer,e=-(e/d-f)*this.tileSize.w,f=b.lon+f*d,a=a.top-(b.lat+c),g=Math.ceil(a/c)+this.buffer;return{tilelon:d,tilelat:c,tileoffsetlon:f,tileoffsetlat:b.lat+g*c,tileoffsetx:e,tileoffsety:-(g-a/c)*this.tileSize.h}},getTileOrigin:function(){var a=this.tileOrigin;if(!a)var a=this.getMaxExtent(),b={tl:["left","top"],tr:["right","top"],bl:["left","bottom"],br:["right","bottom"]}[this.tileOriginCorner],a=new OpenLayers.LonLat(a[b[0]],a[b[1]]);return a},initGriddedTiles:function(a){this.clearTileQueue();\n +var b=this.map.getSize(),c=Math.ceil(b.h/this.tileSize.h)+Math.max(1,2*this.buffer),b=Math.ceil(b.w/this.tileSize.w)+Math.max(1,2*this.buffer),d=this.getTileOrigin(),e=this.getServerResolution(),d=this.calculateGridLayout(a,d,e),e=Math.round(d.tileoffsetx),f=Math.round(d.tileoffsety),g=d.tileoffsetlon,h=d.tileoffsetlat,i=d.tilelon,j=d.tilelat,k=e,l=g,m=0,n=parseInt(this.map.layerContainerDiv.style.left),o=parseInt(this.map.layerContainerDiv.style.top),d=[],p=this.map.getCenter();do{var q=this.grid[m++];\n +q||(q=[],this.grid.push(q));var g=l,e=k,r=0;do{var s=new OpenLayers.Bounds(g,h,g+i,h+j),t=e,t=t-n,u=f,u=u-o,u=new OpenLayers.Pixel(t,u);(t=q[r++])?t.moveTo(s,u,!1):(t=this.addTile(s,u),this.addTileMonitoringHooks(t),q.push(t));s=s.getCenterLonLat();d.push({tile:t,distance:Math.pow(s.lon-p.lon,2)+Math.pow(s.lat-p.lat,2)});g+=i;e+=this.tileSize.w}while(g<=a.right+i*this.buffer||r<b);h-=j;f+=this.tileSize.h}while(h>=a.bottom-j*this.buffer||m<c);this.removeExcessTiles(m,r);this.gridResolution=this.getServerResolution();\n +d.sort(function(a,b){return a.distance-b.distance});a=0;for(c=d.length;a<c;++a)d[a].tile.draw()},getMaxExtent:function(){return this.maxExtent},addTile:function(a,b){var c=new this.tileClass(this,b,a,null,this.tileSize,this.tileOptions);c.events.register("beforedraw",this,this.queueTileDraw);return c},addTileMonitoringHooks:function(a){a.onLoadStart=function(){!1===this.loading&&(this.loading=!0,this.events.triggerEvent("loadstart"));this.events.triggerEvent("tileloadstart",{tile:a});this.numLoadingTiles++};\n +a.onLoadEnd=function(){this.numLoadingTiles--;this.events.triggerEvent("tileloaded",{tile:a});0===this.tileQueue.length&&0===this.numLoadingTiles&&(this.loading=!1,this.events.triggerEvent("loadend"),this.backBuffer&&(this.backBufferTimerId=window.setTimeout(OpenLayers.Function.bind(this.removeBackBuffer,this),this.removeBackBufferDelay)))};a.onLoadError=function(){this.events.triggerEvent("tileerror",{tile:a})};a.events.on({loadstart:a.onLoadStart,loadend:a.onLoadEnd,unload:a.onLoadEnd,loaderror:a.onLoadError,\n +scope:this})},removeTileMonitoringHooks:function(a){a.unload();a.events.un({loadstart:a.onLoadStart,loadend:a.onLoadEnd,unload:a.onLoadEnd,loaderror:a.onLoadError,scope:this})},moveGriddedTiles:function(a){if(!a&&!OpenLayers.Animation.isNative)null!=this.moveTimerId&&window.clearTimeout(this.moveTimerId),this.moveTimerId=window.setTimeout(this.deferMoveGriddedTiles,this.tileLoadingDelay);else for(var a=this.buffer||1,b=this.getResolutionScale();;){var c=this.grid[0][0].position.x*b+parseInt(this.div.style.left,\n +10)+parseInt(this.map.layerContainerDiv.style.left),d=this.grid[0][0].position.y*b+parseInt(this.div.style.top,10)+parseInt(this.map.layerContainerDiv.style.top),e=this.tileSize.w*b,f=this.tileSize.h*b;if(c>-e*(a-1))this.shiftColumn(!0);else if(c<-e*a)this.shiftColumn(!1);else if(d>-f*(a-1))this.shiftRow(!0);else if(d<-f*a)this.shiftRow(!1);else break}},shiftRow:function(a){for(var b=this.grid,c=b[a?0:this.grid.length-1],d=this.getServerResolution(),e=a?-this.tileSize.h:this.tileSize.h,d=d*-e,f=a?\n +b.pop():b.shift(),g=0,h=c.length;g<h;g++){var i=c[g],j=i.bounds.clone(),i=i.position.clone();j.bottom+=d;j.top+=d;i.y+=e;f[g].moveTo(j,i)}a?b.unshift(f):b.push(f)},shiftColumn:function(a){for(var b=a?-this.tileSize.w:this.tileSize.w,c=this.getServerResolution()*b,d=0,e=this.grid.length;d<e;d++){var f=this.grid[d],g=f[a?0:f.length-1],h=g.bounds.clone(),g=g.position.clone();h.left+=c;h.right+=c;g.x+=b;var i=a?this.grid[d].pop():this.grid[d].shift();i.moveTo(h,g);a?f.unshift(i):f.push(i)}},removeExcessTiles:function(a,\n +b){for(var c,d;this.grid.length>a;){var e=this.grid.pop();c=0;for(d=e.length;c<d;c++){var f=e[c];this.destroyTile(f)}}c=0;for(d=this.grid.length;c<d;c++)for(;this.grid[c].length>b;)e=this.grid[c],f=e.pop(),this.destroyTile(f)},onMapResize:function(){this.singleTile&&(this.clearGrid(),this.setTileSize())},getTileBounds:function(a){var b=this.maxExtent,c=this.getResolution(),d=c*this.tileSize.w,c=c*this.tileSize.h,e=this.getLonLatFromViewPortPx(a),a=b.left+d*Math.floor((e.lon-b.left)/d),b=b.bottom+\n +c*Math.floor((e.lat-b.bottom)/c);return new OpenLayers.Bounds(a,b,a+d,b+c)},CLASS_NAME:"OpenLayers.Layer.Grid"});OpenLayers.Format.ArcXML=OpenLayers.Class(OpenLayers.Format.XML,{fontStyleKeys:"antialiasing blockout font fontcolor fontsize fontstyle glowing interval outline printmode shadow transparency".split(" "),request:null,response:null,initialize:function(a){this.request=new OpenLayers.Format.ArcXML.Request;this.response=new OpenLayers.Format.ArcXML.Response;if(a)if("feature"==a.requesttype){this.request.get_image=null;var b=this.request.get_feature.query;this.addCoordSys(b.featurecoordsys,a.featureCoordSys);\n +this.addCoordSys(b.filtercoordsys,a.filterCoordSys);a.polygon?(b.isspatial=!0,b.spatialfilter.polygon=a.polygon):a.envelope&&(b.isspatial=!0,b.spatialfilter.envelope={minx:0,miny:0,maxx:0,maxy:0},this.parseEnvelope(b.spatialfilter.envelope,a.envelope))}else"image"==a.requesttype?(this.request.get_feature=null,b=this.request.get_image.properties,this.parseEnvelope(b.envelope,a.envelope),this.addLayers(b.layerlist,a.layers),this.addImageSize(b.imagesize,a.tileSize),this.addCoordSys(b.featurecoordsys,\n +a.featureCoordSys),this.addCoordSys(b.filtercoordsys,a.filterCoordSys)):this.request=null;OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},parseEnvelope:function(a,b){b&&4==b.length&&(a.minx=b[0],a.miny=b[1],a.maxx=b[2],a.maxy=b[3])},addLayers:function(a,b){for(var c=0,d=b.length;c<d;c++)a.push(b[c])},addImageSize:function(a,b){null!==b&&(a.width=b.w,a.height=b.h,a.printwidth=b.w,a.printheight=b.h)},addCoordSys:function(a,b){"string"==typeof b?(a.id=parseInt(b),a.string=b):"object"==typeof b&&\n +null!==b.proj&&(a.id=b.proj.srsProjNumber,a.string=b.proj.srsCode)},iserror:function(a){var b=null;a?(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]),a=a.documentElement.getElementsByTagName("ERROR"),b=null!==a&&0<a.length):b=""!==this.response.error;return b},read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var b=null;a&&a.documentElement&&(b="ARCXML"==a.documentElement.nodeName?a.documentElement:a.documentElement.getElementsByTagName("ARCXML")[0]);\n +if(!b||"parsererror"===b.firstChild.nodeName){var c,d;try{c=a.firstChild.nodeValue,d=a.firstChild.childNodes[1].firstChild.nodeValue}catch(e){}throw{message:"Error parsing the ArcXML request",error:c,source:d};}return this.parseResponse(b)},write:function(a){a||(a=this.request);var b=this.createElementNS("","ARCXML");b.setAttribute("version","1.1");var c=this.createElementNS("","REQUEST");if(null!=a.get_image){var d=this.createElementNS("","GET_IMAGE");c.appendChild(d);var e=this.createElementNS("",\n +"PROPERTIES");d.appendChild(e);a=a.get_image.properties;null!=a.featurecoordsys&&(d=this.createElementNS("","FEATURECOORDSYS"),e.appendChild(d),0===a.featurecoordsys.id?d.setAttribute("string",a.featurecoordsys.string):d.setAttribute("id",a.featurecoordsys.id));null!=a.filtercoordsys&&(d=this.createElementNS("","FILTERCOORDSYS"),e.appendChild(d),0===a.filtercoordsys.id?d.setAttribute("string",a.filtercoordsys.string):d.setAttribute("id",a.filtercoordsys.id));null!=a.envelope&&(d=this.createElementNS("",\n +"ENVELOPE"),e.appendChild(d),d.setAttribute("minx",a.envelope.minx),d.setAttribute("miny",a.envelope.miny),d.setAttribute("maxx",a.envelope.maxx),d.setAttribute("maxy",a.envelope.maxy));d=this.createElementNS("","IMAGESIZE");e.appendChild(d);d.setAttribute("height",a.imagesize.height);d.setAttribute("width",a.imagesize.width);if(a.imagesize.height!=a.imagesize.printheight||a.imagesize.width!=a.imagesize.printwidth)d.setAttribute("printheight",a.imagesize.printheight),d.setArrtibute("printwidth",a.imagesize.printwidth);\n +null!=a.background&&(d=this.createElementNS("","BACKGROUND"),e.appendChild(d),d.setAttribute("color",a.background.color.r+","+a.background.color.g+","+a.background.color.b),null!==a.background.transcolor&&d.setAttribute("transcolor",a.background.transcolor.r+","+a.background.transcolor.g+","+a.background.transcolor.b));if(null!=a.layerlist&&0<a.layerlist.length){d=this.createElementNS("","LAYERLIST");e.appendChild(d);for(e=0;e<a.layerlist.length;e++){var f=this.createElementNS("","LAYERDEF");d.appendChild(f);\n +f.setAttribute("id",a.layerlist[e].id);f.setAttribute("visible",a.layerlist[e].visible);if("object"==typeof a.layerlist[e].query){var g=a.layerlist[e].query;if(0>g.where.length)continue;var h=null,h="boolean"==typeof g.spatialfilter&&g.spatialfilter?this.createElementNS("","SPATIALQUERY"):this.createElementNS("","QUERY");h.setAttribute("where",g.where);"number"==typeof g.accuracy&&0<g.accuracy&&h.setAttribute("accuracy",g.accuracy);"number"==typeof g.featurelimit&&2E3>g.featurelimit&&h.setAttribute("featurelimit",\n +g.featurelimit);"string"==typeof g.subfields&&"#ALL#"!=g.subfields&&h.setAttribute("subfields",g.subfields);"string"==typeof g.joinexpression&&0<g.joinexpression.length&&h.setAttribute("joinexpression",g.joinexpression);"string"==typeof g.jointables&&0<g.jointables.length&&h.setAttribute("jointables",g.jointables);f.appendChild(h)}"object"==typeof a.layerlist[e].renderer&&this.addRenderer(f,a.layerlist[e].renderer)}}}else if(null!=a.get_feature&&(d=this.createElementNS("","GET_FEATURES"),d.setAttribute("outputmode",\n +"newxml"),d.setAttribute("checkesc","true"),a.get_feature.geometry?d.setAttribute("geometry",a.get_feature.geometry):d.setAttribute("geometry","false"),a.get_feature.compact&&d.setAttribute("compact",a.get_feature.compact),"number"==a.get_feature.featurelimit&&d.setAttribute("featurelimit",a.get_feature.featurelimit),d.setAttribute("globalenvelope","true"),c.appendChild(d),null!=a.get_feature.layer&&0<a.get_feature.layer.length&&(e=this.createElementNS("","LAYER"),e.setAttribute("id",a.get_feature.layer),\n +d.appendChild(e)),a=a.get_feature.query,null!=a))e=null,e=a.isspatial?this.createElementNS("","SPATIALQUERY"):this.createElementNS("","QUERY"),d.appendChild(e),"number"==typeof a.accuracy&&e.setAttribute("accuracy",a.accuracy),null!=a.featurecoordsys&&(d=this.createElementNS("","FEATURECOORDSYS"),0==a.featurecoordsys.id?d.setAttribute("string",a.featurecoordsys.string):d.setAttribute("id",a.featurecoordsys.id),e.appendChild(d)),null!=a.filtercoordsys&&(d=this.createElementNS("","FILTERCOORDSYS"),\n +0===a.filtercoordsys.id?d.setAttribute("string",a.filtercoordsys.string):d.setAttribute("id",a.filtercoordsys.id),e.appendChild(d)),0<a.buffer&&(d=this.createElementNS("","BUFFER"),d.setAttribute("distance",a.buffer),e.appendChild(d)),a.isspatial&&(d=this.createElementNS("","SPATIALFILTER"),d.setAttribute("relation",a.spatialfilter.relation),e.appendChild(d),a.spatialfilter.envelope?(f=this.createElementNS("","ENVELOPE"),f.setAttribute("minx",a.spatialfilter.envelope.minx),f.setAttribute("miny",a.spatialfilter.envelope.miny),\n +f.setAttribute("maxx",a.spatialfilter.envelope.maxx),f.setAttribute("maxy",a.spatialfilter.envelope.maxy),d.appendChild(f)):"object"==typeof a.spatialfilter.polygon&&d.appendChild(this.writePolygonGeometry(a.spatialfilter.polygon))),null!=a.where&&0<a.where.length&&e.setAttribute("where",a.where);b.appendChild(c);return OpenLayers.Format.XML.prototype.write.apply(this,[b])},addGroupRenderer:function(a,b){var c=this.createElementNS("","GROUPRENDERER");a.appendChild(c);for(var d=0;d<b.length;d++)this.addRenderer(c,\n +b[d])},addRenderer:function(a,b){if(OpenLayers.Util.isArray(b))this.addGroupRenderer(a,b);else{var c=this.createElementNS("",b.type.toUpperCase()+"RENDERER");a.appendChild(c);"VALUEMAPRENDERER"==c.tagName?this.addValueMapRenderer(c,b):"VALUEMAPLABELRENDERER"==c.tagName?this.addValueMapLabelRenderer(c,b):"SIMPLELABELRENDERER"==c.tagName?this.addSimpleLabelRenderer(c,b):"SCALEDEPENDENTRENDERER"==c.tagName&&this.addScaleDependentRenderer(c,b)}},addScaleDependentRenderer:function(a,b){("string"==typeof b.lower||\n +"number"==typeof b.lower)&&a.setAttribute("lower",b.lower);("string"==typeof b.upper||"number"==typeof b.upper)&&a.setAttribute("upper",b.upper);this.addRenderer(a,b.renderer)},addValueMapLabelRenderer:function(a,b){a.setAttribute("lookupfield",b.lookupfield);a.setAttribute("labelfield",b.labelfield);if("object"==typeof b.exacts)for(var c=0,d=b.exacts.length;c<d;c++){var e=b.exacts[c],f=this.createElementNS("","EXACT");"string"==typeof e.value&&f.setAttribute("value",e.value);"string"==typeof e.label&&\n +f.setAttribute("label",e.label);"string"==typeof e.method&&f.setAttribute("method",e.method);a.appendChild(f);if("object"==typeof e.symbol){var g=null;"text"==e.symbol.type&&(g=this.createElementNS("","TEXTSYMBOL"));if(null!=g){for(var h=this.fontStyleKeys,i=0,j=h.length;i<j;i++){var k=h[i];e.symbol[k]&&g.setAttribute(k,e.symbol[k])}f.appendChild(g)}}}},addValueMapRenderer:function(a,b){a.setAttribute("lookupfield",b.lookupfield);if("object"==typeof b.ranges)for(var c=0,d=b.ranges.length;c<d;c++){var e=\n +b.ranges[c],f=this.createElementNS("","RANGE");f.setAttribute("lower",e.lower);f.setAttribute("upper",e.upper);a.appendChild(f);if("object"==typeof e.symbol){var g=null;"simplepolygon"==e.symbol.type&&(g=this.createElementNS("","SIMPLEPOLYGONSYMBOL"));null!=g&&("string"==typeof e.symbol.boundarycolor&&g.setAttribute("boundarycolor",e.symbol.boundarycolor),"string"==typeof e.symbol.fillcolor&&g.setAttribute("fillcolor",e.symbol.fillcolor),"number"==typeof e.symbol.filltransparency&&g.setAttribute("filltransparency",\n +e.symbol.filltransparency),f.appendChild(g))}}else if("object"==typeof b.exacts){c=0;for(d=b.exacts.length;c<d;c++)e=b.exacts[c],f=this.createElementNS("","EXACT"),"string"==typeof e.value&&f.setAttribute("value",e.value),"string"==typeof e.label&&f.setAttribute("label",e.label),"string"==typeof e.method&&f.setAttribute("method",e.method),a.appendChild(f),"object"==typeof e.symbol&&(g=null,"simplemarker"==e.symbol.type&&(g=this.createElementNS("","SIMPLEMARKERSYMBOL")),null!=g&&("string"==typeof e.symbol.antialiasing&&\n +g.setAttribute("antialiasing",e.symbol.antialiasing),"string"==typeof e.symbol.color&&g.setAttribute("color",e.symbol.color),"string"==typeof e.symbol.outline&&g.setAttribute("outline",e.symbol.outline),"string"==typeof e.symbol.overlap&&g.setAttribute("overlap",e.symbol.overlap),"string"==typeof e.symbol.shadow&&g.setAttribute("shadow",e.symbol.shadow),"number"==typeof e.symbol.transparency&&g.setAttribute("transparency",e.symbol.transparency),"string"==typeof e.symbol.usecentroid&&g.setAttribute("usecentroid",\n +e.symbol.usecentroid),"number"==typeof e.symbol.width&&g.setAttribute("width",e.symbol.width),f.appendChild(g)))}},addSimpleLabelRenderer:function(a,b){a.setAttribute("field",b.field);for(var c="featureweight howmanylabels labelbufferratio labelpriorities labelweight linelabelposition rotationalangles".split(" "),d=0,e=c.length;d<e;d++){var f=c[d];b[f]&&a.setAttribute(f,b[f])}if("text"==b.symbol.type){var g=b.symbol,h=this.createElementNS("","TEXTSYMBOL");a.appendChild(h);c=this.fontStyleKeys;d=0;\n +for(e=c.length;d<e;d++)f=c[d],g[f]&&h.setAttribute(f,b[f])}},writePolygonGeometry:function(a){if(!(a instanceof OpenLayers.Geometry.Polygon))throw{message:"Cannot write polygon geometry to ArcXML with an "+a.CLASS_NAME+" object.",geometry:a};for(var b=this.createElementNS("","POLYGON"),c=0,d=a.components.length;c<d;c++){for(var e=a.components[c],f=this.createElementNS("","RING"),g=0,h=e.components.length;g<h;g++){var i=e.components[g],j=this.createElementNS("","POINT");j.setAttribute("x",i.x);j.setAttribute("y",\n +i.y);f.appendChild(j)}b.appendChild(f)}return b},parseResponse:function(a){"string"==typeof a&&(a=(new OpenLayers.Format.XML).read(a));var b=new OpenLayers.Format.ArcXML.Response,c=a.getElementsByTagName("ERROR");if(null!=c&&0<c.length)b.error=this.getChildValue(c,"Unknown error.");else{c=a.getElementsByTagName("RESPONSE");if(null==c||0==c.length)return b.error="No RESPONSE tag found in ArcXML response.",b;var d=c[0].firstChild.nodeName;"#text"==d&&(d=c[0].firstChild.nextSibling.nodeName);if("IMAGE"==\n +d)c=a.getElementsByTagName("ENVELOPE"),a=a.getElementsByTagName("OUTPUT"),null==c||0==c.length?b.error="No ENVELOPE tag found in ArcXML response.":null==a||0==a.length?b.error="No OUTPUT tag found in ArcXML response.":(c=this.parseAttributes(c[0]),d=this.parseAttributes(a[0]),b.image="string"==typeof d.type?{envelope:c,output:{type:d.type,data:this.getChildValue(a[0])}}:{envelope:c,output:d});else if("FEATURES"==d){if(a=c[0].getElementsByTagName("FEATURES"),c=a[0].getElementsByTagName("FEATURECOUNT"),\n +b.features.featurecount=c[0].getAttribute("count"),0<b.features.featurecount){c=a[0].getElementsByTagName("ENVELOPE");b.features.envelope=this.parseAttributes(c[0],"number");a=a[0].getElementsByTagName("FEATURE");for(c=0;c<a.length;c++){for(var d=new OpenLayers.Feature.Vector,e=a[c].getElementsByTagName("FIELD"),f=0;f<e.length;f++){var g=e[f].getAttribute("name"),h=e[f].getAttribute("value");d.attributes[g]=h}e=a[c].getElementsByTagName("POLYGON");if(0<e.length){e=e[0].getElementsByTagName("RING");\n +f=[];for(g=0;g<e.length;g++){h=[];h.push(this.parsePointGeometry(e[g]));for(var i=e[g].getElementsByTagName("HOLE"),j=0;j<i.length;j++)h.push(this.parsePointGeometry(i[j]));f.push(new OpenLayers.Geometry.Polygon(h))}d.geometry=1==f.length?f[0]:new OpenLayers.Geometry.MultiPolygon(f)}b.features.feature.push(d)}}}else b.error="Unidentified response type."}return b},parseAttributes:function(a,b){for(var c={},d=0;d<a.attributes.length;d++)c[a.attributes[d].nodeName]="number"==b?parseFloat(a.attributes[d].nodeValue):\n +a.attributes[d].nodeValue;return c},parsePointGeometry:function(a){var b=[],c=a.getElementsByTagName("COORDS");if(0<c.length){a=this.getChildValue(c[0]);a=a.split(/;/);for(c=0;c<a.length;c++){var d=a[c].split(/ /);b.push(new OpenLayers.Geometry.Point(d[0],d[1]))}}else if(a=a.getElementsByTagName("POINT"),0<a.length)for(c=0;c<a.length;c++)b.push(new OpenLayers.Geometry.Point(parseFloat(a[c].getAttribute("x")),parseFloat(a[c].getAttribute("y"))));return new OpenLayers.Geometry.LinearRing(b)},CLASS_NAME:"OpenLayers.Format.ArcXML"});\n +OpenLayers.Format.ArcXML.Request=OpenLayers.Class({initialize:function(){return OpenLayers.Util.extend(this,{get_image:{properties:{background:null,draw:!0,envelope:{minx:0,miny:0,maxx:0,maxy:0},featurecoordsys:{id:0,string:"",datumtransformid:0,datumtransformstring:""},filtercoordsys:{id:0,string:"",datumtransformid:0,datumtransformstring:""},imagesize:{height:0,width:0,dpi:96,printheight:0,printwidth:0,scalesymbols:!1},layerlist:[],output:{baseurl:"",legendbaseurl:"",legendname:"",legendpath:"",\n +legendurl:"",name:"",path:"",type:"jpg",url:""}}},get_feature:{layer:"",query:{isspatial:!1,featurecoordsys:{id:0,string:"",datumtransformid:0,datumtransformstring:""},filtercoordsys:{id:0,string:"",datumtransformid:0,datumtransformstring:""},buffer:0,where:"",spatialfilter:{relation:"envelope_intersection",envelope:null}}},environment:{separators:{cs:" ",ts:";"}},layer:[],workspaces:[]})},CLASS_NAME:"OpenLayers.Format.ArcXML.Request"});\n +OpenLayers.Format.ArcXML.Response=OpenLayers.Class({initialize:function(){return OpenLayers.Util.extend(this,{image:{envelope:null,output:""},features:{featurecount:0,envelope:null,feature:[]},error:""})},CLASS_NAME:"OpenLayers.Format.ArcXML.Response"});OpenLayers.ProxyHost="";\n +OpenLayers.Request={DEFAULT_CONFIG:{method:"GET",url:window.location.href,async:!0,user:void 0,password:void 0,params:null,proxy:OpenLayers.ProxyHost,headers:{},data:null,callback:function(){},success:null,failure:null,scope:null},URL_SPLIT_REGEX:/([^:]*:)\\/\\/([^:]*:?[^@]*@)?([^:\\/\\?]*):?([^\\/\\?]*)/,events:new OpenLayers.Events(this),makeSameOrigin:function(a,b){var c=0!==a.indexOf("http"),d=!c&&a.match(this.URL_SPLIT_REGEX);if(d){var e=window.location,c=d[1]==e.protocol&&d[3]==e.hostname,d=d[4],\n +e=e.port;if(80!=d&&""!=d||"80"!=e&&""!=e)c=c&&d==e}c||(b?a="function"==typeof b?b(a):b+encodeURIComponent(a):OpenLayers.Console.warn(OpenLayers.i18n("proxyNeeded"),{url:a}));return a},issue:function(a){var b=OpenLayers.Util.extend(this.DEFAULT_CONFIG,{proxy:OpenLayers.ProxyHost}),a=OpenLayers.Util.applyDefaults(a,b),b=!1,c;for(c in a.headers)a.headers.hasOwnProperty(c)&&"x-requested-with"===c.toLowerCase()&&(b=!0);!1===b&&(a.headers["X-Requested-With"]="XMLHttpRequest");var d=new OpenLayers.Request.XMLHttpRequest,\n +e=OpenLayers.Util.urlAppend(a.url,OpenLayers.Util.getParameterString(a.params||{})),e=OpenLayers.Request.makeSameOrigin(e,a.proxy);d.open(a.method,e,a.async,a.user,a.password);for(var f in a.headers)d.setRequestHeader(f,a.headers[f]);var g=this.events,h=this;d.onreadystatechange=function(){d.readyState==OpenLayers.Request.XMLHttpRequest.DONE&&!1!==g.triggerEvent("complete",{request:d,config:a,requestUrl:e})&&h.runCallbacks({request:d,config:a,requestUrl:e})};!1===a.async?d.send(a.data):window.setTimeout(function(){0!==\n +d.readyState&&d.send(a.data)},0);return d},runCallbacks:function(a){var b=a.request,c=a.config,d=c.scope?OpenLayers.Function.bind(c.callback,c.scope):c.callback,e;c.success&&(e=c.scope?OpenLayers.Function.bind(c.success,c.scope):c.success);var f;c.failure&&(f=c.scope?OpenLayers.Function.bind(c.failure,c.scope):c.failure);"file:"==OpenLayers.Util.createUrlObject(c.url).protocol&&b.responseText&&(b.status=200);d(b);if(!b.status||200<=b.status&&300>b.status)this.events.triggerEvent("success",a),e&&e(b);\n +if(b.status&&(200>b.status||300<=b.status))this.events.triggerEvent("failure",a),f&&f(b)},GET:function(a){a=OpenLayers.Util.extend(a,{method:"GET"});return OpenLayers.Request.issue(a)},POST:function(a){a=OpenLayers.Util.extend(a,{method:"POST"});a.headers=a.headers?a.headers:{};"CONTENT-TYPE"in OpenLayers.Util.upperCaseObject(a.headers)||(a.headers["Content-Type"]="application/xml");return OpenLayers.Request.issue(a)},PUT:function(a){a=OpenLayers.Util.extend(a,{method:"PUT"});a.headers=a.headers?\n +a.headers:{};"CONTENT-TYPE"in OpenLayers.Util.upperCaseObject(a.headers)||(a.headers["Content-Type"]="application/xml");return OpenLayers.Request.issue(a)},DELETE:function(a){a=OpenLayers.Util.extend(a,{method:"DELETE"});return OpenLayers.Request.issue(a)},HEAD:function(a){a=OpenLayers.Util.extend(a,{method:"HEAD"});return OpenLayers.Request.issue(a)},OPTIONS:function(a){a=OpenLayers.Util.extend(a,{method:"OPTIONS"});return OpenLayers.Request.issue(a)}};OpenLayers.Layer.ArcIMS=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{ClientVersion:"9.2",ServiceName:""},featureCoordSys:"4326",filterCoordSys:"4326",layers:null,async:!0,name:"ArcIMS",isBaseLayer:!0,DEFAULT_OPTIONS:{tileSize:new OpenLayers.Size(512,512),featureCoordSys:"4326",filterCoordSys:"4326",layers:null,isBaseLayer:!0,async:!0,name:"ArcIMS"},initialize:function(a,b,c){this.tileSize=new OpenLayers.Size(512,512);this.params=OpenLayers.Util.applyDefaults({ServiceName:c.serviceName},\n +this.DEFAULT_PARAMS);this.options=OpenLayers.Util.applyDefaults(c,this.DEFAULT_OPTIONS);OpenLayers.Layer.Grid.prototype.initialize.apply(this,[a,b,this.params,c]);if(this.transparent&&(this.isBaseLayer||(this.isBaseLayer=!1),"image/jpeg"==this.format))this.format=OpenLayers.Util.alphaHack()?"image/gif":"image/png";null===this.options.layers&&(this.options.layers=[])},getURL:function(a){var b="",a=this.adjustBounds(a),a=new OpenLayers.Format.ArcXML(OpenLayers.Util.extend(this.options,{requesttype:"image",\n +envelope:a.toArray(),tileSize:this.tileSize})),a=new OpenLayers.Request.POST({url:this.getFullRequestString(),data:a.write(),async:!1});if(null!=a){b=a.responseXML;if(!b||!b.documentElement)b=a.responseText;b=this.getUrlOrImage((new OpenLayers.Format.ArcXML).read(b).image.output)}return b},getURLasync:function(a,b,c){a=this.adjustBounds(a);a=new OpenLayers.Format.ArcXML(OpenLayers.Util.extend(this.options,{requesttype:"image",envelope:a.toArray(),tileSize:this.tileSize}));OpenLayers.Request.POST({url:this.getFullRequestString(),\n +async:!0,data:a.write(),callback:function(a){var e=a.responseXML;if(!e||!e.documentElement)e=a.responseText;a=(new OpenLayers.Format.ArcXML).read(e);b.call(c,this.getUrlOrImage(a.image.output))},scope:this})},getUrlOrImage:function(a){var b="";a.url?b=a.url:a.data&&(b="data:image/"+a.type+";base64,"+a.data);return b},setLayerQuery:function(a,b){for(var c=0;c<this.options.layers.length;c++)if(a==this.options.layers[c].id){this.options.layers[c].query=b;return}this.options.layers.push({id:a,visible:!0,\n +query:b})},getFeatureInfo:function(a,b,c){var d=c.buffer||1,e=c.callback||function(){},f=c.scope||window,g={};OpenLayers.Util.extend(g,this.options);g.requesttype="feature";a instanceof OpenLayers.LonLat?(g.polygon=null,g.envelope=[a.lon-d,a.lat-d,a.lon+d,a.lat+d]):a instanceof OpenLayers.Geometry.Polygon&&(g.envelope=null,g.polygon=a);var h=new OpenLayers.Format.ArcXML(g);OpenLayers.Util.extend(h.request.get_feature,c);h.request.get_feature.layer=b.id;"number"==typeof b.query.accuracy?h.request.get_feature.query.accuracy=\n +b.query.accuracy:(a=this.map.getCenter(),c=this.map.getViewPortPxFromLonLat(a),c.x++,c=this.map.getLonLatFromPixel(c),h.request.get_feature.query.accuracy=c.lon-a.lon);h.request.get_feature.query.where=b.query.where;h.request.get_feature.query.spatialfilter.relation="area_intersection";OpenLayers.Request.POST({url:this.getFullRequestString({CustomService:"Query"}),data:h.write(),callback:function(a){a=h.parseResponse(a.responseText);h.iserror()?e.call(f,null):e.call(f,a.features)}})},clone:function(a){null==\n +a&&(a=new OpenLayers.Layer.ArcIMS(this.name,this.url,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},CLASS_NAME:"OpenLayers.Layer.ArcIMS"});OpenLayers.Format.OWSCommon.v1_1_0=OpenLayers.Class(OpenLayers.Format.OWSCommon.v1,{namespaces:{ows:"http://www.opengis.net/ows/1.1",xlink:"http://www.w3.org/1999/xlink"},readers:{ows:OpenLayers.Util.applyDefaults({ExceptionReport:function(a,b){b.exceptionReport={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),exceptions:[]};this.readChildNodes(a,b.exceptionReport)},AllowedValues:function(a,b){b.allowedValues={};this.readChildNodes(a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=\n +!0},DataType:function(a,b){b.dataType=this.getChildValue(a)},Range:function(a,b){b.range={};this.readChildNodes(a,b.range)},MinimumValue:function(a,b){b.minValue=this.getChildValue(a)},MaximumValue:function(a,b){b.maxValue=this.getChildValue(a)},Identifier:function(a,b){b.identifier=this.getChildValue(a)},SupportedCRS:function(a,b){b.supportedCRS=this.getChildValue(a)}},OpenLayers.Format.OWSCommon.v1.prototype.readers.ows)},writers:{ows:OpenLayers.Util.applyDefaults({Range:function(a){var b=this.createElementNSPlus("ows:Range",\n +{attributes:{"ows:rangeClosure":a.closure}});this.writeNode("ows:MinimumValue",a.minValue,b);this.writeNode("ows:MaximumValue",a.maxValue,b);return b},MinimumValue:function(a){return this.createElementNSPlus("ows:MinimumValue",{value:a})},MaximumValue:function(a){return this.createElementNSPlus("ows:MaximumValue",{value:a})},Value:function(a){return this.createElementNSPlus("ows:Value",{value:a})}},OpenLayers.Format.OWSCommon.v1.prototype.writers.ows)},CLASS_NAME:"OpenLayers.Format.OWSCommon.v1_1_0"});OpenLayers.Format.WCSGetCoverage=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ows:"http://www.opengis.net/ows/1.1",wcs:"http://www.opengis.net/wcs/1.1",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},VERSION:"1.1.2",schemaLocation:"http://www.opengis.net/wcs/1.1 http://schemas.opengis.net/wcs/1.1/wcsGetCoverage.xsd",write:function(a){a=this.writeNode("wcs:GetCoverage",\n +a);this.setAttributeNS(a,this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{wcs:{GetCoverage:function(a){var b=this.createElementNSPlus("wcs:GetCoverage",{attributes:{version:a.version||this.VERSION,service:"WCS"}});this.writeNode("ows:Identifier",a.identifier,b);this.writeNode("wcs:DomainSubset",a.domainSubset,b);this.writeNode("wcs:Output",a.output,b);return b},DomainSubset:function(a){var b=this.createElementNSPlus("wcs:DomainSubset",\n +{});this.writeNode("ows:BoundingBox",a.boundingBox,b);a.temporalSubset&&this.writeNode("wcs:TemporalSubset",a.temporalSubset,b);return b},TemporalSubset:function(a){for(var b=this.createElementNSPlus("wcs:TemporalSubset",{}),c=0,d=a.timePeriods.length;c<d;++c)this.writeNode("wcs:TimePeriod",a.timePeriods[c],b);return b},TimePeriod:function(a){var b=this.createElementNSPlus("wcs:TimePeriod",{});this.writeNode("wcs:BeginPosition",a.begin,b);this.writeNode("wcs:EndPosition",a.end,b);a.resolution&&this.writeNode("wcs:TimeResolution",\n +a.resolution,b);return b},BeginPosition:function(a){return this.createElementNSPlus("wcs:BeginPosition",{value:a})},EndPosition:function(a){return this.createElementNSPlus("wcs:EndPosition",{value:a})},TimeResolution:function(a){return this.createElementNSPlus("wcs:TimeResolution",{value:a})},Output:function(a){var b=this.createElementNSPlus("wcs:Output",{attributes:{format:a.format,store:a.store}});a.gridCRS&&this.writeNode("wcs:GridCRS",a.gridCRS,b);return b},GridCRS:function(a){var b=this.createElementNSPlus("wcs:GridCRS",\n +{});this.writeNode("wcs:GridBaseCRS",a.baseCRS,b);a.type&&this.writeNode("wcs:GridType",a.type,b);a.origin&&this.writeNode("wcs:GridOrigin",a.origin,b);this.writeNode("wcs:GridOffsets",a.offsets,b);a.CS&&this.writeNode("wcs:GridCS",a.CS,b);return b},GridBaseCRS:function(a){return this.createElementNSPlus("wcs:GridBaseCRS",{value:a})},GridOrigin:function(a){return this.createElementNSPlus("wcs:GridOrigin",{value:a})},GridType:function(a){return this.createElementNSPlus("wcs:GridType",{value:a})},GridOffsets:function(a){return this.createElementNSPlus("wcs:GridOffsets",\n +{value:a})},GridCS:function(a){return this.createElementNSPlus("wcs:GridCS",{value:a})}},ows:OpenLayers.Format.OWSCommon.v1_1_0.prototype.writers.ows},CLASS_NAME:"OpenLayers.Format.WCSGetCoverage"});OpenLayers.Format.WPSExecute=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ows:"http://www.opengis.net/ows/1.1",gml:"http://www.opengis.net/gml",wps:"http://www.opengis.net/wps/1.0.0",wfs:"http://www.opengis.net/wfs",ogc:"http://www.opengis.net/ogc",wcs:"http://www.opengis.net/wcs",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},VERSION:"1.0.0",schemaLocation:"http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd",\n +schemaLocationAttr:function(){},write:function(a){var b;window.ActiveXObject?this.xmldom=b=new ActiveXObject("Microsoft.XMLDOM"):b=document.implementation.createDocument("","",null);a=this.writeNode("wps:Execute",a,b);this.setAttributeNS(a,this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{wps:{Execute:function(a){var b=this.createElementNSPlus("wps:Execute",{attributes:{version:this.VERSION,service:"WPS"}});this.writeNode("ows:Identifier",\n +a.identifier,b);this.writeNode("wps:DataInputs",a.dataInputs,b);this.writeNode("wps:ResponseForm",a.responseForm,b);return b},ResponseForm:function(a){var b=this.createElementNSPlus("wps:ResponseForm",{});a.rawDataOutput&&this.writeNode("wps:RawDataOutput",a.rawDataOutput,b);a.responseDocument&&this.writeNode("wps:ResponseDocument",a.responseDocument,b);return b},ResponseDocument:function(a){var b=this.createElementNSPlus("wps:ResponseDocument",{attributes:{storeExecuteResponse:a.storeExecuteResponse,\n +lineage:a.lineage,status:a.status}});a.output&&this.writeNode("wps:Output",a.output,b);return b},Output:function(a){var b=this.createElementNSPlus("wps:Output",{attributes:{asReference:a.asReference}});this.writeNode("ows:Identifier",a.identifier,b);this.writeNode("ows:Title",a.title,b);this.writeNode("ows:Abstract",a["abstract"],b);return b},RawDataOutput:function(a){var b=this.createElementNSPlus("wps:RawDataOutput",{attributes:{mimeType:a.mimeType}});this.writeNode("ows:Identifier",a.identifier,\n +b);return b},DataInputs:function(a){for(var b=this.createElementNSPlus("wps:DataInputs",{}),c=0,d=a.length;c<d;++c)this.writeNode("wps:Input",a[c],b);return b},Input:function(a){var b=this.createElementNSPlus("wps:Input",{});this.writeNode("ows:Identifier",a.identifier,b);a.title&&this.writeNode("ows:Title",a.title,b);a.data&&this.writeNode("wps:Data",a.data,b);a.reference&&this.writeNode("wps:Reference",a.reference,b);return b},Data:function(a){var b=this.createElementNSPlus("wps:Data",{});a.literalData?\n +this.writeNode("wps:LiteralData",a.literalData,b):a.complexData&&this.writeNode("wps:ComplexData",a.complexData,b);return b},LiteralData:function(a){return this.createElementNSPlus("wps:LiteralData",{attributes:{uom:a.uom},value:a.value})},ComplexData:function(a){var b=this.createElementNSPlus("wps:ComplexData",{attributes:{mimeType:a.mimeType,encoding:a.encoding,schema:a.schema}}),c=a.value;"string"===typeof c?b.appendChild(this.getXMLDoc().createCDATASection(a.value)):b.appendChild(c);return b},\n +Reference:function(a){var b=this.createElementNSPlus("wps:Reference",{attributes:{mimeType:a.mimeType,"xlink:href":a.href,method:a.method,encoding:a.encoding,schema:a.schema}});a.body&&this.writeNode("wps:Body",a.body,b);return b},Body:function(a){var b=this.createElementNSPlus("wps:Body",{});a.wcs?this.writeNode("wcs:GetCoverage",a.wcs,b):a.wfs?(this.featureType=a.wfs.featureType,this.version=a.wfs.version,this.writeNode("wfs:GetFeature",a.wfs,b)):this.writeNode("wps:Execute",a,b);return b}},wcs:OpenLayers.Format.WCSGetCoverage.prototype.writers.wcs,\n +wfs:OpenLayers.Format.WFST.v1_1_0.prototype.writers.wfs,ogc:OpenLayers.Format.Filter.v1_1_0.prototype.writers.ogc,ows:OpenLayers.Format.OWSCommon.v1_1_0.prototype.writers.ows},CLASS_NAME:"OpenLayers.Format.WPSExecute"});OpenLayers.Control.PanZoom=OpenLayers.Class(OpenLayers.Control,{slideFactor:50,slideRatio:null,buttons:null,position:null,initialize:function(a){this.position=new OpenLayers.Pixel(OpenLayers.Control.PanZoom.X,OpenLayers.Control.PanZoom.Y);OpenLayers.Control.prototype.initialize.apply(this,arguments)},destroy:function(){this.map&&this.map.events.unregister("buttonclick",this,this.onButtonClick);this.removeButtons();this.position=this.buttons=null;OpenLayers.Control.prototype.destroy.apply(this,arguments)},\n +setMap:function(a){OpenLayers.Control.prototype.setMap.apply(this,arguments);this.map.events.register("buttonclick",this,this.onButtonClick)},draw:function(a){OpenLayers.Control.prototype.draw.apply(this,arguments);a=this.position;this.buttons=[];var b={w:18,h:18},c=new OpenLayers.Pixel(a.x+b.w/2,a.y);this._addButton("panup","north-mini.png",c,b);a.y=c.y+b.h;this._addButton("panleft","west-mini.png",a,b);this._addButton("panright","east-mini.png",a.add(b.w,0),b);this._addButton("pandown","south-mini.png",\n +c.add(0,2*b.h),b);this._addButton("zoomin","zoom-plus-mini.png",c.add(0,3*b.h+5),b);this._addButton("zoomworld","zoom-world-mini.png",c.add(0,4*b.h+5),b);this._addButton("zoomout","zoom-minus-mini.png",c.add(0,5*b.h+5),b);return this.div},_addButton:function(a,b,c,d){b=OpenLayers.Util.getImageLocation(b);c=OpenLayers.Util.createAlphaImageDiv(this.id+"_"+a,c,d,b,"absolute");c.style.cursor="pointer";this.div.appendChild(c);c.action=a;c.className="olButton";this.buttons.push(c);return c},_removeButton:function(a){this.div.removeChild(a);\n +OpenLayers.Util.removeItem(this.buttons,a)},removeButtons:function(){for(var a=this.buttons.length-1;0<=a;--a)this._removeButton(this.buttons[a])},onButtonClick:function(a){switch(a.buttonElement.action){case "panup":this.map.pan(0,-this.getSlideFactor("h"));break;case "pandown":this.map.pan(0,this.getSlideFactor("h"));break;case "panleft":this.map.pan(-this.getSlideFactor("w"),0);break;case "panright":this.map.pan(this.getSlideFactor("w"),0);break;case "zoomin":this.map.zoomIn();break;case "zoomout":this.map.zoomOut();\n +break;case "zoomworld":this.map.zoomToMaxExtent()}},getSlideFactor:function(a){return this.slideRatio?this.map.getSize()[a]*this.slideRatio:this.slideFactor},CLASS_NAME:"OpenLayers.Control.PanZoom"});OpenLayers.Control.PanZoom.X=4;OpenLayers.Control.PanZoom.Y=4;OpenLayers.Control.PanZoomBar=OpenLayers.Class(OpenLayers.Control.PanZoom,{zoomStopWidth:18,zoomStopHeight:11,slider:null,sliderEvents:null,zoombarDiv:null,zoomWorldIcon:!1,panIcons:!0,forceFixedZoomLevel:!1,mouseDragStart:null,deltaY:null,zoomStart:null,destroy:function(){this._removeZoomBar();this.map.events.un({changebaselayer:this.redraw,scope:this});OpenLayers.Control.PanZoom.prototype.destroy.apply(this,arguments);delete this.mouseDragStart;delete this.zoomStart},setMap:function(a){OpenLayers.Control.PanZoom.prototype.setMap.apply(this,\n +arguments);this.map.events.register("changebaselayer",this,this.redraw)},redraw:function(){null!=this.div&&(this.removeButtons(),this._removeZoomBar());this.draw()},draw:function(a){OpenLayers.Control.prototype.draw.apply(this,arguments);a=this.position.clone();this.buttons=[];var b={w:18,h:18};if(this.panIcons){var c=new OpenLayers.Pixel(a.x+b.w/2,a.y),d=b.w;this.zoomWorldIcon&&(c=new OpenLayers.Pixel(a.x+b.w,a.y));this._addButton("panup","north-mini.png",c,b);a.y=c.y+b.h;this._addButton("panleft",\n +"west-mini.png",a,b);this.zoomWorldIcon&&(this._addButton("zoomworld","zoom-world-mini.png",a.add(b.w,0),b),d*=2);this._addButton("panright","east-mini.png",a.add(d,0),b);this._addButton("pandown","south-mini.png",c.add(0,2*b.h),b);this._addButton("zoomin","zoom-plus-mini.png",c.add(0,3*b.h+5),b);c=this._addZoomBar(c.add(0,4*b.h+5));this._addButton("zoomout","zoom-minus-mini.png",c,b)}else this._addButton("zoomin","zoom-plus-mini.png",a,b),c=this._addZoomBar(a.add(0,b.h)),this._addButton("zoomout",\n +"zoom-minus-mini.png",c,b),this.zoomWorldIcon&&(c=c.add(0,b.h+3),this._addButton("zoomworld","zoom-world-mini.png",c,b));return this.div},_addZoomBar:function(a){var b=OpenLayers.Util.getImageLocation("slider.png"),c=this.id+"_"+this.map.id,d=this.map.getNumZoomLevels()-1-this.map.getZoom(),d=OpenLayers.Util.createAlphaImageDiv(c,a.add(-1,d*this.zoomStopHeight),{w:20,h:9},b,"absolute");d.style.cursor="move";this.slider=d;this.sliderEvents=new OpenLayers.Events(this,d,null,!0,{includeXY:!0});this.sliderEvents.on({touchstart:this.zoomBarDown,\n +touchmove:this.zoomBarDrag,touchend:this.zoomBarUp,mousedown:this.zoomBarDown,mousemove:this.zoomBarDrag,mouseup:this.zoomBarUp});var e={w:this.zoomStopWidth,h:this.zoomStopHeight*this.map.getNumZoomLevels()},b=OpenLayers.Util.getImageLocation("zoombar.png"),c=null;OpenLayers.Util.alphaHack()?(c=this.id+"_"+this.map.id,c=OpenLayers.Util.createAlphaImageDiv(c,a,{w:e.w,h:this.zoomStopHeight},b,"absolute",null,"crop"),c.style.height=e.h+"px"):c=OpenLayers.Util.createDiv("OpenLayers_Control_PanZoomBar_Zoombar"+\n +this.map.id,a,e,b);c.style.cursor="pointer";c.className="olButton";this.zoombarDiv=c;this.div.appendChild(c);this.startTop=parseInt(c.style.top);this.div.appendChild(d);this.map.events.register("zoomend",this,this.moveZoomBar);return a=a.add(0,this.zoomStopHeight*this.map.getNumZoomLevels())},_removeZoomBar:function(){this.sliderEvents.un({touchstart:this.zoomBarDown,touchmove:this.zoomBarDrag,touchend:this.zoomBarUp,mousedown:this.zoomBarDown,mousemove:this.zoomBarDrag,mouseup:this.zoomBarUp});this.sliderEvents.destroy();\n +this.div.removeChild(this.zoombarDiv);this.zoombarDiv=null;this.div.removeChild(this.slider);this.slider=null;this.map.events.unregister("zoomend",this,this.moveZoomBar)},onButtonClick:function(a){OpenLayers.Control.PanZoom.prototype.onButtonClick.apply(this,arguments);if(a.buttonElement===this.zoombarDiv){var b=a.buttonXY.y/this.zoomStopHeight;if(this.forceFixedZoomLevel||!this.map.fractionalZoom)b=Math.floor(b);b=this.map.getNumZoomLevels()-1-b;b=Math.min(Math.max(b,0),this.map.getNumZoomLevels()-\n +1);this.map.zoomTo(b)}},passEventToSlider:function(a){this.sliderEvents.handleBrowserEvent(a)},zoomBarDown:function(a){if(OpenLayers.Event.isLeftClick(a)||OpenLayers.Event.isSingleTouch(a))this.map.events.on({touchmove:this.passEventToSlider,mousemove:this.passEventToSlider,mouseup:this.passEventToSlider,scope:this}),this.mouseDragStart=a.xy.clone(),this.zoomStart=a.xy.clone(),this.div.style.cursor="move",this.zoombarDiv.offsets=null,OpenLayers.Event.stop(a)},zoomBarDrag:function(a){if(null!=this.mouseDragStart){var b=\n +this.mouseDragStart.y-a.xy.y,c=OpenLayers.Util.pagePosition(this.zoombarDiv);0<a.clientY-c[1]&&a.clientY-c[1]<parseInt(this.zoombarDiv.style.height)-2&&(this.slider.style.top=parseInt(this.slider.style.top)-b+"px",this.mouseDragStart=a.xy.clone());this.deltaY=this.zoomStart.y-a.xy.y;OpenLayers.Event.stop(a)}},zoomBarUp:function(a){if((OpenLayers.Event.isLeftClick(a)||"touchend"===a.type)&&this.mouseDragStart){this.div.style.cursor="";this.map.events.un({touchmove:this.passEventToSlider,mouseup:this.passEventToSlider,\n +mousemove:this.passEventToSlider,scope:this});var b=this.map.zoom;!this.forceFixedZoomLevel&&this.map.fractionalZoom?(b+=this.deltaY/this.zoomStopHeight,b=Math.min(Math.max(b,0),this.map.getNumZoomLevels()-1)):(b+=this.deltaY/this.zoomStopHeight,b=Math.max(Math.round(b),0));this.map.zoomTo(b);this.zoomStart=this.mouseDragStart=null;this.deltaY=0;OpenLayers.Event.stop(a)}},moveZoomBar:function(){this.slider.style.top=(this.map.getNumZoomLevels()-1-this.map.getZoom())*this.zoomStopHeight+this.startTop+\n +1+"px"},CLASS_NAME:"OpenLayers.Control.PanZoomBar"});OpenLayers.Format.WFSCapabilities=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.1.0",errorProperty:"service",CLASS_NAME:"OpenLayers.Format.WFSCapabilities"});OpenLayers.Format.WFSCapabilities.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{wfs:"http://www.opengis.net/wfs",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance",ows:"http://www.opengis.net/ows"},defaultPrefix:"wfs",read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.readNode(a,b);return b},readers:{wfs:{WFS_Capabilities:function(a,b){this.readChildNodes(a,b)},\n +FeatureTypeList:function(a,b){b.featureTypeList={featureTypes:[]};this.readChildNodes(a,b.featureTypeList)},FeatureType:function(a,b){var c={};this.readChildNodes(a,c);b.featureTypes.push(c)},Name:function(a,b){var c=this.getChildValue(a);c&&(c=c.split(":"),b.name=c.pop(),0<c.length&&(b.featureNS=this.lookupNamespaceURI(a,c[0])))},Title:function(a,b){var c=this.getChildValue(a);c&&(b.title=c)},Abstract:function(a,b){var c=this.getChildValue(a);c&&(b["abstract"]=c)}}},CLASS_NAME:"OpenLayers.Format.WFSCapabilities.v1"});OpenLayers.Format.WFSCapabilities.v1_1_0=OpenLayers.Class(OpenLayers.Format.WFSCapabilities.v1,{regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},readers:{wfs:OpenLayers.Util.applyDefaults({DefaultSRS:function(a,b){var c=this.getChildValue(a);c&&(b.srs=c)}},OpenLayers.Format.WFSCapabilities.v1.prototype.readers.wfs),ows:OpenLayers.Format.OWSCommon.v1.prototype.readers.ows},CLASS_NAME:"OpenLayers.Format.WFSCapabilities.v1_1_0"});OpenLayers.Layer.Image=OpenLayers.Class(OpenLayers.Layer,{isBaseLayer:!0,url:null,extent:null,size:null,tile:null,aspectRatio:null,initialize:function(a,b,c,d,e){this.url=b;this.maxExtent=this.extent=c;this.size=d;OpenLayers.Layer.prototype.initialize.apply(this,[a,e]);this.aspectRatio=this.extent.getHeight()/this.size.h/(this.extent.getWidth()/this.size.w)},destroy:function(){this.tile&&(this.removeTileMonitoringHooks(this.tile),this.tile.destroy(),this.tile=null);OpenLayers.Layer.prototype.destroy.apply(this,\n +arguments)},clone:function(a){null==a&&(a=new OpenLayers.Layer.Image(this.name,this.url,this.extent,this.size,this.getOptions()));return a=OpenLayers.Layer.prototype.clone.apply(this,[a])},setMap:function(a){null==this.options.maxResolution&&(this.options.maxResolution=this.aspectRatio*this.extent.getWidth()/this.size.w);OpenLayers.Layer.prototype.setMap.apply(this,arguments)},moveTo:function(a,b,c){OpenLayers.Layer.prototype.moveTo.apply(this,arguments);var d=null==this.tile;if(b||d){this.setTileSize();\n +var e=this.map.getLayerPxFromLonLat({lon:this.extent.left,lat:this.extent.top});d?(this.tile=new OpenLayers.Tile.Image(this,e,this.extent,null,this.tileSize),this.addTileMonitoringHooks(this.tile)):(this.tile.size=this.tileSize.clone(),this.tile.position=e.clone());this.tile.draw()}},setTileSize:function(){var a=this.extent.getWidth()/this.map.getResolution(),b=this.extent.getHeight()/this.map.getResolution();this.tileSize=new OpenLayers.Size(a,b)},addTileMonitoringHooks:function(a){a.onLoadStart=\n +function(){this.events.triggerEvent("loadstart")};a.events.register("loadstart",this,a.onLoadStart);a.onLoadEnd=function(){this.events.triggerEvent("loadend")};a.events.register("loadend",this,a.onLoadEnd);a.events.register("unload",this,a.onLoadEnd)},removeTileMonitoringHooks:function(a){a.unload();a.events.un({loadstart:a.onLoadStart,loadend:a.onLoadEnd,unload:a.onLoadEnd,scope:this})},setUrl:function(a){this.url=a;this.tile.draw()},getURL:function(){return this.url},CLASS_NAME:"OpenLayers.Layer.Image"});OpenLayers.Strategy=OpenLayers.Class({layer:null,options:null,active:null,autoActivate:!0,autoDestroy:!0,initialize:function(a){OpenLayers.Util.extend(this,a);this.options=a;this.active=!1},destroy:function(){this.deactivate();this.options=this.layer=null},setLayer:function(a){this.layer=a},activate:function(){return!this.active?this.active=!0:!1},deactivate:function(){return this.active?(this.active=!1,!0):!1},CLASS_NAME:"OpenLayers.Strategy"});OpenLayers.Strategy.Save=OpenLayers.Class(OpenLayers.Strategy,{events:null,auto:!1,timer:null,initialize:function(a){OpenLayers.Strategy.prototype.initialize.apply(this,[a]);this.events=new OpenLayers.Events(this)},activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);if(a&&this.auto)if("number"===typeof this.auto)this.timer=window.setInterval(OpenLayers.Function.bind(this.save,this),1E3*this.auto);else this.layer.events.on({featureadded:this.triggerSave,afterfeaturemodified:this.triggerSave,\n +scope:this});return a},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);a&&this.auto&&("number"===typeof this.auto?window.clearInterval(this.timer):this.layer.events.un({featureadded:this.triggerSave,afterfeaturemodified:this.triggerSave,scope:this}));return a},triggerSave:function(a){var b=a.feature;(b.state===OpenLayers.State.INSERT||b.state===OpenLayers.State.UPDATE||b.state===OpenLayers.State.DELETE)&&this.save([a.feature])},save:function(a){a||(a=this.layer.features);\n +this.events.triggerEvent("start",{features:a});var b=this.layer.projection,c=this.layer.map.getProjectionObject();if(!c.equals(b)){for(var d=a.length,e=Array(d),f,g,h=0;h<d;++h)f=a[h],g=f.clone(),g.fid=f.fid,g.state=f.state,f.url&&(g.url=f.url),g._original=f,g.geometry.transform(c,b),e[h]=g;a=e}this.layer.protocol.commit(a,{callback:this.onCommit,scope:this})},onCommit:function(a){var b={response:a};if(a.success()){for(var c=a.reqFeatures,d,e=[],f=a.insertIds||[],g=0,h=0,i=c.length;h<i;++h)if(d=c[h],\n +d=d._original||d,a=d.state)a==OpenLayers.State.DELETE?e.push(d):a==OpenLayers.State.INSERT&&(d.fid=f[g],++g),d.state=null;0<e.length&&this.layer.destroyFeatures(e);this.events.triggerEvent("success",b)}else this.events.triggerEvent("fail",b)},CLASS_NAME:"OpenLayers.Strategy.Save"});OpenLayers.Format.GPX=OpenLayers.Class(OpenLayers.Format.XML,{defaultDesc:"No description available",extractWaypoints:!0,extractTracks:!0,extractRoutes:!0,extractAttributes:!0,namespaces:{gpx:"http://www.topografix.com/GPX/1/1",xsi:"http://www.w3.org/2001/XMLSchema-instance"},schemaLocation:"http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd",creator:"OpenLayers",initialize:function(a){this.externalProjection=new OpenLayers.Projection("EPSG:4326");OpenLayers.Format.XML.prototype.initialize.apply(this,\n +[a])},read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var b=[];if(this.extractTracks)for(var c=a.getElementsByTagName("trk"),d=0,e=c.length;d<e;d++){var f={};this.extractAttributes&&(f=this.parseAttributes(c[d]));for(var g=this.getElementsByTagNameNS(c[d],c[d].namespaceURI,"trkseg"),h=0,i=g.length;h<i;h++){var j=this.extractSegment(g[h],"trkpt");b.push(new OpenLayers.Feature.Vector(j,f))}}if(this.extractRoutes){e=a.getElementsByTagName("rte");c=0;for(d=\n +e.length;c<d;c++)f={},this.extractAttributes&&(f=this.parseAttributes(e[c])),g=this.extractSegment(e[c],"rtept"),b.push(new OpenLayers.Feature.Vector(g,f))}if(this.extractWaypoints){a=a.getElementsByTagName("wpt");c=0;for(e=a.length;c<e;c++)f={},this.extractAttributes&&(f=this.parseAttributes(a[c])),d=new OpenLayers.Geometry.Point(a[c].getAttribute("lon"),a[c].getAttribute("lat")),b.push(new OpenLayers.Feature.Vector(d,f))}if(this.internalProjection&&this.externalProjection){f=0;for(a=b.length;f<\n +a;f++)b[f].geometry.transform(this.externalProjection,this.internalProjection)}return b},extractSegment:function(a,b){for(var c=this.getElementsByTagNameNS(a,a.namespaceURI,b),d=[],e=0,f=c.length;e<f;e++)d.push(new OpenLayers.Geometry.Point(c[e].getAttribute("lon"),c[e].getAttribute("lat")));return new OpenLayers.Geometry.LineString(d)},parseAttributes:function(a){for(var b={},a=a.firstChild,c,d;a;){if(1==a.nodeType&&a.firstChild&&(c=a.firstChild,3==c.nodeType||4==c.nodeType))d=a.prefix?a.nodeName.split(":")[1]:\n +a.nodeName,"trkseg"!=d&&"rtept"!=d&&(b[d]=c.nodeValue);a=a.nextSibling}return b},write:function(a,b){var a=OpenLayers.Util.isArray(a)?a:[a],c=this.createElementNS(this.namespaces.gpx,"gpx");c.setAttribute("version","1.1");c.setAttribute("creator",this.creator);this.setAttributes(c,{"xsi:schemaLocation":this.schemaLocation});b&&"object"==typeof b&&c.appendChild(this.buildMetadataNode(b));for(var d=0,e=a.length;d<e;d++)c.appendChild(this.buildFeatureNode(a[d]));return OpenLayers.Format.XML.prototype.write.apply(this,\n +[c])},buildMetadataNode:function(a){for(var b=["name","desc","author"],c=this.createElementNSPlus("gpx:metadata"),d=0;d<b.length;d++){var e=b[d];if(a[e]){var f=this.createElementNSPlus("gpx:"+e);f.appendChild(this.createTextNode(a[e]));c.appendChild(f)}}return c},buildFeatureNode:function(a){var b=a.geometry,b=b.clone();this.internalProjection&&this.externalProjection&&b.transform(this.internalProjection,this.externalProjection);if("OpenLayers.Geometry.Point"==b.CLASS_NAME){var c=this.buildWptNode(b);\n +this.appendAttributesNode(c,a);return c}c=this.createElementNSPlus("gpx:trk");this.appendAttributesNode(c,a);for(var a=this.buildTrkSegNode(b),a=OpenLayers.Util.isArray(a)?a:[a],b=0,d=a.length;b<d;b++)c.appendChild(a[b]);return c},buildTrkSegNode:function(a){var b,c,d,e;if("OpenLayers.Geometry.LineString"==a.CLASS_NAME||"OpenLayers.Geometry.LinearRing"==a.CLASS_NAME){b=this.createElementNSPlus("gpx:trkseg");c=0;for(d=a.components.length;c<d;c++)e=a.components[c],b.appendChild(this.buildTrkPtNode(e));\n +return b}b=[];c=0;for(d=a.components.length;c<d;c++)b.push(this.buildTrkSegNode(a.components[c]));return b},buildTrkPtNode:function(a){var b=this.createElementNSPlus("gpx:trkpt");b.setAttribute("lon",a.x);b.setAttribute("lat",a.y);return b},buildWptNode:function(a){var b=this.createElementNSPlus("gpx:wpt");b.setAttribute("lon",a.x);b.setAttribute("lat",a.y);return b},appendAttributesNode:function(a,b){var c=this.createElementNSPlus("gpx:name");c.appendChild(this.createTextNode(b.attributes.name||\n +b.id));a.appendChild(c);c=this.createElementNSPlus("gpx:desc");c.appendChild(this.createTextNode(b.attributes.description||this.defaultDesc));a.appendChild(c)},CLASS_NAME:"OpenLayers.Format.GPX"});OpenLayers.Format.WMSDescribeLayer=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.1.1",getVersion:function(a,b){var c=OpenLayers.Format.XML.VersionedOGC.prototype.getVersion.apply(this,arguments);if("1.1.1"==c||"1.1.0"==c)c="1.1";return c},CLASS_NAME:"OpenLayers.Format.WMSDescribeLayer"});OpenLayers.Format.WMSDescribeLayer.v1_1=OpenLayers.Class(OpenLayers.Format.WMSDescribeLayer,{initialize:function(a){OpenLayers.Format.WMSDescribeLayer.prototype.initialize.apply(this,[a])},read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));for(var a=a.documentElement.childNodes,b=[],c,d,e=0;e<a.length;++e)if(c=a[e],d=c.nodeName,"LayerDescription"==d){d=c.getAttribute("name");var f="",g="",h="";c.getAttribute("owsType")?(f=c.getAttribute("owsType"),g=c.getAttribute("owsURL")):\n +""!=c.getAttribute("wfs")?(f="WFS",g=c.getAttribute("wfs")):""!=c.getAttribute("wcs")&&(f="WCS",g=c.getAttribute("wcs"));c=c.getElementsByTagName("Query");0<c.length&&((h=c[0].getAttribute("typeName"))||(h=c[0].getAttribute("typename")));b.push({layerName:d,owsType:f,owsURL:g,typeName:h})}return b},CLASS_NAME:"OpenLayers.Format.WMSDescribeLayer.v1_1"});OpenLayers.Layer.XYZ=OpenLayers.Class(OpenLayers.Layer.Grid,{isBaseLayer:!0,sphericalMercator:!1,zoomOffset:0,serverResolutions:null,initialize:function(a,b,c){if(c&&c.sphericalMercator||this.sphericalMercator)c=OpenLayers.Util.extend({projection:"EPSG:900913",numZoomLevels:19},c);OpenLayers.Layer.Grid.prototype.initialize.apply(this,[a||this.name,b||this.url,{},c])},clone:function(a){null==a&&(a=new OpenLayers.Layer.XYZ(this.name,this.url,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,\n +[a])},getURL:function(a){var a=this.getXYZ(a),b=this.url;OpenLayers.Util.i + +]]></string> </value> + </item> + <item> + <key> <string>next</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="6" aka="AAAAAAAAAAY="> + <pickle> + <global name="Pdata" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +sArray(b)&&(b=this.selectUrl(""+a.x+a.y+a.z,b));return OpenLayers.String.format(b,a)},getXYZ:function(a){var b=this.getServerResolution(),c=Math.round((a.left-this.maxExtent.left)/(b*this.tileSize.w)),a=Math.round((this.maxExtent.top-a.top)/(b*this.tileSize.h)),b=this.getServerZoom();if(this.wrapDateLine)var d=Math.pow(2,b),c=(c%d+d)%d;return{x:c,y:a,z:b}},setMap:function(a){OpenLayers.Layer.Grid.prototype.setMap.apply(this,\n +arguments);this.tileOrigin||(this.tileOrigin=new OpenLayers.LonLat(this.maxExtent.left,this.maxExtent.bottom))},CLASS_NAME:"OpenLayers.Layer.XYZ"});OpenLayers.Layer.OSM=OpenLayers.Class(OpenLayers.Layer.XYZ,{name:"OpenStreetMap",url:["http://a.tile.openstreetmap.org/${z}/${x}/${y}.png","http://b.tile.openstreetmap.org/${z}/${x}/${y}.png","http://c.tile.openstreetmap.org/${z}/${x}/${y}.png"],attribution:"Data CC-By-SA by <a href=\'http://openstreetmap.org/\'>OpenStreetMap</a>",sphericalMercator:!0,wrapDateLine:!0,tileOptions:null,initialize:function(a,b,c){OpenLayers.Layer.XYZ.prototype.initialize.apply(this,arguments);this.tileOptions=OpenLayers.Util.extend({crossOriginKeyword:"anonymous"},\n +this.options&&this.options.tileOptions)},clone:function(a){null==a&&(a=new OpenLayers.Layer.OSM(this.name,this.url,this.getOptions()));return a=OpenLayers.Layer.XYZ.prototype.clone.apply(this,[a])},CLASS_NAME:"OpenLayers.Layer.OSM"});OpenLayers.Renderer=OpenLayers.Class({container:null,root:null,extent:null,locked:!1,size:null,resolution:null,map:null,featureDx:0,initialize:function(a,b){this.container=OpenLayers.Util.getElement(a);OpenLayers.Util.extend(this,b)},destroy:function(){this.map=this.resolution=this.size=this.extent=this.container=null},supported:function(){return!1},setExtent:function(a,b){this.extent=a.clone();if(this.map.baseLayer&&this.map.baseLayer.wrapDateLine){var c=a.getWidth()/this.map.getExtent().getWidth(),\n +a=a.scale(1/c);this.extent=a.wrapDateLine(this.map.getMaxExtent()).scale(c)}b&&(this.resolution=null);return!0},setSize:function(a){this.size=a.clone();this.resolution=null},getResolution:function(){return this.resolution=this.resolution||this.map.getResolution()},drawFeature:function(a,b){null==b&&(b=a.style);if(a.geometry){var c=a.geometry.getBounds();if(c){var d;this.map.baseLayer&&this.map.baseLayer.wrapDateLine&&(d=this.map.getMaxExtent());c.intersectsBounds(this.extent,{worldBounds:d})?this.calculateFeatureDx(c,\n +d):b={display:"none"};c=this.drawGeometry(a.geometry,b,a.id);if("none"!=b.display&&b.label&&!1!==c){d=a.geometry.getCentroid();if(b.labelXOffset||b.labelYOffset){var e=isNaN(b.labelXOffset)?0:b.labelXOffset,f=isNaN(b.labelYOffset)?0:b.labelYOffset,g=this.getResolution();d.move(e*g,f*g)}this.drawText(a.id,b,d)}else this.removeText(a.id);return c}}},calculateFeatureDx:function(a,b){this.featureDx=0;if(b){var c=b.getWidth();this.featureDx=Math.round(((a.left+a.right)/2-(this.extent.left+this.extent.right)/\n +2)/c)*c}},drawGeometry:function(){},drawText:function(){},removeText:function(){},clear:function(){},getFeatureIdFromEvent:function(){},eraseFeatures:function(a){OpenLayers.Util.isArray(a)||(a=[a]);for(var b=0,c=a.length;b<c;++b){var d=a[b];this.eraseGeometry(d.geometry,d.id);this.removeText(d.id)}},eraseGeometry:function(){},moveRoot:function(){},getRenderLayerId:function(){return this.container.id},applyDefaultSymbolizer:function(a){var b=OpenLayers.Util.extend({},OpenLayers.Renderer.defaultSymbolizer);\n +!1===a.stroke&&(delete b.strokeWidth,delete b.strokeColor);!1===a.fill&&delete b.fillColor;OpenLayers.Util.extend(b,a);return b},CLASS_NAME:"OpenLayers.Renderer"});OpenLayers.Renderer.defaultSymbolizer={fillColor:"#000000",strokeColor:"#000000",strokeWidth:2,fillOpacity:1,strokeOpacity:1,pointRadius:0,labelAlign:"cm"};\n +OpenLayers.Renderer.symbol={star:[350,75,379,161,469,161,397,215,423,301,350,250,277,301,303,215,231,161,321,161,350,75],cross:[4,0,6,0,6,4,10,4,10,6,6,6,6,10,4,10,4,6,0,6,0,4,4,4,4,0],x:[0,0,25,0,50,35,75,0,100,0,65,50,100,100,75,100,50,65,25,100,0,100,35,50,0,0],square:[0,0,0,1,1,1,1,0,0,0],triangle:[0,10,10,10,5,0,0,10]};OpenLayers.Renderer.Canvas=OpenLayers.Class(OpenLayers.Renderer,{hitDetection:!0,hitOverflow:0,canvas:null,features:null,pendingRedraw:!1,cachedSymbolBounds:{},initialize:function(a,b){OpenLayers.Renderer.prototype.initialize.apply(this,arguments);this.root=document.createElement("canvas");this.container.appendChild(this.root);this.canvas=this.root.getContext("2d");this.features={};this.hitDetection&&(this.hitCanvas=document.createElement("canvas"),this.hitContext=this.hitCanvas.getContext("2d"))},\n +setExtent:function(){OpenLayers.Renderer.prototype.setExtent.apply(this,arguments);return!1},eraseGeometry:function(a,b){this.eraseFeatures(this.features[b][0])},supported:function(){return OpenLayers.CANVAS_SUPPORTED},setSize:function(a){this.size=a.clone();var b=this.root;b.style.width=a.w+"px";b.style.height=a.h+"px";b.width=a.w;b.height=a.h;this.resolution=null;this.hitDetection&&(b=this.hitCanvas,b.style.width=a.w+"px",b.style.height=a.h+"px",b.width=a.w,b.height=a.h)},drawFeature:function(a,\n +b){var c;if(a.geometry){b=this.applyDefaultSymbolizer(b||a.style);c=a.geometry.getBounds();var d;this.map.baseLayer&&this.map.baseLayer.wrapDateLine&&(d=this.map.getMaxExtent());d=c&&c.intersectsBounds(this.extent,{worldBounds:d});(c="none"!==b.display&&!!c&&d)?this.features[a.id]=[a,b]:delete this.features[a.id];this.pendingRedraw=!0}this.pendingRedraw&&!this.locked&&(this.redraw(),this.pendingRedraw=!1);return c},drawGeometry:function(a,b,c){var d=a.CLASS_NAME;if("OpenLayers.Geometry.Collection"==\n +d||"OpenLayers.Geometry.MultiPoint"==d||"OpenLayers.Geometry.MultiLineString"==d||"OpenLayers.Geometry.MultiPolygon"==d)for(d=0;d<a.components.length;d++)this.drawGeometry(a.components[d],b,c);else switch(a.CLASS_NAME){case "OpenLayers.Geometry.Point":this.drawPoint(a,b,c);break;case "OpenLayers.Geometry.LineString":this.drawLineString(a,b,c);break;case "OpenLayers.Geometry.LinearRing":this.drawLinearRing(a,b,c);break;case "OpenLayers.Geometry.Polygon":this.drawPolygon(a,b,c)}},drawExternalGraphic:function(a,\n +b,c){var d=new Image;b.graphicTitle&&(d.title=b.graphicTitle);var e=b.graphicWidth||b.graphicHeight,f=b.graphicHeight||b.graphicWidth,e=e?e:2*b.pointRadius,f=f?f:2*b.pointRadius,g=void 0!=b.graphicXOffset?b.graphicXOffset:-(0.5*e),h=void 0!=b.graphicYOffset?b.graphicYOffset:-(0.5*f),i=b.graphicOpacity||b.fillOpacity;d.onload=OpenLayers.Function.bind(function(){if(this.features[c]){var b=this.getLocalXY(a),k=b[0],b=b[1];if(!isNaN(k)&&!isNaN(b)){var k=k+g|0,b=b+h|0,l=this.canvas;l.globalAlpha=i;var m=\n +OpenLayers.Renderer.Canvas.drawImageScaleFactor||(OpenLayers.Renderer.Canvas.drawImageScaleFactor=/android 2.1/.test(navigator.userAgent.toLowerCase())?320/window.screen.width:1);l.drawImage(d,k*m,b*m,e*m,f*m);if(this.hitDetection){this.setHitContextStyle("fill",c);this.hitContext.fillRect(k,b,e,f)}}}},this);d.src=b.externalGraphic},drawNamedSymbol:function(a,b,c){var d,e,f,g;f=Math.PI/180;var h=OpenLayers.Renderer.symbol[b.graphicName];if(!h)throw Error(b.graphicName+" is not a valid symbol name");\n +if(h.length&&!(2>h.length)&&(a=this.getLocalXY(a),e=a[0],g=a[1],!isNaN(e)&&!isNaN(g))){this.canvas.lineCap="round";this.canvas.lineJoin="round";this.hitDetection&&(this.hitContext.lineCap="round",this.hitContext.lineJoin="round");if(b.graphicName in this.cachedSymbolBounds)d=this.cachedSymbolBounds[b.graphicName];else{d=new OpenLayers.Bounds;for(a=0;a<h.length;a+=2)d.extend(new OpenLayers.LonLat(h[a],h[a+1]));this.cachedSymbolBounds[b.graphicName]=d}this.canvas.save();this.hitDetection&&this.hitContext.save();\n +this.canvas.translate(e,g);this.hitDetection&&this.hitContext.translate(e,g);a=f*b.rotation;isNaN(a)||(this.canvas.rotate(a),this.hitDetection&&this.hitContext.rotate(a));f=2*b.pointRadius/Math.max(d.getWidth(),d.getHeight());this.canvas.scale(f,f);this.hitDetection&&this.hitContext.scale(f,f);a=d.getCenterLonLat().lon;d=d.getCenterLonLat().lat;this.canvas.translate(-a,-d);this.hitDetection&&this.hitContext.translate(-a,-d);g=b.strokeWidth;b.strokeWidth=g/f;if(!1!==b.fill){this.setCanvasStyle("fill",\n +b);this.canvas.beginPath();for(a=0;a<h.length;a+=2)d=h[a],e=h[a+1],0==a&&this.canvas.moveTo(d,e),this.canvas.lineTo(d,e);this.canvas.closePath();this.canvas.fill();if(this.hitDetection){this.setHitContextStyle("fill",c,b);this.hitContext.beginPath();for(a=0;a<h.length;a+=2)d=h[a],e=h[a+1],0==a&&this.canvas.moveTo(d,e),this.hitContext.lineTo(d,e);this.hitContext.closePath();this.hitContext.fill()}}if(!1!==b.stroke){this.setCanvasStyle("stroke",b);this.canvas.beginPath();for(a=0;a<h.length;a+=2)d=h[a],\n +e=h[a+1],0==a&&this.canvas.moveTo(d,e),this.canvas.lineTo(d,e);this.canvas.closePath();this.canvas.stroke();if(this.hitDetection){this.setHitContextStyle("stroke",c,b,f);this.hitContext.beginPath();for(a=0;a<h.length;a+=2)d=h[a],e=h[a+1],0==a&&this.hitContext.moveTo(d,e),this.hitContext.lineTo(d,e);this.hitContext.closePath();this.hitContext.stroke()}}b.strokeWidth=g;this.canvas.restore();this.hitDetection&&this.hitContext.restore();this.setCanvasStyle("reset")}},setCanvasStyle:function(a,b){"fill"===\n +a?(this.canvas.globalAlpha=b.fillOpacity,this.canvas.fillStyle=b.fillColor):"stroke"===a?(this.canvas.globalAlpha=b.strokeOpacity,this.canvas.strokeStyle=b.strokeColor,this.canvas.lineWidth=b.strokeWidth):(this.canvas.globalAlpha=0,this.canvas.lineWidth=1)},featureIdToHex:function(a){a=Number(a.split("_").pop())+1;16777216<=a&&(this.hitOverflow=a-16777215,a=a%16777216+1);var a="000000"+a.toString(16),b=a.length;return a="#"+a.substring(b-6,b)},setHitContextStyle:function(a,b,c,d){b=this.featureIdToHex(b);\n +"fill"==a?(this.hitContext.globalAlpha=1,this.hitContext.fillStyle=b):"stroke"==a?(this.hitContext.globalAlpha=1,this.hitContext.strokeStyle=b,"undefined"===typeof d?this.hitContext.lineWidth=c.strokeWidth+2:isNaN(d)||(this.hitContext.lineWidth=c.strokeWidth+2/d)):(this.hitContext.globalAlpha=0,this.hitContext.lineWidth=1)},drawPoint:function(a,b,c){if(!1!==b.graphic)if(b.externalGraphic)this.drawExternalGraphic(a,b,c);else if(b.graphicName&&"circle"!=b.graphicName)this.drawNamedSymbol(a,b,c);else{var d=\n +this.getLocalXY(a),a=d[0],d=d[1];if(!isNaN(a)&&!isNaN(d)){var e=2*Math.PI,f=b.pointRadius;!1!==b.fill&&(this.setCanvasStyle("fill",b),this.canvas.beginPath(),this.canvas.arc(a,d,f,0,e,!0),this.canvas.fill(),this.hitDetection&&(this.setHitContextStyle("fill",c,b),this.hitContext.beginPath(),this.hitContext.arc(a,d,f,0,e,!0),this.hitContext.fill()));!1!==b.stroke&&(this.setCanvasStyle("stroke",b),this.canvas.beginPath(),this.canvas.arc(a,d,f,0,e,!0),this.canvas.stroke(),this.hitDetection&&(this.setHitContextStyle("stroke",\n +c,b),this.hitContext.beginPath(),this.hitContext.arc(a,d,f,0,e,!0),this.hitContext.stroke()),this.setCanvasStyle("reset"))}}},drawLineString:function(a,b,c){b=OpenLayers.Util.applyDefaults({fill:!1},b);this.drawLinearRing(a,b,c)},drawLinearRing:function(a,b,c){!1!==b.fill&&(this.setCanvasStyle("fill",b),this.renderPath(this.canvas,a,b,c,"fill"),this.hitDetection&&(this.setHitContextStyle("fill",c,b),this.renderPath(this.hitContext,a,b,c,"fill")));!1!==b.stroke&&(this.setCanvasStyle("stroke",b),this.renderPath(this.canvas,\n +a,b,c,"stroke"),this.hitDetection&&(this.setHitContextStyle("stroke",c,b),this.renderPath(this.hitContext,a,b,c,"stroke")));this.setCanvasStyle("reset")},renderPath:function(a,b,c,d,e){b=b.components;c=b.length;a.beginPath();var d=this.getLocalXY(b[0]),f=d[1];if(!isNaN(d[0])&&!isNaN(f)){a.moveTo(d[0],d[1]);for(d=1;d<c;++d)f=this.getLocalXY(b[d]),a.lineTo(f[0],f[1]);"fill"===e?a.fill():a.stroke()}},drawPolygon:function(a,b,c){var a=a.components,d=a.length;this.drawLinearRing(a[0],b,c);for(var e=1;e<\n +d;++e)this.canvas.globalCompositeOperation="destination-out",this.hitDetection&&(this.hitContext.globalCompositeOperation="destination-out"),this.drawLinearRing(a[e],OpenLayers.Util.applyDefaults({stroke:!1,fillOpacity:1},b),c),this.canvas.globalCompositeOperation="source-over",this.hitDetection&&(this.hitContext.globalCompositeOperation="source-over"),this.drawLinearRing(a[e],OpenLayers.Util.applyDefaults({fill:!1},b),c)},drawText:function(a,b){var c=this.getLocalXY(a);this.setCanvasStyle("reset");\n +this.canvas.fillStyle=b.fontColor;this.canvas.globalAlpha=b.fontOpacity||1;var d=[b.fontStyle?b.fontStyle:"normal","normal",b.fontWeight?b.fontWeight:"normal",b.fontSize?b.fontSize:"1em",b.fontFamily?b.fontFamily:"sans-serif"].join(" "),e=b.label.split("\\n"),f=e.length;if(this.canvas.fillText){this.canvas.font=d;this.canvas.textAlign=OpenLayers.Renderer.Canvas.LABEL_ALIGN[b.labelAlign[0]]||"center";this.canvas.textBaseline=OpenLayers.Renderer.Canvas.LABEL_ALIGN[b.labelAlign[1]]||"middle";var g=OpenLayers.Renderer.Canvas.LABEL_FACTOR[b.labelAlign[1]];\n +null==g&&(g=-0.5);d=this.canvas.measureText("Mg").height||this.canvas.measureText("xx").width;c[1]+=d*g*(f-1);for(g=0;g<f;g++)b.labelOutlineWidth&&(this.canvas.save(),this.canvas.strokeStyle=b.labelOutlineColor,this.canvas.lineWidth=b.labelOutlineWidth,this.canvas.strokeText(e[g],c[0],c[1]+d*g+1),this.canvas.restore()),this.canvas.fillText(e[g],c[0],c[1]+d*g)}else if(this.canvas.mozDrawText){this.canvas.mozTextStyle=d;var h=OpenLayers.Renderer.Canvas.LABEL_FACTOR[b.labelAlign[0]];null==h&&(h=-0.5);\n +g=OpenLayers.Renderer.Canvas.LABEL_FACTOR[b.labelAlign[1]];null==g&&(g=-0.5);d=this.canvas.mozMeasureText("xx");c[1]+=d*(1+g*f);for(g=0;g<f;g++){var i=c[0]+h*this.canvas.mozMeasureText(e[g]),j=c[1]+g*d;this.canvas.translate(i,j);this.canvas.mozDrawText(e[g]);this.canvas.translate(-i,-j)}}this.setCanvasStyle("reset")},getLocalXY:function(a){var b=this.getResolution(),c=this.extent;return[(a.x-this.featureDx)/b+-c.left/b,c.top/b-a.y/b]},clear:function(){var a=this.root.height,b=this.root.width;this.canvas.clearRect(0,\n +0,b,a);this.features={};this.hitDetection&&this.hitContext.clearRect(0,0,b,a)},getFeatureIdFromEvent:function(a){var b;if(this.hitDetection&&"none"!==this.root.style.display&&!this.map.dragging&&(a=a.xy,a=this.hitContext.getImageData(a.x|0,a.y|0,1,1).data,255===a[3]&&(a=a[2]+256*(a[1]+256*a[0])))){a="OpenLayers.Feature.Vector_"+(a-1+this.hitOverflow);try{b=this.features[a][0]}catch(c){}}return b},eraseFeatures:function(a){OpenLayers.Util.isArray(a)||(a=[a]);for(var b=0;b<a.length;++b)delete this.features[a[b].id];\n +this.redraw()},redraw:function(){if(!this.locked){var a=this.root.height,b=this.root.width;this.canvas.clearRect(0,0,b,a);this.hitDetection&&this.hitContext.clearRect(0,0,b,a);var a=[],c,d,e=this.map.baseLayer&&this.map.baseLayer.wrapDateLine&&this.map.getMaxExtent(),f;for(f in this.features)this.features.hasOwnProperty(f)&&(b=this.features[f][0],c=b.geometry,this.calculateFeatureDx(c.getBounds(),e),d=this.features[f][1],this.drawGeometry(c,d,b.id),d.label&&a.push([b,d]));b=0;for(c=a.length;b<c;++b)f=\n +a[b],this.drawText(f[0].geometry.getCentroid(),f[1])}},CLASS_NAME:"OpenLayers.Renderer.Canvas"});OpenLayers.Renderer.Canvas.LABEL_ALIGN={l:"left",r:"right",t:"top",b:"bottom"};OpenLayers.Renderer.Canvas.LABEL_FACTOR={l:0,r:-1,t:0,b:-1};OpenLayers.Renderer.Canvas.drawImageScaleFactor=null;OpenLayers.Format.OSM=OpenLayers.Class(OpenLayers.Format.XML,{checkTags:!1,interestingTagsExclude:null,areaTags:null,initialize:function(a){for(var b={interestingTagsExclude:"source source_ref source:ref history attribution created_by".split(" "),areaTags:"area building leisure tourism ruins historic landuse military natural sport".split(" ")},b=OpenLayers.Util.extend(b,a),c={},a=0;a<b.interestingTagsExclude.length;a++)c[b.interestingTagsExclude[a]]=!0;b.interestingTagsExclude=c;c={};for(a=0;a<b.areaTags.length;a++)c[b.areaTags[a]]=\n +!0;b.areaTags=c;this.externalProjection=new OpenLayers.Projection("EPSG:4326");OpenLayers.Format.XML.prototype.initialize.apply(this,[b])},read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));for(var b=this.getNodes(a),c=this.getWays(a),a=Array(c.length),d=0;d<c.length;d++){for(var e=Array(c[d].nodes.length),f=this.isWayArea(c[d])?1:0,g=0;g<c[d].nodes.length;g++){var h=b[c[d].nodes[g]],i=new OpenLayers.Geometry.Point(h.lon,h.lat);i.osm_id=parseInt(c[d].nodes[g]);\n +e[g]=i;h.used=!0}h=null;h=f?new OpenLayers.Geometry.Polygon(new OpenLayers.Geometry.LinearRing(e)):new OpenLayers.Geometry.LineString(e);this.internalProjection&&this.externalProjection&&h.transform(this.externalProjection,this.internalProjection);e=new OpenLayers.Feature.Vector(h,c[d].tags);e.osm_id=parseInt(c[d].id);e.fid="way."+e.osm_id;a[d]=e}for(var j in b){h=b[j];if(!h.used||this.checkTags){c=null;if(this.checkTags){c=this.getTags(h.node,!0);if(h.used&&!c[1])continue;c=c[0]}else c=this.getTags(h.node);\n +e=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(h.lon,h.lat),c);this.internalProjection&&this.externalProjection&&e.geometry.transform(this.externalProjection,this.internalProjection);e.osm_id=parseInt(j);e.fid="node."+e.osm_id;a.push(e)}h.node=null}return a},getNodes:function(a){for(var a=a.getElementsByTagName("node"),b={},c=0;c<a.length;c++){var d=a[c],e=d.getAttribute("id");b[e]={lat:d.getAttribute("lat"),lon:d.getAttribute("lon"),node:d}}return b},getWays:function(a){for(var a=\n +a.getElementsByTagName("way"),b=[],c=0;c<a.length;c++){var d=a[c],e={id:d.getAttribute("id")};e.tags=this.getTags(d);d=d.getElementsByTagName("nd");e.nodes=Array(d.length);for(var f=0;f<d.length;f++)e.nodes[f]=d[f].getAttribute("ref");b.push(e)}return b},getTags:function(a,b){for(var c=a.getElementsByTagName("tag"),d={},e=!1,f=0;f<c.length;f++){var g=c[f].getAttribute("k");d[g]=c[f].getAttribute("v");b&&(this.interestingTagsExclude[g]||(e=!0))}return b?[d,e]:d},isWayArea:function(a){var b=!1,c=!1;\n +a.nodes[0]==a.nodes[a.nodes.length-1]&&(b=!0);if(this.checkTags)for(var d in a.tags)if(this.areaTags[d]){c=!0;break}return b&&(this.checkTags?c:!0)},write:function(a){OpenLayers.Util.isArray(a)||(a=[a]);this.osm_id=1;this.created_nodes={};var b=this.createElementNS(null,"osm");b.setAttribute("version","0.5");b.setAttribute("generator","OpenLayers "+OpenLayers.VERSION_NUMBER);for(var c=a.length-1;0<=c;c--)for(var d=this.createFeatureNodes(a[c]),e=0;e<d.length;e++)b.appendChild(d[e]);return OpenLayers.Format.XML.prototype.write.apply(this,\n +[b])},createFeatureNodes:function(a){var b=[],c=a.geometry.CLASS_NAME,c=c.substring(c.lastIndexOf(".")+1),c=c.toLowerCase();(c=this.createXML[c])&&(b=c.apply(this,[a]));return b},createXML:{point:function(a){var b=null,c=a.geometry?a.geometry:a;this.internalProjection&&this.externalProjection&&(c=c.clone(),c.transform(this.internalProjection,this.externalProjection));var d=!1;a.osm_id?(b=a.osm_id,this.created_nodes[b]&&(d=!0)):(b=-this.osm_id,this.osm_id++);var e=d?this.created_nodes[b]:this.createElementNS(null,\n +"node");this.created_nodes[b]=e;e.setAttribute("id",b);e.setAttribute("lon",c.x);e.setAttribute("lat",c.y);a.attributes&&this.serializeTags(a,e);this.setState(a,e);return d?[]:[e]},linestring:function(a){var b,c=[],d=a.geometry;a.osm_id?b=a.osm_id:(b=-this.osm_id,this.osm_id++);var e=this.createElementNS(null,"way");e.setAttribute("id",b);for(b=0;b<d.components.length;b++){var f=this.createXML.point.apply(this,[d.components[b]]);if(f.length){var f=f[0],g=f.getAttribute("id");c.push(f)}else g=d.components[b].osm_id,\n +f=this.created_nodes[g];this.setState(a,f);f=this.createElementNS(null,"nd");f.setAttribute("ref",g);e.appendChild(f)}this.serializeTags(a,e);c.push(e);return c},polygon:function(a){var b=OpenLayers.Util.extend({area:"yes"},a.attributes),b=new OpenLayers.Feature.Vector(a.geometry.components[0],b);b.osm_id=a.osm_id;return this.createXML.linestring.apply(this,[b])}},serializeTags:function(a,b){for(var c in a.attributes){var d=this.createElementNS(null,"tag");d.setAttribute("k",c);d.setAttribute("v",\n +a.attributes[c]);b.appendChild(d)}},setState:function(a,b){if(a.state){var c=null;switch(a.state){case OpenLayers.State.UPDATE:case OpenLayers.State.DELETE:c="delete"}c&&b.setAttribute("action",c)}},CLASS_NAME:"OpenLayers.Format.OSM"});OpenLayers.Handler=OpenLayers.Class({id:null,control:null,map:null,keyMask:null,active:!1,evt:null,initialize:function(a,b,c){OpenLayers.Util.extend(this,c);this.control=a;this.callbacks=b;(a=this.map||a.map)&&this.setMap(a);this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},setMap:function(a){this.map=a},checkModifiers:function(a){return null==this.keyMask?!0:((a.shiftKey?OpenLayers.Handler.MOD_SHIFT:0)|(a.ctrlKey?OpenLayers.Handler.MOD_CTRL:0)|(a.altKey?OpenLayers.Handler.MOD_ALT:0))==\n +this.keyMask},activate:function(){if(this.active)return!1;for(var a=OpenLayers.Events.prototype.BROWSER_EVENTS,b=0,c=a.length;b<c;b++)this[a[b]]&&this.register(a[b],this[a[b]]);return this.active=!0},deactivate:function(){if(!this.active)return!1;for(var a=OpenLayers.Events.prototype.BROWSER_EVENTS,b=0,c=a.length;b<c;b++)this[a[b]]&&this.unregister(a[b],this[a[b]]);this.active=!1;return!0},callback:function(a,b){a&&this.callbacks[a]&&this.callbacks[a].apply(this.control,b)},register:function(a,b){this.map.events.registerPriority(a,\n +this,b);this.map.events.registerPriority(a,this,this.setEvent)},unregister:function(a,b){this.map.events.unregister(a,this,b);this.map.events.unregister(a,this,this.setEvent)},setEvent:function(a){this.evt=a;return!0},destroy:function(){this.deactivate();this.control=this.map=null},CLASS_NAME:"OpenLayers.Handler"});OpenLayers.Handler.MOD_NONE=0;OpenLayers.Handler.MOD_SHIFT=1;OpenLayers.Handler.MOD_CTRL=2;OpenLayers.Handler.MOD_ALT=4;OpenLayers.Handler.Drag=OpenLayers.Class(OpenLayers.Handler,{started:!1,stopDown:!0,dragging:!1,touch:!1,last:null,start:null,lastMoveEvt:null,oldOnselectstart:null,interval:0,timeoutId:null,documentDrag:!1,documentEvents:null,initialize:function(a,b,c){OpenLayers.Handler.prototype.initialize.apply(this,arguments);if(!0===this.documentDrag){var d=this;this._docMove=function(a){d.mousemove({xy:{x:a.clientX,y:a.clientY},element:document})};this._docUp=function(a){d.mouseup({xy:{x:a.clientX,y:a.clientY}})}}},\n +dragstart:function(a){var b=!0;this.dragging=!1;this.checkModifiers(a)&&(OpenLayers.Event.isLeftClick(a)||OpenLayers.Event.isSingleTouch(a))?(this.started=!0,this.last=this.start=a.xy,OpenLayers.Element.addClass(this.map.viewPortDiv,"olDragDown"),this.down(a),this.callback("down",[a.xy]),OpenLayers.Event.stop(a),this.oldOnselectstart||(this.oldOnselectstart=document.onselectstart?document.onselectstart:OpenLayers.Function.True),document.onselectstart=OpenLayers.Function.False,b=!this.stopDown):(this.started=\n +!1,this.last=this.start=null);return b},dragmove:function(a){this.lastMoveEvt=a;if(this.started&&!this.timeoutId&&(a.xy.x!=this.last.x||a.xy.y!=this.last.y))!0===this.documentDrag&&this.documentEvents&&(a.element===document?(this.adjustXY(a),this.setEvent(a)):this.removeDocumentEvents()),0<this.interval&&(this.timeoutId=setTimeout(OpenLayers.Function.bind(this.removeTimeout,this),this.interval)),this.dragging=!0,this.move(a),this.callback("move",[a.xy]),this.oldOnselectstart||(this.oldOnselectstart=\n +document.onselectstart,document.onselectstart=OpenLayers.Function.False),this.last=a.xy;return!0},dragend:function(a){if(this.started){!0===this.documentDrag&&this.documentEvents&&(this.adjustXY(a),this.removeDocumentEvents());var b=this.start!=this.last;this.dragging=this.started=!1;OpenLayers.Element.removeClass(this.map.viewPortDiv,"olDragDown");this.up(a);this.callback("up",[a.xy]);b&&this.callback("done",[a.xy]);document.onselectstart=this.oldOnselectstart}return!0},down:function(){},move:function(){},\n +up:function(){},out:function(){},mousedown:function(a){return this.dragstart(a)},touchstart:function(a){this.touch||(this.touch=!0,this.map.events.un({mousedown:this.mousedown,mouseup:this.mouseup,mousemove:this.mousemove,click:this.click,scope:this}));return this.dragstart(a)},mousemove:function(a){return this.dragmove(a)},touchmove:function(a){return this.dragmove(a)},removeTimeout:function(){this.timeoutId=null;this.dragging&&this.mousemove(this.lastMoveEvt)},mouseup:function(a){return this.dragend(a)},\n +touchend:function(a){a.xy=this.last;return this.dragend(a)},mouseout:function(a){if(this.started&&OpenLayers.Util.mouseLeft(a,this.map.viewPortDiv))if(!0===this.documentDrag)this.addDocumentEvents();else{var b=this.start!=this.last;this.dragging=this.started=!1;OpenLayers.Element.removeClass(this.map.viewPortDiv,"olDragDown");this.out(a);this.callback("out",[]);b&&this.callback("done",[a.xy]);document.onselectstart&&(document.onselectstart=this.oldOnselectstart)}return!0},click:function(){return this.start==\n +this.last},activate:function(){var a=!1;OpenLayers.Handler.prototype.activate.apply(this,arguments)&&(this.dragging=!1,a=!0);return a},deactivate:function(){var a=!1;OpenLayers.Handler.prototype.deactivate.apply(this,arguments)&&(this.dragging=this.started=this.touch=!1,this.last=this.start=null,a=!0,OpenLayers.Element.removeClass(this.map.viewPortDiv,"olDragDown"));return a},adjustXY:function(a){var b=OpenLayers.Util.pagePosition(this.map.viewPortDiv);a.xy.x-=b[0];a.xy.y-=b[1]},addDocumentEvents:function(){OpenLayers.Element.addClass(document.body,\n +"olDragDown");this.documentEvents=!0;OpenLayers.Event.observe(document,"mousemove",this._docMove);OpenLayers.Event.observe(document,"mouseup",this._docUp)},removeDocumentEvents:function(){OpenLayers.Element.removeClass(document.body,"olDragDown");this.documentEvents=!1;OpenLayers.Event.stopObserving(document,"mousemove",this._docMove);OpenLayers.Event.stopObserving(document,"mouseup",this._docUp)},CLASS_NAME:"OpenLayers.Handler.Drag"});OpenLayers.Handler.Feature=OpenLayers.Class(OpenLayers.Handler,{EVENTMAP:{click:{"in":"click",out:"clickout"},mousemove:{"in":"over",out:"out"},dblclick:{"in":"dblclick",out:null},mousedown:{"in":null,out:null},mouseup:{"in":null,out:null},touchstart:{"in":"click",out:"clickout"}},feature:null,lastFeature:null,down:null,up:null,touch:!1,clickTolerance:4,geometryTypes:null,stopClick:!0,stopDown:!0,stopUp:!1,initialize:function(a,b,c,d){OpenLayers.Handler.prototype.initialize.apply(this,[a,c,d]);this.layer=\n +b},touchstart:function(a){this.touch||(this.touch=!0,this.map.events.un({mousedown:this.mousedown,mouseup:this.mouseup,mousemove:this.mousemove,click:this.click,dblclick:this.dblclick,scope:this}));return OpenLayers.Event.isMultiTouch(a)?!0:this.mousedown(a)},touchmove:function(a){OpenLayers.Event.stop(a)},mousedown:function(a){if(OpenLayers.Event.isLeftClick(a)||OpenLayers.Event.isSingleTouch(a))this.down=a.xy;return this.handle(a)?!this.stopDown:!0},mouseup:function(a){this.up=a.xy;return this.handle(a)?\n +!this.stopUp:!0},click:function(a){return this.handle(a)?!this.stopClick:!0},mousemove:function(a){if(!this.callbacks.over&&!this.callbacks.out)return!0;this.handle(a);return!0},dblclick:function(a){return!this.handle(a)},geometryTypeMatches:function(a){return null==this.geometryTypes||-1<OpenLayers.Util.indexOf(this.geometryTypes,a.geometry.CLASS_NAME)},handle:function(a){this.feature&&!this.feature.layer&&(this.feature=null);var b=a.type,c=!1,d=!!this.feature,e="click"==b||"dblclick"==b||"touchstart"==\n +b;if((this.feature=this.layer.getFeatureFromEvent(a))&&!this.feature.layer)this.feature=null;this.lastFeature&&!this.lastFeature.layer&&(this.lastFeature=null);this.feature?("touchstart"===b&&OpenLayers.Event.stop(a),a=this.feature!=this.lastFeature,this.geometryTypeMatches(this.feature)?(d&&a?(this.lastFeature&&this.triggerCallback(b,"out",[this.lastFeature]),this.triggerCallback(b,"in",[this.feature])):(!d||e)&&this.triggerCallback(b,"in",[this.feature]),this.lastFeature=this.feature,c=!0):(this.lastFeature&&\n +(d&&a||e)&&this.triggerCallback(b,"out",[this.lastFeature]),this.feature=null)):this.lastFeature&&(d||e)&&this.triggerCallback(b,"out",[this.lastFeature]);return c},triggerCallback:function(a,b,c){(b=this.EVENTMAP[a][b])&&("click"==a&&this.up&&this.down?Math.sqrt(Math.pow(this.up.x-this.down.x,2)+Math.pow(this.up.y-this.down.y,2))<=this.clickTolerance&&this.callback(b,c):this.callback(b,c))},activate:function(){var a=!1;OpenLayers.Handler.prototype.activate.apply(this,arguments)&&(this.moveLayerToTop(),\n +this.map.events.on({removelayer:this.handleMapEvents,changelayer:this.handleMapEvents,scope:this}),a=!0);return a},deactivate:function(){var a=!1;OpenLayers.Handler.prototype.deactivate.apply(this,arguments)&&(this.moveLayerBack(),this.up=this.down=this.lastFeature=this.feature=null,this.touch=!1,this.map.events.un({removelayer:this.handleMapEvents,changelayer:this.handleMapEvents,scope:this}),a=!0);return a},handleMapEvents:function(a){("removelayer"==a.type||"order"==a.property)&&this.moveLayerToTop()},\n +moveLayerToTop:function(){this.layer.setZIndex(Math.max(this.map.Z_INDEX_BASE.Feature-1,this.layer.getZIndex())+1)},moveLayerBack:function(){var a=this.layer.getZIndex()-1;a>=this.map.Z_INDEX_BASE.Feature?this.layer.setZIndex(a):this.map.setLayerZIndex(this.layer,this.map.getLayerIndex(this.layer))},CLASS_NAME:"OpenLayers.Handler.Feature"});OpenLayers.Control.DragFeature=OpenLayers.Class(OpenLayers.Control,{geometryTypes:null,onStart:function(){},onDrag:function(){},onComplete:function(){},onEnter:function(){},onLeave:function(){},documentDrag:!1,layer:null,feature:null,dragCallbacks:{},featureCallbacks:{},lastPixel:null,initialize:function(a,b){OpenLayers.Control.prototype.initialize.apply(this,[b]);this.layer=a;this.handlers={drag:new OpenLayers.Handler.Drag(this,OpenLayers.Util.extend({down:this.downFeature,move:this.moveFeature,\n +up:this.upFeature,out:this.cancel,done:this.doneDragging},this.dragCallbacks),{documentDrag:this.documentDrag}),feature:new OpenLayers.Handler.Feature(this,this.layer,OpenLayers.Util.extend({click:this.clickFeature,clickout:this.clickoutFeature,over:this.overFeature,out:this.outFeature},this.featureCallbacks),{geometryTypes:this.geometryTypes})}},clickFeature:function(a){this.handlers.feature.touch&&(!this.over&&this.overFeature(a))&&(this.handlers.drag.dragstart(this.handlers.feature.evt),this.handlers.drag.stopDown=\n +!1)},clickoutFeature:function(a){this.handlers.feature.touch&&this.over&&(this.outFeature(a),this.handlers.drag.stopDown=!0)},destroy:function(){this.layer=null;OpenLayers.Control.prototype.destroy.apply(this,[])},activate:function(){return this.handlers.feature.activate()&&OpenLayers.Control.prototype.activate.apply(this,arguments)},deactivate:function(){this.handlers.drag.deactivate();this.handlers.feature.deactivate();this.feature=null;this.dragging=!1;this.lastPixel=null;OpenLayers.Element.removeClass(this.map.viewPortDiv,\n +this.displayClass+"Over");return OpenLayers.Control.prototype.deactivate.apply(this,arguments)},overFeature:function(a){var b=!1;this.handlers.drag.dragging?this.over=this.feature.id==a.id?!0:!1:(this.feature=a,this.handlers.drag.activate(),this.over=b=!0,OpenLayers.Element.addClass(this.map.viewPortDiv,this.displayClass+"Over"),this.onEnter(a));return b},downFeature:function(a){this.lastPixel=a;this.onStart(this.feature,a)},moveFeature:function(a){var b=this.map.getResolution();this.feature.geometry.move(b*\n +(a.x-this.lastPixel.x),b*(this.lastPixel.y-a.y));this.layer.drawFeature(this.feature);this.lastPixel=a;this.onDrag(this.feature,a)},upFeature:function(){this.over||this.handlers.drag.deactivate()},doneDragging:function(a){this.onComplete(this.feature,a)},outFeature:function(a){this.handlers.drag.dragging?this.feature.id==a.id&&(this.over=!1):(this.over=!1,this.handlers.drag.deactivate(),OpenLayers.Element.removeClass(this.map.viewPortDiv,this.displayClass+"Over"),this.onLeave(a),this.feature=null)},\n +cancel:function(){this.handlers.drag.deactivate();this.over=!1},setMap:function(a){this.handlers.drag.setMap(a);this.handlers.feature.setMap(a);OpenLayers.Control.prototype.setMap.apply(this,arguments)},CLASS_NAME:"OpenLayers.Control.DragFeature"});OpenLayers.StyleMap=OpenLayers.Class({styles:null,extendDefault:!0,initialize:function(a,b){this.styles={"default":new OpenLayers.Style(OpenLayers.Feature.Vector.style["default"]),select:new OpenLayers.Style(OpenLayers.Feature.Vector.style.select),temporary:new OpenLayers.Style(OpenLayers.Feature.Vector.style.temporary),"delete":new OpenLayers.Style(OpenLayers.Feature.Vector.style["delete"])};if(a instanceof OpenLayers.Style)this.styles["default"]=a,this.styles.select=a,this.styles.temporary=a,this.styles["delete"]=\n +a;else if("object"==typeof a)for(var c in a)if(a[c]instanceof OpenLayers.Style)this.styles[c]=a[c];else if("object"==typeof a[c])this.styles[c]=new OpenLayers.Style(a[c]);else{this.styles["default"]=new OpenLayers.Style(a);this.styles.select=new OpenLayers.Style(a);this.styles.temporary=new OpenLayers.Style(a);this.styles["delete"]=new OpenLayers.Style(a);break}OpenLayers.Util.extend(this,b)},destroy:function(){for(var a in this.styles)this.styles[a].destroy();this.styles=null},createSymbolizer:function(a,\n +b){a||(a=new OpenLayers.Feature.Vector);this.styles[b]||(b="default");a.renderIntent=b;var c={};this.extendDefault&&"default"!=b&&(c=this.styles["default"].createSymbolizer(a));return OpenLayers.Util.extend(c,this.styles[b].createSymbolizer(a))},addUniqueValueRules:function(a,b,c,d){var e=[],f;for(f in c)e.push(new OpenLayers.Rule({symbolizer:c[f],context:d,filter:new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.EQUAL_TO,property:b,value:f})}));this.styles[a].addRules(e)},CLASS_NAME:"OpenLayers.StyleMap"});OpenLayers.Layer.Vector=OpenLayers.Class(OpenLayers.Layer,{isBaseLayer:!1,isFixed:!1,features:null,filter:null,selectedFeatures:null,unrenderedFeatures:null,reportError:!0,style:null,styleMap:null,strategies:null,protocol:null,renderers:["SVG","VML","Canvas"],renderer:null,rendererOptions:null,geometryType:null,drawn:!1,ratio:1,initialize:function(a,b){OpenLayers.Layer.prototype.initialize.apply(this,arguments);(!this.renderer||!this.renderer.supported())&&this.assignRenderer();if(!this.renderer||\n +!this.renderer.supported())this.renderer=null,this.displayError();this.styleMap||(this.styleMap=new OpenLayers.StyleMap);this.features=[];this.selectedFeatures=[];this.unrenderedFeatures={};if(this.strategies)for(var c=0,d=this.strategies.length;c<d;c++)this.strategies[c].setLayer(this)},destroy:function(){if(this.strategies){var a,b,c;b=0;for(c=this.strategies.length;b<c;b++)a=this.strategies[b],a.autoDestroy&&a.destroy();this.strategies=null}this.protocol&&(this.protocol.autoDestroy&&this.protocol.destroy(),\n +this.protocol=null);this.destroyFeatures();this.unrenderedFeatures=this.selectedFeatures=this.features=null;this.renderer&&this.renderer.destroy();this.drawn=this.geometryType=this.renderer=null;OpenLayers.Layer.prototype.destroy.apply(this,arguments)},clone:function(a){null==a&&(a=new OpenLayers.Layer.Vector(this.name,this.getOptions()));for(var a=OpenLayers.Layer.prototype.clone.apply(this,[a]),b=this.features,c=b.length,d=Array(c),e=0;e<c;++e)d[e]=b[e].clone();a.features=d;return a},refresh:function(a){this.calculateInRange()&&\n +this.visibility&&this.events.triggerEvent("refresh",a)},assignRenderer:function(){for(var a=0,b=this.renderers.length;a<b;a++){var c=this.renderers[a];if((c="function"==typeof c?c:OpenLayers.Renderer[c])&&c.prototype.supported()){this.renderer=new c(this.div,this.rendererOptions);break}}},displayError:function(){this.reportError&&OpenLayers.Console.userError(OpenLayers.i18n("browserNotSupported",{renderers:this.renderers.join("\\n")}))},setMap:function(a){OpenLayers.Layer.prototype.setMap.apply(this,\n +arguments);if(this.renderer){this.renderer.map=this.map;var b=this.map.getSize();b.w*=this.ratio;b.h*=this.ratio;this.renderer.setSize(b)}else this.map.removeLayer(this)},afterAdd:function(){if(this.strategies){var a,b,c;b=0;for(c=this.strategies.length;b<c;b++)a=this.strategies[b],a.autoActivate&&a.activate()}},removeMap:function(){this.drawn=!1;if(this.strategies){var a,b,c;b=0;for(c=this.strategies.length;b<c;b++)a=this.strategies[b],a.autoActivate&&a.deactivate()}},onMapResize:function(){OpenLayers.Layer.prototype.onMapResize.apply(this,\n +arguments);var a=this.map.getSize();a.w*=this.ratio;a.h*=this.ratio;this.renderer.setSize(a)},moveTo:function(a,b,c){OpenLayers.Layer.prototype.moveTo.apply(this,arguments);var d=!0;if(!c){this.renderer.root.style.visibility="hidden";var d=this.map.getSize(),e=d.w,d=d.h,e=e/2*this.ratio-e/2,d=d/2*this.ratio-d/2,e=e+parseInt(this.map.layerContainerDiv.style.left,10),e=-Math.round(e),d=d+parseInt(this.map.layerContainerDiv.style.top,10),d=-Math.round(d);this.div.style.left=e+"px";this.div.style.top=\n +d+"px";d=this.renderer.setExtent(this.map.getExtent().scale(this.ratio),b);this.renderer.root.style.visibility="visible";!0===OpenLayers.IS_GECKO&&(this.div.scrollLeft=this.div.scrollLeft);if(!b&&d)for(var f in this.unrenderedFeatures)e=this.unrenderedFeatures[f],this.drawFeature(e)}if(!this.drawn||b||!d){this.drawn=!0;f=0;for(d=this.features.length;f<d;f++)this.renderer.locked=f!==d-1,e=this.features[f],this.drawFeature(e)}},display:function(a){OpenLayers.Layer.prototype.display.apply(this,arguments);\n +var b=this.div.style.display;b!=this.renderer.root.style.display&&(this.renderer.root.style.display=b)},addFeatures:function(a,b){OpenLayers.Util.isArray(a)||(a=[a]);var c=!b||!b.silent;if(c){var d={features:a};if(!1===this.events.triggerEvent("beforefeaturesadded",d))return;a=d.features}for(var d=[],e=0,f=a.length;e<f;e++){this.renderer.locked=e!=a.length-1?!0:!1;var g=a[e];if(this.geometryType&&!(g.geometry instanceof this.geometryType))throw new TypeError("addFeatures: component should be an "+\n +this.geometryType.prototype.CLASS_NAME);g.layer=this;!g.style&&this.style&&(g.style=OpenLayers.Util.extend({},this.style));if(c){if(!1===this.events.triggerEvent("beforefeatureadded",{feature:g}))continue;this.preFeatureInsert(g)}d.push(g);this.features.push(g);this.drawFeature(g);c&&(this.events.triggerEvent("featureadded",{feature:g}),this.onFeatureInsert(g))}c&&this.events.triggerEvent("featuresadded",{features:d})},removeFeatures:function(a,b){if(a&&0!==a.length){if(a===this.features)return this.removeAllFeatures(b);\n +OpenLayers.Util.isArray(a)||(a=[a]);a===this.selectedFeatures&&(a=a.slice());var c=!b||!b.silent;c&&this.events.triggerEvent("beforefeaturesremoved",{features:a});for(var d=a.length-1;0<=d;d--){this.renderer.locked=0!=d&&a[d-1].geometry?!0:!1;var e=a[d];delete this.unrenderedFeatures[e.id];c&&this.events.triggerEvent("beforefeatureremoved",{feature:e});this.features=OpenLayers.Util.removeItem(this.features,e);e.layer=null;e.geometry&&this.renderer.eraseFeatures(e);-1!=OpenLayers.Util.indexOf(this.selectedFeatures,\n +e)&&OpenLayers.Util.removeItem(this.selectedFeatures,e);c&&this.events.triggerEvent("featureremoved",{feature:e})}c&&this.events.triggerEvent("featuresremoved",{features:a})}},removeAllFeatures:function(a){var a=!a||!a.silent,b=this.features;a&&this.events.triggerEvent("beforefeaturesremoved",{features:b});for(var c,d=b.length-1;0<=d;d--)c=b[d],a&&this.events.triggerEvent("beforefeatureremoved",{feature:c}),c.layer=null,a&&this.events.triggerEvent("featureremoved",{feature:c});this.renderer.clear();\n +this.features=[];this.unrenderedFeatures={};this.selectedFeatures=[];a&&this.events.triggerEvent("featuresremoved",{features:b})},destroyFeatures:function(a,b){void 0==a&&(a=this.features);if(a){this.removeFeatures(a,b);for(var c=a.length-1;0<=c;c--)a[c].destroy()}},drawFeature:function(a,b){if(this.drawn){if("object"!=typeof b){!b&&a.state===OpenLayers.State.DELETE&&(b="delete");var c=b||a.renderIntent;(b=a.style||this.style)||(b=this.styleMap.createSymbolizer(a,c))}c=this.renderer.drawFeature(a,\n +b);!1===c||null===c?this.unrenderedFeatures[a.id]=a:delete this.unrenderedFeatures[a.id]}},eraseFeatures:function(a){this.renderer.eraseFeatures(a)},getFeatureFromEvent:function(a){if(!this.renderer)throw Error("getFeatureFromEvent called on layer with no renderer. This usually means you destroyed a layer, but not some handler which is associated with it.");var b=null;(a=this.renderer.getFeatureIdFromEvent(a))&&(b="string"===typeof a?this.getFeatureById(a):a);return b},getFeatureBy:function(a,b){for(var c=\n +null,d=0,e=this.features.length;d<e;++d)if(this.features[d][a]==b){c=this.features[d];break}return c},getFeatureById:function(a){return this.getFeatureBy("id",a)},getFeatureByFid:function(a){return this.getFeatureBy("fid",a)},getFeaturesByAttribute:function(a,b){var c,d,e=this.features.length,f=[];for(c=0;c<e;c++)(d=this.features[c])&&d.attributes&&d.attributes[a]===b&&f.push(d);return f},onFeatureInsert:function(){},preFeatureInsert:function(){},getDataExtent:function(){var a=null,b=this.features;\n +if(b&&0<b.length)for(var c=null,d=0,e=b.length;d<e;d++)if(c=b[d].geometry)null===a&&(a=new OpenLayers.Bounds),a.extend(c.getBounds());return a},CLASS_NAME:"OpenLayers.Layer.Vector"});OpenLayers.Layer.Vector.RootContainer=OpenLayers.Class(OpenLayers.Layer.Vector,{displayInLayerSwitcher:!1,layers:null,display:function(){},getFeatureFromEvent:function(a){for(var b=this.layers,c,d=0;d<b.length;d++)if(c=b[d].getFeatureFromEvent(a))return c},setMap:function(a){OpenLayers.Layer.Vector.prototype.setMap.apply(this,arguments);this.collectRoots();a.events.register("changelayer",this,this.handleChangeLayer)},removeMap:function(a){a.events.unregister("changelayer",this,this.handleChangeLayer);\n +this.resetRoots();OpenLayers.Layer.Vector.prototype.removeMap.apply(this,arguments)},collectRoots:function(){for(var a,b=0;b<this.map.layers.length;++b)a=this.map.layers[b],-1!=OpenLayers.Util.indexOf(this.layers,a)&&a.renderer.moveRoot(this.renderer)},resetRoots:function(){for(var a,b=0;b<this.layers.length;++b)a=this.layers[b],this.renderer&&a.renderer.getRenderLayerId()==this.id&&this.renderer.moveRoot(a.renderer)},handleChangeLayer:function(a){var b=a.layer;"order"==a.property&&-1!=OpenLayers.Util.indexOf(this.layers,\n +b)&&(this.resetRoots(),this.collectRoots())},CLASS_NAME:"OpenLayers.Layer.Vector.RootContainer"});OpenLayers.Control.SelectFeature=OpenLayers.Class(OpenLayers.Control,{multipleKey:null,toggleKey:null,multiple:!1,clickout:!0,toggle:!1,hover:!1,highlightOnly:!1,box:!1,onBeforeSelect:function(){},onSelect:function(){},onUnselect:function(){},scope:null,geometryTypes:null,layer:null,layers:null,callbacks:null,selectStyle:null,renderIntent:"select",handlers:null,initialize:function(a,b){OpenLayers.Control.prototype.initialize.apply(this,[b]);null===this.scope&&(this.scope=this);this.initLayer(a);var c=\n +{click:this.clickFeature,clickout:this.clickoutFeature};this.hover&&(c.over=this.overFeature,c.out=this.outFeature);this.callbacks=OpenLayers.Util.extend(c,this.callbacks);this.handlers={feature:new OpenLayers.Handler.Feature(this,this.layer,this.callbacks,{geometryTypes:this.geometryTypes})};this.box&&(this.handlers.box=new OpenLayers.Handler.Box(this,{done:this.selectBox},{boxDivClassName:"olHandlerBoxSelectFeature"}))},initLayer:function(a){OpenLayers.Util.isArray(a)?(this.layers=a,this.layer=\n +new OpenLayers.Layer.Vector.RootContainer(this.id+"_container",{layers:a})):this.layer=a},destroy:function(){this.active&&this.layers&&this.map.removeLayer(this.layer);OpenLayers.Control.prototype.destroy.apply(this,arguments);this.layers&&this.layer.destroy()},activate:function(){this.active||(this.layers&&this.map.addLayer(this.layer),this.handlers.feature.activate(),this.box&&this.handlers.box&&this.handlers.box.activate());return OpenLayers.Control.prototype.activate.apply(this,arguments)},deactivate:function(){this.active&&\n +(this.handlers.feature.deactivate(),this.handlers.box&&this.handlers.box.deactivate(),this.layers&&this.map.removeLayer(this.layer));return OpenLayers.Control.prototype.deactivate.apply(this,arguments)},unselectAll:function(a){for(var b=this.layers||[this.layer],c,d,e=0;e<b.length;++e){c=b[e];for(var f=c.selectedFeatures.length-1;0<=f;--f)d=c.selectedFeatures[f],(!a||a.except!=d)&&this.unselect(d)}},clickFeature:function(a){this.hover||(-1<OpenLayers.Util.indexOf(a.layer.selectedFeatures,a)?this.toggleSelect()?\n +this.unselect(a):this.multipleSelect()||this.unselectAll({except:a}):(this.multipleSelect()||this.unselectAll({except:a}),this.select(a)))},multipleSelect:function(){return this.multiple||this.handlers.feature.evt&&this.handlers.feature.evt[this.multipleKey]},toggleSelect:function(){return this.toggle||this.handlers.feature.evt&&this.handlers.feature.evt[this.toggleKey]},clickoutFeature:function(){!this.hover&&this.clickout&&this.unselectAll()},overFeature:function(a){var b=a.layer;this.hover&&(this.highlightOnly?\n +this.highlight(a):-1==OpenLayers.Util.indexOf(b.selectedFeatures,a)&&this.select(a))},outFeature:function(a){if(this.hover)if(this.highlightOnly){if(a._lastHighlighter==this.id)if(a._prevHighlighter&&a._prevHighlighter!=this.id){delete a._lastHighlighter;var b=this.map.getControl(a._prevHighlighter);b&&b.highlight(a)}else this.unhighlight(a)}else this.unselect(a)},highlight:function(a){var b=a.layer;!1!==this.events.triggerEvent("beforefeaturehighlighted",{feature:a})&&(a._prevHighlighter=a._lastHighlighter,\n +a._lastHighlighter=this.id,b.drawFeature(a,this.selectStyle||this.renderIntent),this.events.triggerEvent("featurehighlighted",{feature:a}))},unhighlight:function(a){var b=a.layer;void 0==a._prevHighlighter?delete a._lastHighlighter:(a._prevHighlighter!=this.id&&(a._lastHighlighter=a._prevHighlighter),delete a._prevHighlighter);b.drawFeature(a,a.style||a.layer.style||"default");this.events.triggerEvent("featureunhighlighted",{feature:a})},select:function(a){var b=this.onBeforeSelect.call(this.scope,\n +a),c=a.layer;!1!==b&&(b=c.events.triggerEvent("beforefeatureselected",{feature:a}),!1!==b&&(c.selectedFeatures.push(a),this.highlight(a),this.handlers.feature.lastFeature||(this.handlers.feature.lastFeature=c.selectedFeatures[0]),c.events.triggerEvent("featureselected",{feature:a}),this.onSelect.call(this.scope,a)))},unselect:function(a){var b=a.layer;this.unhighlight(a);OpenLayers.Util.removeItem(b.selectedFeatures,a);b.events.triggerEvent("featureunselected",{feature:a});this.onUnselect.call(this.scope,\n +a)},selectBox:function(a){if(a instanceof OpenLayers.Bounds){var b=this.map.getLonLatFromPixel({x:a.left,y:a.bottom}),a=this.map.getLonLatFromPixel({x:a.right,y:a.top}),b=new OpenLayers.Bounds(b.lon,b.lat,a.lon,a.lat);this.multipleSelect()||this.unselectAll();a=this.multiple;this.multiple=!0;var c=this.layers||[this.layer];this.events.triggerEvent("boxselectionstart",{layers:c});for(var d,e=0;e<c.length;++e){d=c[e];for(var f=0,g=d.features.length;f<g;++f){var h=d.features[f];h.getVisibility()&&(null==\n +this.geometryTypes||-1<OpenLayers.Util.indexOf(this.geometryTypes,h.geometry.CLASS_NAME))&&b.toGeometry().intersects(h.geometry)&&-1==OpenLayers.Util.indexOf(d.selectedFeatures,h)&&this.select(h)}}this.multiple=a;this.events.triggerEvent("boxselectionend",{layers:c})}},setMap:function(a){this.handlers.feature.setMap(a);this.box&&this.handlers.box.setMap(a);OpenLayers.Control.prototype.setMap.apply(this,arguments)},setLayer:function(a){var b=this.active;this.unselectAll();this.deactivate();this.layers&&\n +(this.layer.destroy(),this.layers=null);this.initLayer(a);this.handlers.feature.layer=this.layer;b&&this.activate()},CLASS_NAME:"OpenLayers.Control.SelectFeature"});OpenLayers.Handler.Keyboard=OpenLayers.Class(OpenLayers.Handler,{KEY_EVENTS:["keydown","keyup"],eventListener:null,observeElement:null,initialize:function(a,b,c){OpenLayers.Handler.prototype.initialize.apply(this,arguments);this.eventListener=OpenLayers.Function.bindAsEventListener(this.handleKeyEvent,this)},destroy:function(){this.deactivate();this.eventListener=null;OpenLayers.Handler.prototype.destroy.apply(this,arguments)},activate:function(){if(OpenLayers.Handler.prototype.activate.apply(this,\n +arguments)){this.observeElement=this.observeElement||document;for(var a=0,b=this.KEY_EVENTS.length;a<b;a++)OpenLayers.Event.observe(this.observeElement,this.KEY_EVENTS[a],this.eventListener);return!0}return!1},deactivate:function(){var a=!1;if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments)){for(var a=0,b=this.KEY_EVENTS.length;a<b;a++)OpenLayers.Event.stopObserving(this.observeElement,this.KEY_EVENTS[a],this.eventListener);a=!0}return a},handleKeyEvent:function(a){this.checkModifiers(a)&&\n +this.callback(a.type,[a])},CLASS_NAME:"OpenLayers.Handler.Keyboard"});OpenLayers.Control.ModifyFeature=OpenLayers.Class(OpenLayers.Control,{geometryTypes:null,clickout:!0,toggle:!0,standalone:!1,layer:null,feature:null,vertices:null,virtualVertices:null,selectControl:null,dragControl:null,handlers:null,deleteCodes:null,virtualStyle:null,vertexRenderIntent:null,mode:null,createVertices:!0,modified:!1,radiusHandle:null,dragHandle:null,onModificationStart:function(){},onModification:function(){},onModificationEnd:function(){},initialize:function(a,b){b=b||{};this.layer=\n +a;this.vertices=[];this.virtualVertices=[];this.virtualStyle=OpenLayers.Util.extend({},this.layer.style||this.layer.styleMap.createSymbolizer(null,b.vertexRenderIntent));this.virtualStyle.fillOpacity=0.3;this.virtualStyle.strokeOpacity=0.3;this.deleteCodes=[46,68];this.mode=OpenLayers.Control.ModifyFeature.RESHAPE;OpenLayers.Control.prototype.initialize.apply(this,[b]);OpenLayers.Util.isArray(this.deleteCodes)||(this.deleteCodes=[this.deleteCodes]);var c=this,d={geometryTypes:this.geometryTypes,clickout:this.clickout,\n +toggle:this.toggle,onBeforeSelect:this.beforeSelectFeature,onSelect:this.selectFeature,onUnselect:this.unselectFeature,scope:this};!1===this.standalone&&(this.selectControl=new OpenLayers.Control.SelectFeature(a,d));this.dragControl=new OpenLayers.Control.DragFeature(a,{geometryTypes:["OpenLayers.Geometry.Point"],onStart:function(a,b){c.dragStart.apply(c,[a,b])},onDrag:function(a,b){c.dragVertex.apply(c,[a,b])},onComplete:function(a){c.dragComplete.apply(c,[a])},featureCallbacks:{over:function(a){(c.standalone!==\n +true||a._sketch||c.feature===a)&&c.dragControl.overFeature.apply(c.dragControl,[a])}}});this.handlers={keyboard:new OpenLayers.Handler.Keyboard(this,{keydown:this.handleKeypress})}},destroy:function(){this.layer=null;this.standalone||this.selectControl.destroy();this.dragControl.destroy();OpenLayers.Control.prototype.destroy.apply(this,[])},activate:function(){return(this.standalone||this.selectControl.activate())&&this.handlers.keyboard.activate()&&OpenLayers.Control.prototype.activate.apply(this,\n +arguments)},deactivate:function(){var a=!1;if(OpenLayers.Control.prototype.deactivate.apply(this,arguments)){this.layer.removeFeatures(this.vertices,{silent:!0});this.layer.removeFeatures(this.virtualVertices,{silent:!0});this.vertices=[];this.dragControl.deactivate();var b=(a=this.feature)&&a.geometry&&a.layer;!1===this.standalone?(b&&this.selectControl.unselect.apply(this.selectControl,[a]),this.selectControl.deactivate()):b&&this.unselectFeature(a);this.handlers.keyboard.deactivate();a=!0}return a},\n +beforeSelectFeature:function(a){return this.layer.events.triggerEvent("beforefeaturemodified",{feature:a})},selectFeature:function(a){if(!this.standalone||!1!==this.beforeSelectFeature(a))this.feature=a,this.modified=!1,this.resetVertices(),this.dragControl.activate(),this.onModificationStart(this.feature);var b=a.modified;if(a.geometry&&(!b||!b.geometry))this._originalGeometry=a.geometry.clone()},unselectFeature:function(a){this.layer.removeFeatures(this.vertices,{silent:!0});this.vertices=[];this.layer.destroyFeatures(this.virtualVertices,\n +{silent:!0});this.virtualVertices=[];this.dragHandle&&(this.layer.destroyFeatures([this.dragHandle],{silent:!0}),delete this.dragHandle);this.radiusHandle&&(this.layer.destroyFeatures([this.radiusHandle],{silent:!0}),delete this.radiusHandle);this.feature=null;this.dragControl.deactivate();this.onModificationEnd(a);this.layer.events.triggerEvent("afterfeaturemodified",{feature:a,modified:this.modified});this.modified=!1},dragStart:function(a,b){if(a!=this.feature&&(!a.geometry.parent&&a!=this.dragHandle&&\n +a!=this.radiusHandle)&&(!1===this.standalone&&this.feature&&this.selectControl.clickFeature.apply(this.selectControl,[this.feature]),null==this.geometryTypes||-1!=OpenLayers.Util.indexOf(this.geometryTypes,a.geometry.CLASS_NAME)))this.standalone||this.selectControl.clickFeature.apply(this.selectControl,[a]),this.dragControl.overFeature.apply(this.dragControl,[a]),this.dragControl.lastPixel=b,this.dragControl.handlers.drag.started=!0,this.dragControl.handlers.drag.start=b,this.dragControl.handlers.drag.last=\n +b},dragVertex:function(a,b){this.modified=!0;"OpenLayers.Geometry.Point"==this.feature.geometry.CLASS_NAME?(this.feature!=a&&(this.feature=a),this.layer.events.triggerEvent("vertexmodified",{vertex:a.geometry,feature:this.feature,pixel:b})):(a._index?(a.geometry.parent.addComponent(a.geometry,a._index),delete a._index,OpenLayers.Util.removeItem(this.virtualVertices,a),this.vertices.push(a)):a==this.dragHandle?(this.layer.removeFeatures(this.vertices,{silent:!0}),this.vertices=[],this.radiusHandle&&\n +(this.layer.destroyFeatures([this.radiusHandle],{silent:!0}),this.radiusHandle=null)):a!==this.radiusHandle&&this.layer.events.triggerEvent("vertexmodified",{vertex:a.geometry,feature:this.feature,pixel:b}),0<this.virtualVertices.length&&(this.layer.destroyFeatures(this.virtualVertices,{silent:!0}),this.virtualVertices=[]),this.layer.drawFeature(this.feature,this.standalone?void 0:this.selectControl.renderIntent));this.layer.drawFeature(a)},dragComplete:function(){this.resetVertices();this.setFeatureState();\n +this.onModification(this.feature);this.layer.events.triggerEvent("featuremodified",{feature:this.feature})},setFeatureState:function(){if(this.feature.state!=OpenLayers.State.INSERT&&this.feature.state!=OpenLayers.State.DELETE&&(this.feature.state=OpenLayers.State.UPDATE,this.modified&&this._originalGeometry)){var a=this.feature;a.modified=OpenLayers.Util.extend(a.modified,{geometry:this._originalGeometry});delete this._originalGeometry}},resetVertices:function(){this.dragControl.feature&&this.dragControl.outFeature(this.dragControl.feature);\n +0<this.vertices.length&&(this.layer.removeFeatures(this.vertices,{silent:!0}),this.vertices=[]);0<this.virtualVertices.length&&(this.layer.removeFeatures(this.virtualVertices,{silent:!0}),this.virtualVertices=[]);this.dragHandle&&(this.layer.destroyFeatures([this.dragHandle],{silent:!0}),this.dragHandle=null);this.radiusHandle&&(this.layer.destroyFeatures([this.radiusHandle],{silent:!0}),this.radiusHandle=null);this.feature&&"OpenLayers.Geometry.Point"!=this.feature.geometry.CLASS_NAME&&(this.mode&\n +OpenLayers.Control.ModifyFeature.DRAG&&this.collectDragHandle(),this.mode&(OpenLayers.Control.ModifyFeature.ROTATE|OpenLayers.Control.ModifyFeature.RESIZE)&&this.collectRadiusHandle(),this.mode&OpenLayers.Control.ModifyFeature.RESHAPE&&(this.mode&OpenLayers.Control.ModifyFeature.RESIZE||this.collectVertices()))},handleKeypress:function(a){var b=a.keyCode;if(this.feature&&-1!=OpenLayers.Util.indexOf(this.deleteCodes,b)&&(b=this.dragControl.feature)&&-1!=OpenLayers.Util.indexOf(this.vertices,b)&&!this.dragControl.handlers.drag.dragging&&\n +b.geometry.parent)b.geometry.parent.removeComponent(b.geometry),this.layer.events.triggerEvent("vertexremoved",{vertex:b.geometry,feature:this.feature,pixel:a.xy}),this.layer.drawFeature(this.feature,this.standalone?void 0:this.selectControl.renderIntent),this.modified=!0,this.resetVertices(),this.setFeatureState(),this.onModification(this.feature),this.layer.events.triggerEvent("featuremodified",{feature:this.feature})},collectVertices:function(){function a(c){var d,e,f;if("OpenLayers.Geometry.Point"==\n +c.CLASS_NAME)e=new OpenLayers.Feature.Vector(c),e._sketch=!0,e.renderIntent=b.vertexRenderIntent,b.vertices.push(e);else{f=c.components.length;"OpenLayers.Geometry.LinearRing"==c.CLASS_NAME&&(f-=1);for(d=0;d<f;++d)e=c.components[d],"OpenLayers.Geometry.Point"==e.CLASS_NAME?(e=new OpenLayers.Feature.Vector(e),e._sketch=!0,e.renderIntent=b.vertexRenderIntent,b.vertices.push(e)):a(e);if(b.createVertices&&"OpenLayers.Geometry.MultiPoint"!=c.CLASS_NAME){d=0;for(f=c.components.length;d<f-1;++d){e=c.components[d];\n +var g=c.components[d+1];"OpenLayers.Geometry.Point"==e.CLASS_NAME&&"OpenLayers.Geometry.Point"==g.CLASS_NAME&&(e=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point((e.x+g.x)/2,(e.y+g.y)/2),null,b.virtualStyle),e.geometry.parent=c,e._index=d+1,e._sketch=!0,b.virtualVertices.push(e))}}}}this.vertices=[];this.virtualVertices=[];var b=this;a.call(this,this.feature.geometry);this.layer.addFeatures(this.virtualVertices,{silent:!0});this.layer.addFeatures(this.vertices,{silent:!0})},collectDragHandle:function(){var a=\n +this.feature.geometry,b=a.getBounds().getCenterLonLat(),b=new OpenLayers.Geometry.Point(b.lon,b.lat),c=new OpenLayers.Feature.Vector(b);b.move=function(b,c){OpenLayers.Geometry.Point.prototype.move.call(this,b,c);a.move(b,c)};c._sketch=!0;this.dragHandle=c;this.dragHandle.renderIntent=this.vertexRenderIntent;this.layer.addFeatures([this.dragHandle],{silent:!0})},collectRadiusHandle:function(){var a=this.feature.geometry,b=a.getBounds(),c=b.getCenterLonLat(),d=new OpenLayers.Geometry.Point(c.lon,c.lat),\n +b=new OpenLayers.Geometry.Point(b.right,b.bottom),c=new OpenLayers.Feature.Vector(b),e=this.mode&OpenLayers.Control.ModifyFeature.RESIZE,f=this.mode&OpenLayers.Control.ModifyFeature.RESHAPE,g=this.mode&OpenLayers.Control.ModifyFeature.ROTATE;b.move=function(b,c){OpenLayers.Geometry.Point.prototype.move.call(this,b,c);var j=this.x-d.x,k=this.y-d.y,l=j-b,m=k-c;if(g){var n=Math.atan2(m,l),n=Math.atan2(k,j)-n,n=n*(180/Math.PI);a.rotate(n,d)}if(e){var o;f?(k/=m,o=j/l/k):(l=Math.sqrt(l*l+m*m),k=Math.sqrt(j*\n +j+k*k)/l);a.resize(k,d,o)}};c._sketch=!0;this.radiusHandle=c;this.radiusHandle.renderIntent=this.vertexRenderIntent;this.layer.addFeatures([this.radiusHandle],{silent:!0})},setMap:function(a){this.standalone||this.selectControl.setMap(a);this.dragControl.setMap(a);OpenLayers.Control.prototype.setMap.apply(this,arguments)},CLASS_NAME:"OpenLayers.Control.ModifyFeature"});OpenLayers.Control.ModifyFeature.RESHAPE=1;OpenLayers.Control.ModifyFeature.RESIZE=2;OpenLayers.Control.ModifyFeature.ROTATE=4;\n +OpenLayers.Control.ModifyFeature.DRAG=8;OpenLayers.Layer.Bing=OpenLayers.Class(OpenLayers.Layer.XYZ,{key:null,serverResolutions:[156543.03390625,78271.516953125,39135.7584765625,19567.87923828125,9783.939619140625,4891.9698095703125,2445.9849047851562,1222.9924523925781,611.4962261962891,305.74811309814453,152.87405654907226,76.43702827453613,38.218514137268066,19.109257068634033,9.554628534317017,4.777314267158508,2.388657133579254,1.194328566789627,0.5971642833948135,0.29858214169740677,0.14929107084870338,0.07464553542435169],attributionTemplate:\'<span class="olBingAttribution ${type}"><div><a target="_blank" href="http://www.bing.com/maps/"><img src="${logo}" /></a></div>${copyrights}<a style="white-space: nowrap" target="_blank" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a></span>\',\n +metadata:null,type:"Road",culture:"en-US",metadataParams:null,tileOptions:null,initialize:function(a){a=OpenLayers.Util.applyDefaults({sphericalMercator:!0},a);OpenLayers.Layer.XYZ.prototype.initialize.apply(this,[a.name||"Bing "+(a.type||this.type),null,a]);this.tileOptions=OpenLayers.Util.extend({crossOriginKeyword:"anonymous"},this.options.tileOptions);this.loadMetadata()},loadMetadata:function(){this._callbackId="_callback_"+this.id.replace(/\\./g,"_");window[this._callbackId]=OpenLayers.Function.bind(OpenLayers.Layer.Bing.processMetadata,\n +this);var a=OpenLayers.Util.applyDefaults({key:this.key,jsonp:this._callbackId,include:"ImageryProviders"},this.metadataParams),a="http://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.type+"?"+OpenLayers.Util.getParameterString(a),b=document.createElement("script");b.type="text/javascript";b.src=a;b.id=this._callbackId;document.getElementsByTagName("head")[0].appendChild(b)},initLayer:function(){var a=this.metadata.resourceSets[0].resources[0],b=a.imageUrl.replace("{quadkey}","${quadkey}"),\n +b=b.replace("{culture}",this.culture);this.url=[];for(var c=0;c<a.imageUrlSubdomains.length;++c)this.url.push(b.replace("{subdomain}",a.imageUrlSubdomains[c]));this.addOptions({maxResolution:Math.min(this.serverResolutions[a.zoomMin],this.maxResolution||Number.POSITIVE_INFINITY),numZoomLevels:Math.min(a.zoomMax+1-a.zoomMin,this.numZoomLevels)},!0)},getURL:function(a){if(this.url){for(var b=this.getXYZ(a),a=b.x,c=b.y,b=b.z,d=[],e=b;0<e;--e){var f="0",g=1<<e-1;0!=(a&g)&&f++;0!=(c&g)&&(f++,f++);d.push(f)}d=\n +d.join("");a=this.selectUrl(""+a+c+b,this.url);return OpenLayers.String.format(a,{quadkey:d})}},updateAttribution:function(){var a=this.metadata;if(a.resourceSets&&this.map&&this.map.center){var b=a.resourceSets[0].resources[0],c=this.map.getExtent().transform(this.map.getProjectionObject(),new OpenLayers.Projection("EPSG:4326")),b=b.imageryProviders,d=OpenLayers.Util.indexOf(this.serverResolutions,this.getServerResolution()),e="",f,g,h,i,j,k,l;g=0;for(h=b.length;g<h;++g){f=b[g];i=0;for(j=f.coverageAreas.length;i<\n +j;++i)l=f.coverageAreas[i],k=OpenLayers.Bounds.fromArray(l.bbox,!0),c.intersectsBounds(k)&&(d<=l.zoomMax&&d>=l.zoomMin)&&(e+=f.attribution+" ")}this.attribution=OpenLayers.String.format(this.attributionTemplate,{type:this.type.toLowerCase(),logo:a.brandLogoUri,copyrights:e});this.map&&this.map.events.triggerEvent("changelayer",{layer:this,property:"attribution"})}},setMap:function(){OpenLayers.Layer.XYZ.prototype.setMap.apply(this,arguments);this.updateAttribution();this.map.events.register("moveend",\n +this,this.updateAttribution)},clone:function(a){null==a&&(a=new OpenLayers.Layer.Bing(this.options));return a=OpenLayers.Layer.XYZ.prototype.clone.apply(this,[a])},destroy:function(){this.map&&this.map.events.unregister("moveend",this,this.updateAttribution);OpenLayers.Layer.XYZ.prototype.destroy.apply(this,arguments)},CLASS_NAME:"OpenLayers.Layer.Bing"});\n +OpenLayers.Layer.Bing.processMetadata=function(a){this.metadata=a;this.initLayer();a=document.getElementById(this._callbackId);a.parentNode.removeChild(a);window[this._callbackId]=void 0;delete this._callbackId};OpenLayers.Layer.PointGrid=OpenLayers.Class(OpenLayers.Layer.Vector,{dx:null,dy:null,ratio:1.5,maxFeatures:250,rotation:0,origin:null,gridBounds:null,initialize:function(a){a=a||{};OpenLayers.Layer.Vector.prototype.initialize.apply(this,[a.name,a])},setMap:function(a){OpenLayers.Layer.Vector.prototype.setMap.apply(this,arguments);a.events.register("moveend",this,this.onMoveEnd)},removeMap:function(a){a.events.unregister("moveend",this,this.onMoveEnd);OpenLayers.Layer.Vector.prototype.removeMap.apply(this,\n +arguments)},setRatio:function(a){this.ratio=a;this.updateGrid(!0)},setMaxFeatures:function(a){this.maxFeatures=a;this.updateGrid(!0)},setSpacing:function(a,b){this.dx=a;this.dy=b||a;this.updateGrid(!0)},setOrigin:function(a){this.origin=a;this.updateGrid(!0)},getOrigin:function(){this.origin||(this.origin=this.map.getExtent().getCenterLonLat());return this.origin},setRotation:function(a){this.rotation=a;this.updateGrid(!0)},onMoveEnd:function(){this.updateGrid()},getViewBounds:function(){var a=this.map.getExtent();\n +if(this.rotation){var b=this.getOrigin(),b=new OpenLayers.Geometry.Point(b.lon,b.lat),a=a.toGeometry();a.rotate(-this.rotation,b);a=a.getBounds()}return a},updateGrid:function(a){if(a||this.invalidBounds()){var b=this.getViewBounds(),c=this.getOrigin(),a=new OpenLayers.Geometry.Point(c.lon,c.lat),d=b.getWidth(),e=b.getHeight(),f=d/e,g=Math.sqrt(this.dx*this.dy*this.maxFeatures/f),d=Math.min(d*this.ratio,g*f),e=Math.min(e*this.ratio,g),b=b.getCenterLonLat();this.gridBounds=new OpenLayers.Bounds(b.lon-\n +d/2,b.lat-e/2,b.lon+d/2,b.lat+e/2);for(var b=Math.floor(e/this.dy),d=Math.floor(d/this.dx),e=c.lon+this.dx*Math.ceil((this.gridBounds.left-c.lon)/this.dx),c=c.lat+this.dy*Math.ceil((this.gridBounds.bottom-c.lat)/this.dy),g=Array(b*d),h,i=0;i<d;++i)for(var f=e+i*this.dx,j=0;j<b;++j)h=c+j*this.dy,h=new OpenLayers.Geometry.Point(f,h),this.rotation&&h.rotate(this.rotation,a),g[i*b+j]=new OpenLayers.Feature.Vector(h);this.destroyFeatures(this.features,{silent:!0});this.addFeatures(g,{silent:!0})}},invalidBounds:function(){return!this.gridBounds||\n +!this.gridBounds.containsBounds(this.getViewBounds())},CLASS_NAME:"OpenLayers.Layer.PointGrid"});OpenLayers.Handler.MouseWheel=OpenLayers.Class(OpenLayers.Handler,{wheelListener:null,mousePosition:null,interval:0,delta:0,cumulative:!0,initialize:function(a,b,c){OpenLayers.Handler.prototype.initialize.apply(this,arguments);this.wheelListener=OpenLayers.Function.bindAsEventListener(this.onWheelEvent,this)},destroy:function(){OpenLayers.Handler.prototype.destroy.apply(this,arguments);this.wheelListener=null},onWheelEvent:function(a){if(this.map&&this.checkModifiers(a)){for(var b=!1,c=!1,d=!1,e=\n +OpenLayers.Event.element(a);null!=e&&!d&&!b;){if(!b)try{var f=e.currentStyle?e.currentStyle.overflow:document.defaultView.getComputedStyle(e,null).getPropertyValue("overflow"),b=f&&"auto"==f||"scroll"==f}catch(g){}if(!c)for(var d=0,h=this.map.layers.length;d<h;d++)if(e==this.map.layers[d].div||e==this.map.layers[d].pane){c=!0;break}d=e==this.map.div;e=e.parentNode}!b&&d&&(c&&((b=0,a||(a=window.event),a.wheelDelta?(b=a.wheelDelta/120,window.opera&&9.2>window.opera.version()&&(b=-b)):a.detail&&(b=-a.detail/\n +3),this.delta+=b,this.interval)?(window.clearTimeout(this._timeoutId),this._timeoutId=window.setTimeout(OpenLayers.Function.bind(function(){this.wheelZoom(a)},this),this.interval)):this.wheelZoom(a)),OpenLayers.Event.stop(a))}},wheelZoom:function(a){var b=this.delta;this.delta=0;b&&(this.mousePosition&&(a.xy=t + +]]></string> </value> + </item> + <item> + <key> <string>next</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="7" aka="AAAAAAAAAAc="> + <pickle> + <global name="Pdata" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +his.mousePosition),a.xy||(a.xy=this.map.getPixelFromLonLat(this.map.getCenter())),0>b?this.callback("down",[a,this.cumulative?b:-1]):this.callback("up",[a,this.cumulative?b:1]))},mousemove:function(a){this.mousePosition=\n +a.xy},activate:function(a){if(OpenLayers.Handler.prototype.activate.apply(this,arguments)){var b=this.wheelListener;OpenLayers.Event.observe(window,"DOMMouseScroll",b);OpenLayers.Event.observe(window,"mousewheel",b);OpenLayers.Event.observe(document,"mousewheel",b);return!0}return!1},deactivate:function(a){if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments)){var b=this.wheelListener;OpenLayers.Event.stopObserving(window,"DOMMouseScroll",b);OpenLayers.Event.stopObserving(window,"mousewheel",\n +b);OpenLayers.Event.stopObserving(document,"mousewheel",b);return!0}return!1},CLASS_NAME:"OpenLayers.Handler.MouseWheel"});OpenLayers.Symbolizer=OpenLayers.Class({zIndex:0,initialize:function(a){OpenLayers.Util.extend(this,a)},clone:function(){return new (eval(this.CLASS_NAME))(OpenLayers.Util.extend({},this))},CLASS_NAME:"OpenLayers.Symbolizer"});OpenLayers.Symbolizer.Raster=OpenLayers.Class(OpenLayers.Symbolizer,{initialize:function(a){OpenLayers.Symbolizer.prototype.initialize.apply(this,arguments)},CLASS_NAME:"OpenLayers.Symbolizer.Raster"});OpenLayers.Rule=OpenLayers.Class({id:null,name:null,title:null,description:null,context:null,filter:null,elseFilter:!1,symbolizer:null,symbolizers:null,minScaleDenominator:null,maxScaleDenominator:null,initialize:function(a){this.symbolizer={};OpenLayers.Util.extend(this,a);this.symbolizers&&delete this.symbolizer;this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},destroy:function(){for(var a in this.symbolizer)this.symbolizer[a]=null;this.symbolizer=null;delete this.symbolizers},evaluate:function(a){var b=\n +this.getContext(a),c=!0;if(this.minScaleDenominator||this.maxScaleDenominator)var d=a.layer.map.getScale();this.minScaleDenominator&&(c=d>=OpenLayers.Style.createLiteral(this.minScaleDenominator,b));c&&this.maxScaleDenominator&&(c=d<OpenLayers.Style.createLiteral(this.maxScaleDenominator,b));c&&this.filter&&(c="OpenLayers.Filter.FeatureId"==this.filter.CLASS_NAME?this.filter.evaluate(a):this.filter.evaluate(b));return c},getContext:function(a){var b=this.context;b||(b=a.attributes||a.data);"function"==\n +typeof this.context&&(b=this.context(a));return b},clone:function(){var a=OpenLayers.Util.extend({},this);if(this.symbolizers){var b=this.symbolizers.length;a.symbolizers=Array(b);for(var c=0;c<b;++c)a.symbolizers[c]=this.symbolizers[c].clone()}else{a.symbolizer={};for(var d in this.symbolizer)b=this.symbolizer[d],c=typeof b,"object"===c?a.symbolizer[d]=OpenLayers.Util.extend({},b):"string"===c&&(a.symbolizer[d]=b)}a.filter=this.filter&&this.filter.clone();a.context=this.context&&OpenLayers.Util.extend({},\n +this.context);return new OpenLayers.Rule(a)},CLASS_NAME:"OpenLayers.Rule"});OpenLayers.Filter.Spatial=OpenLayers.Class(OpenLayers.Filter,{type:null,property:null,value:null,distance:null,distanceUnits:null,evaluate:function(a){var b=!1;switch(this.type){case OpenLayers.Filter.Spatial.BBOX:case OpenLayers.Filter.Spatial.INTERSECTS:if(a.geometry){var c=this.value;"OpenLayers.Bounds"==this.value.CLASS_NAME&&(c=this.value.toGeometry());a.geometry.intersects(c)&&(b=!0)}break;default:throw Error("evaluate is not implemented for this filter type.");}return b},clone:function(){var a=\n +OpenLayers.Util.applyDefaults({value:this.value&&this.value.clone&&this.value.clone()},this);return new OpenLayers.Filter.Spatial(a)},CLASS_NAME:"OpenLayers.Filter.Spatial"});OpenLayers.Filter.Spatial.BBOX="BBOX";OpenLayers.Filter.Spatial.INTERSECTS="INTERSECTS";OpenLayers.Filter.Spatial.DWITHIN="DWITHIN";OpenLayers.Filter.Spatial.WITHIN="WITHIN";OpenLayers.Filter.Spatial.CONTAINS="CONTAINS";OpenLayers.Format.SLD=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{profile:null,defaultVersion:"1.0.0",stringifyOutput:!0,namedLayersAsArray:!1,CLASS_NAME:"OpenLayers.Format.SLD"});OpenLayers.Symbolizer.Polygon=OpenLayers.Class(OpenLayers.Symbolizer,{initialize:function(a){OpenLayers.Symbolizer.prototype.initialize.apply(this,arguments)},CLASS_NAME:"OpenLayers.Symbolizer.Polygon"});OpenLayers.Format.GML.v2=OpenLayers.Class(OpenLayers.Format.GML.Base,{schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd",initialize:function(a){OpenLayers.Format.GML.Base.prototype.initialize.apply(this,[a])},readers:{gml:OpenLayers.Util.applyDefaults({outerBoundaryIs:function(a,b){var c={};this.readChildNodes(a,c);b.outer=c.components[0]},innerBoundaryIs:function(a,b){var c={};this.readChildNodes(a,c);b.inner.push(c.components[0])},Box:function(a,b){var c=\n +{};this.readChildNodes(a,c);b.components||(b.components=[]);var d=c.points[0],c=c.points[1];b.components.push(new OpenLayers.Bounds(d.x,d.y,c.x,c.y))}},OpenLayers.Format.GML.Base.prototype.readers.gml),feature:OpenLayers.Format.GML.Base.prototype.readers.feature,wfs:OpenLayers.Format.GML.Base.prototype.readers.wfs},write:function(a){a=this.writeNode(OpenLayers.Util.isArray(a)?"wfs:FeatureCollection":"gml:featureMember",a);this.setAttributeNS(a,this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);\n +return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{gml:OpenLayers.Util.applyDefaults({Point:function(a){var b=this.createElementNSPlus("gml:Point");this.writeNode("coordinates",[a],b);return b},coordinates:function(a){for(var b=a.length,c=Array(b),d,e=0;e<b;++e)d=a[e],c[e]=this.xy?d.x+","+d.y:d.y+","+d.x,void 0!=d.z&&(c[e]+=","+d.z);return this.createElementNSPlus("gml:coordinates",{attributes:{decimal:".",cs:",",ts:" "},value:1==b?c[0]:c.join(" ")})},LineString:function(a){var b=\n +this.createElementNSPlus("gml:LineString");this.writeNode("coordinates",a.components,b);return b},Polygon:function(a){var b=this.createElementNSPlus("gml:Polygon");this.writeNode("outerBoundaryIs",a.components[0],b);for(var c=1;c<a.components.length;++c)this.writeNode("innerBoundaryIs",a.components[c],b);return b},outerBoundaryIs:function(a){var b=this.createElementNSPlus("gml:outerBoundaryIs");this.writeNode("LinearRing",a,b);return b},innerBoundaryIs:function(a){var b=this.createElementNSPlus("gml:innerBoundaryIs");\n +this.writeNode("LinearRing",a,b);return b},LinearRing:function(a){var b=this.createElementNSPlus("gml:LinearRing");this.writeNode("coordinates",a.components,b);return b},Box:function(a){var b=this.createElementNSPlus("gml:Box");this.writeNode("coordinates",[{x:a.left,y:a.bottom},{x:a.right,y:a.top}],b);this.srsName&&b.setAttribute("srsName",this.srsName);return b}},OpenLayers.Format.GML.Base.prototype.writers.gml),feature:OpenLayers.Format.GML.Base.prototype.writers.feature,wfs:OpenLayers.Format.GML.Base.prototype.writers.wfs},\n +CLASS_NAME:"OpenLayers.Format.GML.v2"});OpenLayers.Format.Filter.v1_0_0=OpenLayers.Class(OpenLayers.Format.GML.v2,OpenLayers.Format.Filter.v1,{VERSION:"1.0.0",schemaLocation:"http://www.opengis.net/ogc/filter/1.0.0/filter.xsd",initialize:function(a){OpenLayers.Format.GML.v2.prototype.initialize.apply(this,[a])},readers:{ogc:OpenLayers.Util.applyDefaults({PropertyIsEqualTo:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.EQUAL_TO});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsNotEqualTo:function(a,\n +b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.NOT_EQUAL_TO});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsLike:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.LIKE});this.readChildNodes(a,c);var d=a.getAttribute("wildCard"),e=a.getAttribute("singleChar"),f=a.getAttribute("escape");c.value2regex(d,e,f);b.filters.push(c)}},OpenLayers.Format.Filter.v1.prototype.readers.ogc),gml:OpenLayers.Format.GML.v2.prototype.readers.gml,\n +feature:OpenLayers.Format.GML.v2.prototype.readers.feature},writers:{ogc:OpenLayers.Util.applyDefaults({PropertyIsEqualTo:function(a){var b=this.createElementNSPlus("ogc:PropertyIsEqualTo");this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsNotEqualTo:function(a){var b=this.createElementNSPlus("ogc:PropertyIsNotEqualTo");this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsLike:function(a){var b=this.createElementNSPlus("ogc:PropertyIsLike",\n +{attributes:{wildCard:"*",singleChar:".",escape:"!"}});this.writeNode("PropertyName",a,b);this.writeNode("Literal",a.regex2value(),b);return b},BBOX:function(a){var b=this.createElementNSPlus("ogc:BBOX");a.property&&this.writeNode("PropertyName",a,b);var c=this.writeNode("gml:Box",a.value,b);a.projection&&c.setAttribute("srsName",a.projection);return b}},OpenLayers.Format.Filter.v1.prototype.writers.ogc),gml:OpenLayers.Format.GML.v2.prototype.writers.gml,feature:OpenLayers.Format.GML.v2.prototype.writers.feature},\n +writeSpatial:function(a,b){var c=this.createElementNSPlus("ogc:"+b);this.writeNode("PropertyName",a,c);if(a.value instanceof OpenLayers.Filter.Function)this.writeNode("Function",a.value,c);else{var d;d=a.value instanceof OpenLayers.Geometry?this.writeNode("feature:_geometry",a.value).firstChild:this.writeNode("gml:Box",a.value);a.projection&&d.setAttribute("srsName",a.projection);c.appendChild(d)}return c},CLASS_NAME:"OpenLayers.Format.Filter.v1_0_0"});OpenLayers.Format.WFST.v1_0_0=OpenLayers.Class(OpenLayers.Format.Filter.v1_0_0,OpenLayers.Format.WFST.v1,{version:"1.0.0",srsNameInQuery:!1,schemaLocations:{wfs:"http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd"},initialize:function(a){OpenLayers.Format.Filter.v1_0_0.prototype.initialize.apply(this,[a]);OpenLayers.Format.WFST.v1.prototype.initialize.apply(this,[a])},readNode:function(a,b){return OpenLayers.Format.GML.v2.prototype.readNode.apply(this,[a,b])},readers:{wfs:OpenLayers.Util.applyDefaults({WFS_TransactionResponse:function(a,\n +b){b.insertIds=[];b.success=!1;this.readChildNodes(a,b)},InsertResult:function(a,b){var c={fids:[]};this.readChildNodes(a,c);b.insertIds.push(c.fids[0])},TransactionResult:function(a,b){this.readChildNodes(a,b)},Status:function(a,b){this.readChildNodes(a,b)},SUCCESS:function(a,b){b.success=!0}},OpenLayers.Format.WFST.v1.prototype.readers.wfs),gml:OpenLayers.Format.GML.v2.prototype.readers.gml,feature:OpenLayers.Format.GML.v2.prototype.readers.feature,ogc:OpenLayers.Format.Filter.v1_0_0.prototype.readers.ogc},\n +writers:{wfs:OpenLayers.Util.applyDefaults({Query:function(a){var a=OpenLayers.Util.extend({featureNS:this.featureNS,featurePrefix:this.featurePrefix,featureType:this.featureType,srsName:this.srsName,srsNameInQuery:this.srsNameInQuery},a),b=a.featurePrefix,c=this.createElementNSPlus("wfs:Query",{attributes:{typeName:(b?b+":":"")+a.featureType}});a.srsNameInQuery&&a.srsName&&c.setAttribute("srsName",a.srsName);a.featureNS&&c.setAttribute("xmlns:"+b,a.featureNS);if(a.propertyNames)for(var b=0,d=a.propertyNames.length;b<\n +d;b++)this.writeNode("ogc:PropertyName",{property:a.propertyNames[b]},c);a.filter&&(this.setFilterProperty(a.filter),this.writeNode("ogc:Filter",a.filter,c));return c}},OpenLayers.Format.WFST.v1.prototype.writers.wfs),gml:OpenLayers.Format.GML.v2.prototype.writers.gml,feature:OpenLayers.Format.GML.v2.prototype.writers.feature,ogc:OpenLayers.Format.Filter.v1_0_0.prototype.writers.ogc},CLASS_NAME:"OpenLayers.Format.WFST.v1_0_0"});OpenLayers.ElementsIndexer=OpenLayers.Class({maxZIndex:null,order:null,indices:null,compare:null,initialize:function(a){this.compare=a?OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER_Y_ORDER:OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER_DRAWING_ORDER;this.clear()},insert:function(a){this.exists(a)&&this.remove(a);var b=a.id;this.determineZIndex(a);for(var c=-1,d=this.order.length,e;1<d-c;)e=parseInt((c+d)/2),0<this.compare(this,a,OpenLayers.Util.getElement(this.order[e]))?c=e:d=e;this.order.splice(d,\n +0,b);this.indices[b]=this.getZIndex(a);return this.getNextElement(d)},remove:function(a){var a=a.id,b=OpenLayers.Util.indexOf(this.order,a);0<=b&&(this.order.splice(b,1),delete this.indices[a],this.maxZIndex=0<this.order.length?this.indices[this.order[this.order.length-1]]:0)},clear:function(){this.order=[];this.indices={};this.maxZIndex=0},exists:function(a){return null!=this.indices[a.id]},getZIndex:function(a){return a._style.graphicZIndex},determineZIndex:function(a){var b=a._style.graphicZIndex;\n +null==b?(b=this.maxZIndex,a._style.graphicZIndex=b):b>this.maxZIndex&&(this.maxZIndex=b)},getNextElement:function(a){a+=1;if(a<this.order.length){var b=OpenLayers.Util.getElement(this.order[a]);void 0==b&&(b=this.getNextElement(a));return b}return null},CLASS_NAME:"OpenLayers.ElementsIndexer"});\n +OpenLayers.ElementsIndexer.IndexingMethods={Z_ORDER:function(a,b,c){var b=a.getZIndex(b),d=0;c&&(a=a.getZIndex(c),d=b-a);return d},Z_ORDER_DRAWING_ORDER:function(a,b,c){a=OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER(a,b,c);c&&0==a&&(a=1);return a},Z_ORDER_Y_ORDER:function(a,b,c){a=OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER(a,b,c);c&&0===a&&(b=c._boundsBottom-b._boundsBottom,a=0===b?1:b);return a}};\n +OpenLayers.Renderer.Elements=OpenLayers.Class(OpenLayers.Renderer,{rendererRoot:null,root:null,vectorRoot:null,textRoot:null,xmlns:null,xOffset:0,indexer:null,BACKGROUND_ID_SUFFIX:"_background",LABEL_ID_SUFFIX:"_label",LABEL_OUTLINE_SUFFIX:"_outline",initialize:function(a,b){OpenLayers.Renderer.prototype.initialize.apply(this,arguments);this.rendererRoot=this.createRenderRoot();this.root=this.createRoot("_root");this.vectorRoot=this.createRoot("_vroot");this.textRoot=this.createRoot("_troot");this.root.appendChild(this.vectorRoot);\n +this.root.appendChild(this.textRoot);this.rendererRoot.appendChild(this.root);this.container.appendChild(this.rendererRoot);if(b&&(b.zIndexing||b.yOrdering))this.indexer=new OpenLayers.ElementsIndexer(b.yOrdering)},destroy:function(){this.clear();this.xmlns=this.root=this.rendererRoot=null;OpenLayers.Renderer.prototype.destroy.apply(this,arguments)},clear:function(){var a,b=this.vectorRoot;if(b)for(;a=b.firstChild;)b.removeChild(a);if(b=this.textRoot)for(;a=b.firstChild;)b.removeChild(a);this.indexer&&\n +this.indexer.clear()},setExtent:function(a,b){var c=OpenLayers.Renderer.prototype.setExtent.apply(this,arguments),d=this.getResolution();if(this.map.baseLayer&&this.map.baseLayer.wrapDateLine){var e,f=a.getWidth()/this.map.getExtent().getWidth(),a=a.scale(1/f),f=this.map.getMaxExtent();f.right>a.left&&f.right<a.right?e=!0:f.left>a.left&&f.left<a.right&&(e=!1);if(e!==this.rightOfDateLine||b)c=!1,this.xOffset=!0===e?f.getWidth()/d:0;this.rightOfDateLine=e}return c},getNodeType:function(){},drawGeometry:function(a,\n +b,c){var d=a.CLASS_NAME,e=!0;if("OpenLayers.Geometry.Collection"==d||"OpenLayers.Geometry.MultiPoint"==d||"OpenLayers.Geometry.MultiLineString"==d||"OpenLayers.Geometry.MultiPolygon"==d){for(var d=0,f=a.components.length;d<f;d++)e=this.drawGeometry(a.components[d],b,c)&&e;return e}d=e=!1;"none"!=b.display&&(b.backgroundGraphic?this.redrawBackgroundNode(a.id,a,b,c):d=!0,e=this.redrawNode(a.id,a,b,c));if(!1==e&&(b=document.getElementById(a.id)))b._style.backgroundGraphic&&(d=!0),b.parentNode.removeChild(b);\n +d&&(b=document.getElementById(a.id+this.BACKGROUND_ID_SUFFIX))&&b.parentNode.removeChild(b);return e},redrawNode:function(a,b,c,d){c=this.applyDefaultSymbolizer(c);a=this.nodeFactory(a,this.getNodeType(b,c));a._featureId=d;a._boundsBottom=b.getBounds().bottom;a._geometryClass=b.CLASS_NAME;a._style=c;b=this.drawGeometryNode(a,b,c);if(!1===b)return!1;a=b.node;this.indexer?(c=this.indexer.insert(a))?this.vectorRoot.insertBefore(a,c):this.vectorRoot.appendChild(a):a.parentNode!==this.vectorRoot&&this.vectorRoot.appendChild(a);\n +this.postDraw(a);return b.complete},redrawBackgroundNode:function(a,b,c){c=OpenLayers.Util.extend({},c);c.externalGraphic=c.backgroundGraphic;c.graphicXOffset=c.backgroundXOffset;c.graphicYOffset=c.backgroundYOffset;c.graphicZIndex=c.backgroundGraphicZIndex;c.graphicWidth=c.backgroundWidth||c.graphicWidth;c.graphicHeight=c.backgroundHeight||c.graphicHeight;c.backgroundGraphic=null;c.backgroundXOffset=null;c.backgroundYOffset=null;c.backgroundGraphicZIndex=null;return this.redrawNode(a+this.BACKGROUND_ID_SUFFIX,\n +b,c,null)},drawGeometryNode:function(a,b,c){var c=c||a._style,d={isFilled:void 0===c.fill?!0:c.fill,isStroked:void 0===c.stroke?!!c.strokeWidth:c.stroke},e;switch(b.CLASS_NAME){case "OpenLayers.Geometry.Point":!1===c.graphic&&(d.isFilled=!1,d.isStroked=!1);e=this.drawPoint(a,b);break;case "OpenLayers.Geometry.LineString":d.isFilled=!1;e=this.drawLineString(a,b);break;case "OpenLayers.Geometry.LinearRing":e=this.drawLinearRing(a,b);break;case "OpenLayers.Geometry.Polygon":e=this.drawPolygon(a,b);break;\n +case "OpenLayers.Geometry.Rectangle":e=this.drawRectangle(a,b)}a._options=d;return!1!=e?{node:this.setStyle(a,c,d,b),complete:e}:!1},postDraw:function(){},drawPoint:function(){},drawLineString:function(){},drawLinearRing:function(){},drawPolygon:function(){},drawRectangle:function(){},drawCircle:function(){},removeText:function(a){var b=document.getElementById(a+this.LABEL_ID_SUFFIX);b&&this.textRoot.removeChild(b);(a=document.getElementById(a+this.LABEL_OUTLINE_SUFFIX))&&this.textRoot.removeChild(a)},\n +getFeatureIdFromEvent:function(a){var b=a.target,c=b&&b.correspondingUseElement;return(c?c:b||a.srcElement)._featureId},eraseGeometry:function(a,b){if("OpenLayers.Geometry.MultiPoint"==a.CLASS_NAME||"OpenLayers.Geometry.MultiLineString"==a.CLASS_NAME||"OpenLayers.Geometry.MultiPolygon"==a.CLASS_NAME||"OpenLayers.Geometry.Collection"==a.CLASS_NAME)for(var c=0,d=a.components.length;c<d;c++)this.eraseGeometry(a.components[c],b);else if((c=OpenLayers.Util.getElement(a.id))&&c.parentNode)if(c.geometry&&\n +(c.geometry.destroy(),c.geometry=null),c.parentNode.removeChild(c),this.indexer&&this.indexer.remove(c),c._style.backgroundGraphic)(c=OpenLayers.Util.getElement(a.id+this.BACKGROUND_ID_SUFFIX))&&c.parentNode&&c.parentNode.removeChild(c)},nodeFactory:function(a,b){var c=OpenLayers.Util.getElement(a);c?this.nodeTypeCompare(c,b)||(c.parentNode.removeChild(c),c=this.nodeFactory(a,b)):c=this.createNode(b,a);return c},nodeTypeCompare:function(){},createNode:function(){},moveRoot:function(a){var b=this.root;\n +a.root.parentNode==this.rendererRoot&&(b=a.root);b.parentNode.removeChild(b);a.rendererRoot.appendChild(b)},getRenderLayerId:function(){return this.root.parentNode.parentNode.id},isComplexSymbol:function(a){return"circle"!=a&&!!a},CLASS_NAME:"OpenLayers.Renderer.Elements"});OpenLayers.Control.ArgParser=OpenLayers.Class(OpenLayers.Control,{center:null,zoom:null,layers:null,displayProjection:null,getParameters:function(a){var a=a||window.location.href,b=OpenLayers.Util.getParameters(a),c=a.indexOf("#");0<c&&(a="?"+a.substring(c+1,a.length),OpenLayers.Util.extend(b,OpenLayers.Util.getParameters(a)));return b},setMap:function(a){OpenLayers.Control.prototype.setMap.apply(this,arguments);for(var b=0,c=this.map.controls.length;b<c;b++){var d=this.map.controls[b];if(d!=this&&\n +"OpenLayers.Control.ArgParser"==d.CLASS_NAME){d.displayProjection!=this.displayProjection&&(this.displayProjection=d.displayProjection);break}}if(b==this.map.controls.length&&(b=this.getParameters(),b.layers&&(this.layers=b.layers,this.map.events.register("addlayer",this,this.configureLayers),this.configureLayers()),b.lat&&b.lon))this.center=new OpenLayers.LonLat(parseFloat(b.lon),parseFloat(b.lat)),b.zoom&&(this.zoom=parseFloat(b.zoom)),this.map.events.register("changebaselayer",this,this.setCenter),\n +this.setCenter()},setCenter:function(){this.map.baseLayer&&(this.map.events.unregister("changebaselayer",this,this.setCenter),this.displayProjection&&this.center.transform(this.displayProjection,this.map.getProjectionObject()),this.map.setCenter(this.center,this.zoom))},configureLayers:function(){if(this.layers.length==this.map.layers.length){this.map.events.unregister("addlayer",this,this.configureLayers);for(var a=0,b=this.layers.length;a<b;a++){var c=this.map.layers[a],d=this.layers.charAt(a);\n +"B"==d?this.map.setBaseLayer(c):("T"==d||"F"==d)&&c.setVisibility("T"==d)}}},CLASS_NAME:"OpenLayers.Control.ArgParser"});OpenLayers.Control.Permalink=OpenLayers.Class(OpenLayers.Control,{argParserClass:OpenLayers.Control.ArgParser,element:null,anchor:!1,base:"",displayProjection:null,initialize:function(a,b,c){null!==a&&"object"==typeof a&&!OpenLayers.Util.isElement(a)?(this.base=document.location.href,OpenLayers.Control.prototype.initialize.apply(this,[a]),null!=this.element&&(this.element=OpenLayers.Util.getElement(this.element))):(OpenLayers.Control.prototype.initialize.apply(this,[c]),this.element=OpenLayers.Util.getElement(a),\n +this.base=b||document.location.href)},destroy:function(){this.element&&this.element.parentNode==this.div&&(this.div.removeChild(this.element),this.element=null);this.map&&this.map.events.unregister("moveend",this,this.updateLink);OpenLayers.Control.prototype.destroy.apply(this,arguments)},setMap:function(a){OpenLayers.Control.prototype.setMap.apply(this,arguments);for(var b=0,c=this.map.controls.length;b<c;b++){var d=this.map.controls[b];if(d.CLASS_NAME==this.argParserClass.CLASS_NAME){d.displayProjection!=\n +this.displayProjection&&(this.displayProjection=d.displayProjection);break}}b==this.map.controls.length&&this.map.addControl(new this.argParserClass({displayProjection:this.displayProjection}))},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);!this.element&&!this.anchor&&(this.element=document.createElement("a"),this.element.innerHTML=OpenLayers.i18n("Permalink"),this.element.href="",this.div.appendChild(this.element));this.map.events.on({moveend:this.updateLink,changelayer:this.updateLink,\n +changebaselayer:this.updateLink,scope:this});this.updateLink();return this.div},updateLink:function(){var a=this.anchor?"#":"?",b=this.base;-1!=b.indexOf(a)&&(b=b.substring(0,b.indexOf(a)));b+=a+OpenLayers.Util.getParameterString(this.createParams());this.anchor&&!this.element?window.location.href=b:this.element.href=b},createParams:function(a,b,c){var a=a||this.map.getCenter(),d=OpenLayers.Util.getParameters(this.base);if(a){d.zoom=b||this.map.getZoom();b=a.lat;a=a.lon;this.displayProjection&&(b=\n +OpenLayers.Projection.transform({x:a,y:b},this.map.getProjectionObject(),this.displayProjection),a=b.x,b=b.y);d.lat=Math.round(1E5*b)/1E5;d.lon=Math.round(1E5*a)/1E5;c=c||this.map.layers;d.layers="";a=0;for(b=c.length;a<b;a++){var e=c[a];d.layers=e.isBaseLayer?d.layers+(e==this.map.baseLayer?"B":"0"):d.layers+(e.getVisibility()?"T":"F")}}return d},CLASS_NAME:"OpenLayers.Control.Permalink"});OpenLayers.Layer.TMS=OpenLayers.Class(OpenLayers.Layer.Grid,{serviceVersion:"1.0.0",layername:null,type:null,isBaseLayer:!0,tileOrigin:null,serverResolutions:null,zoomOffset:0,initialize:function(a,b,c){var d=[];d.push(a,b,{},c);OpenLayers.Layer.Grid.prototype.initialize.apply(this,d)},clone:function(a){null==a&&(a=new OpenLayers.Layer.TMS(this.name,this.url,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},getURL:function(a){var a=this.adjustBounds(a),b=this.getServerResolution(),\n +c=Math.round((a.left-this.tileOrigin.lon)/(b*this.tileSize.w)),a=Math.round((a.bottom-this.tileOrigin.lat)/(b*this.tileSize.h)),c=this.serviceVersion+"/"+this.layername+"/"+this.getServerZoom()+"/"+c+"/"+a+"."+this.type,a=this.url;OpenLayers.Util.isArray(a)&&(a=this.selectUrl(c,a));return a+c},setMap:function(a){OpenLayers.Layer.Grid.prototype.setMap.apply(this,arguments);this.tileOrigin||(this.tileOrigin=new OpenLayers.LonLat(this.map.maxExtent.left,this.map.maxExtent.bottom))},CLASS_NAME:"OpenLayers.Layer.TMS"});OpenLayers.Strategy.Fixed=OpenLayers.Class(OpenLayers.Strategy,{preload:!1,activate:function(){if(OpenLayers.Strategy.prototype.activate.apply(this,arguments)){this.layer.events.on({refresh:this.load,scope:this});if(!0==this.layer.visibility||this.preload)this.load();else this.layer.events.on({visibilitychanged:this.load,scope:this});return!0}return!1},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);a&&this.layer.events.un({refresh:this.load,visibilitychanged:this.load,\n +scope:this});return a},load:function(a){var b=this.layer;b.events.triggerEvent("loadstart");b.protocol.read(OpenLayers.Util.applyDefaults({callback:OpenLayers.Function.bind(this.merge,this,b.map.getProjectionObject()),filter:b.filter},a));b.events.un({visibilitychanged:this.load,scope:this})},merge:function(a,b){var c=this.layer;c.destroyFeatures();var d=b.features;if(d&&0<d.length){if(!a.equals(c.projection))for(var e,f=0,g=d.length;f<g;++f)(e=d[f].geometry)&&e.transform(c.projection,a);c.addFeatures(d)}c.events.triggerEvent("loadend")},\n +CLASS_NAME:"OpenLayers.Strategy.Fixed"});OpenLayers.Control.Zoom=OpenLayers.Class(OpenLayers.Control,{zoomInText:"+",zoomInId:"olZoomInLink",zoomOutText:"-",zoomOutId:"olZoomOutLink",draw:function(){var a=OpenLayers.Control.prototype.draw.apply(this),b=this.getOrCreateLinks(a),c=b.zoomIn,b=b.zoomOut,d=this.map.events;b.parentNode!==a&&(d=this.events,d.attachToElement(b.parentNode));d.register("buttonclick",this,this.onZoomClick);this.zoomInLink=c;this.zoomOutLink=b;return a},getOrCreateLinks:function(a){var b=document.getElementById(this.zoomInId),\n +c=document.getElementById(this.zoomOutId);b||(b=document.createElement("a"),b.href="#zoomIn",b.appendChild(document.createTextNode(this.zoomInText)),b.className="olControlZoomIn",a.appendChild(b));OpenLayers.Element.addClass(b,"olButton");c||(c=document.createElement("a"),c.href="#zoomOut",c.appendChild(document.createTextNode(this.zoomOutText)),c.className="olControlZoomOut",a.appendChild(c));OpenLayers.Element.addClass(c,"olButton");return{zoomIn:b,zoomOut:c}},onZoomClick:function(a){a=a.buttonElement;\n +a===this.zoomInLink?this.map.zoomIn():a===this.zoomOutLink&&this.map.zoomOut()},destroy:function(){this.map&&this.map.events.unregister("buttonclick",this,this.onZoomClick);delete this.zoomInLink;delete this.zoomOutLink;OpenLayers.Control.prototype.destroy.apply(this)},CLASS_NAME:"OpenLayers.Control.Zoom"});OpenLayers.Layer.PointTrack=OpenLayers.Class(OpenLayers.Layer.Vector,{dataFrom:null,styleFrom:null,addNodes:function(a,b){if(2>a.length)throw Error("At least two point features have to be added to create a line from");for(var c=Array(a.length-1),d,e,f,g=0,h=a.length;g<h;g++){d=a[g];if(f=d.geometry){if("OpenLayers.Geometry.Point"!=f.CLASS_NAME)throw new TypeError("Only features with point geometries are supported.");}else f=d.lonlat,f=new OpenLayers.Geometry.Point(f.lon,f.lat);if(0<g){d=null!=this.dataFrom?\n +a[g+this.dataFrom].data||a[g+this.dataFrom].attributes:null;var i=null!=this.styleFrom?a[g+this.styleFrom].style:null;e=new OpenLayers.Geometry.LineString([e,f]);c[g-1]=new OpenLayers.Feature.Vector(e,d,i)}e=f}this.addFeatures(c,b)},CLASS_NAME:"OpenLayers.Layer.PointTrack"});OpenLayers.Layer.PointTrack.SOURCE_NODE=-1;OpenLayers.Layer.PointTrack.TARGET_NODE=0;OpenLayers.Layer.PointTrack.dataFrom={SOURCE_NODE:-1,TARGET_NODE:0};OpenLayers.Protocol.WFS=function(a){var a=OpenLayers.Util.applyDefaults(a,OpenLayers.Protocol.WFS.DEFAULTS),b=OpenLayers.Protocol.WFS["v"+a.version.replace(/\\./g,"_")];if(!b)throw"Unsupported WFS version: "+a.version;return new b(a)};\n +OpenLayers.Protocol.WFS.fromWMSLayer=function(a,b){var c,d;c=a.params.LAYERS;c=(OpenLayers.Util.isArray(c)?c[0]:c).split(":");1<c.length&&(d=c[0]);c=c.pop();d={url:a.url,featureType:c,featurePrefix:d,srsName:a.projection&&a.projection.getCode()||a.map&&a.map.getProjectionObject().getCode(),version:"1.1.0"};return new OpenLayers.Protocol.WFS(OpenLayers.Util.applyDefaults(b,d))};OpenLayers.Protocol.WFS.DEFAULTS={version:"1.0.0"};OpenLayers.Layer.Markers=OpenLayers.Class(OpenLayers.Layer,{isBaseLayer:!1,markers:null,drawn:!1,initialize:function(a,b){OpenLayers.Layer.prototype.initialize.apply(this,arguments);this.markers=[]},destroy:function(){this.clearMarkers();this.markers=null;OpenLayers.Layer.prototype.destroy.apply(this,arguments)},setOpacity:function(a){if(a!=this.opacity){this.opacity=a;for(var a=0,b=this.markers.length;a<b;a++)this.markers[a].setOpacity(this.opacity)}},moveTo:function(a,b,c){OpenLayers.Layer.prototype.moveTo.apply(this,\n +arguments);if(b||!this.drawn){for(var d=0,e=this.markers.length;d<e;d++)this.drawMarker(this.markers[d]);this.drawn=!0}},addMarker:function(a){this.markers.push(a);1>this.opacity&&a.setOpacity(this.opacity);this.map&&this.map.getExtent()&&(a.map=this.map,this.drawMarker(a))},removeMarker:function(a){this.markers&&this.markers.length&&(OpenLayers.Util.removeItem(this.markers,a),a.erase())},clearMarkers:function(){if(null!=this.markers)for(;0<this.markers.length;)this.removeMarker(this.markers[0])},\n +drawMarker:function(a){var b=this.map.getLayerPxFromLonLat(a.lonlat);null==b?a.display(!1):a.isDrawn()?a.icon&&a.icon.moveTo(b):this.div.appendChild(a.draw(b))},getDataExtent:function(){var a=null;if(this.markers&&0<this.markers.length)for(var a=new OpenLayers.Bounds,b=0,c=this.markers.length;b<c;b++)a.extend(this.markers[b].lonlat);return a},CLASS_NAME:"OpenLayers.Layer.Markers"});OpenLayers.Control.Pan=OpenLayers.Class(OpenLayers.Control,{slideFactor:50,slideRatio:null,direction:null,type:OpenLayers.Control.TYPE_BUTTON,initialize:function(a,b){this.direction=a;this.CLASS_NAME+=this.direction;OpenLayers.Control.prototype.initialize.apply(this,[b])},trigger:function(){var a=OpenLayers.Function.bind(function(a){return this.slideRatio?this.map.getSize()[a]*this.slideRatio:this.slideFactor},this);switch(this.direction){case OpenLayers.Control.Pan.NORTH:this.map.pan(0,-a("h"));\n +break;case OpenLayers.Control.Pan.SOUTH:this.map.pan(0,a("h"));break;case OpenLayers.Control.Pan.WEST:this.map.pan(-a("w"),0);break;case OpenLayers.Control.Pan.EAST:this.map.pan(a("w"),0)}},CLASS_NAME:"OpenLayers.Control.Pan"});OpenLayers.Control.Pan.NORTH="North";OpenLayers.Control.Pan.SOUTH="South";OpenLayers.Control.Pan.EAST="East";OpenLayers.Control.Pan.WEST="West";OpenLayers.Format.CSWGetDomain=function(a){var a=OpenLayers.Util.applyDefaults(a,OpenLayers.Format.CSWGetDomain.DEFAULTS),b=OpenLayers.Format.CSWGetDomain["v"+a.version.replace(/\\./g,"_")];if(!b)throw"Unsupported CSWGetDomain version: "+a.version;return new b(a)};OpenLayers.Format.CSWGetDomain.DEFAULTS={version:"2.0.2"};OpenLayers.Format.CSWGetDomain.v2_0_2=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance",csw:"http://www.opengis.net/cat/csw/2.0.2"},defaultPrefix:"csw",version:"2.0.2",schemaLocation:"http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd",PropertyName:null,ParameterName:null,read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));a&&9==\n +a.nodeType&&(a=a.documentElement);var b={};this.readNode(a,b);return b},readers:{csw:{GetDomainResponse:function(a,b){this.readChildNodes(a,b)},DomainValues:function(a,b){OpenLayers.Util.isArray(b.DomainValues)||(b.DomainValues=[]);for(var c=a.attributes,d={},e=0,f=c.length;e<f;++e)d[c[e].name]=c[e].nodeValue;this.readChildNodes(a,d);b.DomainValues.push(d)},PropertyName:function(a,b){b.PropertyName=this.getChildValue(a)},ParameterName:function(a,b){b.ParameterName=this.getChildValue(a)},ListOfValues:function(a,\n +b){OpenLayers.Util.isArray(b.ListOfValues)||(b.ListOfValues=[]);this.readChildNodes(a,b.ListOfValues)},Value:function(a,b){for(var c=a.attributes,d={},e=0,f=c.length;e<f;++e)d[c[e].name]=c[e].nodeValue;d.value=this.getChildValue(a);b.push({Value:d})},ConceptualScheme:function(a,b){b.ConceptualScheme={};this.readChildNodes(a,b.ConceptualScheme)},Name:function(a,b){b.Name=this.getChildValue(a)},Document:function(a,b){b.Document=this.getChildValue(a)},Authority:function(a,b){b.Authority=this.getChildValue(a)},\n +RangeOfValues:function(a,b){b.RangeOfValues={};this.readChildNodes(a,b.RangeOfValues)},MinValue:function(a,b){for(var c=a.attributes,d={},e=0,f=c.length;e<f;++e)d[c[e].name]=c[e].nodeValue;d.value=this.getChildValue(a);b.MinValue=d},MaxValue:function(a,b){for(var c=a.attributes,d={},e=0,f=c.length;e<f;++e)d[c[e].name]=c[e].nodeValue;d.value=this.getChildValue(a);b.MaxValue=d}}},write:function(a){a=this.writeNode("csw:GetDomain",a);return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{csw:{GetDomain:function(a){var b=\n +this.createElementNSPlus("csw:GetDomain",{attributes:{service:"CSW",version:this.version}});if(a.PropertyName||this.PropertyName)this.writeNode("csw:PropertyName",a.PropertyName||this.PropertyName,b);else if(a.ParameterName||this.ParameterName)this.writeNode("csw:ParameterName",a.ParameterName||this.ParameterName,b);this.readChildNodes(b,a);return b},PropertyName:function(a){return this.createElementNSPlus("csw:PropertyName",{value:a})},ParameterName:function(a){return this.createElementNSPlus("csw:ParameterName",\n +{value:a})}}},CLASS_NAME:"OpenLayers.Format.CSWGetDomain.v2_0_2"});OpenLayers.Format.ArcXML.Features=OpenLayers.Class(OpenLayers.Format.XML,{read:function(a){return(new OpenLayers.Format.ArcXML).read(a).features.feature}});OpenLayers.Control.Snapping=OpenLayers.Class(OpenLayers.Control,{DEFAULTS:{tolerance:10,node:!0,edge:!0,vertex:!0},greedy:!0,precedence:["node","vertex","edge"],resolution:null,geoToleranceCache:null,layer:null,feature:null,point:null,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,[a]);this.options=a||{};this.options.layer&&this.setLayer(this.options.layer);a=OpenLayers.Util.extend({},this.options.defaults);this.defaults=OpenLayers.Util.applyDefaults(a,this.DEFAULTS);this.setTargets(this.options.targets);\n +0===this.targets.length&&this.layer&&this.addTargetLayer(this.layer);this.geoToleranceCache={}},setLayer:function(a){this.active?(this.deactivate(),this.layer=a,this.activate()):this.layer=a},setTargets:function(a){this.targets=[];if(a&&a.length)for(var b,c=0,d=a.length;c<d;++c)b=a[c],b instanceof OpenLayers.Layer.Vector?this.addTargetLayer(b):this.addTarget(b)},addTargetLayer:function(a){this.addTarget({layer:a})},addTarget:function(a){a=OpenLayers.Util.applyDefaults(a,this.defaults);a.nodeTolerance=\n +a.nodeTolerance||a.tolerance;a.vertexTolerance=a.vertexTolerance||a.tolerance;a.edgeTolerance=a.edgeTolerance||a.tolerance;this.targets.push(a)},removeTargetLayer:function(a){for(var b,c=this.targets.length-1;0<=c;--c)b=this.targets[c],b.layer===a&&this.removeTarget(b)},removeTarget:function(a){return OpenLayers.Util.removeItem(this.targets,a)},activate:function(){var a=OpenLayers.Control.prototype.activate.call(this);if(a&&this.layer&&this.layer.events)this.layer.events.on({sketchstarted:this.onSketchModified,\n +sketchmodified:this.onSketchModified,vertexmodified:this.onVertexModified,scope:this});return a},deactivate:function(){var a=OpenLayers.Control.prototype.deactivate.call(this);a&&this.layer&&this.layer.events&&this.layer.events.un({sketchstarted:this.onSketchModified,sketchmodified:this.onSketchModified,vertexmodified:this.onVertexModified,scope:this});this.point=this.feature=null;return a},onSketchModified:function(a){this.feature=a.feature;this.considerSnapping(a.vertex,a.vertex)},onVertexModified:function(a){this.feature=\n +a.feature;var b=this.layer.map.getLonLatFromViewPortPx(a.pixel);this.considerSnapping(a.vertex,new OpenLayers.Geometry.Point(b.lon,b.lat))},considerSnapping:function(a,b){for(var c={rank:Number.POSITIVE_INFINITY,dist:Number.POSITIVE_INFINITY,x:null,y:null},d=!1,e,f,g=0,h=this.targets.length;g<h;++g)if(f=this.targets[g],e=this.testTarget(f,b))if(this.greedy){c=e;c.target=f;d=!0;break}else if(e.rank<c.rank||e.rank===c.rank&&e.dist<c.dist)c=e,c.target=f,d=!0;d&&(!1!==this.events.triggerEvent("beforesnap",\n +{point:a,x:c.x,y:c.y,distance:c.dist,layer:c.target.layer,snapType:this.precedence[c.rank]})?(a.x=c.x,a.y=c.y,this.point=a,this.events.triggerEvent("snap",{point:a,snapType:this.precedence[c.rank],layer:c.target.layer,distance:c.dist})):d=!1);this.point&&!d&&(a.x=b.x,a.y=b.y,this.point=null,this.events.triggerEvent("unsnap",{point:a}))},testTarget:function(a,b){var c=this.layer.map.getResolution();if("minResolution"in a&&c<a.minResolution||"maxResolution"in a&&c>=a.maxResolution)return null;for(var c=\n +{node:this.getGeoTolerance(a.nodeTolerance,c),vertex:this.getGeoTolerance(a.vertexTolerance,c),edge:this.getGeoTolerance(a.edgeTolerance,c)},d=Math.max(c.node,c.vertex,c.edge),e={rank:Number.POSITIVE_INFINITY,dist:Number.POSITIVE_INFINITY},f=!1,g=a.layer.features,h,i,j,k,l,m,n=this.precedence.length,o=new OpenLayers.LonLat(b.x,b.y),p=0,q=g.length;p<q;++p)if(h=g[p],h!==this.feature&&(!h._sketch&&h.state!==OpenLayers.State.DELETE&&(!a.filter||a.filter.evaluate(h)))&&h.atPoint(o,d,d))for(var r=0,s=Math.min(e.rank+\n +1,n);r<s;++r)if(i=this.precedence[r],a[i])if("edge"===i){if(j=h.geometry.distanceTo(b,{details:!0}),l=j.distance,l<=c[i]&&l<e.dist){e={rank:r,dist:l,x:j.x0,y:j.y0};f=!0;break}}else{j=h.geometry.getVertices("node"===i);m=!1;for(var t=0,u=j.length;t<u;++t)if(k=j[t],l=k.distanceTo(b),l<=c[i]&&(r<e.rank||r===e.rank&&l<e.dist))e={rank:r,dist:l,x:k.x,y:k.y},m=f=!0;if(m)break}return f?e:null},getGeoTolerance:function(a,b){b!==this.resolution&&(this.resolution=b,this.geoToleranceCache={});var c=this.geoToleranceCache[a];\n +void 0===c&&(c=a*b,this.geoToleranceCache[a]=c);return c},destroy:function(){this.active&&this.deactivate();delete this.layer;delete this.targets;OpenLayers.Control.prototype.destroy.call(this)},CLASS_NAME:"OpenLayers.Control.Snapping"});OpenLayers.Date={toISOString:function(){if("toISOString"in Date.prototype)return function(a){return a.toISOString()};var a=function(a,c){for(var d=a+"";d.length<c;)d="0"+d;return d};return function(b){return isNaN(b.getTime())?"Invalid Date":b.getUTCFullYear()+"-"+a(b.getUTCMonth()+1,2)+"-"+a(b.getUTCDate(),2)+"T"+a(b.getUTCHours(),2)+":"+a(b.getUTCMinutes(),2)+":"+a(b.getUTCSeconds(),2)+"."+a(b.getUTCMilliseconds(),3)+"Z"}}(),parse:function(a){var b;if((a=a.match(/^(?:(\\d{4})(?:-(\\d{2})(?:-(\\d{2}))?)?)?(?:(?:T(\\d{1,2}):(\\d{2}):(\\d{2}(?:\\.\\d+)?)(Z|(?:[+-]\\d{1,2}(?::(\\d{2}))?)))|Z)?$/))&&\n +(a[1]||a[7])){b=parseInt(a[1],10)||0;var c=parseInt(a[2],10)-1||0,d=parseInt(a[3],10)||1;b=new Date(Date.UTC(b,c,d));if(c=a[7]){var d=parseInt(a[4],10),e=parseInt(a[5],10),f=parseFloat(a[6]),g=f|0,f=Math.round(1E3*(f-g));b.setUTCHours(d,e,g,f);"Z"!==c&&(c=parseInt(c,10),a=parseInt(a[8],10)||0,b=new Date(b.getTime()+-1E3*(60*60*c+60*a)))}}else b=new Date("invalid");return b}};(function(){function a(){this._object=f&&!i?new f:new window.ActiveXObject("Microsoft.XMLHTTP");this._listeners=[]}function b(){return new a}function c(a){b.onreadystatechange&&b.onreadystatechange.apply(a);a.dispatchEvent({type:"readystatechange",bubbles:!1,cancelable:!1,timeStamp:new Date+0})}function d(a){try{a.responseText=a._object.responseText}catch(b){}try{var c;var d=a._object,e=d.responseXML,f=d.responseText;h&&(f&&e&&!e.documentElement&&d.getResponseHeader("Content-Type").match(/[^\\/]+\\/[^\\+]+\\+xml/))&&\n +(e=new window.ActiveXObject("Microsoft.XMLDOM"),e.async=!1,e.validateOnParse=!1,e.loadXML(f));c=e&&(h&&0!=e.parseError||!e.documentElement||e.documentElement&&"parsererror"==e.documentElement.tagName)?null:e;a.responseXML=c}catch(g){}try{a.status=a._object.status}catch(i){}try{a.statusText=a._object.statusText}catch(r){}}function e(a){a._object.onreadystatechange=new window.Function}var f=window.XMLHttpRequest,g=!!window.controllers,h=window.document.all&&!window.opera,i=h&&window.navigator.userAgent.match(/MSIE 7.0/);\n +b.prototype=a.prototype;g&&f.wrapped&&(b.wrapped=f.wrapped);b.UNSENT=0;b.OPENED=1;b.HEADERS_RECEIVED=2;b.LOADING=3;b.DONE=4;b.prototype.readyState=b.UNSENT;b.prototype.responseText="";b.prototype.responseXML=null;b.prototype.status=0;b.prototype.statusText="";b.prototype.priority="NORMAL";b.prototype.onreadystatechange=null;b.onreadystatechange=null;b.onopen=null;b.onsend=null;b.onabort=null;b.prototype.open=function(a,f,i,m,n){delete this._headers;arguments.length<3&&(i=true);this._async=i;var o=\n +this,p=this.readyState,q;if(h&&i){q=function(){if(p!=b.DONE){e(o);o.abort()}};window.attachEvent("onunload",q)}b.onopen&&b.onopen.apply(this,arguments);arguments.length>4?this._object.open(a,f,i,m,n):arguments.length>3?this._object.open(a,f,i,m):this._object.open(a,f,i);this.readyState=b.OPENED;c(this);this._object.onreadystatechange=function(){if(!g||i){o.readyState=o._object.readyState;d(o);if(o._aborted)o.readyState=b.UNSENT;else{if(o.readyState==b.DONE){delete o._data;e(o);h&&i&&window.detachEvent("onunload",\n +q)}p!=o.readyState&&c(o);p=o.readyState}}}};b.prototype.send=function(a){b.onsend&&b.onsend.apply(this,arguments);arguments.length||(a=null);if(a&&a.nodeType){a=window.XMLSerializer?(new window.XMLSerializer).serializeToString(a):a.xml;this._headers["Content-Type"]||this._object.setRequestHeader("Content-Type","application/xml")}this._data=a;a:{this._object.send(this._data);if(g&&!this._async){this.readyState=b.OPENED;for(d(this);this.readyState<b.DONE;){this.readyState++;c(this);if(this._aborted)break a}}}};\n +b.prototype.abort=function(){b.onabort&&b.onabort.apply(this,arguments);if(this.readyState>b.UNSENT)this._aborted=true;this._object.abort();e(this);this.readyState=b.UNSENT;delete this._data};b.prototype.getAllResponseHeaders=function(){return this._object.getAllResponseHeaders()};b.prototype.getResponseHeader=function(a){return this._object.getResponseHeader(a)};b.prototype.setRequestHeader=function(a,b){if(!this._headers)this._headers={};this._headers[a]=b;return this._object.setRequestHeader(a,\n +b)};b.prototype.addEventListener=function(a,b,c){for(var d=0,e;e=this._listeners[d];d++)if(e[0]==a&&e[1]==b&&e[2]==c)return;this._listeners.push([a,b,c])};b.prototype.removeEventListener=function(a,b,c){for(var d=0,e;e=this._listeners[d];d++)if(e[0]==a&&e[1]==b&&e[2]==c)break;e&&this._listeners.splice(d,1)};b.prototype.dispatchEvent=function(a){a={type:a.type,target:this,currentTarget:this,eventPhase:2,bubbles:a.bubbles,cancelable:a.cancelable,timeStamp:a.timeStamp,stopPropagation:function(){},preventDefault:function(){},\n +initEvent:function(){}};a.type=="readystatechange"&&this.onreadystatechange&&(this.onreadystatechange.handleEvent||this.onreadystatechange).apply(this,[a]);for(var b=0,c;c=this._listeners[b];b++)c[0]==a.type&&!c[2]&&(c[1].handleEvent||c[1]).apply(this,[a])};b.prototype.toString=function(){return"[object XMLHttpRequest]"};b.toString=function(){return"[XMLHttpRequest]"};window.Function.prototype.apply||(window.Function.prototype.apply=function(a,b){b||(b=[]);a.__func=this;a.__func(b[0],b[1],b[2],b[3],\n +b[4]);delete a.__func});OpenLayers.Request.XMLHttpRequest=b})();OpenLayers.Format.KML=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{kml:"http://www.opengis.net/kml/2.2",gx:"http://www.google.com/kml/ext/2.2"},kmlns:"http://earth.google.com/kml/2.0",placemarksDesc:"No description available",foldersName:"OpenLayers export",foldersDesc:"Exported on "+new Date,extractAttributes:!0,kvpAttributes:!1,extractStyles:!1,extractTracks:!1,trackAttributes:null,internalns:null,features:null,styles:null,styleBaseUrl:"",fetched:null,maxDepth:0,initialize:function(a){this.regExes=\n +{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g,kmlColor:/(\\w{2})(\\w{2})(\\w{2})(\\w{2})/,kmlIconPalette:/root:\\/\\/icons\\/palette-(\\d+)(\\.\\w+)/,straightBracket:/\\$\\[(.*?)\\]/g};this.externalProjection=new OpenLayers.Projection("EPSG:4326");OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){this.features=[];this.styles={};this.fetched={};return this.parseData(a,{depth:0,styleBaseUrl:this.styleBaseUrl})},parseData:function(a,b){"string"==typeof a&&\n +(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));for(var c=["Link","NetworkLink","Style","StyleMap","Placemark"],d=0,e=c.length;d<e;++d){var f=c[d],g=this.getElementsByTagNameNS(a,"*",f);if(0!=g.length)switch(f.toLowerCase()){case "link":case "networklink":this.parseLinks(g,b);break;case "style":this.extractStyles&&this.parseStyles(g,b);break;case "stylemap":this.extractStyles&&this.parseStyleMaps(g,b);break;case "placemark":this.parseFeatures(g,b)}}return this.features},parseLinks:function(a,\n +b){if(b.depth>=this.maxDepth)return!1;var c=OpenLayers.Util.extend({},b);c.depth++;for(var d=0,e=a.length;d<e;d++){var f=this.parseProperty(a[d],"*","href");f&&!this.fetched[f]&&(this.fetched[f]=!0,(f=this.fetchLink(f))&&this.parseData(f,c))}},fetchLink:function(a){if(a=OpenLayers.Request.GET({url:a,async:!1}))return a.responseText},parseStyles:function(a,b){for(var c=0,d=a.length;c<d;c++){var e=this.parseStyle(a[c]);e&&(this.styles[(b.styleBaseUrl||"")+"#"+e.id]=e)}},parseKmlColor:function(a){var b=\n +null;a&&(a=a.match(this.regExes.kmlColor))&&(b={color:"#"+a[4]+a[3]+a[2],opacity:parseInt(a[1],16)/255});return b},parseStyle:function(a){for(var b={},c=["LineStyle","PolyStyle","IconStyle","BalloonStyle","LabelStyle"],d,e,f=0,g=c.length;f<g;++f)if(d=c[f],e=this.getElementsByTagNameNS(a,"*",d)[0])switch(d.toLowerCase()){case "linestyle":d=this.parseProperty(e,"*","color");if(d=this.parseKmlColor(d))b.strokeColor=d.color,b.strokeOpacity=d.opacity;(d=this.parseProperty(e,"*","width"))&&(b.strokeWidth=\n +d);break;case "polystyle":d=this.parseProperty(e,"*","color");if(d=this.parseKmlColor(d))b.fillOpacity=d.opacity,b.fillColor=d.color;"0"==this.parseProperty(e,"*","fill")&&(b.fillColor="none");"0"==this.parseProperty(e,"*","outline")&&(b.strokeWidth="0");break;case "iconstyle":var h=parseFloat(this.parseProperty(e,"*","scale")||1);d=32*h;var i=32*h,j=this.getElementsByTagNameNS(e,"*","Icon")[0];if(j){var k=this.parseProperty(j,"*","href");if(k){var l=this.parseProperty(j,"*","w"),m=this.parseProperty(j,\n +"*","h");OpenLayers.String.startsWith(k,"http://maps.google.com/mapfiles/kml")&&(!l&&!m)&&(m=l=64,h/=2);l=l||m;m=m||l;l&&(d=parseInt(l)*h);m&&(i=parseInt(m)*h);if(m=k.match(this.regExes.kmlIconPalette))l=m[1],m=m[2],k=this.parseProperty(j,"*","x"),j=this.parseProperty(j,"*","y"),k="http://maps.google.com/mapfiles/kml/pal"+l+"/icon"+(8*(j?7-j/32:7)+(k?k/32:0))+m;b.graphicOpacity=1;b.externalGraphic=k}}if(e=this.getElementsByTagNameNS(e,"*","hotSpot")[0])k=parseFloat(e.getAttribute("x")),j=parseFloat(e.getAttribute("y")),\n +l=e.getAttribute("xunits"),"pixels"==l?b.graphicXOffset=-k*h:"insetPixels"==l?b.graphicXOffset=-d+k*h:"fraction"==l&&(b.graphicXOffset=-d*k),e=e.getAttribute("yunits"),"pixels"==e?b.graphicYOffset=-i+j*h+1:"insetPixels"==e?b.graphicYOffset=-(j*h)+1:"fraction"==e&&(b.graphicYOffset=-i*(1-j)+1);b.graphicWidth=d;b.graphicHeight=i;break;case "balloonstyle":(e=OpenLayers.Util.getXmlNodeValue(e))&&(b.balloonStyle=e.replace(this.regExes.straightBracket,"${$1}"));break;case "labelstyle":if(d=this.parseProperty(e,\n +"*","color"),d=this.parseKmlColor(d))b.fontColor=d.color,b.fontOpacity=d.opacity}!b.strokeColor&&b.fillColor&&(b.strokeColor=b.fillColor);if((a=a.getAttribute("id"))&&b)b.id=a;return b},parseStyleMaps:function(a,b){for(var c=0,d=a.length;c<d;c++)for(var e=a[c],f=this.getElementsByTagNameNS(e,"*","Pair"),e=e.getAttribute("id"),g=0,h=f.length;g<h;g++){var i=f[g],j=this.parseProperty(i,"*","key");(i=this.parseProperty(i,"*","styleUrl"))&&"normal"==j&&(this.styles[(b.styleBaseUrl||"")+"#"+e]=this.styles[(b.styleBaseUrl||\n +"")+i])}},parseFeatures:function(a,b){for(var c=[],d=0,e=a.length;d<e;d++){var f=a[d],g=this.parseFeature.apply(this,[f]);if(g){this.extractStyles&&(g.attributes&&g.attributes.styleUrl)&&(g.style=this.getStyle(g.attributes.styleUrl,b));if(this.extractStyles){var h=this.getElementsByTagNameNS(f,"*","Style")[0];if(h&&(h=this.parseStyle(h)))g.style=OpenLayers.Util.extend(g.style,h)}if(this.extractTracks){if((f=this.getElementsByTagNameNS(f,this.namespaces.gx,"Track"))&&0<f.length)g={features:[],feature:g},\n +this.readNode(f[0],g),0<g.features.length&&c.push.apply(c,g.features)}else c.push(g)}else throw"Bad Placemark: "+d;}this.features=this.features.concat(c)},readers:{kml:{when:function(a,b){b.whens.push(OpenLayers.Date.parse(this.getChildValue(a)))},_trackPointAttribute:function(a,b){var c=a.nodeName.split(":").pop();b.attributes[c].push(this.getChildValue(a))}},gx:{Track:function(a,b){var c={whens:[],points:[],angles:[]};if(this.trackAttributes){var d;c.attributes={};for(var e=0,f=this.trackAttributes.length;e<\n +f;++e)d=this.trackAttributes[e],c.attributes[d]=[],d in this.readers.kml||(this.readers.kml[d]=this.readers.kml._trackPointAttribute)}this.readChildNodes(a,c);if(c.whens.length!==c.points.length)throw Error("gx:Track with unequal number of when ("+c.whens.length+") and gx:coord ("+c.points.length+") elements.");var g=0<c.angles.length;if(g&&c.whens.length!==c.angles.length)throw Error("gx:Track with unequal number of when ("+c.whens.length+") and gx:angles ("+c.angles.length+") elements.");for(var h,\n +i,e=0,f=c.whens.length;e<f;++e){h=b.feature.clone();h.fid=b.feature.fid||b.feature.id;i=c.points[e];h.geometry=i;"z"in i&&(h.attributes.altitude=i.z);this.internalProjection&&this.externalProjection&&h.geometry.transform(this.externalProjection,this.internalProjection);if(this.trackAttributes){i=0;for(var j=this.trackAttributes.length;i<j;++i)h.attributes[d]=c.attributes[this.trackAttributes[i]][e]}h.attributes.when=c.whens[e];h.attributes.trackId=b.feature.id;g&&(i=c.angles[e],h.attributes.heading=\n +parseFloat(i[0]),h.attributes.tilt=parseFloat(i[1]),h.attributes.roll=parseFloat(i[2]));b.features.push(h)}},coord:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,"").split(/\\s+/),d=new OpenLayers.Geometry.Point(c[0],c[1]);2<c.length&&(d.z=parseFloat(c[2]));b.points.push(d)},angles:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,"").split(/\\s+/);b.angles.push(c)}}},parseFeature:function(a){for(var b=["MultiGeometry","Polygon","LineString","Point"],\n +c,d,e,f=0,g=b.length;f<g;++f)if(c=b[f],this.internalns=a.namespaceURI?a.namespaceURI:this.kmlns,d=this.getElementsByTagNameNS(a,this.internalns,c),0<d.length){if(b=this.parseGeometry[c.toLowerCase()])e=b.apply(this,[d[0]]),this.internalProjection&&this.externalProjection&&e.transform(this.externalProjection,this.internalProjection);else throw new TypeError("Unsupported geometry type: "+c);break}var h;this.extractAttributes&&(h=this.parseAttributes(a));c=new OpenLayers.Feature.Vector(e,h);a=a.getAttribute("id")||\n +a.getAttribute("name");null!=a&&(c.fid=a);return c},getStyle:function(a,b){var c=OpenLayers.Util.removeTail(a),d=OpenLayers.Util.extend({},b);d.depth++;d.styleBaseUrl=c;!this.styles[a]&&!OpenLayers.String.startsWith(a,"#")&&d.depth<=this.maxDepth&&!this.fetched[c]&&(c=this.fetchLink(c))&&this.parseData(c,d);return OpenLayers.Util.extend({},this.styles[a])},parseGeometry:{point:function(a){var b=this.getElementsByTagNameNS(a,this.internalns,"coordinates"),a=[];if(0<b.length)var c=b[0].firstChild.nodeValue,\n +c=c.replace(this.regExes.removeSpace,""),a=c.split(",");b=null;if(1<a.length)2==a.length&&(a[2]=null),b=new OpenLayers.Geometry.Point(a[0],a[1],a[2]);else throw"Bad coordinate string: "+c;return b},linestring:function(a,b){var c=this.getElementsByTagNameNS(a,this.internalns,"coordinates"),d=null;if(0<c.length){for(var c=this.getChildValue(c[0]),c=c.replace(this.regExes.trimSpace,""),c=c.replace(this.regExes.trimComma,","),d=c.split(this.regExes.splitSpace),e=d.length,f=Array(e),g,h,i=0;i<e;++i)if(g=\n +d[i].split(","),h=g.length,1<h)2==g.length&&(g[2]=null),f[i]=new OpenLayers.Geometry.Point(g[0],g[1],g[2]);else throw"Bad LineString point coordinates: "+d[i];if(e)d=b?new OpenLayers.Geometry.LinearRing(f):new OpenLayers.Geometry.LineString(f);else throw"Bad LineString coordinates: "+c;}return d},polygon:function(a){var a=this.getElementsByTagNameNS(a,this.internalns,"LinearRing"),b=a.length,c=Array(b);if(0<b)for(var d=0,e=a.length;d<e;++d)if(b=this.parseGeometry.linestring.apply(this,[a[d],!0]))c[d]=\n +b;else throw"Bad LinearRing geometry: "+d;return new OpenLayers.Geometry.Polygon(c)},multigeometry:function(a){for(var b,c=[],d=a.childNodes,e=0,f=d.length;e<f;++e)a=d[e],1==a.nodeType&&(b=this.parseGeometry[(a.prefix?a.nodeName.split(":")[1]:a.nodeName).toLowerCase()])&&c.push(b.apply(this,[a]));return new OpenLayers.Geometry.Collection(c)}},parseAttributes:function(a){var b={},c=a.getElementsByTagName("ExtendedData");c.length&&(b=this.parseExtendedData(c[0]));for(var d,e,f,a=a.childNodes,c=0,g=\n +a.length;c<g;++c)if(d=a[c],1==d.nodeType&&(e=d.childNodes,1<=e.length&&3>=e.length)){switch(e.length){case 1:f=e[0];break;case 2:f=e[0];e=e[1];f=3==f.nodeType||4==f.nodeType?f:e;break;default:f=e[1]}if(3==f.nodeType||4==f.nodeType)if(d=d.prefix?d.nodeName.split(":")[1]:d.nodeName,f=OpenLayers.Util.getXmlNodeValue(f))f=f.replace(this.regExes.trimSpace,""),b[d]=f}return b},parseExtendedData:function(a){var b={},c,d,e,f,g=a.getElementsByTagName("Data");c=0;for(d=g.length;c<d;c++){e=g[c];f=e.getAttribute("name");\n +var h={},i=e.getElementsByTagName("value");i.length&&(h.value=this.getChildValue(i[0]));this.kvpAttributes?b[f]=h.value:(e=e.getElementsByTagName("displayName"),e.length&&(h.displayName=this.getChildValue(e[0])),b[f]=h)}a=a.getElementsByTagName("SimpleData");c=0;for(d=a.length;c<d;c++)h={},e=a[c],f=e.getAttribute("name"),h.value=this.getChildValue(e),this.kvpAttributes?b[f]=h.value:(h.displayName=f,b[f]=h);return b},parseProperty:function(a,b,c){var d,a=this.getElementsByTagNameNS(a,b,c);try{d=OpenLayers.Util.getXmlNodeValue(a[0])}catch(e){d=\n +null}return d},write:function(a){OpenLayers.Util.isArray(a)||(a=[a]);for(var b=this.createElementNS(this.kmlns,"kml"),c=this.createFolderXML(),d=0,e=a.length;d<e;++d)c.appendChild(this.createPlacemarkXML(a[d]));b.appendChild(c);return OpenLayers.Format.XML.prototype.write.apply(this,[b])},createFolderXML:function(){var a=this.createElementNS(this.kmlns,"Folder");if(this.foldersName){var b=this.createElementNS(this.kmlns,"name"),c=this.createTextNode(this.foldersName);b.appendChild(c);a.appendChild(b)}this.foldersDesc&&\n +(b=this.createElementNS(this.kmlns,"description"),c=this.createTextNode(this.foldersDesc),b.appendChild(c),a.appendChild(b));return a},createPlacemarkXML:function(a){var b=this.createElementNS(this.kmlns,"name");b.appendChild(this.createTextNode(a.style&&a.style.label?a.style.label:a.attributes.name||a.id));var c=this.createElementNS(this.kmlns,"description");c.appendChild(this.createTextNode(a.attributes.description||this.placemarksDesc));var d=this.createElementNS(this.kmlns,"Placemark");null!=\n +a.fid&&d.setAttribute("id",a.fid);d.appendChild(b);d.appendChild(c);b=this.buildGeometryNode(a.geometry);d.appendChild(b);a.attributes&&(a=this.buildExtendedData(a.attributes))&&d.appendChild(a);return d},buildGeometryNode:function(a){var b=a.CLASS_NAME,b=this.buildGeometry[b.substring(b.lastIndexOf(".")+1).toLowerCase()],c=null;b&&(c=b.apply(this,[a]));return c},buildGeometry:{point:function(a){var b=this.createElementNS(this.kmlns,"Point");b.appendChild(this.buildCoordinatesNode(a));return b},multipoint:function(a){return this.buildGeometry.collection.apply(this,\n +[a])},linestring:function(a){var b=this.createElementNS(this.kmlns,"LineString");b.appendChild(this.buildCoordinatesNode(a));return b},multilinestring:function(a){return this.buildGeometry.collection.apply(this,[a])},linearring:function(a){var b=this.createElementNS(this.kmlns,"LinearRing");b.appendChild(this.buildCoordinatesNode(a));return b},polygon:function(a){for(var b=this.createElementNS(this.kmlns,"Polygon"),a=a.components,c,d,e=0,f=a.length;e<f;++e)c=0==e?"outerBoundaryIs":"innerBoundaryIs",\n +c=this.createElementNS(this.kmlns,c),d=this.buildGeometry.linearring.apply(this,[a[e]]),c.appendChild(d),b.appendChild(c);return b},multipolygon:function(a){return this.buildGeometry.collection.apply(this,[a])},collection:function(a){for(var b=this.createElementNS(this.kmlns,"MultiGeometry"),c,d=0,e=a.components.length;d<e;++d)(c=this.buildGeometryNode.apply(this,[a.components[d]]))&&b.appendChild(c);return b}},buildCoordinatesNode:function(a){var b=this.createElementNS(this.kmlns,"coordinates"),\n +c;if(c=a.components){for(var d=c.length,e=Array(d),f=0;f<d;++f)a=c[f],e[f]=this.buildCoordinates(a);c=e.join(" ")}else c=this.buildCoordinates(a);c=this.createTextNode(c);b.appendChild(c);return b},buildCoordinates:function(a){this.internalProjection&&this.externalProjection&&(a=a.clone(),a.transform(this.internalProjection,this.externalProjection));return a.x+","+a.y},buildExtendedData:function(a){var b=this.createElementNS(this.kmlns,"ExtendedData"),c;for(c in a)if(a[c]&&"name"!=c&&"description"!=\n +c&&"styleUrl"!=c){var d=this.createElementNS(this.kmlns,"Data");d.setAttribute("name",c);var e=this.createElementNS(this.kmlns,"value");if("object"==typeof a[c]){if(a[c].value&&e.appendChild(this.createTextNode(a[c].value)),a[c].displayName){var f=this.createElementNS(this.kmlns,"displayName");f.appendChild(this.getXMLDoc().createCDATASection(a[c].displayName));d.appendChild(f)}}else e.appendChild(this.createTextNode(a[c]));d.appendChild(e);b.appendChild(d)}return this.isSimpleContent(b)?null:b},\n +CLASS_NAME:"OpenLayers.Format.KML"});OpenLayers.Popup=OpenLayers.Class({events:null,id:"",lonlat:null,div:null,contentSize:null,size:null,contentHTML:null,backgroundColor:"",opacity:"",border:"",contentDiv:null,groupDiv:null,closeDiv:null,autoSize:!1,minSize:null,maxSize:null,displayClass:"olPopup",contentDisplayClass:"olPopupContent",padding:0,disableFirefoxOverflowHack:!1,fixPadding:function(){"number"==typeof this.padding&&(this.padding=new OpenLayers.Bounds(this.padding,this.padding,this.padding,this.padding))},panMapIfOutOfView:!1,\n +keepInMap:!1,closeOnMove:!1,map:null,initialize:function(a,b,c,d,e,f){null==a&&(a=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_"));this.id=a;this.lonlat=b;this.contentSize=null!=c?c:new OpenLayers.Size(OpenLayers.Popup.WIDTH,OpenLayers.Popup.HEIGHT);null!=d&&(this.contentHTML=d);this.backgroundColor=OpenLayers.Popup.COLOR;this.opacity=OpenLayers.Popup.OPACITY;this.border=OpenLayers.Popup.BORDER;this.div=OpenLayers.Util.createDiv(this.id,null,null,null,null,null,"hidden");this.div.className=this.displayClass;\n +this.groupDiv=OpenLayers.Util.createDiv(this.id+"_GroupDiv",null,null,null,"relative",null,"hidden");a=this.div.id+"_contentDiv";this.contentDiv=OpenLayers.Util.createDiv(a,null,this.contentSize.clone(),null,"relative");this.contentDiv.className=this.contentDisplayClass;this.groupDiv.appendChild(this.contentDiv);this.div.appendChild(this.groupDiv);e&&this.addCloseBox(f);this.registerEvents()},destroy:function(){this.border=this.opacity=this.backgroundColor=this.contentHTML=this.size=this.lonlat=this.id=\n +null;this.closeOnMove&&this.map&&this.map.events.unregister("movestart",this,this.hide);this.events.destroy();this.events=null;this.closeDiv&&(OpenLayers.Event.stopObservingElement(this.closeDiv),this.groupDiv.removeChild(this.closeDiv));this.closeDiv=null;this.div.removeChild(this.groupDiv);this.groupDiv=null;null!=this.map&&this.map.removePopup(this);this.panMapIfOutOfView=this.padding=this.maxSize=this.minSize=this.autoSize=this.div=this.map=null},draw:function(a){null==a&&null!=this.lonlat&&null!=\n +this.map&&(a=this.map.getLayerPxFromLonLat(this.lonlat));this.closeOnMove&&this.map.events.register("movestart",this,this.hide);!this.disableFirefoxOverflowHack&&"firefox"==OpenLayers.BROWSER_NAME&&(this.map.events.register("movestart",this,function(){var a=document.defaultView.getComputedStyle(this.contentDiv,null).getPropertyValue("overflow");"hidden"!=a&&(this.contentDiv._oldOverflow=a,this.contentDiv.style.overflow="hidden")}),this.map.events.register("moveend",this,function(){var a=this.contentDiv._oldOverflow;\n +a&&(this.contentDiv.style.overflow=a,this.contentDiv._oldOverflow=null)}));this.moveTo(a);!this.autoSize&&!this.size&&this.setSize(this.contentSize);this.setBackgroundColor();this.setOpacity();this.setBorder();this.setContentHTML();this.panMapIfOutOfView&&this.panIntoView();return this.div},updatePosition:function(){if(this.lonlat&&this.map){var a=this.map.getLayerPxFromLonLat(this.lonlat);a&&this.moveTo(a)}},moveTo:function(a){null!=a&&null!=this.div&&(this.div.style.left=a.x+"px",this.div.style.top=\n +a.y+"px")},visible:function(){return OpenLayers.Element.visible(this.div)},toggle:function(){this.visible()?this.hide():this.show()},show:function(){this.div.style.display="";this.panMapIfOutOfView&&this.panIntoView()},hide:function(){this.div.style.display="none"},setSize:function(a){this.size=a.clone();var b=this.getContentDivPadding(),c=b.left+b.right,d=b.top+b.bottom;this.fixPadding();c+=this.padding.left+this.padding.right;d+=this.padding.top+this.padding.bottom;if(this.closeDiv)var e=parseInt(this.closeDiv.style.width),\n +c=c+(e+b.right);this.size.w+=c;this.size.h+=d;"msie"==OpenLayers.BROWSER_NAME&&(this.contentSize.w+=b.left+b.right,this.contentSize.h+=b.bottom+b.top);null!=this.div&&(this.div.style.width=this.size.w+"px",this.div.style.height=this.size.h+"px");null!=this.contentDiv&&(this.contentDiv.style.width=a.w+"px",this.contentDiv.style.height=a.h+"px")},updateSize:function(){var a="<div class=\'"+this.contentDisplayClass+"\'>"+this.contentDiv.innerHTML+"</div>",b=this.map?this.map.div:document.body,c=OpenLayers.Util.getRenderedDimensions(a,\n +null,{displayClass:this.displayClass,containerElement:b}),d=this.getSafeContentSize(c),e=null;d.equals(c)?e=c:(c={w:d.w<c.w?d.w:null,h:d.h<c.h?d.h:null},c.w&&c.h?e=d:(a=OpenLayers.Util.getRenderedDimensions(a,c,{displayClass:this.contentDisplayClass,containerElement:b}),"hidden"!=OpenLayers.Element.getStyle(this.contentDiv,"overflow")&&a.equals(d)&&(d=OpenLayers.Util.getScrollbarWidth(),c.w?a.h+=d:a.w+=d),e=this.getSafeContentSize(a)));this.setSize(e)},setBackgroundColor:function(a){void 0!=a&&(this.backgroundColor=\n +a);null!=this.div&&(this.div.style.backgroundColor=this.backgroundColor)},setOpacity:function(a){void 0!=a&&(this.opacity=a);null!=this.div&&(this.div.style.opacity=this.opacity,this.div.style.filter="alpha(opacity="+100*this.opacity+")")},setBorder:function(a){void 0!=a&&(this.border=a);null!=this.div&&(this.div.style.border=this.border)},setContentHTML:function(a){null!=a&&(this.contentHTML=a);null!=this.contentDiv&&(null!=this.contentHTML&&this.contentHTML!=this.contentDiv.innerHTML)&&(this.contentDiv.innerHTML=\n +this.contentHTML,this.autoSize&&(this.registerImageListeners(),this.updateSize()))},registerImageListeners:function(){for(var a=function(){null!==this.popup.id&&(this.popup.updateSize(),this.popup.visible()&&this.popup.panMapIfOutOfView&&this.popup.panIntoView(),OpenLayers.Event.stopObserving(this.img,"load",this.img._onImageLoad))},b=this.contentDiv.getElementsByTagName("img"),c=0,d=b.length;c<d;c++){var e=b[c];if(0==e.width||0==e.height)e._onImgLoad=OpenLayers.Function.bind(a,{popup:this,img:e}),\n +OpenLayers.Event.observe(e,"load",e._onImgLoad)}},getSafeContentSize:function(a){var a=a.clone(),b=this.getContentDivPadding(),c=b.left+b.right,d=b.top+b.bottom;this.fixPadding();c+=this.padding.left+this.padding.right;d+=this.padding.top+this.padding.bottom;if(this.closeDiv)var e=parseInt(this.closeDiv.style.width),c=c+(e+b.right);this.minSize&&(a.w=Math.max(a.w,this.minSize.w-c),a.h=Math.max(a.h,this.minSize.h-d));this.maxSize&&(a.w=Math.min(a.w,this.maxSize.w-c),a.h=Math.min(a.h,this.maxSize.h-\n +d));if(this.map&&this.map.size){e=b=0;if(this.keepInMap&&!this.panMapIfOutOfView)switch(e=this.map.getPixelFromLonLat(this.lonlat),this.relativePosition){case "tr":b=e.x;e=this.map.size.h-e.y;break;case "tl":b=this.map.size.w-e.x;e=this.map.size.h-e.y;break;case "bl":b=this.map.size.w-e.x;e=e.y;break;case "br":b=e.x;e=e.y;break;default:b=e.x,e=this.map.size.h-e.y}d=this.map.size.h-this.map.paddingForPopups.top-this.map.paddingForPopups.bottom-d-e;a.w=Math.min(a.w,this.map.size.w-this.map.paddingForPopups.left-\n +this.map.paddingForPopups.right-c-b);a.h=Math.min(a.h,d)}return a},getContentDivPadding:function(){var a=this._contentDivPadding;if(!a&&(null==this.div.parentNode&&(this.div.style.display="none",document.body.appendChild(this.div)),this._contentDivPadding=a=new OpenLayers.Bounds(OpenLayers.Element.getStyle(this.contentDiv,"padding-left"),OpenLayers.Element.getStyle(this.contentDiv,"padding-bottom"),OpenLayers.Element.getStyle(this.contentDiv,"padding-right"),OpenLayers.Element.getStyle(this.contentDiv,\n +"padding-top")),this.div.parentNode==document.body))document.body.removeChild(this.div),this.div.style.display="";return a},addCloseBox:function(a){this.closeDiv=OpenLayers.Util.createDiv(this.id+"_close",null,{w:17,h:17});this.closeDiv.className="olPopupCloseBox";var b=this.getContentDivPadding();this.closeDiv.style.right=b.right+"px";this.closeDiv.style.top=b.top+"px";this.groupDiv.appendChild(this.closeDiv);a=a||function(a){this.hide();OpenLayers.Event.stop(a)};OpenLayers.Event.observe(this.closeDiv,\n +"touchend",OpenLayers.Function.bindAsEventListener(a,this));OpenLayers.Event.observe(this.closeDiv,"click",OpenLayers.Function.bindAsEventListener(a,this))},panIntoView:function(){var a=this.map.getSize(),b=this.map.getViewPortPxFromLayerPx(new OpenLayers.Pixel(parseInt(this.div.style.left),parseInt(this.div.style.top))),c=b.clone();b.x<this.map.paddingForPopups.left?c.x=this.map.paddingForPopups.left:b.x+this.size.w>a.w-this.map.paddingForPopups.right&&(c.x=a.w-this.map.paddingForPopups.right-this.size.w);\n +b.y<this.map.paddingForPopups.top?c.y=this.map.paddingForPopups.top:b.y+this.size.h>a.h-this.map.paddingForPopups.bottom&&(c.y=a.h-this.map.paddingForPopups.bottom-this.size.h);this.map.pan(b.x-c.x,b.y-c.y)},registerEvents:function(){this.events=new OpenLayers.Events(this,th + +]]></string> </value> + </item> + <item> + <key> <string>next</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="8" aka="AAAAAAAAAAg="> + <pickle> + <global name="Pdata" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +is.div,null,!0);this.events.on({mousedown:this.onmousedown,mousemove:this.onmousemove,mouseup:this.onmouseup,click:this.onclick,mouseout:this.onmouseout,dblclick:this.ondblclick,touchstart:function(a){OpenLayers.Event.stop(a,!0)},\n +scope:this})},onmousedown:function(a){this.mousedown=!0;OpenLayers.Event.stop(a,!0)},onmousemove:function(a){this.mousedown&&OpenLayers.Event.stop(a,!0)},onmouseup:function(a){this.mousedown&&(this.mousedown=!1,OpenLayers.Event.stop(a,!0))},onclick:function(a){OpenLayers.Event.stop(a,!0)},onmouseout:function(){this.mousedown=!1},ondblclick:function(a){OpenLayers.Event.stop(a,!0)},CLASS_NAME:"OpenLayers.Popup"});OpenLayers.Popup.WIDTH=200;OpenLayers.Popup.HEIGHT=200;OpenLayers.Popup.COLOR="white";\n +OpenLayers.Popup.OPACITY=1;OpenLayers.Popup.BORDER="0px";OpenLayers.Popup.Anchored=OpenLayers.Class(OpenLayers.Popup,{relativePosition:null,keepInMap:!0,anchor:null,initialize:function(a,b,c,d,e,f,g){OpenLayers.Popup.prototype.initialize.apply(this,[a,b,c,d,f,g]);this.anchor=null!=e?e:{size:new OpenLayers.Size(0,0),offset:new OpenLayers.Pixel(0,0)}},destroy:function(){this.relativePosition=this.anchor=null;OpenLayers.Popup.prototype.destroy.apply(this,arguments)},show:function(){this.updatePosition();OpenLayers.Popup.prototype.show.apply(this,arguments)},\n +moveTo:function(a){var b=this.relativePosition;this.relativePosition=this.calculateRelativePosition(a);a=this.calculateNewPx(a);OpenLayers.Popup.prototype.moveTo.apply(this,Array(a));this.relativePosition!=b&&this.updateRelativePosition()},setSize:function(a){OpenLayers.Popup.prototype.setSize.apply(this,arguments);this.lonlat&&this.map&&this.moveTo(this.map.getLayerPxFromLonLat(this.lonlat))},calculateRelativePosition:function(a){a=this.map.getLonLatFromLayerPx(a);a=this.map.getExtent().determineQuadrant(a);\n +return OpenLayers.Bounds.oppositeQuadrant(a)},updateRelativePosition:function(){},calculateNewPx:function(a){var a=a.offset(this.anchor.offset),b=this.size||this.contentSize,c="t"==this.relativePosition.charAt(0);a.y+=c?-b.h:this.anchor.size.h;c="l"==this.relativePosition.charAt(1);a.x+=c?-b.w:this.anchor.size.w;return a},CLASS_NAME:"OpenLayers.Popup.Anchored"});/*\n + Apache 2 \n +\n + Contains portions of Rico <http://openrico.org/>\n +\n + Copyright 2005 Sabre Airline Solutions \n +\n + Licensed under the Apache License, Version 2.0 (the "License"); you\n + may not use this file except in compliance with the License. You\n + may obtain a copy of the License at\n +\n + http://www.apache.org/licenses/LICENSE-2.0 \n +\n + Unless required by applicable law or agreed to in writing, software\n + distributed under the License is distributed on an "AS IS" BASIS,\n + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n + implied. See the License for the specific language governing\n + permissions and limitations under the License. \n +*/\n +OpenLayers.Console.warn("OpenLayers.Rico is deprecated");OpenLayers.Rico=OpenLayers.Rico||{};\n +OpenLayers.Rico.Color=OpenLayers.Class({initialize:function(a,b,c){this.rgb={r:a,g:b,b:c}},setRed:function(a){this.rgb.r=a},setGreen:function(a){this.rgb.g=a},setBlue:function(a){this.rgb.b=a},setHue:function(a){var b=this.asHSB();b.h=a;this.rgb=OpenLayers.Rico.Color.HSBtoRGB(b.h,b.s,b.b)},setSaturation:function(a){var b=this.asHSB();b.s=a;this.rgb=OpenLayers.Rico.Color.HSBtoRGB(b.h,b.s,b.b)},setBrightness:function(a){var b=this.asHSB();b.b=a;this.rgb=OpenLayers.Rico.Color.HSBtoRGB(b.h,b.s,b.b)},\n +darken:function(a){var b=this.asHSB();this.rgb=OpenLayers.Rico.Color.HSBtoRGB(b.h,b.s,Math.max(b.b-a,0))},brighten:function(a){var b=this.asHSB();this.rgb=OpenLayers.Rico.Color.HSBtoRGB(b.h,b.s,Math.min(b.b+a,1))},blend:function(a){this.rgb.r=Math.floor((this.rgb.r+a.rgb.r)/2);this.rgb.g=Math.floor((this.rgb.g+a.rgb.g)/2);this.rgb.b=Math.floor((this.rgb.b+a.rgb.b)/2)},isBright:function(){this.asHSB();return 0.5<this.asHSB().b},isDark:function(){return!this.isBright()},asRGB:function(){return"rgb("+\n +this.rgb.r+","+this.rgb.g+","+this.rgb.b+")"},asHex:function(){return"#"+this.rgb.r.toColorPart()+this.rgb.g.toColorPart()+this.rgb.b.toColorPart()},asHSB:function(){return OpenLayers.Rico.Color.RGBtoHSB(this.rgb.r,this.rgb.g,this.rgb.b)},toString:function(){return this.asHex()}});\n +OpenLayers.Rico.Color.createFromHex=function(a){if(4==a.length)for(var b=a,a="#",c=1;4>c;c++)a+=b.charAt(c)+b.charAt(c);0==a.indexOf("#")&&(a=a.substring(1));b=a.substring(0,2);c=a.substring(2,4);a=a.substring(4,6);return new OpenLayers.Rico.Color(parseInt(b,16),parseInt(c,16),parseInt(a,16))};\n +OpenLayers.Rico.Color.createColorFromBackground=function(a){var b=OpenLayers.Element.getStyle(OpenLayers.Util.getElement(a),"backgroundColor");return"transparent"==b&&a.parentNode?OpenLayers.Rico.Color.createColorFromBackground(a.parentNode):null==b?new OpenLayers.Rico.Color(255,255,255):0==b.indexOf("rgb(")?(a=b.substring(4,b.length-1).split(","),new OpenLayers.Rico.Color(parseInt(a[0]),parseInt(a[1]),parseInt(a[2]))):0==b.indexOf("#")?OpenLayers.Rico.Color.createFromHex(b):new OpenLayers.Rico.Color(255,\n +255,255)};\n +OpenLayers.Rico.Color.HSBtoRGB=function(a,b,c){var d=0,e=0,f=0;if(0==b)f=e=d=parseInt(255*c+0.5);else{var a=6*(a-Math.floor(a)),g=a-Math.floor(a),h=c*(1-b),i=c*(1-b*g),b=c*(1-b*(1-g));switch(parseInt(a)){case 0:d=255*c+0.5;e=255*b+0.5;f=255*h+0.5;break;case 1:d=255*i+0.5;e=255*c+0.5;f=255*h+0.5;break;case 2:d=255*h+0.5;e=255*c+0.5;f=255*b+0.5;break;case 3:d=255*h+0.5;e=255*i+0.5;f=255*c+0.5;break;case 4:d=255*b+0.5;e=255*h+0.5;f=255*c+0.5;break;case 5:d=255*c+0.5,e=255*h+0.5,f=255*i+0.5}}return{r:parseInt(d),g:parseInt(e),\n +b:parseInt(f)}};OpenLayers.Rico.Color.RGBtoHSB=function(a,b,c){var d,e=a>b?a:b;c>e&&(e=c);var f=a<b?a:b;c<f&&(f=c);d=0!=e?(e-f)/e:0;if(0==d)a=0;else{var g=(e-a)/(e-f),h=(e-b)/(e-f),c=(e-c)/(e-f),a=(a==e?c-h:b==e?2+g-c:4+h-g)/6;0>a&&(a+=1)}return{h:a,s:d,b:e/255}};OpenLayers.Console.warn("OpenLayers.Rico is deprecated");OpenLayers.Rico=OpenLayers.Rico||{};\n +OpenLayers.Rico.Corner={round:function(a,b){a=OpenLayers.Util.getElement(a);this._setOptions(b);var c=this.options.color;"fromElement"==this.options.color&&(c=this._background(a));var d=this.options.bgColor;"fromParent"==this.options.bgColor&&(d=this._background(a.offsetParent));this._roundCornersImpl(a,c,d)},changeColor:function(a,b){a.style.backgroundColor=b;for(var c=a.parentNode.getElementsByTagName("span"),d=0;d<c.length;d++)c[d].style.backgroundColor=b},changeOpacity:function(a,b){var c="alpha(opacity="+\n +100*b+")";a.style.opacity=b;a.style.filter=c;for(var d=a.parentNode.getElementsByTagName("span"),e=0;e<d.length;e++)d[e].style.opacity=b,d[e].style.filter=c},reRound:function(a,b){var c=a.parentNode.childNodes[2];a.parentNode.removeChild(a.parentNode.childNodes[0]);a.parentNode.removeChild(c);this.round(a.parentNode,b)},_roundCornersImpl:function(a,b,c){this.options.border&&this._renderBorder(a,c);this._isTopRounded()&&this._roundTopCorners(a,b,c);this._isBottomRounded()&&this._roundBottomCorners(a,\n +b,c)},_renderBorder:function(a,b){var c="1px solid "+this._borderColor(b);a.innerHTML="<div "+("style=\'border-left: "+c+";"+("border-right: "+c)+"\'")+">"+a.innerHTML+"</div>"},_roundTopCorners:function(a,b,c){for(var d=this._createCorner(c),e=0;e<this.options.numSlices;e++)d.appendChild(this._createCornerSlice(b,c,e,"top"));a.style.paddingTop=0;a.insertBefore(d,a.firstChild)},_roundBottomCorners:function(a,b,c){for(var d=this._createCorner(c),e=this.options.numSlices-1;0<=e;e--)d.appendChild(this._createCornerSlice(b,\n +c,e,"bottom"));a.style.paddingBottom=0;a.appendChild(d)},_createCorner:function(a){var b=document.createElement("div");b.style.backgroundColor=this._isTransparent()?"transparent":a;return b},_createCornerSlice:function(a,b,c,d){var e=document.createElement("span"),f=e.style;f.backgroundColor=a;f.display="block";f.height="1px";f.overflow="hidden";f.fontSize="1px";a=this._borderColor(a,b);this.options.border&&0==c?(f.borderTopStyle="solid",f.borderTopWidth="1px",f.borderLeftWidth="0px",f.borderRightWidth=\n +"0px",f.borderBottomWidth="0px",f.height="0px",f.borderColor=a):a&&(f.borderColor=a,f.borderStyle="solid",f.borderWidth="0px 1px");!this.options.compact&&c==this.options.numSlices-1&&(f.height="2px");this._setMargin(e,c,d);this._setBorder(e,c,d);return e},_setOptions:function(a){this.options={corners:"all",color:"fromElement",bgColor:"fromParent",blend:!0,border:!1,compact:!1};OpenLayers.Util.extend(this.options,a||{});this.options.numSlices=this.options.compact?2:4;this._isTransparent()&&(this.options.blend=\n +!1)},_whichSideTop:function(){return this._hasString(this.options.corners,"all","top")||0<=this.options.corners.indexOf("tl")&&0<=this.options.corners.indexOf("tr")?"":0<=this.options.corners.indexOf("tl")?"left":0<=this.options.corners.indexOf("tr")?"right":""},_whichSideBottom:function(){return this._hasString(this.options.corners,"all","bottom")||0<=this.options.corners.indexOf("bl")&&0<=this.options.corners.indexOf("br")?"":0<=this.options.corners.indexOf("bl")?"left":0<=this.options.corners.indexOf("br")?\n +"right":""},_borderColor:function(a,b){return"transparent"==a?b:this.options.border?this.options.border:this.options.blend?this._blend(b,a):""},_setMargin:function(a,b,c){b=this._marginSize(b);c="top"==c?this._whichSideTop():this._whichSideBottom();"left"==c?(a.style.marginLeft=b+"px",a.style.marginRight="0px"):"right"==c?(a.style.marginRight=b+"px",a.style.marginLeft="0px"):(a.style.marginLeft=b+"px",a.style.marginRight=b+"px")},_setBorder:function(a,b,c){b=this._borderSize(b);c="top"==c?this._whichSideTop():\n +this._whichSideBottom();"left"==c?(a.style.borderLeftWidth=b+"px",a.style.borderRightWidth="0px"):"right"==c?(a.style.borderRightWidth=b+"px",a.style.borderLeftWidth="0px"):(a.style.borderLeftWidth=b+"px",a.style.borderRightWidth=b+"px");!1!=this.options.border&&(a.style.borderLeftWidth=b+"px",a.style.borderRightWidth=b+"px")},_marginSize:function(a){if(this._isTransparent())return 0;var b=[5,3,2,1],c=[3,2,1,0],d=[2,1],e=[1,0];return this.options.compact&&this.options.blend?e[a]:this.options.compact?\n +d[a]:this.options.blend?c[a]:b[a]},_borderSize:function(a){var b=[5,3,2,1],c=[2,1,1,1],d=[1,0],e=[0,2,0,0];return this.options.compact&&(this.options.blend||this._isTransparent())?1:this.options.compact?d[a]:this.options.blend?c[a]:this.options.border?e[a]:this._isTransparent()?b[a]:0},_hasString:function(a){for(var b=1;b<arguments.length;b++)if(0<=a.indexOf(arguments[b]))return!0;return!1},_blend:function(a,b){var c=OpenLayers.Rico.Color.createFromHex(a);c.blend(OpenLayers.Rico.Color.createFromHex(b));\n +return c},_background:function(a){try{return OpenLayers.Rico.Color.createColorFromBackground(a).asHex()}catch(b){return"#ffffff"}},_isTransparent:function(){return"transparent"==this.options.color},_isTopRounded:function(){return this._hasString(this.options.corners,"all","top","tl","tr")},_isBottomRounded:function(){return this._hasString(this.options.corners,"all","bottom","bl","br")},_hasSingleTextChild:function(a){return 1==a.childNodes.length&&3==a.childNodes[0].nodeType}};OpenLayers.Popup.AnchoredBubble=OpenLayers.Class(OpenLayers.Popup.Anchored,{rounded:!1,initialize:function(a,b,c,d,e,f,g){OpenLayers.Console.warn("AnchoredBubble is deprecated");this.padding=new OpenLayers.Bounds(0,OpenLayers.Popup.AnchoredBubble.CORNER_SIZE,0,OpenLayers.Popup.AnchoredBubble.CORNER_SIZE);OpenLayers.Popup.Anchored.prototype.initialize.apply(this,arguments)},draw:function(a){OpenLayers.Popup.Anchored.prototype.draw.apply(this,arguments);this.setContentHTML();this.setBackgroundColor();\n +this.setOpacity();return this.div},updateRelativePosition:function(){this.setRicoCorners()},setSize:function(a){OpenLayers.Popup.Anchored.prototype.setSize.apply(this,arguments);this.setRicoCorners()},setBackgroundColor:function(a){void 0!=a&&(this.backgroundColor=a);null!=this.div&&null!=this.contentDiv&&(this.div.style.background="transparent",OpenLayers.Rico.Corner.changeColor(this.groupDiv,this.backgroundColor))},setOpacity:function(a){OpenLayers.Popup.Anchored.prototype.setOpacity.call(this,\n +a);null!=this.div&&null!=this.groupDiv&&OpenLayers.Rico.Corner.changeOpacity(this.groupDiv,this.opacity)},setBorder:function(){this.border=0},setRicoCorners:function(){var a={corners:this.getCornersToRound(this.relativePosition),color:this.backgroundColor,bgColor:"transparent",blend:!1};this.rounded?(OpenLayers.Rico.Corner.reRound(this.groupDiv,a),this.setBackgroundColor(),this.setOpacity()):(OpenLayers.Rico.Corner.round(this.div,a),this.rounded=!0)},getCornersToRound:function(){var a=["tl","tr",\n +"bl","br"],b=OpenLayers.Bounds.oppositeQuadrant(this.relativePosition);OpenLayers.Util.removeItem(a,b);return a.join(" ")},CLASS_NAME:"OpenLayers.Popup.AnchoredBubble"});OpenLayers.Popup.AnchoredBubble.CORNER_SIZE=5;OpenLayers.Protocol.WFS.v1=OpenLayers.Class(OpenLayers.Protocol,{version:null,srsName:"EPSG:4326",featureType:null,featureNS:null,geometryName:"the_geom",schema:null,featurePrefix:"feature",formatOptions:null,readFormat:null,readOptions:null,initialize:function(a){OpenLayers.Protocol.prototype.initialize.apply(this,[a]);a.format||(this.format=OpenLayers.Format.WFST(OpenLayers.Util.extend({version:this.version,featureType:this.featureType,featureNS:this.featureNS,featurePrefix:this.featurePrefix,geometryName:this.geometryName,\n +srsName:this.srsName,schema:this.schema},this.formatOptions)));!a.geometryName&&1<parseFloat(this.format.version)&&this.setGeometryName(null)},destroy:function(){this.options&&!this.options.format&&this.format.destroy();this.format=null;OpenLayers.Protocol.prototype.destroy.apply(this)},read:function(a){OpenLayers.Protocol.prototype.read.apply(this,arguments);a=OpenLayers.Util.extend({},a);OpenLayers.Util.applyDefaults(a,this.options||{});var b=new OpenLayers.Protocol.Response({requestType:"read"}),\n +c=OpenLayers.Format.XML.prototype.write.apply(this.format,[this.format.writeNode("wfs:GetFeature",a)]);b.priv=OpenLayers.Request.POST({url:a.url,callback:this.createCallback(this.handleRead,b,a),params:a.params,headers:a.headers,data:c});return b},setFeatureType:function(a){this.featureType=a;this.format.featureType=a},setGeometryName:function(a){this.geometryName=a;this.format.geometryName=a},handleRead:function(a,b){b=OpenLayers.Util.extend({},b);OpenLayers.Util.applyDefaults(b,this.options);if(b.callback){var c=\n +a.priv;200<=c.status&&300>c.status?(c=this.parseResponse(c,b.readOptions))&&!1!==c.success?(b.readOptions&&"object"==b.readOptions.output?OpenLayers.Util.extend(a,c):a.features=c,a.code=OpenLayers.Protocol.Response.SUCCESS):(a.code=OpenLayers.Protocol.Response.FAILURE,a.error=c):a.code=OpenLayers.Protocol.Response.FAILURE;b.callback.call(b.scope,a)}},parseResponse:function(a,b){var c=a.responseXML;if(!c||!c.documentElement)c=a.responseText;if(!c||0>=c.length)return null;c=null!==this.readFormat?this.readFormat.read(c):\n +this.format.read(c,b);if(!this.featureNS){var d=this.readFormat||this.format;this.featureNS=d.featureNS;d.autoConfig=!1;this.geometryName||this.setGeometryName(d.geometryName)}return c},commit:function(a,b){b=OpenLayers.Util.extend({},b);OpenLayers.Util.applyDefaults(b,this.options);var c=new OpenLayers.Protocol.Response({requestType:"commit",reqFeatures:a});c.priv=OpenLayers.Request.POST({url:b.url,headers:b.headers,data:this.format.write(a,b),callback:this.createCallback(this.handleCommit,c,b)});\n +return c},handleCommit:function(a,b){if(b.callback){var c=a.priv,d=c.responseXML;if(!d||!d.documentElement)d=c.responseText;c=this.format.read(d)||{};a.insertIds=c.insertIds||[];c.success?a.code=OpenLayers.Protocol.Response.SUCCESS:(a.code=OpenLayers.Protocol.Response.FAILURE,a.error=c);b.callback.call(b.scope,a)}},filterDelete:function(a,b){b=OpenLayers.Util.extend({},b);OpenLayers.Util.applyDefaults(b,this.options);new OpenLayers.Protocol.Response({requestType:"commit"});var c=this.format.createElementNSPlus("wfs:Transaction",\n +{attributes:{service:"WFS",version:this.version}}),d=this.format.createElementNSPlus("wfs:Delete",{attributes:{typeName:(b.featureNS?this.featurePrefix+":":"")+b.featureType}});b.featureNS&&d.setAttribute("xmlns:"+this.featurePrefix,b.featureNS);var e=this.format.writeNode("ogc:Filter",a);d.appendChild(e);c.appendChild(d);c=OpenLayers.Format.XML.prototype.write.apply(this.format,[c]);return OpenLayers.Request.POST({url:this.url,callback:b.callback||function(){},data:c})},abort:function(a){a&&a.priv.abort()},\n +CLASS_NAME:"OpenLayers.Protocol.WFS.v1"});OpenLayers.Handler.Point=OpenLayers.Class(OpenLayers.Handler,{point:null,layer:null,multi:!1,citeCompliant:!1,mouseDown:!1,stoppedDown:null,lastDown:null,lastUp:null,persist:!1,stopDown:!1,stopUp:!1,layerOptions:null,pixelTolerance:5,touch:!1,lastTouchPx:null,initialize:function(a,b,c){if(!c||!c.layerOptions||!c.layerOptions.styleMap)this.style=OpenLayers.Util.extend(OpenLayers.Feature.Vector.style["default"],{});OpenLayers.Handler.prototype.initialize.apply(this,arguments)},activate:function(){if(!OpenLayers.Handler.prototype.activate.apply(this,\n +arguments))return!1;var a=OpenLayers.Util.extend({displayInLayerSwitcher:!1,calculateInRange:OpenLayers.Function.True,wrapDateLine:this.citeCompliant},this.layerOptions);this.layer=new OpenLayers.Layer.Vector(this.CLASS_NAME,a);this.map.addLayer(this.layer);return!0},createFeature:function(a){a=this.layer.getLonLatFromViewPortPx(a);a=new OpenLayers.Geometry.Point(a.lon,a.lat);this.point=new OpenLayers.Feature.Vector(a);this.callback("create",[this.point.geometry,this.point]);this.point.geometry.clearBounds();\n +this.layer.addFeatures([this.point],{silent:!0})},deactivate:function(){if(!OpenLayers.Handler.prototype.deactivate.apply(this,arguments))return!1;this.cancel();null!=this.layer.map&&(this.destroyFeature(!0),this.layer.destroy(!1));this.layer=null;this.touch=!1;return!0},destroyFeature:function(a){this.layer&&(a||!this.persist)&&this.layer.destroyFeatures();this.point=null},destroyPersistedFeature:function(){var a=this.layer;a&&1<a.features.length&&this.layer.features[0].destroy()},finalize:function(a){this.mouseDown=\n +!1;this.lastTouchPx=this.lastUp=this.lastDown=null;this.callback(a?"cancel":"done",[this.geometryClone()]);this.destroyFeature(a)},cancel:function(){this.finalize(!0)},click:function(a){OpenLayers.Event.stop(a);return!1},dblclick:function(a){OpenLayers.Event.stop(a);return!1},modifyFeature:function(a){this.point||this.createFeature(a);a=this.layer.getLonLatFromViewPortPx(a);this.point.geometry.x=a.lon;this.point.geometry.y=a.lat;this.callback("modify",[this.point.geometry,this.point,!1]);this.point.geometry.clearBounds();\n +this.drawFeature()},drawFeature:function(){this.layer.drawFeature(this.point,this.style)},getGeometry:function(){var a=this.point&&this.point.geometry;a&&this.multi&&(a=new OpenLayers.Geometry.MultiPoint([a]));return a},geometryClone:function(){var a=this.getGeometry();return a&&a.clone()},mousedown:function(a){return this.down(a)},touchstart:function(a){this.touch||(this.touch=!0,this.map.events.un({mousedown:this.mousedown,mouseup:this.mouseup,mousemove:this.mousemove,click:this.click,dblclick:this.dblclick,\n +scope:this}));this.lastTouchPx=a.xy;return this.down(a)},mousemove:function(a){return this.move(a)},touchmove:function(a){this.lastTouchPx=a.xy;return this.move(a)},mouseup:function(a){return this.up(a)},touchend:function(a){a.xy=this.lastTouchPx;return this.up(a)},down:function(a){this.mouseDown=!0;this.lastDown=a.xy;this.touch||this.modifyFeature(a.xy);this.stoppedDown=this.stopDown;return!this.stopDown},move:function(a){!this.touch&&(!this.mouseDown||this.stoppedDown)&&this.modifyFeature(a.xy);\n +return!0},up:function(a){this.mouseDown=!1;this.stoppedDown=this.stopDown;return this.checkModifiers(a)&&(!this.lastUp||!this.lastUp.equals(a.xy))&&this.lastDown&&this.passesTolerance(this.lastDown,a.xy,this.pixelTolerance)?(this.touch&&this.modifyFeature(a.xy),this.persist&&this.destroyPersistedFeature(),this.lastUp=a.xy,this.finalize(),!this.stopUp):!0},mouseout:function(a){OpenLayers.Util.mouseLeft(a,this.map.viewPortDiv)&&(this.stoppedDown=this.stopDown,this.mouseDown=!1)},passesTolerance:function(a,\n +b,c){var d=!0;null!=c&&a&&b&&a.distanceTo(b)>c&&(d=!1);return d},CLASS_NAME:"OpenLayers.Handler.Point"});OpenLayers.Handler.Path=OpenLayers.Class(OpenLayers.Handler.Point,{line:null,maxVertices:null,doubleTouchTolerance:20,freehand:!1,freehandToggle:"shiftKey",timerId:null,redoStack:null,createFeature:function(a){a=this.layer.getLonLatFromViewPortPx(a);a=new OpenLayers.Geometry.Point(a.lon,a.lat);this.point=new OpenLayers.Feature.Vector(a);this.line=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.LineString([this.point.geometry]));this.callback("create",[this.point.geometry,this.getSketch()]);\n +this.point.geometry.clearBounds();this.layer.addFeatures([this.line,this.point],{silent:!0})},destroyFeature:function(a){OpenLayers.Handler.Point.prototype.destroyFeature.call(this,a);this.line=null},destroyPersistedFeature:function(){var a=this.layer;a&&2<a.features.length&&this.layer.features[0].destroy()},removePoint:function(){this.point&&this.layer.removeFeatures([this.point])},addPoint:function(a){this.layer.removeFeatures([this.point]);a=this.layer.getLonLatFromViewPortPx(a);this.point=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(a.lon,\n +a.lat));this.line.geometry.addComponent(this.point.geometry,this.line.geometry.components.length);this.layer.addFeatures([this.point]);this.callback("point",[this.point.geometry,this.getGeometry()]);this.callback("modify",[this.point.geometry,this.getSketch()]);this.drawFeature();delete this.redoStack},insertXY:function(a,b){this.line.geometry.addComponent(new OpenLayers.Geometry.Point(a,b),this.getCurrentPointIndex());this.drawFeature();delete this.redoStack},insertDeltaXY:function(a,b){var c=this.line.geometry.components[this.getCurrentPointIndex()-\n +1];c&&(!isNaN(c.x)&&!isNaN(c.y))&&this.insertXY(c.x+a,c.y+b)},insertDirectionLength:function(a,b){var a=a*(Math.PI/180),c=b*Math.cos(a),d=b*Math.sin(a);this.insertDeltaXY(c,d)},insertDeflectionLength:function(a,b){var c=this.getCurrentPointIndex()-1;if(0<c){var d=this.line.geometry.components[c],c=this.line.geometry.components[c-1];this.insertDirectionLength(180*Math.atan2(d.y-c.y,d.x-c.x)/Math.PI+a,b)}},getCurrentPointIndex:function(){return this.line.geometry.components.length-1},undo:function(){var a=\n +this.line.geometry,b=a.components,c=this.getCurrentPointIndex()-1,b=b[c];if(a=a.removeComponent(b))this.redoStack||(this.redoStack=[]),this.redoStack.push(b),this.drawFeature();return a},redo:function(){var a=this.redoStack&&this.redoStack.pop();a&&(this.line.geometry.addComponent(a,this.getCurrentPointIndex()),this.drawFeature());return!!a},freehandMode:function(a){return this.freehandToggle&&a[this.freehandToggle]?!this.freehand:this.freehand},modifyFeature:function(a,b){this.line||this.createFeature(a);\n +var c=this.layer.getLonLatFromViewPortPx(a);this.point.geometry.x=c.lon;this.point.geometry.y=c.lat;this.callback("modify",[this.point.geometry,this.getSketch(),b]);this.point.geometry.clearBounds();this.drawFeature()},drawFeature:function(){this.layer.drawFeature(this.line,this.style);this.layer.drawFeature(this.point,this.style)},getSketch:function(){return this.line},getGeometry:function(){var a=this.line&&this.line.geometry;a&&this.multi&&(a=new OpenLayers.Geometry.MultiLineString([a]));return a},\n +touchstart:function(a){if(this.timerId&&this.passesTolerance(this.lastTouchPx,a.xy,this.doubleTouchTolerance))return this.finishGeometry(),window.clearTimeout(this.timerId),this.timerId=null,!1;this.timerId&&(window.clearTimeout(this.timerId),this.timerId=null);this.timerId=window.setTimeout(OpenLayers.Function.bind(function(){this.timerId=null},this),300);return OpenLayers.Handler.Point.prototype.touchstart.call(this,a)},down:function(a){var b=this.stopDown;this.freehandMode(a)&&(b=!0,this.touch&&\n +(this.modifyFeature(a.xy,!!this.lastUp),OpenLayers.Event.stop(a)));!this.touch&&(!this.lastDown||!this.passesTolerance(this.lastDown,a.xy,this.pixelTolerance))&&this.modifyFeature(a.xy,!!this.lastUp);this.mouseDown=!0;this.lastDown=a.xy;this.stoppedDown=b;return!b},move:function(a){if(this.stoppedDown&&this.freehandMode(a))return this.persist&&this.destroyPersistedFeature(),this.maxVertices&&this.line&&this.line.geometry.components.length===this.maxVertices?(this.removePoint(),this.finalize()):this.addPoint(a.xy),\n +!1;!this.touch&&(!this.mouseDown||this.stoppedDown)&&this.modifyFeature(a.xy,!!this.lastUp);return!0},up:function(a){if(this.mouseDown&&(!this.lastUp||!this.lastUp.equals(a.xy)))this.stoppedDown&&this.freehandMode(a)?(this.persist&&this.destroyPersistedFeature(),this.removePoint(),this.finalize()):this.passesTolerance(this.lastDown,a.xy,this.pixelTolerance)&&(this.touch&&this.modifyFeature(a.xy),null==this.lastUp&&this.persist&&this.destroyPersistedFeature(),this.addPoint(a.xy),this.lastUp=a.xy,this.line.geometry.components.length===\n +this.maxVertices+1&&this.finishGeometry());this.stoppedDown=this.stopDown;this.mouseDown=!1;return!this.stopUp},finishGeometry:function(){this.line.geometry.removeComponent(this.line.geometry.components[this.line.geometry.components.length-1]);this.removePoint();this.finalize()},dblclick:function(a){this.freehandMode(a)||this.finishGeometry();return!1},CLASS_NAME:"OpenLayers.Handler.Path"});OpenLayers.Spherical=OpenLayers.Spherical||{};OpenLayers.Spherical.DEFAULT_RADIUS=6378137;OpenLayers.Spherical.computeDistanceBetween=function(a,b,c){var c=c||OpenLayers.Spherical.DEFAULT_RADIUS,d=Math.sin(Math.PI*(b.lon-a.lon)/360),e=Math.sin(Math.PI*(b.lat-a.lat)/360),a=e*e+d*d*Math.cos(Math.PI*a.lat/180)*Math.cos(Math.PI*b.lat/180);return 2*c*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))};\n +OpenLayers.Spherical.computeHeading=function(a,b){var c=Math.sin(Math.PI*(a.lon-b.lon)/180)*Math.cos(Math.PI*b.lat/180),d=Math.cos(Math.PI*a.lat/180)*Math.sin(Math.PI*b.lat/180)-Math.sin(Math.PI*a.lat/180)*Math.cos(Math.PI*b.lat/180)*Math.cos(Math.PI*(a.lon-b.lon)/180);return 180*Math.atan2(c,d)/Math.PI};OpenLayers.Control.CacheWrite=OpenLayers.Class(OpenLayers.Control,{layers:null,imageFormat:"image/png",quotaRegEx:/quota/i,setMap:function(a){OpenLayers.Control.prototype.setMap.apply(this,arguments);var b,c=this.layers||a.layers;for(b=c.length-1;0<=b;--b)this.addLayer({layer:c[b]});if(!this.layers)a.events.on({addlayer:this.addLayer,removeLayer:this.removeLayer,scope:this})},addLayer:function(a){a.layer.events.on({tileloadstart:this.makeSameOrigin,tileloaded:this.cache,scope:this})},removeLayer:function(a){a.layer.events.un({tileloadstart:this.makeSameOrigin,\n +tileloaded:this.cache,scope:this})},makeSameOrigin:function(a){if(this.active&&(a=a.tile,a instanceof OpenLayers.Tile.Image&&!a.crossOriginKeyword&&"data:"!==a.url.substr(0,5))){var b=OpenLayers.Request.makeSameOrigin(a.url,OpenLayers.ProxyHost);OpenLayers.Control.CacheWrite.urlMap[b]=a.url;a.url=b}},cache:function(a){if(this.active&&window.localStorage&&(a=a.tile,a instanceof OpenLayers.Tile.Image&&"data:"!==a.url.substr(0,5)))try{var b=a.getCanvasContext();if(b){var c=OpenLayers.Control.CacheWrite.urlMap;\n +window.localStorage.setItem("olCache_"+(c[a.url]||a.url),b.canvas.toDataURL(this.imageFormat));delete c[a.url]}}catch(d){(b=d.name||d.message)&&this.quotaRegEx.test(b)?this.events.triggerEvent("cachefull",{tile:a}):OpenLayers.Console.error(d.toString())}},destroy:function(){if(this.layers||this.map){var a,b=this.layers||this.map.layers;for(a=b.length-1;0<=a;--a)this.removeLayer({layer:b[a]})}this.map&&this.map.events.un({addlayer:this.addLayer,removeLayer:this.removeLayer,scope:this});OpenLayers.Control.prototype.destroy.apply(this,\n +arguments)},CLASS_NAME:"OpenLayers.Control.CacheWrite"});OpenLayers.Control.CacheWrite.clearCache=function(){if(window.localStorage){var a,b;for(a=window.localStorage.length-1;0<=a;--a)b=window.localStorage.key(a),"olCache_"===b.substr(0,8)&&window.localStorage.removeItem(b)}};OpenLayers.Control.CacheWrite.urlMap={};OpenLayers.Format.Context=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{layerOptions:null,layerParams:null,read:function(a,b){var c=OpenLayers.Format.XML.VersionedOGC.prototype.read.apply(this,arguments);if(b&&b.map)if(this.context=c,b.map instanceof OpenLayers.Map)c=this.mergeContextToMap(c,b.map);else{var d=b.map;if(OpenLayers.Util.isElement(d)||"string"==typeof d)d={div:d};c=this.contextToMap(c,d)}return c},getLayerFromContext:function(a){var b,c,d={queryable:a.queryable,visibility:a.visibility,\n +maxExtent:a.maxExtent,metadata:OpenLayers.Util.applyDefaults(a.metadata,{styles:a.styles,formats:a.formats,"abstract":a["abstract"],dataURL:a.dataURL}),numZoomLevels:a.numZoomLevels,units:a.units,isBaseLayer:a.isBaseLayer,opacity:a.opacity,displayInLayerSwitcher:a.displayInLayerSwitcher,singleTile:a.singleTile,tileSize:a.tileSize?new OpenLayers.Size(a.tileSize.width,a.tileSize.height):void 0,minScale:a.minScale||a.maxScaleDenominator,maxScale:a.maxScale||a.minScaleDenominator,srs:a.srs,dimensions:a.dimensions,\n +metadataURL:a.metadataURL};this.layerOptions&&OpenLayers.Util.applyDefaults(d,this.layerOptions);var e={layers:a.name,transparent:a.transparent,version:a.version};if(a.formats&&0<a.formats.length){e.format=a.formats[0].value;b=0;for(c=a.formats.length;b<c;b++){var f=a.formats[b];if(!0==f.current){e.format=f.value;break}}}if(a.styles&&0<a.styles.length){b=0;for(c=a.styles.length;b<c;b++)if(f=a.styles[b],!0==f.current){f.href?e.sld=f.href:f.body?e.sld_body=f.body:e.styles=f.name;break}}this.layerParams&&\n +OpenLayers.Util.applyDefaults(e,this.layerParams);b=null;c=a.service;c==OpenLayers.Format.Context.serviceTypes.WFS?(d.strategies=[new OpenLayers.Strategy.BBOX],d.protocol=new OpenLayers.Protocol.WFS({url:a.url,featurePrefix:a.name.split(":")[0],featureType:a.name.split(":").pop()}),b=new OpenLayers.Layer.Vector(a.title||a.name,d)):c==OpenLayers.Format.Context.serviceTypes.KML?(d.strategies=[new OpenLayers.Strategy.Fixed],d.protocol=new OpenLayers.Protocol.HTTP({url:a.url,format:new OpenLayers.Format.KML}),\n +b=new OpenLayers.Layer.Vector(a.title||a.name,d)):c==OpenLayers.Format.Context.serviceTypes.GML?(d.strategies=[new OpenLayers.Strategy.Fixed],d.protocol=new OpenLayers.Protocol.HTTP({url:a.url,format:new OpenLayers.Format.GML}),b=new OpenLayers.Layer.Vector(a.title||a.name,d)):a.features?(b=new OpenLayers.Layer.Vector(a.title||a.name,d),b.addFeatures(a.features)):!0!==a.categoryLayer&&(b=new OpenLayers.Layer.WMS(a.title||a.name,a.url,e,d));return b},getLayersFromContext:function(a){for(var b=[],c=\n +0,d=a.length;c<d;c++){var e=this.getLayerFromContext(a[c]);null!==e&&b.push(e)}return b},contextToMap:function(a,b){b=OpenLayers.Util.applyDefaults({maxExtent:a.maxExtent,projection:a.projection,units:a.units},b);b.maxExtent&&(b.maxResolution=b.maxExtent.getWidth()/OpenLayers.Map.TILE_WIDTH);b.metadata={contactInformation:a.contactInformation,"abstract":a["abstract"],keywords:a.keywords,logo:a.logo,descriptionURL:a.descriptionURL};var c=new OpenLayers.Map(b);c.addLayers(this.getLayersFromContext(a.layersContext));\n +c.setCenter(a.bounds.getCenterLonLat(),c.getZoomForExtent(a.bounds,!0));return c},mergeContextToMap:function(a,b){b.addLayers(this.getLayersFromContext(a.layersContext));return b},write:function(a,b){a=this.toContext(a);return OpenLayers.Format.XML.VersionedOGC.prototype.write.apply(this,arguments)},CLASS_NAME:"OpenLayers.Format.Context"});\n +OpenLayers.Format.Context.serviceTypes={WMS:"urn:ogc:serviceType:WMS",WFS:"urn:ogc:serviceType:WFS",WCS:"urn:ogc:serviceType:WCS",GML:"urn:ogc:serviceType:GML",SLD:"urn:ogc:serviceType:SLD",FES:"urn:ogc:serviceType:FES",KML:"urn:ogc:serviceType:KML"};OpenLayers.Format.WMC=OpenLayers.Class(OpenLayers.Format.Context,{defaultVersion:"1.1.0",layerToContext:function(a){var b=this.getParser(),c={queryable:a.queryable,visibility:a.visibility,name:a.params.LAYERS,title:a.name,"abstract":a.metadata["abstract"],dataURL:a.metadata.dataURL,metadataURL:a.metadataURL,server:{version:a.params.VERSION,url:a.url},maxExtent:a.maxExtent,transparent:a.params.TRANSPARENT,numZoomLevels:a.numZoomLevels,units:a.units,isBaseLayer:a.isBaseLayer,opacity:1==a.opacity?void 0:\n +a.opacity,displayInLayerSwitcher:a.displayInLayerSwitcher,singleTile:a.singleTile,tileSize:a.singleTile||!a.tileSize?void 0:{width:a.tileSize.w,height:a.tileSize.h},minScale:a.options.resolutions||a.options.scales||a.options.maxResolution||a.options.minScale?a.minScale:void 0,maxScale:a.options.resolutions||a.options.scales||a.options.minResolution||a.options.maxScale?a.maxScale:void 0,formats:[],styles:[],srs:a.srs,dimensions:a.dimensions};a.metadata.servertitle&&(c.server.title=a.metadata.servertitle);\n +if(a.metadata.formats&&0<a.metadata.formats.length)for(var d=0,e=a.metadata.formats.length;d<e;d++){var f=a.metadata.formats[d];c.formats.push({value:f.value,current:f.value==a.params.FORMAT})}else c.formats.push({value:a.params.FORMAT,current:!0});if(a.metadata.styles&&0<a.metadata.styles.length){d=0;for(e=a.metadata.styles.length;d<e;d++)b=a.metadata.styles[d],b.current=b.href==a.params.SLD||b.body==a.params.SLD_BODY||b.name==a.params.STYLES?!0:!1,c.styles.push(b)}else c.styles.push({href:a.params.SLD,\n +body:a.params.SLD_BODY,name:a.params.STYLES||b.defaultStyleName,title:b.defaultStyleTitle,current:!0});return c},toContext:function(a){var b={},c=a.layers;if("OpenLayers.Map"==a.CLASS_NAME){var d=a.metadata||{};b.size=a.getSize();b.bounds=a.getExtent();b.projection=a.projection;b.title=a.title;b.keywords=d.keywords;b["abstract"]=d["abstract"];b.logo=d.logo;b.descriptionURL=d.descriptionURL;b.contactInformation=d.contactInformation;b.maxExtent=a.maxExtent}else OpenLayers.Util.applyDefaults(b,a),void 0!=\n +b.layers&&delete b.layers;void 0==b.layersContext&&(b.layersContext=[]);if(void 0!=c&&OpenLayers.Util.isArray(c)){a=0;for(d=c.length;a<d;a++){var e=c[a];e instanceof OpenLayers.Layer.WMS&&b.layersContext.push(this.layerToContext(e))}}return b},CLASS_NAME:"OpenLayers.Format.WMC"});OpenLayers.Format.WMC.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ol:"http://openlayers.org/context",wmc:"http://www.opengis.net/context",sld:"http://www.opengis.net/sld",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},schemaLocation:"",getNamespacePrefix:function(a){var b=null;if(null==a)b=this.namespaces[this.defaultPrefix];else for(b in this.namespaces)if(this.namespaces[b]==a)break;return b},defaultPrefix:"wmc",rootPrefix:null,defaultStyleName:"",\n +defaultStyleTitle:"Default",initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));a=a.documentElement;this.rootPrefix=a.prefix;var b={version:a.getAttribute("version")};this.runChildNodes(b,a);return b},runChildNodes:function(a,b){for(var c=b.childNodes,d,e,f,g=0,h=c.length;g<h;++g)d=c[g],1==d.nodeType&&(e=this.getNamespacePrefix(d.namespaceURI),f=d.nodeName.split(":").pop(),\n +(e=this["read_"+e+"_"+f])&&e.apply(this,[a,d]))},read_wmc_General:function(a,b){this.runChildNodes(a,b)},read_wmc_BoundingBox:function(a,b){a.projection=b.getAttribute("SRS");a.bounds=new OpenLayers.Bounds(b.getAttribute("minx"),b.getAttribute("miny"),b.getAttribute("maxx"),b.getAttribute("maxy"))},read_wmc_LayerList:function(a,b){a.layersContext=[];this.runChildNodes(a,b)},read_wmc_Layer:function(a,b){var c={visibility:"1"!=b.getAttribute("hidden"),queryable:"1"==b.getAttribute("queryable"),formats:[],\n +styles:[],metadata:{}};this.runChildNodes(c,b);a.layersContext.push(c)},read_wmc_Extension:function(a,b){this.runChildNodes(a,b)},read_ol_units:function(a,b){a.units=this.getChildValue(b)},read_ol_maxExtent:function(a,b){var c=new OpenLayers.Bounds(b.getAttribute("minx"),b.getAttribute("miny"),b.getAttribute("maxx"),b.getAttribute("maxy"));a.maxExtent=c},read_ol_transparent:function(a,b){a.transparent=this.getChildValue(b)},read_ol_numZoomLevels:function(a,b){a.numZoomLevels=parseInt(this.getChildValue(b))},\n +read_ol_opacity:function(a,b){a.opacity=parseFloat(this.getChildValue(b))},read_ol_singleTile:function(a,b){a.singleTile="true"==this.getChildValue(b)},read_ol_tileSize:function(a,b){var c={width:b.getAttribute("width"),height:b.getAttribute("height")};a.tileSize=c},read_ol_isBaseLayer:function(a,b){a.isBaseLayer="true"==this.getChildValue(b)},read_ol_displayInLayerSwitcher:function(a,b){a.displayInLayerSwitcher="true"==this.getChildValue(b)},read_wmc_Server:function(a,b){a.version=b.getAttribute("version");\n +a.url=this.getOnlineResource_href(b);a.metadata.servertitle=b.getAttribute("title")},read_wmc_FormatList:function(a,b){this.runChildNodes(a,b)},read_wmc_Format:function(a,b){var c={value:this.getChildValue(b)};"1"==b.getAttribute("current")&&(c.current=!0);a.formats.push(c)},read_wmc_StyleList:function(a,b){this.runChildNodes(a,b)},read_wmc_Style:function(a,b){var c={};this.runChildNodes(c,b);"1"==b.getAttribute("current")&&(c.current=!0);a.styles.push(c)},read_wmc_SLD:function(a,b){this.runChildNodes(a,\n +b)},read_sld_StyledLayerDescriptor:function(a,b){var c=OpenLayers.Format.XML.prototype.write.apply(this,[b]);a.body=c},read_sld_FeatureTypeStyle:function(a,b){var c=OpenLayers.Format.XML.prototype.write.apply(this,[b]);a.body=c},read_wmc_OnlineResource:function(a,b){a.href=this.getAttributeNS(b,this.namespaces.xlink,"href")},read_wmc_Name:function(a,b){var c=this.getChildValue(b);c&&(a.name=c)},read_wmc_Title:function(a,b){var c=this.getChildValue(b);c&&(a.title=c)},read_wmc_MetadataURL:function(a,\n +b){a.metadataURL=this.getOnlineResource_href(b)},read_wmc_KeywordList:function(a,b){a.keywords=[];this.runChildNodes(a.keywords,b)},read_wmc_Keyword:function(a,b){a.push(this.getChildValue(b))},read_wmc_Abstract:function(a,b){var c=this.getChildValue(b);c&&(a["abstract"]=c)},read_wmc_LogoURL:function(a,b){a.logo={width:b.getAttribute("width"),height:b.getAttribute("height"),format:b.getAttribute("format"),href:this.getOnlineResource_href(b)}},read_wmc_DescriptionURL:function(a,b){a.descriptionURL=\n +this.getOnlineResource_href(b)},read_wmc_ContactInformation:function(a,b){var c={};this.runChildNodes(c,b);a.contactInformation=c},read_wmc_ContactPersonPrimary:function(a,b){var c={};this.runChildNodes(c,b);a.personPrimary=c},read_wmc_ContactPerson:function(a,b){var c=this.getChildValue(b);c&&(a.person=c)},read_wmc_ContactOrganization:function(a,b){var c=this.getChildValue(b);c&&(a.organization=c)},read_wmc_ContactPosition:function(a,b){var c=this.getChildValue(b);c&&(a.position=c)},read_wmc_ContactAddress:function(a,\n +b){var c={};this.runChildNodes(c,b);a.contactAddress=c},read_wmc_AddressType:function(a,b){var c=this.getChildValue(b);c&&(a.type=c)},read_wmc_Address:function(a,b){var c=this.getChildValue(b);c&&(a.address=c)},read_wmc_City:function(a,b){var c=this.getChildValue(b);c&&(a.city=c)},read_wmc_StateOrProvince:function(a,b){var c=this.getChildValue(b);c&&(a.stateOrProvince=c)},read_wmc_PostCode:function(a,b){var c=this.getChildValue(b);c&&(a.postcode=c)},read_wmc_Country:function(a,b){var c=this.getChildValue(b);\n +c&&(a.country=c)},read_wmc_ContactVoiceTelephone:function(a,b){var c=this.getChildValue(b);c&&(a.phone=c)},read_wmc_ContactFacsimileTelephone:function(a,b){var c=this.getChildValue(b);c&&(a.fax=c)},read_wmc_ContactElectronicMailAddress:function(a,b){var c=this.getChildValue(b);c&&(a.email=c)},read_wmc_DataURL:function(a,b){a.dataURL=this.getOnlineResource_href(b)},read_wmc_LegendURL:function(a,b){var c={width:b.getAttribute("width"),height:b.getAttribute("height"),format:b.getAttribute("format"),\n +href:this.getOnlineResource_href(b)};a.legend=c},read_wmc_DimensionList:function(a,b){a.dimensions={};this.runChildNodes(a.dimensions,b)},read_wmc_Dimension:function(a,b){var c={name:b.getAttribute("name").toLowerCase(),units:b.getAttribute("units")||"",unitSymbol:b.getAttribute("unitSymbol")||"",userValue:b.getAttribute("userValue")||"",nearestValue:"1"===b.getAttribute("nearestValue"),multipleValues:"1"===b.getAttribute("multipleValues"),current:"1"===b.getAttribute("current"),"default":b.getAttribute("default")||\n +""},d=this.getChildValue(b);c.values=d.split(",");a[c.name]=c},write:function(a,b){var c=this.createElementDefaultNS("ViewContext");this.setAttributes(c,{version:this.VERSION,id:b&&"string"==typeof b.id?b.id:OpenLayers.Util.createUniqueID("OpenLayers_Context_")});this.setAttributeNS(c,this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);c.appendChild(this.write_wmc_General(a));c.appendChild(this.write_wmc_LayerList(a));return OpenLayers.Format.XML.prototype.write.apply(this,[c])},createElementDefaultNS:function(a,\n +b,c){a=this.createElementNS(this.namespaces[this.defaultPrefix],a);b&&a.appendChild(this.createTextNode(b));c&&this.setAttributes(a,c);return a},setAttributes:function(a,b){var c,d;for(d in b)c=b[d].toString(),c.match(/[A-Z]/)?this.setAttributeNS(a,null,d,c):a.setAttribute(d,c)},write_wmc_General:function(a){var b=this.createElementDefaultNS("General");a.size&&b.appendChild(this.createElementDefaultNS("Window",null,{width:a.size.w,height:a.size.h}));var c=a.bounds;b.appendChild(this.createElementDefaultNS("BoundingBox",\n +null,{minx:c.left.toPrecision(18),miny:c.bottom.toPrecision(18),maxx:c.right.toPrecision(18),maxy:c.top.toPrecision(18),SRS:a.projection}));b.appendChild(this.createElementDefaultNS("Title",a.title));a.keywords&&b.appendChild(this.write_wmc_KeywordList(a.keywords));a["abstract"]&&b.appendChild(this.createElementDefaultNS("Abstract",a["abstract"]));a.logo&&b.appendChild(this.write_wmc_URLType("LogoURL",a.logo.href,a.logo));a.descriptionURL&&b.appendChild(this.write_wmc_URLType("DescriptionURL",a.descriptionURL));\n +a.contactInformation&&b.appendChild(this.write_wmc_ContactInformation(a.contactInformation));b.appendChild(this.write_ol_MapExtension(a));return b},write_wmc_KeywordList:function(a){for(var b=this.createElementDefaultNS("KeywordList"),c=0,d=a.length;c<d;c++)b.appendChild(this.createElementDefaultNS("Keyword",a[c]));return b},write_wmc_ContactInformation:function(a){var b=this.createElementDefaultNS("ContactInformation");a.personPrimary&&b.appendChild(this.write_wmc_ContactPersonPrimary(a.personPrimary));\n +a.position&&b.appendChild(this.createElementDefaultNS("ContactPosition",a.position));a.contactAddress&&b.appendChild(this.write_wmc_ContactAddress(a.contactAddress));a.phone&&b.appendChild(this.createElementDefaultNS("ContactVoiceTelephone",a.phone));a.fax&&b.appendChild(this.createElementDefaultNS("ContactFacsimileTelephone",a.fax));a.email&&b.appendChild(this.createElementDefaultNS("ContactElectronicMailAddress",a.email));return b},write_wmc_ContactPersonPrimary:function(a){var b=this.createElementDefaultNS("ContactPersonPrimary");\n +a.person&&b.appendChild(this.createElementDefaultNS("ContactPerson",a.person));a.organization&&b.appendChild(this.createElementDefaultNS("ContactOrganization",a.organization));return b},write_wmc_ContactAddress:function(a){var b=this.createElementDefaultNS("ContactAddress");a.type&&b.appendChild(this.createElementDefaultNS("AddressType",a.type));a.address&&b.appendChild(this.createElementDefaultNS("Address",a.address));a.city&&b.appendChild(this.createElementDefaultNS("City",a.city));a.stateOrProvince&&\n +b.appendChild(this.createElementDefaultNS("StateOrProvince",a.stateOrProvince));a.postcode&&b.appendChild(this.createElementDefaultNS("PostCode",a.postcode));a.country&&b.appendChild(this.createElementDefaultNS("Country",a.country));return b},write_ol_MapExtension:function(a){var b=this.createElementDefaultNS("Extension");if(a=a.maxExtent){var c=this.createElementNS(this.namespaces.ol,"ol:maxExtent");this.setAttributes(c,{minx:a.left.toPrecision(18),miny:a.bottom.toPrecision(18),maxx:a.right.toPrecision(18),\n +maxy:a.top.toPrecision(18)});b.appendChild(c)}return b},write_wmc_LayerList:function(a){for(var b=this.createElementDefaultNS("LayerList"),c=0,d=a.layersContext.length;c<d;++c)b.appendChild(this.write_wmc_Layer(a.layersContext[c]));return b},write_wmc_Layer:function(a){var b=this.createElementDefaultNS("Layer",null,{queryable:a.queryable?"1":"0",hidden:a.visibility?"0":"1"});b.appendChild(this.write_wmc_Server(a));b.appendChild(this.createElementDefaultNS("Name",a.name));b.appendChild(this.createElementDefaultNS("Title",\n +a.title));a["abstract"]&&b.appendChild(this.createElementDefaultNS("Abstract",a["abstract"]));a.dataURL&&b.appendChild(this.write_wmc_URLType("DataURL",a.dataURL));a.metadataURL&&b.appendChild(this.write_wmc_URLType("MetadataURL",a.metadataURL));return b},write_wmc_LayerExtension:function(a){var b=this.createElementDefaultNS("Extension"),c=a.maxExtent,d=this.createElementNS(this.namespaces.ol,"ol:maxExtent");this.setAttributes(d,{minx:c.left.toPrecision(18),miny:c.bottom.toPrecision(18),maxx:c.right.toPrecision(18),\n +maxy:c.top.toPrecision(18)});b.appendChild(d);a.tileSize&&!a.singleTile&&(c=this.createElementNS(this.namespaces.ol,"ol:tileSize"),this.setAttributes(c,a.tileSize),b.appendChild(c));for(var c="transparent numZoomLevels units isBaseLayer opacity displayInLayerSwitcher singleTile".split(" "),e=0,f=c.length;e<f;++e)(d=this.createOLPropertyNode(a,c[e]))&&b.appendChild(d);return b},createOLPropertyNode:function(a,b){var c=null;null!=a[b]&&(c=this.createElementNS(this.namespaces.ol,"ol:"+b),c.appendChild(this.createTextNode(a[b].toString())));\n +return c},write_wmc_Server:function(a){var a=a.server,b=this.createElementDefaultNS("Server"),c={service:"OGC:WMS",version:a.version};a.title&&(c.title=a.title);this.setAttributes(b,c);b.appendChild(this.write_wmc_OnlineResource(a.url));return b},write_wmc_URLType:function(a,b,c){a=this.createElementDefaultNS(a);a.appendChild(this.write_wmc_OnlineResource(b));if(c)for(var b=["width","height","format"],d=0;d<b.length;d++)b[d]in c&&a.setAttribute(b[d],c[b[d]]);return a},write_wmc_DimensionList:function(a){var b=\n +this.createElementDefaultNS("DimensionList"),c;for(c in a.dimensions){var d={},e=a.dimensions[c],f;for(f in e)d[f]="boolean"==typeof e[f]?Number(e[f]):e[f];e="";d.values&&(e=d.values.join(","),delete d.values);b.appendChild(this.createElementDefaultNS("Dimension",e,d))}return b},write_wmc_FormatList:function(a){for(var b=this.createElementDefaultNS("FormatList"),c=0,d=a.formats.length;c<d;c++){var e=a.formats[c];b.appendChild(this.createElementDefaultNS("Format",e.value,e.current&&!0==e.current?{current:"1"}:\n +null))}return b},write_wmc_StyleList:function(a){var b=this.createElementDefaultNS("StyleList");if((a=a.styles)&&OpenLayers.Util.isArray(a))for(var c,d=0,e=a.length;d<e;d++){var f=a[d],g=this.createElementDefaultNS("Style",null,f.current&&!0==f.current?{current:"1"}:null);f.href?(c=this.createElementDefaultNS("SLD"),f.name&&c.appendChild(this.createElementDefaultNS("Name",f.name)),f.title&&c.appendChild(this.createElementDefaultNS("Title",f.title)),f.legend&&c.appendChild(this.write_wmc_URLType("LegendURL",\n +f.legend.href,f.legend)),f=this.write_wmc_OnlineResource(f.href),c.appendChild(f),g.appendChild(c)):f.body?(c=this.createElementDefaultNS("SLD"),f.name&&c.appendChild(this.createElementDefaultNS("Name",f.name)),f.title&&c.appendChild(this.createElementDefaultNS("Title",f.title)),f.legend&&c.appendChild(this.write_wmc_URLType("LegendURL",f.legend.href,f.legend)),f=OpenLayers.Format.XML.prototype.read.apply(this,[f.body]).documentElement,c.ownerDocument&&c.ownerDocument.importNode&&(f=c.ownerDocument.importNode(f,\n +!0)),c.appendChild(f),g.appendChild(c)):(g.appendChild(this.createElementDefaultNS("Name",f.name)),g.appendChild(this.createElementDefaultNS("Title",f.title)),f["abstract"]&&g.appendChild(this.createElementDefaultNS("Abstract",f["abstract"])),f.legend&&g.appendChild(this.write_wmc_URLType("LegendURL",f.legend.href,f.legend)));b.appendChild(g)}return b},write_wmc_OnlineResource:function(a){var b=this.createElementDefaultNS("OnlineResource");this.setAttributeNS(b,this.namespaces.xlink,"xlink:type",\n +"simple");this.setAttributeNS(b,this.namespaces.xlink,"xlink:href",a);return b},getOnlineResource_href:function(a){var b={},a=a.getElementsByTagName("OnlineResource");0<a.length&&this.read_wmc_OnlineResource(b,a[0]);return b.href},CLASS_NAME:"OpenLayers.Format.WMC.v1"});OpenLayers.Control.PanPanel=OpenLayers.Class(OpenLayers.Control.Panel,{slideFactor:50,slideRatio:null,initialize:function(a){OpenLayers.Control.Panel.prototype.initialize.apply(this,[a]);a={slideFactor:this.slideFactor,slideRatio:this.slideRatio};this.addControls([new OpenLayers.Control.Pan(OpenLayers.Control.Pan.NORTH,a),new OpenLayers.Control.Pan(OpenLayers.Control.Pan.SOUTH,a),new OpenLayers.Control.Pan(OpenLayers.Control.Pan.EAST,a),new OpenLayers.Control.Pan(OpenLayers.Control.Pan.WEST,a)])},\n +CLASS_NAME:"OpenLayers.Control.PanPanel"});OpenLayers.Control.Attribution=OpenLayers.Class(OpenLayers.Control,{separator:", ",template:"${layers}",destroy:function(){this.map.events.un({removelayer:this.updateAttribution,addlayer:this.updateAttribution,changelayer:this.updateAttribution,changebaselayer:this.updateAttribution,scope:this});OpenLayers.Control.prototype.destroy.apply(this,arguments)},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);this.map.events.on({changebaselayer:this.updateAttribution,changelayer:this.updateAttribution,\n +addlayer:this.updateAttribution,removelayer:this.updateAttribution,scope:this});this.updateAttribution();return this.div},updateAttribution:function(){var a=[];if(this.map&&this.map.layers){for(var b=0,c=this.map.layers.length;b<c;b++){var d=this.map.layers[b];d.attribution&&d.getVisibility()&&-1===OpenLayers.Util.indexOf(a,d.attribution)&&a.push(d.attribution)}this.div.innerHTML=OpenLayers.String.format(this.template,{layers:a.join(this.separator)})}},CLASS_NAME:"OpenLayers.Control.Attribution"});OpenLayers.Kinetic=OpenLayers.Class({threshold:0,deceleration:0.0035,nbPoints:100,delay:200,points:void 0,timerId:void 0,initialize:function(a){OpenLayers.Util.extend(this,a)},begin:function(){OpenLayers.Animation.stop(this.timerId);this.timerId=void 0;this.points=[]},update:function(a){this.points.unshift({xy:a,tick:(new Date).getTime()});this.points.length>this.nbPoints&&this.points.pop()},end:function(a){for(var b,c=(new Date).getTime(),d=0,e=this.points.length,f;d<e;d++){f=this.points[d];if(c-\n +f.tick>this.delay)break;b=f}if(b&&(d=(new Date).getTime()-b.tick,c=Math.sqrt(Math.pow(a.x-b.xy.x,2)+Math.pow(a.y-b.xy.y,2)),d=c/d,!(0==d||d<this.threshold)))return c=Math.asin((a.y-b.xy.y)/c),b.xy.x<=a.x&&(c=Math.PI-c),{speed:d,theta:c}},move:function(a,b){var c=a.speed,d=Math.cos(a.theta),e=-Math.sin(a.theta),f=(new Date).getTime(),g=0,h=0;this.timerId=OpenLayers.Animation.start(OpenLayers.Function.bind(function(){if(null!=this.timerId){var a=(new Date).getTime()-f,j=-this.deceleration*Math.pow(a,\n +2)/2+c*a,k=j*d,j=j*e,l,m;l=!1;0>=-this.deceleration*a+c&&(OpenLayers.Animation.stop(this.timerId),this.timerId=null,l=!0);a=k-g;m=j-h;g=k;h=j;b(a,m,l)}},this))},CLASS_NAME:"OpenLayers.Kinetic"});OpenLayers.Layer.GeoRSS=OpenLayers.Class(OpenLayers.Layer.Markers,{location:null,features:null,formatOptions:null,selectedFeature:null,icon:null,popupSize:null,useFeedTitle:!0,initialize:function(a,b,c){OpenLayers.Layer.Markers.prototype.initialize.apply(this,[a,c]);this.location=b;this.features=[]},destroy:function(){OpenLayers.Layer.Markers.prototype.destroy.apply(this,arguments);this.clearFeatures();this.features=null},loadRSS:function(){this.loaded||(this.events.triggerEvent("loadstart"),OpenLayers.Request.GET({url:this.location,\n +success:this.parseData,scope:this}),this.loaded=!0)},moveTo:function(a,b,c){OpenLayers.Layer.Markers.prototype.moveTo.apply(this,arguments);this.visibility&&!this.loaded&&this.loadRSS()},parseData:function(a){var b=a.responseXML;if(!b||!b.documentElement)b=OpenLayers.Format.XML.prototype.read(a.responseText);if(this.useFeedTitle){a=null;try{a=b.getElementsByTagNameNS("*","title")[0].firstChild.nodeValue}catch(c){a=b.getElementsByTagName("title")[0].firstChild.nodeValue}a&&this.setName(a)}a={};OpenLayers.Util.extend(a,\n +this.formatOptions);this.map&&!this.projection.equals(this.map.getProjectionObject())&&(a.externalProjection=this.projection,a.internalProjection=this.map.getProjectionObject());for(var b=(new OpenLayers.Format.GeoRSS(a)).read(b),a=0,d=b.length;a<d;a++){var e={},f=b[a];if(f.geometry){var g=f.attributes.title?f.attributes.title:"Untitled",h=f.attributes.description?f.attributes.description:"No description.",i=f.attributes.link?f.attributes.link:"",f=f.geometry.getBounds().getCenterLonLat();e.icon=\n +null==this.icon?OpenLayers.Marker.defaultIcon():this.icon.clone();e.popupSize=this.popupSize?this.popupSize.clone():new OpenLayers.Size(250,120);if(g||h){e.title=g;e.description=h;var j=\'<div class="olLayerGeoRSSClose">[x]</div>\',j=j+\'<div class="olLayerGeoRSSTitle">\';i&&(j+=\'<a class="link" href="\'+i+\'" target="_blank">\');j+=g;i&&(j+="</a>");j+="</div>";j+=\'<div style="" class="olLayerGeoRSSDescription">\';j+=h;j+="</div>";e.popupContentHTML=j}f=new OpenLayers.Feature(this,f,e);this.features.push(f);\n +e=f.createMarker();e.events.register("click",f,this.markerClick);this.addMarker(e)}}this.events.triggerEvent("loadend")},markerClick:function(a){var b=this==this.layer.selectedFeature;this.layer.selectedFeature=!b?this:null;for(var c=0,d=this.layer.map.popups.length;c<d;c++)this.layer.map.removePopup(this.layer.map.popups[c]);b||(b=this.createPopup(),OpenLayers.Event.observe(b.div,"click",OpenLayers.Function.bind(function(){for(var a=0,b=this.layer.map.popups.length;a<b;a++)this.layer.map.removePopup(this.layer.map.popups[a])},\n +this)),this.layer.map.addPopup(b));OpenLayers.Event.stop(a)},clearFeatures:function(){if(null!=this.features)for(;0<this.features.length;){var a=this.features[0];OpenLayers.Util.removeItem(this.features,a);a.destroy()}},CLASS_NAME:"OpenLayers.Layer.GeoRSS"});OpenLayers.Symbolizer.Point=OpenLayers.Class(OpenLayers.Symbolizer,{initialize:function(a){OpenLayers.Symbolizer.prototype.initialize.apply(this,arguments)},CLASS_NAME:"OpenLayers.Symbolizer.Point"});OpenLayers.Symbolizer.Line=OpenLayers.Class(OpenLayers.Symbolizer,{initialize:function(a){OpenLayers.Symbolizer.prototype.initialize.apply(this,arguments)},CLASS_NAME:"OpenLayers.Symbolizer.Line"});OpenLayers.Symbolizer.Text=OpenLayers.Class(OpenLayers.Symbolizer,{initialize:function(a){OpenLayers.Symbolizer.prototype.initialize.apply(this,arguments)},CLASS_NAME:"OpenLayers.Symbolizer.Text"});OpenLayers.Format.SLD.v1=OpenLayers.Class(OpenLayers.Format.Filter.v1_0_0,{namespaces:{sld:"http://www.opengis.net/sld",ogc:"http://www.opengis.net/ogc",gml:"http://www.opengis.net/gml",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},defaultPrefix:"sld",schemaLocation:null,multipleSymbolizers:!1,featureTypeCounter:null,defaultSymbolizer:{fillColor:"#808080",fillOpacity:1,strokeColor:"#000000",strokeOpacity:1,strokeWidth:1,strokeDashstyle:"solid",pointRadius:3,\n +graphicName:"square"},read:function(a,b){var b=OpenLayers.Util.applyDefaults(b,this.options),c={namedLayers:!0===b.namedLayersAsArray?[]:{}};this.readChildNodes(a,c);return c},readers:OpenLayers.Util.applyDefaults({sld:{StyledLayerDescriptor:function(a,b){b.version=a.getAttribute("version");this.readChildNodes(a,b)},Name:function(a,b){b.name=this.getChildValue(a)},Title:function(a,b){b.title=this.getChildValue(a)},Abstract:function(a,b){b.description=this.getChildValue(a)},NamedLayer:function(a,b){var c=\n +{userStyles:[],namedStyles:[]};this.readChildNodes(a,c);for(var d=0,e=c.userStyles.length;d<e;++d)c.userStyles[d].layerName=c.name;OpenLayers.Util.isArray(b.namedLayers)?b.namedLayers.push(c):b.namedLayers[c.name]=c},NamedStyle:function(a,b){b.namedStyles.push(this.getChildName(a.firstChild))},UserStyle:function(a,b){var c={defaultsPerSymbolizer:!0,rules:[]};this.featureTypeCounter=-1;this.readChildNodes(a,c);this.multipleSymbolizers?(delete c.defaultsPerSymbolizer,c=new OpenLayers.Style2(c)):c=new OpenLayers.Style(this.defaultSymbolizer,\n +c);b.userStyles.push(c)},IsDefault:function(a,b){"1"==this.getChildValue(a)&&(b.isDefault=!0)},FeatureTypeStyle:function(a,b){++this.featureTypeCounter;var c={rules:this.multipleSymbolizers?b.rules:[]};this.readChildNodes(a,c);this.multipleSymbolizers||(b.rules=c.rules)},Rule:function(a,b){var c;this.multipleSymbolizers&&(c={symbolizers:[]});c=new OpenLayers.Rule(c);this.readChildNodes(a,c);b.rules.push(c)},ElseFilter:function(a,b){b.elseFilter=!0},MinScaleDenominator:function(a,b){b.minScaleDenominator=\n +parseFloat(this.getChildValue(a))},MaxScaleDenominator:function(a,b){b.maxScaleDenominator=parseFloat(this.getChildValue(a))},TextSymbolizer:function(a,b){var c={};this.readChildNodes(a,c);this.multipleSymbolizers?(c.zIndex=this.featureTypeCounter,b.symbolizers.push(new OpenLayers.Symbolizer.Text(c))):b.symbolizer.Text=OpenLayers.Util.applyDefaults(c,b.symbolizer.Text)},LabelPlacement:function(a,b){this.readChildNodes(a,b)},PointPlacement:function(a,b){var c={};this.readChildNodes(a,c);c.labelRotation=\n +c.rotation;delete c.rotation;var d,e=b.labelAnchorPointX,f=b.labelAnchorPointY;e<=1/3?d="l":e>1/3&&e<2/3?d="c":e>=2/3&&(d="r");f<=1/3?d+="b":f>1/3&&f<2/3?d+="m":f>=2/3&&(d+="t");c.labelAlign=d;OpenLayers.Util.applyDefaults(b,c)},AnchorPoint:function(a,b){this.readChildNodes(a,b)},AnchorPointX:function(a,b){var c=this.readers.ogc._expression.call(this,a);c&&(b.labelAnchorPointX=c)},AnchorPointY:function(a,b){var c=this.readers.ogc._expression.call(this,a);c&&(b.labelAnchorPointY=c)},Displacement:function(a,\n +b){this.readChildNodes(a,b)},DisplacementX:function(a,b){var c=this.readers.ogc._expression.call(this,a);c&&(b.labelXOffset=c)},DisplacementY:function(a,b){var c=this.readers.ogc._expression.call(this,a);c&&(b.labelYOffset=c)},LinePlacement:function(a,b){this.readChildNodes(a,b)},PerpendicularOffset:function(a,b){var c=this.readers.ogc._expression.call(this,a);c&&(b.labelPerpendicularOffset=c)},Label:function(a,b){var c=this.readers.ogc._expression.call(this,a);c&&(b.label=c)},Font:function(a,b){this.readChildNodes(a,\n +b)},Halo:function(a,b){var c={};this.readChildNodes(a,c);b.haloRadius=c.haloRadius;b.haloColor=c.fillColor;b.haloOpacity=c.fillOpacity},Radius:function(a,b){var c=this.readers.ogc._expression.call(this,a);null!=c&&(b.haloRadius=c)},RasterSymbolizer:function(a,b){var c={};this.readChildNodes(a,c);this.multipleSymbolizers?(c.zIndex=this.featureTypeCounter,b.symbolizers.push(new OpenLayers.Symbolizer.Raster(c))):b.symbolizer.Raster=OpenLayers.Util.applyDefaults(c,b.symbolizer.Raster)},Geometry:function(a,\n +b){b.geometry={};this.readChildNodes(a,b.geometry)},ColorMap:function(a,b){b.colorMap=[];this.readChildNodes(a,b.colorMap)},ColorMapEntry:function(a,b){var c=a.getAttribute("quantity"),d=a.getAttribute("opacity");b.push({color:a.getAttribute("color"),quantity:null!==c?parseFloat(c):void 0,label:a.getAttribute("label")||void 0,opacity:null!==d?parseFloat(d):void 0})},LineSymbolizer:function(a,b){var c={};this.readChildNodes(a,c);this.multipleSymbolizers?(c.zIndex=this.featureTypeCounter,b.symbolizers.push(new OpenLayers.Symbolizer.Line(c))):\n +b.symbolizer.Line=OpenLayers.Util.applyDefaults(c,b.symbolizer.Line)},PolygonSymbolizer:function(a,b){var c={fill:!1,stroke:!1};this.multipleSymbolizers||(c=b.symbolizer.Polygon||c);this.readChildNodes(a,c);this.multipleSymbolizers?(c.zIndex=this.featureTypeCounter,b.symbolizers.push(new OpenLayers.Symbolizer.Polygon(c))):b.symbolizer.Polygon=c},PointSymbolizer:function(a,b){var c={fill:!1,stroke:!1,graphic:!1};this.multipleSymbolizers||(c=b.symbolizer.Point||c);this.readChildNodes(a,c);this.multipleSymbolizers?\n +(c.zIndex=this.featureTypeCounter,b.symbolizers.push(new OpenLayers.Symbolizer.Point(c))):b.symbolizer.Point=c},Stroke:function(a,b){b.stroke=!0;this.readChildNodes(a,b)},Fill:function(a,b){b.fill=!0;this.readChildNodes(a,b)},CssParameter:function(a,b){var c=a.getAttribute("name"),d=this.cssMap[c];b.label&&("fill"===c?d="fontColor":"fill-opacity"===c&&(d="fontOpacity"));d&&(c=this.readers.ogc._expression.call(this,a))&&(b[d]=c)},Graphic:function(a,b){b.graphic=!0;var c={};this.readChildNodes(a,c);\n +for(var d="stroke strokeColor strokeWidth strokeOpacity strokeLinecap fill fillColor fillOpacity graphicName rotation graphicFormat".split(" "),e,f,g=0,h=d.length;g<h;++g)e=d[g],f=c[e],void 0!=f&&(b[e]=f);void 0!=c.opacity&&(b.graphicOpacity=c.opacity);void 0!=c.size&&(isNaN(c.size/2)?b.graphicWidth=c.size:b.pointRadius=c.size/2);void 0!=c.href&&(b.externalGraphic=c.href);void 0!=c.rotation&&(b.rotation=c.rotation)},ExternalGraphic:function(a,b){this.readChildNodes(a,b)},Mark:function(a,b){this.readChildNodes(a,\n +b)},WellKnownName:function(a,b){b.graphicName=this.getChildValue(a)},Opacity:function(a,b){var c=this.readers.ogc._expression.call(this,a);c&&(b.opacity=c)},Size:function(a,b){var c=this.readers.ogc._expression.call(this,a);c&&(b.size=c)},Rotation:function(a,b){var c=this.readers.ogc._expression.call(this,a);c&&(b.rotation=c)},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,this.namespaces.xlink,"href")},Format:function(a,b){b.graphicFormat=this.getChildValue(a)}}},OpenLayers.Format.Filter.v1_0_0.prototype.readers),\n +cssMap:{stroke:"strokeColor","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-dasharray":"strokeDashstyle",fill:"fillColor","fill-opacity":"fillOpacity","font-family":"fontFamily","font-size":"fontSize","font-weight":"fontWeight","font-style":"fontStyle"},getCssProperty:function(a){var b=null,c;for(c in this.cssMap)if(this.cssMap[c]==a){b=c;break}return b},getGraphicFormat:function(a){var b,c;for(c in this.graphicFormats)if(this.graphicFormats[c].test(a)){b=\n +c;break}return b||this.defaultGraphicFormat},defaultGraphicFormat:"image/png",graphicFormats:{"image/jpeg":/\\.jpe?g$/i,"image/gif":/\\.gif$/i,"image/png":/\\.png$/i},write:function(a){return this.writers.sld.StyledLayerDescriptor.apply(this,[a])},writers:OpenLayers.Util.applyDefaults({sld:{_OGCExpression:function(a,b){var c=this.createElementNSPlus(a),d="string"==typeof b?b.split("${"):[b];c.appendChild(this.createTextNode(d[0]));for(var e,f,g=1,h=d.length;g<h;g++)e=d[g],f=e.indexOf("}"),0<f?(this.writeNode("ogc:PropertyName",\n +{property:e.substring(0,f)},c),c.appendChild(this.createTextNode(e.substring(++f)))):c.appendChild(this.createTextNode("${"+e));return c},StyledLayerDescriptor:function(a){var b=this.createElementNSPlus("sld:StyledLayerDescriptor",{attributes:{version:this.VERSION,"xsi:schemaLocation":this.schemaLocation}});b.setAttribute("xmlns:ogc",this.namespaces.ogc);b.setAttribute("xmlns:gml",this.namespaces.gml);a.name&&this.writeNode("Name",a.name,b);a.title&&this.writeNode("Title",a.title,b);a.description&&\n +this.writeNode("Abstract",a.description,b);if(OpenLayers.Util.isArray(a.namedLayers))for(var c=0,d=a.namedLayers.length;c<d;++c)this.writeNode("NamedLayer",a.namedLayers[c],b);else for(c in a.namedLayers)this.writeNode("NamedLayer",a.namedLayers[c],b);return b},Name:function(a){return this.createElementNSPlus("sld:Name",{value:a})},Title:function(a){return this.createElementNSPlus("sld:Title",{value:a})},Abstract:function(a){return this.createElementNSPlus("sld:Abstract",{value:a})},NamedLayer:function(a){var b=\n +this.createElementNSPlus("sld:NamedLayer");this.writeNode("Name",a.name,b);if(a.namedStyles)for(var c=0,d=a.namedStyles.length;c<d;++c)this.writeNode("NamedStyle",a.namedStyles[c],b);if(a.userStyles){c=0;for(d=a.userStyles.length;c<d;++c)this.writeNode("UserStyle",a.userStyles[c],b)}return b},NamedStyle:function(a){var b=this.createElementNSPlus("sld:NamedStyle");this.writeNode("Name",a,b);return b},UserStyle:function(a){var b=this.createElementNSPlus("sld:UserStyle");a.name&&this.writeNode("Name",\n +a.name,b);a.title&&this.writeNode("Title",a.title,b);a.description&&this.writeNode("Abstract",a.description,b);a.isDefault&&this.writeNode("IsDefault",a.isDefault,b);if(this.multipleSymbolizers&&a.rules){for(var c={"0":[]},d=[0],e,f,g,h,i,j=0,k=a.rules.length;j<k;++j)if(e=a.rules[j],e.symbolizers){f={};for(var l=0,m=e.symbolizers.length;l<m;++l)g=e.symbolizers[l],h=g.zIndex,h in f||(i=e.clone(),i.symbolizers=[],f[h]=i),f[h].symbolizers.push(g.clone());for(h in f)h in c||(d.push(h),c[h]=[]),c[h].push(f[h])}else c[0].push(e.clone());\n +d.sort();j=0;for(k=d.length;j<k;++j)e=c[d[j]],0<e.length&&(i=a.clone(),i.rules=c[d[j]],this.writeNode("FeatureTypeStyle",i,b))}else this.writeNode("FeatureTypeStyle",a,b);return b},IsDefault:function(a){return this.createElementNSPlus("sld:IsDefault",{value:a?"1":"0"})},FeatureTypeStyle:function(a){for(var b=this.createElementNSPlus("sld:FeatureTypeStyle"),c=0,d=a.rules.length;c<d;++c)this.writeNode("Rule",a.rules[c],b);return b},Rule:function(a){var b=this.createElementNSPlus("sld:Rule");a.name&&\n +this.writeNode("Name",a.name,b);a.title&&this.writeNode("Title",a.title,b);a.description&&this.writeNode("Abstract",a.description,b);a.elseFilter?this.writeNode("ElseFilter",null,b):a.filter&&this.writeNode("ogc:Filter",a.filter,b);void 0!=a.minScaleDenominator&&this.writeNode("MinScaleDenominator",a.minScaleDenominator,b);void 0!=a.maxScaleDenominator&&this.writeNode("MaxScaleDenominator",a.maxScaleDenominator,b);var c,d;if(this.multipleSymbolizers&&a.symbolizers)for(var e=0,f=a.symbolizers.length;e<\n +f;++e)d=a.symbolizers[e],c=d.CLASS_NAME.split(".").pop(),this.writeNode(c+"Symbolizer",d,b);else for(var f=OpenLayers.Style.SYMBOLIZER_PREFIXES,e=0,g=f.length;e<g;++e)c=f[e],(d=a.symbolizer[c])&&this.writeNode(c+"Symbolizer",d,b);return b},ElseFilter:function(){return this.createElementNSPlus("sld:ElseFilter")},MinScaleDenominator:function(a){retu + +]]></string> </value> + </item> + <item> + <key> <string>next</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="9" aka="AAAAAAAAAAk="> + <pickle> + <global name="Pdata" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +rn this.createElementNSPlus("sld:MinScaleDenominator",{value:a})},MaxScaleDenominator:function(a){return this.createElementNSPlus("sld:MaxScaleDenominator",\n +{value:a})},LineSymbolizer:function(a){var b=this.createElementNSPlus("sld:LineSymbolizer");this.writeNode("Stroke",a,b);return b},Stroke:function(a){var b=this.createElementNSPlus("sld:Stroke");void 0!=a.strokeColor&&this.writeNode("CssParameter",{symbolizer:a,key:"strokeColor"},b);void 0!=a.strokeOpacity&&this.writeNode("CssParameter",{symbolizer:a,key:"strokeOpacity"},b);void 0!=a.strokeWidth&&this.writeNode("CssParameter",{symbolizer:a,key:"strokeWidth"},b);void 0!=a.strokeDashstyle&&"solid"!==\n +a.strokeDashstyle&&this.writeNode("CssParameter",{symbolizer:a,key:"strokeDashstyle"},b);void 0!=a.strokeLinecap&&this.writeNode("CssParameter",{symbolizer:a,key:"strokeLinecap"},b);return b},CssParameter:function(a){return this.createElementNSPlus("sld:CssParameter",{attributes:{name:this.getCssProperty(a.key)},value:a.symbolizer[a.key]})},TextSymbolizer:function(a){var b=this.createElementNSPlus("sld:TextSymbolizer");null!=a.label&&this.writeNode("Label",a.label,b);(null!=a.fontFamily||null!=a.fontSize||\n +null!=a.fontWeight||null!=a.fontStyle)&&this.writeNode("Font",a,b);(null!=a.labelAnchorPointX||null!=a.labelAnchorPointY||null!=a.labelAlign||null!=a.labelXOffset||null!=a.labelYOffset||null!=a.labelRotation||null!=a.labelPerpendicularOffset)&&this.writeNode("LabelPlacement",a,b);(null!=a.haloRadius||null!=a.haloColor||null!=a.haloOpacity)&&this.writeNode("Halo",a,b);(null!=a.fontColor||null!=a.fontOpacity)&&this.writeNode("Fill",{fillColor:a.fontColor,fillOpacity:a.fontOpacity},b);return b},LabelPlacement:function(a){var b=\n +this.createElementNSPlus("sld:LabelPlacement");(null!=a.labelAnchorPointX||null!=a.labelAnchorPointY||null!=a.labelAlign||null!=a.labelXOffset||null!=a.labelYOffset||null!=a.labelRotation)&&null==a.labelPerpendicularOffset&&this.writeNode("PointPlacement",a,b);null!=a.labelPerpendicularOffset&&this.writeNode("LinePlacement",a,b);return b},LinePlacement:function(a){var b=this.createElementNSPlus("sld:LinePlacement");this.writeNode("PerpendicularOffset",a.labelPerpendicularOffset,b);return b},PerpendicularOffset:function(a){return this.createElementNSPlus("sld:PerpendicularOffset",\n +{value:a})},PointPlacement:function(a){var b=this.createElementNSPlus("sld:PointPlacement");(null!=a.labelAnchorPointX||null!=a.labelAnchorPointY||null!=a.labelAlign)&&this.writeNode("AnchorPoint",a,b);(null!=a.labelXOffset||null!=a.labelYOffset)&&this.writeNode("Displacement",a,b);null!=a.labelRotation&&this.writeNode("Rotation",a.labelRotation,b);return b},AnchorPoint:function(a){var b=this.createElementNSPlus("sld:AnchorPoint"),c=a.labelAnchorPointX,d=a.labelAnchorPointY;null!=c&&this.writeNode("AnchorPointX",\n +c,b);null!=d&&this.writeNode("AnchorPointY",d,b);if(null==c&&null==d){var e=a.labelAlign.substr(0,1),a=a.labelAlign.substr(1,1);"l"===e?c=0:"c"===e?c=0.5:"r"===e&&(c=1);"b"===a?d=0:"m"===a?d=0.5:"t"===a&&(d=1);this.writeNode("AnchorPointX",c,b);this.writeNode("AnchorPointY",d,b)}return b},AnchorPointX:function(a){return this.createElementNSPlus("sld:AnchorPointX",{value:a})},AnchorPointY:function(a){return this.createElementNSPlus("sld:AnchorPointY",{value:a})},Displacement:function(a){var b=this.createElementNSPlus("sld:Displacement");\n +null!=a.labelXOffset&&this.writeNode("DisplacementX",a.labelXOffset,b);null!=a.labelYOffset&&this.writeNode("DisplacementY",a.labelYOffset,b);return b},DisplacementX:function(a){return this.createElementNSPlus("sld:DisplacementX",{value:a})},DisplacementY:function(a){return this.createElementNSPlus("sld:DisplacementY",{value:a})},Font:function(a){var b=this.createElementNSPlus("sld:Font");a.fontFamily&&this.writeNode("CssParameter",{symbolizer:a,key:"fontFamily"},b);a.fontSize&&this.writeNode("CssParameter",\n +{symbolizer:a,key:"fontSize"},b);a.fontWeight&&this.writeNode("CssParameter",{symbolizer:a,key:"fontWeight"},b);a.fontStyle&&this.writeNode("CssParameter",{symbolizer:a,key:"fontStyle"},b);return b},Label:function(a){return this.writers.sld._OGCExpression.call(this,"sld:Label",a)},Halo:function(a){var b=this.createElementNSPlus("sld:Halo");a.haloRadius&&this.writeNode("Radius",a.haloRadius,b);(a.haloColor||a.haloOpacity)&&this.writeNode("Fill",{fillColor:a.haloColor,fillOpacity:a.haloOpacity},b);\n +return b},Radius:function(a){return this.createElementNSPlus("sld:Radius",{value:a})},RasterSymbolizer:function(a){var b=this.createElementNSPlus("sld:RasterSymbolizer");a.geometry&&this.writeNode("Geometry",a.geometry,b);a.opacity&&this.writeNode("Opacity",a.opacity,b);a.colorMap&&this.writeNode("ColorMap",a.colorMap,b);return b},Geometry:function(a){var b=this.createElementNSPlus("sld:Geometry");a.property&&this.writeNode("ogc:PropertyName",a,b);return b},ColorMap:function(a){for(var b=this.createElementNSPlus("sld:ColorMap"),\n +c=0,d=a.length;c<d;++c)this.writeNode("ColorMapEntry",a[c],b);return b},ColorMapEntry:function(a){var b=this.createElementNSPlus("sld:ColorMapEntry");b.setAttribute("color",a.color);void 0!==a.opacity&&b.setAttribute("opacity",parseFloat(a.opacity));void 0!==a.quantity&&b.setAttribute("quantity",parseFloat(a.quantity));void 0!==a.label&&b.setAttribute("label",a.label);return b},PolygonSymbolizer:function(a){var b=this.createElementNSPlus("sld:PolygonSymbolizer");!1!==a.fill&&this.writeNode("Fill",\n +a,b);!1!==a.stroke&&this.writeNode("Stroke",a,b);return b},Fill:function(a){var b=this.createElementNSPlus("sld:Fill");a.fillColor&&this.writeNode("CssParameter",{symbolizer:a,key:"fillColor"},b);null!=a.fillOpacity&&this.writeNode("CssParameter",{symbolizer:a,key:"fillOpacity"},b);return b},PointSymbolizer:function(a){var b=this.createElementNSPlus("sld:PointSymbolizer");this.writeNode("Graphic",a,b);return b},Graphic:function(a){var b=this.createElementNSPlus("sld:Graphic");void 0!=a.externalGraphic?\n +this.writeNode("ExternalGraphic",a,b):this.writeNode("Mark",a,b);void 0!=a.graphicOpacity&&this.writeNode("Opacity",a.graphicOpacity,b);void 0!=a.pointRadius?this.writeNode("Size",2*a.pointRadius,b):void 0!=a.graphicWidth&&this.writeNode("Size",a.graphicWidth,b);void 0!=a.rotation&&this.writeNode("Rotation",a.rotation,b);return b},ExternalGraphic:function(a){var b=this.createElementNSPlus("sld:ExternalGraphic");this.writeNode("OnlineResource",a.externalGraphic,b);this.writeNode("Format",a.graphicFormat||\n +this.getGraphicFormat(a.externalGraphic),b);return b},Mark:function(a){var b=this.createElementNSPlus("sld:Mark");a.graphicName&&this.writeNode("WellKnownName",a.graphicName,b);!1!==a.fill&&this.writeNode("Fill",a,b);!1!==a.stroke&&this.writeNode("Stroke",a,b);return b},WellKnownName:function(a){return this.createElementNSPlus("sld:WellKnownName",{value:a})},Opacity:function(a){return this.createElementNSPlus("sld:Opacity",{value:a})},Size:function(a){return this.writers.sld._OGCExpression.call(this,\n +"sld:Size",a)},Rotation:function(a){return this.createElementNSPlus("sld:Rotation",{value:a})},OnlineResource:function(a){return this.createElementNSPlus("sld:OnlineResource",{attributes:{"xlink:type":"simple","xlink:href":a}})},Format:function(a){return this.createElementNSPlus("sld:Format",{value:a})}}},OpenLayers.Format.Filter.v1_0_0.prototype.writers),CLASS_NAME:"OpenLayers.Format.SLD.v1"});OpenLayers.Layer.WMS=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{service:"WMS",version:"1.1.1",request:"GetMap",styles:"",format:"image/jpeg"},isBaseLayer:!0,encodeBBOX:!1,noMagic:!1,yx:{},initialize:function(a,b,c,d){var e=[],c=OpenLayers.Util.upperCaseObject(c);1.3<=parseFloat(c.VERSION)&&!c.EXCEPTIONS&&(c.EXCEPTIONS="INIMAGE");e.push(a,b,c,d);OpenLayers.Layer.Grid.prototype.initialize.apply(this,e);OpenLayers.Util.applyDefaults(this.params,OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS));\n +if(!this.noMagic&&this.params.TRANSPARENT&&"true"==this.params.TRANSPARENT.toString().toLowerCase()){if(null==d||!d.isBaseLayer)this.isBaseLayer=!1;"image/jpeg"==this.params.FORMAT&&(this.params.FORMAT=OpenLayers.Util.alphaHack()?"image/gif":"image/png")}},clone:function(a){null==a&&(a=new OpenLayers.Layer.WMS(this.name,this.url,this.params,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},reverseAxisOrder:function(){var a=this.projection.getCode();return 1.3<=parseFloat(this.params.VERSION)&&\n +!(!this.yx[a]&&!OpenLayers.Projection.defaults[a].yx)},getURL:function(a){var a=this.adjustBounds(a),b=this.getImageSize(),c={},d=this.reverseAxisOrder();c.BBOX=this.encodeBBOX?a.toBBOX(null,d):a.toArray(d);c.WIDTH=b.w;c.HEIGHT=b.h;return this.getFullRequestString(c)},mergeNewParams:function(a){a=[OpenLayers.Util.upperCaseObject(a)];return OpenLayers.Layer.Grid.prototype.mergeNewParams.apply(this,a)},getFullRequestString:function(a,b){var c=this.map.getProjectionObject(),c=this.projection&&this.projection.equals(c)?\n +this.projection.getCode():c.getCode(),c="none"==c?null:c;1.3<=parseFloat(this.params.VERSION)?this.params.CRS=c:this.params.SRS=c;"boolean"==typeof this.params.TRANSPARENT&&(a.TRANSPARENT=this.params.TRANSPARENT?"TRUE":"FALSE");return OpenLayers.Layer.Grid.prototype.getFullRequestString.apply(this,arguments)},CLASS_NAME:"OpenLayers.Layer.WMS"});OpenLayers.Format.WMC.v1_1_0=OpenLayers.Class(OpenLayers.Format.WMC.v1,{VERSION:"1.1.0",schemaLocation:"http://www.opengis.net/context http://schemas.opengis.net/context/1.1.0/context.xsd",initialize:function(a){OpenLayers.Format.WMC.v1.prototype.initialize.apply(this,[a])},read_sld_MinScaleDenominator:function(a,b){var c=parseFloat(this.getChildValue(b));0<c&&(a.maxScale=c)},read_sld_MaxScaleDenominator:function(a,b){a.minScale=parseFloat(this.getChildValue(b))},read_wmc_SRS:function(a,b){"srs"in\n +a||(a.srs={});a.srs[this.getChildValue(b)]=!0},write_wmc_Layer:function(a){var b=OpenLayers.Format.WMC.v1.prototype.write_wmc_Layer.apply(this,[a]);if(a.maxScale){var c=this.createElementNS(this.namespaces.sld,"sld:MinScaleDenominator");c.appendChild(this.createTextNode(a.maxScale.toPrecision(16)));b.appendChild(c)}a.minScale&&(c=this.createElementNS(this.namespaces.sld,"sld:MaxScaleDenominator"),c.appendChild(this.createTextNode(a.minScale.toPrecision(16))),b.appendChild(c));if(a.srs)for(var d in a.srs)b.appendChild(this.createElementDefaultNS("SRS",\n +d));b.appendChild(this.write_wmc_FormatList(a));b.appendChild(this.write_wmc_StyleList(a));a.dimensions&&b.appendChild(this.write_wmc_DimensionList(a));b.appendChild(this.write_wmc_LayerExtension(a));return b},CLASS_NAME:"OpenLayers.Format.WMC.v1_1_0"});OpenLayers.Format.XLS=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.1.0",stringifyOutput:!0,CLASS_NAME:"OpenLayers.Format.XLS"});OpenLayers.Format.XLS.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{xls:"http://www.opengis.net/xls",gml:"http://www.opengis.net/gml",xsi:"http://www.w3.org/2001/XMLSchema-instance"},regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},xy:!0,defaultPrefix:"xls",schemaLocation:null,read:function(a,b){OpenLayers.Util.applyDefaults(b,this.options);var c={};this.readChildNodes(a,c);return c},readers:{xls:{XLS:function(a,b){b.version=a.getAttribute("version");\n +this.readChildNodes(a,b)},Response:function(a,b){this.readChildNodes(a,b)},GeocodeResponse:function(a,b){b.responseLists=[];this.readChildNodes(a,b)},GeocodeResponseList:function(a,b){var c={features:[],numberOfGeocodedAddresses:parseInt(a.getAttribute("numberOfGeocodedAddresses"))};b.responseLists.push(c);this.readChildNodes(a,c)},GeocodedAddress:function(a,b){var c=new OpenLayers.Feature.Vector;b.features.push(c);this.readChildNodes(a,c);c.geometry=c.components[0]},GeocodeMatchCode:function(a,b){b.attributes.matchCode=\n +{accuracy:parseFloat(a.getAttribute("accuracy")),matchType:a.getAttribute("matchType")}},Address:function(a,b){var c={countryCode:a.getAttribute("countryCode"),addressee:a.getAttribute("addressee"),street:[],place:[]};b.attributes.address=c;this.readChildNodes(a,c)},freeFormAddress:function(a,b){b.freeFormAddress=this.getChildValue(a)},StreetAddress:function(a,b){this.readChildNodes(a,b)},Building:function(a,b){b.building={number:a.getAttribute("number"),subdivision:a.getAttribute("subdivision"),\n +buildingName:a.getAttribute("buildingName")}},Street:function(a,b){b.street.push(this.getChildValue(a))},Place:function(a,b){b.place[a.getAttribute("type")]=this.getChildValue(a)},PostalCode:function(a,b){b.postalCode=this.getChildValue(a)}},gml:OpenLayers.Format.GML.v3.prototype.readers.gml},write:function(a){return this.writers.xls.XLS.apply(this,[a])},writers:{xls:{XLS:function(a){var b=this.createElementNSPlus("xls:XLS",{attributes:{version:this.VERSION,"xsi:schemaLocation":this.schemaLocation}});\n +this.writeNode("RequestHeader",a.header,b);this.writeNode("Request",a,b);return b},RequestHeader:function(){return this.createElementNSPlus("xls:RequestHeader")},Request:function(a){var b=this.createElementNSPlus("xls:Request",{attributes:{methodName:"GeocodeRequest",requestID:a.requestID||"",version:this.VERSION}});this.writeNode("GeocodeRequest",a.addresses,b);return b},GeocodeRequest:function(a){for(var b=this.createElementNSPlus("xls:GeocodeRequest"),c=0,d=a.length;c<d;c++)this.writeNode("Address",\n +a[c],b);return b},Address:function(a){var b=this.createElementNSPlus("xls:Address",{attributes:{countryCode:a.countryCode}});a.freeFormAddress?this.writeNode("freeFormAddress",a.freeFormAddress,b):(a.street&&this.writeNode("StreetAddress",a,b),a.municipality&&this.writeNode("Municipality",a.municipality,b),a.countrySubdivision&&this.writeNode("CountrySubdivision",a.countrySubdivision,b),a.postalCode&&this.writeNode("PostalCode",a.postalCode,b));return b},freeFormAddress:function(a){return this.createElementNSPlus("freeFormAddress",\n +{value:a})},StreetAddress:function(a){var b=this.createElementNSPlus("xls:StreetAddress");a.building&&this.writeNode(b,"Building",a.building);a=a.street;OpenLayers.Util.isArray(a)||(a=[a]);for(var c=0,d=a.length;c<d;c++)this.writeNode("Street",a[c],b);return b},Building:function(a){return this.createElementNSPlus("xls:Building",{attributes:{number:a.number,subdivision:a.subdivision,buildingName:a.buildingName}})},Street:function(a){return this.createElementNSPlus("xls:Street",{value:a})},Municipality:function(a){return this.createElementNSPlus("xls:Place",\n +{attributes:{type:"Municipality"},value:a})},CountrySubdivision:function(a){return this.createElementNSPlus("xls:Place",{attributes:{type:"CountrySubdivision"},value:a})},PostalCode:function(a){return this.createElementNSPlus("xls:PostalCode",{value:a})}}},CLASS_NAME:"OpenLayers.Format.XLS.v1"});OpenLayers.Format.XLS.v1_1_0=OpenLayers.Class(OpenLayers.Format.XLS.v1,{VERSION:"1.1",schemaLocation:"http://www.opengis.net/xls http://schemas.opengis.net/ols/1.1.0/LocationUtilityService.xsd",CLASS_NAME:"OpenLayers.Format.XLS.v1_1_0"});OpenLayers.Format.XLS.v1_1=OpenLayers.Format.XLS.v1_1_0;OpenLayers.Renderer.SVG=OpenLayers.Class(OpenLayers.Renderer.Elements,{xmlns:"http://www.w3.org/2000/svg",xlinkns:"http://www.w3.org/1999/xlink",MAX_PIXEL:15E3,translationParameters:null,symbolMetrics:null,initialize:function(a){this.supported()&&(OpenLayers.Renderer.Elements.prototype.initialize.apply(this,arguments),this.translationParameters={x:0,y:0},this.symbolMetrics={})},supported:function(){return document.implementation&&(document.implementation.hasFeature("org.w3c.svg","1.0")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#SVG",\n +"1.1")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"))},inValidRange:function(a,b,c){a+=c?0:this.translationParameters.x;b+=c?0:this.translationParameters.y;return a>=-this.MAX_PIXEL&&a<=this.MAX_PIXEL&&b>=-this.MAX_PIXEL&&b<=this.MAX_PIXEL},setExtent:function(a,b){var c=OpenLayers.Renderer.Elements.prototype.setExtent.apply(this,arguments),d=this.getResolution(),e=-a.left/d,d=a.top/d;if(b)return this.left=e,this.top=d,this.rendererRoot.setAttributeNS(null,\n +"viewBox","0 0 "+this.size.w+" "+this.size.h),this.translate(this.xOffset,0),!0;(e=this.translate(e-this.left+this.xOffset,d-this.top))||this.setExtent(a,!0);return c&&e},translate:function(a,b){if(this.inValidRange(a,b,!0)){var c="";if(a||b)c="translate("+a+","+b+")";this.root.setAttributeNS(null,"transform",c);this.translationParameters={x:a,y:b};return!0}return!1},setSize:function(a){OpenLayers.Renderer.prototype.setSize.apply(this,arguments);this.rendererRoot.setAttributeNS(null,"width",this.size.w);\n +this.rendererRoot.setAttributeNS(null,"height",this.size.h)},getNodeType:function(a,b){var c=null;switch(a.CLASS_NAME){case "OpenLayers.Geometry.Point":c=b.externalGraphic?"image":this.isComplexSymbol(b.graphicName)?"svg":"circle";break;case "OpenLayers.Geometry.Rectangle":c="rect";break;case "OpenLayers.Geometry.LineString":c="polyline";break;case "OpenLayers.Geometry.LinearRing":c="polygon";break;case "OpenLayers.Geometry.Polygon":case "OpenLayers.Geometry.Curve":c="path"}return c},setStyle:function(a,\n +b,c){var b=b||a._style,c=c||a._options,d=parseFloat(a.getAttributeNS(null,"r")),e=1,f;if("OpenLayers.Geometry.Point"==a._geometryClass&&d){a.style.visibility="";if(!1===b.graphic)a.style.visibility="hidden";else if(b.externalGraphic){f=this.getPosition(a);b.graphicTitle&&(a.setAttributeNS(null,"title",b.graphicTitle),d=a.getElementsByTagName("title"),0<d.length?d[0].firstChild.textContent=b.graphicTitle:(d=this.nodeFactory(null,"title"),d.textContent=b.graphicTitle,a.appendChild(d)));b.graphicWidth&&\n +b.graphicHeight&&a.setAttributeNS(null,"preserveAspectRatio","none");var d=b.graphicWidth||b.graphicHeight,g=b.graphicHeight||b.graphicWidth,d=d?d:2*b.pointRadius,g=g?g:2*b.pointRadius,h=void 0!=b.graphicYOffset?b.graphicYOffset:-(0.5*g),i=b.graphicOpacity||b.fillOpacity;a.setAttributeNS(null,"x",(f.x+(void 0!=b.graphicXOffset?b.graphicXOffset:-(0.5*d))).toFixed());a.setAttributeNS(null,"y",(f.y+h).toFixed());a.setAttributeNS(null,"width",d);a.setAttributeNS(null,"height",g);a.setAttributeNS(this.xlinkns,\n +"href",b.externalGraphic);a.setAttributeNS(null,"style","opacity: "+i);a.onclick=OpenLayers.Renderer.SVG.preventDefault}else if(this.isComplexSymbol(b.graphicName)){var d=3*b.pointRadius,g=2*d,j=this.importSymbol(b.graphicName);f=this.getPosition(a);e=3*this.symbolMetrics[j.id][0]/g;h=a.parentNode;i=a.nextSibling;h&&h.removeChild(a);a.firstChild&&a.removeChild(a.firstChild);a.appendChild(j.firstChild.cloneNode(!0));a.setAttributeNS(null,"viewBox",j.getAttributeNS(null,"viewBox"));a.setAttributeNS(null,\n +"width",g);a.setAttributeNS(null,"height",g);a.setAttributeNS(null,"x",f.x-d);a.setAttributeNS(null,"y",f.y-d);i?h.insertBefore(a,i):h&&h.appendChild(a)}else a.setAttributeNS(null,"r",b.pointRadius);d=b.rotation;if((void 0!==d||void 0!==a._rotation)&&f)a._rotation=d,d|=0,"svg"!==a.nodeName?a.setAttributeNS(null,"transform","rotate("+d+" "+f.x+" "+f.y+")"):(f=this.symbolMetrics[j.id],a.firstChild.setAttributeNS(null,"transform","rotate("+d+" "+f[1]+" "+f[2]+")"))}c.isFilled?(a.setAttributeNS(null,\n +"fill",b.fillColor),a.setAttributeNS(null,"fill-opacity",b.fillOpacity)):a.setAttributeNS(null,"fill","none");c.isStroked?(a.setAttributeNS(null,"stroke",b.strokeColor),a.setAttributeNS(null,"stroke-opacity",b.strokeOpacity),a.setAttributeNS(null,"stroke-width",b.strokeWidth*e),a.setAttributeNS(null,"stroke-linecap",b.strokeLinecap||"round"),a.setAttributeNS(null,"stroke-linejoin","round"),b.strokeDashstyle&&a.setAttributeNS(null,"stroke-dasharray",this.dashStyle(b,e))):a.setAttributeNS(null,"stroke",\n +"none");b.pointerEvents&&a.setAttributeNS(null,"pointer-events",b.pointerEvents);null!=b.cursor&&a.setAttributeNS(null,"cursor",b.cursor);return a},dashStyle:function(a,b){var c=a.strokeWidth*b,d=a.strokeDashstyle;switch(d){case "solid":return"none";case "dot":return[1,4*c].join();case "dash":return[4*c,4*c].join();case "dashdot":return[4*c,4*c,1,4*c].join();case "longdash":return[8*c,4*c].join();case "longdashdot":return[8*c,4*c,1,4*c].join();default:return OpenLayers.String.trim(d).replace(/\\s+/g,\n +",")}},createNode:function(a,b){var c=document.createElementNS(this.xmlns,a);b&&c.setAttributeNS(null,"id",b);return c},nodeTypeCompare:function(a,b){return b==a.nodeName},createRenderRoot:function(){var a=this.nodeFactory(this.container.id+"_svgRoot","svg");a.style.display="block";return a},createRoot:function(a){return this.nodeFactory(this.container.id+a,"g")},createDefs:function(){var a=this.nodeFactory(this.container.id+"_defs","defs");this.rendererRoot.appendChild(a);return a},drawPoint:function(a,\n +b){return this.drawCircle(a,b,1)},drawCircle:function(a,b,c){var d=this.getResolution(),e=(b.x-this.featureDx)/d+this.left,b=this.top-b.y/d;return this.inValidRange(e,b)?(a.setAttributeNS(null,"cx",e),a.setAttributeNS(null,"cy",b),a.setAttributeNS(null,"r",c),a):!1},drawLineString:function(a,b){var c=this.getComponentsString(b.components);return c.path?(a.setAttributeNS(null,"points",c.path),c.complete?a:null):!1},drawLinearRing:function(a,b){var c=this.getComponentsString(b.components);return c.path?\n +(a.setAttributeNS(null,"points",c.path),c.complete?a:null):!1},drawPolygon:function(a,b){for(var c="",d=!0,e=!0,f,g,h=0,i=b.components.length;h<i;h++)c+=" M",f=this.getComponentsString(b.components[h].components," "),(g=f.path)?(c+=" "+g,e=f.complete&&e):d=!1;return d?(a.setAttributeNS(null,"d",c+" z"),a.setAttributeNS(null,"fill-rule","evenodd"),e?a:null):!1},drawRectangle:function(a,b){var c=this.getResolution(),d=(b.x-this.featureDx)/c+this.left,e=this.top-b.y/c;return this.inValidRange(d,e)?(a.setAttributeNS(null,\n +"x",d),a.setAttributeNS(null,"y",e),a.setAttributeNS(null,"width",b.width/c),a.setAttributeNS(null,"height",b.height/c),a):!1},drawText:function(a,b,c){var d=!!b.labelOutlineWidth;if(d){var e=OpenLayers.Util.extend({},b);e.fontColor=e.labelOutlineColor;e.fontStrokeColor=e.labelOutlineColor;e.fontStrokeWidth=b.labelOutlineWidth;delete e.labelOutlineWidth;this.drawText(a,e,c)}var f=this.getResolution(),e=(c.x-this.featureDx)/f+this.left,g=c.y/f-this.top,d=d?this.LABEL_OUTLINE_SUFFIX:this.LABEL_ID_SUFFIX,\n +f=this.nodeFactory(a+d,"text");f.setAttributeNS(null,"x",e);f.setAttributeNS(null,"y",-g);b.fontColor&&f.setAttributeNS(null,"fill",b.fontColor);b.fontStrokeColor&&f.setAttributeNS(null,"stroke",b.fontStrokeColor);b.fontStrokeWidth&&f.setAttributeNS(null,"stroke-width",b.fontStrokeWidth);b.fontOpacity&&f.setAttributeNS(null,"opacity",b.fontOpacity);b.fontFamily&&f.setAttributeNS(null,"font-family",b.fontFamily);b.fontSize&&f.setAttributeNS(null,"font-size",b.fontSize);b.fontWeight&&f.setAttributeNS(null,\n +"font-weight",b.fontWeight);b.fontStyle&&f.setAttributeNS(null,"font-style",b.fontStyle);!0===b.labelSelect?(f.setAttributeNS(null,"pointer-events","visible"),f._featureId=a):f.setAttributeNS(null,"pointer-events","none");g=b.labelAlign||OpenLayers.Renderer.defaultSymbolizer.labelAlign;f.setAttributeNS(null,"text-anchor",OpenLayers.Renderer.SVG.LABEL_ALIGN[g[0]]||"middle");!0===OpenLayers.IS_GECKO&&f.setAttributeNS(null,"dominant-baseline",OpenLayers.Renderer.SVG.LABEL_ALIGN[g[1]]||"central");for(var h=\n +b.label.split("\\n"),i=h.length;f.childNodes.length>i;)f.removeChild(f.lastChild);for(var j=0;j<i;j++){var k=this.nodeFactory(a+d+"_tspan_"+j,"tspan");!0===b.labelSelect&&(k._featureId=a,k._geometry=c,k._geometryClass=c.CLASS_NAME);!1===OpenLayers.IS_GECKO&&k.setAttributeNS(null,"baseline-shift",OpenLayers.Renderer.SVG.LABEL_VSHIFT[g[1]]||"-35%");k.setAttribute("x",e);if(0==j){var l=OpenLayers.Renderer.SVG.LABEL_VFACTOR[g[1]];null==l&&(l=-0.5);k.setAttribute("dy",l*(i-1)+"em")}else k.setAttribute("dy",\n +"1em");k.textContent=""===h[j]?" ":h[j];k.parentNode||f.appendChild(k)}f.parentNode||this.textRoot.appendChild(f)},getComponentsString:function(a,b){for(var c=[],d=!0,e=a.length,f=[],g,h=0;h<e;h++)g=a[h],c.push(g),(g=this.getShortString(g))?f.push(g):(0<h&&this.getShortString(a[h-1])&&f.push(this.clipLine(a[h],a[h-1])),h<e-1&&this.getShortString(a[h+1])&&f.push(this.clipLine(a[h],a[h+1])),d=!1);return{path:f.join(b||","),complete:d}},clipLine:function(a,b){if(b.equals(a))return"";var c=this.getResolution(),\n +d=this.MAX_PIXEL-this.translationParameters.x,e=this.MAX_PIXEL-this.translationParameters.y,f=(b.x-this.featureDx)/c+this.left,g=this.top-b.y/c,h=(a.x-this.featureDx)/c+this.left,c=this.top-a.y/c,i;if(h<-d||h>d)i=(c-g)/(h-f),h=0>h?-d:d,c=g+(h-f)*i;if(c<-e||c>e)i=(h-f)/(c-g),c=0>c?-e:e,h=f+(c-g)*i;return h+","+c},getShortString:function(a){var b=this.getResolution(),c=(a.x-this.featureDx)/b+this.left,a=this.top-a.y/b;return this.inValidRange(c,a)?c+","+a:!1},getPosition:function(a){return{x:parseFloat(a.getAttributeNS(null,\n +"cx")),y:parseFloat(a.getAttributeNS(null,"cy"))}},importSymbol:function(a){this.defs||(this.defs=this.createDefs());var b=this.container.id+"-"+a,c=document.getElementById(b);if(null!=c)return c;var d=OpenLayers.Renderer.symbol[a];if(!d)throw Error(a+" is not a valid symbol name");var a=this.nodeFactory(b,"symbol"),e=this.nodeFactory(null,"polygon");a.appendChild(e);for(var c=new OpenLayers.Bounds(Number.MAX_VALUE,Number.MAX_VALUE,0,0),f=[],g,h,i=0;i<d.length;i+=2)g=d[i],h=d[i+1],c.left=Math.min(c.left,\n +g),c.bottom=Math.min(c.bottom,h),c.right=Math.max(c.right,g),c.top=Math.max(c.top,h),f.push(g,",",h);e.setAttributeNS(null,"points",f.join(" "));d=c.getWidth();e=c.getHeight();a.setAttributeNS(null,"viewBox",[c.left-d,c.bottom-e,3*d,3*e].join(" "));this.symbolMetrics[b]=[Math.max(d,e),c.getCenterLonLat().lon,c.getCenterLonLat().lat];this.defs.appendChild(a);return a},getFeatureIdFromEvent:function(a){var b=OpenLayers.Renderer.Elements.prototype.getFeatureIdFromEvent.apply(this,arguments);b||(b=a.target,\n +b=b.parentNode&&b!=this.rendererRoot?b.parentNode._featureId:void 0);return b},CLASS_NAME:"OpenLayers.Renderer.SVG"});OpenLayers.Renderer.SVG.LABEL_ALIGN={l:"start",r:"end",b:"bottom",t:"hanging"};OpenLayers.Renderer.SVG.LABEL_VSHIFT={t:"-70%",b:"0"};OpenLayers.Renderer.SVG.LABEL_VFACTOR={t:0,b:-1};OpenLayers.Renderer.SVG.preventDefault=function(a){a.preventDefault&&a.preventDefault()};OpenLayers.Format.SLD.v1_0_0=OpenLayers.Class(OpenLayers.Format.SLD.v1,{VERSION:"1.0.0",schemaLocation:"http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd",CLASS_NAME:"OpenLayers.Format.SLD.v1_0_0"});OpenLayers.Format.OWSContext=OpenLayers.Class(OpenLayers.Format.Context,{defaultVersion:"0.3.1",getVersion:function(a,b){var c=OpenLayers.Format.XML.VersionedOGC.prototype.getVersion.apply(this,arguments);"0.3.0"===c&&(c=this.defaultVersion);return c},toContext:function(a){var b={};"OpenLayers.Map"==a.CLASS_NAME&&(b.bounds=a.getExtent(),b.maxExtent=a.maxExtent,b.projection=a.projection,b.size=a.getSize(),b.layers=a.layers);return b},CLASS_NAME:"OpenLayers.Format.OWSContext"});OpenLayers.Format.OWSContext.v0_3_1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{owc:"http://www.opengis.net/ows-context",gml:"http://www.opengis.net/gml",kml:"http://www.opengis.net/kml/2.2",ogc:"http://www.opengis.net/ogc",ows:"http://www.opengis.net/ows",sld:"http://www.opengis.net/sld",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},VERSION:"0.3.1",schemaLocation:"http://www.opengis.net/ows-context http://www.ogcnetwork.net/schemas/owc/0.3.1/owsContext.xsd",\n +defaultPrefix:"owc",extractAttributes:!0,xy:!0,regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},featureNS:"http://mapserver.gis.umn.edu/mapserver",featureType:"vector",geometryName:"geometry",nestingLayerLookup:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);OpenLayers.Format.GML.v2.prototype.setGeometryTypes.call(this)},setNestingPath:function(a){if(a.layersContext)for(var b=0,c=a.layersContext.length;b<c;b++){var d=\n +a.layersContext[b],e=[],f=a.title||"";a.metadata&&a.metadata.nestingPath&&(e=a.metadata.nestingPath.slice());""!=f&&e.push(f);d.metadata.nestingPath=e;d.layersContext&&this.setNestingPath(d)}},decomposeNestingPath:function(a){var b=[];if(OpenLayers.Util.isArray(a)){for(a=a.slice();0<a.length;)b.push(a.slice()),a.pop();b.reverse()}return b},read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.readNode(a,\n +b);this.setNestingPath({layersContext:b.layersContext});a=[];this.processLayer(a,b);delete b.layersContext;b.layersContext=a;return b},processLayer:function(a,b){if(b.layersContext)for(var c=0,d=b.layersContext.length;c<d;c++){var e=b.layersContext[c];a.push(e);e.layersContext&&this.processLayer(a,e)}},write:function(a,b){this.nestingLayerLookup={};b=b||{};OpenLayers.Util.applyDefaults(b,a);var c=this.writeNode("OWSContext",b);this.nestingLayerLookup=null;this.setAttributeNS(c,this.namespaces.xsi,\n +"xsi:schemaLocation",this.schemaLocation);return OpenLayers.Format.XML.prototype.write.apply(this,[c])},readers:{kml:{Document:function(a,b){b.features=(new OpenLayers.Format.KML({kmlns:this.namespaces.kml,extractStyles:!0})).read(a)}},owc:{OWSContext:function(a,b){this.readChildNodes(a,b)},General:function(a,b){this.readChildNodes(a,b)},ResourceList:function(a,b){this.readChildNodes(a,b)},Layer:function(a,b){var c={metadata:{},visibility:"1"!=a.getAttribute("hidden"),queryable:"1"==a.getAttribute("queryable"),\n +opacity:null!=a.getAttribute("opacity")?parseFloat(a.getAttribute("opacity")):null,name:a.getAttribute("name"),categoryLayer:null==a.getAttribute("name"),formats:[],styles:[]};b.layersContext||(b.layersContext=[]);b.layersContext.push(c);this.readChildNodes(a,c)},InlineGeometry:function(a,b){b.features=[];var c=this.getElementsByTagNameNS(a,this.namespaces.gml,"featureMember"),d;1<=c.length&&(d=c[0]);d&&d.firstChild&&(c=d.firstChild.nextSibling?d.firstChild.nextSibling:d.firstChild,this.setNamespace("feature",\n +c.namespaceURI),this.featureType=c.localName||c.nodeName.split(":").pop(),this.readChildNodes(a,b))},Server:function(a,b){if(!b.service&&!b.version||b.service!=OpenLayers.Format.Context.serviceTypes.WMS)b.service=a.getAttribute("service"),b.version=a.getAttribute("version"),this.readChildNodes(a,b)},Name:function(a,b){b.name=this.getChildValue(a);this.readChildNodes(a,b)},Title:function(a,b){b.title=this.getChildValue(a);this.readChildNodes(a,b)},StyleList:function(a,b){this.readChildNodes(a,b.styles)},\n +Style:function(a,b){var c={};b.push(c);this.readChildNodes(a,c)},LegendURL:function(a,b){var c={};b.legend=c;this.readChildNodes(a,c)},OnlineResource:function(a,b){b.url=this.getAttributeNS(a,this.namespaces.xlink,"href");this.readChildNodes(a,b)}},ows:OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers.ows,gml:OpenLayers.Format.GML.v2.prototype.readers.gml,sld:OpenLayers.Format.SLD.v1_0_0.prototype.readers.sld,feature:OpenLayers.Format.GML.v2.prototype.readers.feature},writers:{owc:{OWSContext:function(a){var b=\n +this.createElementNSPlus("OWSContext",{attributes:{version:this.VERSION,id:a.id||OpenLayers.Util.createUniqueID("OpenLayers_OWSContext_")}});this.writeNode("General",a,b);this.writeNode("ResourceList",a,b);return b},General:function(a){var b=this.createElementNSPlus("General");this.writeNode("ows:BoundingBox",a,b);this.writeNode("ows:Title",a.title||"OpenLayers OWSContext",b);return b},ResourceList:function(a){for(var b=this.createElementNSPlus("ResourceList"),c=0,d=a.layers.length;c<d;c++){var e=\n +a.layers[c],f=this.decomposeNestingPath(e.metadata.nestingPath);this.writeNode("_Layer",{layer:e,subPaths:f},b)}return b},Server:function(a){var b=this.createElementNSPlus("Server",{attributes:{version:a.version,service:a.service}});this.writeNode("OnlineResource",a,b);return b},OnlineResource:function(a){return this.createElementNSPlus("OnlineResource",{attributes:{"xlink:href":a.url}})},InlineGeometry:function(a){var b=this.createElementNSPlus("InlineGeometry");this.writeNode("gml:boundedBy",a.getDataExtent(),\n +b);for(var c=0,d=a.features.length;c<d;c++)this.writeNode("gml:featureMember",a.features[c],b);return b},StyleList:function(a){for(var b=this.createElementNSPlus("StyleList"),c=0,d=a.length;c<d;c++)this.writeNode("Style",a[c],b);return b},Style:function(a){var b=this.createElementNSPlus("Style");this.writeNode("Name",a,b);this.writeNode("Title",a,b);a.legend&&this.writeNode("LegendURL",a,b);return b},Name:function(a){return this.createElementNSPlus("Name",{value:a.name})},Title:function(a){return this.createElementNSPlus("Title",\n +{value:a.title})},LegendURL:function(a){var b=this.createElementNSPlus("LegendURL");this.writeNode("OnlineResource",a.legend,b);return b},_WMS:function(a){var b=this.createElementNSPlus("Layer",{attributes:{name:a.params.LAYERS,queryable:a.queryable?"1":"0",hidden:a.visibility?"0":"1",opacity:a.hasOwnProperty("opacity")?a.opacity:null}});this.writeNode("ows:Title",a.name,b);this.writeNode("ows:OutputFormat",a.params.FORMAT,b);this.writeNode("Server",{service:OpenLayers.Format.Context.serviceTypes.WMS,\n +version:a.params.VERSION,url:a.url},b);a.metadata.styles&&0<a.metadata.styles.length&&this.writeNode("StyleList",a.metadata.styles,b);return b},_Layer:function(a){var b,c,d;b=a.layer;c=a.subPaths;d=null;0<c.length?(b=c[0].join("/"),c=b.lastIndexOf("/"),d=this.nestingLayerLookup[b],c=0<c?b.substring(c+1,b.length):b,d||(d=this.createElementNSPlus("Layer"),this.writeNode("ows:Title",c,d),this.nestingLayerLookup[b]=d),a.subPaths.shift(),this.writeNode("_Layer",a,d)):(b instanceof OpenLayers.Layer.WMS?\n +d=this.writeNode("_WMS",b):b instanceof OpenLayers.Layer.Vector&&(b.protocol instanceof OpenLayers.Protocol.WFS.v1?d=this.writeNode("_WFS",b):b.protocol instanceof OpenLayers.Protocol.HTTP?b.protocol.format instanceof OpenLayers.Format.GML?(b.protocol.format.version="2.1.2",d=this.writeNode("_GML",b)):b.protocol.format instanceof OpenLayers.Format.KML&&(b.protocol.format.version="2.2",d=this.writeNode("_KML",b)):(this.setNamespace("feature",this.featureNS),d=this.writeNode("_InlineGeometry",b))),\n +b.options.maxScale&&this.writeNode("sld:MinScaleDenominator",b.options.maxScale,d),b.options.minScale&&this.writeNode("sld:MaxScaleDenominator",b.options.minScale,d),this.nestingLayerLookup[b.name]=d);return d},_WFS:function(a){var b=this.createElementNSPlus("Layer",{attributes:{name:a.protocol.featurePrefix+":"+a.protocol.featureType,hidden:a.visibility?"0":"1"}});this.writeNode("ows:Title",a.name,b);this.writeNode("Server",{service:OpenLayers.Format.Context.serviceTypes.WFS,version:a.protocol.version,\n +url:a.protocol.url},b);return b},_InlineGeometry:function(a){var b=this.createElementNSPlus("Layer",{attributes:{name:this.featureType,hidden:a.visibility?"0":"1"}});this.writeNode("ows:Title",a.name,b);this.writeNode("InlineGeometry",a,b);return b},_GML:function(a){var b=this.createElementNSPlus("Layer");this.writeNode("ows:Title",a.name,b);this.writeNode("Server",{service:OpenLayers.Format.Context.serviceTypes.GML,url:a.protocol.url,version:a.protocol.format.version},b);return b},_KML:function(a){var b=\n +this.createElementNSPlus("Layer");this.writeNode("ows:Title",a.name,b);this.writeNode("Server",{service:OpenLayers.Format.Context.serviceTypes.KML,version:a.protocol.format.version,url:a.protocol.url},b);return b}},gml:OpenLayers.Util.applyDefaults({boundedBy:function(a){var b=this.createElementNSPlus("gml:boundedBy");this.writeNode("gml:Box",a,b);return b}},OpenLayers.Format.GML.v2.prototype.writers.gml),ows:OpenLayers.Format.OWSCommon.v1_0_0.prototype.writers.ows,sld:OpenLayers.Format.SLD.v1_0_0.prototype.writers.sld,\n +feature:OpenLayers.Format.GML.v2.prototype.writers.feature},CLASS_NAME:"OpenLayers.Format.OWSContext.v0_3_1"});OpenLayers.Control.ScaleLine=OpenLayers.Class(OpenLayers.Control,{maxWidth:100,topOutUnits:"km",topInUnits:"m",bottomOutUnits:"mi",bottomInUnits:"ft",eTop:null,eBottom:null,geodesic:!1,draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);this.eTop||(this.eTop=document.createElement("div"),this.eTop.className=this.displayClass+"Top",this.div.appendChild(this.eTop),this.eTop.style.visibility=""==this.topOutUnits||""==this.topInUnits?"hidden":"visible",this.eBottom=document.createElement("div"),\n +this.eBottom.className=this.displayClass+"Bottom",this.div.appendChild(this.eBottom),this.eBottom.style.visibility=""==this.bottomOutUnits||""==this.bottomInUnits?"hidden":"visible");this.map.events.register("moveend",this,this.update);this.update();return this.div},getBarLen:function(a){var b=parseInt(Math.log(a)/Math.log(10)),b=Math.pow(10,b),a=parseInt(a/b);return(5<a?5:2<a?2:1)*b},update:function(){var a=this.map.getResolution();if(a){var b=this.map.getUnits(),c=OpenLayers.INCHES_PER_UNIT,d=this.maxWidth*\n +a*c[b],e=1;!0===this.geodesic&&(e=(this.map.getGeodesicPixelSize().w||1.0E-6)*this.maxWidth/(d/c.km),d*=e);var f,g;1E5<d?(f=this.topOutUnits,g=this.bottomOutUnits):(f=this.topInUnits,g=this.bottomInUnits);var h=d/c[f],i=d/c[g],d=this.getBarLen(h),j=this.getBarLen(i),h=d/c[b]*c[f],i=j/c[b]*c[g],b=h/a/e,a=i/a/e;"visible"==this.eBottom.style.visibility&&(this.eBottom.style.width=Math.round(a)+"px",this.eBottom.innerHTML=j+" "+g);"visible"==this.eTop.style.visibility&&(this.eTop.style.width=Math.round(b)+\n +"px",this.eTop.innerHTML=d+" "+f)}},CLASS_NAME:"OpenLayers.Control.ScaleLine"});OpenLayers.Icon=OpenLayers.Class({url:null,size:null,offset:null,calculateOffset:null,imageDiv:null,px:null,initialize:function(a,b,c,d){this.url=a;this.size=b||{w:20,h:20};this.offset=c||{x:-(this.size.w/2),y:-(this.size.h/2)};this.calculateOffset=d;a=OpenLayers.Util.createUniqueID("OL_Icon_");this.imageDiv=OpenLayers.Util.createAlphaImageDiv(a)},destroy:function(){this.erase();OpenLayers.Event.stopObservingElement(this.imageDiv.firstChild);this.imageDiv.innerHTML="";this.imageDiv=null},clone:function(){return new OpenLayers.Icon(this.url,\n +this.size,this.offset,this.calculateOffset)},setSize:function(a){null!=a&&(this.size=a);this.draw()},setUrl:function(a){null!=a&&(this.url=a);this.draw()},draw:function(a){OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv,null,null,this.size,this.url,"absolute");this.moveTo(a);return this.imageDiv},erase:function(){null!=this.imageDiv&&null!=this.imageDiv.parentNode&&OpenLayers.Element.remove(this.imageDiv)},setOpacity:function(a){OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv,null,null,null,null,\n +null,null,null,a)},moveTo:function(a){null!=a&&(this.px=a);null!=this.imageDiv&&(null==this.px?this.display(!1):(this.calculateOffset&&(this.offset=this.calculateOffset(this.size)),OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv,null,{x:this.px.x+this.offset.x,y:this.px.y+this.offset.y})))},display:function(a){this.imageDiv.style.display=a?"":"none"},isDrawn:function(){return this.imageDiv&&this.imageDiv.parentNode&&11!=this.imageDiv.parentNode.nodeType},CLASS_NAME:"OpenLayers.Icon"});OpenLayers.Marker=OpenLayers.Class({icon:null,lonlat:null,events:null,map:null,initialize:function(a,b){this.lonlat=a;var c=b?b:OpenLayers.Marker.defaultIcon();null==this.icon?this.icon=c:(this.icon.url=c.url,this.icon.size=c.size,this.icon.offset=c.offset,this.icon.calculateOffset=c.calculateOffset);this.events=new OpenLayers.Events(this,this.icon.imageDiv)},destroy:function(){this.erase();this.map=null;this.events.destroy();this.events=null;null!=this.icon&&(this.icon.destroy(),this.icon=null)},\n +draw:function(a){return this.icon.draw(a)},erase:function(){null!=this.icon&&this.icon.erase()},moveTo:function(a){null!=a&&null!=this.icon&&this.icon.moveTo(a);this.lonlat=this.map.getLonLatFromLayerPx(a)},isDrawn:function(){return this.icon&&this.icon.isDrawn()},onScreen:function(){var a=!1;this.map&&(a=this.map.getExtent().containsLonLat(this.lonlat));return a},inflate:function(a){this.icon&&this.icon.setSize({w:this.icon.size.w*a,h:this.icon.size.h*a})},setOpacity:function(a){this.icon.setOpacity(a)},\n +setUrl:function(a){this.icon.setUrl(a)},display:function(a){this.icon.display(a)},CLASS_NAME:"OpenLayers.Marker"});OpenLayers.Marker.defaultIcon=function(){return new OpenLayers.Icon(OpenLayers.Util.getImageLocation("marker.png"),{w:21,h:25},{x:-10.5,y:-25})};OpenLayers.Layer.TileCache=OpenLayers.Class(OpenLayers.Layer.Grid,{isBaseLayer:!0,format:"image/png",serverResolutions:null,initialize:function(a,b,c,d){this.layername=c;OpenLayers.Layer.Grid.prototype.initialize.apply(this,[a,b,{},d]);this.extension=this.format.split("/")[1].toLowerCase();this.extension="jpg"==this.extension?"jpeg":this.extension},clone:function(a){null==a&&(a=new OpenLayers.Layer.TileCache(this.name,this.url,this.layername,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,\n +[a])},getURL:function(a){function b(a,b){for(var a=""+a,c=[],d=0;d<b;++d)c.push("0");return c.join("").substring(0,b-a.length)+a}var c=this.getServerResolution(),d=this.maxExtent,e=this.tileSize,f=Math.round((a.left-d.left)/(c*e.w)),a=Math.round((a.bottom-d.bottom)/(c*e.h)),c=null!=this.serverResolutions?OpenLayers.Util.indexOf(this.serverResolutions,c):this.map.getZoom(),f=[this.layername,b(c,2),b(parseInt(f/1E6),3),b(parseInt(f/1E3)%1E3,3),b(parseInt(f)%1E3,3),b(parseInt(a/1E6),3),b(parseInt(a/\n +1E3)%1E3,3),b(parseInt(a)%1E3,3)+"."+this.extension].join("/"),c=this.url;OpenLayers.Util.isArray(c)&&(c=this.selectUrl(f,c));c="/"==c.charAt(c.length-1)?c:c+"/";return c+f},CLASS_NAME:"OpenLayers.Layer.TileCache"});OpenLayers.Layer.KaMap=OpenLayers.Class(OpenLayers.Layer.Grid,{isBaseLayer:!0,DEFAULT_PARAMS:{i:"jpeg",map:""},initialize:function(a,b,c,d){OpenLayers.Layer.Grid.prototype.initialize.apply(this,arguments);this.params=OpenLayers.Util.applyDefaults(this.params,this.DEFAULT_PARAMS)},getURL:function(a){var a=this.adjustBounds(a),b=this.map.getResolution(),c=Math.round(1E4*this.map.getScale())/1E4,d=Math.round(a.left/b);return this.getFullRequestString({t:-Math.round(a.top/b),l:d,s:c})},calculateGridLayout:function(a,\n +b,c){var b=c*this.tileSize.w,c=c*this.tileSize.h,d=a.left,e=Math.floor(d/b)-this.buffer,d=-(d/b-e)*this.tileSize.w,e=e*b,a=a.top,f=Math.ceil(a/c)+this.buffer;return{tilelon:b,tilelat:c,tileoffsetlon:e,tileoffsetlat:f*c,tileoffsetx:d,tileoffsety:-(f-a/c+1)*this.tileSize.h}},clone:function(a){null==a&&(a=new OpenLayers.Layer.KaMap(this.name,this.url,this.params,this.getOptions()));a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a]);null!=this.tileSize&&(a.tileSize=this.tileSize.clone());a.grid=\n +[];return a},getTileBounds:function(a){var b=this.getResolution(),c=b*this.tileSize.w,b=b*this.tileSize.h,d=this.getLonLatFromViewPortPx(a),a=c*Math.floor(d.lon/c),d=b*Math.floor(d.lat/b);return new OpenLayers.Bounds(a,d,a+c,d+b)},CLASS_NAME:"OpenLayers.Layer.KaMap"});OpenLayers.Control.TransformFeature=OpenLayers.Class(OpenLayers.Control,{geometryTypes:null,layer:null,preserveAspectRatio:!1,rotate:!0,feature:null,renderIntent:"temporary",rotationHandleSymbolizer:null,box:null,center:null,scale:1,ratio:1,rotation:0,handles:null,rotationHandles:null,dragControl:null,irregular:!1,initialize:function(a,b){OpenLayers.Control.prototype.initialize.apply(this,[b]);this.layer=a;this.rotationHandleSymbolizer||(this.rotationHandleSymbolizer={stroke:!1,pointRadius:10,fillOpacity:0,\n +cursor:"pointer"});this.createBox();this.createControl()},activate:function(){var a=!1;OpenLayers.Control.prototype.activate.apply(this,arguments)&&(this.dragControl.activate(),this.layer.addFeatures([this.box]),this.rotate&&this.layer.addFeatures(this.rotationHandles),this.layer.addFeatures(this.handles),a=!0);return a},deactivate:function(){var a=!1;OpenLayers.Control.prototype.deactivate.apply(this,arguments)&&(this.layer.removeFeatures(this.handles),this.rotate&&this.layer.removeFeatures(this.rotationHandles),\n +this.layer.removeFeatures([this.box]),this.dragControl.deactivate(),a=!0);return a},setMap:function(a){this.dragControl.setMap(a);OpenLayers.Control.prototype.setMap.apply(this,arguments)},setFeature:function(a,b){var b=OpenLayers.Util.applyDefaults(b,{rotation:0,scale:1,ratio:1}),c=this.rotation,d=this.center;OpenLayers.Util.extend(this,b);if(!1!==this.events.triggerEvent("beforesetfeature",{feature:a})){this.feature=a;this.activate();this._setfeature=!0;var e=this.feature.geometry.getBounds();this.box.move(e.getCenterLonLat());\n +this.box.geometry.rotate(-c,d);this._angle=0;this.rotation?(c=a.geometry.clone(),c.rotate(-this.rotation,this.center),c=new OpenLayers.Feature.Vector(c.getBounds().toGeometry()),c.geometry.rotate(this.rotation,this.center),this.box.geometry.rotate(this.rotation,this.center),this.box.move(c.geometry.getBounds().getCenterLonLat()),c=c.geometry.components[0].components[0].getBounds().getCenterLonLat()):c=new OpenLayers.LonLat(e.left,e.bottom);this.handles[0].move(c);delete this._setfeature;this.events.triggerEvent("setfeature",\n +{feature:a})}},unsetFeature:function(){this.active?this.deactivate():(this.feature=null,this.rotation=0,this.ratio=this.scale=1)},createBox:function(){var a=this;this.center=new OpenLayers.Geometry.Point(0,0);this.box=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.LineString([new OpenLayers.Geometry.Point(-1,-1),new OpenLayers.Geometry.Point(0,-1),new OpenLayers.Geometry.Point(1,-1),new OpenLayers.Geometry.Point(1,0),new OpenLayers.Geometry.Point(1,1),new OpenLayers.Geometry.Point(0,1),new OpenLayers.Geometry.Point(-1,\n +1),new OpenLayers.Geometry.Point(-1,0),new OpenLayers.Geometry.Point(-1,-1)]),null,"string"==typeof this.renderIntent?null:this.renderIntent);this.box.geometry.move=function(b,c){a._moving=!0;OpenLayers.Geometry.LineString.prototype.move.apply(this,arguments);a.center.move(b,c);delete a._moving};for(var b=function(a,b){OpenLayers.Geometry.Point.prototype.move.apply(this,arguments);this._rotationHandle&&this._rotationHandle.geometry.move(a,b);this._handle.geometry.move(a,b)},c=function(a,b,c){OpenLayers.Geometry.Point.prototype.resize.apply(this,\n +arguments);this._rotationHandle&&this._rotationHandle.geometry.resize(a,b,c);this._handle.geometry.resize(a,b,c)},d=function(a,b){OpenLayers.Geometry.Point.prototype.rotate.apply(this,arguments);this._rotationHandle&&this._rotationHandle.geometry.rotate(a,b);this._handle.geometry.rotate(a,b)},e=function(b,c){var d=this.x,e=this.y;OpenLayers.Geometry.Point.prototype.move.call(this,b,c);if(!a._moving){var f=a.dragControl.handlers.drag.evt,g=!(!a._setfeature&&a.preserveAspectRatio)&&!(f&&f.shiftKey),\n +h=new OpenLayers.Geometry.Point(d,e),f=a.center;this.rotate(-a.rotation,f);h.rotate(-a.rotation,f);var i=this.x-f.x,j=this.y-f.y,k=i-(this.x-h.x),l=j-(this.y-h.y);a.irregular&&!a._setfeature&&(i-=(this.x-h.x)/2,j-=(this.y-h.y)/2);this.x=d;this.y=e;h=1;g?(j=1.0E-5>Math.abs(l)?1:j/l,h=(1.0E-5>Math.abs(k)?1:i/k)/j):(k=Math.sqrt(k*k+l*l),j=Math.sqrt(i*i+j*j)/k);a._moving=!0;a.box.geometry.rotate(-a.rotation,f);delete a._moving;a.box.geometry.resize(j,f,h);a.box.geometry.rotate(a.rotation,f);a.transformFeature({scale:j,\n +ratio:h});a.irregular&&!a._setfeature&&(i=f.clone(),i.x+=1.0E-5>Math.abs(d-f.x)?0:this.x-d,i.y+=1.0E-5>Math.abs(e-f.y)?0:this.y-e,a.box.geometry.move(this.x-d,this.y-e),a.transformFeature({center:i}))}},f=function(b,c){var d=this.x,e=this.y;OpenLayers.Geometry.Point.prototype.move.call(this,b,c);if(!a._moving){var f=a.dragControl.handlers.drag.evt,f=f&&f.shiftKey?45:1,g=a.center,h=this.x-g.x,i=this.y-g.y;this.x=d;this.y=e;d=Math.atan2(i-c,h-b);d=Math.atan2(i,h)-d;d*=180/Math.PI;a._angle=(a._angle+\n +d)%360;d=a.rotation%f;if(Math.abs(a._angle)>=f||0!==d)d=Math.round(a._angle/f)*f-d,a._angle=0,a.box.geometry.rotate(d,g),a.transformFeature({rotation:d})}},g=Array(8),h=Array(4),i,j,k,l="sw s se e ne n nw w".split(" "),m=0;8>m;++m)i=this.box.geometry.components[m],j=new OpenLayers.Feature.Vector(i.clone(),{role:l[m]+"-resize"},"string"==typeof this.renderIntent?null:this.renderIntent),0==m%2&&(k=new OpenLayers.Feature.Vector(i.clone(),{role:l[m]+"-rotate"},"string"==typeof this.rotationHandleSymbolizer?\n +null:this.rotationHandleSymbolizer),k.geometry.move=f,i._rotationHandle=k,h[m/2]=k),i.move=b,i.resize=c,i.rotate=d,j.geometry.move=e,i._handle=j,g[m]=j;this.rotationHandles=h;this.handles=g},createControl:function(){var a=this;this.dragControl=new OpenLayers.Control.DragFeature(this.layer,{documentDrag:!0,moveFeature:function(b){this.feature===a.feature&&(this.feature=a.box);OpenLayers.Control.DragFeature.prototype.moveFeature.apply(this,arguments)},onDrag:function(b){b===a.box&&a.transformFeature({center:a.center})},\n +onStart:function(b){var c=!a.geometryTypes||-1!==OpenLayers.Util.indexOf(a.geometryTypes,b.geometry.CLASS_NAME),d=OpenLayers.Util.indexOf(a.handles,b),d=d+OpenLayers.Util.indexOf(a.rotationHandles,b);b!==a.feature&&(b!==a.box&&-2==d&&c)&&a.setFeature(b)},onComplete:function(){a.events.triggerEvent("transformcomplete",{feature:a.feature})}})},drawHandles:function(){for(var a=this.layer,b=0;8>b;++b)this.rotate&&0===b%2&&a.drawFeature(this.rotationHandles[b/2],this.rotationHandleSymbolizer),a.drawFeature(this.handles[b],\n +this.renderIntent)},transformFeature:function(a){if(!this._setfeature){this.scale*=a.scale||1;this.ratio*=a.ratio||1;var b=this.rotation;this.rotation=(this.rotation+(a.rotation||0))%360;if(!1!==this.events.triggerEvent("beforetransform",a)){var c=this.feature,d=c.geometry,e=this.center;d.rotate(-b,e);a.scale||a.ratio?d.resize(a.scale,e,a.ratio):a.center&&c.move(a.center.getBounds().getCenterLonLat());d.rotate(this.rotation,e);this.layer.drawFeature(c);c.toState(OpenLayers.State.UPDATE);this.events.triggerEvent("transform",\n +a)}}this.layer.drawFeature(this.box,this.renderIntent);this.drawHandles()},destroy:function(){for(var a,b=0;8>b;++b)a=this.box.geometry.components[b],a._handle.destroy(),a._handle=null,a._rotationHandle&&a._rotationHandle.destroy(),a._rotationHandle=null;this.rotationHandles=this.rotationHandleSymbolizer=this.handles=this.feature=this.center=null;this.box.destroy();this.layer=this.box=null;this.dragControl.destroy();this.dragControl=null;OpenLayers.Control.prototype.destroy.apply(this,arguments)},\n +CLASS_NAME:"OpenLayers.Control.TransformFeature"});OpenLayers.Handler.Box=OpenLayers.Class(OpenLayers.Handler,{dragHandler:null,boxDivClassName:"olHandlerBoxZoomBox",boxOffsets:null,initialize:function(a,b,c){OpenLayers.Handler.prototype.initialize.apply(this,arguments);this.dragHandler=new OpenLayers.Handler.Drag(this,{down:this.startBox,move:this.moveBox,out:this.removeBox,up:this.endBox},{keyMask:this.keyMask})},destroy:function(){OpenLayers.Handler.prototype.destroy.apply(this,arguments);this.dragHandler&&(this.dragHandler.destroy(),this.dragHandler=\n +null)},setMap:function(a){OpenLayers.Handler.prototype.setMap.apply(this,arguments);this.dragHandler&&this.dragHandler.setMap(a)},startBox:function(){this.callback("start",[]);this.zoomBox=OpenLayers.Util.createDiv("zoomBox",{x:-9999,y:-9999});this.zoomBox.className=this.boxDivClassName;this.zoomBox.style.zIndex=this.map.Z_INDEX_BASE.Popup-1;this.map.viewPortDiv.appendChild(this.zoomBox);OpenLayers.Element.addClass(this.map.viewPortDiv,"olDrawBox")},moveBox:function(a){var b=this.dragHandler.start.x,\n +c=this.dragHandler.start.y,d=Math.abs(b-a.x),e=Math.abs(c-a.y),f=this.getBoxOffsets();this.zoomBox.style.width=d+f.width+1+"px";this.zoomBox.style.height=e+f.height+1+"px";this.zoomBox.style.left=(a.x<b?b-d-f.left:b-f.left)+"px";this.zoomBox.style.top=(a.y<c?c-e-f.top:c-f.top)+"px"},endBox:function(a){var b;if(5<Math.abs(this.dragHandler.start.x-a.x)||5<Math.abs(this.dragHandler.start.y-a.y)){var c=this.dragHandler.start;b=Math.min(c.y,a.y);var d=Math.max(c.y,a.y),e=Math.min(c.x,a.x),a=Math.max(c.x,\n +a.x);b=new OpenLayers.Bounds(e,d,a,b)}else b=this.dragHandler.start.clone();this.removeBox();this.callback("done",[b])},removeBox:function(){this.map.viewPortDiv.removeChild(this.zoomBox);this.boxOffsets=this.zoomBox=null;OpenLayers.Element.removeClass(this.map.viewPortDiv,"olDrawBox")},activate:function(){return OpenLayers.Handler.prototype.activate.apply(this,arguments)?(this.dragHandler.activate(),!0):!1},deactivate:function(){return OpenLayers.Handler.prototype.deactivate.apply(this,arguments)?\n +(this.dragHandler.deactivate()&&this.zoomBox&&this.removeBox(),!0):!1},getBoxOffsets:function(){if(!this.boxOffsets){var a=document.createElement("div");a.style.position="absolute";a.style.border="1px solid black";a.style.width="3px";document.body.appendChild(a);var b=3==a.clientWidth;document.body.removeChild(a);var a=parseInt(OpenLayers.Element.getStyle(this.zoomBox,"border-left-width")),c=parseInt(OpenLayers.Element.getStyle(this.zoomBox,"border-right-width")),d=parseInt(OpenLayers.Element.getStyle(this.zoomBox,\n +"border-top-width")),e=parseInt(OpenLayers.Element.getStyle(this.zoomBox,"border-bottom-width"));this.boxOffsets={left:a,right:c,top:d,bottom:e,width:!1===b?a+c:0,height:!1===b?d+e:0}}return this.boxOffsets},CLASS_NAME:"OpenLayers.Handler.Box"});OpenLayers.Control.ZoomBox=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_TOOL,out:!1,keyMask:null,alwaysZoom:!1,draw:function(){this.handler=new OpenLayers.Handler.Box(this,{done:this.zoomBox},{keyMask:this.keyMask})},zoomBox:function(a){if(a instanceof OpenLayers.Bounds){var b;if(this.out){b=Math.abs(a.right-a.left);var c=Math.abs(a.top-a.bottom);b=Math.min(this.map.size.h/c,this.map.size.w/b);var c=this.map.getExtent(),d=this.map.getLonLatFromPixel(a.getCenterPixel()),a=d.lon-\n +c.getWidth()/2*b,e=d.lon+c.getWidth()/2*b,f=d.lat-c.getHeight()/2*b;b=d.lat+c.getHeight()/2*b;b=new OpenLayers.Bounds(a,f,e,b)}else b=this.map.getLonLatFromPixel({x:a.left,y:a.bottom}),c=this.map.getLonLatFromPixel({x:a.right,y:a.top}),b=new OpenLayers.Bounds(b.lon,b.lat,c.lon,c.lat);c=this.map.getZoom();this.map.zoomToExtent(b);c==this.map.getZoom()&&!0==this.alwaysZoom&&this.map.zoomTo(c+(this.out?-1:1))}else this.out?this.map.setCenter(this.map.getLonLatFromPixel(a),this.map.getZoom()-1):this.map.setCenter(this.map.getLonLatFromPixel(a),\n +this.map.getZoom()+1)},CLASS_NAME:"OpenLayers.Control.ZoomBox"});OpenLayers.Control.DragPan=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_TOOL,panned:!1,interval:1,documentDrag:!1,kinetic:null,enableKinetic:!1,kineticInterval:10,draw:function(){if(this.enableKinetic){var a={interval:this.kineticInterval};"object"===typeof this.enableKinetic&&(a=OpenLayers.Util.extend(a,this.enableKinetic));this.kinetic=new OpenLayers.Kinetic(a)}this.handler=new OpenLayers.Handler.Drag(this,{move:this.panMap,done:this.panMapDone,down:this.panMapStart},{interval:this.interval,\n +documentDrag:this.documentDrag})},panMapStart:function(){this.kinetic&&this.kinetic.begin()},panMap:function(a){this.kinetic&&this.kinetic.update(a);this.panned=!0;this.map.pan(this.handler.last.x-a.x,this.handler.last.y-a.y,{dragging:!0,animate:!1})},panMapDone:function(a){if(this.panned){var b=null;this.kinetic&&(b=this.kinetic.end(a));this.map.pan(this.handler.last.x-a.x,this.handler.last.y-a.y,{dragging:!!b,animate:!1});if(b){var c=this;this.kinetic.move(b,function(a,b,f){c.map.pan(a,b,{dragging:!f,\n +animate:!1})})}this.panned=!1}},CLASS_NAME:"OpenLayers.Control.DragPan"});OpenLayers.Handler.Click=OpenLayers.Class(OpenLayers.Handler,{delay:300,single:!0,"double":!1,pixelTolerance:0,dblclickTolerance:13,stopSingle:!1,stopDouble:!1,timerId:null,touch:!1,down:null,last:null,first:null,rightclickTimerId:null,touchstart:function(a){this.touch||(this.unregisterMouseListeners(),this.touch=!0);this.down=this.getEventInfo(a);this.last=this.getEventInfo(a);return!0},touchmove:function(a){this.last=this.getEventInfo(a);return!0},touchend:function(a){this.down&&(a.xy=this.last.xy,\n +a.lastTouches=this.last.touches,this.handleSingle(a),this.down=null);return!0},unregisterMouseListeners:function(){this.map.events.un({mousedown:this.mousedown,mouseup:this.mouseup,click:this.click,dblclick:this.dblclick,scope:this})},mousedown:function(a){this.down=this.getEventInfo(a);this.last=this.getEventInfo(a);return!0},mouseup:function(a){var b=!0;this.checkModifiers(a)&&(this.control.handleRightClicks&&OpenLayers.Event.isRightClick(a))&&(b=this.rightclick(a));return b},rightclick:function(a){if(this.passesTolerance(a)){if(null!=\n +this.rightclickTimerId)return this.clearTimer(),this.callback("dblrightclick",[a]),!this.stopDouble;a=this["double"]?OpenLayers.Util.extend({},a):this.callback("rightclick",[a]);a=OpenLayers.Function.bind(this.delayedRightCall,this,a);this.rightclickTimerId=window.setTimeout(a,this.delay)}return!this.stopSingle},delayedRightCall:function(a){this.rightclickTimerId=null;a&&this.callback("rightclick",[a])},click:function(a){this.last||(this.last=this.getEventInfo(a));this.handleSingle(a);return!this.stopSingle},\n +dblclick:function(a){this.handleDouble(a);return!this.stopDouble},handleDouble:function(a){this.passesDblclickTolerance(a)&&(this["double"]&&this.callback("dblclick",[a]),this.clearTimer())},handleSingle:function(a){this.passesTolerance(a)&&(null!=this.timerId?(this.last.touches&&1===this.last.touches.length&&(this["double"]&&OpenLayers.Event.stop(a),this.handleDouble(a)),(!this.last.touches||2!==this.last.touches.length)&&this.clearTimer()):(this.first=this.getEventInfo(a),this.queuePotentialClick(this.single?\n +OpenLayers.Util.extend({},a):null)))},queuePotentialClick:function(a){this.timerId=window.setTimeout(OpenLayers.Function.bind(this.delayedCall,this,a),this.delay)},passesTolerance:function(a){var b=!0;if(null!=this.pixelTolerance&&this.down&&this.down.xy&&(b=this.pixelTolerance>=this.down.xy.distanceTo(a.xy))&&this.touch&&this.down.touches.length===this.last.touches.length)for(var a=0,c=this.down.touches.length;a<c;++a)if(this.getTouchDistance(this.down.touches[a],this.last.touches[a])>this.pixelTolerance){b=\n +!1;break}return b},getTouchDistance:function(a,b){return Math.sqrt(Math.pow(a.clientX-b.clientX,2)+Math.pow(a.clientY-b.clientY,2))},passesDblclickTolerance:function(){var a=!0;this.down&&this.first&&(a=this.down.xy.distanceTo(this.first.xy)<=this.dblclickTolerance);return a},clearTimer:function(){null!=this.timerId&&(window.clearTimeout(this.timerId),this.timerId=null);null!=this.rightclickTimerId&&(window.clearTimeout(this.rightclickTimerId),this.rightclickTimerId=null)},delayedCall:function(a){this.timerId=\n +null;a&&this.callback("click",[a])},getEventInfo:function(a){var b;if(a.touches){var c=a.touches.length;b=Array(c);for(var d,e=0;e<c;e++)d=a.touches[e],b[e]={clientX:d.clientX,clientY:d.clientY}}return{xy:a.xy,touches:b}},deactivate:function(){var a=!1;OpenLayers.Handler.prototype.deactivate.apply(this,arguments)&&(this.clearTimer(),this.last=this.first=this.down=null,this.touch=!1,a=!0);return a},CLASS_NAME:"OpenLayers.Handler.Click"});OpenLayers.Control.Navigation=OpenLayers.Class(OpenLayers.Control,{dragPan:null,dragPanOptions:null,pinchZoom:null,pinchZoomOptions:null,documentDrag:!1,zoomBox:null,zoomBoxEnabled:!0,zoomWheelEnabled:!0,mouseWheelOptions:null,handleRightClicks:!1,zoomBoxKeyMask:OpenLayers.Handler.MOD_SHIFT,autoActivate:!0,initialize:function(a){this.handlers={};OpenLayers.Control.prototype.initialize.apply(this,arguments)},destroy:function(){this.deactivate();this.dragPan&&this.dragPan.destroy();this.dragPan=null;\n +this.zoomBox&&this.zoomBox.destroy();this.zoomBox=null;this.pinchZoom&&this.pinchZoom.destroy();this.pinchZoom=null;OpenLayers.Control.prototype.destroy.apply(this,arguments)},activate:function(){this.dragPan.activate();this.zoomWheelEnabled&&this.handlers.wheel.activate();this.handlers.click.activate();this.zoomBoxEnabled&&this.zoomBox.activate();this.pinchZoom&&this.pinchZoom.activate();return OpenLayers.Control.prototype.activate.apply(this,arguments)},deactivate:function(){this.pinchZoom&&this.pinchZoom.deactivate();\n +this.zoomBox.deactivate();this.dragPan.deactivate();this.handlers.click.deactivate();this.handlers.wheel.deactivate();return OpenLayers.Control.prototype.deactivate.apply(this,arguments)},draw:function(){this.handleRightClicks&&(this.map.viewPortDiv.oncontextmenu=OpenLayers.Function.False);this.handlers.click=new OpenLayers.Handler.Click(this,{click:this.defaultClick,dblclick:this.defaultDblClick,dblrightclick:this.defaultDblRightClick},{"double":!0,stopDouble:!0});this.dragPan=new OpenLayers.Control.DragPan(OpenLayers.Util.extend({map:this.map,\n +documentDrag:this.documentDrag},this.dragPanOptions));this.zoomBox=new OpenLayers.Control.ZoomBox({map:this.map,keyMask:this.zoomBoxKeyMask});this.dragPan.draw();this.zoomBox.draw();this.handlers.wheel=new OpenLayers.Handler.MouseWheel(this,{up:this.wheelUp,down:this.wheelDown},this.mouseWheelOptions);OpenLayers.Control.PinchZoom&&(this.pinchZoom=new OpenLayers.Control.PinchZoom(OpenLayers.Util.extend({map:this.map},this.pinchZoomOptions)))},defaultClick:function(a){a.lastTouches&&2==a.lastTouches.length&&\n +this.map.zoomOut()},defaultDblClick:function(a){this.map.setCenter(this.map.getLonLatFromViewPortPx(a.xy),this.map.zoom+1)},defaultDblRightClick:function(a){this.map.setCenter(this.map.getLonLatFromViewPortPx(a.xy),this.map.zoom-1)},wheelChange:function(a,b){var c=this.map.getZoom(),d=this.map.getZoom()+Math.round(b),d=Math.max(d,0),d=Math.min(d,this.map.getNumZoomLevels());if(d!==c){var e=this.map.getSize(),c=e.w/2-a.xy.x,e=a.xy.y-e.h/2,f=this.map.baseLayer.getResolutionForZoom(d),g=this.map.getLonLatFromPixel(a.xy);\n +this.map.setCenter(new OpenLayers.LonLat(g.lon+c*f,g.lat+e*f),d)}},wheelUp:function(a,b){this.wheelChange(a,b||1)},wheelDown:function(a,b){this.wheelChange(a,b||-1)},disableZoomBox:function(){this.zoomBoxEnabled=!1;this.zoomBox.deactivate()},enableZoomBox:function(){this.zoomBoxEnabled=!0;this.active&&this.zoomBox.activate()},disableZoomWheel:function(){this.zoomWheelEnabled=!1;this.handlers.wheel.deactivate()},enableZoomWheel:function(){this.zoomWheelEnabled=!0;this.active&&this.handlers.wheel.activate()},\n +CLASS_NAME:"OpenLayers.Control.Navigation"});OpenLayers.Control.DrawFeature=OpenLayers.Class(OpenLayers.Control,{layer:null,callbacks:null,multi:!1,featureAdded:function(){},handlerOptions:null,initialize:function(a,b,c){OpenLayers.Control.prototype.initialize.apply(this,[c]);this.callbacks=OpenLayers.Util.extend({done:this.drawFeature,modify:function(a,b){this.layer.events.triggerEvent("sketchmodified",{vertex:a,feature:b})},create:function(a,b){this.layer.events.triggerEvent("sketchstarted",{vertex:a,feature:b})}},this.callbacks);this.layer=\n +a;this.handlerOptions=this.handlerOptions||{};this.handlerOptions.layerOptions=OpenLayers.Util.applyDefaults(this.handlerOptions.layerOptions,{renderers:a.renderers,rendererOptions:a.rendererOptions});"multi"in this.handlerOptions||(this.handlerOptions.multi=this.multi);if(a=this.layer.styleMap&&this.layer.styleMap.styles.temporary)this.handlerOptions.layerOptions=OpenLayers.Util.applyDefaults(this.handlerOptions.layerOptions,{styleMap:new OpenLayers.StyleMap({"default":a})});this.handler=new b(this,\n +this.callbacks,this.handlerOptions)},drawFeature:function(a){a=new OpenLayers.Feature.Vector(a);!1!==this.layer.events.triggerEvent("sketchcomplete",{feature:a})&&(a.state=OpenLayers.State.INSERT,this.layer.addFeatures([a]),this.featureAdded(a),this.events.triggerEvent("featureadded",{feature:a}))},insertXY:function(a,b){this.handler&&this.handler.line&&this.handler.insertXY(a,b)},insertDeltaXY:function(a,b){this.handler&&this.handler.line&&this.handler.insertDeltaXY(a,b)},insertDirectionLength:function(a,\n +b){this.handler&&this.handler.line&&this.handler.insertDirectionLength(a,b)},insertDeflectionLength:function(a,b){this.handler&&this.handler.line&&this.handler.insertDeflectionLength(a,b)},undo:function(){return this.handler.undo&&this.handler.undo()},redo:function(){return this.handler.redo&&this.handler.redo()},finishSketch:function(){this.handler.finishGeometry()},cancel:function(){this.handler.cancel()},CLASS_NAME:"OpenLayers.Control.DrawFeature"});OpenLayers.Handler.Polygon=OpenLayers.Class(OpenLayers.Handler.Path,{holeModifier:null,drawingHole:!1,polygon:null,createFeature:function(a){a=this.layer.getLonLatFromViewPortPx(a);a=new OpenLayers.Geometry.Point(a.lon,a.lat);this.point=new OpenLayers.Feature.Vector(a);this.line=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.LinearRing([this.point.geometry]));this.polygon=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon([this.line.geometry]));this.callback("create",[this.point.geometry,\n +this.getSketch()]);this.point.geometry.clearBounds();this.layer.addFeatures([this.polygon,this.point],{silent:!0})},addPoint:function(a){if(!this.drawingHole&&this.holeModifier&&this.evt&&this.evt[this.holeModifier])for(var b=this.point.geometry,c=this.control.layer.features,d,e=c.length-1;0<=e;--e)if(d=c[e].geometry,(d instanceof OpenLayers.Geometry.Polygon||d instanceof OpenLayers.Geometry.MultiPolygon)&&d.intersects(b)){b=c[e];this.control.layer.removeFeatures([b],{silent:!0});this.control.layer.events.registerPriority("sketchcomplete",\n +this,this.finalizeInteriorRing);this.control.layer.events.registerPriority("sketchmodified",this,this.enforceTopology);b.geometry.addComponent(this.line.geometry);this.polygon=b;this.drawingHole=!0;break}OpenLayers.Handler.Path.prototype.addPoint.apply(this,arguments)},getCurrentPointIndex:function(){return this.line.geometry.components.length-2},enforceTopology:function(a){var a=a.vertex,b=this.line.geometry.components;this.polygon.geometry.intersects(a)||(b=b[b.length-3],a.x=b.x,a.y=b.y)},finishGeometry:function(){this.line.geometry.removeComponent(this.line.geometry.components[this.line.geometry.components.length-\n +2]);this.removePoint();this.finalize()},finalizeInteriorRing:function(){var a=this.line.geometry,b=0!==a.getArea();if(b){for(var c=this.polygon.geometry.component + +]]></string> </value> + </item> + <item> + <key> <string>next</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAo=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="10" aka="AAAAAAAAAAo="> + <pickle> + <global name="Pdata" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +s,d=c.length-2;0<=d;--d)if(a.intersects(c[d])){b=!1;break}if(b){d=c.length-2;a:for(;0<d;--d)for(var e=c[d].components,f=0,g=e.length;f<g;++f)if(a.containsPoint(e[f])){b=!1;break a}}}b?this.polygon.state!==OpenLayers.State.INSERT&&(this.polygon.state=OpenLayers.State.UPDATE):this.polygon.geometry.removeComponent(a);this.restoreFeature();return!1},\n +cancel:function(){this.drawingHole&&(this.polygon.geometry.removeComponent(this.line.geometry),this.restoreFeature(!0));return OpenLayers.Handler.Path.prototype.cancel.apply(this,arguments)},restoreFeature:function(a){this.control.layer.events.unregister("sketchcomplete",this,this.finalizeInteriorRing);this.control.layer.events.unregister("sketchmodified",this,this.enforceTopology);this.layer.removeFeatures([this.polygon],{silent:!0});this.control.layer.addFeatures([this.polygon],{silent:!0});this.drawingHole=\n +!1;a||this.control.layer.events.triggerEvent("sketchcomplete",{feature:this.polygon})},destroyFeature:function(a){OpenLayers.Handler.Path.prototype.destroyFeature.call(this,a);this.polygon=null},drawFeature:function(){this.layer.drawFeature(this.polygon,this.style);this.layer.drawFeature(this.point,this.style)},getSketch:function(){return this.polygon},getGeometry:function(){var a=this.polygon&&this.polygon.geometry;a&&this.multi&&(a=new OpenLayers.Geometry.MultiPolygon([a]));return a},CLASS_NAME:"OpenLayers.Handler.Polygon"});OpenLayers.Control.EditingToolbar=OpenLayers.Class(OpenLayers.Control.Panel,{citeCompliant:!1,initialize:function(a,b){OpenLayers.Control.Panel.prototype.initialize.apply(this,[b]);this.addControls([new OpenLayers.Control.Navigation]);this.addControls([new OpenLayers.Control.DrawFeature(a,OpenLayers.Handler.Point,{displayClass:"olControlDrawFeaturePoint",handlerOptions:{citeCompliant:this.citeCompliant}}),new OpenLayers.Control.DrawFeature(a,OpenLayers.Handler.Path,{displayClass:"olControlDrawFeaturePath",\n +handlerOptions:{citeCompliant:this.citeCompliant}}),new OpenLayers.Control.DrawFeature(a,OpenLayers.Handler.Polygon,{displayClass:"olControlDrawFeaturePolygon",handlerOptions:{citeCompliant:this.citeCompliant}})])},draw:function(){var a=OpenLayers.Control.Panel.prototype.draw.apply(this,arguments);null===this.defaultControl&&(this.defaultControl=this.controls[0]);return a},CLASS_NAME:"OpenLayers.Control.EditingToolbar"});OpenLayers.Strategy.BBOX=OpenLayers.Class(OpenLayers.Strategy,{bounds:null,resolution:null,ratio:2,resFactor:null,response:null,activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);a&&(this.layer.events.on({moveend:this.update,refresh:this.update,visibilitychanged:this.update,scope:this}),this.update());return a},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);a&&this.layer.events.un({moveend:this.update,refresh:this.update,visibilitychanged:this.update,\n +scope:this});return a},update:function(a){var b=this.getMapBounds();if(null!==b&&(a&&a.force||this.layer.visibility&&this.layer.calculateInRange()&&this.invalidBounds(b)))this.calculateBounds(b),this.resolution=this.layer.map.getResolution(),this.triggerRead(a)},getMapBounds:function(){if(null===this.layer.map)return null;var a=this.layer.map.getExtent();a&&!this.layer.projection.equals(this.layer.map.getProjectionObject())&&(a=a.clone().transform(this.layer.map.getProjectionObject(),this.layer.projection));\n +return a},invalidBounds:function(a){a||(a=this.getMapBounds());a=!this.bounds||!this.bounds.containsBounds(a);!a&&this.resFactor&&(a=this.resolution/this.layer.map.getResolution(),a=a>=this.resFactor||a<=1/this.resFactor);return a},calculateBounds:function(a){a||(a=this.getMapBounds());var b=a.getCenterLonLat(),c=a.getWidth()*this.ratio,a=a.getHeight()*this.ratio;this.bounds=new OpenLayers.Bounds(b.lon-c/2,b.lat-a/2,b.lon+c/2,b.lat+a/2)},triggerRead:function(a){this.response&&!(a&&!0===a.noAbort)&&\n +(this.layer.protocol.abort(this.response),this.layer.events.triggerEvent("loadend"));this.layer.events.triggerEvent("loadstart");this.response=this.layer.protocol.read(OpenLayers.Util.applyDefaults({filter:this.createFilter(),callback:this.merge,scope:this},a))},createFilter:function(){var a=new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.BBOX,value:this.bounds,projection:this.layer.projection});this.layer.filter&&(a=new OpenLayers.Filter.Logical({type:OpenLayers.Filter.Logical.AND,\n +filters:[this.layer.filter,a]}));return a},merge:function(a){this.layer.destroyFeatures();if((a=a.features)&&0<a.length){var b=this.layer.projection,c=this.layer.map.getProjectionObject();if(!c.equals(b))for(var d,e=0,f=a.length;e<f;++e)(d=a[e].geometry)&&d.transform(b,c);this.layer.addFeatures(a)}this.response=null;this.layer.events.triggerEvent("loadend")},CLASS_NAME:"OpenLayers.Strategy.BBOX"});OpenLayers.Layer.WorldWind=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{},isBaseLayer:!0,lzd:null,zoomLevels:null,initialize:function(a,b,c,d,e,f){this.lzd=c;this.zoomLevels=d;c=[];c.push(a,b,e,f);OpenLayers.Layer.Grid.prototype.initialize.apply(this,c);this.params=OpenLayers.Util.applyDefaults(this.params,this.DEFAULT_PARAMS)},getZoom:function(){var a=this.map.getZoom();this.map.getMaxExtent();return a-=Math.log(this.maxResolution/(this.lzd/512))/Math.log(2)},getURL:function(a){var a=\n +this.adjustBounds(a),b=this.getZoom(),c=this.map.getMaxExtent(),d=this.lzd/Math.pow(2,this.getZoom()),e=Math.floor((a.left-c.left)/d),a=Math.floor((a.bottom-c.bottom)/d);return this.map.getResolution()<=this.lzd/512&&this.getZoom()<=this.zoomLevels?this.getFullRequestString({L:b,X:e,Y:a}):OpenLayers.Util.getImageLocation("blank.gif")},CLASS_NAME:"OpenLayers.Layer.WorldWind"});OpenLayers.Protocol.CSW=function(a){var a=OpenLayers.Util.applyDefaults(a,OpenLayers.Protocol.CSW.DEFAULTS),b=OpenLayers.Protocol.CSW["v"+a.version.replace(/\\./g,"_")];if(!b)throw"Unsupported CSW version: "+a.version;return new b(a)};OpenLayers.Protocol.CSW.DEFAULTS={version:"2.0.2"};OpenLayers.Format.WMTSCapabilities=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.0.0",yx:{"urn:ogc:def:crs:EPSG::4326":!0},createLayer:function(a,b){var c,d={layer:!0,matrixSet:!0},e;for(e in d)if(!(e in b))throw Error("Missing property \'"+e+"\' in layer configuration.");d=a.contents;e=d.tileMatrixSets[b.matrixSet];for(var f,g=0,h=d.layers.length;g<h;++g)if(d.layers[g].identifier===b.layer){f=d.layers[g];break}if(f&&e){for(var i,g=0,h=f.styles.length;g<h&&!(i=f.styles[g],i.isDefault);++g);\n +c=new OpenLayers.Layer.WMTS(OpenLayers.Util.applyDefaults(b,{url:"REST"===b.requestEncoding&&f.resourceUrl?f.resourceUrl.tile.template:a.operationsMetadata.GetTile.dcp.http.get[0].url,name:f.title,style:i.identifier,matrixIds:e.matrixIds,tileFullExtent:e.bounds}))}return c},CLASS_NAME:"OpenLayers.Format.WMTSCapabilities"});OpenLayers.Layer.Google.v3={DEFAULTS:{sphericalMercator:!0,projection:"EPSG:900913"},animationEnabled:!0,loadMapObject:function(){this.type||(this.type=google.maps.MapTypeId.ROADMAP);var a,b=OpenLayers.Layer.Google.cache[this.map.id];b?(a=b.mapObject,++b.count):(b=this.map.viewPortDiv,a=document.createElement("div"),a.id=this.map.id+"_GMapContainer",a.style.position="absolute",a.style.width="100%",a.style.height="100%",b.appendChild(a),b=this.map.getCenter(),a=new google.maps.Map(a,{center:b?new google.maps.LatLng(b.lat,\n +b.lon):new google.maps.LatLng(0,0),zoom:this.map.getZoom()||0,mapTypeId:this.type,disableDefaultUI:!0,keyboardShortcuts:!1,draggable:!1,disableDoubleClickZoom:!0,scrollwheel:!1,streetViewControl:!1}),b={mapObject:a,count:1},OpenLayers.Layer.Google.cache[this.map.id]=b,this.repositionListener=google.maps.event.addListenerOnce(a,"center_changed",OpenLayers.Function.bind(this.repositionMapElements,this)));this.mapObject=a;this.setGMapVisibility(this.visibility)},repositionMapElements:function(){google.maps.event.trigger(this.mapObject,\n +"resize");var a=this.mapObject.getDiv().firstChild;if(!a||3>a.childNodes.length)return this.repositionTimer=window.setTimeout(OpenLayers.Function.bind(this.repositionMapElements,this),250),!1;for(var b=OpenLayers.Layer.Google.cache[this.map.id],c=this.map.viewPortDiv,d=a.children.length-1;0<=d;--d){if(1000001==a.children[d].style.zIndex){var e=a.children[d];c.appendChild(e);e.style.zIndex="1100";e.style.bottom="";e.className="olLayerGoogleCopyright olLayerGoogleV3";e.style.display="";b.termsOfUse=\n +e}1E6==a.children[d].style.zIndex&&(e=a.children[d],c.appendChild(e),e.style.zIndex="1100",e.style.bottom="",e.className="olLayerGooglePoweredBy olLayerGoogleV3 gmnoprint",e.style.display="",b.poweredBy=e);10000002==a.children[d].style.zIndex&&c.appendChild(a.children[d])}this.setGMapVisibility(this.visibility)},onMapResize:function(){if(this.visibility)google.maps.event.trigger(this.mapObject,"resize");else{var a=OpenLayers.Layer.Google.cache[this.map.id];if(!a.resized){var b=this;google.maps.event.addListenerOnce(this.mapObject,\n +"tilesloaded",function(){google.maps.event.trigger(b.mapObject,"resize");b.moveTo(b.map.getCenter(),b.map.getZoom());delete a.resized})}a.resized=!0}},setGMapVisibility:function(a){var b=OpenLayers.Layer.Google.cache[this.map.id];if(b){for(var c=this.type,d=this.map.layers,e,f=d.length-1;0<=f;--f)if(e=d[f],e instanceof OpenLayers.Layer.Google&&!0===e.visibility&&!0===e.inRange){c=e.type;a=!0;break}d=this.mapObject.getDiv();!0===a?(this.mapObject.setMapTypeId(c),d.style.left="",b.termsOfUse&&b.termsOfUse.style&&\n +(b.termsOfUse.style.left="",b.termsOfUse.style.display="",b.poweredBy.style.display=""),b.displayed=this.id):(delete b.displayed,d.style.left="-9999px",b.termsOfUse&&b.termsOfUse.style&&(b.termsOfUse.style.display="none",b.termsOfUse.style.left="-9999px",b.poweredBy.style.display="none"))}},getMapContainer:function(){return this.mapObject.getDiv()},getMapObjectBoundsFromOLBounds:function(a){var b=null;null!=a&&(b=this.sphericalMercator?this.inverseMercator(a.bottom,a.left):new OpenLayers.LonLat(a.bottom,\n +a.left),a=this.sphericalMercator?this.inverseMercator(a.top,a.right):new OpenLayers.LonLat(a.top,a.right),b=new google.maps.LatLngBounds(new google.maps.LatLng(b.lat,b.lon),new google.maps.LatLng(a.lat,a.lon)));return b},getMapObjectLonLatFromMapObjectPixel:function(a){var b=this.map.getSize(),c=this.getLongitudeFromMapObjectLonLat(this.mapObject.center),d=this.getLatitudeFromMapObjectLonLat(this.mapObject.center),e=this.map.getResolution(),a=new OpenLayers.LonLat(c+(a.x-b.w/2)*e,d-(a.y-b.h/2)*e);\n +this.wrapDateLine&&(a=a.wrapDateLine(this.maxExtent));return this.getMapObjectLonLatFromLonLat(a.lon,a.lat)},getMapObjectPixelFromMapObjectLonLat:function(a){var b=this.getLongitudeFromMapObjectLonLat(a),a=this.getLatitudeFromMapObjectLonLat(a),c=this.map.getResolution(),d=this.map.getExtent();return this.getMapObjectPixelFromXY(1/c*(b-d.left),1/c*(d.top-a))},setMapObjectCenter:function(a,b){if(!1===this.animationEnabled&&b!=this.mapObject.zoom){var c=this.getMapContainer();google.maps.event.addListenerOnce(this.mapObject,\n +"idle",function(){c.style.visibility=""});c.style.visibility="hidden"}this.mapObject.setOptions({center:a,zoom:b})},getMapObjectZoomFromMapObjectBounds:function(a){return this.mapObject.getBoundsZoomLevel(a)},getMapObjectLonLatFromLonLat:function(a,b){var c;this.sphericalMercator?(c=this.inverseMercator(a,b),c=new google.maps.LatLng(c.lat,c.lon)):c=new google.maps.LatLng(b,a);return c},getMapObjectPixelFromXY:function(a,b){return new google.maps.Point(a,b)},destroy:function(){this.repositionListener&&\n +google.maps.event.removeListener(this.repositionListener);this.repositionTimer&&window.clearTimeout(this.repositionTimer);OpenLayers.Layer.Google.prototype.destroy.apply(this,arguments)}};OpenLayers.Format.WPSDescribeProcess=OpenLayers.Class(OpenLayers.Format.XML,{VERSION:"1.0.0",namespaces:{wps:"http://www.opengis.net/wps/1.0.0",ows:"http://www.opengis.net/ows/1.1",xsi:"http://www.w3.org/2001/XMLSchema-instance"},schemaLocation:"http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd",defaultPrefix:"wps",regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,\n +[a]));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.readNode(a,b);return b},readers:{wps:{ProcessDescriptions:function(a,b){b.processDescriptions={};this.readChildNodes(a,b.processDescriptions)},ProcessDescription:function(a,b){var c={processVersion:this.getAttributeNS(a,this.namespaces.wps,"processVersion"),statusSupported:"true"===a.getAttribute("statusSupported"),storeSupported:"true"===a.getAttribute("storeSupported")};this.readChildNodes(a,c);b[c.identifier]=c},DataInputs:function(a,\n +b){b.dataInputs=[];this.readChildNodes(a,b.dataInputs)},ProcessOutputs:function(a,b){b.processOutputs=[];this.readChildNodes(a,b.processOutputs)},Output:function(a,b){var c={};this.readChildNodes(a,c);b.push(c)},ComplexOutput:function(a,b){b.complexOutput={};this.readChildNodes(a,b.complexOutput)},Input:function(a,b){var c={maxOccurs:parseInt(a.getAttribute("maxOccurs")),minOccurs:parseInt(a.getAttribute("minOccurs"))};this.readChildNodes(a,c);b.push(c)},BoundingBoxData:function(a,b){b.boundingBoxData=\n +{};this.readChildNodes(a,b.boundingBoxData)},CRS:function(a,b){b.CRSs||(b.CRSs={});b.CRSs[this.getChildValue(a)]=!0},LiteralData:function(a,b){b.literalData={};this.readChildNodes(a,b.literalData)},ComplexData:function(a,b){b.complexData={};this.readChildNodes(a,b.complexData)},Default:function(a,b){b["default"]={};this.readChildNodes(a,b["default"])},Supported:function(a,b){b.supported={};this.readChildNodes(a,b.supported)},Format:function(a,b){var c={};this.readChildNodes(a,c);b.formats||(b.formats=\n +{});b.formats[c.mimeType]=!0},MimeType:function(a,b){b.mimeType=this.getChildValue(a)}},ows:OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers.ows},CLASS_NAME:"OpenLayers.Format.WPSDescribeProcess"});OpenLayers.Format.CSWGetRecords.v2_0_2=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{csw:"http://www.opengis.net/cat/csw/2.0.2",dc:"http://purl.org/dc/elements/1.1/",dct:"http://purl.org/dc/terms/",gmd:"http://www.isotc211.org/2005/gmd",geonet:"http://www.fao.org/geonetwork",ogc:"http://www.opengis.net/ogc",ows:"http://www.opengis.net/ows",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},defaultPrefix:"csw",version:"2.0.2",schemaLocation:"http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd",\n +requestId:null,resultType:null,outputFormat:null,outputSchema:null,startPosition:null,maxRecords:null,DistributedSearch:null,ResponseHandler:null,Query:null,regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.readNode(a,b);return b},\n +readers:{csw:{GetRecordsResponse:function(a,b){b.records=[];this.readChildNodes(a,b);var c=this.getAttributeNS(a,"","version");""!=c&&(b.version=c)},RequestId:function(a,b){b.RequestId=this.getChildValue(a)},SearchStatus:function(a,b){b.SearchStatus={};var c=this.getAttributeNS(a,"","timestamp");""!=c&&(b.SearchStatus.timestamp=c)},SearchResults:function(a,b){this.readChildNodes(a,b);for(var c=a.attributes,d={},e=0,f=c.length;e<f;++e)d[c[e].name]="numberOfRecordsMatched"==c[e].name||"numberOfRecordsReturned"==\n +c[e].name||"nextRecord"==c[e].name?parseInt(c[e].nodeValue):c[e].nodeValue;b.SearchResults=d},SummaryRecord:function(a,b){var c={type:"SummaryRecord"};this.readChildNodes(a,c);b.records.push(c)},BriefRecord:function(a,b){var c={type:"BriefRecord"};this.readChildNodes(a,c);b.records.push(c)},DCMIRecord:function(a,b){var c={type:"DCMIRecord"};this.readChildNodes(a,c);b.records.push(c)},Record:function(a,b){var c={type:"Record"};this.readChildNodes(a,c);b.records.push(c)},"*":function(a,b){var c=a.localName||\n +a.nodeName.split(":").pop();b[c]=this.getChildValue(a)}},geonet:{info:function(a,b){var c={};this.readChildNodes(a,c);b.gninfo=c}},dc:{"*":function(a,b){var c=a.localName||a.nodeName.split(":").pop();OpenLayers.Util.isArray(b[c])||(b[c]=[]);for(var d={},e=a.attributes,f=0,g=e.length;f<g;++f)d[e[f].name]=e[f].nodeValue;d.value=this.getChildValue(a);""!=d.value&&b[c].push(d)}},dct:{"*":function(a,b){var c=a.localName||a.nodeName.split(":").pop();OpenLayers.Util.isArray(b[c])||(b[c]=[]);b[c].push(this.getChildValue(a))}},\n +ows:OpenLayers.Util.applyDefaults({BoundingBox:function(a,b){b.bounds&&(b.BoundingBox=[{crs:b.projection,value:[b.bounds.left,b.bounds.bottom,b.bounds.right,b.bounds.top]}],delete b.projection,delete b.bounds);OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers.ows.BoundingBox.apply(this,arguments)}},OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers.ows)},write:function(a){a=this.writeNode("csw:GetRecords",a);a.setAttribute("xmlns:gmd",this.namespaces.gmd);return OpenLayers.Format.XML.prototype.write.apply(this,\n +[a])},writers:{csw:{GetRecords:function(a){a||(a={});var b=this.createElementNSPlus("csw:GetRecords",{attributes:{service:"CSW",version:this.version,requestId:a.requestId||this.requestId,resultType:a.resultType||this.resultType,outputFormat:a.outputFormat||this.outputFormat,outputSchema:a.outputSchema||this.outputSchema,startPosition:a.startPosition||this.startPosition,maxRecords:a.maxRecords||this.maxRecords}});if(a.DistributedSearch||this.DistributedSearch)this.writeNode("csw:DistributedSearch",\n +a.DistributedSearch||this.DistributedSearch,b);var c=a.ResponseHandler||this.ResponseHandler;if(OpenLayers.Util.isArray(c)&&0<c.length)for(var d=0,e=c.length;d<e;d++)this.writeNode("csw:ResponseHandler",c[d],b);this.writeNode("Query",a.Query||this.Query,b);return b},DistributedSearch:function(a){return this.createElementNSPlus("csw:DistributedSearch",{attributes:{hopCount:a.hopCount}})},ResponseHandler:function(a){return this.createElementNSPlus("csw:ResponseHandler",{value:a.value})},Query:function(a){a||\n +(a={});var b=this.createElementNSPlus("csw:Query",{attributes:{typeNames:a.typeNames||"csw:Record"}}),c=a.ElementName;if(OpenLayers.Util.isArray(c)&&0<c.length)for(var d=0,e=c.length;d<e;d++)this.writeNode("csw:ElementName",c[d],b);else this.writeNode("csw:ElementSetName",a.ElementSetName||{value:"summary"},b);a.Constraint&&this.writeNode("csw:Constraint",a.Constraint,b);a.SortBy&&this.writeNode("ogc:SortBy",a.SortBy,b);return b},ElementName:function(a){return this.createElementNSPlus("csw:ElementName",\n +{value:a.value})},ElementSetName:function(a){return this.createElementNSPlus("csw:ElementSetName",{attributes:{typeNames:a.typeNames},value:a.value})},Constraint:function(a){var b=this.createElementNSPlus("csw:Constraint",{attributes:{version:a.version}});if(a.Filter){var c=new OpenLayers.Format.Filter({version:a.version});b.appendChild(c.write(a.Filter))}else a.CqlText&&(a=this.createElementNSPlus("CqlText",{value:a.CqlText.value}),b.appendChild(a));return b}},ogc:OpenLayers.Format.Filter.v1_1_0.prototype.writers.ogc},\n +CLASS_NAME:"OpenLayers.Format.CSWGetRecords.v2_0_2"});OpenLayers.Marker.Box=OpenLayers.Class(OpenLayers.Marker,{bounds:null,div:null,initialize:function(a,b,c){this.bounds=a;this.div=OpenLayers.Util.createDiv();this.div.style.overflow="hidden";this.events=new OpenLayers.Events(this,this.div);this.setBorder(b,c)},destroy:function(){this.div=this.bounds=null;OpenLayers.Marker.prototype.destroy.apply(this,arguments)},setBorder:function(a,b){a||(a="red");b||(b=2);this.div.style.border=b+"px solid "+a},draw:function(a,b){OpenLayers.Util.modifyDOMElement(this.div,\n +null,a,b);return this.div},onScreen:function(){var a=!1;this.map&&(a=this.map.getExtent().containsBounds(this.bounds,!0,!0));return a},display:function(a){this.div.style.display=a?"":"none"},CLASS_NAME:"OpenLayers.Marker.Box"});OpenLayers.Format.Text=OpenLayers.Class(OpenLayers.Format,{defaultStyle:null,extractStyles:!0,initialize:function(a){a=a||{};!1!==a.extractStyles&&(a.defaultStyle={externalGraphic:OpenLayers.Util.getImageLocation("marker.png"),graphicWidth:21,graphicHeight:25,graphicXOffset:-10.5,graphicYOffset:-12.5});OpenLayers.Format.prototype.initialize.apply(this,[a])},read:function(a){for(var a=a.split("\\n"),b,c=[],d=0;d<a.length-1;d++){var e=a[d].replace(/^\\s*/,"").replace(/\\s*$/,"");if("#"!=e.charAt(0))if(b){for(var e=\n +e.split("\\t"),f=new OpenLayers.Geometry.Point(0,0),g={},h=this.defaultStyle?OpenLayers.Util.applyDefaults({},this.defaultStyle):null,i=!1,j=0;j<e.length;j++)if(e[j])if("point"==b[j])i=e[j].split(","),f.y=parseFloat(i[0]),f.x=parseFloat(i[1]),i=!0;else if("lat"==b[j])f.y=parseFloat(e[j]),i=!0;else if("lon"==b[j])f.x=parseFloat(e[j]),i=!0;else if("title"==b[j])g.title=e[j];else if("image"==b[j]||"icon"==b[j]&&h)h.externalGraphic=e[j];else if("iconSize"==b[j]&&h){var k=e[j].split(",");h.graphicWidth=\n +parseFloat(k[0]);h.graphicHeight=parseFloat(k[1])}else"iconOffset"==b[j]&&h?(k=e[j].split(","),h.graphicXOffset=parseFloat(k[0]),h.graphicYOffset=parseFloat(k[1])):"description"==b[j]?g.description=e[j]:"overflow"==b[j]?g.overflow=e[j]:g[b[j]]=e[j];i&&(this.internalProjection&&this.externalProjection&&f.transform(this.externalProjection,this.internalProjection),e=new OpenLayers.Feature.Vector(f,g,h),c.push(e))}else b=e.split("\\t")}return c},CLASS_NAME:"OpenLayers.Format.Text"});OpenLayers.Layer.Text=OpenLayers.Class(OpenLayers.Layer.Markers,{location:null,features:null,formatOptions:null,selectedFeature:null,initialize:function(a,b){OpenLayers.Layer.Markers.prototype.initialize.apply(this,arguments);this.features=[]},destroy:function(){OpenLayers.Layer.Markers.prototype.destroy.apply(this,arguments);this.clearFeatures();this.features=null},loadText:function(){!this.loaded&&null!=this.location&&(this.events.triggerEvent("loadstart"),OpenLayers.Request.GET({url:this.location,\n +success:this.parseData,failure:function(){this.events.triggerEvent("loadend")},scope:this}),this.loaded=!0)},moveTo:function(a,b,c){OpenLayers.Layer.Markers.prototype.moveTo.apply(this,arguments);this.visibility&&!this.loaded&&this.loadText()},parseData:function(a){var a=a.responseText,b={};OpenLayers.Util.extend(b,this.formatOptions);this.map&&!this.projection.equals(this.map.getProjectionObject())&&(b.externalProjection=this.projection,b.internalProjection=this.map.getProjectionObject());for(var a=\n +(new OpenLayers.Format.Text(b)).read(a),b=0,c=a.length;b<c;b++){var d={},e=a[b],f,g,h;f=new OpenLayers.LonLat(e.geometry.x,e.geometry.y);e.style.graphicWidth&&e.style.graphicHeight&&(g=new OpenLayers.Size(e.style.graphicWidth,e.style.graphicHeight));void 0!==e.style.graphicXOffset&&void 0!==e.style.graphicYOffset&&(h=new OpenLayers.Pixel(e.style.graphicXOffset,e.style.graphicYOffset));null!=e.style.externalGraphic?d.icon=new OpenLayers.Icon(e.style.externalGraphic,g,h):(d.icon=OpenLayers.Marker.defaultIcon(),\n +null!=g&&d.icon.setSize(g));null!=e.attributes.title&&null!=e.attributes.description&&(d.popupContentHTML="<h2>"+e.attributes.title+"</h2><p>"+e.attributes.description+"</p>");d.overflow=e.attributes.overflow||"auto";d=new OpenLayers.Feature(this,f,d);this.features.push(d);f=d.createMarker();null!=e.attributes.title&&null!=e.attributes.description&&f.events.register("click",d,this.markerClick);this.addMarker(f)}this.events.triggerEvent("loadend")},markerClick:function(a){var b=this==this.layer.selectedFeature;\n +this.layer.selectedFeature=!b?this:null;for(var c=0,d=this.layer.map.popups.length;c<d;c++)this.layer.map.removePopup(this.layer.map.popups[c]);b||this.layer.map.addPopup(this.createPopup());OpenLayers.Event.stop(a)},clearFeatures:function(){if(null!=this.features)for(;0<this.features.length;){var a=this.features[0];OpenLayers.Util.removeItem(this.features,a);a.destroy()}},CLASS_NAME:"OpenLayers.Layer.Text"});OpenLayers.Handler.RegularPolygon=OpenLayers.Class(OpenLayers.Handler.Drag,{sides:4,radius:null,snapAngle:null,snapToggle:"shiftKey",layerOptions:null,persist:!1,irregular:!1,citeCompliant:!1,angle:null,fixedRadius:!1,feature:null,layer:null,origin:null,initialize:function(a,b,c){if(!c||!c.layerOptions||!c.layerOptions.styleMap)this.style=OpenLayers.Util.extend(OpenLayers.Feature.Vector.style["default"],{});OpenLayers.Handler.Drag.prototype.initialize.apply(this,[a,b,c]);this.options=c?c:{}},setOptions:function(a){OpenLayers.Util.extend(this.options,\n +a);OpenLayers.Util.extend(this,a)},activate:function(){var a=!1;OpenLayers.Handler.Drag.prototype.activate.apply(this,arguments)&&(a=OpenLayers.Util.extend({displayInLayerSwitcher:!1,calculateInRange:OpenLayers.Function.True,wrapDateLine:this.citeCompliant},this.layerOptions),this.layer=new OpenLayers.Layer.Vector(this.CLASS_NAME,a),this.map.addLayer(this.layer),a=!0);return a},deactivate:function(){var a=!1;OpenLayers.Handler.Drag.prototype.deactivate.apply(this,arguments)&&(this.dragging&&this.cancel(),\n +null!=this.layer.map&&(this.layer.destroy(!1),this.feature&&this.feature.destroy()),this.feature=this.layer=null,a=!0);return a},down:function(a){this.fixedRadius=!!this.radius;a=this.layer.getLonLatFromViewPortPx(a.xy);this.origin=new OpenLayers.Geometry.Point(a.lon,a.lat);if(!this.fixedRadius||this.irregular)this.radius=this.map.getResolution();this.persist&&this.clear();this.feature=new OpenLayers.Feature.Vector;this.createGeometry();this.callback("create",[this.origin,this.feature]);this.layer.addFeatures([this.feature],\n +{silent:!0});this.layer.drawFeature(this.feature,this.style)},move:function(a){var b=this.layer.getLonLatFromViewPortPx(a.xy),b=new OpenLayers.Geometry.Point(b.lon,b.lat);this.irregular?(a=Math.sqrt(2)*Math.abs(b.y-this.origin.y)/2,this.radius=Math.max(this.map.getResolution()/2,a)):this.fixedRadius?this.origin=b:(this.calculateAngle(b,a),this.radius=Math.max(this.map.getResolution()/2,b.distanceTo(this.origin)));this.modifyGeometry();this.irregular&&(a=b.x-this.origin.x,b=b.y-this.origin.y,this.feature.geometry.resize(1,\n +this.origin,0==b?a/(this.radius*Math.sqrt(2)):a/b),this.feature.geometry.move(a/2,b/2));this.layer.drawFeature(this.feature,this.style)},up:function(a){this.finalize();this.start==this.last&&this.callback("done",[a.xy])},out:function(){this.finalize()},createGeometry:function(){this.angle=Math.PI*(1/this.sides-0.5);this.snapAngle&&(this.angle+=this.snapAngle*(Math.PI/180));this.feature.geometry=OpenLayers.Geometry.Polygon.createRegularPolygon(this.origin,this.radius,this.sides,this.snapAngle)},modifyGeometry:function(){var a,\n +b,c=this.feature.geometry.components[0];c.components.length!=this.sides+1&&(this.createGeometry(),c=this.feature.geometry.components[0]);for(var d=0;d<this.sides;++d)b=c.components[d],a=this.angle+2*d*Math.PI/this.sides,b.x=this.origin.x+this.radius*Math.cos(a),b.y=this.origin.y+this.radius*Math.sin(a),b.clearBounds()},calculateAngle:function(a,b){var c=Math.atan2(a.y-this.origin.y,a.x-this.origin.x);if(this.snapAngle&&this.snapToggle&&!b[this.snapToggle]){var d=Math.PI/180*this.snapAngle;this.angle=\n +Math.round(c/d)*d}else this.angle=c},cancel:function(){this.callback("cancel",null);this.finalize()},finalize:function(){this.origin=null;this.radius=this.options.radius},clear:function(){this.layer&&(this.layer.renderer.clear(),this.layer.destroyFeatures())},callback:function(a){this.callbacks[a]&&this.callbacks[a].apply(this.control,[this.feature.geometry.clone()]);!this.persist&&("done"==a||"cancel"==a)&&this.clear()},CLASS_NAME:"OpenLayers.Handler.RegularPolygon"});OpenLayers.Control.SLDSelect=OpenLayers.Class(OpenLayers.Control,{clearOnDeactivate:!1,layers:null,callbacks:null,selectionSymbolizer:{Polygon:{fillColor:"#FF0000",stroke:!1},Line:{strokeColor:"#FF0000",strokeWidth:2},Point:{graphicName:"square",fillColor:"#FF0000",pointRadius:5}},layerOptions:null,handlerOptions:null,sketchStyle:null,wfsCache:{},layerCache:{},initialize:function(a,b){OpenLayers.Control.prototype.initialize.apply(this,[b]);this.callbacks=OpenLayers.Util.extend({done:this.select,click:this.select},\n +this.callbacks);this.handlerOptions=this.handlerOptions||{};this.layerOptions=OpenLayers.Util.applyDefaults(this.layerOptions,{displayInLayerSwitcher:!1,tileOptions:{maxGetUrlLength:2048}});this.sketchStyle&&(this.handlerOptions.layerOptions=OpenLayers.Util.applyDefaults(this.handlerOptions.layerOptions,{styleMap:new OpenLayers.StyleMap({"default":this.sketchStyle})}));this.handler=new a(this,this.callbacks,this.handlerOptions)},destroy:function(){for(var a in this.layerCache)delete this.layerCache[a];\n +for(a in this.wfsCache)delete this.wfsCache[a];OpenLayers.Control.prototype.destroy.apply(this,arguments)},coupleLayerVisiblity:function(a){this.setVisibility(a.object.getVisibility())},createSelectionLayer:function(a){var b;if(this.layerCache[a.id])b=this.layerCache[a.id];else{b=new OpenLayers.Layer.WMS(a.name,a.url,a.params,OpenLayers.Util.applyDefaults(this.layerOptions,a.getOptions()));this.layerCache[a.id]=b;if(!1===this.layerOptions.displayInLayerSwitcher)a.events.on({visibilitychanged:this.coupleLayerVisiblity,\n +scope:b});this.map.addLayer(b)}return b},createSLD:function(a,b,c){for(var d={version:"1.0.0",namedLayers:{}},e=(""+a.params.LAYERS).split(","),f=0,g=e.length;f<g;f++){var h=e[f];d.namedLayers[h]={name:h,userStyles:[]};var i=this.selectionSymbolizer,j=c[f];0<=j.type.indexOf("Polygon")?i={Polygon:this.selectionSymbolizer.Polygon}:0<=j.type.indexOf("LineString")?i={Line:this.selectionSymbolizer.Line}:0<=j.type.indexOf("Point")&&(i={Point:this.selectionSymbolizer.Point});d.namedLayers[h].userStyles.push({name:"default",\n +rules:[new OpenLayers.Rule({symbolizer:i,filter:b[f],maxScaleDenominator:a.options.minScale})]})}return(new OpenLayers.Format.SLD({srsName:this.map.getProjection()})).write(d)},parseDescribeLayer:function(a){var b=new OpenLayers.Format.WMSDescribeLayer,c=a.responseXML;if(!c||!c.documentElement)c=a.responseText;for(var a=b.read(c),b=[],c=null,d=0,e=a.length;d<e;d++)"WFS"==a[d].owsType&&(b.push(a[d].typeName),c=a[d].owsURL);OpenLayers.Request.GET({url:c,params:{SERVICE:"WFS",TYPENAME:b.toString(),REQUEST:"DescribeFeatureType",\n +VERSION:"1.0.0"},callback:function(a){var b=new OpenLayers.Format.WFSDescribeFeatureType,c=a.responseXML;if(!c||!c.documentElement)c=a.responseText;this.control.wfsCache[this.layer.id]=b.read(c);this.control._queue&&this.control.applySelection()},scope:this})},getGeometryAttributes:function(a){for(var b=[],a=this.wfsCache[a.id],c=0,d=a.featureTypes.length;c<d;c++)for(var e=a.featureTypes[c].properties,f=0,g=e.length;f<g;f++){var h=e[f],i=h.type;(0<=i.indexOf("LineString")||0<=i.indexOf("GeometryAssociationType")||\n +0<=i.indexOf("GeometryPropertyType")||0<=i.indexOf("Point")||0<=i.indexOf("Polygon"))&&b.push(h)}return b},activate:function(){var a=OpenLayers.Control.prototype.activate.call(this);if(a)for(var b=0,c=this.layers.length;b<c;b++){var d=this.layers[b];d&&!this.wfsCache[d.id]&&OpenLayers.Request.GET({url:d.url,params:{SERVICE:"WMS",VERSION:d.params.VERSION,LAYERS:d.params.LAYERS,REQUEST:"DescribeLayer"},callback:this.parseDescribeLayer,scope:{layer:d,control:this}})}return a},deactivate:function(){var a=\n +OpenLayers.Control.prototype.deactivate.call(this);if(a)for(var b=0,c=this.layers.length;b<c;b++){var d=this.layers[b];if(d&&!0===this.clearOnDeactivate){var e=this.layerCache,f=e[d.id];f&&(d.events.un({visibilitychanged:this.coupleLayerVisiblity,scope:f}),f.destroy(),delete e[d.id])}}return a},setLayers:function(a){this.active?(this.deactivate(),this.layers=a,this.activate()):this.layers=a},createFilter:function(a,b){var c=null;this.handler instanceof OpenLayers.Handler.RegularPolygon?c=!0===this.handler.irregular?\n +new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.BBOX,property:a.name,value:b.getBounds()}):new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.INTERSECTS,property:a.name,value:b}):this.handler instanceof OpenLayers.Handler.Polygon?c=new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.INTERSECTS,property:a.name,value:b}):this.handler instanceof OpenLayers.Handler.Path?c=0<=a.type.indexOf("Point")?new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.DWITHIN,\n +property:a.name,distance:0.01*this.map.getExtent().getWidth(),distanceUnits:this.map.getUnits(),value:b}):new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.INTERSECTS,property:a.name,value:b}):this.handler instanceof OpenLayers.Handler.Click&&(c=0<=a.type.indexOf("Polygon")?new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.INTERSECTS,property:a.name,value:b}):new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.DWITHIN,property:a.name,distance:0.01*this.map.getExtent().getWidth(),\n +distanceUnits:this.map.getUnits(),value:b}));return c},select:function(a){this._queue=function(){for(var b=0,c=this.layers.length;b<c;b++){for(var d=this.layers[b],e=this.getGeometryAttributes(d),f=[],g=0,h=e.length;g<h;g++){var i=e[g];if(null!==i){if(!(a instanceof OpenLayers.Geometry)){var j=this.map.getLonLatFromPixel(a.xy);a=new OpenLayers.Geometry.Point(j.lon,j.lat)}i=this.createFilter(i,a);null!==i&&f.push(i)}}g=this.createSelectionLayer(d);e=this.createSLD(d,f,e);this.events.triggerEvent("selected",\n +{layer:d,filters:f});g.mergeNewParams({SLD_BODY:e});delete this._queue}};this.applySelection()},applySelection:function(){for(var a=!0,b=0,c=this.layers.length;b<c;b++)if(!this.wfsCache[this.layers[b].id]){a=!1;break}a&&this._queue.call(this)},CLASS_NAME:"OpenLayers.Control.SLDSelect"});OpenLayers.Control.Scale=OpenLayers.Class(OpenLayers.Control,{element:null,geodesic:!1,initialize:function(a,b){OpenLayers.Control.prototype.initialize.apply(this,[b]);this.element=OpenLayers.Util.getElement(a)},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);this.element||(this.element=document.createElement("div"),this.div.appendChild(this.element));this.map.events.register("moveend",this,this.updateScale);this.updateScale();return this.div},updateScale:function(){var a;\n +if(!0===this.geodesic){if(!this.map.getUnits())return;a=OpenLayers.INCHES_PER_UNIT;a=(this.map.getGeodesicPixelSize().w||1.0E-6)*a.km*OpenLayers.DOTS_PER_INCH}else a=this.map.getScale();a&&(a=9500<=a&&95E4>=a?Math.round(a/1E3)+"K":95E4<=a?Math.round(a/1E6)+"M":Math.round(a),this.element.innerHTML=OpenLayers.i18n("Scale = 1 : ${scaleDenom}",{scaleDenom:a}))},CLASS_NAME:"OpenLayers.Control.Scale"});OpenLayers.Control.Button=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_BUTTON,trigger:function(){},CLASS_NAME:"OpenLayers.Control.Button"});OpenLayers.Layer.MapGuide=OpenLayers.Class(OpenLayers.Layer.Grid,{isBaseLayer:!0,useHttpTile:!1,singleTile:!1,useOverlay:!1,useAsyncOverlay:!0,TILE_PARAMS:{operation:"GETTILEIMAGE",version:"1.2.0"},SINGLE_TILE_PARAMS:{operation:"GETMAPIMAGE",format:"PNG",locale:"en",clip:"1",version:"1.0.0"},OVERLAY_PARAMS:{operation:"GETDYNAMICMAPOVERLAYIMAGE",format:"PNG",locale:"en",clip:"1",version:"2.0.0"},FOLDER_PARAMS:{tileColumnsPerFolder:30,tileRowsPerFolder:30,format:"png",querystring:null},defaultSize:new OpenLayers.Size(300,\n +300),tileOriginCorner:"tl",initialize:function(a,b,c,d){OpenLayers.Layer.Grid.prototype.initialize.apply(this,arguments);if(null==d||null==d.isBaseLayer)this.isBaseLayer="true"!=this.transparent&&!0!=this.transparent;d&&null!=d.useOverlay&&(this.useOverlay=d.useOverlay);this.singleTile?this.useOverlay?(OpenLayers.Util.applyDefaults(this.params,this.OVERLAY_PARAMS),this.useAsyncOverlay||(this.params.version="1.0.0")):OpenLayers.Util.applyDefaults(this.params,this.SINGLE_TILE_PARAMS):(this.useHttpTile?\n +OpenLayers.Util.applyDefaults(this.params,this.FOLDER_PARAMS):OpenLayers.Util.applyDefaults(this.params,this.TILE_PARAMS),this.setTileSize(this.defaultSize))},clone:function(a){null==a&&(a=new OpenLayers.Layer.MapGuide(this.name,this.url,this.params,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},getURL:function(a){var b;b=a.getCenterLonLat();var c=this.map.getSize();this.singleTile?(a={setdisplaydpi:OpenLayers.DOTS_PER_INCH,setdisplayheight:c.h*this.ratio,setdisplaywidth:c.w*\n +this.ratio,setviewcenterx:b.lon,setviewcentery:b.lat,setviewscale:this.map.getScale()},this.useOverlay&&!this.useAsyncOverlay&&(b={},b=OpenLayers.Util.extend(b,a),b.operation="GETVISIBLEMAPEXTENT",b.version="1.0.0",b.session=this.params.session,b.mapName=this.params.mapName,b.format="text/xml",b=this.getFullRequestString(b),OpenLayers.Request.GET({url:b,async:!1})),b=this.getFullRequestString(a)):(c=this.map.getResolution(),b=Math.floor((a.left-this.maxExtent.left)/c),b=Math.round(b/this.tileSize.w),\n +a=Math.floor((this.maxExtent.top-a.top)/c),a=Math.round(a/this.tileSize.h),b=this.useHttpTile?this.getImageFilePath({tilecol:b,tilerow:a,scaleindex:this.resolutions.length-this.map.zoom-1}):this.getFullRequestString({tilecol:b,tilerow:a,scaleindex:this.resolutions.length-this.map.zoom-1}));return b},getFullRequestString:function(a,b){var c=null==b?this.url:b;"object"==typeof c&&(c=c[Math.floor(Math.random()*c.length)]);var d=c,e=OpenLayers.Util.extend({},this.params),e=OpenLayers.Util.extend(e,a),\n +f=OpenLayers.Util.upperCaseObject(OpenLayers.Util.getParameters(c)),g;for(g in e)g.toUpperCase()in f&&delete e[g];e=OpenLayers.Util.getParameterString(e);e=e.replace(/,/g,"+");""!=e&&(f=c.charAt(c.length-1),d="&"==f||"?"==f?d+e:-1==c.indexOf("?")?d+("?"+e):d+("&"+e));return d},getImageFilePath:function(a,b){var c=null==b?this.url:b;"object"==typeof c&&(c=c[Math.floor(Math.random()*c.length)]);var d="",e="";0>a.tilerow&&(d="-");d=0==a.tilerow?d+"0":d+Math.floor(Math.abs(a.tilerow/this.params.tileRowsPerFolder))*\n +this.params.tileRowsPerFolder;0>a.tilecol&&(e="-");e=0==a.tilecol?e+"0":e+Math.floor(Math.abs(a.tilecol/this.params.tileColumnsPerFolder))*this.params.tileColumnsPerFolder;d="/S"+Math.floor(a.scaleindex)+"/"+this.params.basemaplayergroupname+"/R"+d+"/C"+e+"/"+a.tilerow%this.params.tileRowsPerFolder+"_"+a.tilecol%this.params.tileColumnsPerFolder+"."+this.params.format;this.params.querystring&&(d+="?"+this.params.querystring);return c+d},calculateGridLayout:function(a,b,c){var d=c*this.tileSize.w,c=\n +c*this.tileSize.h,e=a.left-b.lon,f=Math.floor(e/d)-this.buffer,a=b.lat-a.top+c,g=Math.floor(a/c)-this.buffer;return{tilelon:d,tilelat:c,tileoffsetlon:b.lon+f*d,tileoffsetlat:b.lat-c*g,tileoffsetx:-(e/d-f)*this.tileSize.w,tileoffsety:(g-a/c)*this.tileSize.h}},CLASS_NAME:"OpenLayers.Layer.MapGuide"});OpenLayers.Control.Measure=OpenLayers.Class(OpenLayers.Control,{handlerOptions:null,callbacks:null,displaySystem:"metric",geodesic:!1,displaySystemUnits:{geographic:["dd"],english:["mi","ft","in"],metric:["km","m"]},partialDelay:300,delayedTrigger:null,persist:!1,immediate:!1,initialize:function(a,b){OpenLayers.Control.prototype.initialize.apply(this,[b]);var c={done:this.measureComplete,point:this.measurePartial};this.immediate&&(c.modify=this.measureImmediate);this.callbacks=OpenLayers.Util.extend(c,\n +this.callbacks);this.handlerOptions=OpenLayers.Util.extend({persist:this.persist},this.handlerOptions);this.handler=new a(this,this.callbacks,this.handlerOptions)},deactivate:function(){this.cancelDelay();return OpenLayers.Control.prototype.deactivate.apply(this,arguments)},cancel:function(){this.cancelDelay();this.handler.cancel()},setImmediate:function(a){(this.immediate=a)?this.callbacks.modify=this.measureImmediate:delete this.callbacks.modify},updateHandler:function(a,b){var c=this.active;c&&\n +this.deactivate();this.handler=new a(this,this.callbacks,b);c&&this.activate()},measureComplete:function(a){this.cancelDelay();this.measure(a,"measure")},measurePartial:function(a,b){this.cancelDelay();b=b.clone();this.handler.freehandMode(this.handler.evt)?this.measure(b,"measurepartial"):this.delayedTrigger=window.setTimeout(OpenLayers.Function.bind(function(){this.delayedTrigger=null;this.measure(b,"measurepartial")},this),this.partialDelay)},measureImmediate:function(a,b,c){c&&!this.handler.freehandMode(this.handler.evt)&&\n +(this.cancelDelay(),this.measure(b.geometry,"measurepartial"))},cancelDelay:function(){null!==this.delayedTrigger&&(window.clearTimeout(this.delayedTrigger),this.delayedTrigger=null)},measure:function(a,b){var c,d;-1<a.CLASS_NAME.indexOf("LineString")?(c=this.getBestLength(a),d=1):(c=this.getBestArea(a),d=2);this.events.triggerEvent(b,{measure:c[0],units:c[1],order:d,geometry:a})},getBestArea:function(a){for(var b=this.displaySystemUnits[this.displaySystem],c,d,e=0,f=b.length;e<f&&!(c=b[e],d=this.getArea(a,\n +c),1<d);++e);return[d,c]},getArea:function(a,b){var c,d;this.geodesic?(c=a.getGeodesicArea(this.map.getProjectionObject()),d="m"):(c=a.getArea(),d=this.map.getUnits());var e=OpenLayers.INCHES_PER_UNIT[b];e&&(c*=Math.pow(OpenLayers.INCHES_PER_UNIT[d]/e,2));return c},getBestLength:function(a){for(var b=this.displaySystemUnits[this.displaySystem],c,d,e=0,f=b.length;e<f&&!(c=b[e],d=this.getLength(a,c),1<d);++e);return[d,c]},getLength:function(a,b){var c,d;this.geodesic?(c=a.getGeodesicLength(this.map.getProjectionObject()),\n +d="m"):(c=a.getLength(),d=this.map.getUnits());var e=OpenLayers.INCHES_PER_UNIT[b];e&&(c*=OpenLayers.INCHES_PER_UNIT[d]/e);return c},CLASS_NAME:"OpenLayers.Control.Measure"});OpenLayers.Format.WMC.v1_0_0=OpenLayers.Class(OpenLayers.Format.WMC.v1,{VERSION:"1.0.0",schemaLocation:"http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd",initialize:function(a){OpenLayers.Format.WMC.v1.prototype.initialize.apply(this,[a])},read_wmc_SRS:function(a,b){var c=this.getChildValue(b);"object"!=typeof a.projections&&(a.projections={});for(var c=c.split(/ +/),d=0,e=c.length;d<e;d++)a.projections[c[d]]=!0},write_wmc_Layer:function(a){var b=OpenLayers.Format.WMC.v1.prototype.write_wmc_Layer.apply(this,\n +[a]);if(a.srs){var c=[],d;for(d in a.srs)c.push(d);b.appendChild(this.createElementDefaultNS("SRS",c.join(" ")))}b.appendChild(this.write_wmc_FormatList(a));b.appendChild(this.write_wmc_StyleList(a));a.dimensions&&b.appendChild(this.write_wmc_DimensionList(a));b.appendChild(this.write_wmc_LayerExtension(a))},CLASS_NAME:"OpenLayers.Format.WMC.v1_0_0"});OpenLayers.Popup.Framed=OpenLayers.Class(OpenLayers.Popup.Anchored,{imageSrc:null,imageSize:null,isAlphaImage:!1,positionBlocks:null,blocks:null,fixedRelativePosition:!1,initialize:function(a,b,c,d,e,f,g){OpenLayers.Popup.Anchored.prototype.initialize.apply(this,arguments);this.fixedRelativePosition&&(this.updateRelativePosition(),this.calculateRelativePosition=function(){return this.relativePosition});this.contentDiv.style.position="absolute";this.contentDiv.style.zIndex=1;f&&(this.closeDiv.style.zIndex=\n +1);this.groupDiv.style.position="absolute";this.groupDiv.style.top="0px";this.groupDiv.style.left="0px";this.groupDiv.style.height="100%";this.groupDiv.style.width="100%"},destroy:function(){this.isAlphaImage=this.imageSize=this.imageSrc=null;this.fixedRelativePosition=!1;this.positionBlocks=null;for(var a=0;a<this.blocks.length;a++){var b=this.blocks[a];b.image&&b.div.removeChild(b.image);b.image=null;b.div&&this.groupDiv.removeChild(b.div);b.div=null}this.blocks=null;OpenLayers.Popup.Anchored.prototype.destroy.apply(this,\n +arguments)},setBackgroundColor:function(){},setBorder:function(){},setOpacity:function(){},setSize:function(a){OpenLayers.Popup.Anchored.prototype.setSize.apply(this,arguments);this.updateBlocks()},updateRelativePosition:function(){this.padding=this.positionBlocks[this.relativePosition].padding;if(this.closeDiv){var a=this.getContentDivPadding();this.closeDiv.style.right=a.right+this.padding.right+"px";this.closeDiv.style.top=a.top+this.padding.top+"px"}this.updateBlocks()},calculateNewPx:function(a){var b=\n +OpenLayers.Popup.Anchored.prototype.calculateNewPx.apply(this,arguments);return b=b.offset(this.positionBlocks[this.relativePosition].offset)},createBlocks:function(){this.blocks=[];var a=null,b;for(b in this.positionBlocks){a=b;break}a=this.positionBlocks[a];for(b=0;b<a.blocks.length;b++){var c={};this.blocks.push(c);c.div=OpenLayers.Util.createDiv(this.id+"_FrameDecorationDiv_"+b,null,null,null,"absolute",null,"hidden",null);c.image=(this.isAlphaImage?OpenLayers.Util.createAlphaImageDiv:OpenLayers.Util.createImage)(this.id+\n +"_FrameDecorationImg_"+b,null,this.imageSize,this.imageSrc,"absolute",null,null,null);c.div.appendChild(c.image);this.groupDiv.appendChild(c.div)}},updateBlocks:function(){this.blocks||this.createBlocks();if(this.size&&this.relativePosition){for(var a=this.positionBlocks[this.relativePosition],b=0;b<a.blocks.length;b++){var c=a.blocks[b],d=this.blocks[b],e=c.anchor.left,f=c.anchor.bottom,g=c.anchor.right,h=c.anchor.top,i=isNaN(c.size.w)?this.size.w-(g+e):c.size.w,j=isNaN(c.size.h)?this.size.h-(f+\n +h):c.size.h;d.div.style.width=(0>i?0:i)+"px";d.div.style.height=(0>j?0:j)+"px";d.div.style.left=null!=e?e+"px":"";d.div.style.bottom=null!=f?f+"px":"";d.div.style.right=null!=g?g+"px":"";d.div.style.top=null!=h?h+"px":"";d.image.style.left=c.position.x+"px";d.image.style.top=c.position.y+"px"}this.contentDiv.style.left=this.padding.left+"px";this.contentDiv.style.top=this.padding.top+"px"}},CLASS_NAME:"OpenLayers.Popup.Framed"});OpenLayers.Popup.FramedCloud=OpenLayers.Class(OpenLayers.Popup.Framed,{contentDisplayClass:"olFramedCloudPopupContent",autoSize:!0,panMapIfOutOfView:!0,imageSize:new OpenLayers.Size(1276,736),isAlphaImage:!1,fixedRelativePosition:!1,positionBlocks:{tl:{offset:new OpenLayers.Pixel(44,0),padding:new OpenLayers.Bounds(8,40,8,9),blocks:[{size:new OpenLayers.Size("auto","auto"),anchor:new OpenLayers.Bounds(0,51,22,0),position:new OpenLayers.Pixel(0,0)},{size:new OpenLayers.Size(22,"auto"),anchor:new OpenLayers.Bounds(null,\n +50,0,0),position:new OpenLayers.Pixel(-1238,0)},{size:new OpenLayers.Size("auto",19),anchor:new OpenLayers.Bounds(0,32,22,null),position:new OpenLayers.Pixel(0,-631)},{size:new OpenLayers.Size(22,18),anchor:new OpenLayers.Bounds(null,32,0,null),position:new OpenLayers.Pixel(-1238,-632)},{size:new OpenLayers.Size(81,35),anchor:new OpenLayers.Bounds(null,0,0,null),position:new OpenLayers.Pixel(0,-688)}]},tr:{offset:new OpenLayers.Pixel(-45,0),padding:new OpenLayers.Bounds(8,40,8,9),blocks:[{size:new OpenLayers.Size("auto",\n +"auto"),anchor:new OpenLayers.Bounds(0,51,22,0),position:new OpenLayers.Pixel(0,0)},{size:new OpenLayers.Size(22,"auto"),anchor:new OpenLayers.Bounds(null,50,0,0),position:new OpenLayers.Pixel(-1238,0)},{size:new OpenLayers.Size("auto",19),anchor:new OpenLayers.Bounds(0,32,22,null),position:new OpenLayers.Pixel(0,-631)},{size:new OpenLayers.Size(22,19),anchor:new OpenLayers.Bounds(null,32,0,null),position:new OpenLayers.Pixel(-1238,-631)},{size:new OpenLayers.Size(81,35),anchor:new OpenLayers.Bounds(0,\n +0,null,null),position:new OpenLayers.Pixel(-215,-687)}]},bl:{offset:new OpenLayers.Pixel(45,0),padding:new OpenLayers.Bounds(8,9,8,40),blocks:[{size:new OpenLayers.Size("auto","auto"),anchor:new OpenLayers.Bounds(0,21,22,32),position:new OpenLayers.Pixel(0,0)},{size:new OpenLayers.Size(22,"auto"),anchor:new OpenLayers.Bounds(null,21,0,32),position:new OpenLayers.Pixel(-1238,0)},{size:new OpenLayers.Size("auto",21),anchor:new OpenLayers.Bounds(0,0,22,null),position:new OpenLayers.Pixel(0,-629)},{size:new OpenLayers.Size(22,\n +21),anchor:new OpenLayers.Bounds(null,0,0,null),position:new OpenLayers.Pixel(-1238,-629)},{size:new OpenLayers.Size(81,33),anchor:new OpenLayers.Bounds(null,null,0,0),position:new OpenLayers.Pixel(-101,-674)}]},br:{offset:new OpenLayers.Pixel(-44,0),padding:new OpenLayers.Bounds(8,9,8,40),blocks:[{size:new OpenLayers.Size("auto","auto"),anchor:new OpenLayers.Bounds(0,21,22,32),position:new OpenLayers.Pixel(0,0)},{size:new OpenLayers.Size(22,"auto"),anchor:new OpenLayers.Bounds(null,21,0,32),position:new OpenLayers.Pixel(-1238,\n +0)},{size:new OpenLayers.Size("auto",21),anchor:new OpenLayers.Bounds(0,0,22,null),position:new OpenLayers.Pixel(0,-629)},{size:new OpenLayers.Size(22,21),anchor:new OpenLayers.Bounds(null,0,0,null),position:new OpenLayers.Pixel(-1238,-629)},{size:new OpenLayers.Size(81,33),anchor:new OpenLayers.Bounds(0,null,null,0),position:new OpenLayers.Pixel(-311,-674)}]}},minSize:new OpenLayers.Size(105,10),maxSize:new OpenLayers.Size(1200,660),initialize:function(a,b,c,d,e,f,g){this.imageSrc=OpenLayers.Util.getImageLocation("cloud-popup-relative.png");\n +OpenLayers.Popup.Framed.prototype.initialize.apply(this,arguments);this.contentDiv.className=this.contentDisplayClass},CLASS_NAME:"OpenLayers.Popup.FramedCloud"});OpenLayers.Tile.Image.IFrame={useIFrame:null,draw:function(){if(OpenLayers.Tile.Image.prototype.shouldDraw.call(this)){var a=this.layer.getURL(this.bounds),b=this.useIFrame;this.useIFrame=null!==this.maxGetUrlLength&&!this.layer.async&&a.length>this.maxGetUrlLength;a=b&&!this.useIFrame;b=!b&&this.useIFrame;if(a||b)this.imgDiv&&this.imgDiv.parentNode===this.frame&&this.frame.removeChild(this.imgDiv),this.imgDiv=null,a?(this.blankImageUrl=this._blankImageUrl,this.frame.removeChild(this.frame.firstChild)):\n +(this._blankImageUrl=this.blankImageUrl,this.blankImageUrl="about:blank")}return OpenLayers.Tile.Image.prototype.draw.apply(this,arguments)},getImage:function(){if(!0===this.useIFrame){if(!this.frame.childNodes.length){var a=document.createElement("div"),b=a.style;b.position="absolute";b.width="100%";b.height="100%";b.zIndex=1;b.backgroundImage="url("+this._blankImageUrl+")";this.frame.appendChild(a)}a=this.id+"_iFrame";9>parseFloat(navigator.appVersion.split("MSIE")[1])?(b=document.createElement(\'<iframe name="\'+\n +a+\'">\'),b.style.backgroundColor="#FFFFFF",b.style.filter="chroma(color=#FFFFFF)"):(b=document.createElement("iframe"),b.style.backgroundColor="transparent",b.name=a);b.scrolling="no";b.marginWidth="0px";b.marginHeight="0px";b.frameBorder="0";b.style.position="absolute";b.style.width="100%";b.style.height="100%";1>this.layer.opacity&&OpenLayers.Util.modifyDOMElement(b,null,null,null,null,null,null,this.layer.opacity);this.frame.appendChild(b);return this.imgDiv=b}return OpenLayers.Tile.Image.prototype.getImage.apply(this,\n +arguments)},createRequestForm:function(){var a=document.createElement("form");a.method="POST";var b=this.layer.params._OLSALT,b=(b?b+"_":"")+this.bounds.toBBOX();a.action=OpenLayers.Util.urlAppend(this.layer.url,b);a.target=this.id+"_iFrame";this.layer.getImageSize();var b=OpenLayers.Util.getParameters(this.url),c,d;for(d in b)c=document.createElement("input"),c.type="hidden",c.name=d,c.value=b[d],a.appendChild(c);return a},setImgSrc:function(a){if(!0===this.useIFrame)if(a){var b=this.createRequestForm();\n +this.frame.appendChild(b);b.submit();this.frame.removeChild(b)}else this.imgDiv.parentNode===this.frame&&(this.frame.removeChild(this.imgDiv),this.imgDiv=null);else OpenLayers.Tile.Image.prototype.setImgSrc.apply(this,arguments)},onImageLoad:function(){OpenLayers.Tile.Image.prototype.onImageLoad.apply(this,arguments);!0===this.useIFrame&&(this.imgDiv.style.opacity=1,this.frame.style.opacity=this.layer.opacity)},createBackBuffer:function(){var a;!1===this.useIFrame&&(a=OpenLayers.Tile.Image.prototype.createBackBuffer.call(this));\n +return a}};OpenLayers.Format.SOSCapabilities=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.0.0",CLASS_NAME:"OpenLayers.Format.SOSCapabilities"});OpenLayers.Format.SOSCapabilities.v1_0_0=OpenLayers.Class(OpenLayers.Format.SOSCapabilities,{namespaces:{ows:"http://www.opengis.net/ows/1.1",sos:"http://www.opengis.net/sos/1.0",gml:"http://www.opengis.net/gml",xlink:"http://www.w3.org/1999/xlink"},regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);this.options=a},read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,\n +[a]));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.readNode(a,b);return b},readers:{gml:OpenLayers.Util.applyDefaults({name:function(a,b){b.name=this.getChildValue(a)},TimePeriod:function(a,b){b.timePeriod={};this.readChildNodes(a,b.timePeriod)},beginPosition:function(a,b){b.beginPosition=this.getChildValue(a)},endPosition:function(a,b){b.endPosition=this.getChildValue(a)}},OpenLayers.Format.GML.v3.prototype.readers.gml),sos:{Capabilities:function(a,b){this.readChildNodes(a,b)},Contents:function(a,\n +b){b.contents={};this.readChildNodes(a,b.contents)},ObservationOfferingList:function(a,b){b.offeringList={};this.readChildNodes(a,b.offeringList)},ObservationOffering:function(a,b){var c=this.getAttributeNS(a,this.namespaces.gml,"id");b[c]={procedures:[],observedProperties:[],featureOfInterestIds:[],responseFormats:[],resultModels:[],responseModes:[]};this.readChildNodes(a,b[c])},time:function(a,b){b.time={};this.readChildNodes(a,b.time)},procedure:function(a,b){b.procedures.push(this.getAttributeNS(a,\n +this.namespaces.xlink,"href"))},observedProperty:function(a,b){b.observedProperties.push(this.getAttributeNS(a,this.namespaces.xlink,"href"))},featureOfInterest:function(a,b){b.featureOfInterestIds.push(this.getAttributeNS(a,this.namespaces.xlink,"href"))},responseFormat:function(a,b){b.responseFormats.push(this.getChildValue(a))},resultModel:function(a,b){b.resultModels.push(this.getChildValue(a))},responseMode:function(a,b){b.responseModes.push(this.getChildValue(a))}},ows:OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers.ows},\n +CLASS_NAME:"OpenLayers.Format.SOSCapabilities.v1_0_0"});OpenLayers.Handler.Pinch=OpenLayers.Class(OpenLayers.Handler,{started:!1,stopDown:!1,pinching:!1,last:null,start:null,touchstart:function(a){var b=!0;this.pinching=!1;OpenLayers.Event.isMultiTouch(a)?(this.started=!0,this.last=this.start={distance:this.getDistance(a.touches),delta:0,scale:1},this.callback("start",[a,this.start]),b=!this.stopDown):(this.started=!1,this.last=this.start=null);OpenLayers.Event.stop(a);return b},touchmove:function(a){if(this.started&&OpenLayers.Event.isMultiTouch(a)){this.pinching=\n +!0;var b=this.getPinchData(a);this.callback("move",[a,b]);this.last=b;OpenLayers.Event.stop(a)}return!0},touchend:function(a){this.started&&(this.pinching=this.started=!1,this.callback("done",[a,this.start,this.last]),this.last=this.start=null);return!0},activate:function(){var a=!1;OpenLayers.Handler.prototype.activate.apply(this,arguments)&&(this.pinching=!1,a=!0);return a},deactivate:function(){var a=!1;OpenLayers.Handler.prototype.deactivate.apply(this,arguments)&&(this.pinching=this.started=\n +!1,this.last=this.start=null,a=!0);return a},getDistance:function(a){var b=a[0],a=a[1];return Math.sqrt(Math.pow(b.clientX-a.clientX,2)+Math.pow(b.clientY-a.clientY,2))},getPinchData:function(a){a=this.getDistance(a.touches);return{distance:a,delta:this.last.distance-a,scale:a/this.start.distance}},CLASS_NAME:"OpenLayers.Handler.Pinch"});OpenLayers.Control.NavToolbar=OpenLayers.Class(OpenLayers.Control.Panel,{initialize:function(a){OpenLayers.Control.Panel.prototype.initialize.apply(this,[a]);this.addControls([new OpenLayers.Control.Navigation,new OpenLayers.Control.ZoomBox])},draw:function(){var a=OpenLayers.Control.Panel.prototype.draw.apply(this,arguments);null===this.defaultControl&&(this.defaultControl=this.controls[0]);return a},CLASS_NAME:"OpenLayers.Control.NavToolbar"});OpenLayers.Strategy.Refresh=OpenLayers.Class(OpenLayers.Strategy,{force:!1,interval:0,timer:null,activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);a&&(!0===this.layer.visibility&&this.start(),this.layer.events.on({visibilitychanged:this.reset,scope:this}));return a},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);a&&this.stop();return a},reset:function(){!0===this.layer.visibility?this.start():this.stop()},start:function(){this.interval&&("number"===\n +typeof this.interval&&0<this.interval)&&(this.timer=window.setInterval(OpenLayers.Function.bind(this.refresh,this),this.interval))},refresh:function(){this.layer&&(this.layer.refresh&&"function"==typeof this.layer.refresh)&&this.layer.refresh({force:this.force})},stop:function(){null!==this.timer&&(window.clearInterval(this.timer),this.timer=null)},CLASS_NAME:"OpenLayers.Strategy.Refresh"});OpenLayers.Layer.ArcGIS93Rest=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{format:"png"},isBaseLayer:!0,initialize:function(a,b,c,d){var e=[],c=OpenLayers.Util.upperCaseObject(c);e.push(a,b,c,d);OpenLayers.Layer.Grid.prototype.initialize.apply(this,e);OpenLayers.Util.applyDefaults(this.params,OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS));if(this.params.TRANSPARENT&&"true"==this.params.TRANSPARENT.toString().toLowerCase()){if(null==d||!d.isBaseLayer)this.isBaseLayer=!1;"jpg"==this.params.FORMAT&&\n +(this.params.FORMAT=OpenLayers.Util.alphaHack()?"gif":"png")}},clone:function(a){null==a&&(a=new OpenLayers.Layer.ArcGIS93Rest(this.name,this.url,this.params,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},getURL:function(a){var a=this.adjustBounds(a),b=this.projection.getCode().split(":"),b=b[b.length-1],c=this.getImageSize(),a={BBOX:a.toBBOX(),SIZE:c.w+","+c.h,F:"image",BBOXSR:b,IMAGESR:b};if(this.layerDefs){var b=[],d;for(d in this.layerDefs)this.layerDefs.hasOwnProperty(d)&&\n +this.layerDefs[d]&&(b.push(d),b.push(":"),b.push(this.layerDefs[d]),b.push(";"));0<b.length&&(a.LAYERDEFS=b.join(""))}return this.getFullRequestString(a)},setLayerFilter:function(a,b){this.layerDefs||(this.layerDefs={});b?this.layerDefs[a]=b:delete this.layerDefs[a]},clearLayerFilter:function(a){a?delete this.layerDefs[a]:delete this.layerDefs},mergeNewParams:function(a){a=[OpenLayers.Util.upperCaseObject(a)];return OpenLayers.Layer.Grid.prototype.mergeNewParams.apply(this,a)},CLASS_NAME:"OpenLayers.Layer.ArcGIS93Rest"});OpenLayers.Format.WKT=OpenLayers.Class(OpenLayers.Format,{initialize:function(a){this.regExes={typeStr:/^\\s*(\\w+)\\s*\\(\\s*(.*)\\s*\\)\\s*$/,spaces:/\\s+/,parenComma:/\\)\\s*,\\s*\\(/,doubleParenComma:/\\)\\s*\\)\\s*,\\s*\\(\\s*\\(/,trimParens:/^\\s*\\(?(.*?)\\)?\\s*$/};OpenLayers.Format.prototype.initialize.apply(this,[a])},read:function(a){var b,c,a=a.replace(/[\\n\\r]/g," ");if(c=this.regExes.typeStr.exec(a))if(a=c[1].toLowerCase(),c=c[2],this.parse[a]&&(b=this.parse[a].apply(this,[c])),this.internalProjection&&this.externalProjection)if(b&&\n +"OpenLayers.Feature.Vector"==b.CLASS_NAME)b.geometry.transform(this.externalProjection,this.internalProjection);else if(b&&"geometrycollection"!=a&&"object"==typeof b){a=0;for(c=b.length;a<c;a++)b[a].geometry.transform(this.externalProjection,this.internalProjection)}return b},write:function(a){var b,c;a.constructor==Array?c=!0:(a=[a],c=!1);var d=[];c&&d.push("GEOMETRYCOLLECTION(");for(var e=0,f=a.length;e<f;++e)c&&0<e&&d.push(","),b=a[e].geometry,d.push(this.extractGeometry(b));c&&d.push(")");return d.join("")},\n +extractGeometry:function(a){var b=a.CLASS_NAME.split(".")[2].toLowerCase();if(!this.extract[b])return null;this.internalProjection&&this.externalProjection&&(a=a.clone(),a.transform(this.internalProjection,this.externalProjection));return("collection"==b?"GEOMETRYCOLLECTION":b.toUpperCase())+"("+this.extract[b].apply(this,[a])+")"},extract:{point:function(a){return a.x+" "+a.y},multipoint:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push("("+this.extract.point.apply(this,[a.components[c]])+\n +")");return b.join(",")},linestring:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push(this.extract.point.apply(this,[a.components[c]]));return b.join(",")},multilinestring:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push("("+this.extract.linestring.apply(this,[a.components[c]])+")");return b.join(",")},polygon:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push("("+this.extract.linestring.apply(this,[a.components[c]])+")");return b.join(",")},multipolygon:function(a){for(var b=\n +[],c=0,d=a.components.length;c<d;++c)b.push("("+this.extract.polygon.apply(this,[a.components[c]])+")");return b.join(",")},collection:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push(this.extractGeometry.apply(this,[a.components[c]]));return b.join(",")}},parse:{point:function(a){a=OpenLayers.String.trim(a).split(this.regExes.spaces);return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(a[0],a[1]))},multipoint:function(a){for(var b=OpenLayers.String.trim(a).split(","),\n +c=[],d=0,e=b.length;d<e;++d)a=b[d].replace(this.regExes.trimParens,"$1"),c.push(this.parse.point.apply(this,[a]).geometry);return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.MultiPoint(c))},linestring:function(a){for(var a=OpenLayers.String.trim(a).split(","),b=[],c=0,d=a.length;c<d;++c)b.push(this.parse.point.apply(this,[a[c]]).geometry);return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.LineString(b))},multilinestring:function(a){for(var b=OpenLayers.String.trim(a).split(this.regExes.parenComma),\n +c=[],d=0,e=b.length;d<e;++d)a=b[d].replace(this.regExes.trimParens,"$1"),c.push(this.parse.linestring.apply(this,[a]).geometry);return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.MultiLineString(c))},polygon:function(a){for(var b,a=OpenLayers.String.trim(a).split(this.regExes.parenComma),c=[],d=0,e=a.length;d<e;++d)b=a[d].replace(this.regExes.trimParens,"$1"),b=this.parse.linestring.apply(this,[b]).geometry,b=new OpenLayers.Geometry.LinearRing(b.components),c.push(b);return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon(c))},\n +multipolygon:function(a){for(var b=OpenLayers.String.trim(a).split(this.regExes.doubleParenComma),c=[],d=0,e=b.length;d<e;++d)a=b[d].replace(this.regExes.trimParens,"$1"),c.push(this.parse.polygon.apply(this,[a]).geometry);return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.MultiPolygon(c))},geometrycollection:function(a){for(var a=a.replace(/,\\s*([A-Za-z])/g,"|$1"),a=OpenLayers.String.trim(a).split("|"),b=[],c=0,d=a.length;c<d;++c)b.push(OpenLayers.Format.WKT.prototype.read.apply(this,[a[c]]));\n +return b}},CLASS_NAME:"OpenLayers.Format.WKT"});OpenLayers.Handler.Hover=OpenLayers.Class(OpenLayers.Handler,{delay:500,pixelTolerance:null,stopMove:!1,px:null,timerId:null,mousemove:function(a){this.passesTolerance(a.xy)&&(this.clearTimer(),this.callback("move",[a]),this.px=a.xy,a=OpenLayers.Util.extend({},a),this.timerId=window.setTimeout(OpenLayers.Function.bind(this.delayedCall,this,a),this.delay));return!this.stopMove},mouseout:function(a){OpenLayers.Util.mouseLeft(a,this.map.viewPortDiv)&&(this.clearTimer(),this.callback("move",[a]));return!0},\n +passesTolerance:function(a){var b=!0;this.pixelTolerance&&this.px&&Math.sqrt(Math.pow(this.px.x-a.x,2)+Math.pow(this.px.y-a.y,2))<this.pixelTolerance&&(b=!1);return b},clearTimer:function(){null!=this.timerId&&(window.clearTimeout(this.timerId),this.timerId=null)},delayedCall:function(a){this.callback("pause",[a])},deactivate:function(){var a=!1;OpenLayers.Handler.prototype.deactivate.apply(this,arguments)&&(this.clearTimer(),a=!0);return a},CLASS_NAME:"OpenLayers.Handler.Hover"});OpenLayers.Control.GetFeature=OpenLayers.Class(OpenLayers.Control,{protocol:null,multipleKey:null,toggleKey:null,modifiers:null,multiple:!1,click:!0,single:!0,clickout:!0,toggle:!1,clickTolerance:5,hover:!1,box:!1,maxFeatures:10,features:null,hoverFeature:null,handlerOptions:null,handlers:null,hoverResponse:null,filterType:OpenLayers.Filter.Spatial.BBOX,initialize:function(a){a.handlerOptions=a.handlerOptions||{};OpenLayers.Control.prototype.initialize.apply(this,[a]);this.features={};this.handlers=\n +{};this.click&&(this.handlers.click=new OpenLayers.Handler.Click(this,{click:this.selectClick},this.handlerOptions.click||{}));this.box&&(this.handlers.box=new OpenLayers.Handler.Box(this,{done:this.selectBox},OpenLayers.Util.extend(this.handlerOptions.box,{boxDivClassName:"olHandlerBoxSelectFeature"})));this.hover&&(this.handlers.hover=new OpenLayers.Handler.Hover(this,{move:this.cancelHover,pause:this.selectHover},OpenLayers.Util.extend(this.handlerOptions.hover,{delay:250,pixelTolerance:2})))},\n +activate:function(){if(!this.active)for(var a in this.handlers)this.handlers[a].activate();return OpenLayers.Control.prototype.activate.apply(this,arguments)},deactivate:function(){if(this.active)for(var a in this.handlers)this.handlers[a].deactivate();return OpenLayers.Control.prototype.deactivate.apply(this,arguments)},selectClick:function(a){var b=this.pixelToBounds(a.xy);this.setModifiers(a);this.request(b,{single:this.single})},selectBox:function(a){var b;if(a instanceof OpenLayers.Bounds)b=\n +this.map.getLonLatFromPixel({x:a.left,y:a.bottom}),a=this.map.getLonLatFromPixel({x:a.right,y:a.top}),b=new OpenLayers.Bounds(b.lon,b.lat,a.lon,a.lat);else{if(this.click)return;b=this.pixelToBounds(a)}this.setModifiers(this.handlers.box.dragHandler.evt);this.request(b)},selectHover:function(a){this.request(this.pixelToBounds(a.xy),{single:!0,hover:!0})},cancelHover:function(){this.hoverResponse&&(this.protocol.abort(this.hoverResponse),this.hoverResponse=null,OpenLayers.Element.removeClass(this.map.viewPortDiv,\n +"olCursorWait"))},request:function(a,b){var b=b||{},c=new OpenLayers.Filter.Spatial({type:this.filterType,value:a});OpenLayers.Element.addClass(this.map.viewPortDiv,"olCursorWait");c=this.protocol.read({maxFeatures:!0==b.single?this.maxFeatures:void 0,filter:c,callback:function(c){c.success()&&(c.features.length?!0==b.single?this.selectBestFeature(c.features,a.getCenterLonLat(),b):this.select(c.features):b.hover?this.hoverSelect():(this.events.triggerEvent("clickout"),this.clickout&&this.unselectAll()));\n +OpenLayers.Element.removeClass(this.map.viewPortDiv,"olCursorWait")},scope:this});!0==b.hover&&(this.hoverResponse=c)},selectBestFeature:function(a,b,c){c= + +]]></string> </value> + </item> + <item> + <key> <string>next</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAs=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="11" aka="AAAAAAAAAAs="> + <pickle> + <global name="Pdata" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +c||{};if(a.length){for(var b=new OpenLayers.Geometry.Point(b.lon,b.lat),d,e,f,g=Number.MAX_VALUE,h=0;h<a.length&&!(d=a[h],d.geometry&&(f=b.distanceTo(d.geometry,{edge:!1}),f<g&&(g=f,e=d,0==g)));++h);!0==c.hover?this.hoverSelect(e):this.select(e||a)}},setModifiers:function(a){this.modifiers={multiple:this.multiple||this.multipleKey&&a[this.multipleKey],\n +toggle:this.toggle||this.toggleKey&&a[this.toggleKey]}},select:function(a){!this.modifiers.multiple&&!this.modifiers.toggle&&this.unselectAll();OpenLayers.Util.isArray(a)||(a=[a]);var b=this.events.triggerEvent("beforefeaturesselected",{features:a});if(!1!==b){for(var c=[],d,e=0,f=a.length;e<f;++e)d=a[e],this.features[d.fid||d.id]?this.modifiers.toggle&&this.unselect(this.features[d.fid||d.id]):(b=this.events.triggerEvent("beforefeatureselected",{feature:d}),!1!==b&&(this.features[d.fid||d.id]=d,\n +c.push(d),this.events.triggerEvent("featureselected",{feature:d})));this.events.triggerEvent("featuresselected",{features:c})}},hoverSelect:function(a){var b=a?a.fid||a.id:null,c=this.hoverFeature?this.hoverFeature.fid||this.hoverFeature.id:null;c&&c!=b&&(this.events.triggerEvent("outfeature",{feature:this.hoverFeature}),this.hoverFeature=null);b&&b!=c&&(this.events.triggerEvent("hoverfeature",{feature:a}),this.hoverFeature=a)},unselect:function(a){delete this.features[a.fid||a.id];this.events.triggerEvent("featureunselected",\n +{feature:a})},unselectAll:function(){for(var a in this.features)this.unselect(this.features[a])},setMap:function(a){for(var b in this.handlers)this.handlers[b].setMap(a);OpenLayers.Control.prototype.setMap.apply(this,arguments)},pixelToBounds:function(a){var b=a.add(-this.clickTolerance/2,this.clickTolerance/2),a=a.add(this.clickTolerance/2,-this.clickTolerance/2),b=this.map.getLonLatFromPixel(b),a=this.map.getLonLatFromPixel(a);return new OpenLayers.Bounds(b.lon,b.lat,a.lon,a.lat)},CLASS_NAME:"OpenLayers.Control.GetFeature"});OpenLayers.Format.QueryStringFilter=function(){function a(a){a=a.replace(/%/g,"\\\\%");a=a.replace(/\\\\\\\\\\.(\\*)?/g,function(a,b){return b?a:"\\\\\\\\_"});a=a.replace(/\\\\\\\\\\.\\*/g,"\\\\\\\\%");a=a.replace(/(\\\\)?\\.(\\*)?/g,function(a,b,c){return b||c?a:"_"});a=a.replace(/(\\\\)?\\.\\*/g,function(a,b){return b?a:"%"});a=a.replace(/\\\\\\./g,".");return a=a.replace(/(\\\\)?\\\\\\*/g,function(a,b){return b?a:"*"})}var b={};b[OpenLayers.Filter.Comparison.EQUAL_TO]="eq";b[OpenLayers.Filter.Comparison.NOT_EQUAL_TO]="ne";b[OpenLayers.Filter.Comparison.LESS_THAN]=\n +"lt";b[OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO]="lte";b[OpenLayers.Filter.Comparison.GREATER_THAN]="gt";b[OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO]="gte";b[OpenLayers.Filter.Comparison.LIKE]="ilike";return OpenLayers.Class(OpenLayers.Format,{wildcarded:!1,srsInBBOX:!1,write:function(c,d){var d=d||{},e=c.CLASS_NAME,e=e.substring(e.lastIndexOf(".")+1);switch(e){case "Spatial":switch(c.type){case OpenLayers.Filter.Spatial.BBOX:d.bbox=c.value.toArray();this.srsInBBOX&&c.projection&&\n +d.bbox.push(c.projection.getCode());break;case OpenLayers.Filter.Spatial.DWITHIN:d.tolerance=c.distance;case OpenLayers.Filter.Spatial.WITHIN:d.lon=c.value.x;d.lat=c.value.y;break;default:OpenLayers.Console.warn("Unknown spatial filter type "+c.type)}break;case "Comparison":e=b[c.type];if(void 0!==e){var f=c.value;c.type==OpenLayers.Filter.Comparison.LIKE&&(f=a(f),this.wildcarded&&(f="%"+f+"%"));d[c.property+"__"+e]=f;d.queryable=d.queryable||[];d.queryable.push(c.property)}else OpenLayers.Console.warn("Unknown comparison filter type "+\n +c.type);break;case "Logical":if(c.type===OpenLayers.Filter.Logical.AND){e=0;for(f=c.filters.length;e<f;e++)d=this.write(c.filters[e],d)}else OpenLayers.Console.warn("Unsupported logical filter type "+c.type);break;default:OpenLayers.Console.warn("Unknown filter type "+e)}return d},CLASS_NAME:"OpenLayers.Format.QueryStringFilter"})}();OpenLayers.Control.MousePosition=OpenLayers.Class(OpenLayers.Control,{autoActivate:!0,element:null,prefix:"",separator:", ",suffix:"",numDigits:5,granularity:10,emptyString:null,lastXy:null,displayProjection:null,destroy:function(){this.deactivate();OpenLayers.Control.prototype.destroy.apply(this,arguments)},activate:function(){return OpenLayers.Control.prototype.activate.apply(this,arguments)?(this.map.events.register("mousemove",this,this.redraw),this.map.events.register("mouseout",this,this.reset),\n +this.redraw(),!0):!1},deactivate:function(){return OpenLayers.Control.prototype.deactivate.apply(this,arguments)?(this.map.events.unregister("mousemove",this,this.redraw),this.map.events.unregister("mouseout",this,this.reset),this.element.innerHTML="",!0):!1},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);this.element||(this.div.left="",this.div.top="",this.element=this.div);return this.div},redraw:function(a){var b;if(null==a)this.reset();else if(null==this.lastXy||Math.abs(a.xy.x-\n +this.lastXy.x)>this.granularity||Math.abs(a.xy.y-this.lastXy.y)>this.granularity)this.lastXy=a.xy;else if(b=this.map.getLonLatFromPixel(a.xy))this.displayProjection&&b.transform(this.map.getProjectionObject(),this.displayProjection),this.lastXy=a.xy,a=this.formatOutput(b),a!=this.element.innerHTML&&(this.element.innerHTML=a)},reset:function(){null!=this.emptyString&&(this.element.innerHTML=this.emptyString)},formatOutput:function(a){var b=parseInt(this.numDigits);return this.prefix+a.lon.toFixed(b)+\n +this.separator+a.lat.toFixed(b)+this.suffix},CLASS_NAME:"OpenLayers.Control.MousePosition"});OpenLayers.Control.Geolocate=OpenLayers.Class(OpenLayers.Control,{geolocation:navigator.geolocation,bind:!0,watch:!1,geolocationOptions:null,destroy:function(){this.deactivate();OpenLayers.Control.prototype.destroy.apply(this,arguments)},activate:function(){return!this.geolocation?(this.events.triggerEvent("locationuncapable"),!1):OpenLayers.Control.prototype.activate.apply(this,arguments)?(this.watch?this.watchId=this.geolocation.watchPosition(OpenLayers.Function.bind(this.geolocate,this),OpenLayers.Function.bind(this.failure,\n +this),this.geolocationOptions):this.getCurrentLocation(),!0):!1},deactivate:function(){this.active&&null!==this.watchId&&this.geolocation.clearWatch(this.watchId);return OpenLayers.Control.prototype.deactivate.apply(this,arguments)},geolocate:function(a){var b=(new OpenLayers.LonLat(a.coords.longitude,a.coords.latitude)).transform(new OpenLayers.Projection("EPSG:4326"),this.map.getProjectionObject());this.bind&&this.map.setCenter(b);this.events.triggerEvent("locationupdated",{position:a,point:new OpenLayers.Geometry.Point(b.lon,\n +b.lat)})},getCurrentLocation:function(){if(!this.active||this.watch)return!1;this.geolocation.getCurrentPosition(OpenLayers.Function.bind(this.geolocate,this),OpenLayers.Function.bind(this.failure,this),this.geolocationOptions);return!0},failure:function(a){this.events.triggerEvent("locationfailed",{error:a})},CLASS_NAME:"OpenLayers.Control.Geolocate"});OpenLayers.Tile.UTFGrid=OpenLayers.Class(OpenLayers.Tile,{url:null,utfgridResolution:2,json:null,format:null,destroy:function(){this.clear();OpenLayers.Tile.prototype.destroy.apply(this,arguments)},draw:function(){var a=OpenLayers.Tile.prototype.draw.apply(this,arguments);if(a)if(this.isLoading?(this.abortLoading(),this.events.triggerEvent("reload")):(this.isLoading=!0,this.events.triggerEvent("loadstart")),this.url=this.layer.getURL(this.bounds),this.layer.useJSONP){var b=new OpenLayers.Protocol.Script({url:this.url,\n +callback:function(a){this.isLoading=false;this.events.triggerEvent("loadend");this.json=a.data},scope:this});b.read();this.request=b}else this.request=OpenLayers.Request.GET({url:this.url,callback:function(a){this.isLoading=false;this.events.triggerEvent("loadend");a.status===200&&this.parseData(a.responseText)},scope:this});else this.unload();return a},abortLoading:function(){this.request&&(this.request.abort(),delete this.request);this.isLoading=!1},getFeatureInfo:function(a,b){var c=null;if(this.json){var d=\n +this.getFeatureId(a,b);null!==d&&(c={id:d,data:this.json.data[d]})}return c},getFeatureId:function(a,b){var c=null;if(this.json){var d=this.utfgridResolution,d=this.indexFromCharCode(this.json.grid[Math.floor(b/d)].charCodeAt(Math.floor(a/d))),e=this.json.keys;!isNaN(d)&&d in e&&(c=e[d])}return c},indexFromCharCode:function(a){93<=a&&a--;35<=a&&a--;return a-32},parseData:function(a){this.format||(this.format=new OpenLayers.Format.JSON);this.json=this.format.read(a)},clear:function(){this.json=null},\n +CLASS_NAME:"OpenLayers.Tile.UTFGrid"});OpenLayers.Control.NavigationHistory=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_TOGGLE,previous:null,previousOptions:null,next:null,nextOptions:null,limit:50,autoActivate:!0,clearOnDeactivate:!1,registry:null,nextStack:null,previousStack:null,listeners:null,restoring:!1,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,[a]);this.registry=OpenLayers.Util.extend({moveend:this.getState},this.registry);a={trigger:OpenLayers.Function.bind(this.previousTrigger,\n +this),displayClass:this.displayClass+" "+this.displayClass+"Previous"};OpenLayers.Util.extend(a,this.previousOptions);this.previous=new OpenLayers.Control.Button(a);a={trigger:OpenLayers.Function.bind(this.nextTrigger,this),displayClass:this.displayClass+" "+this.displayClass+"Next"};OpenLayers.Util.extend(a,this.nextOptions);this.next=new OpenLayers.Control.Button(a);this.clear()},onPreviousChange:function(a){a&&!this.previous.active?this.previous.activate():!a&&this.previous.active&&this.previous.deactivate()},\n +onNextChange:function(a){a&&!this.next.active?this.next.activate():!a&&this.next.active&&this.next.deactivate()},destroy:function(){OpenLayers.Control.prototype.destroy.apply(this);this.previous.destroy();this.next.destroy();this.deactivate();for(var a in this)this[a]=null},setMap:function(a){this.map=a;this.next.setMap(a);this.previous.setMap(a)},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);this.next.draw();this.previous.draw()},previousTrigger:function(){var a=this.previousStack.shift(),\n +b=this.previousStack.shift();void 0!=b?(this.nextStack.unshift(a),this.previousStack.unshift(b),this.restoring=!0,this.restore(b),this.restoring=!1,this.onNextChange(this.nextStack[0],this.nextStack.length),this.onPreviousChange(this.previousStack[1],this.previousStack.length-1)):this.previousStack.unshift(a);return b},nextTrigger:function(){var a=this.nextStack.shift();void 0!=a&&(this.previousStack.unshift(a),this.restoring=!0,this.restore(a),this.restoring=!1,this.onNextChange(this.nextStack[0],\n +this.nextStack.length),this.onPreviousChange(this.previousStack[1],this.previousStack.length-1));return a},clear:function(){this.previousStack=[];this.previous.deactivate();this.nextStack=[];this.next.deactivate()},getState:function(){return{center:this.map.getCenter(),resolution:this.map.getResolution(),projection:this.map.getProjectionObject(),units:this.map.getProjectionObject().getUnits()||this.map.units||this.map.baseLayer.units}},restore:function(a){var b,c;if(this.map.getProjectionObject()==\n +a.projection)c=this.map.getZoomForResolution(a.resolution),b=a.center;else{b=a.center.clone();b.transform(a.projection,this.map.getProjectionObject());c=a.units;var d=this.map.getProjectionObject().getUnits()||this.map.units||this.map.baseLayer.units;c=this.map.getZoomForResolution((c&&d?OpenLayers.INCHES_PER_UNIT[c]/OpenLayers.INCHES_PER_UNIT[d]:1)*a.resolution)}this.map.setCenter(b,c)},setListeners:function(){this.listeners={};for(var a in this.registry)this.listeners[a]=OpenLayers.Function.bind(function(){if(!this.restoring){this.previousStack.unshift(this.registry[a].apply(this,\n +arguments));if(1<this.previousStack.length)this.onPreviousChange(this.previousStack[1],this.previousStack.length-1);this.previousStack.length>this.limit+1&&this.previousStack.pop();0<this.nextStack.length&&(this.nextStack=[],this.onNextChange(null,0))}return!0},this)},activate:function(){var a=!1;if(this.map&&OpenLayers.Control.prototype.activate.apply(this)){null==this.listeners&&this.setListeners();for(var b in this.listeners)this.map.events.register(b,this,this.listeners[b]);a=!0;0==this.previousStack.length&&\n +this.initStack()}return a},initStack:function(){this.map.getCenter()&&this.listeners.moveend()},deactivate:function(){var a=!1;if(this.map&&OpenLayers.Control.prototype.deactivate.apply(this)){for(var b in this.listeners)this.map.events.unregister(b,this,this.listeners[b]);this.clearOnDeactivate&&this.clear();a=!0}return a},CLASS_NAME:"OpenLayers.Control.NavigationHistory"});OpenLayers.Protocol.HTTP=OpenLayers.Class(OpenLayers.Protocol,{url:null,headers:null,params:null,callback:null,scope:null,readWithPOST:!1,updateWithPOST:!1,deleteWithPOST:!1,wildcarded:!1,srsInBBOX:!1,initialize:function(a){a=a||{};this.params={};this.headers={};OpenLayers.Protocol.prototype.initialize.apply(this,arguments);if(!this.filterToParams&&OpenLayers.Format.QueryStringFilter){var b=new OpenLayers.Format.QueryStringFilter({wildcarded:this.wildcarded,srsInBBOX:this.srsInBBOX});this.filterToParams=\n +function(a,d){return b.write(a,d)}}},destroy:function(){this.headers=this.params=null;OpenLayers.Protocol.prototype.destroy.apply(this)},read:function(a){OpenLayers.Protocol.prototype.read.apply(this,arguments);a=a||{};a.params=OpenLayers.Util.applyDefaults(a.params,this.options.params);a=OpenLayers.Util.applyDefaults(a,this.options);a.filter&&this.filterToParams&&(a.params=this.filterToParams(a.filter,a.params));var b=void 0!==a.readWithPOST?a.readWithPOST:this.readWithPOST,c=new OpenLayers.Protocol.Response({requestType:"read"});\n +b?(b=a.headers||{},b["Content-Type"]="application/x-www-form-urlencoded",c.priv=OpenLayers.Request.POST({url:a.url,callback:this.createCallback(this.handleRead,c,a),data:OpenLayers.Util.getParameterString(a.params),headers:b})):c.priv=OpenLayers.Request.GET({url:a.url,callback:this.createCallback(this.handleRead,c,a),params:a.params,headers:a.headers});return c},handleRead:function(a,b){this.handleResponse(a,b)},create:function(a,b){var b=OpenLayers.Util.applyDefaults(b,this.options),c=new OpenLayers.Protocol.Response({reqFeatures:a,\n +requestType:"create"});c.priv=OpenLayers.Request.POST({url:b.url,callback:this.createCallback(this.handleCreate,c,b),headers:b.headers,data:this.format.write(a)});return c},handleCreate:function(a,b){this.handleResponse(a,b)},update:function(a,b){var b=b||{},c=b.url||a.url||this.options.url+"/"+a.fid,b=OpenLayers.Util.applyDefaults(b,this.options),d=new OpenLayers.Protocol.Response({reqFeatures:a,requestType:"update"});d.priv=OpenLayers.Request[this.updateWithPOST?"POST":"PUT"]({url:c,callback:this.createCallback(this.handleUpdate,\n +d,b),headers:b.headers,data:this.format.write(a)});return d},handleUpdate:function(a,b){this.handleResponse(a,b)},"delete":function(a,b){var b=b||{},c=b.url||a.url||this.options.url+"/"+a.fid,b=OpenLayers.Util.applyDefaults(b,this.options),d=new OpenLayers.Protocol.Response({reqFeatures:a,requestType:"delete"}),e=this.deleteWithPOST?"POST":"DELETE",c={url:c,callback:this.createCallback(this.handleDelete,d,b),headers:b.headers};this.deleteWithPOST&&(c.data=this.format.write(a));d.priv=OpenLayers.Request[e](c);\n +return d},handleDelete:function(a,b){this.handleResponse(a,b)},handleResponse:function(a,b){var c=a.priv;b.callback&&(200<=c.status&&300>c.status?("delete"!=a.requestType&&(a.features=this.parseFeatures(c)),a.code=OpenLayers.Protocol.Response.SUCCESS):a.code=OpenLayers.Protocol.Response.FAILURE,b.callback.call(b.scope,a))},parseFeatures:function(a){var b=a.responseXML;if(!b||!b.documentElement)b=a.responseText;return!b||0>=b.length?null:this.format.read(b)},commit:function(a,b){function c(a){for(var b=\n +a.features?a.features.length:0,c=Array(b),e=0;e<b;++e)c[e]=a.features[e].fid;o.insertIds=c;d.apply(this,[a])}function d(a){this.callUserCallback(a,b);n=n&&a.success();f++;f>=m&&b.callback&&(o.code=n?OpenLayers.Protocol.Response.SUCCESS:OpenLayers.Protocol.Response.FAILURE,b.callback.apply(b.scope,[o]))}var b=OpenLayers.Util.applyDefaults(b,this.options),e=[],f=0,g={};g[OpenLayers.State.INSERT]=[];g[OpenLayers.State.UPDATE]=[];g[OpenLayers.State.DELETE]=[];for(var h,i,j=[],k=0,l=a.length;k<l;++k)if(h=\n +a[k],i=g[h.state])i.push(h),j.push(h);var m=(0<g[OpenLayers.State.INSERT].length?1:0)+g[OpenLayers.State.UPDATE].length+g[OpenLayers.State.DELETE].length,n=!0,o=new OpenLayers.Protocol.Response({reqFeatures:j});h=g[OpenLayers.State.INSERT];0<h.length&&e.push(this.create(h,OpenLayers.Util.applyDefaults({callback:c,scope:this},b.create)));h=g[OpenLayers.State.UPDATE];for(k=h.length-1;0<=k;--k)e.push(this.update(h[k],OpenLayers.Util.applyDefaults({callback:d,scope:this},b.update)));h=g[OpenLayers.State.DELETE];\n +for(k=h.length-1;0<=k;--k)e.push(this["delete"](h[k],OpenLayers.Util.applyDefaults({callback:d,scope:this},b["delete"])));return e},abort:function(a){a&&a.priv.abort()},callUserCallback:function(a,b){var c=b[a.requestType];c&&c.callback&&c.callback.call(c.scope,a)},CLASS_NAME:"OpenLayers.Protocol.HTTP"});OpenLayers.Strategy.Cluster=OpenLayers.Class(OpenLayers.Strategy,{distance:20,threshold:null,features:null,clusters:null,clustering:!1,resolution:null,activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);if(a)this.layer.events.on({beforefeaturesadded:this.cacheFeatures,moveend:this.cluster,scope:this});return a},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);a&&(this.clearCache(),this.layer.events.un({beforefeaturesadded:this.cacheFeatures,moveend:this.cluster,\n +scope:this}));return a},cacheFeatures:function(a){var b=!0;this.clustering||(this.clearCache(),this.features=a.features,this.cluster(),b=!1);return b},clearCache:function(){this.features=null},cluster:function(a){if((!a||a.zoomChanged)&&this.features)if(a=this.layer.map.getResolution(),a!=this.resolution||!this.clustersExist()){this.resolution=a;for(var a=[],b,c,d,e=0;e<this.features.length;++e)if(b=this.features[e],b.geometry){c=!1;for(var f=a.length-1;0<=f;--f)if(d=a[f],this.shouldCluster(d,b)){this.addToCluster(d,\n +b);c=!0;break}c||a.push(this.createCluster(this.features[e]))}this.layer.removeAllFeatures();if(0<a.length){if(1<this.threshold){b=a.slice();a=[];e=0;for(d=b.length;e<d;++e)c=b[e],c.attributes.count<this.threshold?Array.prototype.push.apply(a,c.cluster):a.push(c)}this.clustering=!0;this.layer.addFeatures(a);this.clustering=!1}this.clusters=a}},clustersExist:function(){var a=!1;if(this.clusters&&0<this.clusters.length&&this.clusters.length==this.layer.features.length)for(var a=!0,b=0;b<this.clusters.length;++b)if(this.clusters[b]!=\n +this.layer.features[b]){a=!1;break}return a},shouldCluster:function(a,b){var c=a.geometry.getBounds().getCenterLonLat(),d=b.geometry.getBounds().getCenterLonLat();return Math.sqrt(Math.pow(c.lon-d.lon,2)+Math.pow(c.lat-d.lat,2))/this.resolution<=this.distance},addToCluster:function(a,b){a.cluster.push(b);a.attributes.count+=1},createCluster:function(a){var b=a.geometry.getBounds().getCenterLonLat(),b=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(b.lon,b.lat),{count:1});b.cluster=[a];\n +return b},CLASS_NAME:"OpenLayers.Strategy.Cluster"});OpenLayers.Strategy.Filter=OpenLayers.Class(OpenLayers.Strategy,{filter:null,cache:null,caching:!1,activate:function(){var a=OpenLayers.Strategy.prototype.activate.apply(this,arguments);a&&(this.cache=[],this.layer.events.on({beforefeaturesadded:this.handleAdd,beforefeaturesremoved:this.handleRemove,scope:this}));return a},deactivate:function(){this.cache=null;this.layer&&this.layer.events&&this.layer.events.un({beforefeaturesadded:this.handleAdd,beforefeaturesremoved:this.handleRemove,scope:this});\n +return OpenLayers.Strategy.prototype.deactivate.apply(this,arguments)},handleAdd:function(a){if(!this.caching&&this.filter){var b=a.features;a.features=[];for(var c,d=0,e=b.length;d<e;++d)c=b[d],this.filter.evaluate(c)?a.features.push(c):this.cache.push(c)}},handleRemove:function(){this.caching||(this.cache=[])},setFilter:function(a){this.filter=a;a=this.cache;this.cache=[];this.handleAdd({features:this.layer.features});0<this.cache.length&&(this.caching=!0,this.layer.removeFeatures(this.cache.slice()),\n +this.caching=!1);0<a.length&&(a={features:a},this.handleAdd(a),0<a.features.length&&(this.caching=!0,this.layer.addFeatures(a.features),this.caching=!1))},CLASS_NAME:"OpenLayers.Strategy.Filter"});OpenLayers.Protocol.SOS=function(a){var a=OpenLayers.Util.applyDefaults(a,OpenLayers.Protocol.SOS.DEFAULTS),b=OpenLayers.Protocol.SOS["v"+a.version.replace(/\\./g,"_")];if(!b)throw"Unsupported SOS version: "+a.version;return new b(a)};OpenLayers.Protocol.SOS.DEFAULTS={version:"1.0.0"};OpenLayers.Format.WFSDescribeFeatureType=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{xsd:"http://www.w3.org/2001/XMLSchema"},readers:{xsd:{schema:function(a,b){var c=[],d={};this.readChildNodes(a,{complexTypes:c,customTypes:d});for(var e=a.attributes,f,g,h=0,i=e.length;h<i;++h)f=e[h],g=f.name,0==g.indexOf("xmlns")?this.setNamespace(g.split(":")[1]||"",f.value):b[g]=f.value;b.featureTypes=c;b.targetPrefix=this.namespaceAlias[b.targetNamespace];h=0;for(i=c.length;h<i;++h)e=c[h],f=d[e.typeName],\n +d[e.typeName]&&(e.typeName=f.name)},complexType:function(a,b){var c={typeName:a.getAttribute("name")};this.readChildNodes(a,c);b.complexTypes.push(c)},complexContent:function(a,b){this.readChildNodes(a,b)},extension:function(a,b){this.readChildNodes(a,b)},sequence:function(a,b){var c={elements:[]};this.readChildNodes(a,c);b.properties=c.elements},element:function(a,b){if(b.elements){for(var c={},d=a.attributes,e,f=0,g=d.length;f<g;++f)e=d[f],c[e.name]=e.value;d=c.type;d||(d={},this.readChildNodes(a,\n +d),c.restriction=d,c.type=d.base);c.localType=(d.base||d).split(":").pop();b.elements.push(c)}b.complexTypes&&(d=a.getAttribute("type"),c=d.split(":").pop(),b.customTypes[c]={name:a.getAttribute("name"),type:d})},simpleType:function(a,b){this.readChildNodes(a,b)},restriction:function(a,b){b.base=a.getAttribute("base");this.readRestriction(a,b)}}},readRestriction:function(a,b){for(var c=a.childNodes,d,e,f=0,g=c.length;f<g;++f)d=c[f],1==d.nodeType&&(e=d.nodeName.split(":").pop(),d=d.getAttribute("value"),\n +b[e]?("string"==typeof b[e]&&(b[e]=[b[e]]),b[e].push(d)):b[e]=d)},read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.readNode(a,b);return b},CLASS_NAME:"OpenLayers.Format.WFSDescribeFeatureType"});OpenLayers.Format.GeoRSS=OpenLayers.Class(OpenLayers.Format.XML,{rssns:"http://backend.userland.com/rss2",featureNS:"http://mapserver.gis.umn.edu/mapserver",georssns:"http://www.georss.org/georss",geons:"http://www.w3.org/2003/01/geo/wgs84_pos#",featureTitle:"Untitled",featureDescription:"No Description",gmlParser:null,xy:!1,createGeometryFromItem:function(a){var b=this.getElementsByTagNameNS(a,this.georssns,"point"),c=this.getElementsByTagNameNS(a,this.geons,"lat"),d=this.getElementsByTagNameNS(a,\n +this.geons,"long"),e=this.getElementsByTagNameNS(a,this.georssns,"line"),f=this.getElementsByTagNameNS(a,this.georssns,"polygon"),g=this.getElementsByTagNameNS(a,this.georssns,"where"),a=this.getElementsByTagNameNS(a,this.georssns,"box");if(0<b.length||0<c.length&&0<d.length){0<b.length?(c=OpenLayers.String.trim(b[0].firstChild.nodeValue).split(/\\s+/),2!=c.length&&(c=OpenLayers.String.trim(b[0].firstChild.nodeValue).split(/\\s*,\\s*/))):c=[parseFloat(c[0].firstChild.nodeValue),parseFloat(d[0].firstChild.nodeValue)];\n +var h=new OpenLayers.Geometry.Point(c[1],c[0])}else if(0<e.length){c=OpenLayers.String.trim(this.getChildValue(e[0])).split(/\\s+/);d=[];e=0;for(f=c.length;e<f;e+=2)b=new OpenLayers.Geometry.Point(c[e+1],c[e]),d.push(b);h=new OpenLayers.Geometry.LineString(d)}else if(0<f.length){c=OpenLayers.String.trim(this.getChildValue(f[0])).split(/\\s+/);d=[];e=0;for(f=c.length;e<f;e+=2)b=new OpenLayers.Geometry.Point(c[e+1],c[e]),d.push(b);h=new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing(d)])}else 0<\n +g.length?(this.gmlParser||(this.gmlParser=new OpenLayers.Format.GML({xy:this.xy})),h=this.gmlParser.parseFeature(g[0]).geometry):0<a.length&&(c=OpenLayers.String.trim(a[0].firstChild.nodeValue).split(/\\s+/),d=[],3<c.length&&(b=new OpenLayers.Geometry.Point(c[1],c[0]),d.push(b),b=new OpenLayers.Geometry.Point(c[1],c[2]),d.push(b),b=new OpenLayers.Geometry.Point(c[3],c[2]),d.push(b),b=new OpenLayers.Geometry.Point(c[3],c[0]),d.push(b),b=new OpenLayers.Geometry.Point(c[1],c[0]),d.push(b)),h=new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing(d)]));\n +h&&(this.internalProjection&&this.externalProjection)&&h.transform(this.externalProjection,this.internalProjection);return h},createFeatureFromItem:function(a){var b=this.createGeometryFromItem(a),c=this._getChildValue(a,"*","title",this.featureTitle),d=this._getChildValue(a,"*","description",this._getChildValue(a,"*","content",this._getChildValue(a,"*","summary",this.featureDescription))),e=this._getChildValue(a,"*","link");if(!e)try{e=this.getElementsByTagNameNS(a,"*","link")[0].getAttribute("href")}catch(f){e=\n +null}a=this._getChildValue(a,"*","id",null);b=new OpenLayers.Feature.Vector(b,{title:c,description:d,link:e});b.fid=a;return b},_getChildValue:function(a,b,c,d){return(a=this.getElementsByTagNameNS(a,b,c))&&a[0]&&a[0].firstChild&&a[0].firstChild.nodeValue?this.getChildValue(a[0]):void 0==d?"":d},read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var b=null,b=this.getElementsByTagNameNS(a,"*","item");0==b.length&&(b=this.getElementsByTagNameNS(a,"*","entry"));\n +for(var a=b.length,c=Array(a),d=0;d<a;d++)c[d]=this.createFeatureFromItem(b[d]);return c},write:function(a){var b;if(OpenLayers.Util.isArray(a)){b=this.createElementNS(this.rssns,"rss");for(var c=0,d=a.length;c<d;c++)b.appendChild(this.createFeatureXML(a[c]))}else b=this.createFeatureXML(a);return OpenLayers.Format.XML.prototype.write.apply(this,[b])},createFeatureXML:function(a){var b=this.buildGeometryNode(a.geometry),c=this.createElementNS(this.rssns,"item"),d=this.createElementNS(this.rssns,"title");\n +d.appendChild(this.createTextNode(a.attributes.title?a.attributes.title:""));var e=this.createElementNS(this.rssns,"description");e.appendChild(this.createTextNode(a.attributes.description?a.attributes.description:""));c.appendChild(d);c.appendChild(e);a.attributes.link&&(d=this.createElementNS(this.rssns,"link"),d.appendChild(this.createTextNode(a.attributes.link)),c.appendChild(d));for(var f in a.attributes)"link"==f||("title"==f||"description"==f)||(d=this.createTextNode(a.attributes[f]),e=f,-1!=\n +f.search(":")&&(e=f.split(":")[1]),e=this.createElementNS(this.featureNS,"feature:"+e),e.appendChild(d),c.appendChild(e));c.appendChild(b);return c},buildGeometryNode:function(a){this.internalProjection&&this.externalProjection&&(a=a.clone(),a.transform(this.internalProjection,this.externalProjection));var b;if("OpenLayers.Geometry.Polygon"==a.CLASS_NAME)b=this.createElementNS(this.georssns,"georss:polygon"),b.appendChild(this.buildCoordinatesNode(a.components[0]));else if("OpenLayers.Geometry.LineString"==\n +a.CLASS_NAME)b=this.createElementNS(this.georssns,"georss:line"),b.appendChild(this.buildCoordinatesNode(a));else if("OpenLayers.Geometry.Point"==a.CLASS_NAME)b=this.createElementNS(this.georssns,"georss:point"),b.appendChild(this.buildCoordinatesNode(a));else throw"Couldn\'t parse "+a.CLASS_NAME;return b},buildCoordinatesNode:function(a){var b=null;a.components&&(b=a.components);if(b){for(var a=b.length,c=Array(a),d=0;d<a;d++)c[d]=b[d].y+" "+b[d].x;b=c.join(" ")}else b=a.y+" "+a.x;return this.createTextNode(b)},\n +CLASS_NAME:"OpenLayers.Format.GeoRSS"});OpenLayers.Format.WPSCapabilities=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.0.0",CLASS_NAME:"OpenLayers.Format.WPSCapabilities"});OpenLayers.Format.WPSCapabilities.v1_0_0=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ows:"http://www.opengis.net/ows/1.1",wps:"http://www.opengis.net/wps/1.0.0",xlink:"http://www.w3.org/1999/xlink"},regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));a&&9==a.nodeType&&(a=a.documentElement);\n +var b={};this.readNode(a,b);return b},readers:{wps:{Capabilities:function(a,b){this.readChildNodes(a,b)},ProcessOfferings:function(a,b){b.processOfferings={};this.readChildNodes(a,b.processOfferings)},Process:function(a,b){var c={processVersion:this.getAttributeNS(a,this.namespaces.wps,"processVersion")};this.readChildNodes(a,c);b[c.identifier]=c},Languages:function(a,b){b.languages=[];this.readChildNodes(a,b.languages)},Default:function(a,b){var c={isDefault:!0};this.readChildNodes(a,c);b.push(c)},\n +Supported:function(a,b){var c={};this.readChildNodes(a,c);b.push(c)}},ows:OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers.ows},CLASS_NAME:"OpenLayers.Format.WPSCapabilities.v1_0_0"});OpenLayers.Control.PinchZoom=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_TOOL,containerCenter:null,pinchOrigin:null,currentCenter:null,autoActivate:!0,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,arguments);this.handler=new OpenLayers.Handler.Pinch(this,{start:this.pinchStart,move:this.pinchMove,done:this.pinchDone},this.handlerOptions)},activate:function(){var a=OpenLayers.Control.prototype.activate.apply(this,arguments);a&&(this.map.events.on({moveend:this.updateContainerCenter,\n +scope:this}),this.updateContainerCenter());return a},deactivate:function(){var a=OpenLayers.Control.prototype.deactivate.apply(this,arguments);this.map&&this.map.events&&this.map.events.un({moveend:this.updateContainerCenter,scope:this});return a},updateContainerCenter:function(){var a=this.map.layerContainerDiv;this.containerCenter={x:parseInt(a.style.left,10)+50,y:parseInt(a.style.top,10)+50}},pinchStart:function(a){this.currentCenter=this.pinchOrigin=a.xy},pinchMove:function(a,b){var c=b.scale,\n +d=this.containerCenter,e=this.pinchOrigin,f=a.xy,g=Math.round(f.x-e.x+(c-1)*(d.x-e.x)),d=Math.round(f.y-e.y+(c-1)*(d.y-e.y));this.applyTransform("translate("+g+"px, "+d+"px) scale("+c+")");this.currentCenter=f},applyTransform:function(a){var b=this.map.layerContainerDiv.style;b["-webkit-transform"]=a;b["-moz-transform"]=a},pinchDone:function(a,b,c){this.applyTransform("");a=this.map.getZoomForResolution(this.map.getResolution()/c.scale,!0);if(a!==this.map.getZoom()||!this.currentCenter.equals(this.pinchOrigin)){var b=\n +this.map.getResolutionForZoom(a),c=this.map.getLonLatFromPixel(this.pinchOrigin),d=this.currentCenter,e=this.map.getSize();c.lon+=b*(e.w/2-d.x);c.lat-=b*(e.h/2-d.y);this.map.div.clientWidth=this.map.div.clientWidth;this.map.setCenter(c,a)}},CLASS_NAME:"OpenLayers.Control.PinchZoom"});OpenLayers.Control.TouchNavigation=OpenLayers.Class(OpenLayers.Control,{dragPan:null,dragPanOptions:null,pinchZoom:null,pinchZoomOptions:null,clickHandlerOptions:null,documentDrag:!1,autoActivate:!0,initialize:function(a){this.handlers={};OpenLayers.Control.prototype.initialize.apply(this,arguments)},destroy:function(){this.deactivate();this.dragPan&&this.dragPan.destroy();this.dragPan=null;this.pinchZoom&&(this.pinchZoom.destroy(),delete this.pinchZoom);OpenLayers.Control.prototype.destroy.apply(this,\n +arguments)},activate:function(){return OpenLayers.Control.prototype.activate.apply(this,arguments)?(this.dragPan.activate(),this.handlers.click.activate(),this.pinchZoom.activate(),!0):!1},deactivate:function(){return OpenLayers.Control.prototype.deactivate.apply(this,arguments)?(this.dragPan.deactivate(),this.handlers.click.deactivate(),this.pinchZoom.deactivate(),!0):!1},draw:function(){var a={click:this.defaultClick,dblclick:this.defaultDblClick},b=OpenLayers.Util.extend({"double":!0,stopDouble:!0,\n +pixelTolerance:2},this.clickHandlerOptions);this.handlers.click=new OpenLayers.Handler.Click(this,a,b);this.dragPan=new OpenLayers.Control.DragPan(OpenLayers.Util.extend({map:this.map,documentDrag:this.documentDrag},this.dragPanOptions));this.dragPan.draw();this.pinchZoom=new OpenLayers.Control.PinchZoom(OpenLayers.Util.extend({map:this.map},this.pinchZoomOptions))},defaultClick:function(a){a.lastTouches&&2==a.lastTouches.length&&this.map.zoomOut()},defaultDblClick:function(a){this.map.setCenter(this.map.getLonLatFromViewPortPx(a.xy),\n +this.map.zoom+1)},CLASS_NAME:"OpenLayers.Control.TouchNavigation"});OpenLayers.Style2=OpenLayers.Class({id:null,name:null,title:null,description:null,layerName:null,isDefault:!1,rules:null,initialize:function(a){OpenLayers.Util.extend(this,a);this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},destroy:function(){for(var a=0,b=this.rules.length;a<b;a++)this.rules[a].destroy();delete this.rules},clone:function(){var a=OpenLayers.Util.extend({},this);if(this.rules){a.rules=[];for(var b=0,c=this.rules.length;b<c;++b)a.rules.push(this.rules[b].clone())}return new OpenLayers.Style2(a)},\n +CLASS_NAME:"OpenLayers.Style2"});OpenLayers.Format.WFS=OpenLayers.Class(OpenLayers.Format.GML,{layer:null,wfsns:"http://www.opengis.net/wfs",ogcns:"http://www.opengis.net/ogc",initialize:function(a,b){OpenLayers.Format.GML.prototype.initialize.apply(this,[a]);this.layer=b;this.layer.featureNS&&(this.featureNS=this.layer.featureNS);this.layer.options.geometry_column&&(this.geometryName=this.layer.options.geometry_column);this.layer.options.typename&&(this.featureName=this.layer.options.typename)},write:function(a){var b=this.createElementNS(this.wfsns,\n +"wfs:Transaction");b.setAttribute("version","1.0.0");b.setAttribute("service","WFS");for(var c=0;c<a.length;c++)switch(a[c].state){case OpenLayers.State.INSERT:b.appendChild(this.insert(a[c]));break;case OpenLayers.State.UPDATE:b.appendChild(this.update(a[c]));break;case OpenLayers.State.DELETE:b.appendChild(this.remove(a[c]))}return OpenLayers.Format.XML.prototype.write.apply(this,[b])},createFeatureXML:function(a){var b=this.buildGeometryNode(a.geometry),c=this.createElementNS(this.featureNS,"feature:"+\n +this.geometryName);c.appendChild(b);b=this.createElementNS(this.featureNS,"feature:"+this.featureName);b.appendChild(c);for(var d in a.attributes){var c=this.createTextNode(a.attributes[d]),e=d;-1!=d.search(":")&&(e=d.split(":")[1]);e=this.createElementNS(this.featureNS,"feature:"+e);e.appendChild(c);b.appendChild(e)}return b},insert:function(a){var b=this.createElementNS(this.wfsns,"wfs:Insert");b.appendChild(this.createFeatureXML(a));return b},update:function(a){a.fid||OpenLayers.Console.userError(OpenLayers.i18n("noFID"));\n +var b=this.createElementNS(this.wfsns,"wfs:Update");b.setAttribute("typeName",this.featurePrefix+":"+this.featureName);b.setAttribute("xmlns:"+this.featurePrefix,this.featureNS);var c=this.createElementNS(this.wfsns,"wfs:Property"),d=this.createElementNS(this.wfsns,"wfs:Name"),e=this.createTextNode(this.geometryName);d.appendChild(e);c.appendChild(d);d=this.createElementNS(this.wfsns,"wfs:Value");e=this.buildGeometryNode(a.geometry);a.layer&&e.setAttribute("srsName",a.layer.projection.getCode());\n +d.appendChild(e);c.appendChild(d);b.appendChild(c);for(var f in a.attributes)c=this.createElementNS(this.wfsns,"wfs:Property"),d=this.createElementNS(this.wfsns,"wfs:Name"),d.appendChild(this.createTextNode(f)),c.appendChild(d),d=this.createElementNS(this.wfsns,"wfs:Value"),d.appendChild(this.createTextNode(a.attributes[f])),c.appendChild(d),b.appendChild(c);c=this.createElementNS(this.ogcns,"ogc:Filter");f=this.createElementNS(this.ogcns,"ogc:FeatureId");f.setAttribute("fid",a.fid);c.appendChild(f);\n +b.appendChild(c);return b},remove:function(a){if(!a.fid)return OpenLayers.Console.userError(OpenLayers.i18n("noFID")),!1;var b=this.createElementNS(this.wfsns,"wfs:Delete");b.setAttribute("typeName",this.featurePrefix+":"+this.featureName);b.setAttribute("xmlns:"+this.featurePrefix,this.featureNS);var c=this.createElementNS(this.ogcns,"ogc:Filter"),d=this.createElementNS(this.ogcns,"ogc:FeatureId");d.setAttribute("fid",a.fid);c.appendChild(d);b.appendChild(c);return b},destroy:function(){this.layer=\n +null},CLASS_NAME:"OpenLayers.Format.WFS"});OpenLayers.Format.SLD.v1_0_0_GeoServer=OpenLayers.Class(OpenLayers.Format.SLD.v1_0_0,{version:"1.0.0",profile:"GeoServer",readers:OpenLayers.Util.applyDefaults({sld:OpenLayers.Util.applyDefaults({Priority:function(a,b){var c=this.readers.ogc._expression.call(this,a);c&&(b.priority=c)},VendorOption:function(a,b){b.vendorOptions||(b.vendorOptions={});b.vendorOptions[a.getAttribute("name")]=this.getChildValue(a)}},OpenLayers.Format.SLD.v1_0_0.prototype.readers.sld)},OpenLayers.Format.SLD.v1_0_0.prototype.readers),\n +writers:OpenLayers.Util.applyDefaults({sld:OpenLayers.Util.applyDefaults({Priority:function(a){return this.writers.sld._OGCExpression.call(this,"sld:Priority",a)},VendorOption:function(a){return this.createElementNSPlus("sld:VendorOption",{attributes:{name:a.name},value:a.value})},TextSymbolizer:function(a){var b=OpenLayers.Format.SLD.v1_0_0.prototype.writers.sld.TextSymbolizer.apply(this,arguments);!1!==a.graphic&&(a.externalGraphic||a.graphicName)&&this.writeNode("Graphic",a,b);"priority"in a&&\n +this.writeNode("Priority",a.priority,b);return this.addVendorOptions(b,a)},PointSymbolizer:function(a){return this.addVendorOptions(OpenLayers.Format.SLD.v1_0_0.prototype.writers.sld.PointSymbolizer.apply(this,arguments),a)},LineSymbolizer:function(a){return this.addVendorOptions(OpenLayers.Format.SLD.v1_0_0.prototype.writers.sld.LineSymbolizer.apply(this,arguments),a)},PolygonSymbolizer:function(a){return this.addVendorOptions(OpenLayers.Format.SLD.v1_0_0.prototype.writers.sld.PolygonSymbolizer.apply(this,\n +arguments),a)}},OpenLayers.Format.SLD.v1_0_0.prototype.writers.sld)},OpenLayers.Format.SLD.v1_0_0.prototype.writers),addVendorOptions:function(a,b){if(b.vendorOptions)for(var c in b.vendorOptions)this.writeNode("VendorOption",{name:c,value:b.vendorOptions[c]},a);return a},CLASS_NAME:"OpenLayers.Format.SLD.v1_0_0_GeoServer"});OpenLayers.Layer.Boxes=OpenLayers.Class(OpenLayers.Layer.Markers,{drawMarker:function(a){var b=this.map.getLayerPxFromLonLat({lon:a.bounds.left,lat:a.bounds.top}),c=this.map.getLayerPxFromLonLat({lon:a.bounds.right,lat:a.bounds.bottom});null==c||null==b?a.display(!1):(b=a.draw(b,{w:Math.max(1,c.x-b.x),h:Math.max(1,c.y-b.y)}),a.drawn||(this.div.appendChild(b),a.drawn=!0))},removeMarker:function(a){OpenLayers.Util.removeItem(this.markers,a);null!=a.div&&a.div.parentNode==this.div&&this.div.removeChild(a.div)},\n +CLASS_NAME:"OpenLayers.Layer.Boxes"});OpenLayers.Format.WFSCapabilities.v1_0_0=OpenLayers.Class(OpenLayers.Format.WFSCapabilities.v1,{readers:{wfs:OpenLayers.Util.applyDefaults({Service:function(a,b){b.service={};this.readChildNodes(a,b.service)},Fees:function(a,b){var c=this.getChildValue(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},AccessConstraints:function(a,b){var c=this.getChildValue(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},OnlineResource:function(a,b){var c=this.getChildValue(a);c&&"none"!=c.toLowerCase()&&(b.onlineResource=\n +c)},Keywords:function(a,b){var c=this.getChildValue(a);c&&"none"!=c.toLowerCase()&&(b.keywords=c.split(", "))},Capability:function(a,b){b.capability={};this.readChildNodes(a,b.capability)},Request:function(a,b){b.request={};this.readChildNodes(a,b.request)},GetFeature:function(a,b){b.getfeature={href:{},formats:[]};this.readChildNodes(a,b.getfeature)},ResultFormat:function(a,b){for(var c=a.childNodes,d,e=0;e<c.length;e++)d=c[e],1==d.nodeType&&b.formats.push(d.nodeName)},DCPType:function(a,b){this.readChildNodes(a,\n +b)},HTTP:function(a,b){this.readChildNodes(a,b.href)},Get:function(a,b){b.get=a.getAttribute("onlineResource")},Post:function(a,b){b.post=a.getAttribute("onlineResource")},SRS:function(a,b){var c=this.getChildValue(a);c&&(b.srs=c)}},OpenLayers.Format.WFSCapabilities.v1.prototype.readers.wfs)},CLASS_NAME:"OpenLayers.Format.WFSCapabilities.v1_0_0"});OpenLayers.Format.WMSCapabilities=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.1.1",profile:null,CLASS_NAME:"OpenLayers.Format.WMSCapabilities"});OpenLayers.Format.WMSCapabilities.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{wms:"http://www.opengis.net/wms",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},defaultPrefix:"wms",read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var b=a;a&&9==a.nodeType&&(a=a.documentElement);var c={};this.readNode(a,c);void 0===c.service&&(a=new OpenLayers.Format.OGCExceptionReport,c.error=a.read(b));return c},readers:{wms:{Service:function(a,\n +b){b.service={};this.readChildNodes(a,b.service)},Name:function(a,b){b.name=this.getChildValue(a)},Title:function(a,b){b.title=this.getChildValue(a)},Abstract:function(a,b){b["abstract"]=this.getChildValue(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};if(!isNaN(a.x)||!isNaN(a.y))b.res=\n +a;return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,this.namespaces.xlink,"href")},ContactInformation:function(a,b){b.contactInformation={};this.readChildNodes(a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};this.readChildNodes(a,b.personPrimary)},ContactPerson:function(a,b){b.person=this.getChildValue(a)},ContactOrganization:function(a,b){b.organization=this.getChildValue(a)},ContactPosition:function(a,b){b.position=this.getChildValue(a)},ContactAddress:function(a,\n +b){b.contactAddress={};this.readChildNodes(a,b.contactAddress)},AddressType:function(a,b){b.type=this.getChildValue(a)},Address:function(a,b){b.address=this.getChildValue(a)},City:function(a,b){b.city=this.getChildValue(a)},StateOrProvince:function(a,b){b.stateOrProvince=this.getChildValue(a)},PostCode:function(a,b){b.postcode=this.getChildValue(a)},Country:function(a,b){b.country=this.getChildValue(a)},ContactVoiceTelephone:function(a,b){b.phone=this.getChildValue(a)},ContactFacsimileTelephone:function(a,\n +b){b.fax=this.getChildValue(a)},ContactElectronicMailAddress:function(a,b){b.email=this.getChildValue(a)},Fees:function(a,b){var c=this.getChildValue(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},AccessConstraints:function(a,b){var c=this.getChildValue(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},Capability:function(a,b){b.capability={nestedLayers:[],layers:[]};this.readChildNodes(a,b.capability)},Request:function(a,b){b.request={};this.readChildNodes(a,b.request)},GetCapabilities:function(a,\n +b){b.getcapabilities={formats:[]};this.readChildNodes(a,b.getcapabilities)},Format:function(a,b){OpenLayers.Util.isArray(b.formats)?b.formats.push(this.getChildValue(a)):b.format=this.getChildValue(a)},DCPType:function(a,b){this.readChildNodes(a,b)},HTTP:function(a,b){this.readChildNodes(a,b)},Get:function(a,b){b.get={};this.readChildNodes(a,b.get);b.href||(b.href=b.get.href)},Post:function(a,b){b.post={};this.readChildNodes(a,b.post);b.href||(b.href=b.get.href)},GetMap:function(a,b){b.getmap={formats:[]};\n +this.readChildNodes(a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={formats:[]};this.readChildNodes(a,b.getfeatureinfo)},Exception:function(a,b){b.exception={formats:[]};this.readChildNodes(a,b.exception)},Layer:function(a,b){var c,d;b.capability?(d=b.capability,c=b):d=b;var e=a.getAttributeNode("queryable"),f=e&&e.specified?a.getAttribute("queryable"):null,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):null,e=(e=a.getAttributeNode("opaque"))&&e.specified?\n +a.getAttribute("opaque"):null,h=a.getAttribute("noSubsets"),i=a.getAttribute("fixedWidth"),j=a.getAttribute("fixedHeight"),k=c||{},l=OpenLayers.Util.extend;c={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:c?l({},k.srs):{},metadataURLs:[],bbox:c?l({},k.bbox):{},llbbox:k.llbbox,dimensions:c?l({},k.dimensions):{},authorityURLs:c?l({},k.authorityURLs):{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===f:k.queryable||!1,cascaded:null!==g?parseInt(g):k.cascaded||0,opaque:e?"1"===\n +e||"true"===e:k.opaque||!1,noSubsets:null!==h?"1"===h||"true"===h:k.noSubsets||!1,fixedWidth:null!=i?parseInt(i):k.fixedWidth||0,fixedHeight:null!=j?parseInt(j):k.fixedHeight||0,minScale:k.minScale,maxScale:k.maxScale,attribution:k.attribution};b.nestedLayers.push(c);c.capability=d;this.readChildNodes(a,c);delete c.capability;if(c.name&&(f=c.name.split(":"),g=d.request,e=g.getfeatureinfo,0<f.length&&(c.prefix=f[0]),d.layers.push(c),void 0===c.formats&&(c.formats=g.getmap.formats),void 0===c.infoFormats&&\n +e))c.infoFormats=e.formats},Attribution:function(a,b){b.attribution={};this.readChildNodes(a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};this.readChildNodes(a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);this.readChildNodes(a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;this.readChildNodes(a,c)},MetadataURL:function(a,b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);\n +this.readChildNodes(a,c)},DataURL:function(a,b){b.dataURL={};this.readChildNodes(a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};this.readChildNodes(a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};this.readChildNodes(a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=this.getChildValue(a)},KeywordList:function(a,b){this.readChildNodes(a,b)},SRS:function(a,b){b.srs[this.getChildValue(a)]=!0}}},\n +CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1"});OpenLayers.Format.WMSCapabilities.v1_3=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1,{readers:{wms:OpenLayers.Util.applyDefaults({WMS_Capabilities:function(a,b){this.readChildNodes(a,b)},LayerLimit:function(a,b){b.layerLimit=parseInt(this.getChildValue(a))},MaxWidth:function(a,b){b.maxWidth=parseInt(this.getChildValue(a))},MaxHeight:function(a,b){b.maxHeight=parseInt(this.getChildValue(a))},BoundingBox:function(a,b){var c=OpenLayers.Format.WMSCapabilities.v1.prototype.readers.wms.BoundingBox.apply(this,\n +[a,b]);c.srs=a.getAttribute("CRS");b.bbox[c.srs]=c},CRS:function(a,b){this.readers.wms.SRS.apply(this,[a,b])},EX_GeographicBoundingBox:function(a,b){b.llbbox=[];this.readChildNodes(a,b.llbbox)},westBoundLongitude:function(a,b){b[0]=this.getChildValue(a)},eastBoundLongitude:function(a,b){b[2]=this.getChildValue(a)},southBoundLatitude:function(a,b){b[1]=this.getChildValue(a)},northBoundLatitude:function(a,b){b[3]=this.getChildValue(a)},MinScaleDenominator:function(a,b){b.maxScale=parseFloat(this.getChildValue(a)).toPrecision(16)},\n +MaxScaleDenominator:function(a,b){b.minScale=parseFloat(this.getChildValue(a)).toPrecision(16)},Dimension:function(a,b){var c={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol"),nearestVal:"1"===a.getAttribute("nearestValue"),multipleVal:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",current:"1"===a.getAttribute("current"),values:this.getChildValue(a).split(",")};b.dimensions[c.name]=c},Keyword:function(a,\n +b){var c={value:this.getChildValue(a),vocabulary:a.getAttribute("vocabulary")};b.keywords&&b.keywords.push(c)}},OpenLayers.Format.WMSCapabilities.v1.prototype.readers.wms),sld:{UserDefinedSymbolization:function(a,b){this.readers.wms.UserDefinedSymbolization.apply(this,[a,b]);b.userSymbols.inlineFeature=1==parseInt(a.getAttribute("InlineFeature"));b.userSymbols.remoteWCS=1==parseInt(a.getAttribute("RemoteWCS"))},DescribeLayer:function(a,b){this.readers.wms.DescribeLayer.apply(this,[a,b])},GetLegendGraphic:function(a,\n +b){this.readers.wms.GetLegendGraphic.apply(this,[a,b])}}},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_3"});OpenLayers.Layer.Zoomify=OpenLayers.Class(OpenLayers.Layer.Grid,{size:null,isBaseLayer:!0,standardTileSize:256,tileOriginCorner:"tl",numberOfTiers:0,tileCountUpToTier:null,tierSizeInTiles:null,tierImageSize:null,initialize:function(a,b,c,d){this.initializeZoomify(c);OpenLayers.Layer.Grid.prototype.initialize.apply(this,[a,b,c,{},d])},initializeZoomify:function(a){var a=a.clone(),b=new OpenLayers.Size(Math.ceil(a.w/this.standardTileSize),Math.ceil(a.h/this.standardTileSize));this.tierSizeInTiles=[b];\n +for(this.tierImageSize=[a];a.w>this.standardTileSize||a.h>this.standardTileSize;)a=new OpenLayers.Size(Math.floor(a.w/2),Math.floor(a.h/2)),b=new OpenLayers.Size(Math.ceil(a.w/this.standardTileSize),Math.ceil(a.h/this.standardTileSize)),this.tierSizeInTiles.push(b),this.tierImageSize.push(a);this.tierSizeInTiles.reverse();this.tierImageSize.reverse();this.numberOfTiers=this.tierSizeInTiles.length;this.tileCountUpToTier=[0];for(a=1;a<this.numberOfTiers;a++)this.tileCountUpToTier.push(this.tierSizeInTiles[a-\n +1].w*this.tierSizeInTiles[a-1].h+this.tileCountUpToTier[a-1])},destroy:function(){OpenLayers.Layer.Grid.prototype.destroy.apply(this,arguments);this.tileCountUpToTier.length=0;this.tierSizeInTiles.length=0;this.tierImageSize.length=0},clone:function(a){null==a&&(a=new OpenLayers.Layer.Zoomify(this.name,this.url,this.size,this.options));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},getURL:function(a){var a=this.adjustBounds(a),b=this.map.getResolution(),c=Math.round((a.left-this.tileOrigin.lon)/\n +(b*this.tileSize.w)),a=Math.round((this.tileOrigin.lat-a.top)/(b*this.tileSize.h)),b=this.map.getZoom(),c="TileGroup"+Math.floor((c+a*this.tierSizeInTiles[b].w+this.tileCountUpToTier[b])/256)+"/"+b+"-"+c+"-"+a+".jpg",a=this.url;OpenLayers.Util.isArray(a)&&(a=this.selectUrl(c,a));return a+c},getImageSize:function(){if(0<arguments.length){var a=this.adjustBounds(arguments[0]),b=this.map.getResolution(),c=Math.round((a.left-this.tileOrigin.lon)/(b*this.tileSize.w)),a=Math.round((this.tileOrigin.lat-\n +a.top)/(b*this.tileSize.h)),b=this.map.getZoom(),d=this.standardTileSize,e=this.standardTileSize;c==this.tierSizeInTiles[b].w-1&&(d=this.tierImageSize[b].w%this.standardTileSize);a==this.tierSizeInTiles[b].h-1&&(e=this.tierImageSize[b].h%this.standardTileSize);return new OpenLayers.Size(d,e)}return this.tileSize},setMap:function(a){OpenLayers.Layer.Grid.prototype.setMap.apply(this,arguments);this.tileOrigin=new OpenLayers.LonLat(this.map.maxExtent.left,this.map.maxExtent.top)},calculateGridLayout:function(a,\n +b,c){var d=c*this.tileSize.w,c=c*this.tileSize.h,e=a.left-b.lon,f=Math.floor(e/d)-this.buffer,a=b.lat-a.top+c,g=Math.floor(a/c)-this.buffer;return{tilelon:d,tilelat:c,tileoffsetlon:b.lon+f*d,tileoffsetlat:b.lat-c*g,tileoffsetx:-(e/d-f)*this.tileSize.w,tileoffsety:(g-a/c)*this.tileSize.h}},CLASS_NAME:"OpenLayers.Layer.Zoomify"});OpenLayers.Layer.MapServer=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{mode:"map",map_imagetype:"png"},initialize:function(a,b,c,d){OpenLayers.Layer.Grid.prototype.initialize.apply(this,arguments);this.params=OpenLayers.Util.applyDefaults(this.params,this.DEFAULT_PARAMS);if(null==d||null==d.isBaseLayer)this.isBaseLayer="true"!=this.params.transparent&&!0!=this.params.transparent},clone:function(a){null==a&&(a=new OpenLayers.Layer.MapServer(this.name,this.url,this.params,this.getOptions()));\n +return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},getURL:function(a){var a=this.adjustBounds(a),a=[a.left,a.bottom,a.right,a.top],b=this.getImageSize();return this.getFullRequestString({mapext:a,imgext:a,map_size:[b.w,b.h],imgx:b.w/2,imgy:b.h/2,imgxy:[b.w,b.h]})},getFullRequestString:function(a,b){var c=null==b?this.url:b,d=OpenLayers.Util.extend({},this.params),d=OpenLayers.Util.extend(d,a),e=OpenLayers.Util.getParameterString(d);OpenLayers.Util.isArray(c)&&(c=this.selectUrl(e,c));\n +var e=OpenLayers.Util.upperCaseObject(OpenLayers.Util.getParameters(c)),f;for(f in d)f.toUpperCase()in e&&delete d[f];e=OpenLayers.Util.getParameterString(d);d=c;e=e.replace(/,/g,"+");""!=e&&(f=c.charAt(c.length-1),d="&"==f||"?"==f?d+e:-1==c.indexOf("?")?d+("?"+e):d+("&"+e));return d},CLASS_NAME:"OpenLayers.Layer.MapServer"});OpenLayers.Renderer.VML=OpenLayers.Class(OpenLayers.Renderer.Elements,{xmlns:"urn:schemas-microsoft-com:vml",symbolCache:{},offset:null,initialize:function(a){if(this.supported()){if(!document.namespaces.olv){document.namespaces.add("olv",this.xmlns);for(var b=document.createStyleSheet(),c="shape rect oval fill stroke imagedata group textbox".split(" "),d=0,e=c.length;d<e;d++)b.addRule("olv\\\\:"+c[d],"behavior: url(#default#VML); position: absolute; display: inline-block;")}OpenLayers.Renderer.Elements.prototype.initialize.apply(this,\n +arguments)}},supported:function(){return!!document.namespaces},setExtent:function(a,b){var c=OpenLayers.Renderer.Elements.prototype.setExtent.apply(this,arguments),d=this.getResolution(),e=a.left/d|0,d=a.top/d-this.size.h|0;b||!this.offset?(this.offset={x:e,y:d},d=e=0):(e-=this.offset.x,d-=this.offset.y);this.root.coordorigin=e-this.xOffset+" "+d;for(var e=[this.root,this.vectorRoot,this.textRoot],f=0,g=e.length;f<g;++f)d=e[f],d.coordsize=this.size.w+" "+this.size.h;this.root.style.flip="y";return c},\n +setSize:function(a){OpenLayers.Renderer.prototype.setSize.apply(this,arguments);for(var b=[this.rendererRoot,this.root,this.vectorRoot,this.textRoot],c=this.size.w+"px",d=this.size.h+"px",e,f=0,g=b.length;f<g;++f)e=b[f],e.style.width=c,e.style.height=d},getNodeType:function(a,b){var c=null;switch(a.CLASS_NAME){case "OpenLayers.Geometry.Point":c=b.externalGraphic?"olv:rect":this.isComplexSymbol(b.graphicName)?"olv:shape":"olv:oval";break;case "OpenLayers.Geometry.Rectangle":c="olv:rect";break;case "OpenLayers.Geometry.LineString":case "OpenLayers.Geometry.LinearRing":case "OpenLayers.Geometry.Polygon":case "OpenLayers.Geometry.Curve":c=\n +"olv:shape"}return c},setStyle:function(a,b,c,d){var b=b||a._style,c=c||a._options,e=b.fillColor;if("OpenLayers.Geometry.Point"===a._geometryClass)if(b.externalGraphic){c.isFilled=!0;b.graphicTitle&&(a.title=b.graphicTitle);var e=b.graphicWidth||b.graphicHeight,f=b.graphicHeight||b.graphicWidth,e=e?e:2*b.pointRadius,f=f?f:2*b.pointRadius,g=this.getResolution(),h=void 0!=b.graphicXOffset?b.graphicXOffset:-(0.5*e),i=void 0!=b.graphicYOffset?b.graphicYOffset:-(0.5*f);a.style.left=((d.x-this.featureDx)/\n +g-this.offset.x+h|0)+"px";a.style.top=(d.y/g-this.offset.y-(i+f)|0)+"px";a.style.width=e+"px";a.style.height=f+"px";a.style.flip="y";e="none";c.isStroked=!1}else this.isComplexSymbol(b.graphicName)?(f=this.importSymbol(b.graphicName),a.path=f.path,a.coordorigin=f.left+","+f.bottom,f=f.size,a.coordsize=f+","+f,this.drawCircle(a,d,b.pointRadius),a.style.flip="y"):this.drawCircle(a,d,b.pointRadius);c.isFilled?a.fillcolor=e:a.filled="false";d=a.getElementsByTagName("fill");d=0==d.length?null:d[0];if(c.isFilled){d||\n +(d=this.createNode("olv:fill",a.id+"_fill"));d.opacity=b.fillOpacity;if("OpenLayers.Geometry.Point"===a._geometryClass&&b.externalGraphic&&(b.graphicOpacity&&(d.opacity=b.graphicOpacity),d.src=b.externalGraphic,d.type="frame",!b.graphicWidth||!b.graphicHeight))d.aspect="atmost";d.parentNode!=a&&a.appendChild(d)}else d&&a.removeChild(d);e=b.rotation;if(void 0!==e||void 0!==a._rotation)a._rotation=e,b.externalGraphic?(this.graphicRotate(a,h,i,b),d.opacity=0):"OpenLayers.Geometry.Point"===a._geometryClass&&\n +(a.style.rotation=e||0);h=a.getElementsByTagName("stroke");h=0==h.length?null:h[0];if(c.isStroked){if(h||(h=this.createNode("olv:stroke",a.id+"_stroke"),a.appendChild(h)),h.on=!0,h.color=b.strokeColor,h.weight=b.strokeWidth+"px",h.opacity=b.strokeOpacity,h.endcap="butt"==b.strokeLinecap?"flat":b.strokeLinecap||"round",b.strokeDashstyle)h.dashstyle=this.dashStyle(b)}else a.stroked=!1,h&&(h.on=!1);"inherit"!=b.cursor&&null!=b.cursor&&(a.style.cursor=b.cursor);return a},graphicRotate:function(a,b,c,\n +d){var d=d||a._style,e=d.rotation||0,f,g;if(!d.graphicWidth||!d.graphicHeight){var h=new Image;h.onreadystatechange=OpenLayers.Function.bind(function(){if("complete"==h.readyState||"interactive"==h.readyState)f=h.width/h.height,g=Math.max(2*d.pointRadius,d.graphicWidth||0,d.graphicHeight||0),b*=f,d.graphicWidth=g*f,d.graphicHeight=g,this.graphicRotate(a,b,c,d)},this);h.src=d.externalGraphic}else{g=Math.max(d.graphicWidth,d.graphicHeight);f=d.graphicWidth/d.graphicHeight;var i=Math.round(d.graphicWidth||\n +g*f),j=Math.round(d.graphicHeight||g);a.style.width=i+"px";a.style.height=j+"px";var k=document.getElementById(a.id+"_image");k||(k=this.createNode("olv:imagedata",a.id+"_image"),a.appendChild(k));k.style.width=i+"px";k.style.height=j+"px";k.src=d.externalGraphic;k.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'\', sizingMethod=\'scale\')";k=e*Math.PI/180;e=Math.sin(k);k=Math.cos(k);e="progid:DXImageTransform.Microsoft.Matrix(M11="+k+",M12="+-e+",M21="+e+",M22="+k+",SizingMethod=\'auto expand\')\\n";\n +(k=d.graphicOpacity||d.fillOpacity)&&1!=k&&(e+="progid:DXImageTransform.Microsoft.BasicImage(opacity="+k+")\\n");a.style.filter=e;e=new OpenLayers.Geometry.Point(-b,-c);i=(new OpenLayers.Bounds(0,0,i,j)).toGeometry();i.rotate(d.rotation,e);i=i.getBounds();a.style.left=Math.round(parseInt(a.style.left)+i.left)+"px";a.style.top=Math.round(parseInt(a.style.top)-i.bottom)+"px"}},postDraw:function(a){a.style.visibility="visible";var b=a._style.fillColor,c=a._style.strokeColor;"none"==b&&a.fillcolor!=b&&\n +(a.fillcolor=b);"none"==c&&a.strokecolor!=c&&(a.strokecolor=c)},setNodeDimension:function(a,b){var c=b.getBounds();if(c){var d=this.getResolution(),c=new OpenLayers.Bounds((c.left-this.featureDx)/d-this.offset.x|0,c.bottom/d-this.offset.y|0,(c.right-this.featureDx)/d-this.offset.x|0,c.top/d-this.offset.y|0);a.style.left=c.left+"px";a.style.top=c.top+"px";a.style.width=c.getWidth()+"px";a.style.height=c.getHeight()+"px";a.coordorigin=c.left+" "+c.top;a.coordsize=c.getWidth()+" "+c.getHeight()}},dashStyle:function(a){a=\n +a.strokeDashstyle;switch(a){case "solid":case "dot":case "dash":case "dashdot":case "longdash":case "longdashdot":return a;default:return a=a.split(/[ ,]/),2==a.length?1*a[0]>=2*a[1]?"longdash":1==a[0]||1==a[1]?"dot":"dash":4==a.length?1*a[0]>=2*a[1]?"longdashdot":"dashdot":"solid"}},createNode:function(a,b){var c=document.createElement(a);b&&(c.id=b);c.unselectable="on";c.onselectstart=OpenLayers.Function.False;return c},nodeTypeCompare:function(a,b){var c=b,d=c.indexOf(":");-1!=d&&(c=c.substr(d+\n +1));var e=a.nodeName,d=e.indexOf(":");-1!=d&&(e=e.substr(d+1));return c==e},createRenderRoot:function(){return this.nodeFactory(this.container.id+"_vmlRoot","div")},createRoot:function(a){return this.nodeFactory(this.container.id+a,"olv:group")},drawPoint:function(a,b){return this.drawCircle(a,b,1)},drawCircle:function(a,b,c){if(!isNaN(b.x)&&!isNaN(b.y)){var d=this.getResolution();a.style.left=((b.x-this.featureDx)/d-this.offset.x|0)-c+"px";a.style.top=(b.y/d-this.offset.y|0)-c+"px";b=2*c;a.style.width=\n +b+"px";a.style.height=b+"px";return a}return!1},drawLineString:function(a,b){return this.drawLine(a,b,!1)},drawLinearRing:function(a,b){return this.drawLine(a,b,!0)},drawLine:function(a,b,c){this.setNodeDimension(a,b);for(var d=this.getResolution(),e=b.components.length,f=Array(e),g,h,i=0;i<e;i++)g=b.components[i],h=(g.x-this.featureDx)/d-this.offset.x|0,g=g.y/d-this.offset.y|0,f[i]=" "+h+","+g+" l ";a.path="m"+f.join("")+(c?" x e":" e");return a},drawPolygon:function(a,b){this.setNodeDimension(a,\n +b);var c=this.getResolution(),d=[],e,f,g,h,i,j,k,l,m,n;e=0;for(f=b.components.length;e<f;e++){d.push("m");g=b.components[e].components;h=0===e;j=i=null;k=0;for(l=g.length;k<l;k++)m=g[k],n=(m.x-this.featureDx)/c-this.offset.x|0,m=m.y/c-this.offset.y|0,n=" "+n+","+m,d.push(n),0==k&&d.push(" l"),h||(i?i!=n&&(j?j!=n&&(h=!0):j=n):i=n);d.push(h?" x ":" ")}d.push("e");a.path=d.join("");return a},drawRectangle:function(a,b){var c=this.getResolution();a.style.left=((b.x-this.featureDx)/c-this.offset.x|0)+\n +"px";a.style.top=(b.y/c-this.offset.y|0)+"px";a.style.width=(b.width/c|0)+"px";a.style.height=(b.height/c|0)+"px";return a},drawText:function(a,b,c){var d=this.nodeFactory(a+this.LABEL_ID_SUFFIX,"olv:rect"),e=this.nodeFactory(a+this.LABEL_ID_SUFFIX+"_textbox","olv:textbox"),f=this.getResolution();d.style.left=((c.x-this.featureDx)/f-this.offset.x|0)+"px";d.style.top=(c.y/f-this.offset.y|0)+"px";d.style.flip="y";e.innerText=b.label;"inherit"!=b.cursor&&null!=b.cursor&&(e.style.cursor=b.cursor);b.fontColor&&\n +(e.style.color=b.fontColor);b.fontOpacity&&(e.style.filter="alpha(opacity="+100*b.fontOpacity+")");b.fontFamily&&(e.style.fontFamily=b.fontFamily);b.fontSize&&(e.style.fontSize=b.fontSize);b.fontWeight&&(e.style.fontWeight=b.fontWeight);b.fontStyle&&(e.style.fontStyle=b.fontStyle);!0===b.labelSelect&&(d._featureId=a,e._featureId=a,e._geometry=c,e._geometryClass=c.CLASS_NAME);e.style.whiteSpace="nowrap";e.inset="1px,0px,0px,0px";d.parentNode||(d.appendChild(e),this.textRoot.appendChild(d));b=b.labelAlign||\n +"cm";1==b.length&&(b+="m");a=e.clientWidth*OpenLayers.Renderer.VML.LABEL_SHIFT[b.substr(0,1)];e=e.clientHeight*OpenLayers.Renderer.VML.LABEL_SHIFT[b.substr(1,1)];d.style.left=parseInt(d.style.left)-a-1+"px";d.style.top=parseInt(d.style.top)+e+"px"},moveRoot:function(a){var b=this.map.getLayer(a.container.id);b instanceof OpenLayers.Layer.Vector.RootContainer&&(b=this.map.getLayer(this.container.id));b&&b.renderer.clear();OpenLayers.Renderer.Elements.prototype.moveRoot.apply(this,arguments);b&&b.redraw()},\n +importSymbol:function(a){var b=this.container.id+"-"+a,c=this.symbolCache[b];if(c)return c;c=OpenLayers.Renderer.symbol[a];if(!c)throw Error(a+" is not a valid symbol name");for(var a=new OpenLayers.Bounds(Number.MAX_VALUE,Number.MAX_VALUE,0,0),d=["m"],e=0;e<c.length;e+=2){var f=c[e],g=c[e+1];a.left=Math.min(a.left,f);a.bottom=Math.min(a.bottom,g);a.right=Math.max(a.right,f);a.top=Math.max(a.top,g);d.push(f);d.push(g);0==e&&d.push("l")}d.push("x e");c=d.join(" ");d=(a.getWidth()-a.getHeight())/2;\n +0<d?(a.bottom-=d,a.top+=d):(a.left+=d,a.right-=d);c={path:c,size:a.getWidth(),left:a.left,bottom:a.bottom};return this.symbolCache[b]=c},CLASS_NAME:"OpenLayers.Renderer.VML"});OpenLayers.Renderer.VML.LABEL_SHIFT={l:0,c:0.5,r:1,t:0,m:0.5,b:1};OpenLayers.Control.CacheRead=OpenLayers.Class(OpenLayers.Control,{fetchEvent:"tileloadstart",layers:null,autoActivate:!0,setMap:function(a){OpenLayers.Control.prototype.setMap.apply(this,arguments);var b,c=this.layers||a.layers;for(b=c.length-1;0<=b;--b)this.addLayer({layer:c[b]});if(!this.layers)a.events.on({addlayer:this.addLayer,removeLayer:this.removeLayer,scope:this})},addLayer:function(a){a.layer.events.register(this.fetchEvent,this,this.fetch)},removeLayer:function(a){a.layer.events.unregister(this.fetchEvent,\n +this,this.fetch)},fetch:function(a){if(this.active&&window.localStorage&&a.tile instanceof OpenLayers.Tile.Image){var b=a.tile,c=b.url;!b.layer.crossOriginKeyword&&(OpenLayers.ProxyHost&&0===c.indexOf(OpenLayers.ProxyHost))&&(c=OpenLayers.Control.CacheWrite.urlMap[c]);if(c=window.localStorage.getItem("olCache_"+c))b.url=c,"tileerror"===a.type&&b.setImgSrc(c)}},destroy:function(){if(this.layers||this.map){var a,b=this.layers||this.map.layers;for(a=b.length-1;0<=a;--a)this.removeLayer({layer:b[a]})}this.map&&\n +this.map.events.un({addlayer:this.addLayer,removeLayer:this.removeLayer,scope:this});OpenLayers.Control.prototype.destroy.apply(this,arguments)},CLASS_NAME:"OpenLayers.Control.CacheRead"});OpenLayers.Protocol.WFS.v1_0_0=OpenLayers.Class(OpenLayers.Protocol.WFS.v1,{version:"1.0.0",CLASS_NAME:"OpenLayers.Protocol.WFS.v1_0_0"});OpenLayers.Format.WMSGetFeatureInfo=OpenLayers.Class(OpenLayers.Format.XML,{layerIdentifier:"_layer",featureIdentifier:"_feature",regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},gmlFormat:null,read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var b=a.documentElement;if(b)var c=this["read_"+b.nodeName],a=c?c.call(this,b):(new OpenLayers.Format.GML(this.options?this.options:{})).read(a);return a},read_msGMLOutput:function(a){var b=\n +[];if(a=this.getSiblingNodesByTagCriteria(a,this.layerIdentifier))for(var c=0,d=a.length;c<d;++c){var e=a[c],f=e.nodeName;e.prefix&&(f=f.split(":")[1]);f=f.replace(this.layerIdentifier,"");if(e=this.getSiblingNodesByTagCriteria(e,this.featureIdentifier))for(var g=0;g<e.length;g++){var h=e[g],i=this.parseGeometry(h),h=this.parseAttributes(h),h=new OpenLayers.Feature.Vector(i.geometry,h,null);h.bounds=i.bounds;h.type=f;b.push(h)}}return b},read_FeatureInfoResponse:function(a){for(var b=[],a=this.getElementsByTagNameNS(a,\n +"*","FIELDS"),c=0,d=a.length;c<d;c++){var e=a[c],f={},g,h=e.attributes.length;if(0<h)for(g=0;g<h;g++){var i=e.attributes[g];f[i.nodeName]=i.nodeValue}else{e=e.childNodes;g=0;for(h=e.length;g<h;++g)i=e[g],3!=i.nodeType&&(f[i.getAttribute("name")]=i.getAttribute("value"))}b.push(new OpenLayers.Feature.Vector(null,f,null))}return b},getSiblingNodesByTagCriteria:function(a,b){var c=[],d,e,f,g;if(a&&a.hasChildNodes()){d=a.childNodes;f=d.length;for(var h=0;h<f;h++){for(g=d[h];g&&1!=g.nodeType;)g=g.nextSibling,\n +h++;e=g?g.nodeName:"";0<e.length&&-1<e.indexOf(b)?c.push(g):(e=this.getSiblingNodesByTagCriteria(g,b),0<e.length&&(0==c.length?c=e:c.push(e)))}}return c},parseAttributes:function(a){var b={};if(1==a.nodeType)for(var a=a.childNodes,c=a.length,d=0;d<c;++d){var e=a[d];if(1==e.nodeType){var f=e.childNodes,e=e.pr + +]]></string> </value> + </item> + <item> + <key> <string>next</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAw=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="12" aka="AAAAAAAAAAw="> + <pickle> + <global name="Pdata" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +efix?e.nodeName.split(":")[1]:e.nodeName;if(0==f.length)b[e]=null;else if(1==f.length&&(f=f[0],3==f.nodeType||4==f.nodeType))f=f.nodeValue.replace(this.regExes.trimSpace,""),b[e]=f}}return b},\n +parseGeometry:function(a){this.gmlFormat||(this.gmlFormat=new OpenLayers.Format.GML);var a=this.gmlFormat.parseFeature(a),b,c=null;a&&(b=a.geometry&&a.geometry.clone(),c=a.bounds&&a.bounds.clone(),a.destroy());return{geometry:b,bounds:c}},CLASS_NAME:"OpenLayers.Format.WMSGetFeatureInfo"});OpenLayers.Control.WMTSGetFeatureInfo=OpenLayers.Class(OpenLayers.Control,{hover:!1,requestEncoding:"KVP",drillDown:!1,maxFeatures:10,clickCallback:"click",layers:null,queryVisible:!0,infoFormat:"text/html",vendorParams:{},format:null,formatOptions:null,handlerOptions:null,handler:null,hoverRequest:null,pending:0,initialize:function(a){a=a||{};a.handlerOptions=a.handlerOptions||{};OpenLayers.Control.prototype.initialize.apply(this,[a]);this.format||(this.format=new OpenLayers.Format.WMSGetFeatureInfo(a.formatOptions));\n +!0===this.drillDown&&(this.hover=!1);this.hover?this.handler=new OpenLayers.Handler.Hover(this,{move:this.cancelHover,pause:this.getInfoForHover},OpenLayers.Util.extend(this.handlerOptions.hover||{},{delay:250})):(a={},a[this.clickCallback]=this.getInfoForClick,this.handler=new OpenLayers.Handler.Click(this,a,this.handlerOptions.click||{}))},getInfoForClick:function(a){this.request(a.xy,{})},getInfoForHover:function(a){this.request(a.xy,{hover:!0})},cancelHover:function(){this.hoverRequest&&(--this.pending,\n +0>=this.pending&&(OpenLayers.Element.removeClass(this.map.viewPortDiv,"olCursorWait"),this.pending=0),this.hoverRequest.abort(),this.hoverRequest=null)},findLayers:function(){for(var a=this.layers||this.map.layers,b=[],c,d=a.length-1;0<=d;--d)if(c=a[d],c instanceof OpenLayers.Layer.WMTS&&c.requestEncoding===this.requestEncoding&&(!this.queryVisible||c.getVisibility()))if(b.push(c),!this.drillDown||this.hover)break;return b},buildRequestOptions:function(a,b){var c=this.map.getLonLatFromPixel(b),d=\n +a.getURL(new OpenLayers.Bounds(c.lon,c.lat,c.lon,c.lat)),d=OpenLayers.Util.getParameters(d),c=a.getTileInfo(c);OpenLayers.Util.extend(d,{service:"WMTS",version:a.version,request:"GetFeatureInfo",infoFormat:this.infoFormat,i:c.i,j:c.j});OpenLayers.Util.applyDefaults(d,this.vendorParams);return{url:OpenLayers.Util.isArray(a.url)?a.url[0]:a.url,params:OpenLayers.Util.upperCaseObject(d),callback:function(c){this.handleResponse(b,c,a)},scope:this}},request:function(a,b){var b=b||{},c=this.findLayers();\n +if(0<c.length){for(var d,e,f=0,g=c.length;f<g;f++)e=c[f],d=this.events.triggerEvent("beforegetfeatureinfo",{xy:a,layer:e}),!1!==d&&(++this.pending,d=this.buildRequestOptions(e,a),d=OpenLayers.Request.GET(d),!0===b.hover&&(this.hoverRequest=d));0<this.pending&&OpenLayers.Element.addClass(this.map.viewPortDiv,"olCursorWait")}},handleResponse:function(a,b,c){--this.pending;0>=this.pending&&(OpenLayers.Element.removeClass(this.map.viewPortDiv,"olCursorWait"),this.pending=0);if(b.status&&(200>b.status||\n +300<=b.status))this.events.triggerEvent("exception",{xy:a,request:b,layer:c});else{var d=b.responseXML;if(!d||!d.documentElement)d=b.responseText;var e,f;try{e=this.format.read(d)}catch(g){f=!0,this.events.triggerEvent("exception",{xy:a,request:b,error:g,layer:c})}f||this.events.triggerEvent("getfeatureinfo",{text:b.responseText,features:e,request:b,xy:a,layer:c})}},CLASS_NAME:"OpenLayers.Control.WMTSGetFeatureInfo"});OpenLayers.Strategy.Paging=OpenLayers.Class(OpenLayers.Strategy,{features:null,length:10,num:null,paging:!1,activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);if(a)this.layer.events.on({beforefeaturesadded:this.cacheFeatures,scope:this});return a},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);a&&(this.clearCache(),this.layer.events.un({beforefeaturesadded:this.cacheFeatures,scope:this}));return a},cacheFeatures:function(a){this.paging||(this.clearCache(),\n +this.features=a.features,this.pageNext(a))},clearCache:function(){if(this.features)for(var a=0;a<this.features.length;++a)this.features[a].destroy();this.num=this.features=null},pageCount:function(){return Math.ceil((this.features?this.features.length:0)/this.length)},pageNum:function(){return this.num},pageLength:function(a){a&&0<a&&(this.length=a);return this.length},pageNext:function(a){var b=!1;this.features&&(null===this.num&&(this.num=-1),b=this.page((this.num+1)*this.length,a));return b},pagePrevious:function(){var a=\n +!1;this.features&&(null===this.num&&(this.num=this.pageCount()),a=this.page((this.num-1)*this.length));return a},page:function(a,b){var c=!1;if(this.features&&0<=a&&a<this.features.length){var d=Math.floor(a/this.length);d!=this.num&&(this.paging=!0,c=this.features.slice(a,a+this.length),this.layer.removeFeatures(this.layer.features),this.num=d,b&&b.features?b.features=c:this.layer.addFeatures(c),this.paging=!1,c=!0)}return c},CLASS_NAME:"OpenLayers.Strategy.Paging"});OpenLayers.Protocol.CSW.v2_0_2=OpenLayers.Class(OpenLayers.Protocol,{formatOptions:null,initialize:function(a){OpenLayers.Protocol.prototype.initialize.apply(this,[a]);a.format||(this.format=new OpenLayers.Format.CSWGetRecords.v2_0_2(OpenLayers.Util.extend({},this.formatOptions)))},destroy:function(){this.options&&!this.options.format&&this.format.destroy();this.format=null;OpenLayers.Protocol.prototype.destroy.apply(this)},read:function(a){a=OpenLayers.Util.extend({},a);OpenLayers.Util.applyDefaults(a,\n +this.options||{});var b=new OpenLayers.Protocol.Response({requestType:"read"}),c=this.format.write(a.params);b.priv=OpenLayers.Request.POST({url:a.url,callback:this.createCallback(this.handleRead,b,a),params:a.params,headers:a.headers,data:c});return b},handleRead:function(a,b){if(b.callback){var c=a.priv;200<=c.status&&300>c.status?(a.data=this.parseData(c),a.code=OpenLayers.Protocol.Response.SUCCESS):a.code=OpenLayers.Protocol.Response.FAILURE;b.callback.call(b.scope,a)}},parseData:function(a){var b=\n +a.responseXML;if(!b||!b.documentElement)b=a.responseText;return!b||0>=b.length?null:this.format.read(b)},CLASS_NAME:"OpenLayers.Protocol.CSW.v2_0_2"});OpenLayers.Format.WMSCapabilities.v1_1=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1,{readers:{wms:OpenLayers.Util.applyDefaults({WMT_MS_Capabilities:function(a,b){this.readChildNodes(a,b)},Keyword:function(a,b){b.keywords&&b.keywords.push(this.getChildValue(a))},DescribeLayer:function(a,b){b.describelayer={formats:[]};this.readChildNodes(a,b.describelayer)},GetLegendGraphic:function(a,b){b.getlegendgraphic={formats:[]};this.readChildNodes(a,b.getlegendgraphic)},GetStyles:function(a,b){b.getstyles=\n +{formats:[]};this.readChildNodes(a,b.getstyles)},PutStyles:function(a,b){b.putstyles={formats:[]};this.readChildNodes(a,b.putstyles)},UserDefinedSymbolization:function(a,b){var c={supportSLD:1==parseInt(a.getAttribute("SupportSLD")),userLayer:1==parseInt(a.getAttribute("UserLayer")),userStyle:1==parseInt(a.getAttribute("UserStyle")),remoteWFS:1==parseInt(a.getAttribute("RemoteWFS"))};b.userSymbols=c},LatLonBoundingBox:function(a,b){b.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),\n +parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},BoundingBox:function(a,b){var c=OpenLayers.Format.WMSCapabilities.v1.prototype.readers.wms.BoundingBox.apply(this,[a,b]);c.srs=a.getAttribute("SRS");b.bbox[c.srs]=c},ScaleHint:function(a,b){var c=a.getAttribute("min"),d=a.getAttribute("max"),e=Math.pow(2,0.5),f=OpenLayers.INCHES_PER_UNIT.m;b.maxScale=parseFloat((c/e*f*OpenLayers.DOTS_PER_INCH).toPrecision(13));b.minScale=parseFloat((d/e*f*OpenLayers.DOTS_PER_INCH).toPrecision(13))},\n +Dimension:function(a,b){var c={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol")};b.dimensions[c.name]=c},Extent:function(a,b){var c=a.getAttribute("name").toLowerCase();if(c in b.dimensions){c=b.dimensions[c];c.nearestVal="1"===a.getAttribute("nearestValue");c.multipleVal="1"===a.getAttribute("multipleValues");c.current="1"===a.getAttribute("current");c["default"]=a.getAttribute("default")||"";var d=this.getChildValue(a);c.values=d.split(",")}}},\n +OpenLayers.Format.WMSCapabilities.v1.prototype.readers.wms)},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_1"});OpenLayers.Control.Graticule=OpenLayers.Class(OpenLayers.Control,{autoActivate:!0,intervals:[45,30,20,10,5,2,1,0.5,0.2,0.1,0.05,0.01,0.005,0.002,0.001],displayInLayerSwitcher:!0,visible:!0,numPoints:50,targetSize:200,layerName:null,labelled:!0,labelFormat:"dm",lineSymbolizer:{strokeColor:"#333",strokeWidth:1,strokeOpacity:0.5},labelSymbolizer:{},gratLayer:null,initialize:function(a){a=a||{};a.layerName=a.layerName||OpenLayers.i18n("Graticule");OpenLayers.Control.prototype.initialize.apply(this,[a]);\n +this.labelSymbolizer.stroke=!1;this.labelSymbolizer.fill=!1;this.labelSymbolizer.label="${label}";this.labelSymbolizer.labelAlign="${labelAlign}";this.labelSymbolizer.labelXOffset="${xOffset}";this.labelSymbolizer.labelYOffset="${yOffset}"},destroy:function(){this.deactivate();OpenLayers.Control.prototype.destroy.apply(this,arguments);this.gratLayer&&(this.gratLayer.destroy(),this.gratLayer=null)},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);if(!this.gratLayer){var a=new OpenLayers.Style({},\n +{rules:[new OpenLayers.Rule({symbolizer:{Point:this.labelSymbolizer,Line:this.lineSymbolizer}})]});this.gratLayer=new OpenLayers.Layer.Vector(this.layerName,{styleMap:new OpenLayers.StyleMap({"default":a}),visibility:this.visible,displayInLayerSwitcher:this.displayInLayerSwitcher})}return this.div},activate:function(){return OpenLayers.Control.prototype.activate.apply(this,arguments)?(this.map.addLayer(this.gratLayer),this.map.events.register("moveend",this,this.update),this.update(),!0):!1},deactivate:function(){return OpenLayers.Control.prototype.deactivate.apply(this,\n +arguments)?(this.map.events.unregister("moveend",this,this.update),this.map.removeLayer(this.gratLayer),!0):!1},update:function(){var a=this.map.getExtent();if(a){this.gratLayer.destroyFeatures();var b=new OpenLayers.Projection("EPSG:4326"),c=this.map.getProjectionObject(),d=this.map.getResolution();c.proj&&"longlat"==c.proj.projName&&(this.numPoints=1);var e=this.map.getCenter(),f=new OpenLayers.Pixel(e.lon,e.lat);OpenLayers.Projection.transform(f,c,b);for(var e=this.targetSize*d,e=e*e,g,d=0;d<this.intervals.length;++d){g=\n +this.intervals[d];var h=g/2,i=f.offset({x:-h,y:-h}),h=f.offset({x:h,y:h});OpenLayers.Projection.transform(i,b,c);OpenLayers.Projection.transform(h,b,c);if((i.x-h.x)*(i.x-h.x)+(i.y-h.y)*(i.y-h.y)<=e)break}f.x=Math.floor(f.x/g)*g;f.y=Math.floor(f.y/g)*g;var d=0,e=[f.clone()],h=f.clone(),j;do h=h.offset({x:0,y:g}),j=OpenLayers.Projection.transform(h.clone(),b,c),e.unshift(h);while(a.containsPixel(j)&&1E3>++d);h=f.clone();do h=h.offset({x:0,y:-g}),j=OpenLayers.Projection.transform(h.clone(),b,c),e.push(h);\n +while(a.containsPixel(j)&&1E3>++d);d=0;i=[f.clone()];h=f.clone();do h=h.offset({x:-g,y:0}),j=OpenLayers.Projection.transform(h.clone(),b,c),i.unshift(h);while(a.containsPixel(j)&&1E3>++d);h=f.clone();do h=h.offset({x:g,y:0}),j=OpenLayers.Projection.transform(h.clone(),b,c),i.push(h);while(a.containsPixel(j)&&1E3>++d);g=[];for(d=0;d<i.length;++d){j=i[d].x;for(var f=[],k=null,l=Math.min(e[0].y,90),h=Math.max(e[e.length-1].y,-90),m=(l-h)/this.numPoints,l=h,h=0;h<=this.numPoints;++h){var n=new OpenLayers.Geometry.Point(j,\n +l);n.transform(b,c);f.push(n);l+=m;n.y>=a.bottom&&!k&&(k=n)}this.labelled&&(k=new OpenLayers.Geometry.Point(k.x,a.bottom),j={value:j,label:this.labelled?OpenLayers.Util.getFormattedLonLat(j,"lon",this.labelFormat):"",labelAlign:"cb",xOffset:0,yOffset:2},this.gratLayer.addFeatures(new OpenLayers.Feature.Vector(k,j)));f=new OpenLayers.Geometry.LineString(f);g.push(new OpenLayers.Feature.Vector(f))}for(h=0;h<e.length;++h)if(l=e[h].y,!(-90>l||90<l)){f=[];d=i[0].x;m=(i[i.length-1].x-d)/this.numPoints;\n +j=d;k=null;for(d=0;d<=this.numPoints;++d)n=new OpenLayers.Geometry.Point(j,l),n.transform(b,c),f.push(n),j+=m,n.x<a.right&&(k=n);this.labelled&&(k=new OpenLayers.Geometry.Point(a.right,k.y),j={value:l,label:this.labelled?OpenLayers.Util.getFormattedLonLat(l,"lat",this.labelFormat):"",labelAlign:"rb",xOffset:-2,yOffset:2},this.gratLayer.addFeatures(new OpenLayers.Feature.Vector(k,j)));f=new OpenLayers.Geometry.LineString(f);g.push(new OpenLayers.Feature.Vector(f))}this.gratLayer.addFeatures(g)}},CLASS_NAME:"OpenLayers.Control.Graticule"});OpenLayers.Layer.UTFGrid=OpenLayers.Class(OpenLayers.Layer.XYZ,{isBaseLayer:!1,projection:new OpenLayers.Projection("EPSG:900913"),useJSONP:!1,tileClass:OpenLayers.Tile.UTFGrid,initialize:function(a){OpenLayers.Layer.Grid.prototype.initialize.apply(this,[a.name,a.url,{},a]);this.tileOptions=OpenLayers.Util.extend({utfgridResolution:this.utfgridResolution},this.tileOptions)},clone:function(a){null==a&&(a=new OpenLayers.Layer.UTFGrid(this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,\n +[a])},getFeatureInfo:function(a){var b=null,a=this.getTileData(a);a.tile&&(b=a.tile.getFeatureInfo(a.i,a.j));return b},getFeatureId:function(a){var b=null,a=this.getTileData(a);a.tile&&(b=a.tile.getFeatureId(a.i,a.j));return b},CLASS_NAME:"OpenLayers.Layer.UTFGrid"});OpenLayers.Layer.ArcGISCache=OpenLayers.Class(OpenLayers.Layer.XYZ,{url:null,tileOrigin:null,tileSize:new OpenLayers.Size(256,256),useArcGISServer:!0,type:"png",useScales:!1,overrideDPI:!1,initialize:function(a,b,c){OpenLayers.Layer.XYZ.prototype.initialize.apply(this,arguments);this.resolutions&&(this.serverResolutions=this.resolutions,this.maxExtent=this.getMaxExtentForResolution(this.resolutions[0]));if(this.layerInfo){var d=this.layerInfo,e=new OpenLayers.Bounds(d.fullExtent.xmin,d.fullExtent.ymin,\n +d.fullExtent.xmax,d.fullExtent.ymax);this.projection="EPSG:"+d.spatialReference.wkid;this.sphericalMercator=102100==d.spatialReference.wkid;this.units="esriFeet"==d.units?"ft":"m";if(d.tileInfo){this.tileSize=new OpenLayers.Size(d.tileInfo.width||d.tileInfo.cols,d.tileInfo.height||d.tileInfo.rows);this.tileOrigin=new OpenLayers.LonLat(d.tileInfo.origin.x,d.tileInfo.origin.y);var f=new OpenLayers.Geometry.Point(e.left,e.top),e=new OpenLayers.Geometry.Point(e.right,e.bottom);this.useScales?this.scales=\n +[]:this.resolutions=[];this.lods=[];for(var g in d.tileInfo.lods)if(d.tileInfo.lods.hasOwnProperty(g)){var h=d.tileInfo.lods[g];this.useScales?this.scales.push(h.scale):this.resolutions.push(h.resolution);var i=this.getContainingTileCoords(f,h.resolution);h.startTileCol=i.x;h.startTileRow=i.y;i=this.getContainingTileCoords(e,h.resolution);h.endTileCol=i.x;h.endTileRow=i.y;this.lods.push(h)}this.maxExtent=this.calculateMaxExtentWithLOD(this.lods[0]);this.serverResolutions=this.resolutions;this.overrideDPI&&\n +d.tileInfo.dpi&&(OpenLayers.DOTS_PER_INCH=d.tileInfo.dpi)}}},getContainingTileCoords:function(a,b){return new OpenLayers.Pixel(Math.max(Math.floor((a.x-this.tileOrigin.lon)/(this.tileSize.w*b)),0),Math.max(Math.floor((this.tileOrigin.lat-a.y)/(this.tileSize.h*b)),0))},calculateMaxExtentWithLOD:function(a){var b=this.tileOrigin.lon+a.startTileCol*this.tileSize.w*a.resolution,c=this.tileOrigin.lat-a.startTileRow*this.tileSize.h*a.resolution;return new OpenLayers.Bounds(b,c-(a.endTileRow-a.startTileRow+\n +1)*this.tileSize.h*a.resolution,b+(a.endTileCol-a.startTileCol+1)*this.tileSize.w*a.resolution,c)},calculateMaxExtentWithExtent:function(a,b){var c=new OpenLayers.Geometry.Point(a.left,a.top),d=new OpenLayers.Geometry.Point(a.right,a.bottom),c=this.getContainingTileCoords(c,b),d=this.getContainingTileCoords(d,b);return this.calculateMaxExtentWithLOD({resolution:b,startTileCol:c.x,startTileRow:c.y,endTileCol:d.x,endTileRow:d.y})},getUpperLeftTileCoord:function(a){return this.getContainingTileCoords(new OpenLayers.Geometry.Point(this.maxExtent.left,\n +this.maxExtent.top),a)},getLowerRightTileCoord:function(a){return this.getContainingTileCoords(new OpenLayers.Geometry.Point(this.maxExtent.right,this.maxExtent.bottom),a)},getMaxExtentForResolution:function(a){var b=this.getUpperLeftTileCoord(a),c=this.getLowerRightTileCoord(a),d=this.tileOrigin.lon+b.x*this.tileSize.w*a,e=this.tileOrigin.lat-b.y*this.tileSize.h*a;return new OpenLayers.Bounds(d,e-(c.y-b.y+1)*this.tileSize.h*a,d+(c.x-b.x+1)*this.tileSize.w*a,e)},clone:function(a){null==a&&(a=new OpenLayers.Layer.ArcGISCache(this.name,\n +this.url,this.options));return OpenLayers.Layer.XYZ.prototype.clone.apply(this,[a])},getMaxExtent:function(){return this.maxExtent=this.getMaxExtentForResolution(this.map.getResolution())},getTileOrigin:function(){var a=this.getMaxExtent();return new OpenLayers.LonLat(a.left,a.bottom)},getURL:function(a){var b=this.getResolution(),c=this.tileOrigin.lon+b*this.tileSize.w/2,d=this.tileOrigin.lat-b*this.tileSize.h/2,a=a.getCenterLonLat(),c=Math.round(Math.abs((a.lon-c)/(b*this.tileSize.w))),d=Math.round(Math.abs((d-\n +a.lat)/(b*this.tileSize.h))),a=this.map.getZoom();if(this.lods){if(b=this.lods[this.map.getZoom()],c<b.startTileCol||c>b.endTileCol||d<b.startTileRow||d>b.endTileRow)return null}else{var e=this.getUpperLeftTileCoord(b),b=this.getLowerRightTileCoord(b);if(c<e.x||c>=b.x||d<e.y||d>=b.y)return null}b=this.url;e=""+c+d+a;OpenLayers.Util.isArray(b)&&(b=this.selectUrl(e,b));this.useArcGISServer?b+="/tile/${z}/${y}/${x}":(c="C"+this.zeroPad(c,8,16),d="R"+this.zeroPad(d,8,16),a="L"+this.zeroPad(a,2,16),b=\n +b+"/${z}/${y}/${x}."+this.type);b=OpenLayers.String.format(b,{x:c,y:d,z:a});return OpenLayers.Util.urlAppend(b,OpenLayers.Util.getParameterString(this.params))},zeroPad:function(a,b,c){for(a=a.toString(c||10);a.length<b;)a="0"+a;return a},CLASS_NAME:"OpenLayers.Layer.ArcGISCache"});OpenLayers.Control.WMSGetFeatureInfo=OpenLayers.Class(OpenLayers.Control,{hover:!1,drillDown:!1,maxFeatures:10,clickCallback:"click",output:"features",layers:null,queryVisible:!1,url:null,layerUrls:null,infoFormat:"text/html",vendorParams:{},format:null,formatOptions:null,handlerOptions:null,handler:null,hoverRequest:null,initialize:function(a){a=a||{};a.handlerOptions=a.handlerOptions||{};OpenLayers.Control.prototype.initialize.apply(this,[a]);this.format||(this.format=new OpenLayers.Format.WMSGetFeatureInfo(a.formatOptions));\n +!0===this.drillDown&&(this.hover=!1);this.hover?this.handler=new OpenLayers.Handler.Hover(this,{move:this.cancelHover,pause:this.getInfoForHover},OpenLayers.Util.extend(this.handlerOptions.hover||{},{delay:250})):(a={},a[this.clickCallback]=this.getInfoForClick,this.handler=new OpenLayers.Handler.Click(this,a,this.handlerOptions.click||{}))},getInfoForClick:function(a){this.events.triggerEvent("beforegetfeatureinfo",{xy:a.xy});OpenLayers.Element.addClass(this.map.viewPortDiv,"olCursorWait");this.request(a.xy,\n +{})},getInfoForHover:function(a){this.events.triggerEvent("beforegetfeatureinfo",{xy:a.xy});this.request(a.xy,{hover:!0})},cancelHover:function(){this.hoverRequest&&(this.hoverRequest.abort(),this.hoverRequest=null)},findLayers:function(){for(var a=this.layers||this.map.layers,b=[],c,d,e=a.length-1;0<=e;--e)if(c=a[e],c instanceof OpenLayers.Layer.WMS&&(!this.queryVisible||c.getVisibility()))d=OpenLayers.Util.isArray(c.url)?c.url[0]:c.url,!1===this.drillDown&&!this.url&&(this.url=d),(!0===this.drillDown||\n +this.urlMatches(d))&&b.push(c);return b},urlMatches:function(a){var b=OpenLayers.Util.isEquivalentUrl(this.url,a);if(!b&&this.layerUrls)for(var c=0,d=this.layerUrls.length;c<d;++c)if(OpenLayers.Util.isEquivalentUrl(this.layerUrls[c],a)){b=!0;break}return b},buildWMSOptions:function(a,b,c,d){for(var e=[],f=[],g=0,h=b.length;g<h;g++)null!=b[g].params.LAYERS&&(e=e.concat(b[g].params.LAYERS),f=f.concat(this.getStyleNames(b[g])));b=b[0];g=this.map.getProjection();(h=b.projection)&&h.equals(this.map.getProjectionObject())&&\n +(g=h.getCode());d=OpenLayers.Util.extend({service:"WMS",version:b.params.VERSION,request:"GetFeatureInfo",exceptions:b.params.EXCEPTIONS,bbox:this.map.getExtent().toBBOX(null,b.reverseAxisOrder()),feature_count:this.maxFeatures,height:this.map.getSize().h,width:this.map.getSize().w,format:d,info_format:b.params.INFO_FORMAT||this.infoFormat},1.3<=parseFloat(b.params.VERSION)?{crs:g,i:parseInt(c.x),j:parseInt(c.y)}:{srs:g,x:parseInt(c.x),y:parseInt(c.y)});0!=e.length&&(d=OpenLayers.Util.extend({layers:e,\n +query_layers:e,styles:f},d));OpenLayers.Util.applyDefaults(d,this.vendorParams);return{url:a,params:OpenLayers.Util.upperCaseObject(d),callback:function(b){this.handleResponse(c,b,a)},scope:this}},getStyleNames:function(a){return a.params.STYLES?a.params.STYLES:OpenLayers.Util.isArray(a.params.LAYERS)?Array(a.params.LAYERS.length):a.params.LAYERS.replace(/[^,]/g,"")},request:function(a,b){var c=this.findLayers();if(0==c.length)this.events.triggerEvent("nogetfeatureinfo"),OpenLayers.Element.removeClass(this.map.viewPortDiv,\n +"olCursorWait");else if(b=b||{},!1===this.drillDown){var c=this.buildWMSOptions(this.url,c,a,c[0].params.FORMAT),d=OpenLayers.Request.GET(c);!0===b.hover&&(this.hoverRequest=d)}else{this._numRequests=this._requestCount=0;this.features=[];for(var d={},e,f=0,g=c.length;f<g;f++){var h=c[f];e=OpenLayers.Util.isArray(h.url)?h.url[0]:h.url;e in d?d[e].push(h):(this._numRequests++,d[e]=[h])}for(e in d)c=d[e],c=this.buildWMSOptions(e,c,a,c[0].params.FORMAT),OpenLayers.Request.GET(c)}},triggerGetFeatureInfo:function(a,\n +b,c){this.events.triggerEvent("getfeatureinfo",{text:a.responseText,features:c,request:a,xy:b});OpenLayers.Element.removeClass(this.map.viewPortDiv,"olCursorWait")},handleResponse:function(a,b,c){var d=b.responseXML;if(!d||!d.documentElement)d=b.responseText;d=this.format.read(d);!1===this.drillDown?this.triggerGetFeatureInfo(b,a,d):(this._requestCount++,this._features="object"===this.output?(this._features||[]).concat({url:c,features:d}):(this._features||[]).concat(d),this._requestCount===this._numRequests&&\n +(this.triggerGetFeatureInfo(b,a,this._features.concat()),delete this._features,delete this._requestCount,delete this._numRequests))},CLASS_NAME:"OpenLayers.Control.WMSGetFeatureInfo"});OpenLayers.Format.WMSCapabilities.v1_3_0=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1_3,{version:"1.3.0",CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_3_0"});OpenLayers.Format.SOSGetFeatureOfInterest=OpenLayers.Class(OpenLayers.Format.XML,{VERSION:"1.0.0",namespaces:{sos:"http://www.opengis.net/sos/1.0",gml:"http://www.opengis.net/gml",sa:"http://www.opengis.net/sampling/1.0",xsi:"http://www.w3.org/2001/XMLSchema-instance"},schemaLocation:"http://www.opengis.net/sos/1.0 http://schemas.opengis.net/sos/1.0.0/sosAll.xsd",defaultPrefix:"sos",regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},read:function(a){"string"==\n +typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));a&&9==a.nodeType&&(a=a.documentElement);var b={features:[]};this.readNode(a,b);for(var a=[],c=0,d=b.features.length;c<d;c++){var e=b.features[c];this.internalProjection&&(this.externalProjection&&e.components[0])&&e.components[0].transform(this.externalProjection,this.internalProjection);e=new OpenLayers.Feature.Vector(e.components[0],e.attributes);a.push(e)}return a},readers:{sa:{SamplingPoint:function(a,b){if(!b.attributes){var c=\n +{attributes:{}};b.features.push(c);b=c}b.attributes.id=this.getAttributeNS(a,this.namespaces.gml,"id");this.readChildNodes(a,b)},position:function(a,b){this.readChildNodes(a,b)}},gml:OpenLayers.Util.applyDefaults({FeatureCollection:function(a,b){this.readChildNodes(a,b)},featureMember:function(a,b){var c={attributes:{}};b.features.push(c);this.readChildNodes(a,c)},name:function(a,b){b.attributes.name=this.getChildValue(a)},pos:function(a,b){this.externalProjection||(this.externalProjection=new OpenLayers.Projection(a.getAttribute("srsName")));\n +OpenLayers.Format.GML.v3.prototype.readers.gml.pos.apply(this,[a,b])}},OpenLayers.Format.GML.v3.prototype.readers.gml)},writers:{sos:{GetFeatureOfInterest:function(a){for(var b=this.createElementNSPlus("GetFeatureOfInterest",{attributes:{version:this.VERSION,service:"SOS","xsi:schemaLocation":this.schemaLocation}}),c=0,d=a.fois.length;c<d;c++)this.writeNode("FeatureOfInterestId",{foi:a.fois[c]},b);return b},FeatureOfInterestId:function(a){return this.createElementNSPlus("FeatureOfInterestId",{value:a.foi})}}},\n +CLASS_NAME:"OpenLayers.Format.SOSGetFeatureOfInterest"});OpenLayers.Format.SOSGetObservation=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ows:"http://www.opengis.net/ows",gml:"http://www.opengis.net/gml",sos:"http://www.opengis.net/sos/1.0",ogc:"http://www.opengis.net/ogc",om:"http://www.opengis.net/om/1.0",sa:"http://www.opengis.net/sampling/1.0",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},regExes:{trimSpace:/^\\s*|\\s*$/g,removeSpace:/\\s*/g,splitSpace:/\\s+/,trimComma:/\\s*,\\s*/g},VERSION:"1.0.0",schemaLocation:"http://www.opengis.net/sos/1.0 http://schemas.opengis.net/sos/1.0.0/sosGetObservation.xsd",\n +defaultPrefix:"sos",read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));a&&9==a.nodeType&&(a=a.documentElement);var b={measurements:[],observations:[]};this.readNode(a,b);return b},write:function(a){a=this.writeNode("sos:GetObservation",a);a.setAttribute("xmlns:om",this.namespaces.om);a.setAttribute("xmlns:ogc",this.namespaces.ogc);this.setAttributeNS(a,this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);return OpenLayers.Format.XML.prototype.write.apply(this,\n +[a])},readers:{om:{ObservationCollection:function(a,b){b.id=this.getAttributeNS(a,this.namespaces.gml,"id");this.readChildNodes(a,b)},member:function(a,b){this.readChildNodes(a,b)},Measurement:function(a,b){var c={};b.measurements.push(c);this.readChildNodes(a,c)},Observation:function(a,b){var c={};b.observations.push(c);this.readChildNodes(a,c)},samplingTime:function(a,b){var c={};b.samplingTime=c;this.readChildNodes(a,c)},observedProperty:function(a,b){b.observedProperty=this.getAttributeNS(a,this.namespaces.xlink,\n +"href");this.readChildNodes(a,b)},procedure:function(a,b){b.procedure=this.getAttributeNS(a,this.namespaces.xlink,"href");this.readChildNodes(a,b)},featureOfInterest:function(a,b){var c={features:[]};b.fois=[];b.fois.push(c);this.readChildNodes(a,c);for(var d=[],e=0,f=c.features.length;e<f;e++){var g=c.features[e];d.push(new OpenLayers.Feature.Vector(g.components[0],g.attributes))}c.features=d},result:function(a,b){var c={};b.result=c;""!==this.getChildValue(a)?(c.value=this.getChildValue(a),c.uom=\n +a.getAttribute("uom")):this.readChildNodes(a,c)}},sa:OpenLayers.Format.SOSGetFeatureOfInterest.prototype.readers.sa,gml:OpenLayers.Util.applyDefaults({TimeInstant:function(a,b){var c={};b.timeInstant=c;this.readChildNodes(a,c)},timePosition:function(a,b){b.timePosition=this.getChildValue(a)}},OpenLayers.Format.SOSGetFeatureOfInterest.prototype.readers.gml)},writers:{sos:{GetObservation:function(a){var b=this.createElementNSPlus("GetObservation",{attributes:{version:this.VERSION,service:"SOS"}});this.writeNode("offering",\n +a,b);a.eventTime&&this.writeNode("eventTime",a,b);for(var c in a.procedures)this.writeNode("procedure",a.procedures[c],b);for(var d in a.observedProperties)this.writeNode("observedProperty",a.observedProperties[d],b);a.foi&&this.writeNode("featureOfInterest",a.foi,b);this.writeNode("responseFormat",a,b);a.resultModel&&this.writeNode("resultModel",a,b);a.responseMode&&this.writeNode("responseMode",a,b);return b},featureOfInterest:function(a){var b=this.createElementNSPlus("featureOfInterest");this.writeNode("ObjectID",\n +a.objectId,b);return b},ObjectID:function(a){return this.createElementNSPlus("ObjectID",{value:a})},responseFormat:function(a){return this.createElementNSPlus("responseFormat",{value:a.responseFormat})},procedure:function(a){return this.createElementNSPlus("procedure",{value:a})},offering:function(a){return this.createElementNSPlus("offering",{value:a.offering})},observedProperty:function(a){return this.createElementNSPlus("observedProperty",{value:a})},eventTime:function(a){var b=this.createElementNSPlus("eventTime");\n +"latest"===a.eventTime&&this.writeNode("ogc:TM_Equals",a,b);return b},resultModel:function(a){return this.createElementNSPlus("resultModel",{value:a.resultModel})},responseMode:function(a){return this.createElementNSPlus("responseMode",{value:a.responseMode})}},ogc:{TM_Equals:function(a){var b=this.createElementNSPlus("ogc:TM_Equals");this.writeNode("ogc:PropertyName",{property:"urn:ogc:data:time:iso8601"},b);"latest"===a.eventTime&&this.writeNode("gml:TimeInstant",{value:"latest"},b);return b},PropertyName:function(a){return this.createElementNSPlus("ogc:PropertyName",\n +{value:a.property})}},gml:{TimeInstant:function(a){var b=this.createElementNSPlus("gml:TimeInstant");this.writeNode("gml:timePosition",a,b);return b},timePosition:function(a){return this.createElementNSPlus("gml:timePosition",{value:a.value})}}},CLASS_NAME:"OpenLayers.Format.SOSGetObservation"});OpenLayers.Control.UTFGrid=OpenLayers.Class(OpenLayers.Control,{autoActivate:!0,layers:null,defaultHandlerOptions:{delay:300,pixelTolerance:4,stopMove:!1,single:!0,"double":!1,stopSingle:!1,stopDouble:!1},handlerMode:"click",setHandler:function(a){this.handlerMode=a;this.resetHandler()},resetHandler:function(){this.handler&&(this.handler.deactivate(),this.handler.destroy(),this.handler=null);"hover"==this.handlerMode?this.handler=new OpenLayers.Handler.Hover(this,{pause:this.handleEvent,move:this.reset},\n +this.handlerOptions):"click"==this.handlerMode?this.handler=new OpenLayers.Handler.Click(this,{click:this.handleEvent},this.handlerOptions):"move"==this.handlerMode&&(this.handler=new OpenLayers.Handler.Hover(this,{pause:this.handleEvent,move:this.handleEvent},this.handlerOptions));return this.handler?!0:!1},initialize:function(a){a=a||{};a.handlerOptions=a.handlerOptions||this.defaultHandlerOptions;OpenLayers.Control.prototype.initialize.apply(this,[a]);this.resetHandler()},handleEvent:function(a){if(null==\n +a)this.reset();else{var b=this.map.getLonLatFromPixel(a.xy);if(b){var c=this.findLayers();if(0<c.length){for(var d={},e,f,g=0,h=c.length;g<h;g++)e=c[g],f=OpenLayers.Util.indexOf(this.map.layers,e),d[f]=e.getFeatureInfo(b);this.callback(d,b,a.xy)}}}},callback:function(){},reset:function(){this.callback(null)},findLayers:function(){for(var a=this.layers||this.map.layers,b=[],c,d=a.length-1;0<=d;--d)c=a[d],c instanceof OpenLayers.Layer.UTFGrid&&b.push(c);return b},CLASS_NAME:"OpenLayers.Control.UTFGrid"});OpenLayers.Format.CQL=function(){function a(a){function b(){var a=e.pop();switch(a.type){case "LOGICAL":var c=b(),g=b();return new OpenLayers.Filter.Logical({filters:[g,c],type:f[a.text.toUpperCase()]});case "NOT":return c=b(),new OpenLayers.Filter.Logical({filters:[c],type:OpenLayers.Filter.Logical.NOT});case "BETWEEN":return e.pop(),g=b(),a=b(),c=b(),new OpenLayers.Filter.Comparison({property:c,lowerBoundary:a,upperBoundary:g,type:OpenLayers.Filter.Comparison.BETWEEN});case "COMPARISON":return g=\n +b(),c=b(),new OpenLayers.Filter.Comparison({property:c,value:g,type:d[a.text.toUpperCase()]});case "VALUE":return/^\'.*\'$/.test(a.text)?a.text.substr(1,a.text.length-2):Number(a.text);case "SPATIAL":switch(a.text.toUpperCase()){case "BBOX":var c=b(),a=b(),g=b(),h=b(),i=b();return new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.BBOX,property:i,value:OpenLayers.Bounds.fromArray([h,g,a,c])});case "INTERSECTS":return g=b(),c=b(),new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.INTERSECTS,\n +property:c,value:g});case "WITHIN":return g=b(),c=b(),new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.WITHIN,property:c,value:g});case "CONTAINS":return g=b(),c=b(),new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.CONTAINS,property:c,value:g});case "DWITHIN":return a=b(),g=b(),c=b(),new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.DWITHIN,value:g,property:c,distance:Number(a)})}case "GEOMETRY":return OpenLayers.Geometry.fromWKT(a.text);default:return a.text}}\n +for(var c=[],e=[];a.length;){var g=a.shift();switch(g.type){case "PROPERTY":case "GEOMETRY":case "VALUE":e.push(g);break;case "COMPARISON":case "BETWEEN":case "LOGICAL":for(var i=h[g.type];0<c.length&&h[c[c.length-1].type]<=i;)e.push(c.pop());c.push(g);break;case "SPATIAL":case "NOT":case "LPAREN":c.push(g);break;case "RPAREN":for(;0<c.length&&"LPAREN"!=c[c.length-1].type;)e.push(c.pop());c.pop();0<c.length&&"SPATIAL"==c[c.length-1].type&&e.push(c.pop());case "COMMA":case "END":break;default:throw Error("Unknown token type "+\n +g.type);}}for(;0<c.length;)e.push(c.pop());a=b();if(0<e.length){a="Remaining tokens after building AST: \\n";for(c=e.length-1;0<=c;c--)a+=e[c].type+": "+e[c].text+"\\n";throw Error(a);}return a}var b={PROPERTY:/^[_a-zA-Z]\\w*/,COMPARISON:/^(=|<>|<=|<|>=|>|LIKE)/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^(\'\\w+\'|\\d+(\\.\\d*)?|\\.\\d+)/,LPAREN:/^\\(/,RPAREN:/^\\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(a){var b=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(a);\n +if(b){var c=a.length,b=a.indexOf("(",b[0].length);if(-1<b)for(var d=1;b<c&&0<d;)switch(b++,a.charAt(b)){case "(":d++;break;case ")":d--}return[a.substr(0,b+1)]}},END:/^$/},c={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA"],BETWEEN:["VALUE"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],\n +NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},d={"=":OpenLayers.Filter.Comparison.EQUAL_TO,"<>":OpenLayers.Filter.Comparison.NOT_EQUAL_TO,"<":OpenLayers.Filter.Comparison.LESS_THAN,"<=":OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO,">":OpenLayers.Filter.Comparison.GREATER_THAN,">=":OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO,LIKE:OpenLayers.Filter.Comparison.LIKE,BETWEEN:OpenLayers.Filter.Comparison.BETWEEN},e={},f={AND:OpenLayers.Filter.Logical.AND,OR:OpenLayers.Filter.Logical.OR},\n +g={},h={RPAREN:3,LOGICAL:2,COMPARISON:1},i;for(i in d)d.hasOwnProperty(i)&&(e[d[i]]=i);for(i in f)f.hasOwnProperty(i)&&(g[f[i]]=i);return OpenLayers.Class(OpenLayers.Format,{read:function(d){var e=d,d=[],f,g=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{a:{f=g;for(var h=void 0,g=void 0,i=f.length,h=0;h<i;h++){var g=f[h],p=b[g]instanceof RegExp?b[g].exec(e):(0,b[g])(e);if(p){f=p[0];e=e.substr(f.length).replace(/^\\s*/,"");f={type:g,text:f,remainder:e};break a}}d="ERROR: In parsing: ["+e+"], expected one of: ";\n +for(h=0;h<i;h++)g=f[h],d+="\\n "+g+": "+b[g];throw Error(d);}e=f.remainder;g=c[f.type];if("END"!=f.type&&!g)throw Error("No follows list for "+f.type);d.push(f)}while("END"!=f.type);d=a(d);this.keepData&&(this.data=d);return d},write:function(a){if(a instanceof OpenLayers.Geometry)return a.toString();switch(a.CLASS_NAME){case "OpenLayers.Filter.Spatial":switch(a.type){case OpenLayers.Filter.Spatial.BBOX:return"BBOX("+a.property+","+a.value.toBBOX()+")";case OpenLayers.Filter.Spatial.DWITHIN:return"DWITHIN("+\n +a.property+", "+this.write(a.value)+", "+a.distance+")";case OpenLayers.Filter.Spatial.WITHIN:return"WITHIN("+a.property+", "+this.write(a.value)+")";case OpenLayers.Filter.Spatial.INTERSECTS:return"INTERSECTS("+a.property+", "+this.write(a.value)+")";case OpenLayers.Filter.Spatial.CONTAINS:return"CONTAINS("+a.property+", "+this.write(a.value)+")";default:throw Error("Unknown spatial filter type: "+a.type);}case "OpenLayers.Filter.Logical":if(a.type==OpenLayers.Filter.Logical.NOT)return"NOT ("+this.write(a.filters[0])+\n +")";for(var b="(",c=!0,d=0;d<a.filters.length;d++)c?c=!1:b+=") "+g[a.type]+" (",b+=this.write(a.filters[d]);return b+")";case "OpenLayers.Filter.Comparison":return a.type==OpenLayers.Filter.Comparison.BETWEEN?a.property+" BETWEEN "+this.write(a.lowerBoundary)+" AND "+this.write(a.upperBoundary):a.property+" "+e[a.type]+" "+this.write(a.value);case void 0:if("string"===typeof a)return"\'"+a+"\'";if("number"===typeof a)return""+a;default:throw Error("Can\'t encode: "+a.CLASS_NAME+" "+a);}},CLASS_NAME:"OpenLayers.Format.CQL"})}();OpenLayers.Control.Split=OpenLayers.Class(OpenLayers.Control,{layer:null,source:null,sourceOptions:null,tolerance:null,edge:!0,deferDelete:!1,mutual:!0,targetFilter:null,sourceFilter:null,handler:null,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,[a]);this.options=a||{};this.options.source&&this.setSource(this.options.source)},setSource:function(a){this.active?(this.deactivate(),this.handler&&(this.handler.destroy(),delete this.handler),this.source=a,this.activate()):this.source=\n +a},activate:function(){var a=OpenLayers.Control.prototype.activate.call(this);if(a)if(this.source){if(this.source.events)this.source.events.on({sketchcomplete:this.onSketchComplete,afterfeaturemodified:this.afterFeatureModified,scope:this})}else this.handler||(this.handler=new OpenLayers.Handler.Path(this,{done:function(a){this.onSketchComplete({feature:new OpenLayers.Feature.Vector(a)})}},{layerOptions:this.sourceOptions})),this.handler.activate();return a},deactivate:function(){var a=OpenLayers.Control.prototype.deactivate.call(this);\n +a&&this.source&&this.source.events&&this.layer.events.un({sketchcomplete:this.onSketchComplete,afterfeaturemodified:this.afterFeatureModified,scope:this});return a},onSketchComplete:function(a){this.feature=null;return!this.considerSplit(a.feature)},afterFeatureModified:function(a){a.modified&&"function"===typeof a.feature.geometry.split&&(this.feature=a.feature,this.considerSplit(a.feature))},removeByGeometry:function(a,b){for(var c=0,d=a.length;c<d;++c)if(a[c].geometry===b){a.splice(c,1);break}},\n +isEligible:function(a){return a.geometry?a.state!==OpenLayers.State.DELETE&&"function"===typeof a.geometry.split&&this.feature!==a&&(!this.targetFilter||this.targetFilter.evaluate(a.attributes)):!1},considerSplit:function(a){var b=!1,c=!1;if(!this.sourceFilter||this.sourceFilter.evaluate(a.attributes)){for(var d=this.layer&&this.layer.features||[],e,f,g=[],h=[],i=this.layer===this.source&&this.mutual,j={edge:this.edge,tolerance:this.tolerance,mutual:i},k=[a.geometry],l,m,n,o=0,p=d.length;o<p;++o)if(l=\n +d[o],this.isEligible(l)){m=[l.geometry];for(var q=0;q<k.length;++q){n=k[q];for(var r=0;r<m.length;++r)if(e=m[r],n.getBounds().intersectsBounds(e.getBounds())&&(e=n.split(e,j)))if(f=this.events.triggerEvent("beforesplit",{source:a,target:l}),!1!==f&&(i&&(f=e[0],1<f.length&&(f.unshift(q,1),Array.prototype.splice.apply(k,f),q+=f.length-3),e=e[1]),1<e.length))e.unshift(r,1),Array.prototype.splice.apply(m,e),r+=e.length-3}m&&1<m.length&&(this.geomsToFeatures(l,m),this.events.triggerEvent("split",{original:l,\n +features:m}),Array.prototype.push.apply(g,m),h.push(l),c=!0)}k&&1<k.length&&(this.geomsToFeatures(a,k),this.events.triggerEvent("split",{original:a,features:k}),Array.prototype.push.apply(g,k),h.push(a),b=!0);if(b||c){if(this.deferDelete){d=[];o=0;for(p=h.length;o<p;++o)c=h[o],c.state===OpenLayers.State.INSERT?d.push(c):(c.state=OpenLayers.State.DELETE,this.layer.drawFeature(c));this.layer.destroyFeatures(d,{silent:!0});o=0;for(p=g.length;o<p;++o)g[o].state=OpenLayers.State.INSERT}else this.layer.destroyFeatures(h,\n +{silent:!0});this.layer.addFeatures(g,{silent:!0});this.events.triggerEvent("aftersplit",{source:a,features:g})}}return b},geomsToFeatures:function(a,b){var c=a.clone();delete c.geometry;for(var d,e=0,f=b.length;e<f;++e)d=c.clone(),d.geometry=b[e],d.state=OpenLayers.State.INSERT,b[e]=d},destroy:function(){this.active&&this.deactivate();OpenLayers.Control.prototype.destroy.call(this)},CLASS_NAME:"OpenLayers.Control.Split"});OpenLayers.Layer.WMTS=OpenLayers.Class(OpenLayers.Layer.Grid,{isBaseLayer:!0,version:"1.0.0",requestEncoding:"KVP",url:null,layer:null,matrixSet:null,style:null,format:"image/jpeg",tileOrigin:null,tileFullExtent:null,formatSuffix:null,matrixIds:null,dimensions:null,params:null,zoomOffset:0,serverResolutions:null,formatSuffixMap:{"image/png":"png","image/png8":"png","image/png24":"png","image/png32":"png",png:"png","image/jpeg":"jpg","image/jpg":"jpg",jpeg:"jpg",jpg:"jpg"},matrix:null,initialize:function(a){var b=\n +{url:!0,layer:!0,style:!0,matrixSet:!0},c;for(c in b)if(!(c in a))throw Error("Missing property \'"+c+"\' in layer configuration.");a.params=OpenLayers.Util.upperCaseObject(a.params);OpenLayers.Layer.Grid.prototype.initialize.apply(this,[a.name,a.url,a.params,a]);this.formatSuffix||(this.formatSuffix=this.formatSuffixMap[this.format]||this.format.split("/").pop());if(this.matrixIds&&(a=this.matrixIds.length)&&"string"===typeof this.matrixIds[0]){b=this.matrixIds;this.matrixIds=Array(a);for(c=0;c<a;++c)this.matrixIds[c]=\n +{identifier:b[c]}}},setMap:function(){OpenLayers.Layer.Grid.prototype.setMap.apply(this,arguments);this.updateMatrixProperties()},updateMatrixProperties:function(){if(this.matrix=this.getMatrix())if(this.matrix.topLeftCorner&&(this.tileOrigin=this.matrix.topLeftCorner),this.matrix.tileWidth&&this.matrix.tileHeight&&(this.tileSize=new OpenLayers.Size(this.matrix.tileWidth,this.matrix.tileHeight)),this.tileOrigin||(this.tileOrigin=new OpenLayers.LonLat(this.maxExtent.left,this.maxExtent.top)),!this.tileFullExtent)this.tileFullExtent=\n +this.maxExtent},moveTo:function(a,b,c){(b||!this.matrix)&&this.updateMatrixProperties();return OpenLayers.Layer.Grid.prototype.moveTo.apply(this,arguments)},clone:function(a){null==a&&(a=new OpenLayers.Layer.WMTS(this.options));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},getIdentifier:function(){return this.getServerZoom()},getMatrix:function(){var a;if(!this.matrixIds||0===this.matrixIds.length)a={identifier:this.getIdentifier()};else if("scaleDenominator"in this.matrixIds[0])for(var b=\n +OpenLayers.METERS_PER_INCH*OpenLayers.INCHES_PER_UNIT[this.units]*this.getServerResolution()/2.8E-4,c=Number.POSITIVE_INFINITY,d,e=0,f=this.matrixIds.length;e<f;++e)d=Math.abs(1-this.matrixIds[e].scaleDenominator/b),d<c&&(c=d,a=this.matrixIds[e]);else a=this.matrixIds[this.getIdentifier()];return a},getTileInfo:function(a){var b=this.getServerResolution(),c=(a.lon-this.tileOrigin.lon)/(b*this.tileSize.w),a=(this.tileOrigin.lat-a.lat)/(b*this.tileSize.h),b=Math.floor(c),d=Math.floor(a);return{col:b,\n +row:d,i:Math.floor((c-b)*this.tileSize.w),j:Math.floor((a-d)*this.tileSize.h)}},getURL:function(a){var a=this.adjustBounds(a),b="";if(!this.tileFullExtent||this.tileFullExtent.intersectsBounds(a)){var c=this.getTileInfo(a.getCenterLonLat()),a=this.dimensions;if("REST"===this.requestEncoding.toUpperCase())if(b=this.params,"string"===typeof this.url&&-1!==this.url.indexOf("{")){var d=this.url.replace(/\\{/g,"${"),c={style:this.style,Style:this.style,TileMatrixSet:this.matrixSet,TileMatrix:this.matrix.identifier,\n +TileRow:c.row,TileCol:c.col};if(a){var e,f;for(f=a.length-1;0<=f;--f)e=a[f],c[e]=b[e.toUpperCase()]}b=OpenLayers.String.format(d,c)}else{d=this.version+"/"+this.layer+"/"+this.style+"/";if(a)for(f=0;f<a.length;f++)b[a[f]]&&(d=d+b[a[f]]+"/");d=d+this.matrixSet+"/"+this.matrix.identifier+"/"+c.row+"/"+c.col+"."+this.formatSuffix;b=OpenLayers.Util.isArray(this.url)?this.selectUrl(d,this.url):this.url;b.match(/\\/$/)||(b+="/");b+=d}else"KVP"===this.requestEncoding.toUpperCase()&&(b={SERVICE:"WMTS",REQUEST:"GetTile",\n +VERSION:this.version,LAYER:this.layer,STYLE:this.style,TILEMATRIXSET:this.matrixSet,TILEMATRIX:this.matrix.identifier,TILEROW:c.row,TILECOL:c.col,FORMAT:this.format},b=OpenLayers.Layer.Grid.prototype.getFullRequestString.apply(this,[b]))}return b},mergeNewParams:function(a){if("KVP"===this.requestEncoding.toUpperCase())return OpenLayers.Layer.Grid.prototype.mergeNewParams.apply(this,[OpenLayers.Util.upperCaseObject(a)])},CLASS_NAME:"OpenLayers.Layer.WMTS"});OpenLayers.Protocol.SOS.v1_0_0=OpenLayers.Class(OpenLayers.Protocol,{fois:null,formatOptions:null,initialize:function(a){OpenLayers.Protocol.prototype.initialize.apply(this,[a]);a.format||(this.format=new OpenLayers.Format.SOSGetFeatureOfInterest(this.formatOptions))},destroy:function(){this.options&&!this.options.format&&this.format.destroy();this.format=null;OpenLayers.Protocol.prototype.destroy.apply(this)},read:function(a){a=OpenLayers.Util.extend({},a);OpenLayers.Util.applyDefaults(a,this.options||\n +{});var b=new OpenLayers.Protocol.Response({requestType:"read"}),c=this.format,c=OpenLayers.Format.XML.prototype.write.apply(c,[c.writeNode("sos:GetFeatureOfInterest",{fois:this.fois})]);b.priv=OpenLayers.Request.POST({url:a.url,callback:this.createCallback(this.handleRead,b,a),data:c});return b},handleRead:function(a,b){if(b.callback){var c=a.priv;200<=c.status&&300>c.status?(a.features=this.parseFeatures(c),a.code=OpenLayers.Protocol.Response.SUCCESS):a.code=OpenLayers.Protocol.Response.FAILURE;\n +b.callback.call(b.scope,a)}},parseFeatures:function(a){var b=a.responseXML;if(!b||!b.documentElement)b=a.responseText;return!b||0>=b.length?null:this.format.read(b)},CLASS_NAME:"OpenLayers.Protocol.SOS.v1_0_0"});OpenLayers.Layer.KaMapCache=OpenLayers.Class(OpenLayers.Layer.KaMap,{IMAGE_EXTENSIONS:{jpeg:"jpg",gif:"gif",png:"png",png8:"png",png24:"png",dithered:"png"},DEFAULT_FORMAT:"jpeg",initialize:function(a,b,c,d){OpenLayers.Layer.KaMap.prototype.initialize.apply(this,arguments);this.extension=this.IMAGE_EXTENSIONS[this.params.i.toLowerCase()||this.DEFAULT_FORMAT]},getURL:function(a){var a=this.adjustBounds(a),b=this.map.getResolution(),c=Math.round(1E4*this.map.getScale())/1E4,d=Math.round(a.left/b),a=\n +-Math.round(a.top/b),b=Math.floor(d/this.tileSize.w/this.params.metaTileSize.w)*this.tileSize.w*this.params.metaTileSize.w,e=Math.floor(a/this.tileSize.h/this.params.metaTileSize.h)*this.tileSize.h*this.params.metaTileSize.h,c=["/",this.params.map,"/",c,"/",this.params.g.replace(/\\s/g,"_"),"/def/t",e,"/l",b,"/t",a,"l",d,".",this.extension],d=this.url;OpenLayers.Util.isArray(d)&&(d=this.selectUrl(c.join(""),d));return d+c.join("")},CLASS_NAME:"OpenLayers.Layer.KaMapCache"});OpenLayers.Protocol.WFS.v1_1_0=OpenLayers.Class(OpenLayers.Protocol.WFS.v1,{version:"1.1.0",initialize:function(a){OpenLayers.Protocol.WFS.v1.prototype.initialize.apply(this,arguments);this.outputFormat&&!this.readFormat&&("gml2"==this.outputFormat.toLowerCase()?this.readFormat=new OpenLayers.Format.GML.v2({featureType:this.featureType,featureNS:this.featureNS,geometryName:this.geometryName}):"json"==this.outputFormat.toLowerCase()&&(this.readFormat=new OpenLayers.Format.GeoJSON))},CLASS_NAME:"OpenLayers.Protocol.WFS.v1_1_0"});OpenLayers.Format.WMSCapabilities.v1_1_1=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1_1,{version:"1.1.1",readers:{wms:OpenLayers.Util.applyDefaults({SRS:function(a,b){b.srs[this.getChildValue(a)]=!0}},OpenLayers.Format.WMSCapabilities.v1_1.prototype.readers.wms)},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_1_1"});OpenLayers.Format.WMSCapabilities.v1_1_1_WMSC=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1_1_1,{version:"1.1.1",profile:"WMSC",readers:{wms:OpenLayers.Util.applyDefaults({VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};this.readChildNodes(a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};this.readChildNodes(a,c);b.tileSets.push(c)},Resolutions:function(a,b){for(var c=this.getChildValue(a).split(" "),d=0,e=c.length;d<e;d++)""!=c[d]&&b.resolutions.push(parseFloat(c[d]))},\n +Width:function(a,b){b.width=parseInt(this.getChildValue(a))},Height:function(a,b){b.height=parseInt(this.getChildValue(a))},Layers:function(a,b){b.layers=this.getChildValue(a)},Styles:function(a,b){b.styles=this.getChildValue(a)}},OpenLayers.Format.WMSCapabilities.v1_1_1.prototype.readers.wms)},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_1_1_WMSC"});OpenLayers.Format.WMSCapabilities.v1_1_0=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1_1,{version:"1.1.0",readers:{wms:OpenLayers.Util.applyDefaults({SRS:function(a,b){for(var c=this.getChildValue(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=!0}},OpenLayers.Format.WMSCapabilities.v1_1.prototype.readers.wms)},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_1_0"});OpenLayers.Control.LayerSwitcher=OpenLayers.Class(OpenLayers.Control,{roundedCorner:!1,roundedCornerColor:"darkblue",layerStates:null,layersDiv:null,baseLayersDiv:null,baseLayers:null,dataLbl:null,dataLayersDiv:null,dataLayers:null,minimizeDiv:null,maximizeDiv:null,ascending:!0,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,arguments);this.layerStates=[];this.roundedCorner&&OpenLayers.Console.warn("roundedCorner option is deprecated")},destroy:function(){this.clearLayersArray("base");\n +this.clearLayersArray("data");this.map.events.un({buttonclick:this.onButtonClick,addlayer:this.redraw,changelayer:this.redraw,removelayer:this.redraw,changebaselayer:this.redraw,scope:this});this.events.unregister("buttonclick",this,this.onButtonClick);OpenLayers.Control.prototype.destroy.apply(this,arguments)},setMap:function(a){OpenLayers.Control.prototype.setMap.apply(this,arguments);this.map.events.on({addlayer:this.redraw,changelayer:this.redraw,removelayer:this.redraw,changebaselayer:this.redraw,\n +scope:this});this.outsideViewport?(this.events.attachToElement(this.div),this.events.register("buttonclick",this,this.onButtonClick)):this.map.events.register("buttonclick",this,this.onButtonClick)},draw:function(){OpenLayers.Control.prototype.draw.apply(this);this.loadContents();this.outsideViewport||this.minimizeControl();this.redraw();return this.div},onButtonClick:function(a){a=a.buttonElement;a===this.minimizeDiv?this.minimizeControl():a===this.maximizeDiv?this.maximizeControl():a._layerSwitcher===\n +this.id&&(a["for"]&&(a=document.getElementById(a["for"])),a.disabled||("radio"==a.type?(a.checked=!0,this.map.setBaseLayer(this.map.getLayer(a._layer))):(a.checked=!a.checked,this.updateMap())))},clearLayersArray:function(a){this[a+"LayersDiv"].innerHTML="";this[a+"Layers"]=[]},checkRedraw:function(){var a=!1;if(!this.layerStates.length||this.map.layers.length!=this.layerStates.length)a=!0;else for(var b=0,c=this.layerStates.length;b<c;b++){var d=this.layerStates[b],e=this.map.layers[b];if(d.name!=\n +e.name||d.inRange!=e.inRange||d.id!=e.id||d.visibility!=e.visibility){a=!0;break}}return a},redraw:function(){if(!this.checkRedraw())return this.div;this.clearLayersArray("base");this.clearLayersArray("data");var a=!1,b=!1,c=this.map.layers.length;this.layerStates=Array(c);for(var d=0;d<c;d++){var e=this.map.layers[d];this.layerStates[d]={name:e.name,visibility:e.visibility,inRange:e.inRange,id:e.id}}var f=this.map.layers.slice();this.ascending||f.reverse();d=0;for(c=f.length;d<c;d++){var e=f[d],\n +g=e.isBaseLayer;if(e.displayInLayerSwitcher){g?b=!0:a=!0;var h=g?e==this.map.baseLayer:e.getVisibility(),i=document.createElement("input");i.id=this.id+"_input_"+e.name;i.name=g?this.id+"_baseLayers":e.name;i.type=g?"radio":"checkbox";i.value=e.name;i.checked=h;i.defaultChecked=h;i.className="olButton";i._layer=e.id;i._layerSwitcher=this.id;!g&&!e.inRange&&(i.disabled=!0);h=document.createElement("label");h["for"]=i.id;OpenLayers.Element.addClass(h,"labelSpan olButton");h._layer=e.id;h._layerSwitcher=\n +this.id;!g&&!e.inRange&&(h.style.color="gray");h.innerHTML=e.name;h.style.verticalAlign=g?"bottom":"baseline";var j=document.createElement("br");(g?this.baseLayers:this.dataLayers).push({layer:e,inputElem:i,labelSpan:h});e=g?this.baseLayersDiv:this.dataLayersDiv;e.appendChild(i);e.appendChild(h);e.appendChild(j)}}this.dataLbl.style.display=a?"":"none";this.baseLbl.style.display=b?"":"none";return this.div},updateMap:function(){for(var a=0,b=this.baseLayers.length;a<b;a++){var c=this.baseLayers[a];\n +c.inputElem.checked&&this.map.setBaseLayer(c.layer,!1)}a=0;for(b=this.dataLayers.length;a<b;a++)c=this.dataLayers[a],c.layer.setVisibility(c.inputElem.checked)},maximizeControl:function(a){this.div.style.width="";this.div.style.height="";this.showControls(!1);null!=a&&OpenLayers.Event.stop(a)},minimizeControl:function(a){this.div.style.width="0px";this.div.style.height="0px";this.showControls(!0);null!=a&&OpenLayers.Event.stop(a)},showControls:function(a){this.maximizeDiv.style.display=a?"":"none";\n +this.minimizeDiv.style.display=a?"none":"";this.layersDiv.style.display=a?"none":""},loadContents:function(){this.layersDiv=document.createElement("div");this.layersDiv.id=this.id+"_layersDiv";OpenLayers.Element.addClass(this.layersDiv,"layersDiv");this.baseLbl=document.createElement("div");this.baseLbl.innerHTML=OpenLayers.i18n("Base Layer");OpenLayers.Element.addClass(this.baseLbl,"baseLbl");this.baseLayersDiv=document.createElement("div");OpenLayers.Element.addClass(this.baseLayersDiv,"baseLayersDiv");\n +this.dataLbl=document.createElement("div");this.dataLbl.innerHTML=OpenLayers.i18n("Overlays");OpenLayers.Element.addClass(this.dataLbl,"dataLbl");this.dataLayersDiv=document.createElement("div");OpenLayers.Element.addClass(this.dataLayersDiv,"dataLayersDiv");this.ascending?(this.layersDiv.appendChild(this.baseLbl),this.layersDiv.appendChild(this.baseLayersDiv),this.layersDiv.appendChild(this.dataLbl),this.layersDiv.appendChild(this.dataLayersDiv)):(this.layersDiv.appendChild(this.dataLbl),this.layersDiv.appendChild(this.dataLayersDiv),\n +this.layersDiv.appendChild(this.baseLbl),this.layersDiv.appendChild(this.baseLayersDiv));this.div.appendChild(this.layersDiv);this.roundedCorner&&(OpenLayers.Rico.Corner.round(this.div,{corners:"tl bl",bgColor:"transparent",color:this.roundedCornerColor,blend:!1}),OpenLayers.Rico.Corner.changeOpacity(this.layersDiv,0.75));var a=OpenLayers.Util.getImageLocation("layer-switcher-maximize.png");this.maximizeDiv=OpenLayers.Util.createAlphaImageDiv("OpenLayers_Control_MaximizeDiv",null,null,a,"absolute");\n +OpenLayers.Element.addClass(this.maximizeDiv,"maximizeDiv olButton");this.maximizeDiv.style.display="none";this.div.appendChild(this.maximizeDiv);a=OpenLayers.Util.getImageLocation("layer-switcher-minimize.png");this.minimizeDiv=OpenLayers.Util.createAlphaImageDiv("OpenLayers_Control_MinimizeDiv",null,null,a,"absolute");OpenLayers.Element.addClass(this.minimizeDiv,"minimizeDiv olButton");this.minimizeDiv.style.display="none";this.div.appendChild(this.minimizeDiv)},CLASS_NAME:"OpenLayers.Control.LayerSwitcher"});OpenLayers.Format.Atom=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{atom:"http://www.w3.org/2005/Atom",georss:"http://www.georss.org/georss"},feedTitle:"untitled",defaultEntryTitle:"untitled",gmlParser:null,xy:!1,read:function(a){"string"==typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));return this.parseFeatures(a)},write:function(a){var b;if(OpenLayers.Util.isArray(a)){b=this.createElementNSPlus("atom:feed");b.appendChild(this.createElementNSPlus("atom:title",{value:this.feedTitle}));\n +for(var c=0,d=a.length;c<d;c++)b.appendChild(this.buildEntryNode(a[c]))}else b=this.buildEntryNode(a);return OpenLayers.Format.XML.prototype.write.apply(this,[b])},buildContentNode:function(a){var b=this.createElementNSPlus("atom:content",{attributes:{type:a.type||null}});if(a.src)b.setAttribute("src",a.src);else if("text"==a.type||null==a.type)b.appendChild(this.createTextNode(a.value));else if("html"==a.type){if("string"!=typeof a.value)throw"HTML content must be in form of an escaped string";b.appendChild(this.createTextNode(a.value))}else"xhtml"==\n +a.type?b.appendChild(a.value):"xhtml"==a.type||a.type.match(/(\\+|\\/)xml$/)?b.appendChild(a.value):b.appendChild(this.createTextNode(a.value));return b},buildEntryNode:function(a){var b=a.attributes,c=b.atom||{},d=this.createElementNSPlus("atom:entry");if(c.authors)for(var e=OpenLayers.Util.isArray(c.authors)?c.authors:[c.authors],f=0,g=e.length;f<g;f++)d.appendChild(this.buildPersonConstructNode("author",e[f]));if(c.categories)for(var e=OpenLayers.Util.isArray(c.categories)?c.categories:[c.categories],\n +h,f=0,g=e.length;f<g;f++)h=e[f],d.appendChild(this.createElementNSPlus("atom:category",{attributes:{term:h.term,scheme:h.scheme||null,label:h.label||null}}));c.content&&d.appendChild(this.buildContentNode(c.content));if(c.contributors){e=OpenLayers.Util.isArray(c.contributors)?c.contributors:[c.contributors];f=0;for(g=e.length;f<g;f++)d.appendChild(this.buildPersonConstructNode("contributor",e[f]))}a.fid&&d.appendChild(this.createElementNSPlus("atom:id",{value:a.fid}));if(c.links){e=OpenLayers.Util.isArray(c.links)?\n +c.links:[c.links];f=0;for(g=e.length;f<g;f++)h=e[f],d.appendChild(this.createElementNSPlus("atom:link",{attributes:{href:h.href,rel:h.rel||null,type:h.type||null,hreflang:h.hreflang||null,title:h.title||null,length:h.length||null}}))}c.published&&d.appendChild(this.createElementNSPlus("atom:published",{value:c.published}));c.rights&&d.appendChild(this.createElementNSPlus("atom:rights",{value:c.rights}));if(c.summary||b.description)d.appendChild(this.createElementNSPlus("atom:summary",{value:c.summary||\n +b.description}));d.appendChild(this.createElementNSPlus("atom:title",{value:c.title||b.title||this.defaultEntryTitle}));c.updated&&d.appendChild(this.createElementNSPlus("atom:updated",{value:c.updated}));a.geometry&&(b=this.createElementNSPlus("georss:where"),b.appendChild(this.buildGeometryNode(a.geometry)),d.appendChild(b));return d},initGmlParser:function(){this.gmlParser=new OpenLayers.Format.GML.v3({xy:this.xy,featureNS:"http://example.com#feature",internalProjection:this.internalProjection,\n +externalProjection:this.externalProjection})},buildGeometryNode:function(a){this.gmlParser||this.initGmlParser();return this.gmlParser.writeNode("feature:_geometry",a).firstChild},buildPersonConstructNode:function(a,b){var c=["uri","email"],d=this.createElementNSPlus("atom:"+a);d.appendChild(this.createElementNSPlus("atom:name",{value:b.name}));for(var e=0,f=c.length;e<f;e++)b[c[e]]&&d.appendChild(this.createElementNSPlus("atom:"+c[e],{value:b[c[e]]}));return d},getFirstChildValue:function(a,b,c,\n +d){return(a=this.getElementsByTagNameNS(a,b,c))&&0<a.length?this.getChildValue(a[0],d):d},parseFeature:function(a){var b={},c=null,d=null,e=null,f=this.namespaces.atom;this.parsePersonConstructs(a,"author",b);d=this.getElementsByTagNameNS(a,f,"category");0<d.length&&(b.categories=[]);for(var g=0,h=d.length;g<h;g++){c={};c.term=d[g].getAttribute("term");if(e=d[g].getAttribute("scheme"))c.scheme=e;if(e=d[g].getAttribute("label"))c.label=e;b.categories.push(c)}d=this.getElementsByTagNameNS(a,f,"content");\n +if(0<d.length){c={};if(e=d[0].getAttribute("type"))c.type=e;(e=d[0].getAttribute("src"))?c.src=e:(c.value="text"==c.type||"html"==c.type||null==c.type?this.getFirstChildValue(a,f,"content",null):"xhtml"==c.type||c.type.match(/(\\+|\\/)xml$/)?this.getChildEl(d[0]):this.getFirstChildValue(a,f,"content",null),b.content=c)}this.parsePersonConstructs(a,"contributor",b);b.id=this.getFirstChildValue(a,f,"id",null);d=this.getElementsByTagNameNS(a,f,"link");0<d.length&&(b.links=Array(d.length));for(var i=["rel",\n +"type","hreflang","title","length"],g=0,h=d.length;g<h;g++){c={};c.href=d[g].getAttribute("href");for(var j=0,k=i.length;j<k;j++)(e=d[g].getAttribute(i[j]))&&(c[i[j]]=e);b.links[g]=c}if(c=this.getFirstChildValue(a,f,"published",null))b.published=c;if(c=this.getFirstChildValue(a,f,"rights",null))b.rights=c;if(c=this.getFirstChildValue(a,f,"summary",null))b.summary=c;b.title=this.getFirstChildValue(a,f,"title",null);b.updated=this.getFirstChildValue(a,f,"updated",null);c={title:b.title,description:b.summary,\n +atom:b};a=this.parseLocations(a)[0];a=new OpenLayers.Feature.Vector(a,c);a.fid=b.id;return a},parseFeatures:function(a){var b=[],c=this.getElementsByTagNameNS(a,this.namespaces.atom,"entry");0==c.length&&(c=[a]);for(var a=0,d=c.length;a<d;a++)b.push(this.parseFeature(c[a]));return b},parseLocations:function(a){var b=this.namespaces.georss,c={components:[]},d=this.getElementsByTagNameNS(a,b,"where");if(d&&0<d.length){this.gmlParser||this.initGmlParser();for(var e=0,f=d.length;e<f;e++)this.gmlParser.readChildNodes(d[e],\n +c)}c=c.components;if((d=this.getElementsByTagNameNS(a,b,"point"))&&0<d.length){e=0;for(f=d.length;e<f;e++){var g=OpenLayers.String.trim(d[e].firstChild.nodeValue).split(/\\s+/);2!=g.length&&(g=OpenLayers.String.trim(d[e].firstChild.nodeValue).split(/\\s*,\\s*/));c.push(new OpenLayers.Geometry.Point(g[1],g[0]))}}var h=this.getElementsByTagNameNS(a,b,"line");if(h&&0<h.length)for(var i,e=0,f=h.length;e<f;e++){d=OpenLayers.String.trim(h[e].firstChild.nodeValue).split(/\\s+/);i=[];for(var j=0,k=d.length;j<\n +k;j+=2)g=new OpenLayers.Geometry.Point(d[j+1],d[j]),i.push(g);c.push(new OpenLayers.Geometry.LineString(i))}if((a=this.getElementsByTagNameNS(a,b,"polygon"))&&0<a.length){e=0;for(f=a.length;e<f;e++){d=OpenLayers.String.trim(a[e].firstChild.nodeValue).split(/\\s+/);i=[];j=0;for(k=d.length;j<k;j+=2)g=new OpenLayers.Geometry.Point(d[j+1],d[j]),i.push(g);c.push(new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing(c)]))}}if(this.internalProjection&&this.externalProjection){e=0;for(f=c.length;e<\n +f;e++)c[e]&&c[e].transform(this.externalProjection,this.internalProjection)}return c},parsePersonConstructs:function(a,b,c){for(var d=[],e=this.namespaces.atom,a=this.getElementsByTagNameNS(a,e,b),f=["uri","email"],g=0,h=a.length;g<h;g++){var i={};i.name=this.getFirstChildValue(a[g],e,"name",null);for(var j=0,k=f.length;j<k;j++){var l=this.getFirstChildValue(a[g],e,f[j],null);l&&(i[f[j]]=l)}d.push(i)}0<d.length&&(c[b+"s"]=d)},CLASS_NAME:"OpenLayers.Format.Atom"});OpenLayers.Control.KeyboardDefaults=OpenLayers.Class(OpenLayers.Control,{autoActivate:!0,slideFactor:75,observeElement:null,draw:function(){this.handler=new OpenLayers.Handler.Keyboard(this,{keydown:this.defaultKeyPress},{observeElement:this.observeElement||document})},defaultKeyPress:function(a){var b,c=!0;switch(a.keyCode){case OpenLayers.Event.KEY_LEFT:this.map.pan(-this.slideFactor,0);break;case OpenLayers.Event.KEY_RIGHT:this.map.pan(this.slideFactor,0);break;case OpenLayers.Event.KEY_UP:this.map.pan(0,\n +-this.slideFactor);break;case OpenLayers.Event.KEY_DOWN:this.map.pan(0,this.slideFactor);break;case 33:b=this.map.getSize();this.map.pan(0,-0.75*b.h);break;case 34:b=this.map.getSize();this.map.pan(0,0.75*b.h);break;case 35:b=this.map.getSize();this.map.pan(0.75*b.w,0);break;case 36:b=this.map.getSize();this.map.pan(-0.75*b.w,0);break;case 43:case 61:case 187:case 107:this.map.zoomIn();break;case 45:case 109:case 189:case 95:this.map.zoomOut();break;default:c=!1}c&&OpenLayers.Event.stop(a)},CLASS_NAME:"OpenLayers.Control.KeyboardDefaults"});OpenLayers.Format.WMTSCapabilities.v1_0_0=OpenLayers.Class(OpenLayers.Format.OWSCommon.v1_1_0,{version:"1.0.0",namespaces:{ows:"http://www.opengis.net/ows/1.1",wmts:"http://www.opengis.net/wmts/1.0",xlink:"http://www.w3.org/1999/xlink"},yx:null,defaultPrefix:"wmts",initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);this.options=a;a=OpenLayers.Util.extend({},OpenLayers.Format.WMTSCapabilities.prototype.yx);this.yx=OpenLayers.Util.extend(a,this.yx)},read:function(a){"string"==\n +typeof a&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.readNode(a,b);b.version=this.version;return b},readers:{wmts:{Capabilities:function(a,b){this.readChildNodes(a,b)},Contents:function(a,b){b.contents={};b.contents.layers=[];b.contents.tileMatrixSets={};this.readChildNodes(a,b.contents)},Layer:function(a,b){var c={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};this.readChildNodes(a,c);b.layers.push(c)},Style:function(a,\n +b){var c={};c.isDefault="true"===a.getAttribute("isDefault");this.readChildNodes(a,c);b.styles.push(c)},Format:function(a,b){b.formats.push(this.getChildValue(a))},TileMatrixSetLink:function(a,b){var c={};this.readChildNodes(a,c);b.tileMatrixSetLinks.push(c)},TileMatrixSet:function(a,b){if(b.layers){var c={matrixIds:[]};this.readChildNodes(a,c);b.tileMatrixSets[c.identifier]=c}else b.tileMatrixSet=this.getChildValue(a)},TileMatrix:function(a,b){var c={supportedCRS:b.supportedCRS};this.readChildNodes(a,\n +c);b.matrixIds.push(c)},ScaleDenominator:function(a,b){b.scaleDenominator=parseFloat(this.getChildValue(a))},TopLeftCorner:function(a,b){var c=this.getChildValue(a).split(" "),d;b.supportedCRS&&(d=!!this.yx[b.supportedCRS.replace(/urn:ogc:def:crs:(\\w+):.+:(\\w+)$/,"urn:ogc:def:crs:$1::$2")]);b.topLeftCorner=d?new OpenLayers.LonLat(c[1],c[0]):new OpenLayers.LonLat(c[0],c[1])},TileWidth:function(a,b){b.tileWidth=parseInt(this.getChildValue(a))},TileHeight:function(a,b){b.tileHeight=parseInt(this.getChildValue(a))},\n +MatrixWidth:function(a,b){b.matrixWidth=parseInt(this.getChildValue(a))},MatrixHeight:function(a,b){b.matrixHeight=parseInt(this.getChildValue(a))},ResourceURL:function(a,b){b.resourceUrl=b.resourceUrl||{};b.resourceUrl[a.getAttribute("resourceType")]={format:a.getAttribute("format"),template:a.getAttribute("template")}},WSDL:function(a,b){b.wsdl={};b.wsdl.href=a.getAttribute("xlink:href")},ServiceMetadataURL:function(a,b){b.serviceMetadataUrl={};b.serviceMetadataUrl.href=a.getAttribute("xlink:href")},\n +LegendURL:function(a,b){b.legend={};b.legend.href=a.getAttribute("xlink:href");b.legend.format=a.getAttribute("format")},Dimension:function(a,b){var c={values:[]};this.readChildNodes(a,c);b.dimensions.push(c)},Default:function(a,b){b["default"]=this.getChildValue(a)},Value:function(a,b){b.values.push(this.getChildValue(a))}},ows:OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers.ows},CLASS_NAME:"OpenLayers.Format.WMTSCapabilities.v1_0_0"});\n + + +]]></string> </value> + </item> + <item> + <key> <string>next</string> </key> + <value> + <none/> + </value> </item> </dictionary> </pickle> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers.xml deleted file mode 100644 index 6b48775cbb6ad1c251319c081d093ab9b207e610..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>OpenLayers</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Animation.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Animation.js.xml deleted file mode 100644 index 17ed45b1823cad805d2ed7e765cb255e1a22fd0c..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Animation.js.xml +++ /dev/null @@ -1,152 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Animation.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/**\n - * Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. \n - *\n - * @requires OpenLayers/SingleFile.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Animation\n - * A collection of utility functions for executing methods that repaint a \n - * portion of the browser window. These methods take advantage of the\n - * browser\'s scheduled repaints where requestAnimationFrame is available.\n - */\n -OpenLayers.Animation = (function(window) {\n - \n - /**\n - * Property: isNative\n - * {Boolean} true if a native requestAnimationFrame function is available\n - */\n - var isNative = !!(window.requestAnimationFrame ||\n - window.webkitRequestAnimationFrame ||\n - window.mozRequestAnimationFrame ||\n - window.oRequestAnimationFrame ||\n - window.msRequestAnimationFrame);\n - \n - /**\n - * Function: requestFrame\n - * Schedule a function to be called at the next available animation frame.\n - * Uses the native method where available. Where requestAnimationFrame is\n - * not available, setTimeout will be called with a 16ms delay.\n - *\n - * Parameters:\n - * callback - {Function} The function to be called at the next animation frame.\n - * element - {DOMElement} Optional element that visually bounds the animation.\n - */\n - var requestFrame = (function() {\n - var request = window.requestAnimationFrame ||\n - window.webkitRequestAnimationFrame ||\n - window.mozRequestAnimationFrame ||\n - window.oRequestAnimationFrame ||\n - window.msRequestAnimationFrame ||\n - function(callback, element) {\n - window.setTimeout(callback, 16);\n - };\n - // bind to window to avoid illegal invocation of native function\n - return function(callback, element) {\n - request.apply(window, [callback, element]);\n - };\n - })();\n - \n - // private variables for animation loops\n - var counter = 0;\n - var loops = {};\n - \n - /**\n - * Function: start\n - * Executes a method with <requestFrame> in series for some \n - * duration.\n - *\n - * Parameters:\n - * callback - {Function} The function to be called at the next animation frame.\n - * duration - {Number} Optional duration for the loop. If not provided, the\n - * animation loop will execute indefinitely.\n - * element - {DOMElement} Optional element that visually bounds the animation.\n - *\n - * Returns:\n - * {Number} Identifier for the animation loop. Used to stop animations with\n - * <stop>.\n - */\n - function start(callback, duration, element) {\n - duration = duration > 0 ? duration : Number.POSITIVE_INFINITY;\n - var id = ++counter;\n - var start = +new Date;\n - loops[id] = function() {\n - if (loops[id] && +new Date - start <= duration) {\n - callback();\n - if (loops[id]) {\n - requestFrame(loops[id], element);\n - }\n - } else {\n - delete loops[id];\n - }\n - };\n - requestFrame(loops[id], element);\n - return id;\n - }\n - \n - /**\n - * Function: stop\n - * Terminates an animation loop started with <start>.\n - *\n - * Parameters:\n - * id - {Number} Identifier returned from <start>.\n - */\n - function stop(id) {\n - delete loops[id];\n - }\n - \n - return {\n - isNative: isNative,\n - requestFrame: requestFrame,\n - start: start,\n - stop: stop\n - };\n - \n -})(window);\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3633</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes.js.xml deleted file mode 100644 index 59a96ade24fbe1786830c817fa35999cae088c96..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes.js.xml +++ /dev/null @@ -1,482 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>BaseTypes.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/SingleFile.js\n - */\n -\n -/** \n - * Header: OpenLayers Base Types\n - * OpenLayers custom string, number and function functions are described here.\n - */\n -\n -/**\n - * Namespace: OpenLayers.String\n - * Contains convenience functions for string manipulation.\n - */\n -OpenLayers.String = {\n -\n - /**\n - * APIFunction: startsWith\n - * Test whether a string starts with another string. \n - * \n - * Parameters:\n - * str - {String} The string to test.\n - * sub - {String} The substring to look for.\n - * \n - * Returns:\n - * {Boolean} The first string starts with the second.\n - */\n - startsWith: function(str, sub) {\n - return (str.indexOf(sub) == 0);\n - },\n -\n - /**\n - * APIFunction: contains\n - * Test whether a string contains another string.\n - * \n - * Parameters:\n - * str - {String} The string to test.\n - * sub - {String} The substring to look for.\n - * \n - * Returns:\n - * {Boolean} The first string contains the second.\n - */\n - contains: function(str, sub) {\n - return (str.indexOf(sub) != -1);\n - },\n - \n - /**\n - * APIFunction: trim\n - * Removes leading and trailing whitespace characters from a string.\n - * \n - * Parameters:\n - * str - {String} The (potentially) space padded string. This string is not\n - * modified.\n - * \n - * Returns:\n - * {String} A trimmed version of the string with all leading and \n - * trailing spaces removed.\n - */\n - trim: function(str) {\n - return str.replace(/^\\s\\s*/, \'\').replace(/\\s\\s*$/, \'\');\n - },\n - \n - /**\n - * APIFunction: camelize\n - * Camel-case a hyphenated string. \n - * Ex. "chicken-head" becomes "chickenHead", and\n - * "-chicken-head" becomes "ChickenHead".\n - *\n - * Parameters:\n - * str - {String} The string to be camelized. The original is not modified.\n - * \n - * Returns:\n - * {String} The string, camelized\n - */\n - camelize: function(str) {\n - var oStringList = str.split(\'-\');\n - var camelizedString = oStringList[0];\n - for (var i=1, len=oStringList.length; i<len; i++) {\n - var s = oStringList[i];\n - camelizedString += s.charAt(0).toUpperCase() + s.substring(1);\n - }\n - return camelizedString;\n - },\n - \n - /**\n - * APIFunction: format\n - * Given a string with tokens in the form ${token}, return a string\n - * with tokens replaced with properties from the given context\n - * object. Represent a literal "${" by doubling it, e.g. "${${".\n - *\n - * Parameters:\n - * template - {String} A string with tokens to be replaced. A template\n - * has the form "literal ${token}" where the token will be replaced\n - * by the value of context["token"].\n - * context - {Object} An optional object with properties corresponding\n - * to the tokens in the format string. If no context is sent, the\n - * window object will be used.\n - * args - {Array} Optional arguments to pass to any functions found in\n - * the context. If a context property is a function, the token\n - * will be replaced by the return from the function called with\n - * these arguments.\n - *\n - * Returns:\n - * {String} A string with tokens replaced from the context object.\n - */\n - format: function(template, context, args) {\n - if(!context) {\n - context = window;\n - }\n -\n - // Example matching: \n - // str = ${foo.bar}\n - // match = foo.bar\n - var replacer = function(str, match) {\n - var replacement;\n -\n - // Loop through all subs. Example: ${a.b.c}\n - // 0 -> replacement = context[a];\n - // 1 -> replacement = context[a][b];\n - // 2 -> replacement = context[a][b][c];\n - var subs = match.split(/\\.+/);\n - for (var i=0; i< subs.length; i++) {\n - if (i == 0) {\n - replacement = context;\n - }\n -\n - replacement = replacement[subs[i]];\n - }\n -\n - if(typeof replacement == "function") {\n - replacement = args ?\n - replacement.apply(null, args) :\n - replacement();\n - }\n -\n - // If replacement is undefined, return the string \'undefined\'.\n - // This is a workaround for a bugs in browsers not properly \n - // dealing with non-participating groups in regular expressions:\n - // http://blog.stevenlevithan.com/archives/npcg-javascript\n - if (typeof replacement == \'undefined\') {\n - return \'undefined\';\n - } else {\n - return replacement; \n - }\n - };\n -\n - return template.replace(OpenLayers.String.tokenRegEx, replacer);\n - },\n -\n - /**\n - * Property: tokenRegEx\n - * Used to find tokens in a string.\n - * Examples: ${a}, ${a.b.c}, ${a-b}, ${5}\n - */\n - tokenRegEx: /\\$\\{([\\w.]+?)\\}/g,\n - \n - /**\n - * Property: numberRegEx\n - * Used to test strings as numbers.\n - */\n - numberRegEx: /^([+-]?)(?=\\d|\\.\\d)\\d*(\\.\\d*)?([Ee]([+-]?\\d+))?$/,\n - \n - /**\n - * APIFunction: isNumeric\n - * Determine whether a string contains only a numeric value.\n - *\n - * Examples:\n - * (code)\n - * OpenLayers.String.isNumeric("6.02e23") // true\n - * OpenLayers.String.isNumeric("12 dozen") // false\n - * OpenLayers.String.isNumeric("4") // true\n - * OpenLayers.String.isNumeric(" 4 ") // false\n - * (end)\n - *\n - * Returns:\n - * {Boolean} String contains only a number.\n - */\n - isNumeric: function(value) {\n - return OpenLayers.String.numberRegEx.test(value);\n - },\n - \n - /**\n - * APIFunction: numericIf\n - * Converts a string that appears to be a numeric value into a number.\n - * \n - * Parameters:\n - * value - {String}\n - *\n - * Returns:\n - * {Number|String} a Number if the passed value is a number, a String\n - * otherwise. \n - */\n - numericIf: function(value) {\n - return OpenLayers.String.isNumeric(value) ? parseFloat(value) : value;\n - }\n -\n -};\n -\n -/**\n - * Namespace: OpenLayers.Number\n - * Contains convenience functions for manipulating numbers.\n - */\n -OpenLayers.Number = {\n -\n - /**\n - * Property: decimalSeparator\n - * Decimal separator to use when formatting numbers.\n - */\n - decimalSeparator: ".",\n - \n - /**\n - * Property: thousandsSeparator\n - * Thousands separator to use when formatting numbers.\n - */\n - thousandsSeparator: ",",\n - \n - /**\n - * APIFunction: limitSigDigs\n - * Limit the number of significant digits on a float.\n - * \n - * Parameters:\n - * num - {Float}\n - * sig - {Integer}\n - * \n - * Returns:\n - * {Float} The number, rounded to the specified number of significant\n - * digits.\n - */\n - limitSigDigs: function(num, sig) {\n - var fig = 0;\n - if (sig > 0) {\n - fig = parseFloat(num.toPrecision(sig));\n - }\n - return fig;\n - },\n - \n - /**\n - * APIFunction: format\n - * Formats a number for output.\n - * \n - * Parameters:\n - * num - {Float}\n - * dec - {Integer} Number of decimal places to round to.\n - * Defaults to 0. Set to null to leave decimal places unchanged.\n - * tsep - {String} Thousands separator.\n - * Default is ",".\n - * dsep - {String} Decimal separator.\n - * Default is ".".\n - *\n - * Returns:\n - * {String} A string representing the formatted number.\n - */\n - format: function(num, dec, tsep, dsep) {\n - dec = (typeof dec != "undefined") ? dec : 0; \n - tsep = (typeof tsep != "undefined") ? tsep :\n - OpenLayers.Number.thousandsSeparator; \n - dsep = (typeof dsep != "undefined") ? dsep :\n - OpenLayers.Number.decimalSeparator;\n -\n - if (dec != null) {\n - num = parseFloat(num.toFixed(dec));\n - }\n -\n - var parts = num.toString().split(".");\n - if (parts.length == 1 && dec == null) {\n - // integer where we do not want to touch the decimals\n - dec = 0;\n - }\n - \n - var integer = parts[0];\n - if (tsep) {\n - var thousands = /(-?[0-9]+)([0-9]{3})/; \n - while(thousands.test(integer)) { \n - integer = integer.replace(thousands, "$1" + tsep + "$2"); \n - }\n - }\n - \n - var str;\n - if (dec == 0) {\n - str = integer;\n - } else {\n - var rem = parts.length > 1 ? parts[1] : "0";\n - if (dec != null) {\n - rem = rem + new Array(dec - rem.length + 1).join("0");\n - }\n - str = integer + dsep + rem;\n - }\n - return str;\n - }\n -};\n -\n -/**\n - * Namespace: OpenLayers.Function\n - * Contains convenience functions for function manipulation.\n - */\n -OpenLayers.Function = {\n - /**\n - * APIFunction: bind\n - * Bind a function to an object. Method to easily create closures with\n - * \'this\' altered.\n - * \n - * Parameters:\n - * func - {Function} Input function.\n - * object - {Object} The object to bind to the input function (as this).\n - * \n - * Returns:\n - * {Function} A closure with \'this\' set to the passed in object.\n - */\n - bind: function(func, object) {\n - // create a reference to all arguments past the second one\n - var args = Array.prototype.slice.apply(arguments, [2]);\n - return function() {\n - // Push on any additional arguments from the actual function call.\n - // These will come after those sent to the bind call.\n - var newArgs = args.concat(\n - Array.prototype.slice.apply(arguments, [0])\n - );\n - return func.apply(object, newArgs);\n - };\n - },\n - \n - /**\n - * APIFunction: bindAsEventListener\n - * Bind a function to an object, and configure it to receive the event\n - * object as first parameter when called. \n - * \n - * Parameters:\n - * func - {Function} Input function to serve as an event listener.\n - * object - {Object} A reference to this.\n - * \n - * Returns:\n - * {Function}\n - */\n - bindAsEventListener: function(func, object) {\n - return function(event) {\n - return func.call(object, event || window.event);\n - };\n - },\n - \n - /**\n - * APIFunction: False\n - * A simple function to that just does "return false". We use this to \n - * avoid attaching anonymous functions to DOM event handlers, which \n - * causes "issues" on IE<8.\n - * \n - * Usage:\n - * document.onclick = OpenLayers.Function.False;\n - * \n - * Returns:\n - * {Boolean}\n - */\n - False : function() {\n - return false;\n - },\n -\n - /**\n - * APIFunction: True\n - * A simple function to that just does "return true". We use this to \n - * avoid attaching anonymous functions to DOM event handlers, which \n - * causes "issues" on IE<8.\n - * \n - * Usage:\n - * document.onclick = OpenLayers.Function.True;\n - * \n - * Returns:\n - * {Boolean}\n - */\n - True : function() {\n - return true;\n - },\n - \n - /**\n - * APIFunction: Void\n - * A reusable function that returns ``undefined``.\n - *\n - * Returns:\n - * {undefined}\n - */\n - Void: function() {}\n -\n -};\n -\n -/**\n - * Namespace: OpenLayers.Array\n - * Contains convenience functions for array manipulation.\n - */\n -OpenLayers.Array = {\n -\n - /**\n - * APIMethod: filter\n - * Filter an array. Provides the functionality of the\n - * Array.prototype.filter extension to the ECMA-262 standard. Where\n - * available, Array.prototype.filter will be used.\n - *\n - * Based on well known example from http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/filter\n - *\n - * Parameters:\n - * array - {Array} The array to be filtered. This array is not mutated.\n - * Elements added to this array by the callback will not be visited.\n - * callback - {Function} A function that is called for each element in\n - * the array. If this function returns true, the element will be\n - * included in the return. The function will be called with three\n - * arguments: the element in the array, the index of that element, and\n - * the array itself. If the optional caller parameter is specified\n - * the callback will be called with this set to caller.\n - * caller - {Object} Optional object to be set as this when the callback\n - * is called.\n - *\n - * Returns:\n - * {Array} An array of elements from the passed in array for which the\n - * callback returns true.\n - */\n - filter: function(array, callback, caller) {\n - var selected = [];\n - if (Array.prototype.filter) {\n - selected = array.filter(callback, caller);\n - } else {\n - var len = array.length;\n - if (typeof callback != "function") {\n - throw new TypeError();\n - }\n - for(var i=0; i<len; i++) {\n - if (i in array) {\n - var val = array[i];\n - if (callback.call(caller, val, i, array)) {\n - selected.push(val);\n - }\n - }\n - } \n - }\n - return selected;\n - }\n - \n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>13356</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes.xml deleted file mode 100644 index 8996c74544e300d5d388ceb153a8857dbdd49d0b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>BaseTypes</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/BaseTypes</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Bounds.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Bounds.js.xml deleted file mode 100644 index 815a6a6bef10a05fb9aee38b60e5a00b4b7a53e2..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Bounds.js.xml +++ /dev/null @@ -1,799 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Bounds.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - */\n -\n -/**\n - * Class: OpenLayers.Bounds\n - * Instances of this class represent bounding boxes. Data stored as left,\n - * bottom, right, top floats. All values are initialized to null, however,\n - * you should make sure you set them before using the bounds for anything.\n - * \n - * Possible use case:\n - * (code)\n - * bounds = new OpenLayers.Bounds();\n - * bounds.extend(new OpenLayers.LonLat(4,5));\n - * bounds.extend(new OpenLayers.LonLat(5,6));\n - * bounds.toBBOX(); // returns 4,5,5,6\n - * (end)\n - */\n -OpenLayers.Bounds = OpenLayers.Class({\n -\n - /**\n - * Property: left\n - * {Number} Minimum horizontal coordinate.\n - */\n - left: null,\n -\n - /**\n - * Property: bottom\n - * {Number} Minimum vertical coordinate.\n - */\n - bottom: null,\n -\n - /**\n - * Property: right\n - * {Number} Maximum horizontal coordinate.\n - */\n - right: null,\n -\n - /**\n - * Property: top\n - * {Number} Maximum vertical coordinate.\n - */\n - top: null,\n - \n - /**\n - * Property: centerLonLat\n - * {<OpenLayers.LonLat>} A cached center location. This should not be\n - * accessed directly. Use <getCenterLonLat> instead.\n - */\n - centerLonLat: null,\n -\n - /**\n - * Constructor: OpenLayers.Bounds\n - * Construct a new bounds object. Coordinates can either be passed as four\n - * arguments, or as a single argument.\n - *\n - * Parameters (four arguments):\n - * left - {Number} The left bounds of the box. Note that for width\n - * calculations, this is assumed to be less than the right value.\n - * bottom - {Number} The bottom bounds of the box. Note that for height\n - * calculations, this is assumed to be more than the top value.\n - * right - {Number} The right bounds.\n - * top - {Number} The top bounds.\n - *\n - * Parameters (single argument):\n - * bounds - {Array(Number)} [left, bottom, right, top]\n - */\n - initialize: function(left, bottom, right, top) {\n - if (OpenLayers.Util.isArray(left)) {\n - top = left[3];\n - right = left[2];\n - bottom = left[1];\n - left = left[0];\n - }\n - if (left != null) {\n - this.left = OpenLayers.Util.toFloat(left);\n - }\n - if (bottom != null) {\n - this.bottom = OpenLayers.Util.toFloat(bottom);\n - }\n - if (right != null) {\n - this.right = OpenLayers.Util.toFloat(right);\n - }\n - if (top != null) {\n - this.top = OpenLayers.Util.toFloat(top);\n - }\n - },\n -\n - /**\n - * Method: clone\n - * Create a cloned instance of this bounds.\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>} A fresh copy of the bounds\n - */\n - clone:function() {\n - return new OpenLayers.Bounds(this.left, this.bottom, \n - this.right, this.top);\n - },\n -\n - /**\n - * Method: equals\n - * Test a two bounds for equivalence.\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - *\n - * Returns:\n - * {Boolean} The passed-in bounds object has the same left,\n - * right, top, bottom components as this. Note that if bounds \n - * passed in is null, returns false.\n - */\n - equals:function(bounds) {\n - var equals = false;\n - if (bounds != null) {\n - equals = ((this.left == bounds.left) && \n - (this.right == bounds.right) &&\n - (this.top == bounds.top) && \n - (this.bottom == bounds.bottom));\n - }\n - return equals;\n - },\n -\n - /** \n - * APIMethod: toString\n - * \n - * Returns:\n - * {String} String representation of bounds object. \n - */\n - toString:function() {\n - return [this.left, this.bottom, this.right, this.top].join(",");\n - },\n -\n - /**\n - * APIMethod: toArray\n - *\n - * Parameters:\n - * reverseAxisOrder - {Boolean} Should we reverse the axis order?\n - *\n - * Returns:\n - * {Array} array of left, bottom, right, top\n - */\n - toArray: function(reverseAxisOrder) {\n - if (reverseAxisOrder === true) {\n - return [this.bottom, this.left, this.top, this.right];\n - } else {\n - return [this.left, this.bottom, this.right, this.top];\n - }\n - }, \n -\n - /** \n - * APIMethod: toBBOX\n - * \n - * Parameters:\n - * decimal - {Integer} How many significant digits in the bbox coords?\n - * Default is 6\n - * reverseAxisOrder - {Boolean} Should we reverse the axis order?\n - * \n - * Returns:\n - * {String} Simple String representation of bounds object.\n - * (e.g. <i>"5,42,10,45"</i>)\n - */\n - toBBOX:function(decimal, reverseAxisOrder) {\n - if (decimal== null) {\n - decimal = 6; \n - }\n - var mult = Math.pow(10, decimal);\n - var xmin = Math.round(this.left * mult) / mult;\n - var ymin = Math.round(this.bottom * mult) / mult;\n - var xmax = Math.round(this.right * mult) / mult;\n - var ymax = Math.round(this.top * mult) / mult;\n - if (reverseAxisOrder === true) {\n - return ymin + "," + xmin + "," + ymax + "," + xmax;\n - } else {\n - return xmin + "," + ymin + "," + xmax + "," + ymax;\n - }\n - },\n - \n - /**\n - * APIMethod: toGeometry\n - * Create a new polygon geometry based on this bounds.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.Polygon>} A new polygon with the coordinates\n - * of this bounds.\n - */\n - toGeometry: function() {\n - return new OpenLayers.Geometry.Polygon([\n - new OpenLayers.Geometry.LinearRing([\n - new OpenLayers.Geometry.Point(this.left, this.bottom),\n - new OpenLayers.Geometry.Point(this.right, this.bottom),\n - new OpenLayers.Geometry.Point(this.right, this.top),\n - new OpenLayers.Geometry.Point(this.left, this.top)\n - ])\n - ]);\n - },\n - \n - /**\n - * APIMethod: getWidth\n - * \n - * Returns:\n - * {Float} The width of the bounds\n - */\n - getWidth:function() {\n - return (this.right - this.left);\n - },\n -\n - /**\n - * APIMethod: getHeight\n - * \n - * Returns:\n - * {Float} The height of the bounds (top minus bottom).\n - */\n - getHeight:function() {\n - return (this.top - this.bottom);\n - },\n -\n - /**\n - * APIMethod: getSize\n - * \n - * Returns:\n - * {<OpenLayers.Size>} The size of the box.\n - */\n - getSize:function() {\n - return new OpenLayers.Size(this.getWidth(), this.getHeight());\n - },\n -\n - /**\n - * APIMethod: getCenterPixel\n - * \n - * Returns:\n - * {<OpenLayers.Pixel>} The center of the bounds in pixel space.\n - */\n - getCenterPixel:function() {\n - return new OpenLayers.Pixel( (this.left + this.right) / 2,\n - (this.bottom + this.top) / 2);\n - },\n -\n - /**\n - * APIMethod: getCenterLonLat\n - * \n - * Returns:\n - * {<OpenLayers.LonLat>} The center of the bounds in map space.\n - */\n - getCenterLonLat:function() {\n - if(!this.centerLonLat) {\n - this.centerLonLat = new OpenLayers.LonLat(\n - (this.left + this.right) / 2, (this.bottom + this.top) / 2\n - );\n - }\n - return this.centerLonLat;\n - },\n -\n - /**\n - * APIMethod: scale\n - * Scales the bounds around a pixel or lonlat. Note that the new \n - * bounds may return non-integer properties, even if a pixel\n - * is passed. \n - * \n - * Parameters:\n - * ratio - {Float} \n - * origin - {<OpenLayers.Pixel> or <OpenLayers.LonLat>}\n - * Default is center.\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>} A new bounds that is scaled by ratio\n - * from origin.\n - */\n - scale: function(ratio, origin){\n - if(origin == null){\n - origin = this.getCenterLonLat();\n - }\n - \n - var origx,origy;\n -\n - // get origin coordinates\n - if(origin.CLASS_NAME == "OpenLayers.LonLat"){\n - origx = origin.lon;\n - origy = origin.lat;\n - } else {\n - origx = origin.x;\n - origy = origin.y;\n - }\n -\n - var left = (this.left - origx) * ratio + origx;\n - var bottom = (this.bottom - origy) * ratio + origy;\n - var right = (this.right - origx) * ratio + origx;\n - var top = (this.top - origy) * ratio + origy;\n - \n - return new OpenLayers.Bounds(left, bottom, right, top);\n - },\n -\n - /**\n - * APIMethod: add\n - * \n - * Parameters:\n - * x - {Float}\n - * y - {Float}\n - * \n - * Returns:\n - * {<OpenLayers.Bounds>} A new bounds whose coordinates are the same as\n - * this, but shifted by the passed-in x and y values.\n - */\n - add:function(x, y) {\n - if ( (x == null) || (y == null) ) {\n - throw new TypeError(\'Bounds.add cannot receive null values\');\n - }\n - return new OpenLayers.Bounds(this.left + x, this.bottom + y,\n - this.right + x, this.top + y);\n - },\n - \n - /**\n - * APIMethod: extend\n - * Extend the bounds to include the point, lonlat, or bounds specified.\n - * Note, this function assumes that left < right and bottom < top.\n - * \n - * Parameters: \n - * object - {Object} Can be LonLat, Point, or Bounds\n - */\n - extend:function(object) {\n - var bounds = null;\n - if (object) {\n - // clear cached center location\n - switch(object.CLASS_NAME) {\n - case "OpenLayers.LonLat": \n - bounds = new OpenLayers.Bounds(object.lon, object.lat,\n - object.lon, object.lat);\n - break;\n - case "OpenLayers.Geometry.Point":\n - bounds = new OpenLayers.Bounds(object.x, object.y,\n - object.x, object.y);\n - break;\n - \n - case "OpenLayers.Bounds": \n - bounds = object;\n - break;\n - }\n - \n - if (bounds) {\n - this.centerLonLat = null;\n - if ( (this.left == null) || (bounds.left < this.left)) {\n - this.left = bounds.left;\n - }\n - if ( (this.bottom == null) || (bounds.bottom < this.bottom) ) {\n - this.bottom = bounds.bottom;\n - } \n - if ( (this.right == null) || (bounds.right > this.right) ) {\n - this.right = bounds.right;\n - }\n - if ( (this.top == null) || (bounds.top > this.top) ) { \n - this.top = bounds.top;\n - }\n - }\n - }\n - },\n -\n - /**\n - * APIMethod: containsLonLat\n - * \n - * Parameters:\n - * ll - {<OpenLayers.LonLat>|Object} OpenLayers.LonLat or an\n - * object with a \'lon\' and \'lat\' properties.\n - * options - {Object} Optional parameters\n - *\n - * Acceptable options:\n - * inclusive - {Boolean} Whether or not to include the border.\n - * Default is true.\n - * worldBounds - {<OpenLayers.Bounds>} If a worldBounds is provided, the\n - * ll will be considered as contained if it exceeds the world bounds,\n - * but can be wrapped around the dateline so it is contained by this\n - * bounds.\n - *\n - * Returns:\n - * {Boolean} The passed-in lonlat is within this bounds.\n - */\n - containsLonLat: function(ll, options) {\n - if (typeof options === "boolean") {\n - options = {inclusive: options};\n - }\n - options = options || {};\n - var contains = this.contains(ll.lon, ll.lat, options.inclusive),\n - worldBounds = options.worldBounds;\n - if (worldBounds && !contains) {\n - var worldWidth = worldBounds.getWidth();\n - var worldCenterX = (worldBounds.left + worldBounds.right) / 2;\n - var worldsAway = Math.round((ll.lon - worldCenterX) / worldWidth);\n - contains = this.containsLonLat({\n - lon: ll.lon - worldsAway * worldWidth,\n - lat: ll.lat\n - }, {inclusive: options.inclusive});\n - }\n - return contains;\n - },\n -\n - /**\n - * APIMethod: containsPixel\n - * \n - * Parameters:\n - * px - {<OpenLayers.Pixel>}\n - * inclusive - {Boolean} Whether or not to include the border. Default is\n - * true.\n - *\n - * Returns:\n - * {Boolean} The passed-in pixel is within this bounds.\n - */\n - containsPixel:function(px, inclusive) {\n - return this.contains(px.x, px.y, inclusive);\n - },\n - \n - /**\n - * APIMethod: contains\n - * \n - * Parameters:\n - * x - {Float}\n - * y - {Float}\n - * inclusive - {Boolean} Whether or not to include the border. Default is\n - * true.\n - *\n - * Returns:\n - * {Boolean} Whether or not the passed-in coordinates are within this\n - * bounds.\n - */\n - contains:function(x, y, inclusive) {\n - //set default\n - if (inclusive == null) {\n - inclusive = true;\n - }\n -\n - if (x == null || y == null) {\n - return false;\n - }\n -\n - x = OpenLayers.Util.toFloat(x);\n - y = OpenLayers.Util.toFloat(y);\n -\n - var contains = false;\n - if (inclusive) {\n - contains = ((x >= this.left) && (x <= this.right) && \n - (y >= this.bottom) && (y <= this.top));\n - } else {\n - contains = ((x > this.left) && (x < this.right) && \n - (y > this.bottom) && (y < this.top));\n - } \n - return contains;\n - },\n -\n - /**\n - * APIMethod: intersectsBounds\n - * Determine whether the target bounds intersects this bounds. Bounds are\n - * considered intersecting if any of their edges intersect or if one\n - * bounds contains the other.\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} The target bounds.\n - * options - {Object} Optional parameters.\n - * \n - * Acceptable options:\n - * inclusive - {Boolean} Treat coincident borders as intersecting. Default\n - * is true. If false, bounds that do not overlap but only touch at the\n - * border will not be considered as intersecting.\n - * worldBounds - {<OpenLayers.Bounds>} If a worldBounds is provided, two\n - * bounds will be considered as intersecting if they intersect when \n - * shifted to within the world bounds. This applies only to bounds that\n - * cross or are completely outside the world bounds.\n - *\n - * Returns:\n - * {Boolean} The passed-in bounds object intersects this bounds.\n - */\n - intersectsBounds:function(bounds, options) {\n - if (typeof options === "boolean") {\n - options = {inclusive: options};\n - }\n - options = options || {};\n - if (options.worldBounds) {\n - var self = this.wrapDateLine(options.worldBounds);\n - bounds = bounds.wrapDateLine(options.worldBounds);\n - } else {\n - self = this;\n - }\n - if (options.inclusive == null) {\n - options.inclusive = true;\n - }\n - var intersects = false;\n - var mightTouch = (\n - self.left == bounds.right ||\n - self.right == bounds.left ||\n - self.top == bounds.bottom ||\n - self.bottom == bounds.top\n - );\n - \n - // if the two bounds only touch at an edge, and inclusive is false,\n - // then the bounds don\'t *really* intersect.\n - if (options.inclusive || !mightTouch) {\n - // otherwise, if one of the boundaries even partially contains another,\n - // inclusive of the edges, then they do intersect.\n - var inBottom = (\n - ((bounds.bottom >= self.bottom) && (bounds.bottom <= self.top)) ||\n - ((self.bottom >= bounds.bottom) && (self.bottom <= bounds.top))\n - );\n - var inTop = (\n - ((bounds.top >= self.bottom) && (bounds.top <= self.top)) ||\n - ((self.top > bounds.bottom) && (self.top < bounds.top))\n - );\n - var inLeft = (\n - ((bounds.left >= self.left) && (bounds.left <= self.right)) ||\n - ((self.left >= bounds.left) && (self.left <= bounds.right))\n - );\n - var inRight = (\n - ((bounds.right >= self.left) && (bounds.right <= self.right)) ||\n - ((self.right >= bounds.left) && (self.right <= bounds.right))\n - );\n - intersects = ((inBottom || inTop) && (inLeft || inRight));\n - }\n - // document me\n - if (options.worldBounds && !intersects) {\n - var world = options.worldBounds;\n - var width = world.getWidth();\n - var selfCrosses = !world.containsBounds(self);\n - var boundsCrosses = !world.containsBounds(bounds);\n - if (selfCrosses && !boundsCrosses) {\n - bounds = bounds.add(-width, 0);\n - intersects = self.intersectsBounds(bounds, {inclusive: options.inclusive});\n - } else if (boundsCrosses && !selfCrosses) {\n - self = self.add(-width, 0);\n - intersects = bounds.intersectsBounds(self, {inclusive: options.inclusive}); \n - }\n - }\n - return intersects;\n - },\n - \n - /**\n - * APIMethod: containsBounds\n - * Determine whether the target bounds is contained within this bounds.\n - * \n - * bounds - {<OpenLayers.Bounds>} The target bounds.\n - * partial - {Boolean} If any of the target corners is within this bounds\n - * consider the bounds contained. Default is false. If false, the\n - * entire target bounds must be contained within this bounds.\n - * inclusive - {Boolean} Treat shared edges as contained. Default is\n - * true.\n - *\n - * Returns:\n - * {Boolean} The passed-in bounds object is contained within this bounds. \n - */\n - containsBounds:function(bounds, partial, inclusive) {\n - if (partial == null) {\n - partial = false;\n - }\n - if (inclusive == null) {\n - inclusive = true;\n - }\n - var bottomLeft = this.contains(bounds.left, bounds.bottom, inclusive);\n - var bottomRight = this.contains(bounds.right, bounds.bottom, inclusive);\n - var topLeft = this.contains(bounds.left, bounds.top, inclusive);\n - var topRight = this.contains(bounds.right, bounds.top, inclusive);\n - \n - return (partial) ? (bottomLeft || bottomRight || topLeft || topRight)\n - : (bottomLeft && bottomRight && topLeft && topRight);\n - },\n -\n - /** \n - * APIMethod: determineQuadrant\n - * \n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>}\n - * \n - * Returns:\n - * {String} The quadrant ("br" "tr" "tl" "bl") of the bounds in which the\n - * coordinate lies.\n - */\n - determineQuadrant: function(lonlat) {\n - \n - var quadrant = "";\n - var center = this.getCenterLonLat();\n - \n - quadrant += (lonlat.lat < center.lat) ? "b" : "t";\n - quadrant += (lonlat.lon < center.lon) ? "l" : "r";\n - \n - return quadrant; \n - },\n - \n - /**\n - * APIMethod: transform\n - * Transform the Bounds object from source to dest. \n - *\n - * Parameters: \n - * source - {<OpenLayers.Projection>} Source projection. \n - * dest - {<OpenLayers.Projection>} Destination projection. \n - *\n - * Returns:\n - * {<OpenLayers.Bounds>} Itself, for use in chaining operations.\n - */\n - transform: function(source, dest) {\n - // clear cached center location\n - this.centerLonLat = null;\n - var ll = OpenLayers.Projection.transform(\n - {\'x\': this.left, \'y\': this.bottom}, source, dest);\n - var lr = OpenLayers.Projection.transform(\n - {\'x\': this.right, \'y\': this.bottom}, source, dest);\n - var ul = OpenLayers.Projection.transform(\n - {\'x\': this.left, \'y\': this.top}, source, dest);\n - var ur = OpenLayers.Projection.transform(\n - {\'x\': this.right, \'y\': this.top}, source, dest);\n - this.left = Math.min(ll.x, ul.x);\n - this.bottom = Math.min(ll.y, lr.y);\n - this.right = Math.max(lr.x, ur.x);\n - this.top = Math.max(ul.y, ur.y);\n - return this;\n - },\n -\n - /**\n - * APIMethod: wrapDateLine\n - * \n - * Parameters:\n - * maxExtent - {<OpenLayers.Bounds>}\n - * options - {Object} Some possible options are:\n - *\n - * Allowed Options:\n - * leftTolerance - {float} Allow for a margin of error \n - * with the \'left\' value of this \n - * bound.\n - * Default is 0.\n - * rightTolerance - {float} Allow for a margin of error \n - * with the \'right\' value of \n - * this bound.\n - * Default is 0.\n - * \n - * Returns:\n - * {<OpenLayers.Bounds>} A copy of this bounds, but wrapped around the \n - * "dateline" (as specified by the borders of \n - * maxExtent). Note that this function only returns \n - * a different bounds value if this bounds is \n - * *entirely* outside of the maxExtent. If this \n - * bounds straddles the dateline (is part in/part \n - * out of maxExtent), the returned bounds will always \n - * cross the left edge of the given maxExtent.\n - *.\n - */\n - wrapDateLine: function(maxExtent, options) { \n - options = options || {};\n - \n - var leftTolerance = options.leftTolerance || 0;\n - var rightTolerance = options.rightTolerance || 0;\n -\n - var newBounds = this.clone();\n - \n - if (maxExtent) {\n - var width = maxExtent.getWidth();\n -\n - //shift right?\n - while (newBounds.left < maxExtent.left && \n - newBounds.right - rightTolerance <= maxExtent.left ) { \n - newBounds = newBounds.add(width, 0);\n - }\n -\n - //shift left?\n - while (newBounds.left + leftTolerance >= maxExtent.right && \n - newBounds.right > maxExtent.right ) { \n - newBounds = newBounds.add(-width, 0);\n - }\n - \n - // crosses right only? force left\n - var newLeft = newBounds.left + leftTolerance;\n - if (newLeft < maxExtent.right && newLeft > maxExtent.left && \n - newBounds.right - rightTolerance > maxExtent.right) {\n - newBounds = newBounds.add(-width, 0);\n - }\n - }\n - \n - return newBounds;\n - },\n -\n - CLASS_NAME: "OpenLayers.Bounds"\n -});\n -\n -/** \n - * APIFunction: fromString\n - * Alternative constructor that builds a new OpenLayers.Bounds from a \n - * parameter string\n - * \n - * Parameters: \n - * str - {String}Comma-separated bounds string. (e.g. <i>"5,42,10,45"</i>)\n - * reverseAxisOrder - {Boolean} Does the string use reverse axis order?\n - * \n - * Returns:\n - * {<OpenLayers.Bounds>} New bounds object built from the \n - * passed-in String.\n - */\n -OpenLayers.Bounds.fromString = function(str, reverseAxisOrder) {\n - var bounds = str.split(",");\n - return OpenLayers.Bounds.fromArray(bounds, reverseAxisOrder);\n -};\n -\n -/** \n - * APIFunction: fromArray\n - * Alternative constructor that builds a new OpenLayers.Bounds\n - * from an array\n - * \n - * Parameters:\n - * bbox - {Array(Float)} Array of bounds values (e.g. <i>[5,42,10,45]</i>)\n - * reverseAxisOrder - {Boolean} Does the array use reverse axis order?\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>} New bounds object built from the passed-in Array.\n - */\n -OpenLayers.Bounds.fromArray = function(bbox, reverseAxisOrder) {\n - return reverseAxisOrder === true ?\n - new OpenLayers.Bounds(bbox[1], bbox[0], bbox[3], bbox[2]) :\n - new OpenLayers.Bounds(bbox[0], bbox[1], bbox[2], bbox[3]);\n -};\n -\n -/** \n - * APIFunction: fromSize\n - * Alternative constructor that builds a new OpenLayers.Bounds\n - * from a size\n - * \n - * Parameters:\n - * size - {<OpenLayers.Size>|Object} OpenLayers.Size or an object with\n - * a \'w\' and \'h\' properties.\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>} New bounds object built from the passed-in size.\n - */\n -OpenLayers.Bounds.fromSize = function(size) {\n - return new OpenLayers.Bounds(0,\n - size.h,\n - size.w,\n - 0);\n -};\n -\n -/**\n - * Function: oppositeQuadrant\n - * Get the opposite quadrant for a given quadrant string.\n - *\n - * Parameters:\n - * quadrant - {String} two character quadrant shortstring\n - *\n - * Returns:\n - * {String} The opposing quadrant ("br" "tr" "tl" "bl"). For Example, if \n - * you pass in "bl" it returns "tr", if you pass in "br" it \n - * returns "tl", etc.\n - */\n -OpenLayers.Bounds.oppositeQuadrant = function(quadrant) {\n - var opp = "";\n - \n - opp += (quadrant.charAt(0) == \'t\') ? \'b\' : \'t\';\n - opp += (quadrant.charAt(1) == \'l\') ? \'r\' : \'l\';\n - \n - return opp;\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>25310</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Class.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Class.js.xml deleted file mode 100644 index fd32da3b0958e6b7ff08e4ee54ad5ba6a38e03fb..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Class.js.xml +++ /dev/null @@ -1,165 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Class.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/SingleFile.js\n - */\n -\n -/**\n - * Constructor: OpenLayers.Class\n - * Base class used to construct all other classes. Includes support for \n - * multiple inheritance. \n - * \n - * This constructor is new in OpenLayers 2.5. At OpenLayers 3.0, the old \n - * syntax for creating classes and dealing with inheritance \n - * will be removed.\n - * \n - * To create a new OpenLayers-style class, use the following syntax:\n - * (code)\n - * var MyClass = OpenLayers.Class(prototype);\n - * (end)\n - *\n - * To create a new OpenLayers-style class with multiple inheritance, use the\n - * following syntax:\n - * (code)\n - * var MyClass = OpenLayers.Class(Class1, Class2, prototype);\n - * (end)\n - * \n - * Note that instanceof reflection will only reveal Class1 as superclass.\n - *\n - */\n -OpenLayers.Class = function() {\n - var len = arguments.length;\n - var P = arguments[0];\n - var F = arguments[len-1];\n -\n - var C = typeof F.initialize == "function" ?\n - F.initialize :\n - function(){ P.prototype.initialize.apply(this, arguments); };\n -\n - if (len > 1) {\n - var newArgs = [C, P].concat(\n - Array.prototype.slice.call(arguments).slice(1, len-1), F);\n - OpenLayers.inherit.apply(null, newArgs);\n - } else {\n - C.prototype = F;\n - }\n - return C;\n -};\n -\n -/**\n - * Function: OpenLayers.inherit\n - *\n - * Parameters:\n - * C - {Object} the class that inherits\n - * P - {Object} the superclass to inherit from\n - *\n - * In addition to the mandatory C and P parameters, an arbitrary number of\n - * objects can be passed, which will extend C.\n - */\n -OpenLayers.inherit = function(C, P) {\n - var F = function() {};\n - F.prototype = P.prototype;\n - C.prototype = new F;\n - var i, l, o;\n - for(i=2, l=arguments.length; i<l; i++) {\n - o = arguments[i];\n - if(typeof o === "function") {\n - o = o.prototype;\n - }\n - OpenLayers.Util.extend(C.prototype, o);\n - }\n -};\n -\n -/**\n - * APIFunction: extend\n - * Copy all properties of a source object to a destination object. Modifies\n - * the passed in destination object. Any properties on the source object\n - * that are set to undefined will not be (re)set on the destination object.\n - *\n - * Parameters:\n - * destination - {Object} The object that will be modified\n - * source - {Object} The object with properties to be set on the destination\n - *\n - * Returns:\n - * {Object} The destination object.\n - */\n -OpenLayers.Util = OpenLayers.Util || {};\n -OpenLayers.Util.extend = function(destination, source) {\n - destination = destination || {};\n - if (source) {\n - for (var property in source) {\n - var value = source[property];\n - if (value !== undefined) {\n - destination[property] = value;\n - }\n - }\n -\n - /**\n - * IE doesn\'t include the toString property when iterating over an object\'s\n - * properties with the for(property in object) syntax. Explicitly check if\n - * the source has its own toString property.\n - */\n -\n - /*\n - * FF/Windows < 2.0.0.13 reports "Illegal operation on WrappedNative\n - * prototype object" when calling hawOwnProperty if the source object\n - * is an instance of window.Event.\n - */\n -\n - var sourceIsEvt = typeof window.Event == "function"\n - && source instanceof window.Event;\n -\n - if (!sourceIsEvt\n - && source.hasOwnProperty && source.hasOwnProperty("toString")) {\n - destination.toString = source.toString;\n - }\n - }\n - return destination;\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3740</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Date.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Date.js.xml deleted file mode 100644 index b3c57a2fbd18289c9eb48934f0d5b3be99b93697..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Date.js.xml +++ /dev/null @@ -1,166 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Date.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for\n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/SingleFile.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Date\n - * Contains implementations of Date.parse and date.toISOString that match the\n - * ECMAScript 5 specification for parsing RFC 3339 dates.\n - * http://tools.ietf.org/html/rfc3339\n - */\n -OpenLayers.Date = {\n -\n - /**\n - * APIMethod: toISOString\n - * Generates a string representing a date. The format of the string follows\n - * the profile of ISO 8601 for date and time on the Internet (see\n - * http://tools.ietf.org/html/rfc3339). If the toISOString method is\n - * available on the Date prototype, that is used. The toISOString\n - * method for Date instances is defined in ECMA-262.\n - *\n - * Parameters:\n - * date - {Date} A date object.\n - *\n - * Returns:\n - * {String} A string representing the date (e.g.\n - * "2010-08-07T16:58:23.123Z"). If the date does not have a valid time\n - * (i.e. isNaN(date.getTime())) this method returns the string "Invalid\n - * Date". The ECMA standard says the toISOString method should throw\n - * RangeError in this case, but Firefox returns a string instead. For\n - * best results, use isNaN(date.getTime()) to determine date validity\n - * before generating date strings.\n - */\n - toISOString: (function() {\n - if ("toISOString" in Date.prototype) {\n - return function(date) {\n - return date.toISOString();\n - };\n - } else {\n - function pad(num, len) {\n - var str = num + "";\n - while (str.length < len) {\n - str = "0" + str;\n - }\n - return str;\n - }\n - return function(date) {\n - var str;\n - if (isNaN(date.getTime())) {\n - // ECMA-262 says throw RangeError, Firefox returns\n - // "Invalid Date"\n - str = "Invalid Date";\n - } else {\n - str =\n - date.getUTCFullYear() + "-" +\n - pad(date.getUTCMonth() + 1, 2) + "-" +\n - pad(date.getUTCDate(), 2) + "T" +\n - pad(date.getUTCHours(), 2) + ":" +\n - pad(date.getUTCMinutes(), 2) + ":" +\n - pad(date.getUTCSeconds(), 2) + "." +\n - pad(date.getUTCMilliseconds(), 3) + "Z";\n - }\n - return str;\n - };\n - }\n -\n - })(),\n -\n - /**\n - * APIMethod: parse\n - * Generate a date object from a string. The format for the string follows\n - * the profile of ISO 8601 for date and time on the Internet (see\n - * http://tools.ietf.org/html/rfc3339). We don\'t call the native\n - * Date.parse because of inconsistency between implmentations. In\n - * Chrome, calling Date.parse with a string that doesn\'t contain any\n - * indication of the timezone (e.g. "2011"), the date is interpreted\n - * in local time. On Firefox, the assumption is UTC.\n - *\n - * Parameters:\n - * str - {String} A string representing the date (e.g.\n - * "2010", "2010-08", "2010-08-07", "2010-08-07T16:58:23.123Z",\n - * "2010-08-07T11:58:23.123-06").\n - *\n - * Returns:\n - * {Date} A date object. If the string could not be parsed, an invalid\n - * date is returned (i.e. isNaN(date.getTime())).\n - */\n - parse: function(str) {\n - var date;\n - var match = str.match(/^(?:(\\d{4})(?:-(\\d{2})(?:-(\\d{2}))?)?)?(?:(?:T(\\d{1,2}):(\\d{2}):(\\d{2}(?:\\.\\d+)?)(Z|(?:[+-]\\d{1,2}(?::(\\d{2}))?)))|Z)?$/);\n - if (match && (match[1] || match[7])) { // must have at least year or time\n - var year = parseInt(match[1], 10) || 0;\n - var month = (parseInt(match[2], 10) - 1) || 0;\n - var day = parseInt(match[3], 10) || 1;\n - date = new Date(Date.UTC(year, month, day));\n - // optional time\n - var type = match[7];\n - if (type) {\n - var hours = parseInt(match[4], 10);\n - var minutes = parseInt(match[5], 10);\n - var secFrac = parseFloat(match[6]);\n - var seconds = secFrac | 0;\n - var milliseconds = Math.round(1000 * (secFrac - seconds));\n - date.setUTCHours(hours, minutes, seconds, milliseconds);\n - // check offset\n - if (type !== "Z") {\n - var hoursOffset = parseInt(type, 10);\n - var minutesOffset = parseInt(match[8], 10) || 0;\n - var offset = -1000 * (60 * (hoursOffset * 60) + minutesOffset * 60);\n - date = new Date(date.getTime() + offset);\n - }\n - }\n - } else {\n - date = new Date("invalid");\n - }\n - return date;\n - }\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5071</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Element.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Element.js.xml deleted file mode 100644 index 7a3a6c44626209aaa3bc19ec1e94edbc38c886bc..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Element.js.xml +++ /dev/null @@ -1,233 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Element.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Util.js\n - * @requires OpenLayers/BaseTypes.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Element\n - */\n -OpenLayers.Element = {\n -\n - /**\n - * APIFunction: visible\n - * \n - * Parameters: \n - * element - {DOMElement}\n - * \n - * Returns:\n - * {Boolean} Is the element visible?\n - */\n - visible: function(element) {\n - return OpenLayers.Util.getElement(element).style.display != \'none\';\n - },\n -\n - /**\n - * APIFunction: toggle\n - * Toggle the visibility of element(s) passed in\n - * \n - * Parameters:\n - * element - {DOMElement} Actually user can pass any number of elements\n - */\n - toggle: function() {\n - for (var i=0, len=arguments.length; i<len; i++) {\n - var element = OpenLayers.Util.getElement(arguments[i]);\n - var display = OpenLayers.Element.visible(element) ? \'none\' \n - : \'\';\n - element.style.display = display;\n - }\n - },\n -\n - /**\n - * APIFunction: remove\n - * Remove the specified element from the DOM.\n - * \n - * Parameters:\n - * element - {DOMElement}\n - */\n - remove: function(element) {\n - element = OpenLayers.Util.getElement(element);\n - element.parentNode.removeChild(element);\n - },\n -\n - /**\n - * APIFunction: getHeight\n - * \n - * Parameters:\n - * element - {DOMElement}\n - * \n - * Returns:\n - * {Integer} The offset height of the element passed in\n - */\n - getHeight: function(element) {\n - element = OpenLayers.Util.getElement(element);\n - return element.offsetHeight;\n - },\n -\n - /**\n - * Function: hasClass\n - * Tests if an element has the given CSS class name.\n - *\n - * Parameters:\n - * element - {DOMElement} A DOM element node.\n - * name - {String} The CSS class name to search for.\n - *\n - * Returns:\n - * {Boolean} The element has the given class name.\n - */\n - hasClass: function(element, name) {\n - var names = element.className;\n - return (!!names && new RegExp("(^|\\\\s)" + name + "(\\\\s|$)").test(names));\n - },\n - \n - /**\n - * Function: addClass\n - * Add a CSS class name to an element. Safe where element already has\n - * the class name.\n - *\n - * Parameters:\n - * element - {DOMElement} A DOM element node.\n - * name - {String} The CSS class name to add.\n - *\n - * Returns:\n - * {DOMElement} The element.\n - */\n - addClass: function(element, name) {\n - if(!OpenLayers.Element.hasClass(element, name)) {\n - element.className += (element.className ? " " : "") + name;\n - }\n - return element;\n - },\n -\n - /**\n - * Function: removeClass\n - * Remove a CSS class name from an element. Safe where element does not\n - * have the class name.\n - *\n - * Parameters:\n - * element - {DOMElement} A DOM element node.\n - * name - {String} The CSS class name to remove.\n - *\n - * Returns:\n - * {DOMElement} The element.\n - */\n - removeClass: function(element, name) {\n - var names = element.className;\n - if(names) {\n - element.className = OpenLayers.String.trim(\n - names.replace(\n - new RegExp("(^|\\\\s+)" + name + "(\\\\s+|$)"), " "\n - )\n - );\n - }\n - return element;\n - },\n -\n - /**\n - * Function: toggleClass\n - * Remove a CSS class name from an element if it exists. Add the class name\n - * if it doesn\'t exist.\n - *\n - * Parameters:\n - * element - {DOMElement} A DOM element node.\n - * name - {String} The CSS class name to toggle.\n - *\n - * Returns:\n - * {DOMElement} The element.\n - */\n - toggleClass: function(element, name) {\n - if(OpenLayers.Element.hasClass(element, name)) {\n - OpenLayers.Element.removeClass(element, name);\n - } else {\n - OpenLayers.Element.addClass(element, name);\n - }\n - return element;\n - },\n -\n - /**\n - * APIFunction: getStyle\n - * \n - * Parameters:\n - * element - {DOMElement}\n - * style - {?}\n - * \n - * Returns:\n - * {?}\n - */\n - getStyle: function(element, style) {\n - element = OpenLayers.Util.getElement(element);\n -\n - var value = null;\n - if (element && element.style) {\n - value = element.style[OpenLayers.String.camelize(style)];\n - if (!value) {\n - if (document.defaultView && \n - document.defaultView.getComputedStyle) {\n - \n - var css = document.defaultView.getComputedStyle(element, null);\n - value = css ? css.getPropertyValue(style) : null;\n - } else if (element.currentStyle) {\n - value = element.currentStyle[OpenLayers.String.camelize(style)];\n - }\n - }\n - \n - var positions = [\'left\', \'top\', \'right\', \'bottom\'];\n - if (window.opera &&\n - (OpenLayers.Util.indexOf(positions,style) != -1) &&\n - (OpenLayers.Element.getStyle(element, \'position\') == \'static\')) { \n - value = \'auto\';\n - }\n - }\n - \n - return value == \'auto\' ? null : value;\n - }\n -\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5398</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/LonLat.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/LonLat.js.xml deleted file mode 100644 index 6fa6d99b8a05412cadd717b879227c96f9ea2b78..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/LonLat.js.xml +++ /dev/null @@ -1,259 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>LonLat.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - */\n -\n -/**\n - * Class: OpenLayers.LonLat\n - * This class represents a longitude and latitude pair\n - */\n -OpenLayers.LonLat = OpenLayers.Class({\n -\n - /** \n - * APIProperty: lon\n - * {Float} The x-axis coodinate in map units\n - */\n - lon: 0.0,\n - \n - /** \n - * APIProperty: lat\n - * {Float} The y-axis coordinate in map units\n - */\n - lat: 0.0,\n -\n - /**\n - * Constructor: OpenLayers.LonLat\n - * Create a new map location. Coordinates can be passed either as two\n - * arguments, or as a single argument.\n - *\n - * Parameters (two arguments):\n - * lon - {Number} The x-axis coordinate in map units. If your map is in\n - * a geographic projection, this will be the Longitude. Otherwise,\n - * it will be the x coordinate of the map location in your map units.\n - * lat - {Number} The y-axis coordinate in map units. If your map is in\n - * a geographic projection, this will be the Latitude. Otherwise,\n - * it will be the y coordinate of the map location in your map units.\n - *\n - * Parameters (single argument):\n - * location - {Array(Float)} [lon, lat]\n - */\n - initialize: function(lon, lat) {\n - if (OpenLayers.Util.isArray(lon)) {\n - lat = lon[1];\n - lon = lon[0];\n - }\n - this.lon = OpenLayers.Util.toFloat(lon);\n - this.lat = OpenLayers.Util.toFloat(lat);\n - },\n - \n - /**\n - * Method: toString\n - * Return a readable string version of the lonlat\n - *\n - * Returns:\n - * {String} String representation of OpenLayers.LonLat object. \n - * (e.g. <i>"lon=5,lat=42"</i>)\n - */\n - toString:function() {\n - return ("lon=" + this.lon + ",lat=" + this.lat);\n - },\n -\n - /** \n - * APIMethod: toShortString\n - * \n - * Returns:\n - * {String} Shortened String representation of OpenLayers.LonLat object. \n - * (e.g. <i>"5, 42"</i>)\n - */\n - toShortString:function() {\n - return (this.lon + ", " + this.lat);\n - },\n -\n - /** \n - * APIMethod: clone\n - * \n - * Returns:\n - * {<OpenLayers.LonLat>} New OpenLayers.LonLat object with the same lon \n - * and lat values\n - */\n - clone:function() {\n - return new OpenLayers.LonLat(this.lon, this.lat);\n - },\n -\n - /** \n - * APIMethod: add\n - * \n - * Parameters:\n - * lon - {Float}\n - * lat - {Float}\n - * \n - * Returns:\n - * {<OpenLayers.LonLat>} A new OpenLayers.LonLat object with the lon and \n - * lat passed-in added to this\'s. \n - */\n - add:function(lon, lat) {\n - if ( (lon == null) || (lat == null) ) {\n - throw new TypeError(\'LonLat.add cannot receive null values\');\n - }\n - return new OpenLayers.LonLat(this.lon + OpenLayers.Util.toFloat(lon), \n - this.lat + OpenLayers.Util.toFloat(lat));\n - },\n -\n - /** \n - * APIMethod: equals\n - * \n - * Parameters:\n - * ll - {<OpenLayers.LonLat>}\n - * \n - * Returns:\n - * {Boolean} Boolean value indicating whether the passed-in \n - * <OpenLayers.LonLat> object has the same lon and lat \n - * components as this.\n - * Note: if ll passed in is null, returns false\n - */\n - equals:function(ll) {\n - var equals = false;\n - if (ll != null) {\n - equals = ((this.lon == ll.lon && this.lat == ll.lat) ||\n - (isNaN(this.lon) && isNaN(this.lat) && isNaN(ll.lon) && isNaN(ll.lat)));\n - }\n - return equals;\n - },\n -\n - /**\n - * APIMethod: transform\n - * Transform the LonLat object from source to dest. This transformation is\n - * *in place*: if you want a *new* lonlat, use .clone() first.\n - *\n - * Parameters: \n - * source - {<OpenLayers.Projection>} Source projection. \n - * dest - {<OpenLayers.Projection>} Destination projection. \n - *\n - * Returns:\n - * {<OpenLayers.LonLat>} Itself, for use in chaining operations.\n - */\n - transform: function(source, dest) {\n - var point = OpenLayers.Projection.transform(\n - {\'x\': this.lon, \'y\': this.lat}, source, dest);\n - this.lon = point.x;\n - this.lat = point.y;\n - return this;\n - },\n - \n - /**\n - * APIMethod: wrapDateLine\n - * \n - * Parameters:\n - * maxExtent - {<OpenLayers.Bounds>}\n - * \n - * Returns:\n - * {<OpenLayers.LonLat>} A copy of this lonlat, but wrapped around the \n - * "dateline" (as specified by the borders of \n - * maxExtent)\n - */\n - wrapDateLine: function(maxExtent) { \n -\n - var newLonLat = this.clone();\n - \n - if (maxExtent) {\n - //shift right?\n - while (newLonLat.lon < maxExtent.left) {\n - newLonLat.lon += maxExtent.getWidth();\n - } \n - \n - //shift left?\n - while (newLonLat.lon > maxExtent.right) {\n - newLonLat.lon -= maxExtent.getWidth();\n - } \n - }\n - \n - return newLonLat;\n - },\n -\n - CLASS_NAME: "OpenLayers.LonLat"\n -});\n -\n -/** \n - * Function: fromString\n - * Alternative constructor that builds a new <OpenLayers.LonLat> from a \n - * parameter string\n - * \n - * Parameters:\n - * str - {String} Comma-separated Lon,Lat coordinate string. \n - * (e.g. <i>"5,40"</i>)\n - * \n - * Returns:\n - * {<OpenLayers.LonLat>} New <OpenLayers.LonLat> object built from the \n - * passed-in String.\n - */\n -OpenLayers.LonLat.fromString = function(str) {\n - var pair = str.split(",");\n - return new OpenLayers.LonLat(pair[0], pair[1]);\n -};\n -\n -/** \n - * Function: fromArray\n - * Alternative constructor that builds a new <OpenLayers.LonLat> from an \n - * array of two numbers that represent lon- and lat-values.\n - * \n - * Parameters:\n - * arr - {Array(Float)} Array of lon/lat values (e.g. [5,-42])\n - * \n - * Returns:\n - * {<OpenLayers.LonLat>} New <OpenLayers.LonLat> object built from the \n - * passed-in array.\n - */\n -OpenLayers.LonLat.fromArray = function(arr) {\n - var gotArr = OpenLayers.Util.isArray(arr),\n - lon = gotArr && arr[0],\n - lat = gotArr && arr[1];\n - return new OpenLayers.LonLat(lon, lat);\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6425</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Pixel.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Pixel.js.xml deleted file mode 100644 index abbe2a6280cb02bc6e2d6d0815c9678fd9753396..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Pixel.js.xml +++ /dev/null @@ -1,187 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Pixel.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - */\n -\n -/**\n - * Class: OpenLayers.Pixel\n - * This class represents a screen coordinate, in x and y coordinates\n - */\n -OpenLayers.Pixel = OpenLayers.Class({\n - \n - /**\n - * APIProperty: x\n - * {Number} The x coordinate\n - */\n - x: 0.0,\n -\n - /**\n - * APIProperty: y\n - * {Number} The y coordinate\n - */\n - y: 0.0,\n - \n - /**\n - * Constructor: OpenLayers.Pixel\n - * Create a new OpenLayers.Pixel instance\n - *\n - * Parameters:\n - * x - {Number} The x coordinate\n - * y - {Number} The y coordinate\n - *\n - * Returns:\n - * An instance of OpenLayers.Pixel\n - */\n - initialize: function(x, y) {\n - this.x = parseFloat(x);\n - this.y = parseFloat(y);\n - },\n - \n - /**\n - * Method: toString\n - * Cast this object into a string\n - *\n - * Returns:\n - * {String} The string representation of Pixel. ex: "x=200.4,y=242.2"\n - */\n - toString:function() {\n - return ("x=" + this.x + ",y=" + this.y);\n - },\n -\n - /**\n - * APIMethod: clone\n - * Return a clone of this pixel object\n - *\n - * Returns:\n - * {<OpenLayers.Pixel>} A clone pixel\n - */\n - clone:function() {\n - return new OpenLayers.Pixel(this.x, this.y); \n - },\n - \n - /**\n - * APIMethod: equals\n - * Determine whether one pixel is equivalent to another\n - *\n - * Parameters:\n - * px - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or an object with\n - * a \'x\' and \'y\' properties.\n - *\n - * Returns:\n - * {Boolean} The point passed in as parameter is equal to this. Note that\n - * if px passed in is null, returns false.\n - */\n - equals:function(px) {\n - var equals = false;\n - if (px != null) {\n - equals = ((this.x == px.x && this.y == px.y) ||\n - (isNaN(this.x) && isNaN(this.y) && isNaN(px.x) && isNaN(px.y)));\n - }\n - return equals;\n - },\n -\n - /**\n - * APIMethod: distanceTo\n - * Returns the distance to the pixel point passed in as a parameter.\n - *\n - * Parameters:\n - * px - {<OpenLayers.Pixel>}\n - *\n - * Returns:\n - * {Float} The pixel point passed in as parameter to calculate the\n - * distance to.\n - */\n - distanceTo:function(px) {\n - return Math.sqrt(\n - Math.pow(this.x - px.x, 2) +\n - Math.pow(this.y - px.y, 2)\n - );\n - },\n -\n - /**\n - * APIMethod: add\n - *\n - * Parameters:\n - * x - {Integer}\n - * y - {Integer}\n - *\n - * Returns:\n - * {<OpenLayers.Pixel>} A new Pixel with this pixel\'s x&y augmented by the \n - * values passed in.\n - */\n - add:function(x, y) {\n - if ( (x == null) || (y == null) ) {\n - throw new TypeError(\'Pixel.add cannot receive null values\');\n - }\n - return new OpenLayers.Pixel(this.x + x, this.y + y);\n - },\n -\n - /**\n - * APIMethod: offset\n - * \n - * Parameters\n - * px - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or an object with\n - * a \'x\' and \'y\' properties.\n - * \n - * Returns:\n - * {<OpenLayers.Pixel>} A new Pixel with this pixel\'s x&y augmented by the \n - * x&y values of the pixel passed in.\n - */\n - offset:function(px) {\n - var newPx = this.clone();\n - if (px) {\n - newPx = this.add(px.x, px.y);\n - }\n - return newPx;\n - },\n -\n - CLASS_NAME: "OpenLayers.Pixel"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3649</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Size.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Size.js.xml deleted file mode 100644 index 1f935285ae655ef5453e9a241df14dc3acde90bf..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/BaseTypes/Size.js.xml +++ /dev/null @@ -1,133 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Size.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - */\n -\n -/**\n - * Class: OpenLayers.Size\n - * Instances of this class represent a width/height pair\n - */\n -OpenLayers.Size = OpenLayers.Class({\n -\n - /**\n - * APIProperty: w\n - * {Number} width\n - */\n - w: 0.0,\n - \n - /**\n - * APIProperty: h\n - * {Number} height\n - */\n - h: 0.0,\n -\n -\n - /**\n - * Constructor: OpenLayers.Size\n - * Create an instance of OpenLayers.Size\n - *\n - * Parameters:\n - * w - {Number} width\n - * h - {Number} height\n - */\n - initialize: function(w, h) {\n - this.w = parseFloat(w);\n - this.h = parseFloat(h);\n - },\n -\n - /**\n - * Method: toString\n - * Return the string representation of a size object\n - *\n - * Returns:\n - * {String} The string representation of OpenLayers.Size object. \n - * (e.g. <i>"w=55,h=66"</i>)\n - */\n - toString:function() {\n - return ("w=" + this.w + ",h=" + this.h);\n - },\n -\n - /**\n - * APIMethod: clone\n - * Create a clone of this size object\n - *\n - * Returns:\n - * {<OpenLayers.Size>} A new OpenLayers.Size object with the same w and h\n - * values\n - */\n - clone:function() {\n - return new OpenLayers.Size(this.w, this.h);\n - },\n -\n - /**\n - *\n - * APIMethod: equals\n - * Determine where this size is equal to another\n - *\n - * Parameters:\n - * sz - {<OpenLayers.Size>|Object} An OpenLayers.Size or an object with\n - * a \'w\' and \'h\' properties.\n - *\n - * Returns: \n - * {Boolean} The passed in size has the same h and w properties as this one.\n - * Note that if sz passed in is null, returns false.\n - */\n - equals:function(sz) {\n - var equals = false;\n - if (sz != null) {\n - equals = ((this.w == sz.w && this.h == sz.h) ||\n - (isNaN(this.w) && isNaN(this.h) && isNaN(sz.w) && isNaN(sz.h)));\n - }\n - return equals;\n - },\n -\n - CLASS_NAME: "OpenLayers.Size"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2191</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Console.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Console.js.xml deleted file mode 100644 index 79ed9219ed433535b5366309654779f563c05a06..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Console.js.xml +++ /dev/null @@ -1,294 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Console.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Console\n - * The OpenLayers.Console namespace is used for debugging and error logging.\n - * If the Firebug Lite (../Firebug/firebug.js) is included before this script,\n - * calls to OpenLayers.Console methods will get redirected to window.console.\n - * This makes use of the Firebug extension where available and allows for\n - * cross-browser debugging Firebug style.\n - *\n - * Note:\n - * Note that behavior will differ with the Firebug extention and Firebug Lite.\n - * Most notably, the Firebug Lite console does not currently allow for\n - * hyperlinks to code or for clicking on object to explore their properties.\n - * \n - */\n -OpenLayers.Console = {\n - /**\n - * Create empty functions for all console methods. The real value of these\n - * properties will be set if Firebug Lite (../Firebug/firebug.js script) is\n - * included. We explicitly require the Firebug Lite script to trigger\n - * functionality of the OpenLayers.Console methods.\n - */\n - \n - /**\n - * APIFunction: log\n - * Log an object in the console. The Firebug Lite console logs string\n - * representation of objects. Given multiple arguments, they will\n - * be cast to strings and logged with a space delimiter. If the first\n - * argument is a string with printf-like formatting, subsequent arguments\n - * will be used in string substitution. Any additional arguments (beyond\n - * the number substituted in a format string) will be appended in a space-\n - * delimited line.\n - * \n - * Parameters:\n - * object - {Object}\n - */\n - log: function() {},\n -\n - /**\n - * APIFunction: debug\n - * Writes a message to the console, including a hyperlink to the line\n - * where it was called.\n - *\n - * May be called with multiple arguments as with OpenLayers.Console.log().\n - * \n - * Parameters:\n - * object - {Object}\n - */\n - debug: function() {},\n -\n - /**\n - * APIFunction: info\n - * Writes a message to the console with the visual "info" icon and color\n - * coding and a hyperlink to the line where it was called.\n - *\n - * May be called with multiple arguments as with OpenLayers.Console.log().\n - * \n - * Parameters:\n - * object - {Object}\n - */\n - info: function() {},\n -\n - /**\n - * APIFunction: warn\n - * Writes a message to the console with the visual "warning" icon and\n - * color coding and a hyperlink to the line where it was called.\n - *\n - * May be called with multiple arguments as with OpenLayers.Console.log().\n - * \n - * Parameters:\n - * object - {Object}\n - */\n - warn: function() {},\n -\n - /**\n - * APIFunction: error\n - * Writes a message to the console with the visual "error" icon and color\n - * coding and a hyperlink to the line where it was called.\n - *\n - * May be called with multiple arguments as with OpenLayers.Console.log().\n - * \n - * Parameters:\n - * object - {Object}\n - */\n - error: function() {},\n - \n - /**\n - * APIFunction: userError\n - * A single interface for showing error messages to the user. The default\n - * behavior is a Javascript alert, though this can be overridden by\n - * reassigning OpenLayers.Console.userError to a different function.\n - *\n - * Expects a single error message\n - * \n - * Parameters:\n - * error - {Object}\n - */\n - userError: function(error) {\n - alert(error);\n - },\n -\n - /**\n - * APIFunction: assert\n - * Tests that an expression is true. If not, it will write a message to\n - * the console and throw an exception.\n - *\n - * May be called with multiple arguments as with OpenLayers.Console.log().\n - * \n - * Parameters:\n - * object - {Object}\n - */\n - assert: function() {},\n -\n - /**\n - * APIFunction: dir\n - * Prints an interactive listing of all properties of the object. This\n - * looks identical to the view that you would see in the DOM tab.\n - * \n - * Parameters:\n - * object - {Object}\n - */\n - dir: function() {},\n -\n - /**\n - * APIFunction: dirxml\n - * Prints the XML source tree of an HTML or XML element. This looks\n - * identical to the view that you would see in the HTML tab. You can click\n - * on any node to inspect it in the HTML tab.\n - * \n - * Parameters:\n - * object - {Object}\n - */\n - dirxml: function() {},\n -\n - /**\n - * APIFunction: trace\n - * Prints an interactive stack trace of JavaScript execution at the point\n - * where it is called. The stack trace details the functions on the stack,\n - * as well as the values that were passed as arguments to each function.\n - * You can click each function to take you to its source in the Script tab,\n - * and click each argument value to inspect it in the DOM or HTML tabs.\n - * \n - */\n - trace: function() {},\n -\n - /**\n - * APIFunction: group\n - * Writes a message to the console and opens a nested block to indent all\n - * future messages sent to the console. Call OpenLayers.Console.groupEnd()\n - * to close the block.\n - *\n - * May be called with multiple arguments as with OpenLayers.Console.log().\n - * \n - * Parameters:\n - * object - {Object}\n - */\n - group: function() {},\n -\n - /**\n - * APIFunction: groupEnd\n - * Closes the most recently opened block created by a call to\n - * OpenLayers.Console.group\n - */\n - groupEnd: function() {},\n - \n - /**\n - * APIFunction: time\n - * Creates a new timer under the given name. Call\n - * OpenLayers.Console.timeEnd(name)\n - * with the same name to stop the timer and print the time elapsed.\n - *\n - * Parameters:\n - * name - {String}\n - */\n - time: function() {},\n -\n - /**\n - * APIFunction: timeEnd\n - * Stops a timer created by a call to OpenLayers.Console.time(name) and\n - * writes the time elapsed.\n - *\n - * Parameters:\n - * name - {String}\n - */\n - timeEnd: function() {},\n -\n - /**\n - * APIFunction: profile\n - * Turns on the JavaScript profiler. The optional argument title would\n - * contain the text to be printed in the header of the profile report.\n - *\n - * This function is not currently implemented in Firebug Lite.\n - * \n - * Parameters:\n - * title - {String} Optional title for the profiler\n - */\n - profile: function() {},\n -\n - /**\n - * APIFunction: profileEnd\n - * Turns off the JavaScript profiler and prints its report.\n - * \n - * This function is not currently implemented in Firebug Lite.\n - */\n - profileEnd: function() {},\n -\n - /**\n - * APIFunction: count\n - * Writes the number of times that the line of code where count was called\n - * was executed. The optional argument title will print a message in\n - * addition to the number of the count.\n - *\n - * This function is not currently implemented in Firebug Lite.\n - *\n - * Parameters:\n - * title - {String} Optional title to be printed with count\n - */\n - count: function() {},\n -\n - CLASS_NAME: "OpenLayers.Console"\n -};\n -\n -/**\n - * Execute an anonymous function to extend the OpenLayers.Console namespace\n - * if the firebug.js script is included. This closure is used so that the\n - * "scripts" and "i" variables don\'t pollute the global namespace.\n - */\n -(function() {\n - /**\n - * If Firebug Lite is included (before this script), re-route all\n - * OpenLayers.Console calls to the console object.\n - */\n - var scripts = document.getElementsByTagName("script");\n - for(var i=0, len=scripts.length; i<len; ++i) {\n - if(scripts[i].src.indexOf("firebug.js") != -1) {\n - if(console) {\n - OpenLayers.Util.extend(OpenLayers.Console, console);\n - break;\n - }\n - }\n - }\n -})();\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7885</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control.js.xml deleted file mode 100644 index 0787fa990f205618cd55f3cf433d0cb7fff94c79..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control.js.xml +++ /dev/null @@ -1,409 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.76</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Control.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control\n - * Controls affect the display or behavior of the map. They allow everything\n - * from panning and zooming to displaying a scale indicator. Controls by \n - * default are added to the map they are contained within however it is\n - * possible to add a control to an external div by passing the div in the\n - * options parameter.\n - * \n - * Example:\n - * The following example shows how to add many of the common controls\n - * to a map.\n - * \n - * > var map = new OpenLayers.Map(\'map\', { controls: [] });\n - * >\n - * > map.addControl(new OpenLayers.Control.PanZoomBar());\n - * > map.addControl(new OpenLayers.Control.LayerSwitcher({\'ascending\':false}));\n - * > map.addControl(new OpenLayers.Control.Permalink());\n - * > map.addControl(new OpenLayers.Control.Permalink(\'permalink\'));\n - * > map.addControl(new OpenLayers.Control.MousePosition());\n - * > map.addControl(new OpenLayers.Control.OverviewMap());\n - * > map.addControl(new OpenLayers.Control.KeyboardDefaults());\n - *\n - * The next code fragment is a quick example of how to intercept \n - * shift-mouse click to display the extent of the bounding box\n - * dragged out by the user. Usually controls are not created\n - * in exactly this manner. See the source for a more complete \n - * example:\n - *\n - * > var control = new OpenLayers.Control();\n - * > OpenLayers.Util.extend(control, {\n - * > draw: function () {\n - * > // this Handler.Box will intercept the shift-mousedown\n - * > // before Control.MouseDefault gets to see it\n - * > this.box = new OpenLayers.Handler.Box( control, \n - * > {"done": this.notice},\n - * > {keyMask: OpenLayers.Handler.MOD_SHIFT});\n - * > this.box.activate();\n - * > },\n - * >\n - * > notice: function (bounds) {\n - * > OpenLayers.Console.userError(bounds);\n - * > }\n - * > }); \n - * > map.addControl(control);\n - * \n - */\n -OpenLayers.Control = OpenLayers.Class({\n -\n - /** \n - * Property: id \n - * {String} \n - */\n - id: null,\n - \n - /** \n - * Property: map \n - * {<OpenLayers.Map>} this gets set in the addControl() function in\n - * OpenLayers.Map \n - */\n - map: null,\n -\n - /** \n - * APIProperty: div \n - * {DOMElement} The element that contains the control, if not present the \n - * control is placed inside the map.\n - */\n - div: null,\n -\n - /** \n - * APIProperty: type \n - * {Number} Controls can have a \'type\'. The type determines the type of\n - * interactions which are possible with them when they are placed in an\n - * <OpenLayers.Control.Panel>. \n - */\n - type: null, \n -\n - /** \n - * Property: allowSelection\n - * {Boolean} By default, controls do not allow selection, because\n - * it may interfere with map dragging. If this is true, OpenLayers\n - * will not prevent selection of the control.\n - * Default is false.\n - */\n - allowSelection: false, \n -\n - /** \n - * Property: displayClass \n - * {string} This property is used for CSS related to the drawing of the\n - * Control. \n - */\n - displayClass: "",\n - \n - /**\n - * APIProperty: title \n - * {string} This property is used for showing a tooltip over the \n - * Control. \n - */ \n - title: "",\n -\n - /**\n - * APIProperty: autoActivate\n - * {Boolean} Activate the control when it is added to a map. Default is\n - * false.\n - */\n - autoActivate: false,\n -\n - /** \n - * APIProperty: active \n - * {Boolean} The control is active (read-only). Use <activate> and \n - * <deactivate> to change control state.\n - */\n - active: null,\n -\n - /** \n - * Property: handler \n - * {<OpenLayers.Handler>} null\n - */\n - handler: null,\n -\n - /**\n - * APIProperty: eventListeners\n - * {Object} If set as an option at construction, the eventListeners\n - * object will be registered with <OpenLayers.Events.on>. Object\n - * structure must be a listeners object as shown in the example for\n - * the events.on method.\n - */\n - eventListeners: null,\n -\n - /** \n - * APIProperty: events\n - * {<OpenLayers.Events>} Events instance for listeners and triggering\n - * control specific events.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * control.events.register(type, obj, listener);\n - * (end)\n - *\n - * Listeners will be called with a reference to an event object. The\n - * properties of this event depends on exactly what happened.\n - *\n - * All event objects have at least the following properties:\n - * object - {Object} A reference to control.events.object (a reference\n - * to the control).\n - * element - {DOMElement} A reference to control.events.element (which\n - * will be null unless documented otherwise).\n - *\n - * Supported map event types:\n - * activate - Triggered when activated.\n - * deactivate - Triggered when deactivated.\n - */\n - events: null,\n -\n - /**\n - * Constructor: OpenLayers.Control\n - * Create an OpenLayers Control. The options passed as a parameter\n - * directly extend the control. For example passing the following:\n - * \n - * > var control = new OpenLayers.Control({div: myDiv});\n - *\n - * Overrides the default div attribute value of null.\n - * \n - * Parameters:\n - * options - {Object} \n - */\n - initialize: function (options) {\n - // We do this before the extend so that instances can override\n - // className in options.\n - this.displayClass = \n - this.CLASS_NAME.replace("OpenLayers.", "ol").replace(/\\./g, "");\n - \n - OpenLayers.Util.extend(this, options);\n - \n - this.events = new OpenLayers.Events(this);\n - if(this.eventListeners instanceof Object) {\n - this.events.on(this.eventListeners);\n - }\n - if (this.id == null) {\n - this.id = OpenLayers.Util.createUniqueID(this.CLASS_NAME + "_");\n - }\n - },\n -\n - /**\n - * Method: destroy\n - * The destroy method is used to perform any clean up before the control\n - * is dereferenced. Typically this is where event listeners are removed\n - * to prevent memory leaks.\n - */\n - destroy: function () {\n - if(this.events) {\n - if(this.eventListeners) {\n - this.events.un(this.eventListeners);\n - }\n - this.events.destroy();\n - this.events = null;\n - }\n - this.eventListeners = null;\n -\n - // eliminate circular references\n - if (this.handler) {\n - this.handler.destroy();\n - this.handler = null;\n - }\n - if(this.handlers) {\n - for(var key in this.handlers) {\n - if(this.handlers.hasOwnProperty(key) &&\n - typeof this.handlers[key].destroy == "function") {\n - this.handlers[key].destroy();\n - }\n - }\n - this.handlers = null;\n - }\n - if (this.map) {\n - this.map.removeControl(this);\n - this.map = null;\n - }\n - this.div = null;\n - },\n -\n - /** \n - * Method: setMap\n - * Set the map property for the control. This is done through an accessor\n - * so that subclasses can override this and take special action once \n - * they have their map variable set. \n - *\n - * Parameters:\n - * map - {<OpenLayers.Map>} \n - */\n - setMap: function(map) {\n - this.map = map;\n - if (this.handler) {\n - this.handler.setMap(map);\n - }\n - },\n - \n - /**\n - * Method: draw\n - * The draw method is called when the control is ready to be displayed\n - * on the page. If a div has not been created one is created. Controls\n - * with a visual component will almost always want to override this method \n - * to customize the look of control. \n - *\n - * Parameters:\n - * px - {<OpenLayers.Pixel>} The top-left pixel position of the control\n - * or null.\n - *\n - * Returns:\n - * {DOMElement} A reference to the DIV DOMElement containing the control\n - */\n - draw: function (px) {\n - if (this.div == null) {\n - this.div = OpenLayers.Util.createDiv(this.id);\n - this.div.className = this.displayClass;\n - if (!this.allowSelection) {\n - this.div.className += " olControlNoSelect";\n - this.div.setAttribute("unselectable", "on", 0);\n - this.div.onselectstart = OpenLayers.Function.False; \n - } \n - if (this.title != "") {\n - this.div.title = this.title;\n - }\n - }\n - if (px != null) {\n - this.position = px.clone();\n - }\n - this.moveTo(this.position);\n - return this.div;\n - },\n -\n - /**\n - * Method: moveTo\n - * Sets the left and top style attributes to the passed in pixel \n - * coordinates.\n - *\n - * Parameters:\n - * px - {<OpenLayers.Pixel>}\n - */\n - moveTo: function (px) {\n - if ((px != null) && (this.div != null)) {\n - this.div.style.left = px.x + "px";\n - this.div.style.top = px.y + "px";\n - }\n - },\n -\n - /**\n - * APIMethod: activate\n - * Explicitly activates a control and it\'s associated\n - * handler if one has been set. Controls can be\n - * deactivated by calling the deactivate() method.\n - * \n - * Returns:\n - * {Boolean} True if the control was successfully activated or\n - * false if the control was already active.\n - */\n - activate: function () {\n - if (this.active) {\n - return false;\n - }\n - if (this.handler) {\n - this.handler.activate();\n - }\n - this.active = true;\n - if(this.map) {\n - OpenLayers.Element.addClass(\n - this.map.viewPortDiv,\n - this.displayClass.replace(/ /g, "") + "Active"\n - );\n - }\n - this.events.triggerEvent("activate");\n - return true;\n - },\n - \n - /**\n - * APIMethod: deactivate\n - * Deactivates a control and it\'s associated handler if any. The exact\n - * effect of this depends on the control itself.\n - * \n - * Returns:\n - * {Boolean} True if the control was effectively deactivated or false\n - * if the control was already inactive.\n - */\n - deactivate: function () {\n - if (this.active) {\n - if (this.handler) {\n - this.handler.deactivate();\n - }\n - this.active = false;\n - if(this.map) {\n - OpenLayers.Element.removeClass(\n - this.map.viewPortDiv,\n - this.displayClass.replace(/ /g, "") + "Active"\n - );\n - }\n - this.events.triggerEvent("deactivate");\n - return true;\n - }\n - return false;\n - },\n -\n - CLASS_NAME: "OpenLayers.Control"\n -});\n -\n -/**\n - * Constant: OpenLayers.Control.TYPE_BUTTON\n - */\n -OpenLayers.Control.TYPE_BUTTON = 1;\n -\n -/**\n - * Constant: OpenLayers.Control.TYPE_TOGGLE\n - */\n -OpenLayers.Control.TYPE_TOGGLE = 2;\n -\n -/**\n - * Constant: OpenLayers.Control.TYPE_TOOL\n - */\n -OpenLayers.Control.TYPE_TOOL = 3;\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>11237</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control.xml deleted file mode 100644 index 864082fa1e4c96989eb797633037fe18f97a1f91..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Control</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Control</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ArgParser.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ArgParser.js.xml deleted file mode 100644 index c582a02d512aa4733984260ee07b7ab436539480..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ArgParser.js.xml +++ /dev/null @@ -1,226 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ArgParser.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Control.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.ArgParser\n - * The ArgParser control adds location bar query string parsing functionality \n - * to an OpenLayers Map.\n - * When added to a Map control, on a page load/refresh, the Map will \n - * automatically take the href string and parse it for lon, lat, zoom, and \n - * layers information. \n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.ArgParser = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * Property: center\n - * {<OpenLayers.LonLat>}\n - */\n - center: null,\n - \n - /**\n - * Property: zoom\n - * {int}\n - */\n - zoom: null,\n -\n - /**\n - * Property: layers\n - * {String} Each character represents the state of the corresponding layer \n - * on the map.\n - */\n - layers: null,\n - \n - /** \n - * APIProperty: displayProjection\n - * {<OpenLayers.Projection>} Requires proj4js support. \n - * Projection used when reading the coordinates from the URL. This will\n - * reproject the map coordinates from the URL into the map\'s\n - * projection.\n - *\n - * If you are using this functionality, be aware that any permalink\n - * which is added to the map will determine the coordinate type which\n - * is read from the URL, which means you should not add permalinks with\n - * different displayProjections to the same map. \n - */\n - displayProjection: null, \n -\n - /**\n - * Constructor: OpenLayers.Control.ArgParser\n - *\n - * Parameters:\n - * options - {Object}\n - */\n -\n - /**\n - * Method: getParameters\n - */ \n - getParameters: function(url) {\n - url = url || window.location.href;\n - var parameters = OpenLayers.Util.getParameters(url);\n -\n - // If we have an anchor in the url use it to split the url\n - var index = url.indexOf(\'#\');\n - if (index > 0) {\n - // create an url to parse on the getParameters\n - url = \'?\' + url.substring(index + 1, url.length);\n -\n - OpenLayers.Util.extend(parameters,\n - OpenLayers.Util.getParameters(url));\n - }\n - return parameters;\n - },\n - \n - /**\n - * Method: setMap\n - * Set the map property for the control. \n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>} \n - */\n - setMap: function(map) {\n - OpenLayers.Control.prototype.setMap.apply(this, arguments);\n -\n - //make sure we dont already have an arg parser attached\n - for(var i=0, len=this.map.controls.length; i<len; i++) {\n - var control = this.map.controls[i];\n - if ( (control != this) &&\n - (control.CLASS_NAME == "OpenLayers.Control.ArgParser") ) {\n - \n - // If a second argparser is added to the map, then we \n - // override the displayProjection to be the one added to the\n - // map. \n - if (control.displayProjection != this.displayProjection) {\n - this.displayProjection = control.displayProjection;\n - } \n - \n - break;\n - }\n - }\n - if (i == this.map.controls.length) {\n -\n - var args = this.getParameters();\n - // Be careful to set layer first, to not trigger unnecessary layer loads\n - if (args.layers) {\n - this.layers = args.layers;\n - \n - // when we add a new layer, set its visibility \n - this.map.events.register(\'addlayer\', this, \n - this.configureLayers);\n - this.configureLayers();\n - }\n - if (args.lat && args.lon) {\n - this.center = new OpenLayers.LonLat(parseFloat(args.lon),\n - parseFloat(args.lat));\n - if (args.zoom) {\n - this.zoom = parseFloat(args.zoom);\n - }\n - \n - // when we add a new baselayer to see when we can set the center\n - this.map.events.register(\'changebaselayer\', this, \n - this.setCenter);\n - this.setCenter();\n - }\n - }\n - },\n - \n - /** \n - * Method: setCenter\n - * As soon as a baseLayer has been loaded, we center and zoom\n - * ...and remove the handler.\n - */\n - setCenter: function() {\n - \n - if (this.map.baseLayer) {\n - //dont need to listen for this one anymore\n - this.map.events.unregister(\'changebaselayer\', this, \n - this.setCenter);\n - \n - if (this.displayProjection) {\n - this.center.transform(this.displayProjection, \n - this.map.getProjectionObject()); \n - } \n -\n - this.map.setCenter(this.center, this.zoom);\n - }\n - },\n -\n - /** \n - * Method: configureLayers\n - * As soon as all the layers are loaded, cycle through them and \n - * hide or show them. \n - */\n - configureLayers: function() {\n -\n - if (this.layers.length == this.map.layers.length) { \n - this.map.events.unregister(\'addlayer\', this, this.configureLayers);\n -\n - for(var i=0, len=this.layers.length; i<len; i++) {\n - \n - var layer = this.map.layers[i];\n - var c = this.layers.charAt(i);\n - \n - if (c == "B") {\n - this.map.setBaseLayer(layer);\n - } else if ( (c == "T") || (c == "F") ) {\n - layer.setVisibility(c == "T");\n - }\n - }\n - }\n - }, \n -\n - CLASS_NAME: "OpenLayers.Control.ArgParser"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5908</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Attribution.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Attribution.js.xml deleted file mode 100644 index 89a558dadadde942720636533dc7740460241e92..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Attribution.js.xml +++ /dev/null @@ -1,148 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Attribution.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.Attribution\n - * The attribution control adds attribution from layers to the map display. \n - * It uses \'attribution\' property of each layer.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.Attribution = \n - OpenLayers.Class(OpenLayers.Control, {\n - \n - /**\n - * APIProperty: seperator\n - * {String} String used to seperate layers.\n - */\n - separator: ", ",\n - \n - /**\n - * APIProperty: template\n - * {String} Template for the attribution. This has to include the substring\n - * "${layers}", which will be replaced by the layer specific\n - * attributions, separated by <separator>. The default is "${layers}".\n - */\n - template: "${layers}",\n - \n - /**\n - * Constructor: OpenLayers.Control.Attribution \n - * \n - * Parameters:\n - * options - {Object} Options for control.\n - */\n -\n - /** \n - * Method: destroy\n - * Destroy control.\n - */\n - destroy: function() {\n - this.map.events.un({\n - "removelayer": this.updateAttribution,\n - "addlayer": this.updateAttribution,\n - "changelayer": this.updateAttribution,\n - "changebaselayer": this.updateAttribution,\n - scope: this\n - });\n - \n - OpenLayers.Control.prototype.destroy.apply(this, arguments);\n - }, \n - \n - /**\n - * Method: draw\n - * Initialize control.\n - * \n - * Returns: \n - * {DOMElement} A reference to the DIV DOMElement containing the control\n - */ \n - draw: function() {\n - OpenLayers.Control.prototype.draw.apply(this, arguments);\n - \n - this.map.events.on({\n - \'changebaselayer\': this.updateAttribution,\n - \'changelayer\': this.updateAttribution,\n - \'addlayer\': this.updateAttribution,\n - \'removelayer\': this.updateAttribution,\n - scope: this\n - });\n - this.updateAttribution();\n - \n - return this.div; \n - },\n -\n - /**\n - * Method: updateAttribution\n - * Update attribution string.\n - */\n - updateAttribution: function() {\n - var attributions = [];\n - if (this.map && this.map.layers) {\n - for(var i=0, len=this.map.layers.length; i<len; i++) {\n - var layer = this.map.layers[i];\n - if (layer.attribution && layer.getVisibility()) {\n - // add attribution only if attribution text is unique\n - if (OpenLayers.Util.indexOf(\n - attributions, layer.attribution) === -1) {\n - attributions.push( layer.attribution );\n - }\n - }\n - } \n - this.div.innerHTML = OpenLayers.String.format(this.template, {\n - layers: attributions.join(this.separator)\n - });\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.Attribution"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3155</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Button.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Button.js.xml deleted file mode 100644 index 111fc2a9c551b6dea27a8b4b0cb0a3e7f81dd96d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Button.js.xml +++ /dev/null @@ -1,88 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Button.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.Button \n - * The Button control is a very simple push-button, for use with \n - * <OpenLayers.Control.Panel>.\n - * When clicked, the function trigger() is executed.\n - * \n - * Inherits from:\n - * - <OpenLayers.Control>\n - *\n - * Use:\n - * (code)\n - * var button = new OpenLayers.Control.Button({\n - * displayClass: "MyButton", trigger: myFunction\n - * });\n - * panel.addControls([button]);\n - * (end)\n - * \n - * Will create a button with CSS class MyButtonItemInactive, that\n - * will call the function MyFunction() when clicked.\n - */\n -OpenLayers.Control.Button = OpenLayers.Class(OpenLayers.Control, {\n - /**\n - * Property: type\n - * {Integer} OpenLayers.Control.TYPE_BUTTON.\n - */\n - type: OpenLayers.Control.TYPE_BUTTON,\n - \n - /**\n - * Method: trigger\n - * Called by a control panel when the button is clicked.\n - */\n - trigger: function() {},\n -\n - CLASS_NAME: "OpenLayers.Control.Button"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1217</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/CacheRead.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/CacheRead.js.xml deleted file mode 100644 index 6efc44d0ff80fabd63fa695624708e80cbafb530..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/CacheRead.js.xml +++ /dev/null @@ -1,200 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>CacheRead.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.CacheRead\n - * A control for using image tiles cached with <OpenLayers.Control.CacheWrite>\n - * from the browser\'s local storage.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.CacheRead = OpenLayers.Class(OpenLayers.Control, {\n - \n - /**\n - * APIProperty: fetchEvent\n - * {String} The layer event to listen to for replacing remote resource tile\n - * URLs with cached data URIs. Supported values are "tileerror" (try\n - * remote first, fall back to cached) and "tileloadstart" (try cache\n - * first, fall back to remote). Default is "tileloadstart".\n - *\n - * Note that "tileerror" will not work for CORS enabled images (see\n - * https://developer.mozilla.org/en/CORS_Enabled_Image), i.e. layers\n - * configured with a <OpenLayers.Tile.Image.crossOriginKeyword> in\n - * <OpenLayers.Layer.Grid.tileOptions>.\n - */\n - fetchEvent: "tileloadstart",\n - \n - /**\n - * APIProperty: layers\n - * {Array(<OpenLayers.Layer.Grid>)}. Optional. If provided, only these\n - * layers will receive tiles from the cache.\n - */\n - layers: null,\n - \n - /**\n - * APIProperty: autoActivate\n - * {Boolean} Activate the control when it is added to a map. Default is\n - * true.\n - */\n - autoActivate: true,\n -\n - /**\n - * Constructor: OpenLayers.Control.CacheRead\n - *\n - * Parameters:\n - * options - {Object} Object with API properties for this control\n - */\n - \n - /** \n - * Method: setMap\n - * Set the map property for the control. \n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>} \n - */\n - setMap: function(map) {\n - OpenLayers.Control.prototype.setMap.apply(this, arguments);\n - var i, layers = this.layers || map.layers;\n - for (i=layers.length-1; i>=0; --i) {\n - this.addLayer({layer: layers[i]});\n - }\n - if (!this.layers) {\n - map.events.on({\n - addlayer: this.addLayer,\n - removeLayer: this.removeLayer,\n - scope: this\n - });\n - }\n - },\n - \n - /**\n - * Method: addLayer\n - * Adds a layer to the control. Once added, tiles requested for this layer\n - * will be cached.\n - *\n - * Parameters:\n - * evt - {Object} Object with a layer property referencing an\n - * <OpenLayers.Layer> instance\n - */\n - addLayer: function(evt) {\n - evt.layer.events.register(this.fetchEvent, this, this.fetch); \n - },\n - \n - /**\n - * Method: removeLayer\n - * Removes a layer from the control. Once removed, tiles requested for this\n - * layer will no longer be cached.\n - *\n - * Parameters:\n - * evt - {Object} Object with a layer property referencing an\n - * <OpenLayers.Layer> instance\n - */\n - removeLayer: function(evt) {\n - evt.layer.events.unregister(this.fetchEvent, this, this.fetch);\n - },\n - \n - /**\n - * Method: fetch\n - * Listener to the <fetchEvent> event. Replaces a tile\'s url with a data\n - * URI from the cache.\n - *\n - * Parameters:\n - * evt - {Object} Event object with a tile property.\n - */\n - fetch: function(evt) {\n - if (this.active && window.localStorage &&\n - evt.tile instanceof OpenLayers.Tile.Image) {\n - var tile = evt.tile,\n - url = tile.url;\n - // deal with modified tile urls when both CacheWrite and CacheRead\n - // are active\n - if (!tile.layer.crossOriginKeyword && OpenLayers.ProxyHost &&\n - url.indexOf(OpenLayers.ProxyHost) === 0) {\n - url = OpenLayers.Control.CacheWrite.urlMap[url]; \n - }\n - var dataURI = window.localStorage.getItem("olCache_" + url);\n - if (dataURI) {\n - tile.url = dataURI;\n - if (evt.type === "tileerror") {\n - tile.setImgSrc(dataURI);\n - }\n - }\n - }\n - },\n - \n - /**\n - * Method: destroy\n - * The destroy method is used to perform any clean up before the control\n - * is dereferenced. Typically this is where event listeners are removed\n - * to prevent memory leaks.\n - */\n - destroy: function() {\n - if (this.layers || this.map) {\n - var i, layers = this.layers || this.map.layers;\n - for (i=layers.length-1; i>=0; --i) {\n - this.removeLayer({layer: layers[i]});\n - }\n - }\n - if (this.map) {\n - this.map.events.un({\n - addlayer: this.addLayer,\n - removeLayer: this.removeLayer,\n - scope: this\n - });\n - }\n - OpenLayers.Control.prototype.destroy.apply(this, arguments);\n - },\n - \n - CLASS_NAME: "OpenLayers.Control.CacheRead"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5044</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/CacheWrite.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/CacheWrite.js.xml deleted file mode 100644 index 1f065a589e874065cb9b942aebeb0439a3c3e83b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/CacheWrite.js.xml +++ /dev/null @@ -1,289 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>CacheWrite.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Request.js\n - * @requires OpenLayers/Console.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.CacheWrite\n - * A control for caching image tiles in the browser\'s local storage. The\n - * <OpenLayers.Control.CacheRead> control is used to fetch and use the cached\n - * tile images.\n - *\n - * Note: Before using this control on any layer that is not your own, make sure\n - * that the terms of service of the tile provider allow local storage of tiles.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.CacheWrite = OpenLayers.Class(OpenLayers.Control, {\n - \n - /** \n - * APIProperty: events\n - * {<OpenLayers.Events>} Events instance for listeners and triggering\n - * control specific events.\n - *\n - * To register events in the constructor, configure <eventListeners>.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * control.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types (in addition to those from <OpenLayers.Control.events>):\n - * cachefull - Triggered when the cache is full. Listeners receive an\n - * object with a tile property as first argument. The tile references\n - * the tile that couldn\'t be cached.\n - */\n - \n - /**\n - * APIProperty: eventListeners\n - * {Object} Object with event listeners, keyed by event name. An optional\n - * scope property defines the scope that listeners will be executed in.\n - */\n -\n - /**\n - * APIProperty: layers\n - * {Array(<OpenLayers.Layer.Grid>)}. Optional. If provided, caching\n - * will be enabled for these layers only, otherwise for all cacheable\n - * layers.\n - */\n - layers: null,\n - \n - /**\n - * APIProperty: imageFormat\n - * {String} The image format used for caching. The default is "image/png".\n - * Supported formats depend on the user agent. If an unsupported\n - * <imageFormat> is provided, "image/png" will be used. For aerial\n - * imagery, "image/jpeg" is recommended.\n - */\n - imageFormat: "image/png",\n - \n - /**\n - * Property: quotaRegEx\n - * {RegExp}\n - */\n - quotaRegEx: (/quota/i),\n - \n - /**\n - * Constructor: OpenLayers.Control.CacheWrite\n - *\n - * Parameters:\n - * options - {Object} Object with API properties for this control.\n - */\n -\n - /** \n - * Method: setMap\n - * Set the map property for the control. \n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>} \n - */\n - setMap: function(map) {\n - OpenLayers.Control.prototype.setMap.apply(this, arguments);\n - var i, layers = this.layers || map.layers;\n - for (i=layers.length-1; i>=0; --i) {\n - this.addLayer({layer: layers[i]});\n - }\n - if (!this.layers) {\n - map.events.on({\n - addlayer: this.addLayer,\n - removeLayer: this.removeLayer,\n - scope: this\n - });\n - }\n - },\n - \n - /**\n - * Method: addLayer\n - * Adds a layer to the control. Once added, tiles requested for this layer\n - * will be cached.\n - *\n - * Parameters:\n - * evt - {Object} Object with a layer property referencing an\n - * <OpenLayers.Layer> instance\n - */\n - addLayer: function(evt) {\n - evt.layer.events.on({\n - tileloadstart: this.makeSameOrigin,\n - tileloaded: this.cache,\n - scope: this\n - }); \n - },\n - \n - /**\n - * Method: removeLayer\n - * Removes a layer from the control. Once removed, tiles requested for this\n - * layer will no longer be cached.\n - *\n - * Parameters:\n - * evt - {Object} Object with a layer property referencing an\n - * <OpenLayers.Layer> instance\n - */\n - removeLayer: function(evt) {\n - evt.layer.events.un({\n - tileloadstart: this.makeSameOrigin,\n - tileloaded: this.cache,\n - scope: this\n - });\n - },\n -\n - /**\n - * Method: makeSameOrigin\n - * If the tile does not have CORS image loading enabled and is from a\n - * different origin, use OpenLayers.ProxyHost to make it a same origin url.\n - *\n - * Parameters:\n - * evt - {<OpenLayers.Event>}\n - */\n - makeSameOrigin: function(evt) {\n - if (this.active) {\n - var tile = evt.tile;\n - if (tile instanceof OpenLayers.Tile.Image &&\n - !tile.crossOriginKeyword &&\n - tile.url.substr(0, 5) !== "data:") {\n - var sameOriginUrl = OpenLayers.Request.makeSameOrigin(\n - tile.url, OpenLayers.ProxyHost\n - );\n - OpenLayers.Control.CacheWrite.urlMap[sameOriginUrl] = tile.url;\n - tile.url = sameOriginUrl;\n - }\n - }\n - },\n - \n - /**\n - * Method: cache\n - * Adds a tile to the cache. When the cache is full, the "cachefull" event\n - * is triggered.\n - *\n - * Parameters:\n - * obj - {Object} Object with a tile property, tile being the\n - * <OpenLayers.Tile.Image> with the data to add to the cache\n - */\n - cache: function(obj) {\n - if (this.active && window.localStorage) {\n - var tile = obj.tile;\n - if (tile instanceof OpenLayers.Tile.Image &&\n - tile.url.substr(0, 5) !== \'data:\') {\n - try {\n - var canvasContext = tile.getCanvasContext();\n - if (canvasContext) {\n - var urlMap = OpenLayers.Control.CacheWrite.urlMap;\n - var url = urlMap[tile.url] || tile.url;\n - window.localStorage.setItem(\n - "olCache_" + url,\n - canvasContext.canvas.toDataURL(this.imageFormat)\n - );\n - delete urlMap[tile.url];\n - }\n - } catch(e) {\n - // local storage full or CORS violation\n - var reason = e.name || e.message;\n - if (reason && this.quotaRegEx.test(reason)) {\n - this.events.triggerEvent("cachefull", {tile: tile});\n - } else {\n - OpenLayers.Console.error(e.toString());\n - }\n - }\n - }\n - }\n - },\n - \n - /**\n - * Method: destroy\n - * The destroy method is used to perform any clean up before the control\n - * is dereferenced. Typically this is where event listeners are removed\n - * to prevent memory leaks.\n - */\n - destroy: function() {\n - if (this.layers || this.map) {\n - var i, layers = this.layers || this.map.layers;\n - for (i=layers.length-1; i>=0; --i) {\n - this.removeLayer({layer: layers[i]});\n - }\n - }\n - if (this.map) {\n - this.map.events.un({\n - addlayer: this.addLayer,\n - removeLayer: this.removeLayer,\n - scope: this\n - });\n - }\n - OpenLayers.Control.prototype.destroy.apply(this, arguments);\n - },\n - \n - CLASS_NAME: "OpenLayers.Control.CacheWrite"\n -});\n -\n -/**\n - * APIFunction: OpenLayers.Control.CacheWrite.clearCache\n - * Clears all tiles cached with <OpenLayers.Control.CacheWrite> from the cache.\n - */\n -OpenLayers.Control.CacheWrite.clearCache = function() {\n - if (!window.localStorage) { return; }\n - var i, key;\n - for (i=window.localStorage.length-1; i>=0; --i) {\n - key = window.localStorage.key(i);\n - if (key.substr(0, 8) === "olCache_") {\n - window.localStorage.removeItem(key);\n - }\n - }\n -};\n -\n -/**\n - * Property: OpenLayers.Control.CacheWrite.urlMap\n - * {Object} Mapping of same origin urls to cache url keys. Entries will be\n - * deleted as soon as a tile was cached.\n - */\n -OpenLayers.Control.CacheWrite.urlMap = {};\n -\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>8033</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/DragFeature.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/DragFeature.js.xml deleted file mode 100644 index 7ae00dc1685b9aa8dd2ffb83c10ad2917fa2d259..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/DragFeature.js.xml +++ /dev/null @@ -1,410 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>DragFeature.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Handler/Drag.js\n - * @requires OpenLayers/Handler/Feature.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.DragFeature\n - * The DragFeature control moves a feature with a drag of the mouse. Create a\n - * new control with the <OpenLayers.Control.DragFeature> constructor.\n - *\n - * Inherits From:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * APIProperty: geometryTypes\n - * {Array(String)} To restrict dragging to a limited set of geometry types,\n - * send a list of strings corresponding to the geometry class names.\n - */\n - geometryTypes: null,\n - \n - /**\n - * APIProperty: onStart\n - * {Function} Define this function if you want to know when a drag starts.\n - * The function should expect to receive two arguments: the feature\n - * that is about to be dragged and the pixel location of the mouse.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} The feature that is about to be\n - * dragged.\n - * pixel - {<OpenLayers.Pixel>} The pixel location of the mouse.\n - */\n - onStart: function(feature, pixel) {},\n -\n - /**\n - * APIProperty: onDrag\n - * {Function} Define this function if you want to know about each move of a\n - * feature. The function should expect to receive two arguments: the\n - * feature that is being dragged and the pixel location of the mouse.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} The feature that was dragged.\n - * pixel - {<OpenLayers.Pixel>} The pixel location of the mouse.\n - */\n - onDrag: function(feature, pixel) {},\n -\n - /**\n - * APIProperty: onComplete\n - * {Function} Define this function if you want to know when a feature is\n - * done dragging. The function should expect to receive two arguments:\n - * the feature that is being dragged and the pixel location of the\n - * mouse.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} The feature that was dragged.\n - * pixel - {<OpenLayers.Pixel>} The pixel location of the mouse.\n - */\n - onComplete: function(feature, pixel) {},\n -\n - /**\n - * APIProperty: onEnter\n - * {Function} Define this function if you want to know when the mouse\n - * goes over a feature and thereby makes this feature a candidate\n - * for dragging.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} The feature that is ready\n - * to be dragged.\n - */\n - onEnter: function(feature) {},\n -\n - /**\n - * APIProperty: onLeave\n - * {Function} Define this function if you want to know when the mouse\n - * goes out of the feature that was dragged.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} The feature that was dragged.\n - */\n - onLeave: function(feature) {},\n -\n - /**\n - * APIProperty: documentDrag\n - * {Boolean} If set to true, mouse dragging will continue even if the\n - * mouse cursor leaves the map viewport. Default is false.\n - */\n - documentDrag: false,\n - \n - /**\n - * Property: layer\n - * {<OpenLayers.Layer.Vector>}\n - */\n - layer: null,\n - \n - /**\n - * Property: feature\n - * {<OpenLayers.Feature.Vector>}\n - */\n - feature: null,\n -\n - /**\n - * Property: dragCallbacks\n - * {Object} The functions that are sent to the drag handler for callback.\n - */\n - dragCallbacks: {},\n -\n - /**\n - * Property: featureCallbacks\n - * {Object} The functions that are sent to the feature handler for callback.\n - */\n - featureCallbacks: {},\n - \n - /**\n - * Property: lastPixel\n - * {<OpenLayers.Pixel>}\n - */\n - lastPixel: null,\n -\n - /**\n - * Constructor: OpenLayers.Control.DragFeature\n - * Create a new control to drag features.\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer.Vector>} The layer containing features to be\n - * dragged.\n - * options - {Object} Optional object whose properties will be set on the\n - * control.\n - */\n - initialize: function(layer, options) {\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - this.layer = layer;\n - this.handlers = {\n - drag: new OpenLayers.Handler.Drag(\n - this, OpenLayers.Util.extend({\n - down: this.downFeature,\n - move: this.moveFeature,\n - up: this.upFeature,\n - out: this.cancel,\n - done: this.doneDragging\n - }, this.dragCallbacks), {\n - documentDrag: this.documentDrag\n - }\n - ),\n - feature: new OpenLayers.Handler.Feature(\n - this, this.layer, OpenLayers.Util.extend({\n - // \'click\' and \'clickout\' callback are for the mobile\n - // support: no \'over\' or \'out\' in touch based browsers.\n - click: this.clickFeature,\n - clickout: this.clickoutFeature,\n - over: this.overFeature,\n - out: this.outFeature\n - }, this.featureCallbacks),\n - {geometryTypes: this.geometryTypes}\n - )\n - };\n - },\n -\n - /**\n - * Method: clickFeature\n - * Called when the feature handler detects a click-in on a feature.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - */\n - clickFeature: function(feature) {\n - if (this.handlers.feature.touch && !this.over && this.overFeature(feature)) {\n - this.handlers.drag.dragstart(this.handlers.feature.evt);\n - // to let the events propagate to the feature handler (click callback)\n - this.handlers.drag.stopDown = false;\n - }\n - },\n -\n - /**\n - * Method: clickoutFeature\n - * Called when the feature handler detects a click-out on a feature.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - */\n - clickoutFeature: function(feature) {\n - if (this.handlers.feature.touch && this.over) {\n - this.outFeature(feature);\n - this.handlers.drag.stopDown = true;\n - }\n - },\n -\n - /**\n - * APIMethod: destroy\n - * Take care of things that are not handled in superclass\n - */\n - destroy: function() {\n - this.layer = null;\n - OpenLayers.Control.prototype.destroy.apply(this, []);\n - },\n -\n - /**\n - * APIMethod: activate\n - * Activate the control and the feature handler.\n - * \n - * Returns:\n - * {Boolean} Successfully activated the control and feature handler.\n - */\n - activate: function() {\n - return (this.handlers.feature.activate() &&\n - OpenLayers.Control.prototype.activate.apply(this, arguments));\n - },\n -\n - /**\n - * APIMethod: deactivate\n - * Deactivate the control and all handlers.\n - * \n - * Returns:\n - * {Boolean} Successfully deactivated the control.\n - */\n - deactivate: function() {\n - // the return from the handlers is unimportant in this case\n - this.handlers.drag.deactivate();\n - this.handlers.feature.deactivate();\n - this.feature = null;\n - this.dragging = false;\n - this.lastPixel = null;\n - OpenLayers.Element.removeClass(\n - this.map.viewPortDiv, this.displayClass + "Over"\n - );\n - return OpenLayers.Control.prototype.deactivate.apply(this, arguments);\n - },\n -\n - /**\n - * Method: overFeature\n - * Called when the feature handler detects a mouse-over on a feature.\n - * This activates the drag handler.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} The selected feature.\n - *\n - * Returns:\n - * {Boolean} Successfully activated the drag handler.\n - */\n - overFeature: function(feature) {\n - var activated = false;\n - if(!this.handlers.drag.dragging) {\n - this.feature = feature;\n - this.handlers.drag.activate();\n - activated = true;\n - this.over = true;\n - OpenLayers.Element.addClass(this.map.viewPortDiv, this.displayClass + "Over");\n - this.onEnter(feature);\n - } else {\n - if(this.feature.id == feature.id) {\n - this.over = true;\n - } else {\n - this.over = false;\n - }\n - }\n - return activated;\n - },\n -\n - /**\n - * Method: downFeature\n - * Called when the drag handler detects a mouse-down.\n - *\n - * Parameters:\n - * pixel - {<OpenLayers.Pixel>} Location of the mouse event.\n - */\n - downFeature: function(pixel) {\n - this.lastPixel = pixel;\n - this.onStart(this.feature, pixel);\n - },\n -\n - /**\n - * Method: moveFeature\n - * Called when the drag handler detects a mouse-move. Also calls the\n - * optional onDrag method.\n - * \n - * Parameters:\n - * pixel - {<OpenLayers.Pixel>} Location of the mouse event.\n - */\n - moveFeature: function(pixel) {\n - var res = this.map.getResolution();\n - this.feature.geometry.move(res * (pixel.x - this.lastPixel.x),\n - res * (this.lastPixel.y - pixel.y));\n - this.layer.drawFeature(this.feature);\n - this.lastPixel = pixel;\n - this.onDrag(this.feature, pixel);\n - },\n -\n - /**\n - * Method: upFeature\n - * Called when the drag handler detects a mouse-up.\n - * \n - * Parameters:\n - * pixel - {<OpenLayers.Pixel>} Location of the mouse event.\n - */\n - upFeature: function(pixel) {\n - if(!this.over) {\n - this.handlers.drag.deactivate();\n - }\n - },\n -\n - /**\n - * Method: doneDragging\n - * Called when the drag handler is done dragging.\n - *\n - * Parameters:\n - * pixel - {<OpenLayers.Pixel>} The last event pixel location. If this event\n - * came from a mouseout, this may not be in the map viewport.\n - */\n - doneDragging: function(pixel) {\n - this.onComplete(this.feature, pixel);\n - },\n -\n - /**\n - * Method: outFeature\n - * Called when the feature handler detects a mouse-out on a feature.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} The feature that the mouse left.\n - */\n - outFeature: function(feature) {\n - if(!this.handlers.drag.dragging) {\n - this.over = false;\n - this.handlers.drag.deactivate();\n - OpenLayers.Element.removeClass(\n - this.map.viewPortDiv, this.displayClass + "Over"\n - );\n - this.onLeave(feature);\n - this.feature = null;\n - } else {\n - if(this.feature.id == feature.id) {\n - this.over = false;\n - }\n - }\n - },\n - \n - /**\n - * Method: cancel\n - * Called when the drag handler detects a mouse-out (from the map viewport).\n - */\n - cancel: function() {\n - this.handlers.drag.deactivate();\n - this.over = false;\n - },\n -\n - /**\n - * Method: setMap\n - * Set the map property for the control and all handlers.\n - *\n - * Parameters: \n - * map - {<OpenLayers.Map>} The control\'s map.\n - */\n - setMap: function(map) {\n - this.handlers.drag.setMap(map);\n - this.handlers.feature.setMap(map);\n - OpenLayers.Control.prototype.setMap.apply(this, arguments);\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.DragFeature"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>11478</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/DragPan.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/DragPan.js.xml deleted file mode 100644 index c0553cde191944c5d94d2ef6c4c751346210e3aa..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/DragPan.js.xml +++ /dev/null @@ -1,199 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>DragPan.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Handler/Drag.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.DragPan\n - * The DragPan control pans the map with a drag of the mouse.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.DragPan = OpenLayers.Class(OpenLayers.Control, {\n -\n - /** \n - * Property: type\n - * {OpenLayers.Control.TYPES}\n - */\n - type: OpenLayers.Control.TYPE_TOOL,\n - \n - /**\n - * Property: panned\n - * {Boolean} The map moved.\n - */\n - panned: false,\n - \n - /**\n - * Property: interval\n - * {Integer} The number of milliseconds that should ellapse before\n - * panning the map again. Defaults to 1 millisecond. In most cases\n - * you won\'t want to change this value. For slow machines/devices\n - * larger values can be tried out.\n - */\n - interval: 1,\n - \n - /**\n - * APIProperty: documentDrag\n - * {Boolean} If set to true, mouse dragging will continue even if the\n - * mouse cursor leaves the map viewport. Default is false.\n - */\n - documentDrag: false,\n -\n - /**\n - * Property: kinetic\n - * {<OpenLayers.Kinetic>} The OpenLayers.Kinetic object.\n - */\n - kinetic: null,\n -\n - /**\n - * APIProperty: enableKinetic\n - * {Boolean} Set this option to enable "kinetic dragging". Can be\n - * set to true or to an object. If set to an object this\n - * object will be passed to the {<OpenLayers.Kinetic>}\n - * constructor. Defaults to false.\n - * If you set this property, you should ensure that \n - * OpenLayers/Kinetic.js is included in your build config\n - */\n - enableKinetic: false,\n -\n - /**\n - * APIProperty: kineticInterval\n - * {Integer} Interval in milliseconds between 2 steps in the "kinetic\n - * scrolling". Applies only if enableKinetic is set. Defaults\n - * to 10 milliseconds.\n - */\n - kineticInterval: 10,\n -\n -\n - /**\n - * Method: draw\n - * Creates a Drag handler, using <panMap> and\n - * <panMapDone> as callbacks.\n - */ \n - draw: function() {\n - if(this.enableKinetic) {\n - var config = {interval: this.kineticInterval};\n - if(typeof this.enableKinetic === "object") {\n - config = OpenLayers.Util.extend(config, this.enableKinetic);\n - }\n - this.kinetic = new OpenLayers.Kinetic(config);\n - }\n - this.handler = new OpenLayers.Handler.Drag(this, {\n - "move": this.panMap,\n - "done": this.panMapDone,\n - "down": this.panMapStart\n - }, {\n - interval: this.interval,\n - documentDrag: this.documentDrag\n - }\n - );\n - },\n -\n - /**\n - * Method: panMapStart\n - */\n - panMapStart: function() {\n - if(this.kinetic) {\n - this.kinetic.begin();\n - }\n - },\n -\n - /**\n - * Method: panMap\n - *\n - * Parameters:\n - * xy - {<OpenLayers.Pixel>} Pixel of the mouse position\n - */\n - panMap: function(xy) {\n - if(this.kinetic) {\n - this.kinetic.update(xy);\n - }\n - this.panned = true;\n - this.map.pan(\n - this.handler.last.x - xy.x,\n - this.handler.last.y - xy.y,\n - {dragging: true, animate: false}\n - );\n - },\n - \n - /**\n - * Method: panMapDone\n - * Finish the panning operation. Only call setCenter (through <panMap>)\n - * if the map has actually been moved.\n - *\n - * Parameters:\n - * xy - {<OpenLayers.Pixel>} Pixel of the mouse position\n - */\n - panMapDone: function(xy) {\n - if(this.panned) {\n - var res = null;\n - if (this.kinetic) {\n - res = this.kinetic.end(xy);\n - }\n - this.map.pan(\n - this.handler.last.x - xy.x,\n - this.handler.last.y - xy.y,\n - {dragging: !!res, animate: false}\n - );\n - if (res) {\n - var self = this;\n - this.kinetic.move(res, function(x, y, end) {\n - self.map.pan(x, y, {dragging: !end, animate: false});\n - });\n - }\n - this.panned = false;\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.DragPan"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4416</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/DrawFeature.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/DrawFeature.js.xml deleted file mode 100644 index 5708d5b94547b5800b503f79a15bfe9e5fd7830d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/DrawFeature.js.xml +++ /dev/null @@ -1,274 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>DrawFeature.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Feature/Vector.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.DrawFeature\n - * The DrawFeature control draws point, line or polygon features on a vector\n - * layer when active.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.DrawFeature = OpenLayers.Class(OpenLayers.Control, {\n - \n - /**\n - * Property: layer\n - * {<OpenLayers.Layer.Vector>}\n - */\n - layer: null,\n -\n - /**\n - * Property: callbacks\n - * {Object} The functions that are sent to the handler for callback\n - */\n - callbacks: null,\n - \n - /** \n - * APIProperty: events\n - * {<OpenLayers.Events>} Events instance for listeners and triggering\n - * control specific events.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * control.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types (in addition to those from <OpenLayers.Control.events>):\n - * featureadded - Triggered when a feature is added\n - */\n - \n - /**\n - * APIProperty: multi\n - * {Boolean} Cast features to multi-part geometries before passing to the\n - * layer. Default is false.\n - */\n - multi: false,\n -\n - /**\n - * APIProperty: featureAdded\n - * {Function} Called after each feature is added\n - */\n - featureAdded: function() {},\n -\n - /**\n - * APIProperty: handlerOptions\n - * {Object} Used to set non-default properties on the control\'s handler\n - */\n - handlerOptions: null,\n - \n - /**\n - * Constructor: OpenLayers.Control.DrawFeature\n - * \n - * Parameters:\n - * layer - {<OpenLayers.Layer.Vector>} \n - * handler - {<OpenLayers.Handler>} \n - * options - {Object} \n - */\n - initialize: function(layer, handler, options) {\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - this.callbacks = OpenLayers.Util.extend(\n - {\n - done: this.drawFeature,\n - modify: function(vertex, feature) {\n - this.layer.events.triggerEvent(\n - "sketchmodified", {vertex: vertex, feature: feature}\n - );\n - },\n - create: function(vertex, feature) {\n - this.layer.events.triggerEvent(\n - "sketchstarted", {vertex: vertex, feature: feature}\n - );\n - }\n - },\n - this.callbacks\n - );\n - this.layer = layer;\n - this.handlerOptions = this.handlerOptions || {};\n - this.handlerOptions.layerOptions = OpenLayers.Util.applyDefaults(\n - this.handlerOptions.layerOptions, {\n - renderers: layer.renderers, rendererOptions: layer.rendererOptions\n - }\n - );\n - if (!("multi" in this.handlerOptions)) {\n - this.handlerOptions.multi = this.multi;\n - }\n - var sketchStyle = this.layer.styleMap && this.layer.styleMap.styles.temporary;\n - if(sketchStyle) {\n - this.handlerOptions.layerOptions = OpenLayers.Util.applyDefaults(\n - this.handlerOptions.layerOptions,\n - {styleMap: new OpenLayers.StyleMap({"default": sketchStyle})}\n - );\n - }\n - this.handler = new handler(this, this.callbacks, this.handlerOptions);\n - },\n -\n - /**\n - * Method: drawFeature\n - */\n - drawFeature: function(geometry) {\n - var feature = new OpenLayers.Feature.Vector(geometry);\n - var proceed = this.layer.events.triggerEvent(\n - "sketchcomplete", {feature: feature}\n - );\n - if(proceed !== false) {\n - feature.state = OpenLayers.State.INSERT;\n - this.layer.addFeatures([feature]);\n - this.featureAdded(feature);\n - this.events.triggerEvent("featureadded",{feature : feature});\n - }\n - },\n - \n - /**\n - * APIMethod: insertXY\n - * Insert a point in the current sketch given x & y coordinates.\n - *\n - * Parameters:\n - * x - {Number} The x-coordinate of the point.\n - * y - {Number} The y-coordinate of the point.\n - */\n - insertXY: function(x, y) {\n - if (this.handler && this.handler.line) {\n - this.handler.insertXY(x, y);\n - }\n - },\n -\n - /**\n - * APIMethod: insertDeltaXY\n - * Insert a point given offsets from the previously inserted point.\n - *\n - * Parameters:\n - * dx - {Number} The x-coordinate offset of the point.\n - * dy - {Number} The y-coordinate offset of the point.\n - */\n - insertDeltaXY: function(dx, dy) {\n - if (this.handler && this.handler.line) {\n - this.handler.insertDeltaXY(dx, dy);\n - }\n - },\n -\n - /**\n - * APIMethod: insertDirectionLength\n - * Insert a point in the current sketch given a direction and a length.\n - *\n - * Parameters:\n - * direction - {Number} Degrees clockwise from the positive x-axis.\n - * length - {Number} Distance from the previously drawn point.\n - */\n - insertDirectionLength: function(direction, length) {\n - if (this.handler && this.handler.line) {\n - this.handler.insertDirectionLength(direction, length);\n - }\n - },\n -\n - /**\n - * APIMethod: insertDeflectionLength\n - * Insert a point in the current sketch given a deflection and a length.\n - * The deflection should be degrees clockwise from the previously \n - * digitized segment.\n - *\n - * Parameters:\n - * deflection - {Number} Degrees clockwise from the previous segment.\n - * length - {Number} Distance from the previously drawn point.\n - */\n - insertDeflectionLength: function(deflection, length) {\n - if (this.handler && this.handler.line) {\n - this.handler.insertDeflectionLength(deflection, length);\n - }\n - },\n - \n - /**\n - * APIMethod: undo\n - * Remove the most recently added point in the current sketch geometry.\n - *\n - * Returns: \n - * {Boolean} An edit was undone.\n - */\n - undo: function() {\n - return this.handler.undo && this.handler.undo();\n - },\n - \n - /**\n - * APIMethod: redo\n - * Reinsert the most recently removed point resulting from an <undo> call.\n - * The undo stack is deleted whenever a point is added by other means.\n - *\n - * Returns: \n - * {Boolean} An edit was redone.\n - */\n - redo: function() {\n - return this.handler.redo && this.handler.redo();\n - },\n - \n - /**\n - * APIMethod: finishSketch\n - * Finishes the sketch without including the currently drawn point.\n - * This method can be called to terminate drawing programmatically\n - * instead of waiting for the user to end the sketch.\n - */\n - finishSketch: function() {\n - this.handler.finishGeometry();\n - },\n -\n - /**\n - * APIMethod: cancel\n - * Cancel the current sketch. This removes the current sketch and keeps\n - * the drawing control active.\n - */\n - cancel: function() {\n - this.handler.cancel();\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.DrawFeature"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7217</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/EditingToolbar.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/EditingToolbar.js.xml deleted file mode 100644 index 88e5edfe55672bc4c3237de380028b1c804d6a5c..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/EditingToolbar.js.xml +++ /dev/null @@ -1,125 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>EditingToolbar.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control/Panel.js\n - * @requires OpenLayers/Control/Navigation.js\n - * @requires OpenLayers/Control/DrawFeature.js\n - * @requires OpenLayers/Handler/Point.js\n - * @requires OpenLayers/Handler/Path.js\n - * @requires OpenLayers/Handler/Polygon.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.EditingToolbar \n - * The EditingToolbar is a panel of 4 controls to draw polygons, lines, \n - * points, or to navigate the map by panning. By default it appears in the \n - * upper right corner of the map.\n - * \n - * Inherits from:\n - * - <OpenLayers.Control.Panel>\n - */\n -OpenLayers.Control.EditingToolbar = OpenLayers.Class(\n - OpenLayers.Control.Panel, {\n -\n - /**\n - * APIProperty: citeCompliant\n - * {Boolean} If set to true, coordinates of features drawn in a map extent\n - * crossing the date line won\'t exceed the world bounds. Default is false.\n - */\n - citeCompliant: false,\n -\n - /**\n - * Constructor: OpenLayers.Control.EditingToolbar\n - * Create an editing toolbar for a given layer. \n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer.Vector>} \n - * options - {Object} \n - */\n - initialize: function(layer, options) {\n - OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]);\n - \n - this.addControls(\n - [ new OpenLayers.Control.Navigation() ]\n - ); \n - var controls = [\n - new OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.Point, {\n - displayClass: \'olControlDrawFeaturePoint\',\n - handlerOptions: {citeCompliant: this.citeCompliant}\n - }),\n - new OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.Path, {\n - displayClass: \'olControlDrawFeaturePath\',\n - handlerOptions: {citeCompliant: this.citeCompliant}\n - }),\n - new OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.Polygon, {\n - displayClass: \'olControlDrawFeaturePolygon\',\n - handlerOptions: {citeCompliant: this.citeCompliant}\n - })\n - ];\n - this.addControls(controls);\n - },\n -\n - /**\n - * Method: draw\n - * calls the default draw, and then activates mouse defaults.\n - *\n - * Returns:\n - * {DOMElement}\n - */\n - draw: function() {\n - var div = OpenLayers.Control.Panel.prototype.draw.apply(this, arguments);\n - if (this.defaultControl === null) {\n - this.defaultControl = this.controls[0];\n - }\n - return div;\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.EditingToolbar"\n -}); \n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2771</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Geolocate.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Geolocate.js.xml deleted file mode 100644 index 7fc26dd43b42ba6e2f2b5e229f8362b79720dd07..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Geolocate.js.xml +++ /dev/null @@ -1,225 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Geolocate.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for\n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Geometry/Point.js\n - * @requires OpenLayers/Projection.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.Geolocate\n - * The Geolocate control wraps w3c geolocation API into control that can be\n - * bound to a map, and generate events on location update\n - *\n - * To use this control requires to load the proj4js library if the projection\n - * of the map is not EPSG:4326 or EPSG:900913.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.Geolocate = OpenLayers.Class(OpenLayers.Control, {\n -\n - /** \n - * APIProperty: events\n - * {<OpenLayers.Events>} Events instance for listeners and triggering\n - * control specific events.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * control.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types (in addition to those from <OpenLayers.Control.events>):\n - * locationupdated - Triggered when browser return a new position. Listeners will \n - * receive an object with a \'position\' property which is the browser.geolocation.position\n - * native object, as well as a \'point\' property which is the location transformed in the \n - * current map projection.\n - * locationfailed - Triggered when geolocation has failed\n - * locationuncapable - Triggered when control is activated on a browser\n - * which doesn\'t support geolocation\n - */\n -\n - /**\n - * Property: geolocation\n - * {Object} The geolocation engine, as a property to be possibly mocked.\n - */\n - geolocation: navigator.geolocation,\n -\n - /**\n - * APIProperty: bind\n - * {Boolean} If true, map center will be set on location update.\n - */\n - bind: true,\n -\n - /**\n - * APIProperty: watch\n - * {Boolean} If true, position will be update regularly.\n - */\n - watch: false,\n -\n - /**\n - * APIProperty: geolocationOptions\n - * {Object} Options to pass to the navigator\'s geolocation API. See\n - * <http://dev.w3.org/geo/api/spec-source.html>. No specific\n - * option is passed to the geolocation API by default.\n - */\n - geolocationOptions: null,\n -\n - /**\n - * Constructor: OpenLayers.Control.Geolocate\n - * Create a new control to deal with browser geolocation API\n - *\n - */\n -\n - /**\n - * Method: destroy\n - */\n - destroy: function() {\n - this.deactivate();\n - OpenLayers.Control.prototype.destroy.apply(this, arguments);\n - },\n -\n - /**\n - * Method: activate\n - * Activates the control.\n - *\n - * Returns:\n - * {Boolean} The control was effectively activated.\n - */\n - activate: function () {\n - if (!this.geolocation) {\n - this.events.triggerEvent("locationuncapable");\n - return false;\n - }\n - if (OpenLayers.Control.prototype.activate.apply(this, arguments)) {\n - if (this.watch) {\n - this.watchId = this.geolocation.watchPosition(\n - OpenLayers.Function.bind(this.geolocate, this),\n - OpenLayers.Function.bind(this.failure, this),\n - this.geolocationOptions\n - );\n - } else {\n - this.getCurrentLocation();\n - }\n - return true;\n - }\n - return false;\n - },\n -\n - /**\n - * Method: deactivate\n - * Deactivates the control.\n - *\n - * Returns:\n - * {Boolean} The control was effectively deactivated.\n - */\n - deactivate: function () {\n - if (this.active && this.watchId !== null) {\n - this.geolocation.clearWatch(this.watchId);\n - }\n - return OpenLayers.Control.prototype.deactivate.apply(\n - this, arguments\n - );\n - },\n -\n - /**\n - * Method: geolocate\n - * Activates the control.\n - *\n - */\n - geolocate: function (position) {\n - var center = new OpenLayers.LonLat(\n - position.coords.longitude,\n - position.coords.latitude\n - ).transform(\n - new OpenLayers.Projection("EPSG:4326"),\n - this.map.getProjectionObject()\n - );\n - if (this.bind) {\n - this.map.setCenter(center);\n - }\n - this.events.triggerEvent("locationupdated", {\n - position: position,\n - point: new OpenLayers.Geometry.Point(\n - center.lon, center.lat\n - )\n - });\n - },\n -\n - /**\n - * APIMethod: getCurrentLocation\n - *\n - * Returns:\n - * {Boolean} Returns true if a event will be fired (successfull\n - * registration)\n - */\n - getCurrentLocation: function() {\n - if (!this.active || this.watch) {\n - return false;\n - }\n - this.geolocation.getCurrentPosition(\n - OpenLayers.Function.bind(this.geolocate, this),\n - OpenLayers.Function.bind(this.failure, this),\n - this.geolocationOptions\n - );\n - return true;\n - },\n -\n - /**\n - * Method: failure\n - * method called on browser\'s geolocation failure\n - *\n - */\n - failure: function (error) {\n - this.events.triggerEvent("locationfailed", {error: error});\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.Geolocate"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5376</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/GetFeature.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/GetFeature.js.xml deleted file mode 100644 index 0bbeba078d55da303ecf08b6470b547d3f6bbc94..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/GetFeature.js.xml +++ /dev/null @@ -1,642 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>GetFeature.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Handler/Click.js\n - * @requires OpenLayers/Handler/Box.js\n - * @requires OpenLayers/Handler/Hover.js\n - * @requires OpenLayers/Filter/Spatial.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.GetFeature\n - * Gets vector features for locations underneath the mouse cursor. Can be\n - * configured to act on click, hover or dragged boxes. Uses an\n - * <OpenLayers.Protocol> that supports spatial filters to retrieve\n - * features from a server and fires events that notify applications of the\n - * selected features. \n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.GetFeature = OpenLayers.Class(OpenLayers.Control, {\n - \n - /**\n - * APIProperty: protocol\n - * {<OpenLayers.Protocol>} Required. The protocol used for fetching\n - * features.\n - */\n - protocol: null,\n - \n - /**\n - * APIProperty: multipleKey\n - * {String} An event modifier (\'altKey\' or \'shiftKey\') that temporarily sets\n - * the <multiple> property to true. Default is null.\n - */\n - multipleKey: null,\n - \n - /**\n - * APIProperty: toggleKey\n - * {String} An event modifier (\'altKey\' or \'shiftKey\') that temporarily sets\n - * the <toggle> property to true. Default is null.\n - */\n - toggleKey: null,\n - \n - /**\n - * Property: modifiers\n - * {Object} The event modifiers to use, according to the current event\n - * being handled by this control\'s handlers\n - */\n - modifiers: null,\n - \n - /**\n - * APIProperty: multiple\n - * {Boolean} Allow selection of multiple geometries. Default is false.\n - */\n - multiple: false, \n -\n - /**\n - * APIProperty: click\n - * {Boolean} Use a click handler for selecting/unselecting features. If\n - * both <click> and <box> are set to true, the click handler takes\n - * precedence over the box handler if a box with zero extent was\n - * selected. Default is true.\n - */\n - click: true,\n -\n - /**\n - * APIProperty: single\n - * {Boolean} Tells whether select by click should select a single\n - * feature. If set to false, all matching features are selected.\n - * If set to true, only the best matching feature is selected.\n - * This option has an effect only of the <click> option is set\n - * to true. Default is true.\n - */\n - single: true,\n - \n - /**\n - * APIProperty: clickout\n - * {Boolean} Unselect features when clicking outside any feature.\n - * Applies only if <click> is true. Default is true.\n - */\n - clickout: true,\n - \n - /**\n - * APIProperty: toggle\n - * {Boolean} Unselect a selected feature on click. Applies only if\n - * <click> is true. Default is false.\n - */\n - toggle: false,\n -\n - /**\n - * APIProperty: clickTolerance\n - * {Integer} Tolerance for the filter query in pixels. This has the\n - * same effect as the tolerance parameter on WMS GetFeatureInfo\n - * requests. Will be ignored for box selections. Applies only if\n - * <click> or <hover> is true. Default is 5. Note that this not\n - * only affects requests on click, but also on hover.\n - */\n - clickTolerance: 5,\n - \n - /**\n - * APIProperty: hover\n - * {Boolean} Send feature requests on mouse moves. Default is false.\n - */\n - hover: false,\n -\n - /**\n - * APIProperty: box\n - * {Boolean} Allow feature selection by drawing a box. If set to\n - * true set <click> to false to disable the click handler and\n - * rely on the box handler only, even for "zero extent" boxes.\n - * See the description of the <click> option for additional\n - * information. Default is false.\n - */\n - box: false,\n - \n - /**\n - * APIProperty: maxFeatures\n - * {Integer} Maximum number of features to return from a query in single mode\n - * if supported by the <protocol>. This set of features is then used to\n - * determine the best match client-side. Default is 10.\n - */\n - maxFeatures: 10,\n - \n - /**\n - * Property: features\n - * {Object} Hash of {<OpenLayers.Feature.Vector>}, keyed by fid, holding\n - * the currently selected features\n - */\n - features: null,\n - \n - /**\n - * Proeprty: hoverFeature\n - * {<OpenLayers.Feature.Vector>} The feature currently selected by the\n - * hover handler\n - */\n - hoverFeature: null,\n - \n - /**\n - * APIProperty: handlerOptions\n - * {Object} Additional options for the handlers used by this control. This\n - * is a hash with the keys "click", "box" and "hover".\n - */\n - handlerOptions: null,\n - \n - /**\n - * Property: handlers\n - * {Object} Object with references to multiple <OpenLayers.Handler>\n - * instances.\n - */\n - handlers: null,\n -\n - /**\n - * Property: hoverResponse\n - * {<OpenLayers.Protocol.Response>} The response object associated with\n - * the currently running hover request (if any).\n - */\n - hoverResponse: null,\n - \n - /**\n - * Property: filterType\n - * {<String>} The type of filter to use when sending off a request. \n - * Possible values: \n - * OpenLayers.Filter.Spatial.<BBOX|INTERSECTS|WITHIN|CONTAINS>\n - * Defaults to: OpenLayers.Filter.Spatial.BBOX\n - */\n - filterType: OpenLayers.Filter.Spatial.BBOX,\n -\n - /** \n - * APIProperty: events\n - * {<OpenLayers.Events>} Events instance for listeners and triggering\n - * control specific events.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * control.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types (in addition to those from <OpenLayers.Control.events>):\n - * beforefeatureselected - Triggered when <click> is true before a\n - * feature is selected. The event object has a feature property with\n - * the feature about to select\n - * featureselected - Triggered when <click> is true and a feature is\n - * selected. The event object has a feature property with the\n - * selected feature\n - * beforefeaturesselected - Triggered when <click> is true before a\n - * set of features is selected. The event object is an array of\n - * feature properties with the features about to be selected. \n - * Return false after receiving this event to discontinue processing\n - * of all featureselected events and the featuresselected event.\n - * featuresselected - Triggered when <click> is true and a set of\n - * features is selected. The event object is an array of feature\n - * properties of the selected features\n - * featureunselected - Triggered when <click> is true and a feature is\n - * unselected. The event object has a feature property with the\n - * unselected feature\n - * clickout - Triggered when when <click> is true and no feature was\n - * selected.\n - * hoverfeature - Triggered when <hover> is true and the mouse has\n - * stopped over a feature\n - * outfeature - Triggered when <hover> is true and the mouse moves\n - * moved away from a hover-selected feature\n - */\n -\n - /**\n - * Constructor: OpenLayers.Control.GetFeature\n - * Create a new control for fetching remote features.\n - *\n - * Parameters:\n - * options - {Object} A configuration object which at least has to contain\n - * a <protocol> property (if not, it has to be set before a request is\n - * made)\n - */\n - initialize: function(options) {\n - options.handlerOptions = options.handlerOptions || {};\n -\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - \n - this.features = {};\n -\n - this.handlers = {};\n - \n - if(this.click) {\n - this.handlers.click = new OpenLayers.Handler.Click(this,\n - {click: this.selectClick}, this.handlerOptions.click || {});\n - }\n -\n - if(this.box) {\n - this.handlers.box = new OpenLayers.Handler.Box(\n - this, {done: this.selectBox},\n - OpenLayers.Util.extend(this.handlerOptions.box, {\n - boxDivClassName: "olHandlerBoxSelectFeature"\n - })\n - ); \n - }\n - \n - if(this.hover) {\n - this.handlers.hover = new OpenLayers.Handler.Hover(\n - this, {\'move\': this.cancelHover, \'pause\': this.selectHover},\n - OpenLayers.Util.extend(this.handlerOptions.hover, {\n - \'delay\': 250,\n - \'pixelTolerance\': 2\n - })\n - );\n - }\n - },\n - \n - /**\n - * Method: activate\n - * Activates the control.\n - * \n - * Returns:\n - * {Boolean} The control was effectively activated.\n - */\n - activate: function () {\n - if (!this.active) {\n - for(var i in this.handlers) {\n - this.handlers[i].activate();\n - }\n - }\n - return OpenLayers.Control.prototype.activate.apply(\n - this, arguments\n - );\n - },\n -\n - /**\n - * Method: deactivate\n - * Deactivates the control.\n - * \n - * Returns:\n - * {Boolean} The control was effectively deactivated.\n - */\n - deactivate: function () {\n - if (this.active) {\n - for(var i in this.handlers) {\n - this.handlers[i].deactivate();\n - }\n - }\n - return OpenLayers.Control.prototype.deactivate.apply(\n - this, arguments\n - );\n - },\n - \n - /**\n - * Method: selectClick\n - * Called on click\n - *\n - * Parameters:\n - * evt - {<OpenLayers.Event>} \n - */\n - selectClick: function(evt) {\n - var bounds = this.pixelToBounds(evt.xy);\n - \n - this.setModifiers(evt);\n - this.request(bounds, {single: this.single});\n - },\n -\n - /**\n - * Method: selectBox\n - * Callback from the handlers.box set up when <box> selection is on\n - *\n - * Parameters:\n - * position - {<OpenLayers.Bounds>|Object} An OpenLayers.Bounds or\n - * an object with a \'left\', \'bottom\', \'right\' and \'top\' properties.\n - */\n - selectBox: function(position) {\n - var bounds;\n - if (position instanceof OpenLayers.Bounds) {\n - var minXY = this.map.getLonLatFromPixel({\n - x: position.left,\n - y: position.bottom\n - });\n - var maxXY = this.map.getLonLatFromPixel({\n - x: position.right,\n - y: position.top\n - });\n - bounds = new OpenLayers.Bounds(\n - minXY.lon, minXY.lat, maxXY.lon, maxXY.lat\n - );\n - \n - } else {\n - if(this.click) {\n - // box without extent - let the click handler take care of it\n - return;\n - }\n - bounds = this.pixelToBounds(position);\n - }\n - this.setModifiers(this.handlers.box.dragHandler.evt);\n - this.request(bounds);\n - },\n - \n - /**\n - * Method: selectHover\n - * Callback from the handlers.hover set up when <hover> selection is on\n - *\n - * Parameters:\n - * evt - {Object} event object with an xy property\n - */\n - selectHover: function(evt) {\n - var bounds = this.pixelToBounds(evt.xy);\n - this.request(bounds, {single: true, hover: true});\n - },\n -\n - /**\n - * Method: cancelHover\n - * Callback from the handlers.hover set up when <hover> selection is on\n - */\n - cancelHover: function() {\n - if (this.hoverResponse) {\n - this.protocol.abort(this.hoverResponse);\n - this.hoverResponse = null;\n -\n - OpenLayers.Element.removeClass(this.map.viewPortDiv, "olCursorWait");\n - }\n - },\n -\n - /**\n - * Method: request\n - * Sends a GetFeature request to the WFS\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} bounds for the request\'s BBOX filter\n - * options - {Object} additional options for this method.\n - * \n - * Supported options include:\n - * single - {Boolean} A single feature should be returned.\n - * Note that this will be ignored if the protocol does not\n - * return the geometries of the features.\n - * hover - {Boolean} Do the request for the hover handler.\n - */\n - request: function(bounds, options) {\n - options = options || {};\n - var filter = new OpenLayers.Filter.Spatial({\n - type: this.filterType, \n - value: bounds\n - });\n - \n - // Set the cursor to "wait" to tell the user we\'re working.\n - OpenLayers.Element.addClass(this.map.viewPortDiv, "olCursorWait");\n -\n - var response = this.protocol.read({\n - maxFeatures: options.single == true ? this.maxFeatures : undefined,\n - filter: filter,\n - callback: function(result) {\n - if(result.success()) {\n - if(result.features.length) {\n - if(options.single == true) {\n - this.selectBestFeature(result.features,\n - bounds.getCenterLonLat(), options);\n - } else {\n - this.select(result.features);\n - }\n - } else if(options.hover) {\n - this.hoverSelect();\n - } else {\n - this.events.triggerEvent("clickout");\n - if(this.clickout) {\n - this.unselectAll();\n - }\n - }\n - }\n - // Reset the cursor.\n - OpenLayers.Element.removeClass(this.map.viewPortDiv, "olCursorWait");\n - },\n - scope: this\n - });\n - if(options.hover == true) {\n - this.hoverResponse = response;\n - }\n - },\n -\n - /**\n - * Method: selectBestFeature\n - * Selects the feature from an array of features that is the best match\n - * for the click position.\n - * \n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)}\n - * clickPosition - {<OpenLayers.LonLat>}\n - * options - {Object} additional options for this method\n - * \n - * Supported options include:\n - * hover - {Boolean} Do the selection for the hover handler.\n - */\n - selectBestFeature: function(features, clickPosition, options) {\n - options = options || {};\n - if(features.length) {\n - var point = new OpenLayers.Geometry.Point(clickPosition.lon,\n - clickPosition.lat);\n - var feature, resultFeature, dist;\n - var minDist = Number.MAX_VALUE;\n - for(var i=0; i<features.length; ++i) {\n - feature = features[i];\n - if(feature.geometry) {\n - dist = point.distanceTo(feature.geometry, {edge: false});\n - if(dist < minDist) {\n - minDist = dist;\n - resultFeature = feature;\n - if(minDist == 0) {\n - break;\n - }\n - }\n - }\n - }\n - \n - if(options.hover == true) {\n - this.hoverSelect(resultFeature);\n - } else {\n - this.select(resultFeature || features);\n - } \n - }\n - },\n - \n - /**\n - * Method: setModifiers\n - * Sets the multiple and toggle modifiers according to the current event\n - * \n - * Parameters:\n - * evt - {<OpenLayers.Event>}\n - */\n - setModifiers: function(evt) {\n - this.modifiers = {\n - multiple: this.multiple || (this.multipleKey && evt[this.multipleKey]),\n - toggle: this.toggle || (this.toggleKey && evt[this.toggleKey])\n - }; \n - },\n -\n - /**\n - * Method: select\n - * Add feature to the hash of selected features and trigger the\n - * featureselected and featuresselected events.\n - * \n - * Parameters:\n - * features - {<OpenLayers.Feature.Vector>} or an array of features\n - */\n - select: function(features) {\n - if(!this.modifiers.multiple && !this.modifiers.toggle) {\n - this.unselectAll();\n - }\n - if(!(OpenLayers.Util.isArray(features))) {\n - features = [features];\n - }\n - \n - var cont = this.events.triggerEvent("beforefeaturesselected", {\n - features: features\n - });\n - if(cont !== false) {\n - var selectedFeatures = [];\n - var feature;\n - for(var i=0, len=features.length; i<len; ++i) {\n - feature = features[i];\n - if(this.features[feature.fid || feature.id]) {\n - if(this.modifiers.toggle) {\n - this.unselect(this.features[feature.fid || feature.id]);\n - }\n - } else {\n - cont = this.events.triggerEvent("beforefeatureselected", {\n - feature: feature\n - });\n - if(cont !== false) {\n - this.features[feature.fid || feature.id] = feature;\n - selectedFeatures.push(feature);\n - \n - this.events.triggerEvent("featureselected",\n - {feature: feature});\n - }\n - }\n - }\n - this.events.triggerEvent("featuresselected", {\n - features: selectedFeatures\n - });\n - }\n - },\n - \n - /**\n - * Method: hoverSelect\n - * Sets/unsets the <hoverFeature>\n - * \n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} the feature to hover-select.\n - * If none is provided, the current <hoverFeature> will be nulled and\n - * the outfeature event will be triggered.\n - */\n - hoverSelect: function(feature) {\n - var fid = feature ? feature.fid || feature.id : null;\n - var hfid = this.hoverFeature ?\n - this.hoverFeature.fid || this.hoverFeature.id : null;\n - \n - if(hfid && hfid != fid) {\n - this.events.triggerEvent("outfeature",\n - {feature: this.hoverFeature});\n - this.hoverFeature = null;\n - }\n - if(fid && fid != hfid) {\n - this.events.triggerEvent("hoverfeature", {feature: feature});\n - this.hoverFeature = feature;\n - }\n - },\n -\n - /**\n - * Method: unselect\n - * Remove feature from the hash of selected features and trigger the\n - * featureunselected event.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - */\n - unselect: function(feature) {\n - delete this.features[feature.fid || feature.id];\n - this.events.triggerEvent("featureunselected", {feature: feature});\n - },\n - \n - /**\n - * Method: unselectAll\n - * Unselect all selected features.\n - */\n - unselectAll: function() {\n - // we\'ll want an option to supress notification here\n - for(var fid in this.features) {\n - this.unselect(this.features[fid]);\n - }\n - },\n - \n - /** \n - * Method: setMap\n - * Set the map property for the control. \n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>} \n - */\n - setMap: function(map) {\n - for(var i in this.handlers) {\n - this.handlers[i].setMap(map);\n - }\n - OpenLayers.Control.prototype.setMap.apply(this, arguments);\n - },\n - \n - /**\n - * Method: pixelToBounds\n - * Takes a pixel as argument and creates bounds after adding the\n - * <clickTolerance>.\n - * \n - * Parameters:\n - * pixel - {<OpenLayers.Pixel>}\n - */\n - pixelToBounds: function(pixel) {\n - var llPx = pixel.add(-this.clickTolerance/2, this.clickTolerance/2);\n - var urPx = pixel.add(this.clickTolerance/2, -this.clickTolerance/2);\n - var ll = this.map.getLonLatFromPixel(llPx);\n - var ur = this.map.getLonLatFromPixel(urPx);\n - return new OpenLayers.Bounds(ll.lon, ll.lat, ur.lon, ur.lat);\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.GetFeature"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>20030</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Graticule.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Graticule.js.xml deleted file mode 100644 index 5f568afa5440d589183750540131f41cf3be56cc..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Graticule.js.xml +++ /dev/null @@ -1,421 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Graticule.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Lang.js\n - * @requires OpenLayers/Rule.js\n - * @requires OpenLayers/StyleMap.js\n - * @requires OpenLayers/Layer/Vector.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.Graticule\n - * The Graticule displays a grid of latitude/longitude lines reprojected on\n - * the map. \n - * \n - * Inherits from:\n - * - <OpenLayers.Control>\n - * \n - */\n -OpenLayers.Control.Graticule = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * APIProperty: autoActivate\n - * {Boolean} Activate the control when it is added to a map. Default is\n - * true. \n - */\n - autoActivate: true,\n - \n - /**\n - * APIProperty: intervals\n - * {Array(Float)} A list of possible graticule widths in degrees.\n - */\n - intervals: [ 45, 30, 20, 10, 5, 2, 1,\n - 0.5, 0.2, 0.1, 0.05, 0.01, \n - 0.005, 0.002, 0.001 ],\n -\n - /**\n - * APIProperty: displayInLayerSwitcher\n - * {Boolean} Allows the Graticule control to be switched on and off by \n - * LayerSwitcher control. Defaults is true.\n - */\n - displayInLayerSwitcher: true,\n -\n - /**\n - * APIProperty: visible\n - * {Boolean} should the graticule be initially visible (default=true)\n - */\n - visible: true,\n -\n - /**\n - * APIProperty: numPoints\n - * {Integer} The number of points to use in each graticule line. Higher\n - * numbers result in a smoother curve for projected maps \n - */\n - numPoints: 50,\n -\n - /**\n - * APIProperty: targetSize\n - * {Integer} The maximum size of the grid in pixels on the map\n - */\n - targetSize: 200,\n -\n - /**\n - * APIProperty: layerName\n - * {String} The name to be displayed in the layer switcher, default is set \n - * by {<OpenLayers.Lang>}.\n - */\n - layerName: null,\n -\n - /**\n - * APIProperty: labelled\n - * {Boolean} Should the graticule lines be labelled?. default=true\n - */\n - labelled: true,\n -\n - /**\n - * APIProperty: labelFormat\n - * {String} the format of the labels, default = \'dm\'. See\n - * <OpenLayers.Util.getFormattedLonLat> for other options.\n - */\n - labelFormat: \'dm\',\n -\n - /**\n - * APIProperty: lineSymbolizer\n - * {symbolizer} the symbolizer used to render lines\n - */\n - lineSymbolizer: {\n - strokeColor: "#333",\n - strokeWidth: 1,\n - strokeOpacity: 0.5\n - },\n -\n - /**\n - * APIProperty: labelSymbolizer\n - * {symbolizer} the symbolizer used to render labels\n - */\n - labelSymbolizer: {},\n -\n - /**\n - * Property: gratLayer\n - * {<OpenLayers.Layer.Vector>} vector layer used to draw the graticule on\n - */\n - gratLayer: null,\n -\n - /**\n - * Constructor: OpenLayers.Control.Graticule\n - * Create a new graticule control to display a grid of latitude longitude\n - * lines.\n - * \n - * Parameters:\n - * options - {Object} An optional object whose properties will be used\n - * to extend the control.\n - */\n - initialize: function(options) {\n - options = options || {};\n - options.layerName = options.layerName || OpenLayers.i18n("Graticule");\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - \n - this.labelSymbolizer.stroke = false;\n - this.labelSymbolizer.fill = false;\n - this.labelSymbolizer.label = "${label}";\n - this.labelSymbolizer.labelAlign = "${labelAlign}";\n - this.labelSymbolizer.labelXOffset = "${xOffset}";\n - this.labelSymbolizer.labelYOffset = "${yOffset}";\n - },\n -\n - /**\n - * APIMethod: destroy\n - */\n - destroy: function() {\n - this.deactivate(); \n - OpenLayers.Control.prototype.destroy.apply(this, arguments); \n - if (this.gratLayer) {\n - this.gratLayer.destroy();\n - this.gratLayer = null;\n - }\n - },\n - \n - /**\n - * Method: draw\n - *\n - * initializes the graticule layer and does the initial update\n - * \n - * Returns:\n - * {DOMElement}\n - */\n - draw: function() {\n - OpenLayers.Control.prototype.draw.apply(this, arguments);\n - if (!this.gratLayer) {\n - var gratStyle = new OpenLayers.Style({},{\n - rules: [new OpenLayers.Rule({\'symbolizer\':\n - {"Point":this.labelSymbolizer,\n - "Line":this.lineSymbolizer}\n - })]\n - });\n - this.gratLayer = new OpenLayers.Layer.Vector(this.layerName, {\n - styleMap: new OpenLayers.StyleMap({\'default\':gratStyle}),\n - visibility: this.visible,\n - displayInLayerSwitcher: this.displayInLayerSwitcher\n - });\n - }\n - return this.div;\n - },\n -\n - /**\n - * APIMethod: activate\n - */\n - activate: function() {\n - if (OpenLayers.Control.prototype.activate.apply(this, arguments)) {\n - this.map.addLayer(this.gratLayer);\n - this.map.events.register(\'moveend\', this, this.update); \n - this.update();\n - return true; \n - } else {\n - return false;\n - }\n - },\n - \n - /**\n - * APIMethod: deactivate\n - */\n - deactivate: function() {\n - if (OpenLayers.Control.prototype.deactivate.apply(this, arguments)) {\n - this.map.events.unregister(\'moveend\', this, this.update);\n - this.map.removeLayer(this.gratLayer);\n - return true;\n - } else {\n - return false;\n - }\n - },\n - /**\n - * Method: update\n - *\n - * calculates the grid to be displayed and actually draws it\n - * \n - * Returns:\n - * {DOMElement}\n - */\n - update: function() {\n - //wait for the map to be initialized before proceeding\n - var mapBounds = this.map.getExtent();\n - if (!mapBounds) {\n - return;\n - }\n - \n - //clear out the old grid\n - this.gratLayer.destroyFeatures();\n - \n - //get the projection objects required\n - var llProj = new OpenLayers.Projection("EPSG:4326");\n - var mapProj = this.map.getProjectionObject();\n - var mapRes = this.map.getResolution();\n - \n - //if the map is in lon/lat, then the lines are straight and only one\n - //point is required\n - if (mapProj.proj && mapProj.proj.projName == "longlat") {\n - this.numPoints = 1;\n - }\n - \n - //get the map center in EPSG:4326\n - var mapCenter = this.map.getCenter(); //lon and lat here are really map x and y\n - var mapCenterLL = new OpenLayers.Pixel(mapCenter.lon, mapCenter.lat);\n - OpenLayers.Projection.transform(mapCenterLL, mapProj, llProj);\n - \n - /* This block of code determines the lon/lat interval to use for the\n - * grid by calculating the diagonal size of one grid cell at the map\n - * center. Iterates through the intervals array until the diagonal\n - * length is less than the targetSize option.\n - */\n - //find lat/lon interval that results in a grid of less than the target size\n - var testSq = this.targetSize*mapRes;\n - testSq *= testSq; //compare squares rather than doing a square root to save time\n - var llInterval;\n - for (var i=0; i<this.intervals.length; ++i) {\n - llInterval = this.intervals[i]; //could do this for both x and y??\n - var delta = llInterval/2; \n - var p1 = mapCenterLL.offset({x: -delta, y: -delta}); //test coords in EPSG:4326 space\n - var p2 = mapCenterLL.offset({x: delta, y: delta});\n - OpenLayers.Projection.transform(p1, llProj, mapProj); // convert them back to map projection\n - OpenLayers.Projection.transform(p2, llProj, mapProj);\n - var distSq = (p1.x-p2.x)*(p1.x-p2.x) + (p1.y-p2.y)*(p1.y-p2.y);\n - if (distSq <= testSq) {\n - break;\n - }\n - }\n - //alert(llInterval);\n - \n - //round the LL center to an even number based on the interval\n - mapCenterLL.x = Math.floor(mapCenterLL.x/llInterval)*llInterval;\n - mapCenterLL.y = Math.floor(mapCenterLL.y/llInterval)*llInterval;\n - //TODO adjust for minutses/seconds?\n - \n - /* The following 2 blocks calculate the nodes of the grid along a \n - * line of constant longitude (then latitiude) running through the\n - * center of the map until it reaches the map edge. The calculation\n - * goes from the center in both directions to the edge.\n - */\n - //get the central longitude line, increment the latitude\n - var iter = 0;\n - var centerLonPoints = [mapCenterLL.clone()];\n - var newPoint = mapCenterLL.clone();\n - var mapXY;\n - do {\n - newPoint = newPoint.offset({x: 0, y: llInterval});\n - mapXY = OpenLayers.Projection.transform(newPoint.clone(), llProj, mapProj);\n - centerLonPoints.unshift(newPoint);\n - } while (mapBounds.containsPixel(mapXY) && ++iter<1000);\n - newPoint = mapCenterLL.clone();\n - do { \n - newPoint = newPoint.offset({x: 0, y: -llInterval});\n - mapXY = OpenLayers.Projection.transform(newPoint.clone(), llProj, mapProj);\n - centerLonPoints.push(newPoint);\n - } while (mapBounds.containsPixel(mapXY) && ++iter<1000);\n - \n - //get the central latitude line, increment the longitude\n - iter = 0;\n - var centerLatPoints = [mapCenterLL.clone()];\n - newPoint = mapCenterLL.clone();\n - do {\n - newPoint = newPoint.offset({x: -llInterval, y: 0});\n - mapXY = OpenLayers.Projection.transform(newPoint.clone(), llProj, mapProj);\n - centerLatPoints.unshift(newPoint);\n - } while (mapBounds.containsPixel(mapXY) && ++iter<1000);\n - newPoint = mapCenterLL.clone();\n - do { \n - newPoint = newPoint.offset({x: llInterval, y: 0});\n - mapXY = OpenLayers.Projection.transform(newPoint.clone(), llProj, mapProj);\n - centerLatPoints.push(newPoint);\n - } while (mapBounds.containsPixel(mapXY) && ++iter<1000);\n - \n - //now generate a line for each node in the central lat and lon lines\n - //first loop over constant longitude\n - var lines = [];\n - for(var i=0; i < centerLatPoints.length; ++i) {\n - var lon = centerLatPoints[i].x;\n - var pointList = [];\n - var labelPoint = null;\n - var latEnd = Math.min(centerLonPoints[0].y, 90);\n - var latStart = Math.max(centerLonPoints[centerLonPoints.length - 1].y, -90);\n - var latDelta = (latEnd - latStart)/this.numPoints;\n - var lat = latStart;\n - for(var j=0; j<= this.numPoints; ++j) {\n - var gridPoint = new OpenLayers.Geometry.Point(lon,lat);\n - gridPoint.transform(llProj, mapProj);\n - pointList.push(gridPoint);\n - lat += latDelta;\n - if (gridPoint.y >= mapBounds.bottom && !labelPoint) {\n - labelPoint = gridPoint;\n - }\n - }\n - if (this.labelled) {\n - //keep track of when this grid line crosses the map bounds to set\n - //the label position\n - //labels along the bottom, add 10 pixel offset up into the map\n - //TODO add option for labels on top\n - var labelPos = new OpenLayers.Geometry.Point(labelPoint.x,mapBounds.bottom);\n - var labelAttrs = {\n - value: lon,\n - label: this.labelled?OpenLayers.Util.getFormattedLonLat(lon, "lon", this.labelFormat):"",\n - labelAlign: "cb",\n - xOffset: 0,\n - yOffset: 2\n - }; \n - this.gratLayer.addFeatures(new OpenLayers.Feature.Vector(labelPos,labelAttrs));\n - }\n - var geom = new OpenLayers.Geometry.LineString(pointList);\n - lines.push(new OpenLayers.Feature.Vector(geom));\n - }\n - \n - //now draw the lines of constant latitude\n - for (var j=0; j < centerLonPoints.length; ++j) {\n - lat = centerLonPoints[j].y;\n - if (lat<-90 || lat>90) { //latitudes only valid between -90 and 90\n - continue;\n - }\n - var pointList = [];\n - var lonStart = centerLatPoints[0].x;\n - var lonEnd = centerLatPoints[centerLatPoints.length - 1].x;\n - var lonDelta = (lonEnd - lonStart)/this.numPoints;\n - var lon = lonStart;\n - var labelPoint = null;\n - for(var i=0; i <= this.numPoints ; ++i) {\n - var gridPoint = new OpenLayers.Geometry.Point(lon,lat);\n - gridPoint.transform(llProj, mapProj);\n - pointList.push(gridPoint);\n - lon += lonDelta;\n - if (gridPoint.x < mapBounds.right) {\n - labelPoint = gridPoint;\n - }\n - }\n - if (this.labelled) {\n - //keep track of when this grid line crosses the map bounds to set\n - //the label position\n - //labels along the right, 30 pixel offset left into the map\n - //TODO add option for labels on left\n - var labelPos = new OpenLayers.Geometry.Point(mapBounds.right, labelPoint.y); \n - var labelAttrs = {\n - value: lat,\n - label: this.labelled?OpenLayers.Util.getFormattedLonLat(lat, "lat", this.labelFormat):"",\n - labelAlign: "rb",\n - xOffset: -2,\n - yOffset: 2\n - }; \n - this.gratLayer.addFeatures(new OpenLayers.Feature.Vector(labelPos,labelAttrs));\n - }\n - var geom = new OpenLayers.Geometry.LineString(pointList);\n - lines.push(new OpenLayers.Feature.Vector(geom));\n - }\n - this.gratLayer.addFeatures(lines);\n - },\n - \n - CLASS_NAME: "OpenLayers.Control.Graticule"\n -});\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>14041</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/KeyboardDefaults.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/KeyboardDefaults.js.xml deleted file mode 100644 index ca500987f9c1a439f91ec6018e3da1f860eaebd4..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/KeyboardDefaults.js.xml +++ /dev/null @@ -1,176 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>KeyboardDefaults.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Handler/Keyboard.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.KeyboardDefaults\n - * The KeyboardDefaults control adds panning and zooming functions, controlled\n - * with the keyboard. By default arrow keys pan, +/- keys zoom & Page Up/Page\n - * Down/Home/End scroll by three quarters of a page.\n - * \n - * This control has no visible appearance.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.KeyboardDefaults = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * APIProperty: autoActivate\n - * {Boolean} Activate the control when it is added to a map. Default is\n - * true.\n - */\n - autoActivate: true,\n -\n - /**\n - * APIProperty: slideFactor\n - * Pixels to slide by.\n - */\n - slideFactor: 75,\n -\n - /**\n - * APIProperty: observeElement\n - * {DOMelement|String} The DOM element to handle keys for. You\n - * can use the map div here, to have the navigation keys\n - * work when the map div has the focus. If undefined the\n - * document is used.\n - */\n - observeElement: null,\n -\n - /**\n - * Constructor: OpenLayers.Control.KeyboardDefaults\n - */\n - \n - /**\n - * Method: draw\n - * Create handler.\n - */\n - draw: function() {\n - var observeElement = this.observeElement || document;\n - this.handler = new OpenLayers.Handler.Keyboard( this,\n - {"keydown": this.defaultKeyPress},\n - {observeElement: observeElement}\n - );\n - },\n - \n - /**\n - * Method: defaultKeyPress\n - * When handling the key event, we only use evt.keyCode. This holds \n - * some drawbacks, though we get around them below. When interpretting\n - * the keycodes below (including the comments associated with them),\n - * consult the URL below. For instance, the Safari browser returns\n - * "IE keycodes", and so is supported by any keycode labeled "IE".\n - * \n - * Very informative URL:\n - * http://unixpapa.com/js/key.html\n - *\n - * Parameters:\n - * evt - {Event} \n - */\n - defaultKeyPress: function (evt) {\n - var size, handled = true;\n - switch(evt.keyCode) {\n - case OpenLayers.Event.KEY_LEFT:\n - this.map.pan(-this.slideFactor, 0);\n - break;\n - case OpenLayers.Event.KEY_RIGHT: \n - this.map.pan(this.slideFactor, 0);\n - break;\n - case OpenLayers.Event.KEY_UP:\n - this.map.pan(0, -this.slideFactor);\n - break;\n - case OpenLayers.Event.KEY_DOWN:\n - this.map.pan(0, this.slideFactor);\n - break;\n - \n - case 33: // Page Up. Same in all browsers.\n - size = this.map.getSize();\n - this.map.pan(0, -0.75*size.h);\n - break;\n - case 34: // Page Down. Same in all browsers.\n - size = this.map.getSize();\n - this.map.pan(0, 0.75*size.h);\n - break; \n - case 35: // End. Same in all browsers.\n - size = this.map.getSize();\n - this.map.pan(0.75*size.w, 0);\n - break; \n - case 36: // Home. Same in all browsers.\n - size = this.map.getSize();\n - this.map.pan(-0.75*size.w, 0);\n - break; \n -\n - case 43: // +/= (ASCII), keypad + (ASCII, Opera)\n - case 61: // +/= (Mozilla, Opera, some ASCII)\n - case 187: // +/= (IE)\n - case 107: // keypad + (IE, Mozilla)\n - this.map.zoomIn();\n - break; \n - case 45: // -/_ (ASCII, Opera), keypad - (ASCII, Opera)\n - case 109: // -/_ (Mozilla), keypad - (Mozilla, IE)\n - case 189: // -/_ (IE)\n - case 95: // -/_ (some ASCII)\n - this.map.zoomOut();\n - break; \n - default:\n - handled = false;\n - }\n - if (handled) {\n - // prevent browser default not to move the page\n - // when moving the page with the keyboard\n - OpenLayers.Event.stop(evt);\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.KeyboardDefaults"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4399</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/LayerSwitcher.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/LayerSwitcher.js.xml deleted file mode 100644 index d26a490f1fef66e6683f5af2d8ccda0ae1cc865e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/LayerSwitcher.js.xml +++ /dev/null @@ -1,592 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>LayerSwitcher.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/** \n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Lang.js\n - * @requires OpenLayers/Console.js\n - * @requires OpenLayers/Events/buttonclick.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.LayerSwitcher\n - * The LayerSwitcher control displays a table of contents for the map. This \n - * allows the user interface to switch between BaseLasyers and to show or hide\n - * Overlays. By default the switcher is shown minimized on the right edge of \n - * the map, the user may expand it by clicking on the handle.\n - *\n - * To create the LayerSwitcher outside of the map, pass the Id of a html div \n - * as the first argument to the constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.LayerSwitcher = \n - OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * APIProperty: roundedCorner\n - * {Boolean} If true the Rico library is used for rounding the corners\n - * of the layer switcher div, defaults to false. *Deprecated*. Use\n - * CSS3\'s border-radius instead. If this option is set to true the\n - * Rico/Corner.js script must be loaded in the page, and therefore\n - * listed in the build profile.\n - *\n - */\n - roundedCorner: false,\n -\n - /** \n - * APIProperty: roundedCornerColor\n - * {String} The color of the rounded corners, only applies if roundedCorner\n - * is true, defaults to "darkblue".\n - */\n - roundedCornerColor: "darkblue",\n - \n - /** \n - * Property: layerStates \n - * {Array(Object)} Basically a copy of the "state" of the map\'s layers \n - * the last time the control was drawn. We have this in order to avoid\n - * unnecessarily redrawing the control.\n - */\n - layerStates: null,\n - \n -\n - // DOM Elements\n - \n - /**\n - * Property: layersDiv\n - * {DOMElement} \n - */\n - layersDiv: null,\n - \n - /** \n - * Property: baseLayersDiv\n - * {DOMElement}\n - */\n - baseLayersDiv: null,\n -\n - /** \n - * Property: baseLayers\n - * {Array(Object)}\n - */\n - baseLayers: null,\n - \n - \n - /** \n - * Property: dataLbl\n - * {DOMElement} \n - */\n - dataLbl: null,\n - \n - /** \n - * Property: dataLayersDiv\n - * {DOMElement} \n - */\n - dataLayersDiv: null,\n -\n - /** \n - * Property: dataLayers\n - * {Array(Object)} \n - */\n - dataLayers: null,\n -\n -\n - /** \n - * Property: minimizeDiv\n - * {DOMElement} \n - */\n - minimizeDiv: null,\n -\n - /** \n - * Property: maximizeDiv\n - * {DOMElement} \n - */\n - maximizeDiv: null,\n - \n - /**\n - * APIProperty: ascending\n - * {Boolean} \n - */\n - ascending: true,\n - \n - /**\n - * Constructor: OpenLayers.Control.LayerSwitcher\n - * \n - * Parameters:\n - * options - {Object}\n - */\n - initialize: function(options) {\n - OpenLayers.Control.prototype.initialize.apply(this, arguments);\n - this.layerStates = [];\n - \n - if(this.roundedCorner) {\n - OpenLayers.Console.warn(\'roundedCorner option is deprecated\');\n - }\n - },\n -\n - /**\n - * APIMethod: destroy \n - */ \n - destroy: function() {\n - \n - //clear out layers info and unregister their events \n - this.clearLayersArray("base");\n - this.clearLayersArray("data");\n - \n - this.map.events.un({\n - buttonclick: this.onButtonClick,\n - addlayer: this.redraw,\n - changelayer: this.redraw,\n - removelayer: this.redraw,\n - changebaselayer: this.redraw,\n - scope: this\n - });\n - this.events.unregister("buttonclick", this, this.onButtonClick);\n - \n - OpenLayers.Control.prototype.destroy.apply(this, arguments);\n - },\n -\n - /** \n - * Method: setMap\n - *\n - * Properties:\n - * map - {<OpenLayers.Map>} \n - */\n - setMap: function(map) {\n - OpenLayers.Control.prototype.setMap.apply(this, arguments);\n -\n - this.map.events.on({\n - addlayer: this.redraw,\n - changelayer: this.redraw,\n - removelayer: this.redraw,\n - changebaselayer: this.redraw,\n - scope: this\n - });\n - if (this.outsideViewport) {\n - this.events.attachToElement(this.div);\n - this.events.register("buttonclick", this, this.onButtonClick);\n - } else {\n - this.map.events.register("buttonclick", this, this.onButtonClick);\n - }\n - },\n -\n - /**\n - * Method: draw\n - *\n - * Returns:\n - * {DOMElement} A reference to the DIV DOMElement containing the \n - * switcher tabs.\n - */ \n - draw: function() {\n - OpenLayers.Control.prototype.draw.apply(this);\n -\n - // create layout divs\n - this.loadContents();\n -\n - // set mode to minimize\n - if(!this.outsideViewport) {\n - this.minimizeControl();\n - }\n -\n - // populate div with current info\n - this.redraw(); \n -\n - return this.div;\n - },\n -\n - /**\n - * Method: onButtonClick\n - *\n - * Parameters:\n - * evt - {Event}\n - */\n - onButtonClick: function(evt) {\n - var button = evt.buttonElement;\n - if (button === this.minimizeDiv) {\n - this.minimizeControl();\n - } else if (button === this.maximizeDiv) {\n - this.maximizeControl();\n - } else if (button._layerSwitcher === this.id) {\n - if (button["for"]) {\n - button = document.getElementById(button["for"]);\n - }\n - if (!button.disabled) {\n - if (button.type == "radio") {\n - button.checked = true;\n - this.map.setBaseLayer(this.map.getLayer(button._layer));\n - } else {\n - button.checked = !button.checked;\n - this.updateMap();\n - }\n - }\n - }\n - },\n -\n - /** \n - * Method: clearLayersArray\n - * User specifies either "base" or "data". we then clear all the\n - * corresponding listeners, the div, and reinitialize a new array.\n - * \n - * Parameters:\n - * layersType - {String} \n - */\n - clearLayersArray: function(layersType) {\n - this[layersType + "LayersDiv"].innerHTML = "";\n - this[layersType + "Layers"] = [];\n - },\n -\n -\n - /**\n - * Method: checkRedraw\n - * Checks if the layer state has changed since the last redraw() call.\n - * \n - * Returns:\n - * {Boolean} The layer state changed since the last redraw() call. \n - */\n - checkRedraw: function() {\n - var redraw = false;\n - if ( !this.layerStates.length ||\n - (this.map.layers.length != this.layerStates.length) ) {\n - redraw = true;\n - } else {\n - for (var i=0, len=this.layerStates.length; i<len; i++) {\n - var layerState = this.layerStates[i];\n - var layer = this.map.layers[i];\n - if ( (layerState.name != layer.name) || \n - (layerState.inRange != layer.inRange) || \n - (layerState.id != layer.id) || \n - (layerState.visibility != layer.visibility) ) {\n - redraw = true;\n - break;\n - } \n - }\n - } \n - return redraw;\n - },\n - \n - /** \n - * Method: redraw\n - * Goes through and takes the current state of the Map and rebuilds the\n - * control to display that state. Groups base layers into a \n - * radio-button group and lists each data layer with a checkbox.\n - *\n - * Returns: \n - * {DOMElement} A reference to the DIV DOMElement containing the control\n - */ \n - redraw: function() {\n - //if the state hasn\'t changed since last redraw, no need \n - // to do anything. Just return the existing div.\n - if (!this.checkRedraw()) { \n - return this.div; \n - } \n -\n - //clear out previous layers \n - this.clearLayersArray("base");\n - this.clearLayersArray("data");\n - \n - var containsOverlays = false;\n - var containsBaseLayers = false;\n - \n - // Save state -- for checking layer if the map state changed.\n - // We save this before redrawing, because in the process of redrawing\n - // we will trigger more visibility changes, and we want to not redraw\n - // and enter an infinite loop.\n - var len = this.map.layers.length;\n - this.layerStates = new Array(len);\n - for (var i=0; i <len; i++) {\n - var layer = this.map.layers[i];\n - this.layerStates[i] = {\n - \'name\': layer.name, \n - \'visibility\': layer.visibility,\n - \'inRange\': layer.inRange,\n - \'id\': layer.id\n - };\n - } \n -\n - var layers = this.map.layers.slice();\n - if (!this.ascending) { layers.reverse(); }\n - for(var i=0, len=layers.length; i<len; i++) {\n - var layer = layers[i];\n - var baseLayer = layer.isBaseLayer;\n -\n - if (layer.displayInLayerSwitcher) {\n -\n - if (baseLayer) {\n - containsBaseLayers = true;\n - } else {\n - containsOverlays = true;\n - } \n -\n - // only check a baselayer if it is *the* baselayer, check data\n - // layers if they are visible\n - var checked = (baseLayer) ? (layer == this.map.baseLayer)\n - : layer.getVisibility();\n - \n - // create input element\n - var inputElem = document.createElement("input");\n - inputElem.id = this.id + "_input_" + layer.name;\n - inputElem.name = (baseLayer) ? this.id + "_baseLayers" : layer.name;\n - inputElem.type = (baseLayer) ? "radio" : "checkbox";\n - inputElem.value = layer.name;\n - inputElem.checked = checked;\n - inputElem.defaultChecked = checked;\n - inputElem.className = "olButton";\n - inputElem._layer = layer.id;\n - inputElem._layerSwitcher = this.id;\n -\n - if (!baseLayer && !layer.inRange) {\n - inputElem.disabled = true;\n - }\n - \n - // create span\n - var labelSpan = document.createElement("label");\n - labelSpan["for"] = inputElem.id;\n - OpenLayers.Element.addClass(labelSpan, "labelSpan olButton");\n - labelSpan._layer = layer.id;\n - labelSpan._layerSwitcher = this.id;\n - if (!baseLayer && !layer.inRange) {\n - labelSpan.style.color = "gray";\n - }\n - labelSpan.innerHTML = layer.name;\n - labelSpan.style.verticalAlign = (baseLayer) ? "bottom" \n - : "baseline";\n - // create line break\n - var br = document.createElement("br");\n - \n - \n - var groupArray = (baseLayer) ? this.baseLayers\n - : this.dataLayers;\n - groupArray.push({\n - \'layer\': layer,\n - \'inputElem\': inputElem,\n - \'labelSpan\': labelSpan\n - });\n - \n - \n - var groupDiv = (baseLayer) ? this.baseLayersDiv\n - : this.dataLayersDiv;\n - groupDiv.appendChild(inputElem);\n - groupDiv.appendChild(labelSpan);\n - groupDiv.appendChild(br);\n - }\n - }\n -\n - // if no overlays, dont display the overlay label\n - this.dataLbl.style.display = (containsOverlays) ? "" : "none"; \n - \n - // if no baselayers, dont display the baselayer label\n - this.baseLbl.style.display = (containsBaseLayers) ? "" : "none"; \n -\n - return this.div;\n - },\n -\n - /** \n - * Method: updateMap\n - * Cycles through the loaded data and base layer input arrays and makes\n - * the necessary calls to the Map object such that that the map\'s \n - * visual state corresponds to what the user has selected in \n - * the control.\n - */\n - updateMap: function() {\n -\n - // set the newly selected base layer \n - for(var i=0, len=this.baseLayers.length; i<len; i++) {\n - var layerEntry = this.baseLayers[i];\n - if (layerEntry.inputElem.checked) {\n - this.map.setBaseLayer(layerEntry.layer, false);\n - }\n - }\n -\n - // set the correct visibilities for the overlays\n - for(var i=0, len=this.dataLayers.length; i<len; i++) {\n - var layerEntry = this.dataLayers[i]; \n - layerEntry.layer.setVisibility(layerEntry.inputElem.checked);\n - }\n -\n - },\n -\n - /** \n - * Method: maximizeControl\n - * Set up the labels and divs for the control\n - * \n - * Parameters:\n - * e - {Event} \n - */\n - maximizeControl: function(e) {\n -\n - // set the div\'s width and height to empty values, so\n - // the div dimensions can be controlled by CSS\n - this.div.style.width = "";\n - this.div.style.height = "";\n -\n - this.showControls(false);\n -\n - if (e != null) {\n - OpenLayers.Event.stop(e); \n - }\n - },\n - \n - /** \n - * Method: minimizeControl\n - * Hide all the contents of the control, shrink the size, \n - * add the maximize icon\n - *\n - * Parameters:\n - * e - {Event} \n - */\n - minimizeControl: function(e) {\n -\n - // to minimize the control we set its div\'s width\n - // and height to 0px, we cannot just set "display"\n - // to "none" because it would hide the maximize\n - // div\n - this.div.style.width = "0px";\n - this.div.style.height = "0px";\n -\n - this.showControls(true);\n -\n - if (e != null) {\n - OpenLayers.Event.stop(e); \n - }\n - },\n -\n - /**\n - * Method: showControls\n - * Hide/Show all LayerSwitcher controls depending on whether we are\n - * minimized or not\n - * \n - * Parameters:\n - * minimize - {Boolean}\n - */\n - showControls: function(minimize) {\n -\n - this.maximizeDiv.style.display = minimize ? "" : "none";\n - this.minimizeDiv.style.display = minimize ? "none" : "";\n -\n - this.layersDiv.style.display = minimize ? "none" : "";\n - },\n - \n - /** \n - * Method: loadContents\n - * Set up the labels and divs for the control\n - */\n - loadContents: function() {\n -\n - // layers list div \n - this.layersDiv = document.createElement("div");\n - this.layersDiv.id = this.id + "_layersDiv";\n - OpenLayers.Element.addClass(this.layersDiv, "layersDiv");\n -\n - this.baseLbl = document.createElement("div");\n - this.baseLbl.innerHTML = OpenLayers.i18n("Base Layer");\n - OpenLayers.Element.addClass(this.baseLbl, "baseLbl");\n - \n - this.baseLayersDiv = document.createElement("div");\n - OpenLayers.Element.addClass(this.baseLayersDiv, "baseLayersDiv");\n -\n - this.dataLbl = document.createElement("div");\n - this.dataLbl.innerHTML = OpenLayers.i18n("Overlays");\n - OpenLayers.Element.addClass(this.dataLbl, "dataLbl");\n - \n - this.dataLayersDiv = document.createElement("div");\n - OpenLayers.Element.addClass(this.dataLayersDiv, "dataLayersDiv");\n -\n - if (this.ascending) {\n - this.layersDiv.appendChild(this.baseLbl);\n - this.layersDiv.appendChild(this.baseLayersDiv);\n - this.layersDiv.appendChild(this.dataLbl);\n - this.layersDiv.appendChild(this.dataLayersDiv);\n - } else {\n - this.layersDiv.appendChild(this.dataLbl);\n - this.layersDiv.appendChild(this.dataLayersDiv);\n - this.layersDiv.appendChild(this.baseLbl);\n - this.layersDiv.appendChild(this.baseLayersDiv);\n - } \n - \n - this.div.appendChild(this.layersDiv);\n -\n - if(this.roundedCorner) {\n - OpenLayers.Rico.Corner.round(this.div, {\n - corners: "tl bl",\n - bgColor: "transparent",\n - color: this.roundedCornerColor,\n - blend: false\n - });\n - OpenLayers.Rico.Corner.changeOpacity(this.layersDiv, 0.75);\n - }\n -\n - // maximize button div\n - var img = OpenLayers.Util.getImageLocation(\'layer-switcher-maximize.png\');\n - this.maximizeDiv = OpenLayers.Util.createAlphaImageDiv(\n - "OpenLayers_Control_MaximizeDiv", \n - null, \n - null, \n - img, \n - "absolute");\n - OpenLayers.Element.addClass(this.maximizeDiv, "maximizeDiv olButton");\n - this.maximizeDiv.style.display = "none";\n - \n - this.div.appendChild(this.maximizeDiv);\n -\n - // minimize button div\n - var img = OpenLayers.Util.getImageLocation(\'layer-switcher-minimize.png\');\n - this.minimizeDiv = OpenLayers.Util.createAlphaImageDiv(\n - "OpenLayers_Control_MinimizeDiv", \n - null, \n - null, \n - img, \n - "absolute");\n - OpenLayers.Element.addClass(this.minimizeDiv, "minimizeDiv olButton");\n - this.minimizeDiv.style.display = "none";\n -\n - this.div.appendChild(this.minimizeDiv);\n - },\n - \n - CLASS_NAME: "OpenLayers.Control.LayerSwitcher"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>17640</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Measure.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Measure.js.xml deleted file mode 100644 index 444736b377eb8b4cb1346c90e9e50dbaa1e6e10e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Measure.js.xml +++ /dev/null @@ -1,422 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Measure.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Feature/Vector.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.Measure\n - * Allows for drawing of features for measurements.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.Measure = OpenLayers.Class(OpenLayers.Control, {\n -\n - /** \n - * APIProperty: events\n - * {<OpenLayers.Events>} Events instance for listeners and triggering\n - * control specific events.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * control.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types (in addition to those from <OpenLayers.Control.events>):\n - * measure - Triggered when a measurement sketch is complete. Listeners\n - * will receive an event with measure, units, order, and geometry\n - * properties.\n - * measurepartial - Triggered when a new point is added to the\n - * measurement sketch or if the <immediate> property is true and the\n - * measurement sketch is modified. Listeners receive an event with measure,\n - * units, order, and geometry.\n - */\n -\n - /**\n - * APIProperty: handlerOptions\n - * {Object} Used to set non-default properties on the control\'s handler\n - */\n - handlerOptions: null,\n - \n - /**\n - * Property: callbacks\n - * {Object} The functions that are sent to the handler for callback\n - */\n - callbacks: null,\n - \n - /**\n - * Property: displaySystem\n - * {String} Display system for output measurements. Supported values\n - * are \'english\', \'metric\', and \'geographic\'. Default is \'metric\'.\n - */\n - displaySystem: \'metric\',\n - \n - /**\n - * Property: geodesic\n - * {Boolean} Calculate geodesic metrics instead of planar metrics. This\n - * requires that geometries can be transformed into Geographic/WGS84\n - * (if that is not already the map projection). Default is false.\n - */\n - geodesic: false,\n - \n - /**\n - * Property: displaySystemUnits\n - * {Object} Units for various measurement systems. Values are arrays\n - * of unit abbreviations (from OpenLayers.INCHES_PER_UNIT) in decreasing\n - * order of length.\n - */\n - displaySystemUnits: {\n - geographic: [\'dd\'],\n - english: [\'mi\', \'ft\', \'in\'],\n - metric: [\'km\', \'m\']\n - },\n -\n - /**\n - * Property: delay\n - * {Number} Number of milliseconds between clicks before the event is\n - * considered a double-click. The "measurepartial" event will not\n - * be triggered if the sketch is completed within this time. This\n - * is required for IE where creating a browser reflow (if a listener\n - * is modifying the DOM by displaying the measurement values) messes\n - * with the dblclick listener in the sketch handler.\n - */\n - partialDelay: 300,\n -\n - /**\n - * Property: delayedTrigger\n - * {Number} Timeout id of trigger for measurepartial.\n - */\n - delayedTrigger: null,\n -\n - /**\n - * APIProperty: persist\n - * {Boolean} Keep the temporary measurement sketch drawn after the\n - * measurement is complete. The geometry will persist until a new\n - * measurement is started, the control is deactivated, or <cancel> is\n - * called.\n - */\n - persist: false,\n -\n - /**\n - * APIProperty: immediate\n - * {Boolean} Activates the immediate measurement so that the "measurepartial"\n - * event is also fired once the measurement sketch is modified.\n - * Default is false.\n - */\n - immediate : false,\n -\n - /**\n - * Constructor: OpenLayers.Control.Measure\n - * \n - * Parameters:\n - * handler - {<OpenLayers.Handler>} \n - * options - {Object} \n - */\n - initialize: function(handler, options) {\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - var callbacks = {done: this.measureComplete,\n - point: this.measurePartial};\n - if (this.immediate){\n - callbacks.modify = this.measureImmediate;\n - }\n - this.callbacks = OpenLayers.Util.extend(callbacks, this.callbacks);\n -\n - // let the handler options override, so old code that passes \'persist\' \n - // directly to the handler does not need an update\n - this.handlerOptions = OpenLayers.Util.extend(\n - {persist: this.persist}, this.handlerOptions\n - );\n - this.handler = new handler(this, this.callbacks, this.handlerOptions);\n - },\n - \n - /**\n - * APIMethod: deactivate\n - */\n - deactivate: function() {\n - this.cancelDelay();\n - return OpenLayers.Control.prototype.deactivate.apply(this, arguments);\n - },\n -\n - /**\n - * APIMethod: cancel\n - * Stop the control from measuring. If <persist> is true, the temporary\n - * sketch will be erased.\n - */\n - cancel: function() {\n - this.cancelDelay();\n - this.handler.cancel();\n - },\n -\n - /**\n - * APIMethod: setImmediate\n - * Sets the <immediate> property. Changes the activity of immediate\n - * measurement.\n - */\n - setImmediate: function(immediate) {\n - this.immediate = immediate;\n - if (this.immediate){\n - this.callbacks.modify = this.measureImmediate;\n - } else {\n - delete this.callbacks.modify;\n - }\n - },\n - \n - /**\n - * Method: updateHandler\n - *\n - * Parameters:\n - * handler - {Function} One of the sketch handler constructors.\n - * options - {Object} Options for the handler.\n - */\n - updateHandler: function(handler, options) {\n - var active = this.active;\n - if(active) {\n - this.deactivate();\n - }\n - this.handler = new handler(this, this.callbacks, options);\n - if(active) {\n - this.activate();\n - }\n - },\n -\n - /**\n - * Method: measureComplete\n - * Called when the measurement sketch is done.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - */\n - measureComplete: function(geometry) {\n - this.cancelDelay();\n - this.measure(geometry, "measure");\n - },\n - \n - /**\n - * Method: measurePartial\n - * Called each time a new point is added to the measurement sketch.\n - *\n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>} The last point added.\n - * geometry - {<OpenLayers.Geometry>} The sketch geometry.\n - */\n - measurePartial: function(point, geometry) {\n - this.cancelDelay();\n - geometry = geometry.clone();\n - // when we\'re wating for a dblclick, we have to trigger measurepartial\n - // after some delay to deal with reflow issues in IE\n - if (this.handler.freehandMode(this.handler.evt)) {\n - // no dblclick in freehand mode\n - this.measure(geometry, "measurepartial");\n - } else {\n - this.delayedTrigger = window.setTimeout(\n - OpenLayers.Function.bind(function() {\n - this.delayedTrigger = null;\n - this.measure(geometry, "measurepartial");\n - }, this),\n - this.partialDelay\n - );\n - }\n - },\n -\n - /**\n - * Method: measureImmediate\n - * Called each time the measurement sketch is modified.\n - * \n - * Parameters: point - {<OpenLayers.Geometry.Point>} The point at the\n - * mouseposition. feature - {<OpenLayers.Feature.Vector>} The sketch feature.\n - */\n - measureImmediate : function(point, feature, drawing) {\n - if (drawing && !this.handler.freehandMode(this.handler.evt)) {\n - this.cancelDelay();\n - this.measure(feature.geometry, "measurepartial");\n - }\n - },\n -\n - /**\n - * Method: cancelDelay\n - * Cancels the delay measurement that measurePartial began.\n - */\n - cancelDelay: function() {\n - if (this.delayedTrigger !== null) {\n - window.clearTimeout(this.delayedTrigger);\n - this.delayedTrigger = null;\n - }\n - },\n -\n - /**\n - * Method: measure\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - * eventType - {String}\n - */\n - measure: function(geometry, eventType) {\n - var stat, order;\n - if(geometry.CLASS_NAME.indexOf(\'LineString\') > -1) {\n - stat = this.getBestLength(geometry);\n - order = 1;\n - } else {\n - stat = this.getBestArea(geometry);\n - order = 2;\n - }\n - this.events.triggerEvent(eventType, {\n - measure: stat[0],\n - units: stat[1],\n - order: order,\n - geometry: geometry\n - });\n - },\n - \n - /**\n - * Method: getBestArea\n - * Based on the <displaySystem> returns the area of a geometry.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - *\n - * Returns:\n - * {Array([Float, String])} Returns a two item array containing the\n - * area and the units abbreviation.\n - */\n - getBestArea: function(geometry) {\n - var units = this.displaySystemUnits[this.displaySystem];\n - var unit, area;\n - for(var i=0, len=units.length; i<len; ++i) {\n - unit = units[i];\n - area = this.getArea(geometry, unit);\n - if(area > 1) {\n - break;\n - }\n - }\n - return [area, unit];\n - },\n - \n - /**\n - * Method: getArea\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - * units - {String} Unit abbreviation\n - *\n - * Returns:\n - * {Float} The geometry area in the given units.\n - */\n - getArea: function(geometry, units) {\n - var area, geomUnits;\n - if(this.geodesic) {\n - area = geometry.getGeodesicArea(this.map.getProjectionObject());\n - geomUnits = "m";\n - } else {\n - area = geometry.getArea();\n - geomUnits = this.map.getUnits();\n - }\n - var inPerDisplayUnit = OpenLayers.INCHES_PER_UNIT[units];\n - if(inPerDisplayUnit) {\n - var inPerMapUnit = OpenLayers.INCHES_PER_UNIT[geomUnits];\n - area *= Math.pow((inPerMapUnit / inPerDisplayUnit), 2);\n - }\n - return area;\n - },\n - \n - /**\n - * Method: getBestLength\n - * Based on the <displaySystem> returns the length of a geometry.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - *\n - * Returns:\n - * {Array([Float, String])} Returns a two item array containing the\n - * length and the units abbreviation.\n - */\n - getBestLength: function(geometry) {\n - var units = this.displaySystemUnits[this.displaySystem];\n - var unit, length;\n - for(var i=0, len=units.length; i<len; ++i) {\n - unit = units[i];\n - length = this.getLength(geometry, unit);\n - if(length > 1) {\n - break;\n - }\n - }\n - return [length, unit];\n - },\n -\n - /**\n - * Method: getLength\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - * units - {String} Unit abbreviation\n - *\n - * Returns:\n - * {Float} The geometry length in the given units.\n - */\n - getLength: function(geometry, units) {\n - var length, geomUnits;\n - if(this.geodesic) {\n - length = geometry.getGeodesicLength(this.map.getProjectionObject());\n - geomUnits = "m";\n - } else {\n - length = geometry.getLength();\n - geomUnits = this.map.getUnits();\n - }\n - var inPerDisplayUnit = OpenLayers.INCHES_PER_UNIT[units];\n - if(inPerDisplayUnit) {\n - var inPerMapUnit = OpenLayers.INCHES_PER_UNIT[geomUnits];\n - length *= (inPerMapUnit / inPerDisplayUnit);\n - }\n - return length;\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.Measure"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>11790</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ModifyFeature.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ModifyFeature.js.xml deleted file mode 100644 index d5b4c00d13986644cf6037380597c037f70a1e8f..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ModifyFeature.js.xml +++ /dev/null @@ -1,866 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ModifyFeature.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control/DragFeature.js\n - * @requires OpenLayers/Control/SelectFeature.js\n - * @requires OpenLayers/Handler/Keyboard.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.ModifyFeature\n - * Control to modify features. When activated, a click renders the vertices\n - * of a feature - these vertices can then be dragged. By default, the\n - * delete key will delete the vertex under the mouse. New features are\n - * added by dragging "virtual vertices" between vertices. Create a new\n - * control with the <OpenLayers.Control.ModifyFeature> constructor.\n - *\n - * Inherits From:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.ModifyFeature = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * APIProperty: geometryTypes\n - * {Array(String)} To restrict modification to a limited set of geometry\n - * types, send a list of strings corresponding to the geometry class\n - * names.\n - */\n - geometryTypes: null,\n -\n - /**\n - * APIProperty: clickout\n - * {Boolean} Unselect features when clicking outside any feature.\n - * Default is true.\n - */\n - clickout: true,\n -\n - /**\n - * APIProperty: toggle\n - * {Boolean} Unselect a selected feature on click.\n - * Default is true.\n - */\n - toggle: true,\n - \n - /**\n - * APIProperty: standalone\n - * {Boolean} Set to true to create a control without SelectFeature\n - * capabilities. Default is false. If standalone is true, to modify\n - * a feature, call the <selectFeature> method with the target feature.\n - * Note that you must call the <unselectFeature> method to finish\n - * feature modification in standalone mode (before starting to modify\n - * another feature).\n - */\n - standalone: false,\n -\n - /**\n - * Property: layer\n - * {<OpenLayers.Layer.Vector>}\n - */\n - layer: null,\n - \n - /**\n - * Property: feature\n - * {<OpenLayers.Feature.Vector>} Feature currently available for modification.\n - */\n - feature: null,\n - \n - /**\n - * Property: vertices\n - * {Array(<OpenLayers.Feature.Vector>)} Verticies currently available\n - * for dragging.\n - */\n - vertices: null,\n - \n - /**\n - * Property: virtualVertices\n - * {Array(<OpenLayers.Feature.Vector>)} Virtual vertices in the middle\n - * of each edge.\n - */\n - virtualVertices: null,\n -\n - /**\n - * Property: selectControl\n - * {<OpenLayers.Control.SelectFeature>}\n - */\n - selectControl: null,\n - \n - /**\n - * Property: dragControl\n - * {<OpenLayers.Control.DragFeature>}\n - */\n - dragControl: null,\n - \n - /**\n - * Property: handlers\n - * {Object}\n - */\n - handlers: null,\n - \n - /**\n - * APIProperty: deleteCodes\n - * {Array(Integer)} Keycodes for deleting verticies. Set to null to disable\n - * vertex deltion by keypress. If non-null, keypresses with codes\n - * in this array will delete vertices under the mouse. Default\n - * is 46 and 68, the \'delete\' and lowercase \'d\' keys.\n - */\n - deleteCodes: null,\n -\n - /**\n - * APIProperty: virtualStyle\n - * {Object} A symbolizer to be used for virtual vertices.\n - */\n - virtualStyle: null,\n - \n - /**\n - * APIProperty: vertexRenderIntent\n - * {String} The renderIntent to use for vertices. If no <virtualStyle> is\n - * provided, this renderIntent will also be used for virtual vertices, with\n - * a fillOpacity and strokeOpacity of 0.3. Default is null, which means\n - * that the layer\'s default style will be used for vertices.\n - */\n - vertexRenderIntent: null,\n -\n - /**\n - * APIProperty: mode\n - * {Integer} Bitfields specifying the modification mode. Defaults to\n - * OpenLayers.Control.ModifyFeature.RESHAPE. To set the mode to a\n - * combination of options, use the | operator. For example, to allow\n - * the control to both resize and rotate features, use the following\n - * syntax\n - * (code)\n - * control.mode = OpenLayers.Control.ModifyFeature.RESIZE |\n - * OpenLayers.Control.ModifyFeature.ROTATE;\n - * (end)\n - */\n - mode: null,\n -\n - /**\n - * APIProperty: createVertices\n - * {Boolean} Create new vertices by dragging the virtual vertices\n - * in the middle of each edge. Default is true.\n - */\n - createVertices: true,\n -\n - /**\n - * Property: modified\n - * {Boolean} The currently selected feature has been modified.\n - */\n - modified: false,\n -\n - /**\n - * Property: radiusHandle\n - * {<OpenLayers.Feature.Vector>} A handle for rotating/resizing a feature.\n - */\n - radiusHandle: null,\n -\n - /**\n - * Property: dragHandle\n - * {<OpenLayers.Feature.Vector>} A handle for dragging a feature.\n - */\n - dragHandle: null,\n -\n - /**\n - * APIProperty: onModificationStart \n - * {Function} *Deprecated*. Register for "beforefeaturemodified" instead.\n - * The "beforefeaturemodified" event is triggered on the layer before\n - * any modification begins.\n - *\n - * Optional function to be called when a feature is selected\n - * to be modified. The function should expect to be called with a\n - * feature. This could be used for example to allow to lock the\n - * feature on server-side.\n - */\n - onModificationStart: function() {},\n -\n - /**\n - * APIProperty: onModification\n - * {Function} *Deprecated*. Register for "featuremodified" instead.\n - * The "featuremodified" event is triggered on the layer with each\n - * feature modification.\n - *\n - * Optional function to be called when a feature has been\n - * modified. The function should expect to be called with a feature.\n - */\n - onModification: function() {},\n -\n - /**\n - * APIProperty: onModificationEnd\n - * {Function} *Deprecated*. Register for "afterfeaturemodified" instead.\n - * The "afterfeaturemodified" event is triggered on the layer after\n - * a feature has been modified.\n - *\n - * Optional function to be called when a feature is finished \n - * being modified. The function should expect to be called with a\n - * feature.\n - */\n - onModificationEnd: function() {},\n -\n - /**\n - * Constructor: OpenLayers.Control.ModifyFeature\n - * Create a new modify feature control.\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer.Vector>} Layer that contains features that\n - * will be modified.\n - * options - {Object} Optional object whose properties will be set on the\n - * control.\n - */\n - initialize: function(layer, options) {\n - options = options || {};\n - this.layer = layer;\n - this.vertices = [];\n - this.virtualVertices = [];\n - this.virtualStyle = OpenLayers.Util.extend({},\n - this.layer.style ||\n - this.layer.styleMap.createSymbolizer(null, options.vertexRenderIntent)\n - );\n - this.virtualStyle.fillOpacity = 0.3;\n - this.virtualStyle.strokeOpacity = 0.3;\n - this.deleteCodes = [46, 68];\n - this.mode = OpenLayers.Control.ModifyFeature.RESHAPE;\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - if(!(OpenLayers.Util.isArray(this.deleteCodes))) {\n - this.deleteCodes = [this.deleteCodes];\n - }\n - var control = this;\n -\n - // configure the select control\n - var selectOptions = {\n - geometryTypes: this.geometryTypes,\n - clickout: this.clickout,\n - toggle: this.toggle,\n - onBeforeSelect: this.beforeSelectFeature,\n - onSelect: this.selectFeature,\n - onUnselect: this.unselectFeature,\n - scope: this\n - };\n - if(this.standalone === false) {\n - this.selectControl = new OpenLayers.Control.SelectFeature(\n - layer, selectOptions\n - );\n - }\n -\n - // configure the drag control\n - var dragOptions = {\n - geometryTypes: ["OpenLayers.Geometry.Point"],\n - onStart: function(feature, pixel) {\n - control.dragStart.apply(control, [feature, pixel]);\n - },\n - onDrag: function(feature, pixel) {\n - control.dragVertex.apply(control, [feature, pixel]);\n - },\n - onComplete: function(feature) {\n - control.dragComplete.apply(control, [feature]);\n - },\n - featureCallbacks: {\n - over: function(feature) {\n - /**\n - * In normal mode, the feature handler is set up to allow\n - * dragging of all points. In standalone mode, we only\n - * want to allow dragging of sketch vertices and virtual\n - * vertices - or, in the case of a modifiable point, the\n - * point itself.\n - */\n - if(control.standalone !== true || feature._sketch ||\n - control.feature === feature) {\n - control.dragControl.overFeature.apply(\n - control.dragControl, [feature]);\n - }\n - }\n - }\n - };\n - this.dragControl = new OpenLayers.Control.DragFeature(\n - layer, dragOptions\n - );\n -\n - // configure the keyboard handler\n - var keyboardOptions = {\n - keydown: this.handleKeypress\n - };\n - this.handlers = {\n - keyboard: new OpenLayers.Handler.Keyboard(this, keyboardOptions)\n - };\n - },\n -\n - /**\n - * APIMethod: destroy\n - * Take care of things that are not handled in superclass.\n - */\n - destroy: function() {\n - this.layer = null;\n - this.standalone || this.selectControl.destroy();\n - this.dragControl.destroy();\n - OpenLayers.Control.prototype.destroy.apply(this, []);\n - },\n -\n - /**\n - * APIMethod: activate\n - * Activate the control.\n - * \n - * Returns:\n - * {Boolean} Successfully activated the control.\n - */\n - activate: function() {\n - return ((this.standalone || this.selectControl.activate()) &&\n - this.handlers.keyboard.activate() &&\n - OpenLayers.Control.prototype.activate.apply(this, arguments));\n - },\n -\n - /**\n - * APIMethod: deactivate\n - * Deactivate the control.\n - *\n - * Returns: \n - * {Boolean} Successfully deactivated the control.\n - */\n - deactivate: function() {\n - var deactivated = false;\n - // the return from the controls is unimportant in this case\n - if(OpenLayers.Control.prototype.deactivate.apply(this, arguments)) {\n - this.layer.removeFeatures(this.vertices, {silent: true});\n - this.layer.removeFeatures(this.virtualVertices, {silent: true});\n - this.vertices = [];\n - this.dragControl.deactivate();\n - var feature = this.feature;\n - var valid = feature && feature.geometry && feature.layer;\n - if(this.standalone === false) {\n - if(valid) {\n - this.selectControl.unselect.apply(this.selectControl,\n - [feature]);\n - }\n - this.selectControl.deactivate();\n - } else {\n - if(valid) {\n - this.unselectFeature(feature);\n - }\n - }\n - this.handlers.keyboard.deactivate();\n - deactivated = true;\n - }\n - return deactivated;\n - },\n - \n - /**\n - * Method: beforeSelectFeature\n - * Called before a feature is selected.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} The feature about to be selected.\n - */\n - beforeSelectFeature: function(feature) {\n - return this.layer.events.triggerEvent(\n - "beforefeaturemodified", {feature: feature}\n - );\n - },\n -\n - /**\n - * APIMethod: selectFeature\n - * Select a feature for modification in standalone mode. In non-standalone\n - * mode, this method is called when the select feature control selects a\n - * feature. Register a listener to the beforefeaturemodified event and\n - * return false to prevent feature modification.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} the selected feature.\n - */\n - selectFeature: function(feature) {\n - if (!this.standalone || this.beforeSelectFeature(feature) !== false) {\n - this.feature = feature;\n - this.modified = false;\n - this.resetVertices();\n - this.dragControl.activate();\n - this.onModificationStart(this.feature);\n - }\n - // keep track of geometry modifications\n - var modified = feature.modified;\n - if (feature.geometry && !(modified && modified.geometry)) {\n - this._originalGeometry = feature.geometry.clone();\n - }\n - },\n -\n - /**\n - * APIMethod: unselectFeature\n - * Called when the select feature control unselects a feature.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} The unselected feature.\n - */\n - unselectFeature: function(feature) {\n - this.layer.removeFeatures(this.vertices, {silent: true});\n - this.vertices = [];\n - this.layer.destroyFeatures(this.virtualVertices, {silent: true});\n - this.virtualVertices = [];\n - if(this.dragHandle) {\n - this.layer.destroyFeatures([this.dragHandle], {silent: true});\n - delete this.dragHandle;\n - }\n - if(this.radiusHandle) {\n - this.layer.destroyFeatures([this.radiusHandle], {silent: true});\n - delete this.radiusHandle;\n - }\n - this.feature = null;\n - this.dragControl.deactivate();\n - this.onModificationEnd(feature);\n - this.layer.events.triggerEvent("afterfeaturemodified", {\n - feature: feature,\n - modified: this.modified\n - });\n - this.modified = false;\n - },\n -\n - /**\n - * Method: dragStart\n - * Called by the drag feature control with before a feature is dragged.\n - * This method is used to differentiate between points and vertices\n - * of higher order geometries. This respects the <geometryTypes>\n - * property and forces a select of points when the drag control is\n - * already active (and stops events from propagating to the select\n - * control).\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} The point or vertex about to be\n - * dragged.\n - * pixel - {<OpenLayers.Pixel>} Pixel location of the mouse event.\n - */\n - dragStart: function(feature, pixel) {\n - // only change behavior if the feature is not in the vertices array\n - if(feature != this.feature && !feature.geometry.parent &&\n - feature != this.dragHandle && feature != this.radiusHandle) {\n - if(this.standalone === false && this.feature) {\n - // unselect the currently selected feature\n - this.selectControl.clickFeature.apply(this.selectControl,\n - [this.feature]);\n - }\n - // check any constraints on the geometry type\n - if(this.geometryTypes == null ||\n - OpenLayers.Util.indexOf(this.geometryTypes,\n - feature.geometry.CLASS_NAME) != -1) {\n - // select the point\n - this.standalone || this.selectControl.clickFeature.apply(\n - this.selectControl, [feature]);\n - /**\n - * TBD: These lines improve workflow by letting the user\n - * immediately start dragging after the mouse down.\n - * However, it is very ugly to be messing with controls\n - * and their handlers in this way. I\'d like a better\n - * solution if the workflow change is necessary.\n - */\n - // prepare the point for dragging\n - this.dragControl.overFeature.apply(this.dragControl,\n - [feature]);\n - this.dragControl.lastPixel = pixel;\n - this.dragControl.handlers.drag.started = true;\n - this.dragControl.handlers.drag.start = pixel;\n - this.dragControl.handlers.drag.last = pixel;\n - }\n - }\n - },\n - \n - /**\n - * Method: dragVertex\n - * Called by the drag feature control with each drag move of a vertex.\n - *\n - * Parameters:\n - * vertex - {<OpenLayers.Feature.Vector>} The vertex being dragged.\n - * pixel - {<OpenLayers.Pixel>} Pixel location of the mouse event.\n - */\n - dragVertex: function(vertex, pixel) {\n - this.modified = true;\n - /**\n - * Five cases:\n - * 1) dragging a simple point\n - * 2) dragging a virtual vertex\n - * 3) dragging a drag handle\n - * 4) dragging a real vertex\n - * 5) dragging a radius handle\n - */\n - if(this.feature.geometry.CLASS_NAME == "OpenLayers.Geometry.Point") {\n - // dragging a simple point\n - if(this.feature != vertex) {\n - this.feature = vertex;\n - }\n - this.layer.events.triggerEvent("vertexmodified", {\n - vertex: vertex.geometry,\n - feature: this.feature,\n - pixel: pixel\n - });\n - } else {\n - if(vertex._index) {\n - // dragging a virtual vertex\n - vertex.geometry.parent.addComponent(vertex.geometry,\n - vertex._index);\n - // move from virtual to real vertex\n - delete vertex._index;\n - OpenLayers.Util.removeItem(this.virtualVertices, vertex);\n - this.vertices.push(vertex);\n - } else if(vertex == this.dragHandle) {\n - // dragging a drag handle\n - this.layer.removeFeatures(this.vertices, {silent: true});\n - this.vertices = [];\n - if(this.radiusHandle) {\n - this.layer.destroyFeatures([this.radiusHandle], {silent: true});\n - this.radiusHandle = null;\n - }\n - } else if(vertex !== this.radiusHandle) {\n - // dragging a real vertex\n - this.layer.events.triggerEvent("vertexmodified", {\n - vertex: vertex.geometry,\n - feature: this.feature,\n - pixel: pixel\n - });\n - }\n - // dragging a radius handle - no special treatment\n - if(this.virtualVertices.length > 0) {\n - this.layer.destroyFeatures(this.virtualVertices, {silent: true});\n - this.virtualVertices = [];\n - }\n - this.layer.drawFeature(this.feature, this.standalone ? undefined :\n - this.selectControl.renderIntent);\n - }\n - // keep the vertex on top so it gets the mouseout after dragging\n - // this should be removed in favor of an option to draw under or\n - // maintain node z-index\n - this.layer.drawFeature(vertex);\n - },\n - \n - /**\n - * Method: dragComplete\n - * Called by the drag feature control when the feature dragging is complete.\n - *\n - * Parameters:\n - * vertex - {<OpenLayers.Feature.Vector>} The vertex being dragged.\n - */\n - dragComplete: function(vertex) {\n - this.resetVertices();\n - this.setFeatureState();\n - this.onModification(this.feature);\n - this.layer.events.triggerEvent("featuremodified", \n - {feature: this.feature});\n - },\n - \n - /**\n - * Method: setFeatureState\n - * Called when the feature is modified. If the current state is not\n - * INSERT or DELETE, the state is set to UPDATE.\n - */\n - setFeatureState: function() {\n - if(this.feature.state != OpenLayers.State.INSERT &&\n - this.feature.state != OpenLayers.State.DELETE) {\n - this.feature.state = OpenLayers.State.UPDATE;\n - if (this.modified && this._originalGeometry) {\n - var feature = this.feature;\n - feature.modified = OpenLayers.Util.extend(feature.modified, {\n - geometry: this._originalGeometry\n - });\n - delete this._originalGeometry;\n - }\n - }\n - },\n - \n - /**\n - * Method: resetVertices\n - */\n - resetVertices: function() {\n - // if coming from a drag complete we\'re about to destroy the vertex\n - // that was just dragged. For that reason, the drag feature control\n - // will never detect a mouse-out on that vertex, meaning that the drag\n - // handler won\'t be deactivated. This can cause errors because the drag\n - // feature control still has a feature to drag but that feature is\n - // destroyed. To prevent this, we call outFeature on the drag feature\n - // control if the control actually has a feature to drag.\n - if(this.dragControl.feature) {\n - this.dragControl.outFeature(this.dragControl.feature);\n - }\n - if(this.vertices.length > 0) {\n - this.layer.removeFeatures(this.vertices, {silent: true});\n - this.vertices = [];\n - }\n - if(this.virtualVertices.length > 0) {\n - this.layer.removeFeatures(this.virtualVertices, {silent: true});\n - this.virtualVertices = [];\n - }\n - if(this.dragHandle) {\n - this.layer.destroyFeatures([this.dragHandle], {silent: true});\n - this.dragHandle = null;\n - }\n - if(this.radiusHandle) {\n - this.layer.destroyFeatures([this.radiusHandle], {silent: true});\n - this.radiusHandle = null;\n - }\n - if(this.feature &&\n - this.feature.geometry.CLASS_NAME != "OpenLayers.Geometry.Point") {\n - if((this.mode & OpenLayers.Control.ModifyFeature.DRAG)) {\n - this.collectDragHandle();\n - }\n - if((this.mode & (OpenLayers.Control.ModifyFeature.ROTATE |\n - OpenLayers.Control.ModifyFeature.RESIZE))) {\n - this.collectRadiusHandle();\n - }\n - if(this.mode & OpenLayers.Control.ModifyFeature.RESHAPE){\n - // Don\'t collect vertices when we\'re resizing\n - if (!(this.mode & OpenLayers.Control.ModifyFeature.RESIZE)){\n - this.collectVertices();\n - }\n - }\n - }\n - },\n - \n - /**\n - * Method: handleKeypress\n - * Called by the feature handler on keypress. This is used to delete\n - * vertices. If the <deleteCode> property is set, vertices will\n - * be deleted when a feature is selected for modification and\n - * the mouse is over a vertex.\n - *\n - * Parameters:\n - * evt - {Event} Keypress event.\n - */\n - handleKeypress: function(evt) {\n - var code = evt.keyCode;\n - \n - // check for delete key\n - if(this.feature &&\n - OpenLayers.Util.indexOf(this.deleteCodes, code) != -1) {\n - var vertex = this.dragControl.feature;\n - if(vertex &&\n - OpenLayers.Util.indexOf(this.vertices, vertex) != -1 &&\n - !this.dragControl.handlers.drag.dragging &&\n - vertex.geometry.parent) {\n - // remove the vertex\n - vertex.geometry.parent.removeComponent(vertex.geometry);\n - this.layer.events.triggerEvent("vertexremoved", {\n - vertex: vertex.geometry,\n - feature: this.feature,\n - pixel: evt.xy\n - });\n - this.layer.drawFeature(this.feature, this.standalone ?\n - undefined :\n - this.selectControl.renderIntent);\n - this.modified = true;\n - this.resetVertices();\n - this.setFeatureState();\n - this.onModification(this.feature);\n - this.layer.events.triggerEvent("featuremodified", \n - {feature: this.feature});\n - }\n - }\n - },\n -\n - /**\n - * Method: collectVertices\n - * Collect the vertices from the modifiable feature\'s geometry and push\n - * them on to the control\'s vertices array.\n - */\n - collectVertices: function() {\n - this.vertices = [];\n - this.virtualVertices = []; \n - var control = this;\n - function collectComponentVertices(geometry) {\n - var i, vertex, component, len;\n - if(geometry.CLASS_NAME == "OpenLayers.Geometry.Point") {\n - vertex = new OpenLayers.Feature.Vector(geometry);\n - vertex._sketch = true;\n - vertex.renderIntent = control.vertexRenderIntent;\n - control.vertices.push(vertex);\n - } else {\n - var numVert = geometry.components.length;\n - if(geometry.CLASS_NAME == "OpenLayers.Geometry.LinearRing") {\n - numVert -= 1;\n - }\n - for(i=0; i<numVert; ++i) {\n - component = geometry.components[i];\n - if(component.CLASS_NAME == "OpenLayers.Geometry.Point") {\n - vertex = new OpenLayers.Feature.Vector(component);\n - vertex._sketch = true;\n - vertex.renderIntent = control.vertexRenderIntent;\n - control.vertices.push(vertex);\n - } else {\n - collectComponentVertices(component);\n - }\n - }\n - \n - // add virtual vertices in the middle of each edge\n - if (control.createVertices && geometry.CLASS_NAME != "OpenLayers.Geometry.MultiPoint") {\n - for(i=0, len=geometry.components.length; i<len-1; ++i) {\n - var prevVertex = geometry.components[i];\n - var nextVertex = geometry.components[i + 1];\n - if(prevVertex.CLASS_NAME == "OpenLayers.Geometry.Point" &&\n - nextVertex.CLASS_NAME == "OpenLayers.Geometry.Point") {\n - var x = (prevVertex.x + nextVertex.x) / 2;\n - var y = (prevVertex.y + nextVertex.y) / 2;\n - var point = new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.Point(x, y),\n - null, control.virtualStyle\n - );\n - // set the virtual parent and intended index\n - point.geometry.parent = geometry;\n - point._index = i + 1;\n - point._sketch = true;\n - control.virtualVertices.push(point);\n - }\n - }\n - }\n - }\n - }\n - collectComponentVertices.call(this, this.feature.geometry);\n - this.layer.addFeatures(this.virtualVertices, {silent: true});\n - this.layer.addFeatures(this.vertices, {silent: true});\n - },\n -\n - /**\n - * Method: collectDragHandle\n - * Collect the drag handle for the selected geometry.\n - */\n - collectDragHandle: function() {\n - var geometry = this.feature.geometry;\n - var center = geometry.getBounds().getCenterLonLat();\n - var originGeometry = new OpenLayers.Geometry.Point(\n - center.lon, center.lat\n - );\n - var origin = new OpenLayers.Feature.Vector(originGeometry);\n - originGeometry.move = function(x, y) {\n - OpenLayers.Geometry.Point.prototype.move.call(this, x, y);\n - geometry.move(x, y);\n - };\n - origin._sketch = true;\n - this.dragHandle = origin;\n - this.dragHandle.renderIntent = this.vertexRenderIntent;\n - this.layer.addFeatures([this.dragHandle], {silent: true});\n - },\n -\n - /**\n - * Method: collectRadiusHandle\n - * Collect the radius handle for the selected geometry.\n - */\n - collectRadiusHandle: function() {\n - var geometry = this.feature.geometry;\n - var bounds = geometry.getBounds();\n - var center = bounds.getCenterLonLat();\n - var originGeometry = new OpenLayers.Geometry.Point(\n - center.lon, center.lat\n - );\n - var radiusGeometry = new OpenLayers.Geometry.Point(\n - bounds.right, bounds.bottom\n - );\n - var radius = new OpenLayers.Feature.Vector(radiusGeometry);\n - var resize = (this.mode & OpenLayers.Control.ModifyFeature.RESIZE);\n - var reshape = (this.mode & OpenLayers.Control.ModifyFeature.RESHAPE);\n - var rotate = (this.mode & OpenLayers.Control.ModifyFeature.ROTATE);\n -\n - radiusGeometry.move = function(x, y) {\n - OpenLayers.Geometry.Point.prototype.move.call(this, x, y);\n - var dx1 = this.x - originGeometry.x;\n - var dy1 = this.y - originGeometry.y;\n - var dx0 = dx1 - x;\n - var dy0 = dy1 - y;\n - if(rotate) {\n - var a0 = Math.atan2(dy0, dx0);\n - var a1 = Math.atan2(dy1, dx1);\n - var angle = a1 - a0;\n - angle *= 180 / Math.PI;\n - geometry.rotate(angle, originGeometry);\n - }\n - if(resize) {\n - var scale, ratio;\n - // \'resize\' together with \'reshape\' implies that the aspect \n - // ratio of the geometry will not be preserved whilst resizing \n - if (reshape) {\n - scale = dy1 / dy0;\n - ratio = (dx1 / dx0) / scale;\n - } else {\n - var l0 = Math.sqrt((dx0 * dx0) + (dy0 * dy0));\n - var l1 = Math.sqrt((dx1 * dx1) + (dy1 * dy1));\n - scale = l1 / l0;\n - }\n - geometry.resize(scale, originGeometry, ratio);\n - }\n - };\n - radius._sketch = true;\n - this.radiusHandle = radius;\n - this.radiusHandle.renderIntent = this.vertexRenderIntent;\n - this.layer.addFeatures([this.radiusHandle], {silent: true});\n - },\n -\n - /**\n - * Method: setMap\n - * Set the map property for the control and all handlers.\n - *\n - * Parameters:\n - * map - {<OpenLayers.Map>} The control\'s map.\n - */\n - setMap: function(map) {\n - this.standalone || this.selectControl.setMap(map);\n - this.dragControl.setMap(map);\n - OpenLayers.Control.prototype.setMap.apply(this, arguments);\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.ModifyFeature"\n -});\n -\n -/**\n - * Constant: RESHAPE\n - * {Integer} Constant used to make the control work in reshape mode\n - */\n -OpenLayers.Control.ModifyFeature.RESHAPE = 1;\n -/**\n - * Constant: RESIZE\n - * {Integer} Constant used to make the control work in resize mode\n - */\n -OpenLayers.Control.ModifyFeature.RESIZE = 2;\n -/**\n - * Constant: ROTATE\n - * {Integer} Constant used to make the control work in rotate mode\n - */\n -OpenLayers.Control.ModifyFeature.ROTATE = 4;\n -/**\n - * Constant: DRAG\n - * {Integer} Constant used to make the control work in drag mode\n - */\n -OpenLayers.Control.ModifyFeature.DRAG = 8;\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>31212</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/MousePosition.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/MousePosition.js.xml deleted file mode 100644 index 78a09c46a57c200fdd230dd80653055f30b124e6..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/MousePosition.js.xml +++ /dev/null @@ -1,254 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>MousePosition.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Control.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.MousePosition\n - * The MousePosition control displays geographic coordinates of the mouse\n - * pointer, as it is moved about the map.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.MousePosition = OpenLayers.Class(OpenLayers.Control, {\n - \n - /**\n - * APIProperty: autoActivate\n - * {Boolean} Activate the control when it is added to a map. Default is\n - * true.\n - */\n - autoActivate: true,\n -\n - /** \n - * Property: element\n - * {DOMElement} \n - */\n - element: null,\n - \n - /** \n - * APIProperty: prefix\n - * {String}\n - */\n - prefix: \'\',\n - \n - /** \n - * APIProperty: separator\n - * {String}\n - */\n - separator: \', \',\n - \n - /** \n - * APIProperty: suffix\n - * {String}\n - */\n - suffix: \'\',\n - \n - /** \n - * APIProperty: numDigits\n - * {Integer}\n - */\n - numDigits: 5,\n - \n - /** \n - * APIProperty: granularity\n - * {Integer} \n - */\n - granularity: 10,\n -\n - /**\n - * APIProperty: emptyString \n - * {String} Set this to some value to set when the mouse is outside the\n - * map.\n - */\n - emptyString: null,\n - \n - /** \n - * Property: lastXy\n - * {<OpenLayers.Pixel>}\n - */\n - lastXy: null,\n -\n - /**\n - * APIProperty: displayProjection\n - * {<OpenLayers.Projection>} The projection in which the \n - * mouse position is displayed\n - */\n - displayProjection: null, \n - \n - /**\n - * Constructor: OpenLayers.Control.MousePosition\n - * \n - * Parameters:\n - * options - {Object} Options for control.\n - */\n -\n - /**\n - * Method: destroy\n - */\n - destroy: function() {\n - this.deactivate();\n - OpenLayers.Control.prototype.destroy.apply(this, arguments);\n - },\n -\n - /**\n - * APIMethod: activate\n - */\n - activate: function() {\n - if (OpenLayers.Control.prototype.activate.apply(this, arguments)) {\n - this.map.events.register(\'mousemove\', this, this.redraw);\n - this.map.events.register(\'mouseout\', this, this.reset);\n - this.redraw();\n - return true;\n - } else {\n - return false;\n - }\n - },\n - \n - /**\n - * APIMethod: deactivate\n - */\n - deactivate: function() {\n - if (OpenLayers.Control.prototype.deactivate.apply(this, arguments)) {\n - this.map.events.unregister(\'mousemove\', this, this.redraw);\n - this.map.events.unregister(\'mouseout\', this, this.reset);\n - this.element.innerHTML = "";\n - return true;\n - } else {\n - return false;\n - }\n - },\n -\n - /**\n - * Method: draw\n - * {DOMElement}\n - */ \n - draw: function() {\n - OpenLayers.Control.prototype.draw.apply(this, arguments);\n -\n - if (!this.element) {\n - this.div.left = "";\n - this.div.top = "";\n - this.element = this.div;\n - }\n - \n - return this.div;\n - },\n - \n - /**\n - * Method: redraw \n - */\n - redraw: function(evt) {\n -\n - var lonLat;\n -\n - if (evt == null) {\n - this.reset();\n - return;\n - } else {\n - if (this.lastXy == null ||\n - Math.abs(evt.xy.x - this.lastXy.x) > this.granularity ||\n - Math.abs(evt.xy.y - this.lastXy.y) > this.granularity)\n - {\n - this.lastXy = evt.xy;\n - return;\n - }\n -\n - lonLat = this.map.getLonLatFromPixel(evt.xy);\n - if (!lonLat) { \n - // map has not yet been properly initialized\n - return;\n - } \n - if (this.displayProjection) {\n - lonLat.transform(this.map.getProjectionObject(), \n - this.displayProjection );\n - } \n - this.lastXy = evt.xy;\n - \n - }\n - \n - var newHtml = this.formatOutput(lonLat);\n -\n - if (newHtml != this.element.innerHTML) {\n - this.element.innerHTML = newHtml;\n - }\n - },\n -\n - /**\n - * Method: reset\n - */\n - reset: function(evt) {\n - if (this.emptyString != null) {\n - this.element.innerHTML = this.emptyString;\n - }\n - },\n -\n - /**\n - * Method: formatOutput\n - * Override to provide custom display output\n - *\n - * Parameters:\n - * lonLat - {<OpenLayers.LonLat>} Location to display\n - */\n - formatOutput: function(lonLat) {\n - var digits = parseInt(this.numDigits);\n - var newHtml =\n - this.prefix +\n - lonLat.lon.toFixed(digits) +\n - this.separator + \n - lonLat.lat.toFixed(digits) +\n - this.suffix;\n - return newHtml;\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.MousePosition"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4960</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/NavToolbar.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/NavToolbar.js.xml deleted file mode 100644 index 8b654ef96c27b8144b8c566601648ee7fe735e43..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/NavToolbar.js.xml +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>NavToolbar.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control/Panel.js\n - * @requires OpenLayers/Control/Navigation.js\n - * @requires OpenLayers/Control/ZoomBox.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.NavToolbar\n - * This Toolbar is an alternative to the Navigation control that displays\n - * the state of the control, and provides a UI for changing state to\n - * use the zoomBox via a Panel control.\n - *\n - * If you wish to change the properties of the Navigation control used\n - * in the NavToolbar, see: \n - * http://trac.openlayers.org/wiki/Toolbars#SubclassingNavToolbar \n - * \n - * \n - * Inherits from:\n - * - <OpenLayers.Control.Panel>\n - */\n -OpenLayers.Control.NavToolbar = OpenLayers.Class(OpenLayers.Control.Panel, {\n -\n - /**\n - * Constructor: OpenLayers.Control.NavToolbar \n - * Add our two mousedefaults controls.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be used\n - * to extend the control.\n - */\n - initialize: function(options) {\n - OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]);\n - this.addControls([\n - new OpenLayers.Control.Navigation(),\n - new OpenLayers.Control.ZoomBox()\n - ]);\n - },\n -\n - /**\n - * Method: draw \n - * calls the default draw, and then activates mouse defaults.\n - */\n - draw: function() {\n - var div = OpenLayers.Control.Panel.prototype.draw.apply(this, arguments);\n - if (this.defaultControl === null) {\n - this.defaultControl = this.controls[0];\n - }\n - return div;\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.NavToolbar"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1836</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Navigation.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Navigation.js.xml deleted file mode 100644 index 9f2df06ce27733b4ca47519eb61ecc7675b9356b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Navigation.js.xml +++ /dev/null @@ -1,389 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Navigation.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control/ZoomBox.js\n - * @requires OpenLayers/Control/DragPan.js\n - * @requires OpenLayers/Handler/MouseWheel.js\n - * @requires OpenLayers/Handler/Click.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.Navigation\n - * The navigation control handles map browsing with mouse events (dragging,\n - * double-clicking, and scrolling the wheel). Create a new navigation \n - * control with the <OpenLayers.Control.Navigation> control. \n - * \n - * Note that this control is added to the map by default (if no controls \n - * array is sent in the options object to the <OpenLayers.Map> \n - * constructor).\n - * \n - * Inherits:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.Navigation = OpenLayers.Class(OpenLayers.Control, {\n -\n - /** \n - * Property: dragPan\n - * {<OpenLayers.Control.DragPan>} \n - */\n - dragPan: null,\n -\n - /**\n - * APIProperty: dragPanOptions\n - * {Object} Options passed to the DragPan control.\n - */\n - dragPanOptions: null,\n -\n - /**\n - * Property: pinchZoom\n - * {<OpenLayers.Control.PinchZoom>}\n - */\n - pinchZoom: null,\n -\n - /**\n - * APIProperty: pinchZoomOptions\n - * {Object} Options passed to the PinchZoom control.\n - */\n - pinchZoomOptions: null,\n -\n - /**\n - * APIProperty: documentDrag\n - * {Boolean} Allow panning of the map by dragging outside map viewport.\n - * Default is false.\n - */\n - documentDrag: false,\n -\n - /** \n - * Property: zoomBox\n - * {<OpenLayers.Control.ZoomBox>}\n - */\n - zoomBox: null,\n -\n - /**\n - * APIProperty: zoomBoxEnabled\n - * {Boolean} Whether the user can draw a box to zoom\n - */\n - zoomBoxEnabled: true, \n -\n - /**\n - * APIProperty: zoomWheelEnabled\n - * {Boolean} Whether the mousewheel should zoom the map\n - */\n - zoomWheelEnabled: true,\n - \n - /**\n - * Property: mouseWheelOptions\n - * {Object} Options passed to the MouseWheel control (only useful if\n - * <zoomWheelEnabled> is set to true)\n - */\n - mouseWheelOptions: null,\n -\n - /**\n - * APIProperty: handleRightClicks\n - * {Boolean} Whether or not to handle right clicks. Default is false.\n - */\n - handleRightClicks: false,\n -\n - /**\n - * APIProperty: zoomBoxKeyMask\n - * {Integer} <OpenLayers.Handler> key code of the key, which has to be\n - * pressed, while drawing the zoom box with the mouse on the screen. \n - * You should probably set handleRightClicks to true if you use this\n - * with MOD_CTRL, to disable the context menu for machines which use\n - * CTRL-Click as a right click.\n - * Default: <OpenLayers.Handler.MOD_SHIFT>\n - */\n - zoomBoxKeyMask: OpenLayers.Handler.MOD_SHIFT,\n - \n - /**\n - * APIProperty: autoActivate\n - * {Boolean} Activate the control when it is added to a map. Default is\n - * true.\n - */\n - autoActivate: true,\n -\n - /**\n - * Constructor: OpenLayers.Control.Navigation\n - * Create a new navigation control\n - * \n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * the control\n - */\n - initialize: function(options) {\n - this.handlers = {};\n - OpenLayers.Control.prototype.initialize.apply(this, arguments);\n - },\n -\n - /**\n - * Method: destroy\n - * The destroy method is used to perform any clean up before the control\n - * is dereferenced. Typically this is where event listeners are removed\n - * to prevent memory leaks.\n - */\n - destroy: function() {\n - this.deactivate();\n -\n - if (this.dragPan) {\n - this.dragPan.destroy();\n - }\n - this.dragPan = null;\n -\n - if (this.zoomBox) {\n - this.zoomBox.destroy();\n - }\n - this.zoomBox = null;\n -\n - if (this.pinchZoom) {\n - this.pinchZoom.destroy();\n - }\n - this.pinchZoom = null;\n -\n - OpenLayers.Control.prototype.destroy.apply(this,arguments);\n - },\n - \n - /**\n - * Method: activate\n - */\n - activate: function() {\n - this.dragPan.activate();\n - if (this.zoomWheelEnabled) {\n - this.handlers.wheel.activate();\n - } \n - this.handlers.click.activate();\n - if (this.zoomBoxEnabled) {\n - this.zoomBox.activate();\n - }\n - if (this.pinchZoom) {\n - this.pinchZoom.activate();\n - }\n - return OpenLayers.Control.prototype.activate.apply(this,arguments);\n - },\n -\n - /**\n - * Method: deactivate\n - */\n - deactivate: function() {\n - if (this.pinchZoom) {\n - this.pinchZoom.deactivate();\n - }\n - this.zoomBox.deactivate();\n - this.dragPan.deactivate();\n - this.handlers.click.deactivate();\n - this.handlers.wheel.deactivate();\n - return OpenLayers.Control.prototype.deactivate.apply(this,arguments);\n - },\n - \n - /**\n - * Method: draw\n - */\n - draw: function() {\n - // disable right mouse context menu for support of right click events\n - if (this.handleRightClicks) {\n - this.map.viewPortDiv.oncontextmenu = OpenLayers.Function.False;\n - }\n -\n - var clickCallbacks = { \n - \'click\': this.defaultClick,\n - \'dblclick\': this.defaultDblClick, \n - \'dblrightclick\': this.defaultDblRightClick \n - };\n - var clickOptions = {\n - \'double\': true, \n - \'stopDouble\': true\n - };\n - this.handlers.click = new OpenLayers.Handler.Click(\n - this, clickCallbacks, clickOptions\n - );\n - this.dragPan = new OpenLayers.Control.DragPan(\n - OpenLayers.Util.extend({\n - map: this.map,\n - documentDrag: this.documentDrag\n - }, this.dragPanOptions)\n - );\n - this.zoomBox = new OpenLayers.Control.ZoomBox(\n - {map: this.map, keyMask: this.zoomBoxKeyMask});\n - this.dragPan.draw();\n - this.zoomBox.draw();\n - this.handlers.wheel = new OpenLayers.Handler.MouseWheel(\n - this, {"up" : this.wheelUp,\n - "down": this.wheelDown},\n - this.mouseWheelOptions );\n - if (OpenLayers.Control.PinchZoom) {\n - this.pinchZoom = new OpenLayers.Control.PinchZoom(\n - OpenLayers.Util.extend(\n - {map: this.map}, this.pinchZoomOptions));\n - }\n - },\n -\n - /**\n - * Method: defaultClick\n - *\n - * Parameters:\n - * evt - {Event}\n - */\n - defaultClick: function (evt) {\n - if (evt.lastTouches && evt.lastTouches.length == 2) {\n - this.map.zoomOut();\n - }\n - },\n -\n - /**\n - * Method: defaultDblClick \n - * \n - * Parameters:\n - * evt - {Event} \n - */\n - defaultDblClick: function (evt) {\n - var newCenter = this.map.getLonLatFromViewPortPx( evt.xy ); \n - this.map.setCenter(newCenter, this.map.zoom + 1);\n - },\n -\n - /**\n - * Method: defaultDblRightClick \n - * \n - * Parameters:\n - * evt - {Event} \n - */\n - defaultDblRightClick: function (evt) {\n - var newCenter = this.map.getLonLatFromViewPortPx( evt.xy ); \n - this.map.setCenter(newCenter, this.map.zoom - 1);\n - },\n - \n - /**\n - * Method: wheelChange \n - *\n - * Parameters:\n - * evt - {Event}\n - * deltaZ - {Integer}\n - */\n - wheelChange: function(evt, deltaZ) {\n - var currentZoom = this.map.getZoom();\n - var newZoom = this.map.getZoom() + Math.round(deltaZ);\n - newZoom = Math.max(newZoom, 0);\n - newZoom = Math.min(newZoom, this.map.getNumZoomLevels());\n - if (newZoom === currentZoom) {\n - return;\n - }\n - var size = this.map.getSize();\n - var deltaX = size.w/2 - evt.xy.x;\n - var deltaY = evt.xy.y - size.h/2;\n - var newRes = this.map.baseLayer.getResolutionForZoom(newZoom);\n - var zoomPoint = this.map.getLonLatFromPixel(evt.xy);\n - var newCenter = new OpenLayers.LonLat(\n - zoomPoint.lon + deltaX * newRes,\n - zoomPoint.lat + deltaY * newRes );\n - this.map.setCenter( newCenter, newZoom );\n - },\n -\n - /** \n - * Method: wheelUp\n - * User spun scroll wheel up\n - * \n - * Parameters:\n - * evt - {Event}\n - * delta - {Integer}\n - */\n - wheelUp: function(evt, delta) {\n - this.wheelChange(evt, delta || 1);\n - },\n -\n - /** \n - * Method: wheelDown\n - * User spun scroll wheel down\n - * \n - * Parameters:\n - * evt - {Event}\n - * delta - {Integer}\n - */\n - wheelDown: function(evt, delta) {\n - this.wheelChange(evt, delta || -1);\n - },\n - \n - /**\n - * Method: disableZoomBox\n - */\n - disableZoomBox : function() {\n - this.zoomBoxEnabled = false;\n - this.zoomBox.deactivate(); \n - },\n - \n - /**\n - * Method: enableZoomBox\n - */\n - enableZoomBox : function() {\n - this.zoomBoxEnabled = true;\n - if (this.active) {\n - this.zoomBox.activate();\n - } \n - },\n - \n - /**\n - * Method: disableZoomWheel\n - */\n - \n - disableZoomWheel : function() {\n - this.zoomWheelEnabled = false;\n - this.handlers.wheel.deactivate(); \n - },\n - \n - /**\n - * Method: enableZoomWheel\n - */\n - \n - enableZoomWheel : function() {\n - this.zoomWheelEnabled = true;\n - if (this.active) {\n - this.handlers.wheel.activate();\n - } \n - },\n -\n - CLASS_NAME: "OpenLayers.Control.Navigation"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>9585</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/NavigationHistory.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/NavigationHistory.js.xml deleted file mode 100644 index 6d59e0ae86c23d61173e1e3f4af7dcfff8f0866f..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/NavigationHistory.js.xml +++ /dev/null @@ -1,467 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>NavigationHistory.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Control/Button.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.NavigationHistory\n - * A navigation history control. This is a meta-control, that creates two\n - * dependent controls: <previous> and <next>. Call the trigger method\n - * on the <previous> and <next> controls to restore previous and next\n - * history states. The previous and next controls will become active\n - * when there are available states to restore and will become deactive\n - * when there are no states to restore.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.NavigationHistory = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * Property: type\n - * {String} Note that this control is not intended to be added directly\n - * to a control panel. Instead, add the sub-controls previous and\n - * next. These sub-controls are button type controls that activate\n - * and deactivate themselves. If this parent control is added to\n - * a panel, it will act as a toggle.\n - */\n - type: OpenLayers.Control.TYPE_TOGGLE,\n -\n - /**\n - * APIProperty: previous\n - * {<OpenLayers.Control>} A button type control whose trigger method restores\n - * the previous state managed by this control.\n - */\n - previous: null,\n - \n - /**\n - * APIProperty: previousOptions\n - * {Object} Set this property on the options argument of the constructor\n - * to set optional properties on the <previous> control.\n - */\n - previousOptions: null,\n - \n - /**\n - * APIProperty: next\n - * {<OpenLayers.Control>} A button type control whose trigger method restores\n - * the next state managed by this control.\n - */\n - next: null,\n -\n - /**\n - * APIProperty: nextOptions\n - * {Object} Set this property on the options argument of the constructor\n - * to set optional properties on the <next> control.\n - */\n - nextOptions: null,\n -\n - /**\n - * APIProperty: limit\n - * {Integer} Optional limit on the number of history items to retain. If\n - * null, there is no limit. Default is 50.\n - */\n - limit: 50,\n -\n - /**\n - * APIProperty: autoActivate\n - * {Boolean} Activate the control when it is added to a map. Default is\n - * true.\n - */\n - autoActivate: true,\n -\n - /**\n - * Property: clearOnDeactivate\n - * {Boolean} Clear the history when the control is deactivated. Default\n - * is false.\n - */\n - clearOnDeactivate: false,\n -\n - /**\n - * Property: registry\n - * {Object} An object with keys corresponding to event types. Values\n - * are functions that return an object representing the current state.\n - */\n - registry: null,\n -\n - /**\n - * Property: nextStack\n - * {Array} Array of items in the history.\n - */\n - nextStack: null,\n -\n - /**\n - * Property: previousStack\n - * {Array} List of items in the history. First item represents the current\n - * state.\n - */\n - previousStack: null,\n - \n - /**\n - * Property: listeners\n - * {Object} An object containing properties corresponding to event types.\n - * This object is used to configure the control and is modified on\n - * construction.\n - */\n - listeners: null,\n - \n - /**\n - * Property: restoring\n - * {Boolean} Currently restoring a history state. This is set to true\n - * before calling restore and set to false after restore returns.\n - */\n - restoring: false,\n - \n - /**\n - * Constructor: OpenLayers.Control.NavigationHistory \n - * \n - * Parameters:\n - * options - {Object} An optional object whose properties will be used\n - * to extend the control.\n - */\n - initialize: function(options) {\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - \n - this.registry = OpenLayers.Util.extend({\n - "moveend": this.getState\n - }, this.registry);\n - \n - var previousOptions = {\n - trigger: OpenLayers.Function.bind(this.previousTrigger, this),\n - displayClass: this.displayClass + " " + this.displayClass + "Previous"\n - };\n - OpenLayers.Util.extend(previousOptions, this.previousOptions);\n - this.previous = new OpenLayers.Control.Button(previousOptions);\n - \n - var nextOptions = {\n - trigger: OpenLayers.Function.bind(this.nextTrigger, this),\n - displayClass: this.displayClass + " " + this.displayClass + "Next"\n - };\n - OpenLayers.Util.extend(nextOptions, this.nextOptions);\n - this.next = new OpenLayers.Control.Button(nextOptions);\n -\n - this.clear();\n - },\n - \n - /**\n - * Method: onPreviousChange\n - * Called when the previous history stack changes.\n - *\n - * Parameters:\n - * state - {Object} An object representing the state to be restored\n - * if previous is triggered again or null if no previous states remain.\n - * length - {Integer} The number of remaining previous states that can\n - * be restored.\n - */\n - onPreviousChange: function(state, length) {\n - if(state && !this.previous.active) {\n - this.previous.activate();\n - } else if(!state && this.previous.active) {\n - this.previous.deactivate();\n - }\n - },\n - \n - /**\n - * Method: onNextChange\n - * Called when the next history stack changes.\n - *\n - * Parameters:\n - * state - {Object} An object representing the state to be restored\n - * if next is triggered again or null if no next states remain.\n - * length - {Integer} The number of remaining next states that can\n - * be restored.\n - */\n - onNextChange: function(state, length) {\n - if(state && !this.next.active) {\n - this.next.activate();\n - } else if(!state && this.next.active) {\n - this.next.deactivate();\n - }\n - },\n - \n - /**\n - * APIMethod: destroy\n - * Destroy the control.\n - */\n - destroy: function() {\n - OpenLayers.Control.prototype.destroy.apply(this);\n - this.previous.destroy();\n - this.next.destroy();\n - this.deactivate();\n - for(var prop in this) {\n - this[prop] = null;\n - }\n - },\n - \n - /** \n - * Method: setMap\n - * Set the map property for the control and <previous> and <next> child\n - * controls.\n - *\n - * Parameters:\n - * map - {<OpenLayers.Map>} \n - */\n - setMap: function(map) {\n - this.map = map;\n - this.next.setMap(map);\n - this.previous.setMap(map);\n - },\n -\n - /**\n - * Method: draw\n - * Called when the control is added to the map.\n - */\n - draw: function() {\n - OpenLayers.Control.prototype.draw.apply(this, arguments);\n - this.next.draw();\n - this.previous.draw();\n - },\n - \n - /**\n - * Method: previousTrigger\n - * Restore the previous state. If no items are in the previous history\n - * stack, this has no effect.\n - *\n - * Returns:\n - * {Object} Item representing state that was restored. Undefined if no\n - * items are in the previous history stack.\n - */\n - previousTrigger: function() {\n - var current = this.previousStack.shift();\n - var state = this.previousStack.shift();\n - if(state != undefined) {\n - this.nextStack.unshift(current);\n - this.previousStack.unshift(state);\n - this.restoring = true;\n - this.restore(state);\n - this.restoring = false;\n - this.onNextChange(this.nextStack[0], this.nextStack.length);\n - this.onPreviousChange(\n - this.previousStack[1], this.previousStack.length - 1\n - );\n - } else {\n - this.previousStack.unshift(current);\n - }\n - return state;\n - },\n - \n - /**\n - * APIMethod: nextTrigger\n - * Restore the next state. If no items are in the next history\n - * stack, this has no effect. The next history stack is populated\n - * as states are restored from the previous history stack.\n - *\n - * Returns:\n - * {Object} Item representing state that was restored. Undefined if no\n - * items are in the next history stack.\n - */\n - nextTrigger: function() {\n - var state = this.nextStack.shift();\n - if(state != undefined) {\n - this.previousStack.unshift(state);\n - this.restoring = true;\n - this.restore(state);\n - this.restoring = false;\n - this.onNextChange(this.nextStack[0], this.nextStack.length);\n - this.onPreviousChange(\n - this.previousStack[1], this.previousStack.length - 1\n - );\n - }\n - return state;\n - },\n - \n - /**\n - * APIMethod: clear\n - * Clear history.\n - */\n - clear: function() {\n - this.previousStack = [];\n - this.previous.deactivate();\n - this.nextStack = [];\n - this.next.deactivate();\n - },\n -\n - /**\n - * Method: getState\n - * Get the current state and return it.\n - *\n - * Returns:\n - * {Object} An object representing the current state.\n - */\n - getState: function() {\n - return {\n - center: this.map.getCenter(),\n - resolution: this.map.getResolution(),\n - projection: this.map.getProjectionObject(),\n - units: this.map.getProjectionObject().getUnits() || \n - this.map.units || this.map.baseLayer.units\n - };\n - },\n -\n - /**\n - * Method: restore\n - * Update the state with the given object.\n - *\n - * Parameters:\n - * state - {Object} An object representing the state to restore.\n - */\n - restore: function(state) {\n - var center, zoom;\n - if (this.map.getProjectionObject() == state.projection) { \n - zoom = this.map.getZoomForResolution(state.resolution);\n - center = state.center;\n - } else {\n - center = state.center.clone();\n - center.transform(state.projection, this.map.getProjectionObject());\n - var sourceUnits = state.units;\n - var targetUnits = this.map.getProjectionObject().getUnits() || \n - this.map.units || this.map.baseLayer.units;\n - var resolutionFactor = sourceUnits && targetUnits ? \n - OpenLayers.INCHES_PER_UNIT[sourceUnits] / OpenLayers.INCHES_PER_UNIT[targetUnits] : 1;\n - zoom = this.map.getZoomForResolution(resolutionFactor*state.resolution); \n - }\n - this.map.setCenter(center, zoom);\n - },\n - \n - /**\n - * Method: setListeners\n - * Sets functions to be registered in the listeners object.\n - */\n - setListeners: function() {\n - this.listeners = {};\n - for(var type in this.registry) {\n - this.listeners[type] = OpenLayers.Function.bind(function() {\n - if(!this.restoring) {\n - var state = this.registry[type].apply(this, arguments);\n - this.previousStack.unshift(state);\n - if(this.previousStack.length > 1) {\n - this.onPreviousChange(\n - this.previousStack[1], this.previousStack.length - 1\n - );\n - }\n - if(this.previousStack.length > (this.limit + 1)) {\n - this.previousStack.pop();\n - }\n - if(this.nextStack.length > 0) {\n - this.nextStack = [];\n - this.onNextChange(null, 0);\n - }\n - }\n - return true;\n - }, this);\n - }\n - },\n -\n - /**\n - * APIMethod: activate\n - * Activate the control. This registers any listeners.\n - *\n - * Returns:\n - * {Boolean} Control successfully activated.\n - */\n - activate: function() {\n - var activated = false;\n - if(this.map) {\n - if(OpenLayers.Control.prototype.activate.apply(this)) {\n - if(this.listeners == null) {\n - this.setListeners();\n - }\n - for(var type in this.listeners) {\n - this.map.events.register(type, this, this.listeners[type]);\n - }\n - activated = true;\n - if(this.previousStack.length == 0) {\n - this.initStack();\n - }\n - }\n - }\n - return activated;\n - },\n - \n - /**\n - * Method: initStack\n - * Called after the control is activated if the previous history stack is\n - * empty.\n - */\n - initStack: function() {\n - if(this.map.getCenter()) {\n - this.listeners.moveend();\n - }\n - },\n - \n - /**\n - * APIMethod: deactivate\n - * Deactivate the control. This unregisters any listeners.\n - *\n - * Returns:\n - * {Boolean} Control successfully deactivated.\n - */\n - deactivate: function() {\n - var deactivated = false;\n - if(this.map) {\n - if(OpenLayers.Control.prototype.deactivate.apply(this)) {\n - for(var type in this.listeners) {\n - this.map.events.unregister(\n - type, this, this.listeners[type]\n - );\n - }\n - if(this.clearOnDeactivate) {\n - this.clear();\n - }\n - deactivated = true;\n - }\n - }\n - return deactivated;\n - },\n - \n - CLASS_NAME: "OpenLayers.Control.NavigationHistory"\n -});\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>13519</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/OverviewMap.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/OverviewMap.js.xml deleted file mode 100644 index a1d1de85dca1ae778fc55374579a8d9169ad7b79..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/OverviewMap.js.xml +++ /dev/null @@ -1,767 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>OverviewMap.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/** \n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/BaseTypes.js\n - * @requires OpenLayers/Events/buttonclick.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.OverviewMap\n - * The OverMap control creates a small overview map, useful to display the \n - * extent of a zoomed map and your main map and provide additional \n - * navigation options to the User. By default the overview map is drawn in\n - * the lower right corner of the main map. Create a new overview map with the\n - * <OpenLayers.Control.OverviewMap> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.OverviewMap = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * Property: element\n - * {DOMElement} The DOM element that contains the overview map\n - */\n - element: null,\n - \n - /**\n - * APIProperty: ovmap\n - * {<OpenLayers.Map>} A reference to the overview map itself.\n - */\n - ovmap: null,\n -\n - /**\n - * APIProperty: size\n - * {<OpenLayers.Size>} The overvew map size in pixels. Note that this is\n - * the size of the map itself - the element that contains the map (default\n - * class name olControlOverviewMapElement) may have padding or other style\n - * attributes added via CSS.\n - */\n - size: {w: 180, h: 90},\n -\n - /**\n - * APIProperty: layers\n - * {Array(<OpenLayers.Layer>)} Ordered list of layers in the overview map.\n - * If none are sent at construction, the base layer for the main map is used.\n - */\n - layers: null,\n - \n - /**\n - * APIProperty: minRectSize\n - * {Integer} The minimum width or height (in pixels) of the extent\n - * rectangle on the overview map. When the extent rectangle reaches\n - * this size, it will be replaced depending on the value of the\n - * <minRectDisplayClass> property. Default is 15 pixels.\n - */\n - minRectSize: 15,\n - \n - /**\n - * APIProperty: minRectDisplayClass\n - * {String} Replacement style class name for the extent rectangle when\n - * <minRectSize> is reached. This string will be suffixed on to the\n - * displayClass. Default is "RectReplacement".\n - *\n - * Example CSS declaration:\n - * (code)\n - * .olControlOverviewMapRectReplacement {\n - * overflow: hidden;\n - * cursor: move;\n - * background-image: url("img/overview_replacement.gif");\n - * background-repeat: no-repeat;\n - * background-position: center;\n - * }\n - * (end)\n - */\n - minRectDisplayClass: "RectReplacement",\n -\n - /**\n - * APIProperty: minRatio\n - * {Float} The ratio of the overview map resolution to the main map\n - * resolution at which to zoom farther out on the overview map.\n - */\n - minRatio: 8,\n -\n - /**\n - * APIProperty: maxRatio\n - * {Float} The ratio of the overview map resolution to the main map\n - * resolution at which to zoom farther in on the overview map.\n - */\n - maxRatio: 32,\n - \n - /**\n - * APIProperty: mapOptions\n - * {Object} An object containing any non-default properties to be sent to\n - * the overview map\'s map constructor. These should include any\n - * non-default options that the main map was constructed with.\n - */\n - mapOptions: null,\n -\n - /**\n - * APIProperty: autoPan\n - * {Boolean} Always pan the overview map, so the extent marker remains in\n - * the center. Default is false. If true, when you drag the extent\n - * marker, the overview map will update itself so the marker returns\n - * to the center.\n - */\n - autoPan: false,\n - \n - /**\n - * Property: handlers\n - * {Object}\n - */\n - handlers: null,\n -\n - /**\n - * Property: resolutionFactor\n - * {Object}\n - */\n - resolutionFactor: 1,\n -\n - /**\n - * APIProperty: maximized\n - * {Boolean} Start as maximized (visible). Defaults to false.\n - */\n - maximized: false,\n -\n - /**\n - * Constructor: OpenLayers.Control.OverviewMap\n - * Create a new overview map\n - *\n - * Parameters:\n - * options - {Object} Properties of this object will be set on the overview\n - * map object. Note, to set options on the map object contained in this\n - * control, set <mapOptions> as one of the options properties.\n - */\n - initialize: function(options) {\n - this.layers = [];\n - this.handlers = {};\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - },\n - \n - /**\n - * APIMethod: destroy\n - * Deconstruct the control\n - */\n - destroy: function() {\n - if (!this.mapDiv) { // we\'ve already been destroyed\n - return;\n - }\n - if (this.handlers.click) {\n - this.handlers.click.destroy();\n - }\n - if (this.handlers.drag) {\n - this.handlers.drag.destroy();\n - }\n -\n - this.ovmap && this.ovmap.viewPortDiv.removeChild(this.extentRectangle);\n - this.extentRectangle = null;\n -\n - if (this.rectEvents) {\n - this.rectEvents.destroy();\n - this.rectEvents = null;\n - }\n -\n - if (this.ovmap) {\n - this.ovmap.destroy();\n - this.ovmap = null;\n - }\n - \n - this.element.removeChild(this.mapDiv);\n - this.mapDiv = null;\n -\n - this.div.removeChild(this.element);\n - this.element = null;\n -\n - if (this.maximizeDiv) {\n - this.div.removeChild(this.maximizeDiv);\n - this.maximizeDiv = null;\n - }\n - \n - if (this.minimizeDiv) {\n - this.div.removeChild(this.minimizeDiv);\n - this.minimizeDiv = null;\n - }\n -\n - this.map.events.un({\n - buttonclick: this.onButtonClick,\n - moveend: this.update,\n - changebaselayer: this.baseLayerDraw,\n - scope: this\n - });\n -\n - OpenLayers.Control.prototype.destroy.apply(this, arguments); \n - },\n -\n - /**\n - * Method: draw\n - * Render the control in the browser.\n - */ \n - draw: function() {\n - OpenLayers.Control.prototype.draw.apply(this, arguments);\n - if (this.layers.length === 0) {\n - if (this.map.baseLayer) {\n - var layer = this.map.baseLayer.clone();\n - this.layers = [layer];\n - } else {\n - this.map.events.register("changebaselayer", this, this.baseLayerDraw);\n - return this.div;\n - }\n - }\n -\n - // create overview map DOM elements\n - this.element = document.createElement(\'div\');\n - this.element.className = this.displayClass + \'Element\';\n - this.element.style.display = \'none\';\n -\n - this.mapDiv = document.createElement(\'div\');\n - this.mapDiv.style.width = this.size.w + \'px\';\n - this.mapDiv.style.height = this.size.h + \'px\';\n - this.mapDiv.style.position = \'relative\';\n - this.mapDiv.style.overflow = \'hidden\';\n - this.mapDiv.id = OpenLayers.Util.createUniqueID(\'overviewMap\');\n - \n - this.extentRectangle = document.createElement(\'div\');\n - this.extentRectangle.style.position = \'absolute\';\n - this.extentRectangle.style.zIndex = 1000; //HACK\n - this.extentRectangle.className = this.displayClass+\'ExtentRectangle\';\n -\n - this.element.appendChild(this.mapDiv); \n -\n - this.div.appendChild(this.element);\n -\n - // Optionally add min/max buttons if the control will go in the\n - // map viewport.\n - if(!this.outsideViewport) {\n - this.div.className += " " + this.displayClass + \'Container\';\n - // maximize button div\n - var img = OpenLayers.Util.getImageLocation(\'layer-switcher-maximize.png\');\n - this.maximizeDiv = OpenLayers.Util.createAlphaImageDiv(\n - this.displayClass + \'MaximizeButton\', \n - null, \n - null, \n - img, \n - \'absolute\');\n - this.maximizeDiv.style.display = \'none\';\n - this.maximizeDiv.className = this.displayClass + \'MaximizeButton olButton\';\n - this.div.appendChild(this.maximizeDiv);\n - \n - // minimize button div\n - var img = OpenLayers.Util.getImageLocation(\'layer-switcher-minimize.png\');\n - this.minimizeDiv = OpenLayers.Util.createAlphaImageDiv(\n - \'OpenLayers_Control_minimizeDiv\', \n - null, \n - null, \n - img, \n - \'absolute\');\n - this.minimizeDiv.style.display = \'none\';\n - this.minimizeDiv.className = this.displayClass + \'MinimizeButton olButton\';\n - this.div.appendChild(this.minimizeDiv); \n - this.minimizeControl();\n - } else {\n - // show the overview map\n - this.element.style.display = \'\';\n - }\n - if(this.map.getExtent()) {\n - this.update();\n - }\n - \n - this.map.events.on({\n - buttonclick: this.onButtonClick,\n - moveend: this.update,\n - scope: this\n - });\n - \n - if (this.maximized) {\n - this.maximizeControl();\n - }\n - return this.div;\n - },\n - \n - /**\n - * Method: baseLayerDraw\n - * Draw the base layer - called if unable to complete in the initial draw\n - */\n - baseLayerDraw: function() {\n - this.draw();\n - this.map.events.unregister("changebaselayer", this, this.baseLayerDraw);\n - },\n -\n - /**\n - * Method: rectDrag\n - * Handle extent rectangle drag\n - *\n - * Parameters:\n - * px - {<OpenLayers.Pixel>} The pixel location of the drag.\n - */\n - rectDrag: function(px) {\n - var deltaX = this.handlers.drag.last.x - px.x;\n - var deltaY = this.handlers.drag.last.y - px.y;\n - if(deltaX != 0 || deltaY != 0) {\n - var rectTop = this.rectPxBounds.top;\n - var rectLeft = this.rectPxBounds.left;\n - var rectHeight = Math.abs(this.rectPxBounds.getHeight());\n - var rectWidth = this.rectPxBounds.getWidth();\n - // don\'t allow dragging off of parent element\n - var newTop = Math.max(0, (rectTop - deltaY));\n - newTop = Math.min(newTop,\n - this.ovmap.size.h - this.hComp - rectHeight);\n - var newLeft = Math.max(0, (rectLeft - deltaX));\n - newLeft = Math.min(newLeft,\n - this.ovmap.size.w - this.wComp - rectWidth);\n - this.setRectPxBounds(new OpenLayers.Bounds(newLeft,\n - newTop + rectHeight,\n - newLeft + rectWidth,\n - newTop));\n - }\n - },\n - \n - /**\n - * Method: mapDivClick\n - * Handle browser events\n - *\n - * Parameters:\n - * evt - {<OpenLayers.Event>} evt\n - */\n - mapDivClick: function(evt) {\n - var pxCenter = this.rectPxBounds.getCenterPixel();\n - var deltaX = evt.xy.x - pxCenter.x;\n - var deltaY = evt.xy.y - pxCenter.y;\n - var top = this.rectPxBounds.top;\n - var left = this.rectPxBounds.left;\n - var height = Math.abs(this.rectPxBounds.getHeight());\n - var width = this.rectPxBounds.getWidth();\n - var newTop = Math.max(0, (top + deltaY));\n - newTop = Math.min(newTop, this.ovmap.size.h - height);\n - var newLeft = Math.max(0, (left + deltaX));\n - newLeft = Math.min(newLeft, this.ovmap.size.w - width);\n - this.setRectPxBounds(new OpenLayers.Bounds(newLeft,\n - newTop + height,\n - newLeft + width,\n - newTop));\n - this.updateMapToRect();\n - },\n - \n - /**\n - * Method: onButtonClick\n - *\n - * Parameters:\n - * evt - {Event}\n - */\n - onButtonClick: function(evt) {\n - if (evt.buttonElement === this.minimizeDiv) {\n - this.minimizeControl();\n - } else if (evt.buttonElement === this.maximizeDiv) {\n - this.maximizeControl();\n - }\n - },\n -\n - /**\n - * Method: maximizeControl\n - * Unhide the control. Called when the control is in the map viewport.\n - *\n - * Parameters:\n - * e - {<OpenLayers.Event>}\n - */\n - maximizeControl: function(e) {\n - this.element.style.display = \'\';\n - this.showToggle(false);\n - if (e != null) {\n - OpenLayers.Event.stop(e); \n - }\n - },\n -\n - /**\n - * Method: minimizeControl\n - * Hide all the contents of the control, shrink the size, \n - * add the maximize icon\n - * \n - * Parameters:\n - * e - {<OpenLayers.Event>}\n - */\n - minimizeControl: function(e) {\n - this.element.style.display = \'none\';\n - this.showToggle(true);\n - if (e != null) {\n - OpenLayers.Event.stop(e); \n - }\n - },\n -\n - /**\n - * Method: showToggle\n - * Hide/Show the toggle depending on whether the control is minimized\n - *\n - * Parameters:\n - * minimize - {Boolean} \n - */\n - showToggle: function(minimize) {\n - this.maximizeDiv.style.display = minimize ? \'\' : \'none\';\n - this.minimizeDiv.style.display = minimize ? \'none\' : \'\';\n - },\n -\n - /**\n - * Method: update\n - * Update the overview map after layers move.\n - */\n - update: function() {\n - if(this.ovmap == null) {\n - this.createMap();\n - }\n - \n - if(this.autoPan || !this.isSuitableOverview()) {\n - this.updateOverview();\n - }\n - \n - // update extent rectangle\n - this.updateRectToMap();\n - },\n - \n - /**\n - * Method: isSuitableOverview\n - * Determines if the overview map is suitable given the extent and\n - * resolution of the main map.\n - */\n - isSuitableOverview: function() {\n - var mapExtent = this.map.getExtent();\n - var maxExtent = this.map.maxExtent;\n - var testExtent = new OpenLayers.Bounds(\n - Math.max(mapExtent.left, maxExtent.left),\n - Math.max(mapExtent.bottom, maxExtent.bottom),\n - Math.min(mapExtent.right, maxExtent.right),\n - Math.min(mapExtent.top, maxExtent.top)); \n -\n - if (this.ovmap.getProjection() != this.map.getProjection()) {\n - testExtent = testExtent.transform(\n - this.map.getProjectionObject(),\n - this.ovmap.getProjectionObject() );\n - }\n -\n - var resRatio = this.ovmap.getResolution() / this.map.getResolution();\n - return ((resRatio > this.minRatio) &&\n - (resRatio <= this.maxRatio) &&\n - (this.ovmap.getExtent().containsBounds(testExtent)));\n - },\n - \n - /**\n - * Method updateOverview\n - * Called by <update> if <isSuitableOverview> returns true\n - */\n - updateOverview: function() {\n - var mapRes = this.map.getResolution();\n - var targetRes = this.ovmap.getResolution();\n - var resRatio = targetRes / mapRes;\n - if(resRatio > this.maxRatio) {\n - // zoom in overview map\n - targetRes = this.minRatio * mapRes; \n - } else if(resRatio <= this.minRatio) {\n - // zoom out overview map\n - targetRes = this.maxRatio * mapRes;\n - }\n - var center;\n - if (this.ovmap.getProjection() != this.map.getProjection()) {\n - center = this.map.center.clone();\n - center.transform(this.map.getProjectionObject(),\n - this.ovmap.getProjectionObject() );\n - } else {\n - center = this.map.center;\n - }\n - this.ovmap.setCenter(center, this.ovmap.getZoomForResolution(\n - targetRes * this.resolutionFactor));\n - this.updateRectToMap();\n - },\n - \n - /**\n - * Method: createMap\n - * Construct the map that this control contains\n - */\n - createMap: function() {\n - // create the overview map\n - var options = OpenLayers.Util.extend(\n - {controls: [], maxResolution: \'auto\', \n - fallThrough: false}, this.mapOptions);\n - this.ovmap = new OpenLayers.Map(this.mapDiv, options);\n - this.ovmap.viewPortDiv.appendChild(this.extentRectangle);\n - \n - // prevent ovmap from being destroyed when the page unloads, because\n - // the OverviewMap control has to do this (and does it).\n - OpenLayers.Event.stopObserving(window, \'unload\', this.ovmap.unloadDestroy);\n - \n - this.ovmap.addLayers(this.layers);\n - this.ovmap.zoomToMaxExtent();\n - // check extent rectangle border width\n - this.wComp = parseInt(OpenLayers.Element.getStyle(this.extentRectangle,\n - \'border-left-width\')) +\n - parseInt(OpenLayers.Element.getStyle(this.extentRectangle,\n - \'border-right-width\'));\n - this.wComp = (this.wComp) ? this.wComp : 2;\n - this.hComp = parseInt(OpenLayers.Element.getStyle(this.extentRectangle,\n - \'border-top-width\')) +\n - parseInt(OpenLayers.Element.getStyle(this.extentRectangle,\n - \'border-bottom-width\'));\n - this.hComp = (this.hComp) ? this.hComp : 2;\n -\n - this.handlers.drag = new OpenLayers.Handler.Drag(\n - this, {move: this.rectDrag, done: this.updateMapToRect},\n - {map: this.ovmap}\n - );\n - this.handlers.click = new OpenLayers.Handler.Click(\n - this, {\n - "click": this.mapDivClick\n - },{\n - "single": true, "double": false,\n - "stopSingle": true, "stopDouble": true,\n - "pixelTolerance": 1,\n - map: this.ovmap\n - }\n - );\n - this.handlers.click.activate();\n - \n - this.rectEvents = new OpenLayers.Events(this, this.extentRectangle,\n - null, true);\n - this.rectEvents.register("mouseover", this, function(e) {\n - if(!this.handlers.drag.active && !this.map.dragging) {\n - this.handlers.drag.activate();\n - }\n - });\n - this.rectEvents.register("mouseout", this, function(e) {\n - if(!this.handlers.drag.dragging) {\n - this.handlers.drag.deactivate();\n - }\n - });\n -\n - if (this.ovmap.getProjection() != this.map.getProjection()) {\n - var sourceUnits = this.map.getProjectionObject().getUnits() ||\n - this.map.units || this.map.baseLayer.units;\n - var targetUnits = this.ovmap.getProjectionObject().getUnits() ||\n - this.ovmap.units || this.ovmap.baseLayer.units;\n - this.resolutionFactor = sourceUnits && targetUnits ?\n - OpenLayers.INCHES_PER_UNIT[sourceUnits] /\n - OpenLayers.INCHES_PER_UNIT[targetUnits] : 1;\n - }\n - },\n - \n - /**\n - * Method: updateRectToMap\n - * Updates the extent rectangle position and size to match the map extent\n - */\n - updateRectToMap: function() {\n - // If the projections differ we need to reproject\n - var bounds;\n - if (this.ovmap.getProjection() != this.map.getProjection()) {\n - bounds = this.map.getExtent().transform(\n - this.map.getProjectionObject(), \n - this.ovmap.getProjectionObject() );\n - } else {\n - bounds = this.map.getExtent();\n - }\n - var pxBounds = this.getRectBoundsFromMapBounds(bounds);\n - if (pxBounds) {\n - this.setRectPxBounds(pxBounds);\n - }\n - },\n - \n - /**\n - * Method: updateMapToRect\n - * Updates the map extent to match the extent rectangle position and size\n - */\n - updateMapToRect: function() {\n - var lonLatBounds = this.getMapBoundsFromRectBounds(this.rectPxBounds);\n - if (this.ovmap.getProjection() != this.map.getProjection()) {\n - lonLatBounds = lonLatBounds.transform(\n - this.ovmap.getProjectionObject(),\n - this.map.getProjectionObject() );\n - }\n - this.map.panTo(lonLatBounds.getCenterLonLat());\n - },\n -\n - /**\n - * Method: setRectPxBounds\n - * Set extent rectangle pixel bounds.\n - *\n - * Parameters:\n - * pxBounds - {<OpenLayers.Bounds>}\n - */\n - setRectPxBounds: function(pxBounds) {\n - var top = Math.max(pxBounds.top, 0);\n - var left = Math.max(pxBounds.left, 0);\n - var bottom = Math.min(pxBounds.top + Math.abs(pxBounds.getHeight()),\n - this.ovmap.size.h - this.hComp);\n - var right = Math.min(pxBounds.left + pxBounds.getWidth(),\n - this.ovmap.size.w - this.wComp);\n - var width = Math.max(right - left, 0);\n - var height = Math.max(bottom - top, 0);\n - if(width < this.minRectSize || height < this.minRectSize) {\n - this.extentRectangle.className = this.displayClass +\n - this.minRectDisplayClass;\n - var rLeft = left + (width / 2) - (this.minRectSize / 2);\n - var rTop = top + (height / 2) - (this.minRectSize / 2);\n - this.extentRectangle.style.top = Math.round(rTop) + \'px\';\n - this.extentRectangle.style.left = Math.round(rLeft) + \'px\';\n - this.extentRectangle.style.height = this.minRectSize + \'px\';\n - this.extentRectangle.style.width = this.minRectSize + \'px\';\n - } else {\n - this.extentRectangle.className = this.displayClass +\n - \'ExtentRectangle\';\n - this.extentRectangle.style.top = Math.round(top) + \'px\';\n - this.extentRectangle.style.left = Math.round(left) + \'px\';\n - this.extentRectangle.style.height = Math.round(height) + \'px\';\n - this.extentRectangle.style.width = Math.round(width) + \'px\';\n - }\n - this.rectPxBounds = new OpenLayers.Bounds(\n - Math.round(left), Math.round(bottom),\n - Math.round(right), Math.round(top)\n - );\n - },\n -\n - /**\n - * Method: getRectBoundsFromMapBounds\n - * Get the rect bounds from the map bounds.\n - *\n - * Parameters:\n - * lonLatBounds - {<OpenLayers.Bounds>}\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>}A bounds which is the passed-in map lon/lat extent\n - * translated into pixel bounds for the overview map\n - */\n - getRectBoundsFromMapBounds: function(lonLatBounds) {\n - var leftBottomPx = this.getOverviewPxFromLonLat({\n - lon: lonLatBounds.left,\n - lat: lonLatBounds.bottom\n - });\n - var rightTopPx = this.getOverviewPxFromLonLat({\n - lon: lonLatBounds.right,\n - lat: lonLatBounds.top\n - });\n - var bounds = null;\n - if (leftBottomPx && rightTopPx) {\n - bounds = new OpenLayers.Bounds(leftBottomPx.x, leftBottomPx.y,\n - rightTopPx.x, rightTopPx.y);\n - }\n - return bounds;\n - },\n -\n - /**\n - * Method: getMapBoundsFromRectBounds\n - * Get the map bounds from the rect bounds.\n - *\n - * Parameters:\n - * pxBounds - {<OpenLayers.Bounds>}\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>} Bounds which is the passed-in overview rect bounds\n - * translated into lon/lat bounds for the overview map\n - */\n - getMapBoundsFromRectBounds: function(pxBounds) {\n - var leftBottomLonLat = this.getLonLatFromOverviewPx({\n - x: pxBounds.left,\n - y: pxBounds.bottom\n - });\n - var rightTopLonLat = this.getLonLatFromOverviewPx({\n - x: pxBounds.right,\n - y: pxBounds.top\n - });\n - return new OpenLayers.Bounds(leftBottomLonLat.lon, leftBottomLonLat.lat,\n - rightTopLonLat.lon, rightTopLonLat.lat);\n - },\n -\n - /**\n - * Method: getLonLatFromOverviewPx\n - * Get a map location from a pixel location\n - *\n - * Parameters:\n - * overviewMapPx - {<OpenLayers.Pixel>|Object} OpenLayers.Pixel or\n - * an object with a\n - * \'x\' and \'y\' properties.\n - *\n - * Returns:\n - * {Object} Location which is the passed-in overview map\n - * OpenLayers.Pixel, translated into lon/lat by the overview\n - * map. An object with a \'lon\' and \'lat\' properties.\n - */\n - getLonLatFromOverviewPx: function(overviewMapPx) {\n - var size = this.ovmap.size;\n - var res = this.ovmap.getResolution();\n - var center = this.ovmap.getExtent().getCenterLonLat();\n - \n - var deltaX = overviewMapPx.x - (size.w / 2);\n - var deltaY = overviewMapPx.y - (size.h / 2);\n -\n - return {\n - lon: center.lon + deltaX * res,\n - lat: center.lat - deltaY * res\n - };\n - },\n -\n - /**\n - * Method: getOverviewPxFromLonLat\n - * Get a pixel location from a map location\n - *\n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>|Object} OpenLayers.LonLat or an\n - * object with a \'lon\' and \'lat\' properties.\n - *\n - * Returns:\n - * {Object} Location which is the passed-in OpenLayers.LonLat, \n - * translated into overview map pixels\n - */\n - getOverviewPxFromLonLat: function(lonlat) {\n - var res = this.ovmap.getResolution();\n - var extent = this.ovmap.getExtent();\n - if (extent) {\n - return {\n - x: Math.round(1/res * (lonlat.lon - extent.left)),\n - y: Math.round(1/res * (extent.top - lonlat.lat))\n - };\n - } \n - },\n -\n - CLASS_NAME: \'OpenLayers.Control.OverviewMap\'\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>25888</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Pan.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Pan.js.xml deleted file mode 100644 index f831742cbd53f3e38b02019a8bb12bc99d97dd0e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Pan.js.xml +++ /dev/null @@ -1,146 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Pan.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.Pan\n - * The Pan control is a single button to pan the map in one direction. For\n - * a more complete control see <OpenLayers.Control.PanPanel>.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.Pan = OpenLayers.Class(OpenLayers.Control, {\n -\n - /** \n - * APIProperty: slideFactor\n - * {Integer} Number of pixels by which we\'ll pan the map in any direction \n - * on clicking the arrow buttons, defaults to 50. If you want to pan\n - * by some ratio of the map dimensions, use <slideRatio> instead.\n - */\n - slideFactor: 50,\n -\n - /** \n - * APIProperty: slideRatio\n - * {Number} The fraction of map width/height by which we\'ll pan the map \n - * on clicking the arrow buttons. Default is null. If set, will\n - * override <slideFactor>. E.g. if slideRatio is .5, then Pan Up will\n - * pan up half the map height. \n - */\n - slideRatio: null,\n -\n - /** \n - * Property: direction\n - * {String} in {\'North\', \'South\', \'East\', \'West\'}\n - */\n - direction: null,\n -\n - /**\n - * Property: type\n - * {String} The type of <OpenLayers.Control> -- When added to a \n - * <Control.Panel>, \'type\' is used by the panel to determine how to \n - * handle our events.\n - */\n - type: OpenLayers.Control.TYPE_BUTTON,\n -\n - /**\n - * Constructor: OpenLayers.Control.Pan \n - * Control which handles the panning (in any of the cardinal directions)\n - * of the map by a set px distance. \n - *\n - * Parameters:\n - * direction - {String} The direction this button should pan.\n - * options - {Object} An optional object whose properties will be used\n - * to extend the control.\n - */\n - initialize: function(direction, options) {\n - \n - this.direction = direction;\n - this.CLASS_NAME += this.direction;\n - \n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - },\n - \n - /**\n - * Method: trigger\n - */\n - trigger: function(){\n - \n - var getSlideFactor = OpenLayers.Function.bind(function (dim) {\n - return this.slideRatio ?\n - this.map.getSize()[dim] * this.slideRatio :\n - this.slideFactor;\n - }, this);\n -\n - switch (this.direction) {\n - case OpenLayers.Control.Pan.NORTH: \n - this.map.pan(0, -getSlideFactor("h"));\n - break;\n - case OpenLayers.Control.Pan.SOUTH: \n - this.map.pan(0, getSlideFactor("h"));\n - break;\n - case OpenLayers.Control.Pan.WEST: \n - this.map.pan(-getSlideFactor("w"), 0);\n - break;\n - case OpenLayers.Control.Pan.EAST: \n - this.map.pan(getSlideFactor("w"), 0);\n - break;\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.Pan"\n -});\n -\n -OpenLayers.Control.Pan.NORTH = "North";\n -OpenLayers.Control.Pan.SOUTH = "South";\n -OpenLayers.Control.Pan.EAST = "East";\n -OpenLayers.Control.Pan.WEST = "West";\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3270</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/PanPanel.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/PanPanel.js.xml deleted file mode 100644 index 7ef74a998141a16867c00c2181b8cd739ddf8e93..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/PanPanel.js.xml +++ /dev/null @@ -1,117 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>PanPanel.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control/Panel.js\n - * @requires OpenLayers/Control/Pan.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.PanPanel\n - * The PanPanel is visible control for panning the map North, South, East or\n - * West in small steps. By default it is drawn in the top left corner of the\n - * map.\n - *\n - * Note: \n - * If you wish to use this class with the default images and you want \n - * it to look nice in ie6, you should add the following, conditionally\n - * added css stylesheet to your HTML file:\n - * \n - * (code)\n - * <!--[if lte IE 6]>\n - * <link rel="stylesheet" href="../theme/default/ie6-style.css" type="text/css" />\n - * <![endif]-->\n - * (end)\n - *\n - * Inherits from:\n - * - <OpenLayers.Control.Panel> \n - */\n -OpenLayers.Control.PanPanel = OpenLayers.Class(OpenLayers.Control.Panel, {\n -\n - /** \n - * APIProperty: slideFactor\n - * {Integer} Number of pixels by which we\'ll pan the map in any direction \n - * on clicking the arrow buttons, defaults to 50. If you want to pan\n - * by some ratio of the map dimensions, use <slideRatio> instead.\n - */\n - slideFactor: 50,\n -\n - /** \n - * APIProperty: slideRatio\n - * {Number} The fraction of map width/height by which we\'ll pan the map \n - * on clicking the arrow buttons. Default is null. If set, will\n - * override <slideFactor>. E.g. if slideRatio is .5, then Pan Up will\n - * pan up half the map height. \n - */\n - slideRatio: null,\n -\n - /**\n - * Constructor: OpenLayers.Control.PanPanel \n - * Add the four directional pan buttons.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be used\n - * to extend the control.\n - */\n - initialize: function(options) {\n - OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]);\n - var options = {\n - slideFactor: this.slideFactor,\n - slideRatio: this.slideRatio\n - };\n - this.addControls([\n - new OpenLayers.Control.Pan(OpenLayers.Control.Pan.NORTH, options),\n - new OpenLayers.Control.Pan(OpenLayers.Control.Pan.SOUTH, options),\n - new OpenLayers.Control.Pan(OpenLayers.Control.Pan.EAST, options),\n - new OpenLayers.Control.Pan(OpenLayers.Control.Pan.WEST, options)\n - ]);\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.PanPanel"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2578</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/PanZoom.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/PanZoom.js.xml deleted file mode 100644 index 8a839709c06132046f0f26608fb390447223fe73..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/PanZoom.js.xml +++ /dev/null @@ -1,277 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>PanZoom.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Events/buttonclick.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.PanZoom\n - * The PanZoom is a visible control, composed of a\n - * <OpenLayers.Control.PanPanel> and a <OpenLayers.Control.ZoomPanel>. By\n - * default it is drawn in the upper left corner of the map.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.PanZoom = OpenLayers.Class(OpenLayers.Control, {\n -\n - /** \n - * APIProperty: slideFactor\n - * {Integer} Number of pixels by which we\'ll pan the map in any direction \n - * on clicking the arrow buttons. If you want to pan by some ratio\n - * of the map dimensions, use <slideRatio> instead.\n - */\n - slideFactor: 50,\n -\n - /** \n - * APIProperty: slideRatio\n - * {Number} The fraction of map width/height by which we\'ll pan the map \n - * on clicking the arrow buttons. Default is null. If set, will\n - * override <slideFactor>. E.g. if slideRatio is .5, then the Pan Up\n - * button will pan up half the map height. \n - */\n - slideRatio: null,\n -\n - /** \n - * Property: buttons\n - * {Array(DOMElement)} Array of Button Divs \n - */\n - buttons: null,\n -\n - /** \n - * Property: position\n - * {<OpenLayers.Pixel>} \n - */\n - position: null,\n -\n - /**\n - * Constructor: OpenLayers.Control.PanZoom\n - * \n - * Parameters:\n - * options - {Object}\n - */\n - initialize: function(options) {\n - this.position = new OpenLayers.Pixel(OpenLayers.Control.PanZoom.X,\n - OpenLayers.Control.PanZoom.Y);\n - OpenLayers.Control.prototype.initialize.apply(this, arguments);\n - },\n -\n - /**\n - * APIMethod: destroy\n - */\n - destroy: function() {\n - if (this.map) {\n - this.map.events.unregister("buttonclick", this, this.onButtonClick);\n - }\n - this.removeButtons();\n - this.buttons = null;\n - this.position = null;\n - OpenLayers.Control.prototype.destroy.apply(this, arguments);\n - },\n -\n - /** \n - * Method: setMap\n - *\n - * Properties:\n - * map - {<OpenLayers.Map>} \n - */\n - setMap: function(map) {\n - OpenLayers.Control.prototype.setMap.apply(this, arguments);\n - this.map.events.register("buttonclick", this, this.onButtonClick);\n - },\n -\n - /**\n - * Method: draw\n - *\n - * Parameters:\n - * px - {<OpenLayers.Pixel>} \n - * \n - * Returns:\n - * {DOMElement} A reference to the container div for the PanZoom control.\n - */\n - draw: function(px) {\n - // initialize our internal div\n - OpenLayers.Control.prototype.draw.apply(this, arguments);\n - px = this.position;\n -\n - // place the controls\n - this.buttons = [];\n -\n - var sz = {w: 18, h: 18};\n - var centered = new OpenLayers.Pixel(px.x+sz.w/2, px.y);\n -\n - this._addButton("panup", "north-mini.png", centered, sz);\n - px.y = centered.y+sz.h;\n - this._addButton("panleft", "west-mini.png", px, sz);\n - this._addButton("panright", "east-mini.png", px.add(sz.w, 0), sz);\n - this._addButton("pandown", "south-mini.png", \n - centered.add(0, sz.h*2), sz);\n - this._addButton("zoomin", "zoom-plus-mini.png", \n - centered.add(0, sz.h*3+5), sz);\n - this._addButton("zoomworld", "zoom-world-mini.png", \n - centered.add(0, sz.h*4+5), sz);\n - this._addButton("zoomout", "zoom-minus-mini.png", \n - centered.add(0, sz.h*5+5), sz);\n - return this.div;\n - },\n - \n - /**\n - * Method: _addButton\n - * \n - * Parameters:\n - * id - {String} \n - * img - {String} \n - * xy - {<OpenLayers.Pixel>} \n - * sz - {<OpenLayers.Size>} \n - * \n - * Returns:\n - * {DOMElement} A Div (an alphaImageDiv, to be precise) that contains the\n - * image of the button, and has all the proper event handlers set.\n - */\n - _addButton:function(id, img, xy, sz) {\n - var imgLocation = OpenLayers.Util.getImageLocation(img);\n - var btn = OpenLayers.Util.createAlphaImageDiv(\n - this.id + "_" + id, \n - xy, sz, imgLocation, "absolute");\n - btn.style.cursor = "pointer";\n - //we want to add the outer div\n - this.div.appendChild(btn);\n - btn.action = id;\n - btn.className = "olButton";\n - \n - //we want to remember/reference the outer div\n - this.buttons.push(btn);\n - return btn;\n - },\n - \n - /**\n - * Method: _removeButton\n - * \n - * Parameters:\n - * btn - {Object}\n - */\n - _removeButton: function(btn) {\n - this.div.removeChild(btn);\n - OpenLayers.Util.removeItem(this.buttons, btn);\n - },\n - \n - /**\n - * Method: removeButtons\n - */\n - removeButtons: function() {\n - for(var i=this.buttons.length-1; i>=0; --i) {\n - this._removeButton(this.buttons[i]);\n - }\n - },\n - \n - /**\n - * Method: onButtonClick\n - *\n - * Parameters:\n - * evt - {Event}\n - */\n - onButtonClick: function(evt) {\n - var btn = evt.buttonElement;\n - switch (btn.action) {\n - case "panup": \n - this.map.pan(0, -this.getSlideFactor("h"));\n - break;\n - case "pandown": \n - this.map.pan(0, this.getSlideFactor("h"));\n - break;\n - case "panleft": \n - this.map.pan(-this.getSlideFactor("w"), 0);\n - break;\n - case "panright": \n - this.map.pan(this.getSlideFactor("w"), 0);\n - break;\n - case "zoomin": \n - this.map.zoomIn(); \n - break;\n - case "zoomout": \n - this.map.zoomOut(); \n - break;\n - case "zoomworld": \n - this.map.zoomToMaxExtent(); \n - break;\n - }\n - },\n - \n - /**\n - * Method: getSlideFactor\n - *\n - * Parameters:\n - * dim - {String} "w" or "h" (for width or height).\n - *\n - * Returns:\n - * {Number} The slide factor for panning in the requested direction.\n - */\n - getSlideFactor: function(dim) {\n - return this.slideRatio ?\n - this.map.getSize()[dim] * this.slideRatio :\n - this.slideFactor;\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.PanZoom"\n -});\n -\n -/**\n - * Constant: X\n - * {Integer}\n - */\n -OpenLayers.Control.PanZoom.X = 4;\n -\n -/**\n - * Constant: Y\n - * {Integer}\n - */\n -OpenLayers.Control.PanZoom.Y = 4;\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6681</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/PanZoomBar.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/PanZoomBar.js.xml deleted file mode 100644 index a9a197441f25cd5de8c66e58080f35c62209df2e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/PanZoomBar.js.xml +++ /dev/null @@ -1,445 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>PanZoomBar.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Control/PanZoom.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.PanZoomBar\n - * The PanZoomBar is a visible control composed of a\n - * <OpenLayers.Control.PanPanel> and a <OpenLayers.Control.ZoomBar>. \n - * By default it is displayed in the upper left corner of the map as 4\n - * directional arrows above a vertical slider.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control.PanZoom>\n - */\n -OpenLayers.Control.PanZoomBar = OpenLayers.Class(OpenLayers.Control.PanZoom, {\n -\n - /** \n - * APIProperty: zoomStopWidth\n - */\n - zoomStopWidth: 18,\n -\n - /** \n - * APIProperty: zoomStopHeight\n - */\n - zoomStopHeight: 11,\n -\n - /** \n - * Property: slider\n - */\n - slider: null,\n -\n - /** \n - * Property: sliderEvents\n - * {<OpenLayers.Events>}\n - */\n - sliderEvents: null,\n -\n - /** \n - * Property: zoombarDiv\n - * {DOMElement}\n - */\n - zoombarDiv: null,\n -\n - /** \n - * APIProperty: zoomWorldIcon\n - * {Boolean}\n - */\n - zoomWorldIcon: false,\n -\n - /**\n - * APIProperty: panIcons\n - * {Boolean} Set this property to false not to display the pan icons. If\n - * false the zoom world icon is placed under the zoom bar. Defaults to\n - * true.\n - */\n - panIcons: true,\n -\n - /**\n - * APIProperty: forceFixedZoomLevel\n - * {Boolean} Force a fixed zoom level even though the map has \n - * fractionalZoom\n - */\n - forceFixedZoomLevel: false,\n -\n - /**\n - * Property: mouseDragStart\n - * {<OpenLayers.Pixel>}\n - */\n - mouseDragStart: null,\n -\n - /**\n - * Property: deltaY\n - * {Number} The cumulative vertical pixel offset during a zoom bar drag.\n - */\n - deltaY: null,\n -\n - /**\n - * Property: zoomStart\n - * {<OpenLayers.Pixel>}\n - */\n - zoomStart: null,\n -\n - /**\n - * Constructor: OpenLayers.Control.PanZoomBar\n - */ \n -\n - /**\n - * APIMethod: destroy\n - */\n - destroy: function() {\n -\n - this._removeZoomBar();\n -\n - this.map.events.un({\n - "changebaselayer": this.redraw,\n - scope: this\n - });\n -\n - OpenLayers.Control.PanZoom.prototype.destroy.apply(this, arguments);\n -\n - delete this.mouseDragStart;\n - delete this.zoomStart;\n - },\n - \n - /**\n - * Method: setMap\n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>} \n - */\n - setMap: function(map) {\n - OpenLayers.Control.PanZoom.prototype.setMap.apply(this, arguments);\n - this.map.events.register("changebaselayer", this, this.redraw);\n - },\n -\n - /** \n - * Method: redraw\n - * clear the div and start over.\n - */\n - redraw: function() {\n - if (this.div != null) {\n - this.removeButtons();\n - this._removeZoomBar();\n - } \n - this.draw();\n - },\n - \n - /**\n - * Method: draw \n - *\n - * Parameters:\n - * px - {<OpenLayers.Pixel>} \n - */\n - draw: function(px) {\n - // initialize our internal div\n - OpenLayers.Control.prototype.draw.apply(this, arguments);\n - px = this.position.clone();\n -\n - // place the controls\n - this.buttons = [];\n -\n - var sz = {w: 18, h: 18};\n - if (this.panIcons) {\n - var centered = new OpenLayers.Pixel(px.x+sz.w/2, px.y);\n - var wposition = sz.w;\n -\n - if (this.zoomWorldIcon) {\n - centered = new OpenLayers.Pixel(px.x+sz.w, px.y);\n - }\n -\n - this._addButton("panup", "north-mini.png", centered, sz);\n - px.y = centered.y+sz.h;\n - this._addButton("panleft", "west-mini.png", px, sz);\n - if (this.zoomWorldIcon) {\n - this._addButton("zoomworld", "zoom-world-mini.png", px.add(sz.w, 0), sz);\n -\n - wposition *= 2;\n - }\n - this._addButton("panright", "east-mini.png", px.add(wposition, 0), sz);\n - this._addButton("pandown", "south-mini.png", centered.add(0, sz.h*2), sz);\n - this._addButton("zoomin", "zoom-plus-mini.png", centered.add(0, sz.h*3+5), sz);\n - centered = this._addZoomBar(centered.add(0, sz.h*4 + 5));\n - this._addButton("zoomout", "zoom-minus-mini.png", centered, sz);\n - }\n - else {\n - this._addButton("zoomin", "zoom-plus-mini.png", px, sz);\n - centered = this._addZoomBar(px.add(0, sz.h));\n - this._addButton("zoomout", "zoom-minus-mini.png", centered, sz);\n - if (this.zoomWorldIcon) {\n - centered = centered.add(0, sz.h+3);\n - this._addButton("zoomworld", "zoom-world-mini.png", centered, sz);\n - }\n - }\n - return this.div;\n - },\n -\n - /** \n - * Method: _addZoomBar\n - * \n - * Parameters:\n - * centered - {<OpenLayers.Pixel>} where zoombar drawing is to start.\n - */\n - _addZoomBar:function(centered) {\n - var imgLocation = OpenLayers.Util.getImageLocation("slider.png");\n - var id = this.id + "_" + this.map.id;\n - var zoomsToEnd = this.map.getNumZoomLevels() - 1 - this.map.getZoom();\n - var slider = OpenLayers.Util.createAlphaImageDiv(id,\n - centered.add(-1, zoomsToEnd * this.zoomStopHeight), \n - {w: 20, h: 9},\n - imgLocation,\n - "absolute");\n - slider.style.cursor = "move";\n - this.slider = slider;\n - \n - this.sliderEvents = new OpenLayers.Events(this, slider, null, true,\n - {includeXY: true});\n - this.sliderEvents.on({\n - "touchstart": this.zoomBarDown,\n - "touchmove": this.zoomBarDrag,\n - "touchend": this.zoomBarUp,\n - "mousedown": this.zoomBarDown,\n - "mousemove": this.zoomBarDrag,\n - "mouseup": this.zoomBarUp\n - });\n - \n - var sz = {\n - w: this.zoomStopWidth,\n - h: this.zoomStopHeight * this.map.getNumZoomLevels()\n - };\n - var imgLocation = OpenLayers.Util.getImageLocation("zoombar.png");\n - var div = null;\n - \n - if (OpenLayers.Util.alphaHack()) {\n - var id = this.id + "_" + this.map.id;\n - div = OpenLayers.Util.createAlphaImageDiv(id, centered,\n - {w: sz.w, h: this.zoomStopHeight},\n - imgLocation,\n - "absolute", null, "crop");\n - div.style.height = sz.h + "px";\n - } else {\n - div = OpenLayers.Util.createDiv(\n - \'OpenLayers_Control_PanZoomBar_Zoombar\' + this.map.id,\n - centered,\n - sz,\n - imgLocation);\n - }\n - div.style.cursor = "pointer";\n - div.className = "olButton";\n - this.zoombarDiv = div;\n - \n - this.div.appendChild(div);\n -\n - this.startTop = parseInt(div.style.top);\n - this.div.appendChild(slider);\n -\n - this.map.events.register("zoomend", this, this.moveZoomBar);\n -\n - centered = centered.add(0, \n - this.zoomStopHeight * this.map.getNumZoomLevels());\n - return centered; \n - },\n - \n - /**\n - * Method: _removeZoomBar\n - */\n - _removeZoomBar: function() {\n - this.sliderEvents.un({\n - "touchstart": this.zoomBarDown,\n - "touchmove": this.zoomBarDrag,\n - "touchend": this.zoomBarUp,\n - "mousedown": this.zoomBarDown,\n - "mousemove": this.zoomBarDrag,\n - "mouseup": this.zoomBarUp\n - });\n - this.sliderEvents.destroy();\n - \n - this.div.removeChild(this.zoombarDiv);\n - this.zoombarDiv = null;\n - this.div.removeChild(this.slider);\n - this.slider = null;\n - \n - this.map.events.unregister("zoomend", this, this.moveZoomBar);\n - },\n - \n - /**\n - * Method: onButtonClick\n - *\n - * Parameters:\n - * evt - {Event}\n - */\n - onButtonClick: function(evt) {\n - OpenLayers.Control.PanZoom.prototype.onButtonClick.apply(this, arguments);\n - if (evt.buttonElement === this.zoombarDiv) {\n - var levels = evt.buttonXY.y / this.zoomStopHeight;\n - if(this.forceFixedZoomLevel || !this.map.fractionalZoom) {\n - levels = Math.floor(levels);\n - } \n - var zoom = (this.map.getNumZoomLevels() - 1) - levels; \n - zoom = Math.min(Math.max(zoom, 0), this.map.getNumZoomLevels() - 1);\n - this.map.zoomTo(zoom);\n - }\n - },\n - \n - /**\n - * Method: passEventToSlider\n - * This function is used to pass events that happen on the div, or the map,\n - * through to the slider, which then does its moving thing.\n - *\n - * Parameters:\n - * evt - {<OpenLayers.Event>} \n - */\n - passEventToSlider:function(evt) {\n - this.sliderEvents.handleBrowserEvent(evt);\n - },\n - \n - /*\n - * Method: zoomBarDown\n - * event listener for clicks on the slider\n - *\n - * Parameters:\n - * evt - {<OpenLayers.Event>} \n - */\n - zoomBarDown:function(evt) {\n - if (!OpenLayers.Event.isLeftClick(evt) && !OpenLayers.Event.isSingleTouch(evt)) {\n - return;\n - }\n - this.map.events.on({\n - "touchmove": this.passEventToSlider,\n - "mousemove": this.passEventToSlider,\n - "mouseup": this.passEventToSlider,\n - scope: this\n - });\n - this.mouseDragStart = evt.xy.clone();\n - this.zoomStart = evt.xy.clone();\n - this.div.style.cursor = "move";\n - // reset the div offsets just in case the div moved\n - this.zoombarDiv.offsets = null; \n - OpenLayers.Event.stop(evt);\n - },\n - \n - /*\n - * Method: zoomBarDrag\n - * This is what happens when a click has occurred, and the client is\n - * dragging. Here we must ensure that the slider doesn\'t go beyond the\n - * bottom/top of the zoombar div, as well as moving the slider to its new\n - * visual location\n - *\n - * Parameters:\n - * evt - {<OpenLayers.Event>} \n - */\n - zoomBarDrag:function(evt) {\n - if (this.mouseDragStart != null) {\n - var deltaY = this.mouseDragStart.y - evt.xy.y;\n - var offsets = OpenLayers.Util.pagePosition(this.zoombarDiv);\n - if ((evt.clientY - offsets[1]) > 0 && \n - (evt.clientY - offsets[1]) < parseInt(this.zoombarDiv.style.height) - 2) {\n - var newTop = parseInt(this.slider.style.top) - deltaY;\n - this.slider.style.top = newTop+"px";\n - this.mouseDragStart = evt.xy.clone();\n - }\n - // set cumulative displacement\n - this.deltaY = this.zoomStart.y - evt.xy.y;\n - OpenLayers.Event.stop(evt);\n - }\n - },\n - \n - /*\n - * Method: zoomBarUp\n - * Perform cleanup when a mouseup event is received -- discover new zoom\n - * level and switch to it.\n - *\n - * Parameters:\n - * evt - {<OpenLayers.Event>} \n - */\n - zoomBarUp:function(evt) {\n - if (!OpenLayers.Event.isLeftClick(evt) && evt.type !== "touchend") {\n - return;\n - }\n - if (this.mouseDragStart) {\n - this.div.style.cursor="";\n - this.map.events.un({\n - "touchmove": this.passEventToSlider,\n - "mouseup": this.passEventToSlider,\n - "mousemove": this.passEventToSlider,\n - scope: this\n - });\n - var zoomLevel = this.map.zoom;\n - if (!this.forceFixedZoomLevel && this.map.fractionalZoom) {\n - zoomLevel += this.deltaY/this.zoomStopHeight;\n - zoomLevel = Math.min(Math.max(zoomLevel, 0), \n - this.map.getNumZoomLevels() - 1);\n - } else {\n - zoomLevel += this.deltaY/this.zoomStopHeight;\n - zoomLevel = Math.max(Math.round(zoomLevel), 0); \n - }\n - this.map.zoomTo(zoomLevel);\n - this.mouseDragStart = null;\n - this.zoomStart = null;\n - this.deltaY = 0;\n - OpenLayers.Event.stop(evt);\n - }\n - },\n - \n - /*\n - * Method: moveZoomBar\n - * Change the location of the slider to match the current zoom level.\n - */\n - moveZoomBar:function() {\n - var newTop = \n - ((this.map.getNumZoomLevels()-1) - this.map.getZoom()) * \n - this.zoomStopHeight + this.startTop + 1;\n - this.slider.style.top = newTop + "px";\n - }, \n - \n - CLASS_NAME: "OpenLayers.Control.PanZoomBar"\n -}); - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>12487</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Panel.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Panel.js.xml deleted file mode 100644 index c493cb9b09ed98701fcda96ee077d4610a2cb2b1..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Panel.js.xml +++ /dev/null @@ -1,475 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Panel.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Events/buttonclick.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.Panel\n - * The Panel control is a container for other controls. With it toolbars\n - * may be composed.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.Panel = OpenLayers.Class(OpenLayers.Control, {\n - /**\n - * Property: controls\n - * {Array(<OpenLayers.Control>)}\n - */\n - controls: null, \n - \n - /**\n - * APIProperty: autoActivate\n - * {Boolean} Activate the control when it is added to a map. Default is\n - * true.\n - */\n - autoActivate: true,\n -\n - /** \n - * APIProperty: defaultControl\n - * {<OpenLayers.Control>} The control which is activated when the control is\n - * activated (turned on), which also happens at instantiation.\n - * If <saveState> is true, <defaultControl> will be nullified after the\n - * first activation of the panel.\n - */\n - defaultControl: null,\n - \n - /**\n - * APIProperty: saveState\n - * {Boolean} If set to true, the active state of this panel\'s controls will\n - * be stored on panel deactivation, and restored on reactivation. Default\n - * is false.\n - */\n - saveState: false,\n - \n - /**\n - * APIProperty: allowDepress\n - * {Boolean} If is true the <OpenLayers.Control.TYPE_TOOL> controls can \n - * be deactivated by clicking the icon that represents them. Default \n - * is false.\n - */\n - allowDepress: false,\n - \n - /**\n - * Property: activeState\n - * {Object} stores the active state of this panel\'s controls.\n - */\n - activeState: null,\n -\n - /**\n - * Constructor: OpenLayers.Control.Panel\n - * Create a new control panel.\n - *\n - * Each control in the panel is represented by an icon. When clicking \n - * on an icon, the <activateControl> method is called.\n - *\n - * Specific properties for controls on a panel:\n - * type - {Number} One of <OpenLayers.Control.TYPE_TOOL>,\n - * <OpenLayers.Control.TYPE_TOGGLE>, <OpenLayers.Control.TYPE_BUTTON>.\n - * If not provided, <OpenLayers.Control.TYPE_TOOL> is assumed.\n - * title - {string} Text displayed when mouse is over the icon that \n - * represents the control. \n - *\n - * The <OpenLayers.Control.type> of a control determines the behavior when\n - * clicking its icon:\n - * <OpenLayers.Control.TYPE_TOOL> - The control is activated and other\n - * controls of this type in the same panel are deactivated. This is\n - * the default type.\n - * <OpenLayers.Control.TYPE_TOGGLE> - The active state of the control is\n - * toggled.\n - * <OpenLayers.Control.TYPE_BUTTON> - The\n - * <OpenLayers.Control.Button.trigger> method of the control is called,\n - * but its active state is not changed.\n - *\n - * If a control is <OpenLayers.Control.active>, it will be drawn with the\n - * olControl[Name]ItemActive class, otherwise with the\n - * olControl[Name]ItemInactive class.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be used\n - * to extend the control.\n - */\n - initialize: function(options) {\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - this.controls = [];\n - this.activeState = {};\n - },\n -\n - /**\n - * APIMethod: destroy\n - */\n - destroy: function() {\n - if (this.map) {\n - this.map.events.unregister("buttonclick", this, this.onButtonClick);\n - }\n - OpenLayers.Control.prototype.destroy.apply(this, arguments);\n - for (var ctl, i = this.controls.length - 1; i >= 0; i--) {\n - ctl = this.controls[i];\n - if (ctl.events) {\n - ctl.events.un({\n - activate: this.iconOn,\n - deactivate: this.iconOff\n - });\n - }\n - ctl.panel_div = null;\n - }\n - this.activeState = null;\n - },\n -\n - /**\n - * APIMethod: activate\n - */\n - activate: function() {\n - if (OpenLayers.Control.prototype.activate.apply(this, arguments)) {\n - var control;\n - for (var i=0, len=this.controls.length; i<len; i++) {\n - control = this.controls[i];\n - if (control === this.defaultControl ||\n - (this.saveState && this.activeState[control.id])) {\n - control.activate();\n - }\n - } \n - if (this.saveState === true) {\n - this.defaultControl = null;\n - }\n - this.redraw();\n - return true;\n - } else {\n - return false;\n - }\n - },\n - \n - /**\n - * APIMethod: deactivate\n - */\n - deactivate: function() {\n - if (OpenLayers.Control.prototype.deactivate.apply(this, arguments)) {\n - var control;\n - for (var i=0, len=this.controls.length; i<len; i++) {\n - control = this.controls[i];\n - this.activeState[control.id] = control.deactivate();\n - } \n - this.redraw();\n - return true;\n - } else {\n - return false;\n - }\n - },\n - \n - /**\n - * Method: draw\n - *\n - * Returns:\n - * {DOMElement}\n - */ \n - draw: function() {\n - OpenLayers.Control.prototype.draw.apply(this, arguments);\n - if (this.outsideViewport) {\n - this.events.attachToElement(this.div);\n - this.events.register("buttonclick", this, this.onButtonClick);\n - } else {\n - this.map.events.register("buttonclick", this, this.onButtonClick);\n - }\n - this.addControlsToMap(this.controls);\n - return this.div;\n - },\n -\n - /**\n - * Method: redraw\n - */\n - redraw: function() {\n - for (var l=this.div.childNodes.length, i=l-1; i>=0; i--) {\n - this.div.removeChild(this.div.childNodes[i]);\n - }\n - this.div.innerHTML = "";\n - if (this.active) {\n - for (var i=0, len=this.controls.length; i<len; i++) {\n - this.div.appendChild(this.controls[i].panel_div);\n - }\n - }\n - },\n - \n - /**\n - * APIMethod: activateControl\n - * This method is called when the user click on the icon representing a \n - * control in the panel.\n - *\n - * Parameters:\n - * control - {<OpenLayers.Control>}\n - */\n - activateControl: function (control) {\n - if (!this.active) { return false; }\n - if (control.type == OpenLayers.Control.TYPE_BUTTON) {\n - control.trigger();\n - return;\n - }\n - if (control.type == OpenLayers.Control.TYPE_TOGGLE) {\n - if (control.active) {\n - control.deactivate();\n - } else {\n - control.activate();\n - }\n - return;\n - }\n - if (this.allowDepress && control.active) {\n - control.deactivate();\n - } else {\n - var c;\n - for (var i=0, len=this.controls.length; i<len; i++) {\n - c = this.controls[i];\n - if (c != control &&\n - (c.type === OpenLayers.Control.TYPE_TOOL || c.type == null)) {\n - c.deactivate();\n - }\n - }\n - control.activate();\n - }\n - },\n -\n - /**\n - * APIMethod: addControls\n - * To build a toolbar, you add a set of controls to it. addControls\n - * lets you add a single control or a list of controls to the \n - * Control Panel.\n - *\n - * Parameters:\n - * controls - {<OpenLayers.Control>} Controls to add in the panel.\n - */ \n - addControls: function(controls) {\n - if (!(OpenLayers.Util.isArray(controls))) {\n - controls = [controls];\n - }\n - this.controls = this.controls.concat(controls);\n -\n - for (var i=0, len=controls.length; i<len; i++) {\n - var control = controls[i],\n - element = this.createControlMarkup(control);\n - OpenLayers.Element.addClass(element, \n - control.displayClass + "ItemInactive");\n - OpenLayers.Element.addClass(element, "olButton");\n - if (control.title != "" && !element.title) {\n - element.title = control.title;\n - }\n - control.panel_div = element;\n - }\n -\n - if (this.map) { // map.addControl() has already been called on the panel\n - this.addControlsToMap(controls);\n - this.redraw();\n - }\n - },\n -\n - /**\n - * APIMethod: createControlMarkup\n - * This function just creates a div for the control. If specific HTML\n - * markup is needed this function can be overridden in specific classes,\n - * or at panel instantiation time:\n - *\n - * Example:\n - * (code)\n - * var panel = new OpenLayers.Control.Panel({\n - * defaultControl: control,\n - * // ovverride createControlMarkup to create actual buttons\n - * // including texts wrapped into span elements.\n - * createControlMarkup: function(control) {\n - * var button = document.createElement(\'button\'),\n - * span = document.createElement(\'span\');\n - * if (control.text) {\n - * span.innerHTML = control.text;\n - * }\n - * return button;\n - * }\n - * });\n - * (end)\n - *\n - * Parameters:\n - * control - {<OpenLayers.Control>} The control to create the HTML\n - * markup for.\n - *\n - * Returns:\n - * {DOMElement} The markup.\n - */\n - createControlMarkup: function(control) {\n - return document.createElement("div");\n - },\n - \n - /**\n - * Method: addControlsToMap\n - * Only for internal use in draw() and addControls() methods.\n - *\n - * Parameters:\n - * controls - {Array(<OpenLayers.Control>)} Controls to add into map.\n - */ \n - addControlsToMap: function (controls) {\n - var control;\n - for (var i=0, len=controls.length; i<len; i++) {\n - control = controls[i];\n - if (control.autoActivate === true) {\n - control.autoActivate = false;\n - this.map.addControl(control);\n - control.autoActivate = true;\n - } else {\n - this.map.addControl(control);\n - control.deactivate();\n - }\n - control.events.on({\n - activate: this.iconOn,\n - deactivate: this.iconOff\n - });\n - } \n - },\n -\n - /**\n - * Method: iconOn\n - * Internal use, for use only with "controls[i].events.on/un".\n - */\n - iconOn: function() {\n - var d = this.panel_div; // "this" refers to a control on panel!\n - var re = new RegExp("\\\\b(" + this.displayClass + "Item)Inactive\\\\b");\n - d.className = d.className.replace(re, "$1Active");\n - },\n -\n - /**\n - * Method: iconOff\n - * Internal use, for use only with "controls[i].events.on/un".\n - */\n - iconOff: function() {\n - var d = this.panel_div; // "this" refers to a control on panel!\n - var re = new RegExp("\\\\b(" + this.displayClass + "Item)Active\\\\b");\n - d.className = d.className.replace(re, "$1Inactive");\n - },\n - \n - /**\n - * Method: onButtonClick\n - *\n - * Parameters:\n - * evt - {Event}\n - */\n - onButtonClick: function (evt) {\n - var controls = this.controls,\n - button = evt.buttonElement;\n - for (var i=controls.length-1; i>=0; --i) {\n - if (controls[i].panel_div === button) {\n - this.activateControl(controls[i]);\n - break;\n - }\n - }\n - },\n -\n - /**\n - * APIMethod: getControlsBy\n - * Get a list of controls with properties matching the given criteria.\n - *\n - * Parameters:\n - * property - {String} A control property to be matched.\n - * match - {String | Object} A string to match. Can also be a regular\n - * expression literal or object. In addition, it can be any object\n - * with a method named test. For reqular expressions or other, if\n - * match.test(control[property]) evaluates to true, the control will be\n - * included in the array returned. If no controls are found, an empty\n - * array is returned.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Control>)} A list of controls matching the given criteria.\n - * An empty array is returned if no matches are found.\n - */\n - getControlsBy: function(property, match) {\n - var test = (typeof match.test == "function");\n - var found = OpenLayers.Array.filter(this.controls, function(item) {\n - return item[property] == match || (test && match.test(item[property]));\n - });\n - return found;\n - },\n -\n - /**\n - * APIMethod: getControlsByName\n - * Get a list of contorls with names matching the given name.\n - *\n - * Parameters:\n - * match - {String | Object} A control name. The name can also be a regular\n - * expression literal or object. In addition, it can be any object\n - * with a method named test. For reqular expressions or other, if\n - * name.test(control.name) evaluates to true, the control will be included\n - * in the list of controls returned. If no controls are found, an empty\n - * array is returned.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Control>)} A list of controls matching the given name.\n - * An empty array is returned if no matches are found.\n - */\n - getControlsByName: function(match) {\n - return this.getControlsBy("name", match);\n - },\n -\n - /**\n - * APIMethod: getControlsByClass\n - * Get a list of controls of a given type (CLASS_NAME).\n - *\n - * Parameters:\n - * match - {String | Object} A control class name. The type can also be a\n - * regular expression literal or object. In addition, it can be any\n - * object with a method named test. For reqular expressions or other,\n - * if type.test(control.CLASS_NAME) evaluates to true, the control will\n - * be included in the list of controls returned. If no controls are\n - * found, an empty array is returned.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Control>)} A list of controls matching the given type.\n - * An empty array is returned if no matches are found.\n - */\n - getControlsByClass: function(match) {\n - return this.getControlsBy("CLASS_NAME", match);\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.Panel"\n -});\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>14528</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Permalink.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Permalink.js.xml deleted file mode 100644 index df316034f419822f91c64936824226f7d74e5a8c..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Permalink.js.xml +++ /dev/null @@ -1,294 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Permalink.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Control/ArgParser.js\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.Permalink\n - * The Permalink control is hyperlink that will return the user to the \n - * current map view. By default it is drawn in the lower right corner of the\n - * map. The href is updated as the map is zoomed, panned and whilst layers\n - * are switched.\n - * \n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.Permalink = OpenLayers.Class(OpenLayers.Control, {\n - \n - /**\n - * APIProperty: argParserClass\n - * {Class} The ArgParser control class (not instance) to use with this\n - * control.\n - */\n - argParserClass: OpenLayers.Control.ArgParser,\n -\n - /** \n - * Property: element \n - * {DOMElement}\n - */\n - element: null,\n - \n - /** \n - * APIProperty: anchor\n - * {Boolean} This option changes 3 things:\n - * the character \'#\' is used in place of the character \'?\',\n - * the window.href is updated if no element is provided.\n - * When this option is set to true it\'s not recommend to provide\n - * a base without provide an element.\n - */\n - anchor: false,\n -\n - /** \n - * APIProperty: base\n - * {String}\n - */\n - base: \'\',\n -\n - /** \n - * APIProperty: displayProjection\n - * {<OpenLayers.Projection>} Requires proj4js support. Projection used\n - * when creating the coordinates in the link. This will reproject the\n - * map coordinates into display coordinates. If you are using this\n - * functionality, the permalink which is last added to the map will\n - * determine the coordinate type which is read from the URL, which\n - * means you should not add permalinks with different\n - * displayProjections to the same map. \n - */\n - displayProjection: null, \n -\n - /**\n - * Constructor: OpenLayers.Control.Permalink\n - *\n - * Parameters: \n - * element - {DOMElement} \n - * base - {String} \n - * options - {Object} options to the control.\n - *\n - * Or for anchor:\n - * options - {Object} options to the control.\n - */\n - initialize: function(element, base, options) {\n - if (element !== null && typeof element == \'object\' && !OpenLayers.Util.isElement(element)) {\n - options = element;\n - this.base = document.location.href;\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - if (this.element != null) {\n - this.element = OpenLayers.Util.getElement(this.element);\n - }\n - }\n - else {\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - this.element = OpenLayers.Util.getElement(element);\n - this.base = base || document.location.href;\n - }\n - },\n - \n - /**\n - * APIMethod: destroy\n - */\n - destroy: function() {\n - if (this.element && this.element.parentNode == this.div) {\n - this.div.removeChild(this.element);\n - this.element = null;\n - }\n - if (this.map) {\n - this.map.events.unregister(\'moveend\', this, this.updateLink);\n - }\n -\n - OpenLayers.Control.prototype.destroy.apply(this, arguments); \n - },\n -\n - /**\n - * Method: setMap\n - * Set the map property for the control. \n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>} \n - */\n - setMap: function(map) {\n - OpenLayers.Control.prototype.setMap.apply(this, arguments);\n -\n - //make sure we have an arg parser attached\n - for(var i=0, len=this.map.controls.length; i<len; i++) {\n - var control = this.map.controls[i];\n - if (control.CLASS_NAME == this.argParserClass.CLASS_NAME) {\n - \n - // If a permalink is added to the map, and an ArgParser already\n - // exists, we override the displayProjection to be the one\n - // on the permalink. \n - if (control.displayProjection != this.displayProjection) {\n - this.displayProjection = control.displayProjection;\n - } \n - \n - break;\n - }\n - }\n - if (i == this.map.controls.length) {\n - this.map.addControl(new this.argParserClass(\n - { \'displayProjection\': this.displayProjection })); \n - }\n -\n - },\n -\n - /**\n - * Method: draw\n - *\n - * Returns:\n - * {DOMElement}\n - */ \n - draw: function() {\n - OpenLayers.Control.prototype.draw.apply(this, arguments);\n - \n - if (!this.element && !this.anchor) {\n - this.element = document.createElement("a");\n - this.element.innerHTML = OpenLayers.i18n("Permalink");\n - this.element.href="";\n - this.div.appendChild(this.element);\n - }\n - this.map.events.on({\n - \'moveend\': this.updateLink,\n - \'changelayer\': this.updateLink,\n - \'changebaselayer\': this.updateLink,\n - scope: this\n - });\n - \n - // Make it so there is at least a link even though the map may not have\n - // moved yet.\n - this.updateLink();\n - \n - return this.div;\n - },\n - \n - /**\n - * Method: updateLink \n - */\n - updateLink: function() {\n - var separator = this.anchor ? \'#\' : \'?\';\n - var href = this.base;\n - if (href.indexOf(separator) != -1) {\n - href = href.substring( 0, href.indexOf(separator) );\n - }\n -\n - href += separator + OpenLayers.Util.getParameterString(this.createParams());\n - if (this.anchor && !this.element) {\n - window.location.href = href;\n - }\n - else {\n - this.element.href = href;\n - }\n - }, \n - \n - /**\n - * APIMethod: createParams\n - * Creates the parameters that need to be encoded into the permalink url.\n - * \n - * Parameters:\n - * center - {<OpenLayers.LonLat>} center to encode in the permalink.\n - * Defaults to the current map center.\n - * zoom - {Integer} zoom level to encode in the permalink. Defaults to the\n - * current map zoom level.\n - * layers - {Array(<OpenLayers.Layer>)} layers to encode in the permalink.\n - * Defaults to the current map layers.\n - * \n - * Returns:\n - * {Object} Hash of parameters that will be url-encoded into the\n - * permalink.\n - */\n - createParams: function(center, zoom, layers) {\n - center = center || this.map.getCenter();\n - \n - var params = OpenLayers.Util.getParameters(this.base);\n - \n - // If there\'s still no center, map is not initialized yet. \n - // Break out of this function, and simply return the params from the\n - // base link.\n - if (center) { \n -\n - //zoom\n - params.zoom = zoom || this.map.getZoom(); \n -\n - //lon,lat\n - var lat = center.lat;\n - var lon = center.lon;\n - \n - if (this.displayProjection) {\n - var mapPosition = OpenLayers.Projection.transform(\n - { x: lon, y: lat }, \n - this.map.getProjectionObject(), \n - this.displayProjection );\n - lon = mapPosition.x; \n - lat = mapPosition.y; \n - } \n - params.lat = Math.round(lat*100000)/100000;\n - params.lon = Math.round(lon*100000)/100000;\n - \n - //layers \n - layers = layers || this.map.layers; \n - params.layers = \'\';\n - for (var i=0, len=layers.length; i<len; i++) {\n - var layer = layers[i];\n - \n - if (layer.isBaseLayer) {\n - params.layers += (layer == this.map.baseLayer) ? "B" : "0";\n - } else {\n - params.layers += (layer.getVisibility()) ? "T" : "F"; \n - }\n - }\n - }\n -\n - return params;\n - }, \n -\n - CLASS_NAME: "OpenLayers.Control.Permalink"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>8122</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/PinchZoom.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/PinchZoom.js.xml deleted file mode 100644 index 5814f51dda1cbe9c262ae3ad357eed68be2956c0..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/PinchZoom.js.xml +++ /dev/null @@ -1,251 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>PinchZoom.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for\n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Handler/Pinch.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.PinchZoom\n - *\n - * Inherits:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.PinchZoom = OpenLayers.Class(OpenLayers.Control, {\n -\n - /** \n - * Property: type\n - * {OpenLayers.Control.TYPES}\n - */\n - type: OpenLayers.Control.TYPE_TOOL,\n -\n - /**\n - * Property: containerCenter\n - * {Object} Cached object representing the layer container center (in pixels).\n - */\n - containerCenter: null,\n -\n - /**\n - * Property: pinchOrigin\n - * {Object} Cached object representing the pinch start (in pixels).\n - */\n - pinchOrigin: null, \n - \n - /**\n - * Property: currentCenter\n - * {Object} Cached object representing the latest pinch center (in pixels).\n - */\n - currentCenter: null, \n -\n - /**\n - * APIProperty: autoActivate\n - * {Boolean} Activate the control when it is added to a map. Default is\n - * true.\n - */\n - autoActivate: true,\n - \n - /**\n - * Constructor: OpenLayers.Control.PinchZoom\n - * Create a control for zooming with pinch gestures. This works on devices\n - * with multi-touch support.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * the control\n - */\n - initialize: function(options) {\n - OpenLayers.Control.prototype.initialize.apply(this, arguments);\n - this.handler = new OpenLayers.Handler.Pinch(this, {\n - start: this.pinchStart,\n - move: this.pinchMove,\n - done: this.pinchDone\n - }, this.handlerOptions);\n - },\n - \n - /**\n - * APIMethod: activate\n - * Activate this control. Must be called after the control is added to a \n - * map.\n - *\n - * Returns:\n - * {Boolean} The control was successfully activated.\n - */\n - activate: function() {\n - var activated = OpenLayers.Control.prototype.activate.apply(this,arguments);\n - if (activated) {\n - this.map.events.on({\n - moveend: this.updateContainerCenter,\n - scope: this\n - });\n - this.updateContainerCenter();\n - }\n - return activated;\n - },\n -\n - /**\n - * APIMethod: deactivate\n - * Deactivate this control.\n - *\n - * Returns:\n - * {Boolean} The control was successfully deactivated.\n - */\n - deactivate: function() {\n - var deactivated = OpenLayers.Control.prototype.deactivate.apply(this,arguments);\n - if (this.map && this.map.events) {\n - this.map.events.un({\n - moveend: this.updateContainerCenter,\n - scope: this\n - });\n - }\n - return deactivated;\n - },\n - \n - /**\n - * Method: updateContainerCenter\n - * Must be called each time the layer container moves.\n - */\n - updateContainerCenter: function() {\n - var container = this.map.layerContainerDiv;\n - // the layer container div is a square of 100px/100px\n - this.containerCenter = {\n - x: parseInt(container.style.left, 10) + 50,\n - y: parseInt(container.style.top, 10) + 50\n - };\n - },\n -\n - /**\n - * Method: pinchStart\n - *\n - * Parameters:\n - * evt - {Event}\n - * pinchData - {Object} pinch data object related to the current touchmove\n - * of the pinch gesture. This give us the current scale of the pinch.\n - */\n - pinchStart: function(evt, pinchData) {\n - this.pinchOrigin = evt.xy;\n - this.currentCenter = evt.xy;\n - },\n - \n - /**\n - * Method: pinchMove\n - *\n - * Parameters:\n - * evt - {Event}\n - * pinchData - {Object} pinch data object related to the current touchmove\n - * of the pinch gesture. This give us the current scale of the pinch.\n - */\n - pinchMove: function(evt, pinchData) {\n - var scale = pinchData.scale;\n - var containerCenter = this.containerCenter;\n - var pinchOrigin = this.pinchOrigin;\n - var current = evt.xy;\n -\n - var dx = Math.round((current.x - pinchOrigin.x) + (scale - 1) * (containerCenter.x - pinchOrigin.x));\n - var dy = Math.round((current.y - pinchOrigin.y) + (scale - 1) * (containerCenter.y - pinchOrigin.y));\n -\n - this.applyTransform(\n - "translate(" + dx + "px, " + dy + "px) scale(" + scale + ")"\n - );\n - this.currentCenter = current;\n - },\n - \n - /**\n - * Method: applyTransform\n - * Applies the given transform to layers.\n - */\n - applyTransform: function(transform) {\n - var style = this.map.layerContainerDiv.style;\n - style[\'-webkit-transform\'] = transform;\n - style[\'-moz-transform\'] = transform;\n - },\n - \n - /**\n - * Method: pinchDone\n - *\n - * Parameters:\n - * evt - {Event}\n - * start - {Object} pinch data object related to the touchstart event that\n - * started the pinch gesture.\n - * last - {Object} pinch data object related to the last touchmove event\n - * of the pinch gesture. This give us the final scale of the pinch.\n - */\n - pinchDone: function(evt, start, last) {\n - this.applyTransform("");\n - var zoom = this.map.getZoomForResolution(this.map.getResolution() / last.scale, true);\n - if (zoom !== this.map.getZoom() || !this.currentCenter.equals(this.pinchOrigin)) {\n - var resolution = this.map.getResolutionForZoom(zoom);\n -\n - var location = this.map.getLonLatFromPixel(this.pinchOrigin);\n - var zoomPixel = this.currentCenter; \n - var size = this.map.getSize();\n -\n - location.lon += resolution * ((size.w / 2) - zoomPixel.x);\n - location.lat -= resolution * ((size.h / 2) - zoomPixel.y);\n -\n - // Force a reflow before calling setCenter. This is to work\n - // around an issue occuring in iOS.\n - //\n - // See https://github.com/openlayers/openlayers/pull/351.\n - //\n - // Without a reflow setting the layer container div\'s top left\n - // style properties to "0px" - as done in Map.moveTo when zoom\n - // is changed - won\'t actually correctly reposition the layer\n - // container div.\n - //\n - // Also, we need to use a statement that the Google Closure\n - // compiler won\'t optimize away.\n - this.map.div.clientWidth = this.map.div.clientWidth;\n -\n - this.map.setCenter(location, zoom);\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.PinchZoom"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6646</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/SLDSelect.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/SLDSelect.js.xml deleted file mode 100644 index e54afb9763a1be18399cecb1abe73f13c64a0c74..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/SLDSelect.js.xml +++ /dev/null @@ -1,611 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>SLDSelect.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Layer/WMS.js\n - * @requires OpenLayers/Handler/RegularPolygon.js\n - * @requires OpenLayers/Handler/Polygon.js\n - * @requires OpenLayers/Handler/Path.js\n - * @requires OpenLayers/Handler/Click.js\n - * @requires OpenLayers/Filter/Spatial.js\n - * @requires OpenLayers/Format/SLD/v1_0_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.SLDSelect\n - * Perform selections on WMS layers using Styled Layer Descriptor (SLD)\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.SLDSelect = OpenLayers.Class(OpenLayers.Control, {\n -\n - /** \n - * APIProperty: events\n - * {<OpenLayers.Events>} Events instance for listeners and triggering\n - * control specific events.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * control.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types (in addition to those from <OpenLayers.Control.events>):\n - * selected - Triggered when a selection occurs. Listeners receive an \n - * event with *filters* and *layer* properties. Filters will be an \n - * array of OpenLayers.Filter objects created in order to perform \n - * the particular selection.\n - */\n -\n - /**\n - * APIProperty: clearOnDeactivate\n - * {Boolean} Should the selection be cleared when the control is \n - * deactivated. Default value is false.\n - */\n - clearOnDeactivate: false,\n -\n - /**\n - * APIProperty: layers\n - * {Array(<OpenLayers.Layer.WMS>)} The WMS layers this control will work \n - * on.\n - */\n - layers: null,\n -\n - /**\n - * Property: callbacks\n - * {Object} The functions that are sent to the handler for callback\n - */\n - callbacks: null,\n -\n - /**\n - * APIProperty: selectionSymbolizer\n - * {Object} Determines the styling of the selected objects. Default is\n - * a selection in red.\n - */\n - selectionSymbolizer: {\n - \'Polygon\': {fillColor: \'#FF0000\', stroke: false},\n - \'Line\': {strokeColor: \'#FF0000\', strokeWidth: 2},\n - \'Point\': {graphicName: \'square\', fillColor: \'#FF0000\', pointRadius: 5}\n - },\n -\n - /**\n - * APIProperty: layerOptions\n - * {Object} The options to apply to the selection layer, by default the\n - * selection layer will be kept out of the layer switcher.\n - */\n - layerOptions: null,\n -\n - /**\n - * APIProperty: handlerOptions\n - * {Object} Used to set non-default properties on the control\'s handler\n - */\n - handlerOptions: null,\n -\n - /**\n - * APIProperty: sketchStyle\n - * {<OpenLayers.Style>|Object} Style or symbolizer to use for the sketch\n - * handler. The recommended way of styling the sketch layer, however, is\n - * to configure an <OpenLayers.StyleMap> in the layerOptions of the\n - * <handlerOptions>:\n - * \n - * (code)\n - * new OpenLayers.Control.SLDSelect(OpenLayers.Handler.Path, {\n - * handlerOptions: {\n - * layerOptions: {\n - * styleMap: new OpenLayers.StyleMap({\n - * "default": {strokeColor: "yellow"}\n - * });\n - * }\n - * }\n - * });\n - * (end)\n - */\n - sketchStyle: null,\n -\n - /**\n - * APIProperty: wfsCache\n - * {Object} Cache to use for storing parsed results from\n - * <OpenLayers.Format.WFSDescribeFeatureType.read>. If not provided,\n - * these will be cached on the prototype.\n - */\n - wfsCache: {},\n -\n - /**\n - * APIProperty: layerCache\n - * {Object} Cache to use for storing references to the selection layers.\n - * Normally each source layer will have exactly 1 selection layer of\n - * type OpenLayers.Layer.WMS. If not provided, layers will\n - * be cached on the prototype. Note that if <clearOnDeactivate> is\n - * true, the layer will no longer be cached after deactivating the\n - * control.\n - */\n - layerCache: {},\n -\n - /**\n - * Constructor: OpenLayers.Control.SLDSelect\n - * Create a new control for selecting features in WMS layers using\n - * Styled Layer Descriptor (SLD).\n - *\n - * Parameters:\n - * handler - {<OpenLayers.Class>} A sketch handler class. This determines\n - * the type of selection, e.g. box (<OpenLayers.Handler.Box>), point\n - * (<OpenLayers.Handler.Point>), path (<OpenLayers.Handler.Path>) or\n - * polygon (<OpenLayers.Handler.Polygon>) selection. To use circle\n - * type selection, use <OpenLayers.Handler.RegularPolygon> and pass\n - * the number of desired sides (e.g. 40) as "sides" property to the\n - * <handlerOptions>.\n - * options - {Object} An object containing all configuration properties for\n - * the control.\n - *\n - * Valid options:\n - * layers - Array({<OpenLayers.Layer.WMS>}) The layers to perform the\n - * selection on.\n - */\n - initialize: function(handler, options) {\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n -\n - this.callbacks = OpenLayers.Util.extend({done: this.select, \n - click: this.select}, this.callbacks);\n - this.handlerOptions = this.handlerOptions || {};\n - this.layerOptions = OpenLayers.Util.applyDefaults(this.layerOptions, {\n - displayInLayerSwitcher: false,\n - tileOptions: {maxGetUrlLength: 2048}\n - });\n - if (this.sketchStyle) {\n - this.handlerOptions.layerOptions = OpenLayers.Util.applyDefaults(\n - this.handlerOptions.layerOptions,\n - {styleMap: new OpenLayers.StyleMap({"default": this.sketchStyle})}\n - );\n - }\n - this.handler = new handler(this, this.callbacks, this.handlerOptions);\n - },\n -\n - /**\n - * APIMethod: destroy\n - * Take care of things that are not handled in superclass.\n - */\n - destroy: function() {\n - for (var key in this.layerCache) {\n - delete this.layerCache[key];\n - }\n - for (var key in this.wfsCache) {\n - delete this.wfsCache[key];\n - }\n - OpenLayers.Control.prototype.destroy.apply(this, arguments);\n - },\n -\n - /**\n - * Method: coupleLayerVisiblity\n - * Couple the selection layer and the source layer with respect to\n - * layer visibility. So if the source layer is turned off, the\n - * selection layer is also turned off.\n - *\n - * Context: \n - * - {<OpenLayers.Layer>}\n - *\n - * Parameters:\n - * evt - {Object}\n - */\n - coupleLayerVisiblity: function(evt) {\n - this.setVisibility(evt.object.getVisibility());\n - },\n -\n - /**\n - * Method: createSelectionLayer\n - * Creates a "clone" from the source layer in which the selection can\n - * be drawn. This ensures both the source layer and the selection are \n - * visible and not only the selection.\n - *\n - * Parameters:\n - * source - {<OpenLayers.Layer.WMS>} The source layer on which the selection\n - * is performed.\n - *\n - * Returns:\n - * {<OpenLayers.Layer.WMS>} A WMS layer with maxGetUrlLength configured to 2048\n - * since SLD selections can easily get quite long.\n - */\n - createSelectionLayer: function(source) {\n - // check if we already have a selection layer for the source layer\n - var selectionLayer;\n - if (!this.layerCache[source.id]) {\n - selectionLayer = new OpenLayers.Layer.WMS(source.name, \n - source.url, source.params, \n - OpenLayers.Util.applyDefaults(\n - this.layerOptions,\n - source.getOptions())\n - );\n - this.layerCache[source.id] = selectionLayer;\n - // make sure the layers are coupled wrt visibility, but only\n - // if they are not displayed in the layer switcher, because in\n - // that case the user cannot control visibility.\n - if (this.layerOptions.displayInLayerSwitcher === false) {\n - source.events.on({\n - "visibilitychanged": this.coupleLayerVisiblity,\n - scope: selectionLayer});\n - }\n - this.map.addLayer(selectionLayer);\n - } else {\n - selectionLayer = this.layerCache[source.id];\n - }\n - return selectionLayer;\n - },\n -\n - /**\n - * Method: createSLD\n - * Create the SLD document for the layer using the supplied filters.\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer.WMS>}\n - * filters - Array({<OpenLayers.Filter>}) The filters to be applied.\n - * geometryAttributes - Array({Object}) The geometry attributes of the \n - * layer.\n - *\n - * Returns:\n - * {String} The SLD document generated as a string.\n - */\n - createSLD: function(layer, filters, geometryAttributes) {\n - var sld = {version: "1.0.0", namedLayers: {}};\n - var layerNames = [layer.params.LAYERS].join(",").split(",");\n - for (var i=0, len=layerNames.length; i<len; i++) { \n - var name = layerNames[i];\n - sld.namedLayers[name] = {name: name, userStyles: []};\n - var symbolizer = this.selectionSymbolizer;\n - var geometryAttribute = geometryAttributes[i];\n - if (geometryAttribute.type.indexOf(\'Polygon\') >= 0) {\n - symbolizer = {Polygon: this.selectionSymbolizer[\'Polygon\']};\n - } else if (geometryAttribute.type.indexOf(\'LineString\') >= 0) {\n - symbolizer = {Line: this.selectionSymbolizer[\'Line\']};\n - } else if (geometryAttribute.type.indexOf(\'Point\') >= 0) {\n - symbolizer = {Point: this.selectionSymbolizer[\'Point\']};\n - }\n - var filter = filters[i];\n - sld.namedLayers[name].userStyles.push({name: \'default\', rules: [\n - new OpenLayers.Rule({symbolizer: symbolizer, \n - filter: filter, \n - maxScaleDenominator: layer.options.minScale})\n - ]});\n - }\n - return new OpenLayers.Format.SLD({srsName: this.map.getProjection()}).write(sld);\n - },\n -\n - /**\n - * Method: parseDescribeLayer\n - * Parse the SLD WMS DescribeLayer response and issue the corresponding\n - * WFS DescribeFeatureType request\n - *\n - * request - {XMLHttpRequest} The request object.\n - */\n - parseDescribeLayer: function(request) {\n - var format = new OpenLayers.Format.WMSDescribeLayer();\n - var doc = request.responseXML;\n - if(!doc || !doc.documentElement) {\n - doc = request.responseText;\n - }\n - var describeLayer = format.read(doc);\n - var typeNames = [];\n - var url = null;\n - for (var i=0, len=describeLayer.length; i<len; i++) {\n - // perform a WFS DescribeFeatureType request\n - if (describeLayer[i].owsType == "WFS") {\n - typeNames.push(describeLayer[i].typeName);\n - url = describeLayer[i].owsURL;\n - }\n - }\n - var options = {\n - url: url,\n - params: {\n - SERVICE: "WFS",\n - TYPENAME: typeNames.toString(),\n - REQUEST: "DescribeFeatureType",\n - VERSION: "1.0.0"\n - },\n - callback: function(request) {\n - var format = new OpenLayers.Format.WFSDescribeFeatureType();\n - var doc = request.responseXML;\n - if(!doc || !doc.documentElement) {\n - doc = request.responseText;\n - }\n - var describeFeatureType = format.read(doc);\n - this.control.wfsCache[this.layer.id] = describeFeatureType;\n - this.control._queue && this.control.applySelection();\n - },\n - scope: this\n - };\n - OpenLayers.Request.GET(options);\n - },\n -\n - /**\n - * Method: getGeometryAttributes\n - * Look up the geometry attributes from the WFS DescribeFeatureType response\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer.WMS>} The layer for which to look up the \n - * geometry attributes.\n - *\n - * Returns:\n - * Array({Object}) Array of geometry attributes\n - */ \n - getGeometryAttributes: function(layer) {\n - var result = [];\n - var cache = this.wfsCache[layer.id];\n - for (var i=0, len=cache.featureTypes.length; i<len; i++) {\n - var typeName = cache.featureTypes[i];\n - var properties = typeName.properties;\n - for (var j=0, lenj=properties.length; j < lenj; j++) {\n - var property = properties[j];\n - var type = property.type;\n - if ((type.indexOf(\'LineString\') >= 0) ||\n - (type.indexOf(\'GeometryAssociationType\') >=0) ||\n - (type.indexOf(\'GeometryPropertyType\') >= 0) ||\n - (type.indexOf(\'Point\') >= 0) ||\n - (type.indexOf(\'Polygon\') >= 0) ) {\n - result.push(property);\n - }\n - }\n - }\n - return result;\n - },\n -\n - /**\n - * APIMethod: activate\n - * Activate the control. Activating the control will perform a SLD WMS\n - * DescribeLayer request followed by a WFS DescribeFeatureType request\n - * so that the proper symbolizers can be chosen based on the geometry\n - * type.\n - */\n - activate: function() {\n - var activated = OpenLayers.Control.prototype.activate.call(this);\n - if(activated) {\n - for (var i=0, len=this.layers.length; i<len; i++) {\n - var layer = this.layers[i];\n - if (layer && !this.wfsCache[layer.id]) {\n - var options = {\n - url: layer.url,\n - params: {\n - SERVICE: "WMS",\n - VERSION: layer.params.VERSION,\n - LAYERS: layer.params.LAYERS,\n - REQUEST: "DescribeLayer"\n - },\n - callback: this.parseDescribeLayer,\n - scope: {layer: layer, control: this}\n - };\n - OpenLayers.Request.GET(options);\n - }\n - }\n - }\n - return activated;\n - },\n -\n - /**\n - * APIMethod: deactivate\n - * Deactivate the control. If clearOnDeactivate is true, remove the\n - * selection layer(s).\n - */\n - deactivate: function() {\n - var deactivated = OpenLayers.Control.prototype.deactivate.call(this);\n - if(deactivated) {\n - for (var i=0, len=this.layers.length; i<len; i++) {\n - var layer = this.layers[i];\n - if (layer && this.clearOnDeactivate === true) {\n - var layerCache = this.layerCache;\n - var selectionLayer = layerCache[layer.id];\n - if (selectionLayer) {\n - layer.events.un({\n - "visibilitychanged": this.coupleLayerVisiblity,\n - scope: selectionLayer});\n - selectionLayer.destroy();\n - delete layerCache[layer.id];\n - }\n - }\n - }\n - }\n - return deactivated;\n - },\n -\n - /**\n - * APIMethod: setLayers\n - * Set the layers on which the selection should be performed. Call the \n - * setLayers method if the layer(s) to be used change and the same \n - * control should be used on a new set of layers.\n - * If the control is already active, it will be active after the new\n - * set of layers is set.\n - *\n - * Parameters:\n - * layers - {Array(<OpenLayers.Layer.WMS>)} The new set of layers on which \n - * the selection should be performed.\n - */\n - setLayers: function(layers) {\n - if(this.active) {\n - this.deactivate();\n - this.layers = layers;\n - this.activate();\n - } else {\n - this.layers = layers;\n - }\n - },\n -\n - /**\n - * Function: createFilter\n - * Create the filter to be used in the SLD.\n - *\n - * Parameters:\n - * geometryAttribute - {Object} Used to get the name of the geometry \n - * attribute which is needed for constructing the spatial filter.\n - * geometry - {<OpenLayers.Geometry>} The geometry to use.\n - *\n - * Returns:\n - * {<OpenLayers.Filter.Spatial>} The spatial filter created.\n - */\n - createFilter: function(geometryAttribute, geometry) {\n - var filter = null;\n - if (this.handler instanceof OpenLayers.Handler.RegularPolygon) {\n - // box\n - if (this.handler.irregular === true) {\n - filter = new OpenLayers.Filter.Spatial({\n - type: OpenLayers.Filter.Spatial.BBOX,\n - property: geometryAttribute.name,\n - value: geometry.getBounds()}\n - );\n - } else {\n - filter = new OpenLayers.Filter.Spatial({\n - type: OpenLayers.Filter.Spatial.INTERSECTS,\n - property: geometryAttribute.name,\n - value: geometry}\n - );\n - }\n - } else if (this.handler instanceof OpenLayers.Handler.Polygon) {\n - filter = new OpenLayers.Filter.Spatial({\n - type: OpenLayers.Filter.Spatial.INTERSECTS,\n - property: geometryAttribute.name,\n - value: geometry}\n - );\n - } else if (this.handler instanceof OpenLayers.Handler.Path) {\n - // if source layer is point based, use DWITHIN instead\n - if (geometryAttribute.type.indexOf(\'Point\') >= 0) {\n - filter = new OpenLayers.Filter.Spatial({\n - type: OpenLayers.Filter.Spatial.DWITHIN,\n - property: geometryAttribute.name,\n - distance: this.map.getExtent().getWidth()*0.01 ,\n - distanceUnits: this.map.getUnits(),\n - value: geometry}\n - );\n - } else {\n - filter = new OpenLayers.Filter.Spatial({\n - type: OpenLayers.Filter.Spatial.INTERSECTS,\n - property: geometryAttribute.name,\n - value: geometry}\n - );\n - }\n - } else if (this.handler instanceof OpenLayers.Handler.Click) {\n - if (geometryAttribute.type.indexOf(\'Polygon\') >= 0) {\n - filter = new OpenLayers.Filter.Spatial({\n - type: OpenLayers.Filter.Spatial.INTERSECTS,\n - property: geometryAttribute.name,\n - value: geometry}\n - );\n - } else {\n - filter = new OpenLayers.Filter.Spatial({\n - type: OpenLayers.Filter.Spatial.DWITHIN,\n - property: geometryAttribute.name,\n - distance: this.map.getExtent().getWidth()*0.01 ,\n - distanceUnits: this.map.getUnits(),\n - value: geometry}\n - );\n - }\n - }\n - return filter;\n - },\n -\n - /**\n - * Method: select\n - * When the handler is done, use SLD_BODY on the selection layer to\n - * display the selection in the map.\n - *\n - * Parameters:\n - * geometry - {Object} or {<OpenLayers.Geometry>}\n - */\n - select: function(geometry) {\n - this._queue = function() {\n - for (var i=0, len=this.layers.length; i<len; i++) {\n - var layer = this.layers[i];\n - var geometryAttributes = this.getGeometryAttributes(layer);\n - var filters = [];\n - for (var j=0, lenj=geometryAttributes.length; j<lenj; j++) {\n - var geometryAttribute = geometryAttributes[j];\n - if (geometryAttribute !== null) {\n - // from the click handler we will not get an actual \n - // geometry so transform\n - if (!(geometry instanceof OpenLayers.Geometry)) {\n - var point = this.map.getLonLatFromPixel(\n - geometry.xy);\n - geometry = new OpenLayers.Geometry.Point(\n - point.lon, point.lat);\n - }\n - var filter = this.createFilter(geometryAttribute,\n - geometry);\n - if (filter !== null) {\n - filters.push(filter);\n - }\n - }\n - }\n - \n - var selectionLayer = this.createSelectionLayer(layer);\n - var sld = this.createSLD(layer, filters, geometryAttributes);\n - \n - this.events.triggerEvent("selected", {\n - layer: layer,\n - filters: filters\n - });\n - \n - selectionLayer.mergeNewParams({SLD_BODY: sld});\n - delete this._queue;\n - }\n - };\n - this.applySelection();\n - },\n - \n - /**\n - * Method: applySelection\n - * Checks if all required wfs data is cached, and applies the selection\n - */\n - applySelection: function() {\n - var canApply = true;\n - for (var i=0, len=this.layers.length; i<len; i++) {\n - if(!this.wfsCache[this.layers[i].id]) {\n - canApply = false;\n - break;\n - }\n - }\n - canApply && this._queue.call(this);\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.SLDSelect"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>21423</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Scale.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Scale.js.xml deleted file mode 100644 index be185a58025037da3b6d810d42daaf8ddef46708..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Scale.js.xml +++ /dev/null @@ -1,144 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Scale.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.Scale\n - * The Scale control displays the current map scale as a ratio (e.g. Scale = \n - * 1:1M). By default it is displayed in the lower right corner of the map.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.Scale = OpenLayers.Class(OpenLayers.Control, {\n - \n - /**\n - * Property: element\n - * {DOMElement}\n - */\n - element: null,\n - \n - /**\n - * APIProperty: geodesic\n - * {Boolean} Use geodesic measurement. Default is false. The recommended\n - * setting for maps in EPSG:4326 is false, and true EPSG:900913. If set to\n - * true, the scale will be calculated based on the horizontal size of the\n - * pixel in the center of the map viewport.\n - */\n - geodesic: false,\n -\n - /**\n - * Constructor: OpenLayers.Control.Scale\n - * \n - * Parameters:\n - * element - {DOMElement} \n - * options - {Object} \n - */\n - initialize: function(element, options) {\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - this.element = OpenLayers.Util.getElement(element); \n - },\n -\n - /**\n - * Method: draw\n - * \n - * Returns:\n - * {DOMElement}\n - */ \n - draw: function() {\n - OpenLayers.Control.prototype.draw.apply(this, arguments);\n - if (!this.element) {\n - this.element = document.createElement("div");\n - this.div.appendChild(this.element);\n - }\n - this.map.events.register( \'moveend\', this, this.updateScale);\n - this.updateScale();\n - return this.div;\n - },\n - \n - /**\n - * Method: updateScale\n - */\n - updateScale: function() {\n - var scale;\n - if(this.geodesic === true) {\n - var units = this.map.getUnits();\n - if(!units) {\n - return;\n - }\n - var inches = OpenLayers.INCHES_PER_UNIT;\n - scale = (this.map.getGeodesicPixelSize().w || 0.000001) *\n - inches["km"] * OpenLayers.DOTS_PER_INCH;\n - } else {\n - scale = this.map.getScale();\n - }\n - \n - if (!scale) {\n - return;\n - }\n -\n - if (scale >= 9500 && scale <= 950000) {\n - scale = Math.round(scale / 1000) + "K";\n - } else if (scale >= 950000) {\n - scale = Math.round(scale / 1000000) + "M";\n - } else {\n - scale = Math.round(scale);\n - } \n - \n - this.element.innerHTML = OpenLayers.i18n("Scale = 1 : ${scaleDenom}", {\'scaleDenom\':scale});\n - }, \n -\n - CLASS_NAME: "OpenLayers.Control.Scale"\n -});\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2856</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ScaleLine.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ScaleLine.js.xml deleted file mode 100644 index f547ca21ab9f057baa00b5fea1b83a8894e20996..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ScaleLine.js.xml +++ /dev/null @@ -1,264 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ScaleLine.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.ScaleLine\n - * The ScaleLine displays a small line indicator representing the current \n - * map scale on the map. By default it is drawn in the lower left corner of\n - * the map.\n - * \n - * Inherits from:\n - * - <OpenLayers.Control>\n - * \n - * Is a very close copy of:\n - * - <OpenLayers.Control.Scale>\n - */\n -OpenLayers.Control.ScaleLine = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * Property: maxWidth\n - * {Integer} Maximum width of the scale line in pixels. Default is 100.\n - */\n - maxWidth: 100,\n -\n - /**\n - * Property: topOutUnits\n - * {String} Units for zoomed out on top bar. Default is km.\n - */\n - topOutUnits: "km",\n - \n - /**\n - * Property: topInUnits\n - * {String} Units for zoomed in on top bar. Default is m.\n - */\n - topInUnits: "m",\n -\n - /**\n - * Property: bottomOutUnits\n - * {String} Units for zoomed out on bottom bar. Default is mi.\n - */\n - bottomOutUnits: "mi",\n -\n - /**\n - * Property: bottomInUnits\n - * {String} Units for zoomed in on bottom bar. Default is ft.\n - */\n - bottomInUnits: "ft",\n - \n - /**\n - * Property: eTop\n - * {DOMElement}\n - */\n - eTop: null,\n -\n - /**\n - * Property: eBottom\n - * {DOMElement}\n - */\n - eBottom:null,\n - \n - /**\n - * APIProperty: geodesic\n - * {Boolean} Use geodesic measurement. Default is false. The recommended\n - * setting for maps in EPSG:4326 is false, and true EPSG:900913. If set to\n - * true, the scale will be calculated based on the horizontal size of the\n - * pixel in the center of the map viewport.\n - */\n - geodesic: false,\n -\n - /**\n - * Constructor: OpenLayers.Control.ScaleLine\n - * Create a new scale line control.\n - * \n - * Parameters:\n - * options - {Object} An optional object whose properties will be used\n - * to extend the control.\n - */\n -\n - /**\n - * Method: draw\n - * \n - * Returns:\n - * {DOMElement}\n - */\n - draw: function() {\n - OpenLayers.Control.prototype.draw.apply(this, arguments);\n - if (!this.eTop) {\n - // stick in the top bar\n - this.eTop = document.createElement("div");\n - this.eTop.className = this.displayClass + "Top";\n - var theLen = this.topInUnits.length;\n - this.div.appendChild(this.eTop);\n - if((this.topOutUnits == "") || (this.topInUnits == "")) {\n - this.eTop.style.visibility = "hidden";\n - } else {\n - this.eTop.style.visibility = "visible";\n - }\n -\n - // and the bottom bar\n - this.eBottom = document.createElement("div");\n - this.eBottom.className = this.displayClass + "Bottom";\n - this.div.appendChild(this.eBottom);\n - if((this.bottomOutUnits == "") || (this.bottomInUnits == "")) {\n - this.eBottom.style.visibility = "hidden";\n - } else {\n - this.eBottom.style.visibility = "visible";\n - }\n - }\n - this.map.events.register(\'moveend\', this, this.update);\n - this.update();\n - return this.div;\n - },\n -\n - /** \n - * Method: getBarLen\n - * Given a number, round it down to the nearest 1,2,5 times a power of 10.\n - * That seems a fairly useful set of number groups to use.\n - * \n - * Parameters:\n - * maxLen - {float} the number we\'re rounding down from\n - * \n - * Returns:\n - * {Float} the rounded number (less than or equal to maxLen)\n - */\n - getBarLen: function(maxLen) {\n - // nearest power of 10 lower than maxLen\n - var digits = parseInt(Math.log(maxLen) / Math.log(10));\n - var pow10 = Math.pow(10, digits);\n - \n - // ok, find first character\n - var firstChar = parseInt(maxLen / pow10);\n -\n - // right, put it into the correct bracket\n - var barLen;\n - if(firstChar > 5) {\n - barLen = 5;\n - } else if(firstChar > 2) {\n - barLen = 2;\n - } else {\n - barLen = 1;\n - }\n -\n - // scale it up the correct power of 10\n - return barLen * pow10;\n - },\n -\n - /**\n - * Method: update\n - * Update the size of the bars, and the labels they contain.\n - */\n - update: function() {\n - var res = this.map.getResolution();\n - if (!res) {\n - return;\n - }\n -\n - var curMapUnits = this.map.getUnits();\n - var inches = OpenLayers.INCHES_PER_UNIT;\n -\n - // convert maxWidth to map units\n - var maxSizeData = this.maxWidth * res * inches[curMapUnits];\n - var geodesicRatio = 1;\n - if(this.geodesic === true) {\n - var maxSizeGeodesic = (this.map.getGeodesicPixelSize().w ||\n - 0.000001) * this.maxWidth;\n - var maxSizeKilometers = maxSizeData / inches["km"];\n - geodesicRatio = maxSizeGeodesic / maxSizeKilometers;\n - maxSizeData *= geodesicRatio;\n - }\n -\n - // decide whether to use large or small scale units \n - var topUnits;\n - var bottomUnits;\n - if(maxSizeData > 100000) {\n - topUnits = this.topOutUnits;\n - bottomUnits = this.bottomOutUnits;\n - } else {\n - topUnits = this.topInUnits;\n - bottomUnits = this.bottomInUnits;\n - }\n -\n - // and to map units units\n - var topMax = maxSizeData / inches[topUnits];\n - var bottomMax = maxSizeData / inches[bottomUnits];\n -\n - // now trim this down to useful block length\n - var topRounded = this.getBarLen(topMax);\n - var bottomRounded = this.getBarLen(bottomMax);\n -\n - // and back to display units\n - topMax = topRounded / inches[curMapUnits] * inches[topUnits];\n - bottomMax = bottomRounded / inches[curMapUnits] * inches[bottomUnits];\n -\n - // and to pixel units\n - var topPx = topMax / res / geodesicRatio;\n - var bottomPx = bottomMax / res / geodesicRatio;\n - \n - // now set the pixel widths\n - // and the values inside them\n - \n - if (this.eBottom.style.visibility == "visible"){\n - this.eBottom.style.width = Math.round(bottomPx) + "px"; \n - this.eBottom.innerHTML = bottomRounded + " " + bottomUnits ;\n - }\n - \n - if (this.eTop.style.visibility == "visible"){\n - this.eTop.style.width = Math.round(topPx) + "px";\n - this.eTop.innerHTML = topRounded + " " + topUnits;\n - }\n - \n - }, \n -\n - CLASS_NAME: "OpenLayers.Control.ScaleLine"\n -});\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6670</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/SelectFeature.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/SelectFeature.js.xml deleted file mode 100644 index 591b01fa9c6b6a087bd4b66baa98a647a8e2b32b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/SelectFeature.js.xml +++ /dev/null @@ -1,679 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>SelectFeature.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Feature/Vector.js\n - * @requires OpenLayers/Handler/Feature.js\n - * @requires OpenLayers/Layer/Vector/RootContainer.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.SelectFeature\n - * The SelectFeature control selects vector features from a given layer on \n - * click or hover. \n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.SelectFeature = OpenLayers.Class(OpenLayers.Control, {\n -\n - /** \n - * APIProperty: events\n - * {<OpenLayers.Events>} Events instance for listeners and triggering\n - * control specific events.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * control.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types (in addition to those from <OpenLayers.Control.events>):\n - * beforefeaturehighlighted - Triggered before a feature is highlighted\n - * featurehighlighted - Triggered when a feature is highlighted\n - * featureunhighlighted - Triggered when a feature is unhighlighted\n - * boxselectionstart - Triggered before box selection starts\n - * boxselectionend - Triggered after box selection ends\n - */\n - \n - /**\n - * Property: multipleKey\n - * {String} An event modifier (\'altKey\' or \'shiftKey\') that temporarily sets\n - * the <multiple> property to true. Default is null.\n - */\n - multipleKey: null,\n - \n - /**\n - * Property: toggleKey\n - * {String} An event modifier (\'altKey\' or \'shiftKey\') that temporarily sets\n - * the <toggle> property to true. Default is null.\n - */\n - toggleKey: null,\n - \n - /**\n - * APIProperty: multiple\n - * {Boolean} Allow selection of multiple geometries. Default is false.\n - */\n - multiple: false, \n -\n - /**\n - * APIProperty: clickout\n - * {Boolean} Unselect features when clicking outside any feature.\n - * Default is true.\n - */\n - clickout: true,\n -\n - /**\n - * APIProperty: toggle\n - * {Boolean} Unselect a selected feature on click. Default is false. Only\n - * has meaning if hover is false.\n - */\n - toggle: false,\n -\n - /**\n - * APIProperty: hover\n - * {Boolean} Select on mouse over and deselect on mouse out. If true, this\n - * ignores clicks and only listens to mouse moves.\n - */\n - hover: false,\n -\n - /**\n - * APIProperty: highlightOnly\n - * {Boolean} If true do not actually select features (that is place them in \n - * the layer\'s selected features array), just highlight them. This property\n - * has no effect if hover is false. Defaults to false.\n - */\n - highlightOnly: false,\n - \n - /**\n - * APIProperty: box\n - * {Boolean} Allow feature selection by drawing a box.\n - */\n - box: false,\n - \n - /**\n - * Property: onBeforeSelect \n - * {Function} Optional function to be called before a feature is selected.\n - * The function should expect to be called with a feature.\n - */\n - onBeforeSelect: function() {},\n - \n - /**\n - * APIProperty: onSelect \n - * {Function} Optional function to be called when a feature is selected.\n - * The function should expect to be called with a feature.\n - */\n - onSelect: function() {},\n -\n - /**\n - * APIProperty: onUnselect\n - * {Function} Optional function to be called when a feature is unselected.\n - * The function should expect to be called with a feature.\n - */\n - onUnselect: function() {},\n - \n - /**\n - * Property: scope\n - * {Object} The scope to use with the onBeforeSelect, onSelect, onUnselect\n - * callbacks. If null the scope will be this control.\n - */\n - scope: null,\n -\n - /**\n - * APIProperty: geometryTypes\n - * {Array(String)} To restrict selecting to a limited set of geometry types,\n - * send a list of strings corresponding to the geometry class names.\n - */\n - geometryTypes: null,\n -\n - /**\n - * Property: layer\n - * {<OpenLayers.Layer.Vector>} The vector layer with a common renderer\n - * root for all layers this control is configured with (if an array of\n - * layers was passed to the constructor), or the vector layer the control\n - * was configured with (if a single layer was passed to the constructor).\n - */\n - layer: null,\n - \n - /**\n - * Property: layers\n - * {Array(<OpenLayers.Layer.Vector>)} The layers this control will work on,\n - * or null if the control was configured with a single layer\n - */\n - layers: null,\n - \n - /**\n - * APIProperty: callbacks\n - * {Object} The functions that are sent to the handlers.feature for callback\n - */\n - callbacks: null,\n - \n - /**\n - * APIProperty: selectStyle \n - * {Object} Hash of styles\n - */\n - selectStyle: null,\n - \n - /**\n - * Property: renderIntent\n - * {String} key used to retrieve the select style from the layer\'s\n - * style map.\n - */\n - renderIntent: "select",\n -\n - /**\n - * Property: handlers\n - * {Object} Object with references to multiple <OpenLayers.Handler>\n - * instances.\n - */\n - handlers: null,\n -\n - /**\n - * Constructor: OpenLayers.Control.SelectFeature\n - * Create a new control for selecting features.\n - *\n - * Parameters:\n - * layers - {<OpenLayers.Layer.Vector>}, or an array of vector layers. The\n - * layer(s) this control will select features from.\n - * options - {Object} \n - */\n - initialize: function(layers, options) {\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - \n - if(this.scope === null) {\n - this.scope = this;\n - }\n - this.initLayer(layers);\n - var callbacks = {\n - click: this.clickFeature,\n - clickout: this.clickoutFeature\n - };\n - if (this.hover) {\n - callbacks.over = this.overFeature;\n - callbacks.out = this.outFeature;\n - }\n - \n - this.callbacks = OpenLayers.Util.extend(callbacks, this.callbacks);\n - this.handlers = {\n - feature: new OpenLayers.Handler.Feature(\n - this, this.layer, this.callbacks,\n - {geometryTypes: this.geometryTypes}\n - )\n - };\n -\n - if (this.box) {\n - this.handlers.box = new OpenLayers.Handler.Box(\n - this, {done: this.selectBox},\n - {boxDivClassName: "olHandlerBoxSelectFeature"}\n - ); \n - }\n - },\n -\n - /**\n - * Method: initLayer\n - * Assign the layer property. If layers is an array, we need to use\n - * a RootContainer.\n - *\n - * Parameters:\n - * layers - {<OpenLayers.Layer.Vector>}, or an array of vector layers.\n - */\n - initLayer: function(layers) {\n - if(OpenLayers.Util.isArray(layers)) {\n - this.layers = layers;\n - this.layer = new OpenLayers.Layer.Vector.RootContainer(\n - this.id + "_container", {\n - layers: layers\n - }\n - );\n - } else {\n - this.layer = layers;\n - }\n - },\n - \n - /**\n - * Method: destroy\n - */\n - destroy: function() {\n - if(this.active && this.layers) {\n - this.map.removeLayer(this.layer);\n - }\n - OpenLayers.Control.prototype.destroy.apply(this, arguments);\n - if(this.layers) {\n - this.layer.destroy();\n - }\n - },\n -\n - /**\n - * Method: activate\n - * Activates the control.\n - * \n - * Returns:\n - * {Boolean} The control was effectively activated.\n - */\n - activate: function () {\n - if (!this.active) {\n - if(this.layers) {\n - this.map.addLayer(this.layer);\n - }\n - this.handlers.feature.activate();\n - if(this.box && this.handlers.box) {\n - this.handlers.box.activate();\n - }\n - }\n - return OpenLayers.Control.prototype.activate.apply(\n - this, arguments\n - );\n - },\n -\n - /**\n - * Method: deactivate\n - * Deactivates the control.\n - * \n - * Returns:\n - * {Boolean} The control was effectively deactivated.\n - */\n - deactivate: function () {\n - if (this.active) {\n - this.handlers.feature.deactivate();\n - if(this.handlers.box) {\n - this.handlers.box.deactivate();\n - }\n - if(this.layers) {\n - this.map.removeLayer(this.layer);\n - }\n - }\n - return OpenLayers.Control.prototype.deactivate.apply(\n - this, arguments\n - );\n - },\n -\n - /**\n - * Method: unselectAll\n - * Unselect all selected features. To unselect all except for a single\n - * feature, set the options.except property to the feature.\n - *\n - * Parameters:\n - * options - {Object} Optional configuration object.\n - */\n - unselectAll: function(options) {\n - // we\'ll want an option to supress notification here\n - var layers = this.layers || [this.layer];\n - var layer, feature;\n - for(var l=0; l<layers.length; ++l) {\n - layer = layers[l];\n - for(var i=layer.selectedFeatures.length-1; i>=0; --i) {\n - feature = layer.selectedFeatures[i];\n - if(!options || options.except != feature) {\n - this.unselect(feature);\n - }\n - }\n - }\n - },\n -\n - /**\n - * Method: clickFeature\n - * Called on click in a feature\n - * Only responds if this.hover is false.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} \n - */\n - clickFeature: function(feature) {\n - if(!this.hover) {\n - var selected = (OpenLayers.Util.indexOf(\n - feature.layer.selectedFeatures, feature) > -1);\n - if(selected) {\n - if(this.toggleSelect()) {\n - this.unselect(feature);\n - } else if(!this.multipleSelect()) {\n - this.unselectAll({except: feature});\n - }\n - } else {\n - if(!this.multipleSelect()) {\n - this.unselectAll({except: feature});\n - }\n - this.select(feature);\n - }\n - }\n - },\n -\n - /**\n - * Method: multipleSelect\n - * Allow for multiple selected features based on <multiple> property and\n - * <multipleKey> event modifier.\n - *\n - * Returns:\n - * {Boolean} Allow for multiple selected features.\n - */\n - multipleSelect: function() {\n - return this.multiple || (this.handlers.feature.evt &&\n - this.handlers.feature.evt[this.multipleKey]);\n - },\n - \n - /**\n - * Method: toggleSelect\n - * Event should toggle the selected state of a feature based on <toggle>\n - * property and <toggleKey> event modifier.\n - *\n - * Returns:\n - * {Boolean} Toggle the selected state of a feature.\n - */\n - toggleSelect: function() {\n - return this.toggle || (this.handlers.feature.evt &&\n - this.handlers.feature.evt[this.toggleKey]);\n - },\n -\n - /**\n - * Method: clickoutFeature\n - * Called on click outside a previously clicked (selected) feature.\n - * Only responds if this.hover is false.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Vector.Feature>} \n - */\n - clickoutFeature: function(feature) {\n - if(!this.hover && this.clickout) {\n - this.unselectAll();\n - }\n - },\n -\n - /**\n - * Method: overFeature\n - * Called on over a feature.\n - * Only responds if this.hover is true.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} \n - */\n - overFeature: function(feature) {\n - var layer = feature.layer;\n - if(this.hover) {\n - if(this.highlightOnly) {\n - this.highlight(feature);\n - } else if(OpenLayers.Util.indexOf(\n - layer.selectedFeatures, feature) == -1) {\n - this.select(feature);\n - }\n - }\n - },\n -\n - /**\n - * Method: outFeature\n - * Called on out of a selected feature.\n - * Only responds if this.hover is true.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} \n - */\n - outFeature: function(feature) {\n - if(this.hover) {\n - if(this.highlightOnly) {\n - // we do nothing if we\'re not the last highlighter of the\n - // feature\n - if(feature._lastHighlighter == this.id) {\n - // if another select control had highlighted the feature before\n - // we did it ourself then we use that control to highlight the\n - // feature as it was before we highlighted it, else we just\n - // unhighlight it\n - if(feature._prevHighlighter &&\n - feature._prevHighlighter != this.id) {\n - delete feature._lastHighlighter;\n - var control = this.map.getControl(\n - feature._prevHighlighter);\n - if(control) {\n - control.highlight(feature);\n - }\n - } else {\n - this.unhighlight(feature);\n - }\n - }\n - } else {\n - this.unselect(feature);\n - }\n - }\n - },\n -\n - /**\n - * Method: highlight\n - * Redraw feature with the select style.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} \n - */\n - highlight: function(feature) {\n - var layer = feature.layer;\n - var cont = this.events.triggerEvent("beforefeaturehighlighted", {\n - feature : feature\n - });\n - if(cont !== false) {\n - feature._prevHighlighter = feature._lastHighlighter;\n - feature._lastHighlighter = this.id;\n - var style = this.selectStyle || this.renderIntent;\n - layer.drawFeature(feature, style);\n - this.events.triggerEvent("featurehighlighted", {feature : feature});\n - }\n - },\n -\n - /**\n - * Method: unhighlight\n - * Redraw feature with the "default" style\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} \n - */\n - unhighlight: function(feature) {\n - var layer = feature.layer;\n - // three cases:\n - // 1. there\'s no other highlighter, in that case _prev is undefined,\n - // and we just need to undef _last\n - // 2. another control highlighted the feature after we did it, in\n - // that case _last references this other control, and we just\n - // need to undef _prev\n - // 3. another control highlighted the feature before we did it, in\n - // that case _prev references this other control, and we need to\n - // set _last to _prev and undef _prev\n - if(feature._prevHighlighter == undefined) {\n - delete feature._lastHighlighter;\n - } else if(feature._prevHighlighter == this.id) {\n - delete feature._prevHighlighter;\n - } else {\n - feature._lastHighlighter = feature._prevHighlighter;\n - delete feature._prevHighlighter;\n - }\n - layer.drawFeature(feature, feature.style || feature.layer.style ||\n - "default");\n - this.events.triggerEvent("featureunhighlighted", {feature : feature});\n - },\n - \n - /**\n - * Method: select\n - * Add feature to the layer\'s selectedFeature array, render the feature as\n - * selected, and call the onSelect function.\n - * \n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} \n - */\n - select: function(feature) {\n - var cont = this.onBeforeSelect.call(this.scope, feature);\n - var layer = feature.layer;\n - if(cont !== false) {\n - cont = layer.events.triggerEvent("beforefeatureselected", {\n - feature: feature\n - });\n - if(cont !== false) {\n - layer.selectedFeatures.push(feature);\n - this.highlight(feature);\n - // if the feature handler isn\'t involved in the feature\n - // selection (because the box handler is used or the\n - // feature is selected programatically) we fake the\n - // feature handler to allow unselecting on click\n - if(!this.handlers.feature.lastFeature) {\n - this.handlers.feature.lastFeature = layer.selectedFeatures[0];\n - }\n - layer.events.triggerEvent("featureselected", {feature: feature});\n - this.onSelect.call(this.scope, feature);\n - }\n - }\n - },\n -\n - /**\n - * Method: unselect\n - * Remove feature from the layer\'s selectedFeature array, render the feature as\n - * normal, and call the onUnselect function.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - */\n - unselect: function(feature) {\n - var layer = feature.layer;\n - // Store feature style for restoration later\n - this.unhighlight(feature);\n - OpenLayers.Util.removeItem(layer.selectedFeatures, feature);\n - layer.events.triggerEvent("featureunselected", {feature: feature});\n - this.onUnselect.call(this.scope, feature);\n - },\n - \n - /**\n - * Method: selectBox\n - * Callback from the handlers.box set up when <box> selection is true\n - * on.\n - *\n - * Parameters:\n - * position - {<OpenLayers.Bounds> || <OpenLayers.Pixel> } \n - */\n - selectBox: function(position) {\n - if (position instanceof OpenLayers.Bounds) {\n - var minXY = this.map.getLonLatFromPixel({\n - x: position.left,\n - y: position.bottom\n - });\n - var maxXY = this.map.getLonLatFromPixel({\n - x: position.right,\n - y: position.top\n - });\n - var bounds = new OpenLayers.Bounds(\n - minXY.lon, minXY.lat, maxXY.lon, maxXY.lat\n - );\n - \n - // if multiple is false, first deselect currently selected features\n - if (!this.multipleSelect()) {\n - this.unselectAll();\n - }\n - \n - // because we\'re using a box, we consider we want multiple selection\n - var prevMultiple = this.multiple;\n - this.multiple = true;\n - var layers = this.layers || [this.layer];\n - this.events.triggerEvent("boxselectionstart", {layers: layers}); \n - var layer;\n - for(var l=0; l<layers.length; ++l) {\n - layer = layers[l];\n - for(var i=0, len = layer.features.length; i<len; ++i) {\n - var feature = layer.features[i];\n - // check if the feature is displayed\n - if (!feature.getVisibility()) {\n - continue;\n - }\n -\n - if (this.geometryTypes == null || OpenLayers.Util.indexOf(\n - this.geometryTypes, feature.geometry.CLASS_NAME) > -1) {\n - if (bounds.toGeometry().intersects(feature.geometry)) {\n - if (OpenLayers.Util.indexOf(layer.selectedFeatures, feature) == -1) {\n - this.select(feature);\n - }\n - }\n - }\n - }\n - }\n - this.multiple = prevMultiple;\n - this.events.triggerEvent("boxselectionend", {layers: layers}); \n - }\n - },\n -\n - /** \n - * Method: setMap\n - * Set the map property for the control. \n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>} \n - */\n - setMap: function(map) {\n - this.handlers.feature.setMap(map);\n - if (this.box) {\n - this.handlers.box.setMap(map);\n - }\n - OpenLayers.Control.prototype.setMap.apply(this, arguments);\n - },\n - \n - /**\n - * APIMethod: setLayer\n - * Attach a new layer to the control, overriding any existing layers.\n - *\n - * Parameters:\n - * layers - Array of {<OpenLayers.Layer.Vector>} or a single\n - * {<OpenLayers.Layer.Vector>}\n - */\n - setLayer: function(layers) {\n - var isActive = this.active;\n - this.unselectAll();\n - this.deactivate();\n - if(this.layers) {\n - this.layer.destroy();\n - this.layers = null;\n - }\n - this.initLayer(layers);\n - this.handlers.feature.layer = this.layer;\n - if (isActive) {\n - this.activate();\n - }\n - },\n - \n - CLASS_NAME: "OpenLayers.Control.SelectFeature"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>20556</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Snapping.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Snapping.js.xml deleted file mode 100644 index b866a9d9da96dd65916dbf33a444cc8ade73346b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Snapping.js.xml +++ /dev/null @@ -1,604 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Snapping.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Layer/Vector.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.Snapping\n - * Acts as a snapping agent while editing vector features.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.Snapping = OpenLayers.Class(OpenLayers.Control, {\n -\n - /** \n - * APIProperty: events\n - * {<OpenLayers.Events>} Events instance for listeners and triggering\n - * control specific events.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * control.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types (in addition to those from <OpenLayers.Control.events>):\n - * beforesnap - Triggered before a snap occurs. Listeners receive an\n - * event object with *point*, *x*, *y*, *distance*, *layer*, and\n - * *snapType* properties. The point property will be original point\n - * geometry considered for snapping. The x and y properties represent\n - * coordinates the point will receive. The distance is the distance\n - * of the snap. The layer is the target layer. The snapType property\n - * will be one of "node", "vertex", or "edge". Return false to stop\n - * snapping from occurring.\n - * snap - Triggered when a snap occurs. Listeners receive an event with\n - * *point*, *snapType*, *layer*, and *distance* properties. The point\n - * will be the location snapped to. The snapType will be one of "node",\n - * "vertex", or "edge". The layer will be the target layer. The\n - * distance will be the distance of the snap in map units.\n - * unsnap - Triggered when a vertex is unsnapped. Listeners receive an\n - * event with a *point* property.\n - */\n - \n - /**\n - * CONSTANT: DEFAULTS\n - * Default target properties.\n - */\n - DEFAULTS: {\n - tolerance: 10,\n - node: true,\n - edge: true,\n - vertex: true\n - },\n - \n - /**\n - * Property: greedy\n - * {Boolean} Snap to closest feature in first layer with an eligible\n - * feature. Default is true.\n - */\n - greedy: true,\n - \n - /**\n - * Property: precedence\n - * {Array} List representing precedence of different snapping types.\n - * Default is "node", "vertex", "edge".\n - */\n - precedence: ["node", "vertex", "edge"],\n - \n - /**\n - * Property: resolution\n - * {Float} The map resolution for the previously considered snap.\n - */\n - resolution: null,\n - \n - /**\n - * Property: geoToleranceCache\n - * {Object} A cache of geo-tolerances. Tolerance values (in map units) are\n - * calculated when the map resolution changes.\n - */\n - geoToleranceCache: null,\n - \n - /**\n - * Property: layer\n - * {<OpenLayers.Layer.Vector>} The current editable layer. Set at\n - * construction or after construction with <setLayer>.\n - */\n - layer: null,\n - \n - /**\n - * Property: feature\n - * {<OpenLayers.Feature.Vector>} The current editable feature.\n - */\n - feature: null,\n - \n - /**\n - * Property: point\n - * {<OpenLayers.Geometry.Point>} The currently snapped vertex.\n - */\n - point: null,\n -\n - /**\n - * Constructor: OpenLayers.Control.Snapping\n - * Creates a new snapping control. A control is constructed with an editable\n - * layer and a set of configuration objects for target layers. While the\n - * control is active, dragging vertices while drawing new features or\n - * modifying existing features on the editable layer will engage\n - * snapping to features on the target layers. Whether a vertex snaps to\n - * a feature on a target layer depends on the target layer configuration.\n - *\n - * Parameters:\n - * options - {Object} An object containing all configuration properties for\n - * the control.\n - *\n - * Valid options:\n - * layer - {<OpenLayers.Layer.Vector>} The editable layer. Features from this\n - * layer that are digitized or modified may have vertices snapped to\n - * features from any of the target layers.\n - * targets - {Array(Object | OpenLayers.Layer.Vector)} A list of objects for\n - * configuring target layers. See valid properties of the target\n - * objects below. If the items in the targets list are vector layers\n - * (instead of configuration objects), the defaults from the <defaults>\n - * property will apply. The editable layer itself may be a target\n - * layer - allowing newly created or edited features to be snapped to\n - * existing features from the same layer. If no targets are provided\n - * the layer given in the constructor (as <layer>) will become the\n - * initial target.\n - * defaults - {Object} An object with default properties to be applied\n - * to all target objects.\n - * greedy - {Boolean} Snap to closest feature in first target layer that\n - * applies. Default is true. If false, all features in all target\n - * layers will be checked and the closest feature in all target layers\n - * will be chosen. The greedy property determines if the order of the\n - * target layers is significant. By default, the order of the target\n - * layers is significant where layers earlier in the target layer list\n - * have precedence over layers later in the list. Within a single\n - * layer, the closest feature is always chosen for snapping. This\n - * property only determines whether the search for a closer feature\n - * continues after an eligible feature is found in a target layer.\n - *\n - * Valid target properties:\n - * layer - {<OpenLayers.Layer.Vector>} A target layer. Features from this\n - * layer will be eligible to act as snapping target for the editable\n - * layer.\n - * tolerance - {Float} The distance (in pixels) at which snapping may occur.\n - * Default is 10.\n - * node - {Boolean} Snap to nodes (first or last point in a geometry) in\n - * target layer. Default is true.\n - * nodeTolerance - {Float} Optional distance at which snapping may occur\n - * for nodes specifically. If none is provided, <tolerance> will be\n - * used.\n - * vertex - {Boolean} Snap to vertices in target layer. Default is true.\n - * vertexTolerance - {Float} Optional distance at which snapping may occur\n - * for vertices specifically. If none is provided, <tolerance> will be\n - * used.\n - * edge - {Boolean} Snap to edges in target layer. Default is true.\n - * edgeTolerance - {Float} Optional distance at which snapping may occur\n - * for edges specifically. If none is provided, <tolerance> will be\n - * used.\n - * filter - {<OpenLayers.Filter>} Optional filter to evaluate to determine if\n - * feature is eligible for snapping. If filter evaluates to true for a\n - * target feature a vertex may be snapped to the feature. \n - * minResolution - {Number} If a minResolution is provided, snapping to this\n - * target will only be considered if the map resolution is greater than\n - * or equal to this value (the minResolution is inclusive). Default is\n - * no minimum resolution limit.\n - * maxResolution - {Number} If a maxResolution is provided, snapping to this\n - * target will only be considered if the map resolution is strictly\n - * less than this value (the maxResolution is exclusive). Default is\n - * no maximum resolution limit.\n - */\n - initialize: function(options) {\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - this.options = options || {}; // TODO: this could be done by the super\n - \n - // set the editable layer if provided\n - if(this.options.layer) {\n - this.setLayer(this.options.layer);\n - }\n - // configure target layers\n - var defaults = OpenLayers.Util.extend({}, this.options.defaults);\n - this.defaults = OpenLayers.Util.applyDefaults(defaults, this.DEFAULTS);\n - this.setTargets(this.options.targets);\n - if(this.targets.length === 0 && this.layer) {\n - this.addTargetLayer(this.layer);\n - }\n -\n - this.geoToleranceCache = {};\n - },\n - \n - /**\n - * APIMethod: setLayer\n - * Set the editable layer. Call the setLayer method if the editable layer\n - * changes and the same control should be used on a new editable layer.\n - * If the control is already active, it will be active after the new\n - * layer is set.\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer.Vector>} The new editable layer.\n - */\n - setLayer: function(layer) {\n - if(this.active) {\n - this.deactivate();\n - this.layer = layer;\n - this.activate();\n - } else {\n - this.layer = layer;\n - }\n - },\n - \n - /**\n - * Method: setTargets\n - * Set the targets for the snapping agent.\n - *\n - * Parameters:\n - * targets - {Array} An array of target configs or target layers.\n - */\n - setTargets: function(targets) {\n - this.targets = [];\n - if(targets && targets.length) {\n - var target;\n - for(var i=0, len=targets.length; i<len; ++i) {\n - target = targets[i];\n - if(target instanceof OpenLayers.Layer.Vector) {\n - this.addTargetLayer(target);\n - } else {\n - this.addTarget(target);\n - }\n - }\n - }\n - },\n - \n - /**\n - * Method: addTargetLayer\n - * Add a target layer with the default target config.\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer.Vector>} A target layer.\n - */\n - addTargetLayer: function(layer) {\n - this.addTarget({layer: layer});\n - },\n - \n - /**\n - * Method: addTarget\n - * Add a configured target layer.\n - *\n - * Parameters:\n - * target - {Object} A target config.\n - */\n - addTarget: function(target) {\n - target = OpenLayers.Util.applyDefaults(target, this.defaults);\n - target.nodeTolerance = target.nodeTolerance || target.tolerance;\n - target.vertexTolerance = target.vertexTolerance || target.tolerance;\n - target.edgeTolerance = target.edgeTolerance || target.tolerance;\n - this.targets.push(target);\n - },\n - \n - /**\n - * Method: removeTargetLayer\n - * Remove a target layer.\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer.Vector>} The target layer to remove.\n - */\n - removeTargetLayer: function(layer) {\n - var target;\n - for(var i=this.targets.length-1; i>=0; --i) {\n - target = this.targets[i];\n - if(target.layer === layer) {\n - this.removeTarget(target);\n - }\n - }\n - },\n - \n - /**\n - * Method: removeTarget\n - * Remove a target.\n - *\n - * Parameters:\n - * target - {Object} A target config.\n - *\n - * Returns:\n - * {Array} The targets array.\n - */\n - removeTarget: function(target) {\n - return OpenLayers.Util.removeItem(this.targets, target);\n - },\n - \n - /**\n - * APIMethod: activate\n - * Activate the control. Activating the control registers listeners for\n - * editing related events so that during feature creation and\n - * modification, moving vertices will trigger snapping.\n - */\n - activate: function() {\n - var activated = OpenLayers.Control.prototype.activate.call(this);\n - if(activated) {\n - if(this.layer && this.layer.events) {\n - this.layer.events.on({\n - sketchstarted: this.onSketchModified,\n - sketchmodified: this.onSketchModified,\n - vertexmodified: this.onVertexModified,\n - scope: this\n - });\n - }\n - }\n - return activated;\n - },\n - \n - /**\n - * APIMethod: deactivate\n - * Deactivate the control. Deactivating the control unregisters listeners\n - * so feature editing may proceed without engaging the snapping agent.\n - */\n - deactivate: function() {\n - var deactivated = OpenLayers.Control.prototype.deactivate.call(this);\n - if(deactivated) {\n - if(this.layer && this.layer.events) {\n - this.layer.events.un({\n - sketchstarted: this.onSketchModified,\n - sketchmodified: this.onSketchModified,\n - vertexmodified: this.onVertexModified,\n - scope: this\n - });\n - }\n - }\n - this.feature = null;\n - this.point = null;\n - return deactivated;\n - },\n - \n - /**\n - * Method: onSketchModified\n - * Registered as a listener for the sketchmodified event on the editable\n - * layer.\n - *\n - * Parameters:\n - * event - {Object} The sketch modified event.\n - */\n - onSketchModified: function(event) {\n - this.feature = event.feature;\n - this.considerSnapping(event.vertex, event.vertex);\n - },\n - \n - /**\n - * Method: onVertexModified\n - * Registered as a listener for the vertexmodified event on the editable\n - * layer.\n - *\n - * Parameters:\n - * event - {Object} The vertex modified event.\n - */\n - onVertexModified: function(event) {\n - this.feature = event.feature;\n - var loc = this.layer.map.getLonLatFromViewPortPx(event.pixel);\n - this.considerSnapping(\n - event.vertex, new OpenLayers.Geometry.Point(loc.lon, loc.lat)\n - );\n - },\n -\n - /**\n - * Method: considerSnapping\n - *\n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>} The vertex to be snapped (or\n - * unsnapped).\n - * loc - {<OpenLayers.Geometry.Point>} The location of the mouse in map\n - * coords.\n - */\n - considerSnapping: function(point, loc) {\n - var best = {\n - rank: Number.POSITIVE_INFINITY,\n - dist: Number.POSITIVE_INFINITY,\n - x: null, y: null\n - };\n - var snapped = false;\n - var result, target;\n - for(var i=0, len=this.targets.length; i<len; ++i) {\n - target = this.targets[i];\n - result = this.testTarget(target, loc);\n - if(result) {\n - if(this.greedy) {\n - best = result;\n - best.target = target; \n - snapped = true;\n - break;\n - } else {\n - if((result.rank < best.rank) ||\n - (result.rank === best.rank && result.dist < best.dist)) {\n - best = result;\n - best.target = target;\n - snapped = true;\n - }\n - }\n - }\n - }\n - if(snapped) {\n - var proceed = this.events.triggerEvent("beforesnap", {\n - point: point, x: best.x, y: best.y, distance: best.dist,\n - layer: best.target.layer, snapType: this.precedence[best.rank]\n - });\n - if(proceed !== false) {\n - point.x = best.x;\n - point.y = best.y;\n - this.point = point;\n - this.events.triggerEvent("snap", {\n - point: point,\n - snapType: this.precedence[best.rank],\n - layer: best.target.layer,\n - distance: best.dist\n - });\n - } else {\n - snapped = false;\n - }\n - }\n - if(this.point && !snapped) {\n - point.x = loc.x;\n - point.y = loc.y;\n - this.point = null;\n - this.events.triggerEvent("unsnap", {point: point});\n - }\n - },\n - \n - /**\n - * Method: testTarget\n - *\n - * Parameters:\n - * target - {Object} Object with target layer configuration.\n - * loc - {<OpenLayers.Geometry.Point>} The location of the mouse in map\n - * coords.\n - *\n - * Returns:\n - * {Object} A result object with rank, dist, x, and y properties.\n - * Returns null if candidate is not eligible for snapping.\n - */\n - testTarget: function(target, loc) {\n - var resolution = this.layer.map.getResolution();\n - if ("minResolution" in target) {\n - if (resolution < target.minResolution) {\n - return null;\n - }\n - }\n - if ("maxResolution" in target) {\n - if (resolution >= target.maxResolution) {\n - return null;\n - }\n - }\n - var tolerance = {\n - node: this.getGeoTolerance(target.nodeTolerance, resolution),\n - vertex: this.getGeoTolerance(target.vertexTolerance, resolution),\n - edge: this.getGeoTolerance(target.edgeTolerance, resolution)\n - };\n - // this could be cached if we don\'t support setting tolerance values directly\n - var maxTolerance = Math.max(\n - tolerance.node, tolerance.vertex, tolerance.edge\n - );\n - var result = {\n - rank: Number.POSITIVE_INFINITY, dist: Number.POSITIVE_INFINITY\n - };\n - var eligible = false;\n - var features = target.layer.features;\n - var feature, type, vertices, vertex, closest, dist, found;\n - var numTypes = this.precedence.length;\n - var ll = new OpenLayers.LonLat(loc.x, loc.y);\n - for(var i=0, len=features.length; i<len; ++i) {\n - feature = features[i];\n - if(feature !== this.feature && !feature._sketch &&\n - feature.state !== OpenLayers.State.DELETE &&\n - (!target.filter || target.filter.evaluate(feature))) {\n - if(feature.atPoint(ll, maxTolerance, maxTolerance)) {\n - for(var j=0, stop=Math.min(result.rank+1, numTypes); j<stop; ++j) {\n - type = this.precedence[j];\n - if(target[type]) {\n - if(type === "edge") {\n - closest = feature.geometry.distanceTo(loc, {details: true});\n - dist = closest.distance;\n - if(dist <= tolerance[type] && dist < result.dist) {\n - result = {\n - rank: j, dist: dist,\n - x: closest.x0, y: closest.y0 // closest coords on feature\n - };\n - eligible = true;\n - // don\'t look for lower precedence types for this feature\n - break;\n - }\n - } else {\n - // look for nodes or vertices\n - vertices = feature.geometry.getVertices(type === "node");\n - found = false;\n - for(var k=0, klen=vertices.length; k<klen; ++k) {\n - vertex = vertices[k];\n - dist = vertex.distanceTo(loc);\n - if(dist <= tolerance[type] &&\n - (j < result.rank || (j === result.rank && dist < result.dist))) {\n - result = {\n - rank: j, dist: dist,\n - x: vertex.x, y: vertex.y\n - };\n - eligible = true;\n - found = true;\n - }\n - }\n - if(found) {\n - // don\'t look for lower precedence types for this feature\n - break;\n - }\n - }\n - }\n - }\n - }\n - }\n - }\n - return eligible ? result : null;\n - },\n - \n - /**\n - * Method: getGeoTolerance\n - * Calculate a tolerance in map units given a tolerance in pixels. This\n - * takes advantage of the <geoToleranceCache> when the map resolution\n - * has not changed.\n - * \n - * Parameters:\n - * tolerance - {Number} A tolerance value in pixels.\n - * resolution - {Number} Map resolution.\n - *\n - * Returns:\n - * {Number} A tolerance value in map units.\n - */\n - getGeoTolerance: function(tolerance, resolution) {\n - if(resolution !== this.resolution) {\n - this.resolution = resolution;\n - this.geoToleranceCache = {};\n - }\n - var geoTolerance = this.geoToleranceCache[tolerance];\n - if(geoTolerance === undefined) {\n - geoTolerance = tolerance * resolution;\n - this.geoToleranceCache[tolerance] = geoTolerance;\n - }\n - return geoTolerance;\n - },\n - \n - /**\n - * Method: destroy\n - * Clean up the control.\n - */\n - destroy: function() {\n - if(this.active) {\n - this.deactivate(); // TODO: this should be handled by the super\n - }\n - delete this.layer;\n - delete this.targets;\n - OpenLayers.Control.prototype.destroy.call(this);\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.Snapping"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>21409</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Split.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Split.js.xml deleted file mode 100644 index 4a4cdb58dd03c8779e8b378c074d6fc4c3e38e28..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Split.js.xml +++ /dev/null @@ -1,538 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Split.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Handler/Path.js\n - * @requires OpenLayers/Layer/Vector.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.Split\n - * Acts as a split feature agent while editing vector features.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.Split = OpenLayers.Class(OpenLayers.Control, {\n -\n - /** \n - * APIProperty: events\n - * {<OpenLayers.Events>} Events instance for listeners and triggering\n - * control specific events.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * control.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types (in addition to those from <OpenLayers.Control.events>):\n - * beforesplit - Triggered before a split occurs. Listeners receive an\n - * event object with *source* and *target* properties.\n - * split - Triggered when a split occurs. Listeners receive an event with\n - * an *original* property and a *features* property. The original\n - * is a reference to the target feature that the sketch or modified\n - * feature intersects. The features property is a list of all features\n - * that result from this single split. This event is triggered before\n - * the resulting features are added to the layer (while the layer still\n - * has a reference to the original).\n - * aftersplit - Triggered after all splits resulting from a single sketch\n - * or feature modification have occurred. The original features\n - * have been destroyed and features that result from the split\n - * have already been added to the layer. Listeners receive an event\n - * with a *source* and *features* property. The source references the\n - * sketch or modified feature used as a splitter. The features\n - * property is a list of all resulting features.\n - */\n - \n - /**\n - * APIProperty: layer\n - * {<OpenLayers.Layer.Vector>} The target layer with features to be split.\n - * Set at construction or after construction with <setLayer>.\n - */\n - layer: null,\n - \n - /**\n - * Property: source\n - * {<OpenLayers.Layer.Vector>} Optional source layer. Any newly created\n - * or modified features from this layer will be used to split features\n - * on the target layer. If not provided, a temporary sketch layer will\n - * be created.\n - */\n - source: null,\n - \n - /**\n - * Property: sourceOptions\n - * {Options} If a temporary sketch layer is created, these layer options\n - * will be applied.\n - */\n - sourceOptions: null,\n -\n - /**\n - * APIProperty: tolerance\n - * {Number} Distance between the calculated intersection and a vertex on\n - * the source geometry below which the existing vertex will be used\n - * for the split. Default is null.\n - */\n - tolerance: null,\n - \n - /**\n - * APIProperty: edge\n - * {Boolean} Allow splits given intersection of edges only. Default is\n - * true. If false, a vertex on the source must be within the\n - * <tolerance> distance of the calculated intersection for a split\n - * to occur.\n - */\n - edge: true,\n - \n - /**\n - * APIProperty: deferDelete\n - * {Boolean} Instead of removing features from the layer, set feature\n - * states of split features to DELETE. This assumes a save strategy\n - * or other component is in charge of removing features from the\n - * layer. Default is false. If false, split features will be\n - * immediately deleted from the layer.\n - */\n - deferDelete: false,\n - \n - /**\n - * APIProperty: mutual\n - * {Boolean} If source and target layers are the same, split source\n - * features and target features where they intersect. Default is\n - * true. If false, only target features will be split.\n - */\n - mutual: true,\n - \n - /**\n - * APIProperty: targetFilter\n - * {<OpenLayers.Filter>} Optional filter that will be evaluated\n - * to determine if a feature from the target layer is eligible for\n - * splitting.\n - */\n - targetFilter: null,\n - \n - /**\n - * APIProperty: sourceFilter\n - * {<OpenLayers.Filter>} Optional filter that will be evaluated\n - * to determine if a feature from the source layer is eligible for\n - * splitting.\n - */\n - sourceFilter: null,\n - \n - /**\n - * Property: handler\n - * {<OpenLayers.Handler.Path>} The temporary sketch handler created if\n - * no source layer is provided.\n - */\n - handler: null,\n -\n - /**\n - * Constructor: OpenLayers.Control.Split\n - * Creates a new split control. A control is constructed with a target\n - * layer and an optional source layer. While the control is active,\n - * creating new features or modifying existing features on the source\n - * layer will result in splitting any eligible features on the target\n - * layer. If no source layer is provided, a temporary sketch layer will\n - * be created to create lines for splitting features on the target.\n - *\n - * Parameters:\n - * options - {Object} An object containing all configuration properties for\n - * the control.\n - *\n - * Valid options:\n - * layer - {<OpenLayers.Layer.Vector>} The target layer. Features from this\n - * layer will be split by new or modified features on the source layer\n - * or temporary sketch layer.\n - * source - {<OpenLayers.Layer.Vector>} Optional source layer. If provided\n - * newly created features or modified features will be used to split\n - * features on the target layer. If not provided, a temporary sketch\n - * layer will be created for drawing lines.\n - * tolerance - {Number} Optional value for the distance between a source\n - * vertex and the calculated intersection below which the split will\n - * occur at the vertex.\n - * edge - {Boolean} Allow splits given intersection of edges only. Default\n - * is true. If false, a vertex on the source must be within the\n - * <tolerance> distance of the calculated intersection for a split\n - * to occur.\n - * mutual - {Boolean} If source and target are the same, split source\n - * features and target features where they intersect. Default is\n - * true. If false, only target features will be split.\n - * targetFilter - {<OpenLayers.Filter>} Optional filter that will be evaluated\n - * to determine if a feature from the target layer is eligible for\n - * splitting.\n - * sourceFilter - {<OpenLayers.Filter>} Optional filter that will be evaluated\n - * to determine if a feature from the target layer is eligible for\n - * splitting.\n - */\n - initialize: function(options) {\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - this.options = options || {}; // TODO: this could be done by the super\n - \n - // set the source layer if provided\n - if(this.options.source) {\n - this.setSource(this.options.source);\n - }\n - },\n - \n - /**\n - * APIMethod: setSource\n - * Set the source layer for edits layer.\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer.Vector>} The new source layer layer. If\n - * null, a temporary sketch layer will be created.\n - */\n - setSource: function(layer) {\n - if(this.active) {\n - this.deactivate();\n - if(this.handler) {\n - this.handler.destroy();\n - delete this.handler;\n - }\n - this.source = layer;\n - this.activate();\n - } else {\n - this.source = layer;\n - }\n - },\n - \n - /**\n - * APIMethod: activate\n - * Activate the control. Activating the control registers listeners for\n - * editing related events so that during feature creation and\n - * modification, features in the target will be considered for\n - * splitting.\n - */\n - activate: function() {\n - var activated = OpenLayers.Control.prototype.activate.call(this);\n - if(activated) {\n - if(!this.source) {\n - if(!this.handler) {\n - this.handler = new OpenLayers.Handler.Path(this,\n - {done: function(geometry) {\n - this.onSketchComplete({\n - feature: new OpenLayers.Feature.Vector(geometry)\n - });\n - }},\n - {layerOptions: this.sourceOptions}\n - );\n - }\n - this.handler.activate();\n - } else if(this.source.events) {\n - this.source.events.on({\n - sketchcomplete: this.onSketchComplete,\n - afterfeaturemodified: this.afterFeatureModified,\n - scope: this\n - });\n - }\n - }\n - return activated;\n - },\n - \n - /**\n - * APIMethod: deactivate\n - * Deactivate the control. Deactivating the control unregisters listeners\n - * so feature editing may proceed without engaging the split agent.\n - */\n - deactivate: function() {\n - var deactivated = OpenLayers.Control.prototype.deactivate.call(this);\n - if(deactivated) {\n - if(this.source && this.source.events) {\n - this.layer.events.un({\n - sketchcomplete: this.onSketchComplete,\n - afterfeaturemodified: this.afterFeatureModified,\n - scope: this\n - });\n - }\n - }\n - return deactivated;\n - },\n - \n - /**\n - * Method: onSketchComplete\n - * Registered as a listener for the sketchcomplete event on the editable\n - * layer.\n - *\n - * Parameters:\n - * event - {Object} The sketch complete event.\n - *\n - * Returns:\n - * {Boolean} Stop the sketch from being added to the layer (it has been\n - * split).\n - */\n - onSketchComplete: function(event) {\n - this.feature = null;\n - return !this.considerSplit(event.feature);\n - },\n - \n - /**\n - * Method: afterFeatureModified\n - * Registered as a listener for the afterfeaturemodified event on the\n - * editable layer.\n - *\n - * Parameters:\n - * event - {Object} The after feature modified event.\n - */\n - afterFeatureModified: function(event) {\n - if(event.modified) {\n - var feature = event.feature;\n - if (typeof feature.geometry.split === "function") {\n - this.feature = event.feature;\n - this.considerSplit(event.feature);\n - }\n - }\n - },\n - \n - /**\n - * Method: removeByGeometry\n - * Remove a feature from a list based on the given geometry.\n - *\n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)} A list of features.\n - * geometry - {<OpenLayers.Geometry>} A geometry.\n - */\n - removeByGeometry: function(features, geometry) {\n - for(var i=0, len=features.length; i<len; ++i) {\n - if(features[i].geometry === geometry) {\n - features.splice(i, 1);\n - break;\n - }\n - }\n - },\n - \n - /**\n - * Method: isEligible\n - * Test if a target feature is eligible for splitting.\n - *\n - * Parameters:\n - * target - {<OpenLayers.Feature.Vector>} The target feature.\n - *\n - * Returns:\n - * {Boolean} The target is eligible for splitting.\n - */\n - isEligible: function(target) {\n - if (!target.geometry) {\n - return false;\n - } else {\n - return (\n - target.state !== OpenLayers.State.DELETE\n - ) && (\n - typeof target.geometry.split === "function"\n - ) && (\n - this.feature !== target\n - ) && (\n - !this.targetFilter ||\n - this.targetFilter.evaluate(target.attributes)\n - );\n - }\n - },\n -\n - /**\n - * Method: considerSplit\n - * Decide whether or not to split target features with the supplied\n - * feature. If <mutual> is true, both the source and target features\n - * will be split if eligible.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} The newly created or modified\n - * feature.\n - *\n - * Returns:\n - * {Boolean} The supplied feature was split (and destroyed).\n - */\n - considerSplit: function(feature) {\n - var sourceSplit = false;\n - var targetSplit = false;\n - if(!this.sourceFilter ||\n - this.sourceFilter.evaluate(feature.attributes)) {\n - var features = this.layer && this.layer.features || [];\n - var target, results, proceed;\n - var additions = [], removals = [];\n - var mutual = (this.layer === this.source) && this.mutual;\n - var options = {\n - edge: this.edge,\n - tolerance: this.tolerance,\n - mutual: mutual\n - };\n - var sourceParts = [feature.geometry];\n - var targetFeature, targetParts;\n - var source, parts;\n - for(var i=0, len=features.length; i<len; ++i) {\n - targetFeature = features[i];\n - if(this.isEligible(targetFeature)) {\n - targetParts = [targetFeature.geometry];\n - // work through source geoms - this array may change\n - for(var j=0; j<sourceParts.length; ++j) { \n - source = sourceParts[j];\n - // work through target parts - this array may change\n - for(var k=0; k<targetParts.length; ++k) {\n - target = targetParts[k];\n - if(source.getBounds().intersectsBounds(target.getBounds())) {\n - results = source.split(target, options);\n - if(results) {\n - proceed = this.events.triggerEvent(\n - "beforesplit", {source: feature, target: targetFeature}\n - );\n - if(proceed !== false) {\n - if(mutual) {\n - parts = results[0];\n - // handle parts that result from source splitting\n - if(parts.length > 1) {\n - // splice in new source parts\n - parts.unshift(j, 1); // add args for splice below\n - Array.prototype.splice.apply(sourceParts, parts);\n - j += parts.length - 3;\n - }\n - results = results[1];\n - }\n - // handle parts that result from target splitting\n - if(results.length > 1) {\n - // splice in new target parts\n - results.unshift(k, 1); // add args for splice below\n - Array.prototype.splice.apply(targetParts, results);\n - k += results.length - 3;\n - }\n - }\n - }\n - }\n - }\n - }\n - if(targetParts && targetParts.length > 1) {\n - this.geomsToFeatures(targetFeature, targetParts);\n - this.events.triggerEvent("split", {\n - original: targetFeature,\n - features: targetParts\n - });\n - Array.prototype.push.apply(additions, targetParts);\n - removals.push(targetFeature);\n - targetSplit = true;\n - }\n - }\n - }\n - if(sourceParts && sourceParts.length > 1) {\n - this.geomsToFeatures(feature, sourceParts);\n - this.events.triggerEvent("split", {\n - original: feature,\n - features: sourceParts\n - });\n - Array.prototype.push.apply(additions, sourceParts);\n - removals.push(feature);\n - sourceSplit = true;\n - }\n - if(sourceSplit || targetSplit) {\n - // remove and add feature events are suppressed\n - // listen for split event on this control instead\n - if(this.deferDelete) {\n - // Set state instead of removing. Take care to avoid\n - // setting delete for features that have not yet been\n - // inserted - those should be destroyed immediately.\n - var feat, destroys = [];\n - for(var i=0, len=removals.length; i<len; ++i) {\n - feat = removals[i];\n - if(feat.state === OpenLayers.State.INSERT) {\n - destroys.push(feat);\n - } else {\n - feat.state = OpenLayers.State.DELETE;\n - this.layer.drawFeature(feat);\n - }\n - }\n - this.layer.destroyFeatures(destroys, {silent: true});\n - for(var i=0, len=additions.length; i<len; ++i) {\n - additions[i].state = OpenLayers.State.INSERT;\n - }\n - } else {\n - this.layer.destroyFeatures(removals, {silent: true});\n - }\n - this.layer.addFeatures(additions, {silent: true});\n - this.events.triggerEvent("aftersplit", {\n - source: feature,\n - features: additions\n - });\n - }\n - }\n - return sourceSplit;\n - },\n - \n - /**\n - * Method: geomsToFeatures\n - * Create new features given a template feature and a list of geometries.\n - * The list of geometries is modified in place. The result will be\n - * a list of new features.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} The feature to be cloned.\n - * geoms - {Array(<OpenLayers.Geometry>)} List of goemetries. This will\n - * become a list of new features.\n - */\n - geomsToFeatures: function(feature, geoms) {\n - var clone = feature.clone();\n - delete clone.geometry;\n - var newFeature;\n - for(var i=0, len=geoms.length; i<len; ++i) {\n - // turn results list from geoms to features\n - newFeature = clone.clone();\n - newFeature.geometry = geoms[i];\n - newFeature.state = OpenLayers.State.INSERT;\n - geoms[i] = newFeature;\n - }\n - },\n - \n - /**\n - * Method: destroy\n - * Clean up the control.\n - */\n - destroy: function() {\n - if(this.active) {\n - this.deactivate(); // TODO: this should be handled by the super\n - }\n - OpenLayers.Control.prototype.destroy.call(this);\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.Split"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>19587</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/TouchNavigation.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/TouchNavigation.js.xml deleted file mode 100644 index 69bfa2aec0f21f6dd4458ba7f4364e7725cba955..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/TouchNavigation.js.xml +++ /dev/null @@ -1,227 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>TouchNavigation.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for\n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control/DragPan.js\n - * @requires OpenLayers/Control/PinchZoom.js\n - * @requires OpenLayers/Handler/Click.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.TouchNavigation\n - * The navigation control handles map browsing with touch events (dragging,\n - * double-tapping, tap with two fingers, and pinch zoom). Create a new \n - * control with the <OpenLayers.Control.TouchNavigation> constructor.\n - *\n - * If you’re only targeting touch enabled devices with your mapping application,\n - * you can create a map with only a TouchNavigation control. The \n - * <OpenLayers.Control.Navigation> control is mobile ready by default, but \n - * you can generate a smaller build of the library by only including this\n - * touch navigation control if you aren\'t concerned about mouse interaction.\n - *\n - * Inherits:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.TouchNavigation = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * Property: dragPan\n - * {<OpenLayers.Control.DragPan>}\n - */\n - dragPan: null,\n -\n - /**\n - * APIProperty: dragPanOptions\n - * {Object} Options passed to the DragPan control.\n - */\n - dragPanOptions: null,\n -\n - /**\n - * Property: pinchZoom\n - * {<OpenLayers.Control.PinchZoom>}\n - */\n - pinchZoom: null,\n -\n - /**\n - * APIProperty: pinchZoomOptions\n - * {Object} Options passed to the PinchZoom control.\n - */\n - pinchZoomOptions: null,\n -\n - /**\n - * APIProperty: clickHandlerOptions\n - * {Object} Options passed to the Click handler.\n - */\n - clickHandlerOptions: null,\n -\n - /**\n - * APIProperty: documentDrag\n - * {Boolean} Allow panning of the map by dragging outside map viewport.\n - * Default is false.\n - */\n - documentDrag: false,\n -\n - /**\n - * APIProperty: autoActivate\n - * {Boolean} Activate the control when it is added to a map. Default is\n - * true.\n - */\n - autoActivate: true,\n -\n - /**\n - * Constructor: OpenLayers.Control.TouchNavigation\n - * Create a new navigation control\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * the control\n - */\n - initialize: function(options) {\n - this.handlers = {};\n - OpenLayers.Control.prototype.initialize.apply(this, arguments);\n - },\n -\n - /**\n - * Method: destroy\n - * The destroy method is used to perform any clean up before the control\n - * is dereferenced. Typically this is where event listeners are removed\n - * to prevent memory leaks.\n - */\n - destroy: function() {\n - this.deactivate();\n - if(this.dragPan) {\n - this.dragPan.destroy();\n - }\n - this.dragPan = null;\n - if (this.pinchZoom) {\n - this.pinchZoom.destroy();\n - delete this.pinchZoom;\n - }\n - OpenLayers.Control.prototype.destroy.apply(this,arguments);\n - },\n -\n - /**\n - * Method: activate\n - */\n - activate: function() {\n - if(OpenLayers.Control.prototype.activate.apply(this,arguments)) {\n - this.dragPan.activate();\n - this.handlers.click.activate();\n - this.pinchZoom.activate();\n - return true;\n - }\n - return false;\n - },\n -\n - /**\n - * Method: deactivate\n - */\n - deactivate: function() {\n - if(OpenLayers.Control.prototype.deactivate.apply(this,arguments)) {\n - this.dragPan.deactivate();\n - this.handlers.click.deactivate();\n - this.pinchZoom.deactivate();\n - return true;\n - }\n - return false;\n - },\n - \n - /**\n - * Method: draw\n - */\n - draw: function() {\n - var clickCallbacks = {\n - click: this.defaultClick,\n - dblclick: this.defaultDblClick\n - };\n - var clickOptions = OpenLayers.Util.extend({\n - "double": true,\n - stopDouble: true,\n - pixelTolerance: 2\n - }, this.clickHandlerOptions);\n - this.handlers.click = new OpenLayers.Handler.Click(\n - this, clickCallbacks, clickOptions\n - );\n - this.dragPan = new OpenLayers.Control.DragPan(\n - OpenLayers.Util.extend({\n - map: this.map,\n - documentDrag: this.documentDrag\n - }, this.dragPanOptions)\n - );\n - this.dragPan.draw();\n - this.pinchZoom = new OpenLayers.Control.PinchZoom(\n - OpenLayers.Util.extend({map: this.map}, this.pinchZoomOptions)\n - );\n - },\n -\n - /**\n - * Method: defaultClick\n - *\n - * Parameters:\n - * evt - {Event}\n - */\n - defaultClick: function (evt) {\n - if(evt.lastTouches && evt.lastTouches.length == 2) {\n - this.map.zoomOut();\n - }\n - },\n -\n - /**\n - * Method: defaultDblClick\n - *\n - * Parameters:\n - * evt - {Event}\n - */\n - defaultDblClick: function (evt) {\n - var newCenter = this.map.getLonLatFromViewPortPx(evt.xy);\n - this.map.setCenter(newCenter, this.map.zoom + 1);\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.TouchNavigation"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5219</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/TransformFeature.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/TransformFeature.js.xml deleted file mode 100644 index 9823b965a6b2d26a126431c8a8dd37178d316935..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/TransformFeature.js.xml +++ /dev/null @@ -1,668 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>TransformFeature.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Control/DragFeature.js\n - * @requires OpenLayers/Feature/Vector.js\n - * @requires OpenLayers/Geometry/LineString.js\n - * @requires OpenLayers/Geometry/Point.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.TransformFeature\n - * Control to transform features with a standard transformation box.\n - *\n - * Inherits From:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.TransformFeature = OpenLayers.Class(OpenLayers.Control, {\n -\n - /** \n - * APIProperty: events\n - * {<OpenLayers.Events>} Events instance for listeners and triggering\n - * control specific events.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * control.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types (in addition to those from <OpenLayers.Control.events>):\n - * beforesetfeature - Triggered before a feature is set for\n - * tranformation. The feature will not be set if a listener returns\n - * false. Listeners receive a *feature* property, with the feature\n - * that will be set for transformation. Listeners are allowed to\n - * set the control\'s *scale*, *ratio* and *rotation* properties,\n - * which will set the initial scale, ratio and rotation of the\n - * feature, like the <setFeature> method\'s initialParams argument.\n - * setfeature - Triggered when a feature is set for tranformation.\n - * Listeners receive a *feature* property, with the feature that\n - * is now set for transformation.\n - * beforetransform - Triggered while dragging, before a feature is\n - * transformed. The feature will not be transformed if a listener\n - * returns false (but the box still will). Listeners receive one or\n - * more of *center*, *scale*, *ratio* and *rotation*. The *center*\n - * property is an <OpenLayers.Geometry.Point> object with the new\n - * center of the transformed feature, the others are Floats with the\n - * scale, ratio or rotation change since the last transformation.\n - * transform - Triggered while dragging, when a feature is transformed.\n - * Listeners receive an event object with one or more of *center*,\n - * scale*, *ratio* and *rotation*. The *center* property is an\n - * <OpenLayers.Geometry.Point> object with the new center of the\n - * transformed feature, the others are Floats with the scale, ratio\n - * or rotation change of the feature since the last transformation.\n - * transformcomplete - Triggered after dragging. Listeners receive\n - * an event object with the transformed *feature*.\n - */\n -\n - /**\n - * APIProperty: geometryTypes\n - * {Array(String)} To restrict transformation to a limited set of geometry\n - * types, send a list of strings corresponding to the geometry class\n - * names.\n - */\n - geometryTypes: null,\n -\n - /**\n - * Property: layer\n - * {<OpenLayers.Layer.Vector>}\n - */\n - layer: null,\n - \n - /**\n - * APIProperty: preserveAspectRatio\n - * {Boolean} set to true to not change the feature\'s aspect ratio.\n - */\n - preserveAspectRatio: false,\n - \n - /**\n - * APIProperty: rotate\n - * {Boolean} set to false if rotation should be disabled. Default is true.\n - * To be passed with the constructor or set when the control is not\n - * active.\n - */\n - rotate: true,\n - \n - /**\n - * APIProperty: feature\n - * {<OpenLayers.Feature.Vector>} Feature currently available for\n - * transformation. Read-only, use <setFeature> to set it manually.\n - */\n - feature: null,\n - \n - /**\n - * APIProperty: renderIntent\n - * {String|Object} Render intent for the transformation box and\n - * handles. A symbolizer object can also be provided here.\n - */\n - renderIntent: "temporary",\n - \n - /**\n - * APIProperty: rotationHandleSymbolizer\n - * {Object|String} Optional. A custom symbolizer for the rotation handles.\n - * A render intent can also be provided here. Defaults to\n - * (code)\n - * {\n - * stroke: false,\n - * pointRadius: 10,\n - * fillOpacity: 0,\n - * cursor: "pointer"\n - * }\n - * (end)\n - */\n - rotationHandleSymbolizer: null,\n - \n - /**\n - * APIProperty: box\n - * {<OpenLayers.Feature.Vector>} The transformation box rectangle.\n - * Read-only.\n - */\n - box: null,\n - \n - /**\n - * APIProperty: center\n - * {<OpenLayers.Geometry.Point>} The center of the feature bounds.\n - * Read-only.\n - */\n - center: null,\n - \n - /**\n - * APIProperty: scale\n - * {Float} The scale of the feature, relative to the scale the time the\n - * feature was set. Read-only, except for *beforesetfeature*\n - * listeners.\n - */\n - scale: 1,\n - \n - /**\n - * APIProperty: ratio\n - * {Float} The ratio of the feature relative to the ratio the time the\n - * feature was set. Read-only, except for *beforesetfeature*\n - * listeners.\n - */\n - ratio: 1,\n - \n - /**\n - * Property: rotation\n - * {Integer} the current rotation angle of the box. Read-only, except for\n - * *beforesetfeature* listeners.\n - */\n - rotation: 0,\n - \n - /**\n - * APIProperty: handles\n - * {Array(<OpenLayers.Feature.Vector>)} The 8 handles currently available\n - * for scaling/resizing. Numbered counterclockwise, starting from the\n - * southwest corner. Read-only.\n - */\n - handles: null,\n - \n - /**\n - * APIProperty: rotationHandles\n - * {Array(<OpenLayers.Feature.Vector>)} The 4 rotation handles currently\n - * available for rotating. Numbered counterclockwise, starting from\n - * the southwest corner. Read-only.\n - */\n - rotationHandles: null,\n - \n - /**\n - * Property: dragControl\n - * {<OpenLayers.Control.DragFeature>}\n - */\n - dragControl: null,\n - \n - /**\n - * APIProperty: irregular\n - * {Boolean} Make scaling/resizing work irregularly. If true then\n - * dragging a handle causes the feature to resize in the direction\n - * of movement. If false then the feature resizes symetrically\n - * about it\'s center.\n - */\n - irregular: false,\n - \n - /**\n - * Constructor: OpenLayers.Control.TransformFeature\n - * Create a new transform feature control.\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer.Vector>} Layer that contains features that\n - * will be transformed.\n - * options - {Object} Optional object whose properties will be set on the\n - * control.\n - */\n - initialize: function(layer, options) {\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n -\n - this.layer = layer;\n -\n - if(!this.rotationHandleSymbolizer) {\n - this.rotationHandleSymbolizer = {\n - stroke: false,\n - pointRadius: 10,\n - fillOpacity: 0,\n - cursor: "pointer"\n - };\n - }\n -\n - this.createBox();\n - this.createControl(); \n - },\n - \n - /**\n - * APIMethod: activate\n - * Activates the control.\n - */\n - activate: function() {\n - var activated = false;\n - if(OpenLayers.Control.prototype.activate.apply(this, arguments)) {\n - this.dragControl.activate();\n - this.layer.addFeatures([this.box]);\n - this.rotate && this.layer.addFeatures(this.rotationHandles);\n - this.layer.addFeatures(this.handles); \n - activated = true;\n - }\n - return activated;\n - },\n - \n - /**\n - * APIMethod: deactivate\n - * Deactivates the control.\n - */\n - deactivate: function() {\n - var deactivated = false;\n - if(OpenLayers.Control.prototype.deactivate.apply(this, arguments)) {\n - this.layer.removeFeatures(this.handles);\n - this.rotate && this.layer.removeFeatures(this.rotationHandles);\n - this.layer.removeFeatures([this.box]);\n - this.dragControl.deactivate();\n - deactivated = true;\n - }\n - return deactivated;\n - },\n - \n - /**\n - * Method: setMap\n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - setMap: function(map) {\n - this.dragControl.setMap(map);\n - OpenLayers.Control.prototype.setMap.apply(this, arguments);\n - },\n -\n - /**\n - * APIMethod: setFeature\n - * Place the transformation box on a feature and start transforming it.\n - * If the control is not active, it will be activated.\n - * \n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - * initialParams - {Object} Initial values for rotation, scale or ratio.\n - * Setting a rotation value here will cause the transformation box to\n - * start rotated. Setting a scale or ratio will not affect the\n - * transormation box, but applications may use this to keep track of\n - * scale and ratio of a feature across multiple transforms.\n - */\n - setFeature: function(feature, initialParams) {\n - initialParams = OpenLayers.Util.applyDefaults(initialParams, {\n - rotation: 0,\n - scale: 1,\n - ratio: 1\n - });\n -\n - var oldRotation = this.rotation;\n - var oldCenter = this.center;\n - OpenLayers.Util.extend(this, initialParams);\n -\n - var cont = this.events.triggerEvent("beforesetfeature",\n - {feature: feature}\n - );\n - if (cont === false) {\n - return;\n - }\n -\n - this.feature = feature;\n - this.activate();\n -\n - this._setfeature = true;\n -\n - var featureBounds = this.feature.geometry.getBounds();\n - this.box.move(featureBounds.getCenterLonLat());\n - this.box.geometry.rotate(-oldRotation, oldCenter);\n - this._angle = 0;\n -\n - var ll;\n - if(this.rotation) {\n - var geom = feature.geometry.clone();\n - geom.rotate(-this.rotation, this.center);\n - var box = new OpenLayers.Feature.Vector(\n - geom.getBounds().toGeometry());\n - box.geometry.rotate(this.rotation, this.center);\n - this.box.geometry.rotate(this.rotation, this.center);\n - this.box.move(box.geometry.getBounds().getCenterLonLat());\n - var llGeom = box.geometry.components[0].components[0];\n - ll = llGeom.getBounds().getCenterLonLat();\n - } else {\n - ll = new OpenLayers.LonLat(featureBounds.left, featureBounds.bottom);\n - }\n - this.handles[0].move(ll);\n - \n - delete this._setfeature;\n -\n - this.events.triggerEvent("setfeature", {feature: feature});\n - },\n - \n - /**\n - * APIMethod: unsetFeature\n - * Remove the transformation box off any feature.\n - * If the control is active, it will be deactivated first.\n - */\n - unsetFeature: function() {\n - if (this.active) {\n - this.deactivate();\n - } else {\n - this.feature = null;\n - this.rotation = 0;\n - this.scale = 1;\n - this.ratio = 1;\n - }\n - },\n - \n - /**\n - * Method: createBox\n - * Creates the box with all handles and transformation handles.\n - */\n - createBox: function() {\n - var control = this;\n - \n - this.center = new OpenLayers.Geometry.Point(0, 0);\n - this.box = new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.LineString([\n - new OpenLayers.Geometry.Point(-1, -1),\n - new OpenLayers.Geometry.Point(0, -1),\n - new OpenLayers.Geometry.Point(1, -1),\n - new OpenLayers.Geometry.Point(1, 0),\n - new OpenLayers.Geometry.Point(1, 1),\n - new OpenLayers.Geometry.Point(0, 1),\n - new OpenLayers.Geometry.Point(-1, 1),\n - new OpenLayers.Geometry.Point(-1, 0),\n - new OpenLayers.Geometry.Point(-1, -1)\n - ]), null,\n - typeof this.renderIntent == "string" ? null : this.renderIntent\n - );\n - \n - // Override for box move - make sure that the center gets updated\n - this.box.geometry.move = function(x, y) {\n - control._moving = true;\n - OpenLayers.Geometry.LineString.prototype.move.apply(this, arguments);\n - control.center.move(x, y);\n - delete control._moving;\n - };\n -\n - // Overrides for vertex move, resize and rotate - make sure that\n - // handle and rotationHandle geometries are also moved, resized and\n - // rotated.\n - var vertexMoveFn = function(x, y) {\n - OpenLayers.Geometry.Point.prototype.move.apply(this, arguments);\n - this._rotationHandle && this._rotationHandle.geometry.move(x, y);\n - this._handle.geometry.move(x, y);\n - };\n - var vertexResizeFn = function(scale, center, ratio) {\n - OpenLayers.Geometry.Point.prototype.resize.apply(this, arguments);\n - this._rotationHandle && this._rotationHandle.geometry.resize(\n - scale, center, ratio);\n - this._handle.geometry.resize(scale, center, ratio);\n - };\n - var vertexRotateFn = function(angle, center) {\n - OpenLayers.Geometry.Point.prototype.rotate.apply(this, arguments);\n - this._rotationHandle && this._rotationHandle.geometry.rotate(\n - angle, center);\n - this._handle.geometry.rotate(angle, center);\n - };\n - \n - // Override for handle move - make sure that the box and other handles\n - // are updated, and finally transform the feature.\n - var handleMoveFn = function(x, y) {\n - var oldX = this.x, oldY = this.y;\n - OpenLayers.Geometry.Point.prototype.move.call(this, x, y);\n - if(control._moving) {\n - return;\n - }\n - var evt = control.dragControl.handlers.drag.evt;\n - var preserveAspectRatio = !control._setfeature &&\n - control.preserveAspectRatio;\n - var reshape = !preserveAspectRatio && !(evt && evt.shiftKey);\n - var oldGeom = new OpenLayers.Geometry.Point(oldX, oldY);\n - var centerGeometry = control.center;\n - this.rotate(-control.rotation, centerGeometry);\n - oldGeom.rotate(-control.rotation, centerGeometry);\n - var dx1 = this.x - centerGeometry.x;\n - var dy1 = this.y - centerGeometry.y;\n - var dx0 = dx1 - (this.x - oldGeom.x);\n - var dy0 = dy1 - (this.y - oldGeom.y);\n - if (control.irregular && !control._setfeature) {\n - dx1 -= (this.x - oldGeom.x) / 2;\n - dy1 -= (this.y - oldGeom.y) / 2;\n - }\n - this.x = oldX;\n - this.y = oldY;\n - var scale, ratio = 1;\n - if (reshape) {\n - scale = Math.abs(dy0) < 0.00001 ? 1 : dy1 / dy0;\n - ratio = (Math.abs(dx0) < 0.00001 ? 1 : (dx1 / dx0)) / scale;\n - } else {\n - var l0 = Math.sqrt((dx0 * dx0) + (dy0 * dy0));\n - var l1 = Math.sqrt((dx1 * dx1) + (dy1 * dy1));\n - scale = l1 / l0;\n - }\n -\n - // rotate the box to 0 before resizing - saves us some\n - // calculations and is inexpensive because we don\'t drawFeature.\n - control._moving = true;\n - control.box.geometry.rotate(-control.rotation, centerGeometry);\n - delete control._moving;\n -\n - control.box.geometry.resize(scale, centerGeometry, ratio);\n - control.box.geometry.rotate(control.rotation, centerGeometry);\n - control.transformFeature({scale: scale, ratio: ratio});\n - if (control.irregular && !control._setfeature) {\n - var newCenter = centerGeometry.clone();\n - newCenter.x += Math.abs(oldX - centerGeometry.x) < 0.00001 ? 0 : (this.x - oldX);\n - newCenter.y += Math.abs(oldY - centerGeometry.y) < 0.00001 ? 0 : (this.y - oldY);\n - control.box.geometry.move(this.x - oldX, this.y - oldY);\n - control.transformFeature({center: newCenter});\n - }\n - };\n - \n - // Override for rotation handle move - make sure that the box and\n - // other handles are updated, and finally transform the feature.\n - var rotationHandleMoveFn = function(x, y){\n - var oldX = this.x, oldY = this.y;\n - OpenLayers.Geometry.Point.prototype.move.call(this, x, y);\n - if(control._moving) {\n - return;\n - }\n - var evt = control.dragControl.handlers.drag.evt;\n - var constrain = (evt && evt.shiftKey) ? 45 : 1;\n - var centerGeometry = control.center;\n - var dx1 = this.x - centerGeometry.x;\n - var dy1 = this.y - centerGeometry.y;\n - var dx0 = dx1 - x;\n - var dy0 = dy1 - y;\n - this.x = oldX;\n - this.y = oldY;\n - var a0 = Math.atan2(dy0, dx0);\n - var a1 = Math.atan2(dy1, dx1);\n - var angle = a1 - a0;\n - angle *= 180 / Math.PI;\n - control._angle = (control._angle + angle) % 360;\n - var diff = control.rotation % constrain;\n - if(Math.abs(control._angle) >= constrain || diff !== 0) {\n - angle = Math.round(control._angle / constrain) * constrain -\n - diff;\n - control._angle = 0;\n - control.box.geometry.rotate(angle, centerGeometry);\n - control.transformFeature({rotation: angle});\n - } \n - };\n -\n - var handles = new Array(8);\n - var rotationHandles = new Array(4);\n - var geom, handle, rotationHandle;\n - var positions = ["sw", "s", "se", "e", "ne", "n", "nw", "w"];\n - for(var i=0; i<8; ++i) {\n - geom = this.box.geometry.components[i];\n - handle = new OpenLayers.Feature.Vector(geom.clone(), {\n - role: positions[i] + "-resize"\n - }, typeof this.renderIntent == "string" ? null :\n - this.renderIntent);\n - if(i % 2 == 0) {\n - rotationHandle = new OpenLayers.Feature.Vector(geom.clone(), {\n - role: positions[i] + "-rotate"\n - }, typeof this.rotationHandleSymbolizer == "string" ?\n - null : this.rotationHandleSymbolizer);\n - rotationHandle.geometry.move = rotationHandleMoveFn;\n - geom._rotationHandle = rotationHandle;\n - rotationHandles[i/2] = rotationHandle;\n - }\n - geom.move = vertexMoveFn;\n - geom.resize = vertexResizeFn;\n - geom.rotate = vertexRotateFn;\n - handle.geometry.move = handleMoveFn;\n - geom._handle = handle;\n - handles[i] = handle;\n - }\n - \n - this.rotationHandles = rotationHandles;\n - this.handles = handles;\n - },\n - \n - /**\n - * Method: createControl\n - * Creates a DragFeature control for this control.\n - */\n - createControl: function() {\n - var control = this;\n - this.dragControl = new OpenLayers.Control.DragFeature(this.layer, {\n - documentDrag: true,\n - // avoid moving the feature itself - move the box instead\n - moveFeature: function(pixel) {\n - if(this.feature === control.feature) {\n - this.feature = control.box;\n - }\n - OpenLayers.Control.DragFeature.prototype.moveFeature.apply(this,\n - arguments);\n - },\n - // transform while dragging\n - onDrag: function(feature, pixel) {\n - if(feature === control.box) {\n - control.transformFeature({center: control.center});\n - }\n - },\n - // set a new feature\n - onStart: function(feature, pixel) {\n - var eligible = !control.geometryTypes ||\n - OpenLayers.Util.indexOf(control.geometryTypes,\n - feature.geometry.CLASS_NAME) !== -1;\n - var i = OpenLayers.Util.indexOf(control.handles, feature);\n - i += OpenLayers.Util.indexOf(control.rotationHandles,\n - feature);\n - if(feature !== control.feature && feature !== control.box &&\n - i == -2 && eligible) {\n - control.setFeature(feature);\n - }\n - },\n - onComplete: function(feature, pixel) {\n - control.events.triggerEvent("transformcomplete",\n - {feature: control.feature});\n - }\n - });\n - },\n - \n - /**\n - * Method: drawHandles\n - * Draws the handles to match the box.\n - */\n - drawHandles: function() {\n - var layer = this.layer;\n - for(var i=0; i<8; ++i) {\n - if(this.rotate && i % 2 === 0) {\n - layer.drawFeature(this.rotationHandles[i/2],\n - this.rotationHandleSymbolizer);\n - }\n - layer.drawFeature(this.handles[i], this.renderIntent);\n - }\n - },\n - \n - /**\n - * Method: transformFeature\n - * Transforms the feature.\n - * \n - * Parameters:\n - * mods - {Object} An object with optional scale, ratio, rotation and\n - * center properties.\n - */\n - transformFeature: function(mods) {\n - if(!this._setfeature) {\n - this.scale *= (mods.scale || 1);\n - this.ratio *= (mods.ratio || 1);\n - var oldRotation = this.rotation;\n - this.rotation = (this.rotation + (mods.rotation || 0)) % 360;\n - \n - if(this.events.triggerEvent("beforetransform", mods) !== false) {\n - var feature = this.feature;\n - var geom = feature.geometry;\n - var center = this.center;\n - geom.rotate(-oldRotation, center);\n - if(mods.scale || mods.ratio) {\n - geom.resize(mods.scale, center, mods.ratio);\n - } else if(mods.center) {\n - feature.move(mods.center.getBounds().getCenterLonLat());\n - }\n - geom.rotate(this.rotation, center);\n - this.layer.drawFeature(feature);\n - feature.toState(OpenLayers.State.UPDATE);\n - this.events.triggerEvent("transform", mods);\n - }\n - }\n - this.layer.drawFeature(this.box, this.renderIntent);\n - this.drawHandles();\n - },\n - \n - /**\n - * APIMethod: destroy\n - * Take care of things that are not handled in superclass.\n - */\n - destroy: function() {\n - var geom;\n - for(var i=0; i<8; ++i) {\n - geom = this.box.geometry.components[i];\n - geom._handle.destroy();\n - geom._handle = null;\n - geom._rotationHandle && geom._rotationHandle.destroy();\n - geom._rotationHandle = null;\n - }\n - this.center = null;\n - this.feature = null;\n - this.handles = null;\n - this.rotationHandleSymbolizer = null;\n - this.rotationHandles = null;\n - this.box.destroy();\n - this.box = null;\n - this.layer = null;\n - this.dragControl.destroy();\n - this.dragControl = null;\n - OpenLayers.Control.prototype.destroy.apply(this, arguments);\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.TransformFeature"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>23368</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/UTFGrid.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/UTFGrid.js.xml deleted file mode 100644 index 759cb3ca4f1ebff59882c19f0cbeeaa73e165875..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/UTFGrid.js.xml +++ /dev/null @@ -1,284 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>UTFGrid.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Handler/Hover.js\n - * @requires OpenLayers/Handler/Click.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.UTFGrid\n - *\n - * This Control provides behavior associated with UTFGrid Layers.\n - * These \'hit grids\' provide underlying feature attributes without\n - * calling the server (again). This control allows Mousemove, Hovering \n - * and Click events to trigger callbacks that use the attributes in \n - * whatever way you need. \n - *\n - * The most common example may be a UTFGrid layer containing feature\n - * attributes that are displayed in a div as you mouseover.\n - *\n - * Example Code:\n - *\n - * (start code)\n - * var world_utfgrid = new OpenLayers.Layer.UTFGrid( \n - * \'UTFGrid Layer\', \n - * "http://tiles/world_utfgrid/${z}/${x}/${y}.json"\n - * );\n - * map.addLayer(world_utfgrid);\n - * \n - * var control = new OpenLayers.Control.UTFGrid({\n - * layers: [world_utfgrid],\n - * handlerMode: \'move\',\n - * callback: function(infoLookup) {\n - * // do something with returned data\n - *\n - * }\n - * })\n - * (end code)\n - *\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.UTFGrid = OpenLayers.Class(OpenLayers.Control, {\n - \n - /**\n - * APIProperty: autoActivate\n - * {Boolean} Activate the control when it is added to a map. Default is\n - * true.\n - */\n - autoActivate: true,\n -\n - /** \n - * APIProperty: Layers\n - * List of layers to consider. Must be Layer.UTFGrids\n - * `null` is the default indicating all UTFGrid Layers are queried.\n - * {Array} <OpenLayers.Layer.UTFGrid> \n - */\n - layers: null,\n -\n - /* Property: defaultHandlerOptions\n - * The default opts passed to the handler constructors\n - */\n - defaultHandlerOptions: {\n - \'delay\': 300,\n - \'pixelTolerance\': 4,\n - \'stopMove\': false,\n - \'single\': true,\n - \'double\': false,\n - \'stopSingle\': false,\n - \'stopDouble\': false\n - },\n -\n - /* APIProperty: handlerMode\n - * Defaults to \'click\'. Can be \'hover\' or \'move\'.\n - */\n - handlerMode: \'click\',\n -\n - /**\n - * APIMethod: setHandler\n - * sets this.handlerMode and calls resetHandler()\n - *\n - * Parameters:\n - * hm - {String} Handler Mode string; \'click\', \'hover\' or \'move\'.\n - */\n - setHandler: function(hm) {\n - this.handlerMode = hm;\n - this.resetHandler();\n - },\n -\n - /**\n - * Method: resetHandler\n - * Deactivates the old hanlder and creates a new\n - * <OpenLayers.Handler> based on the mode specified in\n - * this.handlerMode\n - *\n - */\n - resetHandler: function() {\n - if (this.handler) {\n - this.handler.deactivate();\n - this.handler.destroy();\n - this.handler = null;\n - }\n - \n - if (this.handlerMode == \'hover\') {\n - // Handle this event on hover\n - this.handler = new OpenLayers.Handler.Hover(\n - this,\n - {\'pause\': this.handleEvent, \'move\': this.reset},\n - this.handlerOptions\n - );\n - } else if (this.handlerMode == \'click\') {\n - // Handle this event on click\n - this.handler = new OpenLayers.Handler.Click(\n - this, {\n - \'click\': this.handleEvent\n - }, this.handlerOptions\n - );\n - } else if (this.handlerMode == \'move\') {\n - this.handler = new OpenLayers.Handler.Hover(\n - this,\n - // Handle this event while hovering OR moving\n - {\'pause\': this.handleEvent, \'move\': this.handleEvent},\n - this.handlerOptions\n - );\n - }\n - if (this.handler) {\n - return true;\n - } else {\n - return false;\n - }\n - },\n -\n - /**\n - * Constructor: <OpenLayers.Control.UTFGrid>\n - *\n - * Parameters:\n - * options - {Object} \n - */\n - initialize: function(options) {\n - options = options || {};\n - options.handlerOptions = options.handlerOptions || this.defaultHandlerOptions;\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - this.resetHandler();\n - }, \n -\n - /**\n - * Method: handleEvent\n - * Internal method called when specified event is triggered.\n - * \n - * This method does several things:\n - *\n - * Gets the lonLat of the event.\n - *\n - * Loops through the appropriate hit grid layers and gathers the attributes.\n - *\n - * Passes the attributes to the callback\n - *\n - * Parameters:\n - * evt - {<OpenLayers.Event>} \n - */\n - handleEvent: function(evt) {\n - if (evt == null) {\n - this.reset();\n - return;\n - }\n -\n - var lonLat = this.map.getLonLatFromPixel(evt.xy);\n - if (!lonLat) { \n - return;\n - } \n - \n - var layers = this.findLayers();\n - if (layers.length > 0) {\n - var infoLookup = {};\n - var layer, idx;\n - for (var i=0, len=layers.length; i<len; i++) {\n - layer = layers[i];\n - idx = OpenLayers.Util.indexOf(this.map.layers, layer);\n - infoLookup[idx] = layer.getFeatureInfo(lonLat);\n - }\n - this.callback(infoLookup, lonLat, evt.xy);\n - }\n - },\n -\n - /**\n - * APIMethod: callback\n - * Function to be called when a mouse event corresponds with a location that\n - * includes data in one of the configured UTFGrid layers.\n - *\n - * Parameters:\n - * infoLookup - {Object} Keys of this object are layer indexes and can be\n - * used to resolve a layer in the map.layers array. The structure of\n - * the property values depend on the data included in the underlying\n - * UTFGrid and may be any valid JSON type. \n - */\n - callback: function(infoLookup) {\n - // to be provided in the constructor\n - },\n -\n - /**\n - * Method: reset\n - * Calls the callback with null.\n - */\n - reset: function(evt) {\n - this.callback(null);\n - },\n -\n - /**\n - * Method: findLayers\n - * Internal method to get the layers, independent of whether we are\n - * inspecting the map or using a client-provided array\n - *\n - * The default value of this.layers is null; this causes the \n - * findLayers method to return ALL UTFGrid layers encountered.\n - *\n - * Parameters:\n - * None\n - *\n - * Returns:\n - * {Array} Layers to handle on each event\n - */\n - findLayers: function() {\n - var candidates = this.layers || this.map.layers;\n - var layers = [];\n - var layer;\n - for (var i=candidates.length-1; i>=0; --i) {\n - layer = candidates[i];\n - if (layer instanceof OpenLayers.Layer.UTFGrid ) { \n - layers.push(layer);\n - }\n - }\n - return layers;\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.UTFGrid"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6984</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/WMSGetFeatureInfo.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/WMSGetFeatureInfo.js.xml deleted file mode 100644 index 94b61c05c6d363e3ed9e0a3070478a3bb373bcb5..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/WMSGetFeatureInfo.js.xml +++ /dev/null @@ -1,575 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WMSGetFeatureInfo.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Handler/Click.js\n - * @requires OpenLayers/Handler/Hover.js\n - * @requires OpenLayers/Request.js\n - * @requires OpenLayers/Format/WMSGetFeatureInfo.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.WMSGetFeatureInfo\n - * The WMSGetFeatureInfo control uses a WMS query to get information about a point on the map. The\n - * information may be in a display-friendly format such as HTML, or a machine-friendly format such \n - * as GML, depending on the server\'s capabilities and the client\'s configuration. This control \n - * handles click or hover events, attempts to parse the results using an OpenLayers.Format, and \n - * fires a \'getfeatureinfo\' event with the click position, the raw body of the response, and an \n - * array of features if it successfully read the response.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * APIProperty: hover\n - * {Boolean} Send GetFeatureInfo requests when mouse stops moving.\n - * Default is false.\n - */\n - hover: false,\n -\n - /**\n - * APIProperty: drillDown\n - * {Boolean} Drill down over all WMS layers in the map. When\n - * using drillDown mode, hover is not possible, and an infoFormat that\n - * returns parseable features is required. Default is false.\n - */\n - drillDown: false,\n -\n - /**\n - * APIProperty: maxFeatures\n - * {Integer} Maximum number of features to return from a WMS query. This\n - * sets the feature_count parameter on WMS GetFeatureInfo\n - * requests.\n - */\n - maxFeatures: 10,\n -\n - /** APIProperty: clickCallback\n - * {String} The click callback to register in the\n - * {<OpenLayers.Handler.Click>} object created when the hover\n - * option is set to false. Default is "click".\n - */\n - clickCallback: "click",\n - \n - /** APIProperty: output\n - * {String} Either "features" or "object". When triggering a \n - * getfeatureinfo request should we pass on an array of features\n - * or an object with with a "features" property and other properties\n - * (such as the url of the WMS). Default is "features".\n - */\n - output: "features",\n - \n - /**\n - * Property: layers\n - * {Array(<OpenLayers.Layer.WMS>)} The layers to query for feature info.\n - * If omitted, all map WMS layers with a url that matches this <url> or\n - * <layerUrls> will be considered.\n - */\n - layers: null,\n -\n - /**\n - * Property: queryVisible\n - * {Boolean} If true, filter out hidden layers when searching the map for\n - * layers to query. Default is false.\n - */\n - queryVisible: false,\n -\n - /**\n - * Property: url\n - * {String} The URL of the WMS service to use. If not provided, the url\n - * of the first eligible layer will be used.\n - */\n - url: null,\n - \n - /**\n - * Property: layerUrls\n - * {Array(String)} Optional list of urls for layers that should be queried.\n - * This can be used when the layer url differs from the url used for\n - * making GetFeatureInfo requests (in the case of a layer using cached\n - * tiles).\n - */\n - layerUrls: null,\n -\n - /**\n - * Property: infoFormat\n - * {String} The mimetype to request from the server. If you are using \n - * drillDown mode and have multiple servers that do not share a common \n - * infoFormat, you can override the control\'s infoFormat by providing an \n - * INFO_FORMAT parameter in your <OpenLayers.Layer.WMS> instance(s).\n - */\n - infoFormat: \'text/html\',\n - \n - /**\n - * Property: vendorParams\n - * {Object} Additional parameters that will be added to the request, for\n - * WMS implementations that support them. This could e.g. look like\n - * (start code)\n - * {\n - * radius: 5\n - * }\n - * (end)\n - */\n - vendorParams: {},\n - \n - /**\n - * Property: format\n - * {<OpenLayers.Format>} A format for parsing GetFeatureInfo responses.\n - * Default is <OpenLayers.Format.WMSGetFeatureInfo>.\n - */\n - format: null,\n - \n - /**\n - * Property: formatOptions\n - * {Object} Optional properties to set on the format (if one is not provided\n - * in the <format> property.\n - */\n - formatOptions: null,\n -\n - /**\n - * APIProperty: handlerOptions\n - * {Object} Additional options for the handlers used by this control, e.g.\n - * (start code)\n - * {\n - * "click": {delay: 100},\n - * "hover": {delay: 300}\n - * }\n - * (end)\n - */\n - handlerOptions: null,\n - \n - /**\n - * Property: handler\n - * {Object} Reference to the <OpenLayers.Handler> for this control\n - */\n - handler: null,\n - \n - /**\n - * Property: hoverRequest\n - * {<OpenLayers.Request>} contains the currently running hover request\n - * (if any).\n - */\n - hoverRequest: null,\n - \n - /** \n - * APIProperty: events\n - * {<OpenLayers.Events>} Events instance for listeners and triggering\n - * control specific events.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * control.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types (in addition to those from <OpenLayers.Control.events>):\n - * beforegetfeatureinfo - Triggered before the request is sent.\n - * The event object has an *xy* property with the position of the \n - * mouse click or hover event that triggers the request.\n - * nogetfeatureinfo - no queryable layers were found.\n - * getfeatureinfo - Triggered when a GetFeatureInfo response is received.\n - * The event object has a *text* property with the body of the\n - * response (String), a *features* property with an array of the\n - * parsed features, an *xy* property with the position of the mouse\n - * click or hover event that triggered the request, and a *request*\n - * property with the request itself. If drillDown is set to true and\n - * multiple requests were issued to collect feature info from all\n - * layers, *text* and *request* will only contain the response body\n - * and request object of the last request.\n - */\n -\n - /**\n - * Constructor: <OpenLayers.Control.WMSGetFeatureInfo>\n - *\n - * Parameters:\n - * options - {Object} \n - */\n - initialize: function(options) {\n - options = options || {};\n - options.handlerOptions = options.handlerOptions || {};\n -\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - \n - if(!this.format) {\n - this.format = new OpenLayers.Format.WMSGetFeatureInfo(\n - options.formatOptions\n - );\n - }\n - \n - if(this.drillDown === true) {\n - this.hover = false;\n - }\n -\n - if(this.hover) {\n - this.handler = new OpenLayers.Handler.Hover(\n - this, {\n - \'move\': this.cancelHover,\n - \'pause\': this.getInfoForHover\n - },\n - OpenLayers.Util.extend(this.handlerOptions.hover || {}, {\n - \'delay\': 250\n - }));\n - } else {\n - var callbacks = {};\n - callbacks[this.clickCallback] = this.getInfoForClick;\n - this.handler = new OpenLayers.Handler.Click(\n - this, callbacks, this.handlerOptions.click || {});\n - }\n - },\n -\n - /**\n - * Method: getInfoForClick \n - * Called on click\n - *\n - * Parameters:\n - * evt - {<OpenLayers.Event>} \n - */\n - getInfoForClick: function(evt) {\n - this.events.triggerEvent("beforegetfeatureinfo", {xy: evt.xy});\n - // Set the cursor to "wait" to tell the user we\'re working on their\n - // click.\n - OpenLayers.Element.addClass(this.map.viewPortDiv, "olCursorWait");\n - this.request(evt.xy, {});\n - },\n - \n - /**\n - * Method: getInfoForHover\n - * Pause callback for the hover handler\n - *\n - * Parameters:\n - * evt - {Object}\n - */\n - getInfoForHover: function(evt) {\n - this.events.triggerEvent("beforegetfeatureinfo", {xy: evt.xy});\n - this.request(evt.xy, {hover: true});\n - },\n -\n - /**\n - * Method: cancelHover\n - * Cancel callback for the hover handler\n - */\n - cancelHover: function() {\n - if (this.hoverRequest) {\n - this.hoverRequest.abort();\n - this.hoverRequest = null;\n - }\n - },\n -\n - /**\n - * Method: findLayers\n - * Internal method to get the layers, independent of whether we are\n - * inspecting the map or using a client-provided array\n - */\n - findLayers: function() {\n -\n - var candidates = this.layers || this.map.layers;\n - var layers = [];\n - var layer, url;\n - for(var i = candidates.length - 1; i >= 0; --i) {\n - layer = candidates[i];\n - if(layer instanceof OpenLayers.Layer.WMS &&\n - (!this.queryVisible || layer.getVisibility())) {\n - url = OpenLayers.Util.isArray(layer.url) ? layer.url[0] : layer.url;\n - // if the control was not configured with a url, set it\n - // to the first layer url\n - if(this.drillDown === false && !this.url) {\n - this.url = url;\n - }\n - if(this.drillDown === true || this.urlMatches(url)) {\n - layers.push(layer);\n - }\n - }\n - }\n - return layers;\n - },\n - \n - /**\n - * Method: urlMatches\n - * Test to see if the provided url matches either the control <url> or one\n - * of the <layerUrls>.\n - *\n - * Parameters:\n - * url - {String} The url to test.\n - *\n - * Returns:\n - * {Boolean} The provided url matches the control <url> or one of the\n - * <layerUrls>.\n - */\n - urlMatches: function(url) {\n - var matches = OpenLayers.Util.isEquivalentUrl(this.url, url);\n - if(!matches && this.layerUrls) {\n - for(var i=0, len=this.layerUrls.length; i<len; ++i) {\n - if(OpenLayers.Util.isEquivalentUrl(this.layerUrls[i], url)) {\n - matches = true;\n - break;\n - }\n - }\n - }\n - return matches;\n - },\n -\n - /**\n - * Method: buildWMSOptions\n - * Build an object with the relevant WMS options for the GetFeatureInfo request\n - *\n - * Parameters:\n - * url - {String} The url to be used for sending the request\n - * layers - {Array(<OpenLayers.Layer.WMS)} An array of layers\n - * clickPosition - {<OpenLayers.Pixel>} The position on the map where the mouse\n - * event occurred.\n - * format - {String} The format from the corresponding GetMap request\n - */\n - buildWMSOptions: function(url, layers, clickPosition, format) {\n - var layerNames = [], styleNames = [];\n - for (var i = 0, len = layers.length; i < len; i++) {\n - if (layers[i].params.LAYERS != null) {\n - layerNames = layerNames.concat(layers[i].params.LAYERS);\n - styleNames = styleNames.concat(this.getStyleNames(layers[i]));\n - }\n - }\n - var firstLayer = layers[0];\n - // use the firstLayer\'s projection if it matches the map projection -\n - // this assumes that all layers will be available in this projection\n - var projection = this.map.getProjection();\n - var layerProj = firstLayer.projection;\n - if (layerProj && layerProj.equals(this.map.getProjectionObject())) {\n - projection = layerProj.getCode();\n - }\n - var params = OpenLayers.Util.extend({\n - service: "WMS",\n - version: firstLayer.params.VERSION,\n - request: "GetFeatureInfo",\n - exceptions: firstLayer.params.EXCEPTIONS,\n - bbox: this.map.getExtent().toBBOX(null,\n - firstLayer.reverseAxisOrder()),\n - feature_count: this.maxFeatures,\n - height: this.map.getSize().h,\n - width: this.map.getSize().w,\n - format: format,\n - info_format: firstLayer.params.INFO_FORMAT || this.infoFormat\n - }, (parseFloat(firstLayer.params.VERSION) >= 1.3) ?\n - {\n - crs: projection,\n - i: parseInt(clickPosition.x),\n - j: parseInt(clickPosition.y)\n - } :\n - {\n - srs: projection,\n - x: parseInt(clickPosition.x),\n - y: parseInt(clickPosition.y)\n - }\n - );\n - if (layerNames.length != 0) {\n - params = OpenLayers.Util.extend({\n - layers: layerNames,\n - query_layers: layerNames,\n - styles: styleNames\n - }, params);\n - }\n - OpenLayers.Util.applyDefaults(params, this.vendorParams);\n - return {\n - url: url,\n - params: OpenLayers.Util.upperCaseObject(params),\n - callback: function(request) {\n - this.handleResponse(clickPosition, request, url);\n - },\n - scope: this\n - };\n - },\n -\n - /**\n - * Method: getStyleNames\n - * Gets the STYLES parameter for the layer. Make sure the STYLES parameter\n - * matches the LAYERS parameter\n - * \n - * Parameters:\n - * layer - {<OpenLayers.Layer.WMS>}\n - *\n - * Returns:\n - * {Array(String)} The STYLES parameter\n - */\n - getStyleNames: function(layer) {\n - // in the event of a WMS layer bundling multiple layers but not\n - // specifying styles,we need the same number of commas to specify\n - // the default style for each of the layers. We can\'t just leave it\n - // blank as we may be including other layers that do specify styles.\n - var styleNames;\n - if (layer.params.STYLES) {\n - styleNames = layer.params.STYLES;\n - } else {\n - if (OpenLayers.Util.isArray(layer.params.LAYERS)) {\n - styleNames = new Array(layer.params.LAYERS.length);\n - } else { // Assume it\'s a String\n - styleNames = layer.params.LAYERS.replace(/[^,]/g, "");\n - }\n - }\n - return styleNames;\n - },\n -\n - /**\n - * Method: request\n - * Sends a GetFeatureInfo request to the WMS\n - * \n - * Parameters:\n - * clickPosition - {<OpenLayers.Pixel>} The position on the map where the\n - * mouse event occurred.\n - * options - {Object} additional options for this method.\n - * \n - * Valid options:\n - * - *hover* {Boolean} true if we do the request for the hover handler\n - */\n - request: function(clickPosition, options) {\n - var layers = this.findLayers();\n - if(layers.length == 0) {\n - this.events.triggerEvent("nogetfeatureinfo");\n - // Reset the cursor.\n - OpenLayers.Element.removeClass(this.map.viewPortDiv, "olCursorWait");\n - return;\n - }\n - \n - options = options || {};\n - if(this.drillDown === false) {\n - var wmsOptions = this.buildWMSOptions(this.url, layers,\n - clickPosition, layers[0].params.FORMAT); \n - var request = OpenLayers.Request.GET(wmsOptions);\n - \n - if (options.hover === true) {\n - this.hoverRequest = request;\n - }\n - } else {\n - this._requestCount = 0;\n - this._numRequests = 0;\n - this.features = [];\n - // group according to service url to combine requests\n - var services = {}, url;\n - for(var i=0, len=layers.length; i<len; i++) {\n - var layer = layers[i];\n - var service, found = false;\n - url = OpenLayers.Util.isArray(layer.url) ? layer.url[0] : layer.url;\n - if(url in services) {\n - services[url].push(layer);\n - } else {\n - this._numRequests++;\n - services[url] = [layer];\n - }\n - }\n - var layers;\n - for (var url in services) {\n - layers = services[url];\n - var wmsOptions = this.buildWMSOptions(url, layers, \n - clickPosition, layers[0].params.FORMAT);\n - OpenLayers.Request.GET(wmsOptions); \n - }\n - }\n - },\n -\n - /**\n - * Method: triggerGetFeatureInfo\n - * Trigger the getfeatureinfo event when all is done\n - *\n - * Parameters:\n - * request - {XMLHttpRequest} The request object\n - * xy - {<OpenLayers.Pixel>} The position on the map where the\n - * mouse event occurred.\n - * features - {Array(<OpenLayers.Feature.Vector>)} or\n - * {Array({Object}) when output is "object". The object has a url and a\n - * features property which contains an array of features.\n - */\n - triggerGetFeatureInfo: function(request, xy, features) {\n - this.events.triggerEvent("getfeatureinfo", {\n - text: request.responseText,\n - features: features,\n - request: request,\n - xy: xy\n - });\n -\n - // Reset the cursor.\n - OpenLayers.Element.removeClass(this.map.viewPortDiv, "olCursorWait");\n - },\n - \n - /**\n - * Method: handleResponse\n - * Handler for the GetFeatureInfo response.\n - * \n - * Parameters:\n - * xy - {<OpenLayers.Pixel>} The position on the map where the\n - * mouse event occurred.\n - * request - {XMLHttpRequest} The request object.\n - * url - {String} The url which was used for this request.\n - */\n - handleResponse: function(xy, request, url) {\n - \n - var doc = request.responseXML;\n - if(!doc || !doc.documentElement) {\n - doc = request.responseText;\n - }\n - var features = this.format.read(doc);\n - if (this.drillDown === false) {\n - this.triggerGetFeatureInfo(request, xy, features);\n - } else {\n - this._requestCount++;\n - if (this.output === "object") {\n - this._features = (this._features || []).concat(\n - {url: url, features: features}\n - );\n - } else {\n - this._features = (this._features || []).concat(features);\n - }\n - if (this._requestCount === this._numRequests) {\n - this.triggerGetFeatureInfo(request, xy, this._features.concat()); \n - delete this._features;\n - delete this._requestCount;\n - delete this._numRequests;\n - }\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.WMSGetFeatureInfo"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>18600</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/WMTSGetFeatureInfo.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/WMTSGetFeatureInfo.js.xml deleted file mode 100644 index 4c0ecc985b84c305024a53ca77b9d405120ca46a..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/WMTSGetFeatureInfo.js.xml +++ /dev/null @@ -1,445 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WMTSGetFeatureInfo.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Handler/Click.js\n - * @requires OpenLayers/Handler/Hover.js\n - * @requires OpenLayers/Request.js\n - * @requires OpenLayers/Format/WMSGetFeatureInfo.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.WMTSGetFeatureInfo\n - * The WMTSGetFeatureInfo control uses a WMTS query to get information about a \n - * point on the map. The information may be in a display-friendly format \n - * such as HTML, or a machine-friendly format such as GML, depending on the \n - * server\'s capabilities and the client\'s configuration. This control \n - * handles click or hover events, attempts to parse the results using an \n - * OpenLayers.Format, and fires a \'getfeatureinfo\' event for each layer\n - * queried.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.WMTSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * APIProperty: hover\n - * {Boolean} Send GetFeatureInfo requests when mouse stops moving.\n - * Default is false.\n - */\n - hover: false,\n - \n - /**\n - * Property: requestEncoding\n - * {String} One of "KVP" or "REST". Only KVP encoding is supported at this \n - * time.\n - */\n - requestEncoding: "KVP",\n -\n - /**\n - * APIProperty: drillDown\n - * {Boolean} Drill down over all WMTS layers in the map. When\n - * using drillDown mode, hover is not possible. A getfeatureinfo event\n - * will be fired for each layer queried.\n - */\n - drillDown: false,\n -\n - /**\n - * APIProperty: maxFeatures\n - * {Integer} Maximum number of features to return from a WMTS query. This\n - * sets the feature_count parameter on WMTS GetFeatureInfo\n - * requests.\n - */\n - maxFeatures: 10,\n -\n - /** APIProperty: clickCallback\n - * {String} The click callback to register in the\n - * {<OpenLayers.Handler.Click>} object created when the hover\n - * option is set to false. Default is "click".\n - */\n - clickCallback: "click",\n - \n - /**\n - * Property: layers\n - * {Array(<OpenLayers.Layer.WMTS>)} The layers to query for feature info.\n - * If omitted, all map WMTS layers will be considered.\n - */\n - layers: null,\n -\n - /**\n - * APIProperty: queryVisible\n - * {Boolean} Filter out hidden layers when searching the map for layers to \n - * query. Default is true.\n - */\n - queryVisible: true,\n -\n - /**\n - * Property: infoFormat\n - * {String} The mimetype to request from the server\n - */\n - infoFormat: \'text/html\',\n - \n - /**\n - * Property: vendorParams\n - * {Object} Additional parameters that will be added to the request, for\n - * WMTS implementations that support them. This could e.g. look like\n - * (start code)\n - * {\n - * radius: 5\n - * }\n - * (end)\n - */\n - vendorParams: {},\n - \n - /**\n - * Property: format\n - * {<OpenLayers.Format>} A format for parsing GetFeatureInfo responses.\n - * Default is <OpenLayers.Format.WMSGetFeatureInfo>.\n - */\n - format: null,\n - \n - /**\n - * Property: formatOptions\n - * {Object} Optional properties to set on the format (if one is not provided\n - * in the <format> property.\n - */\n - formatOptions: null,\n -\n - /**\n - * APIProperty: handlerOptions\n - * {Object} Additional options for the handlers used by this control, e.g.\n - * (start code)\n - * {\n - * "click": {delay: 100},\n - * "hover": {delay: 300}\n - * }\n - * (end)\n - */\n - handlerOptions: null,\n - \n - /**\n - * Property: handler\n - * {Object} Reference to the <OpenLayers.Handler> for this control\n - */\n - handler: null,\n - \n - /**\n - * Property: hoverRequest\n - * {<OpenLayers.Request>} contains the currently running hover request\n - * (if any).\n - */\n - hoverRequest: null,\n - \n - /** \n - * APIProperty: events\n - * {<OpenLayers.Events>} Events instance for listeners and triggering\n - * control specific events.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * control.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types (in addition to those from <OpenLayers.Control.events>):\n - * beforegetfeatureinfo - Triggered before each request is sent.\n - * The event object has an *xy* property with the position of the \n - * mouse click or hover event that triggers the request and a *layer*\n - * property referencing the layer about to be queried. If a listener\n - * returns false, the request will not be issued.\n - * getfeatureinfo - Triggered when a GetFeatureInfo response is received.\n - * The event object has a *text* property with the body of the\n - * response (String), a *features* property with an array of the\n - * parsed features, an *xy* property with the position of the mouse\n - * click or hover event that triggered the request, a *layer* property\n - * referencing the layer queried and a *request* property with the \n - * request itself. If drillDown is set to true, one event will be fired\n - * for each layer queried.\n - * exception - Triggered when a GetFeatureInfo request fails (with a \n - * status other than 200) or whenparsing fails. Listeners will receive \n - * an event with *request*, *xy*, and *layer* properties. In the case \n - * of a parsing error, the event will also contain an *error* property.\n - */\n - \n - /** \n - * Property: pending\n - * {Number} The number of pending requests.\n - */\n - pending: 0,\n -\n - /**\n - * Constructor: <OpenLayers.Control.WMTSGetFeatureInfo>\n - *\n - * Parameters:\n - * options - {Object} \n - */\n - initialize: function(options) {\n - options = options || {};\n - options.handlerOptions = options.handlerOptions || {};\n -\n - OpenLayers.Control.prototype.initialize.apply(this, [options]);\n - \n - if (!this.format) {\n - this.format = new OpenLayers.Format.WMSGetFeatureInfo(\n - options.formatOptions\n - );\n - }\n - \n - if (this.drillDown === true) {\n - this.hover = false;\n - }\n -\n - if (this.hover) {\n - this.handler = new OpenLayers.Handler.Hover(\n - this, {\n - move: this.cancelHover,\n - pause: this.getInfoForHover\n - },\n - OpenLayers.Util.extend(\n - this.handlerOptions.hover || {}, {delay: 250}\n - )\n - );\n - } else {\n - var callbacks = {};\n - callbacks[this.clickCallback] = this.getInfoForClick;\n - this.handler = new OpenLayers.Handler.Click(\n - this, callbacks, this.handlerOptions.click || {}\n - );\n - }\n - },\n -\n - /**\n - * Method: getInfoForClick \n - * Called on click\n - *\n - * Parameters:\n - * evt - {<OpenLayers.Event>} \n - */\n - getInfoForClick: function(evt) {\n - this.request(evt.xy, {});\n - },\n - \n - /**\n - * Method: getInfoForHover\n - * Pause callback for the hover handler\n - *\n - * Parameters:\n - * evt - {Object}\n - */\n - getInfoForHover: function(evt) {\n - this.request(evt.xy, {hover: true});\n - },\n -\n - /**\n - * Method: cancelHover\n - * Cancel callback for the hover handler\n - */\n - cancelHover: function() {\n - if (this.hoverRequest) {\n - --this.pending;\n - if (this.pending <= 0) {\n - OpenLayers.Element.removeClass(this.map.viewPortDiv, "olCursorWait");\n - this.pending = 0;\n - } \n - this.hoverRequest.abort();\n - this.hoverRequest = null;\n - }\n - },\n -\n - /**\n - * Method: findLayers\n - * Internal method to get the layers, independent of whether we are\n - * inspecting the map or using a client-provided array\n - */\n - findLayers: function() {\n - var candidates = this.layers || this.map.layers;\n - var layers = [];\n - var layer;\n - for (var i=candidates.length-1; i>=0; --i) {\n - layer = candidates[i];\n - if (layer instanceof OpenLayers.Layer.WMTS &&\n - layer.requestEncoding === this.requestEncoding &&\n - (!this.queryVisible || layer.getVisibility())) {\n - layers.push(layer);\n - if (!this.drillDown || this.hover) {\n - break;\n - }\n - }\n - }\n - return layers;\n - },\n - \n - /**\n - * Method: buildRequestOptions\n - * Build an object with the relevant options for the GetFeatureInfo request.\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer.WMTS>} A WMTS layer.\n - * xy - {<OpenLayers.Pixel>} The position on the map where the \n - * mouse event occurred.\n - */\n - buildRequestOptions: function(layer, xy) {\n - var loc = this.map.getLonLatFromPixel(xy);\n - var getTileUrl = layer.getURL(\n - new OpenLayers.Bounds(loc.lon, loc.lat, loc.lon, loc.lat)\n - );\n - var params = OpenLayers.Util.getParameters(getTileUrl);\n - var tileInfo = layer.getTileInfo(loc);\n - OpenLayers.Util.extend(params, {\n - service: "WMTS",\n - version: layer.version,\n - request: "GetFeatureInfo",\n - infoFormat: this.infoFormat,\n - i: tileInfo.i,\n - j: tileInfo.j\n - });\n - OpenLayers.Util.applyDefaults(params, this.vendorParams);\n - return {\n - url: OpenLayers.Util.isArray(layer.url) ? layer.url[0] : layer.url,\n - params: OpenLayers.Util.upperCaseObject(params),\n - callback: function(request) {\n - this.handleResponse(xy, request, layer);\n - },\n - scope: this\n - };\n - },\n -\n - /**\n - * Method: request\n - * Sends a GetFeatureInfo request to the WMTS\n - * \n - * Parameters:\n - * xy - {<OpenLayers.Pixel>} The position on the map where the mouse event \n - * occurred.\n - * options - {Object} additional options for this method.\n - * \n - * Valid options:\n - * - *hover* {Boolean} true if we do the request for the hover handler\n - */\n - request: function(xy, options) {\n - options = options || {};\n - var layers = this.findLayers();\n - if (layers.length > 0) {\n - var issue, layer;\n - for (var i=0, len=layers.length; i<len; i++) {\n - layer = layers[i];\n - issue = this.events.triggerEvent("beforegetfeatureinfo", {\n - xy: xy,\n - layer: layer\n - });\n - if (issue !== false) {\n - ++this.pending;\n - var requestOptions = this.buildRequestOptions(layer, xy);\n - var request = OpenLayers.Request.GET(requestOptions);\n - if (options.hover === true) {\n - this.hoverRequest = request;\n - }\n - }\n - }\n - if (this.pending > 0) {\n - OpenLayers.Element.addClass(this.map.viewPortDiv, "olCursorWait");\n - }\n - }\n - },\n -\n - /**\n - * Method: handleResponse\n - * Handler for the GetFeatureInfo response.\n - * \n - * Parameters:\n - * xy - {<OpenLayers.Pixel>} The position on the map where the mouse event \n - * occurred.\n - * request - {XMLHttpRequest} The request object.\n - * layer - {<OpenLayers.Layer.WMTS>} The queried layer.\n - */\n - handleResponse: function(xy, request, layer) {\n - --this.pending;\n - if (this.pending <= 0) {\n - OpenLayers.Element.removeClass(this.map.viewPortDiv, "olCursorWait");\n - this.pending = 0;\n - }\n - if (request.status && (request.status < 200 || request.status >= 300)) {\n - this.events.triggerEvent("exception", {\n - xy: xy, \n - request: request,\n - layer: layer\n - });\n - } else {\n - var doc = request.responseXML;\n - if (!doc || !doc.documentElement) {\n - doc = request.responseText;\n - }\n - var features, except;\n - try {\n - features = this.format.read(doc);\n - } catch (error) {\n - except = true;\n - this.events.triggerEvent("exception", {\n - xy: xy,\n - request: request,\n - error: error,\n - layer: layer\n - });\n - }\n - if (!except) {\n - this.events.triggerEvent("getfeatureinfo", {\n - text: request.responseText,\n - features: features,\n - request: request,\n - xy: xy,\n - layer: layer\n - });\n - }\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.WMTSGetFeatureInfo"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>13067</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Zoom.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Zoom.js.xml deleted file mode 100644 index aa1322dcf381c1a4e8ea939b1c85585e67593d70..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/Zoom.js.xml +++ /dev/null @@ -1,182 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Zoom.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Events/buttonclick.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.Zoom\n - * The Zoom control is a pair of +/- links for zooming in and out.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.Zoom = OpenLayers.Class(OpenLayers.Control, {\n - \n - /**\n - * APIProperty: zoomInText\n - * {String}\n - * Text for zoom-in link. Default is "+".\n - */\n - zoomInText: "+",\n -\n - /**\n - * APIProperty: zoomInId\n - * {String}\n - * Instead of having the control create a zoom in link, you can provide \n - * the identifier for an anchor element already added to the document.\n - * By default, an element with id "olZoomInLink" will be searched for\n - * and used if it exists.\n - */\n - zoomInId: "olZoomInLink",\n -\n - /**\n - * APIProperty: zoomOutText\n - * {String}\n - * Text for zoom-out link. Default is "-".\n - */\n - zoomOutText: "-",\n -\n - /**\n - * APIProperty: zoomOutId\n - * {String}\n - * Instead of having the control create a zoom out link, you can provide \n - * the identifier for an anchor element already added to the document.\n - * By default, an element with id "olZoomOutLink" will be searched for\n - * and used if it exists.\n - */\n - zoomOutId: "olZoomOutLink",\n -\n - /**\n - * Method: draw\n - *\n - * Returns:\n - * {DOMElement} A reference to the DOMElement containing the zoom links.\n - */\n - draw: function() {\n - var div = OpenLayers.Control.prototype.draw.apply(this),\n - links = this.getOrCreateLinks(div),\n - zoomIn = links.zoomIn,\n - zoomOut = links.zoomOut,\n - eventsInstance = this.map.events;\n - \n - if (zoomOut.parentNode !== div) {\n - eventsInstance = this.events;\n - eventsInstance.attachToElement(zoomOut.parentNode);\n - }\n - eventsInstance.register("buttonclick", this, this.onZoomClick);\n - \n - this.zoomInLink = zoomIn;\n - this.zoomOutLink = zoomOut;\n - return div;\n - },\n - \n - /**\n - * Method: getOrCreateLinks\n - * \n - * Parameters:\n - * el - {DOMElement}\n - *\n - * Return: \n - * {Object} Object with zoomIn and zoomOut properties referencing links.\n - */\n - getOrCreateLinks: function(el) {\n - var zoomIn = document.getElementById(this.zoomInId),\n - zoomOut = document.getElementById(this.zoomOutId);\n - if (!zoomIn) {\n - zoomIn = document.createElement("a");\n - zoomIn.href = "#zoomIn";\n - zoomIn.appendChild(document.createTextNode(this.zoomInText));\n - zoomIn.className = "olControlZoomIn";\n - el.appendChild(zoomIn);\n - }\n - OpenLayers.Element.addClass(zoomIn, "olButton");\n - if (!zoomOut) {\n - zoomOut = document.createElement("a");\n - zoomOut.href = "#zoomOut";\n - zoomOut.appendChild(document.createTextNode(this.zoomOutText));\n - zoomOut.className = "olControlZoomOut";\n - el.appendChild(zoomOut);\n - }\n - OpenLayers.Element.addClass(zoomOut, "olButton");\n - return {\n - zoomIn: zoomIn, zoomOut: zoomOut\n - };\n - },\n - \n - /**\n - * Method: onZoomClick\n - * Called when zoomin/out link is clicked.\n - */\n - onZoomClick: function(evt) {\n - var button = evt.buttonElement;\n - if (button === this.zoomInLink) {\n - this.map.zoomIn();\n - } else if (button === this.zoomOutLink) {\n - this.map.zoomOut();\n - }\n - },\n -\n - /** \n - * Method: destroy\n - * Clean up.\n - */\n - destroy: function() {\n - if (this.map) {\n - this.map.events.unregister("buttonclick", this, this.onZoomClick);\n - }\n - delete this.zoomInLink;\n - delete this.zoomOutLink;\n - OpenLayers.Control.prototype.destroy.apply(this);\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.Zoom"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4142</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomBox.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomBox.js.xml deleted file mode 100644 index c9e99270d81d5a9baa93b49eabf5864b3e44c3dc..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomBox.js.xml +++ /dev/null @@ -1,152 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ZoomBox.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - * @requires OpenLayers/Handler/Box.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.ZoomBox\n - * The ZoomBox control enables zooming directly to a given extent, by drawing \n - * a box on the map. The box is drawn by holding down shift, whilst dragging \n - * the mouse.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.ZoomBox = OpenLayers.Class(OpenLayers.Control, {\n - /**\n - * Property: type\n - * {OpenLayers.Control.TYPE}\n - */\n - type: OpenLayers.Control.TYPE_TOOL,\n -\n - /**\n - * Property: out\n - * {Boolean} Should the control be used for zooming out?\n - */\n - out: false,\n -\n - /**\n - * APIProperty: keyMask\n - * {Integer} Zoom only occurs if the keyMask matches the combination of \n - * keys down. Use bitwise operators and one or more of the\n - * <OpenLayers.Handler> constants to construct a keyMask. Leave null if \n - * not used mask. Default is null.\n - */\n - keyMask: null,\n -\n - /**\n - * APIProperty: alwaysZoom\n - * {Boolean} Always zoom in/out, when box drawed \n - */\n - alwaysZoom: false,\n -\n - /**\n - * Method: draw\n - */ \n - draw: function() {\n - this.handler = new OpenLayers.Handler.Box( this,\n - {done: this.zoomBox}, {keyMask: this.keyMask} );\n - },\n -\n - /**\n - * Method: zoomBox\n - *\n - * Parameters:\n - * position - {<OpenLayers.Bounds>} or {<OpenLayers.Pixel>}\n - */\n - zoomBox: function (position) {\n - if (position instanceof OpenLayers.Bounds) {\n - var bounds;\n - if (!this.out) {\n - var minXY = this.map.getLonLatFromPixel({\n - x: position.left,\n - y: position.bottom\n - });\n - var maxXY = this.map.getLonLatFromPixel({\n - x: position.right,\n - y: position.top\n - });\n - bounds = new OpenLayers.Bounds(minXY.lon, minXY.lat,\n - maxXY.lon, maxXY.lat);\n - } else {\n - var pixWidth = Math.abs(position.right-position.left);\n - var pixHeight = Math.abs(position.top-position.bottom);\n - var zoomFactor = Math.min((this.map.size.h / pixHeight),\n - (this.map.size.w / pixWidth));\n - var extent = this.map.getExtent();\n - var center = this.map.getLonLatFromPixel(\n - position.getCenterPixel());\n - var xmin = center.lon - (extent.getWidth()/2)*zoomFactor;\n - var xmax = center.lon + (extent.getWidth()/2)*zoomFactor;\n - var ymin = center.lat - (extent.getHeight()/2)*zoomFactor;\n - var ymax = center.lat + (extent.getHeight()/2)*zoomFactor;\n - bounds = new OpenLayers.Bounds(xmin, ymin, xmax, ymax);\n - }\n - // always zoom in/out \n - var lastZoom = this.map.getZoom(); \n - this.map.zoomToExtent(bounds);\n - if (lastZoom == this.map.getZoom() && this.alwaysZoom == true){ \n - this.map.zoomTo(lastZoom + (this.out ? -1 : 1)); \n - }\n - } else { // it\'s a pixel\n - if (!this.out) {\n - this.map.setCenter(this.map.getLonLatFromPixel(position),\n - this.map.getZoom() + 1);\n - } else {\n - this.map.setCenter(this.map.getLonLatFromPixel(position),\n - this.map.getZoom() - 1);\n - }\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.ZoomBox"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3811</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomIn.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomIn.js.xml deleted file mode 100644 index 3ee58e4847adcc3cc092a5d49e7d157a198af4b0..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomIn.js.xml +++ /dev/null @@ -1,79 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ZoomIn.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.ZoomIn\n - * The ZoomIn control is a button to increase the zoom level of a map.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.ZoomIn = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * Property: type\n - * {String} The type of <OpenLayers.Control> -- When added to a \n - * <Control.Panel>, \'type\' is used by the panel to determine how to \n - * handle our events.\n - */\n - type: OpenLayers.Control.TYPE_BUTTON,\n - \n - /**\n - * Method: trigger\n - */\n - trigger: function(){\n - this.map.zoomIn();\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.ZoomIn"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>937</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomOut.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomOut.js.xml deleted file mode 100644 index 6122e494fb000c5cacf0235491c5c331bc0a26e0..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomOut.js.xml +++ /dev/null @@ -1,79 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ZoomOut.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.ZoomOut\n - * The ZoomOut control is a button to decrease the zoom level of a map.\n - *\n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.ZoomOut = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * Property: type\n - * {String} The type of <OpenLayers.Control> -- When added to a \n - * <Control.Panel>, \'type\' is used by the panel to determine how to \n - * handle our events.\n - */\n - type: OpenLayers.Control.TYPE_BUTTON,\n - \n - /**\n - * Method: trigger\n - */\n - trigger: function(){\n - this.map.zoomOut();\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.ZoomOut"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>942</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomPanel.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomPanel.js.xml deleted file mode 100644 index 74bb031beeb041d8d0c667a9728238b1892f3714..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomPanel.js.xml +++ /dev/null @@ -1,98 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.81</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ZoomPanel.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control/Panel.js\n - * @requires OpenLayers/Control/ZoomIn.js\n - * @requires OpenLayers/Control/ZoomOut.js\n - * @requires OpenLayers/Control/ZoomToMaxExtent.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.ZoomPanel\n - * The ZoomPanel control is a compact collecton of 3 zoom controls: a \n - * <OpenLayers.Control.ZoomIn>, a <OpenLayers.Control.ZoomToMaxExtent>, and a\n - * <OpenLayers.Control.ZoomOut>. By default it is drawn in the upper left \n - * corner of the map.\n - *\n - * Note: \n - * If you wish to use this class with the default images and you want \n - * it to look nice in ie6, you should add the following, conditionally\n - * added css stylesheet to your HTML file:\n - * \n - * (code)\n - * <!--[if lte IE 6]>\n - * <link rel="stylesheet" href="../theme/default/ie6-style.css" type="text/css" />\n - * <![endif]-->\n - * (end)\n - * \n - * Inherits from:\n - * - <OpenLayers.Control.Panel>\n - */\n -OpenLayers.Control.ZoomPanel = OpenLayers.Class(OpenLayers.Control.Panel, {\n -\n - /**\n - * Constructor: OpenLayers.Control.ZoomPanel \n - * Add the three zooming controls.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be used\n - * to extend the control.\n - */\n - initialize: function(options) {\n - OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]);\n - this.addControls([\n - new OpenLayers.Control.ZoomIn(),\n - new OpenLayers.Control.ZoomToMaxExtent(),\n - new OpenLayers.Control.ZoomOut()\n - ]);\n - },\n -\n - CLASS_NAME: "OpenLayers.Control.ZoomPanel"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1817</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomToMaxExtent.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomToMaxExtent.js.xml deleted file mode 100644 index c85fec238186fba3deebce1e03ea1b5071431c69..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Control/ZoomToMaxExtent.js.xml +++ /dev/null @@ -1,84 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ZoomToMaxExtent.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Control.js\n - */\n -\n -/**\n - * Class: OpenLayers.Control.ZoomToMaxExtent \n - * The ZoomToMaxExtent control is a button that zooms out to the maximum\n - * extent of the map. It is designed to be used with a \n - * <OpenLayers.Control.Panel>.\n - * \n - * Inherits from:\n - * - <OpenLayers.Control>\n - */\n -OpenLayers.Control.ZoomToMaxExtent = OpenLayers.Class(OpenLayers.Control, {\n -\n - /**\n - * Property: type\n - * {String} The type of <OpenLayers.Control> -- When added to a \n - * <Control.Panel>, \'type\' is used by the panel to determine how to \n - * handle our events.\n - */\n - type: OpenLayers.Control.TYPE_BUTTON,\n - \n - /*\n - * Method: trigger\n - * Do the zoom.\n - */\n - trigger: function() {\n - if (this.map) {\n - this.map.zoomToMaxExtent();\n - } \n - },\n -\n - CLASS_NAME: "OpenLayers.Control.ZoomToMaxExtent"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1126</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Events.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Events.js.xml deleted file mode 100644 index db6a83d5ab621e119492a8a9096c54313c53f493..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Events.js.xml +++ /dev/null @@ -1,1021 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Events.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Util.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Event\n - * Utility functions for event handling.\n - */\n -OpenLayers.Event = {\n -\n - /** \n - * Property: observers \n - * {Object} A hashtable cache of the event observers. Keyed by\n - * element._eventCacheID \n - */\n - observers: false,\n -\n - /**\n - * Constant: KEY_SPACE\n - * {int}\n - */\n - KEY_SPACE: 32,\n - \n - /** \n - * Constant: KEY_BACKSPACE \n - * {int} \n - */\n - KEY_BACKSPACE: 8,\n -\n - /** \n - * Constant: KEY_TAB \n - * {int} \n - */\n - KEY_TAB: 9,\n -\n - /** \n - * Constant: KEY_RETURN \n - * {int} \n - */\n - KEY_RETURN: 13,\n -\n - /** \n - * Constant: KEY_ESC \n - * {int} \n - */\n - KEY_ESC: 27,\n -\n - /** \n - * Constant: KEY_LEFT \n - * {int} \n - */\n - KEY_LEFT: 37,\n -\n - /** \n - * Constant: KEY_UP \n - * {int} \n - */\n - KEY_UP: 38,\n -\n - /** \n - * Constant: KEY_RIGHT \n - * {int} \n - */\n - KEY_RIGHT: 39,\n -\n - /** \n - * Constant: KEY_DOWN \n - * {int} \n - */\n - KEY_DOWN: 40,\n -\n - /** \n - * Constant: KEY_DELETE \n - * {int} \n - */\n - KEY_DELETE: 46,\n -\n -\n - /**\n - * Method: element\n - * Cross browser event element detection.\n - * \n - * Parameters:\n - * event - {Event} \n - * \n - * Returns:\n - * {DOMElement} The element that caused the event \n - */\n - element: function(event) {\n - return event.target || event.srcElement;\n - },\n -\n - /**\n - * Method: isSingleTouch\n - * Determine whether event was caused by a single touch\n - *\n - * Parameters:\n - * event - {Event}\n - *\n - * Returns:\n - * {Boolean}\n - */\n - isSingleTouch: function(event) {\n - return event.touches && event.touches.length == 1;\n - },\n -\n - /**\n - * Method: isMultiTouch\n - * Determine whether event was caused by a multi touch\n - *\n - * Parameters:\n - * event - {Event}\n - *\n - * Returns:\n - * {Boolean}\n - */\n - isMultiTouch: function(event) {\n - return event.touches && event.touches.length > 1;\n - },\n -\n - /**\n - * Method: isLeftClick\n - * Determine whether event was caused by a left click. \n - *\n - * Parameters:\n - * event - {Event} \n - * \n - * Returns:\n - * {Boolean}\n - */\n - isLeftClick: function(event) {\n - return (((event.which) && (event.which == 1)) ||\n - ((event.button) && (event.button == 1)));\n - },\n -\n - /**\n - * Method: isRightClick\n - * Determine whether event was caused by a right mouse click. \n - *\n - * Parameters:\n - * event - {Event} \n - * \n - * Returns:\n - * {Boolean}\n - */\n - isRightClick: function(event) {\n - return (((event.which) && (event.which == 3)) ||\n - ((event.button) && (event.button == 2)));\n - },\n - \n - /**\n - * Method: stop\n - * Stops an event from propagating. \n - *\n - * Parameters: \n - * event - {Event} \n - * allowDefault - {Boolean} If true, we stop the event chain but \n - * still allow the default browser behaviour (text selection,\n - * radio-button clicking, etc). Default is false.\n - */\n - stop: function(event, allowDefault) {\n - \n - if (!allowDefault) { \n - if (event.preventDefault) {\n - event.preventDefault();\n - } else {\n - event.returnValue = false;\n - }\n - }\n - \n - if (event.stopPropagation) {\n - event.stopPropagation();\n - } else {\n - event.cancelBubble = true;\n - }\n - },\n -\n - /** \n - * Method: findElement\n - * \n - * Parameters:\n - * event - {Event} \n - * tagName - {String} \n - * \n - * Returns:\n - * {DOMElement} The first node with the given tagName, starting from the\n - * node the event was triggered on and traversing the DOM upwards\n - */\n - findElement: function(event, tagName) {\n - var element = OpenLayers.Event.element(event);\n - while (element.parentNode && (!element.tagName ||\n - (element.tagName.toUpperCase() != tagName.toUpperCase()))){\n - element = element.parentNode;\n - }\n - return element;\n - },\n -\n - /** \n - * Method: observe\n - * \n - * Parameters:\n - * elementParam - {DOMElement || String} \n - * name - {String} \n - * observer - {function} \n - * useCapture - {Boolean} \n - */\n - observe: function(elementParam, name, observer, useCapture) {\n - var element = OpenLayers.Util.getElement(elementParam);\n - useCapture = useCapture || false;\n -\n - if (name == \'keypress\' &&\n - (navigator.appVersion.match(/Konqueror|Safari|KHTML/)\n - || element.attachEvent)) {\n - name = \'keydown\';\n - }\n -\n - //if observers cache has not yet been created, create it\n - if (!this.observers) {\n - this.observers = {};\n - }\n -\n - //if not already assigned, make a new unique cache ID\n - if (!element._eventCacheID) {\n - var idPrefix = "eventCacheID_";\n - if (element.id) {\n - idPrefix = element.id + "_" + idPrefix;\n - }\n - element._eventCacheID = OpenLayers.Util.createUniqueID(idPrefix);\n - }\n -\n - var cacheID = element._eventCacheID;\n -\n - //if there is not yet a hash entry for this element, add one\n - if (!this.observers[cacheID]) {\n - this.observers[cacheID] = [];\n - }\n -\n - //add a new observer to this element\'s list\n - this.observers[cacheID].push({\n - \'element\': element,\n - \'name\': name,\n - \'observer\': observer,\n - \'useCapture\': useCapture\n - });\n -\n - //add the actual browser event listener\n - if (element.addEventListener) {\n - element.addEventListener(name, observer, useCapture);\n - } else if (element.attachEvent) {\n - element.attachEvent(\'on\' + name, observer);\n - }\n - },\n -\n - /** \n - * Method: stopObservingElement\n - * Given the id of an element to stop observing, cycle through the \n - * element\'s cached observers, calling stopObserving on each one, \n - * skipping those entries which can no longer be removed.\n - * \n - * parameters:\n - * elementParam - {DOMElement || String} \n - */\n - stopObservingElement: function(elementParam) {\n - var element = OpenLayers.Util.getElement(elementParam);\n - var cacheID = element._eventCacheID;\n -\n - this._removeElementObservers(OpenLayers.Event.observers[cacheID]);\n - },\n -\n - /**\n - * Method: _removeElementObservers\n - *\n - * Parameters:\n - * elementObservers - {Array(Object)} Array of (element, name, \n - * observer, usecapture) objects, \n - * taken directly from hashtable\n - */\n - _removeElementObservers: function(elementObservers) {\n - if (elementObservers) {\n - for(var i = elementObservers.length-1; i >= 0; i--) {\n - var entry = elementObservers[i];\n - var args = new Array(entry.element,\n - entry.name,\n - entry.observer,\n - entry.useCapture);\n - var removed = OpenLayers.Event.stopObserving.apply(this, args);\n - }\n - }\n - },\n -\n - /**\n - * Method: stopObserving\n - * \n - * Parameters:\n - * elementParam - {DOMElement || String} \n - * name - {String} \n - * observer - {function} \n - * useCapture - {Boolean} \n - * \n - * Returns:\n - * {Boolean} Whether or not the event observer was removed\n - */\n - stopObserving: function(elementParam, name, observer, useCapture) {\n - useCapture = useCapture || false;\n - \n - var element = OpenLayers.Util.getElement(elementParam);\n - var cacheID = element._eventCacheID;\n -\n - if (name == \'keypress\') {\n - if ( navigator.appVersion.match(/Konqueror|Safari|KHTML/) || \n - element.detachEvent) {\n - name = \'keydown\';\n - }\n - }\n -\n - // find element\'s entry in this.observers cache and remove it\n - var foundEntry = false;\n - var elementObservers = OpenLayers.Event.observers[cacheID];\n - if (elementObservers) {\n - \n - // find the specific event type in the element\'s list\n - var i=0;\n - while(!foundEntry && i < elementObservers.length) {\n - var cacheEntry = elementObservers[i];\n - \n - if ((cacheEntry.name == name) &&\n - (cacheEntry.observer == observer) &&\n - (cacheEntry.useCapture == useCapture)) {\n - \n - elementObservers.splice(i, 1);\n - if (elementObservers.length == 0) {\n - delete OpenLayers.Event.observers[cacheID];\n - }\n - foundEntry = true;\n - break; \n - }\n - i++; \n - }\n - }\n - \n - //actually remove the event listener from browser\n - if (foundEntry) {\n - if (element.removeEventListener) {\n - element.removeEventListener(name, observer, useCapture);\n - } else if (element && element.detachEvent) {\n - element.detachEvent(\'on\' + name, observer);\n - }\n - }\n - return foundEntry;\n - },\n - \n - /** \n - * Method: unloadCache\n - * Cycle through all the element entries in the events cache and call\n - * stopObservingElement on each. \n - */\n - unloadCache: function() {\n - // check for OpenLayers.Event before checking for observers, because\n - // OpenLayers.Event may be undefined in IE if no map instance was\n - // created\n - if (OpenLayers.Event && OpenLayers.Event.observers) {\n - for (var cacheID in OpenLayers.Event.observers) {\n - var elementObservers = OpenLayers.Event.observers[cacheID];\n - OpenLayers.Event._removeElementObservers.apply(this, \n - [elementObservers]);\n - }\n - OpenLayers.Event.observers = false;\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Event"\n -};\n -\n -/* prevent memory leaks in IE */\n -OpenLayers.Event.observe(window, \'unload\', OpenLayers.Event.unloadCache, false);\n -\n -/**\n - * Class: OpenLayers.Events\n - */\n -OpenLayers.Events = OpenLayers.Class({\n -\n - /** \n - * Constant: BROWSER_EVENTS\n - * {Array(String)} supported events \n - */\n - BROWSER_EVENTS: [\n - "mouseover", "mouseout",\n - "mousedown", "mouseup", "mousemove", \n - "click", "dblclick", "rightclick", "dblrightclick",\n - "resize", "focus", "blur",\n - "touchstart", "touchmove", "touchend",\n - "keydown"\n - ],\n -\n - /** \n - * Property: listeners \n - * {Object} Hashtable of Array(Function): events listener functions \n - */\n - listeners: null,\n -\n - /** \n - * Property: object \n - * {Object} the code object issuing application events \n - */\n - object: null,\n -\n - /** \n - * Property: element \n - * {DOMElement} the DOM element receiving browser events \n - */\n - element: null,\n -\n - /** \n - * Property: eventHandler \n - * {Function} bound event handler attached to elements \n - */\n - eventHandler: null,\n -\n - /** \n - * APIProperty: fallThrough \n - * {Boolean} \n - */\n - fallThrough: null,\n -\n - /** \n - * APIProperty: includeXY\n - * {Boolean} Should the .xy property automatically be created for browser\n - * mouse events? In general, this should be false. If it is true, then\n - * mouse events will automatically generate a \'.xy\' property on the \n - * event object that is passed. (Prior to OpenLayers 2.7, this was true\n - * by default.) Otherwise, you can call the getMousePosition on the\n - * relevant events handler on the object available via the \'evt.object\'\n - * property of the evt object. So, for most events, you can call:\n - * function named(evt) { \n - * this.xy = this.object.events.getMousePosition(evt) \n - * } \n - *\n - * This option typically defaults to false for performance reasons:\n - * when creating an events object whose primary purpose is to manage\n - * relatively positioned mouse events within a div, it may make\n - * sense to set it to true.\n - *\n - * This option is also used to control whether the events object caches\n - * offsets. If this is false, it will not: the reason for this is that\n - * it is only expected to be called many times if the includeXY property\n - * is set to true. If you set this to true, you are expected to clear \n - * the offset cache manually (using this.clearMouseCache()) if:\n - * the border of the element changes\n - * the location of the element in the page changes\n - */\n - includeXY: false, \n - \n - /**\n - * APIProperty: extensions\n - * {Object} Event extensions registered with this instance. Keys are\n - * event types, values are {OpenLayers.Events.*} extension instances or\n - * {Boolean} for events that an instantiated extension provides in\n - * addition to the one it was created for.\n - *\n - * Extensions create an event in addition to browser events, which usually\n - * fires when a sequence of browser events is completed. Extensions are\n - * automatically instantiated when a listener is registered for an event\n - * provided by an extension.\n - *\n - * Extensions are created in the <OpenLayers.Events> namespace using\n - * <OpenLayers.Class>, and named after the event they provide.\n - * The constructor receives the target <OpenLayers.Events> instance as\n - * argument. Extensions that need to capture browser events before they\n - * propagate can register their listeners events using <register>, with\n - * {extension: true} as 4th argument.\n - *\n - * If an extension creates more than one event, an alias for each event\n - * type should be created and reference the same class. The constructor\n - * should set a reference in the target\'s extensions registry to itself.\n - *\n - * Below is a minimal extension that provides the "foostart" and "fooend"\n - * event types, which replace the native "click" event type if clicked on\n - * an element with the css class "foo":\n - *\n - * (code)\n - * OpenLayers.Events.foostart = OpenLayers.Class({\n - * initialize: function(target) {\n - * this.target = target;\n - * this.target.register("click", this, this.doStuff, {extension: true});\n - * // only required if extension provides more than one event type\n - * this.target.extensions["foostart"] = true;\n - * this.target.extensions["fooend"] = true;\n - * },\n - * destroy: function() {\n - * var target = this.target;\n - * target.unregister("click", this, this.doStuff);\n - * delete this.target;\n - * // only required if extension provides more than one event type\n - * delete target.extensions["foostart"];\n - * delete target.extensions["fooend"];\n - * },\n - * doStuff: function(evt) {\n - * var propagate = true;\n - * if (OpenLayers.Event.element(evt).className === "foo") {\n - * propagate = false;\n - * var target = this.target;\n - * target.triggerEvent("foostart");\n - * window.setTimeout(function() {\n - * target.triggerEvent("fooend");\n - * }, 1000);\n - * }\n - * return propagate;\n - * }\n - * });\n - * // only required if extension provides more than one event type\n - * OpenLayers.Events.fooend = OpenLayers.Events.foostart;\n - * (end)\n - * \n - */\n - extensions: null,\n - \n - /**\n - * Property: extensionCount\n - * {Object} Keys are event types (like in <listeners>), values are the\n - * number of extension listeners for each event type.\n - */\n - extensionCount: null,\n -\n - /**\n - * Method: clearMouseListener\n - * A version of <clearMouseCache> that is bound to this instance so that\n - * it can be used with <OpenLayers.Event.observe> and\n - * <OpenLayers.Event.stopObserving>.\n - */\n - clearMouseListener: null,\n -\n - /**\n - * Constructor: OpenLayers.Events\n - * Construct an OpenLayers.Events object.\n - *\n - * Parameters:\n - * object - {Object} The js object to which this Events object is being added\n - * element - {DOMElement} A dom element to respond to browser events\n - * eventTypes - {Array(String)} Deprecated. Array of custom application\n - * events. A listener may be registered for any named event, regardless\n - * of the values provided here.\n - * fallThrough - {Boolean} Allow events to fall through after these have\n - * been handled?\n - * options - {Object} Options for the events object.\n - */\n - initialize: function (object, element, eventTypes, fallThrough, options) {\n - OpenLayers.Util.extend(this, options);\n - this.object = object;\n - this.fallThrough = fallThrough;\n - this.listeners = {};\n - this.extensions = {};\n - this.extensionCount = {};\n - \n - // if a dom element is specified, add a listeners list \n - // for browser events on the element and register them\n - if (element != null) {\n - this.attachToElement(element);\n - }\n - },\n -\n - /**\n - * APIMethod: destroy\n - */\n - destroy: function () {\n - for (var e in this.extensions) {\n - if (typeof this.extensions[e] !== "boolean") {\n - this.extensions[e].destroy();\n - }\n - }\n - this.extensions = null;\n - if (this.element) {\n - OpenLayers.Event.stopObservingElement(this.element);\n - if(this.element.hasScrollEvent) {\n - OpenLayers.Event.stopObserving(\n - window, "scroll", this.clearMouseListener\n - );\n - }\n - }\n - this.element = null;\n -\n - this.listeners = null;\n - this.object = null;\n - this.fallThrough = null;\n - this.eventHandler = null;\n - },\n -\n - /**\n - * APIMethod: addEventType\n - * Deprecated. Any event can be triggered without adding it first.\n - * \n - * Parameters:\n - * eventName - {String}\n - */\n - addEventType: function(eventName) {\n - },\n -\n - /**\n - * Method: attachToElement\n - *\n - * Parameters:\n - * element - {HTMLDOMElement} a DOM element to attach browser events to\n - */\n - attachToElement: function (element) {\n - if (this.element) {\n - OpenLayers.Event.stopObservingElement(this.element);\n - } else {\n - // keep a bound copy of handleBrowserEvent() so that we can\n - // pass the same function to both Event.observe() and .stopObserving()\n - this.eventHandler = OpenLayers.Function.bindAsEventListener(\n - this.handleBrowserEvent, this\n - );\n - \n - // to be used with observe and stopObserving\n - this.clearMouseListener = OpenLayers.Function.bind(\n - this.clearMouseCache, this\n - );\n - }\n - this.element = element;\n - for (var i = 0, len = this.BROWSER_EVENTS.length; i < len; i++) {\n - // register the event cross-browser\n - OpenLayers.Event.observe(\n - element, this.BROWSER_EVENTS[i], this.eventHandler\n - );\n - }\n - // disable dragstart in IE so that mousedown/move/up works normally\n - OpenLayers.Event.observe(element, "dragstart", OpenLayers.Event.stop);\n - },\n - \n - /**\n - * APIMethod: on\n - * Convenience method for registering listeners with a common scope.\n - * Internally, this method calls <register> as shown in the examples\n - * below.\n - *\n - * Example use:\n - * (code)\n - * // register a single listener for the "loadstart" event\n - * events.on({"loadstart": loadStartListener});\n - *\n - * // this is equivalent to the following\n - * events.register("loadstart", undefined, loadStartListener);\n - *\n - * // register multiple listeners to be called with the same `this` object\n - * events.on({\n - * "loadstart": loadStartListener,\n - * "loadend": loadEndListener,\n - * scope: object\n - * });\n - *\n - * // this is equivalent to the following\n - * events.register("loadstart", object, loadStartListener);\n - * events.register("loadend", object, loadEndListener);\n - * (end)\n - *\n - * Parameters:\n - * object - {Object} \n - */\n - on: function(object) {\n - for(var type in object) {\n - if(type != "scope" && object.hasOwnProperty(type)) {\n - this.register(type, object.scope, object[type]);\n - }\n - }\n - },\n -\n - /**\n - * APIMethod: register\n - * Register an event on the events object.\n - *\n - * When the event is triggered, the \'func\' function will be called, in the\n - * context of \'obj\'. Imagine we were to register an event, specifying an \n - * OpenLayers.Bounds Object as \'obj\'. When the event is triggered, the \n - * context in the callback function will be our Bounds object. This means\n - * that within our callback function, we can access the properties and \n - * methods of the Bounds object through the "this" variable. So our \n - * callback could execute something like: \n - * : leftStr = "Left: " + this.left;\n - * \n - * or\n - * \n - * : centerStr = "Center: " + this.getCenterLonLat();\n - *\n - * Parameters:\n - * type - {String} Name of the event to register\n - * obj - {Object} The object to bind the context to for the callback#.\n - * If no object is specified, default is the Events\'s \'object\' property.\n - * func - {Function} The callback function. If no callback is \n - * specified, this function does nothing.\n - * priority - {Boolean|Object} If true, adds the new listener to the\n - * *front* of the events queue instead of to the end.\n - *\n - * Valid options for priority:\n - * extension - {Boolean} If true, then the event will be registered as\n - * extension event. Extension events are handled before all other\n - * events.\n - */\n - register: function (type, obj, func, priority) {\n - if (type in OpenLayers.Events && !this.extensions[type]) {\n - this.extensions[type] = new OpenLayers.Events[type](this);\n - }\n - if (func != null) {\n - if (obj == null) {\n - obj = this.object;\n - }\n - var listeners = this.listeners[type];\n - if (!listeners) {\n - listeners = [];\n - this.listeners[type] = listeners;\n - this.extensionCount[type] = 0;\n - }\n - var listener = {obj: obj, func: func};\n - if (priority) {\n - listeners.splice(this.extensionCount[type], 0, listener);\n - if (typeof priority === "object" && priority.extension) {\n - this.extensionCount[type]++;\n - }\n - } else {\n - listeners.push(listener);\n - }\n - }\n - },\n -\n - /**\n - * APIMethod: registerPriority\n - * Same as register() but adds the new listener to the *front* of the\n - * events queue instead of to the end.\n - * \n - * TODO: get rid of this in 3.0 - Decide whether listeners should be \n - * called in the order they were registered or in reverse order.\n - *\n - *\n - * Parameters:\n - * type - {String} Name of the event to register\n - * obj - {Object} The object to bind the context to for the callback#.\n - * If no object is specified, default is the Events\'s \n - * \'object\' property.\n - * func - {Function} The callback function. If no callback is \n - * specified, this function does nothing.\n - */\n - registerPriority: function (type, obj, func) {\n - this.register(type, obj, func, true);\n - },\n - \n - /**\n - * APIMethod: un\n - * Convenience method for unregistering listeners with a common scope.\n - * Internally, this method calls <unregister> as shown in the examples\n - * below.\n - *\n - * Example use:\n - * (code)\n - * // unregister a single listener for the "loadstart" event\n - * events.un({"loadstart": loadStartListener});\n - *\n - * // this is equivalent to the following\n - * events.unregister("loadstart", undefined, loadStartListener);\n - *\n - * // unregister multiple listeners with the same `this` object\n - * events.un({\n - * "loadstart": loadStartListener,\n - * "loadend": loadEndListener,\n - * scope: object\n - * });\n - *\n - * // this is equivalent to the following\n - * events.unregister("loadstart", object, loadStartListener);\n - * events.unregister("loadend", object, loadEndListener);\n - * (end)\n - */\n - un: function(object) {\n - for(var type in object) {\n - if(type != "scope" && object.hasOwnProperty(type)) {\n - this.unregister(type, object.scope, object[type]);\n - }\n - }\n - },\n -\n - /**\n - * APIMethod: unregister\n - *\n - * Parameters:\n - * type - {String} \n - * obj - {Object} If none specified, defaults to this.object\n - * func - {Function} \n - */\n - unregister: function (type, obj, func) {\n - if (obj == null) {\n - obj = this.object;\n - }\n - var listeners = this.listeners[type];\n - if (listeners != null) {\n - for (var i=0, len=listeners.length; i<len; i++) {\n - if (listeners[i].obj == obj && listeners[i].func == func) {\n - listeners.splice(i, 1);\n - break;\n - }\n - }\n - }\n - },\n -\n - /** \n - * Method: remove\n - * Remove all listeners for a given event type. If type is not registered,\n - * does nothing.\n - *\n - * Parameters:\n - * type - {String} \n - */\n - remove: function(type) {\n - if (this.listeners[type] != null) {\n - this.listeners[type] = [];\n - }\n - },\n -\n - /**\n - * APIMethod: triggerEvent\n - * Trigger a specified registered event. \n - * \n - * Parameters:\n - * type - {String} \n - * evt - {Event}\n - *\n - * Returns:\n - * {Boolean} The last listener return. If a listener returns false, the\n - * chain of listeners will stop getting called.\n - */\n - triggerEvent: function (type, evt) {\n - var listeners = this.listeners[type];\n -\n - // fast path\n - if(!listeners || listeners.length == 0) {\n - return undefined;\n - }\n -\n - // prep evt object with object & div references\n - if (evt == null) {\n - evt = {};\n - }\n - evt.object = this.object;\n - evt.element = this.element;\n - if(!evt.type) {\n - evt.type = type;\n - }\n - \n - // execute all callbacks registered for specified type\n - // get a clone of the listeners array to\n - // allow for splicing during callbacks\n - listeners = listeners.slice();\n - var continueChain;\n - for (var i=0, len=listeners.length; i<len; i++) {\n - var callback = listeners[i];\n - // bind the context to callback.obj\n - continueChain = callback.func.apply(callback.obj, [evt]);\n -\n - if ((continueChain != undefined) && (continueChain == false)) {\n - // if callback returns false, execute no more callbacks.\n - break;\n - }\n - }\n - // don\'t fall through to other DOM elements\n - if (!this.fallThrough) { \n - OpenLayers.Event.stop(evt, true);\n - }\n - return continueChain;\n - },\n -\n - /**\n - * Method: handleBrowserEvent\n - * Basically just a wrapper to the triggerEvent() function, but takes \n - * care to set a property \'xy\' on the event with the current mouse \n - * position.\n - *\n - * Parameters:\n - * evt - {Event} \n - */\n - handleBrowserEvent: function (evt) {\n - var type = evt.type, listeners = this.listeners[type];\n - if(!listeners || listeners.length == 0) {\n - // noone\'s listening, bail out\n - return;\n - }\n - // add clientX & clientY to all events - corresponds to average x, y\n - var touches = evt.touches;\n - if (touches && touches[0]) {\n - var x = 0;\n - var y = 0;\n - var num = touches.length;\n - var touch;\n - for (var i=0; i<num; ++i) {\n - touch = touches[i];\n - x += touch.clientX;\n - y += touch.clientY;\n - }\n - evt.clientX = x / num;\n - evt.clientY = y / num;\n - }\n - if (this.includeXY) {\n - evt.xy = this.getMousePosition(evt);\n - } \n - this.triggerEvent(type, evt);\n - },\n -\n - /**\n - * APIMethod: clearMouseCache\n - * Clear cached data about the mouse position. This should be called any \n - * time the element that events are registered on changes position \n - * within the page.\n - */\n - clearMouseCache: function() { \n - this.element.scrolls = null;\n - this.element.lefttop = null;\n - // OpenLayers.Util.pagePosition needs to use\n - // element.getBoundingClientRect to correctly calculate the offsets\n - // for the iPhone, but once the page is scrolled, getBoundingClientRect\n - // returns incorrect offsets. So our best bet is to not invalidate the\n - // offsets once we have them, and hope that the page was not scrolled\n - // when we did the initial calculation.\n - var body = document.body;\n - if (body && !((body.scrollTop != 0 || body.scrollLeft != 0) &&\n - navigator.userAgent.match(/iPhone/i))) {\n - this.element.offsets = null;\n - }\n - }, \n -\n - /**\n - * Method: getMousePosition\n - * \n - * Parameters:\n - * evt - {Event} \n - * \n - * Returns:\n - * {<OpenLayers.Pixel>} The current xy coordinate of the mouse, adjusted\n - * for offsets\n - */\n - getMousePosition: function (evt) {\n - if (!this.includeXY) {\n - this.clearMouseCache();\n - } else if (!this.element.hasScrollEvent) {\n - OpenLayers.Event.observe(window, "scroll", this.clearMouseListener);\n - this.element.hasScrollEvent = true;\n - }\n - \n - if (!this.element.scrolls) {\n - var viewportElement = OpenLayers.Util.getViewportElement();\n - this.element.scrolls = [\n - viewportElement.scrollLeft,\n - viewportElement.scrollTop\n - ];\n - }\n -\n - if (!this.element.lefttop) {\n - this.element.lefttop = [\n - (document.documentElement.clientLeft || 0),\n - (document.documentElement.clientTop || 0)\n - ];\n - }\n - \n - if (!this.element.offsets) {\n - this.element.offsets = OpenLayers.Util.pagePosition(this.element);\n - }\n -\n - return new OpenLayers.Pixel(\n - (evt.clientX + this.element.scrolls[0]) - this.element.offsets[0]\n - - this.element.lefttop[0], \n - (evt.clientY + this.element.scrolls[1]) - this.element.offsets[1]\n - - this.element.lefttop[1]\n - ); \n - },\n -\n - CLASS_NAME: "OpenLayers.Events"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>31565</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Events.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Events.xml deleted file mode 100644 index 46aa8923f5b61f9df0a13d3129dff7e4c9e02d01..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Events.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Events</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Events</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Events/buttonclick.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Events/buttonclick.js.xml deleted file mode 100644 index bf3a5dc6c1b698b3fc99e06b9694adb879e70a44..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Events/buttonclick.js.xml +++ /dev/null @@ -1,223 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>buttonclick.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Events.js\n - */\n -\n -/**\n - * Class: OpenLayers.Events.buttonclick\n - * Extension event type for handling buttons on top of a dom element. This\n - * event type fires "buttonclick" on its <target> when a button was\n - * clicked. Buttons are detected by the "olButton" class.\n - *\n - * This event type makes sure that button clicks do not interfere with other\n - * events that are registered on the same <element>.\n - *\n - * Event types provided by this extension:\n - * - *buttonclick* Triggered when a button is clicked. Listeners receive an\n - * object with a *buttonElement* property referencing the dom element of\n - * the clicked button, and an *buttonXY* property with the click position\n - * relative to the button.\n - */\n -OpenLayers.Events.buttonclick = OpenLayers.Class({\n - \n - /**\n - * Property: target\n - * {<OpenLayers.Events>} The events instance that the buttonclick event will\n - * be triggered on.\n - */\n - target: null,\n - \n - /**\n - * Property: events\n - * {Array} Events to observe and conditionally stop from propagating when\n - * an element with the olButton class (or its olAlphaImg child) is\n - * clicked.\n - */\n - events: [\n - \'mousedown\', \'mouseup\', \'click\', \'dblclick\',\n - \'touchstart\', \'touchmove\', \'touchend\', \'keydown\'\n - ],\n - \n - /**\n - * Property: startRegEx\n - * {RegExp} Regular expression to test Event.type for events that start\n - * a buttonclick sequence.\n - */\n - startRegEx: /^mousedown|touchstart$/,\n -\n - /**\n - * Property: cancelRegEx\n - * {RegExp} Regular expression to test Event.type for events that cancel\n - * a buttonclick sequence.\n - */\n - cancelRegEx: /^touchmove$/,\n -\n - /**\n - * Property: completeRegEx\n - * {RegExp} Regular expression to test Event.type for events that complete\n - * a buttonclick sequence.\n - */\n - completeRegEx: /^mouseup|touchend$/,\n - \n - /**\n - * Property: startEvt\n - * {Event} The event that started the click sequence\n - */\n - \n - /**\n - * Constructor: OpenLayers.Events.buttonclick\n - * Construct a buttonclick event type. Applications are not supposed to\n - * create instances of this class - they are created on demand by\n - * <OpenLayers.Events> instances.\n - *\n - * Parameters:\n - * target - {<OpenLayers.Events>} The events instance that the buttonclick\n - * event will be triggered on.\n - */\n - initialize: function(target) {\n - this.target = target;\n - for (var i=this.events.length-1; i>=0; --i) {\n - this.target.register(this.events[i], this, this.buttonClick, {\n - extension: true\n - });\n - }\n - },\n - \n - /**\n - * Method: destroy\n - */\n - destroy: function() {\n - for (var i=this.events.length-1; i>=0; --i) {\n - this.target.unregister(this.events[i], this, this.buttonClick);\n - }\n - delete this.target;\n - },\n -\n - /**\n - * Method: getPressedButton\n - * Get the pressed button, if any. Returns undefined if no button\n - * was pressed.\n - *\n - * Arguments:\n - * element - {DOMElement} The event target.\n - *\n - * Returns:\n - * {DOMElement} The button element, or undefined.\n - */\n - getPressedButton: function(element) {\n - var depth = 3, // limit the search depth\n - button;\n - do {\n - if(OpenLayers.Element.hasClass(element, "olButton")) {\n - // hit!\n - button = element;\n - break;\n - }\n - element = element.parentNode;\n - } while(--depth > 0 && element);\n - return button;\n - },\n -\n - /**\n - * Method: buttonClick\n - * Check if a button was clicked, and fire the buttonclick event\n - *\n - * Parameters:\n - * evt - {Event}\n - */\n - buttonClick: function(evt) {\n - var propagate = true,\n - element = OpenLayers.Event.element(evt);\n - if (element && (OpenLayers.Event.isLeftClick(evt) || !~evt.type.indexOf("mouse"))) {\n - // was a button pressed?\n - var button = this.getPressedButton(element);\n - if (button) {\n - if (evt.type === "keydown") {\n - switch (evt.keyCode) {\n - case OpenLayers.Event.KEY_RETURN:\n - case OpenLayers.Event.KEY_SPACE:\n - this.target.triggerEvent("buttonclick", {\n - buttonElement: button\n - });\n - OpenLayers.Event.stop(evt);\n - propagate = false;\n - break;\n - }\n - } else if (this.startEvt) {\n - if (this.completeRegEx.test(evt.type)) {\n - var pos = OpenLayers.Util.pagePosition(button);\n - this.target.triggerEvent("buttonclick", {\n - buttonElement: button,\n - buttonXY: {\n - x: this.startEvt.clientX - pos[0],\n - y: this.startEvt.clientY - pos[1]\n - }\n - });\n - }\n - if (this.cancelRegEx.test(evt.type)) {\n - delete this.startEvt;\n - }\n - OpenLayers.Event.stop(evt);\n - propagate = false;\n - }\n - if (this.startRegEx.test(evt.type)) {\n - this.startEvt = evt;\n - OpenLayers.Event.stop(evt);\n - propagate = false;\n - }\n - } else {\n - delete this.startEvt;\n - }\n - }\n - return propagate;\n - }\n - \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5945</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Feature.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Feature.js.xml deleted file mode 100644 index 9982732bfc1d5e9c94a9c012d3e381410ffab2e9..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Feature.js.xml +++ /dev/null @@ -1,269 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Feature.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Util.js\n - */\n -\n -/**\n - * Class: OpenLayers.Feature\n - * Features are combinations of geography and attributes. The OpenLayers.Feature\n - * class specifically combines a marker and a lonlat.\n - */\n -OpenLayers.Feature = OpenLayers.Class({\n -\n - /** \n - * Property: layer \n - * {<OpenLayers.Layer>} \n - */\n - layer: null,\n -\n - /** \n - * Property: id \n - * {String} \n - */\n - id: null,\n - \n - /** \n - * Property: lonlat \n - * {<OpenLayers.LonLat>} \n - */\n - lonlat: null,\n -\n - /** \n - * Property: data \n - * {Object} \n - */\n - data: null,\n -\n - /** \n - * Property: marker \n - * {<OpenLayers.Marker>} \n - */\n - marker: null,\n -\n - /**\n - * APIProperty: popupClass\n - * {<OpenLayers.Class>} The class which will be used to instantiate\n - * a new Popup. Default is <OpenLayers.Popup.Anchored>.\n - */\n - popupClass: null,\n -\n - /** \n - * Property: popup \n - * {<OpenLayers.Popup>} \n - */\n - popup: null,\n -\n - /** \n - * Constructor: OpenLayers.Feature\n - * Constructor for features.\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer>} \n - * lonlat - {<OpenLayers.LonLat>} \n - * data - {Object} \n - * \n - * Returns:\n - * {<OpenLayers.Feature>}\n - */\n - initialize: function(layer, lonlat, data) {\n - this.layer = layer;\n - this.lonlat = lonlat;\n - this.data = (data != null) ? data : {};\n - this.id = OpenLayers.Util.createUniqueID(this.CLASS_NAME + "_"); \n - },\n -\n - /** \n - * Method: destroy\n - * nullify references to prevent circular references and memory leaks\n - */\n - destroy: function() {\n -\n - //remove the popup from the map\n - if ((this.layer != null) && (this.layer.map != null)) {\n - if (this.popup != null) {\n - this.layer.map.removePopup(this.popup);\n - }\n - }\n - // remove the marker from the layer\n - if (this.layer != null && this.marker != null) {\n - this.layer.removeMarker(this.marker);\n - }\n -\n - this.layer = null;\n - this.id = null;\n - this.lonlat = null;\n - this.data = null;\n - if (this.marker != null) {\n - this.destroyMarker(this.marker);\n - this.marker = null;\n - }\n - if (this.popup != null) {\n - this.destroyPopup(this.popup);\n - this.popup = null;\n - }\n - },\n - \n - /**\n - * Method: onScreen\n - * \n - * Returns:\n - * {Boolean} Whether or not the feature is currently visible on screen\n - * (based on its \'lonlat\' property)\n - */\n - onScreen:function() {\n - \n - var onScreen = false;\n - if ((this.layer != null) && (this.layer.map != null)) {\n - var screenBounds = this.layer.map.getExtent();\n - onScreen = screenBounds.containsLonLat(this.lonlat);\n - } \n - return onScreen;\n - },\n - \n -\n - /**\n - * Method: createMarker\n - * Based on the data associated with the Feature, create and return a marker object.\n - *\n - * Returns: \n - * {<OpenLayers.Marker>} A Marker Object created from the \'lonlat\' and \'icon\' properties\n - * set in this.data. If no \'lonlat\' is set, returns null. If no\n - * \'icon\' is set, OpenLayers.Marker() will load the default image.\n - * \n - * Note - this.marker is set to return value\n - * \n - */\n - createMarker: function() {\n -\n - if (this.lonlat != null) {\n - this.marker = new OpenLayers.Marker(this.lonlat, this.data.icon);\n - }\n - return this.marker;\n - },\n -\n - /**\n - * Method: destroyMarker\n - * Destroys marker.\n - * If user overrides the createMarker() function, s/he should be able\n - * to also specify an alternative function for destroying it\n - */\n - destroyMarker: function() {\n - this.marker.destroy(); \n - },\n -\n - /**\n - * Method: createPopup\n - * Creates a popup object created from the \'lonlat\', \'popupSize\',\n - * and \'popupContentHTML\' properties set in this.data. It uses\n - * this.marker.icon as default anchor. \n - * \n - * If no \'lonlat\' is set, returns null. \n - * If no this.marker has been created, no anchor is sent.\n - *\n - * Note - the returned popup object is \'owned\' by the feature, so you\n - * cannot use the popup\'s destroy method to discard the popup.\n - * Instead, you must use the feature\'s destroyPopup\n - * \n - * Note - this.popup is set to return value\n - * \n - * Parameters: \n - * closeBox - {Boolean} create popup with closebox or not\n - * \n - * Returns:\n - * {<OpenLayers.Popup>} Returns the created popup, which is also set\n - * as \'popup\' property of this feature. Will be of whatever type\n - * specified by this feature\'s \'popupClass\' property, but must be\n - * of type <OpenLayers.Popup>.\n - * \n - */\n - createPopup: function(closeBox) {\n -\n - if (this.lonlat != null) {\n - if (!this.popup) {\n - var anchor = (this.marker) ? this.marker.icon : null;\n - var popupClass = this.popupClass ? \n - this.popupClass : OpenLayers.Popup.Anchored;\n - this.popup = new popupClass(this.id + "_popup", \n - this.lonlat,\n - this.data.popupSize,\n - this.data.popupContentHTML,\n - anchor, \n - closeBox); \n - } \n - if (this.data.overflow != null) {\n - this.popup.contentDiv.style.overflow = this.data.overflow;\n - } \n - \n - this.popup.feature = this;\n - } \n - return this.popup;\n - },\n -\n - \n - /**\n - * Method: destroyPopup\n - * Destroys the popup created via createPopup.\n - *\n - * As with the marker, if user overrides the createPopup() function, s/he \n - * should also be able to override the destruction\n - */\n - destroyPopup: function() {\n - if (this.popup) {\n - this.popup.feature = null;\n - this.popup.destroy();\n - this.popup = null;\n - } \n - },\n -\n - CLASS_NAME: "OpenLayers.Feature"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6505</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Feature.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Feature.xml deleted file mode 100644 index 1c1e690d6edbc4de6f0bf9e147ac7782cb2c289e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Feature.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Feature</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Feature</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Feature/Vector.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Feature/Vector.js.xml deleted file mode 100644 index 47955c2ee91d91cf1570a645862df426ef845745..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Feature/Vector.js.xml +++ /dev/null @@ -1,552 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.87</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Vector.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -// TRASH THIS\n -OpenLayers.State = {\n - /** states */\n - UNKNOWN: \'Unknown\',\n - INSERT: \'Insert\',\n - UPDATE: \'Update\',\n - DELETE: \'Delete\'\n -};\n -\n -/**\n - * @requires OpenLayers/Feature.js\n - * @requires OpenLayers/Util.js\n - */\n -\n -/**\n - * Class: OpenLayers.Feature.Vector\n - * Vector features use the OpenLayers.Geometry classes as geometry description.\n - * They have an \'attributes\' property, which is the data object, and a \'style\'\n - * property, the default values of which are defined in the \n - * <OpenLayers.Feature.Vector.style> objects.\n - * \n - * Inherits from:\n - * - <OpenLayers.Feature>\n - */\n -OpenLayers.Feature.Vector = OpenLayers.Class(OpenLayers.Feature, {\n -\n - /** \n - * Property: fid \n - * {String} \n - */\n - fid: null,\n - \n - /** \n - * APIProperty: geometry \n - * {<OpenLayers.Geometry>} \n - */\n - geometry: null,\n -\n - /** \n - * APIProperty: attributes \n - * {Object} This object holds arbitrary, serializable properties that\n - * describe the feature.\n - */\n - attributes: null,\n -\n - /**\n - * Property: bounds\n - * {<OpenLayers.Bounds>} The box bounding that feature\'s geometry, that\n - * property can be set by an <OpenLayers.Format> object when\n - * deserializing the feature, so in most cases it represents an\n - * information set by the server. \n - */\n - bounds: null,\n -\n - /** \n - * Property: state \n - * {String} \n - */\n - state: null,\n - \n - /** \n - * APIProperty: style \n - * {Object} \n - */\n - style: null,\n -\n - /**\n - * APIProperty: url\n - * {String} If this property is set it will be taken into account by\n - * {<OpenLayers.HTTP>} when upadting or deleting the feature.\n - */\n - url: null,\n - \n - /**\n - * Property: renderIntent\n - * {String} rendering intent currently being used\n - */\n - renderIntent: "default",\n - \n - /**\n - * APIProperty: modified\n - * {Object} An object with the originals of the geometry and attributes of\n - * the feature, if they were changed. Currently this property is only read\n - * by <OpenLayers.Format.WFST.v1>, and written by\n - * <OpenLayers.Control.ModifyFeature>, which sets the geometry property.\n - * Applications can set the originals of modified attributes in the\n - * attributes property. Note that applications have to check if this\n - * object and the attributes property is already created before using it.\n - * After a change made with ModifyFeature, this object could look like\n - *\n - * (code)\n - * {\n - * geometry: >Object\n - * }\n - * (end)\n - *\n - * When an application has made changes to feature attributes, it could\n - * have set the attributes to something like this:\n - *\n - * (code)\n - * {\n - * attributes: {\n - * myAttribute: "original"\n - * }\n - * }\n - * (end)\n - *\n - * Note that <OpenLayers.Format.WFST.v1> only checks for truthy values in\n - * *modified.geometry* and the attribute names in *modified.attributes*,\n - * but it is recommended to set the original values (and not just true) as\n - * attribute value, so applications could use this information to undo\n - * changes.\n - */\n - modified: null,\n -\n - /** \n - * Constructor: OpenLayers.Feature.Vector\n - * Create a vector feature. \n - * \n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} The geometry that this feature\n - * represents.\n - * attributes - {Object} An optional object that will be mapped to the\n - * <attributes> property. \n - * style - {Object} An optional style object.\n - */\n - initialize: function(geometry, attributes, style) {\n - OpenLayers.Feature.prototype.initialize.apply(this,\n - [null, null, attributes]);\n - this.lonlat = null;\n - this.geometry = geometry ? geometry : null;\n - this.state = null;\n - this.attributes = {};\n - if (attributes) {\n - this.attributes = OpenLayers.Util.extend(this.attributes,\n - attributes);\n - }\n - this.style = style ? style : null; \n - },\n - \n - /** \n - * Method: destroy\n - * nullify references to prevent circular references and memory leaks\n - */\n - destroy: function() {\n - if (this.layer) {\n - this.layer.removeFeatures(this);\n - this.layer = null;\n - }\n - \n - this.geometry = null;\n - this.modified = null;\n - OpenLayers.Feature.prototype.destroy.apply(this, arguments);\n - },\n - \n - /**\n - * Method: clone\n - * Create a clone of this vector feature. Does not set any non-standard\n - * properties.\n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector>} An exact clone of this vector feature.\n - */\n - clone: function () {\n - return new OpenLayers.Feature.Vector(\n - this.geometry ? this.geometry.clone() : null,\n - this.attributes,\n - this.style);\n - },\n -\n - /**\n - * Method: onScreen\n - * Determine whether the feature is within the map viewport. This method\n - * tests for an intersection between the geometry and the viewport\n - * bounds. If a more effecient but less precise geometry bounds\n - * intersection is desired, call the method with the boundsOnly\n - * parameter true.\n - *\n - * Parameters:\n - * boundsOnly - {Boolean} Only test whether a feature\'s bounds intersects\n - * the viewport bounds. Default is false. If false, the feature\'s\n - * geometry must intersect the viewport for onScreen to return true.\n - * \n - * Returns:\n - * {Boolean} The feature is currently visible on screen (optionally\n - * based on its bounds if boundsOnly is true).\n - */\n - onScreen:function(boundsOnly) {\n - var onScreen = false;\n - if(this.layer && this.layer.map) {\n - var screenBounds = this.layer.map.getExtent();\n - if(boundsOnly) {\n - var featureBounds = this.geometry.getBounds();\n - onScreen = screenBounds.intersectsBounds(featureBounds);\n - } else {\n - var screenPoly = screenBounds.toGeometry();\n - onScreen = screenPoly.intersects(this.geometry);\n - }\n - } \n - return onScreen;\n - },\n -\n - /**\n - * Method: getVisibility\n - * Determine whether the feature is displayed or not. It may not displayed\n - * because:\n - * - its style display property is set to \'none\',\n - * - it doesn\'t belong to any layer,\n - * - the styleMap creates a symbolizer with display property set to \'none\'\n - * for it,\n - * - the layer which it belongs to is not visible.\n - * \n - * Returns:\n - * {Boolean} The feature is currently displayed.\n - */\n - getVisibility: function() {\n - return !(this.style && this.style.display == \'none\' ||\n - !this.layer ||\n - this.layer && this.layer.styleMap &&\n - this.layer.styleMap.createSymbolizer(this, this.renderIntent).display == \'none\' ||\n - this.layer && !this.layer.getVisibility());\n - },\n - \n - /**\n - * Method: createMarker\n - * HACK - we need to decide if all vector features should be able to\n - * create markers\n - * \n - * Returns:\n - * {<OpenLayers.Marker>} For now just returns null\n - */\n - createMarker: function() {\n - return null;\n - },\n -\n - /**\n - * Method: destroyMarker\n - * HACK - we need to decide if all vector features should be able to\n - * delete markers\n - * \n - * If user overrides the createMarker() function, s/he should be able\n - * to also specify an alternative function for destroying it\n - */\n - destroyMarker: function() {\n - // pass\n - },\n -\n - /**\n - * Method: createPopup\n - * HACK - we need to decide if all vector features should be able to\n - * create popups\n - * \n - * Returns:\n - * {<OpenLayers.Popup>} For now just returns null\n - */\n - createPopup: function() {\n - return null;\n - },\n -\n - /**\n - * Method: atPoint\n - * Determins whether the feature intersects with the specified location.\n - * \n - * Parameters: \n - * lonlat - {<OpenLayers.LonLat>|Object} OpenLayers.LonLat or an\n - * object with a \'lon\' and \'lat\' properties.\n - * toleranceLon - {float} Optional tolerance in Geometric Coords\n - * toleranceLat - {float} Optional tolerance in Geographic Coords\n - * \n - * Returns:\n - * {Boolean} Whether or not the feature is at the specified location\n - */\n - atPoint: function(lonlat, toleranceLon, toleranceLat) {\n - var atPoint = false;\n - if(this.geometry) {\n - atPoint = this.geometry.atPoint(lonlat, toleranceLon, \n - toleranceLat);\n - }\n - return atPoint;\n - },\n -\n - /**\n - * Method: destroyPopup\n - * HACK - we need to decide if all vector features should be able to\n - * delete popups\n - */\n - destroyPopup: function() {\n - // pass\n - },\n -\n - /**\n - * Method: move\n - * Moves the feature and redraws it at its new location\n - *\n - * Parameters:\n - * location - {<OpenLayers.LonLat> or <OpenLayers.Pixel>} the\n - * location to which to move the feature.\n - */\n - move: function(location) {\n -\n - if(!this.layer || !this.geometry.move){\n - //do nothing if no layer or immoveable geometry\n - return undefined;\n - }\n -\n - var pixel;\n - if (location.CLASS_NAME == "OpenLayers.LonLat") {\n - pixel = this.layer.getViewPortPxFromLonLat(location);\n - } else {\n - pixel = location;\n - }\n - \n - var lastPixel = this.layer.getViewPortPxFromLonLat(this.geometry.getBounds().getCenterLonLat());\n - var res = this.layer.map.getResolution();\n - this.geometry.move(res * (pixel.x - lastPixel.x),\n - res * (lastPixel.y - pixel.y));\n - this.layer.drawFeature(this);\n - return lastPixel;\n - },\n - \n - /**\n - * Method: toState\n - * Sets the new state\n - *\n - * Parameters:\n - * state - {String} \n - */\n - toState: function(state) {\n - if (state == OpenLayers.State.UPDATE) {\n - switch (this.state) {\n - case OpenLayers.State.UNKNOWN:\n - case OpenLayers.State.DELETE:\n - this.state = state;\n - break;\n - case OpenLayers.State.UPDATE:\n - case OpenLayers.State.INSERT:\n - break;\n - }\n - } else if (state == OpenLayers.State.INSERT) {\n - switch (this.state) {\n - case OpenLayers.State.UNKNOWN:\n - break;\n - default:\n - this.state = state;\n - break;\n - }\n - } else if (state == OpenLayers.State.DELETE) {\n - switch (this.state) {\n - case OpenLayers.State.INSERT:\n - // the feature should be destroyed\n - break;\n - case OpenLayers.State.DELETE:\n - break;\n - case OpenLayers.State.UNKNOWN:\n - case OpenLayers.State.UPDATE:\n - this.state = state;\n - break;\n - }\n - } else if (state == OpenLayers.State.UNKNOWN) {\n - this.state = state;\n - }\n - },\n - \n - CLASS_NAME: "OpenLayers.Feature.Vector"\n -});\n -\n -\n -/**\n - * Constant: OpenLayers.Feature.Vector.style\n - * OpenLayers features can have a number of style attributes. The \'default\' \n - * style will typically be used if no other style is specified. These\n - * styles correspond for the most part, to the styling properties defined\n - * by the SVG standard. \n - * Information on fill properties: http://www.w3.org/TR/SVG/painting.html#FillProperties\n - * Information on stroke properties: http://www.w3.org/TR/SVG/painting.html#StrokeProperties\n - *\n - * Symbolizer properties:\n - * fill - {Boolean} Set to false if no fill is desired.\n - * fillColor - {String} Hex fill color. Default is "#ee9900".\n - * fillOpacity - {Number} Fill opacity (0-1). Default is 0.4 \n - * stroke - {Boolean} Set to false if no stroke is desired.\n - * strokeColor - {String} Hex stroke color. Default is "#ee9900".\n - * strokeOpacity - {Number} Stroke opacity (0-1). Default is 1.\n - * strokeWidth - {Number} Pixel stroke width. Default is 1.\n - * strokeLinecap - {String} Stroke cap type. Default is "round". [butt | round | square]\n - * strokeDashstyle - {String} Stroke dash style. Default is "solid". [dot | dash | dashdot | longdash | longdashdot | solid]\n - * graphic - {Boolean} Set to false if no graphic is desired.\n - * pointRadius - {Number} Pixel point radius. Default is 6.\n - * pointerEvents - {String} Default is "visiblePainted".\n - * cursor - {String} Default is "".\n - * externalGraphic - {String} Url to an external graphic that will be used for rendering points.\n - * graphicWidth - {Number} Pixel width for sizing an external graphic.\n - * graphicHeight - {Number} Pixel height for sizing an external graphic.\n - * graphicOpacity - {Number} Opacity (0-1) for an external graphic.\n - * graphicXOffset - {Number} Pixel offset along the positive x axis for displacing an external graphic.\n - * graphicYOffset - {Number} Pixel offset along the positive y axis for displacing an external graphic.\n - * rotation - {Number} For point symbolizers, this is the rotation of a graphic in the clockwise direction about its center point (or any point off center as specified by graphicXOffset and graphicYOffset).\n - * graphicZIndex - {Number} The integer z-index value to use in rendering.\n - * graphicName - {String} Named graphic to use when rendering points. Supported values include "circle" (default),\n - * "square", "star", "x", "cross", "triangle".\n - * graphicTitle - {String} Tooltip for an external graphic.\n - * backgroundGraphic - {String} Url to a graphic to be used as the background under an externalGraphic.\n - * backgroundGraphicZIndex - {Number} The integer z-index value to use in rendering the background graphic.\n - * backgroundXOffset - {Number} The x offset (in pixels) for the background graphic.\n - * backgroundYOffset - {Number} The y offset (in pixels) for the background graphic.\n - * backgroundHeight - {Number} The height of the background graphic. If not provided, the graphicHeight will be used.\n - * backgroundWidth - {Number} The width of the background width. If not provided, the graphicWidth will be used.\n - * label - {String} The text for an optional label. For browsers that use the canvas renderer, this requires either\n - * fillText or mozDrawText to be available.\n - * labelAlign - {String} Label alignment. This specifies the insertion point relative to the text. It is a string\n - * composed of two characters. The first character is for the horizontal alignment, the second for the vertical\n - * alignment. Valid values for horizontal alignment: "l"=left, "c"=center, "r"=right. Valid values for vertical\n - * alignment: "t"=top, "m"=middle, "b"=bottom. Example values: "lt", "cm", "rb". Default is "cm".\n - * labelXOffset - {Number} Pixel offset along the positive x axis for displacing the label. Not supported by the canvas renderer.\n - * labelYOffset - {Number} Pixel offset along the positive y axis for displacing the label. Not supported by the canvas renderer.\n - * labelSelect - {Boolean} If set to true, labels will be selectable using SelectFeature or similar controls.\n - * Default is false.\n - * labelOutlineColor - {String} The color of the label outline. Default is \'white\'. Only supported by the canvas & SVG renderers.\n - * labelOutlineWidth - {Number} The width of the label outline. Default is 3, set to 0 or null to disable. Only supported by the canvas & SVG renderers.\n - * fontColor - {String} The font color for the label, to be provided like CSS.\n - * fontOpacity - {Number} Opacity (0-1) for the label\n - * fontFamily - {String} The font family for the label, to be provided like in CSS.\n - * fontSize - {String} The font size for the label, to be provided like in CSS.\n - * fontStyle - {String} The font style for the label, to be provided like in CSS.\n - * fontWeight - {String} The font weight for the label, to be provided like in CSS.\n - * display - {String} Symbolizers will have no effect if display is set to "none". All other values have no effect.\n - */ \n -OpenLayers.Feature.Vector.style = {\n - \'default\': {\n - fillColor: "#ee9900",\n - fillOpacity: 0.4, \n - hoverFillColor: "white",\n - hoverFillOpacity: 0.8,\n - strokeColor: "#ee9900",\n - strokeOpacity: 1,\n - strokeWidth: 1,\n - strokeLinecap: "round",\n - strokeDashstyle: "solid",\n - hoverStrokeColor: "red",\n - hoverStrokeOpacity: 1,\n - hoverStrokeWidth: 0.2,\n - pointRadius: 6,\n - hoverPointRadius: 1,\n - hoverPointUnit: "%",\n - pointerEvents: "visiblePainted",\n - cursor: "inherit",\n - fontColor: "#000000",\n - labelAlign: "cm",\n - labelOutlineColor: "white",\n - labelOutlineWidth: 3\n - },\n - \'select\': {\n - fillColor: "blue",\n - fillOpacity: 0.4, \n - hoverFillColor: "white",\n - hoverFillOpacity: 0.8,\n - strokeColor: "blue",\n - strokeOpacity: 1,\n - strokeWidth: 2,\n - strokeLinecap: "round",\n - strokeDashstyle: "solid",\n - hoverStrokeColor: "red",\n - hoverStrokeOpacity: 1,\n - hoverStrokeWidth: 0.2,\n - pointRadius: 6,\n - hoverPointRadius: 1,\n - hoverPointUnit: "%",\n - pointerEvents: "visiblePainted",\n - cursor: "pointer",\n - fontColor: "#000000",\n - labelAlign: "cm",\n - labelOutlineColor: "white",\n - labelOutlineWidth: 3\n -\n - },\n - \'temporary\': {\n - fillColor: "#66cccc",\n - fillOpacity: 0.2, \n - hoverFillColor: "white",\n - hoverFillOpacity: 0.8,\n - strokeColor: "#66cccc",\n - strokeOpacity: 1,\n - strokeLinecap: "round",\n - strokeWidth: 2,\n - strokeDashstyle: "solid",\n - hoverStrokeColor: "red",\n - hoverStrokeOpacity: 1,\n - hoverStrokeWidth: 0.2,\n - pointRadius: 6,\n - hoverPointRadius: 1,\n - hoverPointUnit: "%",\n - pointerEvents: "visiblePainted",\n - cursor: "inherit",\n - fontColor: "#000000",\n - labelAlign: "cm",\n - labelOutlineColor: "white",\n - labelOutlineWidth: 3\n -\n - },\n - \'delete\': {\n - display: "none"\n - }\n -}; \n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>18603</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter.js.xml deleted file mode 100644 index 0a242c16b9445f3f5d4ce2369b14891b0070af07..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter.js.xml +++ /dev/null @@ -1,131 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Filter.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Util.js\n - * @requires OpenLayers/Style.js\n - */\n -\n -/**\n - * Class: OpenLayers.Filter\n - * This class represents an OGC Filter.\n - */\n -OpenLayers.Filter = OpenLayers.Class({\n - \n - /** \n - * Constructor: OpenLayers.Filter\n - * This class represents a generic filter.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - * \n - * Returns:\n - * {<OpenLayers.Filter>}\n - */\n - initialize: function(options) {\n - OpenLayers.Util.extend(this, options);\n - },\n -\n - /** \n - * APIMethod: destroy\n - * Remove reference to anything added.\n - */\n - destroy: function() {\n - },\n -\n - /**\n - * APIMethod: evaluate\n - * Evaluates this filter in a specific context. Instances or subclasses\n - * are supposed to override this method.\n - * \n - * Parameters:\n - * context - {Object} Context to use in evaluating the filter. If a vector\n - * feature is provided, the feature.attributes will be used as context.\n - * \n - * Returns:\n - * {Boolean} The filter applies.\n - */\n - evaluate: function(context) {\n - return true;\n - },\n - \n - /**\n - * APIMethod: clone\n - * Clones this filter. Should be implemented by subclasses.\n - * \n - * Returns:\n - * {<OpenLayers.Filter>} Clone of this filter.\n - */\n - clone: function() {\n - return null;\n - },\n - \n - /**\n - * APIMethod: toString\n - *\n - * Returns:\n - * {String} Include <OpenLayers.Format.CQL> in your build to get a CQL\n - * representation of the filter returned. Otherwise "[Object object]"\n - * will be returned.\n - */\n - toString: function() {\n - var string;\n - if (OpenLayers.Format && OpenLayers.Format.CQL) {\n - string = OpenLayers.Format.CQL.prototype.write(this);\n - } else {\n - string = Object.prototype.toString.call(this);\n - }\n - return string;\n - },\n - \n - CLASS_NAME: "OpenLayers.Filter"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2279</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter.xml deleted file mode 100644 index 664bd9c7a99d7b399a65045938fd2db50a458b93..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Filter</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Filter</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/Comparison.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/Comparison.js.xml deleted file mode 100644 index 2112b35b685d941e0bc09842b196b6e2c0b7be36..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/Comparison.js.xml +++ /dev/null @@ -1,306 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Comparison.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Filter.js\n - */\n -\n -/**\n - * Class: OpenLayers.Filter.Comparison\n - * This class represents a comparison filter.\n - * \n - * Inherits from:\n - * - <OpenLayers.Filter>\n - */\n -OpenLayers.Filter.Comparison = OpenLayers.Class(OpenLayers.Filter, {\n -\n - /**\n - * APIProperty: type\n - * {String} type: type of the comparison. This is one of\n - * - OpenLayers.Filter.Comparison.EQUAL_TO = "==";\n - * - OpenLayers.Filter.Comparison.NOT_EQUAL_TO = "!=";\n - * - OpenLayers.Filter.Comparison.LESS_THAN = "<";\n - * - OpenLayers.Filter.Comparison.GREATER_THAN = ">";\n - * - OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO = "<=";\n - * - OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO = ">=";\n - * - OpenLayers.Filter.Comparison.BETWEEN = "..";\n - * - OpenLayers.Filter.Comparison.LIKE = "~"; \n - */\n - type: null,\n - \n - /**\n - * APIProperty: property\n - * {String}\n - * name of the context property to compare\n - */\n - property: null,\n - \n - /**\n - * APIProperty: value\n - * {Number} or {String}\n - * comparison value for binary comparisons. In the case of a String, this\n - * can be a combination of text and propertyNames in the form\n - * "literal ${propertyName}"\n - */\n - value: null,\n - \n - /**\n - * Property: matchCase\n - * {Boolean} Force case sensitive searches for EQUAL_TO and NOT_EQUAL_TO\n - * comparisons. The Filter Encoding 1.1 specification added a matchCase\n - * attribute to ogc:PropertyIsEqualTo and ogc:PropertyIsNotEqualTo\n - * elements. This property will be serialized with those elements only\n - * if using the v1.1.0 filter format. However, when evaluating filters\n - * here, the matchCase property will always be respected (for EQUAL_TO\n - * and NOT_EQUAL_TO). Default is true. \n - */\n - matchCase: true,\n - \n - /**\n - * APIProperty: lowerBoundary\n - * {Number} or {String}\n - * lower boundary for between comparisons. In the case of a String, this\n - * can be a combination of text and propertyNames in the form\n - * "literal ${propertyName}"\n - */\n - lowerBoundary: null,\n - \n - /**\n - * APIProperty: upperBoundary\n - * {Number} or {String}\n - * upper boundary for between comparisons. In the case of a String, this\n - * can be a combination of text and propertyNames in the form\n - * "literal ${propertyName}"\n - */\n - upperBoundary: null,\n -\n - /** \n - * Constructor: OpenLayers.Filter.Comparison\n - * Creates a comparison rule.\n - *\n - * Parameters:\n - * options - {Object} An optional object with properties to set on the\n - * rule\n - * \n - * Returns:\n - * {<OpenLayers.Filter.Comparison>}\n - */\n - initialize: function(options) {\n - OpenLayers.Filter.prototype.initialize.apply(this, [options]);\n - // since matchCase on PropertyIsLike is not schema compliant, we only\n - // want to use this if explicitly asked for\n - if (this.type === OpenLayers.Filter.Comparison.LIKE \n - && options.matchCase === undefined) {\n - this.matchCase = null;\n - }\n - },\n -\n - /**\n - * APIMethod: evaluate\n - * Evaluates this filter in a specific context.\n - * \n - * Parameters:\n - * context - {Object} Context to use in evaluating the filter. If a vector\n - * feature is provided, the feature.attributes will be used as context.\n - * \n - * Returns:\n - * {Boolean} The filter applies.\n - */\n - evaluate: function(context) {\n - if (context instanceof OpenLayers.Feature.Vector) {\n - context = context.attributes;\n - }\n - var result = false;\n - var got = context[this.property];\n - var exp;\n - switch(this.type) {\n - case OpenLayers.Filter.Comparison.EQUAL_TO:\n - exp = this.value;\n - if(!this.matchCase &&\n - typeof got == "string" && typeof exp == "string") {\n - result = (got.toUpperCase() == exp.toUpperCase());\n - } else {\n - result = (got == exp);\n - }\n - break;\n - case OpenLayers.Filter.Comparison.NOT_EQUAL_TO:\n - exp = this.value;\n - if(!this.matchCase &&\n - typeof got == "string" && typeof exp == "string") {\n - result = (got.toUpperCase() != exp.toUpperCase());\n - } else {\n - result = (got != exp);\n - }\n - break;\n - case OpenLayers.Filter.Comparison.LESS_THAN:\n - result = got < this.value;\n - break;\n - case OpenLayers.Filter.Comparison.GREATER_THAN:\n - result = got > this.value;\n - break;\n - case OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO:\n - result = got <= this.value;\n - break;\n - case OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO:\n - result = got >= this.value;\n - break;\n - case OpenLayers.Filter.Comparison.BETWEEN:\n - result = (got >= this.lowerBoundary) &&\n - (got <= this.upperBoundary);\n - break;\n - case OpenLayers.Filter.Comparison.LIKE:\n - var regexp = new RegExp(this.value, "gi");\n - result = regexp.test(got);\n - break;\n - }\n - return result;\n - },\n - \n - /**\n - * APIMethod: value2regex\n - * Converts the value of this rule into a regular expression string,\n - * according to the wildcard characters specified. This method has to\n - * be called after instantiation of this class, if the value is not a\n - * regular expression already.\n - * \n - * Parameters:\n - * wildCard - {Char} wildcard character in the above value, default\n - * is "*"\n - * singleChar - {Char} single-character wildcard in the above value\n - * default is "."\n - * escapeChar - {Char} escape character in the above value, default is\n - * "!"\n - * \n - * Returns:\n - * {String} regular expression string\n - */\n - value2regex: function(wildCard, singleChar, escapeChar) {\n - if (wildCard == ".") {\n - throw new Error("\'.\' is an unsupported wildCard character for " +\n - "OpenLayers.Filter.Comparison");\n - }\n - \n -\n - // set UMN MapServer defaults for unspecified parameters\n - wildCard = wildCard ? wildCard : "*";\n - singleChar = singleChar ? singleChar : ".";\n - escapeChar = escapeChar ? escapeChar : "!";\n - \n - this.value = this.value.replace(\n - new RegExp("\\\\"+escapeChar+"(.|$)", "g"), "\\\\$1");\n - this.value = this.value.replace(\n - new RegExp("\\\\"+singleChar, "g"), ".");\n - this.value = this.value.replace(\n - new RegExp("\\\\"+wildCard, "g"), ".*");\n - this.value = this.value.replace(\n - new RegExp("\\\\\\\\.\\\\*", "g"), "\\\\"+wildCard);\n - this.value = this.value.replace(\n - new RegExp("\\\\\\\\\\\\.", "g"), "\\\\"+singleChar);\n - \n - return this.value;\n - },\n - \n - /**\n - * Method: regex2value\n - * Convert the value of this rule from a regular expression string into an\n - * ogc literal string using a wildCard of *, a singleChar of ., and an\n - * escape of !. Leaves the <value> property unmodified.\n - * \n - * Returns:\n - * {String} A string value.\n - */\n - regex2value: function() {\n - \n - var value = this.value;\n - \n - // replace ! with !!\n - value = value.replace(/!/g, "!!");\n -\n - // replace \\. with !. (watching out for \\\\.)\n - value = value.replace(/(\\\\)?\\\\\\./g, function($0, $1) {\n - return $1 ? $0 : "!.";\n - });\n - \n - // replace \\* with #* (watching out for \\\\*)\n - value = value.replace(/(\\\\)?\\\\\\*/g, function($0, $1) {\n - return $1 ? $0 : "!*";\n - });\n - \n - // replace \\\\ with \\\n - value = value.replace(/\\\\\\\\/g, "\\\\");\n -\n - // convert .* to * (the sequence #.* is not allowed)\n - value = value.replace(/\\.\\*/g, "*");\n - \n - return value;\n - },\n - \n - /**\n - * APIMethod: clone\n - * Clones this filter.\n - * \n - * Returns:\n - * {<OpenLayers.Filter.Comparison>} Clone of this filter.\n - */\n - clone: function() {\n - return OpenLayers.Util.extend(new OpenLayers.Filter.Comparison(), this);\n - },\n - \n - CLASS_NAME: "OpenLayers.Filter.Comparison"\n -});\n -\n -\n -OpenLayers.Filter.Comparison.EQUAL_TO = "==";\n -OpenLayers.Filter.Comparison.NOT_EQUAL_TO = "!=";\n -OpenLayers.Filter.Comparison.LESS_THAN = "<";\n -OpenLayers.Filter.Comparison.GREATER_THAN = ">";\n -OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO = "<=";\n -OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO = ">=";\n -OpenLayers.Filter.Comparison.BETWEEN = "..";\n -OpenLayers.Filter.Comparison.LIKE = "~";\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>9330</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/FeatureId.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/FeatureId.js.xml deleted file mode 100644 index 141666749d2d32969f9f5140e47c099cfa5a5611..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/FeatureId.js.xml +++ /dev/null @@ -1,131 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>FeatureId.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Filter.js\n - */\n -\n -/**\n - * Class: OpenLayers.Filter.FeatureId\n - * This class represents a ogc:FeatureId Filter, as being used for rule-based SLD\n - * styling\n - * \n - * Inherits from:\n - * - <OpenLayers.Filter>\n - */\n -OpenLayers.Filter.FeatureId = OpenLayers.Class(OpenLayers.Filter, {\n -\n - /** \n - * APIProperty: fids\n - * {Array(String)} Feature Ids to evaluate this rule against. \n - * To be passed inside the params object.\n - */\n - fids: null,\n - \n - /** \n - * Property: type\n - * {String} Type to identify this filter.\n - */\n - type: "FID",\n - \n - /** \n - * Constructor: OpenLayers.Filter.FeatureId\n - * Creates an ogc:FeatureId rule.\n - *\n - * Parameters:\n - * options - {Object} An optional object with properties to set on the\n - * rule\n - * \n - * Returns:\n - * {<OpenLayers.Filter.FeatureId>}\n - */\n - initialize: function(options) {\n - this.fids = [];\n - OpenLayers.Filter.prototype.initialize.apply(this, [options]);\n - },\n -\n - /**\n - * APIMethod: evaluate\n - * evaluates this rule for a specific feature\n - * \n - * Parameters:\n - * feature - {<OpenLayers.Feature>} feature to apply the rule to.\n - * For vector features, the check is run against the fid,\n - * for plain features against the id.\n - * \n - * Returns:\n - * {Boolean} true if the rule applies, false if it does not\n - */\n - evaluate: function(feature) {\n - for (var i=0, len=this.fids.length; i<len; i++) {\n - var fid = feature.fid || feature.id;\n - if (fid == this.fids[i]) {\n - return true;\n - }\n - }\n - return false;\n - },\n - \n - /**\n - * APIMethod: clone\n - * Clones this filter.\n - * \n - * Returns:\n - * {<OpenLayers.Filter.FeatureId>} Clone of this filter.\n - */\n - clone: function() {\n - var filter = new OpenLayers.Filter.FeatureId();\n - OpenLayers.Util.extend(filter, this);\n - filter.fids = this.fids.slice();\n - return filter;\n - },\n - \n - CLASS_NAME: "OpenLayers.Filter.FeatureId"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2341</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/Function.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/Function.js.xml deleted file mode 100644 index b460a9b1e7c5498817d63e1aa51706032d371627..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/Function.js.xml +++ /dev/null @@ -1,93 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Function.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Filter.js\n - */\n -\n -/**\n - * Class: OpenLayers.Filter.Function\n - * This class represents a filter function.\n - * We are using this class for creation of complex \n - * filters that can contain filter functions as values.\n - * Nesting function as other functions parameter is supported.\n - * \n - * Inherits from:\n - * - <OpenLayers.Filter>\n - */\n -OpenLayers.Filter.Function = OpenLayers.Class(OpenLayers.Filter, {\n -\n - /**\n - * APIProperty: name\n - * {String} Name of the function.\n - */\n - name: null,\n - \n - /**\n - * APIProperty: params\n - * {Array(<OpenLayers.Filter.Function> || String || Number)} Function parameters\n - * For now support only other Functions, String or Number\n - */\n - params: null, \n - \n - /** \n - * Constructor: OpenLayers.Filter.Function\n - * Creates a filter function.\n - *\n - * Parameters:\n - * options - {Object} An optional object with properties to set on the\n - * function.\n - * \n - * Returns:\n - * {<OpenLayers.Filter.Function>}\n - */\n -\n - CLASS_NAME: "OpenLayers.Filter.Function"\n -});\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1320</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/Logical.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/Logical.js.xml deleted file mode 100644 index ddbd73a6c25884433bc162567035b0f0bfed2639..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/Logical.js.xml +++ /dev/null @@ -1,165 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Logical.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Filter.js\n - */\n -\n -/**\n - * Class: OpenLayers.Filter.Logical\n - * This class represents ogc:And, ogc:Or and ogc:Not rules.\n - * \n - * Inherits from:\n - * - <OpenLayers.Filter>\n - */\n -OpenLayers.Filter.Logical = OpenLayers.Class(OpenLayers.Filter, {\n -\n - /**\n - * APIProperty: filters\n - * {Array(<OpenLayers.Filter>)} Child filters for this filter.\n - */\n - filters: null, \n - \n - /**\n - * APIProperty: type\n - * {String} type of logical operator. Available types are:\n - * - OpenLayers.Filter.Logical.AND = "&&";\n - * - OpenLayers.Filter.Logical.OR = "||";\n - * - OpenLayers.Filter.Logical.NOT = "!";\n - */\n - type: null,\n -\n - /** \n - * Constructor: OpenLayers.Filter.Logical\n - * Creates a logical filter (And, Or, Not).\n - *\n - * Parameters:\n - * options - {Object} An optional object with properties to set on the\n - * filter.\n - * \n - * Returns:\n - * {<OpenLayers.Filter.Logical>}\n - */\n - initialize: function(options) {\n - this.filters = [];\n - OpenLayers.Filter.prototype.initialize.apply(this, [options]);\n - },\n - \n - /** \n - * APIMethod: destroy\n - * Remove reference to child filters.\n - */\n - destroy: function() {\n - this.filters = null;\n - OpenLayers.Filter.prototype.destroy.apply(this);\n - },\n -\n - /**\n - * APIMethod: evaluate\n - * Evaluates this filter in a specific context.\n - * \n - * Parameters:\n - * context - {Object} Context to use in evaluating the filter. A vector\n - * feature may also be provided to evaluate feature attributes in \n - * comparison filters or geometries in spatial filters.\n - * \n - * Returns:\n - * {Boolean} The filter applies.\n - */\n - evaluate: function(context) {\n - var i, len;\n - switch(this.type) {\n - case OpenLayers.Filter.Logical.AND:\n - for (i=0, len=this.filters.length; i<len; i++) {\n - if (this.filters[i].evaluate(context) == false) {\n - return false;\n - }\n - }\n - return true;\n - \n - case OpenLayers.Filter.Logical.OR:\n - for (i=0, len=this.filters.length; i<len; i++) {\n - if (this.filters[i].evaluate(context) == true) {\n - return true;\n - }\n - }\n - return false;\n - \n - case OpenLayers.Filter.Logical.NOT:\n - return (!this.filters[0].evaluate(context));\n - }\n - return undefined;\n - },\n - \n - /**\n - * APIMethod: clone\n - * Clones this filter.\n - * \n - * Returns:\n - * {<OpenLayers.Filter.Logical>} Clone of this filter.\n - */\n - clone: function() {\n - var filters = []; \n - for(var i=0, len=this.filters.length; i<len; ++i) {\n - filters.push(this.filters[i].clone());\n - }\n - return new OpenLayers.Filter.Logical({\n - type: this.type,\n - filters: filters\n - });\n - },\n - \n - CLASS_NAME: "OpenLayers.Filter.Logical"\n -});\n -\n -\n -OpenLayers.Filter.Logical.AND = "&&";\n -OpenLayers.Filter.Logical.OR = "||";\n -OpenLayers.Filter.Logical.NOT = "!";\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3424</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/Spatial.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/Spatial.js.xml deleted file mode 100644 index 90ed251285e5469a1051b50add219e2c9ae3fc74..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Filter/Spatial.js.xml +++ /dev/null @@ -1,166 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Spatial.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Filter.js\n - */\n -\n -/**\n - * Class: OpenLayers.Filter.Spatial\n - * This class represents a spatial filter.\n - * Currently implemented: BBOX, DWithin and Intersects\n - * \n - * Inherits from:\n - * - <OpenLayers.Filter>\n - */\n -OpenLayers.Filter.Spatial = OpenLayers.Class(OpenLayers.Filter, {\n -\n - /**\n - * APIProperty: type\n - * {String} Type of spatial filter.\n - *\n - * The type should be one of:\n - * - OpenLayers.Filter.Spatial.BBOX\n - * - OpenLayers.Filter.Spatial.INTERSECTS\n - * - OpenLayers.Filter.Spatial.DWITHIN\n - * - OpenLayers.Filter.Spatial.WITHIN\n - * - OpenLayers.Filter.Spatial.CONTAINS\n - */\n - type: null,\n - \n - /**\n - * APIProperty: property\n - * {String} Name of the context property to compare.\n - */\n - property: null,\n - \n - /**\n - * APIProperty: value\n - * {<OpenLayers.Bounds> || <OpenLayers.Geometry>} The bounds or geometry\n - * to be used by the filter. Use bounds for BBOX filters and geometry\n - * for INTERSECTS or DWITHIN filters.\n - */\n - value: null,\n -\n - /**\n - * APIProperty: distance\n - * {Number} The distance to use in a DWithin spatial filter.\n - */\n - distance: null,\n -\n - /**\n - * APIProperty: distanceUnits\n - * {String} The units to use for the distance, e.g. \'m\'.\n - */\n - distanceUnits: null,\n - \n - /** \n - * Constructor: OpenLayers.Filter.Spatial\n - * Creates a spatial filter.\n - *\n - * Parameters:\n - * options - {Object} An optional object with properties to set on the\n - * filter.\n - * \n - * Returns:\n - * {<OpenLayers.Filter.Spatial>}\n - */\n -\n - /**\n - * Method: evaluate\n - * Evaluates this filter for a specific feature.\n - * \n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} feature to apply the filter to.\n - * \n - * Returns:\n - * {Boolean} The feature meets filter criteria.\n - */\n - evaluate: function(feature) {\n - var intersect = false;\n - switch(this.type) {\n - case OpenLayers.Filter.Spatial.BBOX:\n - case OpenLayers.Filter.Spatial.INTERSECTS:\n - if(feature.geometry) {\n - var geom = this.value;\n - if(this.value.CLASS_NAME == "OpenLayers.Bounds") {\n - geom = this.value.toGeometry();\n - }\n - if(feature.geometry.intersects(geom)) {\n - intersect = true;\n - }\n - }\n - break;\n - default:\n - throw new Error(\'evaluate is not implemented for this filter type.\');\n - }\n - return intersect;\n - },\n -\n - /**\n - * APIMethod: clone\n - * Clones this filter.\n - * \n - * Returns:\n - * {<OpenLayers.Filter.Spatial>} Clone of this filter.\n - */\n - clone: function() {\n - var options = OpenLayers.Util.applyDefaults({\n - value: this.value && this.value.clone && this.value.clone()\n - }, this);\n - return new OpenLayers.Filter.Spatial(options);\n - },\n - CLASS_NAME: "OpenLayers.Filter.Spatial"\n -});\n -\n -OpenLayers.Filter.Spatial.BBOX = "BBOX";\n -OpenLayers.Filter.Spatial.INTERSECTS = "INTERSECTS";\n -OpenLayers.Filter.Spatial.DWITHIN = "DWITHIN";\n -OpenLayers.Filter.Spatial.WITHIN = "WITHIN";\n -OpenLayers.Filter.Spatial.CONTAINS = "CONTAINS";\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3523</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format.js.xml deleted file mode 100644 index cfdc02d30c766fe56d8c18ed33d818686fb284c8..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format.js.xml +++ /dev/null @@ -1,167 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Format.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Util.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format\n - * Base class for format reading/writing a variety of formats. Subclasses\n - * of OpenLayers.Format are expected to have read and write methods.\n - */\n -OpenLayers.Format = OpenLayers.Class({\n - \n - /**\n - * Property: options\n - * {Object} A reference to options passed to the constructor.\n - */\n - options: null,\n - \n - /**\n - * APIProperty: externalProjection\n - * {<OpenLayers.Projection>} When passed a externalProjection and\n - * internalProjection, the format will reproject the geometries it\n - * reads or writes. The externalProjection is the projection used by\n - * the content which is passed into read or which comes out of write.\n - * In order to reproject, a projection transformation function for the\n - * specified projections must be available. This support may be \n - * provided via proj4js or via a custom transformation function. See\n - * {<OpenLayers.Projection.addTransform>} for more information on\n - * custom transformations.\n - */\n - externalProjection: null,\n -\n - /**\n - * APIProperty: internalProjection\n - * {<OpenLayers.Projection>} When passed a externalProjection and\n - * internalProjection, the format will reproject the geometries it\n - * reads or writes. The internalProjection is the projection used by\n - * the geometries which are returned by read or which are passed into\n - * write. In order to reproject, a projection transformation function\n - * for the specified projections must be available. This support may be\n - * provided via proj4js or via a custom transformation function. See\n - * {<OpenLayers.Projection.addTransform>} for more information on\n - * custom transformations.\n - */\n - internalProjection: null,\n -\n - /**\n - * APIProperty: data\n - * {Object} When <keepData> is true, this is the parsed string sent to\n - * <read>.\n - */\n - data: null,\n -\n - /**\n - * APIProperty: keepData\n - * {Object} Maintain a reference (<data>) to the most recently read data.\n - * Default is false.\n - */\n - keepData: false,\n -\n - /**\n - * Constructor: OpenLayers.Format\n - * Instances of this class are not useful. See one of the subclasses.\n - *\n - * Parameters:\n - * options - {Object} An optional object with properties to set on the\n - * format\n - *\n - * Valid options:\n - * keepData - {Boolean} If true, upon <read>, the data property will be\n - * set to the parsed object (e.g. the json or xml object).\n - *\n - * Returns:\n - * An instance of OpenLayers.Format\n - */\n - initialize: function(options) {\n - OpenLayers.Util.extend(this, options);\n - this.options = options;\n - },\n - \n - /**\n - * APIMethod: destroy\n - * Clean up.\n - */\n - destroy: function() {\n - },\n -\n - /**\n - * Method: read\n - * Read data from a string, and return an object whose type depends on the\n - * subclass. \n - * \n - * Parameters:\n - * data - {string} Data to read/parse.\n - *\n - * Returns:\n - * Depends on the subclass\n - */\n - read: function(data) {\n - throw new Error(\'Read not implemented.\');\n - },\n - \n - /**\n - * Method: write\n - * Accept an object, and return a string. \n - *\n - * Parameters:\n - * object - {Object} Object to be serialized\n - *\n - * Returns:\n - * {String} A string representation of the object.\n - */\n - write: function(object) {\n - throw new Error(\'Write not implemented.\');\n - },\n -\n - CLASS_NAME: "OpenLayers.Format"\n -}); \n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3904</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format.xml deleted file mode 100644 index 172f6b33fe405c28d90cb1d6bdff9750677269b3..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Format</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/ArcXML.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/ArcXML.js.xml deleted file mode 100644 index 8a7b0932b19b9d7f5e09573574033ebe754176b2..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/ArcXML.js.xml +++ /dev/null @@ -1,1072 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ArcXML.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Geometry/Polygon.js\n - * @requires OpenLayers/Geometry/Point.js\n - * @requires OpenLayers/Geometry/MultiPolygon.js\n - * @requires OpenLayers/Geometry/LinearRing.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.ArcXML\n - * Read/Wite ArcXML. Create a new instance with the <OpenLayers.Format.ArcXML>\n - * constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.ArcXML = OpenLayers.Class(OpenLayers.Format.XML, {\n -\n - /**\n - * Property: fontStyleKeys\n - * {Array} List of keys used in font styling.\n - */\n - fontStyleKeys: [\n - \'antialiasing\', \'blockout\', \'font\', \'fontcolor\',\'fontsize\', \'fontstyle\',\n - \'glowing\', \'interval\', \'outline\', \'printmode\', \'shadow\', \'transparency\'\n - ],\n -\n - /**\n - * Property: request\n - * A get_image request destined for an ArcIMS server.\n - */\n - request: null,\n - \n - /**\n - * Property: response\n - * A parsed response from an ArcIMS server.\n - */\n - response: null,\n -\n - /**\n - * Constructor: OpenLayers.Format.ArcXML\n - * Create a new parser/writer for ArcXML. Create an instance of this class\n - * to begin authoring a request to an ArcIMS service. This is used\n - * primarily by the ArcIMS layer, but could be used to do other wild\n - * stuff, like geocoding.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - this.request = new OpenLayers.Format.ArcXML.Request();\n - this.response = new OpenLayers.Format.ArcXML.Response();\n -\n - if (options) {\n - if (options.requesttype == "feature") {\n - this.request.get_image = null;\n - \n - var qry = this.request.get_feature.query;\n - this.addCoordSys(qry.featurecoordsys, options.featureCoordSys);\n - this.addCoordSys(qry.filtercoordsys, options.filterCoordSys);\n - \n - if (options.polygon) {\n - qry.isspatial = true;\n - qry.spatialfilter.polygon = options.polygon;\n - } else if (options.envelope) {\n - qry.isspatial = true;\n - qry.spatialfilter.envelope = {minx:0, miny:0, maxx:0, maxy:0};\n - this.parseEnvelope(qry.spatialfilter.envelope, options.envelope);\n - }\n - } else if (options.requesttype == "image") {\n - this.request.get_feature = null;\n - \n - var props = this.request.get_image.properties;\n - this.parseEnvelope(props.envelope, options.envelope);\n - \n - this.addLayers(props.layerlist, options.layers);\n - this.addImageSize(props.imagesize, options.tileSize);\n - this.addCoordSys(props.featurecoordsys, options.featureCoordSys);\n - this.addCoordSys(props.filtercoordsys, options.filterCoordSys);\n - } else {\n - // if an arcxml object is being created with no request type, it is\n - // probably going to consume a response, so do not throw an error if\n - // the requesttype is not defined\n - this.request = null;\n - }\n - }\n - \n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - },\n - \n - /**\n - * Method: parseEnvelope\n - * Parse an array of coordinates into an ArcXML envelope structure.\n - *\n - * Parameters:\n - * env - {Object} An envelope object that will contain the parsed coordinates.\n - * arr - {Array(double)} An array of coordinates in the order: [ minx, miny, maxx, maxy ]\n - */\n - parseEnvelope: function(env, arr) {\n - if (arr && arr.length == 4) { \n - env.minx = arr[0];\n - env.miny = arr[1];\n - env.maxx = arr[2];\n - env.maxy = arr[3];\n - }\n - },\n - \n - /** \n - * Method: addLayers\n - * Add a collection of layers to another collection of layers. Each layer in the list is tuple of\n - * { id, visible }. These layer collections represent the \n - * /ARCXML/REQUEST/get_image/PROPERTIES/LAYERLIST/LAYERDEF items in ArcXML\n - *\n - * TODO: Add support for dynamic layer rendering.\n - *\n - * Parameters:\n - * ll - {Array({id,visible})} A list of layer definitions.\n - * lyrs - {Array({id,visible})} A list of layer definitions.\n - */\n - addLayers: function(ll, lyrs) {\n - for(var lind = 0, len=lyrs.length; lind < len; lind++) {\n - ll.push(lyrs[lind]);\n - }\n - },\n - \n - /**\n - * Method: addImageSize\n - * Set the size of the requested image.\n - *\n - * Parameters:\n - * imsize - {Object} An ArcXML imagesize object.\n - * olsize - {<OpenLayers.Size>} The image size to set.\n - */\n - addImageSize: function(imsize, olsize) {\n - if (olsize !== null) {\n - imsize.width = olsize.w;\n - imsize.height = olsize.h;\n - imsize.printwidth = olsize.w;\n - imsize.printheight = olsize.h;\n - }\n - },\n -\n - /**\n - * Method: addCoordSys\n - * Add the coordinate system information to an object. The object may be \n - *\n - * Parameters:\n - * featOrFilt - {Object} A featurecoordsys or filtercoordsys ArcXML structure.\n - * fsys - {String} or {<OpenLayers.Projection>} or {filtercoordsys} or \n - * {featurecoordsys} A projection representation. If it\'s a {String}, \n - * the value is assumed to be the SRID. If it\'s a {OpenLayers.Projection} \n - * AND Proj4js is available, the projection number and name are extracted \n - * from there. If it\'s a filter or feature ArcXML structure, it is copied.\n - */\n - addCoordSys: function(featOrFilt, fsys) {\n - if (typeof fsys == "string") {\n - featOrFilt.id = parseInt(fsys);\n - featOrFilt.string = fsys;\n - }\n - // is this a proj4js instance?\n - else if (typeof fsys == "object" && fsys.proj !== null){\n - featOrFilt.id = fsys.proj.srsProjNumber;\n - featOrFilt.string = fsys.proj.srsCode;\n - } else {\n - featOrFilt = fsys;\n - }\n - },\n -\n - /**\n - * APIMethod: iserror\n - * Check to see if the response from the server was an error.\n - *\n - * Parameters:\n - * data - {String} or {DOMElement} data to read/parse. If nothing is supplied,\n - * the current response is examined.\n - *\n - * Returns:\n - * {Boolean} true if the response was an error.\n - */\n - iserror: function(data) {\n - var ret = null; \n - \n - if (!data) {\n - ret = (this.response.error !== \'\');\n - } else {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - var errorNodes = data.documentElement.getElementsByTagName("ERROR");\n - ret = (errorNodes !== null && errorNodes.length > 0);\n - }\n -\n - return ret;\n - },\n -\n - /**\n - * APIMethod: read\n - * Read data from a string, and return an response. \n - * \n - * Parameters:\n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {<OpenLayers.Format.ArcXML.Response>} An ArcXML response. Note that this response\n - * data may change in the future. \n - */\n - read: function(data) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - \n - var arcNode = null;\n - if (data && data.documentElement) {\n - if(data.documentElement.nodeName == "ARCXML") {\n - arcNode = data.documentElement;\n - } else {\n - arcNode = data.documentElement.getElementsByTagName("ARCXML")[0];\n - }\n - }\n - \n - // in Safari, arcNode will be there but will have a child named \n - // parsererror\n - if (!arcNode || arcNode.firstChild.nodeName === \'parsererror\') {\n - var error, source;\n - try {\n - error = data.firstChild.nodeValue;\n - source = data.firstChild.childNodes[1].firstChild.nodeValue;\n - } catch (err) {\n - // pass\n - }\n - throw {\n - message: "Error parsing the ArcXML request", \n - error: error,\n - source: source\n - };\n - }\n - \n - var response = this.parseResponse(arcNode);\n - return response;\n - },\n - \n - /**\n - * APIMethod: write\n - * Generate an ArcXml document string for sending to an ArcIMS server. \n - * \n - * Returns:\n - * {String} A string representing the ArcXML document request.\n - */\n - write: function(request) { \n - if (!request) {\n - request = this.request;\n - } \n - var root = this.createElementNS("", "ARCXML");\n - root.setAttribute("version","1.1");\n -\n - var reqElem = this.createElementNS("", "REQUEST");\n - \n - if (request.get_image != null) {\n - var getElem = this.createElementNS("", "GET_IMAGE");\n - reqElem.appendChild(getElem);\n -\n - var propElem = this.createElementNS("", "PROPERTIES");\n - getElem.appendChild(propElem);\n -\n - var props = request.get_image.properties;\n - if (props.featurecoordsys != null) {\n - var feat = this.createElementNS("", "FEATURECOORDSYS");\n - propElem.appendChild(feat);\n - \n - if (props.featurecoordsys.id === 0) {\n - feat.setAttribute("string", props.featurecoordsys[\'string\']);\n - }\n - else {\n - feat.setAttribute("id", props.featurecoordsys.id);\n - }\n - }\n - \n - if (props.filtercoordsys != null) {\n - var filt = this.createElementNS("", "FILTERCOORDSYS");\n - propElem.appendChild(filt);\n -\n - if (props.filtercoordsys.id === 0) {\n - filt.setAttribute("string", props.filtercoordsys.string);\n - }\n - else {\n - filt.setAttribute("id", props.filtercoordsys.id);\n - }\n - }\n - \n - if (props.envelope != null) {\n - var env = this.createElementNS("", "ENVELOPE");\n - propElem.appendChild(env);\n -\n - env.setAttribute("minx", props.envelope.minx);\n - env.setAttribute("miny", props.envelope.miny);\n - env.setAttribute("maxx", props.envelope.maxx);\n - env.setAttribute("maxy", props.envelope.maxy);\n - } \n - \n - var imagesz = this.createElementNS("", "IMAGESIZE");\n - propElem.appendChild(imagesz);\n - \n - imagesz.setAttribute("height", props.imagesize.height);\n - imagesz.setAttribute("width", props.imagesize.width);\n - \n - if (props.imagesize.height != props.imagesize.printheight ||\n - props.imagesize.width != props.imagesize.printwidth) {\n - imagesz.setAttribute("printheight", props.imagesize.printheight);\n - imagesz.setArrtibute("printwidth", props.imagesize.printwidth);\n - }\n - \n - if (props.background != null) {\n - var backgrnd = this.createElementNS("", "BACKGROUND");\n - propElem.appendChild(backgrnd);\n - \n - backgrnd.setAttribute("color", \n - props.background.color.r + "," + \n - props.background.color.g + "," + \n - props.background.color.b);\n - \n - if (props.background.transcolor !== null) {\n - backgrnd.setAttribute("transcolor", \n - props.background.transcolor.r + "," + \n - props.background.transcolor.g + "," + \n - props.background.transcolor.b);\n - }\n - }\n - \n - if (props.layerlist != null && props.layerlist.length > 0) {\n - var layerlst = this.createElementNS("", "LAYERLIST");\n - propElem.appendChild(layerlst);\n - \n - for (var ld = 0; ld < props.layerlist.length; ld++) {\n - var ldef = this.createElementNS("", "LAYERDEF");\n - layerlst.appendChild(ldef);\n - \n - ldef.setAttribute("id", props.layerlist[ld].id);\n - ldef.setAttribute("visible", props.layerlist[ld].visible);\n - \n - if (typeof props.layerlist[ld].query == "object") {\n - var query = props.layerlist[ld].query;\n -\n - if (query.where.length < 0) {\n - continue;\n - }\n - \n - var queryElem = null;\n - if (typeof query.spatialfilter == "boolean" && query.spatialfilter) {\n - // handle spatial filter madness\n - queryElem = this.createElementNS("", "SPATIALQUERY");\n - }\n - else {\n - queryElem = this.createElementNS("", "QUERY");\n - }\n - \n - queryElem.setAttribute("where", query.where);\n - \n - if (typeof query.accuracy == "number" && query.accuracy > 0) {\n - queryElem.setAttribute("accuracy", query.accuracy);\n - }\n - if (typeof query.featurelimit == "number" && query.featurelimit < 2000) {\n - queryElem.setAttribute("featurelimit", query.featurelimit);\n - }\n - if (typeof query.subfields == "string" && query.subfields != "#ALL#") {\n - queryElem.setAttribute("subfields", query.subfields);\n - }\n - if (typeof query.joinexpression == "string" && query.joinexpression.length > 0) {\n - queryElem.setAttribute("joinexpression", query.joinexpression);\n - }\n - if (typeof query.jointables == "string" && query.jointables.length > 0) {\n - queryElem.setAttribute("jointables", query.jointables);\n - }\n -\n - ldef.appendChild(queryElem);\n - }\n - \n - if (typeof props.layerlist[ld].renderer == "object") {\n - this.addRenderer(ldef, props.layerlist[ld].renderer); \n - }\n - }\n - }\n - } else if (request.get_feature != null) {\n - var getElem = this.createElementNS("", "GET_FEATURES");\n - getElem.setAttribute("outputmode", "newxml");\n - getElem.setAttribute("checkesc", "true");\n - \n - if (request.get_feature.geometry) {\n - getElem.setAttribute("geometry", request.get_feature.geometry);\n - }\n - else {\n - getElem.setAttribute("geometry", "false");\n - }\n - \n - if (request.get_feature.compact) {\n - getElem.setAttribute("compact", request.get_feature.compact);\n - }\n - \n - if (request.get_feature.featurelimit == "number") {\n - getElem.setAttribute("featurelimit", request.get_feature.featurelimit);\n - }\n - \n - getElem.setAttribute("globalenvelope", "true");\n - reqElem.appendChild(getElem);\n - \n - if (request.get_feature.layer != null && request.get_feature.layer.length > 0) {\n - var lyrElem = this.createElementNS("", "LAYER");\n - lyrElem.setAttribute("id", request.get_feature.layer);\n - getElem.appendChild(lyrElem);\n - }\n - \n - var fquery = request.get_feature.query;\n - if (fquery != null) {\n - var qElem = null;\n - if (fquery.isspatial) {\n - qElem = this.createElementNS("", "SPATIALQUERY");\n - } else {\n - qElem = this.createElementNS("", "QUERY");\n - }\n - getElem.appendChild(qElem);\n - \n - if (typeof fquery.accuracy == "number") {\n - qElem.setAttribute("accuracy", fquery.accuracy);\n - }\n - //qElem.setAttribute("featurelimit", "5");\n - \n - if (fquery.featurecoordsys != null) {\n - var fcsElem1 = this.createElementNS("", "FEATURECOORDSYS");\n - \n - if (fquery.featurecoordsys.id == 0) {\n - fcsElem1.setAttribute("string", fquery.featurecoordsys.string);\n - } else {\n - fcsElem1.setAttribute("id", fquery.featurecoordsys.id);\n - }\n - qElem.appendChild(fcsElem1);\n - }\n - \n - if (fquery.filtercoordsys != null) {\n - var fcsElem2 = this.createElementNS("", "FILTERCOORDSYS");\n - \n - if (fquery.filtercoordsys.id === 0) {\n - fcsElem2.setAttribute("string", fquery.filtercoordsys.string);\n - } else {\n - fcsElem2.setAttribute("id", fquery.filtercoordsys.id);\n - }\n - qElem.appendChild(fcsElem2);\n - }\n - \n - if (fquery.buffer > 0) { \n - var bufElem = this.createElementNS("", "BUFFER");\n - bufElem.setAttribute("distance", fquery.buffer);\n - qElem.appendChild(bufElem);\n - }\n - \n - if (fquery.isspatial) {\n - var spfElem = this.createElementNS("", "SPATIALFILTER");\n - spfElem.setAttribute("relation", fquery.spatialfilter.relation);\n - qElem.appendChild(spfElem);\n - \n - if (fquery.spatialfilter.envelope) {\n - var envElem = this.createElementNS("", "ENVELOPE"); \n - envElem.setAttribute("minx", fquery.spatialfilter.envelope.minx);\n - envElem.setAttribute("miny", fquery.spatialfilter.envelope.miny);\n - envElem.setAttribute("maxx", fquery.spatialfilter.envelope.maxx);\n - envElem.setAttribute("maxy", fquery.spatialfilter.envelope.maxy);\n - spfElem.appendChild(envElem);\n - } else if(typeof fquery.spatialfilter.polygon == "object") {\n - spfElem.appendChild(this.writePolygonGeometry(fquery.spatialfilter.polygon)); \n - }\n - }\n - \n - if (fquery.where != null && fquery.where.length > 0) {\n - qElem.setAttribute("where", fquery.where);\n - }\n - }\n - }\n -\n - root.appendChild(reqElem);\n -\n - return OpenLayers.Format.XML.prototype.write.apply(this, [root]);\n - },\n - \n - \n - addGroupRenderer: function(ldef, toprenderer) {\n - var topRelem = this.createElementNS("", "GROUPRENDERER");\n - ldef.appendChild(topRelem);\n - \n - for (var rind = 0; rind < toprenderer.length; rind++) {\n - var renderer = toprenderer[rind];\n - this.addRenderer(topRelem, renderer);\n - }\n - },\n - \n - \n - addRenderer: function(topRelem, renderer) {\n - if (OpenLayers.Util.isArray(renderer)) {\n - this.addGroupRenderer(topRelem, renderer);\n - } else {\n - var renderElem = this.createElementNS("", renderer.type.toUpperCase() + "RENDERER");\n - topRelem.appendChild(renderElem);\n - \n - if (renderElem.tagName == "VALUEMAPRENDERER") {\n - this.addValueMapRenderer(renderElem, renderer);\n - } else if (renderElem.tagName == "VALUEMAPLABELRENDERER") {\n - this.addValueMapLabelRenderer(renderElem, renderer);\n - } else if (renderElem.tagName == "SIMPLELABELRENDERER") {\n - this.addSimpleLabelRenderer(renderElem, renderer);\n - } else if (renderElem.tagName == "SCALEDEPENDENTRENDERER") {\n - this.addScaleDependentRenderer(renderElem, renderer);\n - }\n - } \n - },\n - \n - \n - addScaleDependentRenderer: function(renderElem, renderer) {\n - if (typeof renderer.lower == "string" || typeof renderer.lower == "number") {\n - renderElem.setAttribute("lower", renderer.lower);\n - }\n - if (typeof renderer.upper == "string" || typeof renderer.upper == "number") {\n - renderElem.setAttribute("upper", renderer.upper);\n - }\n - \n - this.addRenderer(renderElem, renderer.renderer);\n - },\n - \n - \n - addValueMapLabelRenderer: function(renderElem, renderer) {\n - renderElem.setAttribute("lookupfield", renderer.lookupfield);\n - renderElem.setAttribute("labelfield", renderer.labelfield);\n - \n - if (typeof renderer.exacts == "object") {\n - for (var ext=0, extlen=renderer.exacts.length; ext<extlen; ext++) {\n - var exact = renderer.exacts[ext];\n - \n - var eelem = this.createElementNS("", "EXACT");\n - \n - if (typeof exact.value == "string") {\n - eelem.setAttribute("value", exact.value);\n - }\n - if (typeof exact.label == "string") {\n - eelem.setAttribute("label", exact.label);\n - }\n - if (typeof exact.method == "string") {\n - eelem.setAttribute("method", exact.method);\n - }\n -\n - renderElem.appendChild(eelem);\n - \n - if (typeof exact.symbol == "object") {\n - var selem = null;\n - \n - if (exact.symbol.type == "text") {\n - selem = this.createElementNS("", "TEXTSYMBOL");\n - }\n - \n - if (selem != null) {\n - var keys = this.fontStyleKeys;\n - for (var i = 0, len = keys.length; i < len; i++) {\n - var key = keys[i];\n - if (exact.symbol[key]) {\n - selem.setAttribute(key, exact.symbol[key]);\n - }\n - } \n - eelem.appendChild(selem);\n - }\n - }\n - } // for each exact\n - } \n - },\n - \n - addValueMapRenderer: function(renderElem, renderer) {\n - renderElem.setAttribute("lookupfield", renderer.lookupfield);\n - \n - if (typeof renderer.ranges == "object") {\n - for(var rng=0, rnglen=renderer.ranges.length; rng<rnglen; rng++) {\n - var range = renderer.ranges[rng];\n - \n - var relem = this.createElementNS("", "RANGE");\n - relem.setAttribute("lower", range.lower);\n - relem.setAttribute("upper", range.upper);\n - \n - renderElem.appendChild(relem);\n - \n - if (typeof range.symbol == "object") {\n - var selem = null;\n - \n - if (range.symbol.type == "simplepolygon") {\n - selem = this.createElementNS("", "SIMPLEPOLYGONSYMBOL");\n - }\n - \n - if (selem != null) {\n - if (typeof range.symbol.boundarycolor == "string") {\n - selem.setAttribute("boundarycolor", range.symbol.boundarycolor);\n - }\n - if (typeof range.symbol.fillcolor == "string") {\n - selem.setAttribute("fillcolor", range.symbol.fillcolor);\n - }\n - if (typeof range.symbol.filltransparency == "number") {\n - selem.setAttribute("filltransparency", range.symbol.filltransparency);\n - }\n - relem.appendChild(selem);\n - } \n - }\n - } // for each range\n - } else if (typeof renderer.exacts == "object") {\n - for (var ext=0, extlen=renderer.exacts.length; ext<extlen; ext++) {\n - var exact = renderer.exacts[ext];\n - \n - var eelem = this.createElementNS("", "EXACT");\n - if (typeof exact.value == "string") {\n - eelem.setAttribute("value", exact.value);\n - }\n - if (typeof exact.label == "string") {\n - eelem.setAttribute("label", exact.label);\n - }\n - if (typeof exact.method == "string") {\n - eelem.setAttribute("method", exact.method);\n - }\n - \n - renderElem.appendChild(eelem);\n - \n - if (typeof exact.symbol == "object") {\n - var selem = null;\n - \n - if (exact.symbol.type == "simplemarker") {\n - selem = this.createElementNS("", "SIMPLEMARKERSYMBOL");\n - }\n - \n - if (selem != null) {\n - if (typeof exact.symbol.antialiasing == "string") {\n - selem.setAttribute("antialiasing", exact.symbol.antialiasing);\n - }\n - if (typeof exact.symbol.color == "string") {\n - selem.setAttribute("color", exact.symbol.color);\n - }\n - if (typeof exact.symbol.outline == "string") {\n - selem.setAttribute("outline", exact.symbol.outline);\n - }\n - if (typeof exact.symbol.overlap == "string") {\n - selem.setAttribute("overlap", exact.symbol.overlap);\n - }\n - if (typeof exact.symbol.shadow == "string") {\n - selem.setAttribute("shadow", exact.symbol.shadow);\n - }\n - if (typeof exact.symbol.transparency == "number") {\n - selem.setAttribute("transparency", exact.symbol.transparency);\n - }\n - //if (typeof exact.symbol.type == "string")\n - // selem.setAttribute("type", exact.symbol.type);\n - if (typeof exact.symbol.usecentroid == "string") {\n - selem.setAttribute("usecentroid", exact.symbol.usecentroid);\n - }\n - if (typeof exact.symbol.width == "number") {\n - selem.setAttribute("width", exact.symbol.width);\n - }\n - \n - eelem.appendChild(selem);\n - }\n - }\n - } // for each exact\n - }\n - },\n - \n - \n - addSimpleLabelRenderer: function(renderElem, renderer) {\n - renderElem.setAttribute("field", renderer.field);\n - var keys = [\'featureweight\', \'howmanylabels\', \'labelbufferratio\', \n - \'labelpriorities\', \'labelweight\', \'linelabelposition\',\n - \'rotationalangles\'];\n - for (var i=0, len=keys.length; i<len; i++) {\n - var key = keys[i];\n - if (renderer[key]) {\n - renderElem.setAttribute(key, renderer[key]);\n - }\n - } \n - \n - if (renderer.symbol.type == "text") {\n - var symbol = renderer.symbol;\n - var selem = this.createElementNS("", "TEXTSYMBOL");\n - renderElem.appendChild(selem);\n - \n - var keys = this.fontStyleKeys;\n - for (var i=0, len=keys.length; i<len; i++) {\n - var key = keys[i];\n - if (symbol[key]) {\n - selem.setAttribute(key, renderer[key]);\n - }\n - } \n - } \n - },\n - \n - writePolygonGeometry: function(polygon) {\n - if (!(polygon instanceof OpenLayers.Geometry.Polygon)) {\n - throw { \n - message:\'Cannot write polygon geometry to ArcXML with an \' +\n - polygon.CLASS_NAME + \' object.\',\n - geometry: polygon\n - };\n - }\n - \n - var polyElem = this.createElementNS("", "POLYGON");\n - \n - for (var ln=0, lnlen=polygon.components.length; ln<lnlen; ln++) {\n - var ring = polygon.components[ln];\n - var ringElem = this.createElementNS("", "RING");\n - \n - for (var rn=0, rnlen=ring.components.length; rn<rnlen; rn++) {\n - var point = ring.components[rn];\n - var pointElem = this.createElementNS("", "POINT");\n - \n - pointElem.setAttribute("x", point.x);\n - pointElem.setAttribute("y", point.y);\n - \n - ringElem.appendChild(pointElem);\n - }\n - \n - polyElem.appendChild(ringElem);\n - }\n - \n - return polyElem;\n - },\n - \n - /**\n - * Method: parseResponse\n - * Take an ArcXML response, and parse in into this object\'s internal properties.\n - *\n - * Parameters:\n - * data - {String} or {DOMElement} The ArcXML response, as either a string or the\n - * top level DOMElement of the response.\n - */\n - parseResponse: function(data) {\n - if(typeof data == "string") { \n - var newData = new OpenLayers.Format.XML();\n - data = newData.read(data);\n - }\n - var response = new OpenLayers.Format.ArcXML.Response();\n - \n - var errorNode = data.getElementsByTagName("ERROR");\n - \n - if (errorNode != null && errorNode.length > 0) {\n - response.error = this.getChildValue(errorNode, "Unknown error.");\n - } else {\n - var responseNode = data.getElementsByTagName("RESPONSE");\n - \n - if (responseNode == null || responseNode.length == 0) {\n - response.error = "No RESPONSE tag found in ArcXML response.";\n - return response;\n - }\n - \n - var rtype = responseNode[0].firstChild.nodeName;\n - if (rtype == "#text") {\n - rtype = responseNode[0].firstChild.nextSibling.nodeName;\n - }\n - \n - if (rtype == "IMAGE") {\n - var envelopeNode = data.getElementsByTagName("ENVELOPE");\n - var outputNode = data.getElementsByTagName("OUTPUT");\n - \n - if (envelopeNode == null || envelopeNode.length == 0) {\n - response.error = "No ENVELOPE tag found in ArcXML response.";\n - } else if (outputNode == null || outputNode.length == 0) {\n - response.error = "No OUTPUT tag found in ArcXML response.";\n - } else {\n - var envAttr = this.parseAttributes(envelopeNode[0]); \n - var outputAttr = this.parseAttributes(outputNode[0]);\n - \n - if (typeof outputAttr.type == "string") {\n - response.image = { \n - envelope: envAttr, \n - output: { \n - type: outputAttr.type, \n - data: this.getChildValue(outputNode[0])\n - }\n - };\n - } else {\n - response.image = { envelope: envAttr, output: outputAttr };\n - }\n - }\n - } else if (rtype == "FEATURES") {\n - var features = responseNode[0].getElementsByTagName("FEATURES");\n - \n - // get the feature count\n - var featureCount = features[0].getElementsByTagName("FEATURECOUNT");\n - response.features.featurecount = featureCount[0].getAttribute("count");\n - \n - if (response.features.featurecount > 0) {\n - // get the feature envelope\n - var envelope = features[0].getElementsByTagName("ENVELOPE");\n - response.features.envelope = this.parseAttributes(envelope[0], typeof(0));\n -\n - // get the field values per feature\n - var featureList = features[0].getElementsByTagName("FEATURE");\n - for (var fn = 0; fn < featureList.length; fn++) {\n - var feature = new OpenLayers.Feature.Vector();\n - var fields = featureList[fn].getElementsByTagName("FIELD");\n -\n - for (var fdn = 0; fdn < fields.length; fdn++) {\n - var fieldName = fields[fdn].getAttribute("name");\n - var fieldValue = fields[fdn].getAttribute("value");\n - feature.attributes[ fieldName ] = fieldValue;\n - }\n -\n - var geom = featureList[fn].getElementsByTagName("POLYGON");\n -\n - if (geom.length > 0) {\n - // if there is a polygon, create an openlayers polygon, and assign\n - // it to the .geometry property of the feature\n - var ring = geom[0].getElementsByTagName("RING");\n -\n - var polys = [];\n - for (var rn = 0; rn < ring.length; rn++) {\n - var linearRings = [];\n - linearRings.push(this.parsePointGeometry(ring[rn]));\n -\n - var holes = ring[rn].getElementsByTagName("HOLE");\n - for (var hn = 0; hn < holes.length; hn++) {\n - linearRings.push(this.parsePointGeometry(holes[hn]));\n - }\n - holes = null;\n - polys.push(new OpenLayers.Geometry.Polygon(linearRings));\n - linearRings = null;\n - }\n - ring = null;\n - \n - if (polys.length == 1) {\n - feature.geometry = polys[0];\n - } else\n - {\n - feature.geometry = new OpenLayers.Geometry.MultiPolygon(polys);\n - }\n - }\n -\n - response.features.feature.push(feature);\n - }\n - }\n - } else {\n - response.error = "Unidentified response type.";\n - }\n - }\n - return response;\n - },\n - \n - \n - /**\n - * Method: parseAttributes\n - *\n - * Parameters:\n - * node - {<DOMElement>} An element to parse attributes from.\n - *\n - * Returns:\n - * {Object} An attributes object, with properties set to attribute values.\n - */\n - parseAttributes: function(node,type) {\n - var attributes = {};\n - for(var attr = 0; attr < node.attributes.length; attr++) {\n - if (type == "number") {\n - attributes[node.attributes[attr].nodeName] = parseFloat(node.attributes[attr].nodeValue);\n - } else {\n - attributes[node.attributes[attr].nodeName] = node.attributes[attr].nodeValue;\n - }\n - }\n - return attributes;\n - },\n - \n - \n - /**\n - * Method: parsePointGeometry\n - *\n - * Parameters:\n - * node - {<DOMElement>} An element to parse <COORDS> or <POINT> arcxml data from.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.LinearRing>} A linear ring represented by the node\'s points.\n - */\n - parsePointGeometry: function(node) {\n - var ringPoints = [];\n - var coords = node.getElementsByTagName("COORDS");\n -\n - if (coords.length > 0) {\n - // if coords is present, it\'s the only coords item\n - var coordArr = this.getChildValue(coords[0]);\n - coordArr = coordArr.split(/;/);\n - for (var cn = 0; cn < coordArr.length; cn++) {\n - var coordItems = coordArr[cn].split(/ /);\n - ringPoints.push(new OpenLayers.Geometry.Point(coordItems[0], coordItems[1]));\n - }\n - coords = null;\n - } else {\n - var point = node.getElementsByTagName("POINT");\n - if (point.length > 0) {\n - for (var pn = 0; pn < point.length; pn++) {\n - ringPoints.push(\n - new OpenLayers.Geometry.Point(\n - parseFloat(point[pn].getAttribute("x")),\n - parseFloat(point[pn].getAttribute("y"))\n - )\n - );\n - }\n - }\n - point = null;\n - }\n -\n - return new OpenLayers.Geometry.LinearRing(ringPoints); \n - },\n - \n - CLASS_NAME: "OpenLayers.Format.ArcXML" \n -});\n -\n -OpenLayers.Format.ArcXML.Request = OpenLayers.Class({\n - initialize: function(params) {\n - var defaults = {\n - get_image: {\n - properties: {\n - background: null,\n - /*{ \n - color: { r:255, g:255, b:255 },\n - transcolor: null\n - },*/\n - draw: true,\n - envelope: {\n - minx: 0, \n - miny: 0, \n - maxx: 0, \n - maxy: 0\n - },\n - featurecoordsys: { \n - id:0, \n - string:"",\n - datumtransformid:0,\n - datumtransformstring:""\n - },\n - filtercoordsys:{\n - id:0,\n - string:"",\n - datumtransformid:0,\n - datumtransformstring:""\n - },\n - imagesize:{\n - height:0,\n - width:0,\n - dpi:96,\n - printheight:0,\n - printwidth:0,\n - scalesymbols:false\n - },\n - layerlist:[],\n - /* no support for legends */\n - output:{\n - baseurl:"",\n - legendbaseurl:"",\n - legendname:"",\n - legendpath:"",\n - legendurl:"",\n - name:"",\n - path:"",\n - type:"jpg",\n - url:""\n - }\n - }\n - },\n -\n - get_feature: {\n - layer: "",\n - query: {\n - isspatial: false,\n - featurecoordsys: {\n - id:0,\n - string:"",\n - datumtransformid:0,\n - datumtransformstring:""\n - },\n - filtercoordsys: {\n - id:0,\n - string:"",\n - datumtransformid:0,\n - datumtransformstring:""\n - },\n - buffer:0,\n - where:"",\n - spatialfilter: {\n - relation: "envelope_intersection",\n - envelope: null\n - }\n - }\n - },\n - \n - environment: {\n - separators: {\n - cs:" ",\n - ts:";"\n - }\n - },\n - \n - layer: [],\n - workspaces: []\n - };\n - \n - return OpenLayers.Util.extend(this, defaults); \n - },\n - \n - CLASS_NAME: "OpenLayers.Format.ArcXML.Request"\n -});\n -\n -OpenLayers.Format.ArcXML.Response = OpenLayers.Class({ \n - initialize: function(params) {\n - var defaults = {\n - image: {\n - envelope:null,\n - output:\'\'\n - },\n - \n - features: {\n - featurecount: 0,\n - envelope: null,\n - feature: []\n - },\n - \n - error:\'\'\n - };\n - \n - return OpenLayers.Util.extend(this, defaults);\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.ArcXML.Response"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>40703</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/ArcXML.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/ArcXML.xml deleted file mode 100644 index 0bb576e1067caad7efc5d3722c0902549506cfbf..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/ArcXML.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>ArcXML</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/ArcXML</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/ArcXML/Features.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/ArcXML/Features.js.xml deleted file mode 100644 index 2eb7df278fb291294fdf0dd4c6152041812fd43b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/ArcXML/Features.js.xml +++ /dev/null @@ -1,90 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.99</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Features.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/ArcXML.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.ArcXML.Features\n - * Read/Wite ArcXML features. Create a new instance with the \n - * <OpenLayers.Format.ArcXML.Features> constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.ArcXML.Features = OpenLayers.Class(OpenLayers.Format.XML, {\n -\n - /**\n - * Constructor: OpenLayers.Format.ArcXML.Features\n - * Create a new parser/writer for ArcXML Features. Create an instance of this class\n - * to get a set of features from an ArcXML response.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - \n - /**\n - * APIMethod: read\n - * Read data from a string of ArcXML, and return a set of OpenLayers features. \n - * \n - * Parameters:\n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Feature.Vector>)} A collection of features.\n - */\n - read: function(data) {\n - var axl = new OpenLayers.Format.ArcXML();\n - var parsed = axl.read(data);\n - \n - return parsed.features.feature;\n - }\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1430</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Atom.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Atom.js.xml deleted file mode 100644 index 6074a5b1b8c1e9bf5e4cefdd5d045170d389221d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Atom.js.xml +++ /dev/null @@ -1,756 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Atom.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Format/GML/v3.js\n - * @requires OpenLayers/Feature/Vector.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.Atom\n - * Read/write Atom feeds. Create a new instance with the\n - * <OpenLayers.Format.AtomFeed> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.Atom = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs. Properties\n - * of this object should not be set individually. Read-only. All\n - * XML subclasses should have their own namespaces object. Use\n - * <setNamespace> to add or set a namespace alias after construction.\n - */\n - namespaces: {\n - atom: "http://www.w3.org/2005/Atom",\n - georss: "http://www.georss.org/georss"\n - },\n - \n - /**\n - * APIProperty: feedTitle\n - * {String} Atom feed elements require a title. Default is "untitled".\n - */\n - feedTitle: "untitled",\n -\n - /**\n - * APIProperty: defaultEntryTitle\n - * {String} Atom entry elements require a title. In cases where one is\n - * not provided in the feature attributes, this will be used. Default\n - * is "untitled".\n - */\n - defaultEntryTitle: "untitled",\n -\n - /**\n - * Property: gmlParse\n - * {Object} GML Format object for parsing features\n - * Non-API and only created if necessary\n - */\n - gmlParser: null,\n - \n - /**\n - * APIProperty: xy\n - * {Boolean} Order of the GML coordinate: true:(x,y) or false:(y,x)\n - * For GeoRSS the default is (y,x), therefore: false\n - */\n - xy: false,\n - \n - /**\n - * Constructor: OpenLayers.Format.AtomEntry\n - * Create a new parser for Atom.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - \n - /**\n - * APIMethod: read\n - * Return a list of features from an Atom feed or entry document.\n - \n - * Parameters:\n - * doc - {Element} or {String}\n - *\n - * Returns:\n - * Array({<OpenLayers.Feature.Vector>})\n - */\n - read: function(doc) {\n - if (typeof doc == "string") {\n - doc = OpenLayers.Format.XML.prototype.read.apply(this, [doc]);\n - }\n - return this.parseFeatures(doc);\n - },\n - \n - /**\n - * APIMethod: write\n - * Serialize or more feature nodes to Atom documents.\n - *\n - * Parameters:\n - * features - {<OpenLayers.Feature.Vector>} or Array({<OpenLayers.Feature.Vector>})\n - *\n - * Returns:\n - * {String} an Atom entry document if passed one feature node, or a feed\n - * document if passed an array of feature nodes.\n - */\n - write: function(features) {\n - var doc;\n - if (OpenLayers.Util.isArray(features)) {\n - doc = this.createElementNSPlus("atom:feed");\n - doc.appendChild(\n - this.createElementNSPlus("atom:title", {\n - value: this.feedTitle\n - })\n - );\n - for (var i=0, ii=features.length; i<ii; i++) {\n - doc.appendChild(this.buildEntryNode(features[i]));\n - }\n - }\n - else {\n - doc = this.buildEntryNode(features);\n - }\n - return OpenLayers.Format.XML.prototype.write.apply(this, [doc]);\n - },\n - \n - /**\n - * Method: buildContentNode\n - *\n - * Parameters:\n - * content - {Object}\n - *\n - * Returns:\n - * {DOMElement} an Atom content node.\n - *\n - * TODO: types other than text.\n - */\n - buildContentNode: function(content) {\n - var node = this.createElementNSPlus("atom:content", {\n - attributes: {\n - type: content.type || null\n - }\n - });\n - if (content.src) {\n - node.setAttribute("src", content.src);\n - } else {\n - if (content.type == "text" || content.type == null) {\n - node.appendChild(\n - this.createTextNode(content.value)\n - );\n - } else if (content.type == "html") {\n - if (typeof content.value != "string") {\n - throw "HTML content must be in form of an escaped string";\n - }\n - node.appendChild(\n - this.createTextNode(content.value)\n - );\n - } else if (content.type == "xhtml") {\n - node.appendChild(content.value);\n - } else if (content.type == "xhtml" ||\n - content.type.match(/(\\+|\\/)xml$/)) {\n - node.appendChild(content.value);\n - }\n - else { // MUST be a valid Base64 encoding\n - node.appendChild(\n - this.createTextNode(content.value)\n - );\n - }\n - }\n - return node;\n - },\n - \n - /**\n - * Method: buildEntryNode\n - * Build an Atom entry node from a feature object.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - *\n - * Returns:\n - * {DOMElement} an Atom entry node.\n - *\n - * These entries are geared for publication using AtomPub.\n - *\n - * TODO: support extension elements\n - */\n - buildEntryNode: function(feature) {\n - var attrib = feature.attributes;\n - var atomAttrib = attrib.atom || {};\n - var entryNode = this.createElementNSPlus("atom:entry");\n - \n - // atom:author\n - if (atomAttrib.authors) {\n - var authors = OpenLayers.Util.isArray(atomAttrib.authors) ?\n - atomAttrib.authors : [atomAttrib.authors];\n - for (var i=0, ii=authors.length; i<ii; i++) {\n - entryNode.appendChild(\n - this.buildPersonConstructNode(\n - "author", authors[i]\n - )\n - );\n - }\n - }\n - \n - // atom:category\n - if (atomAttrib.categories) {\n - var categories = OpenLayers.Util.isArray(atomAttrib.categories) ?\n - atomAttrib.categories : [atomAttrib.categories];\n - var category;\n - for (var i=0, ii=categories.length; i<ii; i++) {\n - category = categories[i];\n - entryNode.appendChild(\n - this.createElementNSPlus("atom:category", {\n - attributes: {\n - term: category.term,\n - scheme: category.scheme || null,\n - label: category.label || null\n - }\n - })\n - );\n - }\n - }\n - \n - // atom:content\n - if (atomAttrib.content) {\n - entryNode.appendChild(this.buildContentNode(atomAttrib.content));\n - }\n - \n - // atom:contributor\n - if (atomAttrib.contributors) {\n - var contributors = OpenLayers.Util.isArray(atomAttrib.contributors) ?\n - atomAttrib.contributors : [atomAttrib.contributors];\n - for (var i=0, ii=contributors.length; i<ii; i++) {\n - entryNode.appendChild(\n - this.buildPersonConstructNode(\n - "contributor",\n - contributors[i]\n - )\n - );\n - }\n - }\n - \n - // atom:id\n - if (feature.fid) {\n - entryNode.appendChild(\n - this.createElementNSPlus("atom:id", {\n - value: feature.fid\n - })\n - );\n - }\n - \n - // atom:link\n - if (atomAttrib.links) {\n - var links = OpenLayers.Util.isArray(atomAttrib.links) ?\n - atomAttrib.links : [atomAttrib.links];\n - var link;\n - for (var i=0, ii=links.length; i<ii; i++) {\n - link = links[i];\n - entryNode.appendChild(\n - this.createElementNSPlus("atom:link", {\n - attributes: {\n - href: link.href,\n - rel: link.rel || null,\n - type: link.type || null,\n - hreflang: link.hreflang || null,\n - title: link.title || null,\n - length: link.length || null\n - }\n - })\n - );\n - }\n - }\n - \n - // atom:published\n - if (atomAttrib.published) {\n - entryNode.appendChild(\n - this.createElementNSPlus("atom:published", {\n - value: atomAttrib.published\n - })\n - );\n - }\n - \n - // atom:rights\n - if (atomAttrib.rights) {\n - entryNode.appendChild(\n - this.createElementNSPlus("atom:rights", {\n - value: atomAttrib.rights\n - })\n - );\n - }\n - \n - // atom:source not implemented\n - \n - // atom:summary\n - if (atomAttrib.summary || attrib.description) {\n - entryNode.appendChild(\n - this.createElementNSPlus("atom:summary", {\n - value: atomAttrib.summary || attrib.description\n - })\n - );\n - }\n - \n - // atom:title\n - entryNode.appendChild(\n - this.createElementNSPlus("atom:title", {\n - value: atomAttrib.title || attrib.title || this.defaultEntryTitle\n - })\n - );\n - \n - // atom:updated\n - if (atomAttrib.updated) {\n - entryNode.appendChild(\n - this.createElementNSPlus("atom:updated", {\n - value: atomAttrib.updated\n - })\n - );\n - }\n - \n - // georss:where\n - if (feature.geometry) {\n - var whereNode = this.createElementNSPlus("georss:where");\n - whereNode.appendChild(\n - this.buildGeometryNode(feature.geometry)\n - );\n - entryNode.appendChild(whereNode);\n - }\n - \n - return entryNode;\n - },\n - \n - /**\n - * Method: initGmlParser\n - * Creates a GML parser.\n - */\n - initGmlParser: function() {\n - this.gmlParser = new OpenLayers.Format.GML.v3({\n - xy: this.xy,\n - featureNS: "http://example.com#feature",\n - internalProjection: this.internalProjection,\n - externalProjection: this.externalProjection\n - });\n - },\n - \n - /**\n - * Method: buildGeometryNode\n - * builds a GeoRSS node with a given geometry\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - *\n - * Returns:\n - * {DOMElement} A gml node.\n - */\n - buildGeometryNode: function(geometry) {\n - if (!this.gmlParser) {\n - this.initGmlParser();\n - }\n - var node = this.gmlParser.writeNode("feature:_geometry", geometry);\n - return node.firstChild;\n - },\n - \n - /**\n - * Method: buildPersonConstructNode\n - *\n - * Parameters:\n - * name - {String}\n - * value - {Object}\n - *\n - * Returns:\n - * {DOMElement} an Atom person construct node.\n - *\n - * Example:\n - * >>> buildPersonConstructNode("author", {name: "John Smith"})\n - * {<author><name>John Smith</name></author>}\n - *\n - * TODO: how to specify extension elements? Add to the oNames array?\n - */\n - buildPersonConstructNode: function(name, value) {\n - var oNames = ["uri", "email"];\n - var personNode = this.createElementNSPlus("atom:" + name);\n - personNode.appendChild(\n - this.createElementNSPlus("atom:name", {\n - value: value.name\n - })\n - );\n - for (var i=0, ii=oNames.length; i<ii; i++) {\n - if (value[oNames[i]]) {\n - personNode.appendChild(\n - this.createElementNSPlus("atom:" + oNames[i], {\n - value: value[oNames[i]]\n - })\n - );\n - }\n - }\n - return personNode;\n - },\n - \n - /**\n - * Method: getFirstChildValue\n - *\n - * Parameters:\n - * node - {DOMElement}\n - * nsuri - {String} Child node namespace uri ("*" for any).\n - * name - {String} Child node name.\n - * def - {String} Optional string default to return if no child found.\n - *\n - * Returns:\n - * {String} The value of the first child with the given tag name. Returns\n - * default value or empty string if none found.\n - */\n - getFirstChildValue: function(node, nsuri, name, def) {\n - var value;\n - var nodes = this.getElementsByTagNameNS(node, nsuri, name);\n - if (nodes && nodes.length > 0) {\n - value = this.getChildValue(nodes[0], def);\n - } else {\n - value = def;\n - }\n - return value;\n - },\n - \n - /**\n - * Method: parseFeature\n - * Parse feature from an Atom entry node..\n - *\n - * Parameters:\n - * node - {DOMElement} An Atom entry or feed node.\n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector>}\n - */\n - parseFeature: function(node) {\n - var atomAttrib = {};\n - var value = null;\n - var nodes = null;\n - var attval = null;\n - var atomns = this.namespaces.atom;\n - \n - // atomAuthor*\n - this.parsePersonConstructs(node, "author", atomAttrib);\n - \n - // atomCategory*\n - nodes = this.getElementsByTagNameNS(node, atomns, "category");\n - if (nodes.length > 0) {\n - atomAttrib.categories = [];\n - }\n - for (var i=0, ii=nodes.length; i<ii; i++) {\n - value = {};\n - value.term = nodes[i].getAttribute("term");\n - attval = nodes[i].getAttribute("scheme");\n - if (attval) { value.scheme = attval; }\n - attval = nodes[i].getAttribute("label");\n - if (attval) { value.label = attval; }\n - atomAttrib.categories.push(value);\n - }\n - \n - // atomContent?\n - nodes = this.getElementsByTagNameNS(node, atomns, "content");\n - if (nodes.length > 0) {\n - value = {};\n - attval = nodes[0].getAttribute("type");\n - if (attval) {\n - value.type = attval;\n - }\n - attval = nodes[0].getAttribute("src");\n - if (attval) {\n - value.src = attval;\n - } else {\n - if (value.type == "text" || \n - value.type == "html" || \n - value.type == null ) {\n - value.value = this.getFirstChildValue(\n - node,\n - atomns,\n - "content",\n - null\n - );\n - } else if (value.type == "xhtml" ||\n - value.type.match(/(\\+|\\/)xml$/)) {\n - value.value = this.getChildEl(nodes[0]);\n - } else { // MUST be base64 encoded\n - value.value = this.getFirstChildValue(\n - node,\n - atomns,\n - "content",\n - null\n - );\n - }\n - atomAttrib.content = value;\n - }\n - }\n - \n - // atomContributor*\n - this.parsePersonConstructs(node, "contributor", atomAttrib);\n - \n - // atomId\n - atomAttrib.id = this.getFirstChildValue(node, atomns, "id", null);\n - \n - // atomLink*\n - nodes = this.getElementsByTagNameNS(node, atomns, "link");\n - if (nodes.length > 0) {\n - atomAttrib.links = new Array(nodes.length);\n - }\n - var oAtts = ["rel", "type", "hreflang", "title", "length"];\n - for (var i=0, ii=nodes.length; i<ii; i++) {\n - value = {};\n - value.href = nodes[i].getAttribute("href");\n - for (var j=0, jj=oAtts.length; j<jj; j++) {\n - attval = nodes[i].getAttribute(oAtts[j]);\n - if (attval) {\n - value[oAtts[j]] = attval;\n - }\n - }\n - atomAttrib.links[i] = value;\n - }\n - \n - // atomPublished?\n - value = this.getFirstChildValue(node, atomns, "published", null);\n - if (value) {\n - atomAttrib.published = value;\n - }\n - \n - // atomRights?\n - value = this.getFirstChildValue(node, atomns, "rights", null);\n - if (value) {\n - atomAttrib.rights = value;\n - }\n - \n - // atomSource? -- not implemented\n - \n - // atomSummary?\n - value = this.getFirstChildValue(node, atomns, "summary", null);\n - if (value) {\n - atomAttrib.summary = value;\n - }\n - \n - // atomTitle\n - atomAttrib.title = this.getFirstChildValue(\n - node, atomns, "title", null\n - );\n - \n - // atomUpdated\n - atomAttrib.updated = this.getFirstChildValue(\n - node, atomns, "updated", null\n - );\n - \n - var featureAttrib = {\n - title: atomAttrib.title,\n - description: atomAttrib.summary,\n - atom: atomAttrib\n - };\n - var geometry = this.parseLocations(node)[0];\n - var feature = new OpenLayers.Feature.Vector(geometry, featureAttrib);\n - feature.fid = atomAttrib.id;\n - return feature;\n - },\n - \n - /**\n - * Method: parseFeatures\n - * Return features from an Atom entry or feed.\n - *\n - * Parameters:\n - * node - {DOMElement} An Atom entry or feed node.\n - *\n - * Returns:\n - * Array({<OpenLayers.Feature.Vector>})\n - */\n - parseFeatures: function(node) {\n - var features = [];\n - var entries = this.getElementsByTagNameNS(\n - node, this.namespaces.atom, "entry"\n - );\n - if (entries.length == 0) {\n - entries = [node];\n - }\n - for (var i=0, ii=entries.length; i<ii; i++) {\n - features.push(this.parseFeature(entries[i]));\n - }\n - return features;\n - },\n - \n - /**\n - * Method: parseLocations\n - * Parse the locations from an Atom entry or feed.\n - *\n - * Parameters:\n - * node - {DOMElement} An Atom entry or feed node.\n - *\n - * Returns:\n - * Array({<OpenLayers.Geometry>})\n - */\n - parseLocations: function(node) {\n - var georssns = this.namespaces.georss;\n -\n - var locations = {components: []};\n - var where = this.getElementsByTagNameNS(node, georssns, "where");\n - if (where && where.length > 0) {\n - if (!this.gmlParser) {\n - this.initGmlParser();\n - }\n - for (var i=0, ii=where.length; i<ii; i++) {\n - this.gmlParser.readChildNodes(where[i], locations);\n - }\n - }\n - \n - var components = locations.components;\n - var point = this.getElementsByTagNameNS(node, georssns, "point");\n - if (point && point.length > 0) {\n - for (var i=0, ii=point.length; i<ii; i++) {\n - var xy = OpenLayers.String.trim(\n - point[i].firstChild.nodeValue\n - ).split(/\\s+/);\n - if (xy.length !=2) {\n - xy = OpenLayers.String.trim(\n - point[i].firstChild.nodeValue\n - ).split(/\\s*,\\s*/);\n - }\n - components.push(new OpenLayers.Geometry.Point(xy[1], xy[0]));\n - }\n - }\n -\n - var line = this.getElementsByTagNameNS(node, georssns, "line");\n - if (line && line.length > 0) {\n - var coords;\n - var p;\n - var points;\n - for (var i=0, ii=line.length; i<ii; i++) {\n - coords = OpenLayers.String.trim(\n - line[i].firstChild.nodeValue\n - ).split(/\\s+/);\n - points = [];\n - for (var j=0, jj=coords.length; j<jj; j+=2) {\n - p = new OpenLayers.Geometry.Point(coords[j+1], coords[j]);\n - points.push(p);\n - }\n - components.push(\n - new OpenLayers.Geometry.LineString(points)\n - );\n - }\n - } \n -\n - var polygon = this.getElementsByTagNameNS(node, georssns, "polygon");\n - if (polygon && polygon.length > 0) {\n - var coords;\n - var p;\n - var points;\n - for (var i=0, ii=polygon.length; i<ii; i++) {\n - coords = OpenLayers.String.trim(\n - polygon[i].firstChild.nodeValue\n - ).split(/\\s+/);\n - points = [];\n - for (var j=0, jj=coords.length; j<jj; j+=2) {\n - p = new OpenLayers.Geometry.Point(coords[j+1], coords[j]);\n - points.push(p);\n - }\n - components.push(\n - new OpenLayers.Geometry.Polygon(\n - [new OpenLayers.Geometry.LinearRing(components)]\n - )\n - );\n - }\n - }\n - \n - if (this.internalProjection && this.externalProjection) {\n - for (var i=0, ii=components.length; i<ii; i++) {\n - if (components[i]) {\n - components[i].transform(\n - this.externalProjection,\n - this.internalProjection\n - );\n - }\n - }\n - }\n - \n - return components;\n - },\n - \n - /**\n - * Method: parsePersonConstruct\n - * Parse Atom person constructs from an Atom entry node.\n - *\n - * Parameters:\n - * node - {DOMElement} An Atom entry or feed node.\n - * name - {String} Construcy name ("author" or "contributor")\n - * data = {Object} Object in which to put parsed persons.\n - *\n - * Returns:\n - * An {Object}.\n - */\n - parsePersonConstructs: function(node, name, data) {\n - var persons = [];\n - var atomns = this.namespaces.atom;\n - var nodes = this.getElementsByTagNameNS(node, atomns, name);\n - var oAtts = ["uri", "email"];\n - for (var i=0, ii=nodes.length; i<ii; i++) {\n - var value = {};\n - value.name = this.getFirstChildValue(\n - nodes[i],\n - atomns,\n - "name",\n - null\n - );\n - for (var j=0, jj=oAtts.length; j<jj; j++) {\n - var attval = this.getFirstChildValue(\n - nodes[i],\n - atomns,\n - oAtts[j],\n - null);\n - if (attval) {\n - value[oAtts[j]] = attval;\n - }\n - }\n - persons.push(value);\n - }\n - if (persons.length > 0) {\n - data[name + "s"] = persons;\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.Atom"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>23184</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CQL.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CQL.js.xml deleted file mode 100644 index ff8a24270f1530350bf96d991c68d2feea521fd2..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CQL.js.xml +++ /dev/null @@ -1,482 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>CQL.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WKT.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.CQL\n - * Read CQL strings to get <OpenLayers.Filter> objects. Write \n - * <OpenLayers.Filter> objects to get CQL strings. Create a new parser with \n - * the <OpenLayers.Format.CQL> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format>\n - */\n -OpenLayers.Format.CQL = (function() {\n - \n - var tokens = [\n - "PROPERTY", "COMPARISON", "VALUE", "LOGICAL"\n - ],\n -\n - patterns = {\n - PROPERTY: /^[_a-zA-Z]\\w*/,\n - COMPARISON: /^(=|<>|<=|<|>=|>|LIKE)/i,\n - COMMA: /^,/,\n - LOGICAL: /^(AND|OR)/i,\n - VALUE: /^(\'\\w+\'|\\d+(\\.\\d*)?|\\.\\d+)/,\n - LPAREN: /^\\(/,\n - RPAREN: /^\\)/,\n - SPATIAL: /^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,\n - NOT: /^NOT/i,\n - BETWEEN: /^BETWEEN/i,\n - GEOMETRY: function(text) {\n - var type = /^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(text);\n - if (type) {\n - var len = text.length;\n - var idx = text.indexOf("(", type[0].length);\n - if (idx > -1) {\n - var depth = 1;\n - while (idx < len && depth > 0) {\n - idx++;\n - switch(text.charAt(idx)) {\n - case \'(\':\n - depth++;\n - break;\n - case \')\':\n - depth--;\n - break;\n - default:\n - // in default case, do nothing\n - }\n - }\n - }\n - return [text.substr(0, idx+1)];\n - }\n - },\n - END: /^$/\n - },\n -\n - follows = {\n - LPAREN: [\'GEOMETRY\', \'SPATIAL\', \'PROPERTY\', \'VALUE\', \'LPAREN\'],\n - RPAREN: [\'NOT\', \'LOGICAL\', \'END\', \'RPAREN\'],\n - PROPERTY: [\'COMPARISON\', \'BETWEEN\', \'COMMA\'],\n - BETWEEN: [\'VALUE\'],\n - COMPARISON: [\'VALUE\'],\n - COMMA: [\'GEOMETRY\', \'VALUE\', \'PROPERTY\'],\n - VALUE: [\'LOGICAL\', \'COMMA\', \'RPAREN\', \'END\'],\n - SPATIAL: [\'LPAREN\'],\n - LOGICAL: [\'NOT\', \'VALUE\', \'SPATIAL\', \'PROPERTY\', \'LPAREN\'],\n - NOT: [\'PROPERTY\', \'LPAREN\'],\n - GEOMETRY: [\'COMMA\', \'RPAREN\']\n - },\n -\n - operators = {\n - \'=\': OpenLayers.Filter.Comparison.EQUAL_TO,\n - \'<>\': OpenLayers.Filter.Comparison.NOT_EQUAL_TO,\n - \'<\': OpenLayers.Filter.Comparison.LESS_THAN,\n - \'<=\': OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO,\n - \'>\': OpenLayers.Filter.Comparison.GREATER_THAN,\n - \'>=\': OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO,\n - \'LIKE\': OpenLayers.Filter.Comparison.LIKE,\n - \'BETWEEN\': OpenLayers.Filter.Comparison.BETWEEN\n - },\n -\n - operatorReverse = {},\n -\n - logicals = {\n - \'AND\': OpenLayers.Filter.Logical.AND,\n - \'OR\': OpenLayers.Filter.Logical.OR\n - },\n -\n - logicalReverse = {},\n -\n - precedence = {\n - \'RPAREN\': 3,\n - \'LOGICAL\': 2,\n - \'COMPARISON\': 1\n - };\n -\n - var i;\n - for (i in operators) {\n - if (operators.hasOwnProperty(i)) {\n - operatorReverse[operators[i]] = i;\n - }\n - }\n -\n - for (i in logicals) {\n - if (logicals.hasOwnProperty(i)) {\n - logicalReverse[logicals[i]] = i;\n - }\n - }\n -\n - function tryToken(text, pattern) {\n - if (pattern instanceof RegExp) {\n - return pattern.exec(text);\n - } else {\n - return pattern(text);\n - }\n - }\n -\n - function nextToken(text, tokens) {\n - var i, token, len = tokens.length;\n - for (i=0; i<len; i++) {\n - token = tokens[i];\n - var pat = patterns[token];\n - var matches = tryToken(text, pat);\n - if (matches) {\n - var match = matches[0];\n - var remainder = text.substr(match.length).replace(/^\\s*/, "");\n - return {\n - type: token,\n - text: match,\n - remainder: remainder\n - };\n - }\n - }\n -\n - var msg = "ERROR: In parsing: [" + text + "], expected one of: ";\n - for (i=0; i<len; i++) {\n - token = tokens[i];\n - msg += "\\n " + token + ": " + patterns[token];\n - }\n -\n - throw new Error(msg);\n - }\n -\n - function tokenize(text) {\n - var results = [];\n - var token, expect = ["NOT", "GEOMETRY", "SPATIAL", "PROPERTY", "LPAREN"];\n -\n - do {\n - token = nextToken(text, expect);\n - text = token.remainder;\n - expect = follows[token.type];\n - if (token.type != "END" && !expect) {\n - throw new Error("No follows list for " + token.type);\n - }\n - results.push(token);\n - } while (token.type != "END");\n -\n - return results;\n - }\n -\n - function buildAst(tokens) {\n - var operatorStack = [],\n - postfix = [];\n -\n - while (tokens.length) {\n - var tok = tokens.shift();\n - switch (tok.type) {\n - case "PROPERTY":\n - case "GEOMETRY":\n - case "VALUE":\n - postfix.push(tok);\n - break;\n - case "COMPARISON":\n - case "BETWEEN":\n - case "LOGICAL":\n - var p = precedence[tok.type];\n -\n - while (operatorStack.length > 0 &&\n - (precedence[operatorStack[operatorStack.length - 1].type] <= p)\n - ) {\n - postfix.push(operatorStack.pop());\n - }\n -\n - operatorStack.push(tok);\n - break;\n - case "SPATIAL":\n - case "NOT":\n - case "LPAREN":\n - operatorStack.push(tok);\n - break;\n - case "RPAREN":\n - while (operatorStack.length > 0 &&\n - (operatorStack[operatorStack.length - 1].type != "LPAREN")\n - ) {\n - postfix.push(operatorStack.pop());\n - }\n - operatorStack.pop(); // toss out the LPAREN\n -\n - if (operatorStack.length > 0 &&\n - operatorStack[operatorStack.length-1].type == "SPATIAL") {\n - postfix.push(operatorStack.pop());\n - }\n - case "COMMA":\n - case "END":\n - break;\n - default:\n - throw new Error("Unknown token type " + tok.type);\n - }\n - }\n -\n - while (operatorStack.length > 0) {\n - postfix.push(operatorStack.pop());\n - }\n -\n - function buildTree() {\n - var tok = postfix.pop();\n - switch (tok.type) {\n - case "LOGICAL":\n - var rhs = buildTree(),\n - lhs = buildTree();\n - return new OpenLayers.Filter.Logical({\n - filters: [lhs, rhs],\n - type: logicals[tok.text.toUpperCase()]\n - });\n - case "NOT":\n - var operand = buildTree();\n - return new OpenLayers.Filter.Logical({\n - filters: [operand],\n - type: OpenLayers.Filter.Logical.NOT\n - });\n - case "BETWEEN":\n - var min, max, property;\n - postfix.pop(); // unneeded AND token here\n - max = buildTree();\n - min = buildTree();\n - property = buildTree();\n - return new OpenLayers.Filter.Comparison({\n - property: property,\n - lowerBoundary: min,\n - upperBoundary: max,\n - type: OpenLayers.Filter.Comparison.BETWEEN\n - });\n - case "COMPARISON":\n - var value = buildTree(),\n - property = buildTree();\n - return new OpenLayers.Filter.Comparison({\n - property: property,\n - value: value,\n - type: operators[tok.text.toUpperCase()]\n - });\n - case "VALUE":\n - if ((/^\'.*\'$/).test(tok.text)) {\n - return tok.text.substr(1, tok.text.length - 2);\n - } else {\n - return Number(tok.text);\n - }\n - case "SPATIAL":\n - switch(tok.text.toUpperCase()) {\n - case "BBOX":\n - var maxy = buildTree(),\n - maxx = buildTree(),\n - miny = buildTree(),\n - minx = buildTree(),\n - prop = buildTree();\n -\n - return new OpenLayers.Filter.Spatial({\n - type: OpenLayers.Filter.Spatial.BBOX,\n - property: prop,\n - value: OpenLayers.Bounds.fromArray(\n - [minx, miny, maxx, maxy]\n - )\n - });\n - case "INTERSECTS":\n - var value = buildTree(),\n - property = buildTree();\n - return new OpenLayers.Filter.Spatial({\n - type: OpenLayers.Filter.Spatial.INTERSECTS,\n - property: property,\n - value: value\n - });\n - case "WITHIN":\n - var value = buildTree(),\n - property = buildTree();\n - return new OpenLayers.Filter.Spatial({\n - type: OpenLayers.Filter.Spatial.WITHIN,\n - property: property,\n - value: value\n - });\n - case "CONTAINS":\n - var value = buildTree(),\n - property = buildTree();\n - return new OpenLayers.Filter.Spatial({\n - type: OpenLayers.Filter.Spatial.CONTAINS,\n - property: property,\n - value: value\n - });\n - case "DWITHIN":\n - var distance = buildTree(),\n - value = buildTree(),\n - property = buildTree();\n - return new OpenLayers.Filter.Spatial({\n - type: OpenLayers.Filter.Spatial.DWITHIN,\n - value: value,\n - property: property,\n - distance: Number(distance)\n - });\n - }\n - case "GEOMETRY":\n - return OpenLayers.Geometry.fromWKT(tok.text);\n - default:\n - return tok.text;\n - }\n - }\n -\n - var result = buildTree();\n - if (postfix.length > 0) {\n - var msg = "Remaining tokens after building AST: \\n";\n - for (var i = postfix.length - 1; i >= 0; i--) {\n - msg += postfix[i].type + ": " + postfix[i].text + "\\n";\n - }\n - throw new Error(msg);\n - }\n -\n - return result;\n - }\n -\n - return OpenLayers.Class(OpenLayers.Format, {\n - /**\n - * APIMethod: read\n - * Generate a filter from a CQL string.\n -\n - * Parameters:\n - * text - {String} The CQL text.\n - *\n - * Returns:\n - * {<OpenLayers.Filter>} A filter based on the CQL text.\n - */\n - read: function(text) { \n - var result = buildAst(tokenize(text));\n - if (this.keepData) {\n - this.data = result;\n - }\n - return result;\n - },\n -\n - /**\n - * APIMethod: write\n - * Convert a filter into a CQL string.\n -\n - * Parameters:\n - * filter - {<OpenLayers.Filter>} The filter.\n - *\n - * Returns:\n - * {String} A CQL string based on the filter.\n - */\n - write: function(filter) {\n - if (filter instanceof OpenLayers.Geometry) {\n - return filter.toString();\n - }\n - switch (filter.CLASS_NAME) {\n - case "OpenLayers.Filter.Spatial":\n - switch(filter.type) {\n - case OpenLayers.Filter.Spatial.BBOX:\n - return "BBOX(" +\n - filter.property + "," +\n - filter.value.toBBOX() +\n - ")";\n - case OpenLayers.Filter.Spatial.DWITHIN:\n - return "DWITHIN(" +\n - filter.property + ", " +\n - this.write(filter.value) + ", " +\n - filter.distance + ")";\n - case OpenLayers.Filter.Spatial.WITHIN:\n - return "WITHIN(" +\n - filter.property + ", " +\n - this.write(filter.value) + ")";\n - case OpenLayers.Filter.Spatial.INTERSECTS:\n - return "INTERSECTS(" +\n - filter.property + ", " +\n - this.write(filter.value) + ")";\n - case OpenLayers.Filter.Spatial.CONTAINS:\n - return "CONTAINS(" +\n - filter.property + ", " +\n - this.write(filter.value) + ")";\n - default:\n - throw new Error("Unknown spatial filter type: " + filter.type);\n - }\n - case "OpenLayers.Filter.Logical":\n - if (filter.type == OpenLayers.Filter.Logical.NOT) {\n - // TODO: deal with precedence of logical operators to \n - // avoid extra parentheses (not urgent)\n - return "NOT (" + this.write(filter.filters[0]) + ")";\n - } else {\n - var res = "(";\n - var first = true;\n - for (var i = 0; i < filter.filters.length; i++) {\n - if (first) {\n - first = false;\n - } else {\n - res += ") " + logicalReverse[filter.type] + " (";\n - }\n - res += this.write(filter.filters[i]);\n - }\n - return res + ")";\n - }\n - case "OpenLayers.Filter.Comparison":\n - if (filter.type == OpenLayers.Filter.Comparison.BETWEEN) {\n - return filter.property + " BETWEEN " + \n - this.write(filter.lowerBoundary) + " AND " + \n - this.write(filter.upperBoundary);\n - } else {\n - \n - return filter.property +\n - " " + operatorReverse[filter.type] + " " + \n - this.write(filter.value);\n - }\n - case undefined:\n - if (typeof filter === "string") {\n - return "\'" + filter + "\'";\n - } else if (typeof filter === "number") {\n - return String(filter);\n - }\n - default:\n - throw new Error("Can\'t encode: " + filter.CLASS_NAME + " " + filter);\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.CQL"\n -\n - });\n -})();\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>16333</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetDomain.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetDomain.js.xml deleted file mode 100644 index 8091fe9d46038b0c565b757d33b4c3427eca8666..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetDomain.js.xml +++ /dev/null @@ -1,78 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>CSWGetDomain.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.CSWGetDomain\n - * Default version is 2.0.2.\n - *\n - * Returns:\n - * {<OpenLayers.Format>} A CSWGetDomain format of the given version.\n - */\n -OpenLayers.Format.CSWGetDomain = function(options) {\n - options = OpenLayers.Util.applyDefaults(\n - options, OpenLayers.Format.CSWGetDomain.DEFAULTS\n - );\n - var cls = OpenLayers.Format.CSWGetDomain["v"+options.version.replace(/\\./g, "_")];\n - if(!cls) {\n - throw "Unsupported CSWGetDomain version: " + options.version;\n - }\n - return new cls(options);\n -};\n -\n -/**\n - * Constant: DEFAULTS\n - * {Object} Default properties for the CSWGetDomain format.\n - */\n -OpenLayers.Format.CSWGetDomain.DEFAULTS = {\n - "version": "2.0.2"\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>992</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetDomain.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetDomain.xml deleted file mode 100644 index aaba35a42acda1b956652a997bde8e3025ba6ca1..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetDomain.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>CSWGetDomain</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/CSWGetDomain</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetDomain/v2_0_2.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetDomain/v2_0_2.js.xml deleted file mode 100644 index 87bb553bb19e2fe5c489824974f1ecd520f8bf01..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetDomain/v2_0_2.js.xml +++ /dev/null @@ -1,284 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.94</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v2_0_2.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Format/CSWGetDomain.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.CSWGetDomain.v2_0_2\n - * A format for creating CSWGetDomain v2.0.2 transactions. \n - * Create a new instance with the\n - * <OpenLayers.Format.CSWGetDomain.v2_0_2> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.CSWGetDomain.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - xlink: "http://www.w3.org/1999/xlink",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance",\n - csw: "http://www.opengis.net/cat/csw/2.0.2"\n - },\n -\n - /**\n - * Property: defaultPrefix\n - * {String} The default prefix (used by Format.XML).\n - */\n - defaultPrefix: "csw",\n - \n - /**\n - * Property: version\n - * {String} CSW version number.\n - */\n - version: "2.0.2",\n - \n - /**\n - * Property: schemaLocation\n - * {String} http://www.opengis.net/cat/csw/2.0.2\n - * http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd\n - */\n - schemaLocation: "http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd",\n -\n - /**\n - * APIProperty: PropertyName\n - * {String} Value of the csw:PropertyName element, used when\n - * writing a GetDomain document.\n - */\n - PropertyName: null,\n -\n - /**\n - * APIProperty: ParameterName\n - * {String} Value of the csw:ParameterName element, used when\n - * writing a GetDomain document.\n - */\n - ParameterName: null,\n - \n - /**\n - * Constructor: OpenLayers.Format.CSWGetDomain.v2_0_2\n - * A class for parsing and generating CSWGetDomain v2.0.2 transactions.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - *\n - * Valid options properties:\n - * - PropertyName\n - * - ParameterName\n - */\n -\n - /**\n - * APIMethod: read\n - * Parse the response from a GetDomain request.\n - */\n - read: function(data) {\n - if(typeof data == "string") { \n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n - var obj = {};\n - this.readNode(data, obj);\n - return obj;\n - },\n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "csw": {\n - "GetDomainResponse": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "DomainValues": function(node, obj) {\n - if (!(OpenLayers.Util.isArray(obj.DomainValues))) {\n - obj.DomainValues = [];\n - }\n - var attrs = node.attributes;\n - var domainValue = {};\n - for(var i=0, len=attrs.length; i<len; ++i) {\n - domainValue[attrs[i].name] = attrs[i].nodeValue;\n - }\n - this.readChildNodes(node, domainValue);\n - obj.DomainValues.push(domainValue);\n - },\n - "PropertyName": function(node, obj) {\n - obj.PropertyName = this.getChildValue(node);\n - },\n - "ParameterName": function(node, obj) {\n - obj.ParameterName = this.getChildValue(node);\n - },\n - "ListOfValues": function(node, obj) {\n - if (!(OpenLayers.Util.isArray(obj.ListOfValues))) {\n - obj.ListOfValues = [];\n - }\n - this.readChildNodes(node, obj.ListOfValues);\n - },\n - "Value": function(node, obj) {\n - var attrs = node.attributes;\n - var value = {};\n - for(var i=0, len=attrs.length; i<len; ++i) {\n - value[attrs[i].name] = attrs[i].nodeValue;\n - }\n - value.value = this.getChildValue(node);\n - obj.push({Value: value});\n - },\n - "ConceptualScheme": function(node, obj) {\n - obj.ConceptualScheme = {};\n - this.readChildNodes(node, obj.ConceptualScheme);\n - },\n - "Name": function(node, obj) {\n - obj.Name = this.getChildValue(node);\n - },\n - "Document": function(node, obj) {\n - obj.Document = this.getChildValue(node);\n - },\n - "Authority": function(node, obj) {\n - obj.Authority = this.getChildValue(node);\n - },\n - "RangeOfValues": function(node, obj) {\n - obj.RangeOfValues = {};\n - this.readChildNodes(node, obj.RangeOfValues);\n - },\n - "MinValue": function(node, obj) {\n - var attrs = node.attributes;\n - var value = {};\n - for(var i=0, len=attrs.length; i<len; ++i) {\n - value[attrs[i].name] = attrs[i].nodeValue;\n - }\n - value.value = this.getChildValue(node);\n - obj.MinValue = value;\n - },\n - "MaxValue": function(node, obj) {\n - var attrs = node.attributes;\n - var value = {};\n - for(var i=0, len=attrs.length; i<len; ++i) {\n - value[attrs[i].name] = attrs[i].nodeValue;\n - }\n - value.value = this.getChildValue(node);\n - obj.MaxValue = value;\n - }\n - }\n - },\n - \n - /**\n - * APIMethod: write\n - * Given an configuration js object, write a CSWGetDomain request. \n - *\n - * Parameters:\n - * options - {Object} A object mapping the request.\n - *\n - * Returns:\n - * {String} A serialized CSWGetDomain request.\n - */\n - write: function(options) {\n - var node = this.writeNode("csw:GetDomain", options);\n - return OpenLayers.Format.XML.prototype.write.apply(this, [node]);\n - },\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "csw": {\n - "GetDomain": function(options) {\n - var node = this.createElementNSPlus("csw:GetDomain", {\n - attributes: {\n - service: "CSW",\n - version: this.version\n - }\n - });\n - if (options.PropertyName || this.PropertyName) {\n - this.writeNode(\n - "csw:PropertyName",\n - options.PropertyName || this.PropertyName,\n - node\n - );\n - } else if (options.ParameterName || this.ParameterName) {\n - this.writeNode(\n - "csw:ParameterName",\n - options.ParameterName || this.ParameterName,\n - node\n - );\n - }\n - this.readChildNodes(node, options);\n - return node;\n - },\n - "PropertyName": function(value) {\n - var node = this.createElementNSPlus("csw:PropertyName", {\n - value: value\n - });\n - return node;\n - },\n - "ParameterName": function(value) {\n - var node = this.createElementNSPlus("csw:ParameterName", {\n - value: value\n - });\n - return node;\n - }\n - }\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.CSWGetDomain.v2_0_2" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>8222</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetRecords.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetRecords.js.xml deleted file mode 100644 index 6629e928e13bb5c176deb5213a1579292fd2fa1d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetRecords.js.xml +++ /dev/null @@ -1,78 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>CSWGetRecords.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.CSWGetRecords\n - * Default version is 2.0.2.\n - *\n - * Returns:\n - * {<OpenLayers.Format>} A CSWGetRecords format of the given version.\n - */\n -OpenLayers.Format.CSWGetRecords = function(options) {\n - options = OpenLayers.Util.applyDefaults(\n - options, OpenLayers.Format.CSWGetRecords.DEFAULTS\n - );\n - var cls = OpenLayers.Format.CSWGetRecords["v"+options.version.replace(/\\./g, "_")];\n - if(!cls) {\n - throw "Unsupported CSWGetRecords version: " + options.version;\n - }\n - return new cls(options);\n -};\n -\n -/**\n - * Constant: DEFAULTS\n - * {Object} Default properties for the CSWGetRecords format.\n - */\n -OpenLayers.Format.CSWGetRecords.DEFAULTS = {\n - "version": "2.0.2"\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1000</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetRecords.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetRecords.xml deleted file mode 100644 index 0ce46d8d31aaf2037acfc1e5f4e59f7c09a39717..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetRecords.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>CSWGetRecords</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/CSWGetRecords</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetRecords/v2_0_2.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetRecords/v2_0_2.js.xml deleted file mode 100644 index ae2b29236bb60a2ebc6028e826260d5153e1e6c5..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/CSWGetRecords/v2_0_2.js.xml +++ /dev/null @@ -1,501 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684101.01</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v2_0_2.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Format/CSWGetRecords.js\n - * @requires OpenLayers/Format/Filter/v1_0_0.js\n - * @requires OpenLayers/Format/Filter/v1_1_0.js\n - * @requires OpenLayers/Format/OWSCommon/v1_0_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.CSWGetRecords.v2_0_2\n - * A format for creating CSWGetRecords v2.0.2 transactions. \n - * Create a new instance with the\n - * <OpenLayers.Format.CSWGetRecords.v2_0_2> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.CSWGetRecords.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - csw: "http://www.opengis.net/cat/csw/2.0.2",\n - dc: "http://purl.org/dc/elements/1.1/",\n - dct: "http://purl.org/dc/terms/",\n - gmd: "http://www.isotc211.org/2005/gmd",\n - geonet: "http://www.fao.org/geonetwork",\n - ogc: "http://www.opengis.net/ogc",\n - ows: "http://www.opengis.net/ows",\n - xlink: "http://www.w3.org/1999/xlink",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance"\n - },\n - \n - /**\n - * Property: defaultPrefix\n - * {String} The default prefix (used by Format.XML).\n - */\n - defaultPrefix: "csw",\n - \n - /**\n - * Property: version\n - * {String} CSW version number.\n - */\n - version: "2.0.2",\n - \n - /**\n - * Property: schemaLocation\n - * {String} http://www.opengis.net/cat/csw/2.0.2\n - * http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd\n - */\n - schemaLocation: "http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd",\n -\n - /**\n - * APIProperty: requestId\n - * {String} Value of the requestId attribute of the GetRecords element.\n - */\n - requestId: null,\n -\n - /**\n - * APIProperty: resultType\n - * {String} Value of the resultType attribute of the GetRecords element,\n - * specifies the result type in the GetRecords response, "hits" is\n - * the default.\n - */\n - resultType: null,\n -\n - /**\n - * APIProperty: outputFormat\n - * {String} Value of the outputFormat attribute of the GetRecords element,\n - * specifies the format of the GetRecords response,\n - * "application/xml" is the default.\n - */\n - outputFormat: null,\n -\n - /**\n - * APIProperty: outputSchema\n - * {String} Value of the outputSchema attribute of the GetRecords element,\n - * specifies the schema of the GetRecords response.\n - */\n - outputSchema: null,\n -\n - /**\n - * APIProperty: startPosition\n - * {String} Value of the startPosition attribute of the GetRecords element,\n - * specifies the start position (offset+1) for the GetRecords response,\n - * 1 is the default.\n - */\n - startPosition: null,\n -\n - /**\n - * APIProperty: maxRecords\n - * {String} Value of the maxRecords attribute of the GetRecords element,\n - * specifies the maximum number of records in the GetRecords response,\n - * 10 is the default.\n - */\n - maxRecords: null,\n -\n - /**\n - * APIProperty: DistributedSearch\n - * {String} Value of the csw:DistributedSearch element, used when writing\n - * a csw:GetRecords document.\n - */\n - DistributedSearch: null,\n -\n - /**\n - * APIProperty: ResponseHandler\n - * {Array({String})} Values of the csw:ResponseHandler elements, used when\n - * writting a csw:GetRecords document.\n - */\n - ResponseHandler: null,\n -\n - /**\n - * APIProperty: Query\n - * {String} Value of the csw:Query element, used when writing a csw:GetRecords\n - * document.\n - */\n - Query: null,\n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n -\n - /**\n - * Constructor: OpenLayers.Format.CSWGetRecords.v2_0_2\n - * A class for parsing and generating CSWGetRecords v2.0.2 transactions.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - *\n - * Valid options properties (documented as class properties):\n - * - requestId\n - * - resultType\n - * - outputFormat\n - * - outputSchema\n - * - startPosition\n - * - maxRecords\n - * - DistributedSearch\n - * - ResponseHandler\n - * - Query\n - */\n - initialize: function(options) {\n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - },\n -\n - /**\n - * APIMethod: read\n - * Parse the response from a GetRecords request.\n - */\n - read: function(data) {\n - if(typeof data == "string") { \n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n - var obj = {};\n - this.readNode(data, obj);\n - return obj;\n - },\n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "csw": {\n - "GetRecordsResponse": function(node, obj) {\n - obj.records = [];\n - this.readChildNodes(node, obj);\n - var version = this.getAttributeNS(node, "", \'version\');\n - if (version != "") {\n - obj.version = version;\n - }\n - },\n - "RequestId": function(node, obj) {\n - obj.RequestId = this.getChildValue(node);\n - },\n - "SearchStatus": function(node, obj) {\n - obj.SearchStatus = {};\n - var timestamp = this.getAttributeNS(node, "", \'timestamp\');\n - if (timestamp != "") {\n - obj.SearchStatus.timestamp = timestamp;\n - }\n - },\n - "SearchResults": function(node, obj) {\n - this.readChildNodes(node, obj);\n - var attrs = node.attributes;\n - var SearchResults = {};\n - for(var i=0, len=attrs.length; i<len; ++i) {\n - if ((attrs[i].name == "numberOfRecordsMatched") ||\n - (attrs[i].name == "numberOfRecordsReturned") ||\n - (attrs[i].name == "nextRecord")) {\n - SearchResults[attrs[i].name] = parseInt(attrs[i].nodeValue);\n - } else {\n - SearchResults[attrs[i].name] = attrs[i].nodeValue;\n - }\n - }\n - obj.SearchResults = SearchResults;\n - },\n - "SummaryRecord": function(node, obj) {\n - var record = {type: "SummaryRecord"};\n - this.readChildNodes(node, record);\n - obj.records.push(record);\n - },\n - "BriefRecord": function(node, obj) {\n - var record = {type: "BriefRecord"};\n - this.readChildNodes(node, record);\n - obj.records.push(record);\n - },\n - "DCMIRecord": function(node, obj) {\n - var record = {type: "DCMIRecord"};\n - this.readChildNodes(node, record);\n - obj.records.push(record);\n - },\n - "Record": function(node, obj) {\n - var record = {type: "Record"};\n - this.readChildNodes(node, record);\n - obj.records.push(record);\n - },\n - "*": function(node, obj) {\n - var name = node.localName || node.nodeName.split(":").pop();\n - obj[name] = this.getChildValue(node);\n - }\n - },\n - "geonet": {\n - "info": function(node, obj) {\n - var gninfo = {};\n - this.readChildNodes(node, gninfo);\n - obj.gninfo = gninfo;\n - }\n - },\n - "dc": {\n - // audience, contributor, coverage, creator, date, description, format,\n - // identifier, language, provenance, publisher, relation, rights,\n - // rightsHolder, source, subject, title, type, URI\n - "*": function(node, obj) {\n - var name = node.localName || node.nodeName.split(":").pop();\n - if (!(OpenLayers.Util.isArray(obj[name]))) {\n - obj[name] = [];\n - }\n - var dc_element = {};\n - var attrs = node.attributes;\n - for(var i=0, len=attrs.length; i<len; ++i) {\n - dc_element[attrs[i].name] = attrs[i].nodeValue;\n - }\n - dc_element.value = this.getChildValue(node);\n - if (dc_element.value != "") {\n - obj[name].push(dc_element);\n - }\n - }\n - },\n - "dct": {\n - // abstract, modified, spatial\n - "*": function(node, obj) {\n - var name = node.localName || node.nodeName.split(":").pop();\n - if (!(OpenLayers.Util.isArray(obj[name]))) {\n - obj[name] = [];\n - }\n - obj[name].push(this.getChildValue(node));\n - }\n - },\n - "ows": OpenLayers.Util.applyDefaults({\n - "BoundingBox": function(node, obj) {\n - if (obj.bounds) {\n - obj.BoundingBox = [{crs: obj.projection, value: \n - [\n - obj.bounds.left, \n - obj.bounds.bottom, \n - obj.bounds.right, \n - obj.bounds.top\n - ]\n - }];\n - delete obj.projection;\n - delete obj.bounds;\n - }\n - OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers["ows"]["BoundingBox"].apply(\n - this, arguments);\n - }\n - }, OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers["ows"])\n - },\n - \n - /**\n - * Method: write\n - * Given an configuration js object, write a CSWGetRecords request. \n - *\n - * Parameters:\n - * options - {Object} A object mapping the request.\n - *\n - * Returns:\n - * {String} A serialized CSWGetRecords request.\n - */\n - write: function(options) {\n - var node = this.writeNode("csw:GetRecords", options);\n - node.setAttribute("xmlns:gmd", this.namespaces.gmd);\n - return OpenLayers.Format.XML.prototype.write.apply(this, [node]);\n - },\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "csw": {\n - "GetRecords": function(options) {\n - if (!options) {\n - options = {};\n - }\n - var node = this.createElementNSPlus("csw:GetRecords", {\n - attributes: {\n - service: "CSW",\n - version: this.version,\n - requestId: options.requestId || this.requestId,\n - resultType: options.resultType || this.resultType,\n - outputFormat: options.outputFormat || this.outputFormat,\n - outputSchema: options.outputSchema || this.outputSchema,\n - startPosition: options.startPosition || this.startPosition,\n - maxRecords: options.maxRecords || this.maxRecords\n - }\n - });\n - if (options.DistributedSearch || this.DistributedSearch) {\n - this.writeNode(\n - "csw:DistributedSearch",\n - options.DistributedSearch || this.DistributedSearch,\n - node\n - );\n - }\n - var ResponseHandler = options.ResponseHandler || this.ResponseHandler;\n - if (OpenLayers.Util.isArray(ResponseHandler) && ResponseHandler.length > 0) {\n - // ResponseHandler must be a non-empty array\n - for(var i=0, len=ResponseHandler.length; i<len; i++) {\n - this.writeNode(\n - "csw:ResponseHandler",\n - ResponseHandler[i],\n - node\n - );\n - }\n - }\n - this.writeNode("Query", options.Query || this.Query, node);\n - return node;\n - },\n - "DistributedSearch": function(options) {\n - var node = this.createElementNSPlus("csw:DistributedSearch", {\n - attributes: {\n - hopCount: options.hopCount\n - }\n - });\n - return node;\n - },\n - "ResponseHandler": function(options) {\n - var node = this.createElementNSPlus("csw:ResponseHandler", {\n - value: options.value\n - });\n - return node;\n - },\n - "Query": function(options) {\n - if (!options) {\n - options = {};\n - }\n - var node = this.createElementNSPlus("csw:Query", {\n - attributes: {\n - typeNames: options.typeNames || "csw:Record"\n - }\n - });\n - var ElementName = options.ElementName;\n - if (OpenLayers.Util.isArray(ElementName) && ElementName.length > 0) {\n - // ElementName must be a non-empty array\n - for(var i=0, len=ElementName.length; i<len; i++) {\n - this.writeNode(\n - "csw:ElementName",\n - ElementName[i],\n - node\n - );\n - }\n - } else {\n - this.writeNode(\n - "csw:ElementSetName",\n - options.ElementSetName || {value: \'summary\'},\n - node\n - );\n - }\n - if (options.Constraint) {\n - this.writeNode(\n - "csw:Constraint",\n - options.Constraint,\n - node\n - );\n - }\n - if (options.SortBy) {\n - this.writeNode(\n - "ogc:SortBy",\n - options.SortBy,\n - node\n - );\n - }\n - return node;\n - },\n - "ElementName": function(options) {\n - var node = this.createElementNSPlus("csw:ElementName", {\n - value: options.value\n - });\n - return node;\n - },\n - "ElementSetName": function(options) {\n - var node = this.createElementNSPlus("csw:ElementSetName", {\n - attributes: {\n - typeNames: options.typeNames\n - },\n - value: options.value\n - });\n - return node;\n - },\n - "Constraint": function(options) {\n - var node = this.createElementNSPlus("csw:Constraint", {\n - attributes: {\n - version: options.version\n - }\n - });\n - if (options.Filter) {\n - var format = new OpenLayers.Format.Filter({\n - version: options.version\n - });\n - node.appendChild(format.write(options.Filter));\n - } else if (options.CqlText) {\n - var child = this.createElementNSPlus("CqlText", {\n - value: options.CqlText.value\n - });\n - node.appendChild(child);\n - }\n - return node;\n - }\n - },\n - "ogc": OpenLayers.Format.Filter.v1_1_0.prototype.writers["ogc"]\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.CSWGetRecords.v2_0_2" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>16614</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Context.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Context.js.xml deleted file mode 100644 index b8a016cc18f55abfc4b2377378682574802a6d7d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Context.js.xml +++ /dev/null @@ -1,378 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.9</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Context.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML/VersionedOGC.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.Context\n - * Base class for both Format.WMC and Format.OWSContext\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML.VersionedOGC>\n - */\n -OpenLayers.Format.Context = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {\n -\n - /**\n - * Property: layerOptions\n - * {Object} Default options for layers created by the parser. These\n - * options are overridden by the options which are read from the\n - * capabilities document.\n - */\n - layerOptions: null,\n -\n - /**\n - * Property: layerParams\n - * {Object} Default parameters for layers created by the parser. This\n - * can be used e.g. to override DEFAULT_PARAMS for \n - * OpenLayers.Layer.WMS.\n - */\n - layerParams: null,\n -\n - /**\n - * Constructor: OpenLayers.Format.Context\n - * Create a new parser for Context documents.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Read Context data from a string, and return an object with map\n - * properties and a list of layers.\n - *\n - * Parameters:\n - * data - {String} or {DOMElement} data to read/parse.\n - * options - {Object} The options object must contain a map property. If\n - * the map property is a string, it must be the id of a dom element\n - * where the new map will be placed. If the map property is an\n - * <OpenLayers.Map>, the layers from the context document will be added\n - * to the map.\n - *\n - * Returns:\n - * {<OpenLayers.Map>} A map based on the context.\n - */\n - read: function(data, options) {\n - var context = OpenLayers.Format.XML.VersionedOGC.prototype.read.apply(this, \n - arguments);\n - var map;\n - if(options && options.map) {\n - this.context = context;\n - if(options.map instanceof OpenLayers.Map) {\n - map = this.mergeContextToMap(context, options.map);\n - } else {\n - var mapOptions = options.map;\n - if(OpenLayers.Util.isElement(mapOptions) ||\n - typeof mapOptions == "string") {\n - // we assume mapOptions references a div\n - // element\n - mapOptions = {div: mapOptions};\n - }\n - map = this.contextToMap(context, mapOptions);\n - }\n - } else {\n - // not documented as part of the API, provided as a non-API option\n - map = context;\n - }\n - return map;\n - },\n -\n - /**\n - * Method: getLayerFromContext\n - * Create a WMS layer from a layerContext object.\n - *\n - * Parameters:\n - * layerContext - {Object} An object representing a WMS layer.\n - *\n - * Returns:\n - * {<OpenLayers.Layer.WMS>} A WMS layer.\n - */\n - getLayerFromContext: function(layerContext) {\n - var i, len;\n - // fill initial options object from layerContext\n - var options = {\n - queryable: layerContext.queryable, //keep queryable for api compatibility\n - visibility: layerContext.visibility,\n - maxExtent: layerContext.maxExtent,\n - metadata: OpenLayers.Util.applyDefaults(layerContext.metadata, \n - {styles: layerContext.styles,\n - formats: layerContext.formats,\n - "abstract": layerContext["abstract"],\n - dataURL: layerContext.dataURL\n - }),\n - numZoomLevels: layerContext.numZoomLevels,\n - units: layerContext.units,\n - isBaseLayer: layerContext.isBaseLayer,\n - opacity: layerContext.opacity,\n - displayInLayerSwitcher: layerContext.displayInLayerSwitcher,\n - singleTile: layerContext.singleTile,\n - tileSize: (layerContext.tileSize) ? \n - new OpenLayers.Size(\n - layerContext.tileSize.width, \n - layerContext.tileSize.height\n - ) : undefined,\n - minScale: layerContext.minScale || layerContext.maxScaleDenominator,\n - maxScale: layerContext.maxScale || layerContext.minScaleDenominator,\n - srs: layerContext.srs,\n - dimensions: layerContext.dimensions,\n - metadataURL: layerContext.metadataURL\n - };\n - if (this.layerOptions) {\n - OpenLayers.Util.applyDefaults(options, this.layerOptions);\n - }\n -\n - var params = {\n - layers: layerContext.name,\n - transparent: layerContext.transparent,\n - version: layerContext.version\n - };\n - if (layerContext.formats && layerContext.formats.length>0) {\n - // set default value for params if current attribute is not positionned\n - params.format = layerContext.formats[0].value;\n - for (i=0, len=layerContext.formats.length; i<len; i++) {\n - var format = layerContext.formats[i];\n - if (format.current == true) {\n - params.format = format.value;\n - break;\n - }\n - }\n - }\n - if (layerContext.styles && layerContext.styles.length>0) {\n - for (i=0, len=layerContext.styles.length; i<len; i++) {\n - var style = layerContext.styles[i];\n - if (style.current == true) {\n - // three style types to consider\n - // 1) linked SLD\n - // 2) inline SLD\n - // 3) named style\n - if(style.href) {\n - params.sld = style.href;\n - } else if(style.body) {\n - params.sld_body = style.body;\n - } else {\n - params.styles = style.name;\n - }\n - break;\n - }\n - }\n - }\n - if (this.layerParams) {\n - OpenLayers.Util.applyDefaults(params, this.layerParams);\n - }\n -\n - var layer = null;\n - var service = layerContext.service;\n - if (service == OpenLayers.Format.Context.serviceTypes.WFS) {\n - options.strategies = [new OpenLayers.Strategy.BBOX()];\n - options.protocol = new OpenLayers.Protocol.WFS({\n - url: layerContext.url,\n - // since we do not know featureNS, let the protocol\n - // determine it automagically using featurePrefix\n - featurePrefix: layerContext.name.split(":")[0],\n - featureType: layerContext.name.split(":").pop()\n - });\n - layer = new OpenLayers.Layer.Vector(\n - layerContext.title || layerContext.name,\n - options\n - );\n - } else if (service == OpenLayers.Format.Context.serviceTypes.KML) {\n - // use a vector layer with an HTTP Protcol and a Fixed strategy\n - options.strategies = [new OpenLayers.Strategy.Fixed()];\n - options.protocol = new OpenLayers.Protocol.HTTP({\n - url: layerContext.url, \n - format: new OpenLayers.Format.KML()\n - });\n - layer = new OpenLayers.Layer.Vector(\n - layerContext.title || layerContext.name,\n - options\n - );\n - } else if (service == OpenLayers.Format.Context.serviceTypes.GML) {\n - // use a vector layer with a HTTP Protocol and a Fixed strategy\n - options.strategies = [new OpenLayers.Strategy.Fixed()];\n - options.protocol = new OpenLayers.Protocol.HTTP({\n - url: layerContext.url, \n - format: new OpenLayers.Format.GML()\n - });\n - layer = new OpenLayers.Layer.Vector(\n - layerContext.title || layerContext.name,\n - options\n - );\n - } else if (layerContext.features) {\n - // inline GML or KML features\n - layer = new OpenLayers.Layer.Vector(\n - layerContext.title || layerContext.name,\n - options\n - );\n - layer.addFeatures(layerContext.features);\n - } else if (layerContext.categoryLayer !== true) {\n - layer = new OpenLayers.Layer.WMS(\n - layerContext.title || layerContext.name,\n - layerContext.url,\n - params,\n - options\n - );\n - }\n - return layer;\n - },\n -\n - /**\n - * Method: getLayersFromContext\n - * Create an array of layers from an array of layerContext objects.\n - *\n - * Parameters:\n - * layersContext - {Array(Object)} An array of objects representing layers.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Layer>)} An array of layers.\n - */\n - getLayersFromContext: function(layersContext) {\n - var layers = [];\n - for (var i=0, len=layersContext.length; i<len; i++) {\n - var layer = this.getLayerFromContext(layersContext[i]);\n - if (layer !== null) {\n - layers.push(layer);\n - }\n - }\n - return layers;\n - },\n -\n - /**\n - * Method: contextToMap\n - * Create a map given a context object.\n - *\n - * Parameters:\n - * context - {Object} The context object.\n - * options - {Object} Default map options.\n - *\n - * Returns:\n - * {<OpenLayers.Map>} A map based on the context object.\n - */\n - contextToMap: function(context, options) {\n - options = OpenLayers.Util.applyDefaults({\n - maxExtent: context.maxExtent,\n - projection: context.projection,\n - units: context.units\n - }, options);\n -\n - if (options.maxExtent) {\n - options.maxResolution = \n - options.maxExtent.getWidth() / OpenLayers.Map.TILE_WIDTH;\n - }\n -\n - var metadata = {\n - contactInformation: context.contactInformation,\n - "abstract": context["abstract"],\n - keywords: context.keywords,\n - logo: context.logo,\n - descriptionURL: context.descriptionURL\n - };\n -\n - options.metadata = metadata;\n -\n - var map = new OpenLayers.Map(options);\n - map.addLayers(this.getLayersFromContext(context.layersContext));\n - map.setCenter(\n - context.bounds.getCenterLonLat(),\n - map.getZoomForExtent(context.bounds, true)\n - );\n - return map;\n - },\n -\n - /**\n - * Method: mergeContextToMap\n - * Add layers from a context object to a map.\n - *\n - * Parameters:\n - * context - {Object} The context object.\n - * map - {<OpenLayers.Map>} The map.\n - *\n - * Returns:\n - * {<OpenLayers.Map>} The same map with layers added.\n - */\n - mergeContextToMap: function(context, map) {\n - map.addLayers(this.getLayersFromContext(context.layersContext));\n - return map;\n - },\n -\n - /**\n - * APIMethod: write\n - * Write a context document given a map.\n - *\n - * Parameters:\n - * obj - {<OpenLayers.Map> | Object} A map or context object.\n - * options - {Object} Optional configuration object.\n - *\n - * Returns:\n - * {String} A context document string.\n - */\n - write: function(obj, options) {\n - obj = this.toContext(obj);\n - return OpenLayers.Format.XML.VersionedOGC.prototype.write.apply(this,\n - arguments);\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.Context"\n -});\n -\n -/**\n - * Constant: OpenLayers.Format.Context.serviceTypes\n - * Enumeration for service types\n - */\n -OpenLayers.Format.Context.serviceTypes = {\n - "WMS": "urn:ogc:serviceType:WMS",\n - "WFS": "urn:ogc:serviceType:WFS",\n - "WCS": "urn:ogc:serviceType:WCS",\n - "GML": "urn:ogc:serviceType:GML",\n - "SLD": "urn:ogc:serviceType:SLD",\n - "FES": "urn:ogc:serviceType:FES",\n - "KML": "urn:ogc:serviceType:KML"\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>11931</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter.js.xml deleted file mode 100644 index 731d43205126c89030d099094f7a41403ee33144..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter.js.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Filter.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML/VersionedOGC.js\n - * @requires OpenLayers/Filter/FeatureId.js\n - * @requires OpenLayers/Filter/Logical.js\n - * @requires OpenLayers/Filter/Comparison.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.Filter\n - * Read/Wite ogc:Filter. Create a new instance with the <OpenLayers.Format.Filter>\n - * constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML.VersionedOGC>\n - */\n -OpenLayers.Format.Filter = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {\n - \n - /**\n - * APIProperty: defaultVersion\n - * {String} Version number to assume if none found. Default is "1.0.0".\n - */\n - defaultVersion: "1.0.0",\n - \n - /**\n - * APIMethod: write\n - * Write an ogc:Filter given a filter object.\n - *\n - * Parameters:\n - * filter - {<OpenLayers.Filter>} An filter.\n - * options - {Object} Optional configuration object.\n - *\n - * Returns:\n - * {Elment} An ogc:Filter element node.\n - */\n - \n - /**\n - * APIMethod: read\n - * Read and Filter doc and return an object representing the Filter.\n - *\n - * Parameters:\n - * data - {String | DOMElement} Data to read.\n - *\n - * Returns:\n - * {<OpenLayers.Filter>} A filter object.\n - */\n -\n - CLASS_NAME: "OpenLayers.Format.Filter" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1505</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter.xml deleted file mode 100644 index 3694c48cae64de594092b8a8530d3b1d6b66d90f..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Filter</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/Filter</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter/v1.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter/v1.js.xml deleted file mode 100644 index 4fce46760ec08088fc3b52400f39f08309fd7d23..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter/v1.js.xml +++ /dev/null @@ -1,537 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.99</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -/**\n - * @requires OpenLayers/Format/Filter.js\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Filter/Function.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.Filter.v1\n - * Superclass for Filter version 1 parsers.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.Filter.v1 = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - ogc: "http://www.opengis.net/ogc",\n - gml: "http://www.opengis.net/gml",\n - xlink: "http://www.w3.org/1999/xlink",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance"\n - },\n - \n - /**\n - * Property: defaultPrefix\n - */\n - defaultPrefix: "ogc",\n -\n - /**\n - * Property: schemaLocation\n - * {String} Schema location for a particular minor version.\n - */\n - schemaLocation: null,\n - \n - /**\n - * Constructor: OpenLayers.Format.Filter.v1\n - * Instances of this class are not created directly. Use the\n - * <OpenLayers.Format.Filter> constructor instead.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - },\n - \n - /**\n - * Method: read\n - *\n - * Parameters:\n - * data - {DOMElement} A Filter document element.\n - *\n - * Returns:\n - * {<OpenLayers.Filter>} A filter object.\n - */\n - read: function(data) {\n - var obj = {};\n - this.readers.ogc["Filter"].apply(this, [data, obj]);\n - return obj.filter;\n - },\n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "ogc": {\n - "_expression": function(node) {\n - // only the simplest of ogc:expression handled\n - // "some text and an <PropertyName>attribute</PropertyName>"}\n - var obj, value = "";\n - for(var child=node.firstChild; child; child=child.nextSibling) {\n - switch(child.nodeType) {\n - case 1:\n - obj = this.readNode(child);\n - if (obj.property) {\n - value += "${" + obj.property + "}";\n - } else if (obj.value !== undefined) {\n - value += obj.value;\n - }\n - break;\n - case 3: // text node\n - case 4: // cdata section\n - value += child.nodeValue;\n - }\n - }\n - return value;\n - },\n - "Filter": function(node, parent) {\n - // Filters correspond to subclasses of OpenLayers.Filter.\n - // Since they contain information we don\'t persist, we\n - // create a temporary object and then pass on the filter\n - // (ogc:Filter) to the parent obj.\n - var obj = {\n - fids: [],\n - filters: []\n - };\n - this.readChildNodes(node, obj);\n - if(obj.fids.length > 0) {\n - parent.filter = new OpenLayers.Filter.FeatureId({\n - fids: obj.fids\n - });\n - } else if(obj.filters.length > 0) {\n - parent.filter = obj.filters[0];\n - }\n - },\n - "FeatureId": function(node, obj) {\n - var fid = node.getAttribute("fid");\n - if(fid) {\n - obj.fids.push(fid);\n - }\n - },\n - "And": function(node, obj) {\n - var filter = new OpenLayers.Filter.Logical({\n - type: OpenLayers.Filter.Logical.AND\n - });\n - this.readChildNodes(node, filter);\n - obj.filters.push(filter);\n - },\n - "Or": function(node, obj) {\n - var filter = new OpenLayers.Filter.Logical({\n - type: OpenLayers.Filter.Logical.OR\n - });\n - this.readChildNodes(node, filter);\n - obj.filters.push(filter);\n - },\n - "Not": function(node, obj) {\n - var filter = new OpenLayers.Filter.Logical({\n - type: OpenLayers.Filter.Logical.NOT\n - });\n - this.readChildNodes(node, filter);\n - obj.filters.push(filter);\n - },\n - "PropertyIsLessThan": function(node, obj) {\n - var filter = new OpenLayers.Filter.Comparison({\n - type: OpenLayers.Filter.Comparison.LESS_THAN\n - });\n - this.readChildNodes(node, filter);\n - obj.filters.push(filter);\n - },\n - "PropertyIsGreaterThan": function(node, obj) {\n - var filter = new OpenLayers.Filter.Comparison({\n - type: OpenLayers.Filter.Comparison.GREATER_THAN\n - });\n - this.readChildNodes(node, filter);\n - obj.filters.push(filter);\n - },\n - "PropertyIsLessThanOrEqualTo": function(node, obj) {\n - var filter = new OpenLayers.Filter.Comparison({\n - type: OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO\n - });\n - this.readChildNodes(node, filter);\n - obj.filters.push(filter);\n - },\n - "PropertyIsGreaterThanOrEqualTo": function(node, obj) {\n - var filter = new OpenLayers.Filter.Comparison({\n - type: OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO\n - });\n - this.readChildNodes(node, filter);\n - obj.filters.push(filter);\n - },\n - "PropertyIsBetween": function(node, obj) {\n - var filter = new OpenLayers.Filter.Comparison({\n - type: OpenLayers.Filter.Comparison.BETWEEN\n - });\n - this.readChildNodes(node, filter);\n - obj.filters.push(filter);\n - },\n - "Literal": function(node, obj) {\n - obj.value = OpenLayers.String.numericIf(\n - this.getChildValue(node));\n - },\n - "PropertyName": function(node, filter) {\n - filter.property = this.getChildValue(node);\n - },\n - "LowerBoundary": function(node, filter) {\n - filter.lowerBoundary = OpenLayers.String.numericIf(\n - this.readers.ogc._expression.call(this, node));\n - },\n - "UpperBoundary": function(node, filter) {\n - filter.upperBoundary = OpenLayers.String.numericIf(\n - this.readers.ogc._expression.call(this, node));\n - },\n - "Intersects": function(node, obj) {\n - this.readSpatial(node, obj, OpenLayers.Filter.Spatial.INTERSECTS);\n - },\n - "Within": function(node, obj) {\n - this.readSpatial(node, obj, OpenLayers.Filter.Spatial.WITHIN);\n - },\n - "Contains": function(node, obj) {\n - this.readSpatial(node, obj, OpenLayers.Filter.Spatial.CONTAINS);\n - },\n - "DWithin": function(node, obj) {\n - this.readSpatial(node, obj, OpenLayers.Filter.Spatial.DWITHIN);\n - },\n - "Distance": function(node, obj) {\n - obj.distance = parseInt(this.getChildValue(node));\n - obj.distanceUnits = node.getAttribute("units");\n - },\n - "Function": function(node, obj) {\n - //TODO write decoder for it\n - return;\n - }\n - }\n - },\n - \n - /**\n - * Method: readSpatial\n - *\n - * Read a {<OpenLayers.Filter.Spatial>} filter.\n - * \n - * Parameters:\n - * node - {DOMElement} A DOM element that contains an ogc:expression.\n - * obj - {Object} The target object.\n - * type - {String} One of the OpenLayers.Filter.Spatial.* constants.\n - *\n - * Returns:\n - * {<OpenLayers.Filter.Spatial>} The created filter.\n - */\n - readSpatial: function(node, obj, type) {\n - var filter = new OpenLayers.Filter.Spatial({\n - type: type\n - });\n - this.readChildNodes(node, filter);\n - filter.value = filter.components[0];\n - delete filter.components;\n - obj.filters.push(filter);\n - },\n -\n - /**\n - * Method: writeOgcExpression\n - * Limited support for writing OGC expressions. Currently it supports\n - * (<OpenLayers.Filter.Function> || String || Number)\n - *\n - * Parameters:\n - * value - (<OpenLayers.Filter.Function> || String || Number)\n - * node - {DOMElement} A parent DOM element \n - *\n - * Returns:\n - * {DOMElement} Updated node element.\n - */\n - writeOgcExpression: function(value, node) {\n - if(value instanceof OpenLayers.Filter.Function){\n - var child = this.writeNode("Function", value, node);\n - node.appendChild(child);\n - } else {\n - this.writeNode("Literal", value, node);\n - }\n - return node;\n - }, \n - \n - /**\n - * Method: write\n - *\n - * Parameters:\n - * filter - {<OpenLayers.Filter>} A filter object.\n - *\n - * Returns:\n - * {DOMElement} An ogc:Filter element.\n - */\n - write: function(filter) {\n - return this.writers.ogc["Filter"].apply(this, [filter]);\n - },\n - \n - /**\n - * Method: writeFeatureIdNodes\n - * \n - * Parameters:\n - * filter - {<OpenLayers.Filter.FeatureId}\n - * node - {DOMElement}\n - */\n - writeFeatureIdNodes: function(filter, node) {\n - for (var i=0, ii=filter.fids.length; i<ii; ++i) {\n - this.writeNode("FeatureId", filter.fids[i], node);\n - }\n - },\n - \n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "ogc": {\n - "Filter": function(filter) {\n - var node = this.createElementNSPlus("ogc:Filter");\n - if (filter.type === "FID") {\n - OpenLayers.Format.Filter.v1.prototype.writeFeatureIdNodes.call(this, filter, node);\n - } else {\n - this.writeNode(this.getFilterType(filter), filter, node);\n - }\n - return node;\n - },\n - "FeatureId": function(fid) {\n - return this.createElementNSPlus("ogc:FeatureId", {\n - attributes: {fid: fid}\n - });\n - },\n - "And": function(filter) {\n - var node = this.createElementNSPlus("ogc:And");\n - var childFilter;\n - for (var i=0, ii=filter.filters.length; i<ii; ++i) {\n - childFilter = filter.filters[i];\n - if (childFilter.type === "FID") {\n - OpenLayers.Format.Filter.v1.prototype.writeFeatureIdNodes.call(this, childFilter, node);\n - } else {\n - this.writeNode(\n - this.getFilterType(childFilter), childFilter, node\n - );\n - }\n - }\n - return node;\n - },\n - "Or": function(filter) {\n - var node = this.createElementNSPlus("ogc:Or");\n - var childFilter;\n - for (var i=0, ii=filter.filters.length; i<ii; ++i) {\n - childFilter = filter.filters[i];\n - if (childFilter.type === "FID") {\n - OpenLayers.Format.Filter.v1.prototype.writeFeatureIdNodes.call(this, childFilter, node);\n - } else {\n - this.writeNode(\n - this.getFilterType(childFilter), childFilter, node\n - );\n - }\n - }\n - return node;\n - },\n - "Not": function(filter) {\n - var node = this.createElementNSPlus("ogc:Not");\n - var childFilter = filter.filters[0];\n - if (childFilter.type === "FID") {\n - OpenLayers.Format.Filter.v1.prototype.writeFeatureIdNodes.call(this, childFilter, node);\n - } else {\n - this.writeNode(\n - this.getFilterType(childFilter), childFilter, node\n - );\n - }\n - return node;\n - },\n - "PropertyIsLessThan": function(filter) {\n - var node = this.createElementNSPlus("ogc:PropertyIsLessThan");\n - // no ogc:expression handling for PropertyName for now\n - this.writeNode("PropertyName", filter, node);\n - // handle Literals or Functions for now\n - this.writeOgcExpression(filter.value, node);\n - return node;\n - },\n - "PropertyIsGreaterThan": function(filter) {\n - var node = this.createElementNSPlus("ogc:PropertyIsGreaterThan");\n - // no ogc:expression handling for PropertyName for now\n - this.writeNode("PropertyName", filter, node);\n - // handle Literals or Functions for now\n - this.writeOgcExpression(filter.value, node);\n - return node;\n - },\n - "PropertyIsLessThanOrEqualTo": function(filter) {\n - var node = this.createElementNSPlus("ogc:PropertyIsLessThanOrEqualTo");\n - // no ogc:expression handling for PropertyName for now\n - this.writeNode("PropertyName", filter, node);\n - // handle Literals or Functions for now\n - this.writeOgcExpression(filter.value, node);\n - return node;\n - },\n - "PropertyIsGreaterThanOrEqualTo": function(filter) {\n - var node = this.createElementNSPlus("ogc:PropertyIsGreaterThanOrEqualTo");\n - // no ogc:expression handling for PropertyName for now\n - this.writeNode("PropertyName", filter, node);\n - // handle Literals or Functions for now\n - this.writeOgcExpression(filter.value, node);\n - return node;\n - },\n - "PropertyIsBetween": function(filter) {\n - var node = this.createElementNSPlus("ogc:PropertyIsBetween");\n - // no ogc:expression handling for PropertyName for now\n - this.writeNode("PropertyName", filter, node);\n - this.writeNode("LowerBoundary", filter, node);\n - this.writeNode("UpperBoundary", filter, node);\n - return node;\n - },\n - "PropertyName": function(filter) {\n - // no ogc:expression handling for now\n - return this.createElementNSPlus("ogc:PropertyName", {\n - value: filter.property\n - });\n - },\n - "Literal": function(value) {\n - // no ogc:expression handling for now\n - return this.createElementNSPlus("ogc:Literal", {\n - value: value\n - });\n - },\n - "LowerBoundary": function(filter) {\n - // handle Literals or Functions for now\n - var node = this.createElementNSPlus("ogc:LowerBoundary");\n - this.writeOgcExpression(filter.lowerBoundary, node);\n - return node;\n - },\n - "UpperBoundary": function(filter) {\n - // handle Literals or Functions for now\n - var node = this.createElementNSPlus("ogc:UpperBoundary");\n - this.writeNode("Literal", filter.upperBoundary, node);\n - return node;\n - },\n - "INTERSECTS": function(filter) {\n - return this.writeSpatial(filter, "Intersects");\n - },\n - "WITHIN": function(filter) {\n - return this.writeSpatial(filter, "Within");\n - },\n - "CONTAINS": function(filter) {\n - return this.writeSpatial(filter, "Contains");\n - },\n - "DWITHIN": function(filter) {\n - var node = this.writeSpatial(filter, "DWithin");\n - this.writeNode("Distance", filter, node);\n - return node;\n - },\n - "Distance": function(filter) {\n - return this.createElementNSPlus("ogc:Distance", {\n - attributes: {\n - units: filter.distanceUnits\n - },\n - value: filter.distance\n - });\n - },\n - "Function": function(filter) {\n - var node = this.createElementNSPlus("ogc:Function", {\n - attributes: {\n - name: filter.name\n - }\n - });\n - var params = filter.params;\n - for(var i=0, len=params.length; i<len; i++){\n - this.writeOgcExpression(params[i], node);\n - }\n - return node;\n - }\n - }\n - },\n -\n - /**\n - * Method: getFilterType\n - */\n - getFilterType: function(filter) {\n - var filterType = this.filterMap[filter.type];\n - if(!filterType) {\n - throw "Filter writing not supported for rule type: " + filter.type;\n - }\n - return filterType;\n - },\n - \n - /**\n - * Property: filterMap\n - * {Object} Contains a member for each filter type. Values are node names\n - * for corresponding OGC Filter child elements.\n - */\n - filterMap: {\n - "&&": "And",\n - "||": "Or",\n - "!": "Not",\n - "==": "PropertyIsEqualTo",\n - "!=": "PropertyIsNotEqualTo",\n - "<": "PropertyIsLessThan",\n - ">": "PropertyIsGreaterThan",\n - "<=": "PropertyIsLessThanOrEqualTo",\n - ">=": "PropertyIsGreaterThanOrEqualTo",\n - "..": "PropertyIsBetween",\n - "~": "PropertyIsLike",\n - "BBOX": "BBOX",\n - "DWITHIN": "DWITHIN",\n - "WITHIN": "WITHIN",\n - "CONTAINS": "CONTAINS",\n - "INTERSECTS": "INTERSECTS",\n - "FID": "FeatureId"\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.Filter.v1" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>18804</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter/v1_0_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter/v1_0_0.js.xml deleted file mode 100644 index eaf523ef0838395431cc6a6d721096c3ed4cfdbc..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter/v1_0_0.js.xml +++ /dev/null @@ -1,227 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.99</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_0_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/GML/v2.js\n - * @requires OpenLayers/Format/Filter/v1.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.Filter.v1_0_0\n - * Write ogc:Filter version 1.0.0.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.GML.v2>\n - * - <OpenLayers.Format.Filter.v1>\n - */\n -OpenLayers.Format.Filter.v1_0_0 = OpenLayers.Class(\n - OpenLayers.Format.GML.v2, OpenLayers.Format.Filter.v1, {\n - \n - /**\n - * Constant: VERSION\n - * {String} 1.0.0\n - */\n - VERSION: "1.0.0",\n - \n - /**\n - * Property: schemaLocation\n - * {String} http://www.opengis.net/ogc/filter/1.0.0/filter.xsd\n - */\n - schemaLocation: "http://www.opengis.net/ogc/filter/1.0.0/filter.xsd",\n -\n - /**\n - * Constructor: OpenLayers.Format.Filter.v1_0_0\n - * Instances of this class are not created directly. Use the\n - * <OpenLayers.Format.Filter> constructor instead.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.GML.v2.prototype.initialize.apply(\n - this, [options]\n - );\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "ogc": OpenLayers.Util.applyDefaults({\n - "PropertyIsEqualTo": function(node, obj) {\n - var filter = new OpenLayers.Filter.Comparison({\n - type: OpenLayers.Filter.Comparison.EQUAL_TO\n - });\n - this.readChildNodes(node, filter);\n - obj.filters.push(filter);\n - },\n - "PropertyIsNotEqualTo": function(node, obj) {\n - var filter = new OpenLayers.Filter.Comparison({\n - type: OpenLayers.Filter.Comparison.NOT_EQUAL_TO\n - });\n - this.readChildNodes(node, filter);\n - obj.filters.push(filter);\n - },\n - "PropertyIsLike": function(node, obj) {\n - var filter = new OpenLayers.Filter.Comparison({\n - type: OpenLayers.Filter.Comparison.LIKE\n - });\n - this.readChildNodes(node, filter);\n - var wildCard = node.getAttribute("wildCard");\n - var singleChar = node.getAttribute("singleChar");\n - var esc = node.getAttribute("escape");\n - filter.value2regex(wildCard, singleChar, esc);\n - obj.filters.push(filter);\n - }\n - }, OpenLayers.Format.Filter.v1.prototype.readers["ogc"]),\n - "gml": OpenLayers.Format.GML.v2.prototype.readers["gml"],\n - "feature": OpenLayers.Format.GML.v2.prototype.readers["feature"] \n - },\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "ogc": OpenLayers.Util.applyDefaults({\n - "PropertyIsEqualTo": function(filter) {\n - var node = this.createElementNSPlus("ogc:PropertyIsEqualTo");\n - // no ogc:expression handling for PropertyName for now\n - this.writeNode("PropertyName", filter, node);\n - // handle Literals or Functions for now\n - this.writeOgcExpression(filter.value, node);\n - return node;\n - },\n - "PropertyIsNotEqualTo": function(filter) {\n - var node = this.createElementNSPlus("ogc:PropertyIsNotEqualTo");\n - // no ogc:expression handling for PropertyName for now\n - this.writeNode("PropertyName", filter, node);\n - // handle Literals or Functions for now\n - this.writeOgcExpression(filter.value, node);\n - return node;\n - },\n - "PropertyIsLike": function(filter) {\n - var node = this.createElementNSPlus("ogc:PropertyIsLike", {\n - attributes: {\n - wildCard: "*", singleChar: ".", escape: "!"\n - }\n - });\n - // no ogc:expression handling for now\n - this.writeNode("PropertyName", filter, node);\n - // convert regex string to ogc string\n - this.writeNode("Literal", filter.regex2value(), node);\n - return node;\n - },\n - "BBOX": function(filter) {\n - var node = this.createElementNSPlus("ogc:BBOX");\n - // PropertyName is mandatory in 1.0.0, but e.g. GeoServer also\n - // accepts filters without it. When this is used with\n - // OpenLayers.Protocol.WFS, OpenLayers.Format.WFST will set a\n - // missing filter.property to the geometryName that is\n - // configured with the protocol, which defaults to "the_geom".\n - // So the only way to omit this mandatory property is to not\n - // set the property on the filter and to set the geometryName\n - // on the WFS protocol to null. The latter also happens when\n - // the protocol is configured without a geometryName and a\n - // featureNS.\n - filter.property && this.writeNode("PropertyName", filter, node);\n - var box = this.writeNode("gml:Box", filter.value, node);\n - if(filter.projection) {\n - box.setAttribute("srsName", filter.projection);\n - }\n - return node;\n - }\n - }, OpenLayers.Format.Filter.v1.prototype.writers["ogc"]),\n - "gml": OpenLayers.Format.GML.v2.prototype.writers["gml"],\n - "feature": OpenLayers.Format.GML.v2.prototype.writers["feature"]\n - },\n -\n - /**\n - * Method: writeSpatial\n - *\n - * Read a {<OpenLayers.Filter.Spatial>} filter and converts it into XML.\n - *\n - * Parameters:\n - * filter - {<OpenLayers.Filter.Spatial>} The filter.\n - * name - {String} Name of the generated XML element.\n - *\n - * Returns:\n - * {DOMElement} The created XML element.\n - */\n - writeSpatial: function(filter, name) {\n - var node = this.createElementNSPlus("ogc:"+name);\n - this.writeNode("PropertyName", filter, node);\n - if(filter.value instanceof OpenLayers.Filter.Function) {\n - this.writeNode("Function", filter.value, node);\n - } else {\n - var child;\n - if(filter.value instanceof OpenLayers.Geometry) {\n - child = this.writeNode("feature:_geometry", filter.value).firstChild;\n - } else {\n - child = this.writeNode("gml:Box", filter.value);\n - }\n - if(filter.projection) {\n - child.setAttribute("srsName", filter.projection);\n - }\n - node.appendChild(child);\n - }\n - return node;\n - },\n -\n -\n - CLASS_NAME: "OpenLayers.Format.Filter.v1_0_0" \n -\n -}); - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7390</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter/v1_1_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter/v1_1_0.js.xml deleted file mode 100644 index 437f2bcad7eba1b120029c70b0ba714edf7a2ece..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Filter/v1_1_0.js.xml +++ /dev/null @@ -1,266 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684101.0</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_1_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/Filter/v1.js\n - * @requires OpenLayers/Format/GML/v3.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.Filter.v1_1_0\n - * Write ogc:Filter version 1.1.0.\n - *\n - * Differences from the v1.0.0 parser:\n - * - uses GML v3 instead of GML v2\n - * - reads matchCase attribute on ogc:PropertyIsEqual and\n - * ogc:PropertyIsNotEqual elements.\n - * - writes matchCase attribute from comparison filters of type EQUAL_TO,\n - * NOT_EQUAL_TO and LIKE.\n - * \n - * Inherits from: \n - * - <OpenLayers.Format.GML.v3>\n - * - <OpenLayers.Format.Filter.v1>\n - */\n -OpenLayers.Format.Filter.v1_1_0 = OpenLayers.Class(\n - OpenLayers.Format.GML.v3, OpenLayers.Format.Filter.v1, {\n - \n - /**\n - * Constant: VERSION\n - * {String} 1.1.0\n - */\n - VERSION: "1.1.0",\n - \n - /**\n - * Property: schemaLocation\n - * {String} http://www.opengis.net/ogc/filter/1.1.0/filter.xsd\n - */\n - schemaLocation: "http://www.opengis.net/ogc/filter/1.1.0/filter.xsd",\n -\n - /**\n - * Constructor: OpenLayers.Format.Filter.v1_1_0\n - * Instances of this class are not created directly. Use the\n - * <OpenLayers.Format.Filter> constructor instead.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.GML.v3.prototype.initialize.apply(\n - this, [options]\n - );\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "ogc": OpenLayers.Util.applyDefaults({\n - "PropertyIsEqualTo": function(node, obj) {\n - var matchCase = node.getAttribute("matchCase");\n - var filter = new OpenLayers.Filter.Comparison({\n - type: OpenLayers.Filter.Comparison.EQUAL_TO,\n - matchCase: !(matchCase === "false" || matchCase === "0")\n - });\n - this.readChildNodes(node, filter);\n - obj.filters.push(filter);\n - },\n - "PropertyIsNotEqualTo": function(node, obj) {\n - var matchCase = node.getAttribute("matchCase");\n - var filter = new OpenLayers.Filter.Comparison({\n - type: OpenLayers.Filter.Comparison.NOT_EQUAL_TO,\n - matchCase: !(matchCase === "false" || matchCase === "0")\n - });\n - this.readChildNodes(node, filter);\n - obj.filters.push(filter);\n - },\n - "PropertyIsLike": function(node, obj) {\n - var filter = new OpenLayers.Filter.Comparison({\n - type: OpenLayers.Filter.Comparison.LIKE\n - });\n - this.readChildNodes(node, filter);\n - var wildCard = node.getAttribute("wildCard");\n - var singleChar = node.getAttribute("singleChar");\n - var esc = node.getAttribute("escapeChar");\n - filter.value2regex(wildCard, singleChar, esc);\n - obj.filters.push(filter);\n - }\n - }, OpenLayers.Format.Filter.v1.prototype.readers["ogc"]),\n - "gml": OpenLayers.Format.GML.v3.prototype.readers["gml"],\n - "feature": OpenLayers.Format.GML.v3.prototype.readers["feature"] \n - },\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "ogc": OpenLayers.Util.applyDefaults({\n - "PropertyIsEqualTo": function(filter) {\n - var node = this.createElementNSPlus("ogc:PropertyIsEqualTo", {\n - attributes: {matchCase: filter.matchCase}\n - });\n - // no ogc:expression handling for PropertyName for now\n - this.writeNode("PropertyName", filter, node);\n - // handle Literals or Functions for now\n - this.writeOgcExpression(filter.value, node);\n - return node;\n - },\n - "PropertyIsNotEqualTo": function(filter) {\n - var node = this.createElementNSPlus("ogc:PropertyIsNotEqualTo", {\n - attributes: {matchCase: filter.matchCase}\n - });\n - // no ogc:expression handling for PropertyName for now\n - this.writeNode("PropertyName", filter, node);\n - // handle Literals or Functions for now\n - this.writeOgcExpression(filter.value, node);\n - return node;\n - },\n - "PropertyIsLike": function(filter) {\n - var node = this.createElementNSPlus("ogc:PropertyIsLike", {\n - attributes: {\n - matchCase: filter.matchCase,\n - wildCard: "*", singleChar: ".", escapeChar: "!"\n - }\n - });\n - // no ogc:expression handling for now\n - this.writeNode("PropertyName", filter, node);\n - // convert regex string to ogc string\n - this.writeNode("Literal", filter.regex2value(), node);\n - return node;\n - },\n - "BBOX": function(filter) {\n - var node = this.createElementNSPlus("ogc:BBOX");\n - // PropertyName is optional in 1.1.0\n - filter.property && this.writeNode("PropertyName", filter, node);\n - var box = this.writeNode("gml:Envelope", filter.value);\n - if(filter.projection) {\n - box.setAttribute("srsName", filter.projection);\n - }\n - node.appendChild(box); \n - return node;\n - },\n - "SortBy": function(sortProperties) {\n - var node = this.createElementNSPlus("ogc:SortBy");\n - for (var i=0,l=sortProperties.length;i<l;i++) {\n - this.writeNode(\n - "ogc:SortProperty",\n - sortProperties[i],\n - node\n - );\n - }\n - return node;\n - }, \n - "SortProperty": function(sortProperty) {\n - var node = this.createElementNSPlus("ogc:SortProperty");\n - this.writeNode(\n - "ogc:PropertyName",\n - sortProperty,\n - node\n - );\n - this.writeNode(\n - "ogc:SortOrder",\n - (sortProperty.order == \'DESC\') ? \'DESC\' : \'ASC\',\n - node\n - );\n - return node;\n - },\n - "SortOrder": function(value) {\n - var node = this.createElementNSPlus("ogc:SortOrder", {\n - value: value\n - });\n - return node;\n - }\n - }, OpenLayers.Format.Filter.v1.prototype.writers["ogc"]),\n - "gml": OpenLayers.Format.GML.v3.prototype.writers["gml"],\n - "feature": OpenLayers.Format.GML.v3.prototype.writers["feature"]\n - },\n -\n - /**\n - * Method: writeSpatial\n - *\n - * Read a {<OpenLayers.Filter.Spatial>} filter and converts it into XML.\n - *\n - * Parameters:\n - * filter - {<OpenLayers.Filter.Spatial>} The filter.\n - * name - {String} Name of the generated XML element.\n - *\n - * Returns:\n - * {DOMElement} The created XML element.\n - */\n - writeSpatial: function(filter, name) {\n - var node = this.createElementNSPlus("ogc:"+name);\n - this.writeNode("PropertyName", filter, node);\n - if(filter.value instanceof OpenLayers.Filter.Function) {\n - this.writeNode("Function", filter.value, node);\n - } else {\n - var child;\n - if(filter.value instanceof OpenLayers.Geometry) {\n - child = this.writeNode("feature:_geometry", filter.value).firstChild;\n - } else {\n - child = this.writeNode("gml:Envelope", filter.value);\n - }\n - if(filter.projection) {\n - child.setAttribute("srsName", filter.projection);\n - }\n - node.appendChild(child);\n - }\n - return node;\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.Filter.v1_1_0" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>8704</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML.js.xml deleted file mode 100644 index dd48941ed4a2941dd586b26ac73c70c50c4a5c08..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML.js.xml +++ /dev/null @@ -1,967 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.9</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>GML.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Feature/Vector.js\n - * @requires OpenLayers/Geometry/Point.js\n - * @requires OpenLayers/Geometry/MultiPoint.js\n - * @requires OpenLayers/Geometry/LineString.js\n - * @requires OpenLayers/Geometry/MultiLineString.js\n - * @requires OpenLayers/Geometry/Polygon.js\n - * @requires OpenLayers/Geometry/MultiPolygon.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.GML\n - * Read/Wite GML. Create a new instance with the <OpenLayers.Format.GML>\n - * constructor. Supports the GML simple features profile.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.GML = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * APIProperty: featureNS\n - * {String} Namespace used for feature attributes. Default is\n - * "http://mapserver.gis.umn.edu/mapserver".\n - */\n - featureNS: "http://mapserver.gis.umn.edu/mapserver",\n - \n - /**\n - * APIProperty: featurePrefix\n - * {String} Namespace alias (or prefix) for feature nodes. Default is\n - * "feature".\n - */\n - featurePrefix: "feature",\n - \n - /**\n - * APIProperty: featureName\n - * {String} Element name for features. Default is "featureMember".\n - */\n - featureName: "featureMember", \n - \n - /**\n - * APIProperty: layerName\n - * {String} Name of data layer. Default is "features".\n - */\n - layerName: "features",\n - \n - /**\n - * APIProperty: geometryName\n - * {String} Name of geometry element. Defaults to "geometry".\n - */\n - geometryName: "geometry",\n - \n - /** \n - * APIProperty: collectionName\n - * {String} Name of featureCollection element.\n - */\n - collectionName: "FeatureCollection",\n - \n - /**\n - * APIProperty: gmlns\n - * {String} GML Namespace.\n - */\n - gmlns: "http://www.opengis.net/gml",\n -\n - /**\n - * APIProperty: extractAttributes\n - * {Boolean} Extract attributes from GML.\n - */\n - extractAttributes: true,\n - \n - /**\n - * APIProperty: xy\n - * {Boolean} Order of the GML coordinate true:(x,y) or false:(y,x)\n - * Changing is not recommended, a new Format should be instantiated.\n - */ \n - xy: true,\n - \n - /**\n - * Constructor: OpenLayers.Format.GML\n - * Create a new parser for GML.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - // compile regular expressions once instead of every time they are used\n - this.regExes = {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - };\n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - },\n -\n - /**\n - * APIMethod: read\n - * Read data from a string, and return a list of features. \n - * \n - * Parameters:\n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Feature.Vector>)} An array of features.\n - */\n - read: function(data) {\n - if(typeof data == "string") { \n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - var featureNodes = this.getElementsByTagNameNS(data.documentElement,\n - this.gmlns,\n - this.featureName);\n - var features = [];\n - for(var i=0; i<featureNodes.length; i++) {\n - var feature = this.parseFeature(featureNodes[i]);\n - if(feature) {\n - features.push(feature);\n - }\n - }\n - return features;\n - },\n - \n - /**\n - * Method: parseFeature\n - * This function is the core of the GML parsing code in OpenLayers.\n - * It creates the geometries that are then attached to the returned\n - * feature, and calls parseAttributes() to get attribute data out.\n - * \n - * Parameters:\n - * node - {DOMElement} A GML feature node. \n - */\n - parseFeature: function(node) {\n - // only accept one geometry per feature - look for highest "order"\n - var order = ["MultiPolygon", "Polygon",\n - "MultiLineString", "LineString",\n - "MultiPoint", "Point", "Envelope"];\n - // FIXME: In case we parse a feature with no geometry, but boundedBy an Envelope,\n - // this code creates a geometry derived from the Envelope. This is not correct.\n - var type, nodeList, geometry, parser;\n - for(var i=0; i<order.length; ++i) {\n - type = order[i];\n - nodeList = this.getElementsByTagNameNS(node, this.gmlns, type);\n - if(nodeList.length > 0) {\n - // only deal with first geometry of this type\n - parser = this.parseGeometry[type.toLowerCase()];\n - if(parser) {\n - geometry = parser.apply(this, [nodeList[0]]);\n - if (this.internalProjection && this.externalProjection) {\n - geometry.transform(this.externalProjection, \n - this.internalProjection); \n - } \n - } else {\n - throw new TypeError("Unsupported geometry type: " + type);\n - }\n - // stop looking for different geometry types\n - break;\n - }\n - }\n -\n - var bounds;\n - var boxNodes = this.getElementsByTagNameNS(node, this.gmlns, "Box");\n - for(i=0; i<boxNodes.length; ++i) {\n - var boxNode = boxNodes[i];\n - var box = this.parseGeometry["box"].apply(this, [boxNode]);\n - var parentNode = boxNode.parentNode;\n - var parentName = parentNode.localName ||\n - parentNode.nodeName.split(":").pop();\n - if(parentName === "boundedBy") {\n - bounds = box;\n - } else {\n - geometry = box.toGeometry();\n - }\n - }\n - \n - // construct feature (optionally with attributes)\n - var attributes;\n - if(this.extractAttributes) {\n - attributes = this.parseAttributes(node);\n - }\n - var feature = new OpenLayers.Feature.Vector(geometry, attributes);\n - feature.bounds = bounds;\n - \n - feature.gml = {\n - featureType: node.firstChild.nodeName.split(":")[1],\n - featureNS: node.firstChild.namespaceURI,\n - featureNSPrefix: node.firstChild.prefix\n - };\n - \n - // assign fid - this can come from a "fid" or "id" attribute\n - var childNode = node.firstChild;\n - var fid;\n - while(childNode) {\n - if(childNode.nodeType == 1) {\n - fid = childNode.getAttribute("fid") ||\n - childNode.getAttribute("id");\n - if(fid) {\n - break;\n - }\n - }\n - childNode = childNode.nextSibling;\n - }\n - feature.fid = fid;\n - return feature;\n - },\n - \n - /**\n - * Property: parseGeometry\n - * Properties of this object are the functions that parse geometries based\n - * on their type.\n - */\n - parseGeometry: {\n - \n - /**\n - * Method: parseGeometry.point\n - * Given a GML node representing a point geometry, create an OpenLayers\n - * point geometry.\n - *\n - * Parameters:\n - * node - {DOMElement} A GML node.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.Point>} A point geometry.\n - */\n - point: function(node) {\n - /**\n - * Three coordinate variations to consider:\n - * 1) <gml:pos>x y z</gml:pos>\n - * 2) <gml:coordinates>x, y, z</gml:coordinates>\n - * 3) <gml:coord><gml:X>x</gml:X><gml:Y>y</gml:Y></gml:coord>\n - */\n - var nodeList, coordString;\n - var coords = [];\n -\n - // look for <gml:pos>\n - var nodeList = this.getElementsByTagNameNS(node, this.gmlns, "pos");\n - if(nodeList.length > 0) {\n - coordString = nodeList[0].firstChild.nodeValue;\n - coordString = coordString.replace(this.regExes.trimSpace, "");\n - coords = coordString.split(this.regExes.splitSpace);\n - }\n -\n - // look for <gml:coordinates>\n - if(coords.length == 0) {\n - nodeList = this.getElementsByTagNameNS(node, this.gmlns,\n - "coordinates");\n - if(nodeList.length > 0) {\n - coordString = nodeList[0].firstChild.nodeValue;\n - coordString = coordString.replace(this.regExes.removeSpace,\n - "");\n - coords = coordString.split(",");\n - }\n - }\n -\n - // look for <gml:coord>\n - if(coords.length == 0) {\n - nodeList = this.getElementsByTagNameNS(node, this.gmlns,\n - "coord");\n - if(nodeList.length > 0) {\n - var xList = this.getElementsByTagNameNS(nodeList[0],\n - this.gmlns, "X");\n - var yList = this.getElementsByTagNameNS(nodeList[0],\n - this.gmlns, "Y");\n - if(xList.length > 0 && yList.length > 0) {\n - coords = [xList[0].firstChild.nodeValue,\n - yList[0].firstChild.nodeValue];\n - }\n - }\n - }\n - \n - // preserve third dimension\n - if(coords.length == 2) {\n - coords[2] = null;\n - }\n - \n - if (this.xy) {\n - return new OpenLayers.Geometry.Point(coords[0], coords[1],\n - coords[2]);\n - }\n - else{\n - return new OpenLayers.Geometry.Point(coords[1], coords[0],\n - coords[2]);\n - }\n - },\n - \n - /**\n - * Method: parseGeometry.multipoint\n - * Given a GML node representing a multipoint geometry, create an\n - * OpenLayers multipoint geometry.\n - *\n - * Parameters:\n - * node - {DOMElement} A GML node.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.MultiPoint>} A multipoint geometry.\n - */\n - multipoint: function(node) {\n - var nodeList = this.getElementsByTagNameNS(node, this.gmlns,\n - "Point");\n - var components = [];\n - if(nodeList.length > 0) {\n - var point;\n - for(var i=0; i<nodeList.length; ++i) {\n - point = this.parseGeometry.point.apply(this, [nodeList[i]]);\n - if(point) {\n - components.push(point);\n - }\n - }\n - }\n - return new OpenLayers.Geometry.MultiPoint(components);\n - },\n - \n - /**\n - * Method: parseGeometry.linestring\n - * Given a GML node representing a linestring geometry, create an\n - * OpenLayers linestring geometry.\n - *\n - * Parameters:\n - * node - {DOMElement} A GML node.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.LineString>} A linestring geometry.\n - */\n - linestring: function(node, ring) {\n - /**\n - * Two coordinate variations to consider:\n - * 1) <gml:posList dimension="d">x0 y0 z0 x1 y1 z1</gml:posList>\n - * 2) <gml:coordinates>x0, y0, z0 x1, y1, z1</gml:coordinates>\n - */\n - var nodeList, coordString;\n - var coords = [];\n - var points = [];\n -\n - // look for <gml:posList>\n - nodeList = this.getElementsByTagNameNS(node, this.gmlns, "posList");\n - if(nodeList.length > 0) {\n - coordString = this.getChildValue(nodeList[0]);\n - coordString = coordString.replace(this.regExes.trimSpace, "");\n - coords = coordString.split(this.regExes.splitSpace);\n - var dim = parseInt(nodeList[0].getAttribute("dimension"));\n - var j, x, y, z;\n - for(var i=0; i<coords.length/dim; ++i) {\n - j = i * dim;\n - x = coords[j];\n - y = coords[j+1];\n - z = (dim == 2) ? null : coords[j+2];\n - if (this.xy) {\n - points.push(new OpenLayers.Geometry.Point(x, y, z));\n - } else {\n - points.push(new OpenLayers.Geometry.Point(y, x, z));\n - }\n - }\n - }\n -\n - // look for <gml:coordinates>\n - if(coords.length == 0) {\n - nodeList = this.getElementsByTagNameNS(node, this.gmlns,\n - "coordinates");\n - if(nodeList.length > 0) {\n - coordString = this.getChildValue(nodeList[0]);\n - coordString = coordString.replace(this.regExes.trimSpace,\n - "");\n - coordString = coordString.replace(this.regExes.trimComma,\n - ",");\n - var pointList = coordString.split(this.regExes.splitSpace);\n - for(var i=0; i<pointList.length; ++i) {\n - coords = pointList[i].split(",");\n - if(coords.length == 2) {\n - coords[2] = null;\n - }\n - if (this.xy) {\n - points.push(new OpenLayers.Geometry.Point(coords[0],\n - coords[1],\n - coords[2]));\n - } else {\n - points.push(new OpenLayers.Geometry.Point(coords[1],\n - coords[0],\n - coords[2]));\n - }\n - }\n - }\n - }\n -\n - var line = null;\n - if(points.length != 0) {\n - if(ring) {\n - line = new OpenLayers.Geometry.LinearRing(points);\n - } else {\n - line = new OpenLayers.Geometry.LineString(points);\n - }\n - }\n - return line;\n - },\n - \n - /**\n - * Method: parseGeometry.multilinestring\n - * Given a GML node representing a multilinestring geometry, create an\n - * OpenLayers multilinestring geometry.\n - *\n - * Parameters:\n - * node - {DOMElement} A GML node.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.MultiLineString>} A multilinestring geometry.\n - */\n - multilinestring: function(node) {\n - var nodeList = this.getElementsByTagNameNS(node, this.gmlns,\n - "LineString");\n - var components = [];\n - if(nodeList.length > 0) {\n - var line;\n - for(var i=0; i<nodeList.length; ++i) {\n - line = this.parseGeometry.linestring.apply(this,\n - [nodeList[i]]);\n - if(line) {\n - components.push(line);\n - }\n - }\n - }\n - return new OpenLayers.Geometry.MultiLineString(components);\n - },\n - \n - /**\n - * Method: parseGeometry.polygon\n - * Given a GML node representing a polygon geometry, create an\n - * OpenLayers polygon geometry.\n - *\n - * Parameters:\n - * node - {DOMElement} A GML node.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.Polygon>} A polygon geometry.\n - */\n - polygon: function(node) {\n - var nodeList = this.getElementsByTagNameNS(node, this.gmlns,\n - "LinearRing");\n - var components = [];\n - if(nodeList.length > 0) {\n - // this assumes exterior ring first, inner rings after\n - var ring;\n - for(var i=0; i<nodeList.length; ++i) {\n - ring = this.parseGeometry.linestring.apply(this,\n - [nodeList[i], true]);\n - if(ring) {\n - components.push(ring);\n - }\n - }\n - }\n - return new OpenLayers.Geometry.Polygon(components);\n - },\n - \n - /**\n - * Method: parseGeometry.multipolygon\n - * Given a GML node representing a multipolygon geometry, create an\n - * OpenLayers multipolygon geometry.\n - *\n - * Parameters:\n - * node - {DOMElement} A GML node.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.MultiPolygon>} A multipolygon geometry.\n - */\n - multipolygon: function(node) {\n - var nodeList = this.getElementsByTagNameNS(node, this.gmlns,\n - "Polygon");\n - var components = [];\n - if(nodeList.length > 0) {\n - var polygon;\n - for(var i=0; i<nodeList.length; ++i) {\n - polygon = this.parseGeometry.polygon.apply(this,\n - [nodeList[i]]);\n - if(polygon) {\n - components.push(polygon);\n - }\n - }\n - }\n - return new OpenLayers.Geometry.MultiPolygon(components);\n - },\n - \n - envelope: function(node) {\n - var components = [];\n - var coordString;\n - var envelope;\n - \n - var lpoint = this.getElementsByTagNameNS(node, this.gmlns, "lowerCorner");\n - if (lpoint.length > 0) {\n - var coords = [];\n - \n - if(lpoint.length > 0) {\n - coordString = lpoint[0].firstChild.nodeValue;\n - coordString = coordString.replace(this.regExes.trimSpace, "");\n - coords = coordString.split(this.regExes.splitSpace);\n - }\n - \n - if(coords.length == 2) {\n - coords[2] = null;\n - }\n - if (this.xy) {\n - var lowerPoint = new OpenLayers.Geometry.Point(coords[0], coords[1],coords[2]);\n - } else {\n - var lowerPoint = new OpenLayers.Geometry.Point(coords[1], coords[0],coords[2]);\n - }\n - }\n - \n - var upoint = this.getElementsByTagNameNS(node, this.gmlns, "upperCorner");\n - if (upoint.length > 0) {\n - var coords = [];\n - \n - if(upoint.length > 0) {\n - coordString = upoint[0].firstChild.nodeValue;\n - coordString = coordString.replace(this.regExes.trimSpace, "");\n - coords = coordString.split(this.regExes.splitSpace);\n - }\n - \n - if(coords.length == 2) {\n - coords[2] = null;\n - }\n - if (this.xy) {\n - var upperPoint = new OpenLayers.Geometry.Point(coords[0], coords[1],coords[2]);\n - } else {\n - var upperPoint = new OpenLayers.Geometry.Point(coords[1], coords[0],coords[2]);\n - }\n - }\n - \n - if (lowerPoint && upperPoint) {\n - components.push(new OpenLayers.Geometry.Point(lowerPoint.x, lowerPoint.y));\n - components.push(new OpenLayers.Geometry.Point(upperPoint.x, lowerPoint.y));\n - components.push(new OpenLayers.Geometry.Point(upperPoint.x, upperPoint.y));\n - components.push(new OpenLayers.Geometry.Point(lowerPoint.x, upperPoint.y));\n - components.push(new OpenLayers.Geometry.Point(lowerPoint.x, lowerPoint.y));\n - \n - var ring = new OpenLayers.Geometry.LinearRing(components);\n - envelope = new OpenLayers.Geometry.Polygon([ring]);\n - }\n - return envelope; \n - },\n -\n - /**\n - * Method: parseGeometry.box\n - * Given a GML node representing a box geometry, create an\n - * OpenLayers.Bounds.\n - *\n - * Parameters:\n - * node - {DOMElement} A GML node.\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>} A bounds representing the box.\n - */\n - box: function(node) {\n - var nodeList = this.getElementsByTagNameNS(node, this.gmlns,\n - "coordinates");\n - var coordString;\n - var coords, beginPoint = null, endPoint = null;\n - if (nodeList.length > 0) {\n - coordString = nodeList[0].firstChild.nodeValue;\n - coords = coordString.split(" ");\n - if (coords.length == 2) {\n - beginPoint = coords[0].split(",");\n - endPoint = coords[1].split(",");\n - }\n - }\n - if (beginPoint !== null && endPoint !== null) {\n - return new OpenLayers.Bounds(parseFloat(beginPoint[0]),\n - parseFloat(beginPoint[1]),\n - parseFloat(endPoint[0]),\n - parseFloat(endPoint[1]) );\n - }\n - }\n - \n - },\n - \n - /**\n - * Method: parseAttributes\n - *\n - * Parameters:\n - * node - {DOMElement}\n - *\n - * Returns:\n - * {Object} An attributes object.\n - */\n - parseAttributes: function(node) {\n - var attributes = {};\n - // assume attributes are children of the first type 1 child\n - var childNode = node.firstChild;\n - var children, i, child, grandchildren, grandchild, name, value;\n - while(childNode) {\n - if(childNode.nodeType == 1) {\n - // attributes are type 1 children with one type 3 child\n - children = childNode.childNodes;\n - for(i=0; i<children.length; ++i) {\n - child = children[i];\n - if(child.nodeType == 1) {\n - grandchildren = child.childNodes;\n - if(grandchildren.length == 1) {\n - grandchild = grandchildren[0];\n - if(grandchild.nodeType == 3 ||\n - grandchild.nodeType == 4) {\n - name = (child.prefix) ?\n - child.nodeName.split(":")[1] :\n - child.nodeName;\n - value = grandchild.nodeValue.replace(\n - this.regExes.trimSpace, "");\n - attributes[name] = value;\n - }\n - } else {\n - // If child has no childNodes (grandchildren),\n - // set an attribute with null value.\n - // e.g. <prefix:fieldname/> becomes\n - // {fieldname: null}\n - attributes[child.nodeName.split(":").pop()] = null;\n - }\n - }\n - }\n - break;\n - }\n - childNode = childNode.nextSibling;\n - }\n - return attributes;\n - },\n - \n - /**\n - * APIMethod: write\n - * Generate a GML document string given a list of features. \n - * \n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)} List of features to\n - * serialize into a string.\n - *\n - * Returns:\n - * {String} A string representing the GML document.\n - */\n - write: function(features) {\n - if(!(OpenLayers.Util.isArray(features))) {\n - features = [features];\n - }\n - var gml = this.createElementNS("http://www.opengis.net/wfs",\n - "wfs:" + this.collectionName);\n - for(var i=0; i<features.length; i++) {\n - gml.appendChild(this.createFeatureXML(features[i]));\n - }\n - return OpenLayers.Format.XML.prototype.write.apply(this, [gml]);\n - },\n -\n - /** \n - * Method: createFeatureXML\n - * Accept an OpenLayers.Feature.Vector, and build a GML node for it.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} The feature to be built as GML.\n - *\n - * Returns:\n - * {DOMElement} A node reprensting the feature in GML.\n - */\n - createFeatureXML: function(feature) {\n - var geometry = feature.geometry;\n - var geometryNode = this.buildGeometryNode(geometry);\n - var geomContainer = this.createElementNS(this.featureNS,\n - this.featurePrefix + ":" +\n - this.geometryName);\n - geomContainer.appendChild(geometryNode);\n - var featureNode = this.createElementNS(this.gmlns,\n - "gml:" + this.featureName);\n - var featureContainer = this.createElementNS(this.featureNS,\n - this.featurePrefix + ":" +\n - this.layerName);\n - var fid = feature.fid || feature.id;\n - featureContainer.setAttribute("fid", fid);\n - featureContainer.appendChild(geomContainer);\n - for(var attr in feature.attributes) {\n - var attrText = this.createTextNode(feature.attributes[attr]); \n - var nodename = attr.substring(attr.lastIndexOf(":") + 1);\n - var attrContainer = this.createElementNS(this.featureNS,\n - this.featurePrefix + ":" +\n - nodename);\n - attrContainer.appendChild(attrText);\n - featureContainer.appendChild(attrContainer);\n - } \n - featureNode.appendChild(featureContainer);\n - return featureNode;\n - },\n - \n - /**\n - * APIMethod: buildGeometryNode\n - */\n - buildGeometryNode: function(geometry) {\n - if (this.externalProjection && this.internalProjection) {\n - geometry = geometry.clone();\n - geometry.transform(this.internalProjection, \n - this.externalProjection);\n - } \n - var className = geometry.CLASS_NAME;\n - var type = className.substring(className.lastIndexOf(".") + 1);\n - var builder = this.buildGeometry[type.toLowerCase()];\n - return builder.apply(this, [geometry]);\n - },\n -\n - /**\n - * Property: buildGeometry\n - * Object containing methods to do the actual geometry node building\n - * based on geometry type.\n - */\n - buildGeometry: {\n - // TBD retrieve the srs from layer\n - // srsName is non-standard, so not including it until it\'s right.\n - // gml.setAttribute("srsName",\n - // "http://www.opengis.net/gml/srs/epsg.xml#4326");\n -\n - /**\n - * Method: buildGeometry.point\n - * Given an OpenLayers point geometry, create a GML point.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.Point>} A point geometry.\n - *\n - * Returns:\n - * {DOMElement} A GML point node.\n - */\n - point: function(geometry) {\n - var gml = this.createElementNS(this.gmlns, "gml:Point");\n - gml.appendChild(this.buildCoordinatesNode(geometry));\n - return gml;\n - },\n - \n - /**\n - * Method: buildGeometry.multipoint\n - * Given an OpenLayers multipoint geometry, create a GML multipoint.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.MultiPoint>} A multipoint geometry.\n - *\n - * Returns:\n - * {DOMElement} A GML multipoint node.\n - */\n - multipoint: function(geometry) {\n - var gml = this.createElementNS(this.gmlns, "gml:MultiPoint");\n - var points = geometry.components;\n - var pointMember, pointGeom;\n - for(var i=0; i<points.length; i++) { \n - pointMember = this.createElementNS(this.gmlns,\n - "gml:pointMember");\n - pointGeom = this.buildGeometry.point.apply(this,\n - [points[i]]);\n - pointMember.appendChild(pointGeom);\n - gml.appendChild(pointMember);\n - }\n - return gml; \n - },\n - \n - /**\n - * Method: buildGeometry.linestring\n - * Given an OpenLayers linestring geometry, create a GML linestring.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.LineString>} A linestring geometry.\n - *\n - * Returns:\n - * {DOMElement} A GML linestring node.\n - */\n - linestring: function(geometry) {\n - var gml = this.createElementNS(this.gmlns, "gml:LineString");\n - gml.appendChild(this.buildCoordinatesNode(geometry));\n - return gml;\n - },\n - \n - /**\n - * Method: buildGeometry.multilinestring\n - * Given an OpenLayers multilinestring geometry, create a GML\n - * multilinestring.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.MultiLineString>} A multilinestring\n - * geometry.\n - *\n - * Returns:\n - * {DOMElement} A GML multilinestring node.\n - */\n - multilinestring: function(geometry) {\n - var gml = this.createElementNS(this.gmlns, "gml:MultiLineString");\n - var lines = geometry.components;\n - var lineMember, lineGeom;\n - for(var i=0; i<lines.length; ++i) {\n - lineMember = this.createElementNS(this.gmlns,\n - "gml:lineStringMember");\n - lineGeom = this.buildGeometry.linestring.apply(this,\n - [lines[i]]);\n - lineMember.appendChild(lineGeom);\n - gml.appendChild(lineMember);\n - }\n - return gml;\n - },\n - \n - /**\n - * Method: buildGeometry.linearring\n - * Given an OpenLayers linearring geometry, create a GML linearring.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.LinearRing>} A linearring geometry.\n - *\n - * Returns:\n - * {DOMElement} A GML linearring node.\n - */\n - linearring: function(geometry) {\n - var gml = this.createElementNS(this.gmlns, "gml:LinearRing");\n - gml.appendChild(this.buildCoordinatesNode(geometry));\n - return gml;\n - },\n - \n - /**\n - * Method: buildGeometry.polygon\n - * Given an OpenLayers polygon geometry, create a GML polygon.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.Polygon>} A polygon geometry.\n - *\n - * Returns:\n - * {DOMElement} A GML polygon node.\n - */\n - polygon: function(geometry) {\n - var gml = this.createElementNS(this.gmlns, "gml:Polygon");\n - var rings = geometry.components;\n - var ringMember, ringGeom, type;\n - for(var i=0; i<rings.length; ++i) {\n - type = (i==0) ? "outerBoundaryIs" : "innerBoundaryIs";\n - ringMember = this.createElementNS(this.gmlns,\n - "gml:" + type);\n - ringGeom = this.buildGeometry.linearring.apply(this,\n - [rings[i]]);\n - ringMember.appendChild(ringGeom);\n - gml.appendChild(ringMember);\n - }\n - return gml;\n - },\n - \n - /**\n - * Method: buildGeometry.multipolygon\n - * Given an OpenLayers multipolygon geometry, create a GML multipolygon.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.MultiPolygon>} A multipolygon\n - * geometry.\n - *\n - * Returns:\n - * {DOMElement} A GML multipolygon node.\n - */\n - multipolygon: function(geometry) {\n - var gml = this.createElementNS(this.gmlns, "gml:MultiPolygon");\n - var polys = geometry.components;\n - var polyMember, polyGeom;\n - for(var i=0; i<polys.length; ++i) {\n - polyMember = this.createElementNS(this.gmlns,\n - "gml:polygonMember");\n - polyGeom = this.buildGeometry.polygon.apply(this,\n - [polys[i]]);\n - polyMember.appendChild(polyGeom);\n - gml.appendChild(polyMember);\n - }\n - return gml;\n -\n - },\n - \n - /**\n - * Method: buildGeometry.bounds\n - * Given an OpenLayers bounds, create a GML box.\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Geometry.Bounds>} A bounds object.\n - *\n - * Returns:\n - * {DOMElement} A GML box node.\n - */\n - bounds: function(bounds) {\n - var gml = this.createElementNS(this.gmlns, "gml:Box");\n - gml.appendChild(this.buildCoordinatesNode(bounds));\n - return gml;\n - }\n - },\n -\n - /**\n - * Method: buildCoordinates\n - * builds the coordinates XmlNode\n - * (code)\n - * <gml:coordinates decimal="." cs="," ts=" ">...</gml:coordinates>\n - * (end)\n - *\n - * Parameters: \n - * geometry - {<OpenLayers.Geometry>} \n - *\n - * Returns:\n - * {XmlNode} created xmlNode\n - */\n - buildCoordinatesNode: function(geometry) {\n - var coordinatesNode = this.createElementNS(this.gmlns,\n - "gml:coordinates");\n - coordinatesNode.setAttribute("decimal", ".");\n - coordinatesNode.setAttribute("cs", ",");\n - coordinatesNode.setAttribute("ts", " ");\n -\n - var parts = [];\n -\n - if(geometry instanceof OpenLayers.Bounds){\n - parts.push(geometry.left + "," + geometry.bottom);\n - parts.push(geometry.right + "," + geometry.top);\n - } else {\n - var points = (geometry.components) ? geometry.components : [geometry];\n - for(var i=0; i<points.length; i++) {\n - parts.push(points[i].x + "," + points[i].y); \n - } \n - }\n -\n - var txtNode = this.createTextNode(parts.join(" "));\n - coordinatesNode.appendChild(txtNode);\n - \n - return coordinatesNode;\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.GML" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>35433</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML.xml deleted file mode 100644 index 91395ff55c81bba42677af0a71a820027cf10f28..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>GML</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/GML</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML/Base.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML/Base.js.xml deleted file mode 100644 index 51aab0835f143041a84908e95eca493956e857ca..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML/Base.js.xml +++ /dev/null @@ -1,679 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.97</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Base.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Format/GML.js\n - */\n -\n -/**\n - * Though required in the full build, if the GML format is excluded, we set\n - * the namespace here.\n - */\n -if(!OpenLayers.Format.GML) {\n - OpenLayers.Format.GML = {};\n -}\n -\n -/**\n - * Class: OpenLayers.Format.GML.Base\n - * Superclass for GML parsers.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.GML.Base = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - gml: "http://www.opengis.net/gml",\n - xlink: "http://www.w3.org/1999/xlink",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance",\n - wfs: "http://www.opengis.net/wfs" // this is a convenience for reading wfs:FeatureCollection\n - },\n - \n - /**\n - * Property: defaultPrefix\n - */\n - defaultPrefix: "gml",\n -\n - /**\n - * Property: schemaLocation\n - * {String} Schema location for a particular minor version.\n - */\n - schemaLocation: null,\n - \n - /**\n - * APIProperty: featureType\n - * {Array(String) or String} The local (without prefix) feature typeName(s).\n - */\n - featureType: null,\n - \n - /**\n - * APIProperty: featureNS\n - * {String} The feature namespace. Must be set in the options at\n - * construction.\n - */\n - featureNS: null,\n -\n - /**\n - * APIProperty: geometry\n - * {String} Name of geometry element. Defaults to "geometry". If null, it\n - * will be set on <read> when the first geometry is parsed.\n - */\n - geometryName: "geometry",\n -\n - /**\n - * APIProperty: extractAttributes\n - * {Boolean} Extract attributes from GML. Default is true.\n - */\n - extractAttributes: true,\n - \n - /**\n - * APIProperty: srsName\n - * {String} URI for spatial reference system. This is optional for\n - * single part geometries and mandatory for collections and multis.\n - * If set, the srsName attribute will be written for all geometries.\n - * Default is null.\n - */\n - srsName: null,\n -\n - /**\n - * APIProperty: xy\n - * {Boolean} Order of the GML coordinate true:(x,y) or false:(y,x)\n - * Changing is not recommended, a new Format should be instantiated.\n - */ \n - xy: true,\n -\n - /**\n - * Property: geometryTypes\n - * {Object} Maps OpenLayers geometry class names to GML element names.\n - * Use <setGeometryTypes> before accessing this property.\n - */\n - geometryTypes: null,\n -\n - /**\n - * Property: singleFeatureType\n - * {Boolean} True if there is only 1 featureType, and not an array\n - * of featuretypes.\n - */\n - singleFeatureType: null,\n - \n - /**\n - * Property: autoConfig\n - * {Boolean} Indicates if the format was configured without a <featureNS>,\n - * but auto-configured <featureNS> and <featureType> during read.\n - * Subclasses making use of <featureType> auto-configuration should make\n - * the first call to the <readNode> method (usually in the read method)\n - * with true as 3rd argument, so the auto-configured featureType can be\n - * reset and the format can be reused for subsequent reads with data from\n - * different featureTypes. Set to false after read if you want to keep the\n - * auto-configured values.\n - */\n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g),\n - featureMember: (/^(.*:)?featureMembers?$/)\n - },\n -\n - /**\n - * Constructor: OpenLayers.Format.GML.Base\n - * Instances of this class are not created directly. Use the\n - * <OpenLayers.Format.GML.v2> or <OpenLayers.Format.GML.v3> constructor\n - * instead.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - *\n - * Valid options properties:\n - * featureType - {Array(String) or String} Local (without prefix) feature \n - * typeName(s) (required for write).\n - * featureNS - {String} Feature namespace (required for write).\n - * geometryName - {String} Geometry element name (required for write).\n - */\n - initialize: function(options) {\n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - this.setGeometryTypes();\n - if(options && options.featureNS) {\n - this.setNamespace("feature", options.featureNS);\n - }\n - this.singleFeatureType = !options || (typeof options.featureType === "string");\n - },\n - \n - /**\n - * Method: read\n - *\n - * Parameters:\n - * data - {DOMElement} A gml:featureMember element, a gml:featureMembers\n - * element, or an element containing either of the above at any level.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Feature.Vector>)} An array of features.\n - */\n - read: function(data) {\n - if(typeof data == "string") { \n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n - var features = [];\n - this.readNode(data, {features: features}, true);\n - if(features.length == 0) {\n - // look for gml:featureMember elements\n - var elements = this.getElementsByTagNameNS(\n - data, this.namespaces.gml, "featureMember"\n - );\n - if(elements.length) {\n - for(var i=0, len=elements.length; i<len; ++i) {\n - this.readNode(elements[i], {features: features}, true);\n - }\n - } else {\n - // look for gml:featureMembers elements (this is v3, but does no harm here)\n - var elements = this.getElementsByTagNameNS(\n - data, this.namespaces.gml, "featureMembers"\n - );\n - if(elements.length) {\n - // there can be only one\n - this.readNode(elements[0], {features: features}, true);\n - }\n - }\n - }\n - return features;\n - },\n - \n - /**\n - * Method: readNode\n - * Shorthand for applying one of the named readers given the node\n - * namespace and local name. Readers take two args (node, obj) and\n - * generally extend or modify the second.\n - *\n - * Parameters:\n - * node - {DOMElement} The node to be read (required).\n - * obj - {Object} The object to be modified (optional).\n - * first - {Boolean} Should be set to true for the first node read. This\n - * is usually the readNode call in the read method. Without this being\n - * set, auto-configured properties will stick on subsequent reads.\n - *\n - * Returns:\n - * {Object} The input object, modified (or a new one if none was provided).\n - */\n - readNode: function(node, obj, first) {\n - // on subsequent calls of format.read(), we want to reset auto-\n - // configured properties and auto-configure again.\n - if (first === true && this.autoConfig === true) {\n - this.featureType = null;\n - delete this.namespaceAlias[this.featureNS];\n - delete this.namespaces["feature"];\n - this.featureNS = null;\n - }\n - // featureType auto-configuration\n - if (!this.featureNS && (!(node.prefix in this.namespaces) &&\n - node.parentNode.namespaceURI == this.namespaces["gml"] &&\n - this.regExes.featureMember.test(node.parentNode.nodeName))) {\n - this.featureType = node.nodeName.split(":").pop();\n - this.setNamespace("feature", node.namespaceURI);\n - this.featureNS = node.namespaceURI;\n - this.autoConfig = true;\n - }\n - return OpenLayers.Format.XML.prototype.readNode.apply(this, [node, obj]);\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "gml": {\n - "featureMember": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "featureMembers": function(node, obj) {\n - this.readChildNodes(node, obj); \n - },\n - "name": function(node, obj) {\n - obj.name = this.getChildValue(node);\n - },\n - "boundedBy": function(node, obj) {\n - var container = {};\n - this.readChildNodes(node, container);\n - if(container.components && container.components.length > 0) {\n - obj.bounds = container.components[0];\n - }\n - },\n - "Point": function(node, container) {\n - var obj = {points: []};\n - this.readChildNodes(node, obj);\n - if(!container.components) {\n - container.components = [];\n - }\n - container.components.push(obj.points[0]);\n - },\n - "coordinates": function(node, obj) {\n - var str = this.getChildValue(node).replace(\n - this.regExes.trimSpace, ""\n - );\n - str = str.replace(this.regExes.trimComma, ",");\n - var pointList = str.split(this.regExes.splitSpace);\n - var coords;\n - var numPoints = pointList.length;\n - var points = new Array(numPoints);\n - for(var i=0; i<numPoints; ++i) {\n - coords = pointList[i].split(",");\n - if (this.xy) {\n - points[i] = new OpenLayers.Geometry.Point(\n - coords[0], coords[1], coords[2]\n - );\n - } else {\n - points[i] = new OpenLayers.Geometry.Point(\n - coords[1], coords[0], coords[2]\n - );\n - }\n - }\n - obj.points = points;\n - },\n - "coord": function(node, obj) {\n - var coord = {};\n - this.readChildNodes(node, coord);\n - if(!obj.points) {\n - obj.points = [];\n - }\n - obj.points.push(new OpenLayers.Geometry.Point(\n - coord.x, coord.y, coord.z\n - ));\n - },\n - "X": function(node, coord) {\n - coord.x = this.getChildValue(node);\n - },\n - "Y": function(node, coord) {\n - coord.y = this.getChildValue(node);\n - },\n - "Z": function(node, coord) {\n - coord.z = this.getChildValue(node);\n - },\n - "MultiPoint": function(node, container) {\n - var obj = {components: []};\n - this.readChildNodes(node, obj);\n - container.components = [\n - new OpenLayers.Geometry.MultiPoint(obj.components)\n - ];\n - },\n - "pointMember": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "LineString": function(node, container) {\n - var obj = {};\n - this.readChildNodes(node, obj);\n - if(!container.components) {\n - container.components = [];\n - }\n - container.components.push(\n - new OpenLayers.Geometry.LineString(obj.points)\n - );\n - },\n - "MultiLineString": function(node, container) {\n - var obj = {components: []};\n - this.readChildNodes(node, obj);\n - container.components = [\n - new OpenLayers.Geometry.MultiLineString(obj.components)\n - ];\n - },\n - "lineStringMember": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "Polygon": function(node, container) {\n - var obj = {outer: null, inner: []};\n - this.readChildNodes(node, obj);\n - obj.inner.unshift(obj.outer);\n - if(!container.components) {\n - container.components = [];\n - }\n - container.components.push(\n - new OpenLayers.Geometry.Polygon(obj.inner)\n - );\n - },\n - "LinearRing": function(node, obj) {\n - var container = {};\n - this.readChildNodes(node, container);\n - obj.components = [new OpenLayers.Geometry.LinearRing(\n - container.points\n - )];\n - },\n - "MultiPolygon": function(node, container) {\n - var obj = {components: []};\n - this.readChildNodes(node, obj);\n - container.components = [\n - new OpenLayers.Geometry.MultiPolygon(obj.components)\n - ];\n - },\n - "polygonMember": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "GeometryCollection": function(node, container) {\n - var obj = {components: []};\n - this.readChildNodes(node, obj);\n - container.components = [\n - new OpenLayers.Geometry.Collection(obj.components)\n - ];\n - },\n - "geometryMember": function(node, obj) {\n - this.readChildNodes(node, obj);\n - }\n - },\n - "feature": {\n - "*": function(node, obj) {\n - // The node can either be named like the featureType, or it\n - // can be a child of the feature:featureType. Children can be\n - // geometry or attributes.\n - var name;\n - var local = node.localName || node.nodeName.split(":").pop();\n - // Since an attribute can have the same name as the feature type\n - // we only want to read the node as a feature if the parent\n - // node can have feature nodes as children. In this case, the\n - // obj.features property is set.\n - if (obj.features) {\n - if (!this.singleFeatureType &&\n - (OpenLayers.Util.indexOf(this.featureType, local) !== -1)) {\n - name = "_typeName";\n - } else if(local === this.featureType) {\n - name = "_typeName";\n - }\n - } else {\n - // Assume attribute elements have one child node and that the child\n - // is a text node. Otherwise assume it is a geometry node.\n - if(node.childNodes.length == 0 ||\n - (node.childNodes.length == 1 && node.firstChild.nodeType == 3)) {\n - if(this.extractAttributes) {\n - name = "_attribute";\n - }\n - } else {\n - name = "_geometry";\n - }\n - }\n - if(name) {\n - this.readers.feature[name].apply(this, [node, obj]);\n - }\n - },\n - "_typeName": function(node, obj) {\n - var container = {components: [], attributes: {}};\n - this.readChildNodes(node, container);\n - // look for common gml namespaced elements\n - if(container.name) {\n - container.attributes.name = container.name;\n - }\n - var feature = new OpenLayers.Feature.Vector(\n - container.components[0], container.attributes\n - );\n - if (!this.singleFeatureType) {\n - feature.type = node.nodeName.split(":").pop();\n - feature.namespace = node.namespaceURI;\n - }\n - var fid = node.getAttribute("fid") ||\n - this.getAttributeNS(node, this.namespaces["gml"], "id");\n - if(fid) {\n - feature.fid = fid;\n - }\n - if(this.internalProjection && this.externalProjection &&\n - feature.geometry) {\n - feature.geometry.transform(\n - this.externalProjection, this.internalProjection\n - );\n - }\n - if(container.bounds) {\n - feature.bounds = container.bounds;\n - }\n - obj.features.push(feature);\n - },\n - "_geometry": function(node, obj) {\n - if (!this.geometryName) {\n - this.geometryName = node.nodeName.split(":").pop();\n - }\n - this.readChildNodes(node, obj);\n - },\n - "_attribute": function(node, obj) {\n - var local = node.localName || node.nodeName.split(":").pop();\n - var value = this.getChildValue(node);\n - obj.attributes[local] = value;\n - }\n - },\n - "wfs": {\n - "FeatureCollection": function(node, obj) {\n - this.readChildNodes(node, obj);\n - }\n - }\n - },\n - \n - /**\n - * Method: write\n - *\n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>) | OpenLayers.Feature.Vector}\n - * An array of features or a single feature.\n - *\n - * Returns:\n - * {String} Given an array of features, a doc with a gml:featureMembers\n - * element will be returned. Given a single feature, a doc with a\n - * gml:featureMember element will be returned.\n - */\n - write: function(features) {\n - var name;\n - if(OpenLayers.Util.isArray(features)) {\n - name = "featureMembers";\n - } else {\n - name = "featureMember";\n - }\n - var root = this.writeNode("gml:" + name, features);\n - this.setAttributeNS(\n - root, this.namespaces["xsi"],\n - "xsi:schemaLocation", this.schemaLocation\n - );\n -\n - return OpenLayers.Format.XML.prototype.write.apply(this, [root]);\n - },\n - \n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "gml": {\n - "featureMember": function(feature) {\n - var node = this.createElementNSPlus("gml:featureMember");\n - this.writeNode("feature:_typeName", feature, node);\n - return node;\n - },\n - "MultiPoint": function(geometry) {\n - var node = this.createElementNSPlus("gml:MultiPoint");\n - var components = geometry.components || [geometry];\n - for(var i=0, ii=components.length; i<ii; ++i) {\n - this.writeNode("pointMember", components[i], node);\n - }\n - return node;\n - },\n - "pointMember": function(geometry) {\n - var node = this.createElementNSPlus("gml:pointMember");\n - this.writeNode("Point", geometry, node);\n - return node;\n - },\n - "MultiLineString": function(geometry) {\n - var node = this.createElementNSPlus("gml:MultiLineString");\n - var components = geometry.components || [geometry];\n - for(var i=0, ii=components.length; i<ii; ++i) {\n - this.writeNode("lineStringMember", components[i], node);\n - }\n - return node;\n - },\n - "lineStringMember": function(geometry) {\n - var node = this.createElementNSPlus("gml:lineStringMember");\n - this.writeNode("LineString", geometry, node);\n - return node;\n - },\n - "MultiPolygon": function(geometry) {\n - var node = this.createElementNSPlus("gml:MultiPolygon");\n - var components = geometry.components || [geometry];\n - for(var i=0, ii=components.length; i<ii; ++i) {\n - this.writeNode(\n - "polygonMember", components[i], node\n - );\n - }\n - return node;\n - },\n - "polygonMember": function(geometry) {\n - var node = this.createElementNSPlus("gml:polygonMember");\n - this.writeNode("Polygon", geometry, node);\n - return node;\n - },\n - "GeometryCollection": function(geometry) {\n - var node = this.createElementNSPlus("gml:GeometryCollection");\n - for(var i=0, len=geometry.components.length; i<len; ++i) {\n - this.writeNode("geometryMember", geometry.components[i], node);\n - }\n - return node;\n - },\n - "geometryMember": function(geometry) {\n - var node = this.createElementNSPlus("gml:geometryMember");\n - var child = this.writeNode("feature:_geometry", geometry);\n - node.appendChild(child.firstChild);\n - return node;\n - }\n - },\n - "feature": {\n - "_typeName": function(feature) {\n - var node = this.createElementNSPlus("feature:" + this.featureType, {\n - attributes: {fid: feature.fid}\n - });\n - if(feature.geometry) {\n - this.writeNode("feature:_geometry", feature.geometry, node);\n - }\n - for(var name in feature.attributes) {\n - var value = feature.attributes[name];\n - if(value != null) {\n - this.writeNode(\n - "feature:_attribute",\n - {name: name, value: value}, node\n - );\n - }\n - }\n - return node;\n - },\n - "_geometry": function(geometry) {\n - if(this.externalProjection && this.internalProjection) {\n - geometry = geometry.clone().transform(\n - this.internalProjection, this.externalProjection\n - );\n - } \n - var node = this.createElementNSPlus(\n - "feature:" + this.geometryName\n - );\n - var type = this.geometryTypes[geometry.CLASS_NAME];\n - var child = this.writeNode("gml:" + type, geometry, node);\n - if(this.srsName) {\n - child.setAttribute("srsName", this.srsName);\n - }\n - return node;\n - },\n - "_attribute": function(obj) {\n - return this.createElementNSPlus("feature:" + obj.name, {\n - value: obj.value\n - });\n - }\n - },\n - "wfs": {\n - "FeatureCollection": function(features) {\n - /**\n - * This is only here because GML2 only describes abstract\n - * feature collections. Typically, you would not be using\n - * the GML format to write wfs elements. This just provides\n - * some way to write out lists of features. GML3 defines the\n - * featureMembers element, so that is used by default instead.\n - */\n - var node = this.createElementNSPlus("wfs:FeatureCollection");\n - for(var i=0, len=features.length; i<len; ++i) {\n - this.writeNode("gml:featureMember", features[i], node);\n - }\n - return node;\n - }\n - }\n - },\n - \n - /**\n - * Method: setGeometryTypes\n - * Sets the <geometryTypes> mapping.\n - */\n - setGeometryTypes: function() {\n - this.geometryTypes = {\n - "OpenLayers.Geometry.Point": "Point",\n - "OpenLayers.Geometry.MultiPoint": "MultiPoint",\n - "OpenLayers.Geometry.LineString": "LineString",\n - "OpenLayers.Geometry.MultiLineString": "MultiLineString",\n - "OpenLayers.Geometry.Polygon": "Polygon",\n - "OpenLayers.Geometry.MultiPolygon": "MultiPolygon",\n - "OpenLayers.Geometry.Collection": "GeometryCollection"\n - };\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.GML.Base" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>24742</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML/v2.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML/v2.js.xml deleted file mode 100644 index 587e8098df6dcd71898bea69c89bf187b8c01dfa..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML/v2.js.xml +++ /dev/null @@ -1,237 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.97</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v2.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/GML/Base.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.GML.v2\n - * Parses GML version 2.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.GML.Base>\n - */\n -OpenLayers.Format.GML.v2 = OpenLayers.Class(OpenLayers.Format.GML.Base, {\n - \n - /**\n - * Property: schemaLocation\n - * {String} Schema location for a particular minor version.\n - */\n - schemaLocation: "http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd",\n -\n - /**\n - * Constructor: OpenLayers.Format.GML.v2\n - * Create a parser for GML v2.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - *\n - * Valid options properties:\n - * featureType - {String} Local (without prefix) feature typeName (required).\n - * featureNS - {String} Feature namespace (required).\n - * geometryName - {String} Geometry element name.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.GML.Base.prototype.initialize.apply(this, [options]);\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "gml": OpenLayers.Util.applyDefaults({\n - "outerBoundaryIs": function(node, container) {\n - var obj = {};\n - this.readChildNodes(node, obj);\n - container.outer = obj.components[0];\n - },\n - "innerBoundaryIs": function(node, container) {\n - var obj = {};\n - this.readChildNodes(node, obj);\n - container.inner.push(obj.components[0]);\n - },\n - "Box": function(node, container) {\n - var obj = {};\n - this.readChildNodes(node, obj);\n - if(!container.components) {\n - container.components = [];\n - }\n - var min = obj.points[0];\n - var max = obj.points[1];\n - container.components.push(\n - new OpenLayers.Bounds(min.x, min.y, max.x, max.y)\n - );\n - }\n - }, OpenLayers.Format.GML.Base.prototype.readers["gml"]),\n - "feature": OpenLayers.Format.GML.Base.prototype.readers["feature"],\n - "wfs": OpenLayers.Format.GML.Base.prototype.readers["wfs"]\n - },\n -\n - /**\n - * Method: write\n - *\n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>) | OpenLayers.Feature.Vector}\n - * An array of features or a single feature.\n - *\n - * Returns:\n - * {String} Given an array of features, a doc with a gml:featureMembers\n - * element will be returned. Given a single feature, a doc with a\n - * gml:featureMember element will be returned.\n - */\n - write: function(features) {\n - var name;\n - if(OpenLayers.Util.isArray(features)) {\n - // GML2 only has abstract feature collections\n - // wfs provides a feature collection from a well-known schema\n - name = "wfs:FeatureCollection";\n - } else {\n - name = "gml:featureMember";\n - }\n - var root = this.writeNode(name, features);\n - this.setAttributeNS(\n - root, this.namespaces["xsi"],\n - "xsi:schemaLocation", this.schemaLocation\n - );\n -\n - return OpenLayers.Format.XML.prototype.write.apply(this, [root]);\n - },\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "gml": OpenLayers.Util.applyDefaults({\n - "Point": function(geometry) {\n - var node = this.createElementNSPlus("gml:Point");\n - this.writeNode("coordinates", [geometry], node);\n - return node;\n - },\n - "coordinates": function(points) {\n - var numPoints = points.length;\n - var parts = new Array(numPoints);\n - var point;\n - for(var i=0; i<numPoints; ++i) {\n - point = points[i];\n - if(this.xy) {\n - parts[i] = point.x + "," + point.y;\n - } else {\n - parts[i] = point.y + "," + point.x;\n - }\n - if(point.z != undefined) { // allow null or undefined\n - parts[i] += "," + point.z;\n - }\n - }\n - return this.createElementNSPlus("gml:coordinates", {\n - attributes: {\n - decimal: ".", cs: ",", ts: " "\n - },\n - value: (numPoints == 1) ? parts[0] : parts.join(" ")\n - });\n - },\n - "LineString": function(geometry) {\n - var node = this.createElementNSPlus("gml:LineString");\n - this.writeNode("coordinates", geometry.components, node);\n - return node;\n - },\n - "Polygon": function(geometry) {\n - var node = this.createElementNSPlus("gml:Polygon");\n - this.writeNode("outerBoundaryIs", geometry.components[0], node);\n - for(var i=1; i<geometry.components.length; ++i) {\n - this.writeNode(\n - "innerBoundaryIs", geometry.components[i], node\n - );\n - }\n - return node;\n - },\n - "outerBoundaryIs": function(ring) {\n - var node = this.createElementNSPlus("gml:outerBoundaryIs");\n - this.writeNode("LinearRing", ring, node);\n - return node;\n - },\n - "innerBoundaryIs": function(ring) {\n - var node = this.createElementNSPlus("gml:innerBoundaryIs");\n - this.writeNode("LinearRing", ring, node);\n - return node;\n - },\n - "LinearRing": function(ring) {\n - var node = this.createElementNSPlus("gml:LinearRing");\n - this.writeNode("coordinates", ring.components, node);\n - return node;\n - },\n - "Box": function(bounds) {\n - var node = this.createElementNSPlus("gml:Box");\n - this.writeNode("coordinates", [\n - {x: bounds.left, y: bounds.bottom},\n - {x: bounds.right, y: bounds.top}\n - ], node);\n - // srsName attribute is optional for gml:Box\n - if(this.srsName) {\n - node.setAttribute("srsName", this.srsName);\n - }\n - return node;\n - }\n - }, OpenLayers.Format.GML.Base.prototype.writers["gml"]),\n - "feature": OpenLayers.Format.GML.Base.prototype.writers["feature"],\n - "wfs": OpenLayers.Format.GML.Base.prototype.writers["wfs"]\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.GML.v2" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7439</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML/v3.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML/v3.js.xml deleted file mode 100644 index 4d5730f45fb87736d6c3b5691854950f2b9cbc3d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GML/v3.js.xml +++ /dev/null @@ -1,508 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.97</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v3.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/GML/Base.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.GML.v3\n - * Parses GML version 3.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.GML.Base>\n - */\n -OpenLayers.Format.GML.v3 = OpenLayers.Class(OpenLayers.Format.GML.Base, {\n - \n - /**\n - * Property: schemaLocation\n - * {String} Schema location for a particular minor version. The writers\n - * conform with the Simple Features Profile for GML.\n - */\n - schemaLocation: "http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd",\n -\n - /**\n - * Property: curve\n - * {Boolean} Write gml:Curve instead of gml:LineString elements. This also\n - * affects the elements in multi-part geometries. Default is false.\n - * To write gml:Curve elements instead of gml:LineString, set curve\n - * to true in the options to the contstructor (cannot be changed after\n - * instantiation).\n - */\n - curve: false,\n - \n - /**\n - * Property: multiCurve\n - * {Boolean} Write gml:MultiCurve instead of gml:MultiLineString. Since\n - * the latter is deprecated in GML 3, the default is true. To write\n - * gml:MultiLineString instead of gml:MultiCurve, set multiCurve to\n - * false in the options to the constructor (cannot be changed after\n - * instantiation).\n - */\n - multiCurve: true,\n - \n - /**\n - * Property: surface\n - * {Boolean} Write gml:Surface instead of gml:Polygon elements. This also\n - * affects the elements in multi-part geometries. Default is false.\n - * To write gml:Surface elements instead of gml:Polygon, set surface\n - * to true in the options to the contstructor (cannot be changed after\n - * instantiation).\n - */\n - surface: false,\n -\n - /**\n - * Property: multiSurface\n - * {Boolean} Write gml:multiSurface instead of gml:MultiPolygon. Since\n - * the latter is deprecated in GML 3, the default is true. To write\n - * gml:MultiPolygon instead of gml:multiSurface, set multiSurface to\n - * false in the options to the constructor (cannot be changed after\n - * instantiation).\n - */\n - multiSurface: true,\n -\n - /**\n - * Constructor: OpenLayers.Format.GML.v3\n - * Create a parser for GML v3.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - *\n - * Valid options properties:\n - * featureType - {String} Local (without prefix) feature typeName (required).\n - * featureNS - {String} Feature namespace (required).\n - * geometryName - {String} Geometry element name.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.GML.Base.prototype.initialize.apply(this, [options]);\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "gml": OpenLayers.Util.applyDefaults({\n - "featureMembers": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "Curve": function(node, container) {\n - var obj = {points: []};\n - this.readChildNodes(node, obj);\n - if(!container.components) {\n - container.components = [];\n - }\n - container.components.push(\n - new OpenLayers.Geometry.LineString(obj.points)\n - );\n - },\n - "segments": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "LineStringSegment": function(node, container) {\n - var obj = {};\n - this.readChildNodes(node, obj);\n - if(obj.points) {\n - Array.prototype.push.apply(container.points, obj.points);\n - }\n - },\n - "pos": function(node, obj) {\n - var str = this.getChildValue(node).replace(\n - this.regExes.trimSpace, ""\n - );\n - var coords = str.split(this.regExes.splitSpace);\n - var point;\n - if(this.xy) {\n - point = new OpenLayers.Geometry.Point(\n - coords[0], coords[1], coords[2]\n - );\n - } else {\n - point = new OpenLayers.Geometry.Point(\n - coords[1], coords[0], coords[2]\n - );\n - }\n - obj.points = [point];\n - },\n - "posList": function(node, obj) {\n - var str = this.getChildValue(node).replace(\n - this.regExes.trimSpace, ""\n - );\n - var coords = str.split(this.regExes.splitSpace);\n - var dim = parseInt(node.getAttribute("dimension")) || 2;\n - var j, x, y, z;\n - var numPoints = coords.length / dim;\n - var points = new Array(numPoints);\n - for(var i=0, len=coords.length; i<len; i += dim) {\n - x = coords[i];\n - y = coords[i+1];\n - z = (dim == 2) ? undefined : coords[i+2];\n - if (this.xy) {\n - points[i/dim] = new OpenLayers.Geometry.Point(x, y, z);\n - } else {\n - points[i/dim] = new OpenLayers.Geometry.Point(y, x, z);\n - }\n - }\n - obj.points = points;\n - },\n - "Surface": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "patches": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "PolygonPatch": function(node, obj) {\n - this.readers.gml.Polygon.apply(this, [node, obj]);\n - },\n - "exterior": function(node, container) {\n - var obj = {};\n - this.readChildNodes(node, obj);\n - container.outer = obj.components[0];\n - },\n - "interior": function(node, container) {\n - var obj = {};\n - this.readChildNodes(node, obj);\n - container.inner.push(obj.components[0]);\n - },\n - "MultiCurve": function(node, container) {\n - var obj = {components: []};\n - this.readChildNodes(node, obj);\n - if(obj.components.length > 0) {\n - container.components = [\n - new OpenLayers.Geometry.MultiLineString(obj.components)\n - ];\n - }\n - },\n - "curveMember": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "MultiSurface": function(node, container) {\n - var obj = {components: []};\n - this.readChildNodes(node, obj);\n - if(obj.components.length > 0) {\n - container.components = [\n - new OpenLayers.Geometry.MultiPolygon(obj.components)\n - ];\n - }\n - },\n - "surfaceMember": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "surfaceMembers": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "pointMembers": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "lineStringMembers": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "polygonMembers": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "geometryMembers": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "Envelope": function(node, container) {\n - var obj = {points: new Array(2)};\n - this.readChildNodes(node, obj);\n - if(!container.components) {\n - container.components = [];\n - }\n - var min = obj.points[0];\n - var max = obj.points[1];\n - container.components.push(\n - new OpenLayers.Bounds(min.x, min.y, max.x, max.y)\n - );\n - },\n - "lowerCorner": function(node, container) {\n - var obj = {};\n - this.readers.gml.pos.apply(this, [node, obj]);\n - container.points[0] = obj.points[0];\n - },\n - "upperCorner": function(node, container) {\n - var obj = {};\n - this.readers.gml.pos.apply(this, [node, obj]);\n - container.points[1] = obj.points[0];\n - }\n - }, OpenLayers.Format.GML.Base.prototype.readers["gml"]), \n - "feature": OpenLayers.Format.GML.Base.prototype.readers["feature"],\n - "wfs": OpenLayers.Format.GML.Base.prototype.readers["wfs"]\n - },\n - \n - /**\n - * Method: write\n - *\n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>) | OpenLayers.Feature.Vector}\n - * An array of features or a single feature.\n - *\n - * Returns:\n - * {String} Given an array of features, a doc with a gml:featureMembers\n - * element will be returned. Given a single feature, a doc with a\n - * gml:featureMember element will be returned.\n - */\n - write: function(features) {\n - var name;\n - if(OpenLayers.Util.isArray(features)) {\n - name = "featureMembers";\n - } else {\n - name = "featureMember";\n - }\n - var root = this.writeNode("gml:" + name, features);\n - this.setAttributeNS(\n - root, this.namespaces["xsi"],\n - "xsi:schemaLocation", this.schemaLocation\n - );\n -\n - return OpenLayers.Format.XML.prototype.write.apply(this, [root]);\n - },\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "gml": OpenLayers.Util.applyDefaults({\n - "featureMembers": function(features) {\n - var node = this.createElementNSPlus("gml:featureMembers");\n - for(var i=0, len=features.length; i<len; ++i) {\n - this.writeNode("feature:_typeName", features[i], node);\n - }\n - return node;\n - },\n - "Point": function(geometry) {\n - var node = this.createElementNSPlus("gml:Point");\n - this.writeNode("pos", geometry, node);\n - return node;\n - },\n - "pos": function(point) {\n - // only 2d for simple features profile\n - var pos = (this.xy) ?\n - (point.x + " " + point.y) : (point.y + " " + point.x);\n - return this.createElementNSPlus("gml:pos", {\n - value: pos\n - });\n - },\n - "LineString": function(geometry) {\n - var node = this.createElementNSPlus("gml:LineString");\n - this.writeNode("posList", geometry.components, node);\n - return node;\n - },\n - "Curve": function(geometry) {\n - var node = this.createElementNSPlus("gml:Curve");\n - this.writeNode("segments", geometry, node);\n - return node;\n - },\n - "segments": function(geometry) {\n - var node = this.createElementNSPlus("gml:segments");\n - this.writeNode("LineStringSegment", geometry, node);\n - return node;\n - },\n - "LineStringSegment": function(geometry) {\n - var node = this.createElementNSPlus("gml:LineStringSegment");\n - this.writeNode("posList", geometry.components, node);\n - return node;\n - },\n - "posList": function(points) {\n - // only 2d for simple features profile\n - var len = points.length;\n - var parts = new Array(len);\n - var point;\n - for(var i=0; i<len; ++i) {\n - point = points[i];\n - if(this.xy) {\n - parts[i] = point.x + " " + point.y;\n - } else {\n - parts[i] = point.y + " " + point.x;\n - }\n - }\n - return this.createElementNSPlus("gml:posList", {\n - value: parts.join(" ")\n - }); \n - },\n - "Surface": function(geometry) {\n - var node = this.createElementNSPlus("gml:Surface");\n - this.writeNode("patches", geometry, node);\n - return node;\n - },\n - "patches": function(geometry) {\n - var node = this.createElementNSPlus("gml:patches");\n - this.writeNode("PolygonPatch", geometry, node);\n - return node;\n - },\n - "PolygonPatch": function(geometry) {\n - var node = this.createElementNSPlus("gml:PolygonPatch", {\n - attributes: {interpolation: "planar"}\n - });\n - this.writeNode("exterior", geometry.components[0], node);\n - for(var i=1, len=geometry.components.length; i<len; ++i) {\n - this.writeNode(\n - "interior", geometry.components[i], node\n - );\n - }\n - return node;\n - },\n - "Polygon": function(geometry) {\n - var node = this.createElementNSPlus("gml:Polygon");\n - this.writeNode("exterior", geometry.components[0], node);\n - for(var i=1, len=geometry.components.length; i<len; ++i) {\n - this.writeNode(\n - "interior", geometry.components[i], node\n - );\n - }\n - return node;\n - },\n - "exterior": function(ring) {\n - var node = this.createElementNSPlus("gml:exterior");\n - this.writeNode("LinearRing", ring, node);\n - return node;\n - },\n - "interior": function(ring) {\n - var node = this.createElementNSPlus("gml:interior");\n - this.writeNode("LinearRing", ring, node);\n - return node;\n - },\n - "LinearRing": function(ring) {\n - var node = this.createElementNSPlus("gml:LinearRing");\n - this.writeNode("posList", ring.components, node);\n - return node;\n - },\n - "MultiCurve": function(geometry) {\n - var node = this.createElementNSPlus("gml:MultiCurve");\n - var components = geometry.components || [geometry];\n - for(var i=0, len=components.length; i<len; ++i) {\n - this.writeNode("curveMember", components[i], node);\n - }\n - return node;\n - },\n - "curveMember": function(geometry) {\n - var node = this.createElementNSPlus("gml:curveMember");\n - if(this.curve) {\n - this.writeNode("Curve", geometry, node);\n - } else {\n - this.writeNode("LineString", geometry, node);\n - }\n - return node;\n - },\n - "MultiSurface": function(geometry) {\n - var node = this.createElementNSPlus("gml:MultiSurface");\n - var components = geometry.components || [geometry];\n - for(var i=0, len=components.length; i<len; ++i) {\n - this.writeNode("surfaceMember", components[i], node);\n - }\n - return node;\n - },\n - "surfaceMember": function(polygon) {\n - var node = this.createElementNSPlus("gml:surfaceMember");\n - if(this.surface) {\n - this.writeNode("Surface", polygon, node);\n - } else {\n - this.writeNode("Polygon", polygon, node);\n - }\n - return node;\n - },\n - "Envelope": function(bounds) {\n - var node = this.createElementNSPlus("gml:Envelope");\n - this.writeNode("lowerCorner", bounds, node);\n - this.writeNode("upperCorner", bounds, node);\n - // srsName attribute is required for gml:Envelope\n - if(this.srsName) {\n - node.setAttribute("srsName", this.srsName);\n - }\n - return node;\n - },\n - "lowerCorner": function(bounds) {\n - // only 2d for simple features profile\n - var pos = (this.xy) ?\n - (bounds.left + " " + bounds.bottom) :\n - (bounds.bottom + " " + bounds.left);\n - return this.createElementNSPlus("gml:lowerCorner", {\n - value: pos\n - });\n - },\n - "upperCorner": function(bounds) {\n - // only 2d for simple features profile\n - var pos = (this.xy) ?\n - (bounds.right + " " + bounds.top) :\n - (bounds.top + " " + bounds.right);\n - return this.createElementNSPlus("gml:upperCorner", {\n - value: pos\n - });\n - }\n - }, OpenLayers.Format.GML.Base.prototype.writers["gml"]),\n - "feature": OpenLayers.Format.GML.Base.prototype.writers["feature"],\n - "wfs": OpenLayers.Format.GML.Base.prototype.writers["wfs"]\n - },\n -\n - /**\n - * Method: setGeometryTypes\n - * Sets the <geometryTypes> mapping.\n - */\n - setGeometryTypes: function() {\n - this.geometryTypes = {\n - "OpenLayers.Geometry.Point": "Point",\n - "OpenLayers.Geometry.MultiPoint": "MultiPoint",\n - "OpenLayers.Geometry.LineString": (this.curve === true) ? "Curve": "LineString",\n - "OpenLayers.Geometry.MultiLineString": (this.multiCurve === false) ? "MultiLineString" : "MultiCurve",\n - "OpenLayers.Geometry.Polygon": (this.surface === true) ? "Surface" : "Polygon",\n - "OpenLayers.Geometry.MultiPolygon": (this.multiSurface === false) ? "MultiPolygon" : "MultiSurface",\n - "OpenLayers.Geometry.Collection": "GeometryCollection"\n - };\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.GML.v3" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>18906</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GPX.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GPX.js.xml deleted file mode 100644 index a32cd7289ac4f73488eb9aa43f023ba5cf80280e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GPX.js.xml +++ /dev/null @@ -1,429 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>GPX.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Feature/Vector.js\n - * @requires OpenLayers/Geometry/Point.js\n - * @requires OpenLayers/Geometry/LineString.js\n - * @requires OpenLayers/Projection.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.GPX\n - * Read/write GPX parser. Create a new instance with the \n - * <OpenLayers.Format.GPX> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.GPX = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n -\n - /** \n - * APIProperty: defaultDesc\n - * {String} Default description for the waypoints/tracks in the case\n - * where the feature has no "description" attribute.\n - * Default is "No description available".\n - */\n - defaultDesc: "No description available",\n -\n - /**\n - * APIProperty: extractWaypoints\n - * {Boolean} Extract waypoints from GPX. (default: true)\n - */\n - extractWaypoints: true,\n - \n - /**\n - * APIProperty: extractTracks\n - * {Boolean} Extract tracks from GPX. (default: true)\n - */\n - extractTracks: true,\n - \n - /**\n - * APIProperty: extractRoutes\n - * {Boolean} Extract routes from GPX. (default: true)\n - */\n - extractRoutes: true,\n - \n - /**\n - * APIProperty: extractAttributes\n - * {Boolean} Extract feature attributes from GPX. (default: true)\n - * NOTE: Attributes as part of extensions to the GPX standard may not\n - * be extracted.\n - */\n - extractAttributes: true,\n -\n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - gpx: "http://www.topografix.com/GPX/1/1",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance"\n - },\n -\n - /**\n - * Property: schemaLocation\n - * {String} Schema location. Defaults to\n - * "http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"\n - */\n - schemaLocation: "http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd",\n -\n - /**\n - * APIProperty: creator\n - * {String} The creator attribute to be added to the written GPX files.\n - * Defaults to "OpenLayers"\n - */\n - creator: "OpenLayers",\n - \n - /**\n - * Constructor: OpenLayers.Format.GPX\n - * Create a new parser for GPX.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - // GPX coordinates are always in longlat WGS84\n - this.externalProjection = new OpenLayers.Projection("EPSG:4326");\n -\n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - },\n - \n - /**\n - * APIMethod: read\n - * Return a list of features from a GPX doc\n - *\n - * Parameters:\n - * doc - {Element} \n - *\n - * Returns:\n - * Array({<OpenLayers.Feature.Vector>})\n - */\n - read: function(doc) {\n - if (typeof doc == "string") { \n - doc = OpenLayers.Format.XML.prototype.read.apply(this, [doc]);\n - }\n - var features = [];\n - \n - if(this.extractTracks) {\n - var tracks = doc.getElementsByTagName("trk");\n - for (var i=0, len=tracks.length; i<len; i++) {\n - // Attributes are only in trk nodes, not trkseg nodes\n - var attrs = {};\n - if(this.extractAttributes) {\n - attrs = this.parseAttributes(tracks[i]);\n - }\n - \n - var segs = this.getElementsByTagNameNS(tracks[i], tracks[i].namespaceURI, "trkseg");\n - for (var j = 0, seglen = segs.length; j < seglen; j++) {\n - // We don\'t yet support extraction of trkpt attributes\n - // All trksegs of a trk get that trk\'s attributes\n - var track = this.extractSegment(segs[j], "trkpt");\n - features.push(new OpenLayers.Feature.Vector(track, attrs));\n - }\n - }\n - }\n - \n - if(this.extractRoutes) {\n - var routes = doc.getElementsByTagName("rte");\n - for (var k=0, klen=routes.length; k<klen; k++) {\n - var attrs = {};\n - if(this.extractAttributes) {\n - attrs = this.parseAttributes(routes[k]);\n - }\n - var route = this.extractSegment(routes[k], "rtept");\n - features.push(new OpenLayers.Feature.Vector(route, attrs));\n - }\n - }\n - \n - if(this.extractWaypoints) {\n - var waypoints = doc.getElementsByTagName("wpt");\n - for (var l = 0, len = waypoints.length; l < len; l++) {\n - var attrs = {};\n - if(this.extractAttributes) {\n - attrs = this.parseAttributes(waypoints[l]);\n - }\n - var wpt = new OpenLayers.Geometry.Point(waypoints[l].getAttribute("lon"), waypoints[l].getAttribute("lat"));\n - features.push(new OpenLayers.Feature.Vector(wpt, attrs));\n - }\n - }\n - \n - if (this.internalProjection && this.externalProjection) {\n - for (var g = 0, featLength = features.length; g < featLength; g++) {\n - features[g].geometry.transform(this.externalProjection,\n - this.internalProjection);\n - }\n - }\n - \n - return features;\n - },\n - \n - /**\n - * Method: extractSegment\n - *\n - * Parameters:\n - * segment - {DOMElement} a trkseg or rte node to parse\n - * segmentType - {String} nodeName of waypoints that form the line\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.LineString>} A linestring geometry\n - */\n - extractSegment: function(segment, segmentType) {\n - var points = this.getElementsByTagNameNS(segment, segment.namespaceURI, segmentType);\n - var point_features = [];\n - for (var i = 0, len = points.length; i < len; i++) {\n - point_features.push(new OpenLayers.Geometry.Point(points[i].getAttribute("lon"), points[i].getAttribute("lat")));\n - }\n - return new OpenLayers.Geometry.LineString(point_features);\n - },\n - \n - /**\n - * Method: parseAttributes\n - *\n - * Parameters:\n - * node - {<DOMElement>}\n - *\n - * Returns:\n - * {Object} An attributes object.\n - */\n - parseAttributes: function(node) {\n - // node is either a wpt, trk or rte\n - // attributes are children of the form <attr>value</attr>\n - var attributes = {};\n - var attrNode = node.firstChild, value, name;\n - while(attrNode) {\n - if(attrNode.nodeType == 1 && attrNode.firstChild) {\n - value = attrNode.firstChild;\n - if(value.nodeType == 3 || value.nodeType == 4) {\n - name = (attrNode.prefix) ?\n - attrNode.nodeName.split(":")[1] :\n - attrNode.nodeName;\n - if(name != "trkseg" && name != "rtept") {\n - attributes[name] = value.nodeValue;\n - }\n - }\n - }\n - attrNode = attrNode.nextSibling;\n - }\n - return attributes;\n - },\n -\n - /**\n - * APIMethod: write\n - * Accepts Feature Collection, and returns a string. \n - * \n - * Parameters: \n - * features - {Array(<OpenLayers.Feature.Vector>)} List of features to serialize into a string.\n - * metadata - {Object} A key/value pairs object to build a metadata node to\n - * add to the gpx. Supported keys are \'name\', \'desc\', \'author\'.\n - */\n - write: function(features, metadata) {\n - features = OpenLayers.Util.isArray(features) ?\n - features : [features];\n - var gpx = this.createElementNS(this.namespaces.gpx, "gpx");\n - gpx.setAttribute("version", "1.1");\n - gpx.setAttribute("creator", this.creator);\n - this.setAttributes(gpx, {\n - "xsi:schemaLocation": this.schemaLocation\n - });\n -\n - if (metadata && typeof metadata == \'object\') {\n - gpx.appendChild(this.buildMetadataNode(metadata));\n - }\n - for(var i=0, len=features.length; i<len; i++) {\n - gpx.appendChild(this.buildFeatureNode(features[i]));\n - }\n - return OpenLayers.Format.XML.prototype.write.apply(this, [gpx]);\n - },\n -\n - /**\n - * Method: buildMetadataNode\n - * Creates a "metadata" node.\n - *\n - * Returns:\n - * {DOMElement}\n - */\n - buildMetadataNode: function(metadata) {\n - var types = [\'name\', \'desc\', \'author\'],\n - node = this.createElementNSPlus(\'gpx:metadata\');\n - for (var i=0; i < types.length; i++) {\n - var type = types[i];\n - if (metadata[type]) {\n - var n = this.createElementNSPlus("gpx:" + type);\n - n.appendChild(this.createTextNode(metadata[type]));\n - node.appendChild(n);\n - }\n - }\n - return node;\n - },\n -\n - /**\n - * Method: buildFeatureNode\n - * Accepts an <OpenLayers.Feature.Vector>, and builds a node for it.\n - * \n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - *\n - * Returns:\n - * {DOMElement} - The created node, either a \'wpt\' or a \'trk\'.\n - */\n - buildFeatureNode: function(feature) {\n - var geometry = feature.geometry;\n - geometry = geometry.clone();\n - if (this.internalProjection && this.externalProjection) {\n - geometry.transform(this.internalProjection, \n - this.externalProjection);\n - }\n - if (geometry.CLASS_NAME == "OpenLayers.Geometry.Point") {\n - var wpt = this.buildWptNode(geometry);\n - this.appendAttributesNode(wpt, feature);\n - return wpt;\n - } else {\n - var trkNode = this.createElementNSPlus("gpx:trk");\n - this.appendAttributesNode(trkNode, feature);\n - var trkSegNodes = this.buildTrkSegNode(geometry);\n - trkSegNodes = OpenLayers.Util.isArray(trkSegNodes) ?\n - trkSegNodes : [trkSegNodes];\n - for (var i = 0, len = trkSegNodes.length; i < len; i++) {\n - trkNode.appendChild(trkSegNodes[i]);\n - }\n - return trkNode;\n - }\n - },\n -\n - /**\n - * Method: buildTrkSegNode\n - * Builds trkseg node(s) given a geometry\n - *\n - * Parameters:\n - * trknode\n - * geometry - {<OpenLayers.Geometry>}\n - */\n - buildTrkSegNode: function(geometry) {\n - var node,\n - i,\n - len,\n - point,\n - nodes;\n - if (geometry.CLASS_NAME == "OpenLayers.Geometry.LineString" ||\n - geometry.CLASS_NAME == "OpenLayers.Geometry.LinearRing") {\n - node = this.createElementNSPlus("gpx:trkseg");\n - for (i = 0, len=geometry.components.length; i < len; i++) {\n - point = geometry.components[i];\n - node.appendChild(this.buildTrkPtNode(point));\n - }\n - return node;\n - } else {\n - nodes = [];\n - for (i = 0, len = geometry.components.length; i < len; i++) {\n - nodes.push(this.buildTrkSegNode(geometry.components[i]));\n - }\n - return nodes;\n - }\n - },\n - \n - /**\n - * Method: buildTrkPtNode\n - * Builds a trkpt node given a point \n - *\n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>}\n - *\n - * Returns:\n - * {DOMElement} A trkpt node\n - */\n - buildTrkPtNode: function(point) {\n - var node = this.createElementNSPlus("gpx:trkpt");\n - node.setAttribute("lon", point.x);\n - node.setAttribute("lat", point.y);\n - return node;\n - },\n -\n - /**\n - * Method: buildWptNode\n - * Builds a wpt node given a point\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.Point>}\n - *\n - * Returns:\n - * {DOMElement} A wpt node\n - */\n - buildWptNode: function(geometry) {\n - var node = this.createElementNSPlus("gpx:wpt");\n - node.setAttribute("lon", geometry.x);\n - node.setAttribute("lat", geometry.y);\n - return node;\n - },\n -\n - /**\n - * Method: appendAttributesNode\n - * Adds some attributes node.\n - *\n - * Parameters:\n - * node - {DOMElement} the node to append the attribute nodes to.\n - * feature - {<OpenLayers.Feature.Vector>}\n - */\n - appendAttributesNode: function(node, feature) {\n - var name = this.createElementNSPlus(\'gpx:name\');\n - name.appendChild(this.createTextNode(\n - feature.attributes.name || feature.id));\n - node.appendChild(name);\n - var desc = this.createElementNSPlus(\'gpx:desc\');\n - desc.appendChild(this.createTextNode(\n - feature.attributes.description || this.defaultDesc));\n - node.appendChild(desc);\n - // TBD - deal with remaining (non name/description) attributes.\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.GPX"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>12944</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GeoJSON.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GeoJSON.js.xml deleted file mode 100644 index c9abd2f262b497708f9b0bfb77083bcfe592ccd7..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GeoJSON.js.xml +++ /dev/null @@ -1,760 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>GeoJSON.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/JSON.js\n - * @requires OpenLayers/Feature/Vector.js\n - * @requires OpenLayers/Geometry/Point.js\n - * @requires OpenLayers/Geometry/MultiPoint.js\n - * @requires OpenLayers/Geometry/LineString.js\n - * @requires OpenLayers/Geometry/MultiLineString.js\n - * @requires OpenLayers/Geometry/Polygon.js\n - * @requires OpenLayers/Geometry/MultiPolygon.js\n - * @requires OpenLayers/Console.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.GeoJSON\n - * Read and write GeoJSON. Create a new parser with the\n - * <OpenLayers.Format.GeoJSON> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.JSON>\n - */\n -OpenLayers.Format.GeoJSON = OpenLayers.Class(OpenLayers.Format.JSON, {\n -\n - /**\n - * APIProperty: ignoreExtraDims\n - * {Boolean} Ignore dimensions higher than 2 when reading geometry\n - * coordinates.\n - */ \n - ignoreExtraDims: false,\n - \n - /**\n - * Constructor: OpenLayers.Format.GeoJSON\n - * Create a new parser for GeoJSON.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Deserialize a GeoJSON string.\n - *\n - * Parameters:\n - * json - {String} A GeoJSON string\n - * type - {String} Optional string that determines the structure of\n - * the output. Supported values are "Geometry", "Feature", and\n - * "FeatureCollection". If absent or null, a default of\n - * "FeatureCollection" is assumed.\n - * filter - {Function} A function which will be called for every key and\n - * value at every level of the final result. Each value will be\n - * replaced by the result of the filter function. This can be used to\n - * reform generic objects into instances of classes, or to transform\n - * date strings into Date objects.\n - *\n - * Returns: \n - * {Object} The return depends on the value of the type argument. If type\n - * is "FeatureCollection" (the default), the return will be an array\n - * of <OpenLayers.Feature.Vector>. If type is "Geometry", the input json\n - * must represent a single geometry, and the return will be an\n - * <OpenLayers.Geometry>. If type is "Feature", the input json must\n - * represent a single feature, and the return will be an\n - * <OpenLayers.Feature.Vector>.\n - */\n - read: function(json, type, filter) {\n - type = (type) ? type : "FeatureCollection";\n - var results = null;\n - var obj = null;\n - if (typeof json == "string") {\n - obj = OpenLayers.Format.JSON.prototype.read.apply(this,\n - [json, filter]);\n - } else { \n - obj = json;\n - } \n - if(!obj) {\n - OpenLayers.Console.error("Bad JSON: " + json);\n - } else if(typeof(obj.type) != "string") {\n - OpenLayers.Console.error("Bad GeoJSON - no type: " + json);\n - } else if(this.isValidType(obj, type)) {\n - switch(type) {\n - case "Geometry":\n - try {\n - results = this.parseGeometry(obj);\n - } catch(err) {\n - OpenLayers.Console.error(err);\n - }\n - break;\n - case "Feature":\n - try {\n - results = this.parseFeature(obj);\n - results.type = "Feature";\n - } catch(err) {\n - OpenLayers.Console.error(err);\n - }\n - break;\n - case "FeatureCollection":\n - // for type FeatureCollection, we allow input to be any type\n - results = [];\n - switch(obj.type) {\n - case "Feature":\n - try {\n - results.push(this.parseFeature(obj));\n - } catch(err) {\n - results = null;\n - OpenLayers.Console.error(err);\n - }\n - break;\n - case "FeatureCollection":\n - for(var i=0, len=obj.features.length; i<len; ++i) {\n - try {\n - results.push(this.parseFeature(obj.features[i]));\n - } catch(err) {\n - results = null;\n - OpenLayers.Console.error(err);\n - }\n - }\n - break;\n - default:\n - try {\n - var geom = this.parseGeometry(obj);\n - results.push(new OpenLayers.Feature.Vector(geom));\n - } catch(err) {\n - results = null;\n - OpenLayers.Console.error(err);\n - }\n - }\n - break;\n - }\n - }\n - return results;\n - },\n - \n - /**\n - * Method: isValidType\n - * Check if a GeoJSON object is a valid representative of the given type.\n - *\n - * Returns:\n - * {Boolean} The object is valid GeoJSON object of the given type.\n - */\n - isValidType: function(obj, type) {\n - var valid = false;\n - switch(type) {\n - case "Geometry":\n - if(OpenLayers.Util.indexOf(\n - ["Point", "MultiPoint", "LineString", "MultiLineString",\n - "Polygon", "MultiPolygon", "Box", "GeometryCollection"],\n - obj.type) == -1) {\n - // unsupported geometry type\n - OpenLayers.Console.error("Unsupported geometry type: " +\n - obj.type);\n - } else {\n - valid = true;\n - }\n - break;\n - case "FeatureCollection":\n - // allow for any type to be converted to a feature collection\n - valid = true;\n - break;\n - default:\n - // for Feature types must match\n - if(obj.type == type) {\n - valid = true;\n - } else {\n - OpenLayers.Console.error("Cannot convert types from " +\n - obj.type + " to " + type);\n - }\n - }\n - return valid;\n - },\n - \n - /**\n - * Method: parseFeature\n - * Convert a feature object from GeoJSON into an\n - * <OpenLayers.Feature.Vector>.\n - *\n - * Parameters:\n - * obj - {Object} An object created from a GeoJSON object\n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector>} A feature.\n - */\n - parseFeature: function(obj) {\n - var feature, geometry, attributes, bbox;\n - attributes = (obj.properties) ? obj.properties : {};\n - bbox = (obj.geometry && obj.geometry.bbox) || obj.bbox;\n - try {\n - geometry = this.parseGeometry(obj.geometry);\n - } catch(err) {\n - // deal with bad geometries\n - throw err;\n - }\n - feature = new OpenLayers.Feature.Vector(geometry, attributes);\n - if(bbox) {\n - feature.bounds = OpenLayers.Bounds.fromArray(bbox);\n - }\n - if(obj.id) {\n - feature.fid = obj.id;\n - }\n - return feature;\n - },\n - \n - /**\n - * Method: parseGeometry\n - * Convert a geometry object from GeoJSON into an <OpenLayers.Geometry>.\n - *\n - * Parameters:\n - * obj - {Object} An object created from a GeoJSON object\n - *\n - * Returns: \n - * {<OpenLayers.Geometry>} A geometry.\n - */\n - parseGeometry: function(obj) {\n - if (obj == null) {\n - return null;\n - }\n - var geometry, collection = false;\n - if(obj.type == "GeometryCollection") {\n - if(!(OpenLayers.Util.isArray(obj.geometries))) {\n - throw "GeometryCollection must have geometries array: " + obj;\n - }\n - var numGeom = obj.geometries.length;\n - var components = new Array(numGeom);\n - for(var i=0; i<numGeom; ++i) {\n - components[i] = this.parseGeometry.apply(\n - this, [obj.geometries[i]]\n - );\n - }\n - geometry = new OpenLayers.Geometry.Collection(components);\n - collection = true;\n - } else {\n - if(!(OpenLayers.Util.isArray(obj.coordinates))) {\n - throw "Geometry must have coordinates array: " + obj;\n - }\n - if(!this.parseCoords[obj.type.toLowerCase()]) {\n - throw "Unsupported geometry type: " + obj.type;\n - }\n - try {\n - geometry = this.parseCoords[obj.type.toLowerCase()].apply(\n - this, [obj.coordinates]\n - );\n - } catch(err) {\n - // deal with bad coordinates\n - throw err;\n - }\n - }\n - // We don\'t reproject collections because the children are reprojected\n - // for us when they are created.\n - if (this.internalProjection && this.externalProjection && !collection) {\n - geometry.transform(this.externalProjection, \n - this.internalProjection); \n - } \n - return geometry;\n - },\n - \n - /**\n - * Property: parseCoords\n - * Object with properties corresponding to the GeoJSON geometry types.\n - * Property values are functions that do the actual parsing.\n - */\n - parseCoords: {\n - /**\n - * Method: parseCoords.point\n - * Convert a coordinate array from GeoJSON into an\n - * <OpenLayers.Geometry>.\n - *\n - * Parameters:\n - * array - {Object} The coordinates array from the GeoJSON fragment.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry>} A geometry.\n - */\n - "point": function(array) {\n - if (this.ignoreExtraDims == false && \n - array.length != 2) {\n - throw "Only 2D points are supported: " + array;\n - }\n - return new OpenLayers.Geometry.Point(array[0], array[1]);\n - },\n - \n - /**\n - * Method: parseCoords.multipoint\n - * Convert a coordinate array from GeoJSON into an\n - * <OpenLayers.Geometry>.\n - *\n - * Parameters:\n - * array - {Object} The coordinates array from the GeoJSON fragment.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry>} A geometry.\n - */\n - "multipoint": function(array) {\n - var points = [];\n - var p = null;\n - for(var i=0, len=array.length; i<len; ++i) {\n - try {\n - p = this.parseCoords["point"].apply(this, [array[i]]);\n - } catch(err) {\n - throw err;\n - }\n - points.push(p);\n - }\n - return new OpenLayers.Geometry.MultiPoint(points);\n - },\n -\n - /**\n - * Method: parseCoords.linestring\n - * Convert a coordinate array from GeoJSON into an\n - * <OpenLayers.Geometry>.\n - *\n - * Parameters:\n - * array - {Object} The coordinates array from the GeoJSON fragment.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry>} A geometry.\n - */\n - "linestring": function(array) {\n - var points = [];\n - var p = null;\n - for(var i=0, len=array.length; i<len; ++i) {\n - try {\n - p = this.parseCoords["point"].apply(this, [array[i]]);\n - } catch(err) {\n - throw err;\n - }\n - points.push(p);\n - }\n - return new OpenLayers.Geometry.LineString(points);\n - },\n - \n - /**\n - * Method: parseCoords.multilinestring\n - * Convert a coordinate array from GeoJSON into an\n - * <OpenLayers.Geometry>.\n - *\n - * Parameters:\n - * array - {Object} The coordinates array from the GeoJSON fragment.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry>} A geometry.\n - */\n - "multilinestring": function(array) {\n - var lines = [];\n - var l = null;\n - for(var i=0, len=array.length; i<len; ++i) {\n - try {\n - l = this.parseCoords["linestring"].apply(this, [array[i]]);\n - } catch(err) {\n - throw err;\n - }\n - lines.push(l);\n - }\n - return new OpenLayers.Geometry.MultiLineString(lines);\n - },\n - \n - /**\n - * Method: parseCoords.polygon\n - * Convert a coordinate array from GeoJSON into an\n - * <OpenLayers.Geometry>.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry>} A geometry.\n - */\n - "polygon": function(array) {\n - var rings = [];\n - var r, l;\n - for(var i=0, len=array.length; i<len; ++i) {\n - try {\n - l = this.parseCoords["linestring"].apply(this, [array[i]]);\n - } catch(err) {\n - throw err;\n - }\n - r = new OpenLayers.Geometry.LinearRing(l.components);\n - rings.push(r);\n - }\n - return new OpenLayers.Geometry.Polygon(rings);\n - },\n -\n - /**\n - * Method: parseCoords.multipolygon\n - * Convert a coordinate array from GeoJSON into an\n - * <OpenLayers.Geometry>.\n - *\n - * Parameters:\n - * array - {Object} The coordinates array from the GeoJSON fragment.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry>} A geometry.\n - */\n - "multipolygon": function(array) {\n - var polys = [];\n - var p = null;\n - for(var i=0, len=array.length; i<len; ++i) {\n - try {\n - p = this.parseCoords["polygon"].apply(this, [array[i]]);\n - } catch(err) {\n - throw err;\n - }\n - polys.push(p);\n - }\n - return new OpenLayers.Geometry.MultiPolygon(polys);\n - },\n -\n - /**\n - * Method: parseCoords.box\n - * Convert a coordinate array from GeoJSON into an\n - * <OpenLayers.Geometry>.\n - *\n - * Parameters:\n - * array - {Object} The coordinates array from the GeoJSON fragment.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry>} A geometry.\n - */\n - "box": function(array) {\n - if(array.length != 2) {\n - throw "GeoJSON box coordinates must have 2 elements";\n - }\n - return new OpenLayers.Geometry.Polygon([\n - new OpenLayers.Geometry.LinearRing([\n - new OpenLayers.Geometry.Point(array[0][0], array[0][1]),\n - new OpenLayers.Geometry.Point(array[1][0], array[0][1]),\n - new OpenLayers.Geometry.Point(array[1][0], array[1][1]),\n - new OpenLayers.Geometry.Point(array[0][0], array[1][1]),\n - new OpenLayers.Geometry.Point(array[0][0], array[0][1])\n - ])\n - ]);\n - }\n -\n - },\n -\n - /**\n - * APIMethod: write\n - * Serialize a feature, geometry, array of features into a GeoJSON string.\n - *\n - * Parameters:\n - * obj - {Object} An <OpenLayers.Feature.Vector>, <OpenLayers.Geometry>,\n - * or an array of features.\n - * pretty - {Boolean} Structure the output with newlines and indentation.\n - * Default is false.\n - *\n - * Returns:\n - * {String} The GeoJSON string representation of the input geometry,\n - * features, or array of features.\n - */\n - write: function(obj, pretty) {\n - var geojson = {\n - "type": null\n - };\n - if(OpenLayers.Util.isArray(obj)) {\n - geojson.type = "FeatureCollection";\n - var numFeatures = obj.length;\n - geojson.features = new Array(numFeatures);\n - for(var i=0; i<numFeatures; ++i) {\n - var element = obj[i];\n - if(!element instanceof OpenLayers.Feature.Vector) {\n - var msg = "FeatureCollection only supports collections " +\n - "of features: " + element;\n - throw msg;\n - }\n - geojson.features[i] = this.extract.feature.apply(\n - this, [element]\n - );\n - }\n - } else if (obj.CLASS_NAME.indexOf("OpenLayers.Geometry") == 0) {\n - geojson = this.extract.geometry.apply(this, [obj]);\n - } else if (obj instanceof OpenLayers.Feature.Vector) {\n - geojson = this.extract.feature.apply(this, [obj]);\n - if(obj.layer && obj.layer.projection) {\n - geojson.crs = this.createCRSObject(obj);\n - }\n - }\n - return OpenLayers.Format.JSON.prototype.write.apply(this,\n - [geojson, pretty]);\n - },\n -\n - /**\n - * Method: createCRSObject\n - * Create the CRS object for an object.\n - *\n - * Parameters:\n - * object - {<OpenLayers.Feature.Vector>} \n - *\n - * Returns:\n - * {Object} An object which can be assigned to the crs property\n - * of a GeoJSON object.\n - */\n - createCRSObject: function(object) {\n - var proj = object.layer.projection.toString();\n - var crs = {};\n - if (proj.match(/epsg:/i)) {\n - var code = parseInt(proj.substring(proj.indexOf(":") + 1));\n - if (code == 4326) {\n - crs = {\n - "type": "name",\n - "properties": {\n - "name": "urn:ogc:def:crs:OGC:1.3:CRS84"\n - }\n - };\n - } else { \n - crs = {\n - "type": "name",\n - "properties": {\n - "name": "EPSG:" + code\n - }\n - };\n - } \n - }\n - return crs;\n - },\n - \n - /**\n - * Property: extract\n - * Object with properties corresponding to the GeoJSON types.\n - * Property values are functions that do the actual value extraction.\n - */\n - extract: {\n - /**\n - * Method: extract.feature\n - * Return a partial GeoJSON object representing a single feature.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - *\n - * Returns:\n - * {Object} An object representing the point.\n - */\n - \'feature\': function(feature) {\n - var geom = this.extract.geometry.apply(this, [feature.geometry]);\n - var json = {\n - "type": "Feature",\n - "properties": feature.attributes,\n - "geometry": geom\n - };\n - if (feature.fid != null) {\n - json.id = feature.fid;\n - }\n - return json;\n - },\n - \n - /**\n - * Method: extract.geometry\n - * Return a GeoJSON object representing a single geometry.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - *\n - * Returns:\n - * {Object} An object representing the geometry.\n - */\n - \'geometry\': function(geometry) {\n - if (geometry == null) {\n - return null;\n - }\n - if (this.internalProjection && this.externalProjection) {\n - geometry = geometry.clone();\n - geometry.transform(this.internalProjection, \n - this.externalProjection);\n - } \n - var geometryType = geometry.CLASS_NAME.split(\'.\')[2];\n - var data = this.extract[geometryType.toLowerCase()].apply(this, [geometry]);\n - var json;\n - if(geometryType == "Collection") {\n - json = {\n - "type": "GeometryCollection",\n - "geometries": data\n - };\n - } else {\n - json = {\n - "type": geometryType,\n - "coordinates": data\n - };\n - }\n - \n - return json;\n - },\n -\n - /**\n - * Method: extract.point\n - * Return an array of coordinates from a point.\n - *\n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>}\n - *\n - * Returns: \n - * {Array} An array of coordinates representing the point.\n - */\n - \'point\': function(point) {\n - return [point.x, point.y];\n - },\n -\n - /**\n - * Method: extract.multipoint\n - * Return an array of point coordinates from a multipoint.\n - *\n - * Parameters:\n - * multipoint - {<OpenLayers.Geometry.MultiPoint>}\n - *\n - * Returns:\n - * {Array} An array of point coordinate arrays representing\n - * the multipoint.\n - */\n - \'multipoint\': function(multipoint) {\n - var array = [];\n - for(var i=0, len=multipoint.components.length; i<len; ++i) {\n - array.push(this.extract.point.apply(this, [multipoint.components[i]]));\n - }\n - return array;\n - },\n - \n - /**\n - * Method: extract.linestring\n - * Return an array of coordinate arrays from a linestring.\n - *\n - * Parameters:\n - * linestring - {<OpenLayers.Geometry.LineString>}\n - *\n - * Returns:\n - * {Array} An array of coordinate arrays representing\n - * the linestring.\n - */\n - \'linestring\': function(linestring) {\n - var array = [];\n - for(var i=0, len=linestring.components.length; i<len; ++i) {\n - array.push(this.extract.point.apply(this, [linestring.components[i]]));\n - }\n - return array;\n - },\n -\n - /**\n - * Method: extract.multilinestring\n - * Return an array of linestring arrays from a linestring.\n - * \n - * Parameters:\n - * multilinestring - {<OpenLayers.Geometry.MultiLineString>}\n - * \n - * Returns:\n - * {Array} An array of linestring arrays representing\n - * the multilinestring.\n - */\n - \'multilinestring\': function(multilinestring) {\n - var array = [];\n - for(var i=0, len=multilinestring.components.length; i<len; ++i) {\n - array.push(this.extract.linestring.apply(this, [multilinestring.components[i]]));\n - }\n - return array;\n - },\n - \n - /**\n - * Method: extract.polygon\n - * Return an array of linear ring arrays from a polygon.\n - *\n - * Parameters:\n - * polygon - {<OpenLayers.Geometry.Polygon>}\n - * \n - * Returns:\n - * {Array} An array of linear ring arrays representing the polygon.\n - */\n - \'polygon\': function(polygon) {\n - var array = [];\n - for(var i=0, len=polygon.components.length; i<len; ++i) {\n - array.push(this.extract.linestring.apply(this, [polygon.components[i]]));\n - }\n - return array;\n - },\n -\n - /**\n - * Method: extract.multipolygon\n - * Return an array of polygon arrays from a multipolygon.\n - * \n - * Parameters:\n - * multipolygon - {<OpenLayers.Geometry.MultiPolygon>}\n - * \n - * Returns:\n - * {Array} An array of polygon arrays representing\n - * the multipolygon\n - */\n - \'multipolygon\': function(multipolygon) {\n - var array = [];\n - for(var i=0, len=multipolygon.components.length; i<len; ++i) {\n - array.push(this.extract.polygon.apply(this, [multipolygon.components[i]]));\n - }\n - return array;\n - },\n - \n - /**\n - * Method: extract.collection\n - * Return an array of geometries from a geometry collection.\n - * \n - * Parameters:\n - * collection - {<OpenLayers.Geometry.Collection>}\n - * \n - * Returns:\n - * {Array} An array of geometry objects representing the geometry\n - * collection.\n - */\n - \'collection\': function(collection) {\n - var len = collection.components.length;\n - var array = new Array(len);\n - for(var i=0; i<len; ++i) {\n - array[i] = this.extract.geometry.apply(\n - this, [collection.components[i]]\n - );\n - }\n - return array;\n - }\n - \n -\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.GeoJSON" \n -\n -}); \n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>24949</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GeoRSS.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GeoRSS.js.xml deleted file mode 100644 index d68ffc249a535ff42bbc21dce76420504c8a6c1b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/GeoRSS.js.xml +++ /dev/null @@ -1,453 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.9</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>GeoRSS.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Feature/Vector.js\n - * @requires OpenLayers/Geometry/Point.js\n - * @requires OpenLayers/Geometry/LineString.js\n - * @requires OpenLayers/Geometry/Polygon.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.GeoRSS\n - * Read/write GeoRSS parser. Create a new instance with the \n - * <OpenLayers.Format.GeoRSS> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.GeoRSS = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * APIProperty: rssns\n - * {String} RSS namespace to use. Defaults to\n - * "http://backend.userland.com/rss2"\n - */\n - rssns: "http://backend.userland.com/rss2",\n - \n - /**\n - * APIProperty: featurens\n - * {String} Feature Attributes namespace. Defaults to\n - * "http://mapserver.gis.umn.edu/mapserver"\n - */\n - featureNS: "http://mapserver.gis.umn.edu/mapserver",\n - \n - /**\n - * APIProperty: georssns\n - * {String} GeoRSS namespace to use. Defaults to\n - * "http://www.georss.org/georss"\n - */\n - georssns: "http://www.georss.org/georss",\n -\n - /**\n - * APIProperty: geons\n - * {String} W3C Geo namespace to use. Defaults to\n - * "http://www.w3.org/2003/01/geo/wgs84_pos#"\n - */\n - geons: "http://www.w3.org/2003/01/geo/wgs84_pos#",\n - \n - /**\n - * APIProperty: featureTitle\n - * {String} Default title for features. Defaults to "Untitled"\n - */\n - featureTitle: "Untitled",\n - \n - /**\n - * APIProperty: featureDescription\n - * {String} Default description for features. Defaults to "No Description"\n - */\n - featureDescription: "No Description",\n - \n - /**\n - * Property: gmlParse\n - * {Object} GML Format object for parsing features\n - * Non-API and only created if necessary\n - */\n - gmlParser: null,\n -\n - /**\n - * APIProperty: xy\n - * {Boolean} Order of the GML coordinate: true:(x,y) or false:(y,x)\n - * For GeoRSS the default is (y,x), therefore: false\n - */ \n - xy: false,\n - \n - /**\n - * Constructor: OpenLayers.Format.GeoRSS\n - * Create a new parser for GeoRSS.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - \n - /**\n - * Method: createGeometryFromItem\n - * Return a geometry from a GeoRSS Item.\n - *\n - * Parameters:\n - * item - {DOMElement} A GeoRSS item node.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry>} A geometry representing the node.\n - */\n - createGeometryFromItem: function(item) {\n - var point = this.getElementsByTagNameNS(item, this.georssns, "point");\n - var lat = this.getElementsByTagNameNS(item, this.geons, \'lat\');\n - var lon = this.getElementsByTagNameNS(item, this.geons, \'long\');\n - \n - var line = this.getElementsByTagNameNS(item,\n - this.georssns,\n - "line");\n - var polygon = this.getElementsByTagNameNS(item,\n - this.georssns,\n - "polygon");\n - var where = this.getElementsByTagNameNS(item, \n - this.georssns, \n - "where");\n - var box = this.getElementsByTagNameNS(item, \n - this.georssns, \n - "box");\n -\n - if (point.length > 0 || (lat.length > 0 && lon.length > 0)) {\n - var location;\n - if (point.length > 0) {\n - location = OpenLayers.String.trim(\n - point[0].firstChild.nodeValue).split(/\\s+/);\n - if (location.length !=2) {\n - location = OpenLayers.String.trim(\n - point[0].firstChild.nodeValue).split(/\\s*,\\s*/);\n - }\n - } else {\n - location = [parseFloat(lat[0].firstChild.nodeValue),\n - parseFloat(lon[0].firstChild.nodeValue)];\n - } \n -\n - var geometry = new OpenLayers.Geometry.Point(location[1], location[0]);\n - \n - } else if (line.length > 0) {\n - var coords = OpenLayers.String.trim(this.getChildValue(line[0])).split(/\\s+/);\n - var components = []; \n - var point;\n - for (var i=0, len=coords.length; i<len; i+=2) {\n - point = new OpenLayers.Geometry.Point(coords[i+1], coords[i]);\n - components.push(point);\n - }\n - geometry = new OpenLayers.Geometry.LineString(components);\n - } else if (polygon.length > 0) { \n - var coords = OpenLayers.String.trim(this.getChildValue(polygon[0])).split(/\\s+/);\n - var components = []; \n - var point;\n - for (var i=0, len=coords.length; i<len; i+=2) {\n - point = new OpenLayers.Geometry.Point(coords[i+1], coords[i]);\n - components.push(point);\n - }\n - geometry = new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing(components)]);\n - } else if (where.length > 0) { \n - if (!this.gmlParser) {\n - this.gmlParser = new OpenLayers.Format.GML({\'xy\': this.xy});\n - }\n - var feature = this.gmlParser.parseFeature(where[0]);\n - geometry = feature.geometry;\n - } else if (box.length > 0) {\n - var coords = OpenLayers.String.trim(box[0].firstChild.nodeValue).split(/\\s+/);\n - var components = [];\n - var point;\n - if (coords.length > 3) {\n - point = new OpenLayers.Geometry.Point(coords[1], coords[0]);\n - components.push(point);\n - point = new OpenLayers.Geometry.Point(coords[1], coords[2]);\n - components.push(point);\n - point = new OpenLayers.Geometry.Point(coords[3], coords[2]);\n - components.push(point);\n - point = new OpenLayers.Geometry.Point(coords[3], coords[0]);\n - components.push(point);\n - point = new OpenLayers.Geometry.Point(coords[1], coords[0]);\n - components.push(point);\n - }\n - geometry = new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing(components)]);\n - }\n - \n - if (geometry && this.internalProjection && this.externalProjection) {\n - geometry.transform(this.externalProjection, \n - this.internalProjection);\n - }\n -\n - return geometry;\n - }, \n -\n - /**\n - * Method: createFeatureFromItem\n - * Return a feature from a GeoRSS Item.\n - *\n - * Parameters:\n - * item - {DOMElement} A GeoRSS item node.\n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector>} A feature representing the item.\n - */\n - createFeatureFromItem: function(item) {\n - var geometry = this.createGeometryFromItem(item);\n - \n - /* Provide defaults for title and description */\n - var title = this._getChildValue(item, "*", "title", this.featureTitle);\n - \n - /* First try RSS descriptions, then Atom summaries */\n - var description = this._getChildValue(\n - item, "*", "description",\n - this._getChildValue(item, "*", "content",\n - this._getChildValue(item, "*", "summary", this.featureDescription)));\n -\n - /* If no link URL is found in the first child node, try the\n - href attribute */\n - var link = this._getChildValue(item, "*", "link");\n - if(!link) {\n - try {\n - link = this.getElementsByTagNameNS(item, "*", "link")[0].getAttribute("href");\n - } catch(e) {\n - link = null;\n - }\n - }\n -\n - var id = this._getChildValue(item, "*", "id", null);\n - \n - var data = {\n - "title": title,\n - "description": description,\n - "link": link\n - };\n - var feature = new OpenLayers.Feature.Vector(geometry, data);\n - feature.fid = id;\n - return feature;\n - }, \n - \n - /**\n - * Method: _getChildValue\n - *\n - * Parameters:\n - * node - {DOMElement}\n - * nsuri - {String} Child node namespace uri ("*" for any).\n - * name - {String} Child node name.\n - * def - {String} Optional string default to return if no child found.\n - *\n - * Returns:\n - * {String} The value of the first child with the given tag name. Returns\n - * default value or empty string if none found.\n - */\n - _getChildValue: function(node, nsuri, name, def) {\n - var value;\n - var eles = this.getElementsByTagNameNS(node, nsuri, name);\n - if(eles && eles[0] && eles[0].firstChild\n - && eles[0].firstChild.nodeValue) {\n - value = this.getChildValue(eles[0]);\n - } else {\n - value = (def == undefined) ? "" : def;\n - }\n - return value;\n - },\n - \n - /**\n - * APIMethod: read\n - * Return a list of features from a GeoRSS doc\n - *\n - * Parameters:\n - * doc - {Element} \n - *\n - * Returns:\n - * {Array(<OpenLayers.Feature.Vector>)}\n - */\n - read: function(doc) {\n - if (typeof doc == "string") { \n - doc = OpenLayers.Format.XML.prototype.read.apply(this, [doc]);\n - }\n -\n - /* Try RSS items first, then Atom entries */\n - var itemlist = null;\n - itemlist = this.getElementsByTagNameNS(doc, \'*\', \'item\');\n - if (itemlist.length == 0) {\n - itemlist = this.getElementsByTagNameNS(doc, \'*\', \'entry\');\n - }\n - \n - var numItems = itemlist.length;\n - var features = new Array(numItems);\n - for(var i=0; i<numItems; i++) {\n - features[i] = this.createFeatureFromItem(itemlist[i]);\n - }\n - return features;\n - },\n - \n -\n - /**\n - * APIMethod: write\n - * Accept Feature Collection, and return a string. \n - * \n - * Parameters: \n - * features - {Array(<OpenLayers.Feature.Vector>)} List of features to serialize into a string.\n - */\n - write: function(features) {\n - var georss;\n - if(OpenLayers.Util.isArray(features)) {\n - georss = this.createElementNS(this.rssns, "rss");\n - for(var i=0, len=features.length; i<len; i++) {\n - georss.appendChild(this.createFeatureXML(features[i]));\n - }\n - } else {\n - georss = this.createFeatureXML(features);\n - }\n - return OpenLayers.Format.XML.prototype.write.apply(this, [georss]);\n - },\n -\n - /**\n - * Method: createFeatureXML\n - * Accept an <OpenLayers.Feature.Vector>, and build a geometry for it.\n - * \n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} \n - *\n - * Returns:\n - * {DOMElement}\n - */\n - createFeatureXML: function(feature) {\n - var geometryNode = this.buildGeometryNode(feature.geometry);\n - var featureNode = this.createElementNS(this.rssns, "item");\n - var titleNode = this.createElementNS(this.rssns, "title");\n - titleNode.appendChild(this.createTextNode(feature.attributes.title ? feature.attributes.title : ""));\n - var descNode = this.createElementNS(this.rssns, "description");\n - descNode.appendChild(this.createTextNode(feature.attributes.description ? feature.attributes.description : ""));\n - featureNode.appendChild(titleNode);\n - featureNode.appendChild(descNode);\n - if (feature.attributes.link) {\n - var linkNode = this.createElementNS(this.rssns, "link");\n - linkNode.appendChild(this.createTextNode(feature.attributes.link));\n - featureNode.appendChild(linkNode);\n - } \n - for(var attr in feature.attributes) {\n - if (attr == "link" || attr == "title" || attr == "description") { continue; } \n - var attrText = this.createTextNode(feature.attributes[attr]); \n - var nodename = attr;\n - if (attr.search(":") != -1) {\n - nodename = attr.split(":")[1];\n - } \n - var attrContainer = this.createElementNS(this.featureNS, "feature:"+nodename);\n - attrContainer.appendChild(attrText);\n - featureNode.appendChild(attrContainer);\n - } \n - featureNode.appendChild(geometryNode);\n - return featureNode;\n - }, \n - \n - /** \n - * Method: buildGeometryNode\n - * builds a GeoRSS node with a given geometry\n - * \n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - *\n - * Returns:\n - * {DOMElement} A gml node.\n - */\n - buildGeometryNode: function(geometry) {\n - if (this.internalProjection && this.externalProjection) {\n - geometry = geometry.clone();\n - geometry.transform(this.internalProjection, \n - this.externalProjection);\n - }\n - var node;\n - // match Polygon\n - if (geometry.CLASS_NAME == "OpenLayers.Geometry.Polygon") {\n - node = this.createElementNS(this.georssns, \'georss:polygon\');\n - \n - node.appendChild(this.buildCoordinatesNode(geometry.components[0]));\n - }\n - // match LineString\n - else if (geometry.CLASS_NAME == "OpenLayers.Geometry.LineString") {\n - node = this.createElementNS(this.georssns, \'georss:line\');\n - \n - node.appendChild(this.buildCoordinatesNode(geometry));\n - }\n - // match Point\n - else if (geometry.CLASS_NAME == "OpenLayers.Geometry.Point") {\n - node = this.createElementNS(this.georssns, \'georss:point\');\n - node.appendChild(this.buildCoordinatesNode(geometry));\n - } else {\n - throw "Couldn\'t parse " + geometry.CLASS_NAME;\n - } \n - return node; \n - },\n - \n - /** \n - * Method: buildCoordinatesNode\n - * \n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - */\n - buildCoordinatesNode: function(geometry) {\n - var points = null;\n - \n - if (geometry.components) {\n - points = geometry.components;\n - }\n -\n - var path;\n - if (points) {\n - var numPoints = points.length;\n - var parts = new Array(numPoints);\n - for (var i = 0; i < numPoints; i++) {\n - parts[i] = points[i].y + " " + points[i].x;\n - }\n - path = parts.join(" ");\n - } else {\n - path = geometry.y + " " + geometry.x;\n - }\n - return this.createTextNode(path);\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.GeoRSS" \n -}); \n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>14717</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/JSON.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/JSON.js.xml deleted file mode 100644 index 083a02a39507926fea1de59991b3a0130959032e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/JSON.js.xml +++ /dev/null @@ -1,442 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>JSON.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * Note:\n - * This work draws heavily from the public domain JSON serializer/deserializer\n - * at http://www.json.org/json.js. Rewritten so that it doesn\'t modify\n - * basic data prototypes.\n - */\n -\n -/**\n - * @requires OpenLayers/Format.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.JSON\n - * A parser to read/write JSON safely. Create a new instance with the\n - * <OpenLayers.Format.JSON> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format>\n - */\n -OpenLayers.Format.JSON = OpenLayers.Class(OpenLayers.Format, {\n - \n - /**\n - * APIProperty: indent\n - * {String} For "pretty" printing, the indent string will be used once for\n - * each indentation level.\n - */\n - indent: " ",\n - \n - /**\n - * APIProperty: space\n - * {String} For "pretty" printing, the space string will be used after\n - * the ":" separating a name/value pair.\n - */\n - space: " ",\n - \n - /**\n - * APIProperty: newline\n - * {String} For "pretty" printing, the newline string will be used at the\n - * end of each name/value pair or array item.\n - */\n - newline: "\\n",\n - \n - /**\n - * Property: level\n - * {Integer} For "pretty" printing, this is incremented/decremented during\n - * serialization.\n - */\n - level: 0,\n -\n - /**\n - * Property: pretty\n - * {Boolean} Serialize with extra whitespace for structure. This is set\n - * by the <write> method.\n - */\n - pretty: false,\n -\n - /**\n - * Property: nativeJSON\n - * {Boolean} Does the browser support native json?\n - */\n - nativeJSON: (function() {\n - return !!(window.JSON && typeof JSON.parse == "function" && typeof JSON.stringify == "function");\n - })(),\n -\n - /**\n - * Constructor: OpenLayers.Format.JSON\n - * Create a new parser for JSON.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Deserialize a json string.\n - *\n - * Parameters:\n - * json - {String} A JSON string\n - * filter - {Function} A function which will be called for every key and\n - * value at every level of the final result. Each value will be\n - * replaced by the result of the filter function. This can be used to\n - * reform generic objects into instances of classes, or to transform\n - * date strings into Date objects.\n - * \n - * Returns:\n - * {Object} An object, array, string, or number .\n - */\n - read: function(json, filter) {\n - var object;\n - if (this.nativeJSON) {\n - object = JSON.parse(json, filter);\n - } else try {\n - /**\n - * Parsing happens in three stages. In the first stage, we run the\n - * text against a regular expression which looks for non-JSON\n - * characters. We are especially concerned with \'()\' and \'new\'\n - * because they can cause invocation, and \'=\' because it can\n - * cause mutation. But just to be safe, we will reject all\n - * unexpected characters.\n - */\n - if (/^[\\],:{}\\s]*$/.test(json.replace(/\\\\["\\\\\\/bfnrtu]/g, \'@\').\n - replace(/"[^"\\\\\\n\\r]*"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g, \']\').\n - replace(/(?:^|:|,)(?:\\s*\\[)+/g, \'\'))) {\n -\n - /**\n - * In the second stage we use the eval function to compile the\n - * text into a JavaScript structure. The \'{\' operator is\n - * subject to a syntactic ambiguity in JavaScript - it can\n - * begin a block or an object literal. We wrap the text in\n - * parens to eliminate the ambiguity.\n - */\n - object = eval(\'(\' + json + \')\');\n -\n - /**\n - * In the optional third stage, we recursively walk the new\n - * structure, passing each name/value pair to a filter\n - * function for possible transformation.\n - */\n - if(typeof filter === \'function\') {\n - function walk(k, v) {\n - if(v && typeof v === \'object\') {\n - for(var i in v) {\n - if(v.hasOwnProperty(i)) {\n - v[i] = walk(i, v[i]);\n - }\n - }\n - }\n - return filter(k, v);\n - }\n - object = walk(\'\', object);\n - }\n - }\n - } catch(e) {\n - // Fall through if the regexp test fails.\n - }\n -\n - if(this.keepData) {\n - this.data = object;\n - }\n -\n - return object;\n - },\n -\n - /**\n - * APIMethod: write\n - * Serialize an object into a JSON string.\n - *\n - * Parameters:\n - * value - {String} The object, array, string, number, boolean or date\n - * to be serialized.\n - * pretty - {Boolean} Structure the output with newlines and indentation.\n - * Default is false.\n - *\n - * Returns:\n - * {String} The JSON string representation of the input value.\n - */\n - write: function(value, pretty) {\n - this.pretty = !!pretty;\n - var json = null;\n - var type = typeof value;\n - if(this.serialize[type]) {\n - try {\n - json = (!this.pretty && this.nativeJSON) ?\n - JSON.stringify(value) :\n - this.serialize[type].apply(this, [value]);\n - } catch(err) {\n - OpenLayers.Console.error("Trouble serializing: " + err);\n - }\n - }\n - return json;\n - },\n - \n - /**\n - * Method: writeIndent\n - * Output an indentation string depending on the indentation level.\n - *\n - * Returns:\n - * {String} An appropriate indentation string.\n - */\n - writeIndent: function() {\n - var pieces = [];\n - if(this.pretty) {\n - for(var i=0; i<this.level; ++i) {\n - pieces.push(this.indent);\n - }\n - }\n - return pieces.join(\'\');\n - },\n - \n - /**\n - * Method: writeNewline\n - * Output a string representing a newline if in pretty printing mode.\n - *\n - * Returns:\n - * {String} A string representing a new line.\n - */\n - writeNewline: function() {\n - return (this.pretty) ? this.newline : \'\';\n - },\n - \n - /**\n - * Method: writeSpace\n - * Output a string representing a space if in pretty printing mode.\n - *\n - * Returns:\n - * {String} A space.\n - */\n - writeSpace: function() {\n - return (this.pretty) ? this.space : \'\';\n - },\n -\n - /**\n - * Property: serialize\n - * Object with properties corresponding to the serializable data types.\n - * Property values are functions that do the actual serializing.\n - */\n - serialize: {\n - /**\n - * Method: serialize.object\n - * Transform an object into a JSON string.\n - *\n - * Parameters:\n - * object - {Object} The object to be serialized.\n - * \n - * Returns:\n - * {String} A JSON string representing the object.\n - */\n - \'object\': function(object) {\n - // three special objects that we want to treat differently\n - if(object == null) {\n - return "null";\n - }\n - if(object.constructor == Date) {\n - return this.serialize.date.apply(this, [object]);\n - }\n - if(object.constructor == Array) {\n - return this.serialize.array.apply(this, [object]);\n - }\n - var pieces = [\'{\'];\n - this.level += 1;\n - var key, keyJSON, valueJSON;\n - \n - var addComma = false;\n - for(key in object) {\n - if(object.hasOwnProperty(key)) {\n - // recursive calls need to allow for sub-classing\n - keyJSON = OpenLayers.Format.JSON.prototype.write.apply(this,\n - [key, this.pretty]);\n - valueJSON = OpenLayers.Format.JSON.prototype.write.apply(this,\n - [object[key], this.pretty]);\n - if(keyJSON != null && valueJSON != null) {\n - if(addComma) {\n - pieces.push(\',\');\n - }\n - pieces.push(this.writeNewline(), this.writeIndent(),\n - keyJSON, \':\', this.writeSpace(), valueJSON);\n - addComma = true;\n - }\n - }\n - }\n - \n - this.level -= 1;\n - pieces.push(this.writeNewline(), this.writeIndent(), \'}\');\n - return pieces.join(\'\');\n - },\n - \n - /**\n - * Method: serialize.array\n - * Transform an array into a JSON string.\n - *\n - * Parameters:\n - * array - {Array} The array to be serialized\n - * \n - * Returns:\n - * {String} A JSON string representing the array.\n - */\n - \'array\': function(array) {\n - var json;\n - var pieces = [\'[\'];\n - this.level += 1;\n - \n - for(var i=0, len=array.length; i<len; ++i) {\n - // recursive calls need to allow for sub-classing\n - json = OpenLayers.Format.JSON.prototype.write.apply(this,\n - [array[i], this.pretty]);\n - if(json != null) {\n - if(i > 0) {\n - pieces.push(\',\');\n - }\n - pieces.push(this.writeNewline(), this.writeIndent(), json);\n - }\n - }\n -\n - this.level -= 1; \n - pieces.push(this.writeNewline(), this.writeIndent(), \']\');\n - return pieces.join(\'\');\n - },\n - \n - /**\n - * Method: serialize.string\n - * Transform a string into a JSON string.\n - *\n - * Parameters:\n - * string - {String} The string to be serialized\n - * \n - * Returns:\n - * {String} A JSON string representing the string.\n - */\n - \'string\': function(string) {\n - // If the string contains no control characters, no quote characters, and no\n - // backslash characters, then we can simply slap some quotes around it.\n - // Otherwise we must also replace the offending characters with safe\n - // sequences. \n - var m = {\n - \'\\b\': \'\\\\b\',\n - \'\\t\': \'\\\\t\',\n - \'\\n\': \'\\\\n\',\n - \'\\f\': \'\\\\f\',\n - \'\\r\': \'\\\\r\',\n - \'"\' : \'\\\\"\',\n - \'\\\\\': \'\\\\\\\\\'\n - };\n - if(/["\\\\\\x00-\\x1f]/.test(string)) {\n - return \'"\' + string.replace(/([\\x00-\\x1f\\\\"])/g, function(a, b) {\n - var c = m[b];\n - if(c) {\n - return c;\n - }\n - c = b.charCodeAt();\n - return \'\\\\u00\' +\n - Math.floor(c / 16).toString(16) +\n - (c % 16).toString(16);\n - }) + \'"\';\n - }\n - return \'"\' + string + \'"\';\n - },\n -\n - /**\n - * Method: serialize.number\n - * Transform a number into a JSON string.\n - *\n - * Parameters:\n - * number - {Number} The number to be serialized.\n - *\n - * Returns:\n - * {String} A JSON string representing the number.\n - */\n - \'number\': function(number) {\n - return isFinite(number) ? String(number) : "null";\n - },\n - \n - /**\n - * Method: serialize.boolean\n - * Transform a boolean into a JSON string.\n - *\n - * Parameters:\n - * bool - {Boolean} The boolean to be serialized.\n - * \n - * Returns:\n - * {String} A JSON string representing the boolean.\n - */\n - \'boolean\': function(bool) {\n - return String(bool);\n - },\n - \n - /**\n - * Method: serialize.object\n - * Transform a date into a JSON string.\n - *\n - * Parameters:\n - * date - {Date} The date to be serialized.\n - * \n - * Returns:\n - * {String} A JSON string representing the date.\n - */\n - \'date\': function(date) { \n - function format(number) {\n - // Format integers to have at least two digits.\n - return (number < 10) ? \'0\' + number : number;\n - }\n - return \'"\' + date.getFullYear() + \'-\' +\n - format(date.getMonth() + 1) + \'-\' +\n - format(date.getDate()) + \'T\' +\n - format(date.getHours()) + \':\' +\n - format(date.getMinutes()) + \':\' +\n - format(date.getSeconds()) + \'"\';\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.JSON" \n -\n -}); \n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>13212</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/KML.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/KML.js.xml deleted file mode 100644 index 1f03dac28115872557069d30f143e62a674a55b8..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/KML.js.xml +++ /dev/null @@ -1,1562 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>KML.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Date.js\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Feature/Vector.js\n - * @requires OpenLayers/Geometry/Point.js\n - * @requires OpenLayers/Geometry/LineString.js\n - * @requires OpenLayers/Geometry/Polygon.js\n - * @requires OpenLayers/Geometry/Collection.js\n - * @requires OpenLayers/Request/XMLHttpRequest.js\n - * @requires OpenLayers/Projection.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.KML\n - * Read/Write KML. Create a new instance with the <OpenLayers.Format.KML>\n - * constructor. \n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - kml: "http://www.opengis.net/kml/2.2",\n - gx: "http://www.google.com/kml/ext/2.2"\n - },\n -\n - /**\n - * APIProperty: kmlns\n - * {String} KML Namespace to use. Defaults to 2.0 namespace.\n - */\n - kmlns: "http://earth.google.com/kml/2.0",\n - \n - /** \n - * APIProperty: placemarksDesc\n - * {String} Name of the placemarks. Default is "No description available".\n - */\n - placemarksDesc: "No description available",\n - \n - /** \n - * APIProperty: foldersName\n - * {String} Name of the folders. Default is "OpenLayers export".\n - * If set to null, no name element will be created.\n - */\n - foldersName: "OpenLayers export",\n - \n - /** \n - * APIProperty: foldersDesc\n - * {String} Description of the folders. Default is "Exported on [date]."\n - * If set to null, no description element will be created.\n - */\n - foldersDesc: "Exported on " + new Date(),\n - \n - /**\n - * APIProperty: extractAttributes\n - * {Boolean} Extract attributes from KML. Default is true.\n - * Extracting styleUrls requires this to be set to true\n - * Note that currently only Data and SimpleData \n - * elements are handled.\n - */\n - extractAttributes: true,\n - \n - /**\n - * APIProperty: kvpAttributes\n - * {Boolean} Only used if extractAttributes is true.\n - * If set to true, attributes will be simple\n - * key-value pairs, compatible with other formats,\n - * Any displayName elements will be ignored.\n - * If set to false, attributes will be objects,\n - * retaining any displayName elements, but not\n - * compatible with other formats. Any CDATA in\n - * displayName will be read in as a string value.\n - * Default is false.\n - */\n - kvpAttributes: false,\n - \n - /**\n - * Property: extractStyles\n - * {Boolean} Extract styles from KML. Default is false.\n - * Extracting styleUrls also requires extractAttributes to be\n - * set to true\n - */\n - extractStyles: false,\n - \n - /**\n - * APIProperty: extractTracks\n - * {Boolean} Extract gx:Track elements from Placemark elements. Default\n - * is false. If true, features will be generated for all points in\n - * all gx:Track elements. Features will have a when (Date) attribute\n - * based on when elements in the track. If tracks include angle\n - * elements, features will have heading, tilt, and roll attributes.\n - * If track point coordinates have three values, features will have\n - * an altitude attribute with the third coordinate value.\n - */\n - extractTracks: false,\n - \n - /**\n - * APIProperty: trackAttributes\n - * {Array} If <extractTracks> is true, points within gx:Track elements will \n - * be parsed as features with when, heading, tilt, and roll attributes.\n - * Any additional attribute names can be provided in <trackAttributes>.\n - */\n - trackAttributes: null,\n - \n - /**\n - * Property: internalns\n - * {String} KML Namespace to use -- defaults to the namespace of the\n - * Placemark node being parsed, but falls back to kmlns. \n - */\n - internalns: null,\n -\n - /**\n - * Property: features\n - * {Array} Array of features\n - * \n - */\n - features: null,\n -\n - /**\n - * Property: styles\n - * {Object} Storage of style objects\n - * \n - */\n - styles: null,\n - \n - /**\n - * Property: styleBaseUrl\n - * {String}\n - */\n - styleBaseUrl: "",\n -\n - /**\n - * Property: fetched\n - * {Object} Storage of KML URLs that have been fetched before\n - * in order to prevent reloading them.\n - */\n - fetched: null,\n -\n - /**\n - * APIProperty: maxDepth\n - * {Integer} Maximum depth for recursive loading external KML URLs \n - * Defaults to 0: do no external fetching\n - */\n - maxDepth: 0,\n -\n - /**\n - * Constructor: OpenLayers.Format.KML\n - * Create a new parser for KML.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - // compile regular expressions once instead of every time they are used\n - this.regExes = {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g),\n - kmlColor: (/(\\w{2})(\\w{2})(\\w{2})(\\w{2})/),\n - kmlIconPalette: (/root:\\/\\/icons\\/palette-(\\d+)(\\.\\w+)/),\n - straightBracket: (/\\$\\[(.*?)\\]/g)\n - };\n - // KML coordinates are always in longlat WGS84\n - this.externalProjection = new OpenLayers.Projection("EPSG:4326");\n -\n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - },\n -\n - /**\n - * APIMethod: read\n - * Read data from a string, and return a list of features. \n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Feature.Vector>)} List of features.\n - */\n - read: function(data) {\n - this.features = [];\n - this.styles = {};\n - this.fetched = {};\n -\n - // Set default options \n - var options = {\n - depth: 0,\n - styleBaseUrl: this.styleBaseUrl\n - };\n -\n - return this.parseData(data, options);\n - },\n -\n - /**\n - * Method: parseData\n - * Read data from a string, and return a list of features. \n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - * options - {Object} Hash of options\n - *\n - * Returns:\n - * {Array(<OpenLayers.Feature.Vector>)} List of features.\n - */\n - parseData: function(data, options) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n -\n - // Loop throught the following node types in this order and\n - // process the nodes found \n - var types = ["Link", "NetworkLink", "Style", "StyleMap", "Placemark"];\n - for(var i=0, len=types.length; i<len; ++i) {\n - var type = types[i];\n -\n - var nodes = this.getElementsByTagNameNS(data, "*", type);\n -\n - // skip to next type if no nodes are found\n - if(nodes.length == 0) { \n - continue;\n - }\n -\n - switch (type.toLowerCase()) {\n -\n - // Fetch external links \n - case "link":\n - case "networklink":\n - this.parseLinks(nodes, options);\n - break;\n -\n - // parse style information\n - case "style":\n - if (this.extractStyles) {\n - this.parseStyles(nodes, options);\n - }\n - break;\n - case "stylemap":\n - if (this.extractStyles) {\n - this.parseStyleMaps(nodes, options);\n - }\n - break;\n -\n - // parse features\n - case "placemark":\n - this.parseFeatures(nodes, options);\n - break;\n - }\n - }\n - \n - return this.features;\n - },\n -\n - /**\n - * Method: parseLinks\n - * Finds URLs of linked KML documents and fetches them\n - * \n - * Parameters: \n - * nodes - {Array} of {DOMElement} data to read/parse.\n - * options - {Object} Hash of options\n - * \n - */\n - parseLinks: function(nodes, options) {\n - \n - // Fetch external links <NetworkLink> and <Link>\n - // Don\'t do anything if we have reached our maximum depth for recursion\n - if (options.depth >= this.maxDepth) {\n - return false;\n - }\n -\n - // increase depth\n - var newOptions = OpenLayers.Util.extend({}, options);\n - newOptions.depth++;\n -\n - for(var i=0, len=nodes.length; i<len; i++) {\n - var href = this.parseProperty(nodes[i], "*", "href");\n - if(href && !this.fetched[href]) {\n - this.fetched[href] = true; // prevent reloading the same urls\n - var data = this.fetchLink(href);\n - if (data) {\n - this.parseData(data, newOptions);\n - }\n - } \n - }\n -\n - },\n -\n - /**\n - * Method: fetchLink\n - * Fetches a URL and returns the result\n - * \n - * Parameters: \n - * href - {String} url to be fetched\n - * \n - */\n - fetchLink: function(href) {\n - var request = OpenLayers.Request.GET({url: href, async: false});\n - if (request) {\n - return request.responseText;\n - }\n - },\n -\n - /**\n - * Method: parseStyles\n - * Looks for <Style> nodes in the data and parses them\n - * Also parses <StyleMap> nodes, but only uses the \'normal\' key\n - * \n - * Parameters: \n - * nodes - {Array} of {DOMElement} data to read/parse.\n - * options - {Object} Hash of options\n - * \n - */\n - parseStyles: function(nodes, options) {\n - for(var i=0, len=nodes.length; i<len; i++) {\n - var style = this.parseStyle(nodes[i]);\n - if(style) {\n - var styleName = (options.styleBaseUrl || "") + "#" + style.id;\n - \n - this.styles[styleName] = style;\n - }\n - }\n - },\n -\n - /**\n - * Method: parseKmlColor\n - * Parses a kml color (in \'aabbggrr\' format) and returns the corresponding \n - * color and opacity or null if the color is invalid.\n - *\n - * Parameters: \n - * kmlColor - {String} a kml formated color\n - *\n - * Returns:\n - * {Object}\n - */\n - parseKmlColor: function(kmlColor) {\n - var color = null;\n - if (kmlColor) {\n - var matches = kmlColor.match(this.regExes.kmlColor);\n - if (matches) {\n - color = {\n - color: \'#\' + matches[4] + matches[3] + matches[2],\n - opacity: parseInt(matches[1], 16) / 255\n - };\n - }\n - }\n - return color;\n - },\n -\n - /**\n - * Method: parseStyle\n - * Parses the children of a <Style> node and builds the style hash\n - * accordingly\n - * \n - * Parameters: \n - * node - {DOMElement} <Style> node\n - * \n - */\n - parseStyle: function(node) {\n - var style = {};\n - \n - var types = ["LineStyle", "PolyStyle", "IconStyle", "BalloonStyle", \n - "LabelStyle"];\n - var type, styleTypeNode, nodeList, geometry, parser;\n - for(var i=0, len=types.length; i<len; ++i) {\n - type = types[i];\n - styleTypeNode = this.getElementsByTagNameNS(node, "*", type)[0];\n - if(!styleTypeNode) { \n - continue;\n - }\n -\n - // only deal with first geometry of this type\n - switch (type.toLowerCase()) {\n - case "linestyle":\n - var kmlColor = this.parseProperty(styleTypeNode, "*", "color");\n - var color = this.parseKmlColor(kmlColor);\n - if (color) {\n - style["strokeColor"] = color.color;\n - style["strokeOpacity"] = color.opacity;\n - }\n - \n - var width = this.parseProperty(styleTypeNode, "*", "width");\n - if (width) {\n - style["strokeWidth"] = width;\n - }\n - break;\n -\n - case "polystyle":\n - var kmlColor = this.parseProperty(styleTypeNode, "*", "color");\n - var color = this.parseKmlColor(kmlColor);\n - if (color) {\n - style["fillOpacity"] = color.opacity;\n - style["fillColor"] = color.color;\n - }\n - // Check if fill is disabled\n - var fill = this.parseProperty(styleTypeNode, "*", "fill");\n - if (fill == "0") {\n - style["fillColor"] = "none";\n - }\n - // Check if outline is disabled\n - var outline = this.parseProperty(styleTypeNode, "*", "outline");\n - if (outline == "0") {\n - style["strokeWidth"] = "0";\n - }\n - \n - break;\n -\n - case "iconstyle":\n - // set scale\n - var scale = parseFloat(this.parseProperty(styleTypeNode, \n - "*", "scale") || 1);\n - \n - // set default width and height of icon\n - var width = 32 * scale;\n - var height = 32 * scale;\n -\n - var iconNode = this.getElementsByTagNameNS(styleTypeNode, \n - "*", \n - "Icon")[0];\n - if (iconNode) {\n - var href = this.parseProperty(iconNode, "*", "href");\n - if (href) { \n -\n - var w = this.parseProperty(iconNode, "*", "w");\n - var h = this.parseProperty(iconNode, "*", "h");\n -\n - // Settings for Google specific icons that are 64x64\n - // We set the width and height to 64 and halve the\n - // scale to prevent icons from being too big\n - var google = "http://maps.google.com/mapfiles/kml";\n - if (OpenLayers.String.startsWith(\n - href, google) && !w && !h) {\n - w = 64;\n - h = 64;\n - scale = scale / 2;\n - }\n - \n - // if only dimension is defined, make sure the\n - // other one has the same value\n - w = w || h;\n - h = h || w;\n -\n - if (w) {\n - width = parseInt(w) * scale;\n - }\n -\n - if (h) {\n - height = parseInt(h) * scale;\n - }\n -\n - // support for internal icons \n - // (/root://icons/palette-x.png)\n - // x and y tell the position on the palette:\n - // - in pixels\n - // - starting from the left bottom\n - // We translate that to a position in the list \n - // and request the appropriate icon from the \n - // google maps website\n - var matches = href.match(this.regExes.kmlIconPalette);\n - if (matches) {\n - var palette = matches[1];\n - var file_extension = matches[2];\n -\n - var x = this.parseProperty(iconNode, "*", "x");\n - var y = this.parseProperty(iconNode, "*", "y");\n -\n - var posX = x ? x/32 : 0;\n - var posY = y ? (7 - y/32) : 7;\n -\n - var pos = posY * 8 + posX;\n - href = "http://maps.google.com/mapfiles/kml/pal" \n - + palette + "/icon" + pos + file_extension;\n - }\n -\n - style["graphicOpacity"] = 1; // fully opaque\n - style["externalGraphic"] = href;\n - }\n -\n - }\n -\n -\n - // hotSpots define the offset for an Icon\n - var hotSpotNode = this.getElementsByTagNameNS(styleTypeNode, \n - "*", \n - "hotSpot")[0];\n - if (hotSpotNode) {\n - var x = parseFloat(hotSpotNode.getAttribute("x"));\n - var y = parseFloat(hotSpotNode.getAttribute("y"));\n -\n - var xUnits = hotSpotNode.getAttribute("xunits");\n - if (xUnits == "pixels") {\n - style["graphicXOffset"] = -x * scale;\n - }\n - else if (xUnits == "insetPixels") {\n - style["graphicXOffset"] = -width + (x * scale);\n - }\n - else if (xUnits == "fraction") {\n - style["graphicXOffset"] = -width * x;\n - }\n -\n - var yUnits = hotSpotNode.getAttribute("yunits");\n - if (yUnits == "pixels") {\n - style["graphicYOffset"] = -height + (y * scale) + 1;\n - }\n - else if (yUnits == "insetPixels") {\n - style["graphicYOffset"] = -(y * scale) + 1;\n - }\n - else if (yUnits == "fraction") {\n - style["graphicYOffset"] = -height * (1 - y) + 1;\n - }\n - }\n -\n - style["graphicWidth"] = width;\n - style["graphicHeight"] = height;\n - break;\n -\n - case "balloonstyle":\n - var balloonStyle = OpenLayers.Util.getXmlNodeValue(\n - styleTypeNode);\n - if (balloonStyle) {\n - style["balloonStyle"] = balloonStyle.replace(\n - this.regExes.straightBracket, "${$1}");\n - }\n - break;\n - case "labelstyle":\n - var kmlColor = this.parseProperty(styleTypeNode, "*", "color");\n - var color = this.parseKmlColor(kmlColor);\n - if (color) {\n - style["fontColor"] = color.color;\n - style["fontOpacity"] = color.opacity;\n - }\n - break;\n -\n - default:\n - }\n - }\n -\n - // Some polygons have no line color, so we use the fillColor for that\n - if (!style["strokeColor"] && style["fillColor"]) {\n - style["strokeColor"] = style["fillColor"];\n - }\n -\n - var id = node.getAttribute("id");\n - if (id && style) {\n - style.id = id;\n - }\n -\n - return style;\n - },\n -\n - /**\n - * Method: parseStyleMaps\n - * Looks for <Style> nodes in the data and parses them\n - * Also parses <StyleMap> nodes, but only uses the \'normal\' key\n - * \n - * Parameters: \n - * nodes - {Array} of {DOMElement} data to read/parse.\n - * options - {Object} Hash of options\n - * \n - */\n - parseStyleMaps: function(nodes, options) {\n - // Only the default or "normal" part of the StyleMap is processed now\n - // To do the select or "highlight" bit, we\'d need to change lots more\n -\n - for(var i=0, len=nodes.length; i<len; i++) {\n - var node = nodes[i];\n - var pairs = this.getElementsByTagNameNS(node, "*", \n - "Pair");\n -\n - var id = node.getAttribute("id");\n - for (var j=0, jlen=pairs.length; j<jlen; j++) {\n - var pair = pairs[j];\n - // Use the shortcut in the SLD format to quickly retrieve the \n - // value of a node. Maybe it\'s good to have a method in \n - // Format.XML to do this\n - var key = this.parseProperty(pair, "*", "key");\n - var styleUrl = this.parseProperty(pair, "*", "styleUrl");\n -\n - if (styleUrl && key == "normal") {\n - this.styles[(options.styleBaseUrl || "") + "#" + id] =\n - this.styles[(options.styleBaseUrl || "") + styleUrl];\n - }\n -\n - // TODO: implement the "select" part\n - //if (styleUrl && key == "highlight") {\n - //}\n -\n - }\n - }\n -\n - },\n -\n -\n - /**\n - * Method: parseFeatures\n - * Loop through all Placemark nodes and parse them.\n - * Will create a list of features\n - * \n - * Parameters: \n - * nodes - {Array} of {DOMElement} data to read/parse.\n - * options - {Object} Hash of options\n - * \n - */\n - parseFeatures: function(nodes, options) {\n - var features = [];\n - for(var i=0, len=nodes.length; i<len; i++) {\n - var featureNode = nodes[i];\n - var feature = this.parseFeature.apply(this,[featureNode]) ;\n - if(feature) {\n -\n - // Create reference to styleUrl \n - if (this.extractStyles && feature.attributes &&\n - feature.attributes.styleUrl) {\n - feature.style = this.getStyle(feature.attributes.styleUrl, options);\n - }\n -\n - if (this.extractStyles) {\n - // Make sure that <Style> nodes within a placemark are \n - // processed as well\n - var inlineStyleNode = this.getElementsByTagNameNS(featureNode,\n - "*",\n - "Style")[0];\n - if (inlineStyleNode) {\n - var inlineStyle= this.parseStyle(inlineStyleNode);\n - if (inlineStyle) {\n - feature.style = OpenLayers.Util.extend(\n - feature.style, inlineStyle\n - );\n - }\n - }\n - }\n -\n - // check if gx:Track elements should be parsed\n - if (this.extractTracks) {\n - var tracks = this.getElementsByTagNameNS(\n - featureNode, this.namespaces.gx, "Track"\n - );\n - if (tracks && tracks.length > 0) {\n - var track = tracks[0];\n - var container = {\n - features: [],\n - feature: feature\n - };\n - this.readNode(track, container);\n - if (container.features.length > 0) {\n - features.push.apply(features, container.features);\n - }\n - }\n - } else {\n - // add feature to list of features\n - features.push(feature); \n - }\n - } else {\n - throw "Bad Placemark: " + i;\n - }\n - }\n -\n - // add new features to existing feature list\n - this.features = this.features.concat(features);\n - },\n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "kml": {\n - "when": function(node, container) {\n - container.whens.push(OpenLayers.Date.parse(\n - this.getChildValue(node)\n - ));\n - },\n - "_trackPointAttribute": function(node, container) {\n - var name = node.nodeName.split(":").pop();\n - container.attributes[name].push(this.getChildValue(node));\n - }\n - },\n - "gx": {\n - "Track": function(node, container) {\n - var obj = {\n - whens: [],\n - points: [],\n - angles: []\n - };\n - if (this.trackAttributes) {\n - var name;\n - obj.attributes = {};\n - for (var i=0, ii=this.trackAttributes.length; i<ii; ++i) {\n - name = this.trackAttributes[i];\n - obj.attributes[name] = [];\n - if (!(name in this.readers.kml)) {\n - this.readers.kml[name] = this.readers.kml._trackPointAttribute;\n - }\n - }\n - }\n - this.readChildNodes(node, obj);\n - if (obj.whens.length !== obj.points.length) {\n - throw new Error("gx:Track with unequal number of when (" +\n - obj.whens.length + ") and gx:coord (" +\n - obj.points.length + ") elements.");\n - }\n - var hasAngles = obj.angles.length > 0;\n - if (hasAngles && obj.whens.length !== obj.angles.length) {\n - throw new Error("gx:Track with unequal number of when (" +\n - obj.whens.length + ") and gx:angles (" +\n - obj.angles.length + ") elements.");\n - }\n - var feature, point, angles;\n - for (var i=0, ii=obj.whens.length; i<ii; ++i) {\n - feature = container.feature.clone();\n - feature.fid = container.feature.fid || container.feature.id;\n - point = obj.points[i];\n - feature.geometry = point;\n - if ("z" in point) {\n - feature.attributes.altitude = point.z;\n - }\n - if (this.internalProjection && this.externalProjection) {\n - feature.geometry.transform(\n - this.externalProjection, this.internalProjection\n - ); \n - }\n - if (this.trackAttributes) {\n - for (var j=0, jj=this.trackAttributes.length; j<jj; ++j) {\n - feature.attributes[name] = obj.attributes[this.trackAttributes[j]][i];\n - }\n - }\n - feature.attributes.when = obj.whens[i];\n - feature.attributes.trackId = container.feature.id;\n - if (hasAngles) {\n - angles = obj.angles[i];\n - feature.attributes.heading = parseFloat(angles[0]);\n - feature.attributes.tilt = parseFloat(angles[1]);\n - feature.attributes.roll = parseFloat(angles[2]);\n - }\n - container.features.push(feature);\n - }\n - },\n - "coord": function(node, container) {\n - var str = this.getChildValue(node);\n - var coords = str.replace(this.regExes.trimSpace, "").split(/\\s+/);\n - var point = new OpenLayers.Geometry.Point(coords[0], coords[1]);\n - if (coords.length > 2) {\n - point.z = parseFloat(coords[2]);\n - }\n - container.points.push(point);\n - },\n - "angles": function(node, container) {\n - var str = this.getChildValue(node);\n - var parts = str.replace(this.regExes.trimSpace, "").split(/\\s+/);\n - container.angles.push(parts);\n - }\n - }\n - },\n - \n - /**\n - * Method: parseFeature\n - * This function is the core of the KML parsing code in OpenLayers.\n - * It creates the geometries that are then attached to the returned\n - * feature, and calls parseAttributes() to get attribute data out.\n - *\n - * Parameters:\n - * node - {DOMElement}\n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector>} A vector feature.\n - */\n - parseFeature: function(node) {\n - // only accept one geometry per feature - look for highest "order"\n - var order = ["MultiGeometry", "Polygon", "LineString", "Point"];\n - var type, nodeList, geometry, parser;\n - for(var i=0, len=order.length; i<len; ++i) {\n - type = order[i];\n - this.internalns = node.namespaceURI ? \n - node.namespaceURI : this.kmlns;\n - nodeList = this.getElementsByTagNameNS(node, \n - this.internalns, type);\n - if(nodeList.length > 0) {\n - // only deal with first geometry of this type\n - var parser = this.parseGeometry[type.toLowerCase()];\n - if(parser) {\n - geometry = parser.apply(this, [nodeList[0]]);\n - if (this.internalProjection && this.externalProjection) {\n - geometry.transform(this.externalProjection, \n - this.internalProjection); \n - } \n - } else {\n - throw new TypeError("Unsupported geometry type: " + type);\n - }\n - // stop looking for different geometry types\n - break;\n - }\n - }\n -\n - // construct feature (optionally with attributes)\n - var attributes;\n - if(this.extractAttributes) {\n - attributes = this.parseAttributes(node);\n - }\n - var feature = new OpenLayers.Feature.Vector(geometry, attributes);\n -\n - var fid = node.getAttribute("id") || node.getAttribute("name");\n - if(fid != null) {\n - feature.fid = fid;\n - }\n -\n - return feature;\n - }, \n - \n - /**\n - * Method: getStyle\n - * Retrieves a style from a style hash using styleUrl as the key\n - * If the styleUrl doesn\'t exist yet, we try to fetch it \n - * Internet\n - * \n - * Parameters: \n - * styleUrl - {String} URL of style\n - * options - {Object} Hash of options \n - *\n - * Returns:\n - * {Object} - (reference to) Style hash\n - */\n - getStyle: function(styleUrl, options) {\n -\n - var styleBaseUrl = OpenLayers.Util.removeTail(styleUrl);\n -\n - var newOptions = OpenLayers.Util.extend({}, options);\n - newOptions.depth++;\n - newOptions.styleBaseUrl = styleBaseUrl;\n -\n - // Fetch remote Style URLs (if not fetched before) \n - if (!this.styles[styleUrl] \n - && !OpenLayers.String.startsWith(styleUrl, "#") \n - && newOptions.depth <= this.maxDepth\n - && !this.fetched[styleBaseUrl] ) {\n -\n - var data = this.fetchLink(styleBaseUrl);\n - if (data) {\n - this.parseData(data, newOptions);\n - }\n -\n - }\n -\n - // return requested style\n - var style = OpenLayers.Util.extend({}, this.styles[styleUrl]);\n - return style;\n - },\n - \n - /**\n - * Property: parseGeometry\n - * Properties of this object are the functions that parse geometries based\n - * on their type.\n - */\n - parseGeometry: {\n - \n - /**\n - * Method: parseGeometry.point\n - * Given a KML node representing a point geometry, create an OpenLayers\n - * point geometry.\n - *\n - * Parameters:\n - * node - {DOMElement} A KML Point node.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.Point>} A point geometry.\n - */\n - point: function(node) {\n - var nodeList = this.getElementsByTagNameNS(node, this.internalns,\n - "coordinates");\n - var coords = [];\n - if(nodeList.length > 0) {\n - var coordString = nodeList[0].firstChild.nodeValue;\n - coordString = coordString.replace(this.regExes.removeSpace, "");\n - coords = coordString.split(",");\n - }\n -\n - var point = null;\n - if(coords.length > 1) {\n - // preserve third dimension\n - if(coords.length == 2) {\n - coords[2] = null;\n - }\n - point = new OpenLayers.Geometry.Point(coords[0], coords[1],\n - coords[2]);\n - } else {\n - throw "Bad coordinate string: " + coordString;\n - }\n - return point;\n - },\n - \n - /**\n - * Method: parseGeometry.linestring\n - * Given a KML node representing a linestring geometry, create an\n - * OpenLayers linestring geometry.\n - *\n - * Parameters:\n - * node - {DOMElement} A KML LineString node.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.LineString>} A linestring geometry.\n - */\n - linestring: function(node, ring) {\n - var nodeList = this.getElementsByTagNameNS(node, this.internalns,\n - "coordinates");\n - var line = null;\n - if(nodeList.length > 0) {\n - var coordString = this.getChildValue(nodeList[0]);\n -\n - coordString = coordString.replace(this.regExes.trimSpace,\n - "");\n - coordString = coordString.replace(this.regExes.trimComma,\n - ",");\n - var pointList = coordString.split(this.regExes.splitSpace);\n - var numPoints = pointList.length;\n - var points = new Array(numPoints);\n - var coords, numCoords;\n - for(var i=0; i<numPoints; ++i) {\n - coords = pointList[i].split(",");\n - numCoords = coords.length;\n - if(numCoords > 1) {\n - if(coords.length == 2) {\n - coords[2] = null;\n - }\n - points[i] = new OpenLayers.Geometry.Point(coords[0],\n - coords[1],\n - coords[2]);\n - } else {\n - throw "Bad LineString point coordinates: " +\n - pointList[i];\n - }\n - }\n - if(numPoints) {\n - if(ring) {\n - line = new OpenLayers.Geometry.LinearRing(points);\n - } else {\n - line = new OpenLayers.Geometry.LineString(points);\n - }\n - } else {\n - throw "Bad LineString coordinates: " + coordString;\n - }\n - }\n -\n - return line;\n - },\n - \n - /**\n - * Method: parseGeometry.polygon\n - * Given a KML node representing a polygon geometry, create an\n - * OpenLayers polygon geometry.\n - *\n - * Parameters:\n - * node - {DOMElement} A KML Polygon node.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.Polygon>} A polygon geometry.\n - */\n - polygon: function(node) {\n - var nodeList = this.getElementsByTagNameNS(node, this.internalns,\n - "LinearRing");\n - var numRings = nodeList.length;\n - var components = new Array(numRings);\n - if(numRings > 0) {\n - // this assumes exterior ring first, inner rings after\n - var ring;\n - for(var i=0, len=nodeList.length; i<len; ++i) {\n - ring = this.parseGeometry.linestring.apply(this,\n - [nodeList[i], true]);\n - if(ring) {\n - components[i] = ring;\n - } else {\n - throw "Bad LinearRing geometry: " + i;\n - }\n - }\n - }\n - return new OpenLayers.Geometry.Polygon(components);\n - },\n - \n - /**\n - * Method: parseGeometry.multigeometry\n - * Given a KML node representing a multigeometry, create an\n - * OpenLayers geometry collection.\n - *\n - * Parameters:\n - * node - {DOMElement} A KML MultiGeometry node.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.Collection>} A geometry collection.\n - */\n - multigeometry: function(node) {\n - var child, parser;\n - var parts = [];\n - var children = node.childNodes;\n - for(var i=0, len=children.length; i<len; ++i ) {\n - child = children[i];\n - if(child.nodeType == 1) {\n - var type = (child.prefix) ?\n - child.nodeName.split(":")[1] :\n - child.nodeName;\n - var parser = this.parseGeometry[type.toLowerCase()];\n - if(parser) {\n - parts.push(parser.apply(this, [child]));\n - }\n - }\n - }\n - return new OpenLayers.Geometry.Collection(parts);\n - }\n - \n - },\n -\n - /**\n - * Method: parseAttributes\n - *\n - * Parameters:\n - * node - {DOMElement}\n - *\n - * Returns:\n - * {Object} An attributes object.\n - */\n - parseAttributes: function(node) {\n - var attributes = {};\n - \n - // Extended Data is parsed first.\n - var edNodes = node.getElementsByTagName("ExtendedData");\n - if (edNodes.length) {\n - attributes = this.parseExtendedData(edNodes[0]);\n - }\n - \n - // assume attribute nodes are type 1 children with a type 3 or 4 child\n - var child, grandchildren, grandchild;\n - var children = node.childNodes;\n -\n - for(var i=0, len=children.length; i<len; ++i) {\n - child = children[i];\n - if(child.nodeType == 1) {\n - grandchildren = child.childNodes;\n - if(grandchildren.length >= 1 && grandchildren.length <= 3) {\n - var grandchild;\n - switch (grandchildren.length) {\n - case 1:\n - grandchild = grandchildren[0];\n - break;\n - case 2:\n - var c1 = grandchildren[0];\n - var c2 = grandchildren[1];\n - grandchild = (c1.nodeType == 3 || c1.nodeType == 4) ?\n - c1 : c2;\n - break;\n - case 3:\n - default:\n - grandchild = grandchildren[1];\n - break;\n - }\n - if(grandchild.nodeType == 3 || grandchild.nodeType == 4) {\n - var name = (child.prefix) ?\n - child.nodeName.split(":")[1] :\n - child.nodeName;\n - var value = OpenLayers.Util.getXmlNodeValue(grandchild);\n - if (value) {\n - value = value.replace(this.regExes.trimSpace, "");\n - attributes[name] = value;\n - }\n - }\n - } \n - }\n - }\n - return attributes;\n - },\n -\n - /**\n - * Method: parseExtendedData\n - * Parse ExtendedData from KML. Limited support for schemas/datatypes.\n - * See http://code.google.com/apis/kml/documentation/kmlreference.html#extendeddata\n - * for more information on extendeddata.\n - */\n - parseExtendedData: function(node) {\n - var attributes = {};\n - var i, len, data, key;\n - var dataNodes = node.getElementsByTagName("Data");\n - for (i = 0, len = dataNodes.length; i < len; i++) {\n - data = dataNodes[i];\n - key = data.getAttribute("name");\n - var ed = {};\n - var valueNode = data.getElementsByTagName("value");\n - if (valueNode.length) {\n - ed[\'value\'] = this.getChildValue(valueNode[0]);\n - }\n - if (this.kvpAttributes) {\n - attributes[key] = ed[\'value\'];\n - } else {\n - var nameNode = data.getElementsByTagName("displayName");\n - if (nameNode.length) {\n - ed[\'displayName\'] = this.getChildValue(nameNode[0]);\n - }\n - attributes[key] = ed;\n - } \n - }\n - var simpleDataNodes = node.getElementsByTagName("SimpleData");\n - for (i = 0, len = simpleDataNodes.length; i < len; i++) {\n - var ed = {};\n - data = simpleDataNodes[i];\n - key = data.getAttribute("name");\n - ed[\'value\'] = this.getChildValue(data);\n - if (this.kvpAttributes) {\n - attributes[key] = ed[\'value\'];\n - } else {\n - ed[\'displayName\'] = key;\n - attributes[key] = ed;\n - }\n - }\n - \n - return attributes; \n - },\n - \n - /**\n - * Method: parseProperty\n - * Convenience method to find a node and return its value\n - *\n - * Parameters:\n - * xmlNode - {<DOMElement>}\n - * namespace - {String} namespace of the node to find\n - * tagName - {String} name of the property to parse\n - * \n - * Returns:\n - * {String} The value for the requested property (defaults to null)\n - */ \n - parseProperty: function(xmlNode, namespace, tagName) {\n - var value;\n - var nodeList = this.getElementsByTagNameNS(xmlNode, namespace, tagName);\n - try {\n - value = OpenLayers.Util.getXmlNodeValue(nodeList[0]);\n - } catch(e) {\n - value = null;\n - }\n - \n - return value;\n - }, \n -\n - /**\n - * APIMethod: write\n - * Accept Feature Collection, and return a string. \n - * \n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)} An array of features.\n - *\n - * Returns:\n - * {String} A KML string.\n - */\n - write: function(features) {\n - if(!(OpenLayers.Util.isArray(features))) {\n - features = [features];\n - }\n - var kml = this.createElementNS(this.kmlns, "kml");\n - var folder = this.createFolderXML();\n - for(var i=0, len=features.length; i<len; ++i) {\n - folder.appendChild(this.createPlacemarkXML(features[i]));\n - }\n - kml.appendChild(folder);\n - return OpenLayers.Format.XML.prototype.write.apply(this, [kml]);\n - },\n -\n - /**\n - * Method: createFolderXML\n - * Creates and returns a KML folder node\n - * \n - * Returns:\n - * {DOMElement}\n - */\n - createFolderXML: function() {\n - // Folder\n - var folder = this.createElementNS(this.kmlns, "Folder");\n -\n - // Folder name\n - if (this.foldersName) {\n - var folderName = this.createElementNS(this.kmlns, "name");\n - var folderNameText = this.createTextNode(this.foldersName); \n - folderName.appendChild(folderNameText);\n - folder.appendChild(folderName);\n - }\n -\n - // Folder description\n - if (this.foldersDesc) {\n - var folderDesc = this.createElementNS(this.kmlns, "description"); \n - var folderDescText = this.createTextNode(this.foldersDesc); \n - folderDesc.appendChild(folderDescText);\n - folder.appendChild(folderDesc);\n - }\n -\n - return folder;\n - },\n -\n - /**\n - * Method: createPlacemarkXML\n - * Creates and returns a KML placemark node representing the given feature. \n - * \n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - * \n - * Returns:\n - * {DOMElement}\n - */\n - createPlacemarkXML: function(feature) { \n - // Placemark name\n - var placemarkName = this.createElementNS(this.kmlns, "name");\n - var name = feature.style && feature.style.label ? feature.style.label :\n - feature.attributes.name || feature.id;\n - placemarkName.appendChild(this.createTextNode(name));\n -\n - // Placemark description\n - var placemarkDesc = this.createElementNS(this.kmlns, "description");\n - var desc = feature.attributes.description || this.placemarksDesc;\n - placemarkDesc.appendChild(this.createTextNode(desc));\n - \n - // Placemark\n - var placemarkNode = this.createElementNS(this.kmlns, "Placemark");\n - if(feature.fid != null) {\n - placemarkNode.setAttribute("id", feature.fid);\n - }\n - placemarkNode.appendChild(placemarkName);\n - placemarkNode.appendChild(placemarkDesc);\n -\n - // Geometry node (Point, LineString, etc. nodes)\n - var geometryNode = this.buildGeometryNode(feature.geometry);\n - placemarkNode.appendChild(geometryNode); \n - \n - // output attributes as extendedData\n - if (feature.attributes) {\n - var edNode = this.buildExtendedData(feature.attributes);\n - if (edNode) {\n - placemarkNode.appendChild(edNode);\n - }\n - }\n - \n - return placemarkNode;\n - }, \n -\n - /**\n - * Method: buildGeometryNode\n - * Builds and returns a KML geometry node with the given geometry.\n - * \n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement}\n - */\n - buildGeometryNode: function(geometry) {\n - var className = geometry.CLASS_NAME;\n - var type = className.substring(className.lastIndexOf(".") + 1);\n - var builder = this.buildGeometry[type.toLowerCase()];\n - var node = null;\n - if(builder) {\n - node = builder.apply(this, [geometry]);\n - }\n - return node;\n - },\n -\n - /**\n - * Property: buildGeometry\n - * Object containing methods to do the actual geometry node building\n - * based on geometry type.\n - */\n - buildGeometry: {\n - // TBD: Anybody care about namespace aliases here (these nodes have\n - // no prefixes)?\n -\n - /**\n - * Method: buildGeometry.point\n - * Given an OpenLayers point geometry, create a KML point.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.Point>} A point geometry.\n - *\n - * Returns:\n - * {DOMElement} A KML point node.\n - */\n - point: function(geometry) {\n - var kml = this.createElementNS(this.kmlns, "Point");\n - kml.appendChild(this.buildCoordinatesNode(geometry));\n - return kml;\n - },\n - \n - /**\n - * Method: buildGeometry.multipoint\n - * Given an OpenLayers multipoint geometry, create a KML\n - * GeometryCollection.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.Point>} A multipoint geometry.\n - *\n - * Returns:\n - * {DOMElement} A KML GeometryCollection node.\n - */\n - multipoint: function(geometry) {\n - return this.buildGeometry.collection.apply(this, [geometry]);\n - },\n -\n - /**\n - * Method: buildGeometry.linestring\n - * Given an OpenLayers linestring geometry, create a KML linestring.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.LineString>} A linestring geometry.\n - *\n - * Returns:\n - * {DOMElement} A KML linestring node.\n - */\n - linestring: function(geometry) {\n - var kml = this.createElementNS(this.kmlns, "LineString");\n - kml.appendChild(this.buildCoordinatesNode(geometry));\n - return kml;\n - },\n - \n - /**\n - * Method: buildGeometry.multilinestring\n - * Given an OpenLayers multilinestring geometry, create a KML\n - * GeometryCollection.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.Point>} A multilinestring geometry.\n - *\n - * Returns:\n - * {DOMElement} A KML GeometryCollection node.\n - */\n - multilinestring: function(geometry) {\n - return this.buildGeometry.collection.apply(this, [geometry]);\n - },\n -\n - /**\n - * Method: buildGeometry.linearring\n - * Given an OpenLayers linearring geometry, create a KML linearring.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.LinearRing>} A linearring geometry.\n - *\n - * Returns:\n - * {DOMElement} A KML linearring node.\n - */\n - linearring: function(geometry) {\n - var kml = this.createElementNS(this.kmlns, "LinearRing");\n - kml.appendChild(this.buildCoordinatesNode(geometry));\n - return kml;\n - },\n - \n - /**\n - * Method: buildGeometry.polygon\n - * Given an OpenLayers polygon geometry, create a KML polygon.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.Polygon>} A polygon geometry.\n - *\n - * Returns:\n - * {DOMElement} A KML polygon node.\n - */\n - polygon: function(geometry) {\n - var kml = this.createElementNS(this.kmlns, "Polygon");\n - var rings = geometry.components;\n - var ringMember, ringGeom, type;\n - for(var i=0, len=rings.length; i<len; ++i) {\n - type = (i==0) ? "outerBoundaryIs" : "innerBoundaryIs";\n - ringMember = this.createElementNS(this.kmlns, type);\n - ringGeom = this.buildGeometry.linearring.apply(this,\n - [rings[i]]);\n - ringMember.appendChild(ringGeom);\n - kml.appendChild(ringMember);\n - }\n - return kml;\n - },\n - \n - /**\n - * Method: buildGeometry.multipolygon\n - * Given an OpenLayers multipolygon geometry, create a KML\n - * GeometryCollection.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.Point>} A multipolygon geometry.\n - *\n - * Returns:\n - * {DOMElement} A KML GeometryCollection node.\n - */\n - multipolygon: function(geometry) {\n - return this.buildGeometry.collection.apply(this, [geometry]);\n - },\n -\n - /**\n - * Method: buildGeometry.collection\n - * Given an OpenLayers geometry collection, create a KML MultiGeometry.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.Collection>} A geometry collection.\n - *\n - * Returns:\n - * {DOMElement} A KML MultiGeometry node.\n - */\n - collection: function(geometry) {\n - var kml = this.createElementNS(this.kmlns, "MultiGeometry");\n - var child;\n - for(var i=0, len=geometry.components.length; i<len; ++i) {\n - child = this.buildGeometryNode.apply(this,\n - [geometry.components[i]]);\n - if(child) {\n - kml.appendChild(child);\n - }\n - }\n - return kml;\n - }\n - },\n -\n - /**\n - * Method: buildCoordinatesNode\n - * Builds and returns the KML coordinates node with the given geometry\n - * <coordinates>...</coordinates>\n - * \n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement}\n - */ \n - buildCoordinatesNode: function(geometry) {\n - var coordinatesNode = this.createElementNS(this.kmlns, "coordinates");\n - \n - var path;\n - var points = geometry.components;\n - if(points) {\n - // LineString or LinearRing\n - var point;\n - var numPoints = points.length;\n - var parts = new Array(numPoints);\n - for(var i=0; i<numPoints; ++i) {\n - point = points[i];\n - parts[i] = this.buildCoordinates(point);\n - }\n - path = parts.join(" ");\n - } else {\n - // Point\n - path = this.buildCoordinates(geometry);\n - }\n - \n - var txtNode = this.createTextNode(path);\n - coordinatesNode.appendChild(txtNode);\n - \n - return coordinatesNode;\n - }, \n - \n - /**\n - * Method: buildCoordinates\n - *\n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>}\n - *\n - * Returns\n - * {String} a coordinate pair\n - */\n - buildCoordinates: function(point) {\n - if (this.internalProjection && this.externalProjection) {\n - point = point.clone();\n - point.transform(this.internalProjection, \n - this.externalProjection);\n - }\n - return point.x + "," + point.y; \n - },\n -\n - /**\n - * Method: buildExtendedData\n - *\n - * Parameters:\n - * attributes - {Object}\n - *\n - * Returns\n - * {DOMElement} A KML ExtendedData node or {null} if no attributes.\n - */\n - buildExtendedData: function(attributes) {\n - var extendedData = this.createElementNS(this.kmlns, "ExtendedData");\n - for (var attributeName in attributes) {\n - // empty, name, description, styleUrl attributes ignored\n - if (attributes[attributeName] && attributeName != "name" && attributeName != "description" && attributeName != "styleUrl") {\n - var data = this.createElementNS(this.kmlns, "Data");\n - data.setAttribute("name", attributeName);\n - var value = this.createElementNS(this.kmlns, "value");\n - if (typeof attributes[attributeName] == "object") {\n - // cater for object attributes with \'value\' properties\n - // other object properties will output an empty node\n - if (attributes[attributeName].value) {\n - value.appendChild(this.createTextNode(attributes[attributeName].value));\n - }\n - if (attributes[attributeName].displayName) {\n - var displayName = this.createElementNS(this.kmlns, "displayName");\n - // displayName always written as CDATA\n - displayName.appendChild(this.getXMLDoc().createCDATASection(attributes[attributeName].displayName));\n - data.appendChild(displayName);\n - }\n - } else {\n - value.appendChild(this.createTextNode(attributes[attributeName]));\n - }\n - data.appendChild(value);\n - extendedData.appendChild(data);\n - }\n - }\n - if (this.isSimpleContent(extendedData)) {\n - return null;\n - } else {\n - return extendedData;\n - }\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.KML" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>55468</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OGCExceptionReport.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OGCExceptionReport.js.xml deleted file mode 100644 index 310c46ce4492033bddf467dfe2b89182e6857446..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OGCExceptionReport.js.xml +++ /dev/null @@ -1,152 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.9</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>OGCExceptionReport.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.OGCExceptionReport\n - * Class to read exception reports for various OGC services and versions.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.OGCExceptionReport = OpenLayers.Class(OpenLayers.Format.XML, {\n -\n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - ogc: "http://www.opengis.net/ogc"\n - },\n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n -\n - /**\n - * Property: defaultPrefix\n - */\n - defaultPrefix: "ogc",\n -\n - /**\n - * Constructor: OpenLayers.Format.OGCExceptionReport\n - * Create a new parser for OGC exception reports.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Read OGC exception report data from a string, and return an object with\n - * information about the exceptions.\n - *\n - * Parameters:\n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Object} Information about the exceptions that occurred.\n - */\n - read: function(data) {\n - var result;\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - var root = data.documentElement;\n - var exceptionInfo = {exceptionReport: null}; \n - if (root) {\n - this.readChildNodes(data, exceptionInfo);\n - if (exceptionInfo.exceptionReport === null) {\n - // fall-back to OWSCommon since this is a common output format for exceptions\n - // we cannot easily use the ows readers directly since they differ for 1.0 and 1.1\n - exceptionInfo = new OpenLayers.Format.OWSCommon().read(data);\n - }\n - }\n - return exceptionInfo;\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "ogc": {\n - "ServiceExceptionReport": function(node, obj) {\n - obj.exceptionReport = {exceptions: []};\n - this.readChildNodes(node, obj.exceptionReport);\n - },\n - "ServiceException": function(node, exceptionReport) {\n - var exception = {\n - code: node.getAttribute("code"),\n - locator: node.getAttribute("locator"),\n - text: this.getChildValue(node)\n - };\n - exceptionReport.exceptions.push(exception);\n - }\n - }\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.OGCExceptionReport"\n - \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3427</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OSM.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OSM.js.xml deleted file mode 100644 index 62f0f51c7c3cfc800f54325e15cfc9fc07e87ab2..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OSM.js.xml +++ /dev/null @@ -1,509 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.9</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>OSM.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Feature/Vector.js\n - * @requires OpenLayers/Geometry/Point.js\n - * @requires OpenLayers/Geometry/LineString.js\n - * @requires OpenLayers/Geometry/Polygon.js\n - * @requires OpenLayers/Projection.js\n - */\n -\n -/** \n - * Class: OpenLayers.Format.OSM\n - * OSM parser. Create a new instance with the \n - * <OpenLayers.Format.OSM> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.OSM = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * APIProperty: checkTags\n - * {Boolean} Should tags be checked to determine whether something\n - * should be treated as a seperate node. Will slow down parsing.\n - * Default is false.\n - */\n - checkTags: false,\n -\n - /**\n - * Property: interestingTagsExclude\n - * {Array} List of tags to exclude from \'interesting\' checks on nodes.\n - * Must be set when creating the format. Will only be used if checkTags\n - * is set.\n - */\n - interestingTagsExclude: null, \n - \n - /**\n - * APIProperty: areaTags\n - * {Array} List of tags indicating that something is an area. \n - * Must be set when creating the format. Will only be used if \n - * checkTags is true.\n - */\n - areaTags: null, \n - \n - /**\n - * Constructor: OpenLayers.Format.OSM\n - * Create a new parser for OSM.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - var layer_defaults = {\n - \'interestingTagsExclude\': [\'source\', \'source_ref\', \n - \'source:ref\', \'history\', \'attribution\', \'created_by\'],\n - \'areaTags\': [\'area\', \'building\', \'leisure\', \'tourism\', \'ruins\',\n - \'historic\', \'landuse\', \'military\', \'natural\', \'sport\'] \n - };\n - \n - layer_defaults = OpenLayers.Util.extend(layer_defaults, options);\n - \n - var interesting = {};\n - for (var i = 0; i < layer_defaults.interestingTagsExclude.length; i++) {\n - interesting[layer_defaults.interestingTagsExclude[i]] = true;\n - }\n - layer_defaults.interestingTagsExclude = interesting;\n - \n - var area = {};\n - for (var i = 0; i < layer_defaults.areaTags.length; i++) {\n - area[layer_defaults.areaTags[i]] = true;\n - }\n - layer_defaults.areaTags = area;\n -\n - // OSM coordinates are always in longlat WGS84\n - this.externalProjection = new OpenLayers.Projection("EPSG:4326");\n - \n - OpenLayers.Format.XML.prototype.initialize.apply(this, [layer_defaults]);\n - },\n - \n - /**\n - * APIMethod: read\n - * Return a list of features from a OSM doc\n - \n - * Parameters:\n - * doc - {Element} \n - *\n - * Returns:\n - * Array({<OpenLayers.Feature.Vector>})\n - */\n - read: function(doc) {\n - if (typeof doc == "string") { \n - doc = OpenLayers.Format.XML.prototype.read.apply(this, [doc]);\n - }\n -\n - var nodes = this.getNodes(doc);\n - var ways = this.getWays(doc);\n - \n - // Geoms will contain at least ways.length entries.\n - var feat_list = new Array(ways.length);\n - \n - for (var i = 0; i < ways.length; i++) {\n - // We know the minimal of this one ahead of time. (Could be -1\n - // due to areas/polygons)\n - var point_list = new Array(ways[i].nodes.length);\n - \n - var poly = this.isWayArea(ways[i]) ? 1 : 0; \n - for (var j = 0; j < ways[i].nodes.length; j++) {\n - var node = nodes[ways[i].nodes[j]];\n - \n - var point = new OpenLayers.Geometry.Point(node.lon, node.lat);\n - \n - // Since OSM is topological, we stash the node ID internally. \n - point.osm_id = parseInt(ways[i].nodes[j]);\n - point_list[j] = point;\n - \n - // We don\'t display nodes if they\'re used inside other \n - // elements.\n - node.used = true; \n - }\n - var geometry = null;\n - if (poly) { \n - geometry = new OpenLayers.Geometry.Polygon(\n - new OpenLayers.Geometry.LinearRing(point_list));\n - } else { \n - geometry = new OpenLayers.Geometry.LineString(point_list);\n - }\n - if (this.internalProjection && this.externalProjection) {\n - geometry.transform(this.externalProjection, \n - this.internalProjection);\n - } \n - var feat = new OpenLayers.Feature.Vector(geometry,\n - ways[i].tags);\n - feat.osm_id = parseInt(ways[i].id);\n - feat.fid = "way." + feat.osm_id;\n - feat_list[i] = feat;\n - } \n - for (var node_id in nodes) {\n - var node = nodes[node_id];\n - if (!node.used || this.checkTags) {\n - var tags = null;\n - \n - if (this.checkTags) {\n - var result = this.getTags(node.node, true);\n - if (node.used && !result[1]) {\n - continue;\n - }\n - tags = result[0];\n - } else { \n - tags = this.getTags(node.node);\n - } \n - \n - var feat = new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.Point(node[\'lon\'], node[\'lat\']),\n - tags);\n - if (this.internalProjection && this.externalProjection) {\n - feat.geometry.transform(this.externalProjection, \n - this.internalProjection);\n - } \n - feat.osm_id = parseInt(node_id); \n - feat.fid = "node." + feat.osm_id;\n - feat_list.push(feat);\n - } \n - // Memory cleanup\n - node.node = null;\n - } \n - return feat_list;\n - },\n -\n - /**\n - * Method: getNodes\n - * Return the node items from a doc. \n - *\n - * Parameters:\n - * doc - {DOMElement} node to parse tags from\n - */\n - getNodes: function(doc) {\n - var node_list = doc.getElementsByTagName("node");\n - var nodes = {};\n - for (var i = 0; i < node_list.length; i++) {\n - var node = node_list[i];\n - var id = node.getAttribute("id");\n - nodes[id] = {\n - \'lat\': node.getAttribute("lat"),\n - \'lon\': node.getAttribute("lon"),\n - \'node\': node\n - };\n - }\n - return nodes;\n - },\n -\n - /**\n - * Method: getWays\n - * Return the way items from a doc. \n - *\n - * Parameters:\n - * doc - {DOMElement} node to parse tags from\n - */\n - getWays: function(doc) {\n - var way_list = doc.getElementsByTagName("way");\n - var return_ways = [];\n - for (var i = 0; i < way_list.length; i++) {\n - var way = way_list[i];\n - var way_object = {\n - id: way.getAttribute("id")\n - };\n - \n - way_object.tags = this.getTags(way);\n - \n - var node_list = way.getElementsByTagName("nd");\n - \n - way_object.nodes = new Array(node_list.length);\n - \n - for (var j = 0; j < node_list.length; j++) {\n - way_object.nodes[j] = node_list[j].getAttribute("ref");\n - } \n - return_ways.push(way_object);\n - }\n - return return_ways; \n - \n - }, \n - \n - /**\n - * Method: getTags\n - * Return the tags list attached to a specific DOM element.\n - *\n - * Parameters:\n - * dom_node - {DOMElement} node to parse tags from\n - * interesting_tags - {Boolean} whether the return from this function should\n - * return a boolean indicating that it has \'interesting tags\' -- \n - * tags like attribution and source are ignored. (To change the list\n - * of tags, see interestingTagsExclude)\n - * \n - * Returns:\n - * tags - {Object} hash of tags\n - * interesting - {Boolean} if interesting_tags is passed, returns\n - * whether there are any interesting tags on this element.\n - */\n - getTags: function(dom_node, interesting_tags) {\n - var tag_list = dom_node.getElementsByTagName("tag");\n - var tags = {};\n - var interesting = false;\n - for (var j = 0; j < tag_list.length; j++) {\n - var key = tag_list[j].getAttribute("k");\n - tags[key] = tag_list[j].getAttribute("v");\n - if (interesting_tags) {\n - if (!this.interestingTagsExclude[key]) {\n - interesting = true;\n - }\n - } \n - } \n - return interesting_tags ? [tags, interesting] : tags; \n - },\n -\n - /** \n - * Method: isWayArea\n - * Given a way object from getWays, check whether the tags and geometry\n - * indicate something is an area.\n - *\n - * Returns:\n - * {Boolean}\n - */\n - isWayArea: function(way) { \n - var poly_shaped = false;\n - var poly_tags = false;\n - \n - if (way.nodes[0] == way.nodes[way.nodes.length - 1]) {\n - poly_shaped = true;\n - }\n - if (this.checkTags) {\n - for(var key in way.tags) {\n - if (this.areaTags[key]) {\n - poly_tags = true;\n - break;\n - }\n - }\n - } \n - return poly_shaped && (this.checkTags ? poly_tags : true); \n - }, \n -\n - /**\n - * APIMethod: write \n - * Takes a list of features, returns a serialized OSM format file for use\n - * in tools like JOSM.\n - *\n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)}\n - */\n - write: function(features) { \n - if (!(OpenLayers.Util.isArray(features))) {\n - features = [features];\n - }\n - \n - this.osm_id = 1;\n - this.created_nodes = {};\n - var root_node = this.createElementNS(null, "osm");\n - root_node.setAttribute("version", "0.5");\n - root_node.setAttribute("generator", "OpenLayers "+ OpenLayers.VERSION_NUMBER);\n -\n - // Loop backwards, because the deserializer puts nodes last, and \n - // we want them first if possible\n - for(var i = features.length - 1; i >= 0; i--) {\n - var nodes = this.createFeatureNodes(features[i]);\n - for (var j = 0; j < nodes.length; j++) {\n - root_node.appendChild(nodes[j]);\n - } \n - }\n - return OpenLayers.Format.XML.prototype.write.apply(this, [root_node]);\n - },\n -\n - /**\n - * Method: createFeatureNodes\n - * Takes a feature, returns a list of nodes from size 0->n.\n - * Will include all pieces of the serialization that are required which\n - * have not already been created. Calls out to createXML based on geometry\n - * type.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - */\n - createFeatureNodes: function(feature) {\n - var nodes = [];\n - var className = feature.geometry.CLASS_NAME;\n - var type = className.substring(className.lastIndexOf(".") + 1);\n - type = type.toLowerCase();\n - var builder = this.createXML[type];\n - if (builder) {\n - nodes = builder.apply(this, [feature]);\n - }\n - return nodes;\n - },\n - \n - /**\n - * Method: createXML\n - * Takes a feature, returns a list of nodes from size 0->n.\n - * Will include all pieces of the serialization that are required which\n - * have not already been created.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - */\n - createXML: {\n - \'point\': function(point) {\n - var id = null;\n - var geometry = point.geometry ? point.geometry : point;\n - \n - if (this.internalProjection && this.externalProjection) {\n - geometry = geometry.clone();\n - geometry.transform(this.internalProjection, \n - this.externalProjection);\n - } \n - \n - var already_exists = false; // We don\'t return anything if the node\n - // has already been created\n - if (point.osm_id) {\n - id = point.osm_id;\n - if (this.created_nodes[id]) {\n - already_exists = true;\n - } \n - } else {\n - id = -this.osm_id;\n - this.osm_id++; \n - }\n - if (already_exists) {\n - node = this.created_nodes[id];\n - } else { \n - var node = this.createElementNS(null, "node");\n - }\n - this.created_nodes[id] = node;\n - node.setAttribute("id", id);\n - node.setAttribute("lon", geometry.x); \n - node.setAttribute("lat", geometry.y);\n - if (point.attributes) {\n - this.serializeTags(point, node);\n - }\n - this.setState(point, node);\n - return already_exists ? [] : [node];\n - }, \n - linestring: function(feature) {\n - var id;\n - var nodes = [];\n - var geometry = feature.geometry;\n - if (feature.osm_id) {\n - id = feature.osm_id;\n - } else {\n - id = -this.osm_id;\n - this.osm_id++; \n - }\n - var way = this.createElementNS(null, "way");\n - way.setAttribute("id", id);\n - for (var i = 0; i < geometry.components.length; i++) {\n - var node = this.createXML[\'point\'].apply(this, [geometry.components[i]]);\n - if (node.length) {\n - node = node[0];\n - var node_ref = node.getAttribute("id");\n - nodes.push(node);\n - } else {\n - node_ref = geometry.components[i].osm_id;\n - node = this.created_nodes[node_ref];\n - }\n - this.setState(feature, node);\n - var nd_dom = this.createElementNS(null, "nd");\n - nd_dom.setAttribute("ref", node_ref);\n - way.appendChild(nd_dom);\n - }\n - this.serializeTags(feature, way);\n - nodes.push(way);\n - \n - return nodes;\n - },\n - polygon: function(feature) {\n - var attrs = OpenLayers.Util.extend({\'area\':\'yes\'}, feature.attributes);\n - var feat = new OpenLayers.Feature.Vector(feature.geometry.components[0], attrs); \n - feat.osm_id = feature.osm_id;\n - return this.createXML[\'linestring\'].apply(this, [feat]);\n - }\n - },\n -\n - /**\n - * Method: serializeTags\n - * Given a feature, serialize the attributes onto the given node.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - * node - {DOMNode}\n - */\n - serializeTags: function(feature, node) {\n - for (var key in feature.attributes) {\n - var tag = this.createElementNS(null, "tag");\n - tag.setAttribute("k", key);\n - tag.setAttribute("v", feature.attributes[key]);\n - node.appendChild(tag);\n - }\n - },\n -\n - /**\n - * Method: setState \n - * OpenStreetMap has a convention that \'state\' is stored for modification or deletion.\n - * This allows the file to be uploaded via JOSM or the bulk uploader tool.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - * node - {DOMNode}\n - */\n - setState: function(feature, node) {\n - if (feature.state) {\n - var state = null;\n - switch(feature.state) {\n - case OpenLayers.State.UPDATE:\n - state = "modify";\n - case OpenLayers.State.DELETE:\n - state = "delete";\n - }\n - if (state) {\n - node.setAttribute("action", state);\n - }\n - } \n - },\n -\n - CLASS_NAME: "OpenLayers.Format.OSM" \n -}); \n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>16106</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon.js.xml deleted file mode 100644 index 62fab0a076213612a2e22feab715d7692e218034..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon.js.xml +++ /dev/null @@ -1,122 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>OWSCommon.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML/VersionedOGC.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.OWSCommon\n - * Read OWSCommon. Create a new instance with the <OpenLayers.Format.OWSCommon>\n - * constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML.VersionedOGC>\n - */\n -OpenLayers.Format.OWSCommon = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {\n - \n - /**\n - * APIProperty: defaultVersion\n - * {String} Version number to assume if none found. Default is "1.0.0".\n - */\n - defaultVersion: "1.0.0",\n - \n - /**\n - * Constructor: OpenLayers.Format.OWSCommon\n - * Create a new parser for OWSCommon.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * Method: getVersion\n - * Returns the version to use. Subclasses can override this function\n - * if a different version detection is needed.\n - *\n - * Parameters:\n - * root - {DOMElement}\n - * options - {Object} Optional configuration object.\n - *\n - * Returns:\n - * {String} The version to use.\n - */\n - getVersion: function(root, options) {\n - var version = this.version;\n - if(!version) {\n - // remember version does not correspond to the OWS version\n - // it corresponds to the WMS/WFS/WCS etc. request version\n - var uri = root.getAttribute("xmlns:ows");\n - // the above will fail if the namespace prefix is different than\n - // ows and if the namespace is declared on a different element\n - if (uri && uri.substring(uri.lastIndexOf("/")+1) === "1.1") {\n - version ="1.1.0";\n - } \n - if(!version) {\n - version = this.defaultVersion;\n - }\n - }\n - return version;\n - },\n -\n - /**\n - * APIMethod: read\n - * Read an OWSCommon document and return an object.\n - *\n - * Parameters:\n - * data - {String | DOMElement} Data to read.\n - * options - {Object} Options for the reader.\n - *\n - * Returns:\n - * {Object} An object representing the structure of the document.\n - */\n -\n - CLASS_NAME: "OpenLayers.Format.OWSCommon" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2415</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon.xml deleted file mode 100644 index f4c01a43b4c5e7f990453904e951a5c3a5f8846e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>OWSCommon</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/OWSCommon</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon/v1.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon/v1.js.xml deleted file mode 100644 index 745ee8313b6fb914a7c3c99e3880816f0826fa9b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon/v1.js.xml +++ /dev/null @@ -1,362 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.98</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/OWSCommon.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.OWSCommon.v1\n - * Common readers and writers for OWSCommon v1.X formats\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.OWSCommon.v1 = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n -\n - /**\n - * Method: read\n - *\n - * Parameters:\n - * data - {DOMElement} An OWSCommon document element.\n - * options - {Object} Options for the reader.\n - *\n - * Returns:\n - * {Object} An object representing the OWSCommon document.\n - */\n - read: function(data, options) {\n - options = OpenLayers.Util.applyDefaults(options, this.options);\n - var ows = {};\n - this.readChildNodes(data, ows);\n - return ows;\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "ows": {\n - "Exception": function(node, exceptionReport) {\n - var exception = {\n - code: node.getAttribute(\'exceptionCode\'),\n - locator: node.getAttribute(\'locator\'),\n - texts: []\n - };\n - exceptionReport.exceptions.push(exception);\n - this.readChildNodes(node, exception);\n - },\n - "ExceptionText": function(node, exception) {\n - var text = this.getChildValue(node);\n - exception.texts.push(text);\n - },\n - "ServiceIdentification": function(node, obj) {\n - obj.serviceIdentification = {};\n - this.readChildNodes(node, obj.serviceIdentification);\n - },\n - "Title": function(node, obj) {\n - obj.title = this.getChildValue(node);\n - },\n - "Abstract": function(node, serviceIdentification) {\n - serviceIdentification["abstract"] = this.getChildValue(node);\n - },\n - "Keywords": function(node, serviceIdentification) {\n - serviceIdentification.keywords = {};\n - this.readChildNodes(node, serviceIdentification.keywords);\n - },\n - "Keyword": function(node, keywords) {\n - keywords[this.getChildValue(node)] = true;\n - },\n - "ServiceType": function(node, serviceIdentification) {\n - serviceIdentification.serviceType = {\n - codeSpace: node.getAttribute(\'codeSpace\'), \n - value: this.getChildValue(node)};\n - },\n - "ServiceTypeVersion": function(node, serviceIdentification) {\n - serviceIdentification.serviceTypeVersion = this.getChildValue(node);\n - },\n - "Fees": function(node, serviceIdentification) {\n - serviceIdentification.fees = this.getChildValue(node);\n - },\n - "AccessConstraints": function(node, serviceIdentification) {\n - serviceIdentification.accessConstraints = \n - this.getChildValue(node);\n - },\n - "ServiceProvider": function(node, obj) {\n - obj.serviceProvider = {};\n - this.readChildNodes(node, obj.serviceProvider);\n - },\n - "ProviderName": function(node, serviceProvider) {\n - serviceProvider.providerName = this.getChildValue(node);\n - },\n - "ProviderSite": function(node, serviceProvider) {\n - serviceProvider.providerSite = this.getAttributeNS(node, \n - this.namespaces.xlink, "href");\n - },\n - "ServiceContact": function(node, serviceProvider) {\n - serviceProvider.serviceContact = {};\n - this.readChildNodes(node, serviceProvider.serviceContact);\n - },\n - "IndividualName": function(node, serviceContact) {\n - serviceContact.individualName = this.getChildValue(node);\n - },\n - "PositionName": function(node, serviceContact) {\n - serviceContact.positionName = this.getChildValue(node);\n - },\n - "ContactInfo": function(node, serviceContact) {\n - serviceContact.contactInfo = {};\n - this.readChildNodes(node, serviceContact.contactInfo);\n - },\n - "Phone": function(node, contactInfo) {\n - contactInfo.phone = {};\n - this.readChildNodes(node, contactInfo.phone);\n - },\n - "Voice": function(node, phone) {\n - phone.voice = this.getChildValue(node);\n - },\n - "Address": function(node, contactInfo) {\n - contactInfo.address = {};\n - this.readChildNodes(node, contactInfo.address);\n - },\n - "DeliveryPoint": function(node, address) {\n - address.deliveryPoint = this.getChildValue(node);\n - },\n - "City": function(node, address) {\n - address.city = this.getChildValue(node);\n - },\n - "AdministrativeArea": function(node, address) {\n - address.administrativeArea = this.getChildValue(node);\n - },\n - "PostalCode": function(node, address) {\n - address.postalCode = this.getChildValue(node);\n - },\n - "Country": function(node, address) {\n - address.country = this.getChildValue(node);\n - },\n - "ElectronicMailAddress": function(node, address) {\n - address.electronicMailAddress = this.getChildValue(node);\n - },\n - "Role": function(node, serviceContact) {\n - serviceContact.role = this.getChildValue(node);\n - },\n - "OperationsMetadata": function(node, obj) {\n - obj.operationsMetadata = {};\n - this.readChildNodes(node, obj.operationsMetadata);\n - },\n - "Operation": function(node, operationsMetadata) {\n - var name = node.getAttribute("name");\n - operationsMetadata[name] = {};\n - this.readChildNodes(node, operationsMetadata[name]);\n - },\n - "DCP": function(node, operation) {\n - operation.dcp = {};\n - this.readChildNodes(node, operation.dcp);\n - },\n - "HTTP": function(node, dcp) {\n - dcp.http = {};\n - this.readChildNodes(node, dcp.http);\n - },\n - "Get": function(node, http) {\n - if (!http.get) {\n - http.get = [];\n - }\n - var obj = {\n - url: this.getAttributeNS(node, this.namespaces.xlink, "href")\n - };\n - this.readChildNodes(node, obj);\n - http.get.push(obj);\n - },\n - "Post": function(node, http) {\n - if (!http.post) {\n - http.post = [];\n - }\n - var obj = {\n - url: this.getAttributeNS(node, this.namespaces.xlink, "href")\n - };\n - this.readChildNodes(node, obj);\n - http.post.push(obj);\n - },\n - "Parameter": function(node, operation) {\n - if (!operation.parameters) {\n - operation.parameters = {};\n - }\n - var name = node.getAttribute("name");\n - operation.parameters[name] = {};\n - this.readChildNodes(node, operation.parameters[name]);\n - },\n - "Constraint": function(node, obj) {\n - if (!obj.constraints) {\n - obj.constraints = {};\n - }\n - var name = node.getAttribute("name");\n - obj.constraints[name] = {};\n - this.readChildNodes(node, obj.constraints[name]);\n - },\n - "Value": function(node, allowedValues) {\n - allowedValues[this.getChildValue(node)] = true;\n - },\n - "OutputFormat": function(node, obj) {\n - obj.formats.push({value: this.getChildValue(node)});\n - this.readChildNodes(node, obj);\n - },\n - "WGS84BoundingBox": function(node, obj) {\n - var boundingBox = {};\n - boundingBox.crs = node.getAttribute("crs");\n - if (obj.BoundingBox) {\n - obj.BoundingBox.push(boundingBox);\n - } else {\n - obj.projection = boundingBox.crs;\n - boundingBox = obj;\n - }\n - this.readChildNodes(node, boundingBox);\n - },\n - "BoundingBox": function(node, obj) {\n - // FIXME: We consider that BoundingBox is the same as WGS84BoundingBox\n - // LowerCorner = "min_x min_y"\n - // UpperCorner = "max_x max_y"\n - // It should normally depend on the projection\n - this.readers[\'ows\'][\'WGS84BoundingBox\'].apply(this, [node, obj]);\n - },\n - "LowerCorner": function(node, obj) {\n - var str = this.getChildValue(node).replace(\n - this.regExes.trimSpace, "");\n - str = str.replace(this.regExes.trimComma, ",");\n - var pointList = str.split(this.regExes.splitSpace);\n - obj.left = pointList[0];\n - obj.bottom = pointList[1];\n - },\n - "UpperCorner": function(node, obj) {\n - var str = this.getChildValue(node).replace(\n - this.regExes.trimSpace, "");\n - str = str.replace(this.regExes.trimComma, ",");\n - var pointList = str.split(this.regExes.splitSpace);\n - obj.right = pointList[0];\n - obj.top = pointList[1];\n - obj.bounds = new OpenLayers.Bounds(obj.left, obj.bottom,\n - obj.right, obj.top);\n - delete obj.left;\n - delete obj.bottom;\n - delete obj.right;\n - delete obj.top;\n - },\n - "Language": function(node, obj) {\n - obj.language = this.getChildValue(node);\n - }\n - }\n - },\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "ows": {\n - "BoundingBox": function(options) {\n - var node = this.createElementNSPlus("ows:BoundingBox", {\n - attributes: {\n - crs: options.projection\n - }\n - });\n - this.writeNode("ows:LowerCorner", options, node);\n - this.writeNode("ows:UpperCorner", options, node);\n - return node;\n - },\n - "LowerCorner": function(options) {\n - var node = this.createElementNSPlus("ows:LowerCorner", {\n - value: options.bounds.left + " " + options.bounds.bottom });\n - return node;\n - },\n - "UpperCorner": function(options) {\n - var node = this.createElementNSPlus("ows:UpperCorner", {\n - value: options.bounds.right + " " + options.bounds.top });\n - return node;\n - },\n - "Identifier": function(identifier) {\n - var node = this.createElementNSPlus("ows:Identifier", {\n - value: identifier });\n - return node;\n - },\n - "Title": function(title) {\n - var node = this.createElementNSPlus("ows:Title", {\n - value: title });\n - return node;\n - },\n - "Abstract": function(abstractValue) {\n - var node = this.createElementNSPlus("ows:Abstract", {\n - value: abstractValue });\n - return node;\n - },\n - "OutputFormat": function(format) {\n - var node = this.createElementNSPlus("ows:OutputFormat", {\n - value: format });\n - return node;\n - }\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.OWSCommon.v1"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>12883</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon/v1_0_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon/v1_0_0.js.xml deleted file mode 100644 index e869583e25f8713e81467fa43b7b84cc5c2a387d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon/v1_0_0.js.xml +++ /dev/null @@ -1,106 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.98</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_0_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/OWSCommon/v1.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.OWSCommon.v1_0_0\n - * Parser for OWS Common version 1.0.0.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.OWSCommon.v1>\n - */\n -OpenLayers.Format.OWSCommon.v1_0_0 = OpenLayers.Class(OpenLayers.Format.OWSCommon.v1, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - ows: "http://www.opengis.net/ows",\n - xlink: "http://www.w3.org/1999/xlink"\n - }, \n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "ows": OpenLayers.Util.applyDefaults({\n - "ExceptionReport": function(node, obj) {\n - obj.success = false;\n - obj.exceptionReport = {\n - version: node.getAttribute(\'version\'),\n - language: node.getAttribute(\'language\'),\n - exceptions: []\n - };\n - this.readChildNodes(node, obj.exceptionReport);\n - } \n - }, OpenLayers.Format.OWSCommon.v1.prototype.readers.ows)\n - },\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "ows": OpenLayers.Format.OWSCommon.v1.prototype.writers.ows\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.OWSCommon.v1_0_0"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2061</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon/v1_1_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon/v1_1_0.js.xml deleted file mode 100644 index 9b9d9da85adf6439cf3f000fd922eff34306439a..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSCommon/v1_1_0.js.xml +++ /dev/null @@ -1,160 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.98</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_1_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/OWSCommon/v1.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.OWSCommon.v1_1_0\n - * Parser for OWS Common version 1.1.0.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.OWSCommon.v1>\n - */\n -OpenLayers.Format.OWSCommon.v1_1_0 = OpenLayers.Class(OpenLayers.Format.OWSCommon.v1, {\n -\n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - ows: "http://www.opengis.net/ows/1.1",\n - xlink: "http://www.w3.org/1999/xlink"\n - }, \n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "ows": OpenLayers.Util.applyDefaults({\n - "ExceptionReport": function(node, obj) {\n - obj.exceptionReport = {\n - version: node.getAttribute(\'version\'),\n - language: node.getAttribute(\'xml:lang\'),\n - exceptions: []\n - };\n - this.readChildNodes(node, obj.exceptionReport);\n - },\n - "AllowedValues": function(node, parameter) {\n - parameter.allowedValues = {};\n - this.readChildNodes(node, parameter.allowedValues);\n - },\n - "AnyValue": function(node, parameter) {\n - parameter.anyValue = true;\n - },\n - "DataType": function(node, parameter) {\n - parameter.dataType = this.getChildValue(node);\n - },\n - "Range": function(node, allowedValues) {\n - allowedValues.range = {};\n - this.readChildNodes(node, allowedValues.range);\n - },\n - "MinimumValue": function(node, range) {\n - range.minValue = this.getChildValue(node);\n - },\n - "MaximumValue": function(node, range) {\n - range.maxValue = this.getChildValue(node);\n - },\n - "Identifier": function(node, obj) {\n - obj.identifier = this.getChildValue(node);\n - },\n - "SupportedCRS": function(node, obj) {\n - obj.supportedCRS = this.getChildValue(node);\n - }\n - }, OpenLayers.Format.OWSCommon.v1.prototype.readers["ows"])\n - },\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "ows": OpenLayers.Util.applyDefaults({\n - "Range": function(range) {\n - var node = this.createElementNSPlus("ows:Range", {\n - attributes: {\n - \'ows:rangeClosure\': range.closure\n - }\n - });\n - this.writeNode("ows:MinimumValue", range.minValue, node);\n - this.writeNode("ows:MaximumValue", range.maxValue, node);\n - return node;\n - },\n - "MinimumValue": function(minValue) {\n - var node = this.createElementNSPlus("ows:MinimumValue", {\n - value: minValue\n - });\n - return node;\n - },\n - "MaximumValue": function(maxValue) {\n - var node = this.createElementNSPlus("ows:MaximumValue", {\n - value: maxValue\n - });\n - return node;\n - },\n - "Value": function(value) {\n - var node = this.createElementNSPlus("ows:Value", {\n - value: value\n - });\n - return node;\n - }\n - }, OpenLayers.Format.OWSCommon.v1.prototype.writers["ows"])\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.OWSCommon.v1_1_0"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4249</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSContext.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSContext.js.xml deleted file mode 100644 index fd184ec5c770627c1077cc777b8719ba43b84c72..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSContext.js.xml +++ /dev/null @@ -1,130 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>OWSContext.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/Context.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.OWSContext\n - * Read and write OWS Context documents. OWS Context documents are a \n - * preliminary OGC (Open Geospatial Consortium) standard for storing the \n - * state of a web mapping application. In a way it is the successor to\n - * Web Map Context (WMC), since it is more generic and more types of layers\n - * can be stored. Also, nesting of layers is supported since version 0.3.1.\n - * For more information see: http://www.ogcnetwork.net/context\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.Context>\n - */\n -OpenLayers.Format.OWSContext = OpenLayers.Class(OpenLayers.Format.Context,{\n - \n - /**\n - * APIProperty: defaultVersion\n - * {String} Version number to assume if none found. Default is "0.3.1".\n - */\n - defaultVersion: "0.3.1",\n -\n - /**\n - * Constructor: OpenLayers.Format.OWSContext\n - * Create a new parser for OWS Context documents.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - \n - /**\n - * Method: getVersion\n - * Returns the version to use. Subclasses can override this function\n - * if a different version detection is needed.\n - *\n - * Parameters:\n - * root - {DOMElement}\n - * options - {Object} Optional configuration object.\n - *\n - * Returns:\n - * {String} The version to use.\n - */\n - getVersion: function(root, options) {\n - var version = OpenLayers.Format.XML.VersionedOGC.prototype.getVersion.apply(\n - this, arguments);\n - // 0.3.1 is backwards compatible with 0.3.0\n - if (version === "0.3.0") {\n - version = this.defaultVersion;\n - }\n - return version;\n - },\n -\n - /**\n - * Method: toContext\n - * Create a context object free from layer given a map or a\n - * context object.\n - *\n - * Parameters:\n - * obj - {<OpenLayers.Map> | Object} The map or context.\n - *\n - * Returns:\n - * {Object} A context object.\n - */\n - toContext: function(obj) {\n - var context = {};\n - if(obj.CLASS_NAME == "OpenLayers.Map") {\n - context.bounds = obj.getExtent();\n - context.maxExtent = obj.maxExtent;\n - context.projection = obj.projection;\n - context.size = obj.getSize();\n - context.layers = obj.layers;\n - }\n - return context;\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.OWSContext" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2691</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSContext.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSContext.xml deleted file mode 100644 index a711fcc6d83ee08581a8433b1496471161f82615..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSContext.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>OWSContext</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/OWSContext</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSContext/v0_3_1.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSContext/v0_3_1.js.xml deleted file mode 100644 index 569d39f47f9b2b99d00514133e110b7ee530fea5..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/OWSContext/v0_3_1.js.xml +++ /dev/null @@ -1,636 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.96</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v0_3_1.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Format/KML.js\n - * @requires OpenLayers/Format/GML.js\n - * @requires OpenLayers/Format/GML/v2.js\n - * @requires OpenLayers/Format/SLD/v1_0_0.js\n - * @requires OpenLayers/Format/OWSContext.js\n - * @requires OpenLayers/Format/OWSCommon/v1_0_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.OWSContext.v0_3_1\n - * Read and write OWSContext version 0.3.1.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.OWSContext.v0_3_1 = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - owc: "http://www.opengis.net/ows-context",\n - gml: "http://www.opengis.net/gml",\n - kml: "http://www.opengis.net/kml/2.2",\n - ogc: "http://www.opengis.net/ogc",\n - ows: "http://www.opengis.net/ows",\n - sld: "http://www.opengis.net/sld",\n - xlink: "http://www.w3.org/1999/xlink",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance"\n - },\n -\n - /**\n - * Constant: VERSION\n - * {String} 0.3.1\n - */\n - VERSION: "0.3.1", \n -\n - /**\n - * Property: schemaLocation\n - * {String} Schema location\n - */\n - schemaLocation: "http://www.opengis.net/ows-context http://www.ogcnetwork.net/schemas/owc/0.3.1/owsContext.xsd",\n -\n - /**\n - * Property: defaultPrefix\n - * {String} Default namespace prefix to use.\n - */\n - defaultPrefix: "owc",\n -\n - /**\n - * APIProperty: extractAttributes\n - * {Boolean} Extract attributes from GML. Default is true.\n - */\n - extractAttributes: true,\n - \n - /**\n - * APIProperty: xy\n - * {Boolean} Order of the GML coordinate true:(x,y) or false:(y,x)\n - * Changing is not recommended, a new Format should be instantiated.\n - */ \n - xy: true, \n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n -\n - /**\n - * Property: featureNS\n - * {String} The namespace uri to use for writing InlineGeometry\n - */\n - featureNS: "http://mapserver.gis.umn.edu/mapserver",\n -\n - /**\n - * Property: featureType\n - * {String} The name to use as the feature type when writing out\n - * InlineGeometry\n - */\n - featureType: \'vector\',\n - \n - /**\n - * Property: geometryName\n - * {String} The name to use for the geometry attribute when writing out\n - * InlineGeometry\n - */\n - geometryName: \'geometry\',\n -\n - /**\n - * Property: nestingLayerLookup\n - * {Object} Hashtable lookup for nesting layer nodes. Used while writing \n - * the OWS context document. It is necessary to keep track of the \n - * nestingPaths for which nesting layer nodes have already been \n - * created, so (nesting) layer nodes are added to those nodes.\n - *\n - * For example:\n - *\n - * If there are three layers with nestingPaths:\n - * layer1.metadata.nestingPath = "a/b/"\n - * layer2.metadata.nestingPath = "a/b/"\n - * layer2.metadata.nestingPath = "a/c"\n - *\n - * then a nesting layer node "a" should be created once and added \n - * to the resource list, a nesting layer node "b" should be created \n - * once and added under "a", and a nesting layer node "c" should be \n - * created and added under "a". The lookup paths for these nodes \n - * will be "a", "a/b", and "a/c" respectively.\n - */\n - nestingLayerLookup: null,\n -\n - /**\n - * Constructor: OpenLayers.Format.OWSContext.v0_3_1\n - * Instances of this class are not created directly. Use the\n - * <OpenLayers.Format.OWSContext> constructor instead.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - OpenLayers.Format.GML.v2.prototype.setGeometryTypes.call(this);\n - },\n -\n - /**\n - * Method: setNestingPath\n - * Set the nestingPath property of the layer depending on the position\n - * of the layer in hierarchy of layers.\n - *\n - * Parameters:\n - * l - {Object} An object that may have a layersContext array property.\n - * \n - */\n - setNestingPath : function(l){\n - if(l.layersContext){\n - for (var i = 0, len = l.layersContext.length; i < len; i++) {\n - var layerContext = l.layersContext[i];\n - var nPath = [];\n - var nTitle = l.title || "";\n - if(l.metadata && l.metadata.nestingPath){\n - nPath = l.metadata.nestingPath.slice();\n - }\n - if (nTitle != "") {\n - nPath.push(nTitle);\n - }\n - layerContext.metadata.nestingPath = nPath;\n - if(layerContext.layersContext){\n - this.setNestingPath(layerContext);\n - }\n - }\n - }\n - },\n -\n - /**\n - * Function: decomposeNestingPath\n - * Takes a nestingPath like "a/b/c" and decomposes it into subpaths:\n - * "a", "a/b", "a/b/c"\n - *\n - * Parameters:\n - * nPath - {Array} the nesting path\n - *\n - * Returns:\n - * Array({String}) Array with subpaths, or empty array if there is nothing\n - * to decompose\n - */\n - decomposeNestingPath: function(nPath){\n - var a = [];\n - if (OpenLayers.Util.isArray(nPath)) {\n - var path = nPath.slice();\n - while (path.length > 0) {\n - a.push(path.slice());\n - path.pop();\n - }\n - a.reverse();\n - }\n - return a;\n - },\n -\n - /**\n - * APIMethod: read\n - * Read OWS context data from a string or DOMElement, and return a list \n - * of layers. \n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Object} The context object with a flat layer list as a property named\n - * layersContext.\n - */\n - read: function(data) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n - var context = {};\n - this.readNode(data, context);\n - // since an OWSContext can be nested we need to go through this\n - // structure recursively \n - this.setNestingPath({layersContext : context.layersContext});\n - // after nesting path has been set, create a flat list of layers\n - var layers = [];\n - this.processLayer(layers, context);\n - delete context.layersContext;\n - context.layersContext = layers;\n - return context;\n - },\n -\n - /**\n - * Method: processLayer\n - * Recursive function to get back a flat list of layers from the hierarchic\n - * layer structure.\n - *\n - * Parameters:\n - * layerArray - {Array({Object})} Array of layerContext objects\n - * layer - {Object} layerContext object\n - */\n - processLayer: function(layerArray, layer) {\n - if (layer.layersContext) {\n - for (var i=0, len = layer.layersContext.length; i<len; i++) {\n - var l = layer.layersContext[i];\n - layerArray.push(l);\n - if (l.layersContext) {\n - this.processLayer(layerArray, l);\n - }\n - }\n - }\n - },\n -\n - /**\n - * APIMethod: write\n - *\n - * Parameters:\n - * context - {Object} An object representing the map context.\n - * options - {Object} Optional object.\n - *\n - * Returns:\n - * {String} An OWS Context document string.\n - */\n - write: function(context, options) {\n - var name = "OWSContext";\n - this.nestingLayerLookup = {}; //start with empty lookup\n - options = options || {};\n - OpenLayers.Util.applyDefaults(options, context);\n - var root = this.writeNode(name, options);\n - this.nestingLayerLookup = null; //clear lookup\n - this.setAttributeNS(\n - root, this.namespaces["xsi"],\n - "xsi:schemaLocation", this.schemaLocation\n - );\n - return OpenLayers.Format.XML.prototype.write.apply(this, [root]);\n - }, \n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "kml": {\n - "Document": function(node, obj) {\n - obj.features = new OpenLayers.Format.KML(\n - {kmlns: this.namespaces.kml, \n - extractStyles: true}).read(node);\n - }\n - },\n - "owc": { \n - "OWSContext": function(node, obj) {\n - this.readChildNodes(node, obj);\n - }, \n - "General": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "ResourceList": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "Layer": function(node, obj) {\n - var layerContext = {\n - metadata: {},\n - visibility: (node.getAttribute("hidden") != "1"),\n - queryable: (node.getAttribute("queryable") == "1"),\n - opacity: ((node.getAttribute("opacity") != null) ? \n - parseFloat(node.getAttribute("opacity")) : null),\n - name: node.getAttribute("name"),\n - /* A category layer is a dummy layer meant for creating\n - hierarchies. It is not a physical layer in the \n - OpenLayers sense. The assumption we make here is that\n - category layers do not have a name attribute */\n - categoryLayer: (node.getAttribute("name") == null),\n - formats: [],\n - styles: []\n - };\n - if (!obj.layersContext) {\n - obj.layersContext = [];\n - }\n - obj.layersContext.push(layerContext);\n - this.readChildNodes(node, layerContext);\n - },\n - "InlineGeometry": function(node, obj) {\n - obj.features = [];\n - var elements = this.getElementsByTagNameNS(node, \n - this.namespaces.gml, "featureMember");\n - var el;\n - if (elements.length >= 1) {\n - el = elements[0];\n - }\n - if (el && el.firstChild) {\n - var featurenode = (el.firstChild.nextSibling) ? \n - el.firstChild.nextSibling : el.firstChild;\n - this.setNamespace("feature", featurenode.namespaceURI);\n - this.featureType = featurenode.localName || \n - featurenode.nodeName.split(":").pop();\n - this.readChildNodes(node, obj);\n - }\n - },\n - "Server": function(node, obj) {\n - // when having multiple Server types, we prefer WMS\n - if ((!obj.service && !obj.version) || \n - (obj.service != \n - OpenLayers.Format.Context.serviceTypes.WMS)) {\n - obj.service = node.getAttribute("service");\n - obj.version = node.getAttribute("version");\n - this.readChildNodes(node, obj);\n - }\n - },\n - "Name": function(node, obj) {\n - obj.name = this.getChildValue(node);\n - this.readChildNodes(node, obj);\n - },\n - "Title": function(node, obj) {\n - obj.title = this.getChildValue(node);\n - this.readChildNodes(node, obj);\n - },\n - "StyleList": function(node, obj) {\n - this.readChildNodes(node, obj.styles);\n - },\n - "Style": function(node, obj) {\n - var style = {};\n - obj.push(style);\n - this.readChildNodes(node, style);\n - },\n - "LegendURL": function(node, obj) {\n - var legend = {};\n - obj.legend = legend;\n - this.readChildNodes(node, legend);\n - },\n - "OnlineResource": function(node, obj) {\n - obj.url = this.getAttributeNS(node, this.namespaces.xlink, \n - "href");\n - this.readChildNodes(node, obj);\n - }\n - },\n - "ows": OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers.ows,\n - "gml": OpenLayers.Format.GML.v2.prototype.readers.gml,\n - "sld": OpenLayers.Format.SLD.v1_0_0.prototype.readers.sld,\n - "feature": OpenLayers.Format.GML.v2.prototype.readers.feature\n - },\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "owc": {\n - "OWSContext": function(options) {\n - var node = this.createElementNSPlus("OWSContext", {\n - attributes: {\n - version: this.VERSION,\n - id: options.id || OpenLayers.Util.createUniqueID("OpenLayers_OWSContext_")\n - } \n - }); \n - this.writeNode("General", options, node);\n - this.writeNode("ResourceList", options, node);\n - return node; \n - },\n - "General": function(options) {\n - var node = this.createElementNSPlus("General");\n - this.writeNode("ows:BoundingBox", options, node);\n - this.writeNode("ows:Title", options.title || \'OpenLayers OWSContext\', node);\n - return node;\n - },\n - "ResourceList": function(options) {\n - var node = this.createElementNSPlus("ResourceList");\n - for (var i=0, len=options.layers.length; i<len; i++) {\n - var layer = options.layers[i];\n - var decomposedPath = this.decomposeNestingPath(layer.metadata.nestingPath);\n - this.writeNode("_Layer", {layer: layer, subPaths: decomposedPath}, node);\n - }\n - return node;\n - },\n - "Server": function(options) {\n - var node = this.createElementNSPlus("Server", {attributes: {\n - version: options.version,\n - service: options.service }\n - });\n - this.writeNode("OnlineResource", options, node);\n - return node;\n - },\n - "OnlineResource": function(options) {\n - var node = this.createElementNSPlus("OnlineResource", {attributes: {\n - "xlink:href": options.url }\n - });\n - return node;\n - },\n - "InlineGeometry": function(layer) {\n - var node = this.createElementNSPlus("InlineGeometry");\n - this.writeNode("gml:boundedBy", layer.getDataExtent(), node);\n - for (var i=0, len=layer.features.length; i<len; i++) {\n - this.writeNode("gml:featureMember", layer.features[i], node);\n - }\n - return node;\n - },\n - "StyleList": function(styles) {\n - var node = this.createElementNSPlus("StyleList");\n - for (var i=0, len=styles.length; i<len; i++) {\n - this.writeNode("Style", styles[i], node);\n - }\n - return node;\n - },\n - "Style": function(style) {\n - var node = this.createElementNSPlus("Style");\n - this.writeNode("Name", style, node);\n - this.writeNode("Title", style, node);\n - if (style.legend) {\n - this.writeNode("LegendURL", style, node);\n - }\n - return node;\n - },\n - "Name": function(obj) {\n - var node = this.createElementNSPlus("Name", {\n - value: obj.name });\n - return node;\n - },\n - "Title": function(obj) {\n - var node = this.createElementNSPlus("Title", {\n - value: obj.title });\n - return node;\n - },\n - "LegendURL": function(style) {\n - var node = this.createElementNSPlus("LegendURL");\n - this.writeNode("OnlineResource", style.legend, node);\n - return node;\n - },\n - "_WMS": function(layer) {\n - var node = this.createElementNSPlus("Layer", {attributes: {\n - name: layer.params.LAYERS,\n - queryable: layer.queryable ? "1" : "0",\n - hidden: layer.visibility ? "0" : "1",\n - opacity: layer.hasOwnProperty("opacity") ? layer.opacity : null}\n - });\n - this.writeNode("ows:Title", layer.name, node);\n - this.writeNode("ows:OutputFormat", layer.params.FORMAT, node);\n - this.writeNode("Server", {service: \n - OpenLayers.Format.Context.serviceTypes.WMS,\n - version: layer.params.VERSION, url: layer.url}, node);\n - if (layer.metadata.styles && layer.metadata.styles.length > 0) {\n - this.writeNode("StyleList", layer.metadata.styles, node);\n - }\n - return node;\n - },\n - "_Layer": function(options) {\n - var layer, subPaths, node, title;\n - layer = options.layer;\n - subPaths = options.subPaths;\n - node = null;\n - title = null;\n - // subPaths is an array of an array\n - // recursively calling _Layer writer eats up subPaths, until a \n - // real writer is called and nodes are returned.\n - if(subPaths.length > 0){\n - var path = subPaths[0].join("/");\n - var index = path.lastIndexOf("/");\n - node = this.nestingLayerLookup[path];\n - title = (index > 0)?path.substring(index + 1, path.length):path;\n - if(!node){\n - // category layer\n - node = this.createElementNSPlus("Layer");\n - this.writeNode("ows:Title", title, node);\n - this.nestingLayerLookup[path] = node;\n - }\n - options.subPaths.shift();//remove a path after each call\n - this.writeNode("_Layer", options, node);\n - return node;\n - } else {\n - // write out the actual layer\n - if (layer instanceof OpenLayers.Layer.WMS) {\n - node = this.writeNode("_WMS", layer);\n - } else if (layer instanceof OpenLayers.Layer.Vector) {\n - if (layer.protocol instanceof OpenLayers.Protocol.WFS.v1) {\n - node = this.writeNode("_WFS", layer);\n - } else if (layer.protocol instanceof OpenLayers.Protocol.HTTP) {\n - if (layer.protocol.format instanceof OpenLayers.Format.GML) {\n - layer.protocol.format.version = "2.1.2";\n - node = this.writeNode("_GML", layer);\n - } else if (layer.protocol.format instanceof OpenLayers.Format.KML) {\n - layer.protocol.format.version = "2.2";\n - node = this.writeNode("_KML", layer);\n - }\n - } else {\n - // write out as inline GML since we have no idea\n - // about the original Format\n - this.setNamespace("feature", this.featureNS);\n - node = this.writeNode("_InlineGeometry", layer);\n - }\n - }\n - if (layer.options.maxScale) {\n - this.writeNode("sld:MinScaleDenominator", \n - layer.options.maxScale, node);\n - }\n - if (layer.options.minScale) {\n - this.writeNode("sld:MaxScaleDenominator", \n - layer.options.minScale, node);\n - }\n - this.nestingLayerLookup[layer.name] = node;\n - return node;\n - }\n - },\n - "_WFS": function(layer) {\n - var node = this.createElementNSPlus("Layer", {attributes: {\n - name: layer.protocol.featurePrefix + ":" + layer.protocol.featureType,\n - hidden: layer.visibility ? "0" : "1" }\n - });\n - this.writeNode("ows:Title", layer.name, node);\n - this.writeNode("Server", {service: \n - OpenLayers.Format.Context.serviceTypes.WFS, \n - version: layer.protocol.version, \n - url: layer.protocol.url}, node);\n - return node;\n - },\n - "_InlineGeometry": function(layer) {\n - var node = this.createElementNSPlus("Layer", {attributes: {\n - name: this.featureType,\n - hidden: layer.visibility ? "0" : "1" }\n - });\n - this.writeNode("ows:Title", layer.name, node);\n - this.writeNode("InlineGeometry", layer, node);\n - return node;\n - },\n - "_GML": function(layer) {\n - var node = this.createElementNSPlus("Layer");\n - this.writeNode("ows:Title", layer.name, node);\n - this.writeNode("Server", {service: \n - OpenLayers.Format.Context.serviceTypes.GML, \n - url: layer.protocol.url, version: \n - layer.protocol.format.version}, node);\n - return node;\n - },\n - "_KML": function(layer) {\n - var node = this.createElementNSPlus("Layer");\n - this.writeNode("ows:Title", layer.name, node);\n - this.writeNode("Server", {service: \n - OpenLayers.Format.Context.serviceTypes.KML,\n - version: layer.protocol.format.version, url: \n - layer.protocol.url}, node);\n - return node;\n - }\n - },\n - "gml": OpenLayers.Util.applyDefaults({\n - "boundedBy": function(bounds) {\n - var node = this.createElementNSPlus("gml:boundedBy");\n - this.writeNode("gml:Box", bounds, node);\n - return node;\n - }\n - }, OpenLayers.Format.GML.v2.prototype.writers.gml),\n - "ows": OpenLayers.Format.OWSCommon.v1_0_0.prototype.writers.ows,\n - "sld": OpenLayers.Format.SLD.v1_0_0.prototype.writers.sld,\n - "feature": OpenLayers.Format.GML.v2.prototype.writers.feature\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.OWSContext.v0_3_1" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>23703</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/QueryStringFilter.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/QueryStringFilter.js.xml deleted file mode 100644 index d8b57bfc03748b6aeabf0a12143c542cee3d2ea1..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/QueryStringFilter.js.xml +++ /dev/null @@ -1,227 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>QueryStringFilter.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Console.js\n - * @requires OpenLayers/Format.js\n - * @requires OpenLayers/Filter/Spatial.js\n - * @requires OpenLayers/Filter/Comparison.js\n - * @requires OpenLayers/Filter/Logical.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.QueryStringFilter\n - * Parser for reading a query string and creating a simple filter.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format>\n - */\n -OpenLayers.Format.QueryStringFilter = (function() {\n -\n - /** \n - * Map the OpenLayers.Filter.Comparison types to the operation strings of \n - * the protocol.\n - */\n - var cmpToStr = {};\n - cmpToStr[OpenLayers.Filter.Comparison.EQUAL_TO] = "eq";\n - cmpToStr[OpenLayers.Filter.Comparison.NOT_EQUAL_TO] = "ne";\n - cmpToStr[OpenLayers.Filter.Comparison.LESS_THAN] = "lt";\n - cmpToStr[OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO] = "lte";\n - cmpToStr[OpenLayers.Filter.Comparison.GREATER_THAN] = "gt";\n - cmpToStr[OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO] = "gte";\n - cmpToStr[OpenLayers.Filter.Comparison.LIKE] = "ilike";\n -\n - /**\n - * Function: regex2value\n - * Convert the value from a regular expression string to a LIKE/ILIKE\n - * string known to the web service.\n - *\n - * Parameters:\n - * value - {String} The regex string.\n - *\n - * Returns:\n - * {String} The converted string.\n - */\n - function regex2value(value) {\n -\n - // highly sensitive!! Do not change this without running the\n - // Protocol/HTTP.html unit tests\n -\n - // convert % to \\%\n - value = value.replace(/%/g, "\\\\%");\n -\n - // convert \\\\. to \\\\_ (\\\\.* occurences converted later)\n - value = value.replace(/\\\\\\\\\\.(\\*)?/g, function($0, $1) {\n - return $1 ? $0 : "\\\\\\\\_";\n - });\n -\n - // convert \\\\.* to \\\\%\n - value = value.replace(/\\\\\\\\\\.\\*/g, "\\\\\\\\%");\n -\n - // convert . to _ (\\. and .* occurences converted later)\n - value = value.replace(/(\\\\)?\\.(\\*)?/g, function($0, $1, $2) {\n - return $1 || $2 ? $0 : "_";\n - });\n -\n - // convert .* to % (\\.* occurnces converted later)\n - value = value.replace(/(\\\\)?\\.\\*/g, function($0, $1) {\n - return $1 ? $0 : "%";\n - });\n -\n - // convert \\. to .\n - value = value.replace(/\\\\\\./g, ".");\n -\n - // replace \\* with * (watching out for \\\\*)\n - value = value.replace(/(\\\\)?\\\\\\*/g, function($0, $1) {\n - return $1 ? $0 : "*";\n - });\n -\n - return value;\n - }\n - \n - return OpenLayers.Class(OpenLayers.Format, {\n - \n - /**\n - * Property: wildcarded.\n - * {Boolean} If true percent signs are added around values\n - * read from LIKE filters, for example if the protocol\n - * read method is passed a LIKE filter whose property\n - * is "foo" and whose value is "bar" the string\n - * "foo__ilike=%bar%" will be sent in the query string;\n - * defaults to false.\n - */\n - wildcarded: false,\n -\n - /**\n - * APIProperty: srsInBBOX\n - * {Boolean} Include the SRS identifier in BBOX query string parameter. \n - * Default is false. If true and the layer has a projection object set,\n - * any BBOX filter will be serialized with a fifth item identifying the\n - * projection. E.g. bbox=-1000,-1000,1000,1000,EPSG:900913\n - */\n - srsInBBOX: false,\n -\n - /**\n - * APIMethod: write\n - * Serialize an <OpenLayers.Filter> objects using the "simple" filter syntax for \n - * query string parameters. This function must be called as a method of\n - * a protocol instance.\n - *\n - * Parameters:\n - * filter - {<OpenLayers.Filter>} filter to convert.\n - * params - {Object} The parameters object.\n - *\n - * Returns:\n - * {Object} The resulting parameters object.\n - */\n - write: function(filter, params) {\n - params = params || {};\n - var className = filter.CLASS_NAME;\n - var filterType = className.substring(className.lastIndexOf(".") + 1);\n - switch (filterType) {\n - case "Spatial":\n - switch (filter.type) {\n - case OpenLayers.Filter.Spatial.BBOX:\n - params.bbox = filter.value.toArray();\n - if (this.srsInBBOX && filter.projection) {\n - params.bbox.push(filter.projection.getCode());\n - }\n - break;\n - case OpenLayers.Filter.Spatial.DWITHIN:\n - params.tolerance = filter.distance;\n - // no break here\n - case OpenLayers.Filter.Spatial.WITHIN:\n - params.lon = filter.value.x;\n - params.lat = filter.value.y;\n - break;\n - default:\n - OpenLayers.Console.warn(\n - "Unknown spatial filter type " + filter.type);\n - }\n - break;\n - case "Comparison":\n - var op = cmpToStr[filter.type];\n - if (op !== undefined) {\n - var value = filter.value;\n - if (filter.type == OpenLayers.Filter.Comparison.LIKE) {\n - value = regex2value(value);\n - if (this.wildcarded) {\n - value = "%" + value + "%";\n - }\n - }\n - params[filter.property + "__" + op] = value;\n - params.queryable = params.queryable || [];\n - params.queryable.push(filter.property);\n - } else {\n - OpenLayers.Console.warn(\n - "Unknown comparison filter type " + filter.type);\n - }\n - break;\n - case "Logical":\n - if (filter.type === OpenLayers.Filter.Logical.AND) {\n - for (var i=0,len=filter.filters.length; i<len; i++) {\n - params = this.write(filter.filters[i], params);\n - }\n - } else {\n - OpenLayers.Console.warn(\n - "Unsupported logical filter type " + filter.type);\n - }\n - break;\n - default:\n - OpenLayers.Console.warn("Unknown filter type " + filterType);\n - }\n - return params;\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.QueryStringFilter"\n - \n - });\n -\n -\n -})();\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6971</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD.js.xml deleted file mode 100644 index 55860d7363d8ff85db164ded457fbf4255dbb963..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD.js.xml +++ /dev/null @@ -1,125 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>SLD.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML/VersionedOGC.js\n - * @requires OpenLayers/Style.js\n - * @requires OpenLayers/Rule.js\n - * @requires OpenLayers/Filter/FeatureId.js\n - * @requires OpenLayers/Filter/Logical.js\n - * @requires OpenLayers/Filter/Comparison.js\n - * @requires OpenLayers/Filter/Spatial.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.SLD\n - * Read/Wite SLD. Create a new instance with the <OpenLayers.Format.SLD>\n - * constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML.VersionedOGC>\n - */\n -OpenLayers.Format.SLD = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {\n - \n - /**\n - * APIProperty: profile\n - * {String} If provided, use a custom profile.\n - *\n - * Currently supported profiles:\n - * - GeoServer - parses GeoServer vendor specific capabilities for SLD.\n - */\n - profile: null,\n -\n - /**\n - * APIProperty: defaultVersion\n - * {String} Version number to assume if none found. Default is "1.0.0".\n - */\n - defaultVersion: "1.0.0",\n - \n - /**\n - * APIProperty: stringifyOutput\n - * {Boolean} If true, write will return a string otherwise a DOMElement.\n - * Default is true.\n - */\n - stringifyOutput: true,\n - \n - /**\n - * APIProperty: namedLayersAsArray\n - * {Boolean} Generate a namedLayers array. If false, the namedLayers\n - * property value will be an object keyed by layer name. Default is\n - * false.\n - */\n - namedLayersAsArray: false,\n - \n - /**\n - * APIMethod: write\n - * Write a SLD document given a list of styles.\n - *\n - * Parameters:\n - * sld - {Object} An object representing the SLD.\n - * options - {Object} Optional configuration object.\n - *\n - * Returns:\n - * {String} An SLD document string.\n - */\n - \n - /**\n - * APIMethod: read\n - * Read and SLD doc and return an object representing the SLD.\n - *\n - * Parameters:\n - * data - {String | DOMElement} Data to read.\n - * options - {Object} Options for the reader.\n - *\n - * Returns:\n - * {Object} An object representing the SLD.\n - */\n -\n - CLASS_NAME: "OpenLayers.Format.SLD" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2321</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD.xml deleted file mode 100644 index 4bdeab0f4068e509909a1e2bcd16ed1c8d0a2379..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>SLD</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/SLD</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD/v1.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD/v1.js.xml deleted file mode 100644 index d26f42c9b7d67349320f4630e2b2d3f4f834c720..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD/v1.js.xml +++ /dev/null @@ -1,1353 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.96</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Rule.js\n - * @requires OpenLayers/Format/SLD.js\n - * @requires OpenLayers/Format/Filter/v1_0_0.js\n - * @requires OpenLayers/Symbolizer/Point.js\n - * @requires OpenLayers/Symbolizer/Line.js\n - * @requires OpenLayers/Symbolizer/Polygon.js\n - * @requires OpenLayers/Symbolizer/Text.js\n - * @requires OpenLayers/Symbolizer/Raster.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.SLD.v1\n - * Superclass for SLD version 1 parsers.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.Filter.v1_0_0>\n - */\n -OpenLayers.Format.SLD.v1 = OpenLayers.Class(OpenLayers.Format.Filter.v1_0_0, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - sld: "http://www.opengis.net/sld",\n - ogc: "http://www.opengis.net/ogc",\n - gml: "http://www.opengis.net/gml",\n - xlink: "http://www.w3.org/1999/xlink",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance"\n - },\n - \n - /**\n - * Property: defaultPrefix\n - */\n - defaultPrefix: "sld",\n -\n - /**\n - * Property: schemaLocation\n - * {String} Schema location for a particular minor version.\n - */\n - schemaLocation: null,\n - \n - /** \n - * APIProperty: multipleSymbolizers\n - * {Boolean} Support multiple symbolizers per rule. Default is false. if\n - * true, an OpenLayers.Style2 instance will be created to represent \n - * user styles instead of an OpenLayers.Style instace. The \n - * OpenLayers.Style2 class allows collections of rules with multiple\n - * symbolizers, but is not currently useful for client side rendering.\n - * If multiple symbolizers is true, multiple FeatureTypeStyle elements\n - * are preserved in reading/writing by setting symbolizer zIndex values.\n - * In addition, the <defaultSymbolizer> property is ignored if \n - * multiple symbolizers are supported (defaults should be applied\n - * when rendering).\n - */\n - multipleSymbolizers: false,\n -\n - /**\n - * Property: featureTypeCounter\n - * {Number} Private counter for multiple feature type styles.\n - */\n - featureTypeCounter: null,\n -\n - /**\n - * APIProperty: defaultSymbolizer.\n - * {Object} A symbolizer with the SLD defaults.\n - */\n - defaultSymbolizer: {\n - fillColor: "#808080",\n - fillOpacity: 1,\n - strokeColor: "#000000",\n - strokeOpacity: 1,\n - strokeWidth: 1,\n - strokeDashstyle: "solid",\n - pointRadius: 3,\n - graphicName: "square"\n - },\n - \n - /**\n - * Constructor: OpenLayers.Format.SLD.v1\n - * Instances of this class are not created directly. Use the\n - * <OpenLayers.Format.SLD> constructor instead.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - \n - /**\n - * Method: read\n - *\n - * Parameters:\n - * data - {DOMElement} An SLD document element.\n - * options - {Object} Options for the reader.\n - *\n - * Valid options:\n - * namedLayersAsArray - {Boolean} Generate a namedLayers array. If false,\n - * the namedLayers property value will be an object keyed by layer name.\n - * Default is false.\n - *\n - * Returns:\n - * {Object} An object representing the SLD.\n - */\n - read: function(data, options) {\n - options = OpenLayers.Util.applyDefaults(options, this.options);\n - var sld = {\n - namedLayers: options.namedLayersAsArray === true ? [] : {}\n - };\n - this.readChildNodes(data, sld);\n - return sld;\n - },\n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: OpenLayers.Util.applyDefaults({\n - "sld": {\n - "StyledLayerDescriptor": function(node, sld) {\n - sld.version = node.getAttribute("version");\n - this.readChildNodes(node, sld);\n - },\n - "Name": function(node, obj) {\n - obj.name = this.getChildValue(node);\n - },\n - "Title": function(node, obj) {\n - obj.title = this.getChildValue(node);\n - },\n - "Abstract": function(node, obj) {\n - obj.description = this.getChildValue(node);\n - },\n - "NamedLayer": function(node, sld) {\n - var layer = {\n - userStyles: [],\n - namedStyles: []\n - };\n - this.readChildNodes(node, layer);\n - // give each of the user styles this layer name\n - for(var i=0, len=layer.userStyles.length; i<len; ++i) {\n - layer.userStyles[i].layerName = layer.name;\n - }\n - if(OpenLayers.Util.isArray(sld.namedLayers)) {\n - sld.namedLayers.push(layer); \n - } else {\n - sld.namedLayers[layer.name] = layer;\n - }\n - },\n - "NamedStyle": function(node, layer) {\n - layer.namedStyles.push(\n - this.getChildName(node.firstChild)\n - );\n - },\n - "UserStyle": function(node, layer) {\n - var obj = {defaultsPerSymbolizer: true, rules: []};\n - this.featureTypeCounter = -1;\n - this.readChildNodes(node, obj);\n - var style;\n - if (this.multipleSymbolizers) {\n - delete obj.defaultsPerSymbolizer;\n - style = new OpenLayers.Style2(obj);\n - } else {\n - style = new OpenLayers.Style(this.defaultSymbolizer, obj);\n - }\n - layer.userStyles.push(style);\n - },\n - "IsDefault": function(node, style) {\n - if(this.getChildValue(node) == "1") {\n - style.isDefault = true;\n - }\n - },\n - "FeatureTypeStyle": function(node, style) {\n - ++this.featureTypeCounter;\n - var obj = {\n - rules: this.multipleSymbolizers ? style.rules : []\n - };\n - this.readChildNodes(node, obj);\n - if (!this.multipleSymbolizers) {\n - style.rules = obj.rules;\n - }\n - },\n - "Rule": function(node, obj) {\n - var config;\n - if (this.multipleSymbolizers) {\n - config = {symbolizers: []};\n - }\n - var rule = new OpenLayers.Rule(config);\n - this.readChildNodes(node, rule);\n - obj.rules.push(rule);\n - },\n - "ElseFilter": function(node, rule) {\n - rule.elseFilter = true;\n - },\n - "MinScaleDenominator": function(node, rule) {\n - rule.minScaleDenominator = parseFloat(this.getChildValue(node));\n - },\n - "MaxScaleDenominator": function(node, rule) {\n - rule.maxScaleDenominator = parseFloat(this.getChildValue(node));\n - },\n - "TextSymbolizer": function(node, rule) {\n - var config = {};\n - this.readChildNodes(node, config);\n - if (this.multipleSymbolizers) {\n - config.zIndex = this.featureTypeCounter;\n - rule.symbolizers.push(\n - new OpenLayers.Symbolizer.Text(config)\n - );\n - } else {\n - rule.symbolizer["Text"] = OpenLayers.Util.applyDefaults(\n - config, rule.symbolizer["Text"]\n - );\n - }\n - },\n - "LabelPlacement": function(node, symbolizer) {\n - this.readChildNodes(node, symbolizer);\n - },\n - "PointPlacement": function(node, symbolizer) {\n - var config = {};\n - this.readChildNodes(node, config);\n - config.labelRotation = config.rotation;\n - delete config.rotation;\n - var labelAlign,\n - x = symbolizer.labelAnchorPointX,\n - y = symbolizer.labelAnchorPointY;\n - if (x <= 1/3) {\n - labelAlign = \'l\';\n - } else if (x > 1/3 && x < 2/3) {\n - labelAlign = \'c\';\n - } else if (x >= 2/3) {\n - labelAlign = \'r\';\n - }\n - if (y <= 1/3) {\n - labelAlign += \'b\';\n - } else if (y > 1/3 && y < 2/3) {\n - labelAlign += \'m\';\n - } else if (y >= 2/3) {\n - labelAlign += \'t\';\n - }\n - config.labelAlign = labelAlign;\n - OpenLayers.Util.applyDefaults(symbolizer, config);\n - },\n - "AnchorPoint": function(node, symbolizer) {\n - this.readChildNodes(node, symbolizer);\n - },\n - "AnchorPointX": function(node, symbolizer) {\n - var labelAnchorPointX = this.readers.ogc._expression.call(this, node);\n - // always string, could be empty string\n - if(labelAnchorPointX) {\n - symbolizer.labelAnchorPointX = labelAnchorPointX;\n - }\n - },\n - "AnchorPointY": function(node, symbolizer) {\n - var labelAnchorPointY = this.readers.ogc._expression.call(this, node);\n - // always string, could be empty string\n - if(labelAnchorPointY) {\n - symbolizer.labelAnchorPointY = labelAnchorPointY;\n - }\n - },\n - "Displacement": function(node, symbolizer) {\n - this.readChildNodes(node, symbolizer);\n - },\n - "DisplacementX": function(node, symbolizer) {\n - var labelXOffset = this.readers.ogc._expression.call(this, node);\n - // always string, could be empty string\n - if(labelXOffset) {\n - symbolizer.labelXOffset = labelXOffset;\n - }\n - },\n - "DisplacementY": function(node, symbolizer) {\n - var labelYOffset = this.readers.ogc._expression.call(this, node);\n - // always string, could be empty string\n - if(labelYOffset) {\n - symbolizer.labelYOffset = labelYOffset;\n - }\n - },\n - "LinePlacement": function(node, symbolizer) {\n - this.readChildNodes(node, symbolizer);\n - },\n - "PerpendicularOffset": function(node, symbolizer) {\n - var labelPerpendicularOffset = this.readers.ogc._expression.call(this, node);\n - // always string, could be empty string\n - if(labelPerpendicularOffset) {\n - symbolizer.labelPerpendicularOffset = labelPerpendicularOffset;\n - }\n - },\n - "Label": function(node, symbolizer) {\n - var value = this.readers.ogc._expression.call(this, node);\n - if (value) {\n - symbolizer.label = value;\n - }\n - },\n - "Font": function(node, symbolizer) {\n - this.readChildNodes(node, symbolizer);\n - },\n - "Halo": function(node, symbolizer) {\n - // halo has a fill, so send fresh object\n - var obj = {};\n - this.readChildNodes(node, obj);\n - symbolizer.haloRadius = obj.haloRadius;\n - symbolizer.haloColor = obj.fillColor;\n - symbolizer.haloOpacity = obj.fillOpacity;\n - },\n - "Radius": function(node, symbolizer) {\n - var radius = this.readers.ogc._expression.call(this, node);\n - if(radius != null) {\n - // radius is only used for halo\n - symbolizer.haloRadius = radius;\n - }\n - },\n - "RasterSymbolizer": function(node, rule) {\n - var config = {};\n - this.readChildNodes(node, config);\n - if (this.multipleSymbolizers) {\n - config.zIndex = this.featureTypeCounter;\n - rule.symbolizers.push(\n - new OpenLayers.Symbolizer.Raster(config)\n - );\n - } else {\n - rule.symbolizer["Raster"] = OpenLayers.Util.applyDefaults(\n - config, rule.symbolizer["Raster"]\n - );\n - }\n - },\n - "Geometry": function(node, obj) {\n - obj.geometry = {};\n - this.readChildNodes(node, obj.geometry);\n - },\n - "ColorMap": function(node, symbolizer) {\n - symbolizer.colorMap = [];\n - this.readChildNodes(node, symbolizer.colorMap);\n - },\n - "ColorMapEntry": function(node, colorMap) {\n - var q = node.getAttribute("quantity");\n - var o = node.getAttribute("opacity");\n - colorMap.push({\n - color: node.getAttribute("color"),\n - quantity: q !== null ? parseFloat(q) : undefined,\n - label: node.getAttribute("label") || undefined,\n - opacity: o !== null ? parseFloat(o) : undefined\n - });\n - },\n - "LineSymbolizer": function(node, rule) {\n - var config = {};\n - this.readChildNodes(node, config);\n - if (this.multipleSymbolizers) {\n - config.zIndex = this.featureTypeCounter;\n - rule.symbolizers.push(\n - new OpenLayers.Symbolizer.Line(config)\n - );\n - } else {\n - rule.symbolizer["Line"] = OpenLayers.Util.applyDefaults(\n - config, rule.symbolizer["Line"]\n - );\n - }\n - },\n - "PolygonSymbolizer": function(node, rule) {\n - var config = {\n - fill: false,\n - stroke: false\n - };\n - if (!this.multipleSymbolizers) {\n - config = rule.symbolizer["Polygon"] || config;\n - }\n - this.readChildNodes(node, config);\n - if (this.multipleSymbolizers) {\n - config.zIndex = this.featureTypeCounter;\n - rule.symbolizers.push(\n - new OpenLayers.Symbolizer.Polygon(config)\n - );\n - } else {\n - rule.symbolizer["Polygon"] = config;\n - }\n - },\n - "PointSymbolizer": function(node, rule) {\n - var config = {\n - fill: false,\n - stroke: false,\n - graphic: false\n - };\n - if (!this.multipleSymbolizers) {\n - config = rule.symbolizer["Point"] || config;\n - }\n - this.readChildNodes(node, config);\n - if (this.multipleSymbolizers) {\n - config.zIndex = this.featureTypeCounter;\n - rule.symbolizers.push(\n - new OpenLayers.Symbolizer.Point(config)\n - );\n - } else {\n - rule.symbolizer["Point"] = config;\n - }\n - },\n - "Stroke": function(node, symbolizer) {\n - symbolizer.stroke = true;\n - this.readChildNodes(node, symbolizer);\n - },\n - "Fill": function(node, symbolizer) {\n - symbolizer.fill = true;\n - this.readChildNodes(node, symbolizer);\n - },\n - "CssParameter": function(node, symbolizer) {\n - var cssProperty = node.getAttribute("name");\n - var symProperty = this.cssMap[cssProperty];\n - // for labels, fill should map to fontColor and fill-opacity \n - // to fontOpacity\n - if (symbolizer.label) {\n - if (cssProperty === \'fill\') {\n - symProperty = "fontColor";\n - } else if (cssProperty === \'fill-opacity\') {\n - symProperty = "fontOpacity";\n - }\n - }\n - if(symProperty) {\n - // Limited support for parsing of OGC expressions\n - var value = this.readers.ogc._expression.call(this, node);\n - // always string, could be an empty string\n - if(value) {\n - symbolizer[symProperty] = value;\n - }\n - }\n - },\n - "Graphic": function(node, symbolizer) {\n - symbolizer.graphic = true;\n - var graphic = {};\n - // painter\'s order not respected here, clobber previous with next\n - this.readChildNodes(node, graphic);\n - // directly properties with names that match symbolizer properties\n - var properties = [\n - "stroke", "strokeColor", "strokeWidth", "strokeOpacity",\n - "strokeLinecap", "fill", "fillColor", "fillOpacity",\n - "graphicName", "rotation", "graphicFormat"\n - ];\n - var prop, value;\n - for(var i=0, len=properties.length; i<len; ++i) {\n - prop = properties[i];\n - value = graphic[prop];\n - if(value != undefined) {\n - symbolizer[prop] = value;\n - }\n - }\n - // set other generic properties with specific graphic property names\n - if(graphic.opacity != undefined) {\n - symbolizer.graphicOpacity = graphic.opacity;\n - }\n - if(graphic.size != undefined) {\n - var pointRadius = graphic.size / 2;\n - if (isNaN(pointRadius)) {\n - // likely a property name\n - symbolizer.graphicWidth = graphic.size;\n - } else {\n - symbolizer.pointRadius = graphic.size / 2;\n - }\n - }\n - if(graphic.href != undefined) {\n - symbolizer.externalGraphic = graphic.href;\n - }\n - if(graphic.rotation != undefined) {\n - symbolizer.rotation = graphic.rotation;\n - }\n - },\n - "ExternalGraphic": function(node, graphic) {\n - this.readChildNodes(node, graphic);\n - },\n - "Mark": function(node, graphic) {\n - this.readChildNodes(node, graphic);\n - },\n - "WellKnownName": function(node, graphic) {\n - graphic.graphicName = this.getChildValue(node);\n - },\n - "Opacity": function(node, obj) {\n - var opacity = this.readers.ogc._expression.call(this, node);\n - // always string, could be empty string\n - if(opacity) {\n - obj.opacity = opacity;\n - }\n - },\n - "Size": function(node, obj) {\n - var size = this.readers.ogc._expression.call(this, node);\n - // always string, could be empty string\n - if(size) {\n - obj.size = size;\n - }\n - },\n - "Rotation": function(node, obj) {\n - var rotation = this.readers.ogc._expression.call(this, node);\n - // always string, could be empty string\n - if(rotation) {\n - obj.rotation = rotation;\n - }\n - },\n - "OnlineResource": function(node, obj) {\n - obj.href = this.getAttributeNS(\n - node, this.namespaces.xlink, "href"\n - );\n - },\n - "Format": function(node, graphic) {\n - graphic.graphicFormat = this.getChildValue(node);\n - }\n - }\n - }, OpenLayers.Format.Filter.v1_0_0.prototype.readers),\n - \n - /**\n - * Property: cssMap\n - * {Object} Object mapping supported css property names to OpenLayers\n - * symbolizer property names.\n - */\n - cssMap: {\n - "stroke": "strokeColor",\n - "stroke-opacity": "strokeOpacity",\n - "stroke-width": "strokeWidth",\n - "stroke-linecap": "strokeLinecap",\n - "stroke-dasharray": "strokeDashstyle",\n - "fill": "fillColor",\n - "fill-opacity": "fillOpacity",\n - "font-family": "fontFamily",\n - "font-size": "fontSize",\n - "font-weight": "fontWeight",\n - "font-style": "fontStyle"\n - },\n - \n - /**\n - * Method: getCssProperty\n - * Given a symbolizer property, get the corresponding CSS property\n - * from the <cssMap>.\n - *\n - * Parameters:\n - * sym - {String} A symbolizer property name.\n - *\n - * Returns:\n - * {String} A CSS property name or null if none found.\n - */\n - getCssProperty: function(sym) {\n - var css = null;\n - for(var prop in this.cssMap) {\n - if(this.cssMap[prop] == sym) {\n - css = prop;\n - break;\n - }\n - }\n - return css;\n - },\n - \n - /**\n - * Method: getGraphicFormat\n - * Given a href for an external graphic, try to determine the mime-type.\n - * This method doesn\'t try too hard, and will fall back to\n - * <defaultGraphicFormat> if one of the known <graphicFormats> is not\n - * the file extension of the provided href.\n - *\n - * Parameters:\n - * href - {String}\n - *\n - * Returns:\n - * {String} The graphic format.\n - */\n - getGraphicFormat: function(href) {\n - var format, regex;\n - for(var key in this.graphicFormats) {\n - if(this.graphicFormats[key].test(href)) {\n - format = key;\n - break;\n - }\n - }\n - return format || this.defaultGraphicFormat;\n - },\n - \n - /**\n - * Property: defaultGraphicFormat\n - * {String} If none other can be determined from <getGraphicFormat>, this\n - * default will be returned.\n - */\n - defaultGraphicFormat: "image/png",\n - \n - /**\n - * Property: graphicFormats\n - * {Object} Mapping of image mime-types to regular extensions matching \n - * well-known file extensions.\n - */\n - graphicFormats: {\n - "image/jpeg": /\\.jpe?g$/i,\n - "image/gif": /\\.gif$/i,\n - "image/png": /\\.png$/i\n - },\n -\n - /**\n - * Method: write\n - *\n - * Parameters:\n - * sld - {Object} An object representing the SLD.\n - *\n - * Returns:\n - * {DOMElement} The root of an SLD document.\n - */\n - write: function(sld) {\n - return this.writers.sld.StyledLayerDescriptor.apply(this, [sld]);\n - },\n - \n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: OpenLayers.Util.applyDefaults({\n - "sld": {\n - "_OGCExpression": function(nodeName, value) {\n - // only the simplest of ogc:expression handled\n - // {label: "some text and a ${propertyName}"}\n - var node = this.createElementNSPlus(nodeName);\n - var tokens = typeof value == "string" ?\n - value.split("${") :\n - [value];\n - node.appendChild(this.createTextNode(tokens[0]));\n - var item, last;\n - for(var i=1, len=tokens.length; i<len; i++) {\n - item = tokens[i];\n - last = item.indexOf("}"); \n - if(last > 0) {\n - this.writeNode(\n - "ogc:PropertyName",\n - {property: item.substring(0, last)},\n - node\n - );\n - node.appendChild(\n - this.createTextNode(item.substring(++last))\n - );\n - } else {\n - // no ending }, so this is a literal ${\n - node.appendChild(\n - this.createTextNode("${" + item)\n - );\n - }\n - }\n - return node;\n - },\n - "StyledLayerDescriptor": function(sld) {\n - var root = this.createElementNSPlus(\n - "sld:StyledLayerDescriptor",\n - {attributes: {\n - "version": this.VERSION,\n - "xsi:schemaLocation": this.schemaLocation\n - }}\n - );\n -\n - // For ArcGIS Server it is necessary to define this\n - // at the root level (see ticket:2166).\n - root.setAttribute("xmlns:ogc", this.namespaces.ogc);\n - root.setAttribute("xmlns:gml", this.namespaces.gml);\n -\n - // add in optional name\n - if(sld.name) {\n - this.writeNode("Name", sld.name, root);\n - }\n - // add in optional title\n - if(sld.title) {\n - this.writeNode("Title", sld.title, root);\n - }\n - // add in optional description\n - if(sld.description) {\n - this.writeNode("Abstract", sld.description, root);\n - }\n - // add in named layers\n - // allow namedLayers to be an array\n - if(OpenLayers.Util.isArray(sld.namedLayers)) {\n - for(var i=0, len=sld.namedLayers.length; i<len; ++i) {\n - this.writeNode("NamedLayer", sld.namedLayers[i], root);\n - }\n - } else {\n - for(var name in sld.namedLayers) {\n - this.writeNode("NamedLayer", sld.namedLayers[name], root);\n - }\n - }\n - return root;\n - },\n - "Name": function(name) {\n - return this.createElementNSPlus("sld:Name", {value: name});\n - },\n - "Title": function(title) {\n - return this.createElementNSPlus("sld:Title", {value: title});\n - },\n - "Abstract": function(description) {\n - return this.createElementNSPlus(\n - "sld:Abstract", {value: description}\n - );\n - },\n - "NamedLayer": function(layer) {\n - var node = this.createElementNSPlus("sld:NamedLayer");\n -\n - // add in required name\n - this.writeNode("Name", layer.name, node);\n -\n - // optional sld:LayerFeatureConstraints here\n -\n - // add in named styles\n - if(layer.namedStyles) {\n - for(var i=0, len=layer.namedStyles.length; i<len; ++i) {\n - this.writeNode(\n - "NamedStyle", layer.namedStyles[i], node\n - );\n - }\n - }\n - \n - // add in user styles\n - if(layer.userStyles) {\n - for(var i=0, len=layer.userStyles.length; i<len; ++i) {\n - this.writeNode(\n - "UserStyle", layer.userStyles[i], node\n - );\n - }\n - }\n - \n - return node;\n - },\n - "NamedStyle": function(name) {\n - var node = this.createElementNSPlus("sld:NamedStyle");\n - this.writeNode("Name", name, node);\n - return node;\n - },\n - "UserStyle": function(style) {\n - var node = this.createElementNSPlus("sld:UserStyle");\n -\n - // add in optional name\n - if(style.name) {\n - this.writeNode("Name", style.name, node);\n - }\n - // add in optional title\n - if(style.title) {\n - this.writeNode("Title", style.title, node);\n - }\n - // add in optional description\n - if(style.description) {\n - this.writeNode("Abstract", style.description, node);\n - }\n - \n - // add isdefault\n - if(style.isDefault) {\n - this.writeNode("IsDefault", style.isDefault, node);\n - }\n - \n - // add FeatureTypeStyles\n - if (this.multipleSymbolizers && style.rules) {\n - // group style objects by symbolizer zIndex\n - var rulesByZ = {\n - 0: []\n - };\n - var zValues = [0];\n - var rule, ruleMap, symbolizer, zIndex, clone;\n - for (var i=0, ii=style.rules.length; i<ii; ++i) {\n - rule = style.rules[i];\n - if (rule.symbolizers) {\n - ruleMap = {};\n - for (var j=0, jj=rule.symbolizers.length; j<jj; ++j) {\n - symbolizer = rule.symbolizers[j];\n - zIndex = symbolizer.zIndex;\n - if (!(zIndex in ruleMap)) {\n - clone = rule.clone();\n - clone.symbolizers = [];\n - ruleMap[zIndex] = clone;\n - }\n - ruleMap[zIndex].symbolizers.push(symbolizer.clone());\n - }\n - for (zIndex in ruleMap) {\n - if (!(zIndex in rulesByZ)) {\n - zValues.push(zIndex);\n - rulesByZ[zIndex] = [];\n - }\n - rulesByZ[zIndex].push(ruleMap[zIndex]);\n - }\n - } else {\n - // no symbolizers in rule\n - rulesByZ[0].push(rule.clone());\n - }\n - }\n - // write one FeatureTypeStyle per zIndex\n - zValues.sort();\n - var rules;\n - for (var i=0, ii=zValues.length; i<ii; ++i) {\n - rules = rulesByZ[zValues[i]];\n - if (rules.length > 0) {\n - clone = style.clone();\n - clone.rules = rulesByZ[zValues[i]];\n - this.writeNode("FeatureTypeStyle", clone, node);\n - }\n - } \n - } else {\n - this.writeNode("FeatureTypeStyle", style, node);\n - }\n - \n - return node;\n - },\n - "IsDefault": function(bool) {\n - return this.createElementNSPlus(\n - "sld:IsDefault", {value: (bool) ? "1" : "0"}\n - );\n - },\n - "FeatureTypeStyle": function(style) {\n - var node = this.createElementNSPlus("sld:FeatureTypeStyle");\n - \n - // OpenLayers currently stores no Name, Title, Abstract,\n - // FeatureTypeName, or SemanticTypeIdentifier information\n - // related to FeatureTypeStyle\n - \n - // add in rules\n - for(var i=0, len=style.rules.length; i<len; ++i) {\n - this.writeNode("Rule", style.rules[i], node);\n - }\n - \n - return node;\n - },\n - "Rule": function(rule) {\n - var node = this.createElementNSPlus("sld:Rule");\n -\n - // add in optional name\n - if(rule.name) {\n - this.writeNode("Name", rule.name, node);\n - }\n - // add in optional title\n - if(rule.title) {\n - this.writeNode("Title", rule.title, node);\n - }\n - // add in optional description\n - if(rule.description) {\n - this.writeNode("Abstract", rule.description, node);\n - }\n - \n - // add in LegendGraphic here\n - \n - // add in optional filters\n - if(rule.elseFilter) {\n - this.writeNode("ElseFilter", null, node);\n - } else if(rule.filter) {\n - this.writeNode("ogc:Filter", rule.filter, node);\n - }\n - \n - // add in scale limits\n - if(rule.minScaleDenominator != undefined) {\n - this.writeNode(\n - "MinScaleDenominator", rule.minScaleDenominator, node\n - );\n - }\n - if(rule.maxScaleDenominator != undefined) {\n - this.writeNode(\n - "MaxScaleDenominator", rule.maxScaleDenominator, node\n - );\n - }\n - \n - var type, symbolizer;\n - if (this.multipleSymbolizers && rule.symbolizers) {\n - var symbolizer;\n - for (var i=0, ii=rule.symbolizers.length; i<ii; ++i) {\n - symbolizer = rule.symbolizers[i];\n - type = symbolizer.CLASS_NAME.split(".").pop();\n - this.writeNode(\n - type + "Symbolizer", symbolizer, node\n - );\n - }\n - } else {\n - // add in symbolizers (relies on geometry type keys)\n - var types = OpenLayers.Style.SYMBOLIZER_PREFIXES;\n - for(var i=0, len=types.length; i<len; ++i) {\n - type = types[i];\n - symbolizer = rule.symbolizer[type];\n - if(symbolizer) {\n - this.writeNode(\n - type + "Symbolizer", symbolizer, node\n - );\n - }\n - }\n - }\n - return node;\n -\n - },\n - "ElseFilter": function() {\n - return this.createElementNSPlus("sld:ElseFilter");\n - },\n - "MinScaleDenominator": function(scale) {\n - return this.createElementNSPlus(\n - "sld:MinScaleDenominator", {value: scale}\n - );\n - },\n - "MaxScaleDenominator": function(scale) {\n - return this.createElementNSPlus(\n - "sld:MaxScaleDenominator", {value: scale}\n - );\n - },\n - "LineSymbolizer": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:LineSymbolizer");\n - this.writeNode("Stroke", symbolizer, node);\n - return node;\n - },\n - "Stroke": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:Stroke");\n -\n - // GraphicFill here\n - // GraphicStroke here\n -\n - // add in CssParameters\n - if(symbolizer.strokeColor != undefined) {\n - this.writeNode(\n - "CssParameter",\n - {symbolizer: symbolizer, key: "strokeColor"},\n - node\n - );\n - }\n - if(symbolizer.strokeOpacity != undefined) {\n - this.writeNode(\n - "CssParameter",\n - {symbolizer: symbolizer, key: "strokeOpacity"},\n - node\n - );\n - }\n - if(symbolizer.strokeWidth != undefined) {\n - this.writeNode(\n - "CssParameter",\n - {symbolizer: symbolizer, key: "strokeWidth"},\n - node\n - );\n - }\n - if(symbolizer.strokeDashstyle != undefined && symbolizer.strokeDashstyle !== "solid") {\n - // assumes valid stroke-dasharray value\n - this.writeNode(\n - "CssParameter", \n - {symbolizer: symbolizer, key: "strokeDashstyle"},\n - node\n - );\n - }\n - if(symbolizer.strokeLinecap != undefined) {\n - this.writeNode(\n - "CssParameter", \n - {symbolizer: symbolizer, key: "strokeLinecap"},\n - node\n - );\n - }\n - return node;\n - },\n - "CssParameter": function(obj) {\n - // not handling ogc:expressions for now\n - return this.createElementNSPlus("sld:CssParameter", {\n - attributes: {name: this.getCssProperty(obj.key)},\n - value: obj.symbolizer[obj.key]\n - });\n - },\n - "TextSymbolizer": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:TextSymbolizer");\n - // add in optional Label\n - if(symbolizer.label != null) {\n - this.writeNode("Label", symbolizer.label, node);\n - }\n - // add in optional Font\n - if(symbolizer.fontFamily != null ||\n - symbolizer.fontSize != null ||\n - symbolizer.fontWeight != null ||\n - symbolizer.fontStyle != null) {\n - this.writeNode("Font", symbolizer, node);\n - }\n - // add in optional LabelPlacement\n - if (symbolizer.labelAnchorPointX != null ||\n - symbolizer.labelAnchorPointY != null || \n - symbolizer.labelAlign != null ||\n - symbolizer.labelXOffset != null ||\n - symbolizer.labelYOffset != null ||\n - symbolizer.labelRotation != null ||\n - symbolizer.labelPerpendicularOffset != null) {\n - this.writeNode("LabelPlacement", symbolizer, node);\n - }\n - // add in optional Halo\n - if(symbolizer.haloRadius != null ||\n - symbolizer.haloColor != null ||\n - symbolizer.haloOpacity != null) {\n - this.writeNode("Halo", symbolizer, node);\n - }\n - // add in optional Fill\n - if(symbolizer.fontColor != null ||\n - symbolizer.fontOpacity != null) {\n - this.writeNode("Fill", {\n - fillColor: symbolizer.fontColor,\n - fillOpacity: symbolizer.fontOpacity\n - }, node);\n - }\n - return node;\n - },\n - "LabelPlacement": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:LabelPlacement");\n - // PointPlacement and LinePlacement are choices, so don\'t output both\n - if ((symbolizer.labelAnchorPointX != null ||\n - symbolizer.labelAnchorPointY != null ||\n - symbolizer.labelAlign != null ||\n - symbolizer.labelXOffset != null ||\n - symbolizer.labelYOffset != null ||\n - symbolizer.labelRotation != null) && \n - symbolizer.labelPerpendicularOffset == null) {\n - this.writeNode("PointPlacement", symbolizer, node);\n - }\n - if (symbolizer.labelPerpendicularOffset != null) {\n - this.writeNode("LinePlacement", symbolizer, node);\n - }\n - return node;\n - },\n - "LinePlacement": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:LinePlacement");\n - this.writeNode("PerpendicularOffset", symbolizer.labelPerpendicularOffset, node);\n - return node;\n - },\n - "PerpendicularOffset": function(value) {\n - return this.createElementNSPlus("sld:PerpendicularOffset", {\n - value: value\n - });\n - },\n - "PointPlacement": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:PointPlacement");\n - if (symbolizer.labelAnchorPointX != null ||\n - symbolizer.labelAnchorPointY != null ||\n - symbolizer.labelAlign != null) {\n - this.writeNode("AnchorPoint", symbolizer, node);\n - }\n - if (symbolizer.labelXOffset != null ||\n - symbolizer.labelYOffset != null) {\n - this.writeNode("Displacement", symbolizer, node);\n - }\n - if (symbolizer.labelRotation != null) {\n - this.writeNode("Rotation", symbolizer.labelRotation, node);\n - }\n - return node;\n - },\n - "AnchorPoint": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:AnchorPoint");\n - var x = symbolizer.labelAnchorPointX,\n - y = symbolizer.labelAnchorPointY;\n - if (x != null) {\n - this.writeNode("AnchorPointX", x, node);\n - }\n - if (y != null) {\n - this.writeNode("AnchorPointY", y, node);\n - }\n - if (x == null && y == null) {\n - var xAlign = symbolizer.labelAlign.substr(0, 1),\n - yAlign = symbolizer.labelAlign.substr(1, 1);\n - if (xAlign === "l") {\n - x = 0;\n - } else if (xAlign === "c") {\n - x = 0.5;\n - } else if (xAlign === "r") {\n - x = 1;\n - }\n - if (yAlign === "b") {\n - y = 0;\n - } else if (yAlign === "m") {\n - y = 0.5;\n - } else if (yAlign === "t") {\n - y = 1;\n - }\n - this.writeNode("AnchorPointX", x, node);\n - this.writeNode("AnchorPointY", y, node);\n - }\n - return node;\n - },\n - "AnchorPointX": function(value) {\n - return this.createElementNSPlus("sld:AnchorPointX", {\n - value: value\n - }); \n - },\n - "AnchorPointY": function(value) {\n - return this.createElementNSPlus("sld:AnchorPointY", {\n - value: value\n - });\n - },\n - "Displacement": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:Displacement");\n - if (symbolizer.labelXOffset != null) {\n - this.writeNode("DisplacementX", symbolizer.labelXOffset, node);\n - }\n - if (symbolizer.labelYOffset != null) {\n - this.writeNode("DisplacementY", symbolizer.labelYOffset, node);\n - }\n - return node;\n - },\n - "DisplacementX": function(value) {\n - return this.createElementNSPlus("sld:DisplacementX", {\n - value: value\n - });\n - },\n - "DisplacementY": function(value) {\n - return this.createElementNSPlus("sld:DisplacementY", {\n - value: value\n - });\n - },\n - "Font": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:Font");\n - // add in CssParameters\n - if(symbolizer.fontFamily) {\n - this.writeNode(\n - "CssParameter",\n - {symbolizer: symbolizer, key: "fontFamily"},\n - node\n - );\n - }\n - if(symbolizer.fontSize) {\n - this.writeNode(\n - "CssParameter",\n - {symbolizer: symbolizer, key: "fontSize"},\n - node\n - );\n - }\n - if(symbolizer.fontWeight) {\n - this.writeNode(\n - "CssParameter",\n - {symbolizer: symbolizer, key: "fontWeight"},\n - node\n - );\n - }\n - if(symbolizer.fontStyle) {\n - this.writeNode(\n - "CssParameter",\n - {symbolizer: symbolizer, key: "fontStyle"},\n - node\n - );\n - }\n - return node;\n - },\n - "Label": function(label) {\n - return this.writers.sld._OGCExpression.call(\n - this, "sld:Label", label\n - );\n - },\n - "Halo": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:Halo");\n - if(symbolizer.haloRadius) {\n - this.writeNode("Radius", symbolizer.haloRadius, node);\n - }\n - if(symbolizer.haloColor || symbolizer.haloOpacity) {\n - this.writeNode("Fill", {\n - fillColor: symbolizer.haloColor,\n - fillOpacity: symbolizer.haloOpacity\n - }, node);\n - }\n - return node;\n - },\n - "Radius": function(value) {\n - return this.createElementNSPlus("sld:Radius", {\n - value: value\n - });\n - },\n - "RasterSymbolizer": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:RasterSymbolizer");\n - if (symbolizer.geometry) {\n - this.writeNode("Geometry", symbolizer.geometry, node);\n - }\n - if (symbolizer.opacity) {\n - this.writeNode("Opacity", symbolizer.opacity, node);\n - }\n - if (symbolizer.colorMap) {\n - this.writeNode("ColorMap", symbolizer.colorMap, node);\n - }\n - return node;\n - },\n - "Geometry": function(geometry) {\n - var node = this.createElementNSPlus("sld:Geometry");\n - if (geometry.property) {\n - this.writeNode("ogc:PropertyName", geometry, node);\n - }\n - return node;\n - },\n - "ColorMap": function(colorMap) {\n - var node = this.createElementNSPlus("sld:ColorMap");\n - for (var i=0, len=colorMap.length; i<len; ++i) {\n - this.writeNode("ColorMapEntry", colorMap[i], node);\n - }\n - return node;\n - },\n - "ColorMapEntry": function(colorMapEntry) {\n - var node = this.createElementNSPlus("sld:ColorMapEntry");\n - var a = colorMapEntry;\n - node.setAttribute("color", a.color);\n - a.opacity !== undefined && node.setAttribute("opacity",\n - parseFloat(a.opacity));\n - a.quantity !== undefined && node.setAttribute("quantity",\n - parseFloat(a.quantity));\n - a.label !== undefined && node.setAttribute("label", a.label);\n - return node;\n - },\n - "PolygonSymbolizer": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:PolygonSymbolizer");\n - if(symbolizer.fill !== false) {\n - this.writeNode("Fill", symbolizer, node);\n - }\n - if(symbolizer.stroke !== false) {\n - this.writeNode("Stroke", symbolizer, node);\n - }\n - return node;\n - },\n - "Fill": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:Fill");\n - \n - // GraphicFill here\n - \n - // add in CssParameters\n - if(symbolizer.fillColor) {\n - this.writeNode(\n - "CssParameter",\n - {symbolizer: symbolizer, key: "fillColor"},\n - node\n - );\n - }\n - if(symbolizer.fillOpacity != null) {\n - this.writeNode(\n - "CssParameter",\n - {symbolizer: symbolizer, key: "fillOpacity"},\n - node\n - );\n - }\n - return node;\n - },\n - "PointSymbolizer": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:PointSymbolizer");\n - this.writeNode("Graphic", symbolizer, node);\n - return node;\n - },\n - "Graphic": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:Graphic");\n - if(symbolizer.externalGraphic != undefined) {\n - this.writeNode("ExternalGraphic", symbolizer, node);\n - } else {\n - this.writeNode("Mark", symbolizer, node);\n - }\n - \n - if(symbolizer.graphicOpacity != undefined) {\n - this.writeNode("Opacity", symbolizer.graphicOpacity, node);\n - }\n - if(symbolizer.pointRadius != undefined) {\n - this.writeNode("Size", symbolizer.pointRadius * 2, node);\n - } else if (symbolizer.graphicWidth != undefined) {\n - this.writeNode("Size", symbolizer.graphicWidth, node);\n - }\n - if(symbolizer.rotation != undefined) {\n - this.writeNode("Rotation", symbolizer.rotation, node);\n - }\n - return node;\n - },\n - "ExternalGraphic": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:ExternalGraphic");\n - this.writeNode(\n - "OnlineResource", symbolizer.externalGraphic, node\n - );\n - var format = symbolizer.graphicFormat ||\n - this.getGraphicFormat(symbolizer.externalGraphic);\n - this.writeNode("Format", format, node);\n - return node;\n - },\n - "Mark": function(symbolizer) {\n - var node = this.createElementNSPlus("sld:Mark");\n - if(symbolizer.graphicName) {\n - this.writeNode("WellKnownName", symbolizer.graphicName, node);\n - }\n - if (symbolizer.fill !== false) {\n - this.writeNode("Fill", symbolizer, node);\n - }\n - if (symbolizer.stroke !== false) {\n - this.writeNode("Stroke", symbolizer, node);\n - }\n - return node;\n - },\n - "WellKnownName": function(name) {\n - return this.createElementNSPlus("sld:WellKnownName", {\n - value: name\n - });\n - },\n - "Opacity": function(value) {\n - return this.createElementNSPlus("sld:Opacity", {\n - value: value\n - });\n - },\n - "Size": function(value) {\n - return this.writers.sld._OGCExpression.call(\n - this, "sld:Size", value\n - );\n - },\n - "Rotation": function(value) {\n - return this.createElementNSPlus("sld:Rotation", {\n - value: value\n - });\n - },\n - "OnlineResource": function(href) {\n - return this.createElementNSPlus("sld:OnlineResource", {\n - attributes: {\n - "xlink:type": "simple",\n - "xlink:href": href\n - }\n - });\n - },\n - "Format": function(format) {\n - return this.createElementNSPlus("sld:Format", {\n - value: format\n - });\n - }\n - }\n - }, OpenLayers.Format.Filter.v1_0_0.prototype.writers),\n - \n - CLASS_NAME: "OpenLayers.Format.SLD.v1" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>52979</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD/v1_0_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD/v1_0_0.js.xml deleted file mode 100644 index 691a4ab3493042ef12b6840e65046e0224160dee..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD/v1_0_0.js.xml +++ /dev/null @@ -1,90 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.96</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_0_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/SLD/v1.js\n - * @requires OpenLayers/Format/Filter/v1_0_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.SLD.v1_0_0\n - * Write SLD version 1.0.0.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.SLD.v1>\n - */\n -OpenLayers.Format.SLD.v1_0_0 = OpenLayers.Class(\n - OpenLayers.Format.SLD.v1, {\n - \n - /**\n - * Constant: VERSION\n - * {String} 1.0.0\n - */\n - VERSION: "1.0.0",\n - \n - /**\n - * Property: schemaLocation\n - * {String} http://www.opengis.net/sld\n - * http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd\n - */\n - schemaLocation: "http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd",\n -\n - /**\n - * Constructor: OpenLayers.Format.SLD.v1_0_0\n - * Instances of this class are not created directly. Use the\n - * <OpenLayers.Format.SLD> constructor instead.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - CLASS_NAME: "OpenLayers.Format.SLD.v1_0_0" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1305</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD/v1_0_0_GeoServer.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD/v1_0_0_GeoServer.js.xml deleted file mode 100644 index a2f682e767ce0d43854cc12aa6e4e02826a06ff1..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SLD/v1_0_0_GeoServer.js.xml +++ /dev/null @@ -1,186 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.96</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_0_0_GeoServer.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/SLD/v1_0_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.SLD/v1_0_0_GeoServer\n - * Read and write SLD version 1.0.0 with GeoServer-specific enhanced options.\n - * See http://svn.osgeo.org/geotools/trunk/modules/extension/xsd/xsd-sld/src/main/resources/org/geotools/sld/bindings/StyledLayerDescriptor.xsd\n - * for more information.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.SLD.v1_0_0>\n - */\n -OpenLayers.Format.SLD.v1_0_0_GeoServer = OpenLayers.Class(\n - OpenLayers.Format.SLD.v1_0_0, {\n -\n - /**\n - * Property: version\n - * {String} The specific parser version.\n - */\n - version: "1.0.0",\n -\n - /**\n - * Property: profile\n - * {String} The specific profile\n - */\n - profile: "GeoServer",\n -\n - /**\n - * Constructor: OpenLayers.Format.SLD.v1_0_0_GeoServer\n - * Create a new parser for GeoServer-enhanced SLD version 1.0.0.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: OpenLayers.Util.applyDefaults({\n - "sld": OpenLayers.Util.applyDefaults({\n - "Priority": function(node, obj) {\n - var value = this.readers.ogc._expression.call(this, node);\n - if (value) {\n - obj.priority = value;\n - }\n - },\n - "VendorOption": function(node, obj) {\n - if (!obj.vendorOptions) {\n - obj.vendorOptions = {};\n - }\n - obj.vendorOptions[node.getAttribute("name")] = this.getChildValue(node);\n - }\n - }, OpenLayers.Format.SLD.v1_0_0.prototype.readers["sld"])\n - }, OpenLayers.Format.SLD.v1_0_0.prototype.readers),\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: OpenLayers.Util.applyDefaults({\n - "sld": OpenLayers.Util.applyDefaults({\n - "Priority": function(priority) {\n - return this.writers.sld._OGCExpression.call(\n - this, "sld:Priority", priority\n - );\n - },\n - "VendorOption": function(option) {\n - return this.createElementNSPlus("sld:VendorOption", {\n - attributes: {name: option.name},\n - value: option.value\n - });\n - },\n - "TextSymbolizer": function(symbolizer) {\n - var writers = OpenLayers.Format.SLD.v1_0_0.prototype.writers;\n - var node = writers["sld"]["TextSymbolizer"].apply(this, arguments);\n - if (symbolizer.graphic !== false && (symbolizer.externalGraphic || symbolizer.graphicName)) {\n - this.writeNode("Graphic", symbolizer, node);\n - }\n - if ("priority" in symbolizer) {\n - this.writeNode("Priority", symbolizer.priority, node);\n - }\n - return this.addVendorOptions(node, symbolizer);\n - },\n - "PointSymbolizer": function(symbolizer) {\n - var writers = OpenLayers.Format.SLD.v1_0_0.prototype.writers;\n - var node = writers["sld"]["PointSymbolizer"].apply(this, arguments);\n - return this.addVendorOptions(node, symbolizer);\n - },\n - "LineSymbolizer": function(symbolizer) {\n - var writers = OpenLayers.Format.SLD.v1_0_0.prototype.writers;\n - var node = writers["sld"]["LineSymbolizer"].apply(this, arguments);\n - return this.addVendorOptions(node, symbolizer);\n - },\n - "PolygonSymbolizer": function(symbolizer) {\n - var writers = OpenLayers.Format.SLD.v1_0_0.prototype.writers;\n - var node = writers["sld"]["PolygonSymbolizer"].apply(this, arguments);\n - return this.addVendorOptions(node, symbolizer);\n - }\n - }, OpenLayers.Format.SLD.v1_0_0.prototype.writers["sld"])\n - }, OpenLayers.Format.SLD.v1_0_0.prototype.writers),\n -\n - /**\n - * Method: addVendorOptions\n - * Add in the VendorOption tags and return the node again.\n - *\n - * Parameters:\n - * node - {DOMElement} A DOM node.\n - * symbolizer - {Object}\n - *\n - * Returns:\n - * {DOMElement} A DOM node.\n - */\n - addVendorOptions: function(node, symbolizer) {\n - var options = symbolizer.vendorOptions;\n - if (options) {\n - for (var key in symbolizer.vendorOptions) {\n - this.writeNode("VendorOption", {\n - name: key, \n - value: symbolizer.vendorOptions[key]\n - }, node);\n - }\n - }\n - return node;\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.SLD.v1_0_0_GeoServer"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5438</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSCapabilities.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSCapabilities.js.xml deleted file mode 100644 index 03b344279638af576e0af4c543cad4117f6f17ac..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSCapabilities.js.xml +++ /dev/null @@ -1,92 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>SOSCapabilities.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML/VersionedOGC.js\n - */\n - \n -/**\n - * Class: OpenLayers.Format.SOSCapabilities\n - * Read SOS Capabilities.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML.VersionedOGC>\n - */\n -OpenLayers.Format.SOSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {\n - \n - /**\n - * APIProperty: defaultVersion\n - * {String} Version number to assume if none found. Default is "1.0.0".\n - */\n - defaultVersion: "1.0.0",\n - \n - /**\n - * Constructor: OpenLayers.Format.SOSCapabilities\n - * Create a new parser for SOS Capabilities.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Read capabilities data from a string, and return information about\n - * the service (offering and observedProperty mostly).\n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Object} Info about the SOS\n - */\n - \n - CLASS_NAME: "OpenLayers.Format.SOSCapabilities" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1345</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSCapabilities.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSCapabilities.xml deleted file mode 100644 index bdbbd89e3ffbc982f5d1ea3bb663cc70f695838b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSCapabilities.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>SOSCapabilities</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/SOSCapabilities</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSCapabilities/v1_0_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSCapabilities/v1_0_0.js.xml deleted file mode 100644 index c13e9b562821280109ab60bdc86c77407bd56a6a..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSCapabilities/v1_0_0.js.xml +++ /dev/null @@ -1,202 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.98</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_0_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/SOSCapabilities.js\n - * @requires OpenLayers/Format/OWSCommon/v1_1_0.js\n - * @requires OpenLayers/Format/GML/v3.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.SOSCapabilities.v1_0_0\n - * Read SOS Capabilities version 1.0.0.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.SOSCapabilities>\n - */\n -OpenLayers.Format.SOSCapabilities.v1_0_0 = OpenLayers.Class(\n - OpenLayers.Format.SOSCapabilities, {\n -\n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - ows: "http://www.opengis.net/ows/1.1",\n - sos: "http://www.opengis.net/sos/1.0",\n - gml: "http://www.opengis.net/gml",\n - xlink: "http://www.w3.org/1999/xlink"\n - },\n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n - \n - /**\n - * Constructor: OpenLayers.Format.SOSCapabilities.v1_0_0\n - * Create a new parser for SOS capabilities version 1.0.0. \n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - this.options = options;\n - },\n -\n - /**\n - * APIMethod: read\n - * Read capabilities data from a string, and return info about the SOS.\n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Object} Information about the SOS service.\n - */\n - read: function(data) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n - var capabilities = {};\n - this.readNode(data, capabilities);\n - return capabilities;\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "gml": OpenLayers.Util.applyDefaults({\n - "name": function(node, obj) {\n - obj.name = this.getChildValue(node);\n - },\n - "TimePeriod": function(node, obj) {\n - obj.timePeriod = {};\n - this.readChildNodes(node, obj.timePeriod);\n - },\n - "beginPosition": function(node, timePeriod) {\n - timePeriod.beginPosition = this.getChildValue(node);\n - },\n - "endPosition": function(node, timePeriod) {\n - timePeriod.endPosition = this.getChildValue(node);\n - }\n - }, OpenLayers.Format.GML.v3.prototype.readers["gml"]),\n - "sos": {\n - "Capabilities": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "Contents": function(node, obj) {\n - obj.contents = {};\n - this.readChildNodes(node, obj.contents);\n - },\n - "ObservationOfferingList": function(node, contents) {\n - contents.offeringList = {};\n - this.readChildNodes(node, contents.offeringList);\n - },\n - "ObservationOffering": function(node, offeringList) {\n - var id = this.getAttributeNS(node, this.namespaces.gml, "id");\n - offeringList[id] = {\n - procedures: [],\n - observedProperties: [],\n - featureOfInterestIds: [],\n - responseFormats: [],\n - resultModels: [],\n - responseModes: []\n - };\n - this.readChildNodes(node, offeringList[id]);\n - },\n - "time": function(node, offering) {\n - offering.time = {};\n - this.readChildNodes(node, offering.time);\n - },\n - "procedure": function(node, offering) {\n - offering.procedures.push(this.getAttributeNS(node, \n - this.namespaces.xlink, "href"));\n - },\n - "observedProperty": function(node, offering) {\n - offering.observedProperties.push(this.getAttributeNS(node, \n - this.namespaces.xlink, "href"));\n - },\n - "featureOfInterest": function(node, offering) {\n - offering.featureOfInterestIds.push(this.getAttributeNS(node, \n - this.namespaces.xlink, "href"));\n - },\n - "responseFormat": function(node, offering) {\n - offering.responseFormats.push(this.getChildValue(node));\n - },\n - "resultModel": function(node, offering) {\n - offering.resultModels.push(this.getChildValue(node));\n - },\n - "responseMode": function(node, offering) {\n - offering.responseModes.push(this.getChildValue(node));\n - }\n - },\n - "ows": OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers["ows"]\n - }, \n - \n - CLASS_NAME: "OpenLayers.Format.SOSCapabilities.v1_0_0" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5680</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSGetFeatureOfInterest.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSGetFeatureOfInterest.js.xml deleted file mode 100644 index 2d31e88117222bfeef0e963fb972e0d6a5e2f4cf..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSGetFeatureOfInterest.js.xml +++ /dev/null @@ -1,234 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.9</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>SOSGetFeatureOfInterest.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n - \n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Format/GML/v3.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.SOSGetFeatureOfInterest\n - * Read and write SOS GetFeatureOfInterest. This is used to get to\n - * the location of the features (stations). The stations can have 1 or more\n - * sensors.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.SOSGetFeatureOfInterest = OpenLayers.Class(\n - OpenLayers.Format.XML, {\n - \n - /**\n - * Constant: VERSION\n - * {String} 1.0.0\n - */\n - VERSION: "1.0.0",\n -\n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - sos: "http://www.opengis.net/sos/1.0",\n - gml: "http://www.opengis.net/gml",\n - sa: "http://www.opengis.net/sampling/1.0",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance"\n - },\n -\n - /**\n - * Property: schemaLocation\n - * {String} Schema location\n - */\n - schemaLocation: "http://www.opengis.net/sos/1.0 http://schemas.opengis.net/sos/1.0.0/sosAll.xsd",\n -\n - /**\n - * Property: defaultPrefix\n - */\n - defaultPrefix: "sos",\n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n - \n - /**\n - * Constructor: OpenLayers.Format.SOSGetFeatureOfInterest\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Parse a GetFeatureOfInterest response and return an array of features\n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Feature.Vector>)} An array of features. \n - */\n - read: function(data) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n -\n - var info = {features: []};\n - this.readNode(data, info);\n - \n - var features = [];\n - for (var i=0, len=info.features.length; i<len; i++) {\n - var container = info.features[i];\n - // reproject features if needed\n - if(this.internalProjection && this.externalProjection &&\n - container.components[0]) {\n - container.components[0].transform(\n - this.externalProjection, this.internalProjection\n - );\n - } \n - var feature = new OpenLayers.Feature.Vector(\n - container.components[0], container.attributes);\n - features.push(feature);\n - }\n - return features;\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "sa": {\n - "SamplingPoint": function(node, obj) {\n - // sampling point can also be without a featureMember if \n - // there is only 1\n - if (!obj.attributes) {\n - var feature = {attributes: {}};\n - obj.features.push(feature);\n - obj = feature;\n - }\n - obj.attributes.id = this.getAttributeNS(node, \n - this.namespaces.gml, "id");\n - this.readChildNodes(node, obj);\n - },\n - "position": function (node, obj) {\n - this.readChildNodes(node, obj);\n - }\n - },\n - "gml": OpenLayers.Util.applyDefaults({\n - "FeatureCollection": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "featureMember": function(node, obj) {\n - var feature = {attributes: {}};\n - obj.features.push(feature);\n - this.readChildNodes(node, feature);\n - },\n - "name": function(node, obj) {\n - obj.attributes.name = this.getChildValue(node);\n - },\n - "pos": function(node, obj) {\n - // we need to parse the srsName to get to the \n - // externalProjection, that\'s why we cannot use\n - // GML v3 for this\n - if (!this.externalProjection) {\n - this.externalProjection = new OpenLayers.Projection(\n - node.getAttribute("srsName"));\n - }\n - OpenLayers.Format.GML.v3.prototype.readers.gml.pos.apply(\n - this, [node, obj]);\n - }\n - }, OpenLayers.Format.GML.v3.prototype.readers.gml)\n - },\n - \n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "sos": {\n - "GetFeatureOfInterest": function(options) {\n - var node = this.createElementNSPlus("GetFeatureOfInterest", {\n - attributes: {\n - version: this.VERSION,\n - service: \'SOS\',\n - "xsi:schemaLocation": this.schemaLocation\n - } \n - }); \n - for (var i=0, len=options.fois.length; i<len; i++) {\n - this.writeNode("FeatureOfInterestId", {foi: options.fois[i]}, node);\n - }\n - return node; \n - },\n - "FeatureOfInterestId": function(options) {\n - var node = this.createElementNSPlus("FeatureOfInterestId", {value: options.foi});\n - return node;\n - }\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.SOSGetFeatureOfInterest" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6397</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSGetObservation.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSGetObservation.js.xml deleted file mode 100644 index 39e63ca73e48b5e0627e0b16c926e40d8e7ff229..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/SOSGetObservation.js.xml +++ /dev/null @@ -1,346 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>SOSGetObservation.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Format/SOSGetFeatureOfInterest.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.SOSGetObservation\n - * Read and write SOS GetObersation (to get the actual values from a sensor) \n - * version 1.0.0\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.SOSGetObservation = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - ows: "http://www.opengis.net/ows",\n - gml: "http://www.opengis.net/gml",\n - sos: "http://www.opengis.net/sos/1.0",\n - ogc: "http://www.opengis.net/ogc",\n - om: "http://www.opengis.net/om/1.0",\n - sa: "http://www.opengis.net/sampling/1.0",\n - xlink: "http://www.w3.org/1999/xlink",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance"\n - },\n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n -\n - /**\n - * Constant: VERSION\n - * {String} 1.0.0\n - */\n - VERSION: "1.0.0",\n -\n - /**\n - * Property: schemaLocation\n - * {String} Schema location\n - */\n - schemaLocation: "http://www.opengis.net/sos/1.0 http://schemas.opengis.net/sos/1.0.0/sosGetObservation.xsd",\n -\n - /**\n - * Property: defaultPrefix\n - */\n - defaultPrefix: "sos",\n -\n - /**\n - * Constructor: OpenLayers.Format.SOSGetObservation\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * Method: read\n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Object} An object containing the measurements\n - */\n - read: function(data) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n - var info = {measurements: [], observations: []};\n - this.readNode(data, info);\n - return info;\n - },\n -\n - /**\n - * Method: write\n - *\n - * Parameters:\n - * options - {Object} Optional object.\n - *\n - * Returns:\n - * {String} An SOS GetObservation request XML string.\n - */\n - write: function(options) {\n - var node = this.writeNode("sos:GetObservation", options);\n - node.setAttribute("xmlns:om", this.namespaces.om);\n - node.setAttribute("xmlns:ogc", this.namespaces.ogc);\n - this.setAttributeNS(\n - node, this.namespaces.xsi,\n - "xsi:schemaLocation", this.schemaLocation\n - );\n - return OpenLayers.Format.XML.prototype.write.apply(this, [node]);\n - }, \n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "om": {\n - "ObservationCollection": function(node, obj) {\n - obj.id = this.getAttributeNS(node, this.namespaces.gml, "id");\n - this.readChildNodes(node, obj);\n - },\n - "member": function(node, observationCollection) {\n - this.readChildNodes(node, observationCollection);\n - },\n - "Measurement": function(node, observationCollection) {\n - var measurement = {};\n - observationCollection.measurements.push(measurement);\n - this.readChildNodes(node, measurement);\n - },\n - "Observation": function(node, observationCollection) {\n - var observation = {};\n - observationCollection.observations.push(observation);\n - this.readChildNodes(node, observation);\n - },\n - "samplingTime": function(node, measurement) {\n - var samplingTime = {};\n - measurement.samplingTime = samplingTime;\n - this.readChildNodes(node, samplingTime);\n - },\n - "observedProperty": function(node, measurement) {\n - measurement.observedProperty = \n - this.getAttributeNS(node, this.namespaces.xlink, "href");\n - this.readChildNodes(node, measurement);\n - },\n - "procedure": function(node, measurement) {\n - measurement.procedure = \n - this.getAttributeNS(node, this.namespaces.xlink, "href");\n - this.readChildNodes(node, measurement);\n - },\n - "featureOfInterest": function(node, observation) {\n - var foi = {features: []};\n - observation.fois = [];\n - observation.fois.push(foi);\n - this.readChildNodes(node, foi);\n - // postprocessing to get actual features\n - var features = [];\n - for (var i=0, len=foi.features.length; i<len; i++) {\n - var feature = foi.features[i];\n - features.push(new OpenLayers.Feature.Vector(\n - feature.components[0], feature.attributes));\n - }\n - foi.features = features;\n - },\n - "result": function(node, measurement) {\n - var result = {};\n - measurement.result = result;\n - if (this.getChildValue(node) !== \'\') {\n - result.value = this.getChildValue(node);\n - result.uom = node.getAttribute("uom");\n - } else {\n - this.readChildNodes(node, result);\n - }\n - }\n - },\n - "sa": OpenLayers.Format.SOSGetFeatureOfInterest.prototype.readers.sa,\n - "gml": OpenLayers.Util.applyDefaults({\n - "TimeInstant": function(node, samplingTime) {\n - var timeInstant = {};\n - samplingTime.timeInstant = timeInstant;\n - this.readChildNodes(node, timeInstant);\n - },\n - "timePosition": function(node, timeInstant) {\n - timeInstant.timePosition = this.getChildValue(node);\n - }\n - }, OpenLayers.Format.SOSGetFeatureOfInterest.prototype.readers.gml)\n - },\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "sos": {\n - "GetObservation": function(options) {\n - var node = this.createElementNSPlus("GetObservation", {\n - attributes: {\n - version: this.VERSION,\n - service: \'SOS\'\n - } \n - }); \n - this.writeNode("offering", options, node);\n - if (options.eventTime) {\n - this.writeNode("eventTime", options, node);\n - }\n - for (var procedure in options.procedures) {\n - this.writeNode("procedure", options.procedures[procedure], node);\n - }\n - for (var observedProperty in options.observedProperties) {\n - this.writeNode("observedProperty", options.observedProperties[observedProperty], node);\n - }\n - if (options.foi) {\n - this.writeNode("featureOfInterest", options.foi, node);\n - }\n - this.writeNode("responseFormat", options, node);\n - if (options.resultModel) {\n - this.writeNode("resultModel", options, node);\n - }\n - if (options.responseMode) {\n - this.writeNode("responseMode", options, node);\n - }\n - return node; \n - },\n - "featureOfInterest": function(foi) {\n - var node = this.createElementNSPlus("featureOfInterest");\n - this.writeNode("ObjectID", foi.objectId, node);\n - return node;\n - },\n - "ObjectID": function(options) {\n - return this.createElementNSPlus("ObjectID",\n - {value: options});\n - },\n - "responseFormat": function(options) {\n - return this.createElementNSPlus("responseFormat", \n - {value: options.responseFormat});\n - },\n - "procedure": function(procedure) {\n - return this.createElementNSPlus("procedure", \n - {value: procedure});\n - },\n - "offering": function(options) {\n - return this.createElementNSPlus("offering", {value: \n - options.offering});\n - },\n - "observedProperty": function(observedProperty) {\n - return this.createElementNSPlus("observedProperty", \n - {value: observedProperty});\n - },\n - "eventTime": function(options) {\n - var node = this.createElementNSPlus("eventTime");\n - if (options.eventTime === \'latest\') {\n - this.writeNode("ogc:TM_Equals", options, node);\n - }\n - return node;\n - },\n - "resultModel": function(options) {\n - return this.createElementNSPlus("resultModel", {value: \n - options.resultModel});\n - },\n - "responseMode": function(options) {\n - return this.createElementNSPlus("responseMode", {value: \n - options.responseMode});\n - }\n - },\n - "ogc": {\n - "TM_Equals": function(options) {\n - var node = this.createElementNSPlus("ogc:TM_Equals");\n - this.writeNode("ogc:PropertyName", {property: \n - "urn:ogc:data:time:iso8601"}, node);\n - if (options.eventTime === \'latest\') {\n - this.writeNode("gml:TimeInstant", {value: \'latest\'}, node);\n - }\n - return node;\n - },\n - "PropertyName": function(options) {\n - return this.createElementNSPlus("ogc:PropertyName", \n - {value: options.property});\n - }\n - },\n - "gml": {\n - "TimeInstant": function(options) {\n - var node = this.createElementNSPlus("gml:TimeInstant");\n - this.writeNode("gml:timePosition", options, node);\n - return node;\n - },\n - "timePosition": function(options) {\n - var node = this.createElementNSPlus("gml:timePosition", \n - {value: options.value});\n - return node;\n - }\n - }\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.SOSGetObservation" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>11307</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Text.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Text.js.xml deleted file mode 100644 index 93f483a011f8b2fff5be2ccfe735b193a0d4c483..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/Text.js.xml +++ /dev/null @@ -1,195 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Text.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Feature/Vector.js\n - * @requires OpenLayers/Geometry/Point.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.Text\n - * Read Text format. Create a new instance with the <OpenLayers.Format.Text>\n - * constructor. This reads text which is formatted like CSV text, using\n - * tabs as the seperator by default. It provides parsing of data originally\n - * used in the MapViewerService, described on the wiki. This Format is used\n - * by the <OpenLayers.Layer.Text> class.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format>\n - */\n -OpenLayers.Format.Text = OpenLayers.Class(OpenLayers.Format, {\n - \n - /**\n - * APIProperty: defaultStyle\n - * defaultStyle allows one to control the default styling of the features.\n - * It should be a symbolizer hash. By default, this is set to match the\n - * Layer.Text behavior, which is to use the default OpenLayers Icon.\n - */\n - defaultStyle: null,\n - \n - /**\n - * APIProperty: extractStyles\n - * set to true to extract styles from the TSV files, using information\n - * from the image or icon, iconSize and iconOffset fields. This will result\n - * in features with a symbolizer (style) property set, using the\n - * default symbolizer specified in <defaultStyle>. Set to false if you\n - * wish to use a styleMap or OpenLayers.Style options to style your\n - * layer instead.\n - */\n - extractStyles: true,\n -\n - /**\n - * Constructor: OpenLayers.Format.Text\n - * Create a new parser for TSV Text.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - options = options || {};\n -\n - if(options.extractStyles !== false) {\n - options.defaultStyle = {\n - \'externalGraphic\': OpenLayers.Util.getImageLocation("marker.png"),\n - \'graphicWidth\': 21,\n - \'graphicHeight\': 25,\n - \'graphicXOffset\': -10.5,\n - \'graphicYOffset\': -12.5\n - };\n - }\n - \n - OpenLayers.Format.prototype.initialize.apply(this, [options]);\n - }, \n -\n - /**\n - * APIMethod: read\n - * Return a list of features from a Tab Seperated Values text string.\n - * \n - * Parameters:\n - * text - {String} \n - *\n - * Returns:\n - * Array({<OpenLayers.Feature.Vector>})\n - */\n - read: function(text) {\n - var lines = text.split(\'\\n\');\n - var columns;\n - var features = [];\n - // length - 1 to allow for trailing new line\n - for (var lcv = 0; lcv < (lines.length - 1); lcv++) {\n - var currLine = lines[lcv].replace(/^\\s*/,\'\').replace(/\\s*$/,\'\');\n - \n - if (currLine.charAt(0) != \'#\') { /* not a comment */\n - \n - if (!columns) {\n - //First line is columns\n - columns = currLine.split(\'\\t\');\n - } else {\n - var vals = currLine.split(\'\\t\');\n - var geometry = new OpenLayers.Geometry.Point(0,0);\n - var attributes = {};\n - var style = this.defaultStyle ? \n - OpenLayers.Util.applyDefaults({}, this.defaultStyle) :\n - null; \n - var icon, iconSize, iconOffset, overflow;\n - var set = false;\n - for (var valIndex = 0; valIndex < vals.length; valIndex++) {\n - if (vals[valIndex]) {\n - if (columns[valIndex] == \'point\') {\n - var coords = vals[valIndex].split(\',\');\n - geometry.y = parseFloat(coords[0]);\n - geometry.x = parseFloat(coords[1]);\n - set = true;\n - } else if (columns[valIndex] == \'lat\') {\n - geometry.y = parseFloat(vals[valIndex]);\n - set = true;\n - } else if (columns[valIndex] == \'lon\') {\n - geometry.x = parseFloat(vals[valIndex]);\n - set = true;\n - } else if (columns[valIndex] == \'title\')\n - attributes[\'title\'] = vals[valIndex];\n - else if (columns[valIndex] == \'image\' ||\n - columns[valIndex] == \'icon\' && style) {\n - style[\'externalGraphic\'] = vals[valIndex];\n - } else if (columns[valIndex] == \'iconSize\' && style) {\n - var size = vals[valIndex].split(\',\');\n - style[\'graphicWidth\'] = parseFloat(size[0]);\n - style[\'graphicHeight\'] = parseFloat(size[1]);\n - } else if (columns[valIndex] == \'iconOffset\' && style) {\n - var offset = vals[valIndex].split(\',\');\n - style[\'graphicXOffset\'] = parseFloat(offset[0]);\n - style[\'graphicYOffset\'] = parseFloat(offset[1]);\n - } else if (columns[valIndex] == \'description\') {\n - attributes[\'description\'] = vals[valIndex];\n - } else if (columns[valIndex] == \'overflow\') {\n - attributes[\'overflow\'] = vals[valIndex];\n - } else {\n - // For StyleMap filtering, allow additional\n - // columns to be stored as attributes.\n - attributes[columns[valIndex]] = vals[valIndex];\n - } \n - }\n - }\n - if (set) {\n - if (this.internalProjection && this.externalProjection) {\n - geometry.transform(this.externalProjection, \n - this.internalProjection); \n - }\n - var feature = new OpenLayers.Feature.Vector(geometry, attributes, style);\n - features.push(feature);\n - }\n - }\n - }\n - }\n - return features;\n - }, \n -\n - CLASS_NAME: "OpenLayers.Format.Text" \n -}); \n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6597</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WCSGetCoverage.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WCSGetCoverage.js.xml deleted file mode 100644 index b36ee5b4d59c347d15d8dc03a1a6af3aa848826e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WCSGetCoverage.js.xml +++ /dev/null @@ -1,243 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.9</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WCSGetCoverage.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Format/OWSCommon/v1_1_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WCSGetCoverage version 1.1.0\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.WCSGetCoverage = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - ows: "http://www.opengis.net/ows/1.1",\n - wcs: "http://www.opengis.net/wcs/1.1",\n - xlink: "http://www.w3.org/1999/xlink",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance"\n - },\n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n -\n - /**\n - * Constant: VERSION\n - * {String} 1.1.2\n - */\n - VERSION: "1.1.2",\n -\n - /**\n - * Property: schemaLocation\n - * {String} Schema location\n - */\n - schemaLocation: "http://www.opengis.net/wcs/1.1 http://schemas.opengis.net/wcs/1.1/wcsGetCoverage.xsd",\n -\n - /**\n - * Constructor: OpenLayers.Format.WCSGetCoverage\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * Method: write\n - *\n - * Parameters:\n - * options - {Object} Optional object.\n - *\n - * Returns:\n - * {String} A WCS GetCoverage request XML string.\n - */\n - write: function(options) {\n - var node = this.writeNode("wcs:GetCoverage", options);\n - this.setAttributeNS(\n - node, this.namespaces.xsi,\n - "xsi:schemaLocation", this.schemaLocation\n - );\n - return OpenLayers.Format.XML.prototype.write.apply(this, [node]);\n - }, \n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "wcs": {\n - "GetCoverage": function(options) {\n - var node = this.createElementNSPlus("wcs:GetCoverage", {\n - attributes: {\n - version: options.version || this.VERSION,\n - service: \'WCS\'\n - } \n - }); \n - this.writeNode("ows:Identifier", options.identifier, node);\n - this.writeNode("wcs:DomainSubset", options.domainSubset, node);\n - this.writeNode("wcs:Output", options.output, node);\n - return node; \n - },\n - "DomainSubset": function(domainSubset) {\n - var node = this.createElementNSPlus("wcs:DomainSubset", {});\n - this.writeNode("ows:BoundingBox", domainSubset.boundingBox, node);\n - if (domainSubset.temporalSubset) {\n - this.writeNode("wcs:TemporalSubset", domainSubset.temporalSubset, node);\n - }\n - return node;\n - },\n - "TemporalSubset": function(temporalSubset) {\n - var node = this.createElementNSPlus("wcs:TemporalSubset", {});\n - for (var i=0, len=temporalSubset.timePeriods.length; i<len; ++i) {\n - this.writeNode("wcs:TimePeriod", temporalSubset.timePeriods[i], node);\n - }\n - return node;\n - },\n - "TimePeriod": function(timePeriod) {\n - var node = this.createElementNSPlus("wcs:TimePeriod", {});\n - this.writeNode("wcs:BeginPosition", timePeriod.begin, node);\n - this.writeNode("wcs:EndPosition", timePeriod.end, node);\n - if (timePeriod.resolution) {\n - this.writeNode("wcs:TimeResolution", timePeriod.resolution, node);\n - }\n - return node;\n - },\n - "BeginPosition": function(begin) {\n - var node = this.createElementNSPlus("wcs:BeginPosition", {\n - value: begin\n - });\n - return node;\n - },\n - "EndPosition": function(end) {\n - var node = this.createElementNSPlus("wcs:EndPosition", {\n - value: end\n - });\n - return node;\n - },\n - "TimeResolution": function(resolution) {\n - var node = this.createElementNSPlus("wcs:TimeResolution", {\n - value: resolution\n - });\n - return node;\n - },\n - "Output": function(output) {\n - var node = this.createElementNSPlus("wcs:Output", {\n - attributes: {\n - format: output.format,\n - store: output.store\n - }\n - });\n - if (output.gridCRS) {\n - this.writeNode("wcs:GridCRS", output.gridCRS, node);\n - }\n - return node;\n - },\n - "GridCRS": function(gridCRS) {\n - var node = this.createElementNSPlus("wcs:GridCRS", {});\n - this.writeNode("wcs:GridBaseCRS", gridCRS.baseCRS, node);\n - if (gridCRS.type) {\n - this.writeNode("wcs:GridType", gridCRS.type, node);\n - }\n - if (gridCRS.origin) {\n - this.writeNode("wcs:GridOrigin", gridCRS.origin, node);\n - }\n - this.writeNode("wcs:GridOffsets", gridCRS.offsets, node);\n - if (gridCRS.CS) {\n - this.writeNode("wcs:GridCS", gridCRS.CS, node);\n - }\n - return node;\n - },\n - "GridBaseCRS": function(baseCRS) {\n - return this.createElementNSPlus("wcs:GridBaseCRS", {\n - value: baseCRS\n - });\n - },\n - "GridOrigin": function(origin) {\n - return this.createElementNSPlus("wcs:GridOrigin", {\n - value: origin\n - });\n - },\n - "GridType": function(type) {\n - return this.createElementNSPlus("wcs:GridType", {\n - value: type\n - });\n - },\n - "GridOffsets": function(offsets) {\n - return this.createElementNSPlus("wcs:GridOffsets", {\n - value: offsets\n - });\n - },\n - "GridCS": function(CS) {\n - return this.createElementNSPlus("wcs:GridCS", {\n - value: CS\n - });\n - }\n - },\n - "ows": OpenLayers.Format.OWSCommon.v1_1_0.prototype.writers.ows\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.WCSGetCoverage" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7036</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFS.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFS.js.xml deleted file mode 100644 index 87556306cdbba8dc64eb7f4a94abb7661c505d1f..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFS.js.xml +++ /dev/null @@ -1,267 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WFS.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/GML.js\n - * @requires OpenLayers/Console.js\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WFS\n - * Read/Write WFS. \n - *\n - * Inherits from:\n - * - <OpenLayers.Format.GML>\n - */\n -OpenLayers.Format.WFS = OpenLayers.Class(OpenLayers.Format.GML, {\n - \n - /** \n - * Property: layer\n - * {<OpenLayers.Layer>}\n - */\n - layer: null,\n - \n - /**\n - * APIProperty: wfsns\n - * {String}\n - */\n - wfsns: "http://www.opengis.net/wfs",\n - \n - /**\n - * Property: ogcns\n - * {String}\n - */\n - ogcns: "http://www.opengis.net/ogc",\n - \n - /**\n - * Constructor: OpenLayers.Format.WFS\n - * Create a WFS-T formatter. This requires a layer: that layer should\n - * have two properties: geometry_column and typename. The parser\n - * for this format is subclassed entirely from GML: There is a writer \n - * only, which uses most of the code from the GML layer, and wraps\n - * it in transactional elements.\n - * \n - * Parameters: \n - * options - {Object} \n - * layer - {<OpenLayers.Layer>} \n - */\n - initialize: function(options, layer) {\n - OpenLayers.Format.GML.prototype.initialize.apply(this, [options]);\n - this.layer = layer;\n - if (this.layer.featureNS) {\n - this.featureNS = this.layer.featureNS;\n - } \n - if (this.layer.options.geometry_column) {\n - this.geometryName = this.layer.options.geometry_column;\n - }\n - if (this.layer.options.typename) {\n - this.featureName = this.layer.options.typename;\n - }\n - },\n - \n - /**\n - * Method: write \n - * Takes a feature list, and generates a WFS-T Transaction \n - *\n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)} \n - */\n - write: function(features) {\n - \n - var transaction = this.createElementNS(this.wfsns, \'wfs:Transaction\');\n - transaction.setAttribute("version","1.0.0");\n - transaction.setAttribute("service","WFS");\n - for (var i=0; i < features.length; i++) {\n - switch (features[i].state) {\n - case OpenLayers.State.INSERT:\n - transaction.appendChild(this.insert(features[i]));\n - break;\n - case OpenLayers.State.UPDATE:\n - transaction.appendChild(this.update(features[i]));\n - break;\n - case OpenLayers.State.DELETE:\n - transaction.appendChild(this.remove(features[i]));\n - break;\n - }\n - }\n - \n - return OpenLayers.Format.XML.prototype.write.apply(this,[transaction]);\n - },\n - \n - /**\n - * Method: createFeatureXML\n - *\n - * Parameters: \n - * feature - {<OpenLayers.Feature.Vector>}\n - */ \n - createFeatureXML: function(feature) {\n - var geometryNode = this.buildGeometryNode(feature.geometry);\n - var geomContainer = this.createElementNS(this.featureNS, "feature:" + this.geometryName);\n - geomContainer.appendChild(geometryNode);\n - var featureContainer = this.createElementNS(this.featureNS, "feature:" + this.featureName);\n - featureContainer.appendChild(geomContainer);\n - for(var attr in feature.attributes) {\n - var attrText = this.createTextNode(feature.attributes[attr]); \n - var nodename = attr;\n - if (attr.search(":") != -1) {\n - nodename = attr.split(":")[1];\n - } \n - var attrContainer = this.createElementNS(this.featureNS, "feature:" + nodename);\n - attrContainer.appendChild(attrText);\n - featureContainer.appendChild(attrContainer);\n - } \n - return featureContainer;\n - },\n - \n - /**\n - * Method: insert \n - * Takes a feature, and generates a WFS-T Transaction "Insert" \n - *\n - * Parameters: \n - * feature - {<OpenLayers.Feature.Vector>} \n - */\n - insert: function(feature) {\n - var insertNode = this.createElementNS(this.wfsns, \'wfs:Insert\');\n - insertNode.appendChild(this.createFeatureXML(feature));\n - return insertNode;\n - },\n - \n - /**\n - * Method: update\n - * Takes a feature, and generates a WFS-T Transaction "Update" \n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} \n - */\n - update: function(feature) {\n - if (!feature.fid) { OpenLayers.Console.userError(OpenLayers.i18n("noFID")); }\n - var updateNode = this.createElementNS(this.wfsns, \'wfs:Update\');\n - updateNode.setAttribute("typeName", this.featurePrefix + \':\' + this.featureName); \n - updateNode.setAttribute("xmlns:" + this.featurePrefix, this.featureNS); \n -\n - var propertyNode = this.createElementNS(this.wfsns, \'wfs:Property\');\n - var nameNode = this.createElementNS(this.wfsns, \'wfs:Name\');\n - \n - var txtNode = this.createTextNode(this.geometryName);\n - nameNode.appendChild(txtNode);\n - propertyNode.appendChild(nameNode);\n - \n - var valueNode = this.createElementNS(this.wfsns, \'wfs:Value\');\n - \n - var geometryNode = this.buildGeometryNode(feature.geometry);\n - \n - if(feature.layer){\n - geometryNode.setAttribute(\n - "srsName", feature.layer.projection.getCode()\n - );\n - }\n - \n - valueNode.appendChild(geometryNode);\n - \n - propertyNode.appendChild(valueNode);\n - updateNode.appendChild(propertyNode);\n - \n - // add in attributes\n - for(var propName in feature.attributes) {\n - propertyNode = this.createElementNS(this.wfsns, \'wfs:Property\');\n - nameNode = this.createElementNS(this.wfsns, \'wfs:Name\');\n - nameNode.appendChild(this.createTextNode(propName));\n - propertyNode.appendChild(nameNode);\n - valueNode = this.createElementNS(this.wfsns, \'wfs:Value\');\n - valueNode.appendChild(this.createTextNode(feature.attributes[propName]));\n - propertyNode.appendChild(valueNode);\n - updateNode.appendChild(propertyNode);\n - }\n - \n - \n - var filterNode = this.createElementNS(this.ogcns, \'ogc:Filter\');\n - var filterIdNode = this.createElementNS(this.ogcns, \'ogc:FeatureId\');\n - filterIdNode.setAttribute("fid", feature.fid);\n - filterNode.appendChild(filterIdNode);\n - updateNode.appendChild(filterNode);\n -\n - return updateNode;\n - },\n - \n - /**\n - * Method: remove \n - * Takes a feature, and generates a WFS-T Transaction "Delete" \n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} \n - */\n - remove: function(feature) {\n - if (!feature.fid) { \n - OpenLayers.Console.userError(OpenLayers.i18n("noFID")); \n - return false; \n - }\n - var deleteNode = this.createElementNS(this.wfsns, \'wfs:Delete\');\n - deleteNode.setAttribute("typeName", this.featurePrefix + \':\' + this.featureName); \n - deleteNode.setAttribute("xmlns:" + this.featurePrefix, this.featureNS); \n -\n - var filterNode = this.createElementNS(this.ogcns, \'ogc:Filter\');\n - var filterIdNode = this.createElementNS(this.ogcns, \'ogc:FeatureId\');\n - filterIdNode.setAttribute("fid", feature.fid);\n - filterNode.appendChild(filterIdNode);\n - deleteNode.appendChild(filterNode);\n -\n - return deleteNode;\n - },\n -\n - /**\n - * APIMethod: destroy\n - * Remove ciruclar ref to layer \n - */\n - destroy: function() {\n - this.layer = null;\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WFS" \n -}); \n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7716</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities.js.xml deleted file mode 100644 index 1a323cc9e5e67a5210216b29900e652b08b7e651..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities.js.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WFSCapabilities.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML/VersionedOGC.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WFSCapabilities\n - * Read WFS Capabilities.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML.VersionedOGC>\n - */\n -OpenLayers.Format.WFSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {\n - \n - /**\n - * APIProperty: defaultVersion\n - * {String} Version number to assume if none found. Default is "1.1.0".\n - */\n - defaultVersion: "1.1.0",\n - \n - /**\n - * APIProperty: errorProperty\n - * {String} Which property of the returned object to check for in order to\n - * determine whether or not parsing has failed. In the case that the\n - * errorProperty is undefined on the returned object, the document will be\n - * run through an OGCExceptionReport parser.\n - */\n - errorProperty: "service",\n -\n - /**\n - * Constructor: OpenLayers.Format.WFSCapabilities\n - * Create a new parser for WFS capabilities.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Read capabilities data from a string, and return a list of layers. \n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Array} List of named layers.\n - */\n - \n - CLASS_NAME: "OpenLayers.Format.WFSCapabilities" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1646</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities.xml deleted file mode 100644 index cb5d820a23da9bcc3fdc7993a1070c81dd287182..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>WFSCapabilities</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/WFSCapabilities</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities/v1.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities/v1.js.xml deleted file mode 100644 index 755d2fd53e5d069ba1dbdcb1dad886b0420dccfd..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities/v1.js.xml +++ /dev/null @@ -1,163 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684101.02</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WFSCapabilities.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WFSCapabilities.v1\n - * Abstract class not to be instantiated directly.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.WFSCapabilities.v1 = OpenLayers.Class(\n - OpenLayers.Format.XML, {\n -\n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - wfs: "http://www.opengis.net/wfs",\n - xlink: "http://www.w3.org/1999/xlink",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance",\n - ows: "http://www.opengis.net/ows"\n - },\n -\n - /**\n - * Property: defaultPrefix\n - */\n - defaultPrefix: "wfs",\n - \n - /**\n - * Constructor: OpenLayers.Format.WFSCapabilities.v1_1\n - * Create an instance of one of the subclasses.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Read capabilities data from a string, and return a list of layers. \n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Array} List of named layers.\n - */\n - read: function(data) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - var raw = data;\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n - var capabilities = {};\n - this.readNode(data, capabilities);\n - return capabilities;\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "wfs": {\n - "WFS_Capabilities": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "FeatureTypeList": function(node, request) {\n - request.featureTypeList = {\n - featureTypes: []\n - };\n - this.readChildNodes(node, request.featureTypeList);\n - },\n - "FeatureType": function(node, featureTypeList) {\n - var featureType = {};\n - this.readChildNodes(node, featureType);\n - featureTypeList.featureTypes.push(featureType);\n - },\n - "Name": function(node, obj) {\n - var name = this.getChildValue(node);\n - if(name) {\n - var parts = name.split(":");\n - obj.name = parts.pop();\n - if(parts.length > 0) {\n - obj.featureNS = this.lookupNamespaceURI(node, parts[0]);\n - }\n - }\n - },\n - "Title": function(node, obj) {\n - var title = this.getChildValue(node);\n - if(title) {\n - obj.title = title;\n - }\n - },\n - "Abstract": function(node, obj) {\n - var abst = this.getChildValue(node);\n - if(abst) {\n - obj["abstract"] = abst;\n - }\n - }\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WFSCapabilities.v1" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3724</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities/v1_0_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities/v1_0_0.js.xml deleted file mode 100644 index 29952b2a57dc8b4308b9829a2c87f85942d2890a..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities/v1_0_0.js.xml +++ /dev/null @@ -1,159 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684101.02</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_0_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WFSCapabilities/v1.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WFSCapabilities/v1_0_0\n - * Read WFS Capabilities version 1.0.0.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.WFSCapabilities.v1>\n - */\n -OpenLayers.Format.WFSCapabilities.v1_0_0 = OpenLayers.Class(\n - OpenLayers.Format.WFSCapabilities.v1, {\n - \n - /**\n - * Constructor: OpenLayers.Format.WFSCapabilities.v1_0_0\n - * Create a new parser for WFS capabilities version 1.0.0.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "wfs": OpenLayers.Util.applyDefaults({\n - "Service": function(node, capabilities) {\n - capabilities.service = {};\n - this.readChildNodes(node, capabilities.service);\n - },\n - "Fees": function(node, service) {\n - var fees = this.getChildValue(node);\n - if (fees && fees.toLowerCase() != "none") {\n - service.fees = fees;\n - }\n - },\n - "AccessConstraints": function(node, service) {\n - var constraints = this.getChildValue(node);\n - if (constraints && constraints.toLowerCase() != "none") {\n - service.accessConstraints = constraints;\n - }\n - },\n - "OnlineResource": function(node, service) {\n - var onlineResource = this.getChildValue(node);\n - if (onlineResource && onlineResource.toLowerCase() != "none") {\n - service.onlineResource = onlineResource;\n - }\n - },\n - "Keywords": function(node, service) {\n - var keywords = this.getChildValue(node);\n - if (keywords && keywords.toLowerCase() != "none") {\n - service.keywords = keywords.split(\', \');\n - }\n - },\n - "Capability": function(node, capabilities) {\n - capabilities.capability = {};\n - this.readChildNodes(node, capabilities.capability);\n - },\n - "Request": function(node, obj) {\n - obj.request = {};\n - this.readChildNodes(node, obj.request);\n - },\n - "GetFeature": function(node, request) {\n - request.getfeature = {\n - href: {}, // DCPType\n - formats: [] // ResultFormat\n - };\n - this.readChildNodes(node, request.getfeature);\n - },\n - "ResultFormat": function(node, obj) {\n - var children = node.childNodes;\n - var childNode;\n - for(var i=0; i<children.length; i++) {\n - childNode = children[i];\n - if(childNode.nodeType == 1) {\n - obj.formats.push(childNode.nodeName);\n - }\n - }\n - },\n - "DCPType": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "HTTP": function(node, obj) {\n - this.readChildNodes(node, obj.href);\n - },\n - "Get": function(node, obj) {\n - obj.get = node.getAttribute("onlineResource");\n - },\n - "Post": function(node, obj) {\n - obj.post = node.getAttribute("onlineResource");\n - },\n - "SRS": function(node, obj) {\n - var srs = this.getChildValue(node);\n - if (srs) {\n - obj.srs = srs;\n - }\n - }\n - }, OpenLayers.Format.WFSCapabilities.v1.prototype.readers["wfs"])\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.WFSCapabilities.v1_0_0" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4360</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities/v1_1_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities/v1_1_0.js.xml deleted file mode 100644 index 59e1d60d470d4793a0f9e1c403027422c5a750b5..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSCapabilities/v1_1_0.js.xml +++ /dev/null @@ -1,107 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684101.02</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_1_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WFSCapabilities/v1.js\n - * @requires OpenLayers/Format/OWSCommon/v1.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WFSCapabilities/v1_1_0\n - * Read WFS Capabilities version 1.1.0.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.WFSCapabilities>\n - */\n -OpenLayers.Format.WFSCapabilities.v1_1_0 = OpenLayers.Class(\n - OpenLayers.Format.WFSCapabilities.v1, {\n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n - \n - /**\n - * Constructor: OpenLayers.Format.WFSCapabilities.v1_1_0\n - * Create a new parser for WFS capabilities version 1.1.0.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "wfs": OpenLayers.Util.applyDefaults({\n - "DefaultSRS": function(node, obj) {\n - var defaultSRS = this.getChildValue(node);\n - if (defaultSRS) {\n - obj.srs = defaultSRS;\n - }\n - }\n - }, OpenLayers.Format.WFSCapabilities.v1.prototype.readers["wfs"]),\n - "ows": OpenLayers.Format.OWSCommon.v1.prototype.readers.ows\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WFSCapabilities.v1_1_0" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2024</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSDescribeFeatureType.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSDescribeFeatureType.js.xml deleted file mode 100644 index 37f2c9523a584003a5d1c8998fc75a26553f0072..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFSDescribeFeatureType.js.xml +++ /dev/null @@ -1,241 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WFSDescribeFeatureType.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - */\n - \n -/**\n - * Class: OpenLayers.Format.WFSDescribeFeatureType\n - * Read WFS DescribeFeatureType response\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.WFSDescribeFeatureType = OpenLayers.Class(\n - OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - xsd: "http://www.w3.org/2001/XMLSchema"\n - },\n - \n - /**\n - * Constructor: OpenLayers.Format.WFSDescribeFeatureType\n - * Create a new parser for WFS DescribeFeatureType responses.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "xsd": {\n - "schema": function(node, obj) {\n - var complexTypes = [];\n - var customTypes = {};\n - var schema = {\n - complexTypes: complexTypes,\n - customTypes: customTypes\n - };\n - \n - this.readChildNodes(node, schema);\n -\n - var attributes = node.attributes;\n - var attr, name;\n - for(var i=0, len=attributes.length; i<len; ++i) {\n - attr = attributes[i];\n - name = attr.name;\n - if(name.indexOf("xmlns") == 0) {\n - this.setNamespace(name.split(":")[1] || "", attr.value);\n - } else {\n - obj[name] = attr.value;\n - }\n - }\n - obj.featureTypes = complexTypes; \n - obj.targetPrefix = this.namespaceAlias[obj.targetNamespace];\n - \n - // map complexTypes to names of customTypes\n - var complexType, customType;\n - for(var i=0, len=complexTypes.length; i<len; ++i) {\n - complexType = complexTypes[i];\n - customType = customTypes[complexType.typeName];\n - if(customTypes[complexType.typeName]) {\n - complexType.typeName = customType.name;\n - }\n - }\n - },\n - "complexType": function(node, obj) {\n - var complexType = {\n - // this is a temporary typeName, it will be overwritten by\n - // the schema reader with the metadata found in the\n - // customTypes hash\n - "typeName": node.getAttribute("name")\n - };\n - this.readChildNodes(node, complexType);\n - obj.complexTypes.push(complexType);\n - },\n - "complexContent": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "extension": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "sequence": function(node, obj) {\n - var sequence = {\n - elements: []\n - };\n - this.readChildNodes(node, sequence);\n - obj.properties = sequence.elements;\n - },\n - "element": function(node, obj) {\n - if(obj.elements) {\n - var element = {};\n - var attributes = node.attributes;\n - var attr;\n - for(var i=0, len=attributes.length; i<len; ++i) {\n - attr = attributes[i];\n - element[attr.name] = attr.value;\n - }\n - \n - var type = element.type;\n - if(!type) {\n - type = {};\n - this.readChildNodes(node, type);\n - element.restriction = type;\n - element.type = type.base;\n - }\n - var fullType = type.base || type;\n - element.localType = fullType.split(":").pop();\n - obj.elements.push(element);\n - }\n - \n - if(obj.complexTypes) {\n - var type = node.getAttribute("type");\n - var localType = type.split(":").pop();\n - obj.customTypes[localType] = {\n - "name": node.getAttribute("name"),\n - "type": type\n - };\n - }\n - },\n - "simpleType": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "restriction": function(node, obj) {\n - obj.base = node.getAttribute("base");\n - this.readRestriction(node, obj);\n - }\n - }\n - },\n - \n - /**\n - * Method: readRestriction\n - * Reads restriction defined in the child nodes of a restriction element\n - * \n - * Parameters:\n - * node - {DOMElement} the node to parse\n - * obj - {Object} the object that receives the read result\n - */\n - readRestriction: function(node, obj) {\n - var children = node.childNodes;\n - var child, nodeName, value;\n - for(var i=0, len=children.length; i<len; ++i) {\n - child = children[i];\n - if(child.nodeType == 1) {\n - nodeName = child.nodeName.split(":").pop();\n - value = child.getAttribute("value");\n - if(!obj[nodeName]) {\n - obj[nodeName] = value;\n - } else {\n - if(typeof obj[nodeName] == "string") {\n - obj[nodeName] = [obj[nodeName]];\n - }\n - obj[nodeName].push(value);\n - }\n - }\n - }\n - },\n - \n - /**\n - * Method: read\n - *\n - * Parameters:\n - * data - {DOMElement|String} A WFS DescribeFeatureType document.\n - *\n - * Returns:\n - * {Object} An object representing the WFS DescribeFeatureType response.\n - */\n - read: function(data) {\n - if(typeof data == "string") { \n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n - var schema = {};\n - this.readNode(data, schema);\n - \n - return schema;\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.WFSDescribeFeatureType" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6993</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST.js.xml deleted file mode 100644 index f58b1d678dd91b3cba6387ddb650102fc077e427..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST.js.xml +++ /dev/null @@ -1,78 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.9</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WFST.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format.js\n - */\n -\n -/**\n - * Function: OpenLayers.Format.WFST\n - * Used to create a versioned WFS protocol. Default version is 1.0.0.\n - *\n - * Returns:\n - * {<OpenLayers.Format>} A WFST format of the given version.\n - */\n -OpenLayers.Format.WFST = function(options) {\n - options = OpenLayers.Util.applyDefaults(\n - options, OpenLayers.Format.WFST.DEFAULTS\n - );\n - var cls = OpenLayers.Format.WFST["v"+options.version.replace(/\\./g, "_")];\n - if(!cls) {\n - throw "Unsupported WFST version: " + options.version;\n - }\n - return new cls(options);\n -};\n -\n -/**\n - * Constant: OpenLayers.Format.WFST.DEFAULTS\n - * {Object} Default properties for the WFST format.\n - */\n -OpenLayers.Format.WFST.DEFAULTS = {\n - "version": "1.0.0"\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>996</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST.xml deleted file mode 100644 index 58579e4a5c185ed0722b1bbb769bd549ad1919e2..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>WFST</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/WFST</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST/v1.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST/v1.js.xml deleted file mode 100644 index 7de507f6d118369cd3b02a717ed23014efab3b24..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST/v1.js.xml +++ /dev/null @@ -1,488 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.94</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Format/WFST.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WFST.v1\n - * Superclass for WFST parsers.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.WFST.v1 = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - xlink: "http://www.w3.org/1999/xlink",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance",\n - wfs: "http://www.opengis.net/wfs",\n - gml: "http://www.opengis.net/gml",\n - ogc: "http://www.opengis.net/ogc",\n - ows: "http://www.opengis.net/ows"\n - },\n - \n - /**\n - * Property: defaultPrefix\n - */\n - defaultPrefix: "wfs",\n -\n - /**\n - * Property: version\n - * {String} WFS version number.\n - */\n - version: null,\n -\n - /**\n - * Property: schemaLocation\n - * {String} Schema location for a particular minor version.\n - */\n - schemaLocations: null,\n - \n - /**\n - * APIProperty: srsName\n - * {String} URI for spatial reference system.\n - */\n - srsName: null,\n -\n - /**\n - * APIProperty: extractAttributes\n - * {Boolean} Extract attributes from GML. Default is true.\n - */\n - extractAttributes: true,\n - \n - /**\n - * APIProperty: xy\n - * {Boolean} Order of the GML coordinate true:(x,y) or false:(y,x)\n - * Changing is not recommended, a new Format should be instantiated.\n - */ \n - xy: true,\n -\n - /**\n - * Property: stateName\n - * {Object} Maps feature states to node names.\n - */\n - stateName: null,\n - \n - /**\n - * Constructor: OpenLayers.Format.WFST.v1\n - * Instances of this class are not created directly. Use the\n - * <OpenLayers.Format.WFST.v1_0_0> or <OpenLayers.Format.WFST.v1_1_0>\n - * constructor instead.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - // set state name mapping\n - this.stateName = {};\n - this.stateName[OpenLayers.State.INSERT] = "wfs:Insert";\n - this.stateName[OpenLayers.State.UPDATE] = "wfs:Update";\n - this.stateName[OpenLayers.State.DELETE] = "wfs:Delete";\n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - },\n - \n - /**\n - * Method: getSrsName\n - */\n - getSrsName: function(feature, options) {\n - var srsName = options && options.srsName;\n - if(!srsName) {\n - if(feature && feature.layer) {\n - srsName = feature.layer.projection.getCode();\n - } else {\n - srsName = this.srsName;\n - }\n - }\n - return srsName;\n - },\n -\n - /**\n - * APIMethod: read\n - * Parse the response from a transaction. Because WFS is split into\n - * Transaction requests (create, update, and delete) and GetFeature\n - * requests (read), this method handles parsing of both types of\n - * responses.\n - *\n - * Parameters:\n - * data - {String | Document} The WFST document to read\n - * options - {Object} Options for the reader\n - *\n - * Valid options properties:\n - * output - {String} either "features" or "object". The default is\n - * "features", which means that the method will return an array of\n - * features. If set to "object", an object with a "features" property\n - * and other properties read by the parser will be returned.\n - *\n - * Returns:\n - * {Array | Object} Output depending on the output option.\n - */\n - read: function(data, options) {\n - options = options || {};\n - OpenLayers.Util.applyDefaults(options, {\n - output: "features"\n - });\n - \n - if(typeof data == "string") { \n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n - var obj = {};\n - if(data) {\n - this.readNode(data, obj, true);\n - }\n - if(obj.features && options.output === "features") {\n - obj = obj.features;\n - }\n - return obj;\n - },\n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "wfs": {\n - "FeatureCollection": function(node, obj) {\n - obj.features = [];\n - this.readChildNodes(node, obj);\n - }\n - }\n - },\n - \n - /**\n - * Method: write\n - * Given an array of features, write a WFS transaction. This assumes\n - * the features have a state property that determines the operation\n - * type - insert, update, or delete.\n - *\n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)} A list of features. See\n - * below for a more detailed description of the influence of the\n - * feature\'s *modified* property.\n - * options - {Object}\n - *\n - * feature.modified rules:\n - * If a feature has a modified property set, the following checks will be\n - * made before a feature\'s geometry or attribute is included in an Update\n - * transaction:\n - * - *modified* is not set at all: The geometry and all attributes will be\n - * included.\n - * - *modified.geometry* is set (null or a geometry): The geometry will be\n - * included. If *modified.attributes* is not set, all attributes will\n - * be included.\n - * - *modified.attributes* is set: Only the attributes set (i.e. to null or\n - * a value) in *modified.attributes* will be included. \n - * If *modified.geometry* is not set, the geometry will not be included.\n - *\n - * Valid options include:\n - * - *multi* {Boolean} If set to true, geometries will be casted to\n - * Multi geometries before writing.\n - *\n - * Returns:\n - * {String} A serialized WFS transaction.\n - */\n - write: function(features, options) {\n - var node = this.writeNode("wfs:Transaction", {\n - features:features,\n - options: options\n - });\n - var value = this.schemaLocationAttr();\n - if(value) {\n - this.setAttributeNS(\n - node, this.namespaces["xsi"], "xsi:schemaLocation", value\n - );\n - }\n - return OpenLayers.Format.XML.prototype.write.apply(this, [node]);\n - },\n - \n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "wfs": {\n - "GetFeature": function(options) {\n - var node = this.createElementNSPlus("wfs:GetFeature", {\n - attributes: {\n - service: "WFS",\n - version: this.version,\n - handle: options && options.handle,\n - outputFormat: options && options.outputFormat,\n - maxFeatures: options && options.maxFeatures,\n - "xsi:schemaLocation": this.schemaLocationAttr(options)\n - }\n - });\n - if (typeof this.featureType == "string") {\n - this.writeNode("Query", options, node);\n - } else {\n - for (var i=0,len = this.featureType.length; i<len; i++) { \n - options.featureType = this.featureType[i]; \n - this.writeNode("Query", options, node); \n - } \n - }\n - return node;\n - },\n - "Transaction": function(obj) {\n - obj = obj || {};\n - var options = obj.options || {};\n - var node = this.createElementNSPlus("wfs:Transaction", {\n - attributes: {\n - service: "WFS",\n - version: this.version,\n - handle: options.handle\n - }\n - });\n - var i, len;\n - var features = obj.features;\n - if(features) {\n - // temporarily re-assigning geometry types\n - if (options.multi === true) {\n - OpenLayers.Util.extend(this.geometryTypes, {\n - "OpenLayers.Geometry.Point": "MultiPoint",\n - "OpenLayers.Geometry.LineString": (this.multiCurve === true) ? "MultiCurve": "MultiLineString",\n - "OpenLayers.Geometry.Polygon": (this.multiSurface === true) ? "MultiSurface" : "MultiPolygon"\n - });\n - }\n - var name, feature;\n - for(i=0, len=features.length; i<len; ++i) {\n - feature = features[i];\n - name = this.stateName[feature.state];\n - if(name) {\n - this.writeNode(name, {\n - feature: feature, \n - options: options\n - }, node);\n - }\n - }\n - // switch back to original geometry types assignment\n - if (options.multi === true) {\n - this.setGeometryTypes();\n - }\n - }\n - if (options.nativeElements) {\n - for (i=0, len=options.nativeElements.length; i<len; ++i) {\n - this.writeNode("wfs:Native", \n - options.nativeElements[i], node);\n - }\n - }\n - return node;\n - },\n - "Native": function(nativeElement) {\n - var node = this.createElementNSPlus("wfs:Native", {\n - attributes: {\n - vendorId: nativeElement.vendorId,\n - safeToIgnore: nativeElement.safeToIgnore\n - },\n - value: nativeElement.value\n - });\n - return node;\n - },\n - "Insert": function(obj) {\n - var feature = obj.feature;\n - var options = obj.options;\n - var node = this.createElementNSPlus("wfs:Insert", {\n - attributes: {\n - handle: options && options.handle\n - }\n - });\n - this.srsName = this.getSrsName(feature);\n - this.writeNode("feature:_typeName", feature, node);\n - return node;\n - },\n - "Update": function(obj) {\n - var feature = obj.feature;\n - var options = obj.options;\n - var node = this.createElementNSPlus("wfs:Update", {\n - attributes: {\n - handle: options && options.handle,\n - typeName: (this.featureNS ? this.featurePrefix + ":" : "") +\n - this.featureType\n - }\n - });\n - if(this.featureNS) {\n - node.setAttribute("xmlns:" + this.featurePrefix, this.featureNS);\n - }\n - \n - // add in geometry\n - var modified = feature.modified;\n - if (this.geometryName !== null && (!modified || modified.geometry !== undefined)) {\n - this.srsName = this.getSrsName(feature);\n - this.writeNode(\n - "Property", {name: this.geometryName, value: feature.geometry}, node\n - );\n - }\n - \n - // add in attributes\n - for(var key in feature.attributes) {\n - if(feature.attributes[key] !== undefined &&\n - (!modified || !modified.attributes ||\n - (modified.attributes && modified.attributes[key] !== undefined))) {\n - this.writeNode(\n - "Property", {name: key, value: feature.attributes[key]}, node\n - );\n - }\n - }\n - \n - // add feature id filter\n - this.writeNode("ogc:Filter", new OpenLayers.Filter.FeatureId({\n - fids: [feature.fid]\n - }), node);\n - \n - return node;\n - },\n - "Property": function(obj) {\n - var node = this.createElementNSPlus("wfs:Property");\n - this.writeNode("Name", obj.name, node);\n - if(obj.value !== null) {\n - this.writeNode("Value", obj.value, node);\n - }\n - return node;\n - },\n - "Name": function(name) {\n - return this.createElementNSPlus("wfs:Name", {value: name});\n - },\n - "Value": function(obj) {\n - var node;\n - if(obj instanceof OpenLayers.Geometry) {\n - node = this.createElementNSPlus("wfs:Value");\n - var geom = this.writeNode("feature:_geometry", obj).firstChild;\n - node.appendChild(geom);\n - } else {\n - node = this.createElementNSPlus("wfs:Value", {value: obj}); \n - }\n - return node;\n - },\n - "Delete": function(obj) {\n - var feature = obj.feature;\n - var options = obj.options;\n - var node = this.createElementNSPlus("wfs:Delete", {\n - attributes: {\n - handle: options && options.handle,\n - typeName: (this.featureNS ? this.featurePrefix + ":" : "") +\n - this.featureType\n - }\n - });\n - if(this.featureNS) {\n - node.setAttribute("xmlns:" + this.featurePrefix, this.featureNS);\n - }\n - this.writeNode("ogc:Filter", new OpenLayers.Filter.FeatureId({\n - fids: [feature.fid]\n - }), node);\n - return node;\n - }\n - }\n - },\n -\n - /**\n - * Method: schemaLocationAttr\n - * Generate the xsi:schemaLocation attribute value.\n - *\n - * Returns:\n - * {String} The xsi:schemaLocation attribute or undefined if none.\n - */\n - schemaLocationAttr: function(options) {\n - options = OpenLayers.Util.extend({\n - featurePrefix: this.featurePrefix,\n - schema: this.schema\n - }, options);\n - var schemaLocations = OpenLayers.Util.extend({}, this.schemaLocations);\n - if(options.schema) {\n - schemaLocations[options.featurePrefix] = options.schema;\n - }\n - var parts = [];\n - var uri;\n - for(var key in schemaLocations) {\n - uri = this.namespaces[key];\n - if(uri) {\n - parts.push(uri + " " + schemaLocations[key]);\n - }\n - }\n - var value = parts.join(" ") || undefined;\n - return value;\n - },\n - \n - /**\n - * Method: setFilterProperty\n - * Set the property of each spatial filter.\n - *\n - * Parameters:\n - * filter - {<OpenLayers.Filter>}\n - */\n - setFilterProperty: function(filter) {\n - if(filter.filters) {\n - for(var i=0, len=filter.filters.length; i<len; ++i) {\n - OpenLayers.Format.WFST.v1.prototype.setFilterProperty.call(this, filter.filters[i]);\n - }\n - } else {\n - if(filter instanceof OpenLayers.Filter.Spatial && !filter.property) {\n - // got a spatial filter without property, so set it\n - filter.property = this.geometryName;\n - }\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WFST.v1" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>16316</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST/v1_0_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST/v1_0_0.js.xml deleted file mode 100644 index d12ef76965f8217b4c62c982ce7c44770124f45d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST/v1_0_0.js.xml +++ /dev/null @@ -1,218 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.94</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_0_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WFST/v1.js\n - * @requires OpenLayers/Format/Filter/v1_0_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WFST.v1_0_0\n - * A format for creating WFS v1.0.0 transactions. Create a new instance with the\n - * <OpenLayers.Format.WFST.v1_0_0> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.Filter.v1_0_0>\n - * - <OpenLayers.Format.WFST.v1>\n - */\n -OpenLayers.Format.WFST.v1_0_0 = OpenLayers.Class(\n - OpenLayers.Format.Filter.v1_0_0, OpenLayers.Format.WFST.v1, {\n - \n - /**\n - * Property: version\n - * {String} WFS version number.\n - */\n - version: "1.0.0",\n -\n - /**\n - * APIProperty: srsNameInQuery\n - * {Boolean} If true the reference system is passed in Query requests\n - * via the "srsName" attribute to the "wfs:Query" element, this\n - * property defaults to false as it isn\'t WFS 1.0.0 compliant.\n - */\n - srsNameInQuery: false,\n - \n - /**\n - * Property: schemaLocations\n - * {Object} Properties are namespace aliases, values are schema locations.\n - */\n - schemaLocations: {\n - "wfs": "http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd"\n - },\n -\n - /**\n - * Constructor: OpenLayers.Format.WFST.v1_0_0\n - * A class for parsing and generating WFS v1.0.0 transactions.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - *\n - * Valid options properties:\n - * featureType - {String} Local (without prefix) feature typeName (required).\n - * featureNS - {String} Feature namespace (optional).\n - * featurePrefix - {String} Feature namespace alias (optional - only used\n - * if featureNS is provided). Default is \'feature\'.\n - * geometryName - {String} Name of geometry attribute. Default is \'the_geom\'.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.Filter.v1_0_0.prototype.initialize.apply(this, [options]);\n - OpenLayers.Format.WFST.v1.prototype.initialize.apply(this, [options]);\n - },\n - \n - /**\n - * Method: readNode\n - * Shorthand for applying one of the named readers given the node\n - * namespace and local name. Readers take two args (node, obj) and\n - * generally extend or modify the second.\n - *\n - * Parameters:\n - * node - {DOMElement} The node to be read (required).\n - * obj - {Object} The object to be modified (optional).\n - * first - {Boolean} Should be set to true for the first node read. This\n - * is usually the readNode call in the read method. Without this being\n - * set, auto-configured properties will stick on subsequent reads.\n - *\n - * Returns:\n - * {Object} The input object, modified (or a new one if none was provided).\n - */\n - readNode: function(node, obj, first) {\n - // Not the superclass, only the mixin classes inherit from\n - // Format.GML.v2. We need this because we don\'t want to get readNode\n - // from the superclass\'s superclass, which is OpenLayers.Format.XML.\n - return OpenLayers.Format.GML.v2.prototype.readNode.apply(this, [node, obj]);\n - },\n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "wfs": OpenLayers.Util.applyDefaults({\n - "WFS_TransactionResponse": function(node, obj) {\n - obj.insertIds = [];\n - obj.success = false;\n - this.readChildNodes(node, obj);\n - },\n - "InsertResult": function(node, container) {\n - var obj = {fids: []};\n - this.readChildNodes(node, obj);\n - container.insertIds.push(obj.fids[0]);\n - },\n - "TransactionResult": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "Status": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "SUCCESS": function(node, obj) {\n - obj.success = true;\n - }\n - }, OpenLayers.Format.WFST.v1.prototype.readers["wfs"]),\n - "gml": OpenLayers.Format.GML.v2.prototype.readers["gml"],\n - "feature": OpenLayers.Format.GML.v2.prototype.readers["feature"],\n - "ogc": OpenLayers.Format.Filter.v1_0_0.prototype.readers["ogc"]\n - },\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "wfs": OpenLayers.Util.applyDefaults({\n - "Query": function(options) {\n - options = OpenLayers.Util.extend({\n - featureNS: this.featureNS,\n - featurePrefix: this.featurePrefix,\n - featureType: this.featureType,\n - srsName: this.srsName,\n - srsNameInQuery: this.srsNameInQuery\n - }, options);\n - var prefix = options.featurePrefix;\n - var node = this.createElementNSPlus("wfs:Query", {\n - attributes: {\n - typeName: (prefix ? prefix + ":" : "") +\n - options.featureType\n - }\n - });\n - if(options.srsNameInQuery && options.srsName) {\n - node.setAttribute("srsName", options.srsName);\n - }\n - if(options.featureNS) {\n - node.setAttribute("xmlns:" + prefix, options.featureNS);\n - }\n - if(options.propertyNames) {\n - for(var i=0,len = options.propertyNames.length; i<len; i++) {\n - this.writeNode(\n - "ogc:PropertyName", \n - {property: options.propertyNames[i]},\n - node\n - );\n - }\n - }\n - if(options.filter) {\n - this.setFilterProperty(options.filter);\n - this.writeNode("ogc:Filter", options.filter, node);\n - }\n - return node;\n - }\n - }, OpenLayers.Format.WFST.v1.prototype.writers["wfs"]),\n - "gml": OpenLayers.Format.GML.v2.prototype.writers["gml"],\n - "feature": OpenLayers.Format.GML.v2.prototype.writers["feature"],\n - "ogc": OpenLayers.Format.Filter.v1_0_0.prototype.writers["ogc"]\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.WFST.v1_0_0" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6988</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST/v1_1_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST/v1_1_0.js.xml deleted file mode 100644 index a16faf1090b3af37eda0d8ae725d377b9c36ef02..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WFST/v1_1_0.js.xml +++ /dev/null @@ -1,233 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.94</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_1_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WFST/v1.js\n - * @requires OpenLayers/Format/Filter/v1_1_0.js\n - * @requires OpenLayers/Format/OWSCommon/v1_0_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WFST.v1_1_0\n - * A format for creating WFS v1.1.0 transactions. Create a new instance with the\n - * <OpenLayers.Format.WFST.v1_1_0> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.Filter.v1_1_0>\n - * - <OpenLayers.Format.WFST.v1>\n - */\n -OpenLayers.Format.WFST.v1_1_0 = OpenLayers.Class(\n - OpenLayers.Format.Filter.v1_1_0, OpenLayers.Format.WFST.v1, {\n - \n - /**\n - * Property: version\n - * {String} WFS version number.\n - */\n - version: "1.1.0",\n - \n - /**\n - * Property: schemaLocations\n - * {Object} Properties are namespace aliases, values are schema locations.\n - */\n - schemaLocations: {\n - "wfs": "http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"\n - },\n - \n - /**\n - * Constructor: OpenLayers.Format.WFST.v1_1_0\n - * A class for parsing and generating WFS v1.1.0 transactions.\n - *\n - * To read additional information like hit count (numberOfFeatures) from\n - * the FeatureCollection, call the <OpenLayers.Format.WFST.v1.read> method\n - * with {output: "object"} as 2nd argument. Note that it is possible to\n - * just request the hit count from a WFS 1.1.0 server with the\n - * resultType="hits" request parameter.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - *\n - * Valid options properties:\n - * featureType - {String} Local (without prefix) feature typeName (required).\n - * featureNS - {String} Feature namespace (optional).\n - * featurePrefix - {String} Feature namespace alias (optional - only used\n - * if featureNS is provided). Default is \'feature\'.\n - * geometryName - {String} Name of geometry attribute. Default is \'the_geom\'.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.Filter.v1_1_0.prototype.initialize.apply(this, [options]);\n - OpenLayers.Format.WFST.v1.prototype.initialize.apply(this, [options]);\n - },\n - \n - /**\n - * Method: readNode\n - * Shorthand for applying one of the named readers given the node\n - * namespace and local name. Readers take two args (node, obj) and\n - * generally extend or modify the second.\n - *\n - * Parameters:\n - * node - {DOMElement} The node to be read (required).\n - * obj - {Object} The object to be modified (optional).\n - * first - {Boolean} Should be set to true for the first node read. This\n - * is usually the readNode call in the read method. Without this being\n - * set, auto-configured properties will stick on subsequent reads.\n - *\n - * Returns:\n - * {Object} The input object, modified (or a new one if none was provided).\n - */\n - readNode: function(node, obj, first) {\n - // Not the superclass, only the mixin classes inherit from\n - // Format.GML.v3. We need this because we don\'t want to get readNode\n - // from the superclass\'s superclass, which is OpenLayers.Format.XML.\n - return OpenLayers.Format.GML.v3.prototype.readNode.apply(this, [node, obj]);\n - },\n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "wfs": OpenLayers.Util.applyDefaults({\n - "FeatureCollection": function(node, obj) {\n - obj.numberOfFeatures = parseInt(node.getAttribute(\n - "numberOfFeatures"));\n - OpenLayers.Format.WFST.v1.prototype.readers["wfs"]["FeatureCollection"].apply(\n - this, arguments);\n - },\n - "TransactionResponse": function(node, obj) {\n - obj.insertIds = [];\n - obj.success = false;\n - this.readChildNodes(node, obj);\n - },\n - "TransactionSummary": function(node, obj) {\n - // this is a limited test of success\n - obj.success = true;\n - },\n - "InsertResults": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "Feature": function(node, container) {\n - var obj = {fids: []};\n - this.readChildNodes(node, obj);\n - container.insertIds.push(obj.fids[0]);\n - }\n - }, OpenLayers.Format.WFST.v1.prototype.readers["wfs"]),\n - "gml": OpenLayers.Format.GML.v3.prototype.readers["gml"],\n - "feature": OpenLayers.Format.GML.v3.prototype.readers["feature"],\n - "ogc": OpenLayers.Format.Filter.v1_1_0.prototype.readers["ogc"],\n - "ows": OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers["ows"]\n - },\n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "wfs": OpenLayers.Util.applyDefaults({\n - "GetFeature": function(options) {\n - var node = OpenLayers.Format.WFST.v1.prototype.writers["wfs"]["GetFeature"].apply(this, arguments);\n - options && this.setAttributes(node, {\n - resultType: options.resultType,\n - startIndex: options.startIndex,\n - count: options.count\n - });\n - return node;\n - },\n - "Query": function(options) {\n - options = OpenLayers.Util.extend({\n - featureNS: this.featureNS,\n - featurePrefix: this.featurePrefix,\n - featureType: this.featureType,\n - srsName: this.srsName\n - }, options);\n - var prefix = options.featurePrefix;\n - var node = this.createElementNSPlus("wfs:Query", {\n - attributes: {\n - typeName: (prefix ? prefix + ":" : "") +\n - options.featureType,\n - srsName: options.srsName\n - }\n - });\n - if(options.featureNS) {\n - node.setAttribute("xmlns:" + prefix, options.featureNS);\n - }\n - if(options.propertyNames) {\n - for(var i=0,len = options.propertyNames.length; i<len; i++) {\n - this.writeNode(\n - "wfs:PropertyName", \n - {property: options.propertyNames[i]},\n - node\n - );\n - }\n - }\n - if(options.filter) {\n - OpenLayers.Format.WFST.v1_1_0.prototype.setFilterProperty.call(this, options.filter);\n - this.writeNode("ogc:Filter", options.filter, node);\n - }\n - return node;\n - },\n - "PropertyName": function(obj) {\n - return this.createElementNSPlus("wfs:PropertyName", {\n - value: obj.property\n - });\n - } \n - }, OpenLayers.Format.WFST.v1.prototype.writers["wfs"]),\n - "gml": OpenLayers.Format.GML.v3.prototype.writers["gml"],\n - "feature": OpenLayers.Format.GML.v3.prototype.writers["feature"],\n - "ogc": OpenLayers.Format.Filter.v1_1_0.prototype.writers["ogc"]\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WFST.v1_1_0" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7931</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WKT.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WKT.js.xml deleted file mode 100644 index 0f3fc8478031d273bba7b06b1386d9be5a6c6925..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WKT.js.xml +++ /dev/null @@ -1,430 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WKT.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format.js\n - * @requires OpenLayers/Feature/Vector.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WKT\n - * Class for reading and writing Well-Known Text. Create a new instance\n - * with the <OpenLayers.Format.WKT> constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format>\n - */\n -OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {\n - \n - /**\n - * Constructor: OpenLayers.Format.WKT\n - * Create a new parser for WKT\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance\n - *\n - * Returns:\n - * {<OpenLayers.Format.WKT>} A new WKT parser.\n - */\n - initialize: function(options) {\n - this.regExes = {\n - \'typeStr\': /^\\s*(\\w+)\\s*\\(\\s*(.*)\\s*\\)\\s*$/,\n - \'spaces\': /\\s+/,\n - \'parenComma\': /\\)\\s*,\\s*\\(/,\n - \'doubleParenComma\': /\\)\\s*\\)\\s*,\\s*\\(\\s*\\(/, // can\'t use {2} here\n - \'trimParens\': /^\\s*\\(?(.*?)\\)?\\s*$/\n - };\n - OpenLayers.Format.prototype.initialize.apply(this, [options]);\n - },\n -\n - /**\n - * Method: read\n - * Deserialize a WKT string and return a vector feature or an\n - * array of vector features. Supports WKT for POINT, MULTIPOINT,\n - * LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON, and\n - * GEOMETRYCOLLECTION.\n - *\n - * Parameters:\n - * wkt - {String} A WKT string\n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector>|Array} A feature or array of features for\n - * GEOMETRYCOLLECTION WKT.\n - */\n - read: function(wkt) {\n - var features, type, str;\n - wkt = wkt.replace(/[\\n\\r]/g, " ");\n - var matches = this.regExes.typeStr.exec(wkt);\n - if(matches) {\n - type = matches[1].toLowerCase();\n - str = matches[2];\n - if(this.parse[type]) {\n - features = this.parse[type].apply(this, [str]);\n - }\n - if (this.internalProjection && this.externalProjection) {\n - if (features && \n - features.CLASS_NAME == "OpenLayers.Feature.Vector") {\n - features.geometry.transform(this.externalProjection,\n - this.internalProjection);\n - } else if (features &&\n - type != "geometrycollection" &&\n - typeof features == "object") {\n - for (var i=0, len=features.length; i<len; i++) {\n - var component = features[i];\n - component.geometry.transform(this.externalProjection,\n - this.internalProjection);\n - }\n - }\n - }\n - } \n - return features;\n - },\n -\n - /**\n - * Method: write\n - * Serialize a feature or array of features into a WKT string.\n - *\n - * Parameters:\n - * features - {<OpenLayers.Feature.Vector>|Array} A feature or array of\n - * features\n - *\n - * Returns:\n - * {String} The WKT string representation of the input geometries\n - */\n - write: function(features) {\n - var collection, geometry, type, data, isCollection;\n - if (features.constructor == Array) {\n - collection = features;\n - isCollection = true;\n - } else {\n - collection = [features];\n - isCollection = false;\n - }\n - var pieces = [];\n - if (isCollection) {\n - pieces.push(\'GEOMETRYCOLLECTION(\');\n - }\n - for (var i=0, len=collection.length; i<len; ++i) {\n - if (isCollection && i>0) {\n - pieces.push(\',\');\n - }\n - geometry = collection[i].geometry;\n - pieces.push(this.extractGeometry(geometry));\n - }\n - if (isCollection) {\n - pieces.push(\')\');\n - }\n - return pieces.join(\'\');\n - },\n -\n - /**\n - * Method: extractGeometry\n - * Entry point to construct the WKT for a single Geometry object.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry.Geometry>}\n - *\n - * Returns:\n - * {String} A WKT string of representing the geometry\n - */\n - extractGeometry: function(geometry) {\n - var type = geometry.CLASS_NAME.split(\'.\')[2].toLowerCase();\n - if (!this.extract[type]) {\n - return null;\n - }\n - if (this.internalProjection && this.externalProjection) {\n - geometry = geometry.clone();\n - geometry.transform(this.internalProjection, this.externalProjection);\n - } \n - var wktType = type == \'collection\' ? \'GEOMETRYCOLLECTION\' : type.toUpperCase();\n - var data = wktType + \'(\' + this.extract[type].apply(this, [geometry]) + \')\';\n - return data;\n - },\n - \n - /**\n - * Object with properties corresponding to the geometry types.\n - * Property values are functions that do the actual data extraction.\n - */\n - extract: {\n - /**\n - * Return a space delimited string of point coordinates.\n - * @param {OpenLayers.Geometry.Point} point\n - * @returns {String} A string of coordinates representing the point\n - */\n - \'point\': function(point) {\n - return point.x + \' \' + point.y;\n - },\n -\n - /**\n - * Return a comma delimited string of point coordinates from a multipoint.\n - * @param {OpenLayers.Geometry.MultiPoint} multipoint\n - * @returns {String} A string of point coordinate strings representing\n - * the multipoint\n - */\n - \'multipoint\': function(multipoint) {\n - var array = [];\n - for(var i=0, len=multipoint.components.length; i<len; ++i) {\n - array.push(\'(\' +\n - this.extract.point.apply(this, [multipoint.components[i]]) +\n - \')\');\n - }\n - return array.join(\',\');\n - },\n - \n - /**\n - * Return a comma delimited string of point coordinates from a line.\n - * @param {OpenLayers.Geometry.LineString} linestring\n - * @returns {String} A string of point coordinate strings representing\n - * the linestring\n - */\n - \'linestring\': function(linestring) {\n - var array = [];\n - for(var i=0, len=linestring.components.length; i<len; ++i) {\n - array.push(this.extract.point.apply(this, [linestring.components[i]]));\n - }\n - return array.join(\',\');\n - },\n -\n - /**\n - * Return a comma delimited string of linestring strings from a multilinestring.\n - * @param {OpenLayers.Geometry.MultiLineString} multilinestring\n - * @returns {String} A string of of linestring strings representing\n - * the multilinestring\n - */\n - \'multilinestring\': function(multilinestring) {\n - var array = [];\n - for(var i=0, len=multilinestring.components.length; i<len; ++i) {\n - array.push(\'(\' +\n - this.extract.linestring.apply(this, [multilinestring.components[i]]) +\n - \')\');\n - }\n - return array.join(\',\');\n - },\n - \n - /**\n - * Return a comma delimited string of linear ring arrays from a polygon.\n - * @param {OpenLayers.Geometry.Polygon} polygon\n - * @returns {String} An array of linear ring arrays representing the polygon\n - */\n - \'polygon\': function(polygon) {\n - var array = [];\n - for(var i=0, len=polygon.components.length; i<len; ++i) {\n - array.push(\'(\' +\n - this.extract.linestring.apply(this, [polygon.components[i]]) +\n - \')\');\n - }\n - return array.join(\',\');\n - },\n -\n - /**\n - * Return an array of polygon arrays from a multipolygon.\n - * @param {OpenLayers.Geometry.MultiPolygon} multipolygon\n - * @returns {String} An array of polygon arrays representing\n - * the multipolygon\n - */\n - \'multipolygon\': function(multipolygon) {\n - var array = [];\n - for(var i=0, len=multipolygon.components.length; i<len; ++i) {\n - array.push(\'(\' +\n - this.extract.polygon.apply(this, [multipolygon.components[i]]) +\n - \')\');\n - }\n - return array.join(\',\');\n - },\n -\n - /**\n - * Return the WKT portion between \'GEOMETRYCOLLECTION(\' and \')\' for an <OpenLayers.Geometry.Collection>\n - * @param {OpenLayers.Geometry.Collection} collection\n - * @returns {String} internal WKT representation of the collection\n - */\n - \'collection\': function(collection) {\n - var array = [];\n - for(var i=0, len=collection.components.length; i<len; ++i) {\n - array.push(this.extractGeometry.apply(this, [collection.components[i]]));\n - }\n - return array.join(\',\');\n - }\n -\n - },\n -\n - /**\n - * Object with properties corresponding to the geometry types.\n - * Property values are functions that do the actual parsing.\n - */\n - parse: {\n - /**\n - * Return point feature given a point WKT fragment.\n - * @param {String} str A WKT fragment representing the point\n - * @returns {OpenLayers.Feature.Vector} A point feature\n - * @private\n - */\n - \'point\': function(str) {\n - var coords = OpenLayers.String.trim(str).split(this.regExes.spaces);\n - return new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.Point(coords[0], coords[1])\n - );\n - },\n -\n - /**\n - * Return a multipoint feature given a multipoint WKT fragment.\n - * @param {String} str A WKT fragment representing the multipoint\n - * @returns {OpenLayers.Feature.Vector} A multipoint feature\n - * @private\n - */\n - \'multipoint\': function(str) {\n - var point;\n - var points = OpenLayers.String.trim(str).split(\',\');\n - var components = [];\n - for(var i=0, len=points.length; i<len; ++i) {\n - point = points[i].replace(this.regExes.trimParens, \'$1\');\n - components.push(this.parse.point.apply(this, [point]).geometry);\n - }\n - return new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.MultiPoint(components)\n - );\n - },\n - \n - /**\n - * Return a linestring feature given a linestring WKT fragment.\n - * @param {String} str A WKT fragment representing the linestring\n - * @returns {OpenLayers.Feature.Vector} A linestring feature\n - * @private\n - */\n - \'linestring\': function(str) {\n - var points = OpenLayers.String.trim(str).split(\',\');\n - var components = [];\n - for(var i=0, len=points.length; i<len; ++i) {\n - components.push(this.parse.point.apply(this, [points[i]]).geometry);\n - }\n - return new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.LineString(components)\n - );\n - },\n -\n - /**\n - * Return a multilinestring feature given a multilinestring WKT fragment.\n - * @param {String} str A WKT fragment representing the multilinestring\n - * @returns {OpenLayers.Feature.Vector} A multilinestring feature\n - * @private\n - */\n - \'multilinestring\': function(str) {\n - var line;\n - var lines = OpenLayers.String.trim(str).split(this.regExes.parenComma);\n - var components = [];\n - for(var i=0, len=lines.length; i<len; ++i) {\n - line = lines[i].replace(this.regExes.trimParens, \'$1\');\n - components.push(this.parse.linestring.apply(this, [line]).geometry);\n - }\n - return new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.MultiLineString(components)\n - );\n - },\n - \n - /**\n - * Return a polygon feature given a polygon WKT fragment.\n - * @param {String} str A WKT fragment representing the polygon\n - * @returns {OpenLayers.Feature.Vector} A polygon feature\n - * @private\n - */\n - \'polygon\': function(str) {\n - var ring, linestring, linearring;\n - var rings = OpenLayers.String.trim(str).split(this.regExes.parenComma);\n - var components = [];\n - for(var i=0, len=rings.length; i<len; ++i) {\n - ring = rings[i].replace(this.regExes.trimParens, \'$1\');\n - linestring = this.parse.linestring.apply(this, [ring]).geometry;\n - linearring = new OpenLayers.Geometry.LinearRing(linestring.components);\n - components.push(linearring);\n - }\n - return new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.Polygon(components)\n - );\n - },\n -\n - /**\n - * Return a multipolygon feature given a multipolygon WKT fragment.\n - * @param {String} str A WKT fragment representing the multipolygon\n - * @returns {OpenLayers.Feature.Vector} A multipolygon feature\n - * @private\n - */\n - \'multipolygon\': function(str) {\n - var polygon;\n - var polygons = OpenLayers.String.trim(str).split(this.regExes.doubleParenComma);\n - var components = [];\n - for(var i=0, len=polygons.length; i<len; ++i) {\n - polygon = polygons[i].replace(this.regExes.trimParens, \'$1\');\n - components.push(this.parse.polygon.apply(this, [polygon]).geometry);\n - }\n - return new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.MultiPolygon(components)\n - );\n - },\n -\n - /**\n - * Return an array of features given a geometrycollection WKT fragment.\n - * @param {String} str A WKT fragment representing the geometrycollection\n - * @returns {Array} An array of OpenLayers.Feature.Vector\n - * @private\n - */\n - \'geometrycollection\': function(str) {\n - // separate components of the collection with |\n - str = str.replace(/,\\s*([A-Za-z])/g, \'|$1\');\n - var wktArray = OpenLayers.String.trim(str).split(\'|\');\n - var components = [];\n - for(var i=0, len=wktArray.length; i<len; ++i) {\n - components.push(OpenLayers.Format.WKT.prototype.read.apply(this,[wktArray[i]]));\n - }\n - return components;\n - }\n -\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WKT" \n -}); \n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>14807</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC.js.xml deleted file mode 100644 index 625b077d6d5ab6073f9f8a595e78e68953148cc7..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC.js.xml +++ /dev/null @@ -1,226 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WMC.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Format/Context.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMC\n - * Read and write Web Map Context documents.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.Context>\n - */\n -OpenLayers.Format.WMC = OpenLayers.Class(OpenLayers.Format.Context, {\n - \n - /**\n - * APIProperty: defaultVersion\n - * {String} Version number to assume if none found. Default is "1.1.0".\n - */\n - defaultVersion: "1.1.0",\n -\n - /**\n - * Constructor: OpenLayers.Format.WMC\n - * Create a new parser for Web Map Context documents.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - \n - /**\n - * Method: layerToContext\n - * Create a layer context object given a wms layer object.\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer.WMS>} The layer.\n - *\n - * Returns:\n - * {Object} A layer context object.\n - */\n - layerToContext: function(layer) {\n - var parser = this.getParser();\n - var layerContext = {\n - queryable: layer.queryable,\n - visibility: layer.visibility,\n - name: layer.params["LAYERS"],\n - title: layer.name,\n - "abstract": layer.metadata["abstract"],\n - dataURL: layer.metadata.dataURL,\n - metadataURL: layer.metadataURL,\n - server: {\n - version: layer.params["VERSION"],\n - url: layer.url\n - },\n - maxExtent: layer.maxExtent,\n - transparent: layer.params["TRANSPARENT"],\n - numZoomLevels: layer.numZoomLevels,\n - units: layer.units,\n - isBaseLayer: layer.isBaseLayer,\n - opacity: layer.opacity == 1 ? undefined : layer.opacity,\n - displayInLayerSwitcher: layer.displayInLayerSwitcher,\n - singleTile: layer.singleTile,\n - tileSize: (layer.singleTile || !layer.tileSize) ? \n - undefined : {width: layer.tileSize.w, height: layer.tileSize.h},\n - minScale : (layer.options.resolutions ||\n - layer.options.scales || \n - layer.options.maxResolution || \n - layer.options.minScale) ? \n - layer.minScale : undefined,\n - maxScale : (layer.options.resolutions ||\n - layer.options.scales || \n - layer.options.minResolution || \n - layer.options.maxScale) ? \n - layer.maxScale : undefined,\n - formats: [],\n - styles: [],\n - srs: layer.srs,\n - dimensions: layer.dimensions\n - };\n -\n -\n - if (layer.metadata.servertitle) {\n - layerContext.server.title = layer.metadata.servertitle;\n - }\n -\n - if (layer.metadata.formats && layer.metadata.formats.length > 0) {\n - for (var i=0, len=layer.metadata.formats.length; i<len; i++) {\n - var format = layer.metadata.formats[i];\n - layerContext.formats.push({\n - value: format.value,\n - current: (format.value == layer.params["FORMAT"])\n - });\n - }\n - } else {\n - layerContext.formats.push({\n - value: layer.params["FORMAT"],\n - current: true\n - });\n - }\n -\n - if (layer.metadata.styles && layer.metadata.styles.length > 0) {\n - for (var i=0, len=layer.metadata.styles.length; i<len; i++) {\n - var style = layer.metadata.styles[i];\n - if ((style.href == layer.params["SLD"]) ||\n - (style.body == layer.params["SLD_BODY"]) ||\n - (style.name == layer.params["STYLES"])) {\n - style.current = true;\n - } else {\n - style.current = false;\n - }\n - layerContext.styles.push(style);\n - }\n - } else {\n - layerContext.styles.push({\n - href: layer.params["SLD"],\n - body: layer.params["SLD_BODY"],\n - name: layer.params["STYLES"] || parser.defaultStyleName,\n - title: parser.defaultStyleTitle,\n - current: true\n - });\n - }\n -\n - return layerContext;\n - },\n - \n - /**\n - * Method: toContext\n - * Create a context object free from layer given a map or a\n - * context object.\n - *\n - * Parameters:\n - * obj - {<OpenLayers.Map> | Object} The map or context.\n - *\n - * Returns:\n - * {Object} A context object.\n - */\n - toContext: function(obj) {\n - var context = {};\n - var layers = obj.layers;\n - if (obj.CLASS_NAME == "OpenLayers.Map") {\n - var metadata = obj.metadata || {};\n - context.size = obj.getSize();\n - context.bounds = obj.getExtent();\n - context.projection = obj.projection;\n - context.title = obj.title;\n - context.keywords = metadata.keywords;\n - context["abstract"] = metadata["abstract"];\n - context.logo = metadata.logo;\n - context.descriptionURL = metadata.descriptionURL;\n - context.contactInformation = metadata.contactInformation;\n - context.maxExtent = obj.maxExtent;\n - } else {\n - // copy all obj properties except the "layers" property\n - OpenLayers.Util.applyDefaults(context, obj);\n - if (context.layers != undefined) {\n - delete(context.layers);\n - }\n - }\n -\n - if (context.layersContext == undefined) {\n - context.layersContext = [];\n - }\n -\n - // let\'s convert layers into layersContext object (if any)\n - if (layers != undefined && OpenLayers.Util.isArray(layers)) {\n - for (var i=0, len=layers.length; i<len; i++) {\n - var layer = layers[i];\n - if (layer instanceof OpenLayers.Layer.WMS) {\n - context.layersContext.push(this.layerToContext(layer));\n - }\n - }\n - }\n - return context;\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WMC" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6353</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC.xml deleted file mode 100644 index abc67e3746ac7bc952a3b315870c41fcad5206ee..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>WMC</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/WMC</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC/v1.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC/v1.js.xml deleted file mode 100644 index f67cf907e192baf67f5bf1874602c800b8428e46..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC/v1.js.xml +++ /dev/null @@ -1,1311 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.99</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WMC.js\n - * @requires OpenLayers/Format/XML.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMC.v1\n - * Superclass for WMC version 1 parsers.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - ol: "http://openlayers.org/context",\n - wmc: "http://www.opengis.net/context",\n - sld: "http://www.opengis.net/sld",\n - xlink: "http://www.w3.org/1999/xlink",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance"\n - },\n - \n - /**\n - * Property: schemaLocation\n - * {String} Schema location for a particular minor version.\n - */\n - schemaLocation: "",\n -\n - /**\n - * Method: getNamespacePrefix\n - * Get the namespace prefix for a given uri from the <namespaces> object.\n - *\n - * Returns:\n - * {String} A namespace prefix or null if none found.\n - */\n - getNamespacePrefix: function(uri) {\n - var prefix = null;\n - if(uri == null) {\n - prefix = this.namespaces[this.defaultPrefix];\n - } else {\n - for(prefix in this.namespaces) {\n - if(this.namespaces[prefix] == uri) {\n - break;\n - }\n - }\n - }\n - return prefix;\n - },\n - \n - /**\n - * Property: defaultPrefix\n - */\n - defaultPrefix: "wmc",\n -\n - /**\n - * Property: rootPrefix\n - * {String} Prefix on the root node that maps to the context namespace URI.\n - */\n - rootPrefix: null,\n - \n - /**\n - * Property: defaultStyleName\n - * {String} Style name used if layer has no style param. Default is "".\n - */\n - defaultStyleName: "",\n - \n - /**\n - * Property: defaultStyleTitle\n - * {String} Default style title. Default is "Default".\n - */\n - defaultStyleTitle: "Default",\n - \n - /**\n - * Constructor: OpenLayers.Format.WMC.v1\n - * Instances of this class are not created directly. Use the\n - * <OpenLayers.Format.WMC> constructor instead.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - },\n -\n - /**\n - * Method: read\n - * Read capabilities data from a string, and return a list of layers. \n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Array} List of named layers.\n - */\n - read: function(data) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - var root = data.documentElement;\n - this.rootPrefix = root.prefix;\n - var context = {\n - version: root.getAttribute("version")\n - };\n - this.runChildNodes(context, root);\n - return context;\n - },\n - \n - /**\n - * Method: runChildNodes\n - */\n - runChildNodes: function(obj, node) {\n - var children = node.childNodes;\n - var childNode, processor, prefix, local;\n - for(var i=0, len=children.length; i<len; ++i) {\n - childNode = children[i];\n - if(childNode.nodeType == 1) {\n - prefix = this.getNamespacePrefix(childNode.namespaceURI);\n - local = childNode.nodeName.split(":").pop();\n - processor = this["read_" + prefix + "_" + local];\n - if(processor) {\n - processor.apply(this, [obj, childNode]);\n - }\n - }\n - }\n - },\n - \n - /**\n - * Method: read_wmc_General\n - */\n - read_wmc_General: function(context, node) {\n - this.runChildNodes(context, node);\n - },\n - \n - /**\n - * Method: read_wmc_BoundingBox\n - */\n - read_wmc_BoundingBox: function(context, node) {\n - context.projection = node.getAttribute("SRS");\n - context.bounds = new OpenLayers.Bounds(\n - node.getAttribute("minx"), node.getAttribute("miny"),\n - node.getAttribute("maxx"), node.getAttribute("maxy")\n - );\n - },\n - \n - /**\n - * Method: read_wmc_LayerList\n - */\n - read_wmc_LayerList: function(context, node) {\n - // layersContext is an array containing info for each layer\n - context.layersContext = [];\n - this.runChildNodes(context, node);\n - },\n - \n - /**\n - * Method: read_wmc_Layer\n - */\n - read_wmc_Layer: function(context, node) {\n - var layerContext = {\n - visibility: (node.getAttribute("hidden") != "1"),\n - queryable: (node.getAttribute("queryable") == "1"),\n - formats: [],\n - styles: [],\n - metadata: {}\n - };\n -\n - this.runChildNodes(layerContext, node);\n - // set properties common to multiple objects on layer options/params\n - context.layersContext.push(layerContext);\n - },\n - \n - /**\n - * Method: read_wmc_Extension\n - */\n - read_wmc_Extension: function(obj, node) {\n - this.runChildNodes(obj, node);\n - },\n -\n - /**\n - * Method: read_ol_units\n - */\n - read_ol_units: function(layerContext, node) {\n - layerContext.units = this.getChildValue(node);\n - },\n - \n - /**\n - * Method: read_ol_maxExtent\n - */\n - read_ol_maxExtent: function(obj, node) {\n - var bounds = new OpenLayers.Bounds(\n - node.getAttribute("minx"), node.getAttribute("miny"),\n - node.getAttribute("maxx"), node.getAttribute("maxy")\n - );\n - obj.maxExtent = bounds;\n - },\n - \n - /**\n - * Method: read_ol_transparent\n - */\n - read_ol_transparent: function(layerContext, node) {\n - layerContext.transparent = this.getChildValue(node);\n - },\n -\n - /**\n - * Method: read_ol_numZoomLevels\n - */\n - read_ol_numZoomLevels: function(layerContext, node) {\n - layerContext.numZoomLevels = parseInt(this.getChildValue(node));\n - },\n -\n - /**\n - * Method: read_ol_opacity\n - */\n - read_ol_opacity: function(layerContext, node) {\n - layerContext.opacity = parseFloat(this.getChildValue(node));\n - },\n -\n - /**\n - * Method: read_ol_singleTile\n - */\n - read_ol_singleTile: function(layerContext, node) {\n - layerContext.singleTile = (this.getChildValue(node) == "true");\n - },\n -\n - /**\n - * Method: read_ol_tileSize\n - */\n - read_ol_tileSize: function(layerContext, node) {\n - var obj = {"width": node.getAttribute("width"), "height": node.getAttribute("height")};\n - layerContext.tileSize = obj;\n - },\n - \n - /**\n - * Method: read_ol_isBaseLayer\n - */\n - read_ol_isBaseLayer: function(layerContext, node) {\n - layerContext.isBaseLayer = (this.getChildValue(node) == "true");\n - },\n -\n - /**\n - * Method: read_ol_displayInLayerSwitcher\n - */\n - read_ol_displayInLayerSwitcher: function(layerContext, node) {\n - layerContext.displayInLayerSwitcher = (this.getChildValue(node) == "true");\n - },\n -\n - /**\n - * Method: read_wmc_Server\n - */\n - read_wmc_Server: function(layerContext, node) {\n - layerContext.version = node.getAttribute("version");\n - layerContext.url = this.getOnlineResource_href(node);\n - layerContext.metadata.servertitle = node.getAttribute("title");\n - },\n -\n - /**\n - * Method: read_wmc_FormatList\n - */\n - read_wmc_FormatList: function(layerContext, node) {\n - this.runChildNodes(layerContext, node);\n - },\n -\n - /**\n - * Method: read_wmc_Format\n - */\n - read_wmc_Format: function(layerContext, node) {\n - var format = {\n - value: this.getChildValue(node)\n - };\n - if(node.getAttribute("current") == "1") {\n - format.current = true;\n - }\n - layerContext.formats.push(format);\n - },\n - \n - /**\n - * Method: read_wmc_StyleList\n - */\n - read_wmc_StyleList: function(layerContext, node) {\n - this.runChildNodes(layerContext, node);\n - },\n -\n - /**\n - * Method: read_wmc_Style\n - */\n - read_wmc_Style: function(layerContext, node) {\n - var style = {};\n - this.runChildNodes(style, node);\n - if(node.getAttribute("current") == "1") {\n - style.current = true;\n - }\n - layerContext.styles.push(style);\n - },\n - \n - /**\n - * Method: read_wmc_SLD\n - */\n - read_wmc_SLD: function(style, node) {\n - this.runChildNodes(style, node);\n - // style either comes back with an href or a body property\n - },\n - \n - /**\n - * Method: read_sld_StyledLayerDescriptor\n - */\n - read_sld_StyledLayerDescriptor: function(sld, node) {\n - var xml = OpenLayers.Format.XML.prototype.write.apply(this, [node]);\n - sld.body = xml;\n - },\n -\n - /**\n - * Method: read_sld_FeatureTypeStyle\n - */\n - read_sld_FeatureTypeStyle: function(sld, node) {\n - var xml = OpenLayers.Format.XML.prototype.write.apply(this, [node]);\n - sld.body = xml;\n - },\n -\n - /**\n - * Method: read_wmc_OnlineResource\n - */\n - read_wmc_OnlineResource: function(obj, node) {\n - obj.href = this.getAttributeNS(\n - node, this.namespaces.xlink, "href"\n - );\n - },\n - \n - /**\n - * Method: read_wmc_Name\n - */\n - read_wmc_Name: function(obj, node) {\n - var name = this.getChildValue(node);\n - if(name) {\n - obj.name = name;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_Title\n - */\n - read_wmc_Title: function(obj, node) {\n - var title = this.getChildValue(node);\n - if(title) {\n - obj.title = title;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_MetadataURL\n - */\n - read_wmc_MetadataURL: function(layerContext, node) {\n - layerContext.metadataURL = this.getOnlineResource_href(node);\n - },\n -\n - /**\n - * Method: read_wmc_KeywordList\n - */\n - read_wmc_KeywordList: function(context, node) {\n - context.keywords = [];\n - this.runChildNodes(context.keywords, node);\n - },\n -\n - /**\n - * Method: read_wmc_Keyword\n - */\n - read_wmc_Keyword: function(keywords, node) {\n - keywords.push(this.getChildValue(node));\n - },\n -\n - /**\n - * Method: read_wmc_Abstract\n - */\n - read_wmc_Abstract: function(obj, node) {\n - var abst = this.getChildValue(node);\n - if(abst) {\n - obj["abstract"] = abst;\n - }\n - },\n - \n - /**\n - * Method: read_wmc_LogoURL\n - */\n - read_wmc_LogoURL: function(context, node) {\n - context.logo = {\n - width: node.getAttribute("width"),\n - height: node.getAttribute("height"),\n - format: node.getAttribute("format"),\n - href: this.getOnlineResource_href(node)\n - };\n - },\n -\n - /**\n - * Method: read_wmc_DescriptionURL\n - */\n - read_wmc_DescriptionURL: function(context, node) {\n - context.descriptionURL = this.getOnlineResource_href(node);\n - },\n -\n - /**\n - * Method: read_wmc_ContactInformation\n - */\n - read_wmc_ContactInformation: function(obj, node) {\n - var contact = {};\n - this.runChildNodes(contact, node);\n - obj.contactInformation = contact;\n - },\n -\n - /**\n - * Method: read_wmc_ContactPersonPrimary\n - */\n - read_wmc_ContactPersonPrimary: function(contact, node) {\n - var personPrimary = {};\n - this.runChildNodes(personPrimary, node);\n - contact.personPrimary = personPrimary;\n - },\n -\n - /**\n - * Method: read_wmc_ContactPerson\n - */\n - read_wmc_ContactPerson: function(primaryPerson, node) {\n - var person = this.getChildValue(node);\n - if (person) {\n - primaryPerson.person = person;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_ContactOrganization\n - */\n - read_wmc_ContactOrganization: function(primaryPerson, node) {\n - var organization = this.getChildValue(node);\n - if (organization) {\n - primaryPerson.organization = organization;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_ContactPosition\n - */\n - read_wmc_ContactPosition: function(contact, node) {\n - var position = this.getChildValue(node);\n - if (position) {\n - contact.position = position;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_ContactAddress\n - */\n - read_wmc_ContactAddress: function(contact, node) {\n - var contactAddress = {};\n - this.runChildNodes(contactAddress, node);\n - contact.contactAddress = contactAddress;\n - },\n -\n - /**\n - * Method: read_wmc_AddressType\n - */\n - read_wmc_AddressType: function(contactAddress, node) {\n - var type = this.getChildValue(node);\n - if (type) {\n - contactAddress.type = type;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_Address\n - */\n - read_wmc_Address: function(contactAddress, node) {\n - var address = this.getChildValue(node);\n - if (address) {\n - contactAddress.address = address;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_City\n - */\n - read_wmc_City: function(contactAddress, node) {\n - var city = this.getChildValue(node);\n - if (city) {\n - contactAddress.city = city;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_StateOrProvince\n - */\n - read_wmc_StateOrProvince: function(contactAddress, node) {\n - var stateOrProvince = this.getChildValue(node);\n - if (stateOrProvince) {\n - contactAddress.stateOrProvince = stateOrProvince;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_PostCode\n - */\n - read_wmc_PostCode: function(contactAddress, node) {\n - var postcode = this.getChildValue(node);\n - if (postcode) {\n - contactAddress.postcode = postcode;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_Country\n - */\n - read_wmc_Country: function(contactAddress, node) {\n - var country = this.getChildValue(node);\n - if (country) {\n - contactAddress.country = country;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_ContactVoiceTelephone\n - */\n - read_wmc_ContactVoiceTelephone: function(contact, node) {\n - var phone = this.getChildValue(node);\n - if (phone) {\n - contact.phone = phone;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_ContactFacsimileTelephone\n - */\n - read_wmc_ContactFacsimileTelephone: function(contact, node) {\n - var fax = this.getChildValue(node);\n - if (fax) {\n - contact.fax = fax;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_ContactElectronicMailAddress\n - */\n - read_wmc_ContactElectronicMailAddress: function(contact, node) {\n - var email = this.getChildValue(node);\n - if (email) {\n - contact.email = email;\n - }\n - },\n -\n - /**\n - * Method: read_wmc_DataURL\n - */\n - read_wmc_DataURL: function(layerContext, node) {\n - layerContext.dataURL = this.getOnlineResource_href(node);\n - },\n -\n - /**\n - * Method: read_wmc_LegendURL\n - */\n - read_wmc_LegendURL: function(style, node) {\n - var legend = {\n - width: node.getAttribute(\'width\'),\n - height: node.getAttribute(\'height\'),\n - format: node.getAttribute(\'format\'),\n - href: this.getOnlineResource_href(node)\n - };\n - style.legend = legend;\n - },\n - \n - /**\n - * Method: read_wmc_DimensionList\n - */\n - read_wmc_DimensionList: function(layerContext, node) {\n - layerContext.dimensions = {};\n - this.runChildNodes(layerContext.dimensions, node);\n - },\n - /**\n - * Method: read_wmc_Dimension\n - */\n - read_wmc_Dimension: function(dimensions, node) {\n - var name = node.getAttribute("name").toLowerCase();\n -\n - var dim = {\n - name: name,\n - units: node.getAttribute("units") || "",\n - unitSymbol: node.getAttribute("unitSymbol") || "",\n - userValue: node.getAttribute("userValue") || "",\n - nearestValue: node.getAttribute("nearestValue") === "1",\n - multipleValues: node.getAttribute("multipleValues") === "1",\n - current: node.getAttribute("current") === "1",\n - "default": node.getAttribute("default") || ""\n - };\n - var values = this.getChildValue(node);\n - dim.values = values.split(",");\n -\n - dimensions[dim.name] = dim;\n - },\n -\n - /**\n - * Method: write\n - *\n - * Parameters:\n - * context - {Object} An object representing the map context.\n - * options - {Object} Optional object.\n - *\n - * Returns:\n - * {String} A WMC document string.\n - */\n - write: function(context, options) {\n - var root = this.createElementDefaultNS("ViewContext");\n - this.setAttributes(root, {\n - version: this.VERSION,\n - id: (options && typeof options.id == "string") ?\n - options.id :\n - OpenLayers.Util.createUniqueID("OpenLayers_Context_")\n - });\n - \n - // add schemaLocation attribute\n - this.setAttributeNS(\n - root, this.namespaces.xsi,\n - "xsi:schemaLocation", this.schemaLocation\n - );\n - \n - // required General element\n - root.appendChild(this.write_wmc_General(context));\n -\n - // required LayerList element\n - root.appendChild(this.write_wmc_LayerList(context));\n -\n - return OpenLayers.Format.XML.prototype.write.apply(this, [root]);\n - },\n - \n - /**\n - * Method: createElementDefaultNS\n - * Shorthand for createElementNS with namespace from <defaultPrefix>.\n - * Can optionally be used to set attributes and a text child value.\n - *\n - * Parameters:\n - * name - {String} The qualified node name.\n - * childValue - {String} Optional value for text child node.\n - * attributes - {Object} Optional object representing attributes.\n - *\n - * Returns:\n - * {Element} An element node.\n - */\n - createElementDefaultNS: function(name, childValue, attributes) {\n - var node = this.createElementNS(\n - this.namespaces[this.defaultPrefix],\n - name\n - );\n - if(childValue) {\n - node.appendChild(this.createTextNode(childValue));\n - }\n - if(attributes) {\n - this.setAttributes(node, attributes);\n - }\n - return node;\n - },\n - \n - /**\n - * Method: setAttributes\n - * Set multiple attributes given key value pairs from an object.\n - *\n - * Parameters:\n - * node - {Element} An element node.\n - * obj - {Object} An object whose properties represent attribute names and\n - * values represent attribute values.\n - */\n - setAttributes: function(node, obj) {\n - var value;\n - for(var name in obj) {\n - value = obj[name].toString();\n - if(value.match(/[A-Z]/)) {\n - // safari lowercases attributes with setAttribute\n - this.setAttributeNS(node, null, name, value);\n - } else {\n - node.setAttribute(name, value);\n - }\n - }\n - },\n -\n - /**\n - * Method: write_wmc_General\n - * Create a General node given an context object.\n - *\n - * Parameters:\n - * context - {Object} Context object.\n - *\n - * Returns:\n - * {Element} A WMC General element node.\n - */\n - write_wmc_General: function(context) {\n - var node = this.createElementDefaultNS("General");\n -\n - // optional Window element\n - if(context.size) {\n - node.appendChild(this.createElementDefaultNS(\n - "Window", null,\n - {\n - width: context.size.w,\n - height: context.size.h\n - }\n - ));\n - }\n - \n - // required BoundingBox element\n - var bounds = context.bounds;\n - node.appendChild(this.createElementDefaultNS(\n - "BoundingBox", null,\n - {\n - minx: bounds.left.toPrecision(18),\n - miny: bounds.bottom.toPrecision(18),\n - maxx: bounds.right.toPrecision(18),\n - maxy: bounds.top.toPrecision(18),\n - SRS: context.projection\n - }\n - ));\n -\n - // required Title element\n - node.appendChild(this.createElementDefaultNS(\n - "Title", context.title\n - ));\n - \n - // optional KeywordList element\n - if (context.keywords) {\n - node.appendChild(this.write_wmc_KeywordList(context.keywords));\n - }\n -\n - // optional Abstract element\n - if (context["abstract"]) {\n - node.appendChild(this.createElementDefaultNS(\n - "Abstract", context["abstract"]\n - ));\n - }\n -\n - // Optional LogoURL element\n - if (context.logo) {\n - node.appendChild(this.write_wmc_URLType("LogoURL", context.logo.href, context.logo));\n - }\n -\n - // Optional DescriptionURL element\n - if (context.descriptionURL) {\n - node.appendChild(this.write_wmc_URLType("DescriptionURL", context.descriptionURL));\n - }\n -\n - // Optional ContactInformation element\n - if (context.contactInformation) {\n - node.appendChild(this.write_wmc_ContactInformation(context.contactInformation));\n - }\n -\n - // OpenLayers specific map properties\n - node.appendChild(this.write_ol_MapExtension(context));\n - \n - return node;\n - },\n - \n - /**\n - * Method: write_wmc_KeywordList\n - */\n - write_wmc_KeywordList: function(keywords) {\n - var node = this.createElementDefaultNS("KeywordList");\n -\n - for (var i=0, len=keywords.length; i<len; i++) {\n - node.appendChild(this.createElementDefaultNS(\n - "Keyword", keywords[i]\n - ));\n - }\n - return node;\n - },\n - /**\n - * Method: write_wmc_ContactInformation\n - */\n - write_wmc_ContactInformation: function(contact) {\n - var node = this.createElementDefaultNS("ContactInformation");\n -\n - if (contact.personPrimary) {\n - node.appendChild(this.write_wmc_ContactPersonPrimary(contact.personPrimary));\n - }\n - if (contact.position) {\n - node.appendChild(this.createElementDefaultNS(\n - "ContactPosition", contact.position\n - ));\n - }\n - if (contact.contactAddress) {\n - node.appendChild(this.write_wmc_ContactAddress(contact.contactAddress));\n - }\n - if (contact.phone) {\n - node.appendChild(this.createElementDefaultNS(\n - "ContactVoiceTelephone", contact.phone\n - ));\n - }\n - if (contact.fax) {\n - node.appendChild(this.createElementDefaultNS(\n - "ContactFacsimileTelephone", contact.fax\n - ));\n - }\n - if (contact.email) {\n - node.appendChild(this.createElementDefaultNS(\n - "ContactElectronicMailAddress", contact.email\n - ));\n - }\n - return node;\n - },\n -\n - /**\n - * Method: write_wmc_ContactPersonPrimary\n - */\n - write_wmc_ContactPersonPrimary: function(personPrimary) {\n - var node = this.createElementDefaultNS("ContactPersonPrimary");\n - if (personPrimary.person) {\n - node.appendChild(this.createElementDefaultNS(\n - "ContactPerson", personPrimary.person\n - ));\n - }\n - if (personPrimary.organization) {\n - node.appendChild(this.createElementDefaultNS(\n - "ContactOrganization", personPrimary.organization\n - ));\n - }\n - return node;\n - },\n -\n - /**\n - * Method: write_wmc_ContactAddress\n - */\n - write_wmc_ContactAddress: function(contactAddress) {\n - var node = this.createElementDefaultNS("ContactAddress");\n - if (contactAddress.type) {\n - node.appendChild(this.createElementDefaultNS(\n - "AddressType", contactAddress.type\n - ));\n - }\n - if (contactAddress.address) {\n - node.appendChild(this.createElementDefaultNS(\n - "Address", contactAddress.address\n - ));\n - }\n - if (contactAddress.city) {\n - node.appendChild(this.createElementDefaultNS(\n - "City", contactAddress.city\n - ));\n - }\n - if (contactAddress.stateOrProvince) {\n - node.appendChild(this.createElementDefaultNS(\n - "StateOrProvince", contactAddress.stateOrProvince\n - ));\n - }\n - if (contactAddress.postcode) {\n - node.appendChild(this.createElementDefaultNS(\n - "PostCode", contactAddress.postcode\n - ));\n - }\n - if (contactAddress.country) {\n - node.appendChild(this.createElementDefaultNS(\n - "Country", contactAddress.country\n - ));\n - }\n - return node;\n - },\n -\n - /**\n - * Method: write_ol_MapExtension\n - */\n - write_ol_MapExtension: function(context) {\n - var node = this.createElementDefaultNS("Extension");\n - \n - var bounds = context.maxExtent;\n - if(bounds) {\n - var maxExtent = this.createElementNS(\n - this.namespaces.ol, "ol:maxExtent"\n - );\n - this.setAttributes(maxExtent, {\n - minx: bounds.left.toPrecision(18),\n - miny: bounds.bottom.toPrecision(18),\n - maxx: bounds.right.toPrecision(18),\n - maxy: bounds.top.toPrecision(18)\n - });\n - node.appendChild(maxExtent);\n - }\n - \n - return node;\n - },\n - \n - /**\n - * Method: write_wmc_LayerList\n - * Create a LayerList node given an context object.\n - *\n - * Parameters:\n - * context - {Object} Context object.\n - *\n - * Returns:\n - * {Element} A WMC LayerList element node.\n - */\n - write_wmc_LayerList: function(context) {\n - var list = this.createElementDefaultNS("LayerList");\n - \n - for(var i=0, len=context.layersContext.length; i<len; ++i) {\n - list.appendChild(this.write_wmc_Layer(context.layersContext[i]));\n - }\n - \n - return list;\n - },\n -\n - /**\n - * Method: write_wmc_Layer\n - * Create a Layer node given a layer context object.\n - *\n - * Parameters:\n - * context - {Object} A layer context object.}\n - *\n - * Returns:\n - * {Element} A WMC Layer element node.\n - */\n - write_wmc_Layer: function(context) {\n - var node = this.createElementDefaultNS(\n - "Layer", null, {\n - queryable: context.queryable ? "1" : "0",\n - hidden: context.visibility ? "0" : "1"\n - }\n - );\n - \n - // required Server element\n - node.appendChild(this.write_wmc_Server(context));\n -\n - // required Name element\n - node.appendChild(this.createElementDefaultNS(\n - "Name", context.name\n - ));\n - \n - // required Title element\n - node.appendChild(this.createElementDefaultNS(\n - "Title", context.title\n - ));\n -\n - // optional Abstract element\n - if (context["abstract"]) {\n - node.appendChild(this.createElementDefaultNS(\n - "Abstract", context["abstract"]\n - ));\n - }\n -\n - // optional DataURL element\n - if (context.dataURL) {\n - node.appendChild(this.write_wmc_URLType("DataURL", context.dataURL));\n - }\n -\n - // optional MetadataURL element\n - if (context.metadataURL) {\n - node.appendChild(this.write_wmc_URLType("MetadataURL", context.metadataURL));\n - }\n - \n - return node;\n - },\n - \n - /**\n - * Method: write_wmc_LayerExtension\n - * Add OpenLayers specific layer parameters to an Extension element.\n - *\n - * Parameters:\n - * context - {Object} A layer context object.\n - *\n - * Returns:\n - * {Element} A WMC Extension element (for a layer).\n - */\n - write_wmc_LayerExtension: function(context) {\n - var node = this.createElementDefaultNS("Extension");\n - \n - var bounds = context.maxExtent;\n - var maxExtent = this.createElementNS(\n - this.namespaces.ol, "ol:maxExtent"\n - );\n - this.setAttributes(maxExtent, {\n - minx: bounds.left.toPrecision(18),\n - miny: bounds.bottom.toPrecision(18),\n - maxx: bounds.right.toPrecision(18),\n - maxy: bounds.top.toPrecision(18)\n - });\n - node.appendChild(maxExtent);\n - \n - if (context.tileSize && !context.singleTile) {\n - var size = this.createElementNS(\n - this.namespaces.ol, "ol:tileSize"\n - );\n - this.setAttributes(size, context.tileSize);\n - node.appendChild(size);\n - }\n - \n - var properties = [\n - "transparent", "numZoomLevels", "units", "isBaseLayer",\n - "opacity", "displayInLayerSwitcher", "singleTile"\n - ];\n - var child;\n - for(var i=0, len=properties.length; i<len; ++i) {\n - child = this.createOLPropertyNode(context, properties[i]);\n - if(child) {\n - node.appendChild(child);\n - }\n - }\n -\n - return node;\n - },\n - \n - /**\n - * Method: createOLPropertyNode\n - * Create a node representing an OpenLayers property. If the property is\n - * null or undefined, null will be returned.\n - *\n - * Parameters:\n - * obj - {Object} An object.\n - * prop - {String} A property.\n - *\n - * Returns:\n - * {Element} A property node.\n - */\n - createOLPropertyNode: function(obj, prop) {\n - var node = null;\n - if(obj[prop] != null) {\n - node = this.createElementNS(this.namespaces.ol, "ol:" + prop);\n - node.appendChild(this.createTextNode(obj[prop].toString()));\n - }\n - return node;\n - },\n -\n - /**\n - * Method: write_wmc_Server\n - * Create a Server node given a layer context object.\n - *\n - * Parameters:\n - * context - {Object} Layer context object.\n - *\n - * Returns:\n - * {Element} A WMC Server element node.\n - */\n - write_wmc_Server: function(context) {\n - var server = context.server;\n - var node = this.createElementDefaultNS("Server");\n - var attributes = {\n - service: "OGC:WMS",\n - version: server.version\n - };\n - if (server.title) {\n - attributes.title = server.title;\n - }\n - this.setAttributes(node, attributes);\n - \n - // required OnlineResource element\n - node.appendChild(this.write_wmc_OnlineResource(server.url));\n - \n - return node;\n - },\n -\n - /**\n - * Method: write_wmc_URLType\n - * Create a LogoURL/DescriptionURL/MetadataURL/DataURL/LegendURL node given a object and elementName.\n - *\n - * Parameters:\n - * elName - {String} Name of element (LogoURL/DescriptionURL/MetadataURL/LegendURL)\n - * url - {String} URL string value\n - * attr - {Object} Optional attributes (width, height, format)\n - *\n - * Returns:\n - * {Element} A WMC element node.\n - */\n - write_wmc_URLType: function(elName, url, attr) {\n - var node = this.createElementDefaultNS(elName);\n - node.appendChild(this.write_wmc_OnlineResource(url));\n - if (attr) {\n - var optionalAttributes = ["width", "height", "format"];\n - for (var i=0; i<optionalAttributes.length; i++) {\n - if (optionalAttributes[i] in attr) {\n - node.setAttribute(optionalAttributes[i], attr[optionalAttributes[i]]);\n - }\n - }\n - }\n - return node;\n - },\n -\n - /**\n - * Method: write_wmc_DimensionList\n - */\n - write_wmc_DimensionList: function(context) {\n - var node = this.createElementDefaultNS("DimensionList");\n - var required_attributes = {\n - name: true,\n - units: true,\n - unitSymbol: true,\n - userValue: true\n - };\n - for (var dim in context.dimensions) {\n - var attributes = {};\n - var dimension = context.dimensions[dim];\n - for (var name in dimension) {\n - if (typeof dimension[name] == "boolean") {\n - attributes[name] = Number(dimension[name]);\n - } else {\n - attributes[name] = dimension[name];\n - }\n - }\n - var values = "";\n - if (attributes.values) {\n - values = attributes.values.join(",");\n - delete attributes.values;\n - }\n -\n - node.appendChild(this.createElementDefaultNS(\n - "Dimension", values, attributes\n - ));\n - }\n - return node;\n - },\n -\n - /**\n - * Method: write_wmc_FormatList\n - * Create a FormatList node given a layer context.\n - *\n - * Parameters:\n - * context - {Object} Layer context object.\n - *\n - * Returns:\n - * {Element} A WMC FormatList element node.\n - */\n - write_wmc_FormatList: function(context) {\n - var node = this.createElementDefaultNS("FormatList");\n - for (var i=0, len=context.formats.length; i<len; i++) {\n - var format = context.formats[i];\n - node.appendChild(this.createElementDefaultNS(\n - "Format",\n - format.value,\n - (format.current && format.current == true) ?\n - {current: "1"} : null\n - ));\n - }\n -\n - return node;\n - },\n -\n - /**\n - * Method: write_wmc_StyleList\n - * Create a StyleList node given a layer context.\n - *\n - * Parameters:\n - * layer - {Object} Layer context object.\n - *\n - * Returns:\n - * {Element} A WMC StyleList element node.\n - */\n - write_wmc_StyleList: function(layer) {\n - var node = this.createElementDefaultNS("StyleList");\n -\n - var styles = layer.styles;\n - if (styles && OpenLayers.Util.isArray(styles)) {\n - var sld;\n - for (var i=0, len=styles.length; i<len; i++) {\n - var s = styles[i];\n - // three style types to consider\n - // [1] linked SLD\n - // [2] inline SLD\n - // [3] named style\n - // running child nodes always gets name, optionally gets href or body\n - var style = this.createElementDefaultNS(\n - "Style",\n - null,\n - (s.current && s.current == true) ?\n - {current: "1"} : null\n - );\n - if(s.href) { // [1]\n - sld = this.createElementDefaultNS("SLD");\n - // Name is optional.\n - if (s.name) {\n - sld.appendChild(this.createElementDefaultNS("Name", s.name));\n - }\n - // Title is optional.\n - if (s.title) {\n - sld.appendChild(this.createElementDefaultNS("Title", s.title));\n - }\n - // LegendURL is optional\n - if (s.legend) {\n - sld.appendChild(this.write_wmc_URLType("LegendURL", s.legend.href, s.legend));\n - }\n -\n - var link = this.write_wmc_OnlineResource(s.href);\n - sld.appendChild(link);\n - style.appendChild(sld);\n - } else if(s.body) { // [2]\n - sld = this.createElementDefaultNS("SLD");\n - // Name is optional.\n - if (s.name) {\n - sld.appendChild(this.createElementDefaultNS("Name", s.name));\n - }\n - // Title is optional.\n - if (s.title) {\n - sld.appendChild(this.createElementDefaultNS("Title", s.title));\n - }\n - // LegendURL is optional\n - if (s.legend) {\n - sld.appendChild(this.write_wmc_URLType("LegendURL", s.legend.href, s.legend));\n - }\n -\n - // read in body as xml doc - assume proper namespace declarations\n - var doc = OpenLayers.Format.XML.prototype.read.apply(this, [s.body]);\n - // append to StyledLayerDescriptor node\n - var imported = doc.documentElement;\n - if(sld.ownerDocument && sld.ownerDocument.importNode) {\n - imported = sld.ownerDocument.importNode(imported, true);\n - }\n - sld.appendChild(imported);\n - style.appendChild(sld); \n - } else { // [3]\n - // both Name and Title are required.\n - style.appendChild(this.createElementDefaultNS("Name", s.name));\n - style.appendChild(this.createElementDefaultNS("Title", s.title));\n - // Abstract is optional\n - if (s[\'abstract\']) { // abstract is a js keyword\n - style.appendChild(this.createElementDefaultNS(\n - "Abstract", s[\'abstract\']\n - ));\n - }\n - // LegendURL is optional\n - if (s.legend) {\n - style.appendChild(this.write_wmc_URLType("LegendURL", s.legend.href, s.legend));\n - }\n - }\n - node.appendChild(style);\n - }\n - }\n -\n - return node;\n - },\n -\n - /**\n - * Method: write_wmc_OnlineResource\n - * Create an OnlineResource node given a URL.\n - *\n - * Parameters:\n - * href - {String} URL for the resource.\n - *\n - * Returns:\n - * {Element} A WMC OnlineResource element node.\n - */\n - write_wmc_OnlineResource: function(href) {\n - var node = this.createElementDefaultNS("OnlineResource");\n - this.setAttributeNS(node, this.namespaces.xlink, "xlink:type", "simple");\n - this.setAttributeNS(node, this.namespaces.xlink, "xlink:href", href);\n - return node;\n - },\n -\n - /**\n - * Method: getOnlineResource_href\n - */\n - getOnlineResource_href: function(node) {\n - var object = {};\n - var links = node.getElementsByTagName("OnlineResource");\n - if(links.length > 0) {\n - this.read_wmc_OnlineResource(object, links[0]);\n - }\n - return object.href;\n - },\n -\n -\n - CLASS_NAME: "OpenLayers.Format.WMC.v1" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>38512</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC/v1_0_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC/v1_0_0.js.xml deleted file mode 100644 index 5a95f2aa8056618ad6d405a43c4148f09f7e6078..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC/v1_0_0.js.xml +++ /dev/null @@ -1,148 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.99</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_0_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WMC/v1.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMC.v1_0_0\n - * Read and write WMC version 1.0.0.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.WMC.v1>\n - */\n -OpenLayers.Format.WMC.v1_0_0 = OpenLayers.Class(\n - OpenLayers.Format.WMC.v1, {\n - \n - /**\n - * Constant: VERSION\n - * {String} 1.0.0\n - */\n - VERSION: "1.0.0",\n - \n - /**\n - * Property: schemaLocation\n - * {String} http://www.opengis.net/context\n - * http://schemas.opengis.net/context/1.0.0/context.xsd\n - */\n - schemaLocation: "http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd",\n -\n - /**\n - * Constructor: OpenLayers.Format.WMC.v1_0_0\n - * Instances of this class are not created directly. Use the\n - * <OpenLayers.Format.WMC> constructor instead.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.WMC.v1.prototype.initialize.apply(\n - this, [options]\n - );\n - },\n -\n - /**\n - * Method: read_wmc_SRS\n - */\n - read_wmc_SRS: function(layerContext, node) {\n - var srs = this.getChildValue(node);\n - if (typeof layerContext.projections != "object") {\n - layerContext.projections = {};\n - }\n - var values = srs.split(/ +/);\n - for (var i=0, len=values.length; i<len; i++) {\n - layerContext.projections[values[i]] = true;\n - }\n - },\n -\n - /**\n - * Method: write_wmc_Layer\n - * Create a Layer node given a layer context object. This method adds\n - * elements specific to version 1.0.0.\n - *\n - * Parameters:\n - * context - {Object} A layer context object.}\n - *\n - * Returns:\n - * {Element} A WMC Layer element node.\n - */\n - write_wmc_Layer: function(context) {\n - var node = OpenLayers.Format.WMC.v1.prototype.write_wmc_Layer.apply(\n - this, [context]\n - );\n - \n - // optional SRS element(s)\n - if (context.srs) {\n - var projections = [];\n - for(var name in context.srs) {\n - projections.push(name);\n - }\n - node.appendChild(this.createElementDefaultNS("SRS", projections.join(" ")));\n - }\n -\n - // optional FormatList element\n - node.appendChild(this.write_wmc_FormatList(context));\n -\n - // optional StyleList element\n - node.appendChild(this.write_wmc_StyleList(context));\n - \n - // optional DimensionList element\n - if (context.dimensions) {\n - node.appendChild(this.write_wmc_DimensionList(context));\n - }\n -\n - // OpenLayers specific properties go in an Extension element\n - node.appendChild(this.write_wmc_LayerExtension(context));\n - }, \n -\n - CLASS_NAME: "OpenLayers.Format.WMC.v1_0_0" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3097</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC/v1_1_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC/v1_1_0.js.xml deleted file mode 100644 index 6e1789630b224cd50d6a568ac55a9b8f56e3956e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMC/v1_1_0.js.xml +++ /dev/null @@ -1,193 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.99</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_1_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WMC/v1.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMC.v1_1_0\n - * Read and write WMC version 1.1.0.\n - *\n - * Differences between 1.1.0 and 1.0.0:\n - * - 1.1.0 Layers have optional sld:MinScaleDenominator and\n - * sld:MaxScaleDenominator\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.WMC.v1>\n - */\n -OpenLayers.Format.WMC.v1_1_0 = OpenLayers.Class(\n - OpenLayers.Format.WMC.v1, {\n - \n - /**\n - * Constant: VERSION\n - * {String} 1.1.0\n - */\n - VERSION: "1.1.0",\n -\n - /**\n - * Property: schemaLocation\n - * {String} http://www.opengis.net/context\n - * http://schemas.opengis.net/context/1.1.0/context.xsd\n - */\n - schemaLocation: "http://www.opengis.net/context http://schemas.opengis.net/context/1.1.0/context.xsd",\n -\n - /**\n - * Constructor: OpenLayers.Format.WMC.v1_1_0\n - * Instances of this class are not created directly. Use the\n - * <OpenLayers.Format.WMC> constructor instead.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.WMC.v1.prototype.initialize.apply(\n - this, [options]\n - );\n - },\n -\n - /**\n - * Method: read_sld_MinScaleDenominator\n - * Read a sld:MinScaleDenominator node.\n - *\n - * Parameters:\n - * layerContext - {Object} An object representing a layer.\n - * node - {Element} An element node.\n - */\n - read_sld_MinScaleDenominator: function(layerContext, node) {\n - var minScaleDenominator = parseFloat(this.getChildValue(node));\n - if (minScaleDenominator > 0) {\n - layerContext.maxScale = minScaleDenominator;\n - }\n - },\n -\n - /**\n - * Method: read_sld_MaxScaleDenominator\n - * Read a sld:MaxScaleDenominator node.\n - *\n - * Parameters:\n - * layerContext - {Object} An object representing a layer.\n - * node - {Element} An element node.\n - */\n - read_sld_MaxScaleDenominator: function(layerContext, node) {\n - layerContext.minScale = parseFloat(this.getChildValue(node));\n - },\n -\n - /**\n - * Method: read_wmc_SRS\n - */\n - read_wmc_SRS: function(layerContext, node) {\n - if (! ("srs" in layerContext)) {\n - layerContext.srs = {};\n - }\n - layerContext.srs[this.getChildValue(node)] = true;\n - },\n -\n - /**\n - * Method: write_wmc_Layer\n - * Create a Layer node given a layer context object. This method adds\n - * elements specific to version 1.1.0.\n - *\n - * Parameters:\n - * context - {Object} A layer context object.}\n - *\n - * Returns:\n - * {Element} A WMC Layer element node.\n - */\n - write_wmc_Layer: function(context) {\n - var node = OpenLayers.Format.WMC.v1.prototype.write_wmc_Layer.apply(\n - this, [context]\n - );\n - \n - // min/max scale denominator elements go before the 4th element in v1\n - if(context.maxScale) {\n - var minSD = this.createElementNS(\n - this.namespaces.sld, "sld:MinScaleDenominator"\n - );\n - minSD.appendChild(this.createTextNode(context.maxScale.toPrecision(16)));\n - node.appendChild(minSD);\n - }\n - \n - if(context.minScale) {\n - var maxSD = this.createElementNS(\n - this.namespaces.sld, "sld:MaxScaleDenominator"\n - );\n - maxSD.appendChild(this.createTextNode(context.minScale.toPrecision(16)));\n - node.appendChild(maxSD);\n - }\n -\n - // optional SRS element(s)\n - if (context.srs) {\n - for(var name in context.srs) {\n - node.appendChild(this.createElementDefaultNS("SRS", name));\n - }\n - }\n -\n - // optional FormatList element\n - node.appendChild(this.write_wmc_FormatList(context));\n -\n - // optional StyleList element\n - node.appendChild(this.write_wmc_StyleList(context));\n - \n - // optional DimensionList element\n - if (context.dimensions) {\n - node.appendChild(this.write_wmc_DimensionList(context));\n - }\n -\n - // OpenLayers specific properties go in an Extension element\n - node.appendChild(this.write_wmc_LayerExtension(context));\n - \n - return node;\n - \n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WMC.v1_1_0" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4538</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities.js.xml deleted file mode 100644 index 86b41cc5f899ab2f575ad00adcb4061c495ad4d8..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities.js.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WMSCapabilities.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML/VersionedOGC.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMSCapabilities\n - * Read WMS Capabilities.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML.VersionedOGC>\n - */\n -OpenLayers.Format.WMSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {\n - \n - /**\n - * APIProperty: defaultVersion\n - * {String} Version number to assume if none found. Default is "1.1.1".\n - */\n - defaultVersion: "1.1.1",\n - \n - /**\n - * APIProperty: profile\n - * {String} If provided, use a custom profile.\n - *\n - * Currently supported profiles:\n - * - WMSC - parses vendor specific capabilities for WMS-C.\n - */\n - profile: null,\n - \n - /**\n - * Constructor: OpenLayers.Format.WMSCapabilities\n - * Create a new parser for WMS capabilities.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Read capabilities data from a string, and return a list of layers. \n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Array} List of named layers.\n - */\n - \n - CLASS_NAME: "OpenLayers.Format.WMSCapabilities" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1514</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities.xml deleted file mode 100644 index 2a6c3908f33a89b6ebbf20d03a461274b9ad65df..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>WMSCapabilities</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/WMSCapabilities</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1.js.xml deleted file mode 100644 index d4f1895623b5db8be352c9b45748d75ea1b4f76f..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1.js.xml +++ /dev/null @@ -1,412 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.95</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WMSCapabilities.js\n - * @requires OpenLayers/Format/OGCExceptionReport.js\n - * @requires OpenLayers/Format/XML.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMSCapabilities.v1\n - * Abstract class not to be instantiated directly. Creates\n - * the common parts for both WMS 1.1.X and WMS 1.3.X.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.WMSCapabilities.v1 = OpenLayers.Class(\n - OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - wms: "http://www.opengis.net/wms",\n - xlink: "http://www.w3.org/1999/xlink",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance"\n - },\n -\n - /**\n - * Property: defaultPrefix\n - */\n - defaultPrefix: "wms",\n - \n - /**\n - * Constructor: OpenLayers.Format.WMSCapabilities.v1\n - * Create an instance of one of the subclasses.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Read capabilities data from a string, and return a list of layers. \n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Array} List of named layers.\n - */\n - read: function(data) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - var raw = data;\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n - var capabilities = {};\n - this.readNode(data, capabilities);\n - if (capabilities.service === undefined) {\n - // an exception must have occurred, so parse it\n - var parser = new OpenLayers.Format.OGCExceptionReport();\n - capabilities.error = parser.read(raw);\n - }\n - return capabilities;\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "wms": {\n - "Service": function(node, obj) {\n - obj.service = {};\n - this.readChildNodes(node, obj.service);\n - },\n - "Name": function(node, obj) {\n - obj.name = this.getChildValue(node);\n - },\n - "Title": function(node, obj) {\n - obj.title = this.getChildValue(node);\n - },\n - "Abstract": function(node, obj) {\n - obj["abstract"] = this.getChildValue(node);\n - },\n - "BoundingBox": function(node, obj) {\n - var bbox = {};\n - bbox.bbox = [\n - parseFloat(node.getAttribute("minx")),\n - parseFloat(node.getAttribute("miny")),\n - parseFloat(node.getAttribute("maxx")),\n - parseFloat(node.getAttribute("maxy"))\n - ];\n - var res = {\n - x: parseFloat(node.getAttribute("resx")),\n - y: parseFloat(node.getAttribute("resy"))\n - };\n -\n - if (! (isNaN(res.x) && isNaN(res.y))) {\n - bbox.res = res;\n - }\n - // return the bbox so that descendant classes can set the\n - // CRS and SRS and add it to the obj\n - return bbox;\n - },\n - "OnlineResource": function(node, obj) {\n - obj.href = this.getAttributeNS(node, this.namespaces.xlink, \n - "href");\n - },\n - "ContactInformation": function(node, obj) {\n - obj.contactInformation = {};\n - this.readChildNodes(node, obj.contactInformation);\n - },\n - "ContactPersonPrimary": function(node, obj) {\n - obj.personPrimary = {};\n - this.readChildNodes(node, obj.personPrimary);\n - },\n - "ContactPerson": function(node, obj) {\n - obj.person = this.getChildValue(node);\n - },\n - "ContactOrganization": function(node, obj) {\n - obj.organization = this.getChildValue(node);\n - },\n - "ContactPosition": function(node, obj) {\n - obj.position = this.getChildValue(node);\n - },\n - "ContactAddress": function(node, obj) {\n - obj.contactAddress = {};\n - this.readChildNodes(node, obj.contactAddress);\n - },\n - "AddressType": function(node, obj) {\n - obj.type = this.getChildValue(node);\n - },\n - "Address": function(node, obj) {\n - obj.address = this.getChildValue(node);\n - },\n - "City": function(node, obj) {\n - obj.city = this.getChildValue(node);\n - },\n - "StateOrProvince": function(node, obj) {\n - obj.stateOrProvince = this.getChildValue(node);\n - },\n - "PostCode": function(node, obj) {\n - obj.postcode = this.getChildValue(node);\n - },\n - "Country": function(node, obj) {\n - obj.country = this.getChildValue(node);\n - },\n - "ContactVoiceTelephone": function(node, obj) {\n - obj.phone = this.getChildValue(node);\n - },\n - "ContactFacsimileTelephone": function(node, obj) {\n - obj.fax = this.getChildValue(node);\n - },\n - "ContactElectronicMailAddress": function(node, obj) {\n - obj.email = this.getChildValue(node);\n - },\n - "Fees": function(node, obj) {\n - var fees = this.getChildValue(node);\n - if (fees && fees.toLowerCase() != "none") {\n - obj.fees = fees;\n - }\n - },\n - "AccessConstraints": function(node, obj) {\n - var constraints = this.getChildValue(node);\n - if (constraints && constraints.toLowerCase() != "none") {\n - obj.accessConstraints = constraints;\n - }\n - },\n - "Capability": function(node, obj) {\n - obj.capability = {\n - nestedLayers: [],\n - layers: []\n - };\n - this.readChildNodes(node, obj.capability);\n - },\n - "Request": function(node, obj) {\n - obj.request = {};\n - this.readChildNodes(node, obj.request);\n - },\n - "GetCapabilities": function(node, obj) {\n - obj.getcapabilities = {formats: []};\n - this.readChildNodes(node, obj.getcapabilities);\n - },\n - "Format": function(node, obj) {\n - if (OpenLayers.Util.isArray(obj.formats)) {\n - obj.formats.push(this.getChildValue(node));\n - } else {\n - obj.format = this.getChildValue(node);\n - }\n - },\n - "DCPType": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "HTTP": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "Get": function(node, obj) {\n - obj.get = {};\n - this.readChildNodes(node, obj.get);\n - // backwards compatibility\n - if (!obj.href) {\n - obj.href = obj.get.href;\n - }\n - },\n - "Post": function(node, obj) {\n - obj.post = {};\n - this.readChildNodes(node, obj.post);\n - // backwards compatibility\n - if (!obj.href) {\n - obj.href = obj.get.href;\n - }\n - },\n - "GetMap": function(node, obj) {\n - obj.getmap = {formats: []};\n - this.readChildNodes(node, obj.getmap);\n - },\n - "GetFeatureInfo": function(node, obj) {\n - obj.getfeatureinfo = {formats: []};\n - this.readChildNodes(node, obj.getfeatureinfo);\n - },\n - "Exception": function(node, obj) {\n - obj.exception = {formats: []};\n - this.readChildNodes(node, obj.exception);\n - },\n - "Layer": function(node, obj) {\n - var parentLayer, capability;\n - if (obj.capability) {\n - capability = obj.capability;\n - parentLayer = obj;\n - } else {\n - capability = obj;\n - }\n - var attrNode = node.getAttributeNode("queryable");\n - var queryable = (attrNode && attrNode.specified) ? \n - node.getAttribute("queryable") : null;\n - attrNode = node.getAttributeNode("cascaded");\n - var cascaded = (attrNode && attrNode.specified) ?\n - node.getAttribute("cascaded") : null;\n - attrNode = node.getAttributeNode("opaque");\n - var opaque = (attrNode && attrNode.specified) ?\n - node.getAttribute(\'opaque\') : null;\n - var noSubsets = node.getAttribute(\'noSubsets\');\n - var fixedWidth = node.getAttribute(\'fixedWidth\');\n - var fixedHeight = node.getAttribute(\'fixedHeight\');\n - var parent = parentLayer || {},\n - extend = OpenLayers.Util.extend;\n - var layer = {\n - nestedLayers: [],\n - styles: parentLayer ? [].concat(parentLayer.styles) : [],\n - srs: parentLayer ? extend({}, parent.srs) : {}, \n - metadataURLs: [],\n - bbox: parentLayer ? extend({}, parent.bbox) : {},\n - llbbox: parent.llbbox,\n - dimensions: parentLayer ? extend({}, parent.dimensions) : {},\n - authorityURLs: parentLayer ? extend({}, parent.authorityURLs) : {},\n - identifiers: {},\n - keywords: [],\n - queryable: (queryable && queryable !== "") ? \n - (queryable === "1" || queryable === "true" ) :\n - (parent.queryable || false),\n - cascaded: (cascaded !== null) ? parseInt(cascaded) :\n - (parent.cascaded || 0),\n - opaque: opaque ? \n - (opaque === "1" || opaque === "true" ) :\n - (parent.opaque || false),\n - noSubsets: (noSubsets !== null) ? \n - (noSubsets === "1" || noSubsets === "true" ) :\n - (parent.noSubsets || false),\n - fixedWidth: (fixedWidth != null) ? \n - parseInt(fixedWidth) : (parent.fixedWidth || 0),\n - fixedHeight: (fixedHeight != null) ? \n - parseInt(fixedHeight) : (parent.fixedHeight || 0),\n - minScale: parent.minScale,\n - maxScale: parent.maxScale,\n - attribution: parent.attribution\n - };\n - obj.nestedLayers.push(layer);\n - layer.capability = capability;\n - this.readChildNodes(node, layer);\n - delete layer.capability;\n - if(layer.name) {\n - var parts = layer.name.split(":"),\n - request = capability.request,\n - gfi = request.getfeatureinfo;\n - if(parts.length > 0) {\n - layer.prefix = parts[0];\n - }\n - capability.layers.push(layer);\n - if (layer.formats === undefined) {\n - layer.formats = request.getmap.formats;\n - }\n - if (layer.infoFormats === undefined && gfi) {\n - layer.infoFormats = gfi.formats;\n - }\n - }\n - },\n - "Attribution": function(node, obj) {\n - obj.attribution = {};\n - this.readChildNodes(node, obj.attribution);\n - },\n - "LogoURL": function(node, obj) {\n - obj.logo = {\n - width: node.getAttribute("width"),\n - height: node.getAttribute("height")\n - };\n - this.readChildNodes(node, obj.logo);\n - },\n - "Style": function(node, obj) {\n - var style = {};\n - obj.styles.push(style);\n - this.readChildNodes(node, style);\n - },\n - "LegendURL": function(node, obj) {\n - var legend = {\n - width: node.getAttribute("width"),\n - height: node.getAttribute("height")\n - };\n - obj.legend = legend;\n - this.readChildNodes(node, legend);\n - },\n - "MetadataURL": function(node, obj) {\n - var metadataURL = {type: node.getAttribute("type")};\n - obj.metadataURLs.push(metadataURL);\n - this.readChildNodes(node, metadataURL);\n - },\n - "DataURL": function(node, obj) {\n - obj.dataURL = {};\n - this.readChildNodes(node, obj.dataURL);\n - },\n - "FeatureListURL": function(node, obj) {\n - obj.featureListURL = {};\n - this.readChildNodes(node, obj.featureListURL);\n - },\n - "AuthorityURL": function(node, obj) {\n - var name = node.getAttribute("name");\n - var authority = {};\n - this.readChildNodes(node, authority);\n - obj.authorityURLs[name] = authority.href;\n - },\n - "Identifier": function(node, obj) {\n - var authority = node.getAttribute("authority");\n - obj.identifiers[authority] = this.getChildValue(node);\n - },\n - "KeywordList": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "SRS": function(node, obj) {\n - obj.srs[this.getChildValue(node)] = true;\n - }\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WMSCapabilities.v1" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>14702</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_1.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_1.js.xml deleted file mode 100644 index 12e134ee1654360cae7db0d028fbd1dfa0dc671d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_1.js.xml +++ /dev/null @@ -1,162 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.95</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_1.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WMSCapabilities/v1.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMSCapabilities.v1_1\n - * Abstract class not to be instantiated directly.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.WMSCapabilities.v1>\n - */\n -OpenLayers.Format.WMSCapabilities.v1_1 = OpenLayers.Class(\n - OpenLayers.Format.WMSCapabilities.v1, {\n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "wms": OpenLayers.Util.applyDefaults({\n - "WMT_MS_Capabilities": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "Keyword": function(node, obj) {\n - if (obj.keywords) {\n - obj.keywords.push(this.getChildValue(node));\n - }\n - },\n - "DescribeLayer": function(node, obj) {\n - obj.describelayer = {formats: []};\n - this.readChildNodes(node, obj.describelayer);\n - },\n - "GetLegendGraphic": function(node, obj) {\n - obj.getlegendgraphic = {formats: []};\n - this.readChildNodes(node, obj.getlegendgraphic);\n - },\n - "GetStyles": function(node, obj) {\n - obj.getstyles = {formats: []};\n - this.readChildNodes(node, obj.getstyles);\n - },\n - "PutStyles": function(node, obj) {\n - obj.putstyles = {formats: []};\n - this.readChildNodes(node, obj.putstyles);\n - },\n - "UserDefinedSymbolization": function(node, obj) {\n - var userSymbols = {\n - supportSLD: parseInt(node.getAttribute("SupportSLD")) == 1,\n - userLayer: parseInt(node.getAttribute("UserLayer")) == 1,\n - userStyle: parseInt(node.getAttribute("UserStyle")) == 1,\n - remoteWFS: parseInt(node.getAttribute("RemoteWFS")) == 1\n - };\n - obj.userSymbols = userSymbols;\n - },\n - "LatLonBoundingBox": function(node, obj) {\n - obj.llbbox = [\n - parseFloat(node.getAttribute("minx")),\n - parseFloat(node.getAttribute("miny")),\n - parseFloat(node.getAttribute("maxx")),\n - parseFloat(node.getAttribute("maxy"))\n - ];\n - },\n - "BoundingBox": function(node, obj) {\n - var bbox = OpenLayers.Format.WMSCapabilities.v1.prototype.readers["wms"].BoundingBox.apply(this, [node, obj]);\n - bbox.srs = node.getAttribute("SRS");\n - obj.bbox[bbox.srs] = bbox;\n - },\n - "ScaleHint": function(node, obj) {\n - var min = node.getAttribute("min");\n - var max = node.getAttribute("max");\n - var rad2 = Math.pow(2, 0.5);\n - var ipm = OpenLayers.INCHES_PER_UNIT["m"];\n - obj.maxScale = parseFloat(\n - ((min / rad2) * ipm * \n - OpenLayers.DOTS_PER_INCH).toPrecision(13)\n - );\n - obj.minScale = parseFloat(\n - ((max / rad2) * ipm * \n - OpenLayers.DOTS_PER_INCH).toPrecision(13)\n - );\n - },\n - "Dimension": function(node, obj) {\n - var name = node.getAttribute("name").toLowerCase();\n - var dim = {\n - name: name,\n - units: node.getAttribute("units"),\n - unitsymbol: node.getAttribute("unitSymbol")\n - };\n - obj.dimensions[dim.name] = dim;\n - },\n - "Extent": function(node, obj) {\n - var name = node.getAttribute("name").toLowerCase();\n - if (name in obj["dimensions"]) {\n - var extent = obj.dimensions[name];\n - extent.nearestVal = \n - node.getAttribute("nearestValue") === "1";\n - extent.multipleVal = \n - node.getAttribute("multipleValues") === "1";\n - extent.current = node.getAttribute("current") === "1";\n - extent["default"] = node.getAttribute("default") || "";\n - var values = this.getChildValue(node);\n - extent.values = values.split(",");\n - }\n - }\n - }, OpenLayers.Format.WMSCapabilities.v1.prototype.readers["wms"])\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WMSCapabilities.v1_1" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5037</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_1_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_1_0.js.xml deleted file mode 100644 index 4c3fa2b9730ecffb3b1190d7c0f540325709a713..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_1_0.js.xml +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.95</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_1_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WMSCapabilities/v1_1.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMSCapabilities/v1_1_0\n - * Read WMS Capabilities version 1.1.0.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.WMSCapabilities.v1_1>\n - */\n -OpenLayers.Format.WMSCapabilities.v1_1_0 = OpenLayers.Class(\n - OpenLayers.Format.WMSCapabilities.v1_1, {\n - \n - /**\n - * Property: version\n - * {String} The specific parser version.\n - */\n - version: "1.1.0",\n - \n - /**\n - * Constructor: OpenLayers.Format.WMSCapabilities.v1_1_0\n - * Create a new parser for WMS capabilities version 1.1.0.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "wms": OpenLayers.Util.applyDefaults({\n - "SRS": function(node, obj) {\n - var srs = this.getChildValue(node);\n - var values = srs.split(/ +/);\n - for (var i=0, len=values.length; i<len; i++) {\n - obj.srs[values[i]] = true;\n - }\n - }\n - }, OpenLayers.Format.WMSCapabilities.v1_1.prototype.readers["wms"])\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WMSCapabilities.v1_1_0" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1845</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_1_1.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_1_1.js.xml deleted file mode 100644 index 1c82ebb9c617ac7bf0820c32a7347eb4c7438f3a..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_1_1.js.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.95</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_1_1.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WMSCapabilities/v1_1.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMSCapabilities/v1_1_1\n - * Read WMS Capabilities version 1.1.1.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.WMSCapabilities.v1_1>\n - */\n -OpenLayers.Format.WMSCapabilities.v1_1_1 = OpenLayers.Class(\n - OpenLayers.Format.WMSCapabilities.v1_1, {\n - \n - /**\n - * Property: version\n - * {String} The specific parser version.\n - */\n - version: "1.1.1",\n - \n - /**\n - * Constructor: OpenLayers.Format.WMSCapabilities.v1_1_1\n - * Create a new parser for WMS capabilities version 1.1.1.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "wms": OpenLayers.Util.applyDefaults({\n - "SRS": function(node, obj) {\n - obj.srs[this.getChildValue(node)] = true;\n - }\n - }, OpenLayers.Format.WMSCapabilities.v1_1.prototype.readers["wms"])\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WMSCapabilities.v1_1_1" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1677</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_1_1_WMSC.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_1_1_WMSC.js.xml deleted file mode 100644 index 747903caeeecdfd37f6416b9312236306fe36b00..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_1_1_WMSC.js.xml +++ /dev/null @@ -1,129 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.95</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_1_1_WMSC.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WMSCapabilities/v1_1_1.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMSCapabilities/v1_1_1_WMSC\n - * Read WMS-C Capabilities version 1.1.1.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.WMSCapabilities.v1_1_1>\n - */\n -OpenLayers.Format.WMSCapabilities.v1_1_1_WMSC = OpenLayers.Class(\n - OpenLayers.Format.WMSCapabilities.v1_1_1, {\n - \n - /**\n - * Property: version\n - * {String} The specific parser version.\n - */\n - version: "1.1.1",\n - \n - /**\n - * Property: profile\n - * {String} The specific profile\n - */\n - profile: "WMSC",\n - \n - /**\n - * Constructor: OpenLayers.Format.WMSCapabilities.v1_1_1\n - * Create a new parser for WMS-C capabilities version 1.1.1.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "wms": OpenLayers.Util.applyDefaults({\n - "VendorSpecificCapabilities": function(node, obj) {\n - obj.vendorSpecific = {tileSets: []};\n - this.readChildNodes(node, obj.vendorSpecific);\n - },\n - "TileSet": function(node, vendorSpecific) {\n - var tileset = {srs: {}, bbox: {}, resolutions: []};\n - this.readChildNodes(node, tileset);\n - vendorSpecific.tileSets.push(tileset);\n - },\n - "Resolutions": function(node, tileset) {\n - var res = this.getChildValue(node).split(" ");\n - for (var i=0, len=res.length; i<len; i++) {\n - if (res[i] != "") {\n - tileset.resolutions.push(parseFloat(res[i]));\n - }\n - }\n - },\n - "Width": function(node, tileset) {\n - tileset.width = parseInt(this.getChildValue(node));\n - },\n - "Height": function(node, tileset) {\n - tileset.height = parseInt(this.getChildValue(node));\n - },\n - "Layers": function(node, tileset) {\n - tileset.layers = this.getChildValue(node);\n - },\n - "Styles": function(node, tileset) {\n - tileset.styles = this.getChildValue(node);\n - }\n - }, OpenLayers.Format.WMSCapabilities.v1_1_1.prototype.readers["wms"])\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WMSCapabilities.v1_1_1_WMSC" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2982</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_3.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_3.js.xml deleted file mode 100644 index 81dd7b12f07529a0f00afc0717953113dd9eeeb5..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_3.js.xml +++ /dev/null @@ -1,172 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.96</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_3.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \r\n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\r\n - * full text of the license. */\r\n -\r\n -/**\r\n - * @requires OpenLayers/Format/WMSCapabilities/v1.js\r\n - */\r\n -\r\n -/**\r\n - * Class: OpenLayers.Format.WMSCapabilities/v1_3\r\n - * Abstract base class for WMS Capabilities version 1.3.X. \r\n - * SLD 1.1.0 adds in the extra operations DescribeLayer and GetLegendGraphic, \r\n - * see: http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd\r\n - * \r\n - * Inherits from:\r\n - * - <OpenLayers.Format.WMSCapabilities.v1>\r\n - */\r\n -OpenLayers.Format.WMSCapabilities.v1_3 = OpenLayers.Class(\r\n - OpenLayers.Format.WMSCapabilities.v1, {\r\n - \r\n - /**\r\n - * Property: readers\r\n - * Contains public functions, grouped by namespace prefix, that will\r\n - * be applied when a namespaced node is found matching the function\r\n - * name. The function will be applied in the scope of this parser\r\n - * with two arguments: the node being read and a context object passed\r\n - * from the parent.\r\n - */\r\n - readers: {\r\n - "wms": OpenLayers.Util.applyDefaults({\r\n - "WMS_Capabilities": function(node, obj) {\r\n - this.readChildNodes(node, obj);\r\n - },\r\n - "LayerLimit": function(node, obj) {\r\n - obj.layerLimit = parseInt(this.getChildValue(node));\r\n - },\r\n - "MaxWidth": function(node, obj) {\r\n - obj.maxWidth = parseInt(this.getChildValue(node));\r\n - },\r\n - "MaxHeight": function(node, obj) {\r\n - obj.maxHeight = parseInt(this.getChildValue(node));\r\n - },\r\n - "BoundingBox": function(node, obj) {\r\n - var bbox = OpenLayers.Format.WMSCapabilities.v1.prototype.readers["wms"].BoundingBox.apply(this, [node, obj]);\r\n - bbox.srs = node.getAttribute("CRS");\r\n - obj.bbox[bbox.srs] = bbox;\r\n - },\r\n - "CRS": function(node, obj) {\r\n - // CRS is the synonym of SRS\r\n - this.readers.wms.SRS.apply(this, [node, obj]); \r\n - },\r\n - "EX_GeographicBoundingBox": function(node, obj) {\r\n - // replacement of LatLonBoundingBox\r\n - obj.llbbox = [];\r\n - this.readChildNodes(node, obj.llbbox);\r\n - \r\n - },\r\n - "westBoundLongitude": function(node, obj) {\r\n - obj[0] = this.getChildValue(node);\r\n - },\r\n - "eastBoundLongitude": function(node, obj) {\r\n - obj[2] = this.getChildValue(node);\r\n - },\r\n - "southBoundLatitude": function(node, obj) {\r\n - obj[1] = this.getChildValue(node);\r\n - },\r\n - "northBoundLatitude": function(node, obj) {\r\n - obj[3] = this.getChildValue(node);\r\n - },\r\n - "MinScaleDenominator": function(node, obj) {\r\n - obj.maxScale = parseFloat(this.getChildValue(node)).toPrecision(16);\r\n - },\r\n - "MaxScaleDenominator": function(node, obj) {\r\n - obj.minScale = parseFloat(this.getChildValue(node)).toPrecision(16);\r\n - },\r\n - "Dimension": function(node, obj) {\r\n - // dimension has extra attributes: default, multipleValues, \r\n - // nearestValue, current which used to be part of Extent. It now\r\n - // also contains the values.\r\n - var name = node.getAttribute("name").toLowerCase();\r\n - var dim = {\r\n - name: name,\r\n - units: node.getAttribute("units"),\r\n - unitsymbol: node.getAttribute("unitSymbol"),\r\n - nearestVal: node.getAttribute("nearestValue") === "1",\r\n - multipleVal: node.getAttribute("multipleValues") === "1",\r\n - "default": node.getAttribute("default") || "",\r\n - current: node.getAttribute("current") === "1",\r\n - values: this.getChildValue(node).split(",")\r\n - \r\n - };\r\n - // Theoretically there can be more dimensions with the same\r\n - // name, but with a different unit. Until we meet such a case,\r\n - // let\'s just keep the same structure as the WMS 1.1 \r\n - // GetCapabilities parser uses. We will store the last\r\n - // one encountered.\r\n - obj.dimensions[dim.name] = dim;\r\n - },\r\n - "Keyword": function(node, obj) {\r\n - // TODO: should we change the structure of keyword in v1.js?\r\n - // Make it an object with a value instead of a string?\r\n - var keyword = {value: this.getChildValue(node), \r\n - vocabulary: node.getAttribute("vocabulary")};\r\n - if (obj.keywords) {\r\n - obj.keywords.push(keyword);\r\n - }\r\n - }\r\n - }, OpenLayers.Format.WMSCapabilities.v1.prototype.readers["wms"]),\r\n - "sld": {\r\n - "UserDefinedSymbolization": function(node, obj) {\r\n - this.readers.wms.UserDefinedSymbolization.apply(this, [node, obj]);\r\n - // add the two extra attributes\r\n - obj.userSymbols.inlineFeature = parseInt(node.getAttribute("InlineFeature")) == 1;\r\n - obj.userSymbols.remoteWCS = parseInt(node.getAttribute("RemoteWCS")) == 1;\r\n - },\r\n - "DescribeLayer": function(node, obj) {\r\n - this.readers.wms.DescribeLayer.apply(this, [node, obj]);\r\n - },\r\n - "GetLegendGraphic": function(node, obj) {\r\n - this.readers.wms.GetLegendGraphic.apply(this, [node, obj]);\r\n - }\r\n - }\r\n - },\r\n - \r\n - CLASS_NAME: "OpenLayers.Format.WMSCapabilities.v1_3" \r\n -\r\n -});\r\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5893</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_3_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_3_0.js.xml deleted file mode 100644 index 12b046a83aacd8497d59d1953bc0cfd47415b773..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSCapabilities/v1_3_0.js.xml +++ /dev/null @@ -1,74 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.95</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_3_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \r\n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\r\n - * full text of the license. */\r\n -\r\n -/**\r\n - * @requires OpenLayers/Format/WMSCapabilities/v1_3.js\r\n - */\r\n -\r\n -/**\r\n - * Class: OpenLayers.Format.WMSCapabilities/v1_3_0\r\n - * Read WMS Capabilities version 1.3.0. \r\n - * SLD 1.1.0 adds in the extra operations DescribeLayer and GetLegendGraphic, \r\n - * see: http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd\r\n - * \r\n - * Inherits from:\r\n - * - <OpenLayers.Format.WMSCapabilities.v1_3>\r\n - */\r\n -OpenLayers.Format.WMSCapabilities.v1_3_0 = OpenLayers.Class(\r\n - OpenLayers.Format.WMSCapabilities.v1_3, {\r\n - \r\n - /**\r\n - * Property: version\r\n - * {String} The specific parser version.\r\n - */\r\n - version: "1.3.0",\r\n - \r\n - CLASS_NAME: "OpenLayers.Format.WMSCapabilities.v1_3_0" \r\n -\r\n -});\r\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>951</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSDescribeLayer.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSDescribeLayer.js.xml deleted file mode 100644 index 7ae8428280c092e7b41e6d822c12c004b390ec89..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSDescribeLayer.js.xml +++ /dev/null @@ -1,119 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WMSDescribeLayer.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML/VersionedOGC.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMSDescribeLayer\n - * Read SLD WMS DescribeLayer response\n - * DescribeLayer is meant to couple WMS to WFS and WCS\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML.VersionedOGC>\n - */\n -OpenLayers.Format.WMSDescribeLayer = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {\n -\n - /**\n - * APIProperty: defaultVersion\n - * {String} Version number to assume if none found. Default is "1.1.1".\n - */\n - defaultVersion: "1.1.1",\n - \n - /**\n - * Method: getVersion\n - * Returns the version to use. Subclasses can override this function\n - * if a different version detection is needed.\n - *\n - * Parameters:\n - * root - {DOMElement}\n - * options - {Object} Optional configuration object.\n - *\n - * Returns:\n - * {String} The version to use.\n - */\n - getVersion: function(root, options) {\n - var version = OpenLayers.Format.XML.VersionedOGC.prototype.getVersion.apply(\n - this, arguments);\n - // these are identical to us, but some WMS use 1.1.1 and some use 1.1.0\n - if (version == "1.1.1" || version == "1.1.0") {\n - version = "1.1";\n - }\n - return version;\n - },\n -\n - /**\n - * Constructor: OpenLayers.Format.WMSDescribeLayer\n - * Create a new parser for WMS DescribeLayer responses.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Read DescribeLayer data from a string, and return the response. \n - * The OGC currently defines 2 formats which are allowed for output,\n - * so we need to parse these 2 types\n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Array} Array of {<LayerDescription>} objects which have:\n - * - {String} owsType: WFS/WCS\n - * - {String} owsURL: the online resource\n - * - {String} typeName: the name of the typename on the service\n - */\n - \n - CLASS_NAME: "OpenLayers.Format.WMSDescribeLayer" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2353</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSDescribeLayer.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSDescribeLayer.xml deleted file mode 100644 index eb69ee778c4935a829a27ec82c86128a18085c30..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSDescribeLayer.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>WMSDescribeLayer</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/WMSDescribeLayer</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSDescribeLayer/v1_1.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSDescribeLayer/v1_1.js.xml deleted file mode 100644 index 94f75aeae13577092526d17b8be4935450751753..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSDescribeLayer/v1_1.js.xml +++ /dev/null @@ -1,144 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684101.01</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_1.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WMSDescribeLayer.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMSDescribeLayer.v1_1\n - * Read SLD WMS DescribeLayer response for WMS 1.1.X\n - * WMS 1.1.X is tightly coupled to SLD 1.0.0\n - *\n - * Example DescribeLayer request: \n - * http://demo.opengeo.org/geoserver/wms?request=DescribeLayer&version=1.1.1&layers=topp:states\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.WMSDescribeLayer>\n - */\n -OpenLayers.Format.WMSDescribeLayer.v1_1 = OpenLayers.Class(\n - OpenLayers.Format.WMSDescribeLayer, {\n - \n - /**\n - * Constructor: OpenLayers.Format.WMSDescribeLayer\n - * Create a new parser for WMS DescribeLayer responses.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.WMSDescribeLayer.prototype.initialize.apply(this, \n - [options]);\n - },\n -\n - /**\n - * APIMethod: read\n - * Read DescribeLayer data from a string, and return the response. \n - * The OGC defines 2 formats which are allowed for output,\n - * so we need to parse these 2 types for version 1.1.X\n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Array} Array of {<LayerDescription>} objects which have:\n - * - {String} owsType: WFS/WCS\n - * - {String} owsURL: the online resource\n - * - {String} typeName: the name of the typename on the service\n - */\n - read: function(data) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - var root = data.documentElement;\n - var children = root.childNodes; \n - var describelayer = [];\n - var childNode, nodeName;\n - for(var i=0; i<children.length; ++i) { \n - childNode = children[i];\n - nodeName = childNode.nodeName; \n - if (nodeName == \'LayerDescription\') {\n - var layerName = childNode.getAttribute(\'name\');\n - var owsType = \'\';\n - var owsURL = \'\';\n - var typeName = \'\';\n - // check for owsType and owsURL attributes\n - if (childNode.getAttribute(\'owsType\')) {\n - owsType = childNode.getAttribute(\'owsType\');\n - owsURL = childNode.getAttribute(\'owsURL\');\n - } else {\n - // look for wfs or wcs attribute\n - if (childNode.getAttribute(\'wfs\') != \'\') {\n - owsType = \'WFS\';\n - owsURL = childNode.getAttribute(\'wfs\');\n - } else if (childNode.getAttribute(\'wcs\') != \'\') {\n - owsType = \'WCS\';\n - owsURL = childNode.getAttribute(\'wcs\');\n - }\n - }\n - // look for Query child\n - var query = childNode.getElementsByTagName(\'Query\');\n - if(query.length > 0) {\n - typeName = query[0].getAttribute(\'typeName\');\n - if (!typeName) {\n - // because of Ionic bug\n - typeName = query[0].getAttribute(\'typename\');\n - }\n - }\n - describelayer.push({layerName: layerName, owsType: owsType, \n - owsURL: owsURL, typeName: typeName}); \n - }\n - }\n - return describelayer;\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.WMSDescribeLayer.v1_1" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3757</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSGetFeatureInfo.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSGetFeatureInfo.js.xml deleted file mode 100644 index 40550118d33dfec5a5ae8f0d8209b29112341b5e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMSGetFeatureInfo.js.xml +++ /dev/null @@ -1,340 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WMSGetFeatureInfo.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMSGetFeatureInfo\n - * Class to read GetFeatureInfo responses from Web Mapping Services\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Format.XML, {\n -\n - /**\n - * APIProperty: layerIdentifier\n - * {String} All xml nodes containing this search criteria will populate an\n - * internal array of layer nodes.\n - */ \n - layerIdentifier: \'_layer\',\n -\n - /**\n - * APIProperty: featureIdentifier\n - * {String} All xml nodes containing this search criteria will populate an \n - * internal array of feature nodes for each layer node found.\n - */\n - featureIdentifier: \'_feature\',\n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n -\n - /**\n - * Property: gmlFormat\n - * {<OpenLayers.Format.GML>} internal GML format for parsing geometries\n - * in msGMLOutput\n - */\n - gmlFormat: null,\n -\n - /**\n - * Constructor: OpenLayers.Format.WMSGetFeatureInfo\n - * Create a new parser for WMS GetFeatureInfo responses\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Read WMS GetFeatureInfo data from a string, and return an array of features\n - *\n - * Parameters:\n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Feature.Vector>)} An array of features.\n - */\n - read: function(data) {\n - var result;\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - var root = data.documentElement;\n - if(root) {\n - var scope = this;\n - var read = this["read_" + root.nodeName];\n - if(read) {\n - result = read.call(this, root);\n - } else {\n - // fall-back to GML since this is a common output format for WMS\n - // GetFeatureInfo responses\n - result = new OpenLayers.Format.GML((this.options ? this.options : {})).read(data);\n - }\n - } else {\n - result = data;\n - }\n - return result;\n - },\n - \n - \n - /**\n - * Method: read_msGMLOutput\n - * Parse msGMLOutput nodes.\n - *\n - * Parameters:\n - * data - {DOMElement}\n - *\n - * Returns:\n - * {Array}\n - */\n - read_msGMLOutput: function(data) {\n - var response = [];\n - var layerNodes = this.getSiblingNodesByTagCriteria(data,\n - this.layerIdentifier);\n - if (layerNodes) {\n - for (var i=0, len=layerNodes.length; i<len; ++i) {\n - var node = layerNodes[i];\n - var layerName = node.nodeName;\n - if (node.prefix) {\n - layerName = layerName.split(\':\')[1];\n - }\n - var layerName = layerName.replace(this.layerIdentifier, \'\');\n - var featureNodes = this.getSiblingNodesByTagCriteria(node, \n - this.featureIdentifier);\n - if (featureNodes) {\n - for (var j = 0; j < featureNodes.length; j++) {\n - var featureNode = featureNodes[j];\n - var geomInfo = this.parseGeometry(featureNode);\n - var attributes = this.parseAttributes(featureNode);\n - var feature = new OpenLayers.Feature.Vector(geomInfo.geometry, \n - attributes, null);\n - feature.bounds = geomInfo.bounds;\n - feature.type = layerName;\n - response.push(feature);\n - }\n - }\n - }\n - }\n - return response;\n - },\n - \n - /**\n - * Method: read_FeatureInfoResponse\n - * Parse FeatureInfoResponse nodes.\n - *\n - * Parameters:\n - * data - {DOMElement}\n - *\n - * Returns:\n - * {Array}\n - */\n - read_FeatureInfoResponse: function(data) {\n - var response = [];\n - var featureNodes = this.getElementsByTagNameNS(data, \'*\',\n - \'FIELDS\');\n -\n - for(var i=0, len=featureNodes.length;i<len;i++) {\n - var featureNode = featureNodes[i];\n - var geom = null;\n -\n - // attributes can be actual attributes on the FIELDS tag, \n - // or FIELD children\n - var attributes = {};\n - var j;\n - var jlen = featureNode.attributes.length;\n - if (jlen > 0) {\n - for(j=0; j<jlen; j++) {\n - var attribute = featureNode.attributes[j];\n - attributes[attribute.nodeName] = attribute.nodeValue;\n - }\n - } else {\n - var nodes = featureNode.childNodes;\n - for (j=0, jlen=nodes.length; j<jlen; ++j) {\n - var node = nodes[j];\n - if (node.nodeType != 3) {\n - attributes[node.getAttribute("name")] = \n - node.getAttribute("value");\n - }\n - }\n - }\n -\n - response.push(\n - new OpenLayers.Feature.Vector(geom, attributes, null)\n - );\n - }\n - return response;\n - },\n -\n - /**\n - * Method: getSiblingNodesByTagCriteria\n - * Recursively searches passed xml node and all it\'s descendant levels for \n - * nodes whose tagName contains the passed search string. This returns an \n - * array of all sibling nodes which match the criteria from the highest \n - * hierarchial level from which a match is found.\n - * \n - * Parameters:\n - * node - {DOMElement} An xml node\n - * criteria - {String} Search string which will match some part of a tagName \n - * \n - * Returns:\n - * Array({DOMElement}) An array of sibling xml nodes\n - */ \n - getSiblingNodesByTagCriteria: function(node, criteria){\n - var nodes = [];\n - var children, tagName, n, matchNodes, child;\n - if (node && node.hasChildNodes()) {\n - children = node.childNodes;\n - n = children.length;\n -\n - for(var k=0; k<n; k++){\n - child = children[k];\n - while (child && child.nodeType != 1) {\n - child = child.nextSibling;\n - k++;\n - }\n - tagName = (child ? child.nodeName : \'\');\n - if (tagName.length > 0 && tagName.indexOf(criteria) > -1) {\n - nodes.push(child);\n - } else {\n - matchNodes = this.getSiblingNodesByTagCriteria(\n - child, criteria);\n -\n - if(matchNodes.length > 0){\n - (nodes.length == 0) ? \n - nodes = matchNodes : nodes.push(matchNodes);\n - }\n - }\n - }\n -\n - }\n - return nodes;\n - },\n -\n - /**\n - * Method: parseAttributes\n - *\n - * Parameters:\n - * node - {<DOMElement>}\n - *\n - * Returns:\n - * {Object} An attributes object.\n - * \n - * Notes:\n - * Assumes that attributes are direct child xml nodes of the passed node\n - * and contain only a single text node. \n - */ \n - parseAttributes: function(node){\n - var attributes = {};\n - if (node.nodeType == 1) {\n - var children = node.childNodes;\n - var n = children.length;\n - for (var i = 0; i < n; ++i) {\n - var child = children[i];\n - if (child.nodeType == 1) {\n - var grandchildren = child.childNodes;\n - var name = (child.prefix) ?\n - child.nodeName.split(":")[1] : child.nodeName;\n - if (grandchildren.length == 0) {\n - attributes[name] = null;\n - } else if (grandchildren.length == 1) {\n - var grandchild = grandchildren[0];\n - if (grandchild.nodeType == 3 ||\n - grandchild.nodeType == 4) {\n - var value = grandchild.nodeValue.replace(\n - this.regExes.trimSpace, "");\n - attributes[name] = value;\n - }\n - }\n - }\n - }\n - }\n - return attributes;\n - },\n -\n - /**\n - * Method: parseGeometry\n - * Parse the geometry and the feature bounds out of the node using \n - * Format.GML\n - *\n - * Parameters:\n - * node - {<DOMElement>}\n - *\n - * Returns:\n - * {Object} An object containing the geometry and the feature bounds\n - */\n - parseGeometry: function(node) {\n - // we need to use the old Format.GML parser since we do not know the \n - // geometry name\n - if (!this.gmlFormat) {\n - this.gmlFormat = new OpenLayers.Format.GML();\n - }\n - var feature = this.gmlFormat.parseFeature(node);\n - var geometry, bounds = null;\n - if (feature) {\n - geometry = feature.geometry && feature.geometry.clone();\n - bounds = feature.bounds && feature.bounds.clone();\n - feature.destroy();\n - }\n - return {geometry: geometry, bounds: bounds};\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.WMSGetFeatureInfo"\n - \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>9782</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMTSCapabilities.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMTSCapabilities.js.xml deleted file mode 100644 index bb4509a7ce2aa061ad54493d88ace34ce9a10dfc..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMTSCapabilities.js.xml +++ /dev/null @@ -1,176 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WMTSCapabilities.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML/VersionedOGC.js\n - */\n - \n -/**\n - * Class: OpenLayers.Format.WMTSCapabilities\n - * Read WMTS Capabilities.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML.VersionedOGC>\n - */\n -OpenLayers.Format.WMTSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {\n - \n - /**\n - * APIProperty: defaultVersion\n - * {String} Version number to assume if none found. Default is "1.0.0".\n - */\n - defaultVersion: "1.0.0",\n - \n - /**\n - * APIProperty: yx\n - * {Object} Members in the yx object are used to determine if a CRS URN\n - * corresponds to a CRS with y,x axis order. Member names are CRS URNs\n - * and values are boolean. By default, the following CRS URN are \n - * assumed to correspond to a CRS with y,x axis order:\n - *\n - * * urn:ogc:def:crs:EPSG::4326\n - */\n - yx: {\n - "urn:ogc:def:crs:EPSG::4326": true\n - },\n -\n - /**\n - * Constructor: OpenLayers.Format.WMTSCapabilities\n - * Create a new parser for WMTS capabilities.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Read capabilities data from a string, and return information about\n - * the service (offering and observedProperty mostly).\n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Object} Info about the WMTS Capabilities\n - */\n -\n - /**\n - * APIMethod: createLayer\n - * Create a WMTS layer given a capabilities object.\n - *\n - * Parameters:\n - * capabilities - {Object} The object returned from a <read> call to this \n - * format.\n - * config - {Object} Configuration properties for the layer. Defaults for\n - * the layer will apply if not provided.\n - *\n - * Required config properties:\n - * layer - {String} The layer identifier.\n - * matrixSet - {String} The matrix set identifier.\n - *\n - * Returns:\n - * {<OpenLayers.Layer.WMTS>} A properly configured WMTS layer. Throws an\n - * error if an incomplete config is provided. Returns undefined if no\n - * layer could be created with the provided config.\n - */ \n - createLayer: function(capabilities, config) {\n - var layer;\n -\n - // confirm required properties are supplied in config\n - var required = {\n - layer: true,\n - matrixSet: true\n - };\n - for (var prop in required) {\n - if (!(prop in config)) {\n - throw new Error("Missing property \'" + prop + "\' in layer configuration.");\n - }\n - }\n -\n - var contents = capabilities.contents;\n - var matrixSet = contents.tileMatrixSets[config.matrixSet];\n -\n - // find the layer definition with the given identifier\n - var layers = contents.layers;\n - var layerDef;\n - for (var i=0, ii=contents.layers.length; i<ii; ++i) {\n - if (contents.layers[i].identifier === config.layer) {\n - layerDef = contents.layers[i];\n - break;\n - }\n - }\n - \n - if (layerDef && matrixSet) {\n - // get the default style for the layer\n - var style;\n - for (var i=0, ii=layerDef.styles.length; i<ii; ++i) {\n - style = layerDef.styles[i];\n - if (style.isDefault) {\n - break;\n - }\n - }\n - \n - layer = new OpenLayers.Layer.WMTS(\n - OpenLayers.Util.applyDefaults(config, {\n - url: config.requestEncoding === "REST" && layerDef.resourceUrl ?\n - layerDef.resourceUrl.tile.template :\n - capabilities.operationsMetadata.GetTile.dcp.http.get[0].url,\n - name: layerDef.title,\n - style: style.identifier,\n - matrixIds: matrixSet.matrixIds,\n - tileFullExtent: matrixSet.bounds\n - })\n - );\n - }\n - return layer;\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.WMTSCapabilities" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4352</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMTSCapabilities.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMTSCapabilities.xml deleted file mode 100644 index 133e3bfe2cd83de86af6892dc634c8246edbdc86..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMTSCapabilities.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>WMTSCapabilities</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/WMTSCapabilities</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMTSCapabilities/v1_0_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMTSCapabilities/v1_0_0.js.xml deleted file mode 100644 index eac16775c1abf0432269a057796f1d8aa8f7aa05..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WMTSCapabilities/v1_0_0.js.xml +++ /dev/null @@ -1,289 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.98</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_0_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WMTSCapabilities.js\n - * @requires OpenLayers/Format/OWSCommon/v1_1_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WMTSCapabilities.v1_0_0\n - * Read WMTS Capabilities version 1.0.0.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.WMTSCapabilities>\n - */\n -OpenLayers.Format.WMTSCapabilities.v1_0_0 = OpenLayers.Class(\n - OpenLayers.Format.OWSCommon.v1_1_0, {\n - \n - /**\n - * Property: version\n - * {String} The parser version ("1.0.0").\n - */\n - version: "1.0.0",\n -\n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - ows: "http://www.opengis.net/ows/1.1",\n - wmts: "http://www.opengis.net/wmts/1.0",\n - xlink: "http://www.w3.org/1999/xlink"\n - }, \n - \n - /**\n - * Property: yx\n - * {Object} Members in the yx object are used to determine if a CRS URN\n - * corresponds to a CRS with y,x axis order. Member names are CRS URNs\n - * and values are boolean. Defaults come from the \n - * <OpenLayers.Format.WMTSCapabilities> prototype.\n - */\n - yx: null,\n -\n - /**\n - * Property: defaultPrefix\n - * {String} The default namespace alias for creating element nodes.\n - */\n - defaultPrefix: "wmts",\n -\n - /**\n - * Constructor: OpenLayers.Format.WMTSCapabilities.v1_0_0\n - * Create a new parser for WMTS capabilities version 1.0.0. \n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - this.options = options;\n - var yx = OpenLayers.Util.extend(\n - {}, OpenLayers.Format.WMTSCapabilities.prototype.yx\n - );\n - this.yx = OpenLayers.Util.extend(yx, this.yx);\n - },\n -\n - /**\n - * APIMethod: read\n - * Read capabilities data from a string, and return info about the WMTS.\n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Object} Information about the SOS service.\n - */\n - read: function(data) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n - var capabilities = {};\n - this.readNode(data, capabilities);\n - capabilities.version = this.version;\n - return capabilities;\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: { \n - "wmts": {\n - "Capabilities": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "Contents": function(node, obj) {\n - obj.contents = {}; \n - obj.contents.layers = [];\n - obj.contents.tileMatrixSets = {}; \n - this.readChildNodes(node, obj.contents);\n - },\n - "Layer": function(node, obj) {\n - var layer = {\n - styles: [],\n - formats: [],\n - dimensions: [],\n - tileMatrixSetLinks: []\n - };\n - layer.layers = [];\n - this.readChildNodes(node, layer);\n - obj.layers.push(layer);\n - },\n - "Style": function(node, obj) {\n - var style = {};\n - style.isDefault = (node.getAttribute("isDefault") === "true");\n - this.readChildNodes(node, style);\n - obj.styles.push(style);\n - },\n - "Format": function(node, obj) {\n - obj.formats.push(this.getChildValue(node)); \n - },\n - "TileMatrixSetLink": function(node, obj) {\n - var tileMatrixSetLink = {};\n - this.readChildNodes(node, tileMatrixSetLink);\n - obj.tileMatrixSetLinks.push(tileMatrixSetLink);\n - },\n - "TileMatrixSet": function(node, obj) {\n - // node could be child of wmts:Contents or wmts:TileMatrixSetLink\n - // duck type wmts:Contents by looking for layers\n - if (obj.layers) {\n - // TileMatrixSet as object type in schema\n - var tileMatrixSet = {\n - matrixIds: []\n - };\n - this.readChildNodes(node, tileMatrixSet);\n - obj.tileMatrixSets[tileMatrixSet.identifier] = tileMatrixSet;\n - } else {\n - // TileMatrixSet as string type in schema\n - obj.tileMatrixSet = this.getChildValue(node);\n - }\n - },\n - "TileMatrix": function(node, obj) {\n - var tileMatrix = {\n - supportedCRS: obj.supportedCRS\n - };\n - this.readChildNodes(node, tileMatrix);\n - obj.matrixIds.push(tileMatrix);\n - },\n - "ScaleDenominator": function(node, obj) {\n - obj.scaleDenominator = parseFloat(this.getChildValue(node)); \n - },\n - "TopLeftCorner": function(node, obj) { \n - var topLeftCorner = this.getChildValue(node);\n - var coords = topLeftCorner.split(" ");\n - // decide on axis order for the given CRS\n - var yx;\n - if (obj.supportedCRS) {\n - // extract out version from URN\n - var crs = obj.supportedCRS.replace(\n - /urn:ogc:def:crs:(\\w+):.+:(\\w+)$/, \n - "urn:ogc:def:crs:$1::$2"\n - );\n - yx = !!this.yx[crs];\n - }\n - if (yx) {\n - obj.topLeftCorner = new OpenLayers.LonLat(\n - coords[1], coords[0]\n - );\n - } else {\n - obj.topLeftCorner = new OpenLayers.LonLat(\n - coords[0], coords[1]\n - );\n - }\n - },\n - "TileWidth": function(node, obj) {\n - obj.tileWidth = parseInt(this.getChildValue(node)); \n - },\n - "TileHeight": function(node, obj) {\n - obj.tileHeight = parseInt(this.getChildValue(node)); \n - },\n - "MatrixWidth": function(node, obj) {\n - obj.matrixWidth = parseInt(this.getChildValue(node)); \n - },\n - "MatrixHeight": function(node, obj) {\n - obj.matrixHeight = parseInt(this.getChildValue(node)); \n - },\n - "ResourceURL": function(node, obj) {\n - obj.resourceUrl = obj.resourceUrl || {};\n - obj.resourceUrl[node.getAttribute("resourceType")] = {\n - format: node.getAttribute("format"),\n - template: node.getAttribute("template")\n - };\n - },\n - // not used for now, can be added in the future though\n - /*"Themes": function(node, obj) {\n - obj.themes = [];\n - this.readChildNodes(node, obj.themes);\n - },\n - "Theme": function(node, obj) {\n - var theme = {}; \n - this.readChildNodes(node, theme);\n - obj.push(theme);\n - },*/\n - "WSDL": function(node, obj) {\n - obj.wsdl = {};\n - obj.wsdl.href = node.getAttribute("xlink:href");\n - // TODO: other attributes of <WSDL> element \n - },\n - "ServiceMetadataURL": function(node, obj) {\n - obj.serviceMetadataUrl = {};\n - obj.serviceMetadataUrl.href = node.getAttribute("xlink:href");\n - // TODO: other attributes of <ServiceMetadataURL> element \n - },\n - "LegendURL": function(node, obj) {\n - obj.legend = {};\n - obj.legend.href = node.getAttribute("xlink:href");\n - obj.legend.format = node.getAttribute("format");\n - },\n - "Dimension": function(node, obj) {\n - var dimension = {values: []};\n - this.readChildNodes(node, dimension);\n - obj.dimensions.push(dimension);\n - },\n - "Default": function(node, obj) {\n - obj["default"] = this.getChildValue(node);\n - },\n - "Value": function(node, obj) {\n - obj.values.push(this.getChildValue(node));\n - }\n - },\n - "ows": OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers["ows"]\n - }, \n - \n - CLASS_NAME: "OpenLayers.Format.WMTSCapabilities.v1_0_0" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>9301</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSCapabilities.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSCapabilities.js.xml deleted file mode 100644 index 9b79f617b4b8791cd1c12d49d5f0c9886ad24aec..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSCapabilities.js.xml +++ /dev/null @@ -1,92 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WPSCapabilities.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML/VersionedOGC.js\n - */\n - \n -/**\n - * Class: OpenLayers.Format.WPSCapabilities\n - * Read WPS Capabilities.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML.VersionedOGC>\n - */\n -OpenLayers.Format.WPSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {\n - \n - /**\n - * APIProperty: defaultVersion\n - * {String} Version number to assume if none found. Default is "1.0.0".\n - */\n - defaultVersion: "1.0.0",\n - \n - /**\n - * Constructor: OpenLayers.Format.WPSCapabilities\n - * Create a new parser for WPS Capabilities.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Read capabilities data from a string, and return information about\n - * the service.\n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Object} Info about the WPS\n - */\n - \n - CLASS_NAME: "OpenLayers.Format.WPSCapabilities" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1306</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSCapabilities.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSCapabilities.xml deleted file mode 100644 index 67325b080a18ba2cfd0bc41411cac818dac34ffb..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSCapabilities.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>WPSCapabilities</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/WPSCapabilities</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSCapabilities/v1_0_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSCapabilities/v1_0_0.js.xml deleted file mode 100644 index 0d526281b98a48cfe240a0448eae9b8f12e8f4f7..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSCapabilities/v1_0_0.js.xml +++ /dev/null @@ -1,163 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.97</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_0_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/WPSCapabilities.js\n - * @requires OpenLayers/Format/OWSCommon/v1_1_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WPSCapabilities.v1_0_0\n - * Read WPS Capabilities version 1.0.0.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.WPSCapabilities.v1_0_0 = OpenLayers.Class(\n - OpenLayers.Format.XML, {\n -\n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - ows: "http://www.opengis.net/ows/1.1",\n - wps: "http://www.opengis.net/wps/1.0.0",\n - xlink: "http://www.w3.org/1999/xlink"\n - },\n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n - \n - /**\n - * Constructor: OpenLayers.Format.WPSCapabilities.v1_0_0\n - * Create a new parser for WPS capabilities version 1.0.0. \n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - },\n -\n - /**\n - * APIMethod: read\n - * Read capabilities data from a string, and return info about the WPS.\n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Object} Information about the WPS service.\n - */\n - read: function(data) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n - var capabilities = {};\n - this.readNode(data, capabilities);\n - return capabilities;\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "wps": {\n - "Capabilities": function(node, obj) {\n - this.readChildNodes(node, obj);\n - },\n - "ProcessOfferings": function(node, obj) {\n - obj.processOfferings = {};\n - this.readChildNodes(node, obj.processOfferings);\n - },\n - "Process": function(node, processOfferings) {\n - var processVersion = this.getAttributeNS(node, this.namespaces.wps, "processVersion");\n - var process = {processVersion: processVersion};\n - this.readChildNodes(node, process);\n - processOfferings[process.identifier] = process;\n - },\n - "Languages": function(node, obj) {\n - obj.languages = [];\n - this.readChildNodes(node, obj.languages);\n - },\n - "Default": function(node, languages) {\n - var language = {isDefault: true};\n - this.readChildNodes(node, language);\n - languages.push(language);\n - },\n - "Supported": function(node, languages) {\n - var language = {};\n - this.readChildNodes(node, language); \n - languages.push(language);\n - }\n - },\n - "ows": OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers["ows"]\n - }, \n - \n - CLASS_NAME: "OpenLayers.Format.WPSCapabilities.v1_0_0" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3945</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSDescribeProcess.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSDescribeProcess.js.xml deleted file mode 100644 index 9bc959270a33e849699f9df14144dd9ac7da622f..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSDescribeProcess.js.xml +++ /dev/null @@ -1,225 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.9</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WPSDescribeProcess.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n - \n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Format/OWSCommon/v1_1_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WPSDescribeProcess\n - * Read WPS DescribeProcess responses. \n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.WPSDescribeProcess = OpenLayers.Class(\n - OpenLayers.Format.XML, {\n - \n - /**\n - * Constant: VERSION\n - * {String} 1.0.0\n - */\n - VERSION: "1.0.0",\n -\n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - wps: "http://www.opengis.net/wps/1.0.0",\n - ows: "http://www.opengis.net/ows/1.1",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance"\n - },\n -\n - /**\n - * Property: schemaLocation\n - * {String} Schema location\n - */\n - schemaLocation: "http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd",\n -\n - /**\n - * Property: defaultPrefix\n - */\n - defaultPrefix: "wps",\n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n - \n - /**\n - * Constructor: OpenLayers.Format.WPSDescribeProcess\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: read\n - * Parse a WPS DescribeProcess and return an object with its information.\n - * \n - * Parameters: \n - * data - {String} or {DOMElement} data to read/parse.\n - *\n - * Returns:\n - * {Object}\n - */\n - read: function(data) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - if(data && data.nodeType == 9) {\n - data = data.documentElement;\n - }\n - var info = {};\n - this.readNode(data, info);\n - return info;\n - },\n -\n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "wps": {\n - "ProcessDescriptions": function(node, obj) {\n - obj.processDescriptions = {};\n - this.readChildNodes(node, obj.processDescriptions);\n - },\n - "ProcessDescription": function(node, processDescriptions) {\n - var processVersion = this.getAttributeNS(node, this.namespaces.wps, "processVersion");\n - var processDescription = {\n - processVersion: processVersion,\n - statusSupported: (node.getAttribute("statusSupported") === "true"),\n - storeSupported: (node.getAttribute("storeSupported") === "true")\n - };\n - this.readChildNodes(node, processDescription);\n - processDescriptions[processDescription.identifier] = processDescription;\n - },\n - "DataInputs": function(node, processDescription) {\n - processDescription.dataInputs = [];\n - this.readChildNodes(node, processDescription.dataInputs);\n - },\n - "ProcessOutputs": function(node, processDescription) {\n - processDescription.processOutputs = [];\n - this.readChildNodes(node, processDescription.processOutputs);\n - },\n - "Output": function(node, processOutputs) {\n - var output = {};\n - this.readChildNodes(node, output);\n - processOutputs.push(output);\n - },\n - "ComplexOutput": function(node, output) {\n - output.complexOutput = {};\n - this.readChildNodes(node, output.complexOutput);\n - },\n - "Input": function(node, dataInputs) {\n - var input = {\n - maxOccurs: parseInt(node.getAttribute("maxOccurs")),\n - minOccurs: parseInt(node.getAttribute("minOccurs"))\n - };\n - this.readChildNodes(node, input);\n - dataInputs.push(input);\n - },\n - "BoundingBoxData": function(node, input) {\n - input.boundingBoxData = {};\n - this.readChildNodes(node, input.boundingBoxData);\n - },\n - "CRS": function(node, obj) {\n - if (!obj.CRSs) {\n - obj.CRSs = {};\n - }\n - obj.CRSs[this.getChildValue(node)] = true;\n - },\n - "LiteralData": function(node, input) {\n - input.literalData = {};\n - this.readChildNodes(node, input.literalData);\n - },\n - "ComplexData": function(node, input) {\n - input.complexData = {};\n - this.readChildNodes(node, input.complexData);\n - },\n - "Default": function(node, complexData) {\n - complexData["default"] = {};\n - this.readChildNodes(node, complexData["default"]);\n - },\n - "Supported": function(node, complexData) {\n - complexData["supported"] = {};\n - this.readChildNodes(node, complexData["supported"]);\n - },\n - "Format": function(node, obj) {\n - var format = {};\n - this.readChildNodes(node, format);\n - if (!obj.formats) {\n - obj.formats = {};\n - }\n - obj.formats[format.mimeType] = true;\n - },\n - "MimeType": function(node, format) {\n - format.mimeType = this.getChildValue(node);\n - }\n - },\n - "ows": OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers["ows"]\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.WPSDescribeProcess" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6276</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSExecute.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSExecute.js.xml deleted file mode 100644 index ae0c3c6b6fd8f073d5a56a2fa5c09f3398bf2d94..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/WPSExecute.js.xml +++ /dev/null @@ -1,300 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.9</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WPSExecute.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Format/OWSCommon/v1_1_0.js\n - * @requires OpenLayers/Format/WCSGetCoverage.js\n - * @requires OpenLayers/Format/WFST/v1_1_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.WPSExecute version 1.0.0\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.WPSExecute = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - ows: "http://www.opengis.net/ows/1.1",\n - gml: "http://www.opengis.net/gml",\n - wps: "http://www.opengis.net/wps/1.0.0",\n - wfs: "http://www.opengis.net/wfs",\n - ogc: "http://www.opengis.net/ogc",\n - wcs: "http://www.opengis.net/wcs",\n - xlink: "http://www.w3.org/1999/xlink",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance"\n - },\n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n -\n - /**\n - * Constant: VERSION\n - * {String} 1.0.0\n - */\n - VERSION: "1.0.0",\n -\n - /**\n - * Property: schemaLocation\n - * {String} Schema location\n - */\n - schemaLocation: "http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd",\n -\n - schemaLocationAttr: function(options) {\n - return undefined;\n - },\n -\n - /**\n - * Constructor: OpenLayers.Format.WPSExecute\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * Method: write\n - *\n - * Parameters:\n - * options - {Object} Optional object.\n - *\n - * Returns:\n - * {String} An WPS Execute request XML string.\n - */\n - write: function(options) {\n - var doc;\n - if (window.ActiveXObject) {\n - doc = new ActiveXObject("Microsoft.XMLDOM");\n - this.xmldom = doc;\n - } else {\n - doc = document.implementation.createDocument("", "", null);\n - }\n - var node = this.writeNode("wps:Execute", options, doc);\n - this.setAttributeNS(\n - node, this.namespaces.xsi,\n - "xsi:schemaLocation", this.schemaLocation\n - );\n - return OpenLayers.Format.XML.prototype.write.apply(this, [node]);\n - }, \n -\n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "wps": {\n - "Execute": function(options) {\n - var node = this.createElementNSPlus("wps:Execute", {\n - attributes: {\n - version: this.VERSION,\n - service: \'WPS\'\n - } \n - }); \n - this.writeNode("ows:Identifier", options.identifier, node);\n - this.writeNode("wps:DataInputs", options.dataInputs, node);\n - this.writeNode("wps:ResponseForm", options.responseForm, node);\n - return node; \n - },\n - "ResponseForm": function(responseForm) {\n - var node = this.createElementNSPlus("wps:ResponseForm", {});\n - if (responseForm.rawDataOutput) {\n - this.writeNode("wps:RawDataOutput", responseForm.rawDataOutput, node);\n - }\n - if (responseForm.responseDocument) {\n - this.writeNode("wps:ResponseDocument", responseForm.responseDocument, node);\n - }\n - return node;\n - },\n - "ResponseDocument": function(responseDocument) {\n - var node = this.createElementNSPlus("wps:ResponseDocument", {\n - attributes: {\n - storeExecuteResponse: responseDocument.storeExecuteResponse,\n - lineage: responseDocument.lineage,\n - status: responseDocument.status\n - }\n - });\n - if (responseDocument.output) {\n - this.writeNode("wps:Output", responseDocument.output, node);\n - }\n - return node;\n - },\n - "Output": function(output) {\n - var node = this.createElementNSPlus("wps:Output", {\n - attributes: {\n - asReference: output.asReference\n - }\n - });\n - this.writeNode("ows:Identifier", output.identifier, node);\n - this.writeNode("ows:Title", output.title, node);\n - this.writeNode("ows:Abstract", output["abstract"], node);\n - return node;\n - },\n - "RawDataOutput": function(rawDataOutput) {\n - var node = this.createElementNSPlus("wps:RawDataOutput", {\n - attributes: {\n - mimeType: rawDataOutput.mimeType\n - }\n - });\n - this.writeNode("ows:Identifier", rawDataOutput.identifier, node);\n - return node;\n - },\n - "DataInputs": function(dataInputs) {\n - var node = this.createElementNSPlus("wps:DataInputs", {});\n - for (var i=0, ii=dataInputs.length; i<ii; ++i) {\n - this.writeNode("wps:Input", dataInputs[i], node);\n - }\n - return node;\n - },\n - "Input": function(input) {\n - var node = this.createElementNSPlus("wps:Input", {});\n - this.writeNode("ows:Identifier", input.identifier, node);\n - if (input.title) {\n - this.writeNode("ows:Title", input.title, node);\n - }\n - if (input.data) {\n - this.writeNode("wps:Data", input.data, node);\n - }\n - if (input.reference) {\n - this.writeNode("wps:Reference", input.reference, node);\n - }\n - return node;\n - },\n - "Data": function(data) {\n - var node = this.createElementNSPlus("wps:Data", {});\n - if (data.literalData) {\n - this.writeNode("wps:LiteralData", data.literalData, node);\n - } else if (data.complexData) {\n - this.writeNode("wps:ComplexData", data.complexData, node);\n - }\n - return node;\n - },\n - "LiteralData": function(literalData) {\n - var node = this.createElementNSPlus("wps:LiteralData", {\n - attributes: {\n - uom: literalData.uom\n - },\n - value: literalData.value\n - });\n - return node;\n - },\n - "ComplexData": function(complexData) {\n - var node = this.createElementNSPlus("wps:ComplexData", {\n - attributes: {\n - mimeType: complexData.mimeType,\n - encoding: complexData.encoding,\n - schema: complexData.schema\n - } \n - });\n - var data = complexData.value;\n - if (typeof data === "string") {\n - node.appendChild(\n - this.getXMLDoc().createCDATASection(complexData.value)\n - );\n - } else {\n - node.appendChild(data);\n - }\n - return node;\n - },\n - "Reference": function(reference) {\n - var node = this.createElementNSPlus("wps:Reference", {\n - attributes: {\n - mimeType: reference.mimeType,\n - "xlink:href": reference.href,\n - method: reference.method,\n - encoding: reference.encoding,\n - schema: reference.schema\n - }\n - });\n - if (reference.body) {\n - this.writeNode("wps:Body", reference.body, node);\n - }\n - return node;\n - },\n - "Body": function(body) {\n - var node = this.createElementNSPlus("wps:Body", {});\n - if (body.wcs) {\n - this.writeNode("wcs:GetCoverage", body.wcs, node);\n - }\n - else if (body.wfs) {\n - // OpenLayers.Format.WFST expects these to be on the \n - // instance and not in the options\n - this.featureType = body.wfs.featureType;\n - this.version = body.wfs.version;\n - this.writeNode("wfs:GetFeature", body.wfs, node);\n - } else {\n - this.writeNode("wps:Execute", body, node);\n - }\n - return node; \n - }\n - },\n - "wcs": OpenLayers.Format.WCSGetCoverage.prototype.writers.wcs,\n - "wfs": OpenLayers.Format.WFST.v1_1_0.prototype.writers.wfs,\n - "ogc": OpenLayers.Format.Filter.v1_1_0.prototype.writers.ogc,\n - "ows": OpenLayers.Format.OWSCommon.v1_1_0.prototype.writers.ows\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.WPSExecute" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>9602</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XLS.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XLS.js.xml deleted file mode 100644 index 2874f6125b2073991bc475965250d89e9adf67a8..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XLS.js.xml +++ /dev/null @@ -1,112 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.92</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>XLS.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML/VersionedOGC.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.XLS\n - * Read/Wite XLS (OpenLS). Create a new instance with the <OpenLayers.Format.XLS>\n - * constructor. Currently only implemented for Location Utility Services, more\n - * specifically only for Geocoding. No support for Reverse Geocoding as yet.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML.VersionedOGC>\n - */\n -OpenLayers.Format.XLS = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {\n - \n - /**\n - * APIProperty: defaultVersion\n - * {String} Version number to assume if none found. Default is "1.1.0".\n - */\n - defaultVersion: "1.1.0",\n - \n - /**\n - * APIProperty: stringifyOutput\n - * {Boolean} If true, write will return a string otherwise a DOMElement.\n - * Default is true.\n - */\n - stringifyOutput: true,\n - \n - /**\n - * Constructor: OpenLayers.Format.XLS\n - * Create a new parser for XLS.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - /**\n - * APIMethod: write\n - * Write out an XLS request.\n - *\n - * Parameters:\n - * request - {Object} An object representing the LUS request.\n - * options - {Object} Optional configuration object.\n - *\n - * Returns:\n - * {String} An XLS document string.\n - */\n - \n - /**\n - * APIMethod: read\n - * Read an XLS doc and return an object representing the result.\n - *\n - * Parameters:\n - * data - {String | DOMElement} Data to read.\n - * options - {Object} Options for the reader.\n - *\n - * Returns:\n - * {Object} An object representing the GeocodeResponse.\n - */\n -\n - CLASS_NAME: "OpenLayers.Format.XLS" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1970</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XLS.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XLS.xml deleted file mode 100644 index ef99d1f4685363d207345e6f1417003c306183a7..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XLS.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>XLS</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/XLS</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XLS/v1.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XLS/v1.js.xml deleted file mode 100644 index 2968bcdadee812c722950af51e5f7c0428168b8d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XLS/v1.js.xml +++ /dev/null @@ -1,348 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.94</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XLS.js\n - * @requires OpenLayers/Format/GML/v3.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.XLS.v1\n - * Superclass for XLS version 1 parsers. Only supports GeocodeRequest for now.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.XLS.v1 = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs.\n - */\n - namespaces: {\n - xls: "http://www.opengis.net/xls",\n - gml: "http://www.opengis.net/gml",\n - xsi: "http://www.w3.org/2001/XMLSchema-instance"\n - },\n -\n - /**\n - * Property: regExes\n - * Compiled regular expressions for manipulating strings.\n - */\n - regExes: {\n - trimSpace: (/^\\s*|\\s*$/g),\n - removeSpace: (/\\s*/g),\n - splitSpace: (/\\s+/),\n - trimComma: (/\\s*,\\s*/g)\n - },\n -\n - /**\n - * APIProperty: xy\n - * {Boolean} Order of the GML coordinate true:(x,y) or false:(y,x)\n - * Changing is not recommended, a new Format should be instantiated.\n - */\n - xy: true,\n - \n - /**\n - * Property: defaultPrefix\n - */\n - defaultPrefix: "xls",\n -\n - /**\n - * Property: schemaLocation\n - * {String} Schema location for a particular minor version.\n - */\n - schemaLocation: null,\n - \n - /**\n - * Constructor: OpenLayers.Format.XLS.v1\n - * Instances of this class are not created directly. Use the\n - * <OpenLayers.Format.XLS> constructor instead.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n - \n - /**\n - * Method: read\n - *\n - * Parameters:\n - * data - {DOMElement} An XLS document element.\n - * options - {Object} Options for the reader.\n - *\n - * Returns:\n - * {Object} An object representing the XLSResponse.\n - */\n - read: function(data, options) {\n - options = OpenLayers.Util.applyDefaults(options, this.options);\n - var xls = {};\n - this.readChildNodes(data, xls);\n - return xls;\n - },\n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {\n - "xls": {\n - "XLS": function(node, xls) {\n - xls.version = node.getAttribute("version");\n - this.readChildNodes(node, xls);\n - },\n - "Response": function(node, xls) {\n - this.readChildNodes(node, xls);\n - },\n - "GeocodeResponse": function(node, xls) {\n - xls.responseLists = [];\n - this.readChildNodes(node, xls);\n - },\n - "GeocodeResponseList": function(node, xls) {\n - var responseList = {\n - features: [], \n - numberOfGeocodedAddresses: \n - parseInt(node.getAttribute("numberOfGeocodedAddresses"))\n - };\n - xls.responseLists.push(responseList);\n - this.readChildNodes(node, responseList);\n - },\n - "GeocodedAddress": function(node, responseList) {\n - var feature = new OpenLayers.Feature.Vector();\n - responseList.features.push(feature);\n - this.readChildNodes(node, feature);\n - // post-process geometry\n - feature.geometry = feature.components[0];\n - },\n - "GeocodeMatchCode": function(node, feature) {\n - feature.attributes.matchCode = {\n - accuracy: parseFloat(node.getAttribute("accuracy")),\n - matchType: node.getAttribute("matchType")\n - };\n - },\n - "Address": function(node, feature) {\n - var address = {\n - countryCode: node.getAttribute("countryCode"),\n - addressee: node.getAttribute("addressee"),\n - street: [],\n - place: []\n - };\n - feature.attributes.address = address;\n - this.readChildNodes(node, address);\n - },\n - "freeFormAddress": function(node, address) {\n - address.freeFormAddress = this.getChildValue(node);\n - },\n - "StreetAddress": function(node, address) {\n - this.readChildNodes(node, address);\n - },\n - "Building": function(node, address) {\n - address.building = {\n - \'number\': node.getAttribute("number"),\n - subdivision: node.getAttribute("subdivision"),\n - buildingName: node.getAttribute("buildingName")\n - };\n - },\n - "Street": function(node, address) {\n - // only support the built-in primitive type for now\n - address.street.push(this.getChildValue(node));\n - },\n - "Place": function(node, address) {\n - // type is one of CountrySubdivision, \n - // CountrySecondarySubdivision, Municipality or\n - // MunicipalitySubdivision\n - address.place[node.getAttribute("type")] = \n - this.getChildValue(node);\n - },\n - "PostalCode": function(node, address) {\n - address.postalCode = this.getChildValue(node);\n - }\n - },\n - "gml": OpenLayers.Format.GML.v3.prototype.readers.gml\n - },\n - \n - /**\n - * Method: write\n - *\n - * Parameters:\n - * request - {Object} An object representing the geocode request.\n - *\n - * Returns:\n - * {DOMElement} The root of an XLS document.\n - */\n - write: function(request) {\n - return this.writers.xls.XLS.apply(this, [request]);\n - },\n - \n - /**\n - * Property: writers\n - * As a compliment to the readers property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {\n - "xls": {\n - "XLS": function(request) {\n - var root = this.createElementNSPlus(\n - "xls:XLS",\n - {attributes: {\n - "version": this.VERSION,\n - "xsi:schemaLocation": this.schemaLocation\n - }}\n - );\n - this.writeNode("RequestHeader", request.header, root);\n - this.writeNode("Request", request, root);\n - return root;\n - },\n - "RequestHeader": function(header) {\n - return this.createElementNSPlus("xls:RequestHeader");\n - },\n - "Request": function(request) {\n - var node = this.createElementNSPlus("xls:Request", {\n - attributes: {\n - methodName: "GeocodeRequest",\n - requestID: request.requestID || "",\n - version: this.VERSION\n - }\n - });\n - this.writeNode("GeocodeRequest", request.addresses, node);\n - return node;\n - },\n - "GeocodeRequest": function(addresses) {\n - var node = this.createElementNSPlus("xls:GeocodeRequest");\n - for (var i=0, len=addresses.length; i<len; i++) {\n - this.writeNode("Address", addresses[i], node);\n - }\n - return node;\n - },\n - "Address": function(address) {\n - var node = this.createElementNSPlus("xls:Address", {\n - attributes: {\n - countryCode: address.countryCode\n - }\n - });\n - if (address.freeFormAddress) {\n - this.writeNode("freeFormAddress", address.freeFormAddress, node);\n - } else {\n - if (address.street) {\n - this.writeNode("StreetAddress", address, node);\n - }\n - if (address.municipality) {\n - this.writeNode("Municipality", address.municipality, node);\n - }\n - if (address.countrySubdivision) {\n - this.writeNode("CountrySubdivision", address.countrySubdivision, node);\n - }\n - if (address.postalCode) {\n - this.writeNode("PostalCode", address.postalCode, node);\n - }\n - }\n - return node;\n - },\n - "freeFormAddress": function(freeFormAddress) {\n - return this.createElementNSPlus("freeFormAddress", \n - {value: freeFormAddress});\n - },\n - "StreetAddress": function(address) {\n - var node = this.createElementNSPlus("xls:StreetAddress");\n - if (address.building) {\n - this.writeNode(node, "Building", address.building);\n - }\n - var street = address.street;\n - if (!(OpenLayers.Util.isArray(street))) {\n - street = [street];\n - }\n - for (var i=0, len=street.length; i < len; i++) {\n - this.writeNode("Street", street[i], node);\n - }\n - return node;\n - },\n - "Building": function(building) {\n - return this.createElementNSPlus("xls:Building", {\n - attributes: {\n - "number": building["number"],\n - "subdivision": building.subdivision,\n - "buildingName": building.buildingName\n - }\n - });\n - },\n - "Street": function(street) {\n - return this.createElementNSPlus("xls:Street", {value: street});\n - },\n - "Municipality": function(municipality) {\n - return this.createElementNSPlus("xls:Place", {\n - attributes: {\n - type: "Municipality"\n - },\n - value: municipality\n - });\n - },\n - "CountrySubdivision": function(countrySubdivision) {\n - return this.createElementNSPlus("xls:Place", {\n - attributes: {\n - type: "CountrySubdivision"\n - },\n - value: countrySubdivision\n - });\n - },\n - "PostalCode": function(postalCode) {\n - return this.createElementNSPlus("xls:PostalCode", {\n - value: postalCode\n - });\n - }\n - }\n - },\n - \n - CLASS_NAME: "OpenLayers.Format.XLS.v1" \n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>11114</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XLS/v1_1_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XLS/v1_1_0.js.xml deleted file mode 100644 index fcb363e5ca63a3eec1d7ae7f44899282f6fe0300..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XLS/v1_1_0.js.xml +++ /dev/null @@ -1,92 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.94</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_1_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XLS/v1.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.XLS.v1_1_0\n - * Read / write XLS version 1.1.0.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XLS.v1>\n - */\n -OpenLayers.Format.XLS.v1_1_0 = OpenLayers.Class(\n - OpenLayers.Format.XLS.v1, {\n - \n - /**\n - * Constant: VERSION\n - * {String} 1.1\n - */\n - VERSION: "1.1",\n - \n - /**\n - * Property: schemaLocation\n - * {String} http://www.opengis.net/xls\n - * http://schemas.opengis.net/ols/1.1.0/LocationUtilityService.xsd\n - */\n - schemaLocation: "http://www.opengis.net/xls http://schemas.opengis.net/ols/1.1.0/LocationUtilityService.xsd",\n -\n - /**\n - * Constructor: OpenLayers.Format.XLS.v1_1_0\n - * Instances of this class are not created directly. Use the\n - * <OpenLayers.Format.XLS> constructor instead.\n - *\n - * Parameters:\n - * options - {Object} An optional object whose properties will be set on\n - * this instance.\n - */\n -\n - CLASS_NAME: "OpenLayers.Format.XLS.v1_1_0"\n -\n -});\n -\n -// Support non standard implementation\n -OpenLayers.Format.XLS.v1_1 = OpenLayers.Format.XLS.v1_1_0;\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1360</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XML.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XML.js.xml deleted file mode 100644 index 644f4e07e4e25f96e3f4ecc081e9a5bc56eeccbe..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XML.js.xml +++ /dev/null @@ -1,921 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.91</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>XML.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.XML\n - * Read and write XML. For cross-browser XML generation, use methods on an\n - * instance of the XML format class instead of on <code>document<end>.\n - * The DOM creation and traversing methods exposed here all mimic the\n - * W3C XML DOM methods. Create a new parser with the\n - * <OpenLayers.Format.XML> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Format>\n - */\n -OpenLayers.Format.XML = OpenLayers.Class(OpenLayers.Format, {\n - \n - /**\n - * Property: namespaces\n - * {Object} Mapping of namespace aliases to namespace URIs. Properties\n - * of this object should not be set individually. Read-only. All\n - * XML subclasses should have their own namespaces object. Use\n - * <setNamespace> to add or set a namespace alias after construction.\n - */\n - namespaces: null,\n - \n - /**\n - * Property: namespaceAlias\n - * {Object} Mapping of namespace URI to namespace alias. This object\n - * is read-only. Use <setNamespace> to add or set a namespace alias.\n - */\n - namespaceAlias: null,\n - \n - /**\n - * Property: defaultPrefix\n - * {String} The default namespace alias for creating element nodes.\n - */\n - defaultPrefix: null,\n - \n - /**\n - * Property: readers\n - * Contains public functions, grouped by namespace prefix, that will\n - * be applied when a namespaced node is found matching the function\n - * name. The function will be applied in the scope of this parser\n - * with two arguments: the node being read and a context object passed\n - * from the parent.\n - */\n - readers: {},\n - \n - /**\n - * Property: writers\n - * As a compliment to the <readers> property, this structure contains public\n - * writing functions grouped by namespace alias and named like the\n - * node names they produce.\n - */\n - writers: {},\n -\n - /**\n - * Property: xmldom\n - * {XMLDom} If this browser uses ActiveX, this will be set to a XMLDOM\n - * object. It is not intended to be a browser sniffing property.\n - * Instead, the xmldom property is used instead of <code>document<end>\n - * where namespaced node creation methods are not supported. In all\n - * other browsers, this remains null.\n - */\n - xmldom: null,\n -\n - /**\n - * Constructor: OpenLayers.Format.XML\n - * Construct an XML parser. The parser is used to read and write XML.\n - * Reading XML from a string returns a DOM element. Writing XML from\n - * a DOM element returns a string.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on\n - * the object.\n - */\n - initialize: function(options) {\n - if(window.ActiveXObject) {\n - this.xmldom = new ActiveXObject("Microsoft.XMLDOM");\n - }\n - OpenLayers.Format.prototype.initialize.apply(this, [options]);\n - // clone the namespace object and set all namespace aliases\n - this.namespaces = OpenLayers.Util.extend({}, this.namespaces);\n - this.namespaceAlias = {};\n - for(var alias in this.namespaces) {\n - this.namespaceAlias[this.namespaces[alias]] = alias;\n - }\n - },\n - \n - /**\n - * APIMethod: destroy\n - * Clean up.\n - */\n - destroy: function() {\n - this.xmldom = null;\n - OpenLayers.Format.prototype.destroy.apply(this, arguments);\n - },\n - \n - /**\n - * Method: setNamespace\n - * Set a namespace alias and URI for the format.\n - *\n - * Parameters:\n - * alias - {String} The namespace alias (prefix).\n - * uri - {String} The namespace URI.\n - */\n - setNamespace: function(alias, uri) {\n - this.namespaces[alias] = uri;\n - this.namespaceAlias[uri] = alias;\n - },\n -\n - /**\n - * APIMethod: read\n - * Deserialize a XML string and return a DOM node.\n - *\n - * Parameters:\n - * text - {String} A XML string\n - \n - * Returns:\n - * {DOMElement} A DOM node\n - */\n - read: function(text) {\n - var index = text.indexOf(\'<\');\n - if(index > 0) {\n - text = text.substring(index);\n - }\n - var node = OpenLayers.Util.Try(\n - OpenLayers.Function.bind((\n - function() {\n - var xmldom;\n - /**\n - * Since we want to be able to call this method on the prototype\n - * itself, this.xmldom may not exist even if in IE.\n - */\n - if(window.ActiveXObject && !this.xmldom) {\n - xmldom = new ActiveXObject("Microsoft.XMLDOM");\n - } else {\n - xmldom = this.xmldom;\n - \n - }\n - xmldom.loadXML(text);\n - return xmldom;\n - }\n - ), this),\n - function() {\n - return new DOMParser().parseFromString(text, \'text/xml\');\n - },\n - function() {\n - var req = new XMLHttpRequest();\n - req.open("GET", "data:" + "text/xml" +\n - ";charset=utf-8," + encodeURIComponent(text), false);\n - if(req.overrideMimeType) {\n - req.overrideMimeType("text/xml");\n - }\n - req.send(null);\n - return req.responseXML;\n - }\n - );\n -\n - if(this.keepData) {\n - this.data = node;\n - }\n -\n - return node;\n - },\n -\n - /**\n - * APIMethod: write\n - * Serialize a DOM node into a XML string.\n - * \n - * Parameters:\n - * node - {DOMElement} A DOM node.\n - *\n - * Returns:\n - * {String} The XML string representation of the input node.\n - */\n - write: function(node) {\n - var data;\n - if(this.xmldom) {\n - data = node.xml;\n - } else {\n - var serializer = new XMLSerializer();\n - if (node.nodeType == 1) {\n - // Add nodes to a document before serializing. Everything else\n - // is serialized as is. This may need more work. See #1218 .\n - var doc = document.implementation.createDocument("", "", null);\n - if (doc.importNode) {\n - node = doc.importNode(node, true);\n - }\n - doc.appendChild(node);\n - data = serializer.serializeToString(doc);\n - } else {\n - data = serializer.serializeToString(node);\n - }\n - }\n - return data;\n - },\n -\n - /**\n - * APIMethod: createElementNS\n - * Create a new element with namespace. This node can be appended to\n - * another node with the standard node.appendChild method. For\n - * cross-browser support, this method must be used instead of\n - * document.createElementNS.\n - *\n - * Parameters:\n - * uri - {String} Namespace URI for the element.\n - * name - {String} The qualified name of the element (prefix:localname).\n - * \n - * Returns:\n - * {Element} A DOM element with namespace.\n - */\n - createElementNS: function(uri, name) {\n - var element;\n - if(this.xmldom) {\n - if(typeof uri == "string") {\n - element = this.xmldom.createNode(1, name, uri);\n - } else {\n - element = this.xmldom.createNode(1, name, "");\n - }\n - } else {\n - element = document.createElementNS(uri, name);\n - }\n - return element;\n - },\n -\n - /**\n - * APIMethod: createTextNode\n - * Create a text node. This node can be appended to another node with\n - * the standard node.appendChild method. For cross-browser support,\n - * this method must be used instead of document.createTextNode.\n - * \n - * Parameters:\n - * text - {String} The text of the node.\n - * \n - * Returns: \n - * {DOMElement} A DOM text node.\n - */\n - createTextNode: function(text) {\n - var node;\n - if (typeof text !== "string") {\n - text = String(text);\n - }\n - if(this.xmldom) {\n - node = this.xmldom.createTextNode(text);\n - } else {\n - node = document.createTextNode(text);\n - }\n - return node;\n - },\n -\n - /**\n - * APIMethod: getElementsByTagNameNS\n - * Get a list of elements on a node given the namespace URI and local name.\n - * To return all nodes in a given namespace, use \'*\' for the name\n - * argument. To return all nodes of a given (local) name, regardless\n - * of namespace, use \'*\' for the uri argument.\n - * \n - * Parameters:\n - * node - {Element} Node on which to search for other nodes.\n - * uri - {String} Namespace URI.\n - * name - {String} Local name of the tag (without the prefix).\n - * \n - * Returns:\n - * {NodeList} A node list or array of elements.\n - */\n - getElementsByTagNameNS: function(node, uri, name) {\n - var elements = [];\n - if(node.getElementsByTagNameNS) {\n - elements = node.getElementsByTagNameNS(uri, name);\n - } else {\n - // brute force method\n - var allNodes = node.getElementsByTagName("*");\n - var potentialNode, fullName;\n - for(var i=0, len=allNodes.length; i<len; ++i) {\n - potentialNode = allNodes[i];\n - fullName = (potentialNode.prefix) ?\n - (potentialNode.prefix + ":" + name) : name;\n - if((name == "*") || (fullName == potentialNode.nodeName)) {\n - if((uri == "*") || (uri == potentialNode.namespaceURI)) {\n - elements.push(potentialNode);\n - }\n - }\n - }\n - }\n - return elements;\n - },\n -\n - /**\n - * APIMethod: getAttributeNodeNS\n - * Get an attribute node given the namespace URI and local name.\n - * \n - * Parameters:\n - * node - {Element} Node on which to search for attribute nodes.\n - * uri - {String} Namespace URI.\n - * name - {String} Local name of the attribute (without the prefix).\n - * \n - * Returns:\n - * {DOMElement} An attribute node or null if none found.\n - */\n - getAttributeNodeNS: function(node, uri, name) {\n - var attributeNode = null;\n - if(node.getAttributeNodeNS) {\n - attributeNode = node.getAttributeNodeNS(uri, name);\n - } else {\n - var attributes = node.attributes;\n - var potentialNode, fullName;\n - for(var i=0, len=attributes.length; i<len; ++i) {\n - potentialNode = attributes[i];\n - if(potentialNode.namespaceURI == uri) {\n - fullName = (potentialNode.prefix) ?\n - (potentialNode.prefix + ":" + name) : name;\n - if(fullName == potentialNode.nodeName) {\n - attributeNode = potentialNode;\n - break;\n - }\n - }\n - }\n - }\n - return attributeNode;\n - },\n -\n - /**\n - * APIMethod: getAttributeNS\n - * Get an attribute value given the namespace URI and local name.\n - * \n - * Parameters:\n - * node - {Element} Node on which to search for an attribute.\n - * uri - {String} Namespace URI.\n - * name - {String} Local name of the attribute (without the prefix).\n - * \n - * Returns:\n - * {String} An attribute value or and empty string if none found.\n - */\n - getAttributeNS: function(node, uri, name) {\n - var attributeValue = "";\n - if(node.getAttributeNS) {\n - attributeValue = node.getAttributeNS(uri, name) || "";\n - } else {\n - var attributeNode = this.getAttributeNodeNS(node, uri, name);\n - if(attributeNode) {\n - attributeValue = attributeNode.nodeValue;\n - }\n - }\n - return attributeValue;\n - },\n - \n - /**\n - * APIMethod: getChildValue\n - * Get the textual value of the node if it exists, or return an\n - * optional default string. Returns an empty string if no first child\n - * exists and no default value is supplied.\n - *\n - * Parameters:\n - * node - {DOMElement} The element used to look for a first child value.\n - * def - {String} Optional string to return in the event that no\n - * first child value exists.\n - *\n - * Returns:\n - * {String} The value of the first child of the given node.\n - */\n - getChildValue: function(node, def) {\n - var value = def || "";\n - if(node) {\n - for(var child=node.firstChild; child; child=child.nextSibling) {\n - switch(child.nodeType) {\n - case 3: // text node\n - case 4: // cdata section\n - value += child.nodeValue;\n - }\n - }\n - }\n - return value;\n - },\n -\n - /**\n - * APIMethod: isSimpleContent\n - * Test if the given node has only simple content (i.e. no child element\n - * nodes).\n - *\n - * Parameters:\n - * node - {DOMElement} An element node.\n - *\n - * Returns:\n - * {Boolean} The node has no child element nodes (nodes of type 1). \n - */\n - isSimpleContent: function(node) {\n - var simple = true;\n - for(var child=node.firstChild; child; child=child.nextSibling) {\n - if(child.nodeType === 1) {\n - simple = false;\n - break;\n - }\n - }\n - return simple;\n - },\n - \n - /**\n - * APIMethod: contentType\n - * Determine the content type for a given node.\n - *\n - * Parameters:\n - * node - {DOMElement}\n - *\n - * Returns:\n - * {Integer} One of OpenLayers.Format.XML.CONTENT_TYPE.{EMPTY,SIMPLE,COMPLEX,MIXED}\n - * if the node has no, simple, complex, or mixed content.\n - */\n - contentType: function(node) {\n - var simple = false,\n - complex = false;\n - \n - var type = OpenLayers.Format.XML.CONTENT_TYPE.EMPTY;\n -\n - for(var child=node.firstChild; child; child=child.nextSibling) {\n - switch(child.nodeType) {\n - case 1: // element\n - complex = true;\n - break;\n - case 8: // comment\n - break;\n - default:\n - simple = true;\n - }\n - if(complex && simple) {\n - break;\n - }\n - }\n - \n - if(complex && simple) {\n - type = OpenLayers.Format.XML.CONTENT_TYPE.MIXED;\n - } else if(complex) {\n - return OpenLayers.Format.XML.CONTENT_TYPE.COMPLEX;\n - } else if(simple) {\n - return OpenLayers.Format.XML.CONTENT_TYPE.SIMPLE;\n - }\n - return type;\n - },\n -\n - /**\n - * APIMethod: hasAttributeNS\n - * Determine whether a node has a particular attribute matching the given\n - * name and namespace.\n - * \n - * Parameters:\n - * node - {Element} Node on which to search for an attribute.\n - * uri - {String} Namespace URI.\n - * name - {String} Local name of the attribute (without the prefix).\n - * \n - * Returns:\n - * {Boolean} The node has an attribute matching the name and namespace.\n - */\n - hasAttributeNS: function(node, uri, name) {\n - var found = false;\n - if(node.hasAttributeNS) {\n - found = node.hasAttributeNS(uri, name);\n - } else {\n - found = !!this.getAttributeNodeNS(node, uri, name);\n - }\n - return found;\n - },\n - \n - /**\n - * APIMethod: setAttributeNS\n - * Adds a new attribute or changes the value of an attribute with the given\n - * namespace and name.\n - *\n - * Parameters:\n - * node - {Element} Element node on which to set the attribute.\n - * uri - {String} Namespace URI for the attribute.\n - * name - {String} Qualified name (prefix:localname) for the attribute.\n - * value - {String} Attribute value.\n - */\n - setAttributeNS: function(node, uri, name, value) {\n - if(node.setAttributeNS) {\n - node.setAttributeNS(uri, name, value);\n - } else {\n - if(this.xmldom) {\n - if(uri) {\n - var attribute = node.ownerDocument.createNode(\n - 2, name, uri\n - );\n - attribute.nodeValue = value;\n - node.setAttributeNode(attribute);\n - } else {\n - node.setAttribute(name, value);\n - }\n - } else {\n - throw "setAttributeNS not implemented";\n - }\n - }\n - },\n -\n - /**\n - * Method: createElementNSPlus\n - * Shorthand for creating namespaced elements with optional attributes and\n - * child text nodes.\n - *\n - * Parameters:\n - * name - {String} The qualified node name.\n - * options - {Object} Optional object for node configuration.\n - *\n - * Valid options:\n - * uri - {String} Optional namespace uri for the element - supply a prefix\n - * instead if the namespace uri is a property of the format\'s namespace\n - * object.\n - * attributes - {Object} Optional attributes to be set using the\n - * <setAttributes> method.\n - * value - {String} Optional text to be appended as a text node.\n - *\n - * Returns:\n - * {Element} An element node.\n - */\n - createElementNSPlus: function(name, options) {\n - options = options || {};\n - // order of prefix preference\n - // 1. in the uri option\n - // 2. in the prefix option\n - // 3. in the qualified name\n - // 4. from the defaultPrefix\n - var uri = options.uri || this.namespaces[options.prefix];\n - if(!uri) {\n - var loc = name.indexOf(":");\n - uri = this.namespaces[name.substring(0, loc)];\n - }\n - if(!uri) {\n - uri = this.namespaces[this.defaultPrefix];\n - }\n - var node = this.createElementNS(uri, name);\n - if(options.attributes) {\n - this.setAttributes(node, options.attributes);\n - }\n - var value = options.value;\n - if(value != null) {\n - node.appendChild(this.createTextNode(value));\n - }\n - return node;\n - },\n - \n - /**\n - * Method: setAttributes\n - * Set multiple attributes given key value pairs from an object.\n - *\n - * Parameters:\n - * node - {Element} An element node.\n - * obj - {Object || Array} An object whose properties represent attribute\n - * names and values represent attribute values. If an attribute name\n - * is a qualified name ("prefix:local"), the prefix will be looked up\n - * in the parsers {namespaces} object. If the prefix is found,\n - * setAttributeNS will be used instead of setAttribute.\n - */\n - setAttributes: function(node, obj) {\n - var value, uri;\n - for(var name in obj) {\n - if(obj[name] != null && obj[name].toString) {\n - value = obj[name].toString();\n - // check for qualified attribute name ("prefix:local")\n - uri = this.namespaces[name.substring(0, name.indexOf(":"))] || null;\n - this.setAttributeNS(node, uri, name, value);\n - }\n - }\n - },\n -\n - /**\n - * Method: readNode\n - * Shorthand for applying one of the named readers given the node\n - * namespace and local name. Readers take two args (node, obj) and\n - * generally extend or modify the second.\n - *\n - * Parameters:\n - * node - {DOMElement} The node to be read (required).\n - * obj - {Object} The object to be modified (optional).\n - *\n - * Returns:\n - * {Object} The input object, modified (or a new one if none was provided).\n - */\n - readNode: function(node, obj) {\n - if(!obj) {\n - obj = {};\n - }\n - var group = this.readers[node.namespaceURI ? this.namespaceAlias[node.namespaceURI]: this.defaultPrefix];\n - if(group) {\n - var local = node.localName || node.nodeName.split(":").pop();\n - var reader = group[local] || group["*"];\n - if(reader) {\n - reader.apply(this, [node, obj]);\n - }\n - }\n - return obj;\n - },\n -\n - /**\n - * Method: readChildNodes\n - * Shorthand for applying the named readers to all children of a node.\n - * For each child of type 1 (element), <readSelf> is called.\n - *\n - * Parameters:\n - * node - {DOMElement} The node to be read (required).\n - * obj - {Object} The object to be modified (optional).\n - *\n - * Returns:\n - * {Object} The input object, modified.\n - */\n - readChildNodes: function(node, obj) {\n - if(!obj) {\n - obj = {};\n - }\n - var children = node.childNodes;\n - var child;\n - for(var i=0, len=children.length; i<len; ++i) {\n - child = children[i];\n - if(child.nodeType == 1) {\n - this.readNode(child, obj);\n - }\n - }\n - return obj;\n - },\n -\n - /**\n - * Method: writeNode\n - * Shorthand for applying one of the named writers and appending the\n - * results to a node. If a qualified name is not provided for the\n - * second argument (and a local name is used instead), the namespace\n - * of the parent node will be assumed.\n - *\n - * Parameters:\n - * name - {String} The name of a node to generate. If a qualified name\n - * (e.g. "pre:Name") is used, the namespace prefix is assumed to be\n - * in the <writers> group. If a local name is used (e.g. "Name") then\n - * the namespace of the parent is assumed. If a local name is used\n - * and no parent is supplied, then the default namespace is assumed.\n - * obj - {Object} Structure containing data for the writer.\n - * parent - {DOMElement} Result will be appended to this node. If no parent\n - * is supplied, the node will not be appended to anything.\n - *\n - * Returns:\n - * {DOMElement} The child node.\n - */\n - writeNode: function(name, obj, parent) {\n - var prefix, local;\n - var split = name.indexOf(":");\n - if(split > 0) {\n - prefix = name.substring(0, split);\n - local = name.substring(split + 1);\n - } else {\n - if(parent) {\n - prefix = this.namespaceAlias[parent.namespaceURI];\n - } else {\n - prefix = this.defaultPrefix;\n - }\n - local = name;\n - }\n - var child = this.writers[prefix][local].apply(this, [obj]);\n - if(parent) {\n - parent.appendChild(child);\n - }\n - return child;\n - },\n -\n - /**\n - * APIMethod: getChildEl\n - * Get the first child element. Optionally only return the first child\n - * if it matches the given name and namespace URI.\n - *\n - * Parameters:\n - * node - {DOMElement} The parent node.\n - * name - {String} Optional node name (local) to search for.\n - * uri - {String} Optional namespace URI to search for.\n - *\n - * Returns:\n - * {DOMElement} The first child. Returns null if no element is found, if\n - * something significant besides an element is found, or if the element\n - * found does not match the optional name and uri.\n - */\n - getChildEl: function(node, name, uri) {\n - return node && this.getThisOrNextEl(node.firstChild, name, uri);\n - },\n - \n - /**\n - * APIMethod: getNextEl\n - * Get the next sibling element. Optionally get the first sibling only\n - * if it matches the given local name and namespace URI.\n - *\n - * Parameters:\n - * node - {DOMElement} The node.\n - * name - {String} Optional local name of the sibling to search for.\n - * uri - {String} Optional namespace URI of the sibling to search for.\n - *\n - * Returns:\n - * {DOMElement} The next sibling element. Returns null if no element is\n - * found, something significant besides an element is found, or the\n - * found element does not match the optional name and uri.\n - */\n - getNextEl: function(node, name, uri) {\n - return node && this.getThisOrNextEl(node.nextSibling, name, uri);\n - },\n - \n - /**\n - * Method: getThisOrNextEl\n - * Return this node or the next element node. Optionally get the first\n - * sibling with the given local name or namespace URI.\n - *\n - * Parameters:\n - * node - {DOMElement} The node.\n - * name - {String} Optional local name of the sibling to search for.\n - * uri - {String} Optional namespace URI of the sibling to search for.\n - *\n - * Returns:\n - * {DOMElement} The next sibling element. Returns null if no element is\n - * found, something significant besides an element is found, or the\n - * found element does not match the query.\n - */\n - getThisOrNextEl: function(node, name, uri) {\n - outer: for(var sibling=node; sibling; sibling=sibling.nextSibling) {\n - switch(sibling.nodeType) {\n - case 1: // Element\n - if((!name || name === (sibling.localName || sibling.nodeName.split(":").pop())) &&\n - (!uri || uri === sibling.namespaceURI)) {\n - // matches\n - break outer;\n - }\n - sibling = null;\n - break outer;\n - case 3: // Text\n - if(/^\\s*$/.test(sibling.nodeValue)) {\n - break;\n - }\n - case 4: // CDATA\n - case 6: // ENTITY_NODE\n - case 12: // NOTATION_NODE\n - case 10: // DOCUMENT_TYPE_NODE\n - case 11: // DOCUMENT_FRAGMENT_NODE\n - sibling = null;\n - break outer;\n - } // ignore comments and processing instructions\n - }\n - return sibling || null;\n - },\n - \n - /**\n - * APIMethod: lookupNamespaceURI\n - * Takes a prefix and returns the namespace URI associated with it on the given\n - * node if found (and null if not). Supplying null for the prefix will\n - * return the default namespace.\n - *\n - * For browsers that support it, this calls the native lookupNamesapceURI\n - * function. In other browsers, this is an implementation of\n - * http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespaceURI.\n - *\n - * For browsers that don\'t support the attribute.ownerElement property, this\n - * method cannot be called on attribute nodes.\n - * \n - * Parameters:\n - * node - {DOMElement} The node from which to start looking.\n - * prefix - {String} The prefix to lookup or null to lookup the default namespace.\n - * \n - * Returns:\n - * {String} The namespace URI for the given prefix. Returns null if the prefix\n - * cannot be found or the node is the wrong type.\n - */\n - lookupNamespaceURI: function(node, prefix) {\n - var uri = null;\n - if(node) {\n - if(node.lookupNamespaceURI) {\n - uri = node.lookupNamespaceURI(prefix);\n - } else {\n - outer: switch(node.nodeType) {\n - case 1: // ELEMENT_NODE\n - if(node.namespaceURI !== null && node.prefix === prefix) {\n - uri = node.namespaceURI;\n - break outer;\n - }\n - var len = node.attributes.length;\n - if(len) {\n - var attr;\n - for(var i=0; i<len; ++i) {\n - attr = node.attributes[i];\n - if(attr.prefix === "xmlns" && attr.name === "xmlns:" + prefix) {\n - uri = attr.value || null;\n - break outer;\n - } else if(attr.name === "xmlns" && prefix === null) {\n - uri = attr.value || null;\n - break outer;\n - }\n - }\n - }\n - uri = this.lookupNamespaceURI(node.parentNode, prefix);\n - break outer;\n - case 2: // ATTRIBUTE_NODE\n - uri = this.lookupNamespaceURI(node.ownerElement, prefix);\n - break outer;\n - case 9: // DOCUMENT_NODE\n - uri = this.lookupNamespaceURI(node.documentElement, prefix);\n - break outer;\n - case 6: // ENTITY_NODE\n - case 12: // NOTATION_NODE\n - case 10: // DOCUMENT_TYPE_NODE\n - case 11: // DOCUMENT_FRAGMENT_NODE\n - break outer;\n - default: \n - // TEXT_NODE (3), CDATA_SECTION_NODE (4), ENTITY_REFERENCE_NODE (5),\n - // PROCESSING_INSTRUCTION_NODE (7), COMMENT_NODE (8)\n - uri = this.lookupNamespaceURI(node.parentNode, prefix);\n - break outer;\n - }\n - }\n - }\n - return uri;\n - },\n - \n - /**\n - * Method: getXMLDoc\n - * Get an XML document for nodes that are not supported in HTML (e.g.\n - * createCDATASection). On IE, this will either return an existing or\n - * create a new <xmldom> on the instance. On other browsers, this will\n - * either return an existing or create a new shared document (see\n - * <OpenLayers.Format.XML.document>).\n - *\n - * Returns:\n - * {XMLDocument}\n - */\n - getXMLDoc: function() {\n - if (!OpenLayers.Format.XML.document && !this.xmldom) {\n - if (document.implementation && document.implementation.createDocument) {\n - OpenLayers.Format.XML.document =\n - document.implementation.createDocument("", "", null);\n - } else if (!this.xmldom && window.ActiveXObject) {\n - this.xmldom = new ActiveXObject("Microsoft.XMLDOM");\n - }\n - }\n - return OpenLayers.Format.XML.document || this.xmldom;\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.XML" \n -\n -}); \n -\n -OpenLayers.Format.XML.CONTENT_TYPE = {EMPTY: 0, SIMPLE: 1, COMPLEX: 2, MIXED: 3};\n -\n -/**\n - * APIFunction: OpenLayers.Format.XML.lookupNamespaceURI\n - * Takes a prefix and returns the namespace URI associated with it on the given\n - * node if found (and null if not). Supplying null for the prefix will\n - * return the default namespace.\n - *\n - * For browsers that support it, this calls the native lookupNamesapceURI\n - * function. In other browsers, this is an implementation of\n - * http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespaceURI.\n - *\n - * For browsers that don\'t support the attribute.ownerElement property, this\n - * method cannot be called on attribute nodes.\n - * \n - * Parameters:\n - * node - {DOMElement} The node from which to start looking.\n - * prefix - {String} The prefix to lookup or null to lookup the default namespace.\n - * \n - * Returns:\n - * {String} The namespace URI for the given prefix. Returns null if the prefix\n - * cannot be found or the node is the wrong type.\n - */\n -OpenLayers.Format.XML.lookupNamespaceURI = OpenLayers.Function.bind(\n - OpenLayers.Format.XML.prototype.lookupNamespaceURI,\n - OpenLayers.Format.XML.prototype\n -);\n -\n -/**\n - * Property: OpenLayers.Format.XML.document\n - * {XMLDocument} XML document to reuse for creating non-HTML compliant nodes,\n - * like document.createCDATASection.\n - */\n -OpenLayers.Format.XML.document = null;\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>31465</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XML.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XML.xml deleted file mode 100644 index 0fc0fe341ded05ac63756738a3df8fefe677c80c..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XML.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>XML</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Format/XML</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XML/VersionedOGC.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XML/VersionedOGC.js.xml deleted file mode 100644 index 18a5bc8ad97582510017b03479a3d2166122fb2b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Format/XML/VersionedOGC.js.xml +++ /dev/null @@ -1,234 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684101.0</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>VersionedOGC.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Format/XML.js\n - * @requires OpenLayers/Format/OGCExceptionReport.js\n - */\n -\n -/**\n - * Class: OpenLayers.Format.XML.VersionedOGC\n - * Base class for versioned formats, i.e. a format which supports multiple\n - * versions.\n - * \n - * Inherits from:\n - * - <OpenLayers.Format.XML>\n - */\n -OpenLayers.Format.XML.VersionedOGC = OpenLayers.Class(OpenLayers.Format.XML, {\n - \n - /**\n - * APIProperty: defaultVersion\n - * {String} Version number to assume if none found.\n - */\n - defaultVersion: null,\n - \n - /**\n - * APIProperty: version\n - * {String} Specify a version string if one is known.\n - */\n - version: null,\n -\n - /**\n - * APIProperty: profile\n - * {String} If provided, use a custom profile.\n - */\n - profile: null,\n -\n - /**\n - * APIProperty: errorProperty\n - * {String} Which property of the returned object to check for in order to\n - * determine whether or not parsing has failed. In the case that the\n - * errorProperty is undefined on the returned object, the document will be\n - * run through an OGCExceptionReport parser.\n - */\n - errorProperty: null,\n -\n - /**\n - * Property: name\n - * {String} The name of this parser, this is the part of the CLASS_NAME\n - * except for "OpenLayers.Format."\n - */\n - name: null,\n -\n - /**\n - * APIProperty: stringifyOutput\n - * {Boolean} If true, write will return a string otherwise a DOMElement.\n - * Default is false.\n - */\n - stringifyOutput: false,\n -\n - /**\n - * Property: parser\n - * {Object} Instance of the versioned parser. Cached for multiple read and\n - * write calls of the same version.\n - */\n - parser: null,\n -\n - /**\n - * Constructor: OpenLayers.Format.XML.VersionedOGC.\n - * Constructor.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on\n - * the object.\n - */\n - initialize: function(options) {\n - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);\n - var className = this.CLASS_NAME;\n - this.name = className.substring(className.lastIndexOf(".")+1);\n - },\n -\n - /**\n - * Method: getVersion\n - * Returns the version to use. Subclasses can override this function\n - * if a different version detection is needed.\n - *\n - * Parameters:\n - * root - {DOMElement}\n - * options - {Object} Optional configuration object.\n - *\n - * Returns:\n - * {String} The version to use.\n - */\n - getVersion: function(root, options) {\n - var version;\n - // read\n - if (root) {\n - version = this.version;\n - if(!version) {\n - version = root.getAttribute("version");\n - if(!version) {\n - version = this.defaultVersion;\n - }\n - }\n - } else { // write\n - version = (options && options.version) || \n - this.version || this.defaultVersion;\n - }\n - return version;\n - },\n -\n - /**\n - * Method: getParser\n - * Get an instance of the cached parser if available, otherwise create one.\n - *\n - * Parameters:\n - * version - {String}\n - *\n - * Returns:\n - * {<OpenLayers.Format>}\n - */\n - getParser: function(version) {\n - version = version || this.defaultVersion;\n - var profile = this.profile ? "_" + this.profile : "";\n - if(!this.parser || this.parser.VERSION != version) {\n - var format = OpenLayers.Format[this.name][\n - "v" + version.replace(/\\./g, "_") + profile\n - ];\n - if(!format) {\n - throw "Can\'t find a " + this.name + " parser for version " +\n - version + profile;\n - }\n - this.parser = new format(this.options);\n - }\n - return this.parser;\n - },\n -\n - /**\n - * APIMethod: write\n - * Write a document.\n - *\n - * Parameters:\n - * obj - {Object} An object representing the document.\n - * options - {Object} Optional configuration object.\n - *\n - * Returns:\n - * {String} The document as a string\n - */\n - write: function(obj, options) {\n - var version = this.getVersion(null, options);\n - this.parser = this.getParser(version);\n - var root = this.parser.write(obj, options);\n - if (this.stringifyOutput === false) {\n - return root;\n - } else {\n - return OpenLayers.Format.XML.prototype.write.apply(this, [root]);\n - }\n - },\n -\n - /**\n - * APIMethod: read\n - * Read a doc and return an object representing the document.\n - *\n - * Parameters:\n - * data - {String | DOMElement} Data to read.\n - * options - {Object} Options for the reader.\n - *\n - * Returns:\n - * {Object} An object representing the document.\n - */\n - read: function(data, options) {\n - if(typeof data == "string") {\n - data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);\n - }\n - var root = data.documentElement;\n - var version = this.getVersion(root);\n - this.parser = this.getParser(version);\n - var obj = this.parser.read(data, options);\n - if (this.errorProperty !== null && obj[this.errorProperty] === undefined) {\n - // an error must have happened, so parse it and report back\n - var format = new OpenLayers.Format.OGCExceptionReport();\n - obj.error = format.read(data);\n - }\n - obj.version = version;\n - return obj;\n - },\n -\n - CLASS_NAME: "OpenLayers.Format.XML.VersionedOGC"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5696</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry.js.xml deleted file mode 100644 index 8bb9465591af6e3d5f1b269f997121b7aa51637f..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry.js.xml +++ /dev/null @@ -1,516 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Geometry.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n - \n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - */\n -\n -/**\n - * Class: OpenLayers.Geometry\n - * A Geometry is a description of a geographic object. Create an instance of\n - * this class with the <OpenLayers.Geometry> constructor. This is a base class,\n - * typical geometry types are described by subclasses of this class.\n - *\n - * Note that if you use the <OpenLayers.Geometry.fromWKT> method, you must\n - * explicitly include the OpenLayers.Format.WKT in your build.\n - */\n -OpenLayers.Geometry = OpenLayers.Class({\n -\n - /**\n - * Property: id\n - * {String} A unique identifier for this geometry.\n - */\n - id: null,\n -\n - /**\n - * Property: parent\n - * {<OpenLayers.Geometry>}This is set when a Geometry is added as component\n - * of another geometry\n - */\n - parent: null,\n -\n - /**\n - * Property: bounds \n - * {<OpenLayers.Bounds>} The bounds of this geometry\n - */\n - bounds: null,\n -\n - /**\n - * Constructor: OpenLayers.Geometry\n - * Creates a geometry object. \n - */\n - initialize: function() {\n - this.id = OpenLayers.Util.createUniqueID(this.CLASS_NAME+ "_");\n - },\n - \n - /**\n - * Method: destroy\n - * Destroy this geometry.\n - */\n - destroy: function() {\n - this.id = null;\n - this.bounds = null;\n - },\n - \n - /**\n - * APIMethod: clone\n - * Create a clone of this geometry. Does not set any non-standard\n - * properties of the cloned geometry.\n - * \n - * Returns:\n - * {<OpenLayers.Geometry>} An exact clone of this geometry.\n - */\n - clone: function() {\n - return new OpenLayers.Geometry();\n - },\n - \n - /**\n - * Method: setBounds\n - * Set the bounds for this Geometry.\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} \n - */\n - setBounds: function(bounds) {\n - if (bounds) {\n - this.bounds = bounds.clone();\n - }\n - },\n - \n - /**\n - * Method: clearBounds\n - * Nullify this components bounds and that of its parent as well.\n - */\n - clearBounds: function() {\n - this.bounds = null;\n - if (this.parent) {\n - this.parent.clearBounds();\n - } \n - },\n - \n - /**\n - * Method: extendBounds\n - * Extend the existing bounds to include the new bounds. \n - * If geometry\'s bounds is not yet set, then set a new Bounds.\n - * \n - * Parameters:\n - * newBounds - {<OpenLayers.Bounds>} \n - */\n - extendBounds: function(newBounds){\n - var bounds = this.getBounds();\n - if (!bounds) {\n - this.setBounds(newBounds);\n - } else {\n - this.bounds.extend(newBounds);\n - }\n - },\n - \n - /**\n - * APIMethod: getBounds\n - * Get the bounds for this Geometry. If bounds is not set, it \n - * is calculated again, this makes queries faster.\n - * \n - * Returns:\n - * {<OpenLayers.Bounds>}\n - */\n - getBounds: function() {\n - if (this.bounds == null) {\n - this.calculateBounds();\n - }\n - return this.bounds;\n - },\n - \n - /** \n - * APIMethod: calculateBounds\n - * Recalculate the bounds for the geometry. \n - */\n - calculateBounds: function() {\n - //\n - // This should be overridden by subclasses.\n - //\n - },\n - \n - /**\n - * APIMethod: distanceTo\n - * Calculate the closest distance between two geometries (on the x-y plane).\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} The target geometry.\n - * options - {Object} Optional properties for configuring the distance\n - * calculation.\n - *\n - * Valid options depend on the specific geometry type.\n - * \n - * Returns:\n - * {Number | Object} The distance between this geometry and the target.\n - * If details is true, the return will be an object with distance,\n - * x0, y0, x1, and x2 properties. The x0 and y0 properties represent\n - * the coordinates of the closest point on this geometry. The x1 and y1\n - * properties represent the coordinates of the closest point on the\n - * target geometry.\n - */\n - distanceTo: function(geometry, options) {\n - },\n - \n - /**\n - * APIMethod: getVertices\n - * Return a list of all points in this geometry.\n - *\n - * Parameters:\n - * nodes - {Boolean} For lines, only return vertices that are\n - * endpoints. If false, for lines, only vertices that are not\n - * endpoints will be returned. If not provided, all vertices will\n - * be returned.\n - *\n - * Returns:\n - * {Array} A list of all vertices in the geometry.\n - */\n - getVertices: function(nodes) {\n - },\n -\n - /**\n - * Method: atPoint\n - * Note - This is only an approximation based on the bounds of the \n - * geometry.\n - * \n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>|Object} OpenLayers.LonLat or an\n - * object with a \'lon\' and \'lat\' properties.\n - * toleranceLon - {float} Optional tolerance in Geometric Coords\n - * toleranceLat - {float} Optional tolerance in Geographic Coords\n - * \n - * Returns:\n - * {Boolean} Whether or not the geometry is at the specified location\n - */\n - atPoint: function(lonlat, toleranceLon, toleranceLat) {\n - var atPoint = false;\n - var bounds = this.getBounds();\n - if ((bounds != null) && (lonlat != null)) {\n -\n - var dX = (toleranceLon != null) ? toleranceLon : 0;\n - var dY = (toleranceLat != null) ? toleranceLat : 0;\n - \n - var toleranceBounds = \n - new OpenLayers.Bounds(this.bounds.left - dX,\n - this.bounds.bottom - dY,\n - this.bounds.right + dX,\n - this.bounds.top + dY);\n -\n - atPoint = toleranceBounds.containsLonLat(lonlat);\n - }\n - return atPoint;\n - },\n - \n - /**\n - * Method: getLength\n - * Calculate the length of this geometry. This method is defined in\n - * subclasses.\n - * \n - * Returns:\n - * {Float} The length of the collection by summing its parts\n - */\n - getLength: function() {\n - //to be overridden by geometries that actually have a length\n - //\n - return 0.0;\n - },\n -\n - /**\n - * Method: getArea\n - * Calculate the area of this geometry. This method is defined in subclasses.\n - * \n - * Returns:\n - * {Float} The area of the collection by summing its parts\n - */\n - getArea: function() {\n - //to be overridden by geometries that actually have an area\n - //\n - return 0.0;\n - },\n - \n - /**\n - * APIMethod: getCentroid\n - * Calculate the centroid of this geometry. This method is defined in subclasses.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.Point>} The centroid of the collection\n - */\n - getCentroid: function() {\n - return null;\n - },\n -\n - /**\n - * Method: toString\n - * Returns a text representation of the geometry. If the WKT format is\n - * included in a build, this will be the Well-Known Text \n - * representation.\n - *\n - * Returns:\n - * {String} String representation of this geometry.\n - */\n - toString: function() {\n - var string;\n - if (OpenLayers.Format && OpenLayers.Format.WKT) {\n - string = OpenLayers.Format.WKT.prototype.write(\n - new OpenLayers.Feature.Vector(this)\n - );\n - } else {\n - string = Object.prototype.toString.call(this);\n - }\n - return string;\n - },\n -\n - CLASS_NAME: "OpenLayers.Geometry"\n -});\n -\n -/**\n - * Function: OpenLayers.Geometry.fromWKT\n - * Generate a geometry given a Well-Known Text string. For this method to\n - * work, you must include the OpenLayers.Format.WKT in your build \n - * explicitly.\n - *\n - * Parameters:\n - * wkt - {String} A string representing the geometry in Well-Known Text.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry>} A geometry of the appropriate class.\n - */\n -OpenLayers.Geometry.fromWKT = function(wkt) {\n - var geom;\n - if (OpenLayers.Format && OpenLayers.Format.WKT) {\n - var format = OpenLayers.Geometry.fromWKT.format;\n - if (!format) {\n - format = new OpenLayers.Format.WKT();\n - OpenLayers.Geometry.fromWKT.format = format;\n - }\n - var result = format.read(wkt);\n - if (result instanceof OpenLayers.Feature.Vector) {\n - geom = result.geometry;\n - } else if (OpenLayers.Util.isArray(result)) {\n - var len = result.length;\n - var components = new Array(len);\n - for (var i=0; i<len; ++i) {\n - components[i] = result[i].geometry;\n - }\n - geom = new OpenLayers.Geometry.Collection(components);\n - }\n - }\n - return geom;\n -};\n - \n -/**\n - * Method: OpenLayers.Geometry.segmentsIntersect\n - * Determine whether two line segments intersect. Optionally calculates\n - * and returns the intersection point. This function is optimized for\n - * cases where seg1.x2 >= seg2.x1 || seg2.x2 >= seg1.x1. In those\n - * obvious cases where there is no intersection, the function should\n - * not be called.\n - *\n - * Parameters:\n - * seg1 - {Object} Object representing a segment with properties x1, y1, x2,\n - * and y2. The start point is represented by x1 and y1. The end point\n - * is represented by x2 and y2. Start and end are ordered so that x1 < x2.\n - * seg2 - {Object} Object representing a segment with properties x1, y1, x2,\n - * and y2. The start point is represented by x1 and y1. The end point\n - * is represented by x2 and y2. Start and end are ordered so that x1 < x2.\n - * options - {Object} Optional properties for calculating the intersection.\n - *\n - * Valid options:\n - * point - {Boolean} Return the intersection point. If false, the actual\n - * intersection point will not be calculated. If true and the segments\n - * intersect, the intersection point will be returned. If true and\n - * the segments do not intersect, false will be returned. If true and\n - * the segments are coincident, true will be returned.\n - * tolerance - {Number} If a non-null value is provided, if the segments are\n - * within the tolerance distance, this will be considered an intersection.\n - * In addition, if the point option is true and the calculated intersection\n - * is within the tolerance distance of an end point, the endpoint will be\n - * returned instead of the calculated intersection. Further, if the\n - * intersection is within the tolerance of endpoints on both segments, or\n - * if two segment endpoints are within the tolerance distance of eachother\n - * (but no intersection is otherwise calculated), an endpoint on the\n - * first segment provided will be returned.\n - *\n - * Returns:\n - * {Boolean | <OpenLayers.Geometry.Point>} The two segments intersect.\n - * If the point argument is true, the return will be the intersection\n - * point or false if none exists. If point is true and the segments\n - * are coincident, return will be true (and the instersection is equal\n - * to the shorter segment).\n - */\n -OpenLayers.Geometry.segmentsIntersect = function(seg1, seg2, options) {\n - var point = options && options.point;\n - var tolerance = options && options.tolerance;\n - var intersection = false;\n - var x11_21 = seg1.x1 - seg2.x1;\n - var y11_21 = seg1.y1 - seg2.y1;\n - var x12_11 = seg1.x2 - seg1.x1;\n - var y12_11 = seg1.y2 - seg1.y1;\n - var y22_21 = seg2.y2 - seg2.y1;\n - var x22_21 = seg2.x2 - seg2.x1;\n - var d = (y22_21 * x12_11) - (x22_21 * y12_11);\n - var n1 = (x22_21 * y11_21) - (y22_21 * x11_21);\n - var n2 = (x12_11 * y11_21) - (y12_11 * x11_21);\n - if(d == 0) {\n - // parallel\n - if(n1 == 0 && n2 == 0) {\n - // coincident\n - intersection = true;\n - }\n - } else {\n - var along1 = n1 / d;\n - var along2 = n2 / d;\n - if(along1 >= 0 && along1 <= 1 && along2 >=0 && along2 <= 1) {\n - // intersect\n - if(!point) {\n - intersection = true;\n - } else {\n - // calculate the intersection point\n - var x = seg1.x1 + (along1 * x12_11);\n - var y = seg1.y1 + (along1 * y12_11);\n - intersection = new OpenLayers.Geometry.Point(x, y);\n - }\n - }\n - }\n - if(tolerance) {\n - var dist;\n - if(intersection) {\n - if(point) {\n - var segs = [seg1, seg2];\n - var seg, x, y;\n - // check segment endpoints for proximity to intersection\n - // set intersection to first endpoint within the tolerance\n - outer: for(var i=0; i<2; ++i) {\n - seg = segs[i];\n - for(var j=1; j<3; ++j) {\n - x = seg["x" + j];\n - y = seg["y" + j];\n - dist = Math.sqrt(\n - Math.pow(x - intersection.x, 2) +\n - Math.pow(y - intersection.y, 2)\n - );\n - if(dist < tolerance) {\n - intersection.x = x;\n - intersection.y = y;\n - break outer;\n - }\n - }\n - }\n - \n - }\n - } else {\n - // no calculated intersection, but segments could be within\n - // the tolerance of one another\n - var segs = [seg1, seg2];\n - var source, target, x, y, p, result;\n - // check segment endpoints for proximity to intersection\n - // set intersection to first endpoint within the tolerance\n - outer: for(var i=0; i<2; ++i) {\n - source = segs[i];\n - target = segs[(i+1)%2];\n - for(var j=1; j<3; ++j) {\n - p = {x: source["x"+j], y: source["y"+j]};\n - result = OpenLayers.Geometry.distanceToSegment(p, target);\n - if(result.distance < tolerance) {\n - if(point) {\n - intersection = new OpenLayers.Geometry.Point(p.x, p.y);\n - } else {\n - intersection = true;\n - }\n - break outer;\n - }\n - }\n - }\n - }\n - }\n - return intersection;\n -};\n -\n -/**\n - * Function: OpenLayers.Geometry.distanceToSegment\n - *\n - * Parameters:\n - * point - {Object} An object with x and y properties representing the\n - * point coordinates.\n - * segment - {Object} An object with x1, y1, x2, and y2 properties\n - * representing endpoint coordinates.\n - *\n - * Returns:\n - * {Object} An object with distance, x, and y properties. The distance\n - * will be the shortest distance between the input point and segment.\n - * The x and y properties represent the coordinates along the segment\n - * where the shortest distance meets the segment.\n - */\n -OpenLayers.Geometry.distanceToSegment = function(point, segment) {\n - var x0 = point.x;\n - var y0 = point.y;\n - var x1 = segment.x1;\n - var y1 = segment.y1;\n - var x2 = segment.x2;\n - var y2 = segment.y2;\n - var dx = x2 - x1;\n - var dy = y2 - y1;\n - var along = ((dx * (x0 - x1)) + (dy * (y0 - y1))) /\n - (Math.pow(dx, 2) + Math.pow(dy, 2));\n - var x, y;\n - if(along <= 0.0) {\n - x = x1;\n - y = y1;\n - } else if(along >= 1.0) {\n - x = x2;\n - y = y2;\n - } else {\n - x = x1 + along * dx;\n - y = y1 + along * dy;\n - }\n - return {\n - distance: Math.sqrt(Math.pow(x - x0, 2) + Math.pow(y - y0, 2)),\n - x: x, y: y\n - };\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>15685</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry.xml deleted file mode 100644 index 3c07118420042b1fc0222147ba01af2cd5fb172a..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Geometry</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Geometry</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/Collection.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/Collection.js.xml deleted file mode 100644 index 2bed4adc9b64e8e1666826bb9362ce44b7cac9e9..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/Collection.js.xml +++ /dev/null @@ -1,607 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.83</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Collection.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Geometry.js\n - */\n -\n -/**\n - * Class: OpenLayers.Geometry.Collection\n - * A Collection is exactly what it sounds like: A collection of different \n - * Geometries. These are stored in the local parameter <components> (which\n - * can be passed as a parameter to the constructor). \n - * \n - * As new geometries are added to the collection, they are NOT cloned. \n - * When removing geometries, they need to be specified by reference (ie you \n - * have to pass in the *exact* geometry to be removed).\n - * \n - * The <getArea> and <getLength> functions here merely iterate through\n - * the components, summing their respective areas and lengths.\n - *\n - * Create a new instance with the <OpenLayers.Geometry.Collection> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Geometry> \n - */\n -OpenLayers.Geometry.Collection = OpenLayers.Class(OpenLayers.Geometry, {\n -\n - /**\n - * APIProperty: components\n - * {Array(<OpenLayers.Geometry>)} The component parts of this geometry\n - */\n - components: null,\n - \n - /**\n - * Property: componentTypes\n - * {Array(String)} An array of class names representing the types of\n - * components that the collection can include. A null value means the\n - * component types are not restricted.\n - */\n - componentTypes: null,\n -\n - /**\n - * Constructor: OpenLayers.Geometry.Collection\n - * Creates a Geometry Collection -- a list of geoms.\n - *\n - * Parameters: \n - * components - {Array(<OpenLayers.Geometry>)} Optional array of geometries\n - *\n - */\n - initialize: function (components) {\n - OpenLayers.Geometry.prototype.initialize.apply(this, arguments);\n - this.components = [];\n - if (components != null) {\n - this.addComponents(components);\n - }\n - },\n -\n - /**\n - * APIMethod: destroy\n - * Destroy this geometry.\n - */\n - destroy: function () {\n - this.components.length = 0;\n - this.components = null;\n - OpenLayers.Geometry.prototype.destroy.apply(this, arguments);\n - },\n -\n - /**\n - * APIMethod: clone\n - * Clone this geometry.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.Collection>} An exact clone of this collection\n - */\n - clone: function() {\n - var geometry = eval("new " + this.CLASS_NAME + "()");\n - for(var i=0, len=this.components.length; i<len; i++) {\n - geometry.addComponent(this.components[i].clone());\n - }\n - \n - // catch any randomly tagged-on properties\n - OpenLayers.Util.applyDefaults(geometry, this);\n - \n - return geometry;\n - },\n -\n - /**\n - * Method: getComponentsString\n - * Get a string representing the components for this collection\n - * \n - * Returns:\n - * {String} A string representation of the components of this geometry\n - */\n - getComponentsString: function(){\n - var strings = [];\n - for(var i=0, len=this.components.length; i<len; i++) {\n - strings.push(this.components[i].toShortString()); \n - }\n - return strings.join(",");\n - },\n -\n - /**\n - * APIMethod: calculateBounds\n - * Recalculate the bounds by iterating through the components and \n - * calling calling extendBounds() on each item.\n - */\n - calculateBounds: function() {\n - this.bounds = null;\n - var bounds = new OpenLayers.Bounds();\n - var components = this.components;\n - if (components) {\n - for (var i=0, len=components.length; i<len; i++) {\n - bounds.extend(components[i].getBounds());\n - }\n - }\n - // to preserve old behavior, we only set bounds if non-null\n - // in the future, we could add bounds.isEmpty()\n - if (bounds.left != null && bounds.bottom != null && \n - bounds.right != null && bounds.top != null) {\n - this.setBounds(bounds);\n - }\n - },\n -\n - /**\n - * APIMethod: addComponents\n - * Add components to this geometry.\n - *\n - * Parameters:\n - * components - {Array(<OpenLayers.Geometry>)} An array of geometries to add\n - */\n - addComponents: function(components){\n - if(!(OpenLayers.Util.isArray(components))) {\n - components = [components];\n - }\n - for(var i=0, len=components.length; i<len; i++) {\n - this.addComponent(components[i]);\n - }\n - },\n -\n - /**\n - * Method: addComponent\n - * Add a new component (geometry) to the collection. If this.componentTypes\n - * is set, then the component class name must be in the componentTypes array.\n - *\n - * The bounds cache is reset.\n - * \n - * Parameters:\n - * component - {<OpenLayers.Geometry>} A geometry to add\n - * index - {int} Optional index into the array to insert the component\n - *\n - * Returns:\n - * {Boolean} The component geometry was successfully added\n - */ \n - addComponent: function(component, index) {\n - var added = false;\n - if(component) {\n - if(this.componentTypes == null ||\n - (OpenLayers.Util.indexOf(this.componentTypes,\n - component.CLASS_NAME) > -1)) {\n -\n - if(index != null && (index < this.components.length)) {\n - var components1 = this.components.slice(0, index);\n - var components2 = this.components.slice(index, \n - this.components.length);\n - components1.push(component);\n - this.components = components1.concat(components2);\n - } else {\n - this.components.push(component);\n - }\n - component.parent = this;\n - this.clearBounds();\n - added = true;\n - }\n - }\n - return added;\n - },\n - \n - /**\n - * APIMethod: removeComponents\n - * Remove components from this geometry.\n - *\n - * Parameters:\n - * components - {Array(<OpenLayers.Geometry>)} The components to be removed\n - *\n - * Returns: \n - * {Boolean} A component was removed.\n - */\n - removeComponents: function(components) {\n - var removed = false;\n -\n - if(!(OpenLayers.Util.isArray(components))) {\n - components = [components];\n - }\n - for(var i=components.length-1; i>=0; --i) {\n - removed = this.removeComponent(components[i]) || removed;\n - }\n - return removed;\n - },\n - \n - /**\n - * Method: removeComponent\n - * Remove a component from this geometry.\n - *\n - * Parameters:\n - * component - {<OpenLayers.Geometry>} \n - *\n - * Returns: \n - * {Boolean} The component was removed.\n - */\n - removeComponent: function(component) {\n - \n - OpenLayers.Util.removeItem(this.components, component);\n - \n - // clearBounds() so that it gets recalculated on the next call\n - // to this.getBounds();\n - this.clearBounds();\n - return true;\n - },\n -\n - /**\n - * APIMethod: getLength\n - * Calculate the length of this geometry\n - *\n - * Returns:\n - * {Float} The length of the geometry\n - */\n - getLength: function() {\n - var length = 0.0;\n - for (var i=0, len=this.components.length; i<len; i++) {\n - length += this.components[i].getLength();\n - }\n - return length;\n - },\n - \n - /**\n - * APIMethod: getArea\n - * Calculate the area of this geometry. Note how this function is overridden\n - * in <OpenLayers.Geometry.Polygon>.\n - *\n - * Returns:\n - * {Float} The area of the collection by summing its parts\n - */\n - getArea: function() {\n - var area = 0.0;\n - for (var i=0, len=this.components.length; i<len; i++) {\n - area += this.components[i].getArea();\n - }\n - return area;\n - },\n -\n - /** \n - * APIMethod: getGeodesicArea\n - * Calculate the approximate area of the polygon were it projected onto\n - * the earth.\n - *\n - * Parameters:\n - * projection - {<OpenLayers.Projection>} The spatial reference system\n - * for the geometry coordinates. If not provided, Geographic/WGS84 is\n - * assumed.\n - * \n - * Reference:\n - * Robert. G. Chamberlain and William H. Duquette, "Some Algorithms for\n - * Polygons on a Sphere", JPL Publication 07-03, Jet Propulsion\n - * Laboratory, Pasadena, CA, June 2007 http://trs-new.jpl.nasa.gov/dspace/handle/2014/40409\n - *\n - * Returns:\n - * {float} The approximate geodesic area of the geometry in square meters.\n - */\n - getGeodesicArea: function(projection) {\n - var area = 0.0;\n - for(var i=0, len=this.components.length; i<len; i++) {\n - area += this.components[i].getGeodesicArea(projection);\n - }\n - return area;\n - },\n - \n - /**\n - * APIMethod: getCentroid\n - *\n - * Compute the centroid for this geometry collection.\n - *\n - * Parameters:\n - * weighted - {Boolean} Perform the getCentroid computation recursively,\n - * returning an area weighted average of all geometries in this collection.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.Point>} The centroid of the collection\n - */\n - getCentroid: function(weighted) {\n - if (!weighted) {\n - return this.components.length && this.components[0].getCentroid();\n - }\n - var len = this.components.length;\n - if (!len) {\n - return false;\n - }\n - \n - var areas = [];\n - var centroids = [];\n - var areaSum = 0;\n - var minArea = Number.MAX_VALUE;\n - var component;\n - for (var i=0; i<len; ++i) {\n - component = this.components[i];\n - var area = component.getArea();\n - var centroid = component.getCentroid(true);\n - if (isNaN(area) || isNaN(centroid.x) || isNaN(centroid.y)) {\n - continue;\n - }\n - areas.push(area);\n - areaSum += area;\n - minArea = (area < minArea && area > 0) ? area : minArea;\n - centroids.push(centroid);\n - }\n - len = areas.length;\n - if (areaSum === 0) {\n - // all the components in this collection have 0 area\n - // probably a collection of points -- weight all the points the same\n - for (var i=0; i<len; ++i) {\n - areas[i] = 1;\n - }\n - areaSum = areas.length;\n - } else {\n - // normalize all the areas where the smallest area will get\n - // a value of 1\n - for (var i=0; i<len; ++i) {\n - areas[i] /= minArea;\n - }\n - areaSum /= minArea;\n - }\n - \n - var xSum = 0, ySum = 0, centroid, area;\n - for (var i=0; i<len; ++i) {\n - centroid = centroids[i];\n - area = areas[i];\n - xSum += centroid.x * area;\n - ySum += centroid.y * area;\n - }\n - \n - return new OpenLayers.Geometry.Point(xSum/areaSum, ySum/areaSum);\n - },\n -\n - /**\n - * APIMethod: getGeodesicLength\n - * Calculate the approximate length of the geometry were it projected onto\n - * the earth.\n - *\n - * projection - {<OpenLayers.Projection>} The spatial reference system\n - * for the geometry coordinates. If not provided, Geographic/WGS84 is\n - * assumed.\n - * \n - * Returns:\n - * {Float} The appoximate geodesic length of the geometry in meters.\n - */\n - getGeodesicLength: function(projection) {\n - var length = 0.0;\n - for(var i=0, len=this.components.length; i<len; i++) {\n - length += this.components[i].getGeodesicLength(projection);\n - }\n - return length;\n - },\n -\n - /**\n - * APIMethod: move\n - * Moves a geometry by the given displacement along positive x and y axes.\n - * This modifies the position of the geometry and clears the cached\n - * bounds.\n - *\n - * Parameters:\n - * x - {Float} Distance to move geometry in positive x direction. \n - * y - {Float} Distance to move geometry in positive y direction.\n - */\n - move: function(x, y) {\n - for(var i=0, len=this.components.length; i<len; i++) {\n - this.components[i].move(x, y);\n - }\n - },\n -\n - /**\n - * APIMethod: rotate\n - * Rotate a geometry around some origin\n - *\n - * Parameters:\n - * angle - {Float} Rotation angle in degrees (measured counterclockwise\n - * from the positive x-axis)\n - * origin - {<OpenLayers.Geometry.Point>} Center point for the rotation\n - */\n - rotate: function(angle, origin) {\n - for(var i=0, len=this.components.length; i<len; ++i) {\n - this.components[i].rotate(angle, origin);\n - }\n - },\n -\n - /**\n - * APIMethod: resize\n - * Resize a geometry relative to some origin. Use this method to apply\n - * a uniform scaling to a geometry.\n - *\n - * Parameters:\n - * scale - {Float} Factor by which to scale the geometry. A scale of 2\n - * doubles the size of the geometry in each dimension\n - * (lines, for example, will be twice as long, and polygons\n - * will have four times the area).\n - * origin - {<OpenLayers.Geometry.Point>} Point of origin for resizing\n - * ratio - {Float} Optional x:y ratio for resizing. Default ratio is 1.\n - * \n - * Returns:\n - * {<OpenLayers.Geometry>} - The current geometry. \n - */\n - resize: function(scale, origin, ratio) {\n - for(var i=0; i<this.components.length; ++i) {\n - this.components[i].resize(scale, origin, ratio);\n - }\n - return this;\n - },\n -\n - /**\n - * APIMethod: distanceTo\n - * Calculate the closest distance between two geometries (on the x-y plane).\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} The target geometry.\n - * options - {Object} Optional properties for configuring the distance\n - * calculation.\n - *\n - * Valid options:\n - * details - {Boolean} Return details from the distance calculation.\n - * Default is false.\n - * edge - {Boolean} Calculate the distance from this geometry to the\n - * nearest edge of the target geometry. Default is true. If true,\n - * calling distanceTo from a geometry that is wholly contained within\n - * the target will result in a non-zero distance. If false, whenever\n - * geometries intersect, calling distanceTo will return 0. If false,\n - * details cannot be returned.\n - *\n - * Returns:\n - * {Number | Object} The distance between this geometry and the target.\n - * If details is true, the return will be an object with distance,\n - * x0, y0, x1, and y1 properties. The x0 and y0 properties represent\n - * the coordinates of the closest point on this geometry. The x1 and y1\n - * properties represent the coordinates of the closest point on the\n - * target geometry.\n - */\n - distanceTo: function(geometry, options) {\n - var edge = !(options && options.edge === false);\n - var details = edge && options && options.details;\n - var result, best, distance;\n - var min = Number.POSITIVE_INFINITY;\n - for(var i=0, len=this.components.length; i<len; ++i) {\n - result = this.components[i].distanceTo(geometry, options);\n - distance = details ? result.distance : result;\n - if(distance < min) {\n - min = distance;\n - best = result;\n - if(min == 0) {\n - break;\n - }\n - }\n - }\n - return best;\n - },\n -\n - /** \n - * APIMethod: equals\n - * Determine whether another geometry is equivalent to this one. Geometries\n - * are considered equivalent if all components have the same coordinates.\n - * \n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} The geometry to test. \n - *\n - * Returns:\n - * {Boolean} The supplied geometry is equivalent to this geometry.\n - */\n - equals: function(geometry) {\n - var equivalent = true;\n - if(!geometry || !geometry.CLASS_NAME ||\n - (this.CLASS_NAME != geometry.CLASS_NAME)) {\n - equivalent = false;\n - } else if(!(OpenLayers.Util.isArray(geometry.components)) ||\n - (geometry.components.length != this.components.length)) {\n - equivalent = false;\n - } else {\n - for(var i=0, len=this.components.length; i<len; ++i) {\n - if(!this.components[i].equals(geometry.components[i])) {\n - equivalent = false;\n - break;\n - }\n - }\n - }\n - return equivalent;\n - },\n -\n - /**\n - * APIMethod: transform\n - * Reproject the components geometry from source to dest.\n - * \n - * Parameters:\n - * source - {<OpenLayers.Projection>} \n - * dest - {<OpenLayers.Projection>}\n - * \n - * Returns:\n - * {<OpenLayers.Geometry>} \n - */\n - transform: function(source, dest) {\n - if (source && dest) {\n - for (var i=0, len=this.components.length; i<len; i++) { \n - var component = this.components[i];\n - component.transform(source, dest);\n - }\n - this.bounds = null;\n - }\n - return this;\n - },\n -\n - /**\n - * APIMethod: intersects\n - * Determine if the input geometry intersects this one.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} Any type of geometry.\n - *\n - * Returns:\n - * {Boolean} The input geometry intersects this one.\n - */\n - intersects: function(geometry) {\n - var intersect = false;\n - for(var i=0, len=this.components.length; i<len; ++ i) {\n - intersect = geometry.intersects(this.components[i]);\n - if(intersect) {\n - break;\n - }\n - }\n - return intersect;\n - },\n -\n - /**\n - * APIMethod: getVertices\n - * Return a list of all points in this geometry.\n - *\n - * Parameters:\n - * nodes - {Boolean} For lines, only return vertices that are\n - * endpoints. If false, for lines, only vertices that are not\n - * endpoints will be returned. If not provided, all vertices will\n - * be returned.\n - *\n - * Returns:\n - * {Array} A list of all vertices in the geometry.\n - */\n - getVertices: function(nodes) {\n - var vertices = [];\n - for(var i=0, len=this.components.length; i<len; ++i) {\n - Array.prototype.push.apply(\n - vertices, this.components[i].getVertices(nodes)\n - );\n - }\n - return vertices;\n - },\n -\n -\n - CLASS_NAME: "OpenLayers.Geometry.Collection"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>18626</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/Curve.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/Curve.js.xml deleted file mode 100644 index 3c889cd5b12ee74ba24744e19b734744b0b26902..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/Curve.js.xml +++ /dev/null @@ -1,133 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Curve.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Geometry/MultiPoint.js\n - */\n -\n -/**\n - * Class: OpenLayers.Geometry.Curve\n - * A Curve is a MultiPoint, whose points are assumed to be connected. To \n - * this end, we provide a "getLength()" function, which iterates through \n - * the points, summing the distances between them. \n - * \n - * Inherits: \n - * - <OpenLayers.Geometry.MultiPoint>\n - */\n -OpenLayers.Geometry.Curve = OpenLayers.Class(OpenLayers.Geometry.MultiPoint, {\n -\n - /**\n - * Property: componentTypes\n - * {Array(String)} An array of class names representing the types of \n - * components that the collection can include. A null \n - * value means the component types are not restricted.\n - */\n - componentTypes: ["OpenLayers.Geometry.Point"],\n -\n - /**\n - * Constructor: OpenLayers.Geometry.Curve\n - * \n - * Parameters:\n - * point - {Array(<OpenLayers.Geometry.Point>)}\n - */\n - \n - /**\n - * APIMethod: getLength\n - * \n - * Returns:\n - * {Float} The length of the curve\n - */\n - getLength: function() {\n - var length = 0.0;\n - if ( this.components && (this.components.length > 1)) {\n - for(var i=1, len=this.components.length; i<len; i++) {\n - length += this.components[i-1].distanceTo(this.components[i]);\n - }\n - }\n - return length;\n - },\n -\n - /**\n - * APIMethod: getGeodesicLength\n - * Calculate the approximate length of the geometry were it projected onto\n - * the earth.\n - *\n - * projection - {<OpenLayers.Projection>} The spatial reference system\n - * for the geometry coordinates. If not provided, Geographic/WGS84 is\n - * assumed.\n - * \n - * Returns:\n - * {Float} The appoximate geodesic length of the geometry in meters.\n - */\n - getGeodesicLength: function(projection) {\n - var geom = this; // so we can work with a clone if needed\n - if(projection) {\n - var gg = new OpenLayers.Projection("EPSG:4326");\n - if(!gg.equals(projection)) {\n - geom = this.clone().transform(projection, gg);\n - }\n - }\n - var length = 0.0;\n - if(geom.components && (geom.components.length > 1)) {\n - var p1, p2;\n - for(var i=1, len=geom.components.length; i<len; i++) {\n - p1 = geom.components[i-1];\n - p2 = geom.components[i];\n - // this returns km and requires lon/lat properties\n - length += OpenLayers.Util.distVincenty(\n - {lon: p1.x, lat: p1.y}, {lon: p2.x, lat: p2.y}\n - );\n - }\n - }\n - // convert to m\n - return length * 1000;\n - },\n -\n - CLASS_NAME: "OpenLayers.Geometry.Curve"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2952</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/LineString.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/LineString.js.xml deleted file mode 100644 index 23c9f4fe70a7b63f26d39ba0f6ad7de749184a7b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/LineString.js.xml +++ /dev/null @@ -1,690 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.83</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>LineString.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Geometry/Curve.js\n - */\n -\n -/**\n - * Class: OpenLayers.Geometry.LineString\n - * A LineString is a Curve which, once two points have been added to it, can \n - * never be less than two points long.\n - * \n - * Inherits from:\n - * - <OpenLayers.Geometry.Curve>\n - */\n -OpenLayers.Geometry.LineString = OpenLayers.Class(OpenLayers.Geometry.Curve, {\n -\n - /**\n - * Constructor: OpenLayers.Geometry.LineString\n - * Create a new LineString geometry\n - *\n - * Parameters:\n - * points - {Array(<OpenLayers.Geometry.Point>)} An array of points used to\n - * generate the linestring\n - *\n - */\n -\n - /**\n - * APIMethod: removeComponent\n - * Only allows removal of a point if there are three or more points in \n - * the linestring. (otherwise the result would be just a single point)\n - *\n - * Parameters: \n - * point - {<OpenLayers.Geometry.Point>} The point to be removed\n - *\n - * Returns: \n - * {Boolean} The component was removed.\n - */\n - removeComponent: function(point) {\n - var removed = this.components && (this.components.length > 2);\n - if (removed) {\n - OpenLayers.Geometry.Collection.prototype.removeComponent.apply(this, \n - arguments);\n - }\n - return removed;\n - },\n - \n - /**\n - * APIMethod: intersects\n - * Test for instersection between two geometries. This is a cheapo\n - * implementation of the Bently-Ottmann algorigithm. It doesn\'t\n - * really keep track of a sweep line data structure. It is closer\n - * to the brute force method, except that segments are sorted and\n - * potential intersections are only calculated when bounding boxes\n - * intersect.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - *\n - * Returns:\n - * {Boolean} The input geometry intersects this geometry.\n - */\n - intersects: function(geometry) {\n - var intersect = false;\n - var type = geometry.CLASS_NAME;\n - if(type == "OpenLayers.Geometry.LineString" ||\n - type == "OpenLayers.Geometry.LinearRing" ||\n - type == "OpenLayers.Geometry.Point") {\n - var segs1 = this.getSortedSegments();\n - var segs2;\n - if(type == "OpenLayers.Geometry.Point") {\n - segs2 = [{\n - x1: geometry.x, y1: geometry.y,\n - x2: geometry.x, y2: geometry.y\n - }];\n - } else {\n - segs2 = geometry.getSortedSegments();\n - }\n - var seg1, seg1x1, seg1x2, seg1y1, seg1y2,\n - seg2, seg2y1, seg2y2;\n - // sweep right\n - outer: for(var i=0, len=segs1.length; i<len; ++i) {\n - seg1 = segs1[i];\n - seg1x1 = seg1.x1;\n - seg1x2 = seg1.x2;\n - seg1y1 = seg1.y1;\n - seg1y2 = seg1.y2;\n - inner: for(var j=0, jlen=segs2.length; j<jlen; ++j) {\n - seg2 = segs2[j];\n - if(seg2.x1 > seg1x2) {\n - // seg1 still left of seg2\n - break;\n - }\n - if(seg2.x2 < seg1x1) {\n - // seg2 still left of seg1\n - continue;\n - }\n - seg2y1 = seg2.y1;\n - seg2y2 = seg2.y2;\n - if(Math.min(seg2y1, seg2y2) > Math.max(seg1y1, seg1y2)) {\n - // seg2 above seg1\n - continue;\n - }\n - if(Math.max(seg2y1, seg2y2) < Math.min(seg1y1, seg1y2)) {\n - // seg2 below seg1\n - continue;\n - }\n - if(OpenLayers.Geometry.segmentsIntersect(seg1, seg2)) {\n - intersect = true;\n - break outer;\n - }\n - }\n - }\n - } else {\n - intersect = geometry.intersects(this);\n - }\n - return intersect;\n - },\n - \n - /**\n - * Method: getSortedSegments\n - *\n - * Returns:\n - * {Array} An array of segment objects. Segment objects have properties\n - * x1, y1, x2, and y2. The start point is represented by x1 and y1.\n - * The end point is represented by x2 and y2. Start and end are\n - * ordered so that x1 < x2.\n - */\n - getSortedSegments: function() {\n - var numSeg = this.components.length - 1;\n - var segments = new Array(numSeg), point1, point2;\n - for(var i=0; i<numSeg; ++i) {\n - point1 = this.components[i];\n - point2 = this.components[i + 1];\n - if(point1.x < point2.x) {\n - segments[i] = {\n - x1: point1.x,\n - y1: point1.y,\n - x2: point2.x,\n - y2: point2.y\n - };\n - } else {\n - segments[i] = {\n - x1: point2.x,\n - y1: point2.y,\n - x2: point1.x,\n - y2: point1.y\n - };\n - }\n - }\n - // more efficient to define this somewhere static\n - function byX1(seg1, seg2) {\n - return seg1.x1 - seg2.x1;\n - }\n - return segments.sort(byX1);\n - },\n - \n - /**\n - * Method: splitWithSegment\n - * Split this geometry with the given segment.\n - *\n - * Parameters:\n - * seg - {Object} An object with x1, y1, x2, and y2 properties referencing\n - * segment endpoint coordinates.\n - * options - {Object} Properties of this object will be used to determine\n - * how the split is conducted.\n - *\n - * Valid options:\n - * edge - {Boolean} Allow splitting when only edges intersect. Default is\n - * true. If false, a vertex on the source segment must be within the\n - * tolerance distance of the intersection to be considered a split.\n - * tolerance - {Number} If a non-null value is provided, intersections\n - * within the tolerance distance of one of the source segment\'s\n - * endpoints will be assumed to occur at the endpoint.\n - *\n - * Returns:\n - * {Object} An object with *lines* and *points* properties. If the given\n - * segment intersects this linestring, the lines array will reference\n - * geometries that result from the split. The points array will contain\n - * all intersection points. Intersection points are sorted along the\n - * segment (in order from x1,y1 to x2,y2).\n - */\n - splitWithSegment: function(seg, options) {\n - var edge = !(options && options.edge === false);\n - var tolerance = options && options.tolerance;\n - var lines = [];\n - var verts = this.getVertices();\n - var points = [];\n - var intersections = [];\n - var split = false;\n - var vert1, vert2, point;\n - var node, vertex, target;\n - var interOptions = {point: true, tolerance: tolerance};\n - var result = null;\n - for(var i=0, stop=verts.length-2; i<=stop; ++i) {\n - vert1 = verts[i];\n - points.push(vert1.clone());\n - vert2 = verts[i+1];\n - target = {x1: vert1.x, y1: vert1.y, x2: vert2.x, y2: vert2.y};\n - point = OpenLayers.Geometry.segmentsIntersect(\n - seg, target, interOptions\n - );\n - if(point instanceof OpenLayers.Geometry.Point) {\n - if((point.x === seg.x1 && point.y === seg.y1) ||\n - (point.x === seg.x2 && point.y === seg.y2) ||\n - point.equals(vert1) || point.equals(vert2)) {\n - vertex = true;\n - } else {\n - vertex = false;\n - }\n - if(vertex || edge) {\n - // push intersections different than the previous\n - if(!point.equals(intersections[intersections.length-1])) {\n - intersections.push(point.clone());\n - }\n - if(i === 0) {\n - if(point.equals(vert1)) {\n - continue;\n - }\n - }\n - if(point.equals(vert2)) {\n - continue;\n - }\n - split = true;\n - if(!point.equals(vert1)) {\n - points.push(point);\n - }\n - lines.push(new OpenLayers.Geometry.LineString(points));\n - points = [point.clone()];\n - }\n - }\n - }\n - if(split) {\n - points.push(vert2.clone());\n - lines.push(new OpenLayers.Geometry.LineString(points));\n - }\n - if(intersections.length > 0) {\n - // sort intersections along segment\n - var xDir = seg.x1 < seg.x2 ? 1 : -1;\n - var yDir = seg.y1 < seg.y2 ? 1 : -1;\n - result = {\n - lines: lines,\n - points: intersections.sort(function(p1, p2) {\n - return (xDir * p1.x - xDir * p2.x) || (yDir * p1.y - yDir * p2.y);\n - })\n - };\n - }\n - return result;\n - },\n -\n - /**\n - * Method: split\n - * Use this geometry (the source) to attempt to split a target geometry.\n - * \n - * Parameters:\n - * target - {<OpenLayers.Geometry>} The target geometry.\n - * options - {Object} Properties of this object will be used to determine\n - * how the split is conducted.\n - *\n - * Valid options:\n - * mutual - {Boolean} Split the source geometry in addition to the target\n - * geometry. Default is false.\n - * edge - {Boolean} Allow splitting when only edges intersect. Default is\n - * true. If false, a vertex on the source must be within the tolerance\n - * distance of the intersection to be considered a split.\n - * tolerance - {Number} If a non-null value is provided, intersections\n - * within the tolerance distance of an existing vertex on the source\n - * will be assumed to occur at the vertex.\n - * \n - * Returns:\n - * {Array} A list of geometries (of this same type as the target) that\n - * result from splitting the target with the source geometry. The\n - * source and target geometry will remain unmodified. If no split\n - * results, null will be returned. If mutual is true and a split\n - * results, return will be an array of two arrays - the first will be\n - * all geometries that result from splitting the source geometry and\n - * the second will be all geometries that result from splitting the\n - * target geometry.\n - */\n - split: function(target, options) {\n - var results = null;\n - var mutual = options && options.mutual;\n - var sourceSplit, targetSplit, sourceParts, targetParts;\n - if(target instanceof OpenLayers.Geometry.LineString) {\n - var verts = this.getVertices();\n - var vert1, vert2, seg, splits, lines, point;\n - var points = [];\n - sourceParts = [];\n - for(var i=0, stop=verts.length-2; i<=stop; ++i) {\n - vert1 = verts[i];\n - vert2 = verts[i+1];\n - seg = {\n - x1: vert1.x, y1: vert1.y,\n - x2: vert2.x, y2: vert2.y\n - };\n - targetParts = targetParts || [target];\n - if(mutual) {\n - points.push(vert1.clone());\n - }\n - for(var j=0; j<targetParts.length; ++j) {\n - splits = targetParts[j].splitWithSegment(seg, options);\n - if(splits) {\n - // splice in new features\n - lines = splits.lines;\n - if(lines.length > 0) {\n - lines.unshift(j, 1);\n - Array.prototype.splice.apply(targetParts, lines);\n - j += lines.length - 2;\n - }\n - if(mutual) {\n - for(var k=0, len=splits.points.length; k<len; ++k) {\n - point = splits.points[k];\n - if(!point.equals(vert1)) {\n - points.push(point);\n - sourceParts.push(new OpenLayers.Geometry.LineString(points));\n - if(point.equals(vert2)) {\n - points = [];\n - } else {\n - points = [point.clone()];\n - }\n - }\n - }\n - }\n - }\n - }\n - }\n - if(mutual && sourceParts.length > 0 && points.length > 0) {\n - points.push(vert2.clone());\n - sourceParts.push(new OpenLayers.Geometry.LineString(points));\n - }\n - } else {\n - results = target.splitWith(this, options);\n - }\n - if(targetParts && targetParts.length > 1) {\n - targetSplit = true;\n - } else {\n - targetParts = [];\n - }\n - if(sourceParts && sourceParts.length > 1) {\n - sourceSplit = true;\n - } else {\n - sourceParts = [];\n - }\n - if(targetSplit || sourceSplit) {\n - if(mutual) {\n - results = [sourceParts, targetParts];\n - } else {\n - results = targetParts;\n - }\n - }\n - return results;\n - },\n -\n - /**\n - * Method: splitWith\n - * Split this geometry (the target) with the given geometry (the source).\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} A geometry used to split this\n - * geometry (the source).\n - * options - {Object} Properties of this object will be used to determine\n - * how the split is conducted.\n - *\n - * Valid options:\n - * mutual - {Boolean} Split the source geometry in addition to the target\n - * geometry. Default is false.\n - * edge - {Boolean} Allow splitting when only edges intersect. Default is\n - * true. If false, a vertex on the source must be within the tolerance\n - * distance of the intersection to be considered a split.\n - * tolerance - {Number} If a non-null value is provided, intersections\n - * within the tolerance distance of an existing vertex on the source\n - * will be assumed to occur at the vertex.\n - * \n - * Returns:\n - * {Array} A list of geometries (of this same type as the target) that\n - * result from splitting the target with the source geometry. The\n - * source and target geometry will remain unmodified. If no split\n - * results, null will be returned. If mutual is true and a split\n - * results, return will be an array of two arrays - the first will be\n - * all geometries that result from splitting the source geometry and\n - * the second will be all geometries that result from splitting the\n - * target geometry.\n - */\n - splitWith: function(geometry, options) {\n - return geometry.split(this, options);\n -\n - },\n -\n - /**\n - * APIMethod: getVertices\n - * Return a list of all points in this geometry.\n - *\n - * Parameters:\n - * nodes - {Boolean} For lines, only return vertices that are\n - * endpoints. If false, for lines, only vertices that are not\n - * endpoints will be returned. If not provided, all vertices will\n - * be returned.\n - *\n - * Returns:\n - * {Array} A list of all vertices in the geometry.\n - */\n - getVertices: function(nodes) {\n - var vertices;\n - if(nodes === true) {\n - vertices = [\n - this.components[0],\n - this.components[this.components.length-1]\n - ];\n - } else if (nodes === false) {\n - vertices = this.components.slice(1, this.components.length-1);\n - } else {\n - vertices = this.components.slice();\n - }\n - return vertices;\n - },\n -\n - /**\n - * APIMethod: distanceTo\n - * Calculate the closest distance between two geometries (on the x-y plane).\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} The target geometry.\n - * options - {Object} Optional properties for configuring the distance\n - * calculation.\n - *\n - * Valid options:\n - * details - {Boolean} Return details from the distance calculation.\n - * Default is false.\n - * edge - {Boolean} Calculate the distance from this geometry to the\n - * nearest edge of the target geometry. Default is true. If true,\n - * calling distanceTo from a geometry that is wholly contained within\n - * the target will result in a non-zero distance. If false, whenever\n - * geometries intersect, calling distanceTo will return 0. If false,\n - * details cannot be returned.\n - *\n - * Returns:\n - * {Number | Object} The distance between this geometry and the target.\n - * If details is true, the return will be an object with distance,\n - * x0, y0, x1, and x2 properties. The x0 and y0 properties represent\n - * the coordinates of the closest point on this geometry. The x1 and y1\n - * properties represent the coordinates of the closest point on the\n - * target geometry.\n - */\n - distanceTo: function(geometry, options) {\n - var edge = !(options && options.edge === false);\n - var details = edge && options && options.details;\n - var result, best = {};\n - var min = Number.POSITIVE_INFINITY;\n - if(geometry instanceof OpenLayers.Geometry.Point) {\n - var segs = this.getSortedSegments();\n - var x = geometry.x;\n - var y = geometry.y;\n - var seg;\n - for(var i=0, len=segs.length; i<len; ++i) {\n - seg = segs[i];\n - result = OpenLayers.Geometry.distanceToSegment(geometry, seg);\n - if(result.distance < min) {\n - min = result.distance;\n - best = result;\n - if(min === 0) {\n - break;\n - }\n - } else {\n - // if distance increases and we cross y0 to the right of x0, no need to keep looking.\n - if(seg.x2 > x && ((y > seg.y1 && y < seg.y2) || (y < seg.y1 && y > seg.y2))) {\n - break;\n - }\n - }\n - }\n - if(details) {\n - best = {\n - distance: best.distance,\n - x0: best.x, y0: best.y,\n - x1: x, y1: y\n - };\n - } else {\n - best = best.distance;\n - }\n - } else if(geometry instanceof OpenLayers.Geometry.LineString) { \n - var segs0 = this.getSortedSegments();\n - var segs1 = geometry.getSortedSegments();\n - var seg0, seg1, intersection, x0, y0;\n - var len1 = segs1.length;\n - var interOptions = {point: true};\n - outer: for(var i=0, len=segs0.length; i<len; ++i) {\n - seg0 = segs0[i];\n - x0 = seg0.x1;\n - y0 = seg0.y1;\n - for(var j=0; j<len1; ++j) {\n - seg1 = segs1[j];\n - intersection = OpenLayers.Geometry.segmentsIntersect(seg0, seg1, interOptions);\n - if(intersection) {\n - min = 0;\n - best = {\n - distance: 0,\n - x0: intersection.x, y0: intersection.y,\n - x1: intersection.x, y1: intersection.y\n - };\n - break outer;\n - } else {\n - result = OpenLayers.Geometry.distanceToSegment({x: x0, y: y0}, seg1);\n - if(result.distance < min) {\n - min = result.distance;\n - best = {\n - distance: min,\n - x0: x0, y0: y0,\n - x1: result.x, y1: result.y\n - };\n - }\n - }\n - }\n - }\n - if(!details) {\n - best = best.distance;\n - }\n - if(min !== 0) {\n - // check the final vertex in this line\'s sorted segments\n - if(seg0) {\n - result = geometry.distanceTo(\n - new OpenLayers.Geometry.Point(seg0.x2, seg0.y2),\n - options\n - );\n - var dist = details ? result.distance : result;\n - if(dist < min) {\n - if(details) {\n - best = {\n - distance: min,\n - x0: result.x1, y0: result.y1,\n - x1: result.x0, y1: result.y0\n - };\n - } else {\n - best = dist;\n - }\n - }\n - }\n - }\n - } else {\n - best = geometry.distanceTo(this, options);\n - // swap since target comes from this line\n - if(details) {\n - best = {\n - distance: best.distance,\n - x0: best.x1, y0: best.y1,\n - x1: best.x0, y1: best.y0\n - };\n - }\n - }\n - return best;\n - },\n - \n - /**\n - * APIMethod: simplify\n - * This function will return a simplified LineString.\n - * Simplification is based on the Douglas-Peucker algorithm.\n - *\n - *\n - * Parameters:\n - * tolerance - {number} threshhold for simplification in map units\n - *\n - * Returns:\n - * {OpenLayers.Geometry.LineString} the simplified LineString\n - */\n - simplify: function(tolerance){\n - if (this && this !== null) {\n - var points = this.getVertices();\n - if (points.length < 3) {\n - return this;\n - }\n - \n - var compareNumbers = function(a, b){\n - return (a-b);\n - };\n - \n - /**\n - * Private function doing the Douglas-Peucker reduction\n - */\n - var douglasPeuckerReduction = function(points, firstPoint, lastPoint, tolerance){\n - var maxDistance = 0;\n - var indexFarthest = 0;\n - \n - for (var index = firstPoint, distance; index < lastPoint; index++) {\n - distance = perpendicularDistance(points[firstPoint], points[lastPoint], points[index]);\n - if (distance > maxDistance) {\n - maxDistance = distance;\n - indexFarthest = index;\n - }\n - }\n - \n - if (maxDistance > tolerance && indexFarthest != firstPoint) {\n - //Add the largest point that exceeds the tolerance\n - pointIndexsToKeep.push(indexFarthest);\n - douglasPeuckerReduction(points, firstPoint, indexFarthest, tolerance);\n - douglasPeuckerReduction(points, indexFarthest, lastPoint, tolerance);\n - }\n - };\n - \n - /**\n - * Private function calculating the perpendicular distance\n - * TODO: check whether OpenLayers.Geometry.LineString::distanceTo() is faster or slower\n - */\n - var perpendicularDistance = function(point1, point2, point){\n - //Area = |(1/2)(x1y2 + x2y3 + x3y1 - x2y1 - x3y2 - x1y3)| *Area of triangle\n - //Base = v((x1-x2)²+(x1-x2)²) *Base of Triangle*\n - //Area = .5*Base*H *Solve for height\n - //Height = Area/.5/Base\n - \n - var area = Math.abs(0.5 * (point1.x * point2.y + point2.x * point.y + point.x * point1.y - point2.x * point1.y - point.x * point2.y - point1.x * point.y));\n - var bottom = Math.sqrt(Math.pow(point1.x - point2.x, 2) + Math.pow(point1.y - point2.y, 2));\n - var height = area / bottom * 2;\n - \n - return height;\n - };\n - \n - var firstPoint = 0;\n - var lastPoint = points.length - 1;\n - var pointIndexsToKeep = [];\n - \n - //Add the first and last index to the keepers\n - pointIndexsToKeep.push(firstPoint);\n - pointIndexsToKeep.push(lastPoint);\n - \n - //The first and the last point cannot be the same\n - while (points[firstPoint].equals(points[lastPoint])) {\n - lastPoint--;\n - //Addition: the first point not equal to first point in the LineString is kept as well\n - pointIndexsToKeep.push(lastPoint);\n - }\n - \n - douglasPeuckerReduction(points, firstPoint, lastPoint, tolerance);\n - var returnPoints = [];\n - pointIndexsToKeep.sort(compareNumbers);\n - for (var index = 0; index < pointIndexsToKeep.length; index++) {\n - returnPoints.push(points[pointIndexsToKeep[index]]);\n - }\n - return new OpenLayers.Geometry.LineString(returnPoints);\n - \n - }\n - else {\n - return this;\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Geometry.LineString"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>25718</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/LinearRing.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/LinearRing.js.xml deleted file mode 100644 index 8a2e8f0acc7ae80a5ff66400c40297a83fca3882..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/LinearRing.js.xml +++ /dev/null @@ -1,461 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.83</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>LinearRing.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Geometry/LineString.js\n - */\n -\n -/**\n - * Class: OpenLayers.Geometry.LinearRing\n - * \n - * A Linear Ring is a special LineString which is closed. It closes itself \n - * automatically on every addPoint/removePoint by adding a copy of the first\n - * point as the last point. \n - * \n - * Also, as it is the first in the line family to close itself, a getArea()\n - * function is defined to calculate the enclosed area of the linearRing\n - * \n - * Inherits:\n - * - <OpenLayers.Geometry.LineString>\n - */\n -OpenLayers.Geometry.LinearRing = OpenLayers.Class(\n - OpenLayers.Geometry.LineString, {\n -\n - /**\n - * Property: componentTypes\n - * {Array(String)} An array of class names representing the types of \n - * components that the collection can include. A null \n - * value means the component types are not restricted.\n - */\n - componentTypes: ["OpenLayers.Geometry.Point"],\n -\n - /**\n - * Constructor: OpenLayers.Geometry.LinearRing\n - * Linear rings are constructed with an array of points. This array\n - * can represent a closed or open ring. If the ring is open (the last\n - * point does not equal the first point), the constructor will close\n - * the ring. If the ring is already closed (the last point does equal\n - * the first point), it will be left closed.\n - * \n - * Parameters:\n - * points - {Array(<OpenLayers.Geometry.Point>)} points\n - */\n -\n - /**\n - * APIMethod: addComponent\n - * Adds a point to geometry components. If the point is to be added to\n - * the end of the components array and it is the same as the last point\n - * already in that array, the duplicate point is not added. This has \n - * the effect of closing the ring if it is not already closed, and \n - * doing the right thing if it is already closed. This behavior can \n - * be overridden by calling the method with a non-null index as the \n - * second argument.\n - *\n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>}\n - * index - {Integer} Index into the array to insert the component\n - * \n - * Returns:\n - * {Boolean} Was the Point successfully added?\n - */\n - addComponent: function(point, index) {\n - var added = false;\n -\n - //remove last point\n - var lastPoint = this.components.pop();\n -\n - // given an index, add the point\n - // without an index only add non-duplicate points\n - if(index != null || !point.equals(lastPoint)) {\n - added = OpenLayers.Geometry.Collection.prototype.addComponent.apply(this, \n - arguments);\n - }\n -\n - //append copy of first point\n - var firstPoint = this.components[0];\n - OpenLayers.Geometry.Collection.prototype.addComponent.apply(this, \n - [firstPoint]);\n - \n - return added;\n - },\n - \n - /**\n - * APIMethod: removeComponent\n - * Removes a point from geometry components.\n - *\n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>}\n - *\n - * Returns: \n - * {Boolean} The component was removed.\n - */\n - removeComponent: function(point) {\n - var removed = this.components && (this.components.length > 3);\n - if (removed) {\n - //remove last point\n - this.components.pop();\n - \n - //remove our point\n - OpenLayers.Geometry.Collection.prototype.removeComponent.apply(this, \n - arguments);\n - //append copy of first point\n - var firstPoint = this.components[0];\n - OpenLayers.Geometry.Collection.prototype.addComponent.apply(this, \n - [firstPoint]);\n - }\n - return removed;\n - },\n - \n - /**\n - * APIMethod: move\n - * Moves a geometry by the given displacement along positive x and y axes.\n - * This modifies the position of the geometry and clears the cached\n - * bounds.\n - *\n - * Parameters:\n - * x - {Float} Distance to move geometry in positive x direction. \n - * y - {Float} Distance to move geometry in positive y direction.\n - */\n - move: function(x, y) {\n - for(var i = 0, len=this.components.length; i<len - 1; i++) {\n - this.components[i].move(x, y);\n - }\n - },\n -\n - /**\n - * APIMethod: rotate\n - * Rotate a geometry around some origin\n - *\n - * Parameters:\n - * angle - {Float} Rotation angle in degrees (measured counterclockwise\n - * from the positive x-axis)\n - * origin - {<OpenLayers.Geometry.Point>} Center point for the rotation\n - */\n - rotate: function(angle, origin) {\n - for(var i=0, len=this.components.length; i<len - 1; ++i) {\n - this.components[i].rotate(angle, origin);\n - }\n - },\n -\n - /**\n - * APIMethod: resize\n - * Resize a geometry relative to some origin. Use this method to apply\n - * a uniform scaling to a geometry.\n - *\n - * Parameters:\n - * scale - {Float} Factor by which to scale the geometry. A scale of 2\n - * doubles the size of the geometry in each dimension\n - * (lines, for example, will be twice as long, and polygons\n - * will have four times the area).\n - * origin - {<OpenLayers.Geometry.Point>} Point of origin for resizing\n - * ratio - {Float} Optional x:y ratio for resizing. Default ratio is 1.\n - * \n - * Returns:\n - * {<OpenLayers.Geometry>} - The current geometry. \n - */\n - resize: function(scale, origin, ratio) {\n - for(var i=0, len=this.components.length; i<len - 1; ++i) {\n - this.components[i].resize(scale, origin, ratio);\n - }\n - return this;\n - },\n - \n - /**\n - * APIMethod: transform\n - * Reproject the components geometry from source to dest.\n - *\n - * Parameters:\n - * source - {<OpenLayers.Projection>}\n - * dest - {<OpenLayers.Projection>}\n - * \n - * Returns:\n - * {<OpenLayers.Geometry>} \n - */\n - transform: function(source, dest) {\n - if (source && dest) {\n - for (var i=0, len=this.components.length; i<len - 1; i++) {\n - var component = this.components[i];\n - component.transform(source, dest);\n - }\n - this.bounds = null;\n - }\n - return this;\n - },\n - \n - /**\n - * APIMethod: getCentroid\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.Point>} The centroid of the collection\n - */\n - getCentroid: function() {\n - if (this.components && (this.components.length > 2)) {\n - var sumX = 0.0;\n - var sumY = 0.0;\n - for (var i = 0; i < this.components.length - 1; i++) {\n - var b = this.components[i];\n - var c = this.components[i+1];\n - sumX += (b.x + c.x) * (b.x * c.y - c.x * b.y);\n - sumY += (b.y + c.y) * (b.x * c.y - c.x * b.y);\n - }\n - var area = -1 * this.getArea();\n - var x = sumX / (6 * area);\n - var y = sumY / (6 * area);\n - return new OpenLayers.Geometry.Point(x, y);\n - } else {\n - return null;\n - }\n - },\n -\n - /**\n - * APIMethod: getArea\n - * Note - The area is positive if the ring is oriented CW, otherwise\n - * it will be negative.\n - * \n - * Returns:\n - * {Float} The signed area for a ring.\n - */\n - getArea: function() {\n - var area = 0.0;\n - if ( this.components && (this.components.length > 2)) {\n - var sum = 0.0;\n - for (var i=0, len=this.components.length; i<len - 1; i++) {\n - var b = this.components[i];\n - var c = this.components[i+1];\n - sum += (b.x + c.x) * (c.y - b.y);\n - }\n - area = - sum / 2.0;\n - }\n - return area;\n - },\n - \n - /**\n - * APIMethod: getGeodesicArea\n - * Calculate the approximate area of the polygon were it projected onto\n - * the earth. Note that this area will be positive if ring is oriented\n - * clockwise, otherwise it will be negative.\n - *\n - * Parameters:\n - * projection - {<OpenLayers.Projection>} The spatial reference system\n - * for the geometry coordinates. If not provided, Geographic/WGS84 is\n - * assumed.\n - * \n - * Reference:\n - * Robert. G. Chamberlain and William H. Duquette, "Some Algorithms for\n - * Polygons on a Sphere", JPL Publication 07-03, Jet Propulsion\n - * Laboratory, Pasadena, CA, June 2007 http://trs-new.jpl.nasa.gov/dspace/handle/2014/40409\n - *\n - * Returns:\n - * {float} The approximate signed geodesic area of the polygon in square\n - * meters.\n - */\n - getGeodesicArea: function(projection) {\n - var ring = this; // so we can work with a clone if needed\n - if(projection) {\n - var gg = new OpenLayers.Projection("EPSG:4326");\n - if(!gg.equals(projection)) {\n - ring = this.clone().transform(projection, gg);\n - }\n - }\n - var area = 0.0;\n - var len = ring.components && ring.components.length;\n - if(len > 2) {\n - var p1, p2;\n - for(var i=0; i<len-1; i++) {\n - p1 = ring.components[i];\n - p2 = ring.components[i+1];\n - area += OpenLayers.Util.rad(p2.x - p1.x) *\n - (2 + Math.sin(OpenLayers.Util.rad(p1.y)) +\n - Math.sin(OpenLayers.Util.rad(p2.y)));\n - }\n - area = area * 6378137.0 * 6378137.0 / 2.0;\n - }\n - return area;\n - },\n - \n - /**\n - * Method: containsPoint\n - * Test if a point is inside a linear ring. For the case where a point\n - * is coincident with a linear ring edge, returns 1. Otherwise,\n - * returns boolean.\n - *\n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>}\n - *\n - * Returns:\n - * {Boolean | Number} The point is inside the linear ring. Returns 1 if\n - * the point is coincident with an edge. Returns boolean otherwise.\n - */\n - containsPoint: function(point) {\n - var approx = OpenLayers.Number.limitSigDigs;\n - var digs = 14;\n - var px = approx(point.x, digs);\n - var py = approx(point.y, digs);\n - function getX(y, x1, y1, x2, y2) {\n - return (y - y2) * ((x2 - x1) / (y2 - y1)) + x2;\n - }\n - var numSeg = this.components.length - 1;\n - var start, end, x1, y1, x2, y2, cx, cy;\n - var crosses = 0;\n - for(var i=0; i<numSeg; ++i) {\n - start = this.components[i];\n - x1 = approx(start.x, digs);\n - y1 = approx(start.y, digs);\n - end = this.components[i + 1];\n - x2 = approx(end.x, digs);\n - y2 = approx(end.y, digs);\n - \n - /**\n - * The following conditions enforce five edge-crossing rules:\n - * 1. points coincident with edges are considered contained;\n - * 2. an upward edge includes its starting endpoint, and\n - * excludes its final endpoint;\n - * 3. a downward edge excludes its starting endpoint, and\n - * includes its final endpoint;\n - * 4. horizontal edges are excluded; and\n - * 5. the edge-ray intersection point must be strictly right\n - * of the point P.\n - */\n - if(y1 == y2) {\n - // horizontal edge\n - if(py == y1) {\n - // point on horizontal line\n - if(x1 <= x2 && (px >= x1 && px <= x2) || // right or vert\n - x1 >= x2 && (px <= x1 && px >= x2)) { // left or vert\n - // point on edge\n - crosses = -1;\n - break;\n - }\n - }\n - // ignore other horizontal edges\n - continue;\n - }\n - cx = approx(getX(py, x1, y1, x2, y2), digs);\n - if(cx == px) {\n - // point on line\n - if(y1 < y2 && (py >= y1 && py <= y2) || // upward\n - y1 > y2 && (py <= y1 && py >= y2)) { // downward\n - // point on edge\n - crosses = -1;\n - break;\n - }\n - }\n - if(cx <= px) {\n - // no crossing to the right\n - continue;\n - }\n - if(x1 != x2 && (cx < Math.min(x1, x2) || cx > Math.max(x1, x2))) {\n - // no crossing\n - continue;\n - }\n - if(y1 < y2 && (py >= y1 && py < y2) || // upward\n - y1 > y2 && (py < y1 && py >= y2)) { // downward\n - ++crosses;\n - }\n - }\n - var contained = (crosses == -1) ?\n - // on edge\n - 1 :\n - // even (out) or odd (in)\n - !!(crosses & 1);\n -\n - return contained;\n - },\n -\n - /**\n - * APIMethod: intersects\n - * Determine if the input geometry intersects this one.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} Any type of geometry.\n - *\n - * Returns:\n - * {Boolean} The input geometry intersects this one.\n - */\n - intersects: function(geometry) {\n - var intersect = false;\n - if(geometry.CLASS_NAME == "OpenLayers.Geometry.Point") {\n - intersect = this.containsPoint(geometry);\n - } else if(geometry.CLASS_NAME == "OpenLayers.Geometry.LineString") {\n - intersect = geometry.intersects(this);\n - } else if(geometry.CLASS_NAME == "OpenLayers.Geometry.LinearRing") {\n - intersect = OpenLayers.Geometry.LineString.prototype.intersects.apply(\n - this, [geometry]\n - );\n - } else {\n - // check for component intersections\n - for(var i=0, len=geometry.components.length; i<len; ++ i) {\n - intersect = geometry.components[i].intersects(this);\n - if(intersect) {\n - break;\n - }\n - }\n - }\n - return intersect;\n - },\n -\n - /**\n - * APIMethod: getVertices\n - * Return a list of all points in this geometry.\n - *\n - * Parameters:\n - * nodes - {Boolean} For lines, only return vertices that are\n - * endpoints. If false, for lines, only vertices that are not\n - * endpoints will be returned. If not provided, all vertices will\n - * be returned.\n - *\n - * Returns:\n - * {Array} A list of all vertices in the geometry.\n - */\n - getVertices: function(nodes) {\n - return (nodes === true) ? [] : this.components.slice(0, this.components.length-1);\n - },\n -\n - CLASS_NAME: "OpenLayers.Geometry.LinearRing"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>14975</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/MultiLineString.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/MultiLineString.js.xml deleted file mode 100644 index 10100a6fe968f5120b112834672ae8e0b3b7ff06..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/MultiLineString.js.xml +++ /dev/null @@ -1,302 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.83</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>MultiLineString.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Geometry/Collection.js\n - * @requires OpenLayers/Geometry/LineString.js\n - */\n -\n -/**\n - * Class: OpenLayers.Geometry.MultiLineString\n - * A MultiLineString is a geometry with multiple <OpenLayers.Geometry.LineString>\n - * components.\n - * \n - * Inherits from:\n - * - <OpenLayers.Geometry.Collection>\n - * - <OpenLayers.Geometry> \n - */\n -OpenLayers.Geometry.MultiLineString = OpenLayers.Class(\n - OpenLayers.Geometry.Collection, {\n -\n - /**\n - * Property: componentTypes\n - * {Array(String)} An array of class names representing the types of\n - * components that the collection can include. A null value means the\n - * component types are not restricted.\n - */\n - componentTypes: ["OpenLayers.Geometry.LineString"],\n -\n - /**\n - * Constructor: OpenLayers.Geometry.MultiLineString\n - * Constructor for a MultiLineString Geometry.\n - *\n - * Parameters: \n - * components - {Array(<OpenLayers.Geometry.LineString>)} \n - *\n - */\n - \n - /**\n - * Method: split\n - * Use this geometry (the source) to attempt to split a target geometry.\n - * \n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} The target geometry.\n - * options - {Object} Properties of this object will be used to determine\n - * how the split is conducted.\n - *\n - * Valid options:\n - * mutual - {Boolean} Split the source geometry in addition to the target\n - * geometry. Default is false.\n - * edge - {Boolean} Allow splitting when only edges intersect. Default is\n - * true. If false, a vertex on the source must be within the tolerance\n - * distance of the intersection to be considered a split.\n - * tolerance - {Number} If a non-null value is provided, intersections\n - * within the tolerance distance of an existing vertex on the source\n - * will be assumed to occur at the vertex.\n - * \n - * Returns:\n - * {Array} A list of geometries (of this same type as the target) that\n - * result from splitting the target with the source geometry. The\n - * source and target geometry will remain unmodified. If no split\n - * results, null will be returned. If mutual is true and a split\n - * results, return will be an array of two arrays - the first will be\n - * all geometries that result from splitting the source geometry and\n - * the second will be all geometries that result from splitting the\n - * target geometry.\n - */\n - split: function(geometry, options) {\n - var results = null;\n - var mutual = options && options.mutual;\n - var splits, sourceLine, sourceLines, sourceSplit, targetSplit;\n - var sourceParts = [];\n - var targetParts = [geometry];\n - for(var i=0, len=this.components.length; i<len; ++i) {\n - sourceLine = this.components[i];\n - sourceSplit = false;\n - for(var j=0; j < targetParts.length; ++j) { \n - splits = sourceLine.split(targetParts[j], options);\n - if(splits) {\n - if(mutual) {\n - sourceLines = splits[0];\n - for(var k=0, klen=sourceLines.length; k<klen; ++k) {\n - if(k===0 && sourceParts.length) {\n - sourceParts[sourceParts.length-1].addComponent(\n - sourceLines[k]\n - );\n - } else {\n - sourceParts.push(\n - new OpenLayers.Geometry.MultiLineString([\n - sourceLines[k]\n - ])\n - );\n - }\n - }\n - sourceSplit = true;\n - splits = splits[1];\n - }\n - if(splits.length) {\n - // splice in new target parts\n - splits.unshift(j, 1);\n - Array.prototype.splice.apply(targetParts, splits);\n - break;\n - }\n - }\n - }\n - if(!sourceSplit) {\n - // source line was not hit\n - if(sourceParts.length) {\n - // add line to existing multi\n - sourceParts[sourceParts.length-1].addComponent(\n - sourceLine.clone()\n - );\n - } else {\n - // create a fresh multi\n - sourceParts = [\n - new OpenLayers.Geometry.MultiLineString(\n - sourceLine.clone()\n - )\n - ];\n - }\n - }\n - }\n - if(sourceParts && sourceParts.length > 1) {\n - sourceSplit = true;\n - } else {\n - sourceParts = [];\n - }\n - if(targetParts && targetParts.length > 1) {\n - targetSplit = true;\n - } else {\n - targetParts = [];\n - }\n - if(sourceSplit || targetSplit) {\n - if(mutual) {\n - results = [sourceParts, targetParts];\n - } else {\n - results = targetParts;\n - }\n - }\n - return results;\n - },\n - \n - /**\n - * Method: splitWith\n - * Split this geometry (the target) with the given geometry (the source).\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} A geometry used to split this\n - * geometry (the source).\n - * options - {Object} Properties of this object will be used to determine\n - * how the split is conducted.\n - *\n - * Valid options:\n - * mutual - {Boolean} Split the source geometry in addition to the target\n - * geometry. Default is false.\n - * edge - {Boolean} Allow splitting when only edges intersect. Default is\n - * true. If false, a vertex on the source must be within the tolerance\n - * distance of the intersection to be considered a split.\n - * tolerance - {Number} If a non-null value is provided, intersections\n - * within the tolerance distance of an existing vertex on the source\n - * will be assumed to occur at the vertex.\n - * \n - * Returns:\n - * {Array} A list of geometries (of this same type as the target) that\n - * result from splitting the target with the source geometry. The\n - * source and target geometry will remain unmodified. If no split\n - * results, null will be returned. If mutual is true and a split\n - * results, return will be an array of two arrays - the first will be\n - * all geometries that result from splitting the source geometry and\n - * the second will be all geometries that result from splitting the\n - * target geometry.\n - */\n - splitWith: function(geometry, options) {\n - var results = null;\n - var mutual = options && options.mutual;\n - var splits, targetLine, sourceLines, sourceSplit, targetSplit, sourceParts, targetParts;\n - if(geometry instanceof OpenLayers.Geometry.LineString) {\n - targetParts = [];\n - sourceParts = [geometry];\n - for(var i=0, len=this.components.length; i<len; ++i) {\n - targetSplit = false;\n - targetLine = this.components[i];\n - for(var j=0; j<sourceParts.length; ++j) {\n - splits = sourceParts[j].split(targetLine, options);\n - if(splits) {\n - if(mutual) {\n - sourceLines = splits[0];\n - if(sourceLines.length) {\n - // splice in new source parts\n - sourceLines.unshift(j, 1);\n - Array.prototype.splice.apply(sourceParts, sourceLines);\n - j += sourceLines.length - 2;\n - }\n - splits = splits[1];\n - if(splits.length === 0) {\n - splits = [targetLine.clone()];\n - }\n - }\n - for(var k=0, klen=splits.length; k<klen; ++k) {\n - if(k===0 && targetParts.length) {\n - targetParts[targetParts.length-1].addComponent(\n - splits[k]\n - );\n - } else {\n - targetParts.push(\n - new OpenLayers.Geometry.MultiLineString([\n - splits[k]\n - ])\n - );\n - }\n - }\n - targetSplit = true; \n - }\n - }\n - if(!targetSplit) {\n - // target component was not hit\n - if(targetParts.length) {\n - // add it to any existing multi-line\n - targetParts[targetParts.length-1].addComponent(\n - targetLine.clone()\n - );\n - } else {\n - // or start with a fresh multi-line\n - targetParts = [\n - new OpenLayers.Geometry.MultiLineString([\n - targetLine.clone()\n - ])\n - ];\n - }\n - \n - }\n - }\n - } else {\n - results = geometry.split(this);\n - }\n - if(sourceParts && sourceParts.length > 1) {\n - sourceSplit = true;\n - } else {\n - sourceParts = [];\n - }\n - if(targetParts && targetParts.length > 1) {\n - targetSplit = true;\n - } else {\n - targetParts = [];\n - }\n - if(sourceSplit || targetSplit) {\n - if(mutual) {\n - results = [sourceParts, targetParts];\n - } else {\n - results = targetParts;\n - }\n - }\n - return results;\n - },\n -\n - CLASS_NAME: "OpenLayers.Geometry.MultiLineString"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>10486</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/MultiPoint.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/MultiPoint.js.xml deleted file mode 100644 index 24bf005e3466e945c04e230599f4dffe27239de1..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/MultiPoint.js.xml +++ /dev/null @@ -1,110 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.83</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>MultiPoint.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Geometry/Collection.js\n - * @requires OpenLayers/Geometry/Point.js\n - */\n -\n -/**\n - * Class: OpenLayers.Geometry.MultiPoint\n - * MultiPoint is a collection of Points. Create a new instance with the\n - * <OpenLayers.Geometry.MultiPoint> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Geometry.Collection>\n - * - <OpenLayers.Geometry>\n - */\n -OpenLayers.Geometry.MultiPoint = OpenLayers.Class(\n - OpenLayers.Geometry.Collection, {\n -\n - /**\n - * Property: componentTypes\n - * {Array(String)} An array of class names representing the types of\n - * components that the collection can include. A null value means the\n - * component types are not restricted.\n - */\n - componentTypes: ["OpenLayers.Geometry.Point"],\n -\n - /**\n - * Constructor: OpenLayers.Geometry.MultiPoint\n - * Create a new MultiPoint Geometry\n - *\n - * Parameters:\n - * components - {Array(<OpenLayers.Geometry.Point>)} \n - *\n - * Returns:\n - * {<OpenLayers.Geometry.MultiPoint>}\n - */\n -\n - /**\n - * APIMethod: addPoint\n - * Wrapper for <OpenLayers.Geometry.Collection.addComponent>\n - *\n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>} Point to be added\n - * index - {Integer} Optional index\n - */\n - addPoint: function(point, index) {\n - this.addComponent(point, index);\n - },\n - \n - /**\n - * APIMethod: removePoint\n - * Wrapper for <OpenLayers.Geometry.Collection.removeComponent>\n - *\n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>} Point to be removed\n - */\n - removePoint: function(point){\n - this.removeComponent(point);\n - },\n -\n - CLASS_NAME: "OpenLayers.Geometry.MultiPoint"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1913</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/MultiPolygon.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/MultiPolygon.js.xml deleted file mode 100644 index 4bd0081ec6415e21060f61d60d437289176d32ae..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/MultiPolygon.js.xml +++ /dev/null @@ -1,86 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>MultiPolygon.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Geometry/Collection.js\n - * @requires OpenLayers/Geometry/Polygon.js\n - */\n -\n -/**\n - * Class: OpenLayers.Geometry.MultiPolygon\n - * MultiPolygon is a geometry with multiple <OpenLayers.Geometry.Polygon>\n - * components. Create a new instance with the <OpenLayers.Geometry.MultiPolygon>\n - * constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Geometry.Collection>\n - */\n -OpenLayers.Geometry.MultiPolygon = OpenLayers.Class(\n - OpenLayers.Geometry.Collection, {\n -\n - /**\n - * Property: componentTypes\n - * {Array(String)} An array of class names representing the types of\n - * components that the collection can include. A null value means the\n - * component types are not restricted.\n - */\n - componentTypes: ["OpenLayers.Geometry.Polygon"],\n -\n - /**\n - * Constructor: OpenLayers.Geometry.MultiPolygon\n - * Create a new MultiPolygon geometry\n - *\n - * Parameters:\n - * components - {Array(<OpenLayers.Geometry.Polygon>)} An array of polygons\n - * used to generate the MultiPolygon\n - *\n - */\n -\n - CLASS_NAME: "OpenLayers.Geometry.MultiPolygon"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1355</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/Point.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/Point.js.xml deleted file mode 100644 index c45c40ccc22b5c3b92f980947c26711c3e4e1f31..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/Point.js.xml +++ /dev/null @@ -1,327 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Point.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Geometry.js\n - */\n -\n -/**\n - * Class: OpenLayers.Geometry.Point\n - * Point geometry class. \n - * \n - * Inherits from:\n - * - <OpenLayers.Geometry> \n - */\n -OpenLayers.Geometry.Point = OpenLayers.Class(OpenLayers.Geometry, {\n -\n - /** \n - * APIProperty: x \n - * {float} \n - */\n - x: null,\n -\n - /** \n - * APIProperty: y \n - * {float} \n - */\n - y: null,\n -\n - /**\n - * Constructor: OpenLayers.Geometry.Point\n - * Construct a point geometry.\n - *\n - * Parameters:\n - * x - {float} \n - * y - {float}\n - * \n - */\n - initialize: function(x, y) {\n - OpenLayers.Geometry.prototype.initialize.apply(this, arguments);\n - \n - this.x = parseFloat(x);\n - this.y = parseFloat(y);\n - },\n -\n - /**\n - * APIMethod: clone\n - * \n - * Returns:\n - * {<OpenLayers.Geometry.Point>} An exact clone of this OpenLayers.Geometry.Point\n - */\n - clone: function(obj) {\n - if (obj == null) {\n - obj = new OpenLayers.Geometry.Point(this.x, this.y);\n - }\n -\n - // catch any randomly tagged-on properties\n - OpenLayers.Util.applyDefaults(obj, this);\n -\n - return obj;\n - },\n -\n - /** \n - * Method: calculateBounds\n - * Create a new Bounds based on the lon/lat\n - */\n - calculateBounds: function () {\n - this.bounds = new OpenLayers.Bounds(this.x, this.y,\n - this.x, this.y);\n - },\n -\n - /**\n - * APIMethod: distanceTo\n - * Calculate the closest distance between two geometries (on the x-y plane).\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} The target geometry.\n - * options - {Object} Optional properties for configuring the distance\n - * calculation.\n - *\n - * Valid options:\n - * details - {Boolean} Return details from the distance calculation.\n - * Default is false.\n - * edge - {Boolean} Calculate the distance from this geometry to the\n - * nearest edge of the target geometry. Default is true. If true,\n - * calling distanceTo from a geometry that is wholly contained within\n - * the target will result in a non-zero distance. If false, whenever\n - * geometries intersect, calling distanceTo will return 0. If false,\n - * details cannot be returned.\n - *\n - * Returns:\n - * {Number | Object} The distance between this geometry and the target.\n - * If details is true, the return will be an object with distance,\n - * x0, y0, x1, and x2 properties. The x0 and y0 properties represent\n - * the coordinates of the closest point on this geometry. The x1 and y1\n - * properties represent the coordinates of the closest point on the\n - * target geometry.\n - */\n - distanceTo: function(geometry, options) {\n - var edge = !(options && options.edge === false);\n - var details = edge && options && options.details;\n - var distance, x0, y0, x1, y1, result;\n - if(geometry instanceof OpenLayers.Geometry.Point) {\n - x0 = this.x;\n - y0 = this.y;\n - x1 = geometry.x;\n - y1 = geometry.y;\n - distance = Math.sqrt(Math.pow(x0 - x1, 2) + Math.pow(y0 - y1, 2));\n - result = !details ?\n - distance : {x0: x0, y0: y0, x1: x1, y1: y1, distance: distance};\n - } else {\n - result = geometry.distanceTo(this, options);\n - if(details) {\n - // switch coord order since this geom is target\n - result = {\n - x0: result.x1, y0: result.y1,\n - x1: result.x0, y1: result.y0,\n - distance: result.distance\n - };\n - }\n - }\n - return result;\n - },\n - \n - /** \n - * APIMethod: equals\n - * Determine whether another geometry is equivalent to this one. Geometries\n - * are considered equivalent if all components have the same coordinates.\n - * \n - * Parameters:\n - * geom - {<OpenLayers.Geometry.Point>} The geometry to test. \n - *\n - * Returns:\n - * {Boolean} The supplied geometry is equivalent to this geometry.\n - */\n - equals: function(geom) {\n - var equals = false;\n - if (geom != null) {\n - equals = ((this.x == geom.x && this.y == geom.y) ||\n - (isNaN(this.x) && isNaN(this.y) && isNaN(geom.x) && isNaN(geom.y)));\n - }\n - return equals;\n - },\n - \n - /**\n - * Method: toShortString\n - *\n - * Returns:\n - * {String} Shortened String representation of Point object. \n - * (ex. <i>"5, 42"</i>)\n - */\n - toShortString: function() {\n - return (this.x + ", " + this.y);\n - },\n - \n - /**\n - * APIMethod: move\n - * Moves a geometry by the given displacement along positive x and y axes.\n - * This modifies the position of the geometry and clears the cached\n - * bounds.\n - *\n - * Parameters:\n - * x - {Float} Distance to move geometry in positive x direction. \n - * y - {Float} Distance to move geometry in positive y direction.\n - */\n - move: function(x, y) {\n - this.x = this.x + x;\n - this.y = this.y + y;\n - this.clearBounds();\n - },\n -\n - /**\n - * APIMethod: rotate\n - * Rotate a point around another.\n - *\n - * Parameters:\n - * angle - {Float} Rotation angle in degrees (measured counterclockwise\n - * from the positive x-axis)\n - * origin - {<OpenLayers.Geometry.Point>} Center point for the rotation\n - */\n - rotate: function(angle, origin) {\n - angle *= Math.PI / 180;\n - var radius = this.distanceTo(origin);\n - var theta = angle + Math.atan2(this.y - origin.y, this.x - origin.x);\n - this.x = origin.x + (radius * Math.cos(theta));\n - this.y = origin.y + (radius * Math.sin(theta));\n - this.clearBounds();\n - },\n - \n - /**\n - * APIMethod: getCentroid\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.Point>} The centroid of the collection\n - */\n - getCentroid: function() {\n - return new OpenLayers.Geometry.Point(this.x, this.y);\n - },\n -\n - /**\n - * APIMethod: resize\n - * Resize a point relative to some origin. For points, this has the effect\n - * of scaling a vector (from the origin to the point). This method is\n - * more useful on geometry collection subclasses.\n - *\n - * Parameters:\n - * scale - {Float} Ratio of the new distance from the origin to the old\n - * distance from the origin. A scale of 2 doubles the\n - * distance between the point and origin.\n - * origin - {<OpenLayers.Geometry.Point>} Point of origin for resizing\n - * ratio - {Float} Optional x:y ratio for resizing. Default ratio is 1.\n - * \n - * Returns:\n - * {<OpenLayers.Geometry>} - The current geometry. \n - */\n - resize: function(scale, origin, ratio) {\n - ratio = (ratio == undefined) ? 1 : ratio;\n - this.x = origin.x + (scale * ratio * (this.x - origin.x));\n - this.y = origin.y + (scale * (this.y - origin.y));\n - this.clearBounds();\n - return this;\n - },\n - \n - /**\n - * APIMethod: intersects\n - * Determine if the input geometry intersects this one.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} Any type of geometry.\n - *\n - * Returns:\n - * {Boolean} The input geometry intersects this one.\n - */\n - intersects: function(geometry) {\n - var intersect = false;\n - if(geometry.CLASS_NAME == "OpenLayers.Geometry.Point") {\n - intersect = this.equals(geometry);\n - } else {\n - intersect = geometry.intersects(this);\n - }\n - return intersect;\n - },\n - \n - /**\n - * APIMethod: transform\n - * Translate the x,y properties of the point from source to dest.\n - * \n - * Parameters:\n - * source - {<OpenLayers.Projection>} \n - * dest - {<OpenLayers.Projection>}\n - * \n - * Returns:\n - * {<OpenLayers.Geometry>} \n - */\n - transform: function(source, dest) {\n - if ((source && dest)) {\n - OpenLayers.Projection.transform(\n - this, source, dest); \n - this.bounds = null;\n - } \n - return this;\n - },\n -\n - /**\n - * APIMethod: getVertices\n - * Return a list of all points in this geometry.\n - *\n - * Parameters:\n - * nodes - {Boolean} For lines, only return vertices that are\n - * endpoints. If false, for lines, only vertices that are not\n - * endpoints will be returned. If not provided, all vertices will\n - * be returned.\n - *\n - * Returns:\n - * {Array} A list of all vertices in the geometry.\n - */\n - getVertices: function(nodes) {\n - return [this];\n - },\n -\n - CLASS_NAME: "OpenLayers.Geometry.Point"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>8912</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/Polygon.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/Polygon.js.xml deleted file mode 100644 index e7b667ac02f729a017cad968df1e2e000a69440c..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Geometry/Polygon.js.xml +++ /dev/null @@ -1,299 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Polygon.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Geometry/Collection.js\n - * @requires OpenLayers/Geometry/LinearRing.js\n - */\n -\n -/**\n - * Class: OpenLayers.Geometry.Polygon \n - * Polygon is a collection of Geometry.LinearRings. \n - * \n - * Inherits from:\n - * - <OpenLayers.Geometry.Collection> \n - * - <OpenLayers.Geometry> \n - */\n -OpenLayers.Geometry.Polygon = OpenLayers.Class(\n - OpenLayers.Geometry.Collection, {\n -\n - /**\n - * Property: componentTypes\n - * {Array(String)} An array of class names representing the types of\n - * components that the collection can include. A null value means the\n - * component types are not restricted.\n - */\n - componentTypes: ["OpenLayers.Geometry.LinearRing"],\n -\n - /**\n - * Constructor: OpenLayers.Geometry.Polygon\n - * Constructor for a Polygon geometry. \n - * The first ring (this.component[0])is the outer bounds of the polygon and \n - * all subsequent rings (this.component[1-n]) are internal holes.\n - *\n - *\n - * Parameters:\n - * components - {Array(<OpenLayers.Geometry.LinearRing>)} \n - */\n -\n - /** \n - * APIMethod: getArea\n - * Calculated by subtracting the areas of the internal holes from the \n - * area of the outer hole.\n - * \n - * Returns:\n - * {float} The area of the geometry\n - */\n - getArea: function() {\n - var area = 0.0;\n - if ( this.components && (this.components.length > 0)) {\n - area += Math.abs(this.components[0].getArea());\n - for (var i=1, len=this.components.length; i<len; i++) {\n - area -= Math.abs(this.components[i].getArea());\n - }\n - }\n - return area;\n - },\n -\n - /** \n - * APIMethod: getGeodesicArea\n - * Calculate the approximate area of the polygon were it projected onto\n - * the earth.\n - *\n - * Parameters:\n - * projection - {<OpenLayers.Projection>} The spatial reference system\n - * for the geometry coordinates. If not provided, Geographic/WGS84 is\n - * assumed.\n - * \n - * Reference:\n - * Robert. G. Chamberlain and William H. Duquette, "Some Algorithms for\n - * Polygons on a Sphere", JPL Publication 07-03, Jet Propulsion\n - * Laboratory, Pasadena, CA, June 2007 http://trs-new.jpl.nasa.gov/dspace/handle/2014/40409\n - *\n - * Returns:\n - * {float} The approximate geodesic area of the polygon in square meters.\n - */\n - getGeodesicArea: function(projection) {\n - var area = 0.0;\n - if(this.components && (this.components.length > 0)) {\n - area += Math.abs(this.components[0].getGeodesicArea(projection));\n - for(var i=1, len=this.components.length; i<len; i++) {\n - area -= Math.abs(this.components[i].getGeodesicArea(projection));\n - }\n - }\n - return area;\n - },\n -\n - /**\n - * Method: containsPoint\n - * Test if a point is inside a polygon. Points on a polygon edge are\n - * considered inside.\n - *\n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>}\n - *\n - * Returns:\n - * {Boolean | Number} The point is inside the polygon. Returns 1 if the\n - * point is on an edge. Returns boolean otherwise.\n - */\n - containsPoint: function(point) {\n - var numRings = this.components.length;\n - var contained = false;\n - if(numRings > 0) {\n - // check exterior ring - 1 means on edge, boolean otherwise\n - contained = this.components[0].containsPoint(point);\n - if(contained !== 1) {\n - if(contained && numRings > 1) {\n - // check interior rings\n - var hole;\n - for(var i=1; i<numRings; ++i) {\n - hole = this.components[i].containsPoint(point);\n - if(hole) {\n - if(hole === 1) {\n - // on edge\n - contained = 1;\n - } else {\n - // in hole\n - contained = false;\n - } \n - break;\n - }\n - }\n - }\n - }\n - }\n - return contained;\n - },\n -\n - /**\n - * APIMethod: intersects\n - * Determine if the input geometry intersects this one.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} Any type of geometry.\n - *\n - * Returns:\n - * {Boolean} The input geometry intersects this one.\n - */\n - intersects: function(geometry) {\n - var intersect = false;\n - var i, len;\n - if(geometry.CLASS_NAME == "OpenLayers.Geometry.Point") {\n - intersect = this.containsPoint(geometry);\n - } else if(geometry.CLASS_NAME == "OpenLayers.Geometry.LineString" ||\n - geometry.CLASS_NAME == "OpenLayers.Geometry.LinearRing") {\n - // check if rings/linestrings intersect\n - for(i=0, len=this.components.length; i<len; ++i) {\n - intersect = geometry.intersects(this.components[i]);\n - if(intersect) {\n - break;\n - }\n - }\n - if(!intersect) {\n - // check if this poly contains points of the ring/linestring\n - for(i=0, len=geometry.components.length; i<len; ++i) {\n - intersect = this.containsPoint(geometry.components[i]);\n - if(intersect) {\n - break;\n - }\n - }\n - }\n - } else {\n - for(i=0, len=geometry.components.length; i<len; ++ i) {\n - intersect = this.intersects(geometry.components[i]);\n - if(intersect) {\n - break;\n - }\n - }\n - }\n - // check case where this poly is wholly contained by another\n - if(!intersect && geometry.CLASS_NAME == "OpenLayers.Geometry.Polygon") {\n - // exterior ring points will be contained in the other geometry\n - var ring = this.components[0];\n - for(i=0, len=ring.components.length; i<len; ++i) {\n - intersect = geometry.containsPoint(ring.components[i]);\n - if(intersect) {\n - break;\n - }\n - }\n - }\n - return intersect;\n - },\n -\n - /**\n - * APIMethod: distanceTo\n - * Calculate the closest distance between two geometries (on the x-y plane).\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} The target geometry.\n - * options - {Object} Optional properties for configuring the distance\n - * calculation.\n - *\n - * Valid options:\n - * details - {Boolean} Return details from the distance calculation.\n - * Default is false.\n - * edge - {Boolean} Calculate the distance from this geometry to the\n - * nearest edge of the target geometry. Default is true. If true,\n - * calling distanceTo from a geometry that is wholly contained within\n - * the target will result in a non-zero distance. If false, whenever\n - * geometries intersect, calling distanceTo will return 0. If false,\n - * details cannot be returned.\n - *\n - * Returns:\n - * {Number | Object} The distance between this geometry and the target.\n - * If details is true, the return will be an object with distance,\n - * x0, y0, x1, and y1 properties. The x0 and y0 properties represent\n - * the coordinates of the closest point on this geometry. The x1 and y1\n - * properties represent the coordinates of the closest point on the\n - * target geometry.\n - */\n - distanceTo: function(geometry, options) {\n - var edge = !(options && options.edge === false);\n - var result;\n - // this is the case where we might not be looking for distance to edge\n - if(!edge && this.intersects(geometry)) {\n - result = 0;\n - } else {\n - result = OpenLayers.Geometry.Collection.prototype.distanceTo.apply(\n - this, [geometry, options]\n - );\n - }\n - return result;\n - },\n -\n - CLASS_NAME: "OpenLayers.Geometry.Polygon"\n -});\n -\n -/**\n - * APIMethod: createRegularPolygon\n - * Create a regular polygon around a radius. Useful for creating circles \n - * and the like.\n - *\n - * Parameters:\n - * origin - {<OpenLayers.Geometry.Point>} center of polygon.\n - * radius - {Float} distance to vertex, in map units.\n - * sides - {Integer} Number of sides. 20 approximates a circle.\n - * rotation - {Float} original angle of rotation, in degrees.\n - */\n -OpenLayers.Geometry.Polygon.createRegularPolygon = function(origin, radius, sides, rotation) { \n - var angle = Math.PI * ((1/sides) - (1/2));\n - if(rotation) {\n - angle += (rotation / 180) * Math.PI;\n - }\n - var rotatedAngle, x, y;\n - var points = [];\n - for(var i=0; i<sides; ++i) {\n - rotatedAngle = angle + (i * 2 * Math.PI / sides);\n - x = origin.x + (radius * Math.cos(rotatedAngle));\n - y = origin.y + (radius * Math.sin(rotatedAngle));\n - points.push(new OpenLayers.Geometry.Point(x, y));\n - }\n - var ring = new OpenLayers.Geometry.LinearRing(points);\n - return new OpenLayers.Geometry.Polygon([ring]);\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>9394</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler.js.xml deleted file mode 100644 index 8b0ba8a4c15074b3e467b08cc8be3ead89271f56..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler.js.xml +++ /dev/null @@ -1,332 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Handler.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Events.js\n - */\n -\n -/**\n - * Class: OpenLayers.Handler\n - * Base class to construct a higher-level handler for event sequences. All\n - * handlers have activate and deactivate methods. In addition, they have\n - * methods named like browser events. When a handler is activated, any\n - * additional methods named like a browser event is registered as a\n - * listener for the corresponding event. When a handler is deactivated,\n - * those same methods are unregistered as event listeners.\n - *\n - * Handlers also typically have a callbacks object with keys named like\n - * the abstracted events or event sequences that they are in charge of\n - * handling. The controls that wrap handlers define the methods that\n - * correspond to these abstract events - so instead of listening for\n - * individual browser events, they only listen for the abstract events\n - * defined by the handler.\n - * \n - * Handlers are created by controls, which ultimately have the responsibility\n - * of making changes to the the state of the application. Handlers\n - * themselves may make temporary changes, but in general are expected to\n - * return the application in the same state that they found it.\n - */\n -OpenLayers.Handler = OpenLayers.Class({\n -\n - /**\n - * Property: id\n - * {String}\n - */\n - id: null,\n - \n - /**\n - * APIProperty: control\n - * {<OpenLayers.Control>}. The control that initialized this handler. The\n - * control is assumed to have a valid map property - that map is used\n - * in the handler\'s own setMap method.\n - */\n - control: null,\n -\n - /**\n - * Property: map\n - * {<OpenLayers.Map>}\n - */\n - map: null,\n -\n - /**\n - * APIProperty: keyMask\n - * {Integer} Use bitwise operators and one or more of the OpenLayers.Handler\n - * constants to construct a keyMask. The keyMask is used by\n - * <checkModifiers>. If the keyMask matches the combination of keys\n - * down on an event, checkModifiers returns true.\n - *\n - * Example:\n - * (code)\n - * // handler only responds if the Shift key is down\n - * handler.keyMask = OpenLayers.Handler.MOD_SHIFT;\n - *\n - * // handler only responds if Ctrl-Shift is down\n - * handler.keyMask = OpenLayers.Handler.MOD_SHIFT |\n - * OpenLayers.Handler.MOD_CTRL;\n - * (end)\n - */\n - keyMask: null,\n -\n - /**\n - * Property: active\n - * {Boolean}\n - */\n - active: false,\n - \n - /**\n - * Property: evt\n - * {Event} This property references the last event handled by the handler.\n - * Note that this property is not part of the stable API. Use of the\n - * evt property should be restricted to controls in the library\n - * or other applications that are willing to update with changes to\n - * the OpenLayers code.\n - */\n - evt: null,\n -\n - /**\n - * Constructor: OpenLayers.Handler\n - * Construct a handler.\n - *\n - * Parameters:\n - * control - {<OpenLayers.Control>} The control that initialized this\n - * handler. The control is assumed to have a valid map property; that\n - * map is used in the handler\'s own setMap method. If a map property\n - * is present in the options argument it will be used instead.\n - * callbacks - {Object} An object whose properties correspond to abstracted\n - * events or sequences of browser events. The values for these\n - * properties are functions defined by the control that get called by\n - * the handler.\n - * options - {Object} An optional object whose properties will be set on\n - * the handler.\n - */\n - initialize: function(control, callbacks, options) {\n - OpenLayers.Util.extend(this, options);\n - this.control = control;\n - this.callbacks = callbacks;\n -\n - var map = this.map || control.map;\n - if (map) {\n - this.setMap(map); \n - }\n - \n - this.id = OpenLayers.Util.createUniqueID(this.CLASS_NAME + "_");\n - },\n - \n - /**\n - * Method: setMap\n - */\n - setMap: function (map) {\n - this.map = map;\n - },\n -\n - /**\n - * Method: checkModifiers\n - * Check the keyMask on the handler. If no <keyMask> is set, this always\n - * returns true. If a <keyMask> is set and it matches the combination\n - * of keys down on an event, this returns true.\n - *\n - * Returns:\n - * {Boolean} The keyMask matches the keys down on an event.\n - */\n - checkModifiers: function (evt) {\n - if(this.keyMask == null) {\n - return true;\n - }\n - /* calculate the keyboard modifier mask for this event */\n - var keyModifiers =\n - (evt.shiftKey ? OpenLayers.Handler.MOD_SHIFT : 0) |\n - (evt.ctrlKey ? OpenLayers.Handler.MOD_CTRL : 0) |\n - (evt.altKey ? OpenLayers.Handler.MOD_ALT : 0);\n - \n - /* if it differs from the handler object\'s key mask,\n - bail out of the event handler */\n - return (keyModifiers == this.keyMask);\n - },\n -\n - /**\n - * APIMethod: activate\n - * Turn on the handler. Returns false if the handler was already active.\n - * \n - * Returns: \n - * {Boolean} The handler was activated.\n - */\n - activate: function() {\n - if(this.active) {\n - return false;\n - }\n - // register for event handlers defined on this class.\n - var events = OpenLayers.Events.prototype.BROWSER_EVENTS;\n - for (var i=0, len=events.length; i<len; i++) {\n - if (this[events[i]]) {\n - this.register(events[i], this[events[i]]); \n - }\n - } \n - this.active = true;\n - return true;\n - },\n - \n - /**\n - * APIMethod: deactivate\n - * Turn off the handler. Returns false if the handler was already inactive.\n - * \n - * Returns:\n - * {Boolean} The handler was deactivated.\n - */\n - deactivate: function() {\n - if(!this.active) {\n - return false;\n - }\n - // unregister event handlers defined on this class.\n - var events = OpenLayers.Events.prototype.BROWSER_EVENTS;\n - for (var i=0, len=events.length; i<len; i++) {\n - if (this[events[i]]) {\n - this.unregister(events[i], this[events[i]]); \n - }\n - } \n - this.active = false;\n - return true;\n - },\n -\n - /**\n - * Method: callback\n - * Trigger the control\'s named callback with the given arguments\n - *\n - * Parameters:\n - * name - {String} The key for the callback that is one of the properties\n - * of the handler\'s callbacks object.\n - * args - {Array(*)} An array of arguments (any type) with which to call \n - * the callback (defined by the control).\n - */\n - callback: function (name, args) {\n - if (name && this.callbacks[name]) {\n - this.callbacks[name].apply(this.control, args);\n - }\n - },\n -\n - /**\n - * Method: register\n - * register an event on the map\n - */\n - register: function (name, method) {\n - // TODO: deal with registerPriority in 3.0\n - this.map.events.registerPriority(name, this, method);\n - this.map.events.registerPriority(name, this, this.setEvent);\n - },\n -\n - /**\n - * Method: unregister\n - * unregister an event from the map\n - */\n - unregister: function (name, method) {\n - this.map.events.unregister(name, this, method); \n - this.map.events.unregister(name, this, this.setEvent);\n - },\n - \n - /**\n - * Method: setEvent\n - * With each registered browser event, the handler sets its own evt\n - * property. This property can be accessed by controls if needed\n - * to get more information about the event that the handler is\n - * processing.\n - *\n - * This allows modifier keys on the event to be checked (alt, shift,\n - * and ctrl cannot be checked with the keyboard handler). For a\n - * control to determine which modifier keys are associated with the\n - * event that a handler is currently processing, it should access\n - * (code)handler.evt.altKey || handler.evt.shiftKey ||\n - * handler.evt.ctrlKey(end).\n - *\n - * Parameters:\n - * evt - {Event} The browser event.\n - */\n - setEvent: function(evt) {\n - this.evt = evt;\n - return true;\n - },\n -\n - /**\n - * Method: destroy\n - * Deconstruct the handler.\n - */\n - destroy: function () {\n - // unregister event listeners\n - this.deactivate();\n - // eliminate circular references\n - this.control = this.map = null; \n - },\n -\n - CLASS_NAME: "OpenLayers.Handler"\n -});\n -\n -/**\n - * Constant: OpenLayers.Handler.MOD_NONE\n - * If set as the <keyMask>, <checkModifiers> returns false if any key is down.\n - */\n -OpenLayers.Handler.MOD_NONE = 0;\n -\n -/**\n - * Constant: OpenLayers.Handler.MOD_SHIFT\n - * If set as the <keyMask>, <checkModifiers> returns false if Shift is down.\n - */\n -OpenLayers.Handler.MOD_SHIFT = 1;\n -\n -/**\n - * Constant: OpenLayers.Handler.MOD_CTRL\n - * If set as the <keyMask>, <checkModifiers> returns false if Ctrl is down.\n - */\n -OpenLayers.Handler.MOD_CTRL = 2;\n -\n -/**\n - * Constant: OpenLayers.Handler.MOD_ALT\n - * If set as the <keyMask>, <checkModifiers> returns false if Alt is down.\n - */\n -OpenLayers.Handler.MOD_ALT = 4;\n -\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>9461</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler.xml deleted file mode 100644 index 510a3313b52c577cfe6635a235806069912b1bb0..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Handler</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Handler</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Box.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Box.js.xml deleted file mode 100644 index 2eeaa08f732a81fe6de297db4b92569f2f8c5ce5..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Box.js.xml +++ /dev/null @@ -1,288 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.89</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Box.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Handler.js\n - * @requires OpenLayers/Handler/Drag.js\n - */\n -\n -/**\n - * Class: OpenLayers.Handler.Box\n - * Handler for dragging a rectangle across the map. Box is displayed \n - * on mouse down, moves on mouse move, and is finished on mouse up.\n - *\n - * Inherits from:\n - * - <OpenLayers.Handler> \n - */\n -OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, {\n -\n - /** \n - * Property: dragHandler \n - * {<OpenLayers.Handler.Drag>} \n - */\n - dragHandler: null,\n -\n - /**\n - * APIProperty: boxDivClassName\n - * {String} The CSS class to use for drawing the box. Default is\n - * olHandlerBoxZoomBox\n - */\n - boxDivClassName: \'olHandlerBoxZoomBox\',\n - \n - /**\n - * Property: boxOffsets\n - * {Object} Caches box offsets from css. This is used by the getBoxOffsets\n - * method.\n - */\n - boxOffsets: null,\n -\n - /**\n - * Constructor: OpenLayers.Handler.Box\n - *\n - * Parameters:\n - * control - {<OpenLayers.Control>} \n - * callbacks - {Object} An object with a properties whose values are\n - * functions. Various callbacks described below.\n - * options - {Object} \n - *\n - * Named callbacks:\n - * start - Called when the box drag operation starts.\n - * done - Called when the box drag operation is finished.\n - * The callback should expect to receive a single argument, the box \n - * bounds or a pixel. If the box dragging didn\'t span more than a 5 \n - * pixel distance, a pixel will be returned instead of a bounds object.\n - */\n - initialize: function(control, callbacks, options) {\n - OpenLayers.Handler.prototype.initialize.apply(this, arguments);\n - this.dragHandler = new OpenLayers.Handler.Drag(\n - this, \n - {\n - down: this.startBox, \n - move: this.moveBox, \n - out: this.removeBox,\n - up: this.endBox\n - }, \n - {keyMask: this.keyMask}\n - );\n - },\n -\n - /**\n - * Method: destroy\n - */\n - destroy: function() {\n - OpenLayers.Handler.prototype.destroy.apply(this, arguments);\n - if (this.dragHandler) {\n - this.dragHandler.destroy();\n - this.dragHandler = null;\n - } \n - },\n -\n - /**\n - * Method: setMap\n - */\n - setMap: function (map) {\n - OpenLayers.Handler.prototype.setMap.apply(this, arguments);\n - if (this.dragHandler) {\n - this.dragHandler.setMap(map);\n - }\n - },\n -\n - /**\n - * Method: startBox\n - *\n - * Parameters:\n - * xy - {<OpenLayers.Pixel>}\n - */\n - startBox: function (xy) {\n - this.callback("start", []);\n - this.zoomBox = OpenLayers.Util.createDiv(\'zoomBox\', {\n - x: -9999, y: -9999\n - });\n - this.zoomBox.className = this.boxDivClassName; \n - this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1;\n - \n - this.map.viewPortDiv.appendChild(this.zoomBox);\n - \n - OpenLayers.Element.addClass(\n - this.map.viewPortDiv, "olDrawBox"\n - );\n - },\n -\n - /**\n - * Method: moveBox\n - */\n - moveBox: function (xy) {\n - var startX = this.dragHandler.start.x;\n - var startY = this.dragHandler.start.y;\n - var deltaX = Math.abs(startX - xy.x);\n - var deltaY = Math.abs(startY - xy.y);\n -\n - var offset = this.getBoxOffsets();\n - this.zoomBox.style.width = (deltaX + offset.width + 1) + "px";\n - this.zoomBox.style.height = (deltaY + offset.height + 1) + "px";\n - this.zoomBox.style.left = (xy.x < startX ?\n - startX - deltaX - offset.left : startX - offset.left) + "px";\n - this.zoomBox.style.top = (xy.y < startY ?\n - startY - deltaY - offset.top : startY - offset.top) + "px";\n - },\n -\n - /**\n - * Method: endBox\n - */\n - endBox: function(end) {\n - var result;\n - if (Math.abs(this.dragHandler.start.x - end.x) > 5 || \n - Math.abs(this.dragHandler.start.y - end.y) > 5) { \n - var start = this.dragHandler.start;\n - var top = Math.min(start.y, end.y);\n - var bottom = Math.max(start.y, end.y);\n - var left = Math.min(start.x, end.x);\n - var right = Math.max(start.x, end.x);\n - result = new OpenLayers.Bounds(left, bottom, right, top);\n - } else {\n - result = this.dragHandler.start.clone(); // i.e. OL.Pixel\n - } \n - this.removeBox();\n -\n - this.callback("done", [result]);\n - },\n -\n - /**\n - * Method: removeBox\n - * Remove the zoombox from the screen and nullify our reference to it.\n - */\n - removeBox: function() {\n - this.map.viewPortDiv.removeChild(this.zoomBox);\n - this.zoomBox = null;\n - this.boxOffsets = null;\n - OpenLayers.Element.removeClass(\n - this.map.viewPortDiv, "olDrawBox"\n - );\n -\n - },\n -\n - /**\n - * Method: activate\n - */\n - activate: function () {\n - if (OpenLayers.Handler.prototype.activate.apply(this, arguments)) {\n - this.dragHandler.activate();\n - return true;\n - } else {\n - return false;\n - }\n - },\n -\n - /**\n - * Method: deactivate\n - */\n - deactivate: function () {\n - if (OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {\n - if (this.dragHandler.deactivate()) {\n - if (this.zoomBox) {\n - this.removeBox();\n - }\n - }\n - return true;\n - } else {\n - return false;\n - }\n - },\n - \n - /**\n - * Method: getBoxOffsets\n - * Determines border offsets for a box, according to the box model.\n - * \n - * Returns:\n - * {Object} an object with the following offsets:\n - * - left\n - * - right\n - * - top\n - * - bottom\n - * - width\n - * - height\n - */\n - getBoxOffsets: function() {\n - if (!this.boxOffsets) {\n - // Determine the box model. If the testDiv\'s clientWidth is 3, then\n - // the borders are outside and we are dealing with the w3c box\n - // model. Otherwise, the browser uses the traditional box model and\n - // the borders are inside the box bounds, leaving us with a\n - // clientWidth of 1.\n - var testDiv = document.createElement("div");\n - //testDiv.style.visibility = "hidden";\n - testDiv.style.position = "absolute";\n - testDiv.style.border = "1px solid black";\n - testDiv.style.width = "3px";\n - document.body.appendChild(testDiv);\n - var w3cBoxModel = testDiv.clientWidth == 3;\n - document.body.removeChild(testDiv);\n - \n - var left = parseInt(OpenLayers.Element.getStyle(this.zoomBox,\n - "border-left-width"));\n - var right = parseInt(OpenLayers.Element.getStyle(\n - this.zoomBox, "border-right-width"));\n - var top = parseInt(OpenLayers.Element.getStyle(this.zoomBox,\n - "border-top-width"));\n - var bottom = parseInt(OpenLayers.Element.getStyle(\n - this.zoomBox, "border-bottom-width"));\n - this.boxOffsets = {\n - left: left,\n - right: right,\n - top: top,\n - bottom: bottom,\n - width: w3cBoxModel === false ? left + right : 0,\n - height: w3cBoxModel === false ? top + bottom : 0\n - };\n - }\n - return this.boxOffsets;\n - },\n - \n - CLASS_NAME: "OpenLayers.Handler.Box"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7721</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Click.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Click.js.xml deleted file mode 100644 index 9c5c3e056a3c5283663740e5691e84ac7afdb5bb..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Click.js.xml +++ /dev/null @@ -1,574 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.88</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Click.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Handler.js\n - */\n -\n -/**\n - * Class: OpenLayers.Handler.Click\n - * A handler for mouse clicks. The intention of this handler is to give\n - * controls more flexibility with handling clicks. Browsers trigger\n - * click events twice for a double-click. In addition, the mousedown,\n - * mousemove, mouseup sequence fires a click event. With this handler,\n - * controls can decide whether to ignore clicks associated with a double\n - * click. By setting a <pixelTolerance>, controls can also ignore clicks\n - * that include a drag. Create a new instance with the\n - * <OpenLayers.Handler.Click> constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Handler> \n - */\n -OpenLayers.Handler.Click = OpenLayers.Class(OpenLayers.Handler, {\n - /**\n - * APIProperty: delay\n - * {Number} Number of milliseconds between clicks before the event is\n - * considered a double-click.\n - */\n - delay: 300,\n - \n - /**\n - * APIProperty: single\n - * {Boolean} Handle single clicks. Default is true. If false, clicks\n - * will not be reported. If true, single-clicks will be reported.\n - */\n - single: true,\n - \n - /**\n - * APIProperty: double\n - * {Boolean} Handle double-clicks. Default is false.\n - */\n - \'double\': false,\n - \n - /**\n - * APIProperty: pixelTolerance\n - * {Number} Maximum number of pixels between mouseup and mousedown for an\n - * event to be considered a click. Default is 0. If set to an\n - * integer value, clicks with a drag greater than the value will be\n - * ignored. This property can only be set when the handler is\n - * constructed.\n - */\n - pixelTolerance: 0,\n - \n - /**\n - * APIProperty: dblclickTolerance\n - * {Number} Maximum distance in pixels between clicks for a sequence of \n - * events to be considered a double click. Default is 13. If the\n - * distance between two clicks is greater than this value, a double-\n - * click will not be fired.\n - */\n - dblclickTolerance: 13,\n - \n - /**\n - * APIProperty: stopSingle\n - * {Boolean} Stop other listeners from being notified of clicks. Default\n - * is false. If true, any listeners registered before this one for \n - * click or rightclick events will not be notified.\n - */\n - stopSingle: false,\n - \n - /**\n - * APIProperty: stopDouble\n - * {Boolean} Stop other listeners from being notified of double-clicks.\n - * Default is false. If true, any click listeners registered before\n - * this one will not be notified of *any* double-click events.\n - * \n - * The one caveat with stopDouble is that given a map with two click\n - * handlers, one with stopDouble true and the other with stopSingle\n - * true, the stopSingle handler should be activated last to get\n - * uniform cross-browser performance. Since IE triggers one click\n - * with a dblclick and FF triggers two, if a stopSingle handler is\n - * activated first, all it gets in IE is a single click when the\n - * second handler stops propagation on the dblclick.\n - */\n - stopDouble: false,\n -\n - /**\n - * Property: timerId\n - * {Number} The id of the timeout waiting to clear the <delayedCall>.\n - */\n - timerId: null,\n -\n - /**\n - * Property: touch\n - * {Boolean} When a touchstart event is fired, touch will be true and all\n - * mouse related listeners will do nothing.\n - */\n - touch: false,\n - \n - /**\n - * Property: down\n - * {Object} Object that store relevant information about the last\n - * mousedown or touchstart. Its \'xy\' OpenLayers.Pixel property gives\n - * the average location of the mouse/touch event. Its \'touches\'\n - * property records clientX/clientY of each touches.\n - */\n - down: null,\n -\n - /**\n - * Property: last\n - * {Object} Object that store relevant information about the last\n - * mousemove or touchmove. Its \'xy\' OpenLayers.Pixel property gives\n - * the average location of the mouse/touch event. Its \'touches\'\n - * property records clientX/clientY of each touches.\n - */\n - last: null,\n -\n - /** \n - * Property: first\n - * {Object} When waiting for double clicks, this object will store \n - * information about the first click in a two click sequence.\n - */\n - first: null,\n -\n - /**\n - * Property: rightclickTimerId\n - * {Number} The id of the right mouse timeout waiting to clear the \n - * <delayedEvent>.\n - */\n - rightclickTimerId: null,\n - \n - /**\n - * Constructor: OpenLayers.Handler.Click\n - * Create a new click handler.\n - * \n - * Parameters:\n - * control - {<OpenLayers.Control>} The control that is making use of\n - * this handler. If a handler is being used without a control, the\n - * handler\'s setMap method must be overridden to deal properly with\n - * the map.\n - * callbacks - {Object} An object with keys corresponding to callbacks\n - * that will be called by the handler. The callbacks should\n - * expect to recieve a single argument, the click event.\n - * Callbacks for \'click\' and \'dblclick\' are supported.\n - * options - {Object} Optional object whose properties will be set on the\n - * handler.\n - */\n - \n - /**\n - * Method: touchstart\n - * Handle touchstart.\n - *\n - * Returns:\n - * {Boolean} Continue propagating this event.\n - */\n - touchstart: function(evt) {\n - if (!this.touch) {\n - this.unregisterMouseListeners();\n - this.touch = true;\n - }\n - this.down = this.getEventInfo(evt);\n - this.last = this.getEventInfo(evt);\n - return true;\n - },\n - \n - /**\n - * Method: touchmove\n - * Store position of last move, because touchend event can have\n - * an empty "touches" property.\n - *\n - * Returns:\n - * {Boolean} Continue propagating this event.\n - */\n - touchmove: function(evt) {\n - this.last = this.getEventInfo(evt);\n - return true;\n - },\n -\n - /**\n - * Method: touchend\n - * Correctly set event xy property, and add lastTouches to have\n - * touches property from last touchstart or touchmove\n - *\n - * Returns:\n - * {Boolean} Continue propagating this event.\n - */\n - touchend: function(evt) {\n - // touchstart may not have been allowed to propagate\n - if (this.down) {\n - evt.xy = this.last.xy;\n - evt.lastTouches = this.last.touches;\n - this.handleSingle(evt);\n - this.down = null;\n - }\n - return true;\n - },\n - \n - /**\n - * Method: unregisterMouseListeners\n - * In a touch environment, we don\'t want to handle mouse events.\n - */\n - unregisterMouseListeners: function() {\n - this.map.events.un({\n - mousedown: this.mousedown,\n - mouseup: this.mouseup,\n - click: this.click,\n - dblclick: this.dblclick,\n - scope: this\n - });\n - },\n -\n - /**\n - * Method: mousedown\n - * Handle mousedown.\n - *\n - * Returns:\n - * {Boolean} Continue propagating this event.\n - */\n - mousedown: function(evt) {\n - this.down = this.getEventInfo(evt);\n - this.last = this.getEventInfo(evt);\n - return true;\n - },\n -\n - /**\n - * Method: mouseup\n - * Handle mouseup. Installed to support collection of right mouse events.\n - * \n - * Returns:\n - * {Boolean} Continue propagating this event.\n - */\n - mouseup: function (evt) {\n - var propagate = true;\n -\n - // Collect right mouse clicks from the mouseup\n - // IE - ignores the second right click in mousedown so using\n - // mouseup instead\n - if (this.checkModifiers(evt) && this.control.handleRightClicks &&\n - OpenLayers.Event.isRightClick(evt)) {\n - propagate = this.rightclick(evt);\n - }\n -\n - return propagate;\n - },\n - \n - /**\n - * Method: rightclick\n - * Handle rightclick. For a dblrightclick, we get two clicks so we need \n - * to always register for dblrightclick to properly handle single \n - * clicks.\n - * \n - * Returns:\n - * {Boolean} Continue propagating this event.\n - */\n - rightclick: function(evt) {\n - if(this.passesTolerance(evt)) {\n - if(this.rightclickTimerId != null) {\n - //Second click received before timeout this must be \n - // a double click\n - this.clearTimer();\n - this.callback(\'dblrightclick\', [evt]);\n - return !this.stopDouble;\n - } else { \n - //Set the rightclickTimerId, send evt only if double is \n - // true else trigger single\n - var clickEvent = this[\'double\'] ?\n - OpenLayers.Util.extend({}, evt) : \n - this.callback(\'rightclick\', [evt]);\n -\n - var delayedRightCall = OpenLayers.Function.bind(\n - this.delayedRightCall, \n - this, \n - clickEvent\n - );\n - this.rightclickTimerId = window.setTimeout(\n - delayedRightCall, this.delay\n - );\n - } \n - }\n - return !this.stopSingle;\n - },\n - \n - /**\n - * Method: delayedRightCall\n - * Sets <rightclickTimerId> to null. And optionally triggers the \n - * rightclick callback if evt is set.\n - */\n - delayedRightCall: function(evt) {\n - this.rightclickTimerId = null;\n - if (evt) {\n - this.callback(\'rightclick\', [evt]);\n - }\n - },\n - \n - /**\n - * Method: click\n - * Handle click events from the browser. This is registered as a listener\n - * for click events and should not be called from other events in this\n - * handler.\n - *\n - * Returns:\n - * {Boolean} Continue propagating this event.\n - */\n - click: function(evt) {\n - if (!this.last) {\n - this.last = this.getEventInfo(evt);\n - }\n - this.handleSingle(evt);\n - return !this.stopSingle;\n - },\n -\n - /**\n - * Method: dblclick\n - * Handle dblclick. For a dblclick, we get two clicks in some browsers\n - * (FF) and one in others (IE). So we need to always register for\n - * dblclick to properly handle single clicks. This method is registered\n - * as a listener for the dblclick browser event. It should *not* be\n - * called by other methods in this handler.\n - * \n - * Returns:\n - * {Boolean} Continue propagating this event.\n - */\n - dblclick: function(evt) {\n - this.handleDouble(evt);\n - return !this.stopDouble;\n - },\n - \n - /** \n - * Method: handleDouble\n - * Handle double-click sequence.\n - */\n - handleDouble: function(evt) {\n - if (this.passesDblclickTolerance(evt)) {\n - if (this["double"]) {\n - this.callback("dblclick", [evt]);\n - }\n - // to prevent a dblclick from firing the click callback in IE\n - this.clearTimer();\n - }\n - },\n - \n - /** \n - * Method: handleSingle\n - * Handle single click sequence.\n - */\n - handleSingle: function(evt) {\n - if (this.passesTolerance(evt)) {\n - if (this.timerId != null) {\n - // already received a click\n - if (this.last.touches && this.last.touches.length === 1) {\n - // touch device, no dblclick event - this may be a double\n - if (this["double"]) {\n - // on Android don\'t let the browser zoom on the page\n - OpenLayers.Event.stop(evt);\n - }\n - this.handleDouble(evt);\n - }\n - // if we\'re not in a touch environment we clear the click timer\n - // if we\'ve got a second touch, we\'ll get two touchend events\n - if (!this.last.touches || this.last.touches.length !== 2) {\n - this.clearTimer();\n - }\n - } else {\n - // remember the first click info so we can compare to the second\n - this.first = this.getEventInfo(evt);\n - // set the timer, send evt only if single is true\n - //use a clone of the event object because it will no longer \n - //be a valid event object in IE in the timer callback\n - var clickEvent = this.single ?\n - OpenLayers.Util.extend({}, evt) : null;\n - this.queuePotentialClick(clickEvent);\n - }\n - }\n - },\n - \n - /** \n - * Method: queuePotentialClick\n - * This method is separated out largely to make testing easier (so we\n - * don\'t have to override window.setTimeout)\n - */\n - queuePotentialClick: function(evt) {\n - this.timerId = window.setTimeout(\n - OpenLayers.Function.bind(this.delayedCall, this, evt),\n - this.delay\n - );\n - },\n -\n - /**\n - * Method: passesTolerance\n - * Determine whether the event is within the optional pixel tolerance. Note\n - * that the pixel tolerance check only works if mousedown events get to\n - * the listeners registered here. If they are stopped by other elements,\n - * the <pixelTolerance> will have no effect here (this method will always\n - * return true).\n - *\n - * Returns:\n - * {Boolean} The click is within the pixel tolerance (if specified).\n - */\n - passesTolerance: function(evt) {\n - var passes = true;\n - if (this.pixelTolerance != null && this.down && this.down.xy) {\n - passes = this.pixelTolerance >= this.down.xy.distanceTo(evt.xy);\n - // for touch environments, we also enforce that all touches\n - // start and end within the given tolerance to be considered a click\n - if (passes && this.touch && \n - this.down.touches.length === this.last.touches.length) {\n - // the touchend event doesn\'t come with touches, so we check\n - // down and last\n - for (var i=0, ii=this.down.touches.length; i<ii; ++i) {\n - if (this.getTouchDistance(\n - this.down.touches[i], \n - this.last.touches[i]\n - ) > this.pixelTolerance) {\n - passes = false;\n - break;\n - }\n - }\n - }\n - }\n - return passes;\n - },\n - \n - /** \n - * Method: getTouchDistance\n - *\n - * Returns:\n - * {Boolean} The pixel displacement between two touches.\n - */\n - getTouchDistance: function(from, to) {\n - return Math.sqrt(\n - Math.pow(from.clientX - to.clientX, 2) +\n - Math.pow(from.clientY - to.clientY, 2)\n - );\n - },\n - \n - /**\n - * Method: passesDblclickTolerance\n - * Determine whether the event is within the optional double-cick pixel \n - * tolerance.\n - *\n - * Returns:\n - * {Boolean} The click is within the double-click pixel tolerance.\n - */\n - passesDblclickTolerance: function(evt) {\n - var passes = true;\n - if (this.down && this.first) {\n - passes = this.down.xy.distanceTo(this.first.xy) <= this.dblclickTolerance;\n - }\n - return passes;\n - },\n -\n - /**\n - * Method: clearTimer\n - * Clear the timer and set <timerId> to null.\n - */\n - clearTimer: function() {\n - if (this.timerId != null) {\n - window.clearTimeout(this.timerId);\n - this.timerId = null;\n - }\n - if (this.rightclickTimerId != null) {\n - window.clearTimeout(this.rightclickTimerId);\n - this.rightclickTimerId = null;\n - }\n - },\n - \n - /**\n - * Method: delayedCall\n - * Sets <timerId> to null. And optionally triggers the click callback if\n - * evt is set.\n - */\n - delayedCall: function(evt) {\n - this.timerId = null;\n - if (evt) {\n - this.callback("click", [evt]);\n - }\n - },\n -\n - /**\n - * Method: getEventInfo\n - * This method allows us to store event information without storing the\n - * actual event. In touch devices (at least), the same event is \n - * modified between touchstart, touchmove, and touchend.\n - *\n - * Returns:\n - * {Object} An object with event related info.\n - */\n - getEventInfo: function(evt) {\n - var touches;\n - if (evt.touches) {\n - var len = evt.touches.length;\n - touches = new Array(len);\n - var touch;\n - for (var i=0; i<len; i++) {\n - touch = evt.touches[i];\n - touches[i] = {\n - clientX: touch.clientX,\n - clientY: touch.clientY\n - };\n - }\n - }\n - return {\n - xy: evt.xy,\n - touches: touches\n - };\n - },\n -\n - /**\n - * APIMethod: deactivate\n - * Deactivate the handler.\n - *\n - * Returns:\n - * {Boolean} The handler was successfully deactivated.\n - */\n - deactivate: function() {\n - var deactivated = false;\n - if(OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {\n - this.clearTimer();\n - this.down = null;\n - this.first = null;\n - this.last = null;\n - this.touch = false;\n - deactivated = true;\n - }\n - return deactivated;\n - },\n -\n - CLASS_NAME: "OpenLayers.Handler.Click"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>17540</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Drag.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Drag.js.xml deleted file mode 100644 index 5ec4ff08b533deb24aec6dda8c2a388c231f810e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Drag.js.xml +++ /dev/null @@ -1,608 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.89</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Drag.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Handler.js\n - */\n -\n -/**\n - * Class: OpenLayers.Handler.Drag\n - * The drag handler is used to deal with sequences of browser events related\n - * to dragging. The handler is used by controls that want to know when\n - * a drag sequence begins, when a drag is happening, and when it has\n - * finished.\n - *\n - * Controls that use the drag handler typically construct it with callbacks\n - * for \'down\', \'move\', and \'done\'. Callbacks for these keys are called\n - * when the drag begins, with each move, and when the drag is done. In\n - * addition, controls can have callbacks keyed to \'up\' and \'out\' if they\n - * care to differentiate between the types of events that correspond with\n - * the end of a drag sequence. If no drag actually occurs (no mouse move)\n - * the \'down\' and \'up\' callbacks will be called, but not the \'done\'\n - * callback.\n - *\n - * Create a new drag handler with the <OpenLayers.Handler.Drag> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Handler>\n - */\n -OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, {\n - \n - /** \n - * Property: started\n - * {Boolean} When a mousedown or touchstart event is received, we want to\n - * record it, but not set \'dragging\' until the mouse moves after starting.\n - */\n - started: false,\n -\n - /**\n - * Property: stopDown\n - * {Boolean} Stop propagation of mousedown events from getting to listeners\n - * on the same element. Default is true.\n - */\n - stopDown: true,\n -\n - /** \n - * Property: dragging \n - * {Boolean} \n - */\n - dragging: false,\n -\n - /**\n - * Property: touch\n - * {Boolean} When a touchstart event is fired, touch will be true and all\n - * mouse related listeners will do nothing.\n - */\n - touch: false,\n -\n - /** \n - * Property: last\n - * {<OpenLayers.Pixel>} The last pixel location of the drag.\n - */\n - last: null,\n -\n - /** \n - * Property: start\n - * {<OpenLayers.Pixel>} The first pixel location of the drag.\n - */\n - start: null,\n -\n - /**\n - * Property: lastMoveEvt\n - * {Object} The last mousemove event that occurred. Used to\n - * position the map correctly when our "delay drag"\n - * timeout expired.\n - */\n - lastMoveEvt: null,\n -\n - /**\n - * Property: oldOnselectstart\n - * {Function}\n - */\n - oldOnselectstart: null,\n - \n - /**\n - * Property: interval\n - * {Integer} In order to increase performance, an interval (in \n - * milliseconds) can be set to reduce the number of drag events \n - * called. If set, a new drag event will not be set until the \n - * interval has passed. \n - * Defaults to 0, meaning no interval. \n - */\n - interval: 0,\n - \n - /**\n - * Property: timeoutId\n - * {String} The id of the timeout used for the mousedown interval.\n - * This is "private", and should be left alone.\n - */\n - timeoutId: null,\n - \n - /**\n - * APIProperty: documentDrag\n - * {Boolean} If set to true, the handler will also handle mouse moves when\n - * the cursor has moved out of the map viewport. Default is false.\n - */\n - documentDrag: false,\n - \n - /**\n - * Property: documentEvents\n - * {Boolean} Are we currently observing document events?\n - */\n - documentEvents: null,\n -\n - /**\n - * Constructor: OpenLayers.Handler.Drag\n - * Returns OpenLayers.Handler.Drag\n - * \n - * Parameters:\n - * control - {<OpenLayers.Control>} The control that is making use of\n - * this handler. If a handler is being used without a control, the\n - * handlers setMap method must be overridden to deal properly with\n - * the map.\n - * callbacks - {Object} An object containing a single function to be\n - * called when the drag operation is finished. The callback should\n - * expect to recieve a single argument, the pixel location of the event.\n - * Callbacks for \'move\' and \'done\' are supported. You can also speficy\n - * callbacks for \'down\', \'up\', and \'out\' to respond to those events.\n - * options - {Object} \n - */\n - initialize: function(control, callbacks, options) {\n - OpenLayers.Handler.prototype.initialize.apply(this, arguments);\n - \n - if (this.documentDrag === true) {\n - var me = this;\n - this._docMove = function(evt) {\n - me.mousemove({\n - xy: {x: evt.clientX, y: evt.clientY},\n - element: document\n - });\n - };\n - this._docUp = function(evt) {\n - me.mouseup({xy: {x: evt.clientX, y: evt.clientY}});\n - };\n - }\n - },\n -\n - \n - /**\n - * Method: dragstart\n - * This private method is factorized from mousedown and touchstart methods\n - *\n - * Parameters:\n - * evt - {Event} The event\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - dragstart: function (evt) {\n - var propagate = true;\n - this.dragging = false;\n - if (this.checkModifiers(evt) &&\n - (OpenLayers.Event.isLeftClick(evt) ||\n - OpenLayers.Event.isSingleTouch(evt))) {\n - this.started = true;\n - this.start = evt.xy;\n - this.last = evt.xy;\n - OpenLayers.Element.addClass(\n - this.map.viewPortDiv, "olDragDown"\n - );\n - this.down(evt);\n - this.callback("down", [evt.xy]);\n -\n - OpenLayers.Event.stop(evt);\n -\n - if(!this.oldOnselectstart) {\n - this.oldOnselectstart = document.onselectstart ?\n - document.onselectstart : OpenLayers.Function.True;\n - }\n - document.onselectstart = OpenLayers.Function.False;\n -\n - propagate = !this.stopDown;\n - } else {\n - this.started = false;\n - this.start = null;\n - this.last = null;\n - }\n - return propagate;\n - },\n -\n - /**\n - * Method: dragmove\n - * This private method is factorized from mousemove and touchmove methods\n - *\n - * Parameters:\n - * evt - {Event} The event\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - dragmove: function (evt) {\n - this.lastMoveEvt = evt;\n - if (this.started && !this.timeoutId && (evt.xy.x != this.last.x ||\n - evt.xy.y != this.last.y)) {\n - if(this.documentDrag === true && this.documentEvents) {\n - if(evt.element === document) {\n - this.adjustXY(evt);\n - // do setEvent manually because the documentEvents are not\n - // registered with the map\n - this.setEvent(evt);\n - } else {\n - this.removeDocumentEvents();\n - }\n - }\n - if (this.interval > 0) {\n - this.timeoutId = setTimeout(\n - OpenLayers.Function.bind(this.removeTimeout, this),\n - this.interval);\n - }\n - this.dragging = true;\n -\n - this.move(evt);\n - this.callback("move", [evt.xy]);\n - if(!this.oldOnselectstart) {\n - this.oldOnselectstart = document.onselectstart;\n - document.onselectstart = OpenLayers.Function.False;\n - }\n - this.last = evt.xy;\n - }\n - return true;\n - },\n -\n - /**\n - * Method: dragend\n - * This private method is factorized from mouseup and touchend methods\n - *\n - * Parameters:\n - * evt - {Event} The event\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - dragend: function (evt) {\n - if (this.started) {\n - if(this.documentDrag === true && this.documentEvents) {\n - this.adjustXY(evt);\n - this.removeDocumentEvents();\n - }\n - var dragged = (this.start != this.last);\n - this.started = false;\n - this.dragging = false;\n - OpenLayers.Element.removeClass(\n - this.map.viewPortDiv, "olDragDown"\n - );\n - this.up(evt);\n - this.callback("up", [evt.xy]);\n - if(dragged) {\n - this.callback("done", [evt.xy]);\n - }\n - document.onselectstart = this.oldOnselectstart;\n - }\n - return true;\n - },\n -\n - /**\n - * The four methods below (down, move, up, and out) are used by subclasses\n - * to do their own processing related to these mouse events.\n - */\n -\n - /**\n - * Method: down\n - * This method is called during the handling of the mouse down event.\n - * Subclasses can do their own processing here.\n - *\n - * Parameters:\n - * evt - {Event} The mouse down event\n - */\n - down: function(evt) {\n - },\n -\n - /**\n - * Method: move\n - * This method is called during the handling of the mouse move event.\n - * Subclasses can do their own processing here.\n - *\n - * Parameters:\n - * evt - {Event} The mouse move event\n - *\n - */\n - move: function(evt) {\n - },\n -\n - /**\n - * Method: up\n - * This method is called during the handling of the mouse up event.\n - * Subclasses can do their own processing here.\n - *\n - * Parameters:\n - * evt - {Event} The mouse up event\n - */\n - up: function(evt) {\n - },\n -\n - /**\n - * Method: out\n - * This method is called during the handling of the mouse out event.\n - * Subclasses can do their own processing here.\n - *\n - * Parameters:\n - * evt - {Event} The mouse out event\n - */\n - out: function(evt) {\n - },\n -\n - /**\n - * The methods below are part of the magic of event handling. Because\n - * they are named like browser events, they are registered as listeners\n - * for the events they represent.\n - */\n -\n - /**\n - * Method: mousedown\n - * Handle mousedown events\n - *\n - * Parameters:\n - * evt - {Event}\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - mousedown: function(evt) {\n - return this.dragstart(evt);\n - },\n -\n - /**\n - * Method: touchstart\n - * Handle touchstart events\n - *\n - * Parameters:\n - * evt - {Event}\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - touchstart: function(evt) {\n - if (!this.touch) {\n - this.touch = true;\n - // unregister mouse listeners\n - this.map.events.un({\n - mousedown: this.mousedown,\n - mouseup: this.mouseup,\n - mousemove: this.mousemove,\n - click: this.click,\n - scope: this\n - });\n - }\n - return this.dragstart(evt);\n - },\n -\n - /**\n - * Method: mousemove\n - * Handle mousemove events\n - *\n - * Parameters:\n - * evt - {Event}\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - mousemove: function(evt) {\n - return this.dragmove(evt);\n - },\n -\n - /**\n - * Method: touchmove\n - * Handle touchmove events\n - *\n - * Parameters:\n - * evt - {Event}\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - touchmove: function(evt) {\n - return this.dragmove(evt);\n - },\n -\n - /**\n - * Method: removeTimeout\n - * Private. Called by mousemove() to remove the drag timeout.\n - */\n - removeTimeout: function() {\n - this.timeoutId = null;\n - // if timeout expires while we\'re still dragging (mouseup\n - // hasn\'t occurred) then call mousemove to move to the\n - // correct position\n - if(this.dragging) {\n - this.mousemove(this.lastMoveEvt);\n - }\n - },\n -\n - /**\n - * Method: mouseup\n - * Handle mouseup events\n - *\n - * Parameters:\n - * evt - {Event}\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - mouseup: function(evt) {\n - return this.dragend(evt);\n - },\n -\n - /**\n - * Method: touchend\n - * Handle touchend events\n - *\n - * Parameters:\n - * evt - {Event}\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - touchend: function(evt) {\n - // override evt.xy with last position since touchend does not have\n - // any touch position\n - evt.xy = this.last;\n - return this.dragend(evt);\n - },\n -\n - /**\n - * Method: mouseout\n - * Handle mouseout events\n - *\n - * Parameters:\n - * evt - {Event}\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - mouseout: function (evt) {\n - if (this.started && OpenLayers.Util.mouseLeft(evt, this.map.viewPortDiv)) {\n - if(this.documentDrag === true) {\n - this.addDocumentEvents();\n - } else {\n - var dragged = (this.start != this.last);\n - this.started = false; \n - this.dragging = false;\n - OpenLayers.Element.removeClass(\n - this.map.viewPortDiv, "olDragDown"\n - );\n - this.out(evt);\n - this.callback("out", []);\n - if(dragged) {\n - this.callback("done", [evt.xy]);\n - }\n - if(document.onselectstart) {\n - document.onselectstart = this.oldOnselectstart;\n - }\n - }\n - }\n - return true;\n - },\n -\n - /**\n - * Method: click\n - * The drag handler captures the click event. If something else registers\n - * for clicks on the same element, its listener will not be called \n - * after a drag.\n - * \n - * Parameters: \n - * evt - {Event} \n - * \n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - click: function (evt) {\n - // let the click event propagate only if the mouse moved\n - return (this.start == this.last);\n - },\n -\n - /**\n - * Method: activate\n - * Activate the handler.\n - * \n - * Returns:\n - * {Boolean} The handler was successfully activated.\n - */\n - activate: function() {\n - var activated = false;\n - if(OpenLayers.Handler.prototype.activate.apply(this, arguments)) {\n - this.dragging = false;\n - activated = true;\n - }\n - return activated;\n - },\n -\n - /**\n - * Method: deactivate \n - * Deactivate the handler.\n - * \n - * Returns:\n - * {Boolean} The handler was successfully deactivated.\n - */\n - deactivate: function() {\n - var deactivated = false;\n - if(OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {\n - this.touch = false;\n - this.started = false;\n - this.dragging = false;\n - this.start = null;\n - this.last = null;\n - deactivated = true;\n - OpenLayers.Element.removeClass(\n - this.map.viewPortDiv, "olDragDown"\n - );\n - }\n - return deactivated;\n - },\n - \n - /**\n - * Method: adjustXY\n - * Converts event coordinates that are relative to the document body to\n - * ones that are relative to the map viewport. The latter is the default in\n - * OpenLayers.\n - * \n - * Parameters:\n - * evt - {Object}\n - */\n - adjustXY: function(evt) {\n - var pos = OpenLayers.Util.pagePosition(this.map.viewPortDiv);\n - evt.xy.x -= pos[0];\n - evt.xy.y -= pos[1];\n - },\n - \n - /**\n - * Method: addDocumentEvents\n - * Start observing document events when documentDrag is true and the mouse\n - * cursor leaves the map viewport while dragging.\n - */\n - addDocumentEvents: function() {\n - OpenLayers.Element.addClass(document.body, "olDragDown");\n - this.documentEvents = true;\n - OpenLayers.Event.observe(document, "mousemove", this._docMove);\n - OpenLayers.Event.observe(document, "mouseup", this._docUp);\n - },\n - \n - /**\n - * Method: removeDocumentEvents\n - * Stops observing document events when documentDrag is true and the mouse\n - * cursor re-enters the map viewport while dragging.\n - */\n - removeDocumentEvents: function() {\n - OpenLayers.Element.removeClass(document.body, "olDragDown");\n - this.documentEvents = false;\n - OpenLayers.Event.stopObserving(document, "mousemove", this._docMove);\n - OpenLayers.Event.stopObserving(document, "mouseup", this._docUp);\n - },\n -\n - CLASS_NAME: "OpenLayers.Handler.Drag"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>16375</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Feature.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Feature.js.xml deleted file mode 100644 index 1a69bd9d7a80dbafa616601ae54f883ec79a6b74..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Feature.js.xml +++ /dev/null @@ -1,493 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.89</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Feature.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Handler.js\n - */\n -\n -/**\n - * Class: OpenLayers.Handler.Feature \n - * Handler to respond to mouse events related to a drawn feature. Callbacks\n - * with the following keys will be notified of the following events\n - * associated with features: click, clickout, over, out, and dblclick.\n - *\n - * This handler stops event propagation for mousedown and mouseup if those\n - * browser events target features that can be selected.\n - *\n - * Inherits from:\n - * - <OpenLayers.Handler>\n - */\n -OpenLayers.Handler.Feature = OpenLayers.Class(OpenLayers.Handler, {\n -\n - /**\n - * Property: EVENTMAP\n - * {Object} A object mapping the browser events to objects with callback\n - * keys for in and out.\n - */\n - EVENTMAP: {\n - \'click\': {\'in\': \'click\', \'out\': \'clickout\'},\n - \'mousemove\': {\'in\': \'over\', \'out\': \'out\'},\n - \'dblclick\': {\'in\': \'dblclick\', \'out\': null},\n - \'mousedown\': {\'in\': null, \'out\': null},\n - \'mouseup\': {\'in\': null, \'out\': null},\n - \'touchstart\': {\'in\': \'click\', \'out\': \'clickout\'}\n - },\n -\n - /**\n - * Property: feature\n - * {<OpenLayers.Feature.Vector>} The last feature that was hovered.\n - */\n - feature: null,\n -\n - /**\n - * Property: lastFeature\n - * {<OpenLayers.Feature.Vector>} The last feature that was handled.\n - */\n - lastFeature: null,\n -\n - /**\n - * Property: down\n - * {<OpenLayers.Pixel>} The location of the last mousedown.\n - */\n - down: null,\n -\n - /**\n - * Property: up\n - * {<OpenLayers.Pixel>} The location of the last mouseup.\n - */\n - up: null,\n -\n - /**\n - * Property: touch\n - * {Boolean} When a touchstart event is fired, touch will be true and all\n - * mouse related listeners will do nothing.\n - */\n - touch: false,\n - \n - /**\n - * Property: clickTolerance\n - * {Number} The number of pixels the mouse can move between mousedown\n - * and mouseup for the event to still be considered a click.\n - * Dragging the map should not trigger the click and clickout callbacks\n - * unless the map is moved by less than this tolerance. Defaults to 4.\n - */\n - clickTolerance: 4,\n -\n - /**\n - * Property: geometryTypes\n - * To restrict dragging to a limited set of geometry types, send a list\n - * of strings corresponding to the geometry class names.\n - * \n - * @type Array(String)\n - */\n - geometryTypes: null,\n -\n - /**\n - * Property: stopClick\n - * {Boolean} If stopClick is set to true, handled clicks do not\n - * propagate to other click listeners. Otherwise, handled clicks\n - * do propagate. Unhandled clicks always propagate, whatever the\n - * value of stopClick. Defaults to true.\n - */\n - stopClick: true,\n -\n - /**\n - * Property: stopDown\n - * {Boolean} If stopDown is set to true, handled mousedowns do not\n - * propagate to other mousedown listeners. Otherwise, handled\n - * mousedowns do propagate. Unhandled mousedowns always propagate,\n - * whatever the value of stopDown. Defaults to true.\n - */\n - stopDown: true,\n -\n - /**\n - * Property: stopUp\n - * {Boolean} If stopUp is set to true, handled mouseups do not\n - * propagate to other mouseup listeners. Otherwise, handled mouseups\n - * do propagate. Unhandled mouseups always propagate, whatever the\n - * value of stopUp. Defaults to false.\n - */\n - stopUp: false,\n - \n - /**\n - * Constructor: OpenLayers.Handler.Feature\n - *\n - * Parameters:\n - * control - {<OpenLayers.Control>} \n - * layer - {<OpenLayers.Layer.Vector>}\n - * callbacks - {Object} An object with a \'over\' property whos value is\n - * a function to be called when the mouse is over a feature. The \n - * callback should expect to recieve a single argument, the feature.\n - * options - {Object} \n - */\n - initialize: function(control, layer, callbacks, options) {\n - OpenLayers.Handler.prototype.initialize.apply(this, [control, callbacks, options]);\n - this.layer = layer;\n - },\n -\n - /**\n - * Method: touchstart\n - * Handle touchstart events\n - *\n - * Parameters:\n - * evt - {Event}\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - touchstart: function(evt) {\n - if(!this.touch) {\n - this.touch = true;\n - this.map.events.un({\n - mousedown: this.mousedown,\n - mouseup: this.mouseup,\n - mousemove: this.mousemove,\n - click: this.click,\n - dblclick: this.dblclick,\n - scope: this\n - });\n - }\n - return OpenLayers.Event.isMultiTouch(evt) ?\n - true : this.mousedown(evt);\n - },\n -\n - /**\n - * Method: touchmove\n - * Handle touchmove events. We just prevent the browser default behavior,\n - * for Android Webkit not to select text when moving the finger after\n - * selecting a feature.\n - *\n - * Parameters:\n - * evt - {Event}\n - */\n - touchmove: function(evt) {\n - OpenLayers.Event.stop(evt);\n - },\n -\n - /**\n - * Method: mousedown\n - * Handle mouse down. Stop propagation if a feature is targeted by this\n - * event (stops map dragging during feature selection).\n - * \n - * Parameters:\n - * evt - {Event} \n - */\n - mousedown: function(evt) {\n - // Feature selection is only done with a left click. Other handlers may stop the\n - // propagation of left-click mousedown events but not right-click mousedown events.\n - // This mismatch causes problems when comparing the location of the down and up\n - // events in the click function so it is important ignore right-clicks.\n - if (OpenLayers.Event.isLeftClick(evt) || OpenLayers.Event.isSingleTouch(evt)) {\n - this.down = evt.xy;\n - }\n - return this.handle(evt) ? !this.stopDown : true;\n - },\n - \n - /**\n - * Method: mouseup\n - * Handle mouse up. Stop propagation if a feature is targeted by this\n - * event.\n - * \n - * Parameters:\n - * evt - {Event} \n - */\n - mouseup: function(evt) {\n - this.up = evt.xy;\n - return this.handle(evt) ? !this.stopUp : true;\n - },\n -\n - /**\n - * Method: click\n - * Handle click. Call the "click" callback if click on a feature,\n - * or the "clickout" callback if click outside any feature.\n - * \n - * Parameters:\n - * evt - {Event} \n - *\n - * Returns:\n - * {Boolean}\n - */\n - click: function(evt) {\n - return this.handle(evt) ? !this.stopClick : true;\n - },\n - \n - /**\n - * Method: mousemove\n - * Handle mouse moves. Call the "over" callback if moving in to a feature,\n - * or the "out" callback if moving out of a feature.\n - * \n - * Parameters:\n - * evt - {Event} \n - *\n - * Returns:\n - * {Boolean}\n - */\n - mousemove: function(evt) {\n - if (!this.callbacks[\'over\'] && !this.callbacks[\'out\']) {\n - return true;\n - } \n - this.handle(evt);\n - return true;\n - },\n - \n - /**\n - * Method: dblclick\n - * Handle dblclick. Call the "dblclick" callback if dblclick on a feature.\n - *\n - * Parameters:\n - * evt - {Event} \n - *\n - * Returns:\n - * {Boolean}\n - */\n - dblclick: function(evt) {\n - return !this.handle(evt);\n - },\n -\n - /**\n - * Method: geometryTypeMatches\n - * Return true if the geometry type of the passed feature matches\n - * one of the geometry types in the geometryTypes array.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Vector.Feature>}\n - *\n - * Returns:\n - * {Boolean}\n - */\n - geometryTypeMatches: function(feature) {\n - return this.geometryTypes == null ||\n - OpenLayers.Util.indexOf(this.geometryTypes,\n - feature.geometry.CLASS_NAME) > -1;\n - },\n -\n - /**\n - * Method: handle\n - *\n - * Parameters:\n - * evt - {Event}\n - *\n - * Returns:\n - * {Boolean} The event occurred over a relevant feature.\n - */\n - handle: function(evt) {\n - if(this.feature && !this.feature.layer) {\n - // feature has been destroyed\n - this.feature = null;\n - }\n - var type = evt.type;\n - var handled = false;\n - var previouslyIn = !!(this.feature); // previously in a feature\n - var click = (type == "click" || type == "dblclick" || type == "touchstart");\n - this.feature = this.layer.getFeatureFromEvent(evt);\n - if(this.feature && !this.feature.layer) {\n - // feature has been destroyed\n - this.feature = null;\n - }\n - if(this.lastFeature && !this.lastFeature.layer) {\n - // last feature has been destroyed\n - this.lastFeature = null;\n - }\n - if(this.feature) {\n - if(type === "touchstart") {\n - // stop the event to prevent Android Webkit from\n - // "flashing" the map div\n - OpenLayers.Event.stop(evt);\n - }\n - var inNew = (this.feature != this.lastFeature);\n - if(this.geometryTypeMatches(this.feature)) {\n - // in to a feature\n - if(previouslyIn && inNew) {\n - // out of last feature and in to another\n - if(this.lastFeature) {\n - this.triggerCallback(type, \'out\', [this.lastFeature]);\n - }\n - this.triggerCallback(type, \'in\', [this.feature]);\n - } else if(!previouslyIn || click) {\n - // in feature for the first time\n - this.triggerCallback(type, \'in\', [this.feature]);\n - }\n - this.lastFeature = this.feature;\n - handled = true;\n - } else {\n - // not in to a feature\n - if(this.lastFeature && (previouslyIn && inNew || click)) {\n - // out of last feature for the first time\n - this.triggerCallback(type, \'out\', [this.lastFeature]);\n - }\n - // next time the mouse goes in a feature whose geometry type\n - // doesn\'t match we don\'t want to call the \'out\' callback\n - // again, so let\'s set this.feature to null so that\n - // previouslyIn will evaluate to false the next time\n - // we enter handle. Yes, a bit hackish...\n - this.feature = null;\n - }\n - } else {\n - if(this.lastFeature && (previouslyIn || click)) {\n - this.triggerCallback(type, \'out\', [this.lastFeature]);\n - }\n - }\n - return handled;\n - },\n - \n - /**\n - * Method: triggerCallback\n - * Call the callback keyed in the event map with the supplied arguments.\n - * For click and clickout, the <clickTolerance> is checked first.\n - *\n - * Parameters:\n - * type - {String}\n - */\n - triggerCallback: function(type, mode, args) {\n - var key = this.EVENTMAP[type][mode];\n - if(key) {\n - if(type == \'click\' && this.up && this.down) {\n - // for click/clickout, only trigger callback if tolerance is met\n - var dpx = Math.sqrt(\n - Math.pow(this.up.x - this.down.x, 2) +\n - Math.pow(this.up.y - this.down.y, 2)\n - );\n - if(dpx <= this.clickTolerance) {\n - this.callback(key, args);\n - }\n - } else {\n - this.callback(key, args);\n - }\n - }\n - },\n -\n - /**\n - * Method: activate \n - * Turn on the handler. Returns false if the handler was already active.\n - *\n - * Returns:\n - * {Boolean}\n - */\n - activate: function() {\n - var activated = false;\n - if(OpenLayers.Handler.prototype.activate.apply(this, arguments)) {\n - this.moveLayerToTop();\n - this.map.events.on({\n - "removelayer": this.handleMapEvents,\n - "changelayer": this.handleMapEvents,\n - scope: this\n - });\n - activated = true;\n - }\n - return activated;\n - },\n - \n - /**\n - * Method: deactivate \n - * Turn off the handler. Returns false if the handler was already active.\n - *\n - * Returns: \n - * {Boolean}\n - */\n - deactivate: function() {\n - var deactivated = false;\n - if(OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {\n - this.moveLayerBack();\n - this.feature = null;\n - this.lastFeature = null;\n - this.down = null;\n - this.up = null;\n - this.touch = false;\n - this.map.events.un({\n - "removelayer": this.handleMapEvents,\n - "changelayer": this.handleMapEvents,\n - scope: this\n - });\n - deactivated = true;\n - }\n - return deactivated;\n - },\n - \n - /**\n - * Method: handleMapEvents\n - * \n - * Parameters:\n - * evt - {Object}\n - */\n - handleMapEvents: function(evt) {\n - if (evt.type == "removelayer" || evt.property == "order") {\n - this.moveLayerToTop();\n - }\n - },\n - \n - /**\n - * Method: moveLayerToTop\n - * Moves the layer for this handler to the top, so mouse events can reach\n - * it.\n - */\n - moveLayerToTop: function() {\n - var index = Math.max(this.map.Z_INDEX_BASE[\'Feature\'] - 1,\n - this.layer.getZIndex()) + 1;\n - this.layer.setZIndex(index);\n - \n - },\n - \n - /**\n - * Method: moveLayerBack\n - * Moves the layer back to the position determined by the map\'s layers\n - * array.\n - */\n - moveLayerBack: function() {\n - var index = this.layer.getZIndex() - 1;\n - if (index >= this.map.Z_INDEX_BASE[\'Feature\']) {\n - this.layer.setZIndex(index);\n - } else {\n - this.map.setLayerZIndex(this.layer,\n - this.map.getLayerIndex(this.layer));\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Handler.Feature"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>14095</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Hover.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Hover.js.xml deleted file mode 100644 index 7efb744cb8de63fa85099199e3ae477fc5f1b698..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Hover.js.xml +++ /dev/null @@ -1,224 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.89</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Hover.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Handler.js\n - */\n -\n -/**\n - * Class: OpenLayers.Handler.Hover\n - * The hover handler is to be used to emulate mouseovers on objects\n - * on the map that aren\'t DOM elements. For example one can use\n - * this handler to send WMS/GetFeatureInfo requests as the user\n - * moves the mouve over the map.\n - * \n - * Inherits from:\n - * - <OpenLayers.Handler> \n - */\n -OpenLayers.Handler.Hover = OpenLayers.Class(OpenLayers.Handler, {\n -\n - /**\n - * APIProperty: delay\n - * {Integer} - Number of milliseconds between mousemoves before\n - * the event is considered a hover. Default is 500.\n - */\n - delay: 500,\n - \n - /**\n - * APIProperty: pixelTolerance\n - * {Integer} - Maximum number of pixels between mousemoves for\n - * an event to be considered a hover. Default is null.\n - */\n - pixelTolerance: null,\n -\n - /**\n - * APIProperty: stopMove\n - * {Boolean} - Stop other listeners from being notified on mousemoves.\n - * Default is false.\n - */\n - stopMove: false,\n -\n - /**\n - * Property: px\n - * {<OpenLayers.Pixel>} - The location of the last mousemove, expressed\n - * in pixels.\n - */\n - px: null,\n -\n - /**\n - * Property: timerId\n - * {Number} - The id of the timer.\n - */\n - timerId: null,\n - \n - /**\n - * Constructor: OpenLayers.Handler.Hover\n - * Construct a hover handler.\n - *\n - * Parameters:\n - * control - {<OpenLayers.Control>} The control that initialized this\n - * handler. The control is assumed to have a valid map property; that\n - * map is used in the handler\'s own setMap method.\n - * callbacks - {Object} An object with keys corresponding to callbacks\n - * that will be called by the handler. The callbacks should\n - * expect to receive a single argument, the event. Callbacks for\n - * \'move\', the mouse is moving, and \'pause\', the mouse is pausing,\n - * are supported.\n - * options - {Object} An optional object whose properties will be set on\n - * the handler.\n - */\n -\n - /**\n - * Method: mousemove\n - * Called when the mouse moves on the map.\n - *\n - * Parameters:\n - * evt - {<OpenLayers.Event>}\n - *\n - * Returns:\n - * {Boolean} Continue propagating this event.\n - */\n - mousemove: function(evt) {\n - if(this.passesTolerance(evt.xy)) {\n - this.clearTimer();\n - this.callback(\'move\', [evt]);\n - this.px = evt.xy;\n - // clone the evt so original properties can be accessed even\n - // if the browser deletes them during the delay\n - evt = OpenLayers.Util.extend({}, evt);\n - this.timerId = window.setTimeout(\n - OpenLayers.Function.bind(this.delayedCall, this, evt),\n - this.delay\n - );\n - }\n - return !this.stopMove;\n - },\n -\n - /**\n - * Method: mouseout\n - * Called when the mouse goes out of the map.\n - *\n - * Parameters:\n - * evt - {<OpenLayers.Event>}\n - *\n - * Returns:\n - * {Boolean} Continue propagating this event.\n - */\n - mouseout: function(evt) {\n - if (OpenLayers.Util.mouseLeft(evt, this.map.viewPortDiv)) {\n - this.clearTimer();\n - this.callback(\'move\', [evt]);\n - }\n - return true;\n - },\n -\n - /**\n - * Method: passesTolerance\n - * Determine whether the mouse move is within the optional pixel tolerance.\n - *\n - * Parameters:\n - * px - {<OpenLayers.Pixel>}\n - *\n - * Returns:\n - * {Boolean} The mouse move is within the pixel tolerance.\n - */\n - passesTolerance: function(px) {\n - var passes = true;\n - if(this.pixelTolerance && this.px) {\n - var dpx = Math.sqrt(\n - Math.pow(this.px.x - px.x, 2) +\n - Math.pow(this.px.y - px.y, 2)\n - );\n - if(dpx < this.pixelTolerance) {\n - passes = false;\n - }\n - }\n - return passes;\n - },\n -\n - /**\n - * Method: clearTimer\n - * Clear the timer and set <timerId> to null.\n - */\n - clearTimer: function() {\n - if(this.timerId != null) {\n - window.clearTimeout(this.timerId);\n - this.timerId = null;\n - }\n - },\n -\n - /**\n - * Method: delayedCall\n - * Triggers pause callback.\n - *\n - * Parameters:\n - * evt - {<OpenLayers.Event>}\n - */\n - delayedCall: function(evt) {\n - this.callback(\'pause\', [evt]);\n - },\n -\n - /**\n - * APIMethod: deactivate\n - * Deactivate the handler.\n - *\n - * Returns:\n - * {Boolean} The handler was successfully deactivated.\n - */\n - deactivate: function() {\n - var deactivated = false;\n - if(OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {\n - this.clearTimer();\n - deactivated = true;\n - }\n - return deactivated;\n - },\n -\n - CLASS_NAME: "OpenLayers.Handler.Hover"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5076</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Keyboard.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Keyboard.js.xml deleted file mode 100644 index 4910e778fea5e085b8c2cebfbe0047ae9343d83a..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Keyboard.js.xml +++ /dev/null @@ -1,161 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.88</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Keyboard.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Handler.js\n - * @requires OpenLayers/Events.js\n - */\n -\n -/**\n - * Class: OpenLayers.handler.Keyboard\n - * A handler for keyboard events. Create a new instance with the\n - * <OpenLayers.Handler.Keyboard> constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Handler> \n - */\n -OpenLayers.Handler.Keyboard = OpenLayers.Class(OpenLayers.Handler, {\n -\n - /* http://www.quirksmode.org/js/keys.html explains key x-browser\n - key handling quirks in pretty nice detail */\n -\n - /** \n - * Constant: KEY_EVENTS\n - * keydown, keypress, keyup\n - */\n - KEY_EVENTS: ["keydown", "keyup"],\n -\n - /** \n - * Property: eventListener\n - * {Function}\n - */\n - eventListener: null,\n -\n - /**\n - * Property: observeElement\n - * {DOMElement|String} The DOM element on which we listen for\n - * key events. Default to the document.\n - */\n - observeElement: null,\n -\n - /**\n - * Constructor: OpenLayers.Handler.Keyboard\n - * Returns a new keyboard handler.\n - * \n - * Parameters:\n - * control - {<OpenLayers.Control>} The control that is making use of\n - * this handler. If a handler is being used without a control, the\n - * handlers setMap method must be overridden to deal properly with\n - * the map.\n - * callbacks - {Object} An object containing a single function to be\n - * called when the drag operation is finished. The callback should\n - * expect to recieve a single argument, the pixel location of the event.\n - * Callbacks for \'keydown\', \'keypress\', and \'keyup\' are supported.\n - * options - {Object} Optional object whose properties will be set on the\n - * handler.\n - */\n - initialize: function(control, callbacks, options) {\n - OpenLayers.Handler.prototype.initialize.apply(this, arguments);\n - // cache the bound event listener method so it can be unobserved later\n - this.eventListener = OpenLayers.Function.bindAsEventListener(\n - this.handleKeyEvent, this\n - );\n - },\n - \n - /**\n - * Method: destroy\n - */\n - destroy: function() {\n - this.deactivate();\n - this.eventListener = null;\n - OpenLayers.Handler.prototype.destroy.apply(this, arguments);\n - },\n -\n - /**\n - * Method: activate\n - */\n - activate: function() {\n - if (OpenLayers.Handler.prototype.activate.apply(this, arguments)) {\n - this.observeElement = this.observeElement || document;\n - for (var i=0, len=this.KEY_EVENTS.length; i<len; i++) {\n - OpenLayers.Event.observe(\n - this.observeElement, this.KEY_EVENTS[i], this.eventListener);\n - }\n - return true;\n - } else {\n - return false;\n - }\n - },\n -\n - /**\n - * Method: deactivate\n - */\n - deactivate: function() {\n - var deactivated = false;\n - if (OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {\n - for (var i=0, len=this.KEY_EVENTS.length; i<len; i++) {\n - OpenLayers.Event.stopObserving(\n - this.observeElement, this.KEY_EVENTS[i], this.eventListener);\n - }\n - deactivated = true;\n - }\n - return deactivated;\n - },\n -\n - /**\n - * Method: handleKeyEvent \n - */\n - handleKeyEvent: function (evt) {\n - if (this.checkModifiers(evt)) {\n - this.callback(evt.type, [evt]);\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Handler.Keyboard"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3660</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/MouseWheel.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/MouseWheel.js.xml deleted file mode 100644 index 9092e0531413fc9fa3eaf983d2a9e4731486e22c..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/MouseWheel.js.xml +++ /dev/null @@ -1,327 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.88</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>MouseWheel.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Handler.js\n - */\n -\n -/**\n - * Class: OpenLayers.Handler.MouseWheel\n - * Handler for wheel up/down events.\n - * \n - * Inherits from:\n - * - <OpenLayers.Handler>\n - */\n -OpenLayers.Handler.MouseWheel = OpenLayers.Class(OpenLayers.Handler, {\n - /** \n - * Property: wheelListener \n - * {function} \n - */\n - wheelListener: null,\n -\n - /** \n - * Property: mousePosition\n - * {<OpenLayers.Pixel>} mousePosition is necessary because\n - * evt.clientX/Y is buggy in Moz on wheel events, so we cache and use the\n - * value from the last mousemove.\n - */\n - mousePosition: null,\n -\n - /**\n - * Property: interval\n - * {Integer} In order to increase server performance, an interval (in \n - * milliseconds) can be set to reduce the number of up/down events \n - * called. If set, a new up/down event will not be set until the \n - * interval has passed. \n - * Defaults to 0, meaning no interval. \n - */\n - interval: 0,\n - \n - /**\n - * Property: delta\n - * {Integer} When interval is set, delta collects the mousewheel z-deltas\n - * of the events that occur within the interval.\n - * See also the cumulative option\n - */\n - delta: 0,\n - \n - /**\n - * Property: cumulative\n - * {Boolean} When interval is set: true to collect all the mousewheel \n - * z-deltas, false to only record the delta direction (positive or\n - * negative)\n - */\n - cumulative: true,\n -\n - /**\n - * Constructor: OpenLayers.Handler.MouseWheel\n - *\n - * Parameters:\n - * control - {<OpenLayers.Control>} \n - * callbacks - {Object} An object containing a single function to be\n - * called when the drag operation is finished.\n - * The callback should expect to recieve a single\n - * argument, the point geometry.\n - * options - {Object} \n - */\n - initialize: function(control, callbacks, options) {\n - OpenLayers.Handler.prototype.initialize.apply(this, arguments);\n - this.wheelListener = OpenLayers.Function.bindAsEventListener(\n - this.onWheelEvent, this\n - );\n - },\n -\n - /**\n - * Method: destroy\n - */ \n - destroy: function() {\n - OpenLayers.Handler.prototype.destroy.apply(this, arguments);\n - this.wheelListener = null;\n - },\n -\n - /**\n - * Mouse ScrollWheel code thanks to http://adomas.org/javascript-mouse-wheel/\n - */\n -\n - /** \n - * Method: onWheelEvent\n - * Catch the wheel event and handle it xbrowserly\n - * \n - * Parameters:\n - * e - {Event} \n - */\n - onWheelEvent: function(e){\n - \n - // make sure we have a map and check keyboard modifiers\n - if (!this.map || !this.checkModifiers(e)) {\n - return;\n - }\n - \n - // Ride up the element\'s DOM hierarchy to determine if it or any of \n - // its ancestors was: \n - // * specifically marked as scrollable\n - // * one of our layer divs\n - // * the map div\n - //\n - var overScrollableDiv = false;\n - var overLayerDiv = false;\n - var overMapDiv = false;\n - \n - var elem = OpenLayers.Event.element(e);\n - while((elem != null) && !overMapDiv && !overScrollableDiv) {\n -\n - if (!overScrollableDiv) {\n - try {\n - if (elem.currentStyle) {\n - overflow = elem.currentStyle["overflow"];\n - } else {\n - var style = \n - document.defaultView.getComputedStyle(elem, null);\n - var overflow = style.getPropertyValue("overflow");\n - }\n - overScrollableDiv = ( overflow && \n - (overflow == "auto") || (overflow == "scroll") );\n - } catch(err) {\n - //sometimes when scrolling in a popup, this causes \n - // obscure browser error\n - }\n - }\n -\n - if (!overLayerDiv) {\n - for(var i=0, len=this.map.layers.length; i<len; i++) {\n - // Are we in the layer div? Note that we have two cases\n - // here: one is to catch EventPane layers, which have a \n - // pane above the layer (layer.pane)\n - if (elem == this.map.layers[i].div \n - || elem == this.map.layers[i].pane) { \n - overLayerDiv = true;\n - break;\n - }\n - }\n - }\n - overMapDiv = (elem == this.map.div);\n -\n - elem = elem.parentNode;\n - }\n - \n - // Logic below is the following:\n - //\n - // If we are over a scrollable div or not over the map div:\n - // * do nothing (let the browser handle scrolling)\n - //\n - // otherwise \n - // \n - // If we are over the layer div: \n - // * zoom/in out\n - // then\n - // * kill event (so as not to also scroll the page after zooming)\n - //\n - // otherwise\n - //\n - // Kill the event (dont scroll the page if we wheel over the \n - // layerswitcher or the pan/zoom control)\n - //\n - if (!overScrollableDiv && overMapDiv) {\n - if (overLayerDiv) {\n - var delta = 0;\n - if (!e) {\n - e = window.event;\n - }\n - if (e.wheelDelta) {\n - delta = e.wheelDelta/120; \n - if (window.opera && window.opera.version() < 9.2) {\n - delta = -delta;\n - }\n - } else if (e.detail) {\n - delta = -e.detail / 3;\n - }\n - this.delta = this.delta + delta;\n -\n - if(this.interval) {\n - window.clearTimeout(this._timeoutId);\n - this._timeoutId = window.setTimeout(\n - OpenLayers.Function.bind(function(){\n - this.wheelZoom(e);\n - }, this),\n - this.interval\n - );\n - } else {\n - this.wheelZoom(e);\n - }\n - }\n - OpenLayers.Event.stop(e);\n - }\n - },\n -\n - /**\n - * Method: wheelZoom\n - * Given the wheel event, we carry out the appropriate zooming in or out,\n - * based on the \'wheelDelta\' or \'detail\' property of the event.\n - * \n - * Parameters:\n - * e - {Event}\n - */\n - wheelZoom: function(e) {\n - var delta = this.delta;\n - this.delta = 0;\n - \n - if (delta) {\n - // add the mouse position to the event because mozilla has \n - // a bug with clientX and clientY (see \n - // https://bugzilla.mozilla.org/show_bug.cgi?id=352179)\n - // getLonLatFromViewPortPx(e) returns wrong values\n - if (this.mousePosition) {\n - e.xy = this.mousePosition;\n - } \n - if (!e.xy) {\n - // If the mouse hasn\'t moved over the map yet, then\n - // we don\'t have a mouse position (in FF), so we just\n - // act as if the mouse was at the center of the map.\n - // Note that we can tell we are in the map -- and \n - // this.map is ensured to be true above.\n - e.xy = this.map.getPixelFromLonLat(\n - this.map.getCenter()\n - );\n - }\n - if (delta < 0) {\n - this.callback("down", [e, this.cumulative ? delta : -1]);\n - } else {\n - this.callback("up", [e, this.cumulative ? delta : 1]);\n - }\n - }\n - },\n - \n - /**\n - * Method: mousemove\n - * Update the stored mousePosition on every move.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - mousemove: function (evt) {\n - this.mousePosition = evt.xy;\n - },\n -\n - /**\n - * Method: activate \n - */\n - activate: function (evt) {\n - if (OpenLayers.Handler.prototype.activate.apply(this, arguments)) {\n - //register mousewheel events specifically on the window and document\n - var wheelListener = this.wheelListener;\n - OpenLayers.Event.observe(window, "DOMMouseScroll", wheelListener);\n - OpenLayers.Event.observe(window, "mousewheel", wheelListener);\n - OpenLayers.Event.observe(document, "mousewheel", wheelListener);\n - return true;\n - } else {\n - return false;\n - }\n - },\n -\n - /**\n - * Method: deactivate \n - */\n - deactivate: function (evt) {\n - if (OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {\n - // unregister mousewheel events specifically on the window and document\n - var wheelListener = this.wheelListener;\n - OpenLayers.Event.stopObserving(window, "DOMMouseScroll", wheelListener);\n - OpenLayers.Event.stopObserving(window, "mousewheel", wheelListener);\n - OpenLayers.Event.stopObserving(document, "mousewheel", wheelListener);\n - return true;\n - } else {\n - return false;\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Handler.MouseWheel"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>9528</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Path.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Path.js.xml deleted file mode 100644 index 54aa8aa0b58628ec5d864d0030dd872d01aca489..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Path.js.xml +++ /dev/null @@ -1,577 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.89</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Path.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Handler/Point.js\n - * @requires OpenLayers/Geometry/Point.js\n - * @requires OpenLayers/Geometry/LineString.js\n - */\n -\n -/**\n - * Class: OpenLayers.Handler.Path\n - * Handler to draw a path on the map. Path is displayed on mouse down,\n - * moves on mouse move, and is finished on mouse up.\n - *\n - * Inherits from:\n - * - <OpenLayers.Handler.Point>\n - */\n -OpenLayers.Handler.Path = OpenLayers.Class(OpenLayers.Handler.Point, {\n - \n - /**\n - * Property: line\n - * {<OpenLayers.Feature.Vector>}\n - */\n - line: null,\n -\n - /**\n - * APIProperty: maxVertices\n - * {Number} The maximum number of vertices which can be drawn by this\n - * handler. When the number of vertices reaches maxVertices, the\n - * geometry is automatically finalized. Default is null.\n - */\n - maxVertices: null,\n -\n - /**\n - * Property: doubleTouchTolerance\n - * {Number} Maximum number of pixels between two touches for\n - * the gesture to be considered a "finalize feature" action.\n - * Default is 20.\n - */\n - doubleTouchTolerance: 20,\n -\n - /**\n - * Property: freehand\n - * {Boolean} In freehand mode, the handler starts the path on mouse down,\n - * adds a point for every mouse move, and finishes the path on mouse up.\n - * Outside of freehand mode, a point is added to the path on every mouse\n - * click and double-click finishes the path.\n - */\n - freehand: false,\n - \n - /**\n - * Property: freehandToggle\n - * {String} If set, freehandToggle is checked on mouse events and will set\n - * the freehand mode to the opposite of this.freehand. To disallow\n - * toggling between freehand and non-freehand mode, set freehandToggle to\n - * null. Acceptable toggle values are \'shiftKey\', \'ctrlKey\', and \'altKey\'.\n - */\n - freehandToggle: \'shiftKey\',\n -\n - /**\n - * Property: timerId\n - * {Integer} The timer used to test the double touch.\n - */\n - timerId: null,\n -\n - /**\n - * Property: redoStack\n - * {Array} Stack containing points removed with <undo>.\n - */\n - redoStack: null,\n -\n - /**\n - * Constructor: OpenLayers.Handler.Path\n - * Create a new path hander\n - *\n - * Parameters:\n - * control - {<OpenLayers.Control>} The control that owns this handler\n - * callbacks - {Object} An object with a properties whose values are\n - * functions. Various callbacks described below.\n - * options - {Object} An optional object with properties to be set on the\n - * handler\n - *\n - * Named callbacks:\n - * create - Called when a sketch is first created. Callback called with\n - * the creation point geometry and sketch feature.\n - * modify - Called with each move of a vertex with the vertex (point)\n - * geometry and the sketch feature.\n - * point - Called as each point is added. Receives the new point geometry.\n - * done - Called when the point drawing is finished. The callback will\n - * recieve a single argument, the linestring geometry.\n - * cancel - Called when the handler is deactivated while drawing. The\n - * cancel callback will receive a geometry.\n - */\n -\n - /**\n - * Method: createFeature\n - * Add temporary geometries\n - *\n - * Parameters:\n - * pixel - {<OpenLayers.Pixel>} The initial pixel location for the new\n - * feature.\n - */\n - createFeature: function(pixel) {\n - var lonlat = this.layer.getLonLatFromViewPortPx(pixel); \n - var geometry = new OpenLayers.Geometry.Point(\n - lonlat.lon, lonlat.lat\n - );\n - this.point = new OpenLayers.Feature.Vector(geometry);\n - this.line = new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.LineString([this.point.geometry])\n - );\n - this.callback("create", [this.point.geometry, this.getSketch()]);\n - this.point.geometry.clearBounds();\n - this.layer.addFeatures([this.line, this.point], {silent: true});\n - },\n - \n - /**\n - * Method: destroyFeature\n - * Destroy temporary geometries\n - *\n - * Parameters:\n - * force - {Boolean} Destroy even if persist is true.\n - */\n - destroyFeature: function(force) {\n - OpenLayers.Handler.Point.prototype.destroyFeature.call(\n - this, force);\n - this.line = null;\n - },\n -\n - /**\n - * Method: destroyPersistedFeature\n - * Destroy the persisted feature.\n - */\n - destroyPersistedFeature: function() {\n - var layer = this.layer;\n - if(layer && layer.features.length > 2) {\n - this.layer.features[0].destroy();\n - }\n - },\n -\n - /**\n - * Method: removePoint\n - * Destroy the temporary point.\n - */\n - removePoint: function() {\n - if(this.point) {\n - this.layer.removeFeatures([this.point]);\n - }\n - },\n - \n - /**\n - * Method: addPoint\n - * Add point to geometry. Send the point index to override\n - * the behavior of LinearRing that disregards adding duplicate points.\n - *\n - * Parameters:\n - * pixel - {<OpenLayers.Pixel>} The pixel location for the new point.\n - */\n - addPoint: function(pixel) {\n - this.layer.removeFeatures([this.point]);\n - var lonlat = this.layer.getLonLatFromViewPortPx(pixel); \n - this.point = new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.Point(lonlat.lon, lonlat.lat)\n - );\n - this.line.geometry.addComponent(\n - this.point.geometry, this.line.geometry.components.length\n - );\n - this.layer.addFeatures([this.point]);\n - this.callback("point", [this.point.geometry, this.getGeometry()]);\n - this.callback("modify", [this.point.geometry, this.getSketch()]);\n - this.drawFeature();\n - delete this.redoStack;\n - },\n - \n - /**\n - * Method: insertXY\n - * Insert a point in the current sketch given x & y coordinates. The new\n - * point is inserted immediately before the most recently drawn point.\n - *\n - * Parameters:\n - * x - {Number} The x-coordinate of the point.\n - * y - {Number} The y-coordinate of the point.\n - */\n - insertXY: function(x, y) {\n - this.line.geometry.addComponent(\n - new OpenLayers.Geometry.Point(x, y), \n - this.getCurrentPointIndex()\n - );\n - this.drawFeature();\n - delete this.redoStack;\n - },\n -\n - /**\n - * Method: insertDeltaXY\n - * Insert a point given offsets from the previously inserted point.\n - *\n - * Parameters:\n - * dx - {Number} The x-coordinate offset of the point.\n - * dy - {Number} The y-coordinate offset of the point.\n - */\n - insertDeltaXY: function(dx, dy) {\n - var previousIndex = this.getCurrentPointIndex() - 1;\n - var p0 = this.line.geometry.components[previousIndex];\n - if (p0 && !isNaN(p0.x) && !isNaN(p0.y)) {\n - this.insertXY(p0.x + dx, p0.y + dy);\n - }\n - },\n -\n - /**\n - * Method: insertDirectionLength\n - * Insert a point in the current sketch given a direction and a length.\n - *\n - * Parameters:\n - * direction - {Number} Degrees clockwise from the positive x-axis.\n - * length - {Number} Distance from the previously drawn point.\n - */\n - insertDirectionLength: function(direction, length) {\n - direction *= Math.PI / 180;\n - var dx = length * Math.cos(direction);\n - var dy = length * Math.sin(direction);\n - this.insertDeltaXY(dx, dy);\n - },\n -\n - /**\n - * Method: insertDeflectionLength\n - * Insert a point in the current sketch given a deflection and a length.\n - * The deflection should be degrees clockwise from the previously \n - * digitized segment.\n - *\n - * Parameters:\n - * deflection - {Number} Degrees clockwise from the previous segment.\n - * length - {Number} Distance from the previously drawn point.\n - */\n - insertDeflectionLength: function(deflection, length) {\n - var previousIndex = this.getCurrentPointIndex() - 1;\n - if (previousIndex > 0) {\n - var p1 = this.line.geometry.components[previousIndex];\n - var p0 = this.line.geometry.components[previousIndex-1];\n - var theta = Math.atan2(p1.y - p0.y, p1.x - p0.x);\n - this.insertDirectionLength(\n - (theta * 180 / Math.PI) + deflection, length\n - );\n - }\n - },\n -\n - /**\n - * Method: getCurrentPointIndex\n - * \n - * Returns:\n - * {Number} The index of the most recently drawn point.\n - */\n - getCurrentPointIndex: function() {\n - return this.line.geometry.components.length - 1;\n - },\n - \n - \n - /**\n - * Method: undo\n - * Remove the most recently added point in the sketch geometry.\n - *\n - * Returns: \n - * {Boolean} A point was removed.\n - */\n - undo: function() {\n - var geometry = this.line.geometry;\n - var components = geometry.components;\n - var index = this.getCurrentPointIndex() - 1;\n - var target = components[index];\n - var undone = geometry.removeComponent(target);\n - if (undone) {\n - if (!this.redoStack) {\n - this.redoStack = [];\n - }\n - this.redoStack.push(target);\n - this.drawFeature();\n - }\n - return undone;\n - },\n - \n - /**\n - * Method: redo\n - * Reinsert the most recently removed point resulting from an <undo> call.\n - * The undo stack is deleted whenever a point is added by other means.\n - *\n - * Returns: \n - * {Boolean} A point was added.\n - */\n - redo: function() {\n - var target = this.redoStack && this.redoStack.pop();\n - if (target) {\n - this.line.geometry.addComponent(target, this.getCurrentPointIndex());\n - this.drawFeature();\n - }\n - return !!target;\n - },\n - \n - /**\n - * Method: freehandMode\n - * Determine whether to behave in freehand mode or not.\n - *\n - * Returns:\n - * {Boolean}\n - */\n - freehandMode: function(evt) {\n - return (this.freehandToggle && evt[this.freehandToggle]) ?\n - !this.freehand : this.freehand;\n - },\n -\n - /**\n - * Method: modifyFeature\n - * Modify the existing geometry given the new point\n - *\n - * Parameters:\n - * pixel - {<OpenLayers.Pixel>} The updated pixel location for the latest\n - * point.\n - * drawing - {Boolean} Indicate if we\'re currently drawing.\n - */\n - modifyFeature: function(pixel, drawing) {\n - if(!this.line) {\n - this.createFeature(pixel);\n - }\n - var lonlat = this.layer.getLonLatFromViewPortPx(pixel); \n - this.point.geometry.x = lonlat.lon;\n - this.point.geometry.y = lonlat.lat;\n - this.callback("modify", [this.point.geometry, this.getSketch(), drawing]);\n - this.point.geometry.clearBounds();\n - this.drawFeature();\n - },\n -\n - /**\n - * Method: drawFeature\n - * Render geometries on the temporary layer.\n - */\n - drawFeature: function() {\n - this.layer.drawFeature(this.line, this.style);\n - this.layer.drawFeature(this.point, this.style);\n - },\n -\n - /**\n - * Method: getSketch\n - * Return the sketch feature.\n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector>}\n - */\n - getSketch: function() {\n - return this.line;\n - },\n -\n - /**\n - * Method: getGeometry\n - * Return the sketch geometry. If <multi> is true, this will return\n - * a multi-part geometry.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.LineString>}\n - */\n - getGeometry: function() {\n - var geometry = this.line && this.line.geometry;\n - if(geometry && this.multi) {\n - geometry = new OpenLayers.Geometry.MultiLineString([geometry]);\n - }\n - return geometry;\n - },\n -\n - /**\n - * method: touchstart\n - * handle touchstart.\n - *\n - * parameters:\n - * evt - {event} the browser event\n - *\n - * returns:\n - * {boolean} allow event propagation\n - */\n - touchstart: function(evt) {\n - if (this.timerId &&\n - this.passesTolerance(this.lastTouchPx, evt.xy,\n - this.doubleTouchTolerance)) {\n - // double-tap, finalize the geometry\n - this.finishGeometry();\n - window.clearTimeout(this.timerId);\n - this.timerId = null;\n - return false;\n - } else {\n - if (this.timerId) {\n - window.clearTimeout(this.timerId);\n - this.timerId = null;\n - }\n - this.timerId = window.setTimeout(\n - OpenLayers.Function.bind(function() {\n - this.timerId = null;\n - }, this), 300);\n - return OpenLayers.Handler.Point.prototype.touchstart.call(this, evt);\n - }\n - },\n -\n - /**\n - * Method: down\n - * Handle mousedown and touchstart. Add a new point to the geometry and\n - * render it. Return determines whether to propagate the event on the map.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - down: function(evt) {\n - var stopDown = this.stopDown;\n - if(this.freehandMode(evt)) {\n - stopDown = true;\n - if (this.touch) {\n - this.modifyFeature(evt.xy, !!this.lastUp);\n - OpenLayers.Event.stop(evt);\n - }\n - }\n - if (!this.touch && (!this.lastDown ||\n - !this.passesTolerance(this.lastDown, evt.xy,\n - this.pixelTolerance))) {\n - this.modifyFeature(evt.xy, !!this.lastUp);\n - }\n - this.mouseDown = true;\n - this.lastDown = evt.xy;\n - this.stoppedDown = stopDown;\n - return !stopDown;\n - },\n -\n - /**\n - * Method: move\n - * Handle mousemove and touchmove. Adjust the geometry and redraw.\n - * Return determines whether to propagate the event on the map.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - move: function (evt) {\n - if(this.stoppedDown && this.freehandMode(evt)) {\n - if(this.persist) {\n - this.destroyPersistedFeature();\n - }\n - if(this.maxVertices && this.line &&\n - this.line.geometry.components.length === this.maxVertices) {\n - this.removePoint();\n - this.finalize();\n - } else {\n - this.addPoint(evt.xy);\n - }\n - return false;\n - }\n - if (!this.touch && (!this.mouseDown || this.stoppedDown)) {\n - this.modifyFeature(evt.xy, !!this.lastUp);\n - }\n - return true;\n - },\n - \n - /**\n - * Method: up\n - * Handle mouseup and touchend. Send the latest point in the geometry to\n - * the control. Return determines whether to propagate the event on the map.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - up: function (evt) {\n - if (this.mouseDown && (!this.lastUp || !this.lastUp.equals(evt.xy))) {\n - if(this.stoppedDown && this.freehandMode(evt)) {\n - if (this.persist) {\n - this.destroyPersistedFeature();\n - }\n - this.removePoint();\n - this.finalize();\n - } else {\n - if (this.passesTolerance(this.lastDown, evt.xy,\n - this.pixelTolerance)) {\n - if (this.touch) {\n - this.modifyFeature(evt.xy);\n - }\n - if(this.lastUp == null && this.persist) {\n - this.destroyPersistedFeature();\n - }\n - this.addPoint(evt.xy);\n - this.lastUp = evt.xy;\n - if(this.line.geometry.components.length === this.maxVertices + 1) {\n - this.finishGeometry();\n - }\n - }\n - }\n - }\n - this.stoppedDown = this.stopDown;\n - this.mouseDown = false;\n - return !this.stopUp;\n - },\n -\n - /**\n - * APIMethod: finishGeometry\n - * Finish the geometry and send it back to the control.\n - */\n - finishGeometry: function() {\n - var index = this.line.geometry.components.length - 1;\n - this.line.geometry.removeComponent(this.line.geometry.components[index]);\n - this.removePoint();\n - this.finalize();\n - },\n - \n - /**\n - * Method: dblclick \n - * Handle double-clicks.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - dblclick: function(evt) {\n - if(!this.freehandMode(evt)) {\n - this.finishGeometry();\n - }\n - return false;\n - },\n -\n - CLASS_NAME: "OpenLayers.Handler.Path"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>16921</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Pinch.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Pinch.js.xml deleted file mode 100644 index 4fc864b494d0a54275259aa28c80be794d097bf5..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Pinch.js.xml +++ /dev/null @@ -1,274 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.88</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Pinch.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for\n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Handler.js\n - */\n -\n -/**\n - * Class: OpenLayers.Handler.Pinch\n - * The pinch handler is used to deal with sequences of browser events related\n - * to pinch gestures. The handler is used by controls that want to know\n - * when a pinch sequence begins, when a pinch is happening, and when it has\n - * finished.\n - *\n - * Controls that use the pinch handler typically construct it with callbacks\n - * for \'start\', \'move\', and \'done\'. Callbacks for these keys are\n - * called when the pinch begins, with each change, and when the pinch is\n - * done.\n - *\n - * Create a new pinch handler with the <OpenLayers.Handler.Pinch> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Handler>\n - */\n -OpenLayers.Handler.Pinch = OpenLayers.Class(OpenLayers.Handler, {\n -\n - /**\n - * Property: started\n - * {Boolean} When a touchstart event is received, we want to record it,\n - * but not set \'pinching\' until the touchmove get started after\n - * starting.\n - */\n - started: false,\n -\n - /**\n - * Property: stopDown\n - * {Boolean} Stop propagation of touchstart events from getting to\n - * listeners on the same element. Default is false.\n - */\n - stopDown: false,\n -\n - /**\n - * Property: pinching\n - * {Boolean}\n - */\n - pinching: false,\n -\n - /**\n - * Property: last\n - * {Object} Object that store informations related to pinch last touch.\n - */\n - last: null,\n -\n - /**\n - * Property: start\n - * {Object} Object that store informations related to pinch touchstart.\n - */\n - start: null,\n -\n - /**\n - * Constructor: OpenLayers.Handler.Pinch\n - * Returns OpenLayers.Handler.Pinch\n - *\n - * Parameters:\n - * control - {<OpenLayers.Control>} The control that is making use of\n - * this handler. If a handler is being used without a control, the\n - * handlers setMap method must be overridden to deal properly with\n - * the map.\n - * callbacks - {Object} An object containing functions to be called when\n - * the pinch operation start, change, or is finished. The callbacks\n - * should expect to receive an object argument, which contains\n - * information about scale, distance, and position of touch points.\n - * options - {Object}\n - */\n -\n - /**\n - * Method: touchstart\n - * Handle touchstart events\n - *\n - * Parameters:\n - * evt - {Event}\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - touchstart: function(evt) {\n - var propagate = true;\n - this.pinching = false;\n - if (OpenLayers.Event.isMultiTouch(evt)) {\n - this.started = true;\n - this.last = this.start = {\n - distance: this.getDistance(evt.touches),\n - delta: 0,\n - scale: 1\n - };\n - this.callback("start", [evt, this.start]);\n - propagate = !this.stopDown;\n - } else {\n - this.started = false;\n - this.start = null;\n - this.last = null;\n - }\n - // prevent document dragging\n - OpenLayers.Event.stop(evt);\n - return propagate;\n - },\n -\n - /**\n - * Method: touchmove\n - * Handle touchmove events\n - *\n - * Parameters:\n - * evt - {Event}\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - touchmove: function(evt) {\n - if (this.started && OpenLayers.Event.isMultiTouch(evt)) {\n - this.pinching = true;\n - var current = this.getPinchData(evt);\n - this.callback("move", [evt, current]);\n - this.last = current;\n - // prevent document dragging\n - OpenLayers.Event.stop(evt);\n - }\n - return true;\n - },\n -\n - /**\n - * Method: touchend\n - * Handle touchend events\n - *\n - * Parameters:\n - * evt - {Event}\n - *\n - * Returns:\n - * {Boolean} Let the event propagate.\n - */\n - touchend: function(evt) {\n - if (this.started) {\n - this.started = false;\n - this.pinching = false;\n - this.callback("done", [evt, this.start, this.last]);\n - this.start = null;\n - this.last = null;\n - }\n - return true;\n - },\n -\n - /**\n - * Method: activate\n - * Activate the handler.\n - *\n - * Returns:\n - * {Boolean} The handler was successfully activated.\n - */\n - activate: function() {\n - var activated = false;\n - if (OpenLayers.Handler.prototype.activate.apply(this, arguments)) {\n - this.pinching = false;\n - activated = true;\n - }\n - return activated;\n - },\n -\n - /**\n - * Method: deactivate\n - * Deactivate the handler.\n - *\n - * Returns:\n - * {Boolean} The handler was successfully deactivated.\n - */\n - deactivate: function() {\n - var deactivated = false;\n - if (OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {\n - this.started = false;\n - this.pinching = false;\n - this.start = null;\n - this.last = null;\n - deactivated = true;\n - }\n - return deactivated;\n - },\n -\n - /**\n - * Method: getDistance\n - * Get the distance in pixels between two touches.\n - *\n - * Parameters:\n - * touches - {Array(Object)}\n - *\n - * Returns:\n - * {Number} The distance in pixels.\n - */\n - getDistance: function(touches) {\n - var t0 = touches[0];\n - var t1 = touches[1];\n - return Math.sqrt(\n - Math.pow(t0.clientX - t1.clientX, 2) +\n - Math.pow(t0.clientY - t1.clientY, 2)\n - );\n - },\n -\n -\n - /**\n - * Method: getPinchData\n - * Get informations about the pinch event.\n - *\n - * Parameters:\n - * evt - {Event}\n - *\n - * Returns:\n - * {Object} Object that contains data about the current pinch.\n - */\n - getPinchData: function(evt) {\n - var distance = this.getDistance(evt.touches);\n - var scale = distance / this.start.distance;\n - return {\n - distance: distance,\n - delta: this.last.distance - distance,\n - scale: scale\n - };\n - },\n -\n - CLASS_NAME: "OpenLayers.Handler.Pinch"\n -});\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6304</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Point.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Point.js.xml deleted file mode 100644 index abaa857b22730765215ce9b20241c59195d12886..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Point.js.xml +++ /dev/null @@ -1,618 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.88</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Point.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Handler.js\n - * @requires OpenLayers/Geometry/Point.js\n - */\n -\n -/**\n - * Class: OpenLayers.Handler.Point\n - * Handler to draw a point on the map. Point is displayed on activation,\n - * moves on mouse move, and is finished on mouse up. The handler triggers\n - * callbacks for \'done\', \'cancel\', and \'modify\'. The modify callback is\n - * called with each change in the sketch and will receive the latest point\n - * drawn. Create a new instance with the <OpenLayers.Handler.Point>\n - * constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Handler>\n - */\n -OpenLayers.Handler.Point = OpenLayers.Class(OpenLayers.Handler, {\n - \n - /**\n - * Property: point\n - * {<OpenLayers.Feature.Vector>} The currently drawn point\n - */\n - point: null,\n -\n - /**\n - * Property: layer\n - * {<OpenLayers.Layer.Vector>} The temporary drawing layer\n - */\n - layer: null,\n - \n - /**\n - * APIProperty: multi\n - * {Boolean} Cast features to multi-part geometries before passing to the\n - * layer. Default is false.\n - */\n - multi: false,\n - \n - /**\n - * APIProperty: citeCompliant\n - * {Boolean} If set to true, coordinates of features drawn in a map extent\n - * crossing the date line won\'t exceed the world bounds. Default is false.\n - */\n - citeCompliant: false,\n - \n - /**\n - * Property: mouseDown\n - * {Boolean} The mouse is down\n - */\n - mouseDown: false,\n -\n - /**\n - * Property: stoppedDown\n - * {Boolean} Indicate whether the last mousedown stopped the event\n - * propagation.\n - */\n - stoppedDown: null,\n -\n - /**\n - * Property: lastDown\n - * {<OpenLayers.Pixel>} Location of the last mouse down\n - */\n - lastDown: null,\n -\n - /**\n - * Property: lastUp\n - * {<OpenLayers.Pixel>}\n - */\n - lastUp: null,\n -\n - /**\n - * APIProperty: persist\n - * {Boolean} Leave the feature rendered until destroyFeature is called.\n - * Default is false. If set to true, the feature remains rendered until\n - * destroyFeature is called, typically by deactivating the handler or\n - * starting another drawing.\n - */\n - persist: false,\n -\n - /**\n - * APIProperty: stopDown\n - * {Boolean} Stop event propagation on mousedown. Must be false to\n - * allow "pan while drawing". Defaults to false.\n - */\n - stopDown: false,\n -\n - /**\n - * APIPropery: stopUp\n - * {Boolean} Stop event propagation on mouse. Must be false to\n - * allow "pan while dragging". Defaults to fase.\n - */\n - stopUp: false,\n -\n - /**\n - * Property: layerOptions\n - * {Object} Any optional properties to be set on the sketch layer.\n - */\n - layerOptions: null,\n - \n - /**\n - * APIProperty: pixelTolerance\n - * {Number} Maximum number of pixels between down and up (mousedown\n - * and mouseup, or touchstart and touchend) for the handler to\n - * add a new point. If set to an integer value, if the\n - * displacement between down and up is great to this value\n - * no point will be added. Default value is 5.\n - */\n - pixelTolerance: 5,\n -\n - /**\n - * Property: touch\n - * {Boolean} Indcates the support of touch events.\n - */\n - touch: false,\n -\n - /**\n - * Property: lastTouchPx\n - * {<OpenLayers.Pixel>} The last pixel used to know the distance between\n - * two touches (for double touch).\n - */\n - lastTouchPx: null,\n -\n - /**\n - * Constructor: OpenLayers.Handler.Point\n - * Create a new point handler.\n - *\n - * Parameters:\n - * control - {<OpenLayers.Control>} The control that owns this handler\n - * callbacks - {Object} An object with a properties whose values are\n - * functions. Various callbacks described below.\n - * options - {Object} An optional object with properties to be set on the\n - * handler\n - *\n - * Named callbacks:\n - * create - Called when a sketch is first created. Callback called with\n - * the creation point geometry and sketch feature.\n - * modify - Called with each move of a vertex with the vertex (point)\n - * geometry and the sketch feature.\n - * done - Called when the point drawing is finished. The callback will\n - * recieve a single argument, the point geometry.\n - * cancel - Called when the handler is deactivated while drawing. The\n - * cancel callback will receive a geometry.\n - */\n - initialize: function(control, callbacks, options) {\n - if(!(options && options.layerOptions && options.layerOptions.styleMap)) {\n - this.style = OpenLayers.Util.extend(OpenLayers.Feature.Vector.style[\'default\'], {});\n - }\n -\n - OpenLayers.Handler.prototype.initialize.apply(this, arguments);\n - },\n - \n - /**\n - * APIMethod: activate\n - * turn on the handler\n - */\n - activate: function() {\n - if(!OpenLayers.Handler.prototype.activate.apply(this, arguments)) {\n - return false;\n - }\n - // create temporary vector layer for rendering geometry sketch\n - // TBD: this could be moved to initialize/destroy - setting visibility here\n - var options = OpenLayers.Util.extend({\n - displayInLayerSwitcher: false,\n - // indicate that the temp vector layer will never be out of range\n - // without this, resolution properties must be specified at the\n - // map-level for this temporary layer to init its resolutions\n - // correctly\n - calculateInRange: OpenLayers.Function.True,\n - wrapDateLine: this.citeCompliant\n - }, this.layerOptions);\n - this.layer = new OpenLayers.Layer.Vector(this.CLASS_NAME, options);\n - this.map.addLayer(this.layer);\n - return true;\n - },\n - \n - /**\n - * Method: createFeature\n - * Add temporary features\n - *\n - * Parameters:\n - * pixel - {<OpenLayers.Pixel>} A pixel location on the map.\n - */\n - createFeature: function(pixel) {\n - var lonlat = this.layer.getLonLatFromViewPortPx(pixel); \n - var geometry = new OpenLayers.Geometry.Point(\n - lonlat.lon, lonlat.lat\n - );\n - this.point = new OpenLayers.Feature.Vector(geometry);\n - this.callback("create", [this.point.geometry, this.point]);\n - this.point.geometry.clearBounds();\n - this.layer.addFeatures([this.point], {silent: true});\n - },\n -\n - /**\n - * APIMethod: deactivate\n - * turn off the handler\n - */\n - deactivate: function() {\n - if(!OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {\n - return false;\n - }\n - this.cancel();\n - // If a layer\'s map property is set to null, it means that that layer\n - // isn\'t added to the map. Since we ourself added the layer to the map\n - // in activate(), we can assume that if this.layer.map is null it means\n - // that the layer has been destroyed (as a result of map.destroy() for\n - // example.\n - if (this.layer.map != null) {\n - this.destroyFeature(true);\n - this.layer.destroy(false);\n - }\n - this.layer = null;\n - this.touch = false;\n - return true;\n - },\n - \n - /**\n - * Method: destroyFeature\n - * Destroy the temporary geometries\n - *\n - * Parameters:\n - * force - {Boolean} Destroy even if persist is true.\n - */\n - destroyFeature: function(force) {\n - if(this.layer && (force || !this.persist)) {\n - this.layer.destroyFeatures();\n - }\n - this.point = null;\n - },\n -\n - /**\n - * Method: destroyPersistedFeature\n - * Destroy the persisted feature.\n - */\n - destroyPersistedFeature: function() {\n - var layer = this.layer;\n - if(layer && layer.features.length > 1) {\n - this.layer.features[0].destroy();\n - }\n - },\n -\n - /**\n - * Method: finalize\n - * Finish the geometry and call the "done" callback.\n - *\n - * Parameters:\n - * cancel - {Boolean} Call cancel instead of done callback. Default\n - * is false.\n - */\n - finalize: function(cancel) {\n - var key = cancel ? "cancel" : "done";\n - this.mouseDown = false;\n - this.lastDown = null;\n - this.lastUp = null;\n - this.lastTouchPx = null;\n - this.callback(key, [this.geometryClone()]);\n - this.destroyFeature(cancel);\n - },\n -\n - /**\n - * APIMethod: cancel\n - * Finish the geometry and call the "cancel" callback.\n - */\n - cancel: function() {\n - this.finalize(true);\n - },\n -\n - /**\n - * Method: click\n - * Handle clicks. Clicks are stopped from propagating to other listeners\n - * on map.events or other dom elements.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - click: function(evt) {\n - OpenLayers.Event.stop(evt);\n - return false;\n - },\n -\n - /**\n - * Method: dblclick\n - * Handle double-clicks. Double-clicks are stopped from propagating to other\n - * listeners on map.events or other dom elements.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - dblclick: function(evt) {\n - OpenLayers.Event.stop(evt);\n - return false;\n - },\n - \n - /**\n - * Method: modifyFeature\n - * Modify the existing geometry given a pixel location.\n - *\n - * Parameters:\n - * pixel - {<OpenLayers.Pixel>} A pixel location on the map.\n - */\n - modifyFeature: function(pixel) {\n - if(!this.point) {\n - this.createFeature(pixel);\n - }\n - var lonlat = this.layer.getLonLatFromViewPortPx(pixel); \n - this.point.geometry.x = lonlat.lon;\n - this.point.geometry.y = lonlat.lat;\n - this.callback("modify", [this.point.geometry, this.point, false]);\n - this.point.geometry.clearBounds();\n - this.drawFeature();\n - },\n -\n - /**\n - * Method: drawFeature\n - * Render features on the temporary layer.\n - */\n - drawFeature: function() {\n - this.layer.drawFeature(this.point, this.style);\n - },\n - \n - /**\n - * Method: getGeometry\n - * Return the sketch geometry. If <multi> is true, this will return\n - * a multi-part geometry.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.Point>}\n - */\n - getGeometry: function() {\n - var geometry = this.point && this.point.geometry;\n - if(geometry && this.multi) {\n - geometry = new OpenLayers.Geometry.MultiPoint([geometry]);\n - }\n - return geometry;\n - },\n -\n - /**\n - * Method: geometryClone\n - * Return a clone of the relevant geometry.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry>}\n - */\n - geometryClone: function() {\n - var geom = this.getGeometry();\n - return geom && geom.clone();\n - },\n -\n - /**\n - * Method: mousedown\n - * Handle mousedown.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - mousedown: function(evt) {\n - return this.down(evt);\n - },\n -\n - /**\n - * Method: touchstart\n - * Handle touchstart.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - touchstart: function(evt) {\n - if (!this.touch) {\n - this.touch = true;\n - // unregister mouse listeners\n - this.map.events.un({\n - mousedown: this.mousedown,\n - mouseup: this.mouseup,\n - mousemove: this.mousemove,\n - click: this.click,\n - dblclick: this.dblclick,\n - scope: this\n - });\n - }\n - this.lastTouchPx = evt.xy;\n - return this.down(evt);\n - },\n -\n - /**\n - * Method: mousemove\n - * Handle mousemove.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - mousemove: function(evt) {\n - return this.move(evt);\n - },\n -\n - /**\n - * Method: touchmove\n - * Handle touchmove.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - touchmove: function(evt) {\n - this.lastTouchPx = evt.xy;\n - return this.move(evt);\n - },\n -\n - /**\n - * Method: mouseup\n - * Handle mouseup.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - mouseup: function(evt) {\n - return this.up(evt);\n - },\n -\n - /**\n - * Method: touchend\n - * Handle touchend.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - touchend: function(evt) {\n - evt.xy = this.lastTouchPx;\n - return this.up(evt);\n - },\n - \n - /**\n - * Method: down\n - * Handle mousedown and touchstart. Adjust the geometry and redraw.\n - * Return determines whether to propagate the event on the map.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - down: function(evt) {\n - this.mouseDown = true;\n - this.lastDown = evt.xy;\n - if(!this.touch) { // no point displayed until up on touch devices\n - this.modifyFeature(evt.xy);\n - }\n - this.stoppedDown = this.stopDown;\n - return !this.stopDown;\n - },\n -\n - /**\n - * Method: move\n - * Handle mousemove and touchmove. Adjust the geometry and redraw.\n - * Return determines whether to propagate the event on the map.\n - * \n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - move: function (evt) {\n - if(!this.touch // no point displayed until up on touch devices\n - && (!this.mouseDown || this.stoppedDown)) {\n - this.modifyFeature(evt.xy);\n - }\n - return true;\n - },\n -\n - /**\n - * Method: up\n - * Handle mouseup and touchend. Send the latest point in the geometry to the control.\n - * Return determines whether to propagate the event on the map.\n - *\n - * Parameters:\n - * evt - {Event} The browser event\n - *\n - * Returns: \n - * {Boolean} Allow event propagation\n - */\n - up: function (evt) {\n - this.mouseDown = false;\n - this.stoppedDown = this.stopDown;\n -\n - // check keyboard modifiers\n - if(!this.checkModifiers(evt)) {\n - return true;\n - }\n - // ignore double-clicks\n - if (this.lastUp && this.lastUp.equals(evt.xy)) {\n - return true;\n - }\n - if (this.lastDown && this.passesTolerance(this.lastDown, evt.xy,\n - this.pixelTolerance)) {\n - if (this.touch) {\n - this.modifyFeature(evt.xy);\n - }\n - if(this.persist) {\n - this.destroyPersistedFeature();\n - }\n - this.lastUp = evt.xy;\n - this.finalize();\n - return !this.stopUp;\n - } else {\n - return true;\n - }\n - },\n -\n - /**\n - * Method: mouseout\n - * Handle mouse out. For better user experience reset mouseDown\n - * and stoppedDown when the mouse leaves the map viewport.\n - *\n - * Parameters:\n - * evt - {Event} The browser event\n - */\n - mouseout: function(evt) {\n - if(OpenLayers.Util.mouseLeft(evt, this.map.viewPortDiv)) {\n - this.stoppedDown = this.stopDown;\n - this.mouseDown = false;\n - }\n - },\n -\n - /**\n - * Method: passesTolerance\n - * Determine whether the event is within the optional pixel tolerance.\n - *\n - * Returns:\n - * {Boolean} The event is within the pixel tolerance (if specified).\n - */\n - passesTolerance: function(pixel1, pixel2, tolerance) {\n - var passes = true;\n -\n - if (tolerance != null && pixel1 && pixel2) {\n - var dist = pixel1.distanceTo(pixel2);\n - if (dist > tolerance) {\n - passes = false;\n - }\n - }\n - return passes;\n - },\n - \n - CLASS_NAME: "OpenLayers.Handler.Point"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>16306</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Polygon.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Polygon.js.xml deleted file mode 100644 index ec1ee65a248bd0b93d20265a55c931bb125c2967..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/Polygon.js.xml +++ /dev/null @@ -1,349 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.89</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Polygon.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Handler/Path.js\n - * @requires OpenLayers/Geometry/Polygon.js\n - */\n -\n -/**\n - * Class: OpenLayers.Handler.Polygon\n - * Handler to draw a polygon on the map. Polygon is displayed on mouse down,\n - * moves on mouse move, and is finished on mouse up.\n - *\n - * Inherits from:\n - * - <OpenLayers.Handler.Path>\n - * - <OpenLayers.Handler>\n - */\n -OpenLayers.Handler.Polygon = OpenLayers.Class(OpenLayers.Handler.Path, {\n - \n - /** \n - * APIProperty: holeModifier\n - * {String} Key modifier to trigger hole digitizing. Acceptable values are\n - * "altKey", "shiftKey", or "ctrlKey". If not set, no hole digitizing\n - * will take place. Default is null.\n - */\n - holeModifier: null,\n - \n - /**\n - * Property: drawingHole\n - * {Boolean} Currently drawing an interior ring.\n - */\n - drawingHole: false,\n - \n - /**\n - * Property: polygon\n - * {<OpenLayers.Feature.Vector>}\n - */\n - polygon: null,\n -\n - /**\n - * Constructor: OpenLayers.Handler.Polygon\n - * Create a Polygon Handler.\n - *\n - * Parameters:\n - * control - {<OpenLayers.Control>} The control that owns this handler\n - * callbacks - {Object} An object with a properties whose values are\n - * functions. Various callbacks described below.\n - * options - {Object} An optional object with properties to be set on the\n - * handler\n - *\n - * Named callbacks:\n - * create - Called when a sketch is first created. Callback called with\n - * the creation point geometry and sketch feature.\n - * modify - Called with each move of a vertex with the vertex (point)\n - * geometry and the sketch feature.\n - * point - Called as each point is added. Receives the new point geometry.\n - * done - Called when the point drawing is finished. The callback will\n - * recieve a single argument, the polygon geometry.\n - * cancel - Called when the handler is deactivated while drawing. The\n - * cancel callback will receive a geometry.\n - */\n - \n - /**\n - * Method: createFeature\n - * Add temporary geometries\n - *\n - * Parameters:\n - * pixel - {<OpenLayers.Pixel>} The initial pixel location for the new\n - * feature.\n - */\n - createFeature: function(pixel) {\n - var lonlat = this.layer.getLonLatFromViewPortPx(pixel);\n - var geometry = new OpenLayers.Geometry.Point(\n - lonlat.lon, lonlat.lat\n - );\n - this.point = new OpenLayers.Feature.Vector(geometry);\n - this.line = new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.LinearRing([this.point.geometry])\n - );\n - this.polygon = new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.Polygon([this.line.geometry])\n - );\n - this.callback("create", [this.point.geometry, this.getSketch()]);\n - this.point.geometry.clearBounds();\n - this.layer.addFeatures([this.polygon, this.point], {silent: true});\n - },\n -\n - /**\n - * Method: addPoint\n - * Add point to geometry.\n - *\n - * Parameters:\n - * pixel - {<OpenLayers.Pixel>} The pixel location for the new point.\n - */\n - addPoint: function(pixel) {\n - if(!this.drawingHole && this.holeModifier &&\n - this.evt && this.evt[this.holeModifier]) {\n - var geometry = this.point.geometry;\n - var features = this.control.layer.features;\n - var candidate, polygon;\n - // look for intersections, last drawn gets priority\n - for (var i=features.length-1; i>=0; --i) {\n - candidate = features[i].geometry;\n - if ((candidate instanceof OpenLayers.Geometry.Polygon || \n - candidate instanceof OpenLayers.Geometry.MultiPolygon) && \n - candidate.intersects(geometry)) {\n - polygon = features[i];\n - this.control.layer.removeFeatures([polygon], {silent: true});\n - this.control.layer.events.registerPriority(\n - "sketchcomplete", this, this.finalizeInteriorRing\n - );\n - this.control.layer.events.registerPriority(\n - "sketchmodified", this, this.enforceTopology\n - );\n - polygon.geometry.addComponent(this.line.geometry);\n - this.polygon = polygon;\n - this.drawingHole = true;\n - break;\n - }\n - }\n - }\n - OpenLayers.Handler.Path.prototype.addPoint.apply(this, arguments);\n - },\n -\n - /**\n - * Method: getCurrentPointIndex\n - * \n - * Returns:\n - * {Number} The index of the most recently drawn point.\n - */\n - getCurrentPointIndex: function() {\n - return this.line.geometry.components.length - 2;\n - },\n -\n - /**\n - * Method: enforceTopology\n - * Simple topology enforcement for drawing interior rings. Ensures vertices\n - * of interior rings are contained by exterior ring. Other topology \n - * rules are enforced in <finalizeInteriorRing> to allow drawing of \n - * rings that intersect only during the sketch (e.g. a "C" shaped ring\n - * that nearly encloses another ring).\n - */\n - enforceTopology: function(event) {\n - var point = event.vertex;\n - var components = this.line.geometry.components;\n - // ensure that vertices of interior ring are contained by exterior ring\n - if (!this.polygon.geometry.intersects(point)) {\n - var last = components[components.length-3];\n - point.x = last.x;\n - point.y = last.y;\n - }\n - },\n -\n - /**\n - * Method: finishGeometry\n - * Finish the geometry and send it back to the control.\n - */\n - finishGeometry: function() {\n - var index = this.line.geometry.components.length - 2;\n - this.line.geometry.removeComponent(this.line.geometry.components[index]);\n - this.removePoint();\n - this.finalize();\n - },\n -\n - /**\n - * Method: finalizeInteriorRing\n - * Enforces that new ring has some area and doesn\'t contain vertices of any\n - * other rings.\n - */\n - finalizeInteriorRing: function() {\n - var ring = this.line.geometry;\n - // ensure that ring has some area\n - var modified = (ring.getArea() !== 0);\n - if (modified) {\n - // ensure that new ring doesn\'t intersect any other rings\n - var rings = this.polygon.geometry.components;\n - for (var i=rings.length-2; i>=0; --i) {\n - if (ring.intersects(rings[i])) {\n - modified = false;\n - break;\n - }\n - }\n - if (modified) {\n - // ensure that new ring doesn\'t contain any other rings\n - var target;\n - outer: for (var i=rings.length-2; i>0; --i) {\n - var points = rings[i].components;\n - for (var j=0, jj=points.length; j<jj; ++j) {\n - if (ring.containsPoint(points[j])) {\n - modified = false;\n - break outer;\n - }\n - }\n - }\n - }\n - }\n - if (modified) {\n - if (this.polygon.state !== OpenLayers.State.INSERT) {\n - this.polygon.state = OpenLayers.State.UPDATE;\n - }\n - } else {\n - this.polygon.geometry.removeComponent(ring);\n - }\n - this.restoreFeature();\n - return false;\n - },\n -\n - /**\n - * APIMethod: cancel\n - * Finish the geometry and call the "cancel" callback.\n - */\n - cancel: function() {\n - if (this.drawingHole) {\n - this.polygon.geometry.removeComponent(this.line.geometry);\n - this.restoreFeature(true);\n - }\n - return OpenLayers.Handler.Path.prototype.cancel.apply(this, arguments);\n - },\n - \n - /**\n - * Method: restoreFeature\n - * Move the feature from the sketch layer to the target layer.\n - *\n - * Properties: \n - * cancel - {Boolean} Cancel drawing. If falsey, the "sketchcomplete" event\n - * will be fired.\n - */\n - restoreFeature: function(cancel) {\n - this.control.layer.events.unregister(\n - "sketchcomplete", this, this.finalizeInteriorRing\n - );\n - this.control.layer.events.unregister(\n - "sketchmodified", this, this.enforceTopology\n - );\n - this.layer.removeFeatures([this.polygon], {silent: true});\n - this.control.layer.addFeatures([this.polygon], {silent: true});\n - this.drawingHole = false;\n - if (!cancel) {\n - // Re-trigger "sketchcomplete" so other listeners can do their\n - // business. While this is somewhat sloppy (if a listener is \n - // registered with registerPriority - not common - between the start\n - // and end of a single ring drawing - very uncommon - it will be \n - // called twice).\n - // TODO: In 3.0, collapse sketch handlers into geometry specific\n - // drawing controls.\n - this.control.layer.events.triggerEvent(\n - "sketchcomplete", {feature : this.polygon}\n - );\n - }\n - },\n -\n - /**\n - * Method: destroyFeature\n - * Destroy temporary geometries\n - *\n - * Parameters:\n - * force - {Boolean} Destroy even if persist is true.\n - */\n - destroyFeature: function(force) {\n - OpenLayers.Handler.Path.prototype.destroyFeature.call(\n - this, force);\n - this.polygon = null;\n - },\n -\n - /**\n - * Method: drawFeature\n - * Render geometries on the temporary layer.\n - */\n - drawFeature: function() {\n - this.layer.drawFeature(this.polygon, this.style);\n - this.layer.drawFeature(this.point, this.style);\n - },\n - \n - /**\n - * Method: getSketch\n - * Return the sketch feature.\n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector>}\n - */\n - getSketch: function() {\n - return this.polygon;\n - },\n -\n - /**\n - * Method: getGeometry\n - * Return the sketch geometry. If <multi> is true, this will return\n - * a multi-part geometry.\n - *\n - * Returns:\n - * {<OpenLayers.Geometry.Polygon>}\n - */\n - getGeometry: function() {\n - var geometry = this.polygon && this.polygon.geometry;\n - if(geometry && this.multi) {\n - geometry = new OpenLayers.Geometry.MultiPolygon([geometry]);\n - }\n - return geometry;\n - },\n -\n - CLASS_NAME: "OpenLayers.Handler.Polygon"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>10643</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/RegularPolygon.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/RegularPolygon.js.xml deleted file mode 100644 index e29a685e7d575fa76f507e3341739547a016ee3b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Handler/RegularPolygon.js.xml +++ /dev/null @@ -1,473 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.89</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>RegularPolygon.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Handler/Drag.js\n - */\n -\n -/**\n - * Class: OpenLayers.Handler.RegularPolygon\n - * Handler to draw a regular polygon on the map. Polygon is displayed on mouse\n - * down, moves or is modified on mouse move, and is finished on mouse up.\n - * The handler triggers callbacks for \'done\' and \'cancel\'. Create a new\n - * instance with the <OpenLayers.Handler.RegularPolygon> constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Handler.Drag>\n - */\n -OpenLayers.Handler.RegularPolygon = OpenLayers.Class(OpenLayers.Handler.Drag, {\n - \n - /**\n - * APIProperty: sides\n - * {Integer} Number of sides for the regular polygon. Needs to be greater\n - * than 2. Defaults to 4.\n - */\n - sides: 4,\n -\n - /**\n - * APIProperty: radius\n - * {Float} Optional radius in map units of the regular polygon. If this is\n - * set to some non-zero value, a polygon with a fixed radius will be\n - * drawn and dragged with mose movements. If this property is not\n - * set, dragging changes the radius of the polygon. Set to null by\n - * default.\n - */\n - radius: null,\n - \n - /**\n - * APIProperty: snapAngle\n - * {Float} If set to a non-zero value, the handler will snap the polygon\n - * rotation to multiples of the snapAngle. Value is an angle measured\n - * in degrees counterclockwise from the positive x-axis. \n - */\n - snapAngle: null,\n - \n - /**\n - * APIProperty: snapToggle\n - * {String} If set, snapToggle is checked on mouse events and will set\n - * the snap mode to the opposite of what it currently is. To disallow\n - * toggling between snap and non-snap mode, set freehandToggle to\n - * null. Acceptable toggle values are \'shiftKey\', \'ctrlKey\', and\n - * \'altKey\'. Snap mode is only possible if this.snapAngle is set to a\n - * non-zero value.\n - */\n - snapToggle: \'shiftKey\',\n - \n - /**\n - * Property: layerOptions\n - * {Object} Any optional properties to be set on the sketch layer.\n - */\n - layerOptions: null,\n -\n - /**\n - * APIProperty: persist\n - * {Boolean} Leave the feature rendered until clear is called. Default\n - * is false. If set to true, the feature remains rendered until\n - * clear is called, typically by deactivating the handler or starting\n - * another drawing.\n - */\n - persist: false,\n -\n - /**\n - * APIProperty: irregular\n - * {Boolean} Draw an irregular polygon instead of a regular polygon.\n - * Default is false. If true, the initial mouse down will represent\n - * one corner of the polygon bounds and with each mouse movement, the\n - * polygon will be stretched so the opposite corner of its bounds\n - * follows the mouse position. This property takes precedence over\n - * the radius property. If set to true, the radius property will\n - * be ignored.\n - */\n - irregular: false,\n -\n - /**\n - * APIProperty: citeCompliant\n - * {Boolean} If set to true, coordinates of features drawn in a map extent\n - * crossing the date line won\'t exceed the world bounds. Default is false.\n - */\n - citeCompliant: false,\n -\n - /**\n - * Property: angle\n - * {Float} The angle from the origin (mouse down) to the current mouse\n - * position, in radians. This is measured counterclockwise from the\n - * positive x-axis.\n - */\n - angle: null,\n -\n - /**\n - * Property: fixedRadius\n - * {Boolean} The polygon has a fixed radius. True if a radius is set before\n - * drawing begins. False otherwise.\n - */\n - fixedRadius: false,\n -\n - /**\n - * Property: feature\n - * {<OpenLayers.Feature.Vector>} The currently drawn polygon feature\n - */\n - feature: null,\n -\n - /**\n - * Property: layer\n - * {<OpenLayers.Layer.Vector>} The temporary drawing layer\n - */\n - layer: null,\n -\n - /**\n - * Property: origin\n - * {<OpenLayers.Geometry.Point>} Location of the first mouse down\n - */\n - origin: null,\n -\n - /**\n - * Constructor: OpenLayers.Handler.RegularPolygon\n - * Create a new regular polygon handler.\n - *\n - * Parameters:\n - * control - {<OpenLayers.Control>} The control that owns this handler\n - * callbacks - {Object} An object with a properties whose values are\n - * functions. Various callbacks described below.\n - * options - {Object} An object with properties to be set on the handler.\n - * If the options.sides property is not specified, the number of sides\n - * will default to 4.\n - *\n - * Named callbacks:\n - * create - Called when a sketch is first created. Callback called with\n - * the creation point geometry and sketch feature.\n - * done - Called when the sketch drawing is finished. The callback will\n - * recieve a single argument, the sketch geometry.\n - * cancel - Called when the handler is deactivated while drawing. The\n - * cancel callback will receive a geometry.\n - */\n - initialize: function(control, callbacks, options) {\n - if(!(options && options.layerOptions && options.layerOptions.styleMap)) {\n - this.style = OpenLayers.Util.extend(OpenLayers.Feature.Vector.style[\'default\'], {});\n - }\n -\n - OpenLayers.Handler.Drag.prototype.initialize.apply(this,\n - [control, callbacks, options]);\n - this.options = (options) ? options : {};\n - },\n - \n - /**\n - * APIMethod: setOptions\n - * \n - * Parameters:\n - * newOptions - {Object} \n - */\n - setOptions: function (newOptions) {\n - OpenLayers.Util.extend(this.options, newOptions);\n - OpenLayers.Util.extend(this, newOptions);\n - },\n - \n - /**\n - * APIMethod: activate\n - * Turn on the handler.\n - *\n - * Returns:\n - * {Boolean} The handler was successfully activated\n - */\n - activate: function() {\n - var activated = false;\n - if(OpenLayers.Handler.Drag.prototype.activate.apply(this, arguments)) {\n - // create temporary vector layer for rendering geometry sketch\n - var options = OpenLayers.Util.extend({\n - displayInLayerSwitcher: false,\n - // indicate that the temp vector layer will never be out of range\n - // without this, resolution properties must be specified at the\n - // map-level for this temporary layer to init its resolutions\n - // correctly\n - calculateInRange: OpenLayers.Function.True,\n - wrapDateLine: this.citeCompliant\n - }, this.layerOptions);\n - this.layer = new OpenLayers.Layer.Vector(this.CLASS_NAME, options);\n - this.map.addLayer(this.layer);\n - activated = true;\n - }\n - return activated;\n - },\n -\n - /**\n - * APIMethod: deactivate\n - * Turn off the handler.\n - *\n - * Returns:\n - * {Boolean} The handler was successfully deactivated\n - */\n - deactivate: function() {\n - var deactivated = false;\n - if(OpenLayers.Handler.Drag.prototype.deactivate.apply(this, arguments)) {\n - // call the cancel callback if mid-drawing\n - if(this.dragging) {\n - this.cancel();\n - }\n - // If a layer\'s map property is set to null, it means that that\n - // layer isn\'t added to the map. Since we ourself added the layer\n - // to the map in activate(), we can assume that if this.layer.map\n - // is null it means that the layer has been destroyed (as a result\n - // of map.destroy() for example.\n - if (this.layer.map != null) {\n - this.layer.destroy(false);\n - if (this.feature) {\n - this.feature.destroy();\n - }\n - }\n - this.layer = null;\n - this.feature = null;\n - deactivated = true;\n - }\n - return deactivated;\n - },\n - \n - /**\n - * Method: down\n - * Start drawing a new feature\n - *\n - * Parameters:\n - * evt - {Event} The drag start event\n - */\n - down: function(evt) {\n - this.fixedRadius = !!(this.radius);\n - var maploc = this.layer.getLonLatFromViewPortPx(evt.xy); \n - this.origin = new OpenLayers.Geometry.Point(maploc.lon, maploc.lat);\n - // create the new polygon\n - if(!this.fixedRadius || this.irregular) {\n - // smallest radius should not be less one pixel in map units\n - // VML doesn\'t behave well with smaller\n - this.radius = this.map.getResolution();\n - }\n - if(this.persist) {\n - this.clear();\n - }\n - this.feature = new OpenLayers.Feature.Vector();\n - this.createGeometry();\n - this.callback("create", [this.origin, this.feature]);\n - this.layer.addFeatures([this.feature], {silent: true});\n - this.layer.drawFeature(this.feature, this.style);\n - },\n - \n - /**\n - * Method: move\n - * Respond to drag move events\n - *\n - * Parameters:\n - * evt - {Evt} The move event\n - */\n - move: function(evt) {\n - var maploc = this.layer.getLonLatFromViewPortPx(evt.xy); \n - var point = new OpenLayers.Geometry.Point(maploc.lon, maploc.lat);\n - if(this.irregular) {\n - var ry = Math.sqrt(2) * Math.abs(point.y - this.origin.y) / 2;\n - this.radius = Math.max(this.map.getResolution() / 2, ry);\n - } else if(this.fixedRadius) {\n - this.origin = point;\n - } else {\n - this.calculateAngle(point, evt);\n - this.radius = Math.max(this.map.getResolution() / 2,\n - point.distanceTo(this.origin));\n - }\n - this.modifyGeometry();\n - if(this.irregular) {\n - var dx = point.x - this.origin.x;\n - var dy = point.y - this.origin.y;\n - var ratio;\n - if(dy == 0) {\n - ratio = dx / (this.radius * Math.sqrt(2));\n - } else {\n - ratio = dx / dy;\n - }\n - this.feature.geometry.resize(1, this.origin, ratio);\n - this.feature.geometry.move(dx / 2, dy / 2);\n - }\n - this.layer.drawFeature(this.feature, this.style);\n - },\n -\n - /**\n - * Method: up\n - * Finish drawing the feature\n - *\n - * Parameters:\n - * evt - {Event} The mouse up event\n - */\n - up: function(evt) {\n - this.finalize();\n - // the mouseup method of superclass doesn\'t call the\n - // "done" callback if there\'s been no move between\n - // down and up\n - if (this.start == this.last) {\n - this.callback("done", [evt.xy]);\n - }\n - },\n -\n - /**\n - * Method: out\n - * Finish drawing the feature.\n - *\n - * Parameters:\n - * evt - {Event} The mouse out event\n - */\n - out: function(evt) {\n - this.finalize();\n - },\n -\n - /**\n - * Method: createGeometry\n - * Create the new polygon geometry. This is called at the start of the\n - * drag and at any point during the drag if the number of sides\n - * changes.\n - */\n - createGeometry: function() {\n - this.angle = Math.PI * ((1/this.sides) - (1/2));\n - if(this.snapAngle) {\n - this.angle += this.snapAngle * (Math.PI / 180);\n - }\n - this.feature.geometry = OpenLayers.Geometry.Polygon.createRegularPolygon(\n - this.origin, this.radius, this.sides, this.snapAngle\n - );\n - },\n - \n - /**\n - * Method: modifyGeometry\n - * Modify the polygon geometry in place.\n - */\n - modifyGeometry: function() {\n - var angle, point;\n - var ring = this.feature.geometry.components[0];\n - // if the number of sides ever changes, create a new geometry\n - if(ring.components.length != (this.sides + 1)) {\n - this.createGeometry();\n - ring = this.feature.geometry.components[0];\n - }\n - for(var i=0; i<this.sides; ++i) {\n - point = ring.components[i];\n - angle = this.angle + (i * 2 * Math.PI / this.sides);\n - point.x = this.origin.x + (this.radius * Math.cos(angle));\n - point.y = this.origin.y + (this.radius * Math.sin(angle));\n - point.clearBounds();\n - }\n - },\n - \n - /**\n - * Method: calculateAngle\n - * Calculate the angle based on settings.\n - *\n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>}\n - * evt - {Event}\n - */\n - calculateAngle: function(point, evt) {\n - var alpha = Math.atan2(point.y - this.origin.y,\n - point.x - this.origin.x);\n - if(this.snapAngle && (this.snapToggle && !evt[this.snapToggle])) {\n - var snapAngleRad = (Math.PI / 180) * this.snapAngle;\n - this.angle = Math.round(alpha / snapAngleRad) * snapAngleRad;\n - } else {\n - this.angle = alpha;\n - }\n - },\n -\n - /**\n - * APIMethod: cancel\n - * Finish the geometry and call the "cancel" callback.\n - */\n - cancel: function() {\n - // the polygon geometry gets cloned in the callback method\n - this.callback("cancel", null);\n - this.finalize();\n - },\n -\n - /**\n - * Method: finalize\n - * Finish the geometry and call the "done" callback.\n - */\n - finalize: function() {\n - this.origin = null;\n - this.radius = this.options.radius;\n - },\n -\n - /**\n - * APIMethod: clear\n - * Clear any rendered features on the temporary layer. This is called\n - * when the handler is deactivated, canceled, or done (unless persist\n - * is true).\n - */\n - clear: function() {\n - if (this.layer) {\n - this.layer.renderer.clear();\n - this.layer.destroyFeatures();\n - }\n - },\n - \n - /**\n - * Method: callback\n - * Trigger the control\'s named callback with the given arguments\n - *\n - * Parameters:\n - * name - {String} The key for the callback that is one of the properties\n - * of the handler\'s callbacks object.\n - * args - {Array} An array of arguments with which to call the callback\n - * (defined by the control).\n - */\n - callback: function (name, args) {\n - // override the callback method to always send the polygon geometry\n - if (this.callbacks[name]) {\n - this.callbacks[name].apply(this.control,\n - [this.feature.geometry.clone()]);\n - }\n - // since sketch features are added to the temporary layer\n - // they must be cleared here if done or cancel\n - if(!this.persist && (name == "done" || name == "cancel")) {\n - this.clear();\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Handler.RegularPolygon"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>14706</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Icon.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Icon.js.xml deleted file mode 100644 index bad0c23de97d51b1905fad61a67fa542cad06524..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Icon.js.xml +++ /dev/null @@ -1,287 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.76</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Icon.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - */\n -\n -/**\n - * Class: OpenLayers.Icon\n - * \n - * The icon represents a graphical icon on the screen. Typically used in\n - * conjunction with a <OpenLayers.Marker> to represent markers on a screen.\n - *\n - * An icon has a url, size and position. It also contains an offset which \n - * allows the center point to be represented correctly. This can be\n - * provided either as a fixed offset or a function provided to calculate\n - * the desired offset. \n - * \n - */\n -OpenLayers.Icon = OpenLayers.Class({\n - \n - /** \n - * Property: url \n - * {String} image url\n - */\n - url: null,\n - \n - /** \n - * Property: size \n - * {<OpenLayers.Size>|Object} An OpenLayers.Size or\n - * an object with a \'w\' and \'h\' properties.\n - */\n - size: null,\n -\n - /** \n - * Property: offset \n - * {<OpenLayers.Pixel>|Object} distance in pixels to offset the\n - * image when being rendered. An OpenLayers.Pixel or an object\n - * with a \'x\' and \'y\' properties.\n - */\n - offset: null, \n - \n - /** \n - * Property: calculateOffset \n - * {Function} Function to calculate the offset (based on the size)\n - */\n - calculateOffset: null, \n - \n - /** \n - * Property: imageDiv \n - * {DOMElement} \n - */\n - imageDiv: null,\n -\n - /** \n - * Property: px \n - * {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or an object\n - * with a \'x\' and \'y\' properties.\n - */\n - px: null,\n - \n - /** \n - * Constructor: OpenLayers.Icon\n - * Creates an icon, which is an image tag in a div. \n - *\n - * url - {String} \n - * size - {<OpenLayers.Size>|Object} An OpenLayers.Size or an\n - * object with a \'w\' and \'h\'\n - * properties.\n - * offset - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or an\n - * object with a \'x\' and \'y\'\n - * properties.\n - * calculateOffset - {Function} \n - */\n - initialize: function(url, size, offset, calculateOffset) {\n - this.url = url;\n - this.size = size || {w: 20, h: 20};\n - this.offset = offset || {x: -(this.size.w/2), y: -(this.size.h/2)};\n - this.calculateOffset = calculateOffset;\n -\n - var id = OpenLayers.Util.createUniqueID("OL_Icon_");\n - this.imageDiv = OpenLayers.Util.createAlphaImageDiv(id);\n - },\n - \n - /** \n - * Method: destroy\n - * Nullify references and remove event listeners to prevent circular \n - * references and memory leaks\n - */\n - destroy: function() {\n - // erase any drawn elements\n - this.erase();\n -\n - OpenLayers.Event.stopObservingElement(this.imageDiv.firstChild); \n - this.imageDiv.innerHTML = "";\n - this.imageDiv = null;\n - },\n -\n - /** \n - * Method: clone\n - * \n - * Returns:\n - * {<OpenLayers.Icon>} A fresh copy of the icon.\n - */\n - clone: function() {\n - return new OpenLayers.Icon(this.url, \n - this.size, \n - this.offset, \n - this.calculateOffset);\n - },\n - \n - /**\n - * Method: setSize\n - * \n - * Parameters:\n - * size - {<OpenLayers.Size>|Object} An OpenLayers.Size or\n - * an object with a \'w\' and \'h\' properties.\n - */\n - setSize: function(size) {\n - if (size != null) {\n - this.size = size;\n - }\n - this.draw();\n - },\n - \n - /**\n - * Method: setUrl\n - * \n - * Parameters:\n - * url - {String} \n - */\n - setUrl: function(url) {\n - if (url != null) {\n - this.url = url;\n - }\n - this.draw();\n - },\n -\n - /** \n - * Method: draw\n - * Move the div to the given pixel.\n - * \n - * Parameters:\n - * px - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or an\n - * object with a \'x\' and \'y\' properties.\n - * \n - * Returns:\n - * {DOMElement} A new DOM Image of this icon set at the location passed-in\n - */\n - draw: function(px) {\n - OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, \n - null, \n - null, \n - this.size, \n - this.url, \n - "absolute");\n - this.moveTo(px);\n - return this.imageDiv;\n - }, \n -\n - /** \n - * Method: erase\n - * Erase the underlying image element.\n - */\n - erase: function() {\n - if (this.imageDiv != null && this.imageDiv.parentNode != null) {\n - OpenLayers.Element.remove(this.imageDiv);\n - }\n - }, \n - \n - /** \n - * Method: setOpacity\n - * Change the icon\'s opacity\n - *\n - * Parameters:\n - * opacity - {float} \n - */\n - setOpacity: function(opacity) {\n - OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, null, null, \n - null, null, null, null, opacity);\n -\n - },\n - \n - /**\n - * Method: moveTo\n - * move icon to passed in px.\n - *\n - * Parameters:\n - * px - {<OpenLayers.Pixel>|Object} the pixel position to move to.\n - * An OpenLayers.Pixel or an object with a \'x\' and \'y\' properties.\n - */\n - moveTo: function (px) {\n - //if no px passed in, use stored location\n - if (px != null) {\n - this.px = px;\n - }\n -\n - if (this.imageDiv != null) {\n - if (this.px == null) {\n - this.display(false);\n - } else {\n - if (this.calculateOffset) {\n - this.offset = this.calculateOffset(this.size); \n - }\n - OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, {\n - x: this.px.x + this.offset.x,\n - y: this.px.y + this.offset.y\n - });\n - }\n - }\n - },\n - \n - /** \n - * Method: display\n - * Hide or show the icon\n - *\n - * Parameters:\n - * display - {Boolean} \n - */\n - display: function(display) {\n - this.imageDiv.style.display = (display) ? "" : "none"; \n - },\n - \n -\n - /**\n - * APIMethod: isDrawn\n - * \n - * Returns:\n - * {Boolean} Whether or not the icon is drawn.\n - */\n - isDrawn: function() {\n - // nodeType 11 for ie, whose nodes *always* have a parentNode\n - // (of type document fragment)\n - var isDrawn = (this.imageDiv && this.imageDiv.parentNode && \n - (this.imageDiv.parentNode.nodeType != 11)); \n -\n - return isDrawn; \n - },\n -\n - CLASS_NAME: "OpenLayers.Icon"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6817</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Kinetic.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Kinetic.js.xml deleted file mode 100644 index 61df849489c6db64f1e4f0435b5b2275db853130..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Kinetic.js.xml +++ /dev/null @@ -1,222 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Kinetic.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Animation.js\n - */\n -\n -OpenLayers.Kinetic = OpenLayers.Class({\n -\n - /**\n - * Property: threshold\n - * In most cases changing the threshold isn\'t needed.\n - * In px/ms, default to 0.\n - */\n - threshold: 0,\n -\n - /**\n - * Property: deceleration\n - * {Float} the deseleration in px/ms², default to 0.0035.\n - */\n - deceleration: 0.0035,\n -\n - /**\n - * Property: nbPoints\n - * {Integer} the number of points we use to calculate the kinetic\n - * initial values.\n - */\n - nbPoints: 100,\n -\n - /**\n - * Property: delay\n - * {Float} time to consider to calculate the kinetic initial values.\n - * In ms, default to 200.\n - */\n - delay: 200,\n -\n - /**\n - * Property: points\n - * List of points use to calculate the kinetic initial values.\n - */\n - points: undefined,\n -\n - /**\n - * Property: timerId\n - * ID of the timer.\n - */\n - timerId: undefined,\n -\n - /**\n - * Constructor: OpenLayers.Kinetic\n - *\n - * Parameters:\n - * options - {Object}\n - */\n - initialize: function(options) {\n - OpenLayers.Util.extend(this, options);\n - },\n -\n - /**\n - * Method: begin\n - * Begins the dragging.\n - */\n - begin: function() {\n - OpenLayers.Animation.stop(this.timerId);\n - this.timerId = undefined;\n - this.points = [];\n - },\n -\n - /**\n - * Method: update\n - * Updates during the dragging.\n - *\n - * Parameters:\n - * xy - {<OpenLayers.Pixel>} The new position.\n - */\n - update: function(xy) {\n - this.points.unshift({xy: xy, tick: new Date().getTime()});\n - if (this.points.length > this.nbPoints) {\n - this.points.pop();\n - }\n - },\n -\n - /**\n - * Method: end\n - * Ends the dragging, start the kinetic.\n - *\n - * Parameters:\n - * xy - {<OpenLayers.Pixel>} The last position.\n - *\n - * Returns:\n - * {Object} An object with two properties: "speed", and "theta". The\n - * "speed" and "theta" values are to be passed to the move \n - * function when starting the animation.\n - */\n - end: function(xy) {\n - var last, now = new Date().getTime();\n - for (var i = 0, l = this.points.length, point; i < l; i++) {\n - point = this.points[i];\n - if (now - point.tick > this.delay) {\n - break;\n - }\n - last = point;\n - }\n - if (!last) {\n - return;\n - }\n - var time = new Date().getTime() - last.tick;\n - var dist = Math.sqrt(Math.pow(xy.x - last.xy.x, 2) +\n - Math.pow(xy.y - last.xy.y, 2));\n - var speed = dist / time;\n - if (speed == 0 || speed < this.threshold) {\n - return;\n - }\n - var theta = Math.asin((xy.y - last.xy.y) / dist);\n - if (last.xy.x <= xy.x) {\n - theta = Math.PI - theta;\n - }\n - return {speed: speed, theta: theta};\n - },\n -\n - /**\n - * Method: move\n - * Launch the kinetic move pan.\n - *\n - * Parameters:\n - * info - {Object} An object with two properties, "speed", and "theta".\n - * These values are those returned from the "end" call.\n - * callback - {Function} Function called on every step of the animation,\n - * receives x, y (values to pan), end (is the last point).\n - */\n - move: function(info, callback) {\n - var v0 = info.speed;\n - var fx = Math.cos(info.theta);\n - var fy = -Math.sin(info.theta);\n -\n - var initialTime = new Date().getTime();\n -\n - var lastX = 0;\n - var lastY = 0;\n -\n - var timerCallback = function() {\n - if (this.timerId == null) {\n - return;\n - }\n -\n - var t = new Date().getTime() - initialTime;\n -\n - var p = (-this.deceleration * Math.pow(t, 2)) / 2.0 + v0 * t;\n - var x = p * fx;\n - var y = p * fy;\n -\n - var args = {};\n - args.end = false;\n - var v = -this.deceleration * t + v0;\n -\n - if (v <= 0) {\n - OpenLayers.Animation.stop(this.timerId);\n - this.timerId = null;\n - args.end = true;\n - }\n -\n - args.x = x - lastX;\n - args.y = y - lastY;\n - lastX = x;\n - lastY = y;\n - callback(args.x, args.y, args.end);\n - };\n -\n - this.timerId = OpenLayers.Animation.start(\n - OpenLayers.Function.bind(timerCallback, this)\n - );\n - },\n -\n - CLASS_NAME: "OpenLayers.Kinetic"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4700</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang.js.xml deleted file mode 100644 index 40900105744975354f665795b24bd31fe2e8b5b1..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang.js.xml +++ /dev/null @@ -1,178 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Lang.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes.js\n - * @requires OpenLayers/Console.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang\n - * Internationalization namespace. Contains dictionaries in various languages\n - * and methods to set and get the current language.\n - */\n -OpenLayers.Lang = {\n - \n - /** \n - * Property: code\n - * {String} Current language code to use in OpenLayers. Use the\n - * <setCode> method to set this value and the <getCode> method to\n - * retrieve it.\n - */\n - code: null,\n -\n - /** \n - * APIProperty: defaultCode\n - * {String} Default language to use when a specific language can\'t be\n - * found. Default is "en".\n - */\n - defaultCode: "en",\n - \n - /**\n - * APIFunction: getCode\n - * Get the current language code.\n - *\n - * Returns:\n - * {String} The current language code.\n - */\n - getCode: function() {\n - if(!OpenLayers.Lang.code) {\n - OpenLayers.Lang.setCode();\n - }\n - return OpenLayers.Lang.code;\n - },\n - \n - /**\n - * APIFunction: setCode\n - * Set the language code for string translation. This code is used by\n - * the <OpenLayers.Lang.translate> method.\n - *\n - * Parameters:\n - * code - {String} These codes follow the IETF recommendations at\n - * http://www.ietf.org/rfc/rfc3066.txt. If no value is set, the\n - * browser\'s language setting will be tested. If no <OpenLayers.Lang>\n - * dictionary exists for the code, the <OpenLayers.String.defaultLang>\n - * will be used.\n - */\n - setCode: function(code) {\n - var lang;\n - if(!code) {\n - code = (OpenLayers.BROWSER_NAME == "msie") ?\n - navigator.userLanguage : navigator.language;\n - }\n - var parts = code.split(\'-\');\n - parts[0] = parts[0].toLowerCase();\n - if(typeof OpenLayers.Lang[parts[0]] == "object") {\n - lang = parts[0];\n - }\n -\n - // check for regional extensions\n - if(parts[1]) {\n - var testLang = parts[0] + \'-\' + parts[1].toUpperCase();\n - if(typeof OpenLayers.Lang[testLang] == "object") {\n - lang = testLang;\n - }\n - }\n - if(!lang) {\n - OpenLayers.Console.warn(\n - \'Failed to find OpenLayers.Lang.\' + parts.join("-") +\n - \' dictionary, falling back to default language\'\n - );\n - lang = OpenLayers.Lang.defaultCode;\n - }\n - \n - OpenLayers.Lang.code = lang;\n - },\n -\n - /**\n - * APIMethod: translate\n - * Looks up a key from a dictionary based on the current language string.\n - * The value of <getCode> will be used to determine the appropriate\n - * dictionary. Dictionaries are stored in <OpenLayers.Lang>.\n - *\n - * Parameters:\n - * key - {String} The key for an i18n string value in the dictionary.\n - * context - {Object} Optional context to be used with\n - * <OpenLayers.String.format>.\n - * \n - * Returns:\n - * {String} A internationalized string.\n - */\n - translate: function(key, context) {\n - var dictionary = OpenLayers.Lang[OpenLayers.Lang.getCode()];\n - var message = dictionary && dictionary[key];\n - if(!message) {\n - // Message not found, fall back to message key\n - message = key;\n - }\n - if(context) {\n - message = OpenLayers.String.format(message, context);\n - }\n - return message;\n - }\n - \n -};\n -\n -\n -/**\n - * APIMethod: OpenLayers.i18n\n - * Alias for <OpenLayers.Lang.translate>. Looks up a key from a dictionary\n - * based on the current language string. The value of\n - * <OpenLayers.Lang.getCode> will be used to determine the appropriate\n - * dictionary. Dictionaries are stored in <OpenLayers.Lang>.\n - *\n - * Parameters:\n - * key - {String} The key for an i18n string value in the dictionary.\n - * context - {Object} Optional context to be used with\n - * <OpenLayers.String.format>.\n - * \n - * Returns:\n - * {String} A internationalized string.\n - */\n -OpenLayers.i18n = OpenLayers.Lang.translate;\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4268</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang.xml deleted file mode 100644 index 8de54462723eda1afa59cf1ddc87136b6707a2dd..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Lang</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Lang</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ar.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ar.js.xml deleted file mode 100644 index 0570373329661b4ed26c81973ca1ff1475528693..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ar.js.xml +++ /dev/null @@ -1,76 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ar.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Meno25\n - * - Mutarjem horr\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["ar"]\n - * Dictionary for العربية. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["ar"] = OpenLayers.Util.applyDefaults({\n -\n - \'Permalink\': "وصلة دائمة",\n -\n - \'Base Layer\': "الطبقة الاساسية",\n -\n - \'Scale = 1 : ${scaleDenom}\': "النسبة = 1 : ${scaleDenom}",\n -\n - \'W\': "غ",\n -\n - \'E\': "شر",\n -\n - \'N\': "شم",\n -\n - \'S\': "ج"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>662</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/be-tarask.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/be-tarask.js.xml deleted file mode 100644 index 56f5bc3706b84cd4566b9a10b9cb29f7ac25dc2b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/be-tarask.js.xml +++ /dev/null @@ -1,98 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>be-tarask.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - EugeneZelenko\n - * - Jim-by\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["be-tarask"]\n - * Dictionary for БеларуÑÐºÐ°Ñ (тарашкевіца). Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["be-tarask"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Ðеапрацаваны вынік запыту ${statusText}",\n -\n - \'Permalink\': "Ð¡Ñ‚Ð°Ð»Ð°Ñ ÑпаÑылка",\n -\n - \'Overlays\': "Слаі",\n -\n - \'Base Layer\': "Базавы Ñлой",\n -\n - \'noFID\': "Ðемагчыма абнавіць магчымаÑьць, Ð´Ð»Ñ Ñкога не Ñ–Ñнуе FID.",\n -\n - \'browserNotSupported\': "Ваш браўзÑÑ€ не падтрымлівае вÑктарную графіку. У цÑперашні момант падтрымліваюцца: ${renderers}",\n -\n - \'minZoomLevelError\': "УлаÑьціваÑьць minZoomLevel прызначана толькі Ð´Ð»Ñ Ð²Ñ‹ÐºÐ°Ñ€Ñ‹ÑÑ‚Ð°Ð½ÑŒÐ½Ñ Ñа ÑлаÑмі вытворнымі ад FixedZoomLevels. Тое, што гÑÑ‚Ñ‹ wfs-Ñлой правÑраецца на minZoomLevel — Ñ€Ñха прошлага. Ðле мы Ð½Ñ Ð¼Ð¾Ð¶Ð°Ð¼ выдаліць гÑтую магчымаÑьць, таму што ад Ñе залежаць Ð½ÐµÐºÐ°Ñ‚Ð¾Ñ€Ñ‹Ñ Ð·Ð°ÑÐ½Ð°Ð²Ð°Ð½Ñ‹Ñ Ð½Ð° OL даÑтаÑаваньні. Тым Ð½Ñ Ð¼ÐµÐ½Ñˆ, праверка minZoomLevel будзе Ð²Ñ‹Ð´Ð°Ð»ÐµÐ½Ð°Ñ Ñž вÑÑ€ÑÑ–Ñ– 3.0. Калі лаÑка, выкарыÑтоўваеце замеÑÑ‚ Ñе ÑžÑтаноўкі мінімальнага/макÑымальнага памераў, Ñк апіÑана тут: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "WFS-транзакцыÑ: ПОСЬПЕХ ${response}",\n -\n - \'commitFailed\': "WFS-транзакцыÑ: ПÐМЫЛКР${response}",\n -\n - \'googleWarning\': "Ðе атрымалаÑÑ Ð·Ð°Ð³Ñ€ÑƒÐ·Ñ–Ñ†ÑŒ Ñлой Google. \\x3cbr\\x3e\\x3cbr\\x3eКаб пазбавіцца гÑтага паведамленьнÑ, выберыце новы базавы Ñлой у ÑьпіÑе Ñž верхнім правым куце.\\x3cbr\\x3e\\x3cbr\\x3e ХутчÑй за ÑžÑÑ‘, прычына Ñž тым, што Ñкрыпт бібліÑÑ‚Ñкі Google Maps Ð½Ñ Ð±Ñ‹Ñž ÑƒÐºÐ»ÑŽÑ‡Ð°Ð½Ñ‹Ñ Ð°Ð»ÑŒÐ±Ð¾ не ўтрымлівае Ñлушны API-ключ Ð´Ð»Ñ Ð’Ð°ÑˆÐ°Ð³Ð° Ñайта.\\x3cbr\\x3e\\x3cbr\\x3eРаÑпрацоўшчыкам: Ð”Ð»Ñ Ñ‚Ð°Ð³Ð¾, каб даведацца Ñк зрабіць так, каб уÑÑ‘ працавала, \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3eнаціÑьніце тут\\x3c/a\\x3e",\n -\n - \'getLayerWarning\': "Ðемагчыма загрузіць Ñлой ${layerType}.\\x3cbr\\x3e\\x3cbr\\x3eКаб пазбавіцца гÑтага паведамленьнÑ, выберыце новы базавы Ñлой у ÑьпіÑе Ñž верхнім правым куце.\\x3cbr\\x3e\\x3cbr\\x3eХутчÑй за ÑžÑÑ‘, прычына Ñž тым, што Ñкрыпт бібліÑÑ‚Ñкі ${layerLib} Ð½Ñ Ð±Ñ‹Ñž Ñлушна ўключаны.\\x3cbr\\x3e\\x3cbr\\x3eРаÑпрацоўшчыкам: Ð”Ð»Ñ Ñ‚Ð°Ð³Ð¾, каб даведацца Ñк зрабіць так, каб уÑÑ‘ працавала, \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3eнаціÑьніце тут\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Маштаб = 1 : ${scaleDenom}",\n -\n - \'W\': "З",\n -\n - \'E\': "У",\n -\n - \'N\': "Пн",\n -\n - \'S\': "Пд",\n -\n - \'reprojectDeprecated\': "Ð’Ñ‹ выкарыÑтоўваеце ÑžÑтаноўку \\\'reproject\\\' Ð´Ð»Ñ ÑÐ»Ð¾Ñ ${layerName}. ГÑÑ‚Ð°Ñ ÑžÑтаноўка зьÑўлÑецца ÑаÑтарÑлай: Ñна выкарыÑтоўвалаÑÑ Ð´Ð»Ñ Ð¿Ð°Ð´Ñ‚Ñ€Ñ‹Ð¼ÐºÑ– паказу зьвеÑтак на камÑрцыйных базавых мапах, але гÑта Ñ„ÑƒÐ½ÐºÑ†Ñ‹Ñ Ñ†Ñпер Ñ€ÑÐ°Ð»Ñ–Ð·Ð°Ð²Ð°Ð½Ð°Ñ Ñž убудаванай падтрымцы ÑÑ„Ñрычнай праекцыі ÐœÑркатара. Ð”Ð°Ð´Ð°Ñ‚ÐºÐ¾Ð²Ð°Ñ Ñ–Ð½Ñ„Ð°Ñ€Ð¼Ð°Ñ†Ñ‹Ñ Ñ‘Ñьць на http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "ГÑÑ‚Ñ‹ мÑтад ÑаÑтарÑлы Ñ– будзе выдалены Ñž вÑÑ€ÑÑ–Ñ– 3.0. Калі лаÑка, замеÑÑ‚ Ñго выкарыÑтоўвайце ${newMethod}."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4500</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/bg.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/bg.js.xml deleted file mode 100644 index b2dd89b1f4252a4ce0629f2ffb8f7dd1abbdb762..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/bg.js.xml +++ /dev/null @@ -1,69 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.87</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>bg.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - DCLXVI\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["bg"]\n - * Dictionary for БългарÑки. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["bg"] = OpenLayers.Util.applyDefaults({\n -\n - \'Permalink\': "ПоÑтоÑнна препратка",\n -\n - \'Base Layer\': "ОÑновен Ñлой",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Мащаб = 1 : ${scaleDenom}",\n -\n - \'methodDeprecated\': "Този метод е оÑтарÑл и ще бъде премахват в 3.0. ВмеÑто него използвайте ${newMethod}."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>757</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/br.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/br.js.xml deleted file mode 100644 index bc80ae0df65fbc3e85cffbd55bac460150c99a6b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/br.js.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>br.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Fulup\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["br"]\n - * Dictionary for Brezhoneg. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["br"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Distro evel reked anveret ${statusText}",\n -\n - \'Permalink\': "Peurliamm",\n -\n - \'Overlays\': "Gwiskadoù",\n -\n - \'Base Layer\': "Gwiskad diazez",\n -\n - \'noFID\': "N\\\'haller ket hizivaat un elfenn ma n\\\'eus ket a niverenn-anaout (FID) eviti.",\n -\n - \'browserNotSupported\': "N\\\'eo ket skoret an daskor vektorel gant ho merdeer. Setu aze an daskorerioù skoret evit ar poent :\\n${renderers}",\n -\n - \'minZoomLevelError\': "Ne zleer implijout ar perzh minZoomLevel nemet evit gwiskadoù FixedZoomLevels-descendent. Ar fed ma wiria ar gwiskad WHS-se hag-eñ ez eus eus minZoomLevel zo un aspadenn gozh. Koulskoude n\\\'omp ket evit e ziverkañ kuit da derriñ arloadoù diazezet war OL a c\\\'hallfe bezañ stag outañ. Setu perak eo dispredet -- Lamet kuit e vo ar gwiriañ minZoomLevel a-is er stumm 3.0. Ober gant an arventennoù bihanañ/brasañ evel deskrivet amañ e plas : http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Treuzgread WFS : MAT EO ${response}",\n -\n - \'commitFailed\': "Treuzgread WFS Transaction: C\\\'HWITET ${response}",\n -\n - \'googleWarning\': "N\\\'eus ket bet gallet kargañ ar gwiskad Google ent reizh.\\x3cbr\\x3e\\x3cbr\\x3eEvit en em zizober eus ar c\\\'hemenn-mañ, dibabit ur BaseLayer nevez en diuzer gwiskadoù er c\\\'horn dehoù el laez.\\x3cbr\\x3e\\x3cbr\\x3eSur a-walc\\\'h eo peogwir n\\\'eo ket bet ensoc\\\'het levraoueg Google Maps pe neuze ne glot ket an alc\\\'hwez API gant ho lec\\\'hienn.\\x3cbr\\x3e\\x3cbr\\x3eDiorroerien : Evit reizhañ an dra-se, \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3eclick here\\x3c/a\\x3e",\n -\n - \'getLayerWarning\': "N\\\'haller ket kargañ ar gwiskad ${layerType} ent reizh.\\x3cbr\\x3e\\x3cbr\\x3eEvit en em zizober eus ar c\\\'hemenn-mañ, dibabit ur BaseLayer nevez en diuzer gwiskadoù er c\\\'horn dehoù el laez.\\x3cbr\\x3e\\x3cbr\\x3eSur a-walc\\\'h eo peogwir n\\\'eo ket bet ensoc\\\'het mat al levraoueg ${layerLib}.\\x3cbr\\x3e\\x3cbr\\x3eDiorroerien : Evit gouzout penaos reizhañ an dra-se, \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3eclick here\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Skeul = 1 : ${scaleDenom}",\n -\n - \'W\': "K",\n -\n - \'E\': "R",\n -\n - \'N\': "N",\n -\n - \'S\': "S",\n -\n - \'reprojectDeprecated\': "Emaoc\\\'h oc\\\'h implijout an dibarzh \\\'reproject\\\' war ar gwiskad ${layerName}. Dispredet eo an dibarzh-mañ : bet eo hag e talveze da ziskwel roadennoù war-c\\\'horre kartennoù diazez kenwerzhel, un dra hag a c\\\'haller ober bremañ gant an arc\\\'hwel dre skor banndres boullek Mercator. Muioc\\\'h a ditouroù a c\\\'haller da gaout war http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Dispredet eo an daore-se ha tennet e vo kuit eus ar stumm 3.0. Grit gant ${newMethod} e plas."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3153</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ca.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ca.js.xml deleted file mode 100644 index 007c86b90b2cef8a13e4a93538120ba1edda83fc..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ca.js.xml +++ /dev/null @@ -1,133 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ca.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["ca"]\n - * Dictionary for Catalan, UTF8 encoding. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang.ca = {\n -\n - \'unhandledRequest\': "Resposta a petició no gestionada ${statusText}",\n -\n - \'Permalink\': "Enllaç permanent",\n -\n - \'Overlays\': "Capes addicionals",\n -\n - \'Base Layer\': "Capa Base",\n -\n - \'noFID\': "No es pot actualitzar un element per al que no existeix FID.",\n -\n - \'browserNotSupported\':\n - "El seu navegador no suporta renderització vectorial. Els renderitzadors suportats actualment són:\\n${renderers}",\n -\n - // console message\n - \'minZoomLevelError\':\n - "La propietat minZoomLevel s\'ha d\'utilitzar només " +\n - "amb les capes que tenen FixedZoomLevels. El fet que " +\n - "una capa wfs comprovi minZoomLevel és una relÃquia del " +\n - "passat. No podem, però, eliminar-la sense trencar " +\n - "les aplicacions d\'OpenLayers que en puguin dependre. " +\n - "Aixà doncs estem fent-la obsoleta -- la comprovació " +\n - "minZoomLevel s\'eliminarà a la versió 3.0. Feu servir " +\n - "els parà metres min/max resolution en substitució, tal com es descriu aquÃ: " +\n - "http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Transacció WFS: CORRECTA ${response}",\n -\n - \'commitFailed\': "Transacció WFS: HA FALLAT ${response}",\n -\n - \'googleWarning\':\n - "La capa Google no s\'ha pogut carregar correctament.<br><br>" +\n - "Per evitar aquest missatge, seleccioneu una nova Capa Base " +\n - "al gestor de capes de la cantonada superior dreta.<br><br>" +\n - "Probablement això és degut a que l\'script de la biblioteca de " +\n - "Google Maps no ha estat inclòs a la vostra pà gina, o no " +\n - "conté la clau de l\'API correcta per a la vostra adreça.<br><br>" +\n - "Desenvolupadors: Per obtenir consells sobre com fer anar això, " +\n - "<a href=\'http://trac.openlayers.org/wiki/Google\' " +\n - "target=\'_blank\'>féu clic aquÃ</a>",\n -\n - \'getLayerWarning\':\n - "Per evitar aquest missatge, seleccioneu una nova Capa Base " +\n - "al gestor de capes de la cantonada superior dreta.<br><br>" +\n - "Probablement això és degut a que l\'script de la biblioteca " +\n - "${layerLib} " +\n - "no ha estat inclòs a la vostra pà gina.<br><br>" +\n - "Desenvolupadors: Per obtenir consells sobre com fer anar això, " +\n - "<a href=\'http://trac.openlayers.org/wiki/${layerLib}\' " +\n - "target=\'_blank\'>féu clic aquÃ</a>",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Escala = 1 : ${scaleDenom}",\n -\n - //labels for the graticule control\n - \'W\': \'O\',\n - \'E\': \'E\',\n - \'N\': \'N\',\n - \'S\': \'S\',\n - \'Graticule\': \'RetÃcula\', \n - \n - // console message\n - \'reprojectDeprecated\':\n - "Esteu fent servir l\'opció \'reproject\' a la capa " +\n - "${layerName}. Aquesta opció és obsoleta: el seu ús fou concebut " +\n - "per suportar la visualització de dades sobre mapes base comercials, " + \n - "però ara aquesta funcionalitat s\'hauria d\'assolir mitjançant el suport " +\n - "de la projecció Spherical Mercator. Més informació disponible a " +\n - "http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - // console message\n - \'methodDeprecated\':\n - "Aquest mètode és obsolet i s\'eliminarà a la versió 3.0. " +\n - "Si us plau feu servir em mètode alternatiu ${newMethod}.",\n -\n - // **** end ****\n - \'end\': \'\'\n -\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3633</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/cs-CZ.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/cs-CZ.js.xml deleted file mode 100644 index b3be02b99677b9ff2bb9c58698f18dd23fae39fa..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/cs-CZ.js.xml +++ /dev/null @@ -1,89 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>cs-CZ.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Mormegil\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["cs-CZ"]\n - * Dictionary for ÄŒesky. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["cs-CZ"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Nezpracovaná návratová hodnota ${statusText}",\n -\n - \'Permalink\': "Trvalý odkaz",\n -\n - \'Overlays\': "PÅ™ekryvné vrstvy",\n -\n - \'Base Layer\': "Podkladové vrstvy",\n -\n - \'noFID\': "Nelze aktualizovat prvek, pro který neexistuje FID.",\n -\n - \'browserNotSupported\': "Váš prohlÞeÄ nepodporuje vykreslovánà vektorů. MomentálnÄ› podporované nástroje jsou::\\n${renderers}",\n -\n - \'minZoomLevelError\': "Vlastnost minZoomLevel by se mÄ›la použÃvat pouze s potomky FixedZoomLevels vrstvami. To znamená, že vrstva wfs kontroluje, zda-li minZoomLevel nenà zbytek z minulosti.Nelze to ovÅ¡em vyjmout bez možnosti, že bychom rozbili aplikace postavené na OL, které by na tom mohly záviset. Proto tuto vlastnost nedoporuÄujeme použÃvat -- kontrola minZoomLevel bude odstranÄ›na ve verzi 3.0. Použijte prosÃm radÄ›ji nastavenà min/max podle pÅ™Ãkaldu popsaného na: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "WFS Transaction: ÚSPÄšCH ${response}",\n -\n - \'commitFailed\': "WFS Transaction: CHYBA ${response}",\n -\n - \'googleWarning\': "NepodaÅ™ilo se správnÄ› naÄÃst vrstvu Google.\\x3cbr\\x3e\\x3cbr\\x3eAbyste se zbavili této zprávy, zvolte jinou základnà vrstvu v pÅ™epÃnaÄi vrstev.\\x3cbr\\x3e\\x3cbr\\x3eTo se vÄ›tÅ¡inou stává, pokud nebyl naÄten skript, nebo neobsahuje správný klÃÄ pro API pro tuto stránku.\\x3cbr\\x3e\\x3cbr\\x3eVývojáři: Pro pomoc, aby tohle fungovalo , \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3ekliknÄ›te sem\\x3c/a\\x3e",\n -\n - \'getLayerWarning\': "The ${layerType} Layer was unable to load correctly.\\x3cbr\\x3e\\x3cbr\\x3eTo get rid of this message, select a new BaseLayer in the layer switcher in the upper-right corner.\\x3cbr\\x3e\\x3cbr\\x3eMost likely, this is because the ${layerLib} library script was either not correctly included.\\x3cbr\\x3e\\x3cbr\\x3eDevelopers: For help getting this working correctly, \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3eclick here\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "MěřÃtko = 1 : ${scaleDenom}",\n -\n - \'reprojectDeprecated\': "Použil jste volbu \\\'reproject\\\' ve vrstvÄ› ${layerName}. Tato volba nenà doporuÄená: byla zde proto, aby bylo možno zobrazovat data z okomerÄnÃch serverů, ale tato funkce je nynà zajiÅ¡tÄ›na pomocà podpory Spherical Mercator. VÃce informacà naleznete na http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Tato metoda je zavržená a bude ve verzi 3.0 odstranÄ›na. ProsÃm, použijte radÄ›ji ${newMethod}."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2997</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/da-DK.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/da-DK.js.xml deleted file mode 100644 index 5c65625401473036ab19bc250bc93aa0b3f0eb9c..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/da-DK.js.xml +++ /dev/null @@ -1,124 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>da-DK.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["da-DK"]\n - * Dictionary for Danish. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang[\'da-DK\'] = {\n -\n - \'unhandledRequest\': "En ikke hÃ¥ndteret forespørgsel returnerede ${statusText}",\n -\n - \'Permalink\': "Permalink",\n -\n - \'Overlays\': "Kortlag",\n -\n - \'Base Layer\': "Baggrundslag",\n -\n - \'noFID\': "Kan ikke opdateret en feature (et objekt) der ikke har et FID.",\n -\n - \'browserNotSupported\':\n - "Din browser understøtter ikke vektor visning. Følgende vektor visninger understøttes:\\n${renderers}",\n -\n - // console message\n - \'minZoomLevelError\':\n - "Egenskaben minZoomLevel er kun beregnet til brug " +\n - "med FixedZoomLevels. At dette WFS lag kontrollerer " +\n - "minZoomLevel egenskaben, er et levn fra en tidligere " +\n - "version. Vi kan desværre ikke fjerne dette uden at risikere " +\n - "at ødelægge eksisterende OL baserede programmer der " +\n - " benytter denne funktionalitet. " +\n - "Egenskaben bør derfor ikke anvendes, og minZoomLevel " +\n - "kontrollen herunder vil blive fjernet i version 3.0. " +\n - "Benyt istedet min/max opløsnings indstillingerne, som " +\n - "er beskrevet her: " +\n - "http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "WFS transaktion: LYKKEDES ${response}",\n -\n - \'commitFailed\': "WFS transaktion: MISLYKKEDES ${response}",\n -\n - \'googleWarning\':\n - "Google laget kunne ikke indlæses.<br><br>" +\n - "For at fjerne denne besked, vælg et nyt bagrundskort i " +\n - "lagskifteren i øverste højre hjørne.<br><br>" +\n - "Fejlen skyldes formentlig at Google Maps bibliotekts " +\n - "scriptet ikke er inkluderet, eller ikke indeholder den " +\n - "korrkte API nøgle for dit site.<br><br>" +\n - "Udviklere: For hjælp til at fÃ¥ dette til at fungere, " +\n - "<a href=\'http://trac.openlayers.org/wiki/Google\' " +\n - "target=\'_blank\'>klik her</a>",\n -\n - \'getLayerWarning\':\n - "${layerType}-laget kunne ikke indlæses.<br><br>" +\n - "For at fjerne denne besked, vælg et nyt bagrundskort i " +\n - "lagskifteren i øverste højre hjørne.<br><br>" +\n - "Fejlen skyldes formentlig at ${layerLib} bibliotekts " +\n - "scriptet ikke er inkluderet.<br><br>" +\n - "Udviklere: For hjælp til at fÃ¥ dette til at fungere, " +\n - "<a href=\'http://trac.openlayers.org/wiki/${layerLib}\' " +\n - "target=\'_blank\'>klik her</a>",\n -\n - \'Scale = 1 : ${scaleDenom}\': "MÃ¥lforhold = 1 : ${scaleDenom}",\n -\n - // console message\n - \'reprojectDeprecated\':\n - "Du anvender indstillingen \'reproject\' pÃ¥ laget ${layerName}." + \n - "Denne indstilling bør ikke længere anvendes. Den var beregnet " +\n - "til at vise data ovenpÃ¥ kommercielle grundkort, men den funktionalitet " +\n - "bør nu opnÃ¥s ved at anvende Spherical Mercator understøttelsen. " +\n - "Mere information er tilgængelig her: " +\n - "http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - // console message\n - \'methodDeprecated\':\n - "Denne funktion bør ikke længere anvendes, og vil blive fjernet i version 3.0. " +\n - "Anvend venligst funktionen ${newMethod} istedet."\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3397</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/de.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/de.js.xml deleted file mode 100644 index 106eabe44fde10b9a243e27de9160a4984eabe54..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/de.js.xml +++ /dev/null @@ -1,99 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>de.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Grille chompa\n - * - Nikiwaibel\n - * - Umherirrender\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["de"]\n - * Dictionary for Deutsch. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["de"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Unbehandelte Anfragerückmeldung ${statusText}",\n -\n - \'Permalink\': "Permalink",\n -\n - \'Overlays\': "Overlays",\n -\n - \'Base Layer\': "Grundkarte",\n -\n - \'noFID\': "Ein Feature, für das keine FID existiert, kann nicht aktualisiert werden.",\n -\n - \'browserNotSupported\': "Ihr Browser unterstützt keine Vektordarstellung. Aktuell unterstützte Renderer:\\n${renderers}",\n -\n - \'minZoomLevelError\': "Die \\x3ccode\\x3eminZoomLevel\\x3c/code\\x3e-Eigenschaft ist nur für die Verwendung mit \\x3ccode\\x3eFixedZoomLevels\\x3c/code\\x3e-untergeordneten Layers vorgesehen. Das dieser \\x3ctt\\x3ewfs\\x3c/tt\\x3e-Layer die \\x3ccode\\x3eminZoomLevel\\x3c/code\\x3e-Eigenschaft überprüft ist ein Relikt der Vergangenheit. Wir können diese Ãœberprüfung nicht entfernen, ohne das OL basierende Applikationen nicht mehr funktionieren. Daher markieren wir es als veraltet - die \\x3ccode\\x3eminZoomLevel\\x3c/code\\x3e-Ãœberprüfung wird in Version 3.0 entfernt werden. Bitte verwenden Sie stattdessen die Min-/Max-Lösung, wie sie unter http://trac.openlayers.org/wiki/SettingZoomLevels beschrieben ist.",\n -\n - \'commitSuccess\': "WFS-Transaktion: Erfolgreich ${response}",\n -\n - \'commitFailed\': "WFS-Transaktion: Fehlgeschlagen ${response}",\n -\n - \'googleWarning\': "Der Google-Layer konnte nicht korrekt geladen werden.\\x3cbr\\x3e\\x3cbr\\x3eUm diese Meldung nicht mehr zu erhalten, wählen Sie einen anderen Hintergrundlayer aus dem LayerSwitcher in der rechten oberen Ecke.\\x3cbr\\x3e\\x3cbr\\x3eSehr wahrscheinlich tritt dieser Fehler auf, weil das Skript der Google-Maps-Bibliothek nicht eingebunden wurde oder keinen gültigen API-Schlüssel für Ihre URL enthält.\\x3cbr\\x3e\\x3cbr\\x3eEntwickler: Besuche \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3edas Wiki\\x3c/a\\x3e für Hilfe zum korrekten Einbinden des Google-Layers",\n -\n - \'getLayerWarning\': "Der ${layerType}-Layer konnte nicht korrekt geladen werden.\\x3cbr\\x3e\\x3cbr\\x3eUm diese Meldung nicht mehr zu erhalten, wählen Sie einen anderen Hintergrundlayer aus dem LayerSwitcher in der rechten oberen Ecke.\\x3cbr\\x3e\\x3cbr\\x3eSehr wahrscheinlich tritt dieser Fehler auf, weil das Skript der \\\'${layerLib}\\\'-Bibliothek nicht eingebunden wurde.\\x3cbr\\x3e\\x3cbr\\x3eEntwickler: Besuche \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3edas Wiki\\x3c/a\\x3e für Hilfe zum korrekten Einbinden von Layern",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Maßstab = 1 : ${scaleDenom}",\n -\n - \'W\': "W",\n -\n - \'E\': "O",\n -\n - \'N\': "N",\n -\n - \'S\': "S",\n -\n - \'reprojectDeprecated\': "Sie verwenden die „Reproject“-Option des Layers ${layerName}. Diese Option ist veraltet: Sie wurde entwickelt um die Anzeige von Daten auf kommerziellen Basiskarten zu unterstützen, aber diese Funktion sollte jetzt durch Unterstützung der „Spherical Mercator“ erreicht werden. Weitere Informationen sind unter http://trac.openlayers.org/wiki/SphericalMercator verfügbar.",\n -\n - \'methodDeprecated\': "Die Methode ist veraltet und wird in 3.0 entfernt. Bitte verwende stattdessen ${newMethod}."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3509</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/el.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/el.js.xml deleted file mode 100644 index f3e8c891d3d849337b93a047bbfce6c37b229ed0..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/el.js.xml +++ /dev/null @@ -1,63 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>el.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Omnipaedista\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["el"]\n - * Dictionary for Ελληνικά. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["el"] = OpenLayers.Util.applyDefaults({\n -\n - \'Scale = 1 : ${scaleDenom}\': "Κλίμακα ~ 1 : ${scaleDenom}"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>491</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/en-CA.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/en-CA.js.xml deleted file mode 100644 index 0ac9449faaaaa054754fd0dd379866ff4993e684..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/en-CA.js.xml +++ /dev/null @@ -1,65 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>en-CA.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/**\n - * @requires OpenLayers/Lang/en.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["en-CA"]\n - * Dictionary for English-CA. This dictionary inherits from the standard\n - * English dictionary. Override only those entries with language specific\n - * to the CA region.\n - * \n - * Keys for entries are used in calls to <OpenLayers.Lang.translate>. Entry\n - * bodies are normal strings or strings formatted for use with\n - * <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang[\'en-CA\'] = OpenLayers.Util.applyDefaults({\n -\n - // add any entries specific for this region here\n - // e.g.\n - // "someKey": "Some regionally specific value"\n - \n -}, OpenLayers.Lang["en"]);\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>670</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/en.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/en.js.xml deleted file mode 100644 index 0aad6a0b16fa1429e77aa9ef0ad1161bd4b3d6a8..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/en.js.xml +++ /dev/null @@ -1,136 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.87</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>en.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["en"]\n - * Dictionary for English. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang.en = {\n -\n - \'unhandledRequest\': "Unhandled request return ${statusText}",\n -\n - \'Permalink\': "Permalink",\n -\n - \'Overlays\': "Overlays",\n -\n - \'Base Layer\': "Base Layer",\n -\n - \'noFID\': "Can\'t update a feature for which there is no FID.",\n -\n - \'browserNotSupported\':\n - "Your browser does not support vector rendering. Currently supported renderers are:\\n${renderers}",\n -\n - // console message\n - \'minZoomLevelError\':\n - "The minZoomLevel property is only intended for use " +\n - "with the FixedZoomLevels-descendent layers. That this " +\n - "wfs layer checks for minZoomLevel is a relic of the" +\n - "past. We cannot, however, remove it without possibly " +\n - "breaking OL based applications that may depend on it." +\n - " Therefore we are deprecating it -- the minZoomLevel " +\n - "check below will be removed at 3.0. Please instead " +\n - "use min/max resolution setting as described here: " +\n - "http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "WFS Transaction: SUCCESS ${response}",\n -\n - \'commitFailed\': "WFS Transaction: FAILED ${response}",\n -\n - \'googleWarning\':\n - "The Google Layer was unable to load correctly.<br><br>" +\n - "To get rid of this message, select a new BaseLayer " +\n - "in the layer switcher in the upper-right corner.<br><br>" +\n - "Most likely, this is because the Google Maps library " +\n - "script was either not included, or does not contain the " +\n - "correct API key for your site.<br><br>" +\n - "Developers: For help getting this working correctly, " +\n - "<a href=\'http://trac.openlayers.org/wiki/Google\' " +\n - "target=\'_blank\'>click here</a>",\n -\n - \'getLayerWarning\':\n - "The ${layerType} Layer was unable to load correctly.<br><br>" +\n - "To get rid of this message, select a new BaseLayer " +\n - "in the layer switcher in the upper-right corner.<br><br>" +\n - "Most likely, this is because the ${layerLib} library " +\n - "script was not correctly included.<br><br>" +\n - "Developers: For help getting this working correctly, " +\n - "<a href=\'http://trac.openlayers.org/wiki/${layerLib}\' " +\n - "target=\'_blank\'>click here</a>",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Scale = 1 : ${scaleDenom}",\n - \n - //labels for the graticule control\n - \'W\': \'W\',\n - \'E\': \'E\',\n - \'N\': \'N\',\n - \'S\': \'S\',\n - \'Graticule\': \'Graticule\',\n -\n - // console message\n - \'reprojectDeprecated\':\n - "You are using the \'reproject\' option " +\n - "on the ${layerName} layer. This option is deprecated: " +\n - "its use was designed to support displaying data over commercial " + \n - "basemaps, but that functionality should now be achieved by using " +\n - "Spherical Mercator support. More information is available from " +\n - "http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - // console message\n - \'methodDeprecated\':\n - "This method has been deprecated and will be removed in 3.0. " +\n - "Please use ${newMethod} instead.",\n -\n - \'proxyNeeded\': "You probably need to set OpenLayers.ProxyHost to access ${url}."+\n - "See http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost",\n -\n - // **** end ****\n - \'end\': \'\'\n - \n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3576</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/es.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/es.js.xml deleted file mode 100644 index 9d203ae81e33cd81d579906c99e318e36304f19e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/es.js.xml +++ /dev/null @@ -1,134 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>es.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["es"]\n - * Dictionary for Spanish, UTF8 encoding. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang.es = {\n -\n - \'unhandledRequest\': "Respuesta a petición no gestionada ${statusText}",\n -\n - \'Permalink\': "Enlace permanente",\n -\n - \'Overlays\': "Capas superpuestas",\n -\n - \'Base Layer\': "Capa Base",\n -\n - \'noFID\': "No se puede actualizar un elemento para el que no existe FID.",\n -\n - \'browserNotSupported\':\n - "Su navegador no soporta renderización vectorial. Los renderizadores soportados actualmente son:\\n${renderers}",\n -\n - // console message\n - \'minZoomLevelError\':\n - "La propiedad minZoomLevel debe sólo utilizarse " +\n - "con las capas que tienen FixedZoomLevels. El hecho de que " +\n - "una capa wfs compruebe minZoomLevel es una reliquia del " +\n - "pasado. Sin embargo, no podemos eliminarla sin discontinuar " +\n - "probablemente las aplicaciones OL que puedan depender de ello. " +\n - "Asà pues estamos haciéndolo obsoleto --la comprobación " +\n - "minZoomLevel se eliminará en la versión 3.0. Utilice el ajuste " +\n - "de resolution min/max en su lugar, tal como se describe aquÃ: " +\n - "http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Transacción WFS: ÉXITO ${response}",\n -\n - \'commitFailed\': "Transacción WFS: FALLÓ ${response}",\n -\n - \'googleWarning\':\n - "La capa Google no pudo ser cargada correctamente.<br><br>" +\n - "Para evitar este mensaje, seleccione una nueva Capa Base " +\n - "en el selector de capas en la esquina superior derecha.<br><br>" +\n - "Probablemente, esto se debe a que el script de la biblioteca de " +\n -\t"Google Maps no fue correctamente incluido en su página, o no " +\n -\t"contiene la clave del API correcta para su sitio.<br><br>" +\n - "Desarrolladores: Para ayudar a hacer funcionar esto correctamente, " +\n - "<a href=\'http://trac.openlayers.org/wiki/Google\' " +\n - "target=\'_blank\'>haga clic aquÃ</a>",\n -\n - \'getLayerWarning\':\n - "La capa ${layerType} no pudo ser cargada correctamente.<br><br>" +\n - "Para evitar este mensaje, seleccione una nueva Capa Base " +\n - "en el selector de capas en la esquina superior derecha.<br><br>" +\n - "Probablemente, esto se debe a que el script de " +\n -\t"la biblioteca ${layerLib} " +\n - "no fue correctamente incluido en su página.<br><br>" +\n - "Desarrolladores: Para ayudar a hacer funcionar esto correctamente, " +\n - "<a href=\'http://trac.openlayers.org/wiki/${layerLib}\' " +\n - "target=\'_blank\'>haga clic aquÃ</a>",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Escala = 1 : ${scaleDenom}",\n -\n - //labels for the graticule control\n - \'W\': \'O\',\n - \'E\': \'E\',\n - \'N\': \'N\',\n - \'S\': \'S\',\n - \'Graticule\': \'RetÃcula\',\n - \n - // console message\n - \'reprojectDeprecated\':\n - "Está usando la opción \'reproject\' en la capa " +\n - "${layerName}. Esta opción es obsoleta: su uso fue diseñado " +\n - "para soportar la visualización de datos sobre mapas base comerciales, " + \n - "pero ahora esa funcionalidad deberÃa conseguirse mediante el soporte " +\n - "de la proyección Spherical Mercator. Más información disponible en " +\n - "http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - // console message\n - \'methodDeprecated\':\n - "Este método es obsoleto y se eliminará en la versión 3.0. " +\n - "Por favor utilice el método ${newMethod} en su lugar.",\n -\n - // **** end ****\n - \'end\': \'\'\n -\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3709</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/fi.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/fi.js.xml deleted file mode 100644 index ee3ea3ba2e1d2c58ccf9f12e408ade327d4c6358..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/fi.js.xml +++ /dev/null @@ -1,76 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>fi.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Nike\n - * - Str4nd\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["fi"]\n - * Dictionary for Suomi. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["fi"] = OpenLayers.Util.applyDefaults({\n -\n - \'Permalink\': "Ikilinkki",\n -\n - \'Overlays\': "Kerrokset",\n -\n - \'Base Layer\': "Peruskerros",\n -\n - \'W\': "L",\n -\n - \'E\': "I",\n -\n - \'N\': "P",\n -\n - \'S\': "E"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>568</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/fr.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/fr.js.xml deleted file mode 100644 index ca42dffd671f23c1c641bac396e7b8fb017b7dbe..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/fr.js.xml +++ /dev/null @@ -1,99 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>fr.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Damouns\n - * - IAlex\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["fr"]\n - * Dictionary for Français. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["fr"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Requête non gérée, retournant ${statusText}",\n -\n - \'Permalink\': "Permalien",\n -\n - \'Overlays\': "Calques",\n -\n - \'Base Layer\': "Calque de base",\n -\n - \'noFID\': "Impossible de mettre à jour un objet sans identifiant (fid).",\n -\n - \'browserNotSupported\': "Votre navigateur ne supporte pas le rendu vectoriel. Les renderers actuellement supportés sont : \\n${renderers}",\n -\n - \'minZoomLevelError\': "La propriété minZoomLevel doit seulement être utilisée pour des couches FixedZoomLevels-descendent. Le fait que cette couche WFS vérifie la présence de minZoomLevel est une relique du passé. Nous ne pouvons toutefois la supprimer sans casser des applications qui pourraient en dépendre. C\\\'est pourquoi nous la déprécions -- la vérification du minZoomLevel sera supprimée en version 3.0. A la place, merci d\\\'utiliser les paramètres de résolutions min/max tel que décrit sur : http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Transaction WFS : SUCCES ${response}",\n -\n - \'commitFailed\': "Transaction WFS : ECHEC ${response}",\n -\n - \'googleWarning\': "La couche Google n\\\'a pas été en mesure de se charger correctement.\\x3cbr\\x3e\\x3cbr\\x3ePour supprimer ce message, choisissez une nouvelle BaseLayer dans le sélecteur de couche en haut à droite.\\x3cbr\\x3e\\x3cbr\\x3eCela est possiblement causé par la non-inclusion de la librairie Google Maps, ou alors parce que la clé de l\\\'API ne correspond pas à votre site.\\x3cbr\\x3e\\x3cbr\\x3eDéveloppeurs : pour savoir comment corriger ceci, \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3ecliquez ici\\x3c/a\\x3e",\n -\n - \'getLayerWarning\': "La couche ${layerType} n\\\'est pas en mesure de se charger correctement.\\x3cbr\\x3e\\x3cbr\\x3ePour supprimer ce message, choisissez une nouvelle BaseLayer dans le sélecteur de couche en haut à droite.\\x3cbr\\x3e\\x3cbr\\x3eCela est possiblement causé par la non-inclusion de la librairie ${layerLib}.\\x3cbr\\x3e\\x3cbr\\x3eDéveloppeurs : pour savoir comment corriger ceci, \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3ecliquez ici\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Echelle ~ 1 : ${scaleDenom}",\n -\n - \'W\': "O",\n -\n - \'E\': "E",\n -\n - \'N\': "N",\n -\n - \'S\': "S",\n -\n - \'reprojectDeprecated\': "Vous utilisez l\\\'option \\\'reproject\\\' sur la couche ${layerName}. Cette option est dépréciée : Son usage permettait d\\\'afficher des données au dessus de couches raster commerciales.Cette fonctionalité est maintenant supportée en utilisant le support de la projection Mercator Sphérique. Plus d\\\'information est disponible sur http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Cette méthode est dépréciée, et sera supprimée à la version 3.0. Merci d\\\'utiliser ${newMethod} à la place.",\n -\n - \'proxyNeeded\': "Vous avez très probablement besoin de renseigner OpenLayers.ProxyHost pour accéder à ${url}. Voir http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3440</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/fur.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/fur.js.xml deleted file mode 100644 index d8d555f1dbf03257aaaff0b31e33db8b34bd458a..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/fur.js.xml +++ /dev/null @@ -1,79 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>fur.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Klenje\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["fur"]\n - * Dictionary for Furlan. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["fur"] = OpenLayers.Util.applyDefaults({\n -\n - \'Permalink\': "Leam Permanent",\n -\n - \'Overlays\': "Livei parsore",\n -\n - \'Base Layer\': "Livel di base",\n -\n - \'browserNotSupported\': "Il to sgarfadôr nol supuarte la renderizazion vetoriâl. Al moment a son supuartâts:\\n${renderers}",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Scjale = 1 : ${scaleDenom}",\n -\n - \'W\': "O",\n -\n - \'E\': "E",\n -\n - \'N\': "N",\n -\n - \'S\': "S"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>767</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/gl.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/gl.js.xml deleted file mode 100644 index 133aa226a6431f063cbfa2d62aa7169bd6c557d1..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/gl.js.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>gl.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Toliño\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["gl"]\n - * Dictionary for Galego. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["gl"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Solicitude non xerada; a resposta foi: ${statusText}",\n -\n - \'Permalink\': "Ligazón permanente",\n -\n - \'Overlays\': "Capas superpostas",\n -\n - \'Base Layer\': "Capa base",\n -\n - \'noFID\': "Non se pode actualizar a funcionalidade para a que non hai FID.",\n -\n - \'browserNotSupported\': "O seu navegador non soporta a renderización de vectores. Os renderizadores soportados actualmente son:\\n${renderers}",\n -\n - \'minZoomLevelError\': "A propiedade minZoomLevel é só para uso conxuntamente coas capas FixedZoomLevels-descendent. O feito de que esa capa wfs verifique o minZoomLevel é unha reliquia do pasado. Non podemos, con todo, eliminala sen a posibilidade de non romper as aplicacións baseadas en OL que poidan depender dela. Por iso a estamos deixando obsoleta (a comprobación minZoomLevel de embaixo será eliminada na versión 3.0). Por favor, no canto diso use o axuste de resolución mÃn/máx tal e como está descrito aquÃ: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Transacción WFS: ÉXITO ${response}",\n -\n - \'commitFailed\': "Transacción WFS: FALLIDA ${response}",\n -\n - \'googleWarning\': "A capa do Google non puido cargarse correctamente.\\x3cbr\\x3e\\x3cbr\\x3ePara evitar esta mensaxe, escolla unha nova capa base no seleccionador de capas na marxe superior dereita.\\x3cbr\\x3e\\x3cbr\\x3eProbablemente, isto acontece porque a escritura da librarÃa do Google Maps ou ben non foi incluÃda ou ben non contén a clave API correcta para o seu sitio.\\x3cbr\\x3e\\x3cbr\\x3eDesenvolvedores: para axudar a facer funcionar isto correctamente, \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3epremede aquÃ\\x3c/a\\x3e",\n -\n - \'getLayerWarning\': "A capa ${layerType} foi incapaz de cargarse correctamente.\\x3cbr\\x3e\\x3cbr\\x3ePara evitar esta mensaxe, escolla unha nova capa base no seleccionador de capas na marxe superior dereita.\\x3cbr\\x3e\\x3cbr\\x3eProbablemente, isto acontece porque a escritura da librarÃa ${layerLib} non foi ben incluÃda.\\x3cbr\\x3e\\x3cbr\\x3eDesenvolvedores: para axudar a facer funcionar isto correctamente, \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3epremede aquÃ\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Escala = 1 : ${scaleDenom}",\n -\n - \'W\': "O",\n -\n - \'E\': "L",\n -\n - \'N\': "N",\n -\n - \'S\': "S",\n -\n - \'reprojectDeprecated\': "Está usando a opción \\"reproject\\" na capa ${layerName}. Esta opción está obsoleta: o seu uso foi deseñado para a visualización de datos sobre mapas base comerciais, pero esta funcionalidade debera agora ser obtida utilizando a proxección Spherical Mercator. Hai dispoñible máis información en http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Este método está obsoleto e será eliminado na versión 3.0. Por favor, no canto deste use ${newMethod}."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3262</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/gsw.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/gsw.js.xml deleted file mode 100644 index d7aa98774fe07be7f77e7ba6f097069684e2695a..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/gsw.js.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>gsw.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Als-Holder\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["gsw"]\n - * Dictionary for Alemannisch. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["gsw"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Nit behandleti Aafrogsruckmäldig ${statusText}",\n -\n - \'Permalink\': "Permalink",\n -\n - \'Overlays\': "Iberlagerige",\n -\n - \'Base Layer\': "Grundcharte",\n -\n - \'noFID\': "E Feature, wu s kei FID derfir git, cha nit aktualisiert wäre.",\n -\n - \'browserNotSupported\': "Dyy Browser unterstitzt kei Vektordarstellig. Aktuäll unterstitzti Renderer:\\n${renderers}",\n -\n - \'minZoomLevelError\': "D minZoomLevel-Eigeschaft isch nume dänk fir d Layer, wu vu dr FixedZoomLevels abstamme. Ass dää wfs-Layer minZoomLevel prieft, scih e Relikt us dr Vergangeheit. Mir chenne s aber nit ändere ohni OL_basierti Aawändige villicht kaputt gehn, wu dervu abhänge. Us däm Grund het die Funktion d Eigeschaft \\\'deprecated\\\' iberchuu. D minZoomLevel-Priefig unte wird in dr Version 3.0 usegnuu. Bitte verwänd statt däm e min/max-Uflesig wie s do bschriben isch: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "WFS-Transaktion: ERFOLGRYCH ${response}",\n -\n - \'commitFailed\': "WFS-Transaktion: FÄHLGSCHLAA ${response}",\n -\n - \'googleWarning\': "Dr Google-Layer het nit korräkt chenne glade wäre.\\x3cbr\\x3e\\x3cbr\\x3eGo die Mäldig nimi z kriege, wehl e andere Hintergrundlayer us em LayerSwitcher im rächte obere Ecke.\\x3cbr\\x3e\\x3cbr\\x3eDää Fähler git s seli hyfig, wel s Skript vu dr Google-Maps-Bibliothek nit yybunde woren isch oder wel s kei giltige API-Schlissel fir Dyy URL din het.\\x3cbr\\x3e\\x3cbr\\x3eEntwickler: Fir Hilf zum korräkte Yybinde vum Google-Layer \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3edoo drucke\\x3c/a\\x3e",\n -\n - \'getLayerWarning\': "Dr ${layerType}-Layer het nit korräkt chenne glade wäre.\\x3cbr\\x3e\\x3cbr\\x3eGo die Mäldig nimi z kriege, wehl e andere Hintergrundlayer us em LayerSwitcher im rächte obere Ecke.\\x3cbr\\x3e\\x3cbr\\x3eDää Fähler git s seli hyfig, wel s Skript vu dr \\\'${layerLib}\\\'-Bibliothek nit yybunde woren isch oder wel s kei giltige API-Schlissel fir Dyy URL din het.\\x3cbr\\x3e\\x3cbr\\x3eEntwickler: Fir Hilf zum korräkte Yybinde vu Layer \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3edoo drucke\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Maßstab = 1 : ${scaleDenom}",\n -\n - \'W\': "W",\n -\n - \'E\': "O",\n -\n - \'N\': "N",\n -\n - \'S\': "S",\n -\n - \'reprojectDeprecated\': "Du bruchsch d \\\'reproject\\\'-Option bim ${layerName}-Layer. Die Option isch nimi giltig: si isch aagleit wore go Date iber kommerziälli Grundcharte lege, aber des sott mer jetz mache mit dr Unterstitzig vu Spherical Mercator. Meh Informatione git s uf http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Die Methode isch veraltet un wird us dr Version 3.0 usegnuu. Bitte verwäbnd statt däm ${newMethod}."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3166</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/hr.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/hr.js.xml deleted file mode 100644 index f9bb695e25b0ac824a6238d4e7b5a5142b1537d6..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/hr.js.xml +++ /dev/null @@ -1,81 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>hr.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Mvrban\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["hr"]\n - * Dictionary for Hrvatski. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["hr"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Nepodržani zahtjev ${statusText}",\n -\n - \'Permalink\': "Permalink",\n -\n - \'Overlays\': "Overlays",\n -\n - \'Base Layer\': "Osnovna karta",\n -\n - \'noFID\': "Ne mogu ažurirati znaÄajku za koju ne postoji FID.",\n -\n - \'browserNotSupported\': "VaÅ¡ preglednik ne podržava vektorsko renderiranje. Trenutno podržani rendereri su: ${renderers}",\n -\n - \'commitSuccess\': "WFS Transakcija: USPJEÅ NA ${response}",\n -\n - \'commitFailed\': "WFS Transakcija: NEUSPJEÅ NA ${response}",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Mjerilo = 1 : ${scaleDenom}",\n -\n - \'methodDeprecated\': "Ova metoda nije odobrena i biti će maknuta u 3.0. Koristite ${newMethod}."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1060</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/hsb.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/hsb.js.xml deleted file mode 100644 index 4e69de022580c1e5984b2d1a0cbabdcab88b7130..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/hsb.js.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.87</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>hsb.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Michawiki\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["hsb"]\n - * Dictionary for Hornjoserbsce. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["hsb"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "WotmoÅ‚wa njewobdźěłaneho napraÅ¡owanja ${statusText}",\n -\n - \'Permalink\': "Trajny wotkaz",\n -\n - \'Overlays\': "NaworÅ¡towanja",\n -\n - \'Base Layer\': "ZakÅ‚adna runina",\n -\n - \'noFID\': "Funkcija, za kotruž FID njeje, njeda so aktualizować.",\n -\n - \'browserNotSupported\': "Twój wobhladowak wektorowe rysowanje njepodpÄ›ruje. Tuchwilu podpÄ›rowane rysowaki su:\\n${renderers}",\n -\n - \'minZoomLevelError\': "Kajkosć minZoomLevel je jenož za wužiwanje z worÅ¡tami myslena, kotrež wot FixedZoomLevels pochadźeja. Zo tuta worÅ¡ta wfs za minZoomLevel pÅ™epruwuje, je relikt zaÅ„dźenosće. Njemóžemy wÅ¡ak ju wotstronić, bjeztoho zo aplikacije, kotrež na OpenLayers bazÄ›ruja a snano tutu kajkosć wužiwaja, hižo njefunguja. Tohodla smy ju jako zestarjenu woznamjenili -- pÅ™epruwowanje za minZoomLevel budu so we wersiji 3.0 wotstronjeć. ProÅ¡u wužij mÄ›sto toho nastajenje min/max, kaž je tu wopisane: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "WFS-Transakcija: WUSPĚŠNA ${response}",\n -\n - \'commitFailed\': "WFS-Transakcija: NJEPORADŹENA ${response}",\n -\n - \'googleWarning\': "WorÅ¡ta Google njemóžeÅ¡e so korektnje zaÄitać.\\x3cbr\\x3e\\x3cbr\\x3eZo by tutu zdźělenku wotbyÅ‚, wubjer nowy BaseLayer z wubÄ›ra worÅ¡tow horjeka naprawo.\\x3cbr\\x3e\\x3cbr\\x3eNajskerje so to stawa, dokelž skript biblioteki Google Maps pak njebu zapÅ™ijaty pak njewobsahuje korektny kluÄ API za twoje sydÅ‚o.\\x3cbr\\x3e\\x3cbr\\x3eWuwiwarjo: Za pomoc ke korektnemu fungowanju worÅ¡tow\\n\\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3etu kliknyć\\x3c/a\\x3e",\n -\n - \'getLayerWarning\': "WorÅ¡ta ${layerType} njemóžeÅ¡e so korektnje zaÄitać.\\x3cbr\\x3e\\x3cbr\\x3eZo by tutu zdźělenku wotbyÅ‚, wubjer nowy BaseLayer z wubÄ›ra worÅ¡tow horjeka naprawo.\\x3cbr\\x3e\\x3cbr\\x3eNajskerje so to stawa, dokelž skript biblioteki ${layerLib} njebu korektnje zapÅ™ijaty.\\x3cbr\\x3e\\x3cbr\\x3eWuwiwarjo: Za pomoc ke korektnemu fungowanju worÅ¡tow\\n\\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3etu kliknyć\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "MÄ›ritko = 1 : ${scaleDenom}",\n -\n - \'W\': "Z",\n -\n - \'E\': "W",\n -\n - \'N\': "S",\n -\n - \'S\': "J",\n -\n - \'reprojectDeprecated\': "WužiwaÅ¡ opciju \\"reproject\\" wořšty ${layerName}. Tuta opcija je zestarjena: jeje wužiwanje bÄ› myslene, zo by zwobraznjenje datow nad komercielnymi bazowymi kartami podpÄ›raÅ‚o, ale funkcionalnosć měła so nÄ›tko z pomocu Sperical Mercator docpěć. DalÅ¡e informacije steja na http://trac.openlayers.org/wiki/SphericalMercator k dispoziciji.",\n -\n - \'methodDeprecated\': "Tuta metoda je so njeschwaliÅ‚a a budźe so w 3.0 wotstronjeć. ProÅ¡u wužij ${newMethod} mÄ›sto toho."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3161</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/hu.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/hu.js.xml deleted file mode 100644 index 1fb66acbd5188af241ee336891acea482ac887c9..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/hu.js.xml +++ /dev/null @@ -1,98 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>hu.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - City-busz\n - * - Glanthor Reviol\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["hu"]\n - * Dictionary for Magyar. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["hu"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Nem kezelt kérés visszatérése ${statusText}",\n -\n - \'Permalink\': "Permalink",\n -\n - \'Overlays\': "RávetÃtések",\n -\n - \'Base Layer\': "Alapréteg",\n -\n - \'noFID\': "Nem frissÃthetÅ‘ olyan jellemzÅ‘, amely nem rendelkezik FID-del.",\n -\n - \'browserNotSupported\': "A böngészÅ‘je nem támogatja a vektoros renderelést. A jelenleg támogatott renderelÅ‘k:\\n${renderers}",\n -\n - \'minZoomLevelError\': "A minZoomLevel tulajdonságot csak a következÅ‘vel való használatra szánták: FixedZoomLevels-leszármazott fóliák. Ez azt jelenti, hogy a minZoomLevel wfs fólia jelölÅ‘négyzetei már a múlté. Mi azonban nem távolÃthatjuk el annak a veszélye nélkül, hogy az esetlegesen ettÅ‘l függÅ‘ OL alapú alkalmazásokat tönkretennénk. Ezért ezt érvénytelenÃtjük -- a minZoomLevel az alul levÅ‘ jelölÅ‘négyzet a 3.0-s verzióból el lesz távolÃtva. Kérjük, helyette használja a min/max felbontás beállÃtást, amelyrÅ‘l az alábbi helyen talál leÃrást: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "WFS tranzakció: SIKERES ${response}",\n -\n - \'commitFailed\': "WFS tranzakció: SIKERTELEN ${response}",\n -\n - \'googleWarning\': "A Google fólia betöltése sikertelen.\\x3cbr\\x3e\\x3cbr\\x3eAhhoz, hogy ez az üzenet eltűnjön, válasszon egy új BaseLayer fóliát a jobb felsÅ‘ sarokban található fóliakapcsoló segÃtségével.\\x3cbr\\x3e\\x3cbr\\x3eNagy valószÃnűséggel ez azért van, mert a Google Maps könyvtár parancsfájlja nem található, vagy nem tartalmazza az Ön oldalához tartozó megfelelÅ‘ API-kulcsot.\\x3cbr\\x3e\\x3cbr\\x3eFejlesztÅ‘knek: A helyes működtetésre vonatkozó segÃtség az alábbi helyen érhetÅ‘ el, \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3ekattintson ide\\x3c/a\\x3e",\n -\n - \'getLayerWarning\': "A(z) ${layerType} fólia nem töltÅ‘dött be helyesen.\\x3cbr\\x3e\\x3cbr\\x3eAhhoz, hogy ez az üzenet eltűnjön, válasszon egy új BaseLayer fóliát a jobb felsÅ‘ sarokban található fóliakapcsoló segÃtségével.\\x3cbr\\x3e\\x3cbr\\x3eNagy valószÃnűséggel ez azért van, mert a(z) ${layerLib} könyvtár parancsfájlja helytelen.\\x3cbr\\x3e\\x3cbr\\x3eFejlesztÅ‘knek: A helyes működtetésre vonatkozó segÃtség az alábbi helyen érhetÅ‘ el, \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3ekattintson ide\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Lépték = 1 : ${scaleDenom}",\n -\n - \'W\': "Ny",\n -\n - \'E\': "K",\n -\n - \'N\': "É",\n -\n - \'S\': "D",\n -\n - \'reprojectDeprecated\': "Ön a \\\'reproject\\\' beállÃtást használja a(z) ${layerName} fólián. Ez a beállÃtás érvénytelen: használata az üzleti alaptérképek fölötti adatok megjelenÃtésének támogatására szolgált, de ezt a funkció ezentúl a Gömbi Mercator használatával érhetÅ‘ el. További információ az alábbi helyen érhetÅ‘ el: http://trac.openlayers.org/wiki/SphericalMercator",\n -\n - \'methodDeprecated\': "Ez a módszer érvénytelenÃtve lett és a 3.0-s verzióból el lesz távolÃtva. Használja a(z) ${newMethod} módszert helyette."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3526</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ia.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ia.js.xml deleted file mode 100644 index 55a9840dc77f5186eb33a5c715218f654a86ce03..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ia.js.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ia.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - McDutchie\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["ia"]\n - * Dictionary for Interlingua. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["ia"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Le responsa a un requesta non esseva maneate: ${statusText}",\n -\n - \'Permalink\': "Permaligamine",\n -\n - \'Overlays\': "Superpositiones",\n -\n - \'Base Layer\': "Strato de base",\n -\n - \'noFID\': "Non pote actualisar un elemento sin FID.",\n -\n - \'browserNotSupported\': "Tu navigator non supporta le rendition de vectores. Le renditores actualmente supportate es:\\n${renderers}",\n -\n - \'minZoomLevelError\': "Le proprietate minZoomLevel es solmente pro uso con le stratos descendente de FixedZoomLevels. Le facto que iste strato WFS verifica minZoomLevel es un reliquia del passato. Nonobstante, si nos lo remove immediatemente, nos pote rumper applicationes a base de OL que depende de illo. Ergo nos lo declara obsolete; le verification de minZoomLevel in basso essera removite in version 3.0. Per favor usa in su loco le configuration de resolutiones min/max como describite a: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Transaction WFS: SUCCESSO ${response}",\n -\n - \'commitFailed\': "Transaction WFS: FALLEVA ${response}",\n -\n - \'googleWarning\': "Le strato Google non poteva esser cargate correctemente.\\x3cbr\\x3e\\x3cbr\\x3ePro disfacer te de iste message, selige un nove BaseLayer in le selector de strato in alto a dextra.\\x3cbr\\x3e\\x3cbr\\x3eMulto probabilemente, isto es proque le script del libreria de Google Maps non esseva includite o non contine le clave API correcte pro tu sito.\\x3cbr\\x3e\\x3cbr\\x3eDisveloppatores: Pro adjuta de corriger isto, \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3eclicca hic\\x3c/a",\n -\n - \'getLayerWarning\': "Le strato ${layerType} non poteva esser cargate correctemente.\\x3cbr\\x3e\\x3cbr\\x3ePro disfacer te de iste message, selige un nove BaseLayer in le selector de strato in alto a dextra.\\x3cbr\\x3e\\x3cbr\\x3eMulto probabilemente, isto es proque le script del libreria de ${layerLib} non esseva correctemente includite.\\x3cbr\\x3e\\x3cbr\\x3eDisveloppatores: Pro adjuta de corriger isto, \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3eclicca hic\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Scala = 1 : ${scaleDenom}",\n -\n - \'W\': "W",\n -\n - \'E\': "E",\n -\n - \'N\': "N",\n -\n - \'S\': "S",\n -\n - \'reprojectDeprecated\': "Tu usa le option \\\'reproject\\\' in le strato ${layerName} layer. Iste option es obsolescente: illo esseva pro poter monstrar datos super cartas de base commercial, ma iste functionalitate pote ora esser attingite con le uso de Spherical Mercator. Ulterior information es disponibile a http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Iste methodo ha essite declarate obsolescente e essera removite in version 3.0. Per favor usa ${newMethod} in su loco."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3143</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/id.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/id.js.xml deleted file mode 100644 index 14fe9b7960479cd69590dd9c9757432349e7bf2a..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/id.js.xml +++ /dev/null @@ -1,98 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>id.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Irwangatot\n - * - IvanLanin\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["id"]\n - * Dictionary for Bahasa Indonesia. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["id"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Permintaan yang tak tertangani menghasilkan ${statusText}",\n -\n - \'Permalink\': "Pranala permanen",\n -\n - \'Overlays\': "Hamparan",\n -\n - \'Base Layer\': "Lapisan Dasar",\n -\n - \'noFID\': "Tidak dapat memperbarui fitur yang tidak memiliki FID.",\n -\n - \'browserNotSupported\': "Peramban Anda tidak mendukung penggambaran vektor. Penggambar yang didukung saat ini adalah:\\n${renderers}",\n -\n - \'minZoomLevelError\': "Properti minZoomLevel hanya ditujukan bekerja dengan lapisan FixedZoomLevels-descendent. Pengecekan minZoomLevel oleh lapisan wfs adalah peninggalan masa lalu. Kami tidak dapat menghapusnya tanpa kemungkinan merusak aplikasi berbasis OL yang mungkin bergantung padanya. Karenanya, kami menganggapnya tidak berlaku -- Cek minZoomLevel di bawah ini akan dihapus pada 3.0. Silakan gunakan penyetelan resolusi min/maks seperti dijabarkan di sini: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "WFS Transaksi: BERHASIL ${respon}",\n -\n - \'commitFailed\': "WFS Transaksi: GAGAL ${respon}",\n -\n - \'googleWarning\': "Lapisan Google tidak dapat dimuat dengan benar.\\x3cbr\\x3e\\x3cbr\\x3eUntuk menghilangkan pesan ini, pilih suatu BaseLayer baru melalui penukar lapisan (layer switcher) di ujung kanan atas.\\x3cbr\\x3e\\x3cbr\\x3eKemungkinan besar ini karena pustaka skrip Google Maps tidak disertakan atau tidak mengandung kunci API yang tepat untuk situs Anda.\\x3cbr\\x3e\\x3cbr\\x3ePengembang: Untuk bantuan mengatasi masalah ini, \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3eklik di sini\\x3c/a\\x3e",\n -\n - \'getLayerWarning\': "Lapisan ${layerType} tidak dapat dimuat dengan benar.\\x3cbr\\x3e\\x3cbr\\x3eUntuk menghilangkan pesan ini, pilih suatu BaseLayer baru melalui penukar lapisan (layer switcher) di ujung kanan atas.\\x3cbr\\x3e\\x3cbr\\x3eKemungkinan besar ini karena pustaka skrip Google Maps tidak disertakan dengan benar.\\x3cbr\\x3e\\x3cbr\\x3ePengembang: Untuk bantuan mengatasi masalah ini, \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3eklik di sini\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Sekala = 1 : ${scaleDenom}",\n -\n - \'W\': "B",\n -\n - \'E\': "T",\n -\n - \'N\': "U",\n -\n - \'S\': "S",\n -\n - \'reprojectDeprecated\': "Anda menggunakan opsi \\\'reproject\\\' pada lapisan ${layerName}. Opsi ini telah ditinggalkan: penggunaannya dirancang untuk mendukung tampilan data melalui peta dasar komersial, tapi fungsionalitas tersebut saat ini harus dilakukan dengan menggunakan dukungan Spherical Mercator. Informasi lebih lanjut tersedia di http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Metode ini telah usang dan akan dihapus di 3.0. Sebaliknya, harap gunakan ${newMethod}."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3129</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/io.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/io.js.xml deleted file mode 100644 index 8d4b08bcbc0c812ebb0951dfcd6849b744374043..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/io.js.xml +++ /dev/null @@ -1,63 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.87</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>io.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Malafaya\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["io"]\n - * Dictionary for Ido. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["io"] = OpenLayers.Util.applyDefaults({\n -\n - \'Scale = 1 : ${scaleDenom}\': "Skalo = 1 : ${scaleDenom}"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>465</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/is.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/is.js.xml deleted file mode 100644 index f3472f32a196693b931101a188ba8a02256ab738..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/is.js.xml +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>is.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Ævar Arnfjörð Bjarmason\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["is"]\n - * Dictionary for Ãslenska. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["is"] = OpenLayers.Util.applyDefaults({\n -\n - \'Permalink\': "Varanlegur tengill",\n -\n - \'Overlays\': "Þekjur",\n -\n - \'Base Layer\': "Grunnlag",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Skali = 1 : ${scaleDenom}",\n -\n - \'methodDeprecated\': "Þetta fall hefur verið úrelt og verður fjarlægt à 3.0. Notaðu ${newMethod} à staðin."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>710</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/it.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/it.js.xml deleted file mode 100644 index e270099301419e5b0792177cfa661e40a8d591df..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/it.js.xml +++ /dev/null @@ -1,124 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>it.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["it"]\n - * Dictionary for Italian. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang.it = {\n -\n - \'unhandledRequest\': "Codice di ritorno della richiesta ${statusText}",\n -\n - \'Permalink\': "Permalink",\n -\n - \'Overlays\': "Overlays",\n -\n - \'Base Layer\': "Livello base",\n -\n - \'noFID\': "Impossibile aggiornare un elemento grafico che non abbia il FID.",\n -\n - \'browserNotSupported\':\n - "Il tuo browser non supporta il rendering vettoriale. I renderizzatore attualemnte supportati sono:\\n${renderers}",\n -\n - // console message\n - \'minZoomLevelError\':\n - "La proprietà minZoomLevel è da utilizzare solamente " +\n - "con livelli che abbiano FixedZoomLevels. Il fatto che " +\n - "questo livello wfs controlli la proprietà minZoomLevel è " +\n - "un retaggio del passato. Non possiamo comunque rimuoverla " +\n - "senza rompere le vecchie applicazioni che dipendono su di essa." +\n - "Quindi siamo costretti a deprecarla -- minZoomLevel " +\n - "e sarà rimossa dalla vesione 3.0. Si prega di utilizzare i " +\n - "settaggi di risoluzione min/max come descritto qui: " +\n - "http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Transazione WFS: SUCCESS ${response}",\n -\n - \'commitFailed\': "Transazione WFS: FAILED ${response}",\n -\n - \'googleWarning\':\n - "Il livello Google non è riuscito a caricare correttamente.<br><br>" +\n - "Per evitare questo messaggio, seleziona un nuovo BaseLayer " +\n - "nel selettore di livelli nell\'angolo in alto a destra.<br><br>" +\n - "Più precisamente, ciò accade perchè la libreria Google Maps " +\n - "non è stata inclusa nella pagina, oppure non contiene la " +\n - "corretta API key per il tuo sito.<br><br>" +\n - "Sviluppatori: Per aiuto su come farlo funzionare correttamente, " +\n - "<a href=\'http://trac.openlayers.org/wiki/Google\' " +\n - "target=\'_blank\'>clicca qui</a>",\n -\n - \'getLayerWarning\':\n - "Il livello ${layerType} non è riuscito a caricare correttamente.<br><br>" +\n - "Per evitare questo messaggio, seleziona un nuovo BaseLayer " +\n - "nel selettore di livelli nell\'angolo in alto a destra.<br><br>" +\n - "Più precisamente, ciò accade perchè la libreria ${layerLib} " +\n - "non è stata inclusa nella pagina.<br><br>" +\n - "Sviluppatori: Per aiuto su come farlo funzionare correttamente, " +\n - "<a href=\'http://trac.openlayers.org/wiki/${layerLib}\' " +\n - "target=\'_blank\'>clicca qui</a>",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Scala = 1 : ${scaleDenom}",\n -\n - // console message\n - \'reprojectDeprecated\':\n - "Stai utilizzando l\'opzione \'reproject\' sul livello ${layerName}. " +\n - "Questa opzione è deprecata: il suo utilizzo è stato introdotto per" +\n - "supportare il disegno dei dati sopra mappe commerciali, ma tale " + \n - "funzionalità dovrebbe essere ottenuta tramite l\'utilizzo della proiezione " +\n - "Spherical Mercator. Per maggiori informazioni consultare qui " +\n - "http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - // console message\n - \'methodDeprecated\':\n - "Questo metodo è stato deprecato e sarà rimosso dalla versione 3.0. " +\n - "Si prega di utilizzare il metodo ${newMethod} in alternativa.",\n -\n - \'end\': \'\'\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3512</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ja.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ja.js.xml deleted file mode 100644 index 7dc80927f37d6dca22ebf3d7fa58a253690d098a..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ja.js.xml +++ /dev/null @@ -1,98 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ja.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Fryed-peach\n - * - Mage Whopper\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["ja"]\n - * Dictionary for 日本語. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["ja"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "未処ç†ã®è¦æ±‚㯠${statusText} ã‚’è¿”ã—ã¾ã™",\n -\n - \'Permalink\': "パーマリンク",\n -\n - \'Overlays\': "オーãƒãƒ¼ãƒ¬ã‚¤",\n -\n - \'Base Layer\': "基底レイヤー",\n -\n - \'noFID\': "FID ã®ãªã„地物ã¯æ›´æ–°ã§ãã¾ã›ã‚“。",\n -\n - \'browserNotSupported\': "ã‚ãªãŸã®ãƒ–ラウザã¯ãƒ™ã‚¯ã‚¿ãƒ¼ã‚°ãƒ©ãƒ•ã‚£ãƒƒã‚¯ã‚¹ã®æ写ã«å¯¾å¿œã—ã¦ã„ã¾ã›ã‚“。ç¾æ™‚点ã§å¯¾å¿œã—ã¦ã„るソフトウェアã¯ä»¥ä¸‹ã®ã‚‚ã®ã§ã™ã€‚\\n${renderers}",\n -\n - \'minZoomLevelError\': "minZoomLevel プãƒãƒ‘ティ㯠FixedZoomLevels を継承ã™ã‚‹ãƒ¬ã‚¤ãƒ¤ãƒ¼ã§ã®ä½¿ç”¨ã®ã¿ã‚’想定ã—ã¦ã„ã¾ã™ã€‚ã“ã® minZoomLevel ã«å¯¾ã™ã‚‹ WFS レイヤーã®æ¤œæŸ»ã¯æ´å²çš„ãªã‚‚ã®ã§ã™ã€‚ã—ã‹ã—ãªãŒã‚‰ã€ã“ã®æ¤œæŸ»ã‚’除去ã™ã‚‹ã¨ãã‚Œã«ä¾å˜ã™ã‚‹ OpenLayers ベースã®ã‚¢ãƒ—ãƒªã‚±ãƒ¼ã‚·ãƒ§ãƒ³ã‚’ç ´å£Šã—ã¦ã—ã¾ã†å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚よã£ã¦å»ƒæ¢ãŒäºˆå®šã•ã‚Œã¦ãŠã‚Šã€ã“ã® minZoomLevel 検査ã¯ãƒãƒ¼ã‚¸ãƒ§ãƒ³3.0ã§é™¤åŽ»ã•ã‚Œã¾ã™ã€‚代ã‚ã‚Šã«ã€http://trac.openlayers.org/wiki/SettingZoomLevels ã§è§£èª¬ã•ã‚Œã¦ã„ã‚‹ã€æœ€å°ãŠã‚ˆã³æœ€å¤§è§£åƒåº¦è¨å®šã‚’使用ã—ã¦ãã ã•ã„。",\n -\n - \'commitSuccess\': "WFS トランザクション: æˆåŠŸ ${response}",\n -\n - \'commitFailed\': "WFS トランザクション: 失敗 ${response}",\n -\n - \'googleWarning\': "Google レイヤーãŒæ£ã—ãèªã¿è¾¼ã¿ã‚’è¡Œãˆã¾ã›ã‚“ã§ã—ãŸã€‚\\x3cbr\\x3e\\x3cbr\\x3eã“ã®ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã‚’消ã™ã«ã¯ã€å³ä¸Šã®éš…ã«ã‚るレイヤー切り替ãˆéƒ¨åˆ†ã§æ–°ã—ã„基底レイヤーをé¸ã‚“ã§ãã ã•ã„。\\x3cbr\\x3e\\x3cbr\\x3eãŠãらãã€ã“れ㯠Google マップ用ライブラリã®ã‚¹ã‚¯ãƒªãƒ—トãŒçµ„ã¿è¾¼ã¾ã‚Œã¦ã„ãªã„ã‹ã€ã‚ãªãŸã®ã‚µã‚¤ãƒˆã«å¯¾å¿œã™ã‚‹æ£ã—ã„ API ã‚ーãŒè¨å®šã•ã‚Œã¦ã„ãªã„ãŸã‚ã§ã™ã€‚\\x3cbr\\x3e\\x3cbr\\x3e開発者ã®æ–¹ã¸: æ£ã—ã„動作をã•ã›ã‚‹ãŸã‚ã«\\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3eã“ã¡ã‚‰ã®ã‚¦ã‚£ã‚\\x3c/a\\x3eã‚’å‚ç…§ã—ã¦ãã ã•ã„。",\n -\n - \'getLayerWarning\': "${layerType} レイヤーãŒæ£ã—ãèªã¿è¾¼ã¿ã‚’è¡Œãˆã¾ã›ã‚“ã§ã—ãŸã€‚\\x3cbr\\x3e\\x3cbr\\x3eã“ã®ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã‚’消ã™ã«ã¯ã€å³ä¸Šã®éš…ã«ã‚るレイヤー切り替ãˆéƒ¨åˆ†ã§æ–°ã—ã„基底レイヤーをé¸ã‚“ã§ãã ã•ã„。\\x3cbr\\x3e\\x3cbr\\x3eãŠãらãã€ã“れ㯠${layerLib} ライブラリã®ã‚¹ã‚¯ãƒªãƒ—トãŒæ£ã—ã組ã¿è¾¼ã¾ã‚Œã¦ã„ãªã„ãŸã‚ã§ã™ã€‚\\x3cbr\\x3e\\x3cbr\\x3e開発者ã®æ–¹ã¸: æ£ã—ã„動作をã•ã›ã‚‹ãŸã‚ã«\\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3eã“ã¡ã‚‰ã®ã‚¦ã‚£ã‚\\x3c/a\\x3eã‚’å‚ç…§ã—ã¦ãã ã•ã„。",\n -\n - \'Scale = 1 : ${scaleDenom}\': "縮尺 = 1 : ${scaleDenom}",\n -\n - \'W\': "西",\n -\n - \'E\': "æ±",\n -\n - \'N\': "北",\n -\n - \'S\': "å—",\n -\n - \'reprojectDeprecated\': "ã‚ãªãŸã¯ã€Œ${layerName}ã€ãƒ¬ã‚¤ãƒ¤ãƒ¼ã§ reproject オプションを使ã£ã¦ã„ã¾ã™ã€‚ã“ã®ã‚ªãƒ—ションã¯å•†ç”¨ã®åŸºåº•åœ°å›³ä¸Šã«æƒ…å ±ã‚’è¡¨ç¤ºã™ã‚‹ç›®çš„ã§è¨è¨ˆã•ã‚Œã¾ã—ãŸãŒã€ç¾åœ¨ã§ã¯ãã®æ©Ÿèƒ½ã¯ Spherical Mercator サãƒãƒ¼ãƒˆã‚’利用ã—ã¦å®Ÿç¾ã•ã‚Œã¦ãŠã‚Šã€ã“ã®ã‚ªãƒ—ションã®ä½¿ç”¨ã¯éžæŽ¨å¥¨ã§ã™ã€‚è¿½åŠ ã®æƒ…å ±ã¯ http://trac.openlayers.org/wiki/SphericalMercator ã§å…¥æ‰‹ã§ãã¾ã™ã€‚",\n -\n - \'methodDeprecated\': "ã“ã®ãƒ¡ã‚½ãƒƒãƒ‰ã¯å»ƒæ¢ãŒäºˆå®šã•ã‚Œã¦ãŠã‚Šã€ãƒãƒ¼ã‚¸ãƒ§ãƒ³3.0ã§é™¤åŽ»ã•ã‚Œã¾ã™ã€‚代ã‚ã‚Šã« ${newMethod} を使用ã—ã¦ãã ã•ã„。"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3875</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/km.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/km.js.xml deleted file mode 100644 index e45c3bcce5c545c64a705f8c53da67194d43d3c9..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/km.js.xml +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>km.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - ážœáŸážŽážáž¶ážšáž·áž‘្ធ\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["km"]\n - * Dictionary for ភាសាážáŸ’មែរ. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["km"] = OpenLayers.Util.applyDefaults({\n -\n - \'Permalink\': "ážáŸ†ážŽáž—្ជាប់អចិន្ážáŸ’រៃយáŸ",\n -\n - \'Base Layer\': "ស្រទាប់បាážâ€‹",\n -\n - \'Scale = 1 : ${scaleDenom}\': "មាážáŸ’រដ្ឋាន = ១ ៖ ${scaleDenom}"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>678</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ksh.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ksh.js.xml deleted file mode 100644 index f6c112ebf635dcc5eb7471bc96961121eb348bfe..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ksh.js.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ksh.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Purodha\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["ksh"]\n - * Dictionary for Ripoarisch. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["ksh"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Met dä Antwoot op en Aanfrooch ham_mer nix aanjefange: ${statusText}",\n -\n - \'Permalink\': "Lengk op Duuer",\n -\n - \'Overlays\': "Drövver jelaat",\n -\n - \'Base Layer\': "Jrund-Nivoh",\n -\n - \'noFID\': "En Saach, woh kein \\x3ci lang=\\"en\\"\\x3eFID\\x3c/i\\x3e för doh es, löht sesch nit ändere.",\n -\n - \'browserNotSupported\': "Dinge Brauser kann kein Väktore ußjävve. De Zoote Ußjaabe, di em Momang jon, sen:\\n${renderers}",\n -\n - \'minZoomLevelError\': "De Eijeschaff „\\x3ccode lang=\\"en\\"\\x3eminZoomLevel\\x3c/code\\x3e“ es bloß doför jedaach, dat mer se met dä Nivvohß bruch, di vun \\x3ccode lang=\\"en\\"\\x3eFixedZoomLevels\\x3c/code\\x3e affhange don. Dat dat \\x3ci lang=\\"en\\"\\x3eWFS\\x3c/i\\x3e-Nivvoh övverhoup de Eijeschaff „\\x3ccode lang=\\"en\\"\\x3eminZoomLevel\\x3c/code\\x3e“ pröhfe deiht, es noch övveresch vun fröhjer. Mer künne dat ävver jez nit fott lohße, oohne dat mer Jevaa loufe, dat Aanwendunge vun OpenLayers nit mieh loufe, di sesch doh velleijsch noch drop am verlohße sin. Dröm sare mer, dat mer et nit mieh han welle, un de „\\x3ccode lang=\\"en\\"\\x3eminZoomLevel\\x3c/code\\x3e“-Eijeschaff weed hee vun de Version 3.0 af nit mieh jeprööf wäde. Nemm doför de Enstellung för de hühßte un de kleinßte Oplöhsung, esu wi et en http://trac.openlayers.org/wiki/SettingZoomLevels opjeschrevve es.",\n -\n - \'commitSuccess\': "Dä \\x3ci lang=\\"en\\"\\x3eWFS\\x3c/i\\x3e-Vörjang es joot jeloufe: ${response}",\n -\n - \'commitFailed\': "Dä \\x3ci lang=\\"en\\"\\x3eWFS\\x3c/i\\x3e-Vörjang es scheif jejange: ${response}",\n -\n - \'googleWarning\': "Dat Nivvoh \\x3ccode lang=\\"en\\"\\x3eGoogle\\x3c/code\\x3e kunnt nit reschtesch jelaade wääde.\\x3cbr /\\x3e\\x3cbr /\\x3eÖm hee di Nohreesch loß ze krijje, donn en ander Jrund-Nivvoh ußsöhke, rähß bovve en de Äk.\\x3cbr /\\x3e\\x3cbr /\\x3eWascheinlesch es dat wiel dat \\x3ci lang=\\"en\\"\\x3eGoogle-Maps\\x3c/i\\x3e-Skrepp entweeder nit reschtesch enjebonge wood, udder nit dä reschtejje \\x3ci lang=\\"en\\"\\x3eAPI\\x3c/i\\x3e-Schlößel för Ding Web-ßait scheke deiht.\\x3cbr /\\x3e\\x3cbr /\\x3eFör Projrammierer jidd_et Hölp do_drövver, \\x3ca href=\\"http://trac.openlayers.org/wiki/Google\\" target=\\"_blank\\"\\x3ewi mer dat aan et Loufe brengk\\x3c/a\\x3e.",\n -\n - \'getLayerWarning\': "Dat Nivvoh \\x3ccode\\x3e${layerType}\\x3c/code\\x3e kunnt nit reschtesch jelaade wääde.\\x3cbr /\\x3e\\x3cbr /\\x3eÖm hee di Nohreesch loß ze krijje, donn en ander Jrund-Nivvoh ußsöhkre, rähß bovve en de Äk.\\x3cbr /\\x3e\\x3cbr /\\x3eWascheinlesch es dat, wiel dat Skrepp \\x3ccode\\x3e${layerLib}\\x3c/code\\x3e nit reschtesch enjebonge wood.\\x3cbr /\\x3e\\x3cbr /\\x3eFör Projrammierer jidd_Et Hölp do_drövver, \\x3ca href=\\"http://trac.openlayers.org/wiki/${layerLib}\\" target=\\"_blank\\"\\x3ewi mer dat aan et Loufe brengk\\x3c/a\\x3e.",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Mohßshtaab = 1 : ${scaleDenom}",\n -\n - \'W\': "W",\n -\n - \'E\': "O",\n -\n - \'N\': "N",\n -\n - \'S\': "S",\n -\n - \'reprojectDeprecated\': "Do bruchs de Ußwahl \\x3ccode\\x3ereproject\\x3c/code\\x3e op däm Nivvoh \\x3ccode\\x3e${layerName}\\x3c/code\\x3e. Di Ußwahl es nit mieh jähn jesinn. Se wohr doför jedaach, öm Date op jeschääfsmäßesch eruß jejovve Kaate bovve drop ze moole, wat ävver enzwesche besser met dä Öngershtözung för de ßfääresche Mäkaator Beldscher jeiht. Doh kanns De mieh drövver fenge op dä Sigg: http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Hee di Metood es nim_mih aktoäll un et weed se en dä Version 3.0 nit mieh jävve. Nemm \\x3ccode\\x3e${newMethod}\\x3c/code\\x3e doföör."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3968</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/lt.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/lt.js.xml deleted file mode 100644 index 562cf7e7b0264ae24590d1094ff170588d47658a..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/lt.js.xml +++ /dev/null @@ -1,91 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>lt.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["lt"]\n - * Dictionary for Lithuanian. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang[\'lt\'] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Neapdorota užklausa gražino ${statusText}",\n -\n - \'Permalink\': "Pastovi nuoroda",\n -\n - \'Overlays\': "Papildomi sluoksniai",\n -\n - \'Base Layer\': "Pagrindinis sluoksnis",\n -\n - \'noFID\': "Negaliu atnaujinti objekto, kuris neturi FID.",\n -\n - \'browserNotSupported\':\n -\t"JÅ«sų narÅ¡yklÄ— nemoka parodyti vektorių. Å iuo metu galima naudotis tokiais rodymo varikliais:\\n{renderers}",\n -\n - \'commitSuccess\': "WFS Tranzakcija: PAVYKO ${response}",\n -\n - \'commitFailed\': "WFS Tranzakcija: ŽLUGO ${response}",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Mastelis = 1 : ${scaleDenom}",\n - \n - //labels for the graticule control\n - \'W\': \'V\',\n - \'E\': \'R\',\n - \'N\': \'Å \',\n - \'S\': \'P\',\n - \'Graticule\': \'Tinklelis\',\n -\n - // console message\n - \'methodDeprecated\':\n -\t"Å is metodas yra pasenÄ™s ir 3.0 versijoje bus paÅ¡alintas. " +\n -\t"PraÅ¡ome naudoti ${newMethod}.",\n -\n - // **** end ****\n - \'end\': \'\'\n - \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1267</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/nb.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/nb.js.xml deleted file mode 100644 index 18b29cd242b2534e2a0c3367daa9417a1d64b973..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/nb.js.xml +++ /dev/null @@ -1,126 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>nb.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["nb"]\n - * Dictionary for norwegian bokmÃ¥l (Norway). Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["nb"] = {\n -\n - \'unhandledRequest\': "Ubehandlet forespørsel returnerte ${statusText}",\n -\n - \'Permalink\': "Kobling til denne siden",\n -\n - \'Overlays\': "Kartlag",\n -\n - \'Base Layer\': "Bakgrunnskart",\n -\n - \'noFID\': "Kan ikke oppdatere et feature (et objekt) som ikke har FID.",\n -\n - \'browserNotSupported\':\n - "Din nettleser støtter ikke vektortegning. Tegnemetodene som støttes er:\\n${renderers}",\n -\n - // console message\n - \'minZoomLevelError\':\n - "Egenskapen minZoomLevel er kun ment til bruk pÃ¥ lag " +\n - "basert pÃ¥ FixedZoomLevels. At dette wfs-laget sjekker " +\n - "minZoomLevel er en etterlevning fra tidligere versjoner. Det kan dog ikke " +\n - "tas bort uten Ã¥ risikere at OL-baserte applikasjoner " +\n - "slutter Ã¥ virke, sÃ¥ det er merket som foreldet: " +\n - "minZoomLevel i sjekken nedenfor vil fjernes i 3.0. " +\n - "Vennligst bruk innstillingene for min/maks oppløsning " +\n - "som er beskrevet her: "+\n - "http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "WFS-transaksjon: LYKTES ${response}",\n -\n - \'commitFailed\': "WFS-transaksjon: MISLYKTES ${response}",\n -\n - \'googleWarning\':\n - "Google-laget kunne ikke lastes.<br><br>" +\n - "Bytt til et annet bakgrunnslag i lagvelgeren i " +\n - "øvre høyre hjørne for Ã¥ slippe denne meldingen.<br><br>" +\n - "Sannsynligvis forÃ¥rsakes feilen av at Google Maps-biblioteket " +\n - "ikke er riktig inkludert pÃ¥ nettsiden, eller at det ikke er " +\n - "angitt riktig API-nøkkel for nettstedet.<br><br>" +\n - "Utviklere: For hjelp til Ã¥ fÃ¥ dette til Ã¥ virke se "+\n - "<a href=\'http://trac.openlayers.org/wiki/Google\' " +\n - "target=\'_blank\'>her</a>.",\n -\n - \'getLayerWarning\':\n - "${layerType}-laget kunne ikke lastes.<br><br>" +\n - "Bytt til et annet bakgrunnslag i lagvelgeren i " +\n - "øvre høyre hjørne for Ã¥ slippe denne meldingen.<br><br>" +\n - "Sannsynligvis forÃ¥rsakes feilen av at " +\n - "${layerLib}-biblioteket ikke var riktig inkludert " +\n - "pÃ¥ nettsiden.<br><br>" +\n - "Utviklere: For hjelp til Ã¥ fÃ¥ dette til Ã¥ virke se " +\n - "<a href=\'http://trac.openlayers.org/wiki/${layerLib}\' " +\n - "target=\'_blank\'>her</a>.",\n -\n - \'Scale = 1 : ${scaleDenom}\': "<strong>Skala</strong> 1 : ${scaleDenom}",\n -\n - // console message\n - \'reprojectDeprecated\':\n - "Du bruker innstillingen \'reproject\' pÃ¥ laget ${layerName}. " +\n - "Denne innstillingen er foreldet, den var ment for Ã¥ støtte " +\n - "visning av kartdata over kommersielle bakgrunnskart, men det " +\n - "bør nÃ¥ gjøres med støtten for Spherical Mercator. Mer informasjon " +\n - "finnes pÃ¥ http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - // console message\n - \'methodDeprecated\':\n - "Denne metoden er markert som foreldet og vil bli fjernet i 3.0. " +\n - "Vennligst bruk ${newMethod} i stedet.",\n -\n - \'end\': \'\'\n -};\n -\n -OpenLayers.Lang["no"] = OpenLayers.Lang["nb"];\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3342</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/nds.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/nds.js.xml deleted file mode 100644 index 0f61cfde4aaced48c57047d692f6c650d2a51156..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/nds.js.xml +++ /dev/null @@ -1,81 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>nds.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Slomox\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["nds"]\n - * Dictionary for Plattdüütsch. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["nds"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Unbehannelt Trüchmellels för de Anfraag ${statusText}",\n -\n - \'Permalink\': "Permalink",\n -\n - \'Overlays\': "Overlays",\n -\n - \'Base Layer\': "Achtergrundkoort",\n -\n - \'noFID\': "En Feature, dat keen FID hett, kann nich aktuell maakt warrn.",\n -\n - \'browserNotSupported\': "Dien Browser ünnerstütt keen Vektorbiller. Ãœnnerstütt Renderers:\\n${renderers}",\n -\n - \'commitSuccess\': "WFS-Transakschoon: hett klappt ${response}",\n -\n - \'commitFailed\': "WFS-Transakschoon: hett nich klappt ${response}",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Skaal = 1 : ${scaleDenom}",\n -\n - \'methodDeprecated\': "Disse Methood is oold un schall dat in 3.0 nich mehr geven. Bruuk dor man beter ${newMethod} för."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1119</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/nl.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/nl.js.xml deleted file mode 100644 index 421054b303c0065629c86250028a801bc6c93008..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/nl.js.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>nl.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Siebrand\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["nl"]\n - * Dictionary for Nederlands. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["nl"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Het verzoek is niet afgehandeld met de volgende melding: ${statusText}",\n -\n - \'Permalink\': "Permanente verwijzing",\n -\n - \'Overlays\': "Overlays",\n -\n - \'Base Layer\': "Achtergrondkaart",\n -\n - \'noFID\': "Een optie die geen FID heeft kan niet bijgewerkt worden.",\n -\n - \'browserNotSupported\': "Uw browser ondersteunt het weergeven van vectoren niet.\\nMomenteel ondersteunde weergavemogelijkheden:\\n${renderers}",\n -\n - \'minZoomLevelError\': "De eigenschap minZoomLevel is alleen bedoeld voor gebruik lagen met die afstammen van FixedZoomLevels-lagen.\\nDat deze WFS-laag minZoomLevel controleert, is een overblijfsel uit het verleden.\\nWe kunnen deze controle echter niet verwijderen zonder op OL gebaseerde applicaties die hervan afhankelijk zijn stuk te maken.\\nDaarom heeft deze functionaliteit de eigenschap \\\'deprecated\\\' gekregen - de minZoomLevel wordt verwijderd in versie 3.0.\\nGebruik in plaats van deze functie de mogelijkheid om min/max voor resolutie in te stellen zoals op de volgende pagina wordt beschreven:\\nhttp://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "WFS-transactie: succesvol ${response}",\n -\n - \'commitFailed\': "WFS-transactie: mislukt ${response}",\n -\n - \'googleWarning\': "De Google-Layer kon niet correct geladen worden.\\x3cbr /\\x3e\\x3cbr /\\x3e\\nOm deze melding niet meer te krijgen, moet u een andere achtergrondkaart kiezen in de laagwisselaar in de rechterbovenhoek.\\x3cbr /\\x3e\\x3cbr /\\x3e\\nDit komt waarschijnlijk doordat de bibliotheek ${layerLib} niet correct ingevoegd is.\\x3cbr /\\x3e\\x3cbr /\\x3e\\nOntwikkelaars: \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3eklik hier\\x3c/a\\x3e om dit werkend te krijgen.",\n -\n - \'getLayerWarning\': "De laag ${layerType} kon niet goed geladen worden.\\x3cbr /\\x3e\\x3cbr /\\x3e\\nOm deze melding niet meer te krijgen, moet u een andere achtergrondkaart kiezen in de laagwisselaar in de rechterbovenhoek.\\x3cbr /\\x3e\\x3cbr /\\x3e\\nDit komt waarschijnlijk doordat de bibliotheek ${layerLib} niet correct is ingevoegd.\\x3cbr /\\x3e\\x3cbr /\\x3e\\nOntwikkelaars: \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3eklik hier\\x3c/a\\x3e om dit werkend te krijgen.",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Schaal = 1 : ${scaleDenom}",\n -\n - \'W\': "W",\n -\n - \'E\': "O",\n -\n - \'N\': "N",\n -\n - \'S\': "Z",\n -\n - \'reprojectDeprecated\': "U gebruikt de optie \\\'reproject\\\' op de laag ${layerName}.\\nDeze optie is vervallen: deze optie was ontwikkeld om gegevens over commerciële basiskaarten weer te geven, maar deze functionaliteit wordt nu bereikt door ondersteuning van Spherical Mercator.\\nMeer informatie is beschikbaar op http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Deze methode is verouderd en wordt verwijderd in versie 3.0.\\nGebruik ${newMethod}."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3239</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/nn.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/nn.js.xml deleted file mode 100644 index 9192447cf799f7e6f961dc898af9e12e13a4ba82..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/nn.js.xml +++ /dev/null @@ -1,63 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>nn.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Harald Khan\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["nn"]\n - * Dictionary for ‪Norsk (nynorsk)‬. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["nn"] = OpenLayers.Util.applyDefaults({\n -\n - \'Scale = 1 : ${scaleDenom}\': "Skala = 1 : ${scaleDenom}"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>486</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/oc.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/oc.js.xml deleted file mode 100644 index 500d303ab6f1fd6275d060beffd4a97770132ae1..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/oc.js.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>oc.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Cedric31\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["oc"]\n - * Dictionary for Occitan. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["oc"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Requèsta pas gerida, retorna ${statusText}",\n -\n - \'Permalink\': "Permaligam",\n -\n - \'Overlays\': "Calques",\n -\n - \'Base Layer\': "Calc de basa",\n -\n - \'noFID\': "Impossible de metre a jorn un objècte sens identificant (fid).",\n -\n - \'browserNotSupported\': "Vòstre navegidor supòrta pas lo rendut vectorial. Los renderers actualament suportats son : \\n${renderers}",\n -\n - \'minZoomLevelError\': "La proprietat minZoomLevel deu èsser utilizada solament per de jaces FixedZoomLevels-descendent. Lo fach qu\\\'aqueste jaç WFS verifique la preséncia de minZoomLevel es una relica del passat. Çaquelà , la podèm suprimir sens copar d\\\'aplicacions que ne poirián dependre. Es per aquò que la depreciam -- la verificacion del minZoomLevel serà suprimida en version 3.0. A la plaça, mercés d\\\'utilizar los paramètres de resolucions min/max tal coma descrich sus : http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Transaccion WFS : SUCCES ${response}",\n -\n - \'commitFailed\': "Transaccion WFS : FRACAS ${response}",\n -\n - \'googleWarning\': "Lo jaç Google es pas estat en mesura de se cargar corrèctament.\\x3cbr\\x3e\\x3cbr\\x3ePer suprimir aqueste messatge, causissètz una BaseLayer novèla dins lo selector de jaç en naut a drecha.\\x3cbr\\x3e\\x3cbr\\x3eAquò es possiblament causat par la non-inclusion de la librariá Google Maps, o alara perque que la clau de l\\\'API correspond pas a vòstre site.\\x3cbr\\x3e\\x3cbr\\x3eDesvolopaires : per saber cossà corregir aquò, \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3eclicatz aicÃ\\x3c/a\\x3e",\n -\n - \'getLayerWarning\': "Lo jaç ${layerType} es pas en mesura de se cargar corrèctament.\\x3cbr\\x3e\\x3cbr\\x3ePer suprimir aqueste messatge, causissètz una BaseLayer novèla dins lo selector de jaç en naut a drecha.\\x3cbr\\x3e\\x3cbr\\x3eAquò es possiblament causat per la non-inclusion de la librariá ${layerLib}.\\x3cbr\\x3e\\x3cbr\\x3eDesvolopaires : per saber cossà corregir aquÃ, \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3eclicatz aicÃ\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Escala ~ 1 : ${scaleDenom}",\n -\n - \'W\': "O",\n -\n - \'E\': "È",\n -\n - \'N\': "N",\n -\n - \'S\': "S",\n -\n - \'reprojectDeprecated\': "Utilizatz l\\\'opcion \\\'reproject\\\' sul jaç ${layerName}. Aquesta opcion es despreciada : Son usatge permetiá d\\\'afichar de donadas al dessús de jaces raster comercials. Aquesta foncionalitat ara es suportada en utilizant lo supòrt de la projeccion Mercator Esferica. Mai d\\\'informacion es disponibla sus http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Aqueste metòde es despreciada, e serà suprimida a la version 3.0. Mercés d\\\'utilizar ${newMethod} a la plaça."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3163</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/pl.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/pl.js.xml deleted file mode 100644 index a7cd772bbd40481f1596a529a5423fb0544edfea..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/pl.js.xml +++ /dev/null @@ -1,136 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>pl.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators:\n - * - Arkadiusz Grabka\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["pl"]\n - * Dictionary for Polish. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["pl"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "NieobsÅ‚ugiwane żądanie zwróciÅ‚o ${statusText}",\n -\n - \'Permalink\': "Permalink",\n -\n - \'Overlays\': "NakÅ‚adki",\n -\n - \'Base Layer\': "Warstwa podstawowa",\n -\n - \'noFID\': "Nie można zaktualizować funkcji, dla których nie ma FID.",\n -\n - \'browserNotSupported\':\n - "Twoja przeglÄ…darka nie obsÅ‚uguje renderowania wektorów. Obecnie obsÅ‚ugiwane renderowanie to:\\n${renderers}",\n -\n - // console message\n - \'minZoomLevelError\':\n - "WÅ‚aÅ›ciwość minZoomLevel jest przeznaczona tylko do użytku " +\n - "z warstwami FixedZoomLevels-descendent." +\n - "Warstwa wfs, która sprawdza minZoomLevel jest reliktem przeszÅ‚oÅ›ci." +\n - "Nie możemy jej jednak usunÄ…c bez mozliwoÅ›ci Å‚amania OL aplikacji, " +\n - "które mogÄ… być od niej zależne. " +\n - "Dlatego jesteÅ›my za deprecjacjÄ™ -- minZoomLevel " +\n - "zostanie usuniÄ™ta w wersji 3.0. W zamian prosze użyj " +\n - "min/max rozdzielczoÅ›ci w sposób opisany tutaj: " +\n - "http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Transakcja WFS: SUKCES ${response}",\n -\n - \'commitFailed\': "Transakcja WFS: FAILED ${response}",\n -\n - \'googleWarning\':\n - "Warstwa Google nie byÅ‚ w stanie zaÅ‚adować siÄ™ poprawnie.<br><br>" +\n - "Aby pozbyć siÄ™ tej wiadomoÅ›ci, wybierz nowÄ… Warstwe podstawowÄ… " +\n - "w przeÅ‚Ä…czniku warstw w górnym prawym rogu mapy.<br><br>" +\n - "Najprawdopodobniej jest to spowodowane tym, że biblioteka Google Maps " +\n - "nie jest zaÅ‚adowana, lub nie zawiera poprawnego klucza do API dla twojej strony<br><br>" +\n - "Programisto: Aby uzyskać pomoc , " +\n - "<a href=\'http://trac.openlayers.org/wiki/Google\' " +\n - "target=\'_blank\'>kliknij tutaj</a>",\n -\n - \'getLayerWarning\':\n - "Warstwa ${layerType} nie mogÅ‚a zostać zaÅ‚adowana poprawnie.<br><br>" +\n -\t\t"Aby pozbyć siÄ™ tej wiadomoÅ›ci, wybierz nowÄ… Warstwe podstawowÄ… " +\n - "w przeÅ‚Ä…czniku warstw w górnym prawym rogu mapy.<br><br>" +\n - "Najprawdopodobniej jest to spowodowane tym, że biblioteka ${layerLib} " +\n - "nie jest zaÅ‚adowana, lub może(o ile biblioteka tego wymaga) " +\n -\t\t"byc potrzebny klucza do API dla twojej strony<br><br>" +\n - "Programisto: Aby uzyskać pomoc , " +\n - "<a href=\'http://trac.openlayers.org/wiki/${layerLib}\' " +\n - "target=\'_blank\'>kliknij tutaj</a>",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Skala = 1 : ${scaleDenom}",\n - \n - //labels for the graticule control\n - \'W\': \'ZACH\',\n - \'E\': \'WSCH\',\n - \'N\': \'PN\',\n - \'S\': \'PD\',\n - \'Graticule\': \'Siatka\',\n -\n - // console message\n - \'reprojectDeprecated\':\n - "w warstwie ${layerName} używasz opcji \'reproject\'. " +\n - "Ta opcja jest przestarzaÅ‚a: " +\n - "jej zastosowanie zostaÅ‚ zaprojektowany, aby wspierać wyÅ›wietlania danych przez komercyjne mapy, "+\n -\t\t"jednak obecnie ta funkcjonalność powinien zostać osiÄ…gniÄ™ty za pomocÄ… Spherical Mercator " +\n -\t\t"its use was designed to support displaying data over commercial. WiÄ™cje informacji na ten temat możesz znaleźć na stronie " + \n - "http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - // console message\n - \'methodDeprecated\':\n - "Ta metoda jest przestarzaÅ‚a i bÄ™dzie usuniÄ™ta od wersji 3.0. " +\n - "W zamian użyj ${newMethod}.",\n -\n - \'proxyNeeded\': "Prawdopodobnie musisz ustawić OpenLayers.ProxyHost aby otrzymać dostÄ™p do ${url}."+\n - "See http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost"\n -\n -}); - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3923</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/pt-BR.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/pt-BR.js.xml deleted file mode 100644 index 1aa2288e7118c97c5245313af8a708e2bdb7d088..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/pt-BR.js.xml +++ /dev/null @@ -1,98 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>pt-BR.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Luckas Blade\n - * - Rodrigo Avila\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["pt-br"]\n - * Dictionary for Português do Brasil. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["pt-br"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "A requisição retornou um erro não tratado: ${statusText}",\n -\n - \'Permalink\': "Link para essa página",\n -\n - \'Overlays\': "Camadas de Sobreposição",\n -\n - \'Base Layer\': "Camada Base",\n -\n - \'noFID\': "Não é possÃvel atualizar uma feição que não tenha um FID.",\n -\n - \'browserNotSupported\': "Seu navegador não suporta renderização de vetores. Os renderizadores suportados atualmente são:\\n${renderers}",\n -\n - \'minZoomLevelError\': "A propriedade minZoomLevel é de uso restrito das camadas descendentes de FixedZoomLevels. A verificação dessa propriedade pelas camadas wfs é um resÃduo do passado. Não podemos, entretanto não é possÃvel removê-la sem possÃvelmente quebrar o funcionamento de aplicações OL que possuem depência com ela. Portanto estamos tornando seu uso obsoleto -- a verificação desse atributo será removida na versão 3.0. Ao invés, use as opções de resolução min/max como descrito em: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Transação WFS : SUCESSO ${response}",\n -\n - \'commitFailed\': "Transação WFS : ERRO ${response}",\n -\n - \'googleWarning\': "Não foi possÃvel carregar a camada Google corretamente.\\x3cbr\\x3e\\x3cbr\\x3ePara se livrar dessa mensagem, selecione uma nova Camada Base, na ferramenta de alternação de camadas localização do canto superior direito.\\x3cbr\\x3e\\x3cbr\\x3eMuito provavelmente, isso foi causado porque o script da biblioteca do Google Maps não foi incluÃdo, ou porque ele não contém a chave correta da API para o seu site.\\x3cbr\\x3e\\x3cbr\\x3eDesenvolvedores: Para obter ajuda em solucionar esse problema \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3ecliquem aqui\\x3c/a\\x3e",\n -\n - \'getLayerWarning\': "Não foi possÃvel carregar a camada ${layerType} corretamente.\\x3cbr\\x3e\\x3cbr\\x3ePara se livrar dessa mensagem, selecione uma nova Camada Base, na ferramenta de alternação de camadas localização do canto superior direito.\\x3cbr\\x3e\\x3cbr\\x3eMuito provavelmente, isso foi causado porque o script da biblioteca ${layerLib} não foi incluÃdo corretamente.\\x3cbr\\x3e\\x3cbr\\x3eDesenvolvedores: Para obter ajuda em solucionar esse problema \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3ecliquem aqui\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Escala = 1 : ${scaleDenom}",\n -\n - \'W\': "O",\n -\n - \'E\': "L",\n -\n - \'N\': "N",\n -\n - \'S\': "S",\n -\n - \'reprojectDeprecated\': "Você está usando a opção \\\'reproject\\\' na camada ${layerName}. Essa opção está obsoleta: seu uso foi projetado para suportar a visualização de dados sobre bases de mapas comerciais, entretanto essa funcionalidade deve agora ser alcançada usando o suporte à projeção Mercator. Mais informação está disponÃvel em: http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Esse método está obsoleto e será removido na versão 3.0. Ao invés, por favor use ${newMethod}."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3430</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/pt.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/pt.js.xml deleted file mode 100644 index e4a6a3e62b5e8ee0387022fc2812544a7ac1b0de..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/pt.js.xml +++ /dev/null @@ -1,99 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>pt.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Hamilton Abreu\n - * - Malafaya\n - * - Waldir\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["pt"]\n - * Dictionary for Português. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["pt"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Servidor devolveu erro não contemplado ${statusText}",\n -\n - \'Permalink\': "Ligação permanente",\n -\n - \'Overlays\': "Sobreposições",\n -\n - \'Base Layer\': "Camada Base",\n -\n - \'noFID\': "Não é possÃvel atualizar um elemento para a qual não há FID.",\n -\n - \'browserNotSupported\': "O seu navegador não suporta renderização vetorial. Actualmente os renderizadores suportados são:\\n${renderers}",\n -\n - \'minZoomLevelError\': "A propriedade minZoomLevel só deve ser usada com as camadas descendentes da FixedZoomLevels. A verificação da propriedade por esta camada wfs é uma relÃquia do passado. No entanto, não podemos removê-la sem correr o risco de afectar aplicações OL que dependam dela. Portanto, estamos a torná-la obsoleta -- a verificação minZoomLevel será removida na versão 3.0. Em vez dela, por favor, use as opções de resolução min/max descritas aqui: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Transacção WFS: SUCESSO ${response}",\n -\n - \'commitFailed\': "Transacção WFS: FALHOU ${response}",\n -\n - \'googleWarning\': "A Camada Google não foi correctamente carregada.\\x3cbr\\x3e\\x3cbr\\x3ePara deixar de receber esta mensagem, seleccione uma nova Camada-Base no \\\'\\\'switcher\\\'\\\' de camadas no canto superior direito.\\x3cbr\\x3e\\x3cbr\\x3eProvavelmente, isto acontece porque o \\\'\\\'script\\\'\\\' da biblioteca do Google Maps não foi incluÃdo ou não contém a chave API correcta para o seu sÃtio.\\x3cbr\\x3e\\x3cbr\\x3eProgramadores: Para ajuda sobre como solucionar o problema \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3eclique aqui\\x3c/a\\x3e .",\n -\n - \'getLayerWarning\': "A camada ${layerType} não foi correctamente carregada.\\x3cbr\\x3e\\x3cbr\\x3ePara desactivar esta mensagem, seleccione uma nova Camada-Base no \\\'\\\'switcher\\\'\\\' de camadas no canto superior direito.\\x3cbr\\x3e\\x3cbr\\x3eProvavelmente, isto acontece porque o \\\'\\\'script\\\'\\\' da biblioteca ${layerLib} não foi incluÃdo correctamente.\\x3cbr\\x3e\\x3cbr\\x3eProgramadores: Para ajuda sobre como solucionar o problema \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3eclique aqui\\x3c/a\\x3e .",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Escala = 1 : ${scaleDenom}",\n -\n - \'W\': "O",\n -\n - \'E\': "E",\n -\n - \'N\': "N",\n -\n - \'S\': "S",\n -\n - \'reprojectDeprecated\': "Está usando a opção \\\'reproject\\\' na camada ${layerName}. Esta opção é obsoleta: foi concebida para permitir a apresentação de dados sobre mapas-base comerciais, mas esta funcionalidade é agora suportada pelo Mercator Esférico. Mais informação está disponÃvel em http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Este método foi declarado obsoleto e será removido na versão 3.0. Por favor, use ${newMethod} em vez disso."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3259</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ru.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ru.js.xml deleted file mode 100644 index 6a33236e243c467ccbdf504990f23ee5d38780bd..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/ru.js.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ru.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Ferrer\n - * - Komzpa\n - * - Lockal\n - * - ÐлекÑандр Сигачёв\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["ru"]\n - * Dictionary for РуÑÑкий. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["ru"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Ðеобработанный Ð·Ð°Ð¿Ñ€Ð¾Ñ Ð²ÐµÑ€Ð½ÑƒÐ» ${statusText}",\n -\n - \'Permalink\': "ПоÑтоÑÐ½Ð½Ð°Ñ ÑÑылка",\n -\n - \'Overlays\': "Слои",\n -\n - \'Base Layer\': "ОÑновной Ñлой",\n -\n - \'noFID\': "Ðевозможно обновить объект, Ð´Ð»Ñ ÐºÐ¾Ñ‚Ð¾Ñ€Ð¾Ð³Ð¾ нет FID.",\n -\n - \'browserNotSupported\': "Ваш браузер не поддерживает векторную графику. Ðа данный момент поддерживаютÑÑ:\\n${renderers}",\n -\n - \'minZoomLevelError\': "СвойÑтво minZoomLevel предназначено только Ð´Ð»Ñ Ð¸ÑÐ¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ñо ÑлоÑми, ÑвлÑющимиÑÑ Ð¿Ð¾Ñ‚Ð¾Ð¼ÐºÐ°Ð¼Ð¸ FixedZoomLevels. То, что Ñтот WFS-Ñлой проверÑетÑÑ Ð½Ð° minZoomLevel — реликт прошлого. Однако мы не можем удалить Ñту функцию, так как, возможно, от неё завиÑÑÑ‚ некоторые оÑнованные на OpenLayers приложениÑ. Ð¤ÑƒÐ½ÐºÑ†Ð¸Ñ Ð¾Ð±ÑŠÑвлена уÑтаревшей — проверка minZoomLevel будет удалена в 3.0. ПожалуйÑта, иÑпользуйте вмеÑто неё наÑтройку мин/Ð¼Ð°ÐºÑ Ñ€Ð°Ð·Ñ€ÐµÑˆÐµÐ½Ð¸Ñ, опиÑанную здеÑÑŒ: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Ð¢Ñ€Ð°Ð½Ð·Ð°ÐºÑ†Ð¸Ñ WFS: УСПЕШÐО ${response}",\n -\n - \'commitFailed\': "Ð¢Ñ€Ð°Ð½Ð·Ð°ÐºÑ†Ð¸Ñ WFS: ОШИБКР${response}",\n -\n - \'googleWarning\': "Слой Google не удалоÑÑŒ нормально загрузить.\\x3cbr\\x3e\\x3cbr\\x3eЧтобы избавитьÑÑ Ð¾Ñ‚ Ñтого ÑообщениÑ, выбите другой оÑновной Ñлой в переключателе в правом верхнем углу.\\x3cbr\\x3e\\x3cbr\\x3eСкорее вÑего, причина в том, что библиотека Google Maps не была включена или не Ñодержит корректного API-ключа Ð´Ð»Ñ Ð²Ð°ÑˆÐµÐ³Ð¾ Ñайта.\\x3cbr\\x3e\\x3cbr\\x3eРазработчикам: чтобы узнать, как Ñделать, чтобы вÑÑ‘ заработало, \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3eщёлкните тут\\x3c/a\\x3e",\n -\n - \'getLayerWarning\': "Слой ${layerType} не удалоÑÑŒ нормально загрузить. \\x3cbr\\x3e\\x3cbr\\x3eЧтобы избавитьÑÑ Ð¾Ñ‚ Ñтого ÑообщениÑ, выбите другой оÑновной Ñлой в переключателе в правом верхнем углу.\\x3cbr\\x3e\\x3cbr\\x3eСкорее вÑего, причина в том, что библиотека ${layerLib} не была включена или была включена некорректно.\\x3cbr\\x3e\\x3cbr\\x3eРазработчикам: чтобы узнать, как Ñделать, чтобы вÑÑ‘ заработало, \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3eщёлкните тут\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "МаÑштаб = 1 : ${scaleDenom}",\n -\n - \'W\': "З",\n -\n - \'E\': "Ð’",\n -\n - \'N\': "С",\n -\n - \'S\': "Ю",\n -\n - \'reprojectDeprecated\': "Ð’Ñ‹ иÑпользуете опцию \\\'reproject\\\' Ð´Ð»Ñ ÑÐ»Ð¾Ñ ${layerName}. Ðта Ð¾Ð¿Ñ†Ð¸Ñ ÑвлÑетÑÑ ÑƒÑтаревшей: ее иÑпользование предполагалоÑÑŒ Ð´Ð»Ñ Ð¿Ð¾Ð´Ð´ÐµÑ€Ð¶ÐºÐ¸ показа данных поверх коммерчеÑких базовых карт, но теперь Ñтот функционал неÑÑ‘Ñ‚ вÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ Ð¿Ð¾Ð´Ð´ÐµÑ€Ð¶ÐºÐ° ÑферичеÑкой проекции Меркатора. Больше Ñведений доÑтупно на http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Ðтот метод ÑчитаетÑÑ ÑƒÑтаревшим и будет удалён в верÑии 3.0. ПожалуйÑта, пользуйтеÑÑŒ ${newMethod}."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4515</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/sk.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/sk.js.xml deleted file mode 100644 index 29a35cd37ad6a05be9528fc0a0d207744e1aed4d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/sk.js.xml +++ /dev/null @@ -1,88 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>sk.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Helix84\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["sk"]\n - * Dictionary for SlovenÄina. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["sk"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Neobslúžené požiadavky vracajú ${statusText}",\n -\n - \'Permalink\': "Trvalý odkaz",\n -\n - \'Overlays\': "Prekrytia",\n -\n - \'Base Layer\': "Základná vrstva",\n -\n - \'noFID\': "Nie je možné aktualizovaÅ¥ vlastnosÅ¥, pre ktorú neexistuje FID.",\n -\n - \'browserNotSupported\': "Váš prehliadaÄ nepodporuje vykresľovanie vektorov. Momentálne podporované vykresľovaÄe sú:\\n${renderers}",\n -\n - \'minZoomLevelError\': "VlastnosÅ¥ minZoomLevel je urÄený iba na použitie s vrstvami odvodenými od FixedZoomLevels. To, že táto wfs vrstva kontroluje minZoomLevel je pozostatok z minulosti. Nemôžeme ho vÅ¡ak odstrániÅ¥, aby sme sa vyhli možnému poruÅ¡eniu aplikácià založených na Open Layers, ktoré na tomto môže závisieÅ¥. Preto ho oznaÄujeme ako zavrhovaný - dolu uvedená kontrola minZoomLevel bude odstránená vo verzii 3.0. Použite prosÃm namiesto toho kontrolu min./max. rozlÃÅ¡enia podľa tu uvedeného popisu: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Transakcia WFS: ÚSPEÅ Nà ${response}",\n -\n - \'commitFailed\': "Transakcia WFS: ZLYHALA ${response}",\n -\n - \'googleWarning\': "Vrstvu Google nebolo možné správne naÄÃtaÅ¥.\\x3cbr\\x3e\\x3cbr\\x3eAby ste sa tejto správy zbavili vyberte novú BaseLayer v prepÃnaÄi vrstiev v pravom hornom rohu.\\x3cbr\\x3e\\x3cbr\\x3eToto sa stalo pravdepodobne preto, že skript knižnice Google Maps buÄ nebol naÄÃtaný alebo neobsahuje správny kÄ¾ÃºÄ API pre vaÅ¡u lokalitu.\\x3cbr\\x3e\\x3cbr\\x3eVývojári: Tu môžete zÃskaÅ¥ \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3epomoc so sfunkÄnenÃm\\x3c/a\\x3e",\n -\n - \'getLayerWarning\': "Vrstvu ${layerType} nebolo možné správne naÄÃtaÅ¥.\\x3cbr\\x3e\\x3cbr\\x3eAby ste sa tejto správy zbavili vyberte novú BaseLayer v prepÃnaÄi vrstiev v pravom hornom rohu.\\x3cbr\\x3e\\x3cbr\\x3eToto sa stalo pravdepodobne preto, že skript knižnice ${layerType} buÄ nebol naÄÃtaný alebo neobsahuje správny kÄ¾ÃºÄ API pre vaÅ¡u lokalitu.\\x3cbr\\x3e\\x3cbr\\x3eVývojári: Tu môžete zÃskaÅ¥ \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerType}\\\' target=\\\'_blank\\\'\\x3epomoc so sfunkÄnenÃm\\x3c/a\\x3e",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Mierka = 1 : ${scaleDenom}",\n -\n - \'reprojectDeprecated\': "PoužÃvate voľby „reproject“ vrstvy ${layerType}. Táto voľba je zzavrhovaná: jej použitie bolo navrhnuté na podporu zobrazovania údajov nad komerÄnými základovými mapami, ale túto funkcionalitu je teraz možné dosiahnuÅ¥ pomocou Spherical Mercator. ÄŽalÅ¡ie informácie zÃskate na stránke http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Táto metóda je zavrhovaná a bude odstránená vo verzii 3.0. Použite prosÃm namiesto nej metódu ${newMethod}."\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3203</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/sv-SE.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/sv-SE.js.xml deleted file mode 100644 index 43e923a17292d996d61b7d057fe8ac187292d43c..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/sv-SE.js.xml +++ /dev/null @@ -1,89 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>sv-SE.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Sannab\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["sv"]\n - * Dictionary for Svenska. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["sv"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Ej hanterad frÃ¥ga retur ${statusText}",\n -\n - \'Permalink\': "Permalänk",\n -\n - \'Overlays\': "Kartlager",\n -\n - \'Base Layer\': "Bakgrundskarta",\n -\n - \'noFID\': "Kan ej uppdatera feature (objekt) för vilket FID saknas.",\n -\n - \'browserNotSupported\': "Din webbläsare stöder inte vektorvisning. För närvarande stöds följande visning:\\n${renderers}",\n -\n - \'minZoomLevelError\': "Egenskapen minZoomLevel är endast avsedd att användas med lager med FixedZoomLevels. Att detta WFS-lager kontrollerar minZoomLevel är en relik frÃ¥n äldre versioner. Vi kan dock inte ta bort det utan att riskera att OL-baserade tillämpningar som använder detta slutar fungera. Därför är det satt som deprecated, minZoomLevel kommer att tas bort i version 3.0. Använd i stället inställning av min/max resolution som beskrivs här: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "WFS-transaktion: LYCKADES ${response}",\n -\n - \'commitFailed\': "WFS-transaktion: MISSLYCKADES ${response}",\n -\n - \'googleWarning\': "Google-lagret kunde inte laddas korrekt.\\x3cbr\\x3e\\x3cbr\\x3eFör att slippa detta meddelande, välj en annan bakgrundskarta i lagerväljaren i övre högra hörnet.\\x3cbr\\x3e\\x3cbr\\x3eSannolikt beror felet pÃ¥ att Google Maps-biblioteket inte är inkluderat pÃ¥ webbsidan eller pÃ¥ att sidan inte anger korrekt API-nyckel för webbplatsen.\\x3cbr\\x3e\\x3cbr\\x3eUtvecklare: hjälp för att Ã¥tgärda detta, \\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3eklicka här\\x3c/a\\x3e.",\n -\n - \'getLayerWarning\': "${layerType}-lagret kunde inte laddas korrekt.\\x3cbr\\x3e\\x3cbr\\x3eFör att slippa detta meddelande, välj en annan bakgrundskarta i lagerväljaren i övre högra hörnet.\\x3cbr\\x3e\\x3cbr\\x3eSannolikt beror felet pÃ¥ att ${layerLib}-biblioteket inte är inkluderat pÃ¥ webbsidan.\\x3cbr\\x3e\\x3cbr\\x3eUtvecklare: hjälp för att Ã¥tgärda detta, \\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3eklicka här\\x3c/a\\x3e.",\n -\n - \'Scale = 1 : ${scaleDenom}\': "\\x3cstrong\\x3eSkala\\x3c/strong\\x3e 1 : ${scaleDenom}",\n -\n - \'reprojectDeprecated\': "Du använder inställningen \\\'reproject\\\' pÃ¥ lagret ${layerName}. Denna inställning markerad som deprecated: den var avsedd att användas för att stödja visning av kartdata pÃ¥ kommersiella bakgrundskartor, men nu bör man i stället använda Spherical Mercator-stöd för den funktionaliteten. Mer information finns pÃ¥ http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - \'methodDeprecated\': "Denna metod är markerad som deprecated och kommer att tas bort i 3.0. Använd ${newMethod} i stället."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3056</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/te.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/te.js.xml deleted file mode 100644 index 6faa886f46bed51f00adc4a4888c55b0b288b0ea..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/te.js.xml +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.85</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>te.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Veeven\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["te"]\n - * Dictionary for తెలà±à°—à±. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["te"] = OpenLayers.Util.applyDefaults({\n -\n - \'Permalink\': "à°¸à±à°¥à°¿à°°à°²à°¿à°‚à°•à±",\n -\n - \'W\': "à°ª",\n -\n - \'E\': "తూ",\n -\n - \'N\': "à°‰",\n -\n - \'S\': "à°¦"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>538</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/vi.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/vi.js.xml deleted file mode 100644 index 9a2989fcb3e2a280052d06aaeba39d948ce8ccf5..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/vi.js.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>vi.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Translators (2009 onwards):\n - * - Minh Nguyen\n - */\n -\n -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["vi"]\n - * Dictionary for Tiếng Việt. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["vi"] = OpenLayers.Util.applyDefaults({\n -\n - \'unhandledRequest\': "Không xá» lý được phản hồi ${statusText} cho yêu cầu",\n -\n - \'Permalink\': "Liên kết thÆ°á»ng trá»±c",\n -\n - \'Overlays\': "Lấp bản đồ",\n -\n - \'Base Layer\': "Lá»›p ná»n",\n -\n - \'noFID\': "Không thể cáºp nháºt tÃnh năng thiếu FID.",\n -\n - \'browserNotSupported\': "Trình duyệt của bạn không há»— trợ chức năng vẽ bằng vectÆ¡. Hiện há»— trợ các bá»™ kết xuất:\\n${renderers}",\n -\n - \'minZoomLevelError\': "Chỉ nên sá» dụng thuá»™c tÃnh minZoomLevel vá»›i các lá»›p FixedZoomLevels-descendent. Việc lá»›p wfs nà y tìm cho minZoomLevel là di tÃch còn lại từ xÆ°a. Tuy nhiên, nếu chúng tôi dá»i nó thì sẽ vỡ các chÆ°Æ¡ng trình OpenLayers mà dá»±a trên nó. Bởi váºy chúng tôi phản đối sá» dụng nó\\x26nbsp;– bÆ°á»›c tìm cho minZoomLevel sẽ được dá»i và o phiên bản 3.0. Xin sá» dụng thiết láºp Ä‘á»™ phân tÃch tối thiểu / tối Ä‘a thay thế, theo hÆ°á»›ng dẫn nà y: http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "Giao dịch WFS: THÀNH CÔNG ${response}",\n -\n - \'commitFailed\': "Giao dịch WFS: THẤT BẠI ${response}",\n -\n - \'googleWarning\': "Không thể tải lá»›p Google đúng đắn.\\x3cbr\\x3e\\x3cbr\\x3eÄể tránh thông báo nà y lần sau, hãy chá»n BaseLayer má»›i dùng Ä‘iá»u khiển chá»n lá»›p ở góc trên phải.\\x3cbr\\x3e\\x3cbr\\x3eChắc script thÆ° viện Google Maps hoặc không được bao gồm hoặc không chứa khóa API hợp vá»›i website của bạn.\\x3cbr\\x3e\\x3cbr\\x3e\\x3ca href=\\\'http://trac.openlayers.org/wiki/Google\\\' target=\\\'_blank\\\'\\x3eTrợ giúp vá» tÃnh năng nà y\\x3c/a\\x3e cho ngÆ°á»i phát triển.",\n -\n - \'getLayerWarning\': "Không thể tải lá»›p ${layerType} đúng đắn.\\x3cbr\\x3e\\x3cbr\\x3eÄể tránh thông báo nà y lần sau, hãy chá»n BaseLayer má»›i dùng Ä‘iá»u khiển chá»n lá»›p ở góc trên phải.\\x3cbr\\x3e\\x3cbr\\x3eChắc script thÆ° viện ${layerLib} không được bao gồm đúng kiểu.\\x3cbr\\x3e\\x3cbr\\x3e\\x3ca href=\\\'http://trac.openlayers.org/wiki/${layerLib}\\\' target=\\\'_blank\\\'\\x3eTrợ giúp vá» tÃnh năng nà y\\x3c/a\\x3e cho ngÆ°á»i phát triển.",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Tá»· lệ = 1 : ${scaleDenom}",\n -\n - \'W\': "T",\n -\n - \'E\': "Ä",\n -\n - \'N\': "B",\n -\n - \'S\': "N",\n -\n - \'reprojectDeprecated\': "Bạn Ä‘ang áp dụng chế Ä‘á»™ “reproject†và o lá»›p ${layerName}. Chế Ä‘á»™ nà y đã bị phản đối: nó có mục Ä‘Ãch há»— trợ lấp dữ liệu trên các ná»n bản đồ thÆ°Æ¡ng mại; nên thá»±c hiện hiệu ứng đó dùng tÃnh năng Mercator Hình cầu. Có sẵn thêm chi tiết tại http://trac.openlayers.org/wiki/SphericalMercator .",\n -\n - \'methodDeprecated\': "PhÆ°Æ¡ng thức nà y đã bị phản đối và sẽ bị dá»i và o phiên bản 3.0. Xin hãy sá» dụng ${newMethod} thay thế."\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3340</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/zh-CN.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/zh-CN.js.xml deleted file mode 100644 index 9e4c82a64b561990be6560ef50c96b21a1723128..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/zh-CN.js.xml +++ /dev/null @@ -1,124 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.86</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>zh-CN.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["zh-CN"]\n - * Dictionary for Simplified Chinese. Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["zh-CN"] = {\n -\n - \'unhandledRequest\': "未处ç†çš„请求,返回值为 ${statusText}",\n -\n - \'Permalink\': "永久链接",\n -\n - \'Overlays\': "å åŠ å±‚",\n -\n - \'Base Layer\': "基础图层",\n -\n - \'noFID\': "æ— æ³•æ›´æ–°feature,缺少FID。",\n -\n - \'browserNotSupported\':\n - "ä½ ä½¿ç”¨çš„æµè§ˆå™¨ä¸æ”¯æŒçŸ¢é‡æ¸²æŸ“。当å‰æ”¯æŒçš„渲染方å¼åŒ…括:\\n${renderers}",\n -\n - // console message\n - \'minZoomLevelError\':\n - "minZoomLevel属性仅适åˆç”¨äºŽ" +\n - "使用了固定缩放级别的图层。这个 " +\n - "wfs 图层检查 minZoomLevel 是过去é—留下æ¥çš„。" +\n - "然而,我们ä¸èƒ½ç§»é™¤å®ƒï¼Œ" +\n - "è€Œç ´åä¾èµ–于它的基于OL的应用程åºã€‚" +\n - "å› æ¤ï¼Œæˆ‘们废除了它 -- minZoomLevel " +\n - "将会在3.0ä¸è¢«ç§»é™¤ã€‚请改用 " +\n - "min/max resolution 设置,å‚考:" +\n - "http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "WFS Transaction: æˆåŠŸã€‚ ${response}",\n -\n - \'commitFailed\': "WFS Transaction: 失败。 ${response}",\n -\n - \'googleWarning\':\n - "Google图层ä¸èƒ½æ£ç¡®åŠ 载。<br><br>" +\n - "è¦æ¶ˆé™¤è¿™ä¸ªä¿¡æ¯ï¼Œè¯·åœ¨å³ä¸Šè§’çš„" +\n - "图层控制é¢æ¿ä¸é€‰æ‹©å…¶ä»–的基础图层。<br><br>" +\n - "è¿™ç§æƒ…况很å¯èƒ½æ˜¯æ²¡æœ‰æ£ç¡®çš„包å«Google地图脚本库," +\n - "或者是没有包å«åœ¨ä½ 的站点上" +\n - "使用的æ£ç¡®çš„Google Maps API密匙。<br><br>" +\n - "å¼€å‘者:获å–使其æ£ç¡®å·¥ä½œçš„帮助信æ¯ï¼Œ" +\n - "<a href=\'http://trac.openlayers.org/wiki/Google\' " +\n - "target=\'_blank\'>点击这里</a>",\n -\n - \'getLayerWarning\':\n - "${layerType} 图层ä¸èƒ½æ£ç¡®åŠ 载。<br><br>" +\n - "è¦æ¶ˆé™¤è¿™ä¸ªä¿¡æ¯ï¼Œè¯·åœ¨å³ä¸Šè§’çš„" +\n - "图层控制é¢æ¿ä¸é€‰æ‹©å…¶ä»–的基础图层。<br><br>" +\n - "è¿™ç§æƒ…况很å¯èƒ½æ˜¯æ²¡æœ‰æ£ç¡®çš„包å«" +\n - "${layerLib} 脚本库。<br><br>" +\n - "å¼€å‘者:获å–使其æ£ç¡®å·¥ä½œçš„帮助信æ¯ï¼Œ" +\n - "<a href=\'http://trac.openlayers.org/wiki/${layerLib}\' " +\n - "target=\'_blank\'>点击这里</a>",\n -\n - \'Scale = 1 : ${scaleDenom}\': "比例尺 = 1 : ${scaleDenom}",\n -\n - // console message\n - \'reprojectDeprecated\':\n - "ä½ æ£åœ¨ä½¿ç”¨ ${layerName} 图层上的\'reproject\'选项。" +\n - "这个选项已ç»ä¸å†ä½¿ç”¨ï¼š" +\n - "它是被设计用æ¥æ”¯æŒæ˜¾ç¤ºå•†ä¸šçš„地图数æ®ï¼Œ" + \n - "ä¸è¿‡çŽ°åœ¨è¯¥åŠŸèƒ½å¯ä»¥é€šè¿‡ä½¿ç”¨Spherical Mercatoræ¥å®žçŽ°ã€‚" +\n - "更多信æ¯å¯ä»¥å‚阅" +\n - "http://trac.openlayers.org/wiki/SphericalMercator.",\n -\n - // console message\n - \'methodDeprecated\':\n - "该方法已ç»ä¸å†è¢«æ”¯æŒï¼Œå¹¶ä¸”将在3.0ä¸è¢«ç§»é™¤ã€‚" +\n - "请使用 ${newMethod} 方法æ¥æ›¿ä»£ã€‚",\n -\n - \'end\': \'\'\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3129</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/zh-TW.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/zh-TW.js.xml deleted file mode 100644 index 4e61aecd861c72b14a6c454e1fa91cb7748280a2..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Lang/zh-TW.js.xml +++ /dev/null @@ -1,125 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.84</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>zh-TW.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/**\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Lang["zh-TW"]\n - * Dictionary for Traditional Chinese. (Used Mainly in Taiwan) \n - * Keys for entries are used in calls to\n - * <OpenLayers.Lang.translate>. Entry bodies are normal strings or\n - * strings formatted for use with <OpenLayers.String.format> calls.\n - */\n -OpenLayers.Lang["zh-TW"] = {\n -\n - \'unhandledRequest\': "未處ç†çš„請求,傳回值為 ${statusText}。",\n -\n - \'Permalink\': "永久連çµ",\n -\n - \'Overlays\': "é¡å¤–圖層",\n -\n - \'Base Layer\': "基礎圖層",\n -\n - \'noFID\': "å› ç‚ºæ²’æœ‰ FID 所以無法更新 feature。",\n -\n - \'browserNotSupported\':\n - "您的ç€è¦½å™¨æœªæ”¯æ´å‘é‡æ¸²æŸ“. ç›®å‰æ”¯æ´çš„渲染方å¼æ˜¯:\\n${renderers}",\n -\n - // console message\n - \'minZoomLevelError\':\n - "minZoomLevel 屬性僅é©åˆç”¨åœ¨ " +\n - "FixedZoomLevels-descendent 類型的圖層. 這個" +\n - "wfs layer çš„ minZoomLevel 是éŽåŽ»æ‰€éºç•™ä¸‹ä¾†çš„," +\n - "然而我們ä¸èƒ½ç§»é™¤å®ƒè€Œä¸è®“它將" +\n - "éŽåŽ»çš„程å¼ç›¸å®¹æ€§çµ¦ç ´å£žæŽ‰ã€‚" +\n - "å› æ¤æˆ‘們將會迴é¿ä½¿ç”¨å®ƒ -- minZoomLevel " +\n - "會在3.0被移除,請改" +\n - "用在這邊æè¿°çš„ min/max resolution è¨å®š: " +\n - "http://trac.openlayers.org/wiki/SettingZoomLevels",\n -\n - \'commitSuccess\': "WFS Transaction: æˆåŠŸ ${response}",\n -\n - \'commitFailed\': "WFS Transaction: 失敗 ${response}",\n -\n - \'googleWarning\':\n - "The Google Layer 圖層無法被æ£ç¢ºçš„載入。<br><br>" +\n - "è¦è¿´é¿é€™å€‹è¨Šæ¯, 請在å³ä¸Šè§’的圖層改變器裡," +\n - "é¸ä¸€å€‹æ–°çš„基礎圖層。<br><br>" +\n - "很有å¯èƒ½æ˜¯å› 為 Google Maps 的函å¼åº«" +\n - "腳本沒有被æ£ç¢ºçš„ç½®å…¥ï¼Œæˆ–æ²’æœ‰åŒ…å« " +\n - "您網站上æ£ç¢ºçš„ API key <br><br>" +\n - "開發者: è¦å¹«åŠ©é€™å€‹è¡Œç‚ºæ£ç¢ºå®Œæˆï¼Œ" +\n - "<a href=\'http://trac.openlayers.org/wiki/Google\' " +\n - "target=\'_blank\'>請按這裡</a>",\n -\n - \'getLayerWarning\':\n - "${layerType} 圖層無法被æ£ç¢ºçš„載入。<br><br>" +\n - "è¦è¿´é¿é€™å€‹è¨Šæ¯, 請在å³ä¸Šè§’的圖層改變器裡," +\n - "é¸ä¸€å€‹æ–°çš„基礎圖層。<br><br>" +\n - "很有å¯èƒ½æ˜¯å› 為 ${layerLib} 的函å¼åº«" +\n - "腳本沒有被æ£ç¢ºçš„置入。<br><br>" +\n - "開發者: è¦å¹«åŠ©é€™å€‹è¡Œç‚ºæ£ç¢ºå®Œæˆï¼Œ" +\n - "<a href=\'http://trac.openlayers.org/wiki/${layerLib}\' " +\n - "target=\'_blank\'>請按這裡</a>",\n -\n - \'Scale = 1 : ${scaleDenom}\': "Scale = 1 : ${scaleDenom}",\n -\n - // console message\n - \'reprojectDeprecated\':\n - "ä½ æ£ä½¿ç”¨ \'reproject\' 這個é¸é … " +\n - "在 ${layerName} 層。這個é¸é …已經ä¸å†ä½¿ç”¨:" +\n - "它的使用原本是è¨è¨ˆç”¨ä¾†æ”¯æ´åœ¨å•†æ¥åœ°åœ–上秀出資料," + \n - "但這個功能已經被" +\n - "Spherical Mercator所å–代。更多的資訊å¯ä»¥åœ¨ " +\n - "http://trac.openlayers.org/wiki/SphericalMercator 找到。",\n -\n - // console message\n - \'methodDeprecated\':\n - "這個方法已經ä¸å†ä½¿ç”¨ä¸”在3.0將會被移除," +\n - "請使用 ${newMethod} 來代替。",\n -\n - \'end\': \'\'\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3153</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer.js.xml deleted file mode 100644 index e4b636349a33d4b3f605c571183bc3d10ecfd375..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer.js.xml +++ /dev/null @@ -1,1407 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.76</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Layer.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Map.js\n - * @requires OpenLayers/Projection.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer\n - */\n -OpenLayers.Layer = OpenLayers.Class({\n -\n - /**\n - * APIProperty: id\n - * {String}\n - */\n - id: null,\n -\n - /** \n - * APIProperty: name\n - * {String}\n - */\n - name: null,\n -\n - /** \n - * APIProperty: div\n - * {DOMElement}\n - */\n - div: null,\n -\n - /**\n - * APIProperty: opacity\n - * {Float} The layer\'s opacity. Float number between 0.0 and 1.0. Default\n - * is 1.\n - */\n - opacity: 1,\n -\n - /**\n - * APIProperty: alwaysInRange\n - * {Boolean} If a layer\'s display should not be scale-based, this should \n - * be set to true. This will cause the layer, as an overlay, to always \n - * be \'active\', by always returning true from the calculateInRange() \n - * function. \n - * \n - * If not explicitly specified for a layer, its value will be \n - * determined on startup in initResolutions() based on whether or not \n - * any scale-specific properties have been set as options on the \n - * layer. If no scale-specific options have been set on the layer, we \n - * assume that it should always be in range.\n - * \n - * See #987 for more info.\n - */\n - alwaysInRange: null, \n -\n - /**\n - * Constant: RESOLUTION_PROPERTIES\n - * {Array} The properties that are used for calculating resolutions\n - * information.\n - */\n - RESOLUTION_PROPERTIES: [\n - \'scales\', \'resolutions\',\n - \'maxScale\', \'minScale\',\n - \'maxResolution\', \'minResolution\',\n - \'numZoomLevels\', \'maxZoomLevel\'\n - ],\n -\n - /**\n - * APIProperty: events\n - * {<OpenLayers.Events>}\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * layer.events.register(type, obj, listener);\n - * (end)\n - *\n - * Listeners will be called with a reference to an event object. The\n - * properties of this event depends on exactly what happened.\n - *\n - * All event objects have at least the following properties:\n - * object - {Object} A reference to layer.events.object.\n - * element - {DOMElement} A reference to layer.events.element.\n - *\n - * Supported map event types:\n - * loadstart - Triggered when layer loading starts.\n - * loadend - Triggered when layer loading ends.\n - * visibilitychanged - Triggered when layer visibility is changed.\n - * move - Triggered when layer moves (triggered with every mousemove\n - * during a drag).\n - * moveend - Triggered when layer is done moving, object passed as\n - * argument has a zoomChanged boolean property which tells that the\n - * zoom has changed.\n - * added - Triggered after the layer is added to a map. Listeners will\n - * receive an object with a *map* property referencing the map and a\n - * *layer* property referencing the layer.\n - * removed - Triggered after the layer is removed from the map. Listeners\n - * will receive an object with a *map* property referencing the map and\n - * a *layer* property referencing the layer.\n - */\n - events: null,\n -\n - /**\n - * APIProperty: map\n - * {<OpenLayers.Map>} This variable is set when the layer is added to \n - * the map, via the accessor function setMap().\n - */\n - map: null,\n - \n - /**\n - * APIProperty: isBaseLayer\n - * {Boolean} Whether or not the layer is a base layer. This should be set \n - * individually by all subclasses. Default is false\n - */\n - isBaseLayer: false,\n - \n - /**\n - * Property: alpha\n - * {Boolean} The layer\'s images have an alpha channel. Default is false. \n - */\n - alpha: false,\n -\n - /** \n - * APIProperty: displayInLayerSwitcher\n - * {Boolean} Display the layer\'s name in the layer switcher. Default is\n - * true.\n - */\n - displayInLayerSwitcher: true,\n -\n - /**\n - * APIProperty: visibility\n - * {Boolean} The layer should be displayed in the map. Default is true.\n - */\n - visibility: true,\n -\n - /**\n - * APIProperty: attribution\n - * {String} Attribution string, displayed when an \n - * <OpenLayers.Control.Attribution> has been added to the map.\n - */\n - attribution: null, \n -\n - /** \n - * Property: inRange\n - * {Boolean} The current map resolution is within the layer\'s min/max \n - * range. This is set in <OpenLayers.Map.setCenter> whenever the zoom \n - * changes.\n - */\n - inRange: false,\n - \n - /**\n - * Propery: imageSize\n - * {<OpenLayers.Size>} For layers with a gutter, the image is larger than \n - * the tile by twice the gutter in each dimension.\n - */\n - imageSize: null,\n - \n - // OPTIONS\n -\n - /** \n - * Property: options\n - * {Object} An optional object whose properties will be set on the layer.\n - * Any of the layer properties can be set as a property of the options\n - * object and sent to the constructor when the layer is created.\n - */\n - options: null,\n -\n - /**\n - * APIProperty: eventListeners\n - * {Object} If set as an option at construction, the eventListeners\n - * object will be registered with <OpenLayers.Events.on>. Object\n - * structure must be a listeners object as shown in the example for\n - * the events.on method.\n - */\n - eventListeners: null,\n -\n - /**\n - * APIProperty: gutter\n - * {Integer} Determines the width (in pixels) of the gutter around image\n - * tiles to ignore. By setting this property to a non-zero value,\n - * images will be requested that are wider and taller than the tile\n - * size by a value of 2 x gutter. This allows artifacts of rendering\n - * at tile edges to be ignored. Set a gutter value that is equal to\n - * half the size of the widest symbol that needs to be displayed.\n - * Defaults to zero. Non-tiled layers always have zero gutter.\n - */ \n - gutter: 0, \n -\n - /**\n - * APIProperty: projection\n - * {<OpenLayers.Projection>} or {<String>} Specifies the projection of the layer.\n - * Can be set in the layer options. If not specified in the layer options,\n - * it is set to the default projection specified in the map,\n - * when the layer is added to the map.\n - * Projection along with default maxExtent and resolutions\n - * are set automatically with commercial baselayers in EPSG:3857,\n - * such as Google, Bing and OpenStreetMap, and do not need to be specified.\n - * Otherwise, if specifying projection, also set maxExtent,\n - * maxResolution or resolutions as appropriate.\n - * When using vector layers with strategies, layer projection should be set\n - * to the projection of the source data if that is different from the map default.\n - * \n - * Can be either a string or an <OpenLayers.Projection> object;\n - * if a string is passed, will be converted to an object when\n - * the layer is added to the map.\n - * \n - */\n - projection: null, \n - \n - /**\n - * APIProperty: units\n - * {String} The layer map units. Defaults to null. Possible values\n - * are \'degrees\' (or \'dd\'), \'m\', \'ft\', \'km\', \'mi\', \'inches\'.\n - * Normally taken from the projection.\n - * Only required if both map and layers do not define a projection,\n - * or if they define a projection which does not define units.\n - */\n - units: null,\n -\n - /**\n - * APIProperty: scales\n - * {Array} An array of map scales in descending order. The values in the\n - * array correspond to the map scale denominator. Note that these\n - * values only make sense if the display (monitor) resolution of the\n - * client is correctly guessed by whomever is configuring the\n - * application. In addition, the units property must also be set.\n - * Use <resolutions> instead wherever possible.\n - */\n - scales: null,\n -\n - /**\n - * APIProperty: resolutions\n - * {Array} A list of map resolutions (map units per pixel) in descending\n - * order. If this is not set in the layer constructor, it will be set\n - * based on other resolution related properties (maxExtent,\n - * maxResolution, maxScale, etc.).\n - */\n - resolutions: null,\n - \n - /**\n - * APIProperty: maxExtent\n - * {<OpenLayers.Bounds>|Array} If provided as an array, the array\n - * should consist of four values (left, bottom, right, top).\n - * The maximum extent for the layer. Defaults to null.\n - * \n - * The center of these bounds will not stray outside\n - * of the viewport extent during panning. In addition, if\n - * <displayOutsideMaxExtent> is set to false, data will not be\n - * requested that falls completely outside of these bounds.\n - */\n - maxExtent: null,\n - \n - /**\n - * APIProperty: minExtent\n - * {<OpenLayers.Bounds>|Array} If provided as an array, the array\n - * should consist of four values (left, bottom, right, top).\n - * The minimum extent for the layer. Defaults to null.\n - */\n - minExtent: null,\n - \n - /**\n - * APIProperty: maxResolution\n - * {Float} Default max is 360 deg / 256 px, which corresponds to\n - * zoom level 0 on gmaps. Specify a different value in the layer \n - * options if you are not using the default <OpenLayers.Map.tileSize>\n - * and displaying the whole world.\n - */\n - maxResolution: null,\n -\n - /**\n - * APIProperty: minResolution\n - * {Float}\n - */\n - minResolution: null,\n -\n - /**\n - * APIProperty: numZoomLevels\n - * {Integer}\n - */\n - numZoomLevels: null,\n - \n - /**\n - * APIProperty: minScale\n - * {Float}\n - */\n - minScale: null,\n - \n - /**\n - * APIProperty: maxScale\n - * {Float}\n - */\n - maxScale: null,\n -\n - /**\n - * APIProperty: displayOutsideMaxExtent\n - * {Boolean} Request map tiles that are completely outside of the max \n - * extent for this layer. Defaults to false.\n - */\n - displayOutsideMaxExtent: false,\n -\n - /**\n - * APIProperty: wrapDateLine\n - * {Boolean} Wraps the world at the international dateline, so the map can\n - * be panned infinitely in longitudinal direction. Only use this on the\n - * base layer, and only if the layer\'s maxExtent equals the world bounds.\n - * #487 for more info. \n - */\n - wrapDateLine: false,\n - \n - /**\n - * Property: metadata\n - * {Object} This object can be used to store additional information on a\n - * layer object.\n - */\n - metadata: null,\n - \n - /**\n - * Constructor: OpenLayers.Layer\n - *\n - * Parameters:\n - * name - {String} The layer name\n - * options - {Object} Hashtable of extra options to tag onto the layer\n - */\n - initialize: function(name, options) {\n -\n - this.metadata = {};\n - \n - this.addOptions(options);\n -\n - this.name = name;\n - \n - if (this.id == null) {\n -\n - this.id = OpenLayers.Util.createUniqueID(this.CLASS_NAME + "_");\n -\n - this.div = OpenLayers.Util.createDiv(this.id);\n - this.div.style.width = "100%";\n - this.div.style.height = "100%";\n - this.div.dir = "ltr";\n -\n - this.events = new OpenLayers.Events(this, this.div);\n - if(this.eventListeners instanceof Object) {\n - this.events.on(this.eventListeners);\n - }\n -\n - }\n - },\n - \n - /**\n - * Method: destroy\n - * Destroy is a destructor: this is to alleviate cyclic references which\n - * the Javascript garbage cleaner can not take care of on its own.\n - *\n - * Parameters:\n - * setNewBaseLayer - {Boolean} Set a new base layer when this layer has\n - * been destroyed. Default is true.\n - */\n - destroy: function(setNewBaseLayer) {\n - if (setNewBaseLayer == null) {\n - setNewBaseLayer = true;\n - }\n - if (this.map != null) {\n - this.map.removeLayer(this, setNewBaseLayer);\n - }\n - this.projection = null;\n - this.map = null;\n - this.name = null;\n - this.div = null;\n - this.options = null;\n -\n - if (this.events) {\n - if(this.eventListeners) {\n - this.events.un(this.eventListeners);\n - }\n - this.events.destroy();\n - }\n - this.eventListeners = null;\n - this.events = null;\n - },\n - \n - /**\n - * Method: clone\n - *\n - * Parameters:\n - * obj - {<OpenLayers.Layer>} The layer to be cloned\n - *\n - * Returns:\n - * {<OpenLayers.Layer>} An exact clone of this <OpenLayers.Layer>\n - */\n - clone: function (obj) {\n - \n - if (obj == null) {\n - obj = new OpenLayers.Layer(this.name, this.getOptions());\n - }\n - \n - // catch any randomly tagged-on properties\n - OpenLayers.Util.applyDefaults(obj, this);\n - \n - // a cloned layer should never have its map property set\n - // because it has not been added to a map yet. \n - obj.map = null;\n - \n - return obj;\n - },\n - \n - /**\n - * Method: getOptions\n - * Extracts an object from the layer with the properties that were set as\n - * options, but updates them with the values currently set on the\n - * instance.\n - * \n - * Returns:\n - * {Object} the <options> of the layer, representing the current state.\n - */\n - getOptions: function() {\n - var options = {};\n - for(var o in this.options) {\n - options[o] = this[o];\n - }\n - return options;\n - },\n - \n - /** \n - * APIMethod: setName\n - * Sets the new layer name for this layer. Can trigger a changelayer event\n - * on the map.\n - *\n - * Parameters:\n - * newName - {String} The new name.\n - */\n - setName: function(newName) {\n - if (newName != this.name) {\n - this.name = newName;\n - if (this.map != null) {\n - this.map.events.triggerEvent("changelayer", {\n - layer: this,\n - property: "name"\n - });\n - }\n - }\n - }, \n - \n - /**\n - * APIMethod: addOptions\n - * \n - * Parameters:\n - * newOptions - {Object}\n - * reinitialize - {Boolean} If set to true, and if resolution options of the\n - * current baseLayer were changed, the map will be recentered to make\n - * sure that it is displayed with a valid resolution, and a\n - * changebaselayer event will be triggered.\n - */\n - addOptions: function (newOptions, reinitialize) {\n -\n - if (this.options == null) {\n - this.options = {};\n - }\n - \n - if (newOptions) {\n - // make sure this.projection references a projection object\n - if(typeof newOptions.projection == "string") {\n - newOptions.projection = new OpenLayers.Projection(newOptions.projection);\n - }\n - if (newOptions.projection) {\n - // get maxResolution, units and maxExtent from projection defaults if\n - // they are not defined already\n - OpenLayers.Util.applyDefaults(newOptions,\n - OpenLayers.Projection.defaults[newOptions.projection.getCode()]);\n - }\n - // allow array for extents\n - if (newOptions.maxExtent && !(newOptions.maxExtent instanceof OpenLayers.Bounds)) {\n - newOptions.maxExtent = new OpenLayers.Bounds(newOptions.maxExtent);\n - }\n - if (newOptions.minExtent && !(newOptions.minExtent instanceof OpenLayers.Bounds)) {\n - newOptions.minExtent = new OpenLayers.Bounds(newOptions.minExtent);\n - }\n - }\n -\n - // update our copy for clone\n - OpenLayers.Util.extend(this.options, newOptions);\n -\n - // add new options to this\n - OpenLayers.Util.extend(this, newOptions);\n - \n - // get the units from the projection, if we have a projection\n - // and it it has units\n - if(this.projection && this.projection.getUnits()) {\n - this.units = this.projection.getUnits();\n - }\n -\n - // re-initialize resolutions if necessary, i.e. if any of the\n - // properties of the "properties" array defined below is set\n - // in the new options\n - if(this.map) {\n - // store current resolution so we can try to restore it later\n - var resolution = this.map.getResolution();\n - var properties = this.RESOLUTION_PROPERTIES.concat(\n - ["projection", "units", "minExtent", "maxExtent"]\n - );\n - for(var o in newOptions) {\n - if(newOptions.hasOwnProperty(o) &&\n - OpenLayers.Util.indexOf(properties, o) >= 0) {\n -\n - this.initResolutions();\n - if (reinitialize && this.map.baseLayer === this) {\n - // update map position, and restore previous resolution\n - this.map.setCenter(this.map.getCenter(),\n - this.map.getZoomForResolution(resolution),\n - false, true\n - );\n - // trigger a changebaselayer event to make sure that\n - // all controls (especially\n - // OpenLayers.Control.PanZoomBar) get notified of the\n - // new options\n - this.map.events.triggerEvent("changebaselayer", {\n - layer: this\n - });\n - }\n - break;\n - }\n - }\n - }\n - },\n -\n - /**\n - * APIMethod: onMapResize\n - * This function can be implemented by subclasses\n - */\n - onMapResize: function() {\n - //this function can be implemented by subclasses \n - },\n -\n - /**\n - * APIMethod: redraw\n - * Redraws the layer. Returns true if the layer was redrawn, false if not.\n - *\n - * Returns:\n - * {Boolean} The layer was redrawn.\n - */\n - redraw: function() {\n - var redrawn = false;\n - if (this.map) {\n -\n - // min/max Range may have changed\n - this.inRange = this.calculateInRange();\n -\n - // map\'s center might not yet be set\n - var extent = this.getExtent();\n -\n - if (extent && this.inRange && this.visibility) {\n - var zoomChanged = true;\n - this.moveTo(extent, zoomChanged, false);\n - this.events.triggerEvent("moveend",\n - {"zoomChanged": zoomChanged});\n - redrawn = true;\n - }\n - }\n - return redrawn;\n - },\n -\n - /**\n - * Method: moveTo\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - * zoomChanged - {Boolean} Tells when zoom has changed, as layers have to\n - * do some init work in that case.\n - * dragging - {Boolean}\n - */\n - moveTo:function(bounds, zoomChanged, dragging) {\n - var display = this.visibility;\n - if (!this.isBaseLayer) {\n - display = display && this.inRange;\n - }\n - this.display(display);\n - },\n -\n - /**\n - * Method: moveByPx\n - * Move the layer based on pixel vector. To be implemented by subclasses.\n - *\n - * Parameters:\n - * dx - {Number} The x coord of the displacement vector.\n - * dy - {Number} The y coord of the displacement vector.\n - */\n - moveByPx: function(dx, dy) {\n - },\n -\n - /**\n - * Method: setMap\n - * Set the map property for the layer. This is done through an accessor\n - * so that subclasses can override this and take special action once \n - * they have their map variable set. \n - * \n - * Here we take care to bring over any of the necessary default \n - * properties from the map. \n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - setMap: function(map) {\n - if (this.map == null) {\n - \n - this.map = map;\n - \n - // grab some essential layer data from the map if it hasn\'t already\n - // been set\n - this.maxExtent = this.maxExtent || this.map.maxExtent;\n - this.minExtent = this.minExtent || this.map.minExtent;\n -\n - this.projection = this.projection || this.map.projection;\n - if (typeof this.projection == "string") {\n - this.projection = new OpenLayers.Projection(this.projection);\n - }\n -\n - // Check the projection to see if we can get units -- if not, refer\n - // to properties.\n - this.units = this.projection.getUnits() ||\n - this.units || this.map.units;\n - \n - this.initResolutions();\n - \n - if (!this.isBaseLayer) {\n - this.inRange = this.calculateInRange();\n - var show = ((this.visibility) && (this.inRange));\n - this.div.style.display = show ? "" : "none";\n - }\n - \n - // deal with gutters\n - this.setTileSize();\n - }\n - },\n - \n - /**\n - * Method: afterAdd\n - * Called at the end of the map.addLayer sequence. At this point, the map\n - * will have a base layer. To be overridden by subclasses.\n - */\n - afterAdd: function() {\n - },\n - \n - /**\n - * APIMethod: removeMap\n - * Just as setMap() allows each layer the possibility to take a \n - * personalized action on being added to the map, removeMap() allows\n - * each layer to take a personalized action on being removed from it. \n - * For now, this will be mostly unused, except for the EventPane layer,\n - * which needs this hook so that it can remove the special invisible\n - * pane. \n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - removeMap: function(map) {\n - //to be overridden by subclasses\n - },\n - \n - /**\n - * APIMethod: getImageSize\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} optional tile bounds, can be used\n - * by subclasses that have to deal with different tile sizes at the\n - * layer extent edges (e.g. Zoomify)\n - * \n - * Returns:\n - * {<OpenLayers.Size>} The size that the image should be, taking into \n - * account gutters.\n - */ \n - getImageSize: function(bounds) { \n - return (this.imageSize || this.tileSize); \n - }, \n - \n - /**\n - * APIMethod: setTileSize\n - * Set the tile size based on the map size. This also sets layer.imageSize\n - * or use by Tile.Image.\n - * \n - * Parameters:\n - * size - {<OpenLayers.Size>}\n - */\n - setTileSize: function(size) {\n - var tileSize = (size) ? size :\n - ((this.tileSize) ? this.tileSize :\n - this.map.getTileSize());\n - this.tileSize = tileSize;\n - if(this.gutter) {\n - // layers with gutters need non-null tile sizes\n - //if(tileSize == null) {\n - // OpenLayers.console.error("Error in layer.setMap() for " +\n - // this.name + ": layers with " +\n - // "gutters need non-null tile sizes");\n - //}\n - this.imageSize = new OpenLayers.Size(tileSize.w + (2*this.gutter), \n - tileSize.h + (2*this.gutter)); \n - }\n - },\n -\n - /**\n - * APIMethod: getVisibility\n - * \n - * Returns:\n - * {Boolean} The layer should be displayed (if in range).\n - */\n - getVisibility: function() {\n - return this.visibility;\n - },\n -\n - /** \n - * APIMethod: setVisibility\n - * Set the visibility flag for the layer and hide/show & redraw \n - * accordingly. Fire event unless otherwise specified\n - * \n - * Note that visibility is no longer simply whether or not the layer\'s\n - * style.display is set to "block". Now we store a \'visibility\' state \n - * property on the layer class, this allows us to remember whether or \n - * not we *desire* for a layer to be visible. In the case where the \n - * map\'s resolution is out of the layer\'s range, this desire may be \n - * subverted.\n - * \n - * Parameters:\n - * visibility - {Boolean} Whether or not to display the layer (if in range)\n - */\n - setVisibility: function(visibility) {\n - if (visibility != this.visibility) {\n - this.visibility = visibility;\n - this.display(visibility);\n - this.redraw();\n - if (this.map != null) {\n - this.map.events.triggerEvent("changelayer", {\n - layer: this,\n - property: "visibility"\n - });\n - }\n - this.events.triggerEvent("visibilitychanged");\n - }\n - },\n -\n - /** \n - * APIMethod: display\n - * Hide or show the Layer. This is designed to be used internally, and \n - * is not generally the way to enable or disable the layer. For that,\n - * use the setVisibility function instead..\n - * \n - * Parameters:\n - * display - {Boolean}\n - */\n - display: function(display) {\n - if (display != (this.div.style.display != "none")) {\n - this.div.style.display = (display && this.calculateInRange()) ? "block" : "none";\n - }\n - },\n -\n - /**\n - * APIMethod: calculateInRange\n - * \n - * Returns:\n - * {Boolean} The layer is displayable at the current map\'s current\n - * resolution. Note that if \'alwaysInRange\' is true for the layer, \n - * this function will always return true.\n - */\n - calculateInRange: function() {\n - var inRange = false;\n -\n - if (this.alwaysInRange) {\n - inRange = true;\n - } else {\n - if (this.map) {\n - var resolution = this.map.getResolution();\n - inRange = ( (resolution >= this.minResolution) &&\n - (resolution <= this.maxResolution) );\n - }\n - }\n - return inRange;\n - },\n -\n - /** \n - * APIMethod: setIsBaseLayer\n - * \n - * Parameters:\n - * isBaseLayer - {Boolean}\n - */\n - setIsBaseLayer: function(isBaseLayer) {\n - if (isBaseLayer != this.isBaseLayer) {\n - this.isBaseLayer = isBaseLayer;\n - if (this.map != null) {\n - this.map.events.triggerEvent("changebaselayer", {\n - layer: this\n - });\n - }\n - }\n - },\n -\n - /********************************************************/\n - /* */\n - /* Baselayer Functions */\n - /* */\n - /********************************************************/\n - \n - /** \n - * Method: initResolutions\n - * This method\'s responsibility is to set up the \'resolutions\' array \n - * for the layer -- this array is what the layer will use to interface\n - * between the zoom levels of the map and the resolution display \n - * of the layer.\n - * \n - * The user has several options that determine how the array is set up.\n - * \n - * For a detailed explanation, see the following wiki from the \n - * openlayers.org homepage:\n - * http://trac.openlayers.org/wiki/SettingZoomLevels\n - */\n - initResolutions: function() {\n -\n - // ok we want resolutions, here\'s our strategy:\n - //\n - // 1. if resolutions are defined in the layer config, use them\n - // 2. else, if scales are defined in the layer config then derive\n - // resolutions from these scales\n - // 3. else, attempt to calculate resolutions from maxResolution,\n - // minResolution, numZoomLevels, maxZoomLevel set in the\n - // layer config\n - // 4. if we still don\'t have resolutions, and if resolutions\n - // are defined in the same, use them\n - // 5. else, if scales are defined in the map then derive\n - // resolutions from these scales\n - // 6. else, attempt to calculate resolutions from maxResolution,\n - // minResolution, numZoomLevels, maxZoomLevel set in the\n - // map\n - // 7. hope for the best!\n -\n - var i, len, p;\n - var props = {}, alwaysInRange = true;\n -\n - // get resolution data from layer config\n - // (we also set alwaysInRange in the layer as appropriate)\n - for(i=0, len=this.RESOLUTION_PROPERTIES.length; i<len; i++) {\n - p = this.RESOLUTION_PROPERTIES[i];\n - props[p] = this.options[p];\n - if(alwaysInRange && this.options[p]) {\n - alwaysInRange = false;\n - }\n - }\n - if(this.alwaysInRange == null) {\n - this.alwaysInRange = alwaysInRange;\n - }\n -\n - // if we don\'t have resolutions then attempt to derive them from scales\n - if(props.resolutions == null) {\n - props.resolutions = this.resolutionsFromScales(props.scales);\n - }\n -\n - // if we still don\'t have resolutions then attempt to calculate them\n - if(props.resolutions == null) {\n - props.resolutions = this.calculateResolutions(props);\n - }\n -\n - // if we couldn\'t calculate resolutions then we look at we have\n - // in the map\n - if(props.resolutions == null) {\n - for(i=0, len=this.RESOLUTION_PROPERTIES.length; i<len; i++) {\n - p = this.RESOLUTION_PROPERTIES[i];\n - props[p] = this.options[p] != null ?\n - this.options[p] : this.map[p];\n - }\n - if(props.resolutions == null) {\n - props.resolutions = this.resolutionsFromScales(props.scales);\n - }\n - if(props.resolutions == null) {\n - props.resolutions = this.calculateResolutions(props);\n - }\n - }\n -\n - // ok, we new need to set properties in the instance\n -\n - // get maxResolution from the config if it\'s defined there\n - var maxResolution;\n - if(this.options.maxResolution &&\n - this.options.maxResolution !== "auto") {\n - maxResolution = this.options.maxResolution;\n - }\n - if(this.options.minScale) {\n - maxResolution = OpenLayers.Util.getResolutionFromScale(\n - this.options.minScale, this.units);\n - }\n -\n - // get minResolution from the config if it\'s defined there\n - var minResolution;\n - if(this.options.minResolution &&\n - this.options.minResolution !== "auto") {\n - minResolution = this.options.minResolution;\n - }\n - if(this.options.maxScale) {\n - minResolution = OpenLayers.Util.getResolutionFromScale(\n - this.options.maxScale, this.units);\n - }\n -\n - if(props.resolutions) {\n -\n - //sort resolutions array descendingly\n - props.resolutions.sort(function(a, b) {\n - return (b - a);\n - });\n -\n - // if we still don\'t have a maxResolution get it from the\n - // resolutions array\n - if(!maxResolution) {\n - maxResolution = props.resolutions[0];\n - }\n -\n - // if we still don\'t have a minResolution get it from the\n - // resolutions array\n - if(!minResolution) {\n - var lastIdx = props.resolutions.length - 1;\n - minResolution = props.resolutions[lastIdx];\n - }\n - }\n -\n - this.resolutions = props.resolutions;\n - if(this.resolutions) {\n - len = this.resolutions.length;\n - this.scales = new Array(len);\n - for(i=0; i<len; i++) {\n - this.scales[i] = OpenLayers.Util.getScaleFromResolution(\n - this.resolutions[i], this.units);\n - }\n - this.numZoomLevels = len;\n - }\n - this.minResolution = minResolution;\n - if(minResolution) {\n - this.maxScale = OpenLayers.Util.getScaleFromResolution(\n - minResolution, this.units);\n - }\n - this.maxResolution = maxResolution;\n - if(maxResolution) {\n - this.minScale = OpenLayers.Util.getScaleFromResolution(\n - maxResolution, this.units);\n - }\n - },\n -\n - /**\n - * Method: resolutionsFromScales\n - * Derive resolutions from scales.\n - *\n - * Parameters:\n - * scales - {Array(Number)} Scales\n - *\n - * Returns\n - * {Array(Number)} Resolutions\n - */\n - resolutionsFromScales: function(scales) {\n - if(scales == null) {\n - return;\n - }\n - var resolutions, i, len;\n - len = scales.length;\n - resolutions = new Array(len);\n - for(i=0; i<len; i++) {\n - resolutions[i] = OpenLayers.Util.getResolutionFromScale(\n - scales[i], this.units);\n - }\n - return resolutions;\n - },\n -\n - /**\n - * Method: calculateResolutions\n - * Calculate resolutions based on the provided properties.\n - *\n - * Parameters:\n - * props - {Object} Properties\n - *\n - * Returns:\n - * {Array({Number})} Array of resolutions.\n - */\n - calculateResolutions: function(props) {\n -\n - var viewSize, wRes, hRes;\n -\n - // determine maxResolution\n - var maxResolution = props.maxResolution;\n - if(props.minScale != null) {\n - maxResolution =\n - OpenLayers.Util.getResolutionFromScale(props.minScale,\n - this.units);\n - } else if(maxResolution == "auto" && this.maxExtent != null) {\n - viewSize = this.map.getSize();\n - wRes = this.maxExtent.getWidth() / viewSize.w;\n - hRes = this.maxExtent.getHeight() / viewSize.h;\n - maxResolution = Math.max(wRes, hRes);\n - }\n -\n - // determine minResolution\n - var minResolution = props.minResolution;\n - if(props.maxScale != null) {\n - minResolution =\n - OpenLayers.Util.getResolutionFromScale(props.maxScale,\n - this.units);\n - } else if(props.minResolution == "auto" && this.minExtent != null) {\n - viewSize = this.map.getSize();\n - wRes = this.minExtent.getWidth() / viewSize.w;\n - hRes = this.minExtent.getHeight()/ viewSize.h;\n - minResolution = Math.max(wRes, hRes);\n - }\n -\n - if(typeof maxResolution !== "number" &&\n - typeof minResolution !== "number" &&\n - this.maxExtent != null) {\n - // maxResolution for default grid sets assumes that at zoom\n - // level zero, the whole world fits on one tile.\n - var tileSize = this.map.getTileSize();\n - maxResolution = Math.max(\n - this.maxExtent.getWidth() / tileSize.w,\n - this.maxExtent.getHeight() / tileSize.h\n - );\n - }\n -\n - // determine numZoomLevels\n - var maxZoomLevel = props.maxZoomLevel;\n - var numZoomLevels = props.numZoomLevels;\n - if(typeof minResolution === "number" &&\n - typeof maxResolution === "number" && numZoomLevels === undefined) {\n - var ratio = maxResolution / minResolution;\n - numZoomLevels = Math.floor(Math.log(ratio) / Math.log(2)) + 1;\n - } else if(numZoomLevels === undefined && maxZoomLevel != null) {\n - numZoomLevels = maxZoomLevel + 1;\n - }\n -\n - // are we able to calculate resolutions?\n - if(typeof numZoomLevels !== "number" || numZoomLevels <= 0 ||\n - (typeof maxResolution !== "number" &&\n - typeof minResolution !== "number")) {\n - return;\n - }\n -\n - // now we have numZoomLevels and at least one of maxResolution\n - // or minResolution, we can populate the resolutions array\n -\n - var resolutions = new Array(numZoomLevels);\n - var base = 2;\n - if(typeof minResolution == "number" &&\n - typeof maxResolution == "number") {\n - // if maxResolution and minResolution are set, we calculate\n - // the base for exponential scaling that starts at\n - // maxResolution and ends at minResolution in numZoomLevels\n - // steps.\n - base = Math.pow(\n - (maxResolution / minResolution),\n - (1 / (numZoomLevels - 1))\n - );\n - }\n -\n - var i;\n - if(typeof maxResolution === "number") {\n - for(i=0; i<numZoomLevels; i++) {\n - resolutions[i] = maxResolution / Math.pow(base, i);\n - }\n - } else {\n - for(i=0; i<numZoomLevels; i++) {\n - resolutions[numZoomLevels - 1 - i] =\n - minResolution * Math.pow(base, i);\n - }\n - }\n -\n - return resolutions;\n - },\n -\n - /**\n - * APIMethod: getResolution\n - * \n - * Returns:\n - * {Float} The currently selected resolution of the map, taken from the\n - * resolutions array, indexed by current zoom level.\n - */\n - getResolution: function() {\n - var zoom = this.map.getZoom();\n - return this.getResolutionForZoom(zoom);\n - },\n -\n - /** \n - * APIMethod: getExtent\n - * \n - * Returns:\n - * {<OpenLayers.Bounds>} A Bounds object which represents the lon/lat \n - * bounds of the current viewPort.\n - */\n - getExtent: function() {\n - // just use stock map calculateBounds function -- passing no arguments\n - // means it will user map\'s current center & resolution\n - //\n - return this.map.calculateBounds();\n - },\n -\n - /**\n - * APIMethod: getZoomForExtent\n - * \n - * Parameters:\n - * extent - {<OpenLayers.Bounds>}\n - * closest - {Boolean} Find the zoom level that most closely fits the \n - * specified bounds. Note that this may result in a zoom that does \n - * not exactly contain the entire extent.\n - * Default is false.\n - *\n - * Returns:\n - * {Integer} The index of the zoomLevel (entry in the resolutions array) \n - * for the passed-in extent. We do this by calculating the ideal \n - * resolution for the given extent (based on the map size) and then \n - * calling getZoomForResolution(), passing along the \'closest\'\n - * parameter.\n - */\n - getZoomForExtent: function(extent, closest) {\n - var viewSize = this.map.getSize();\n - var idealResolution = Math.max( extent.getWidth() / viewSize.w,\n - extent.getHeight() / viewSize.h );\n -\n - return this.getZoomForResolution(idealResolution, closest);\n - },\n - \n - /** \n - * Method: getDataExtent\n - * Calculates the max extent which includes all of the data for the layer.\n - * This function is to be implemented by subclasses.\n - * \n - * Returns:\n - * {<OpenLayers.Bounds>}\n - */\n - getDataExtent: function () {\n - //to be implemented by subclasses\n - },\n -\n - /**\n - * APIMethod: getResolutionForZoom\n - * \n - * Parameters:\n - * zoom - {Float}\n - * \n - * Returns:\n - * {Float} A suitable resolution for the specified zoom.\n - */\n - getResolutionForZoom: function(zoom) {\n - zoom = Math.max(0, Math.min(zoom, this.resolutions.length - 1));\n - var resolution;\n - if(this.map.fractionalZoom) {\n - var low = Math.floor(zoom);\n - var high = Math.ceil(zoom);\n - resolution = this.resolutions[low] -\n - ((zoom-low) * (this.resolutions[low]-this.resolutions[high]));\n - } else {\n - resolution = this.resolutions[Math.round(zoom)];\n - }\n - return resolution;\n - },\n -\n - /**\n - * APIMethod: getZoomForResolution\n - * \n - * Parameters:\n - * resolution - {Float}\n - * closest - {Boolean} Find the zoom level that corresponds to the absolute \n - * closest resolution, which may result in a zoom whose corresponding\n - * resolution is actually smaller than we would have desired (if this\n - * is being called from a getZoomForExtent() call, then this means that\n - * the returned zoom index might not actually contain the entire \n - * extent specified... but it\'ll be close).\n - * Default is false.\n - * \n - * Returns:\n - * {Integer} The index of the zoomLevel (entry in the resolutions array) \n - * that corresponds to the best fit resolution given the passed in \n - * value and the \'closest\' specification.\n - */\n - getZoomForResolution: function(resolution, closest) {\n - var zoom, i, len;\n - if(this.map.fractionalZoom) {\n - var lowZoom = 0;\n - var highZoom = this.resolutions.length - 1;\n - var highRes = this.resolutions[lowZoom];\n - var lowRes = this.resolutions[highZoom];\n - var res;\n - for(i=0, len=this.resolutions.length; i<len; ++i) {\n - res = this.resolutions[i];\n - if(res >= resolution) {\n - highRes = res;\n - lowZoom = i;\n - }\n - if(res <= resolution) {\n - lowRes = res;\n - highZoom = i;\n - break;\n - }\n - }\n - var dRes = highRes - lowRes;\n - if(dRes > 0) {\n - zoom = lowZoom + ((highRes - resolution) / dRes);\n - } else {\n - zoom = lowZoom;\n - }\n - } else {\n - var diff;\n - var minDiff = Number.POSITIVE_INFINITY;\n - for(i=0, len=this.resolutions.length; i<len; i++) { \n - if (closest) {\n - diff = Math.abs(this.resolutions[i] - resolution);\n - if (diff > minDiff) {\n - break;\n - }\n - minDiff = diff;\n - } else {\n - if (this.resolutions[i] < resolution) {\n - break;\n - }\n - }\n - }\n - zoom = Math.max(0, i-1);\n - }\n - return zoom;\n - },\n - \n - /**\n - * APIMethod: getLonLatFromViewPortPx\n - * \n - * Parameters:\n - * viewPortPx - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or\n - * an object with a \'x\'\n - * and \'y\' properties.\n - *\n - * Returns:\n - * {<OpenLayers.LonLat>} An OpenLayers.LonLat which is the passed-in \n - * view port <OpenLayers.Pixel>, translated into lon/lat by the layer.\n - */\n - getLonLatFromViewPortPx: function (viewPortPx) {\n - var lonlat = null;\n - var map = this.map;\n - if (viewPortPx != null && map.minPx) {\n - var res = map.getResolution();\n - var maxExtent = map.getMaxExtent({restricted: true});\n - var lon = (viewPortPx.x - map.minPx.x) * res + maxExtent.left;\n - var lat = (map.minPx.y - viewPortPx.y) * res + maxExtent.top;\n - lonlat = new OpenLayers.LonLat(lon, lat);\n -\n - if (this.wrapDateLine) {\n - lonlat = lonlat.wrapDateLine(this.maxExtent);\n - }\n - }\n - return lonlat;\n - },\n -\n - /**\n - * APIMethod: getViewPortPxFromLonLat\n - * Returns a pixel location given a map location. This method will return\n - * fractional pixel values.\n - * \n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>|Object} An OpenLayers.LonLat or\n - * an object with a \'lon\'\n - * and \'lat\' properties.\n - *\n - * Returns: \n - * {<OpenLayers.Pixel>} An <OpenLayers.Pixel> which is the passed-in \n - * lonlat translated into view port pixels.\n - */\n - getViewPortPxFromLonLat: function (lonlat, resolution) {\n - var px = null; \n - if (lonlat != null) {\n - resolution = resolution || this.map.getResolution();\n - var extent = this.map.calculateBounds(null, resolution);\n - px = new OpenLayers.Pixel(\n - (1/resolution * (lonlat.lon - extent.left)),\n - (1/resolution * (extent.top - lonlat.lat))\n - ); \n - }\n - return px;\n - },\n - \n - /**\n - * APIMethod: setOpacity\n - * Sets the opacity for the entire layer (all images)\n - * \n - * Parameters:\n - * opacity - {Float}\n - */\n - setOpacity: function(opacity) {\n - if (opacity != this.opacity) {\n - this.opacity = opacity;\n - var childNodes = this.div.childNodes;\n - for(var i = 0, len = childNodes.length; i < len; ++i) {\n - var element = childNodes[i].firstChild || childNodes[i];\n - var lastChild = childNodes[i].lastChild;\n - //TODO de-uglify this\n - if (lastChild && lastChild.nodeName.toLowerCase() === "iframe") {\n - element = lastChild.parentNode;\n - }\n - OpenLayers.Util.modifyDOMElement(element, null, null, null, \n - null, null, null, opacity);\n - }\n - if (this.map != null) {\n - this.map.events.triggerEvent("changelayer", {\n - layer: this,\n - property: "opacity"\n - });\n - }\n - }\n - },\n -\n - /**\n - * Method: getZIndex\n - * \n - * Returns: \n - * {Integer} the z-index of this layer\n - */ \n - getZIndex: function () {\n - return this.div.style.zIndex;\n - },\n -\n - /**\n - * Method: setZIndex\n - * \n - * Parameters: \n - * zIndex - {Integer}\n - */ \n - setZIndex: function (zIndex) {\n - this.div.style.zIndex = zIndex;\n - },\n -\n - /**\n - * Method: adjustBounds\n - * This function will take a bounds, and if wrapDateLine option is set\n - * on the layer, it will return a bounds which is wrapped around the \n - * world. We do not wrap for bounds which *cross* the \n - * maxExtent.left/right, only bounds which are entirely to the left \n - * or entirely to the right.\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - */\n - adjustBounds: function (bounds) {\n -\n - if (this.gutter) {\n - // Adjust the extent of a bounds in map units by the \n - // layer\'s gutter in pixels.\n - var mapGutter = this.gutter * this.map.getResolution();\n - bounds = new OpenLayers.Bounds(bounds.left - mapGutter,\n - bounds.bottom - mapGutter,\n - bounds.right + mapGutter,\n - bounds.top + mapGutter);\n - }\n -\n - if (this.wrapDateLine) {\n - // wrap around the date line, within the limits of rounding error\n - var wrappingOptions = { \n - \'rightTolerance\':this.getResolution(),\n - \'leftTolerance\':this.getResolution()\n - }; \n - bounds = bounds.wrapDateLine(this.maxExtent, wrappingOptions);\n - \n - }\n - return bounds;\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>46776</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer.xml deleted file mode 100644 index 260649173cb30676add679d055490f89d99a66cd..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Layer</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Layer</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/ArcGIS93Rest.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/ArcGIS93Rest.js.xml deleted file mode 100644 index 8b772dc58ef881a91c4b9aa07ed891a3a48c7a6c..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/ArcGIS93Rest.js.xml +++ /dev/null @@ -1,270 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ArcGIS93Rest.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer/Grid.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.ArcGIS93Rest\n - * Instances of OpenLayers.Layer.ArcGIS93Rest are used to display data from\n - * ESRI ArcGIS Server 9.3 (and up?) Mapping Services using the REST API.\n - * Create a new ArcGIS93Rest layer with the <OpenLayers.Layer.ArcGIS93Rest>\n - * constructor. More detail on the REST API is available at\n - * http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/index.html ;\n - * specifically, the URL provided to this layer should be an export service\n - * URL: http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/export.html \n - * \n - * Inherits from:\n - * - <OpenLayers.Layer.Grid>\n - */\n -OpenLayers.Layer.ArcGIS93Rest = OpenLayers.Class(OpenLayers.Layer.Grid, {\n -\n - /**\n - * Constant: DEFAULT_PARAMS\n - * {Object} Hashtable of default parameter key/value pairs \n - */\n - DEFAULT_PARAMS: { \n - format: "png"\n - },\n - \n - /**\n - * APIProperty: isBaseLayer\n - * {Boolean} Default is true for ArcGIS93Rest layer\n - */\n - isBaseLayer: true,\n - \n - \n - /**\n - * Constructor: OpenLayers.Layer.ArcGIS93Rest\n - * Create a new ArcGIS93Rest layer object.\n - *\n - * Example:\n - * (code)\n - * var arcims = new OpenLayers.Layer.ArcGIS93Rest("MyName",\n - * "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/export", \n - * {\n - * layers: "0,1,2"\n - * });\n - * (end)\n - *\n - * Parameters:\n - * name - {String} A name for the layer\n - * url - {String} Base url for the ArcGIS server REST service\n - * options - {Object} An object with key/value pairs representing the\n - * options and option values.\n - *\n - * Valid Options:\n - * format - {String} MIME type of desired image type.\n - * layers - {String} Comma-separated list of layers to display.\n - * srs - {String} Projection ID.\n - */\n - initialize: function(name, url, params, options) {\n - var newArguments = [];\n - //uppercase params\n - params = OpenLayers.Util.upperCaseObject(params);\n - newArguments.push(name, url, params, options);\n - OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);\n - OpenLayers.Util.applyDefaults(\n - this.params, \n - OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS)\n - );\n - \n - //layer is transparent \n - if (this.params.TRANSPARENT && \n - this.params.TRANSPARENT.toString().toLowerCase() == "true") {\n - \n - // unless explicitly set in options, make layer an overlay\n - if ( (options == null) || (!options.isBaseLayer) ) {\n - this.isBaseLayer = false;\n - } \n - \n - // jpegs can never be transparent, so intelligently switch the \n - // format, depending on the browser\'s capabilities\n - if (this.params.FORMAT == "jpg") {\n - this.params.FORMAT = OpenLayers.Util.alphaHack() ? "gif"\n - : "png";\n - }\n - }\n - }, \n -\n - /**\n - * Method: clone\n - * Create a clone of this layer\n - *\n - * Returns:\n - * {<OpenLayers.Layer.ArcGIS93Rest>} An exact clone of this layer\n - */\n - clone: function (obj) {\n - \n - if (obj == null) {\n - obj = new OpenLayers.Layer.ArcGIS93Rest(this.name,\n - this.url,\n - this.params,\n - this.getOptions());\n - }\n -\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);\n -\n - // copy/set any non-init, non-simple values here\n -\n - return obj;\n - },\n - \n - \n - /**\n - * Method: getURL\n - * Return an image url this layer.\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} A bounds representing the bbox for the\n - * request.\n - *\n - * Returns:\n - * {String} A string with the map image\'s url.\n - */\n - getURL: function (bounds) {\n - bounds = this.adjustBounds(bounds);\n -\n - // ArcGIS Server only wants the numeric portion of the projection ID.\n - var projWords = this.projection.getCode().split(":");\n - var srid = projWords[projWords.length - 1];\n -\n - var imageSize = this.getImageSize(); \n - var newParams = {\n - \'BBOX\': bounds.toBBOX(),\n - \'SIZE\': imageSize.w + "," + imageSize.h,\n - // We always want image, the other options were json, image with a whole lotta html around it, etc.\n - \'F\': "image",\n - \'BBOXSR\': srid,\n - \'IMAGESR\': srid\n - };\n -\n - // Now add the filter parameters.\n - if (this.layerDefs) {\n - var layerDefStrList = [];\n - var layerID;\n - for(layerID in this.layerDefs) {\n - if (this.layerDefs.hasOwnProperty(layerID)) {\n - if (this.layerDefs[layerID]) {\n - layerDefStrList.push(layerID);\n - layerDefStrList.push(":");\n - layerDefStrList.push(this.layerDefs[layerID]);\n - layerDefStrList.push(";");\n - }\n - }\n - }\n - if (layerDefStrList.length > 0) {\n - newParams[\'LAYERDEFS\'] = layerDefStrList.join("");\n - }\n - }\n - var requestString = this.getFullRequestString(newParams);\n - return requestString;\n - },\n - \n - /**\n - * Method: setLayerFilter\n - * addTile creates a tile, initializes it, and adds it to the layer div. \n - *\n - * Parameters:\n - * id - {String} The id of the layer to which the filter applies.\n - * queryDef - {String} A sql-ish query filter, for more detail see the ESRI\n - * documentation at http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/export.html\n - */\n - setLayerFilter: function ( id, queryDef ) {\n - if (!this.layerDefs) {\n - this.layerDefs = {};\n - }\n - if (queryDef) {\n - this.layerDefs[id] = queryDef;\n - } else {\n - delete this.layerDefs[id];\n - }\n - },\n - \n - /**\n - * Method: clearLayerFilter\n - * Clears layer filters, either from a specific layer,\n - * or all of them.\n - *\n - * Parameters:\n - * id - {String} The id of the layer from which to remove any\n - * filter. If unspecified/blank, all filters\n - * will be removed.\n - */\n - clearLayerFilter: function ( id ) {\n - if (id) {\n - delete this.layerDefs[id];\n - } else {\n - delete this.layerDefs;\n - }\n - },\n - \n - /**\n - * APIMethod: mergeNewParams\n - * Catch changeParams and uppercase the new params to be merged in\n - * before calling changeParams on the super class.\n - * \n - * Once params have been changed, the tiles will be reloaded with\n - * the new parameters.\n - * \n - * Parameters:\n - * newParams - {Object} Hashtable of new params to use\n - */\n - mergeNewParams:function(newParams) {\n - var upperParams = OpenLayers.Util.upperCaseObject(newParams);\n - var newArguments = [upperParams];\n - return OpenLayers.Layer.Grid.prototype.mergeNewParams.apply(this, \n - newArguments);\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.ArcGIS93Rest"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7956</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/ArcGISCache.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/ArcGISCache.js.xml deleted file mode 100644 index 3dcd10ef7499b25c0ed86f34b1f162feb5931c51..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/ArcGISCache.js.xml +++ /dev/null @@ -1,523 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ArcGISCache.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/** \n - * @requires OpenLayers/Layer/XYZ.js\n - */ \n -\n -/** \n - * Class: OpenLayers.Layer.ArcGISCache \n - * Layer for accessing cached map tiles from an ArcGIS Server style mapcache. \n - * Tile must already be cached for this layer to access it. This does not require \n - * ArcGIS Server itself.\n - * \n - * A few attempts have been made at this kind of layer before. See \n - * http://trac.osgeo.org/openlayers/ticket/1967 \n - * and \n - * http://trac.osgeo.org/openlayers/browser/sandbox/tschaub/arcgiscache/lib/OpenLayers/Layer/ArcGISCache.js\n - *\n - * Typically the problem encountered is that the tiles seem to "jump around".\n - * This is due to the fact that the actual max extent for the tiles on AGS layers\n - * changes at each zoom level due to the way these caches are constructed.\n - * We have attempted to use the resolutions, tile size, and tile origin\n - * from the cache meta data to make the appropriate changes to the max extent\n - * of the tile to compensate for this behavior. This must be done as zoom levels change\n - * and before tiles are requested, which is why methods from base classes are overridden.\n - *\n - * For reference, you can access mapcache meta data in two ways. For accessing a \n - * mapcache through ArcGIS Server, you can simply go to the landing page for the\n - * layer. (ie. http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer)\n - * For accessing it directly through HTTP, there should always be a conf.xml file\n - * in the root directory. \n - * (ie. http://serverx.esri.com/arcgiscache/DG_County_roads_yesA_backgroundDark/Layers/conf.xml)\n - * \n - *Inherits from: \n - * - <OpenLayers.Layer.XYZ> \n - */ \n -OpenLayers.Layer.ArcGISCache = OpenLayers.Class(OpenLayers.Layer.XYZ, { \n -\n - /**\n - * APIProperty: url\n - * {String | Array} The base URL for the layer cache. You can also\n - * provide a list of URL strings for the layer if your cache is\n - * available from multiple origins. This must be set before the layer\n - * is drawn.\n - */\n - url: null,\n - \n - /**\n - * APIProperty: tileOrigin\n - * {<OpenLayers.LonLat>} The location of the tile origin for the cache.\n - * An ArcGIS cache has it\'s origin at the upper-left (lowest x value\n - * and highest y value of the coordinate system). The units for the\n - * tile origin should be the same as the units for the cached data.\n - */\n - tileOrigin: null, \n - \n - /**\n - * APIProperty: tileSize\n - * {<OpenLayers.Size>} This size of each tile. Defaults to 256 by 256 pixels.\n - */\n - tileSize: new OpenLayers.Size(256, 256),\n - \n - /**\n - * APIProperty: useAGS\n - * {Boolean} Indicates if we are going to be accessing the ArcGIS Server (AGS)\n - * cache via an AGS MapServer or directly through HTTP. When accessing via\n - * AGS the path structure uses a standard z/y/x structure. But AGS actually\n - * stores the tile images on disk using a hex based folder structure that looks\n - * like "http://example.com/mylayer/L00/R00000000/C00000000.png". Learn more\n - * about this here:\n - * http://blogs.esri.com/Support/blogs/mappingcenter/archive/2010/08/20/Checking-Your-Local-Cache-Folders.aspx\n - * Defaults to true;\n - */ \n - useArcGISServer: true,\n -\n - /**\n - * APIProperty: type\n - * {String} Image type for the layer. This becomes the filename extension\n - * in tile requests. Default is "png" (generating a url like\n - * "http://example.com/mylayer/L00/R00000000/C00000000.png").\n - */\n - type: \'png\',\n - \n - /**\n - * APIProperty: useScales\n - * {Boolean} Optional override to indicate that the layer should use \'scale\' information\n - * returned from the server capabilities object instead of \'resolution\' information.\n - * This can be important if your tile server uses an unusual DPI for the tiles.\n - */\n - useScales: false,\n - \n - /**\n - * APIProperty: overrideDPI\n - * {Boolean} Optional override to change the OpenLayers.DOTS_PER_INCH setting based \n - * on the tile information in the server capabilities object. This can be useful \n - * if your server has a non-standard DPI setting on its tiles, and you\'re only using \n - * tiles with that DPI. This value is used while OpenLayers is calculating resolution\n - * using scales, and is not necessary if you have resolution information. (This is\n - * typically the case) Regardless, this setting can be useful, but is dangerous\n - * because it will impact other layers while calculating resolution. Only use this\n - * if you know what you are doing. (See OpenLayers.Util.getResolutionFromScale)\n - */\n - overrideDPI: false,\n - \n - /**\n - * Constructor: OpenLayers.Layer.ArcGISCache \n - * Creates a new instance of this class \n - * \n - * Parameters: \n - * name - {String} \n - * url - {String} \n - * options - {Object} extra layer options\n - */ \n - initialize: function(name, url, options) { \n - OpenLayers.Layer.XYZ.prototype.initialize.apply(this, arguments);\n -\n - if (this.resolutions) { \n - this.serverResolutions = this.resolutions;\n - this.maxExtent = this.getMaxExtentForResolution(this.resolutions[0]);\n - }\n -\n - // this block steps through translating the values from the server layer JSON \n - // capabilities object into values that we can use. This is also a helpful\n - // reference when configuring this layer directly.\n - if (this.layerInfo) {\n - // alias the object\n - var info = this.layerInfo;\n - \n - // build our extents\n - var startingTileExtent = new OpenLayers.Bounds(\n - info.fullExtent.xmin, \n - info.fullExtent.ymin, \n - info.fullExtent.xmax, \n - info.fullExtent.ymax \n - );\n -\n - // set our projection based on the given spatial reference.\n - // esri uses slightly different IDs, so this may not be comprehensive\n - this.projection = \'EPSG:\' + info.spatialReference.wkid;\n - this.sphericalMercator = (info.spatialReference.wkid == 102100);\n - \n - // convert esri units into openlayers units (basic feet or meters only)\n - this.units = (info.units == "esriFeet") ? \'ft\' : \'m\';\n -\n - // optional extended section based on whether or not the server returned\n - // specific tile information\n - if (!!info.tileInfo) { \n - // either set the tiles based on rows/columns, or specific width/height\n - this.tileSize = new OpenLayers.Size(\n - info.tileInfo.width || info.tileInfo.cols, \n - info.tileInfo.height || info.tileInfo.rows\n - );\n - \n - // this must be set when manually configuring this layer\n - this.tileOrigin = new OpenLayers.LonLat(\n - info.tileInfo.origin.x, \n - info.tileInfo.origin.y\n - );\n -\n - var upperLeft = new OpenLayers.Geometry.Point(\n - startingTileExtent.left, \n - startingTileExtent.top\n - );\n - \n - var bottomRight = new OpenLayers.Geometry.Point(\n - startingTileExtent.right, \n - startingTileExtent.bottom\n - ); \n - \n - if (this.useScales) {\n - this.scales = [];\n - } else {\n - this.resolutions = [];\n - }\n - \n - this.lods = [];\n - for(var key in info.tileInfo.lods) {\n - if (info.tileInfo.lods.hasOwnProperty(key)) {\n - var lod = info.tileInfo.lods[key];\n - if (this.useScales) {\n - this.scales.push(lod.scale);\n - } else {\n - this.resolutions.push(lod.resolution);\n - }\n - \n - var start = this.getContainingTileCoords(upperLeft, lod.resolution);\n - lod.startTileCol = start.x;\n - lod.startTileRow = start.y;\n - \n - var end = this.getContainingTileCoords(bottomRight, lod.resolution);\n - lod.endTileCol = end.x;\n - lod.endTileRow = end.y; \n - this.lods.push(lod);\n - }\n - }\n -\n - this.maxExtent = this.calculateMaxExtentWithLOD(this.lods[0]);\n - this.serverResolutions = this.resolutions;\n - if (this.overrideDPI && info.tileInfo.dpi) {\n - // see comment above for \'overrideDPI\'\n - OpenLayers.DOTS_PER_INCH = info.tileInfo.dpi;\n - }\n - } \n - }\n - }, \n -\n - /** \n - * Method: getContainingTileCoords\n - * Calculates the x/y pixel corresponding to the position of the tile\n - * that contains the given point and for the for the given resolution.\n - * \n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>} \n - * res - {Float} The resolution for which to compute the extent.\n - * \n - * Returns: \n - * {<OpenLayers.Pixel>} The x/y pixel corresponding to the position \n - * of the upper left tile for the given resolution.\n - */\n - getContainingTileCoords: function(point, res) {\n - return new OpenLayers.Pixel(\n - Math.max(Math.floor((point.x - this.tileOrigin.lon) / (this.tileSize.w * res)),0),\n - Math.max(Math.floor((this.tileOrigin.lat - point.y) / (this.tileSize.h * res)),0)\n - );\n - },\n - \n - /** \n - * Method: calculateMaxExtentWithLOD\n - * Given a Level of Detail object from the server, this function\n - * calculates the actual max extent\n - * \n - * Parameters: \n - * lod - {Object} a Level of Detail Object from the server capabilities object \n - representing a particular zoom level\n - * \n - * Returns: \n - * {<OpenLayers.Bounds>} The actual extent of the tiles for the given zoom level\n - */\n - calculateMaxExtentWithLOD: function(lod) {\n - // the max extent we\'re provided with just overlaps some tiles\n - // our real extent is the bounds of all the tiles we touch\n -\n - var numTileCols = (lod.endTileCol - lod.startTileCol) + 1;\n - var numTileRows = (lod.endTileRow - lod.startTileRow) + 1; \n -\n - var minX = this.tileOrigin.lon + (lod.startTileCol * this.tileSize.w * lod.resolution);\n - var maxX = minX + (numTileCols * this.tileSize.w * lod.resolution);\n -\n - var maxY = this.tileOrigin.lat - (lod.startTileRow * this.tileSize.h * lod.resolution);\n - var minY = maxY - (numTileRows * this.tileSize.h * lod.resolution);\n - return new OpenLayers.Bounds(minX, minY, maxX, maxY);\n - },\n - \n - /** \n - * Method: calculateMaxExtentWithExtent\n - * Given a \'suggested\' max extent from the server, this function uses\n - * information about the actual tile sizes to determine the actual\n - * extent of the layer.\n - * \n - * Parameters: \n - * extent - {<OpenLayers.Bounds>} The \'suggested\' extent for the layer\n - * res - {Float} The resolution for which to compute the extent.\n - * \n - * Returns: \n - * {<OpenLayers.Bounds>} The actual extent of the tiles for the given zoom level\n - */\n - calculateMaxExtentWithExtent: function(extent, res) {\n - var upperLeft = new OpenLayers.Geometry.Point(extent.left, extent.top);\n - var bottomRight = new OpenLayers.Geometry.Point(extent.right, extent.bottom);\n - var start = this.getContainingTileCoords(upperLeft, res);\n - var end = this.getContainingTileCoords(bottomRight, res);\n - var lod = {\n - resolution: res,\n - startTileCol: start.x,\n - startTileRow: start.y,\n - endTileCol: end.x,\n - endTileRow: end.y\n - };\n - return this.calculateMaxExtentWithLOD(lod);\n - },\n - \n - /** \n - * Method: getUpperLeftTileCoord\n - * Calculates the x/y pixel corresponding to the position \n - * of the upper left tile for the given resolution.\n - * \n - * Parameters: \n - * res - {Float} The resolution for which to compute the extent.\n - * \n - * Returns: \n - * {<OpenLayers.Pixel>} The x/y pixel corresponding to the position \n - * of the upper left tile for the given resolution.\n - */\n - getUpperLeftTileCoord: function(res) {\n - var upperLeft = new OpenLayers.Geometry.Point(\n - this.maxExtent.left,\n - this.maxExtent.top);\n - return this.getContainingTileCoords(upperLeft, res);\n - },\n -\n - /** \n - * Method: getLowerRightTileCoord\n - * Calculates the x/y pixel corresponding to the position \n - * of the lower right tile for the given resolution.\n - * \n - * Parameters: \n - * res - {Float} The resolution for which to compute the extent.\n - * \n - * Returns: \n - * {<OpenLayers.Pixel>} The x/y pixel corresponding to the position\n - * of the lower right tile for the given resolution.\n - */\n - getLowerRightTileCoord: function(res) {\n - var bottomRight = new OpenLayers.Geometry.Point(\n - this.maxExtent.right,\n - this.maxExtent.bottom);\n - return this.getContainingTileCoords(bottomRight, res);\n - },\n - \n - /** \n - * Method: getMaxExtentForResolution\n - * Since the max extent of a set of tiles can change from zoom level\n - * to zoom level, we need to be able to calculate that max extent \n - * for a given resolution.\n - *\n - * Parameters: \n - * res - {Float} The resolution for which to compute the extent.\n - * \n - * Returns: \n - * {<OpenLayers.Bounds>} The extent for this resolution\n - */ \n - getMaxExtentForResolution: function(res) {\n - var start = this.getUpperLeftTileCoord(res);\n - var end = this.getLowerRightTileCoord(res);\n -\n - var numTileCols = (end.x - start.x) + 1;\n - var numTileRows = (end.y - start.y) + 1;\n -\n - var minX = this.tileOrigin.lon + (start.x * this.tileSize.w * res);\n - var maxX = minX + (numTileCols * this.tileSize.w * res);\n - \n - var maxY = this.tileOrigin.lat - (start.y * this.tileSize.h * res);\n - var minY = maxY - (numTileRows * this.tileSize.h * res);\n - return new OpenLayers.Bounds(minX, minY, maxX, maxY);\n - },\n - \n - /** \n - * APIMethod: clone \n - * Returns an exact clone of this OpenLayers.Layer.ArcGISCache\n - * \n - * Parameters: \n - * [obj] - {Object} optional object to assign the cloned instance to.\n - * \n - * Returns: \n - * {<OpenLayers.Layer.ArcGISCache>} clone of this instance \n - */ \n - clone: function (obj) { \n - if (obj == null) { \n - obj = new OpenLayers.Layer.ArcGISCache(this.name, this.url, this.options);\n - }\n - return OpenLayers.Layer.XYZ.prototype.clone.apply(this, [obj]);\n - },\n -\n - /**\n - * Method: getMaxExtent\n - * Get this layer\'s maximum extent.\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>}\n - */\n - getMaxExtent: function() {\n - var resolution = this.map.getResolution();\n - return this.maxExtent = this.getMaxExtentForResolution(resolution);\n - },\n -\n - /**\n - * Method: getTileOrigin\n - * Determine the origin for aligning the grid of tiles. \n - * The origin will be derived from the layer\'s <maxExtent> property. \n - *\n - * Returns:\n - * {<OpenLayers.LonLat>} The tile origin.\n - */\n - getTileOrigin: function() {\n - var extent = this.getMaxExtent();\n - return new OpenLayers.LonLat(extent.left, extent.bottom);\n - },\n -\n - /**\n - * Method: getURL\n - * Determine the URL for a tile given the tile bounds. This is should support\n - * urls that access tiles through an ArcGIS Server MapServer or directly through\n - * the hex folder structure using HTTP. Just be sure to set the useArcGISServer\n - * property appropriately! This is basically the same as \n - * \'OpenLayers.Layer.TMS.getURL\', but with the addition of hex addressing,\n - * and tile rounding.\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - *\n - * Returns:\n - * {String} The URL for a tile based on given bounds.\n - */\n - getURL: function (bounds) {\n - var res = this.getResolution(); \n -\n - // tile center\n - var originTileX = (this.tileOrigin.lon + (res * this.tileSize.w/2)); \n - var originTileY = (this.tileOrigin.lat - (res * this.tileSize.h/2));\n -\n - var center = bounds.getCenterLonLat();\n - var point = { x: center.lon, y: center.lat };\n - var x = (Math.round(Math.abs((center.lon - originTileX) / (res * this.tileSize.w)))); \n - var y = (Math.round(Math.abs((originTileY - center.lat) / (res * this.tileSize.h)))); \n - var z = this.map.getZoom();\n -\n - // this prevents us from getting pink tiles (non-existant tiles)\n - if (this.lods) { \n - var lod = this.lods[this.map.getZoom()];\n - if ((x < lod.startTileCol || x > lod.endTileCol) \n - || (y < lod.startTileRow || y > lod.endTileRow)) {\n - return null;\n - }\n - }\n - else {\n - var start = this.getUpperLeftTileCoord(res);\n - var end = this.getLowerRightTileCoord(res);\n - if ((x < start.x || x >= end.x)\n - || (y < start.y || y >= end.y)) {\n - return null;\n - } \n - }\n -\n - // Construct the url string\n - var url = this.url;\n - var s = \'\' + x + y + z;\n -\n - if (OpenLayers.Util.isArray(url)) {\n - url = this.selectUrl(s, url);\n - }\n -\n - // Accessing tiles through ArcGIS Server uses a different path\n - // structure than direct access via the folder structure.\n - if (this.useArcGISServer) {\n - // AGS MapServers have pretty url access to tiles\n - url = url + \'/tile/${z}/${y}/${x}\';\n - } else {\n - // The tile images are stored using hex values on disk.\n - x = \'C\' + this.zeroPad(x, 8, 16);\n - y = \'R\' + this.zeroPad(y, 8, 16);\n - z = \'L\' + this.zeroPad(z, 2, 16);\n - url = url + \'/${z}/${y}/${x}.\' + this.type;\n - }\n -\n - // Write the values into our formatted url\n - url = OpenLayers.String.format(url, {\'x\': x, \'y\': y, \'z\': z});\n -\n - return OpenLayers.Util.urlAppend(\n - url, OpenLayers.Util.getParameterString(this.params)\n - );\n - },\n -\n - /**\n - * Method: zeroPad\n - * Create a zero padded string optionally with a radix for casting numbers.\n - *\n - * Parameters:\n - * num - {Number} The number to be zero padded.\n - * len - {Number} The length of the string to be returned.\n - * radix - {Number} An integer between 2 and 36 specifying the base to use\n - * for representing numeric values.\n - */\n - zeroPad: function(num, len, radix) {\n - var str = num.toString(radix || 10);\n - while (str.length < len) {\n - str = "0" + str;\n - }\n - return str;\n - },\n -\n - CLASS_NAME: \'OpenLayers.Layer.ArcGISCache\' \n -}); \n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>18984</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/ArcIMS.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/ArcIMS.js.xml deleted file mode 100644 index cb0c67252f07f60dcee241f6acdf0c5f764671b9..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/ArcIMS.js.xml +++ /dev/null @@ -1,469 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>ArcIMS.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Layer/Grid.js\n - * @requires OpenLayers/Format/ArcXML.js\n - * @requires OpenLayers/Request.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.ArcIMS\n - * Instances of OpenLayers.Layer.ArcIMS are used to display data from ESRI ArcIMS\n - * Mapping Services. Create a new ArcIMS layer with the <OpenLayers.Layer.ArcIMS>\n - * constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Layer.Grid>\n - */\n -OpenLayers.Layer.ArcIMS = OpenLayers.Class(OpenLayers.Layer.Grid, {\n -\n - /**\n - * Constant: DEFAULT_PARAMS\n - * {Object} Default query string parameters.\n - */\n - DEFAULT_PARAMS: { \n - ClientVersion: "9.2",\n - ServiceName: \'\'\n - },\n - \n - /**\n - * APIProperty: featureCoordSys\n - * {String} Code for feature coordinate system. Default is "4326".\n - */\n - featureCoordSys: "4326",\n - \n - /**\n - * APIProperty: filterCoordSys\n - * {String} Code for filter coordinate system. Default is "4326".\n - */\n - filterCoordSys: "4326",\n - \n - /**\n - * APIProperty: layers\n - * {Array} An array of objects with layer properties.\n - */\n - layers: null,\n - \n - /**\n - * APIProperty: async\n - * {Boolean} Request images asynchronously. Default is true.\n - */\n - async: true,\n - \n - /**\n - * APIProperty: name\n - * {String} Layer name. Default is "ArcIMS".\n - */\n - name: "ArcIMS",\n -\n - /**\n - * APIProperty: isBaseLayer\n - * {Boolean} The layer is a base layer. Default is true.\n - */\n - isBaseLayer: true,\n -\n - /**\n - * Constant: DEFAULT_OPTIONS\n - * {Object} Default layers properties.\n - */\n - DEFAULT_OPTIONS: {\n - tileSize: new OpenLayers.Size(512, 512),\n - featureCoordSys: "4326",\n - filterCoordSys: "4326",\n - layers: null,\n - isBaseLayer: true,\n - async: true,\n - name: "ArcIMS"\n - }, \n - \n - /**\n - * Constructor: OpenLayers.Layer.ArcIMS\n - * Create a new ArcIMS layer object.\n - *\n - * Example:\n - * (code)\n - * var arcims = new OpenLayers.Layer.ArcIMS(\n - * "Global Sample",\n - * "http://sample.avencia.com/servlet/com.esri.esrimap.Esrimap", \n - * {\n - * service: "OpenLayers_Sample", \n - * layers: [\n - * // layers to manipulate\n - * {id: "1", visible: true}\n - * ]\n - * }\n - * );\n - * (end)\n - *\n - * Parameters:\n - * name - {String} A name for the layer\n - * url - {String} Base url for the ArcIMS server\n - * options - {Object} Optional object with properties to be set on the\n - * layer.\n - */\n - initialize: function(name, url, options) {\n - \n - this.tileSize = new OpenLayers.Size(512, 512);\n -\n - // parameters\n - this.params = OpenLayers.Util.applyDefaults(\n - {ServiceName: options.serviceName},\n - this.DEFAULT_PARAMS\n - );\n - this.options = OpenLayers.Util.applyDefaults(\n - options, this.DEFAULT_OPTIONS\n - );\n - \n - OpenLayers.Layer.Grid.prototype.initialize.apply(\n - this, [name, url, this.params, options]\n - );\n -\n - //layer is transparent \n - if (this.transparent) {\n - \n - // unless explicitly set in options, make layer an overlay\n - if (!this.isBaseLayer) {\n - this.isBaseLayer = false;\n - } \n - \n - // jpegs can never be transparent, so intelligently switch the \n - // format, depending on the browser\'s capabilities\n - if (this.format == "image/jpeg") {\n - this.format = OpenLayers.Util.alphaHack() ? "image/gif" : "image/png";\n - }\n - }\n -\n - // create an empty layer list if no layers specified in the options\n - if (this.options.layers === null) {\n - this.options.layers = [];\n - }\n - }, \n -\n - /**\n - * Method: getURL\n - * Return an image url this layer.\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} A bounds representing the bbox for the\n - * request.\n - *\n - * Returns:\n - * {String} A string with the map image\'s url.\n - */\n - getURL: function(bounds) {\n - var url = "";\n - bounds = this.adjustBounds(bounds);\n - \n - // create an arcxml request to generate the image\n - var axlReq = new OpenLayers.Format.ArcXML( \n - OpenLayers.Util.extend(this.options, {\n - requesttype: "image",\n - envelope: bounds.toArray(),\n - tileSize: this.tileSize\n - })\n - );\n - \n - // create a synchronous ajax request to get an arcims image\n - var req = new OpenLayers.Request.POST({\n - url: this.getFullRequestString(),\n - data: axlReq.write(),\n - async: false\n - });\n - \n - // if the response exists\n - if (req != null) {\n - var doc = req.responseXML;\n -\n - if (!doc || !doc.documentElement) { \n - doc = req.responseText;\n - }\n -\n - // create a new arcxml format to read the response\n - var axlResp = new OpenLayers.Format.ArcXML();\n - var arcxml = axlResp.read(doc);\n - url = this.getUrlOrImage(arcxml.image.output);\n - }\n - \n - return url;\n - },\n - \n - \n - /**\n - * Method: getURLasync\n - * Get an image url this layer asynchronously, and execute a callback\n - * when the image url is generated.\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} A bounds representing the bbox for the\n - * request.\n - * callback - {Function} Function to call when image url is retrieved.\n - * scope - {Object} The scope of the callback method.\n - */\n - getURLasync: function(bounds, callback, scope) {\n - bounds = this.adjustBounds(bounds);\n - \n - // create an arcxml request to generate the image\n - var axlReq = new OpenLayers.Format.ArcXML( \n - OpenLayers.Util.extend(this.options, { \n - requesttype: "image",\n - envelope: bounds.toArray(),\n - tileSize: this.tileSize\n - })\n - );\n - \n - // create an asynchronous ajax request to get an arcims image\n - OpenLayers.Request.POST({\n - url: this.getFullRequestString(),\n - async: true,\n - data: axlReq.write(),\n - callback: function(req) {\n - // process the response from ArcIMS, and call the callback function\n - // to set the image URL\n - var doc = req.responseXML;\n - if (!doc || !doc.documentElement) { \n - doc = req.responseText;\n - }\n -\n - // create a new arcxml format to read the response\n - var axlResp = new OpenLayers.Format.ArcXML();\n - var arcxml = axlResp.read(doc);\n - \n - callback.call(scope, this.getUrlOrImage(arcxml.image.output));\n - },\n - scope: this\n - });\n - },\n - \n - /**\n - * Method: getUrlOrImage\n - * Extract a url or image from the ArcXML image output.\n - *\n - * Parameters:\n - * output - {Object} The image.output property of the object returned from\n - * the ArcXML format read method.\n - *\n - * Returns:\n - * {String} A URL for an image (potentially with the data protocol).\n - */\n - getUrlOrImage: function(output) {\n - var ret = "";\n - if(output.url) {\n - // If the image response output url is a string, then the image\n - // data is not inline.\n - ret = output.url;\n - } else if(output.data) {\n - // The image data is inline and base64 encoded, create a data\n - // url for the image. This will only work for small images,\n - // due to browser url length limits.\n - ret = "data:image/" + output.type + \n - ";base64," + output.data;\n - }\n - return ret;\n - },\n - \n - /**\n - * Method: setLayerQuery\n - * Set the query definition on this layer. Query definitions are used to\n - * render parts of the spatial data in an image, and can be used to\n - * filter features or layers in the ArcIMS service.\n - *\n - * Parameters:\n - * id - {String} The ArcIMS layer ID.\n - * querydef - {Object} The query definition to apply to this layer.\n - */\n - setLayerQuery: function(id, querydef) {\n - // find the matching layer, if it exists\n - for (var lyr = 0; lyr < this.options.layers.length; lyr++) {\n - if (id == this.options.layers[lyr].id) {\n - // replace this layer definition\n - this.options.layers[lyr].query = querydef;\n - return;\n - }\n - }\n - \n - // no layer found, create a new definition\n - this.options.layers.push({id: id, visible: true, query: querydef});\n - },\n - \n - /**\n - * Method: getFeatureInfo\n - * Get feature information from ArcIMS. Using the applied geometry, apply\n - * the options to the query (buffer, area/envelope intersection), and\n - * query the ArcIMS service.\n - *\n - * A note about accuracy:\n - * ArcIMS interprets the accuracy attribute in feature requests to be\n - * something like the \'modulus\' operator on feature coordinates,\n - * applied to the database geometry of the feature. It doesn\'t round,\n - * so your feature coordinates may be up to (1 x accuracy) offset from\n - * the actual feature coordinates. If the accuracy of the layer is not\n - * specified, the accuracy will be computed to be approximately 1\n - * feature coordinate per screen pixel.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.LonLat>} or {<OpenLayers.Geometry.Polygon>} The\n - * geometry to use when making the query. This should be a closed\n - * polygon for behavior approximating a free selection.\n - * layer - {Object} The ArcIMS layer definition. This is an anonymous object\n - * that looks like:\n - * (code)\n - * {\n - * id: "ArcXML layer ID", // the ArcXML layer ID\n - * query: {\n - * where: "STATE = \'PA\'", // the where clause of the query\n - * accuracy: 100 // the accuracy of the returned feature\n - * }\n - * }\n - * (end)\n - * options - {Object} Object with non-default properties to set on the layer.\n - * Supported properties are buffer, callback, scope, and any other\n - * properties applicable to the ArcXML format. Set the \'callback\' and\n - * \'scope\' for an object and function to recieve the parsed features\n - * from ArcIMS.\n - */\n - getFeatureInfo: function(geometry, layer, options) {\n - // set the buffer to 1 unit (dd/m/ft?) by default\n - var buffer = options.buffer || 1;\n - // empty callback by default\n - var callback = options.callback || function() {};\n - // default scope is window (global)\n - var scope = options.scope || window;\n -\n - // apply these option to the request options\n - var requestOptions = {};\n - OpenLayers.Util.extend(requestOptions, this.options);\n -\n - // this is a feature request\n - requestOptions.requesttype = "feature";\n -\n - if (geometry instanceof OpenLayers.LonLat) {\n - // create an envelope if the geometry is really a lon/lat\n - requestOptions.polygon = null;\n - requestOptions.envelope = [ \n - geometry.lon - buffer, \n - geometry.lat - buffer,\n - geometry.lon + buffer,\n - geometry.lat + buffer\n - ];\n - } else if (geometry instanceof OpenLayers.Geometry.Polygon) {\n - // use the polygon assigned, and empty the envelope\n - requestOptions.envelope = null;\n - requestOptions.polygon = geometry;\n - }\n - \n - // create an arcxml request to get feature requests\n - var arcxml = new OpenLayers.Format.ArcXML(requestOptions);\n -\n - // apply any get feature options to the arcxml request\n - OpenLayers.Util.extend(arcxml.request.get_feature, options);\n -\n - arcxml.request.get_feature.layer = layer.id;\n - if (typeof layer.query.accuracy == "number") {\n - // set the accuracy if it was specified\n - arcxml.request.get_feature.query.accuracy = layer.query.accuracy;\n - } else {\n - // guess that the accuracy is 1 per screen pixel\n - var mapCenter = this.map.getCenter();\n - var viewPx = this.map.getViewPortPxFromLonLat(mapCenter);\n - viewPx.x++;\n - var mapOffCenter = this.map.getLonLatFromPixel(viewPx);\n - arcxml.request.get_feature.query.accuracy = mapOffCenter.lon - mapCenter.lon;\n - }\n - \n - // set the get_feature query to be the same as the layer passed in\n - arcxml.request.get_feature.query.where = layer.query.where;\n - \n - // use area_intersection\n - arcxml.request.get_feature.query.spatialfilter.relation = "area_intersection";\n - \n - // create a new asynchronous request to get the feature info\n - OpenLayers.Request.POST({\n - url: this.getFullRequestString({\'CustomService\': \'Query\'}),\n - data: arcxml.write(),\n - callback: function(request) {\n - // parse the arcxml response\n - var response = arcxml.parseResponse(request.responseText);\n - \n - if (!arcxml.iserror()) {\n - // if the arcxml is not an error, call the callback with the features parsed\n - callback.call(scope, response.features);\n - } else {\n - // if the arcxml is an error, return null features selected\n - callback.call(scope, null);\n - }\n - }\n - });\n - },\n -\n - /**\n - * Method: clone\n - * Create a clone of this layer\n - *\n - * Returns:\n - * {<OpenLayers.Layer.ArcIMS>} An exact clone of this layer\n - */\n - clone: function (obj) {\n -\n - if (obj == null) {\n - obj = new OpenLayers.Layer.ArcIMS(this.name,\n - this.url,\n - this.getOptions());\n - }\n -\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);\n -\n - // copy/set any non-init, non-simple values here\n -\n - return obj;\n - },\n - \n - CLASS_NAME: "OpenLayers.Layer.ArcIMS"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>14638</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Bing.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Bing.js.xml deleted file mode 100644 index af2538f5a50b874df4461f3d311cba9fce7ab611..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Bing.js.xml +++ /dev/null @@ -1,352 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Bing.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Layer/XYZ.js\n - */\n -\n -/** \n - * Class: OpenLayers.Layer.Bing\n - * Bing layer using direct tile access as provided by Bing Maps REST Services.\n - * See http://msdn.microsoft.com/en-us/library/ff701713.aspx for more\n - * information. Note: Terms of Service compliant use requires the map to be\n - * configured with an <OpenLayers.Control.Attribution> control and the\n - * attribution placed on or near the map.\n - * \n - * Inherits from:\n - * - <OpenLayers.Layer.XYZ>\n - */\n -OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {\n -\n - /**\n - * Property: key\n - * {String} API key for Bing maps, get your own key \n - * at http://bingmapsportal.com/ .\n - */\n - key: null,\n -\n - /**\n - * Property: serverResolutions\n - * {Array} the resolutions provided by the Bing servers.\n - */\n - serverResolutions: [\n - 156543.03390625, 78271.516953125, 39135.7584765625,\n - 19567.87923828125, 9783.939619140625, 4891.9698095703125,\n - 2445.9849047851562, 1222.9924523925781, 611.4962261962891,\n - 305.74811309814453, 152.87405654907226, 76.43702827453613,\n - 38.218514137268066, 19.109257068634033, 9.554628534317017,\n - 4.777314267158508, 2.388657133579254, 1.194328566789627,\n - 0.5971642833948135, 0.29858214169740677, 0.14929107084870338,\n - 0.07464553542435169\n - ],\n - \n - /**\n - * Property: attributionTemplate\n - * {String}\n - */\n - attributionTemplate: \'<span class="olBingAttribution ${type}">\' +\n - \'<div><a target="_blank" href="http://www.bing.com/maps/">\' +\n - \'<img src="${logo}" /></a></div>${copyrights}\' +\n - \'<a style="white-space: nowrap" target="_blank" \'+\n - \'href="http://www.microsoft.com/maps/product/terms.html">\' +\n - \'Terms of Use</a></span>\',\n -\n - /**\n - * Property: metadata\n - * {Object} Metadata for this layer, as returned by the callback script\n - */\n - metadata: null,\n - \n - /**\n - * APIProperty: type\n - * {String} The layer identifier. Any non-birdseye imageryType\n - * from http://msdn.microsoft.com/en-us/library/ff701716.aspx can be\n - * used. Default is "Road".\n - */\n - type: "Road",\n - \n - /**\n - * APIProperty: culture\n - * {String} The culture identifier. See http://msdn.microsoft.com/en-us/library/ff701709.aspx\n - * for the definition and the possible values. Default is "en-US".\n - */\n - culture: "en-US",\n - \n - /**\n - * APIProperty: metadataParams\n - * {Object} Optional url parameters for the Get Imagery Metadata request\n - * as described here: http://msdn.microsoft.com/en-us/library/ff701716.aspx\n - */\n - metadataParams: null,\n -\n - /** APIProperty: tileOptions\n - * {Object} optional configuration options for <OpenLayers.Tile> instances\n - * created by this Layer. Default is\n - *\n - * (code)\n - * {crossOriginKeyword: \'anonymous\'}\n - * (end)\n - */\n - tileOptions: null,\n -\n - /**\n - * Constructor: OpenLayers.Layer.Bing\n - * Create a new Bing layer.\n - *\n - * Example:\n - * (code)\n - * var road = new OpenLayers.Layer.Bing({\n - * name: "My Bing Aerial Layer",\n - * type: "Aerial",\n - * key: "my-api-key-here",\n - * });\n - * (end)\n - *\n - * Parameters:\n - * options - {Object} Configuration properties for the layer.\n - *\n - * Required configuration properties:\n - * key - {String} Bing Maps API key for your application. Get one at\n - * http://bingmapsportal.com/.\n - * type - {String} The layer identifier. Any non-birdseye imageryType\n - * from http://msdn.microsoft.com/en-us/library/ff701716.aspx can be\n - * used.\n - *\n - * Any other documented layer properties can be provided in the config object.\n - */\n - initialize: function(options) {\n - options = OpenLayers.Util.applyDefaults({\n - sphericalMercator: true\n - }, options);\n - var name = options.name || "Bing " + (options.type || this.type);\n - \n - var newArgs = [name, null, options];\n - OpenLayers.Layer.XYZ.prototype.initialize.apply(this, newArgs);\n - this.tileOptions = OpenLayers.Util.extend({\n - crossOriginKeyword: \'anonymous\'\n - }, this.options.tileOptions);\n - this.loadMetadata(); \n - },\n -\n - /**\n - * Method: loadMetadata\n - */\n - loadMetadata: function() {\n - this._callbackId = "_callback_" + this.id.replace(/\\./g, "_");\n - // link the processMetadata method to the global scope and bind it\n - // to this instance\n - window[this._callbackId] = OpenLayers.Function.bind(\n - OpenLayers.Layer.Bing.processMetadata, this\n - );\n - var params = OpenLayers.Util.applyDefaults({\n - key: this.key,\n - jsonp: this._callbackId,\n - include: "ImageryProviders"\n - }, this.metadataParams);\n - var url = "http://dev.virtualearth.net/REST/v1/Imagery/Metadata/" +\n - this.type + "?" + OpenLayers.Util.getParameterString(params);\n - var script = document.createElement("script");\n - script.type = "text/javascript";\n - script.src = url;\n - script.id = this._callbackId;\n - document.getElementsByTagName("head")[0].appendChild(script);\n - },\n - \n - /**\n - * Method: initLayer\n - *\n - * Sets layer properties according to the metadata provided by the API\n - */\n - initLayer: function() {\n - var res = this.metadata.resourceSets[0].resources[0];\n - var url = res.imageUrl.replace("{quadkey}", "${quadkey}");\n - url = url.replace("{culture}", this.culture);\n - this.url = [];\n - for (var i=0; i<res.imageUrlSubdomains.length; ++i) {\n - this.url.push(url.replace("{subdomain}", res.imageUrlSubdomains[i]));\n - }\n - this.addOptions({\n - maxResolution: Math.min(\n - this.serverResolutions[res.zoomMin],\n - this.maxResolution || Number.POSITIVE_INFINITY\n - ),\n - numZoomLevels: Math.min(\n - res.zoomMax + 1 - res.zoomMin, this.numZoomLevels\n - )\n - }, true);\n - },\n -\n - /**\n - * Method: getURL\n - *\n - * Paramters:\n - * bounds - {<OpenLayers.Bounds>}\n - */\n - getURL: function(bounds) {\n - if (!this.url) {\n - return;\n - }\n - var xyz = this.getXYZ(bounds), x = xyz.x, y = xyz.y, z = xyz.z;\n - var quadDigits = [];\n - for (var i = z; i > 0; --i) {\n - var digit = \'0\';\n - var mask = 1 << (i - 1);\n - if ((x & mask) != 0) {\n - digit++;\n - }\n - if ((y & mask) != 0) {\n - digit++;\n - digit++;\n - }\n - quadDigits.push(digit);\n - }\n - var quadKey = quadDigits.join("");\n - var url = this.selectUrl(\'\' + x + y + z, this.url);\n -\n - return OpenLayers.String.format(url, {\'quadkey\': quadKey});\n - },\n - \n - /**\n - * Method: updateAttribution\n - * Updates the attribution according to the requirements outlined in\n - * http://gis.638310.n2.nabble.com/Bing-imagery-td5789168.html\n - */\n - updateAttribution: function() {\n - var metadata = this.metadata;\n - if (!metadata.resourceSets || !this.map || !this.map.center) {\n - return;\n - }\n - var res = metadata.resourceSets[0].resources[0];\n - var extent = this.map.getExtent().transform(\n - this.map.getProjectionObject(),\n - new OpenLayers.Projection("EPSG:4326")\n - );\n - var providers = res.imageryProviders,\n - zoom = OpenLayers.Util.indexOf(this.serverResolutions,\n - this.getServerResolution()),\n - copyrights = "", provider, i, ii, j, jj, bbox, coverage;\n - for (i=0,ii=providers.length; i<ii; ++i) {\n - provider = providers[i];\n - for (j=0,jj=provider.coverageAreas.length; j<jj; ++j) {\n - coverage = provider.coverageAreas[j];\n - // axis order provided is Y,X\n - bbox = OpenLayers.Bounds.fromArray(coverage.bbox, true);\n - if (extent.intersectsBounds(bbox) &&\n - zoom <= coverage.zoomMax && zoom >= coverage.zoomMin) {\n - copyrights += provider.attribution + " ";\n - }\n - }\n - }\n - this.attribution = OpenLayers.String.format(this.attributionTemplate, {\n - type: this.type.toLowerCase(),\n - logo: metadata.brandLogoUri,\n - copyrights: copyrights\n - });\n - this.map && this.map.events.triggerEvent("changelayer", {\n - layer: this,\n - property: "attribution"\n - });\n - },\n - \n - /**\n - * Method: setMap\n - */\n - setMap: function() {\n - OpenLayers.Layer.XYZ.prototype.setMap.apply(this, arguments);\n - this.updateAttribution();\n - this.map.events.register("moveend", this, this.updateAttribution);\n - },\n - \n - /**\n - * APIMethod: clone\n - * \n - * Parameters:\n - * obj - {Object}\n - * \n - * Returns:\n - * {<OpenLayers.Layer.Bing>} An exact clone of this <OpenLayers.Layer.Bing>\n - */\n - clone: function(obj) {\n - if (obj == null) {\n - obj = new OpenLayers.Layer.Bing(this.options);\n - }\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.XYZ.prototype.clone.apply(this, [obj]);\n - // copy/set any non-init, non-simple values here\n - return obj;\n - },\n - \n - /**\n - * Method: destroy\n - */\n - destroy: function() {\n - this.map &&\n - this.map.events.unregister("moveend", this, this.updateAttribution);\n - OpenLayers.Layer.XYZ.prototype.destroy.apply(this, arguments);\n - },\n - \n - CLASS_NAME: "OpenLayers.Layer.Bing"\n -});\n -\n -/**\n - * Function: OpenLayers.Layer.Bing.processMetadata\n - * This function will be bound to an instance, linked to the global scope with\n - * an id, and called by the JSONP script returned by the API.\n - *\n - * Parameters:\n - * metadata - {Object} metadata as returned by the API\n - */\n -OpenLayers.Layer.Bing.processMetadata = function(metadata) {\n - this.metadata = metadata;\n - this.initLayer();\n - var script = document.getElementById(this._callbackId);\n - script.parentNode.removeChild(script);\n - window[this._callbackId] = undefined; // cannot delete from window in IE\n - delete this._callbackId;\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>10513</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Boxes.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Boxes.js.xml deleted file mode 100644 index a535306a5e29c54fb9e129314dec4160a8b335c9..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Boxes.js.xml +++ /dev/null @@ -1,120 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Boxes.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer.js\n - * @requires OpenLayers/Layer/Markers.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.Boxes\n - * Draw divs as \'boxes\' on the layer. \n - *\n - * Inherits from:\n - * - <OpenLayers.Layer.Markers>\n - */\n -OpenLayers.Layer.Boxes = OpenLayers.Class(OpenLayers.Layer.Markers, {\n -\n - /**\n - * Constructor: OpenLayers.Layer.Boxes\n - *\n - * Parameters:\n - * name - {String} \n - * options - {Object} Hashtable of extra options to tag onto the layer\n - */\n - \n - /**\n - * Method: drawMarker \n - * Calculate the pixel location for the marker, create it, and\n - * add it to the layer\'s div\n - *\n - * Parameters: \n - * marker - {<OpenLayers.Marker.Box>} \n - */\n - drawMarker: function(marker) {\n - var topleft = this.map.getLayerPxFromLonLat({\n - lon: marker.bounds.left,\n - lat: marker.bounds.top\n - });\n - var botright = this.map.getLayerPxFromLonLat({\n - lon: marker.bounds.right,\n - lat: marker.bounds.bottom\n - });\n - if (botright == null || topleft == null) {\n - marker.display(false);\n - } else {\n - var markerDiv = marker.draw(topleft, {\n - w: Math.max(1, botright.x - topleft.x),\n - h: Math.max(1, botright.y - topleft.y)\n - });\n - if (!marker.drawn) {\n - this.div.appendChild(markerDiv);\n - marker.drawn = true;\n - }\n - }\n - },\n -\n -\n - /**\n - * APIMethod: removeMarker \n - * \n - * Parameters:\n - * marker - {<OpenLayers.Marker.Box>} \n - */\n - removeMarker: function(marker) {\n - OpenLayers.Util.removeItem(this.markers, marker);\n - if ((marker.div != null) &&\n - (marker.div.parentNode == this.div) ) {\n - this.div.removeChild(marker.div); \n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.Boxes"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2111</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/EventPane.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/EventPane.js.xml deleted file mode 100644 index db263336bc63cc668b73e4fb0e17b5193137e09e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/EventPane.js.xml +++ /dev/null @@ -1,485 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>EventPane.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer.js\n - * @requires OpenLayers/Util.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.EventPane\n - * Base class for 3rd party layers, providing a DOM element which isolates\n - * the 3rd-party layer from mouse events.\n - * Only used by Google layers.\n - *\n - * Automatically instantiated by the Google constructor, and not usually instantiated directly.\n - *\n - * Create a new event pane layer with the\n - * <OpenLayers.Layer.EventPane> constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Layer>\n - */\n -OpenLayers.Layer.EventPane = OpenLayers.Class(OpenLayers.Layer, {\n - \n - /**\n - * APIProperty: smoothDragPan\n - * {Boolean} smoothDragPan determines whether non-public/internal API\n - * methods are used for better performance while dragging EventPane \n - * layers. When not in sphericalMercator mode, the smoother dragging \n - * doesn\'t actually move north/south directly with the number of \n - * pixels moved, resulting in a slight offset when you drag your mouse \n - * north south with this option on. If this visual disparity bothers \n - * you, you should turn this option off, or use spherical mercator. \n - * Default is on.\n - */\n - smoothDragPan: true,\n -\n - /**\n - * Property: isBaseLayer\n - * {Boolean} EventPaned layers are always base layers, by necessity.\n - */ \n - isBaseLayer: true,\n -\n - /**\n - * APIProperty: isFixed\n - * {Boolean} EventPaned layers are fixed by default.\n - */ \n - isFixed: true,\n -\n - /**\n - * Property: pane\n - * {DOMElement} A reference to the element that controls the events.\n - */\n - pane: null,\n -\n -\n - /**\n - * Property: mapObject\n - * {Object} This is the object which will be used to load the 3rd party library\n - * in the case of the google layer, this will be of type GMap, \n - * in the case of the ve layer, this will be of type VEMap\n - */ \n - mapObject: null,\n -\n -\n - /**\n - * Constructor: OpenLayers.Layer.EventPane\n - * Create a new event pane layer\n - *\n - * Parameters:\n - * name - {String}\n - * options - {Object} Hashtable of extra options to tag onto the layer\n - */\n - initialize: function(name, options) {\n - OpenLayers.Layer.prototype.initialize.apply(this, arguments);\n - if (this.pane == null) {\n - this.pane = OpenLayers.Util.createDiv(this.div.id + "_EventPane");\n - }\n - },\n - \n - /**\n - * APIMethod: destroy\n - * Deconstruct this layer.\n - */\n - destroy: function() {\n - this.mapObject = null;\n - this.pane = null;\n - OpenLayers.Layer.prototype.destroy.apply(this, arguments); \n - },\n -\n - \n - /**\n - * Method: setMap\n - * Set the map property for the layer. This is done through an accessor\n - * so that subclasses can override this and take special action once \n - * they have their map variable set. \n - *\n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - setMap: function(map) {\n - OpenLayers.Layer.prototype.setMap.apply(this, arguments);\n - \n - this.pane.style.zIndex = parseInt(this.div.style.zIndex) + 1;\n - this.pane.style.display = this.div.style.display;\n - this.pane.style.width="100%";\n - this.pane.style.height="100%";\n - if (OpenLayers.BROWSER_NAME == "msie") {\n - this.pane.style.background = \n - "url(" + OpenLayers.Util.getImageLocation("blank.gif") + ")";\n - }\n -\n - if (this.isFixed) {\n - this.map.viewPortDiv.appendChild(this.pane);\n - } else {\n - this.map.layerContainerDiv.appendChild(this.pane);\n - }\n -\n - // once our layer has been added to the map, we can load it\n - this.loadMapObject();\n - \n - // if map didn\'t load, display warning\n - if (this.mapObject == null) {\n - this.loadWarningMessage();\n - }\n - },\n -\n - /**\n - * APIMethod: removeMap\n - * On being removed from the map, we\'ll like to remove the invisible \'pane\'\n - * div that we added to it on creation. \n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - removeMap: function(map) {\n - if (this.pane && this.pane.parentNode) {\n - this.pane.parentNode.removeChild(this.pane);\n - }\n - OpenLayers.Layer.prototype.removeMap.apply(this, arguments);\n - },\n - \n - /**\n - * Method: loadWarningMessage\n - * If we can\'t load the map lib, then display an error message to the \n - * user and tell them where to go for help.\n - * \n - * This function sets up the layout for the warning message. Each 3rd\n - * party layer must implement its own getWarningHTML() function to \n - * provide the actual warning message.\n - */\n - loadWarningMessage:function() {\n -\n - this.div.style.backgroundColor = "darkblue";\n -\n - var viewSize = this.map.getSize();\n - \n - var msgW = Math.min(viewSize.w, 300);\n - var msgH = Math.min(viewSize.h, 200);\n - var size = new OpenLayers.Size(msgW, msgH);\n -\n - var centerPx = new OpenLayers.Pixel(viewSize.w/2, viewSize.h/2);\n -\n - var topLeft = centerPx.add(-size.w/2, -size.h/2); \n -\n - var div = OpenLayers.Util.createDiv(this.name + "_warning", \n - topLeft, \n - size,\n - null,\n - null,\n - null,\n - "auto");\n -\n - div.style.padding = "7px";\n - div.style.backgroundColor = "yellow";\n -\n - div.innerHTML = this.getWarningHTML();\n - this.div.appendChild(div);\n - },\n - \n - /** \n - * Method: getWarningHTML\n - * To be implemented by subclasses.\n - * \n - * Returns:\n - * {String} String with information on why layer is broken, how to get\n - * it working.\n - */\n - getWarningHTML:function() {\n - //should be implemented by subclasses\n - return "";\n - },\n - \n - /**\n - * Method: display\n - * Set the display on the pane\n - *\n - * Parameters:\n - * display - {Boolean}\n - */\n - display: function(display) {\n - OpenLayers.Layer.prototype.display.apply(this, arguments);\n - this.pane.style.display = this.div.style.display;\n - },\n - \n - /**\n - * Method: setZIndex\n - * Set the z-index order for the pane.\n - * \n - * Parameters:\n - * zIndex - {int}\n - */\n - setZIndex: function (zIndex) {\n - OpenLayers.Layer.prototype.setZIndex.apply(this, arguments);\n - this.pane.style.zIndex = parseInt(this.div.style.zIndex) + 1;\n - },\n - \n - /**\n - * Method: moveByPx\n - * Move the layer based on pixel vector. To be implemented by subclasses.\n - *\n - * Parameters:\n - * dx - {Number} The x coord of the displacement vector.\n - * dy - {Number} The y coord of the displacement vector.\n - */\n - moveByPx: function(dx, dy) {\n - OpenLayers.Layer.prototype.moveByPx.apply(this, arguments);\n - \n - if (this.dragPanMapObject) {\n - this.dragPanMapObject(dx, -dy);\n - } else {\n - this.moveTo(this.map.getCachedCenter());\n - }\n - },\n -\n - /**\n - * Method: moveTo\n - * Handle calls to move the layer.\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - * zoomChanged - {Boolean}\n - * dragging - {Boolean}\n - */\n - moveTo:function(bounds, zoomChanged, dragging) {\n - OpenLayers.Layer.prototype.moveTo.apply(this, arguments);\n -\n - if (this.mapObject != null) {\n -\n - var newCenter = this.map.getCenter();\n - var newZoom = this.map.getZoom();\n -\n - if (newCenter != null) {\n -\n - var moOldCenter = this.getMapObjectCenter();\n - var oldCenter = this.getOLLonLatFromMapObjectLonLat(moOldCenter);\n -\n - var moOldZoom = this.getMapObjectZoom();\n - var oldZoom= this.getOLZoomFromMapObjectZoom(moOldZoom);\n -\n - if (!(newCenter.equals(oldCenter)) || newZoom != oldZoom) {\n -\n - if (!zoomChanged && oldCenter && this.dragPanMapObject && \n - this.smoothDragPan) {\n - var oldPx = this.map.getViewPortPxFromLonLat(oldCenter);\n - var newPx = this.map.getViewPortPxFromLonLat(newCenter);\n - this.dragPanMapObject(newPx.x-oldPx.x, oldPx.y-newPx.y);\n - } else {\n - var center = this.getMapObjectLonLatFromOLLonLat(newCenter);\n - var zoom = this.getMapObjectZoomFromOLZoom(newZoom);\n - this.setMapObjectCenter(center, zoom, dragging);\n - }\n - }\n - }\n - }\n - },\n -\n -\n - /********************************************************/\n - /* */\n - /* Baselayer Functions */\n - /* */\n - /********************************************************/\n -\n - /**\n - * Method: getLonLatFromViewPortPx\n - * Get a map location from a pixel location\n - * \n - * Parameters:\n - * viewPortPx - {<OpenLayers.Pixel>}\n - *\n - * Returns:\n - * {<OpenLayers.LonLat>} An OpenLayers.LonLat which is the passed-in view\n - * port OpenLayers.Pixel, translated into lon/lat by map lib\n - * If the map lib is not loaded or not centered, returns null\n - */\n - getLonLatFromViewPortPx: function (viewPortPx) {\n - var lonlat = null;\n - if ( (this.mapObject != null) && \n - (this.getMapObjectCenter() != null) ) {\n - var moPixel = this.getMapObjectPixelFromOLPixel(viewPortPx);\n - var moLonLat = this.getMapObjectLonLatFromMapObjectPixel(moPixel);\n - lonlat = this.getOLLonLatFromMapObjectLonLat(moLonLat);\n - }\n - return lonlat;\n - },\n -\n - \n - /**\n - * Method: getViewPortPxFromLonLat\n - * Get a pixel location from a map location\n - *\n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>}\n - *\n - * Returns:\n - * {<OpenLayers.Pixel>} An OpenLayers.Pixel which is the passed-in\n - * OpenLayers.LonLat, translated into view port pixels by map lib\n - * If map lib is not loaded or not centered, returns null\n - */\n - getViewPortPxFromLonLat: function (lonlat) {\n - var viewPortPx = null;\n - if ( (this.mapObject != null) && \n - (this.getMapObjectCenter() != null) ) {\n -\n - var moLonLat = this.getMapObjectLonLatFromOLLonLat(lonlat);\n - var moPixel = this.getMapObjectPixelFromMapObjectLonLat(moLonLat);\n - \n - viewPortPx = this.getOLPixelFromMapObjectPixel(moPixel);\n - }\n - return viewPortPx;\n - },\n -\n - /********************************************************/\n - /* */\n - /* Translation Functions */\n - /* */\n - /* The following functions translate Map Object and */\n - /* OL formats for Pixel, LonLat */\n - /* */\n - /********************************************************/\n -\n - //\n - // TRANSLATION: MapObject LatLng <-> OpenLayers.LonLat\n - //\n -\n - /**\n - * Method: getOLLonLatFromMapObjectLonLat\n - * Get an OL style map location from a 3rd party style map location\n - *\n - * Parameters\n - * moLonLat - {Object}\n - * \n - * Returns:\n - * {<OpenLayers.LonLat>} An OpenLayers.LonLat, translated from the passed in \n - * MapObject LonLat\n - * Returns null if null value is passed in\n - */\n - getOLLonLatFromMapObjectLonLat: function(moLonLat) {\n - var olLonLat = null;\n - if (moLonLat != null) {\n - var lon = this.getLongitudeFromMapObjectLonLat(moLonLat);\n - var lat = this.getLatitudeFromMapObjectLonLat(moLonLat);\n - olLonLat = new OpenLayers.LonLat(lon, lat);\n - }\n - return olLonLat;\n - },\n -\n - /**\n - * Method: getMapObjectLonLatFromOLLonLat\n - * Get a 3rd party map location from an OL map location.\n - *\n - * Parameters:\n - * olLonLat - {<OpenLayers.LonLat>}\n - * \n - * Returns:\n - * {Object} A MapObject LonLat, translated from the passed in \n - * OpenLayers.LonLat\n - * Returns null if null value is passed in\n - */\n - getMapObjectLonLatFromOLLonLat: function(olLonLat) {\n - var moLatLng = null;\n - if (olLonLat != null) {\n - moLatLng = this.getMapObjectLonLatFromLonLat(olLonLat.lon,\n - olLonLat.lat);\n - }\n - return moLatLng;\n - },\n -\n -\n - //\n - // TRANSLATION: MapObject Pixel <-> OpenLayers.Pixel\n - //\n -\n - /**\n - * Method: getOLPixelFromMapObjectPixel\n - * Get an OL pixel location from a 3rd party pixel location.\n - *\n - * Parameters:\n - * moPixel - {Object}\n - * \n - * Returns:\n - * {<OpenLayers.Pixel>} An OpenLayers.Pixel, translated from the passed in \n - * MapObject Pixel\n - * Returns null if null value is passed in\n - */\n - getOLPixelFromMapObjectPixel: function(moPixel) {\n - var olPixel = null;\n - if (moPixel != null) {\n - var x = this.getXFromMapObjectPixel(moPixel);\n - var y = this.getYFromMapObjectPixel(moPixel);\n - olPixel = new OpenLayers.Pixel(x, y);\n - }\n - return olPixel;\n - },\n -\n - /**\n - * Method: getMapObjectPixelFromOLPixel\n - * Get a 3rd party pixel location from an OL pixel location\n - *\n - * Parameters:\n - * olPixel - {<OpenLayers.Pixel>}\n - * \n - * Returns:\n - * {Object} A MapObject Pixel, translated from the passed in \n - * OpenLayers.Pixel\n - * Returns null if null value is passed in\n - */\n - getMapObjectPixelFromOLPixel: function(olPixel) {\n - var moPixel = null;\n - if (olPixel != null) {\n - moPixel = this.getMapObjectPixelFromXY(olPixel.x, olPixel.y);\n - }\n - return moPixel;\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.EventPane"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>14272</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/FixedZoomLevels.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/FixedZoomLevels.js.xml deleted file mode 100644 index 267e1d8e9e4f26318535f4b11b2b4cc587cac0a2..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/FixedZoomLevels.js.xml +++ /dev/null @@ -1,363 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>FixedZoomLevels.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Layer.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.FixedZoomLevels\n - * Some Layers will already have established zoom levels (like google \n - * or ve). Instead of trying to determine them and populate a resolutions[]\n - * Array with those values, we will hijack the resolution functionality\n - * here.\n - * \n - * When you subclass FixedZoomLevels: \n - * \n - * The initResolutions() call gets nullified, meaning no resolutions[] array \n - * is set up. Which would be a big problem getResolution() in Layer, since \n - * it merely takes map.zoom and indexes into resolutions[]... but....\n - * \n - * The getResolution() call is also overridden. Instead of using the \n - * resolutions[] array, we simply calculate the current resolution based\n - * on the current extent and the current map size. But how will we be able\n - * to calculate the current extent without knowing the resolution...?\n - * \n - * The getExtent() function is also overridden. Instead of calculating extent\n - * based on the center point and the current resolution, we instead \n - * calculate the extent by getting the lonlats at the top-left and \n - * bottom-right by using the getLonLatFromViewPortPx() translation function,\n - * taken from the pixel locations (0,0) and the size of the map. But how \n - * will we be able to do lonlat-px translation without resolution....?\n - * \n - * The getZoomForResolution() method is overridden. Instead of indexing into\n - * the resolutions[] array, we call OpenLayers.Layer.getExent(), passing in\n - * the desired resolution. With this extent, we then call getZoomForExtent() \n - * \n - * \n - * Whenever you implement a layer using OpenLayers.Layer.FixedZoomLevels, \n - * it is your responsibility to provide the following three functions:\n - * \n - * - getLonLatFromViewPortPx\n - * - getViewPortPxFromLonLat\n - * - getZoomForExtent\n - * \n - * ...those three functions should generally be provided by any reasonable \n - * API that you might be working from.\n - *\n - */\n -OpenLayers.Layer.FixedZoomLevels = OpenLayers.Class({\n - \n - /********************************************************/\n - /* */\n - /* Baselayer Functions */\n - /* */\n - /* The following functions must all be implemented */\n - /* by all base layers */\n - /* */\n - /********************************************************/\n - \n - /**\n - * Constructor: OpenLayers.Layer.FixedZoomLevels\n - * Create a new fixed zoom levels layer.\n - */\n - initialize: function() {\n - //this class is only just to add the following functions... \n - // nothing to actually do here... but it is probably a good\n - // idea to have layers that use these functions call this \n - // inititalize() anyways, in case at some point we decide we \n - // do want to put some functionality or state in here. \n - },\n - \n - /**\n - * Method: initResolutions\n - * Populate the resolutions array\n - */\n - initResolutions: function() {\n -\n - var props = [\'minZoomLevel\', \'maxZoomLevel\', \'numZoomLevels\'];\n - \n - for(var i=0, len=props.length; i<len; i++) {\n - var property = props[i];\n - this[property] = (this.options[property] != null) \n - ? this.options[property] \n - : this.map[property];\n - }\n -\n - if ( (this.minZoomLevel == null) ||\n - (this.minZoomLevel < this.MIN_ZOOM_LEVEL) ){\n - this.minZoomLevel = this.MIN_ZOOM_LEVEL;\n - } \n -\n - //\n - // At this point, we know what the minimum desired zoom level is, and\n - // we must calculate the total number of zoom levels. \n - // \n - // Because we allow for the setting of either the \'numZoomLevels\'\n - // or the \'maxZoomLevel\' properties... on either the layer or the \n - // map, we have to define some rules to see which we take into\n - // account first in this calculation. \n - //\n - // The following is the precedence list for these properties:\n - // \n - // (1) numZoomLevels set on layer\n - // (2) maxZoomLevel set on layer\n - // (3) numZoomLevels set on map\n - // (4) maxZoomLevel set on map*\n - // (5) none of the above*\n - //\n - // *Note that options (4) and (5) are only possible if the user \n - // _explicitly_ sets the \'numZoomLevels\' property on the map to \n - // null, since it is set by default to 16. \n - //\n -\n - //\n - // Note to future: In 3.0, I think we should remove the default \n - // value of 16 for map.numZoomLevels. Rather, I think that value \n - // should be set as a default on the Layer.WMS class. If someone\n - // creates a 3rd party layer and does not specify any \'minZoomLevel\', \n - // \'maxZoomLevel\', or \'numZoomLevels\', and has not explicitly \n - // specified any of those on the map object either.. then I think\n - // it is fair to say that s/he wants all the zoom levels available.\n - // \n - // By making map.numZoomLevels *null* by default, that will be the \n - // case. As it is, I don\'t feel comfortable changing that right now\n - // as it would be a glaring API change and actually would probably\n - // break many peoples\' codes. \n - //\n -\n - //the number of zoom levels we\'d like to have.\n - var desiredZoomLevels;\n -\n - //this is the maximum number of zoom levels the layer will allow, \n - // given the specified starting minimum zoom level.\n - var limitZoomLevels = this.MAX_ZOOM_LEVEL - this.minZoomLevel + 1;\n -\n - if ( ((this.options.numZoomLevels == null) && \n - (this.options.maxZoomLevel != null)) // (2)\n - ||\n - ((this.numZoomLevels == null) &&\n - (this.maxZoomLevel != null)) // (4)\n - ) {\n - //calculate based on specified maxZoomLevel (on layer or map)\n - desiredZoomLevels = this.maxZoomLevel - this.minZoomLevel + 1;\n - } else {\n - //calculate based on specified numZoomLevels (on layer or map)\n - // this covers cases (1) and (3)\n - desiredZoomLevels = this.numZoomLevels;\n - }\n -\n - if (desiredZoomLevels != null) {\n - //Now that we know what we would *like* the number of zoom levels\n - // to be, based on layer or map options, we have to make sure that\n - // it does not conflict with the actual limit, as specified by \n - // the constants on the layer itself (and calculated into the\n - // \'limitZoomLevels\' variable). \n - this.numZoomLevels = Math.min(desiredZoomLevels, limitZoomLevels);\n - } else {\n - // case (5) -- neither \'numZoomLevels\' not \'maxZoomLevel\' was \n - // set on either the layer or the map. So we just use the \n - // maximum limit as calculated by the layer\'s constants.\n - this.numZoomLevels = limitZoomLevels;\n - }\n -\n - //now that the \'numZoomLevels\' is appropriately, safely set, \n - // we go back and re-calculate the \'maxZoomLevel\'.\n - this.maxZoomLevel = this.minZoomLevel + this.numZoomLevels - 1;\n -\n - if (this.RESOLUTIONS != null) {\n - var resolutionsIndex = 0;\n - this.resolutions = [];\n - for(var i= this.minZoomLevel; i <= this.maxZoomLevel; i++) {\n - this.resolutions[resolutionsIndex++] = this.RESOLUTIONS[i]; \n - }\n - this.maxResolution = this.resolutions[0];\n - this.minResolution = this.resolutions[this.resolutions.length - 1];\n - } \n - },\n - \n - /**\n - * APIMethod: getResolution\n - * Get the current map resolution\n - * \n - * Returns:\n - * {Float} Map units per Pixel\n - */\n - getResolution: function() {\n -\n - if (this.resolutions != null) {\n - return OpenLayers.Layer.prototype.getResolution.apply(this, arguments);\n - } else {\n - var resolution = null;\n - \n - var viewSize = this.map.getSize();\n - var extent = this.getExtent();\n - \n - if ((viewSize != null) && (extent != null)) {\n - resolution = Math.max( extent.getWidth() / viewSize.w,\n - extent.getHeight() / viewSize.h );\n - }\n - return resolution;\n - }\n - },\n -\n - /**\n - * APIMethod: getExtent\n - * Calculates using px-> lonlat translation functions on tl and br \n - * corners of viewport\n - * \n - * Returns:\n - * {<OpenLayers.Bounds>} A Bounds object which represents the lon/lat \n - * bounds of the current viewPort.\n - */\n - getExtent: function () {\n - var size = this.map.getSize();\n - var tl = this.getLonLatFromViewPortPx({\n - x: 0, y: 0\n - });\n - var br = this.getLonLatFromViewPortPx({\n - x: size.w, y: size.h\n - });\n - \n - if ((tl != null) && (br != null)) {\n - return new OpenLayers.Bounds(tl.lon, br.lat, br.lon, tl.lat);\n - } else {\n - return null;\n - }\n - },\n -\n - /**\n - * Method: getZoomForResolution\n - * Get the zoom level for a given resolution\n - *\n - * Parameters:\n - * resolution - {Float}\n - *\n - * Returns:\n - * {Integer} A suitable zoom level for the specified resolution.\n - * If no baselayer is set, returns null.\n - */\n - getZoomForResolution: function(resolution) {\n - \n - if (this.resolutions != null) {\n - return OpenLayers.Layer.prototype.getZoomForResolution.apply(this, arguments);\n - } else {\n - var extent = OpenLayers.Layer.prototype.getExtent.apply(this, []);\n - return this.getZoomForExtent(extent);\n - }\n - },\n -\n -\n -\n - \n - /********************************************************/\n - /* */\n - /* Translation Functions */\n - /* */\n - /* The following functions translate GMaps and OL */ \n - /* formats for Pixel, LonLat, Bounds, and Zoom */\n - /* */\n - /********************************************************/\n - \n - \n - //\n - // TRANSLATION: MapObject Zoom <-> OpenLayers Zoom\n - //\n - \n - /**\n - * Method: getOLZoomFromMapObjectZoom\n - * Get the OL zoom index from the map object zoom level\n - *\n - * Parameters:\n - * moZoom - {Integer}\n - * \n - * Returns:\n - * {Integer} An OpenLayers Zoom level, translated from the passed in zoom\n - * Returns null if null value is passed in\n - */\n - getOLZoomFromMapObjectZoom: function(moZoom) {\n - var zoom = null;\n - if (moZoom != null) {\n - zoom = moZoom - this.minZoomLevel;\n - if (this.map.baseLayer !== this) {\n - zoom = this.map.baseLayer.getZoomForResolution(\n - this.getResolutionForZoom(zoom)\n - );\n - }\n - }\n - return zoom;\n - },\n - \n - /**\n - * Method: getMapObjectZoomFromOLZoom\n - * Get the map object zoom level from the OL zoom level\n - *\n - * Parameters:\n - * olZoom - {Integer}\n - * \n - * Returns:\n - * {Integer} A MapObject level, translated from the passed in olZoom\n - * Returns null if null value is passed in\n - */\n - getMapObjectZoomFromOLZoom: function(olZoom) {\n - var zoom = null; \n - if (olZoom != null) {\n - zoom = olZoom + this.minZoomLevel;\n - if (this.map.baseLayer !== this) {\n - zoom = this.getZoomForResolution(\n - this.map.baseLayer.getResolutionForZoom(zoom)\n - );\n - }\n - }\n - return zoom;\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.FixedZoomLevels"\n -});\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>12249</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/GeoRSS.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/GeoRSS.js.xml deleted file mode 100644 index caacd47c1ad94bf647d26de30fac2a1b7b58a154..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/GeoRSS.js.xml +++ /dev/null @@ -1,309 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>GeoRSS.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer/Markers.js\n - * @requires OpenLayers/Request/XMLHttpRequest.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.GeoRSS\n - * Add GeoRSS Point features to your map. \n - * \n - * Inherits from:\n - * - <OpenLayers.Layer.Markers>\n - */\n -OpenLayers.Layer.GeoRSS = OpenLayers.Class(OpenLayers.Layer.Markers, {\n -\n - /** \n - * Property: location \n - * {String} store url of text file \n - */\n - location: null,\n -\n - /** \n - * Property: features \n - * {Array(<OpenLayers.Feature>)} \n - */\n - features: null,\n - \n - /**\n - * APIProperty: formatOptions\n - * {Object} Hash of options which should be passed to the format when it is\n - * created. Must be passed in the constructor.\n - */\n - formatOptions: null, \n -\n - /** \n - * Property: selectedFeature \n - * {<OpenLayers.Feature>} \n - */\n - selectedFeature: null,\n -\n - /** \n - * APIProperty: icon \n - * {<OpenLayers.Icon>}. This determines the Icon to be used on the map\n - * for this GeoRSS layer.\n - */\n - icon: null,\n -\n - /**\n - * APIProperty: popupSize\n - * {<OpenLayers.Size>} This determines the size of GeoRSS popups. If \n - * not provided, defaults to 250px by 120px. \n - */\n - popupSize: null, \n - \n - /** \n - * APIProperty: useFeedTitle \n - * {Boolean} Set layer.name to the first <title> element in the feed. Default is true. \n - */\n - useFeedTitle: true,\n - \n - /**\n - * Constructor: OpenLayers.Layer.GeoRSS\n - * Create a GeoRSS Layer.\n - *\n - * Parameters:\n - * name - {String} \n - * location - {String} \n - * options - {Object}\n - */\n - initialize: function(name, location, options) {\n - OpenLayers.Layer.Markers.prototype.initialize.apply(this, [name, options]);\n - this.location = location;\n - this.features = [];\n - },\n -\n - /**\n - * Method: destroy \n - */\n - destroy: function() {\n - // Warning: Layer.Markers.destroy() must be called prior to calling\n - // clearFeatures() here, otherwise we leak memory. Indeed, if\n - // Layer.Markers.destroy() is called after clearFeatures(), it won\'t be\n - // able to remove the marker image elements from the layer\'s div since\n - // the markers will have been destroyed by clearFeatures().\n - OpenLayers.Layer.Markers.prototype.destroy.apply(this, arguments);\n - this.clearFeatures();\n - this.features = null;\n - },\n -\n - /**\n - * Method: loadRSS\n - * Start the load of the RSS data. Don\'t do this when we first add the layer,\n - * since we may not be visible at any point, and it would therefore be a waste.\n - */\n - loadRSS: function() {\n - if (!this.loaded) {\n - this.events.triggerEvent("loadstart");\n - OpenLayers.Request.GET({\n - url: this.location,\n - success: this.parseData,\n - scope: this\n - });\n - this.loaded = true;\n - } \n - }, \n - \n - /**\n - * Method: moveTo\n - * If layer is visible and RSS has not been loaded, load RSS. \n - * \n - * Parameters:\n - * bounds - {Object} \n - * zoomChanged - {Object} \n - * minor - {Object} \n - */\n - moveTo:function(bounds, zoomChanged, minor) {\n - OpenLayers.Layer.Markers.prototype.moveTo.apply(this, arguments);\n - if(this.visibility && !this.loaded){\n - this.loadRSS();\n - }\n - },\n - \n - /**\n - * Method: parseData\n - * Parse the data returned from the Events call.\n - *\n - * Parameters:\n - * ajaxRequest - {<OpenLayers.Request.XMLHttpRequest>} \n - */\n - parseData: function(ajaxRequest) {\n - var doc = ajaxRequest.responseXML;\n - if (!doc || !doc.documentElement) {\n - doc = OpenLayers.Format.XML.prototype.read(ajaxRequest.responseText);\n - }\n - \n - if (this.useFeedTitle) {\n - var name = null;\n - try {\n - name = doc.getElementsByTagNameNS(\'*\', \'title\')[0].firstChild.nodeValue;\n - }\n - catch (e) {\n - name = doc.getElementsByTagName(\'title\')[0].firstChild.nodeValue;\n - }\n - if (name) {\n - this.setName(name);\n - } \n - }\n - \n - var options = {};\n - \n - OpenLayers.Util.extend(options, this.formatOptions);\n - \n - if (this.map && !this.projection.equals(this.map.getProjectionObject())) {\n - options.externalProjection = this.projection;\n - options.internalProjection = this.map.getProjectionObject();\n - } \n - \n - var format = new OpenLayers.Format.GeoRSS(options);\n - var features = format.read(doc);\n - \n - for (var i=0, len=features.length; i<len; i++) {\n - var data = {};\n - var feature = features[i];\n - \n - // we don\'t support features with no geometry in the GeoRSS\n - // layer at this time. \n - if (!feature.geometry) {\n - continue;\n - } \n - \n - var title = feature.attributes.title ? \n - feature.attributes.title : "Untitled";\n - \n - var description = feature.attributes.description ? \n - feature.attributes.description : "No description.";\n - \n - var link = feature.attributes.link ? feature.attributes.link : "";\n -\n - var location = feature.geometry.getBounds().getCenterLonLat();\n - \n - \n - data.icon = this.icon == null ? \n - OpenLayers.Marker.defaultIcon() : \n - this.icon.clone();\n - \n - data.popupSize = this.popupSize ? \n - this.popupSize.clone() :\n - new OpenLayers.Size(250, 120);\n - \n - if (title || description) {\n - // we have supplemental data, store them.\n - data.title = title;\n - data.description = description;\n - \n - var contentHTML = \'<div class="olLayerGeoRSSClose">[x]</div>\'; \n - contentHTML += \'<div class="olLayerGeoRSSTitle">\';\n - if (link) {\n - contentHTML += \'<a class="link" href="\'+link+\'" target="_blank">\';\n - }\n - contentHTML += title;\n - if (link) {\n - contentHTML += \'</a>\';\n - }\n - contentHTML += \'</div>\';\n - contentHTML += \'<div style="" class="olLayerGeoRSSDescription">\';\n - contentHTML += description;\n - contentHTML += \'</div>\';\n - data[\'popupContentHTML\'] = contentHTML; \n - }\n - var feature = new OpenLayers.Feature(this, location, data);\n - this.features.push(feature);\n - var marker = feature.createMarker();\n - marker.events.register(\'click\', feature, this.markerClick);\n - this.addMarker(marker);\n - }\n - this.events.triggerEvent("loadend");\n - },\n - \n - /**\n - * Method: markerClick\n - *\n - * Parameters:\n - * evt - {Event} \n - */\n - markerClick: function(evt) {\n - var sameMarkerClicked = (this == this.layer.selectedFeature);\n - this.layer.selectedFeature = (!sameMarkerClicked) ? this : null;\n - for(var i=0, len=this.layer.map.popups.length; i<len; i++) {\n - this.layer.map.removePopup(this.layer.map.popups[i]);\n - }\n - if (!sameMarkerClicked) {\n - var popup = this.createPopup();\n - OpenLayers.Event.observe(popup.div, "click",\n - OpenLayers.Function.bind(function() { \n - for(var i=0, len=this.layer.map.popups.length; i<len; i++) { \n - this.layer.map.removePopup(this.layer.map.popups[i]); \n - }\n - }, this)\n - );\n - this.layer.map.addPopup(popup); \n - }\n - OpenLayers.Event.stop(evt);\n - },\n -\n - /**\n - * Method: clearFeatures\n - * Destroy all features in this layer.\n - */\n - clearFeatures: function() {\n - if (this.features != null) {\n - while(this.features.length > 0) {\n - var feature = this.features[0];\n - OpenLayers.Util.removeItem(this.features, feature);\n - feature.destroy();\n - }\n - } \n - },\n - \n - CLASS_NAME: "OpenLayers.Layer.GeoRSS"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>8593</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Google.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Google.js.xml deleted file mode 100644 index 8e2f1114e047d0db20b47101f6c5f4047e1fb56b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Google.js.xml +++ /dev/null @@ -1,849 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Google.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer/SphericalMercator.js\n - * @requires OpenLayers/Layer/EventPane.js\n - * @requires OpenLayers/Layer/FixedZoomLevels.js\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.Google\n - * \n - * Provides a wrapper for Google\'s Maps API\n - * Normally the Terms of Use for this API do not allow wrapping, but Google\n - * have provided written consent to OpenLayers for this - see email in \n - * http://osgeo-org.1560.n6.nabble.com/Google-Maps-API-Terms-of-Use-changes-tp4910013p4911981.html\n - * \n - * Inherits from:\n - * - <OpenLayers.Layer.SphericalMercator>\n - * - <OpenLayers.Layer.EventPane>\n - * - <OpenLayers.Layer.FixedZoomLevels>\n - */\n -OpenLayers.Layer.Google = OpenLayers.Class(\n - OpenLayers.Layer.EventPane, \n - OpenLayers.Layer.FixedZoomLevels, {\n - \n - /** \n - * Constant: MIN_ZOOM_LEVEL\n - * {Integer} 0 \n - */\n - MIN_ZOOM_LEVEL: 0,\n - \n - /** \n - * Constant: MAX_ZOOM_LEVEL\n - * {Integer} 21\n - */\n - MAX_ZOOM_LEVEL: 21,\n -\n - /** \n - * Constant: RESOLUTIONS\n - * {Array(Float)} Hardcode these resolutions so that they are more closely\n - * tied with the standard wms projection\n - */\n - RESOLUTIONS: [\n - 1.40625, \n - 0.703125, \n - 0.3515625, \n - 0.17578125, \n - 0.087890625, \n - 0.0439453125,\n - 0.02197265625, \n - 0.010986328125, \n - 0.0054931640625, \n - 0.00274658203125,\n - 0.001373291015625, \n - 0.0006866455078125, \n - 0.00034332275390625,\n - 0.000171661376953125, \n - 0.0000858306884765625, \n - 0.00004291534423828125,\n - 0.00002145767211914062, \n - 0.00001072883605957031,\n - 0.00000536441802978515, \n - 0.00000268220901489257,\n - 0.0000013411045074462891,\n - 0.00000067055225372314453\n - ],\n -\n - /**\n - * APIProperty: type\n - * {GMapType}\n - */\n - type: null,\n -\n - /**\n - * APIProperty: wrapDateLine\n - * {Boolean} Allow user to pan forever east/west. Default is true. \n - * Setting this to false only restricts panning if \n - * <sphericalMercator> is true. \n - */\n - wrapDateLine: true,\n -\n - /**\n - * APIProperty: sphericalMercator\n - * {Boolean} Should the map act as a mercator-projected map? This will\n - * cause all interactions with the map to be in the actual map \n - * projection, which allows support for vector drawing, overlaying \n - * other maps, etc. \n - */\n - sphericalMercator: false, \n - \n - /**\n - * Property: version\n - * {Number} The version of the Google Maps API\n - */\n - version: null,\n -\n - /** \n - * Constructor: OpenLayers.Layer.Google\n - * \n - * Parameters:\n - * name - {String} A name for the layer.\n - * options - {Object} An optional object whose properties will be set\n - * on the layer.\n - */\n - initialize: function(name, options) {\n - options = options || {};\n - if(!options.version) {\n - options.version = typeof GMap2 === "function" ? "2" : "3";\n - }\n - var mixin = OpenLayers.Layer.Google["v" +\n - options.version.replace(/\\./g, "_")];\n - if (mixin) {\n - OpenLayers.Util.applyDefaults(options, mixin);\n - } else {\n - throw "Unsupported Google Maps API version: " + options.version;\n - }\n -\n - OpenLayers.Util.applyDefaults(options, mixin.DEFAULTS);\n - if (options.maxExtent) {\n - options.maxExtent = options.maxExtent.clone();\n - }\n -\n - OpenLayers.Layer.EventPane.prototype.initialize.apply(this,\n - [name, options]);\n - OpenLayers.Layer.FixedZoomLevels.prototype.initialize.apply(this, \n - [name, options]);\n -\n - if (this.sphericalMercator) {\n - OpenLayers.Util.extend(this, OpenLayers.Layer.SphericalMercator);\n - this.initMercatorParameters();\n - } \n - },\n -\n - /**\n - * Method: clone\n - * Create a clone of this layer\n - *\n - * Returns:\n - * {<OpenLayers.Layer.Google>} An exact clone of this layer\n - */\n - clone: function() {\n - /**\n - * This method isn\'t intended to be called by a subclass and it\n - * doesn\'t call the same method on the superclass. We don\'t call\n - * the super\'s clone because we don\'t want properties that are set\n - * on this layer after initialize (i.e. this.mapObject etc.).\n - */\n - return new OpenLayers.Layer.Google(\n - this.name, this.getOptions()\n - );\n - },\n -\n - /**\n - * APIMethod: setVisibility\n - * Set the visibility flag for the layer and hide/show & redraw \n - * accordingly. Fire event unless otherwise specified\n - * \n - * Note that visibility is no longer simply whether or not the layer\'s\n - * style.display is set to "block". Now we store a \'visibility\' state \n - * property on the layer class, this allows us to remember whether or \n - * not we *desire* for a layer to be visible. In the case where the \n - * map\'s resolution is out of the layer\'s range, this desire may be \n - * subverted.\n - * \n - * Parameters:\n - * visible - {Boolean} Display the layer (if in range)\n - */\n - setVisibility: function(visible) {\n - // sharing a map container, opacity has to be set per layer\n - var opacity = this.opacity == null ? 1 : this.opacity;\n - OpenLayers.Layer.EventPane.prototype.setVisibility.apply(this, arguments);\n - this.setOpacity(opacity);\n - },\n - \n - /** \n - * APIMethod: display\n - * Hide or show the Layer\n - * \n - * Parameters:\n - * visible - {Boolean}\n - */\n - display: function(visible) {\n - if (!this._dragging) {\n - this.setGMapVisibility(visible);\n - }\n - OpenLayers.Layer.EventPane.prototype.display.apply(this, arguments);\n - },\n - \n - /**\n - * Method: moveTo\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - * zoomChanged - {Boolean} Tells when zoom has changed, as layers have to\n - * do some init work in that case.\n - * dragging - {Boolean}\n - */\n - moveTo: function(bounds, zoomChanged, dragging) {\n - this._dragging = dragging;\n - OpenLayers.Layer.EventPane.prototype.moveTo.apply(this, arguments);\n - delete this._dragging;\n - },\n - \n - /**\n - * APIMethod: setOpacity\n - * Sets the opacity for the entire layer (all images)\n - * \n - * Parameters:\n - * opacity - {Float}\n - */\n - setOpacity: function(opacity) {\n - if (opacity !== this.opacity) {\n - if (this.map != null) {\n - this.map.events.triggerEvent("changelayer", {\n - layer: this,\n - property: "opacity"\n - });\n - }\n - this.opacity = opacity;\n - }\n - // Though this layer\'s opacity may not change, we\'re sharing a container\n - // and need to update the opacity for the entire container.\n - if (this.getVisibility()) {\n - var container = this.getMapContainer();\n - OpenLayers.Util.modifyDOMElement(\n - container, null, null, null, null, null, null, opacity\n - );\n - }\n - },\n -\n - /**\n - * APIMethod: destroy\n - * Clean up this layer.\n - */\n - destroy: function() {\n - /**\n - * We have to override this method because the event pane destroy\n - * deletes the mapObject reference before removing this layer from\n - * the map.\n - */\n - if (this.map) {\n - this.setGMapVisibility(false);\n - var cache = OpenLayers.Layer.Google.cache[this.map.id];\n - if (cache && cache.count <= 1) {\n - this.removeGMapElements();\n - } \n - }\n - OpenLayers.Layer.EventPane.prototype.destroy.apply(this, arguments);\n - },\n - \n - /**\n - * Method: removeGMapElements\n - * Remove all elements added to the dom. This should only be called if\n - * this is the last of the Google layers for the given map.\n - */\n - removeGMapElements: function() {\n - var cache = OpenLayers.Layer.Google.cache[this.map.id];\n - if (cache) {\n - // remove shared elements from dom\n - var container = this.mapObject && this.getMapContainer(); \n - if (container && container.parentNode) {\n - container.parentNode.removeChild(container);\n - }\n - var termsOfUse = cache.termsOfUse;\n - if (termsOfUse && termsOfUse.parentNode) {\n - termsOfUse.parentNode.removeChild(termsOfUse);\n - }\n - var poweredBy = cache.poweredBy;\n - if (poweredBy && poweredBy.parentNode) {\n - poweredBy.parentNode.removeChild(poweredBy);\n - }\n - }\n - },\n -\n - /**\n - * APIMethod: removeMap\n - * On being removed from the map, also remove termsOfUse and poweredBy divs\n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - removeMap: function(map) {\n - // hide layer before removing\n - if (this.visibility && this.mapObject) {\n - this.setGMapVisibility(false);\n - }\n - // check to see if last Google layer in this map\n - var cache = OpenLayers.Layer.Google.cache[map.id];\n - if (cache) {\n - if (cache.count <= 1) {\n - this.removeGMapElements();\n - delete OpenLayers.Layer.Google.cache[map.id];\n - } else {\n - // decrement the layer count\n - --cache.count;\n - }\n - }\n - // remove references to gmap elements\n - delete this.termsOfUse;\n - delete this.poweredBy;\n - delete this.mapObject;\n - delete this.dragObject;\n - OpenLayers.Layer.EventPane.prototype.removeMap.apply(this, arguments);\n - },\n - \n - //\n - // TRANSLATION: MapObject Bounds <-> OpenLayers.Bounds\n - //\n -\n - /**\n - * APIMethod: getOLBoundsFromMapObjectBounds\n - * \n - * Parameters:\n - * moBounds - {Object}\n - * \n - * Returns:\n - * {<OpenLayers.Bounds>} An <OpenLayers.Bounds>, translated from the \n - * passed-in MapObject Bounds.\n - * Returns null if null value is passed in.\n - */\n - getOLBoundsFromMapObjectBounds: function(moBounds) {\n - var olBounds = null;\n - if (moBounds != null) {\n - var sw = moBounds.getSouthWest();\n - var ne = moBounds.getNorthEast();\n - if (this.sphericalMercator) {\n - sw = this.forwardMercator(sw.lng(), sw.lat());\n - ne = this.forwardMercator(ne.lng(), ne.lat());\n - } else {\n - sw = new OpenLayers.LonLat(sw.lng(), sw.lat()); \n - ne = new OpenLayers.LonLat(ne.lng(), ne.lat()); \n - } \n - olBounds = new OpenLayers.Bounds(sw.lon, \n - sw.lat, \n - ne.lon, \n - ne.lat );\n - }\n - return olBounds;\n - },\n -\n - /** \n - * APIMethod: getWarningHTML\n - * \n - * Returns: \n - * {String} String with information on why layer is broken, how to get\n - * it working.\n - */\n - getWarningHTML:function() {\n - return OpenLayers.i18n("googleWarning");\n - },\n -\n -\n - /************************************\n - * *\n - * MapObject Interface Controls *\n - * *\n - ************************************/\n -\n -\n - // Get&Set Center, Zoom\n -\n - /**\n - * APIMethod: getMapObjectCenter\n - * \n - * Returns: \n - * {Object} The mapObject\'s current center in Map Object format\n - */\n - getMapObjectCenter: function() {\n - return this.mapObject.getCenter();\n - },\n -\n - /** \n - * APIMethod: getMapObjectZoom\n - * \n - * Returns:\n - * {Integer} The mapObject\'s current zoom, in Map Object format\n - */\n - getMapObjectZoom: function() {\n - return this.mapObject.getZoom();\n - },\n -\n - \n - /************************************\n - * *\n - * MapObject Primitives *\n - * *\n - ************************************/\n -\n -\n - // LonLat\n - \n - /**\n - * APIMethod: getLongitudeFromMapObjectLonLat\n - * \n - * Parameters:\n - * moLonLat - {Object} MapObject LonLat format\n - * \n - * Returns:\n - * {Float} Longitude of the given MapObject LonLat\n - */\n - getLongitudeFromMapObjectLonLat: function(moLonLat) {\n - return this.sphericalMercator ? \n - this.forwardMercator(moLonLat.lng(), moLonLat.lat()).lon :\n - moLonLat.lng(); \n - },\n -\n - /**\n - * APIMethod: getLatitudeFromMapObjectLonLat\n - * \n - * Parameters:\n - * moLonLat - {Object} MapObject LonLat format\n - * \n - * Returns:\n - * {Float} Latitude of the given MapObject LonLat\n - */\n - getLatitudeFromMapObjectLonLat: function(moLonLat) {\n - var lat = this.sphericalMercator ? \n - this.forwardMercator(moLonLat.lng(), moLonLat.lat()).lat :\n - moLonLat.lat(); \n - return lat; \n - },\n - \n - // Pixel\n - \n - /**\n - * APIMethod: getXFromMapObjectPixel\n - * \n - * Parameters:\n - * moPixel - {Object} MapObject Pixel format\n - * \n - * Returns:\n - * {Integer} X value of the MapObject Pixel\n - */\n - getXFromMapObjectPixel: function(moPixel) {\n - return moPixel.x;\n - },\n -\n - /**\n - * APIMethod: getYFromMapObjectPixel\n - * \n - * Parameters:\n - * moPixel - {Object} MapObject Pixel format\n - * \n - * Returns:\n - * {Integer} Y value of the MapObject Pixel\n - */\n - getYFromMapObjectPixel: function(moPixel) {\n - return moPixel.y;\n - },\n - \n - CLASS_NAME: "OpenLayers.Layer.Google"\n -});\n -\n -/**\n - * Property: OpenLayers.Layer.Google.cache\n - * {Object} Cache for elements that should only be created once per map.\n - */\n -OpenLayers.Layer.Google.cache = {};\n -\n -\n -/**\n - * Constant: OpenLayers.Layer.Google.v2\n - * \n - * Mixin providing functionality specific to the Google Maps API v2.\n - * \n - * This API has been deprecated by Google.\n - * Developers are encouraged to migrate to v3 of the API; support for this\n - * is provided by <OpenLayers.Layer.Google.v3>\n - */\n -OpenLayers.Layer.Google.v2 = {\n - \n - /**\n - * Property: termsOfUse\n - * {DOMElement} Div for Google\'s copyright and terms of use link\n - */\n - termsOfUse: null, \n -\n - /**\n - * Property: poweredBy\n - * {DOMElement} Div for Google\'s powered by logo and link\n - */\n - poweredBy: null, \n -\n - /**\n - * Property: dragObject\n - * {GDraggableObject} Since 2.93, Google has exposed the ability to get\n - * the maps GDraggableObject. We can now use this for smooth panning\n - */\n - dragObject: null, \n - \n - /** \n - * Method: loadMapObject\n - * Load the GMap and register appropriate event listeners. If we can\'t \n - * load GMap2, then display a warning message.\n - */\n - loadMapObject:function() {\n - if (!this.type) {\n - this.type = G_NORMAL_MAP;\n - }\n - var mapObject, termsOfUse, poweredBy;\n - var cache = OpenLayers.Layer.Google.cache[this.map.id];\n - if (cache) {\n - // there are already Google layers added to this map\n - mapObject = cache.mapObject;\n - termsOfUse = cache.termsOfUse;\n - poweredBy = cache.poweredBy;\n - // increment the layer count\n - ++cache.count;\n - } else {\n - // this is the first Google layer for this map\n -\n - var container = this.map.viewPortDiv;\n - var div = document.createElement("div");\n - div.id = this.map.id + "_GMap2Container";\n - div.style.position = "absolute";\n - div.style.width = "100%";\n - div.style.height = "100%";\n - container.appendChild(div);\n -\n - // create GMap and shuffle elements\n - try {\n - mapObject = new GMap2(div);\n - \n - // move the ToS and branding stuff up to the container div\n - termsOfUse = div.lastChild;\n - container.appendChild(termsOfUse);\n - termsOfUse.style.zIndex = "1100";\n - termsOfUse.style.right = "";\n - termsOfUse.style.bottom = "";\n - termsOfUse.className = "olLayerGoogleCopyright";\n -\n - poweredBy = div.lastChild;\n - container.appendChild(poweredBy);\n - poweredBy.style.zIndex = "1100";\n - poweredBy.style.right = "";\n - poweredBy.style.bottom = "";\n - poweredBy.className = "olLayerGooglePoweredBy gmnoprint";\n - \n - } catch (e) {\n - throw(e);\n - }\n - // cache elements for use by any other google layers added to\n - // this same map\n - OpenLayers.Layer.Google.cache[this.map.id] = {\n - mapObject: mapObject,\n - termsOfUse: termsOfUse,\n - poweredBy: poweredBy,\n - count: 1\n - };\n - }\n -\n - this.mapObject = mapObject;\n - this.termsOfUse = termsOfUse;\n - this.poweredBy = poweredBy;\n - \n - // ensure this layer type is one of the mapObject types\n - if (OpenLayers.Util.indexOf(this.mapObject.getMapTypes(),\n - this.type) === -1) {\n - this.mapObject.addMapType(this.type);\n - }\n -\n - //since v 2.93 getDragObject is now available.\n - if(typeof mapObject.getDragObject == "function") {\n - this.dragObject = mapObject.getDragObject();\n - } else {\n - this.dragPanMapObject = null;\n - }\n - \n - if(this.isBaseLayer === false) {\n - this.setGMapVisibility(this.div.style.display !== "none");\n - }\n -\n - },\n -\n - /**\n - * APIMethod: onMapResize\n - */\n - onMapResize: function() {\n - // workaround for resizing of invisible or not yet fully loaded layers\n - // where GMap2.checkResize() does not work. We need to load the GMap\n - // for the old div size, then checkResize(), and then call\n - // layer.moveTo() to trigger GMap.setCenter() (which will finish\n - // the GMap initialization).\n - if(this.visibility && this.mapObject.isLoaded()) {\n - this.mapObject.checkResize();\n - } else {\n - if(!this._resized) {\n - var layer = this;\n - var handle = GEvent.addListener(this.mapObject, "load", function() {\n - GEvent.removeListener(handle);\n - delete layer._resized;\n - layer.mapObject.checkResize();\n - layer.moveTo(layer.map.getCenter(), layer.map.getZoom());\n - });\n - }\n - this._resized = true;\n - }\n - },\n -\n - /**\n - * Method: setGMapVisibility\n - * Display the GMap container and associated elements.\n - * \n - * Parameters:\n - * visible - {Boolean} Display the GMap elements.\n - */\n - setGMapVisibility: function(visible) {\n - var cache = OpenLayers.Layer.Google.cache[this.map.id];\n - if (cache) {\n - var container = this.mapObject.getContainer();\n - if (visible === true) {\n - this.mapObject.setMapType(this.type);\n - container.style.display = "";\n - this.termsOfUse.style.left = "";\n - this.termsOfUse.style.display = "";\n - this.poweredBy.style.display = ""; \n - cache.displayed = this.id;\n - } else {\n - if (cache.displayed === this.id) {\n - delete cache.displayed;\n - }\n - if (!cache.displayed) {\n - container.style.display = "none";\n - this.termsOfUse.style.display = "none";\n - // move ToU far to the left in addition to setting display\n - // to "none", because at the end of the GMap2 load\n - // sequence, display: none will be unset and ToU would be\n - // visible after loading a map with a google layer that is\n - // initially hidden. \n - this.termsOfUse.style.left = "-9999px";\n - this.poweredBy.style.display = "none";\n - }\n - }\n - }\n - },\n - \n - /**\n - * Method: getMapContainer\n - * \n - * Returns:\n - * {DOMElement} the GMap container\'s div\n - */\n - getMapContainer: function() {\n - return this.mapObject.getContainer();\n - },\n -\n - //\n - // TRANSLATION: MapObject Bounds <-> OpenLayers.Bounds\n - //\n -\n - /**\n - * APIMethod: getMapObjectBoundsFromOLBounds\n - * \n - * Parameters:\n - * olBounds - {<OpenLayers.Bounds>}\n - * \n - * Returns:\n - * {Object} A MapObject Bounds, translated from olBounds\n - * Returns null if null value is passed in\n - */\n - getMapObjectBoundsFromOLBounds: function(olBounds) {\n - var moBounds = null;\n - if (olBounds != null) {\n - var sw = this.sphericalMercator ? \n - this.inverseMercator(olBounds.bottom, olBounds.left) : \n - new OpenLayers.LonLat(olBounds.bottom, olBounds.left);\n - var ne = this.sphericalMercator ? \n - this.inverseMercator(olBounds.top, olBounds.right) : \n - new OpenLayers.LonLat(olBounds.top, olBounds.right);\n - moBounds = new GLatLngBounds(new GLatLng(sw.lat, sw.lon),\n - new GLatLng(ne.lat, ne.lon));\n - }\n - return moBounds;\n - },\n -\n -\n - /************************************\n - * *\n - * MapObject Interface Controls *\n - * *\n - ************************************/\n -\n -\n - // Get&Set Center, Zoom\n -\n - /** \n - * APIMethod: setMapObjectCenter\n - * Set the mapObject to the specified center and zoom\n - * \n - * Parameters:\n - * center - {Object} MapObject LonLat format\n - * zoom - {int} MapObject zoom format\n - */\n - setMapObjectCenter: function(center, zoom) {\n - this.mapObject.setCenter(center, zoom); \n - },\n - \n - /**\n - * APIMethod: dragPanMapObject\n - * \n - * Parameters:\n - * dX - {Integer}\n - * dY - {Integer}\n - */\n - dragPanMapObject: function(dX, dY) {\n - this.dragObject.moveBy(new GSize(-dX, dY));\n - },\n -\n -\n - // LonLat - Pixel Translation\n - \n - /**\n - * APIMethod: getMapObjectLonLatFromMapObjectPixel\n - * \n - * Parameters:\n - * moPixel - {Object} MapObject Pixel format\n - * \n - * Returns:\n - * {Object} MapObject LonLat translated from MapObject Pixel\n - */\n - getMapObjectLonLatFromMapObjectPixel: function(moPixel) {\n - return this.mapObject.fromContainerPixelToLatLng(moPixel);\n - },\n -\n - /**\n - * APIMethod: getMapObjectPixelFromMapObjectLonLat\n - * \n - * Parameters:\n - * moLonLat - {Object} MapObject LonLat format\n - * \n - * Returns:\n - * {Object} MapObject Pixel transtlated from MapObject LonLat\n - */\n - getMapObjectPixelFromMapObjectLonLat: function(moLonLat) {\n - return this.mapObject.fromLatLngToContainerPixel(moLonLat);\n - },\n -\n - \n - // Bounds\n - \n - /** \n - * APIMethod: getMapObjectZoomFromMapObjectBounds\n - * \n - * Parameters:\n - * moBounds - {Object} MapObject Bounds format\n - * \n - * Returns:\n - * {Object} MapObject Zoom for specified MapObject Bounds\n - */\n - getMapObjectZoomFromMapObjectBounds: function(moBounds) {\n - return this.mapObject.getBoundsZoomLevel(moBounds);\n - },\n -\n - /************************************\n - * *\n - * MapObject Primitives *\n - * *\n - ************************************/\n -\n -\n - // LonLat\n - \n - /**\n - * APIMethod: getMapObjectLonLatFromLonLat\n - * \n - * Parameters:\n - * lon - {Float}\n - * lat - {Float}\n - * \n - * Returns:\n - * {Object} MapObject LonLat built from lon and lat params\n - */\n - getMapObjectLonLatFromLonLat: function(lon, lat) {\n - var gLatLng;\n - if(this.sphericalMercator) {\n - var lonlat = this.inverseMercator(lon, lat);\n - gLatLng = new GLatLng(lonlat.lat, lonlat.lon);\n - } else {\n - gLatLng = new GLatLng(lat, lon);\n - }\n - return gLatLng;\n - },\n -\n - // Pixel\n - \n - /**\n - * APIMethod: getMapObjectPixelFromXY\n - * \n - * Parameters:\n - * x - {Integer}\n - * y - {Integer}\n - * \n - * Returns:\n - * {Object} MapObject Pixel from x and y parameters\n - */\n - getMapObjectPixelFromXY: function(x, y) {\n - return new GPoint(x, y);\n - }\n - \n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>24682</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Google.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Google.xml deleted file mode 100644 index d0e34bd69f9253cbe7bc9e96e69800cc10d878f0..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Google.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Google</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Layer/Google</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Google/v3.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Google/v3.js.xml deleted file mode 100644 index efab70c28fd0016c6780ec53af3f053850332b62..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Google/v3.js.xml +++ /dev/null @@ -1,511 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v3.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer/Google.js\n - */\n -\n -/**\n - * Constant: OpenLayers.Layer.Google.v3\n - * \n - * Mixin providing functionality specific to the Google Maps API v3.\n - * \n - * To use this layer, you must include the GMaps v3 API in your html.\n - * \n - * Because OpenLayers needs to control mouse events, it isolates the GMaps mapObject\n - * (the DOM elements provided by Google) using the EventPane.\n - * However, because the Terms of Use require some of those elements,\n - * such as the links to Google\'s terms, to be clickable, these elements have \n - * to be moved up to OpenLayers\' container div. There is however no easy way\n - * to identify these, and the logic (see the repositionMapElements function\n - * in the source) may need to be changed if Google changes them.\n - * These elements are not part of the published API and can be changed at any time,\n - * so a given OpenLayers release can only guarantee support for the \'frozen\'\n - * Google release at the time of the OpenLayers release. See\n - * https://developers.google.com/maps/documentation/javascript/basics#Versioning\n - * for Google\'s current release cycle.\n - * \n - * For this reason, it\'s recommended that production code specifically loads \n - * the current frozen version, for example:\n - *\n - * (code)\n - * <script src="http://maps.google.com/maps/api/js?v=3.7&sensor=false"></script>\n - * (end)\n - * \n - * but that development code should use the latest \'nightly\' version, so that any\n - * problems can be dealt with as soon as they arise, and before they affect the production, \'frozen\', code.\n - * \n - * Note, however, that frozen versions are retired as part of Google\'s release\n - * cycle, and once this happens, you will get the next version, in the example above, 3.8 once 3.7 is retired.\n - * \n - * This version supports 3.7.\n - * \n - * \n - * Note that this layer configures the google.maps.map object with the\n - * "disableDefaultUI" option set to true. Using UI controls that the Google\n - * Maps API provides is not supported by the OpenLayers API.\n - */\n -OpenLayers.Layer.Google.v3 = {\n - \n - /**\n - * Constant: DEFAULTS\n - * {Object} It is not recommended to change the properties set here. Note\n - * that Google.v3 layers only work when sphericalMercator is set to true.\n - * \n - * (code)\n - * {\n - * sphericalMercator: true,\n - * projection: "EPSG:900913"\n - * }\n - * (end)\n - */\n - DEFAULTS: {\n - sphericalMercator: true,\n - projection: "EPSG:900913"\n - },\n -\n - /**\n - * APIProperty: animationEnabled\n - * {Boolean} If set to true, the transition between zoom levels will be\n - * animated (if supported by the GMaps API for the device used). Set to\n - * false to match the zooming experience of other layer types. Default\n - * is true. Note that the GMaps API does not give us control over zoom\n - * animation, so if set to false, when zooming, this will make the\n - * layer temporarily invisible, wait until GMaps reports the map being\n - * idle, and make it visible again. The result will be a blank layer\n - * for a few moments while zooming.\n - */\n - animationEnabled: true, \n -\n - /** \n - * Method: loadMapObject\n - * Load the GMap and register appropriate event listeners. If we can\'t \n - * load GMap2, then display a warning message.\n - */\n - loadMapObject:function() {\n - if (!this.type) {\n - this.type = google.maps.MapTypeId.ROADMAP;\n - }\n - var mapObject;\n - var cache = OpenLayers.Layer.Google.cache[this.map.id];\n - if (cache) {\n - // there are already Google layers added to this map\n - mapObject = cache.mapObject;\n - // increment the layer count\n - ++cache.count;\n - } else {\n - // this is the first Google layer for this map\n -\n - var container = this.map.viewPortDiv;\n - var div = document.createElement("div");\n - div.id = this.map.id + "_GMapContainer";\n - div.style.position = "absolute";\n - div.style.width = "100%";\n - div.style.height = "100%";\n - container.appendChild(div);\n -\n - // create GMap and shuffle elements\n - var center = this.map.getCenter();\n - mapObject = new google.maps.Map(div, {\n - center: center ?\n - new google.maps.LatLng(center.lat, center.lon) :\n - new google.maps.LatLng(0, 0),\n - zoom: this.map.getZoom() || 0,\n - mapTypeId: this.type,\n - disableDefaultUI: true,\n - keyboardShortcuts: false,\n - draggable: false,\n - disableDoubleClickZoom: true,\n - scrollwheel: false,\n - streetViewControl: false\n - });\n - \n - // cache elements for use by any other google layers added to\n - // this same map\n - cache = {\n - mapObject: mapObject,\n - count: 1\n - };\n - OpenLayers.Layer.Google.cache[this.map.id] = cache;\n - this.repositionListener = google.maps.event.addListenerOnce(\n - mapObject, \n - "center_changed", \n - OpenLayers.Function.bind(this.repositionMapElements, this)\n - );\n - }\n - this.mapObject = mapObject;\n - this.setGMapVisibility(this.visibility);\n - },\n - \n - /**\n - * Method: repositionMapElements\n - *\n - * Waits until powered by and terms of use elements are available and then\n - * moves them so they are clickable.\n - */\n - repositionMapElements: function() {\n -\n - // This is the first time any Google layer in this mapObject has been\n - // made visible. The mapObject needs to know the container size.\n - google.maps.event.trigger(this.mapObject, "resize");\n - \n - var div = this.mapObject.getDiv().firstChild;\n - if (!div || div.childNodes.length < 3) {\n - this.repositionTimer = window.setTimeout(\n - OpenLayers.Function.bind(this.repositionMapElements, this),\n - 250\n - );\n - return false;\n - }\n -\n - var cache = OpenLayers.Layer.Google.cache[this.map.id];\n - var container = this.map.viewPortDiv;\n - \n - // move the ToS and branding stuff up to the container div\n - // depends on value of zIndex, which is not robust\n - for (var i=div.children.length-1; i>=0; --i) {\n - if (div.children[i].style.zIndex == 1000001) {\n - var termsOfUse = div.children[i];\n - container.appendChild(termsOfUse);\n - termsOfUse.style.zIndex = "1100";\n - termsOfUse.style.bottom = "";\n - termsOfUse.className = "olLayerGoogleCopyright olLayerGoogleV3";\n - termsOfUse.style.display = "";\n - cache.termsOfUse = termsOfUse;\n - }\n - if (div.children[i].style.zIndex == 1000000) {\n - var poweredBy = div.children[i];\n - container.appendChild(poweredBy);\n - poweredBy.style.zIndex = "1100";\n - poweredBy.style.bottom = "";\n - poweredBy.className = "olLayerGooglePoweredBy olLayerGoogleV3 gmnoprint";\n - poweredBy.style.display = "";\n - cache.poweredBy = poweredBy;\n - }\n - if (div.children[i].style.zIndex == 10000002) {\n - container.appendChild(div.children[i]);\n - }\n - }\n -\n - this.setGMapVisibility(this.visibility);\n -\n - },\n -\n - /**\n - * APIMethod: onMapResize\n - */\n - onMapResize: function() {\n - if (this.visibility) {\n - google.maps.event.trigger(this.mapObject, "resize");\n - } else {\n - var cache = OpenLayers.Layer.Google.cache[this.map.id];\n - if (!cache.resized) {\n - var layer = this;\n - google.maps.event.addListenerOnce(this.mapObject, "tilesloaded", function() {\n - google.maps.event.trigger(layer.mapObject, "resize");\n - layer.moveTo(layer.map.getCenter(), layer.map.getZoom());\n - delete cache.resized;\n - });\n - }\n - cache.resized = true;\n - }\n - },\n -\n - /**\n - * Method: setGMapVisibility\n - * Display the GMap container and associated elements.\n - * \n - * Parameters:\n - * visible - {Boolean} Display the GMap elements.\n - */\n - setGMapVisibility: function(visible) {\n - var cache = OpenLayers.Layer.Google.cache[this.map.id];\n - if (cache) {\n - var type = this.type;\n - var layers = this.map.layers;\n - var layer;\n - for (var i=layers.length-1; i>=0; --i) {\n - layer = layers[i];\n - if (layer instanceof OpenLayers.Layer.Google &&\n - layer.visibility === true && layer.inRange === true) {\n - type = layer.type;\n - visible = true;\n - break;\n - }\n - }\n - var container = this.mapObject.getDiv();\n - if (visible === true) {\n - this.mapObject.setMapTypeId(type); \n - container.style.left = "";\n - if (cache.termsOfUse && cache.termsOfUse.style) {\n - cache.termsOfUse.style.left = "";\n - cache.termsOfUse.style.display = "";\n - cache.poweredBy.style.display = ""; \n - }\n - cache.displayed = this.id;\n - } else {\n - delete cache.displayed;\n - container.style.left = "-9999px";\n - if (cache.termsOfUse && cache.termsOfUse.style) {\n - cache.termsOfUse.style.display = "none";\n - // move ToU far to the left in addition to setting\n - // display to "none", because at the end of the GMap\n - // load sequence, display: none will be unset and ToU\n - // would be visible after loading a map with a google\n - // layer that is initially hidden. \n - cache.termsOfUse.style.left = "-9999px";\n - cache.poweredBy.style.display = "none";\n - }\n - }\n - }\n - },\n - \n - /**\n - * Method: getMapContainer\n - * \n - * Returns:\n - * {DOMElement} the GMap container\'s div\n - */\n - getMapContainer: function() {\n - return this.mapObject.getDiv();\n - },\n - \n - //\n - // TRANSLATION: MapObject Bounds <-> OpenLayers.Bounds\n - //\n -\n - /**\n - * APIMethod: getMapObjectBoundsFromOLBounds\n - * \n - * Parameters:\n - * olBounds - {<OpenLayers.Bounds>}\n - * \n - * Returns:\n - * {Object} A MapObject Bounds, translated from olBounds\n - * Returns null if null value is passed in\n - */\n - getMapObjectBoundsFromOLBounds: function(olBounds) {\n - var moBounds = null;\n - if (olBounds != null) {\n - var sw = this.sphericalMercator ? \n - this.inverseMercator(olBounds.bottom, olBounds.left) : \n - new OpenLayers.LonLat(olBounds.bottom, olBounds.left);\n - var ne = this.sphericalMercator ? \n - this.inverseMercator(olBounds.top, olBounds.right) : \n - new OpenLayers.LonLat(olBounds.top, olBounds.right);\n - moBounds = new google.maps.LatLngBounds(\n - new google.maps.LatLng(sw.lat, sw.lon),\n - new google.maps.LatLng(ne.lat, ne.lon)\n - );\n - }\n - return moBounds;\n - },\n -\n -\n - /************************************\n - * *\n - * MapObject Interface Controls *\n - * *\n - ************************************/\n -\n -\n - // LonLat - Pixel Translation\n - \n - /**\n - * APIMethod: getMapObjectLonLatFromMapObjectPixel\n - * \n - * Parameters:\n - * moPixel - {Object} MapObject Pixel format\n - * \n - * Returns:\n - * {Object} MapObject LonLat translated from MapObject Pixel\n - */\n - getMapObjectLonLatFromMapObjectPixel: function(moPixel) {\n - var size = this.map.getSize();\n - var lon = this.getLongitudeFromMapObjectLonLat(this.mapObject.center);\n - var lat = this.getLatitudeFromMapObjectLonLat(this.mapObject.center);\n - var res = this.map.getResolution();\n -\n - var delta_x = moPixel.x - (size.w / 2);\n - var delta_y = moPixel.y - (size.h / 2);\n - \n - var lonlat = new OpenLayers.LonLat(\n - lon + delta_x * res,\n - lat - delta_y * res\n - ); \n -\n - if (this.wrapDateLine) {\n - lonlat = lonlat.wrapDateLine(this.maxExtent);\n - }\n - return this.getMapObjectLonLatFromLonLat(lonlat.lon, lonlat.lat);\n - },\n -\n - /**\n - * APIMethod: getMapObjectPixelFromMapObjectLonLat\n - * \n - * Parameters:\n - * moLonLat - {Object} MapObject LonLat format\n - * \n - * Returns:\n - * {Object} MapObject Pixel transtlated from MapObject LonLat\n - */\n - getMapObjectPixelFromMapObjectLonLat: function(moLonLat) {\n - var lon = this.getLongitudeFromMapObjectLonLat(moLonLat);\n - var lat = this.getLatitudeFromMapObjectLonLat(moLonLat);\n - var res = this.map.getResolution();\n - var extent = this.map.getExtent();\n - return this.getMapObjectPixelFromXY((1/res * (lon - extent.left)),\n - (1/res * (extent.top - lat)));\n - },\n -\n - \n - /** \n - * APIMethod: setMapObjectCenter\n - * Set the mapObject to the specified center and zoom\n - * \n - * Parameters:\n - * center - {Object} MapObject LonLat format\n - * zoom - {int} MapObject zoom format\n - */\n - setMapObjectCenter: function(center, zoom) {\n - if (this.animationEnabled === false && zoom != this.mapObject.zoom) {\n - var mapContainer = this.getMapContainer();\n - google.maps.event.addListenerOnce(\n - this.mapObject, \n - "idle", \n - function() {\n - mapContainer.style.visibility = "";\n - }\n - );\n - mapContainer.style.visibility = "hidden";\n - }\n - this.mapObject.setOptions({\n - center: center,\n - zoom: zoom\n - });\n - },\n - \n - \n - // Bounds\n - \n - /** \n - * APIMethod: getMapObjectZoomFromMapObjectBounds\n - * \n - * Parameters:\n - * moBounds - {Object} MapObject Bounds format\n - * \n - * Returns:\n - * {Object} MapObject Zoom for specified MapObject Bounds\n - */\n - getMapObjectZoomFromMapObjectBounds: function(moBounds) {\n - return this.mapObject.getBoundsZoomLevel(moBounds);\n - },\n -\n - /************************************\n - * *\n - * MapObject Primitives *\n - * *\n - ************************************/\n -\n -\n - // LonLat\n - \n - /**\n - * APIMethod: getMapObjectLonLatFromLonLat\n - * \n - * Parameters:\n - * lon - {Float}\n - * lat - {Float}\n - * \n - * Returns:\n - * {Object} MapObject LonLat built from lon and lat params\n - */\n - getMapObjectLonLatFromLonLat: function(lon, lat) {\n - var gLatLng;\n - if(this.sphericalMercator) {\n - var lonlat = this.inverseMercator(lon, lat);\n - gLatLng = new google.maps.LatLng(lonlat.lat, lonlat.lon);\n - } else {\n - gLatLng = new google.maps.LatLng(lat, lon);\n - }\n - return gLatLng;\n - },\n - \n - // Pixel\n - \n - /**\n - * APIMethod: getMapObjectPixelFromXY\n - * \n - * Parameters:\n - * x - {Integer}\n - * y - {Integer}\n - * \n - * Returns:\n - * {Object} MapObject Pixel from x and y parameters\n - */\n - getMapObjectPixelFromXY: function(x, y) {\n - return new google.maps.Point(x, y);\n - },\n - \n - /**\n - * APIMethod: destroy\n - * Clean up this layer.\n - */\n - destroy: function() {\n - if (this.repositionListener) {\n - google.maps.event.removeListener(this.repositionListener);\n - }\n - if (this.repositionTimer) {\n - window.clearTimeout(this.repositionTimer);\n - }\n - OpenLayers.Layer.Google.prototype.destroy.apply(this, arguments);\n - }\n - \n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>16330</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Grid.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Grid.js.xml deleted file mode 100644 index 92c17cc65a2d6eefbdfaec24551ef8dbe8524263..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Grid.js.xml +++ /dev/null @@ -1,1412 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Grid.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer/HTTPRequest.js\n - * @requires OpenLayers/Tile/Image.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.Grid\n - * Base class for layers that use a lattice of tiles. Create a new grid\n - * layer with the <OpenLayers.Layer.Grid> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Layer.HTTPRequest>\n - */\n -OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {\n - \n - /**\n - * APIProperty: tileSize\n - * {<OpenLayers.Size>}\n - */\n - tileSize: null,\n -\n - /**\n - * Property: tileOriginCorner\n - * {String} If the <tileOrigin> property is not provided, the tile origin \n - * will be derived from the layer\'s <maxExtent>. The corner of the \n - * <maxExtent> used is determined by this property. Acceptable values\n - * are "tl" (top left), "tr" (top right), "bl" (bottom left), and "br"\n - * (bottom right). Default is "bl".\n - */\n - tileOriginCorner: "bl",\n - \n - /**\n - * APIProperty: tileOrigin\n - * {<OpenLayers.LonLat>} Optional origin for aligning the grid of tiles.\n - * If provided, requests for tiles at all resolutions will be aligned\n - * with this location (no tiles shall overlap this location). If\n - * not provided, the grid of tiles will be aligned with the layer\'s\n - * <maxExtent>. Default is ``null``.\n - */\n - tileOrigin: null,\n - \n - /** APIProperty: tileOptions\n - * {Object} optional configuration options for <OpenLayers.Tile> instances\n - * created by this Layer, if supported by the tile class.\n - */\n - tileOptions: null,\n -\n - /**\n - * APIProperty: tileClass\n - * {<OpenLayers.Tile>} The tile class to use for this layer.\n - * Defaults is OpenLayers.Tile.Image.\n - */\n - tileClass: OpenLayers.Tile.Image,\n - \n - /**\n - * Property: grid\n - * {Array(Array(<OpenLayers.Tile>))} This is an array of rows, each row is \n - * an array of tiles.\n - */\n - grid: null,\n -\n - /**\n - * APIProperty: singleTile\n - * {Boolean} Moves the layer into single-tile mode, meaning that one tile \n - * will be loaded. The tile\'s size will be determined by the \'ratio\'\n - * property. When the tile is dragged such that it does not cover the \n - * entire viewport, it is reloaded.\n - */\n - singleTile: false,\n -\n - /** APIProperty: ratio\n - * {Float} Used only when in single-tile mode, this specifies the \n - * ratio of the size of the single tile to the size of the map.\n - */\n - ratio: 1.5,\n -\n - /**\n - * APIProperty: buffer\n - * {Integer} Used only when in gridded mode, this specifies the number of \n - * extra rows and colums of tiles on each side which will\n - * surround the minimum grid tiles to cover the map.\n - * For very slow loading layers, a larger value may increase\n - * performance somewhat when dragging, but will increase bandwidth\n - * use significantly. \n - */\n - buffer: 0,\n -\n - /**\n - * APIProperty: transitionEffect\n - * {String} The transition effect to use when the map is zoomed.\n - * Two posible values:\n - *\n - * null - No transition effect (the default).\n - * "resize" - Existing tiles are resized on zoom to provide a visual\n - * effect of the zoom having taken place immediately. As the\n - * new tiles become available, they are drawn over top of the\n - * resized tiles.\n - *\n - * Using "resize" on non-opaque layers can cause undesired visual\n - * effects. This is therefore discouraged.\n - */\n - transitionEffect: null,\n -\n - /**\n - * APIProperty: numLoadingTiles\n - * {Integer} How many tiles are still loading?\n - */\n - numLoadingTiles: 0,\n -\n - /**\n - * APIProperty: tileLoadingDelay\n - * {Integer} Number of milliseconds before we shift and load\n - * tiles when panning. Ignored if <OpenLayers.Animation.isNative> is\n - * true. Default is 85.\n - */\n - tileLoadingDelay: 85,\n - \n - /**\n - * Property: serverResolutions\n - * {Array(Number}} This property is documented in subclasses as\n - * an API property.\n - */\n - serverResolutions: null,\n -\n - /**\n - * Property: moveTimerId\n - * {Number} The id of the <deferMoveGriddedTiles> timer.\n - */\n - moveTimerId: null,\n - \n - /**\n - * Property: deferMoveGriddedTiles\n - * {Function} A function that defers execution of <moveGriddedTiles> by\n - * <tileLoadingDelay>. If <OpenLayers.Animation.isNative> is true, this\n - * is null and unused.\n - */\n - deferMoveGriddedTiles: null,\n -\n - /**\n - * Property: tileQueueId\n - * {Number} The id of the <drawTileFromQueue> animation.\n - */\n - tileQueueId: null,\n -\n - /**\n - * Property: tileQueue\n - * {Array(<OpenLayers.Tile>)} Tiles queued for drawing.\n - */\n - tileQueue: null,\n - \n - /**\n - * Property: loading\n - * {Boolean} Indicates if tiles are being loaded.\n - */\n - loading: false,\n - \n - /**\n - * Property: backBuffer\n - * {DOMElement} The back buffer.\n - */\n - backBuffer: null,\n -\n - /**\n - * Property: gridResolution\n - * {Number} The resolution of the current grid. Used for backbuffering.\n - * This property is updated each the grid is initialized.\n - */\n - gridResolution: null,\n -\n - /**\n - * Property: backBufferResolution\n - * {Number} The resolution of the current back buffer. This property is\n - * updated each time a back buffer is created.\n - */\n - backBufferResolution: null,\n -\n - /**\n - * Property: backBufferLonLat\n - * {Object} The top-left corner of the current back buffer. Includes lon\n - * and lat properties. This object is updated each time a back buffer\n - * is created.\n - */\n - backBufferLonLat: null,\n -\n - /**\n - * Property: backBufferTimerId\n - * {Number} The id of the back buffer timer. This timer is used to\n - * delay the removal of the back buffer, thereby preventing\n - * flash effects caused by tile animation.\n - */\n - backBufferTimerId: null,\n -\n - /**\n - * APIProperty: removeBackBufferDelay\n - * {Number} Delay for removing the backbuffer when all tiles have finished\n - * loading. Can be set to 0 when no css opacity transitions for the\n - * olTileImage class are used. Default is 0 for <singleTile> layers,\n - * 2500 for tiled layers. See <className> for more information on\n - * tile animation.\n - */\n - removeBackBufferDelay: null,\n -\n - /**\n - * APIProperty: className\n - * {String} Name of the class added to the layer div. If not set in the\n - * options passed to the constructor then className defaults to\n - * "olLayerGridSingleTile" for single tile layers (see <singleTile>),\n - * and "olLayerGrid" for non single tile layers.\n - *\n - * Note:\n - *\n - * The displaying of tiles is not animated by default for single tile\n - * layers - OpenLayers\' default theme (style.css) includes this:\n - * (code)\n - * .olLayerGrid .olTileImage {\n - * -webkit-transition: opacity 0.2s linear;\n - * -moz-transition: opacity 0.2s linear;\n - * -o-transition: opacity 0.2s linear;\n - * transition: opacity 0.2s linear;\n - * }\n - * (end)\n - * To animate tile displaying for any grid layer the following\n - * CSS rule can be used:\n - * (code)\n - * .olTileImage {\n - * -webkit-transition: opacity 0.2s linear;\n - * -moz-transition: opacity 0.2s linear;\n - * -o-transition: opacity 0.2s linear;\n - * transition: opacity 0.2s linear;\n - * }\n - * (end)\n - * In that case, to avoid flash effects, <removeBackBufferDelay>\n - * should not be zero.\n - */\n - className: null,\n -\n - /**\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * layer.events.register(type, obj, listener);\n - * (end)\n - *\n - * Listeners will be called with a reference to an event object. The\n - * properties of this event depends on exactly what happened.\n - *\n - * All event objects have at least the following properties:\n - * object - {Object} A reference to layer.events.object.\n - * element - {DOMElement} A reference to layer.events.element.\n - *\n - * Supported event types:\n - * tileloadstart - Triggered when a tile starts loading. Listeners receive\n - * an object as first argument, which has a tile property that\n - * references the tile that starts loading.\n - * tileloaded - Triggered when each new tile is\n - * loaded, as a means of progress update to listeners.\n - * listeners can access \'numLoadingTiles\' if they wish to keep\n - * track of the loading progress. Listeners are called with an object\n - * with a tile property as first argument, making the loded tile\n - * available to the listener.\n - * tileerror - Triggered before the tileloaded event (i.e. when the tile is\n - * still hidden) if a tile failed to load. Listeners receive an object\n - * as first argument, which has a tile property that references the\n - * tile that could not be loaded.\n - */\n -\n - /**\n - * Constructor: OpenLayers.Layer.Grid\n - * Create a new grid layer\n - *\n - * Parameters:\n - * name - {String}\n - * url - {String}\n - * params - {Object}\n - * options - {Object} Hashtable of extra options to tag onto the layer\n - */\n - initialize: function(name, url, params, options) {\n - OpenLayers.Layer.HTTPRequest.prototype.initialize.apply(this, \n - arguments);\n - this.grid = [];\n - this.tileQueue = [];\n -\n - if (this.removeBackBufferDelay === null) {\n - this.removeBackBufferDelay = this.singleTile ? 0 : 2500;\n - }\n - \n - if (this.className === null) {\n - this.className = this.singleTile ? \'olLayerGridSingleTile\' :\n - \'olLayerGrid\';\n - }\n -\n - if (!OpenLayers.Animation.isNative) {\n - this.deferMoveGriddedTiles = OpenLayers.Function.bind(function() {\n - this.moveGriddedTiles(true);\n - this.moveTimerId = null;\n - }, this);\n - }\n - },\n -\n - /**\n - * Method: setMap\n - *\n - * Parameters:\n - * map - {<OpenLayers.Map>} The map.\n - */\n - setMap: function(map) {\n - OpenLayers.Layer.HTTPRequest.prototype.setMap.call(this, map);\n - OpenLayers.Element.addClass(this.div, this.className);\n - },\n -\n - /**\n - * Method: removeMap\n - * Called when the layer is removed from the map.\n - *\n - * Parameters:\n - * map - {<OpenLayers.Map>} The map.\n - */\n - removeMap: function(map) {\n - if (this.moveTimerId !== null) {\n - window.clearTimeout(this.moveTimerId);\n - this.moveTimerId = null;\n - }\n - this.clearTileQueue();\n - if(this.backBufferTimerId !== null) {\n - window.clearTimeout(this.backBufferTimerId);\n - this.backBufferTimerId = null;\n - }\n - },\n -\n - /**\n - * APIMethod: destroy\n - * Deconstruct the layer and clear the grid.\n - */\n - destroy: function() {\n - this.removeBackBuffer();\n - this.clearGrid();\n -\n - this.grid = null;\n - this.tileSize = null;\n - OpenLayers.Layer.HTTPRequest.prototype.destroy.apply(this, arguments); \n - },\n -\n - /**\n - * Method: clearGrid\n - * Go through and remove all tiles from the grid, calling\n - * destroy() on each of them to kill circular references\n - */\n - clearGrid:function() {\n - this.clearTileQueue();\n - if (this.grid) {\n - for(var iRow=0, len=this.grid.length; iRow<len; iRow++) {\n - var row = this.grid[iRow];\n - for(var iCol=0, clen=row.length; iCol<clen; iCol++) {\n - var tile = row[iCol];\n - this.destroyTile(tile);\n - }\n - }\n - this.grid = [];\n - this.gridResolution = null;\n - }\n - },\n - \n - /**\n - * APIMethod: clone\n - * Create a clone of this layer\n - *\n - * Parameters:\n - * obj - {Object} Is this ever used?\n - * \n - * Returns:\n - * {<OpenLayers.Layer.Grid>} An exact clone of this OpenLayers.Layer.Grid\n - */\n - clone: function (obj) {\n - \n - if (obj == null) {\n - obj = new OpenLayers.Layer.Grid(this.name,\n - this.url,\n - this.params,\n - this.getOptions());\n - }\n -\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.HTTPRequest.prototype.clone.apply(this, [obj]);\n -\n - // copy/set any non-init, non-simple values here\n - if (this.tileSize != null) {\n - obj.tileSize = this.tileSize.clone();\n - }\n - \n - // we do not want to copy reference to grid, so we make a new array\n - obj.grid = [];\n - obj.gridResolution = null;\n - // same for backbuffer and tile queue\n - obj.backBuffer = null;\n - obj.backBufferTimerId = null;\n - obj.tileQueue = [];\n - obj.tileQueueId = null;\n - obj.loading = false;\n - obj.moveTimerId = null;\n -\n - return obj;\n - }, \n -\n - /**\n - * Method: moveTo\n - * This function is called whenever the map is moved. All the moving\n - * of actual \'tiles\' is done by the map, but moveTo\'s role is to accept\n - * a bounds and make sure the data that that bounds requires is pre-loaded.\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - * zoomChanged - {Boolean}\n - * dragging - {Boolean}\n - */\n - moveTo:function(bounds, zoomChanged, dragging) {\n -\n - OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments);\n -\n - bounds = bounds || this.map.getExtent();\n -\n - if (bounds != null) {\n - \n - // if grid is empty or zoom has changed, we *must* re-tile\n - var forceReTile = !this.grid.length || zoomChanged;\n - \n - // total bounds of the tiles\n - var tilesBounds = this.getTilesBounds(); \n -\n - // the new map resolution\n - var resolution = this.map.getResolution();\n -\n - // the server-supported resolution for the new map resolution\n - var serverResolution = this.getServerResolution(resolution);\n -\n - if (this.singleTile) {\n - \n - // We want to redraw whenever even the slightest part of the \n - // current bounds is not contained by our tile.\n - // (thus, we do not specify partial -- its default is false)\n -\n - if ( forceReTile ||\n - (!dragging && !tilesBounds.containsBounds(bounds))) {\n -\n - // In single tile mode with no transition effect, we insert\n - // a non-scaled backbuffer when the layer is moved. But if\n - // a zoom occurs right after a move, i.e. before the new\n - // image is received, we need to remove the backbuffer, or\n - // an ill-positioned image will be visible during the zoom\n - // transition.\n -\n - if(zoomChanged && this.transitionEffect !== \'resize\') {\n - this.removeBackBuffer();\n - }\n -\n - if(!zoomChanged || this.transitionEffect === \'resize\') {\n - this.applyBackBuffer(serverResolution);\n - }\n -\n - this.initSingleTile(bounds);\n - }\n - } else {\n -\n - // if the bounds have changed such that they are not even \n - // *partially* contained by our tiles (e.g. when user has \n - // programmatically panned to the other side of the earth on\n - // zoom level 18), then moveGriddedTiles could potentially have\n - // to run through thousands of cycles, so we want to reTile\n - // instead (thus, partial true). \n - forceReTile = forceReTile ||\n - !tilesBounds.intersectsBounds(bounds, {\n - worldBounds: this.map.baseLayer.wrapDateLine &&\n - this.map.getMaxExtent()\n - });\n -\n - if(resolution !== serverResolution) {\n - bounds = this.map.calculateBounds(null, serverResolution);\n - if(forceReTile) {\n - // stretch the layer div\n - var scale = serverResolution / resolution;\n - this.transformDiv(scale);\n - }\n - } else {\n - // reset the layer width, height, left, top, to deal with\n - // the case where the layer was previously transformed\n - this.div.style.width = \'100%\';\n - this.div.style.height = \'100%\';\n - this.div.style.left = \'0%\';\n - this.div.style.top = \'0%\';\n - }\n -\n - if(forceReTile) {\n - if(zoomChanged && this.transitionEffect === \'resize\') {\n - this.applyBackBuffer(serverResolution);\n - }\n - this.initGriddedTiles(bounds);\n - } else {\n - this.moveGriddedTiles();\n - }\n - }\n - }\n - },\n -\n - /**\n - * Method: getTileData\n - * Given a map location, retrieve a tile and the pixel offset within that\n - * tile corresponding to the location. If there is not an existing \n - * tile in the grid that covers the given location, null will be \n - * returned.\n - *\n - * Parameters:\n - * loc - {<OpenLayers.LonLat>} map location\n - *\n - * Returns:\n - * {Object} Object with the following properties: tile ({<OpenLayers.Tile>}),\n - * i ({Number} x-pixel offset from top left), and j ({Integer} y-pixel\n - * offset from top left).\n - */\n - getTileData: function(loc) {\n - var data = null,\n - x = loc.lon,\n - y = loc.lat,\n - numRows = this.grid.length;\n -\n - if (this.map && numRows) {\n - var res = this.map.getResolution(),\n - tileWidth = this.tileSize.w,\n - tileHeight = this.tileSize.h,\n - bounds = this.grid[0][0].bounds,\n - left = bounds.left,\n - top = bounds.top;\n -\n - if (x < left) {\n - // deal with multiple worlds\n - if (this.map.baseLayer.wrapDateLine) {\n - var worldWidth = this.map.getMaxExtent().getWidth();\n - var worldsAway = Math.ceil((left - x) / worldWidth);\n - x += worldWidth * worldsAway;\n - }\n - }\n - // tile distance to location (fractional number of tiles);\n - var dtx = (x - left) / (res * tileWidth);\n - var dty = (top - y) / (res * tileHeight);\n - // index of tile in grid\n - var col = Math.floor(dtx);\n - var row = Math.floor(dty);\n - if (row >= 0 && row < numRows) {\n - var tile = this.grid[row][col];\n - if (tile) {\n - data = {\n - tile: tile,\n - // pixel index within tile\n - i: Math.floor((dtx - col) * tileWidth),\n - j: Math.floor((dty - row) * tileHeight)\n - }; \n - }\n - }\n - }\n - return data;\n - },\n - \n - /**\n - * Method: queueTileDraw\n - * Adds a tile to the animation queue that will draw it.\n - *\n - * Parameters:\n - * evt - {Object} Listener argument of the tile\'s beforedraw event\n - */\n - queueTileDraw: function(evt) {\n - var tile = evt.object;\n - if (!~OpenLayers.Util.indexOf(this.tileQueue, tile)) {\n - // queue only if not in queue already\n - this.tileQueue.push(tile);\n - }\n - if (!this.tileQueueId) {\n - this.tileQueueId = OpenLayers.Animation.start(\n - OpenLayers.Function.bind(this.drawTileFromQueue, this),\n - null, this.div\n - );\n - }\n - return false;\n - },\n - \n - /**\n - * Method: drawTileFromQueue\n - * Draws the first tile from the tileQueue, and unqueues that tile\n - */\n - drawTileFromQueue: function() {\n - if (this.tileQueue.length === 0) {\n - this.clearTileQueue();\n - } else {\n - this.tileQueue.shift().draw(true);\n - }\n - },\n - \n - /**\n - * Method: clearTileQueue\n - * Clears the animation queue\n - */\n - clearTileQueue: function() {\n - OpenLayers.Animation.stop(this.tileQueueId);\n - this.tileQueueId = null;\n - this.tileQueue = [];\n - },\n -\n - /**\n - * Method: destroyTile\n - *\n - * Parameters:\n - * tile - {<OpenLayers.Tile>}\n - */\n - destroyTile: function(tile) {\n - this.removeTileMonitoringHooks(tile);\n - tile.destroy();\n - },\n -\n - /**\n - * Method: getServerResolution\n - * Return the closest highest server-supported resolution. Throw an\n - * exception if none is found in the serverResolutions array.\n - *\n - * Parameters:\n - * resolution - {Number} The base resolution. If undefined the\n - * map resolution is used.\n - *\n - * Returns:\n - * {Number} The closest highest server resolution value.\n - */\n - getServerResolution: function(resolution) {\n - resolution = resolution || this.map.getResolution();\n - if(this.serverResolutions &&\n - OpenLayers.Util.indexOf(this.serverResolutions, resolution) === -1) {\n - var i, serverResolution;\n - for(i=this.serverResolutions.length-1; i>= 0; i--) {\n - serverResolution = this.serverResolutions[i];\n - if(serverResolution > resolution) {\n - resolution = serverResolution;\n - break;\n - }\n - }\n - if(i === -1) {\n - throw \'no appropriate resolution in serverResolutions\';\n - }\n - }\n - return resolution;\n - },\n -\n - /**\n - * Method: getServerZoom\n - * Return the zoom value corresponding to the best matching server\n - * resolution, taking into account <serverResolutions> and <zoomOffset>.\n - *\n - * Returns:\n - * {Number} The closest server supported zoom. This is not the map zoom\n - * level, but an index of the server\'s resolutions array.\n - */\n - getServerZoom: function() {\n - var resolution = this.getServerResolution();\n - return this.serverResolutions ?\n - OpenLayers.Util.indexOf(this.serverResolutions, resolution) :\n - this.map.getZoomForResolution(resolution) + (this.zoomOffset || 0);\n - },\n -\n - /**\n - * Method: transformDiv\n - * Transform the layer div.\n - *\n - * Parameters:\n - * scale - {Number} The value by which the layer div is to\n - * be scaled.\n - */\n - transformDiv: function(scale) {\n -\n - // scale the layer div\n -\n - this.div.style.width = 100 * scale + \'%\';\n - this.div.style.height = 100 * scale + \'%\';\n -\n - // and translate the layer div as necessary\n -\n - var size = this.map.getSize();\n - var lcX = parseInt(this.map.layerContainerDiv.style.left, 10);\n - var lcY = parseInt(this.map.layerContainerDiv.style.top, 10);\n - var x = (lcX - (size.w / 2.0)) * (scale - 1);\n - var y = (lcY - (size.h / 2.0)) * (scale - 1);\n -\n - this.div.style.left = x + \'%\';\n - this.div.style.top = y + \'%\';\n - },\n -\n - /**\n - * Method: getResolutionScale\n - * Return the value by which the layer is currently scaled.\n - *\n - * Returns:\n - * {Number} The resolution scale.\n - */\n - getResolutionScale: function() {\n - return parseInt(this.div.style.width, 10) / 100;\n - },\n -\n - /**\n - * Method: applyBackBuffer\n - * Create, insert, scale and position a back buffer for the layer.\n - *\n - * Parameters:\n - * resolution - {Number} The resolution to transition to.\n - */\n - applyBackBuffer: function(resolution) {\n - if(this.backBufferTimerId !== null) {\n - this.removeBackBuffer();\n - }\n - var backBuffer = this.backBuffer;\n - if(!backBuffer) {\n - backBuffer = this.createBackBuffer();\n - if(!backBuffer) {\n - return;\n - }\n - this.div.insertBefore(backBuffer, this.div.firstChild);\n - this.backBuffer = backBuffer;\n -\n - // set some information in the instance for subsequent\n - // calls to applyBackBuffer where the same back buffer\n - // is reused\n - var topLeftTileBounds = this.grid[0][0].bounds;\n - this.backBufferLonLat = {\n - lon: topLeftTileBounds.left,\n - lat: topLeftTileBounds.top\n - };\n - this.backBufferResolution = this.gridResolution;\n - }\n -\n - var style = backBuffer.style;\n -\n - // scale the back buffer\n - var ratio = this.backBufferResolution / resolution;\n - style.width = 100 * ratio + \'%\';\n - style.height = 100 * ratio + \'%\';\n -\n - // and position it (based on the grid\'s top-left corner)\n - var position = this.getViewPortPxFromLonLat(\n - this.backBufferLonLat, resolution);\n - var leftOffset = parseInt(this.map.layerContainerDiv.style.left, 10);\n - var topOffset = parseInt(this.map.layerContainerDiv.style.top, 10);\n - backBuffer.style.left = Math.round(position.x - leftOffset) + \'%\';\n - backBuffer.style.top = Math.round(position.y - topOffset) + \'%\';\n - },\n -\n - /**\n - * Method: createBackBuffer\n - * Create a back buffer.\n - *\n - * Returns:\n - * {DOMElement} The DOM element for the back buffer, undefined if the\n - * grid isn\'t initialized yet.\n - */\n - createBackBuffer: function() {\n - var backBuffer;\n - if(this.grid.length > 0) {\n - backBuffer = document.createElement(\'div\');\n - backBuffer.id = this.div.id + \'_bb\';\n - backBuffer.className = \'olBackBuffer\';\n - backBuffer.style.position = \'absolute\';\n - backBuffer.style.width = \'100%\';\n - backBuffer.style.height = \'100%\';\n - for(var i=0, lenI=this.grid.length; i<lenI; i++) {\n - for(var j=0, lenJ=this.grid[i].length; j<lenJ; j++) {\n - var tile = this.grid[i][j].createBackBuffer();\n - if(!tile) {\n - continue;\n - }\n - // to be able to correctly position the back buffer we\n - // place the tiles grid at (0, 0) in the back buffer\n - tile.style.top = (i * this.tileSize.h) + \'%\';\n - tile.style.left = (j * this.tileSize.w) + \'%\';\n - backBuffer.appendChild(tile);\n - }\n - }\n - }\n - return backBuffer;\n - },\n -\n - /**\n - * Method: removeBackBuffer\n - * Remove back buffer from DOM.\n - */\n - removeBackBuffer: function() {\n - if(this.backBuffer) {\n - this.div.removeChild(this.backBuffer);\n - this.backBuffer = null;\n - this.backBufferResolution = null;\n - if(this.backBufferTimerId !== null) {\n - window.clearTimeout(this.backBufferTimerId);\n - this.backBufferTimerId = null;\n - }\n - }\n - },\n -\n - /**\n - * Method: moveByPx\n - * Move the layer based on pixel vector.\n - *\n - * Parameters:\n - * dx - {Number}\n - * dy - {Number}\n - */\n - moveByPx: function(dx, dy) {\n - if (!this.singleTile) {\n - this.moveGriddedTiles();\n - }\n - },\n -\n - /**\n - * APIMethod: setTileSize\n - * Check if we are in singleTile mode and if so, set the size as a ratio\n - * of the map size (as specified by the layer\'s \'ratio\' property).\n - * \n - * Parameters:\n - * size - {<OpenLayers.Size>}\n - */\n - setTileSize: function(size) { \n - if (this.singleTile) {\n - size = this.map.getSize();\n - size.h = parseInt(size.h * this.ratio);\n - size.w = parseInt(size.w * this.ratio);\n - } \n - OpenLayers.Layer.HTTPRequest.prototype.setTileSize.apply(this, [size]);\n - },\n -\n - /**\n - * APIMethod: getTilesBounds\n - * Return the bounds of the tile grid.\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>} A Bounds object representing the bounds of all the\n - * currently loaded tiles (including those partially or not at all seen \n - * onscreen).\n - */\n - getTilesBounds: function() { \n - var bounds = null; \n - \n - var length = this.grid.length;\n - if (length) {\n - var bottomLeftTileBounds = this.grid[length - 1][0].bounds,\n - width = this.grid[0].length * bottomLeftTileBounds.getWidth(),\n - height = this.grid.length * bottomLeftTileBounds.getHeight();\n - \n - bounds = new OpenLayers.Bounds(bottomLeftTileBounds.left, \n - bottomLeftTileBounds.bottom,\n - bottomLeftTileBounds.left + width, \n - bottomLeftTileBounds.bottom + height);\n - } \n - return bounds;\n - },\n -\n - /**\n - * Method: initSingleTile\n - * \n - * Parameters: \n - * bounds - {<OpenLayers.Bounds>}\n - */\n - initSingleTile: function(bounds) {\n - this.clearTileQueue();\n -\n - //determine new tile bounds\n - var center = bounds.getCenterLonLat();\n - var tileWidth = bounds.getWidth() * this.ratio;\n - var tileHeight = bounds.getHeight() * this.ratio;\n - \n - var tileBounds = \n - new OpenLayers.Bounds(center.lon - (tileWidth/2),\n - center.lat - (tileHeight/2),\n - center.lon + (tileWidth/2),\n - center.lat + (tileHeight/2));\n - \n - var px = this.map.getLayerPxFromLonLat({\n - lon: tileBounds.left,\n - lat: tileBounds.top\n - });\n -\n - if (!this.grid.length) {\n - this.grid[0] = [];\n - }\n -\n - var tile = this.grid[0][0];\n - if (!tile) {\n - tile = this.addTile(tileBounds, px);\n - \n - this.addTileMonitoringHooks(tile);\n - tile.draw();\n - this.grid[0][0] = tile;\n - } else {\n - tile.moveTo(tileBounds, px);\n - } \n - \n - //remove all but our single tile\n - this.removeExcessTiles(1,1);\n -\n - // store the resolution of the grid\n - this.gridResolution = this.getServerResolution();\n - },\n -\n - /** \n - * Method: calculateGridLayout\n - * Generate parameters for the grid layout.\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bound>|Object} OpenLayers.Bounds or an\n - * object with a \'left\' and \'top\' properties.\n - * origin - {<OpenLayers.LonLat>|Object} OpenLayers.LonLat or an\n - * object with a \'lon\' and \'lat\' properties.\n - * resolution - {Number}\n - *\n - * Returns:\n - * {Object} containing properties tilelon, tilelat, tileoffsetlat,\n - * tileoffsetlat, tileoffsetx, tileoffsety\n - */\n - calculateGridLayout: function(bounds, origin, resolution) {\n - var tilelon = resolution * this.tileSize.w;\n - var tilelat = resolution * this.tileSize.h;\n - \n - var offsetlon = bounds.left - origin.lon;\n - var tilecol = Math.floor(offsetlon/tilelon) - this.buffer;\n - var tilecolremain = offsetlon/tilelon - tilecol;\n - var tileoffsetx = -tilecolremain * this.tileSize.w;\n - var tileoffsetlon = origin.lon + tilecol * tilelon;\n - \n - var offsetlat = bounds.top - (origin.lat + tilelat); \n - var tilerow = Math.ceil(offsetlat/tilelat) + this.buffer;\n - var tilerowremain = tilerow - offsetlat/tilelat;\n - var tileoffsety = -tilerowremain * this.tileSize.h;\n - var tileoffsetlat = origin.lat + tilerow * tilelat;\n - \n - return { \n - tilelon: tilelon, tilelat: tilelat,\n - tileoffsetlon: tileoffsetlon, tileoffsetlat: tileoffsetlat,\n - tileoffsetx: tileoffsetx, tileoffsety: tileoffsety\n - };\n -\n - },\n - \n - /**\n - * Method: getTileOrigin\n - * Determine the origin for aligning the grid of tiles. If a <tileOrigin>\n - * property is supplied, that will be returned. Otherwise, the origin\n - * will be derived from the layer\'s <maxExtent> property. In this case,\n - * the tile origin will be the corner of the <maxExtent> given by the \n - * <tileOriginCorner> property.\n - *\n - * Returns:\n - * {<OpenLayers.LonLat>} The tile origin.\n - */\n - getTileOrigin: function() {\n - var origin = this.tileOrigin;\n - if (!origin) {\n - var extent = this.getMaxExtent();\n - var edges = ({\n - "tl": ["left", "top"],\n - "tr": ["right", "top"],\n - "bl": ["left", "bottom"],\n - "br": ["right", "bottom"]\n - })[this.tileOriginCorner];\n - origin = new OpenLayers.LonLat(extent[edges[0]], extent[edges[1]]);\n - }\n - return origin;\n - },\n -\n - /**\n - * Method: initGriddedTiles\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - */\n - initGriddedTiles:function(bounds) {\n - this.clearTileQueue();\n -\n - // work out mininum number of rows and columns; this is the number of\n - // tiles required to cover the viewport plus at least one for panning\n -\n - var viewSize = this.map.getSize();\n - var minRows = Math.ceil(viewSize.h/this.tileSize.h) + \n - Math.max(1, 2 * this.buffer);\n - var minCols = Math.ceil(viewSize.w/this.tileSize.w) +\n - Math.max(1, 2 * this.buffer);\n - \n - var origin = this.getTileOrigin();\n - var resolution = this.getServerResolution();\n - \n - var tileLayout = this.calculateGridLayout(bounds, origin, resolution);\n -\n - var tileoffsetx = Math.round(tileLayout.tileoffsetx); // heaven help us\n - var tileoffsety = Math.round(tileLayout.tileoffsety);\n -\n - var tileoffsetlon = tileLayout.tileoffsetlon;\n - var tileoffsetlat = tileLayout.tileoffsetlat;\n - \n - var tilelon = tileLayout.tilelon;\n - var tilelat = tileLayout.tilelat;\n -\n - var startX = tileoffsetx; \n - var startLon = tileoffsetlon;\n -\n - var rowidx = 0;\n - \n - var layerContainerDivLeft = parseInt(this.map.layerContainerDiv.style.left);\n - var layerContainerDivTop = parseInt(this.map.layerContainerDiv.style.top);\n -\n - var tileData = [], center = this.map.getCenter();\n - do {\n - var row = this.grid[rowidx++];\n - if (!row) {\n - row = [];\n - this.grid.push(row);\n - }\n -\n - tileoffsetlon = startLon;\n - tileoffsetx = startX;\n - var colidx = 0;\n - \n - do {\n - var tileBounds = \n - new OpenLayers.Bounds(tileoffsetlon, \n - tileoffsetlat, \n - tileoffsetlon + tilelon,\n - tileoffsetlat + tilelat);\n -\n - var x = tileoffsetx;\n - x -= layerContainerDivLeft;\n -\n - var y = tileoffsety;\n - y -= layerContainerDivTop;\n -\n - var px = new OpenLayers.Pixel(x, y);\n - var tile = row[colidx++];\n - if (!tile) {\n - tile = this.addTile(tileBounds, px);\n - this.addTileMonitoringHooks(tile);\n - row.push(tile);\n - } else {\n - tile.moveTo(tileBounds, px, false);\n - }\n - var tileCenter = tileBounds.getCenterLonLat();\n - tileData.push({\n - tile: tile,\n - distance: Math.pow(tileCenter.lon - center.lon, 2) +\n - Math.pow(tileCenter.lat - center.lat, 2)\n - });\n - \n - tileoffsetlon += tilelon; \n - tileoffsetx += this.tileSize.w;\n - } while ((tileoffsetlon <= bounds.right + tilelon * this.buffer)\n - || colidx < minCols);\n - \n - tileoffsetlat -= tilelat;\n - tileoffsety += this.tileSize.h;\n - } while((tileoffsetlat >= bounds.bottom - tilelat * this.buffer)\n - || rowidx < minRows);\n - \n - //shave off exceess rows and colums\n - this.removeExcessTiles(rowidx, colidx);\n -\n - // store the resolution of the grid\n - this.gridResolution = this.getServerResolution();\n -\n - //now actually draw the tiles\n - tileData.sort(function(a, b) {\n - return a.distance - b.distance; \n - });\n - for (var i=0, ii=tileData.length; i<ii; ++i) {\n - tileData[i].tile.draw();\n - }\n - },\n -\n - /**\n - * Method: getMaxExtent\n - * Get this layer\'s maximum extent. (Implemented as a getter for\n - * potential specific implementations in sub-classes.)\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>}\n - */\n - getMaxExtent: function() {\n - return this.maxExtent;\n - },\n - \n - /**\n - * APIMethod: addTile\n - * Create a tile, initialize it, and add it to the layer div. \n - *\n - * Parameters\n - * bounds - {<OpenLayers.Bounds>}\n - * position - {<OpenLayers.Pixel>}\n - *\n - * Returns:\n - * {<OpenLayers.Tile>} The added OpenLayers.Tile\n - */\n - addTile: function(bounds, position) {\n - var tile = new this.tileClass(\n - this, position, bounds, null, this.tileSize, this.tileOptions\n - );\n - tile.events.register("beforedraw", this, this.queueTileDraw);\n - return tile;\n - },\n - \n - /** \n - * Method: addTileMonitoringHooks\n - * This function takes a tile as input and adds the appropriate hooks to \n - * the tile so that the layer can keep track of the loading tiles.\n - * \n - * Parameters: \n - * tile - {<OpenLayers.Tile>}\n - */\n - addTileMonitoringHooks: function(tile) {\n - \n - tile.onLoadStart = function() {\n - //if that was first tile then trigger a \'loadstart\' on the layer\n - if (this.loading === false) {\n - this.loading = true;\n - this.events.triggerEvent("loadstart");\n - }\n - this.events.triggerEvent("tileloadstart", {tile: tile});\n - this.numLoadingTiles++;\n - };\n - \n - tile.onLoadEnd = function() {\n - this.numLoadingTiles--;\n - this.events.triggerEvent("tileloaded", {tile: tile});\n - //if that was the last tile, then trigger a \'loadend\' on the layer\n - if (this.tileQueue.length === 0 && this.numLoadingTiles === 0) {\n - this.loading = false;\n - this.events.triggerEvent("loadend");\n - if(this.backBuffer) {\n - // the removal of the back buffer is delayed to prevent flash\n - // effects due to the animation of tile displaying\n - this.backBufferTimerId = window.setTimeout(\n - OpenLayers.Function.bind(this.removeBackBuffer, this),\n - this.removeBackBufferDelay\n - );\n - }\n - }\n - };\n - \n - tile.onLoadError = function() {\n - this.events.triggerEvent("tileerror", {tile: tile});\n - };\n - \n - tile.events.on({\n - "loadstart": tile.onLoadStart,\n - "loadend": tile.onLoadEnd,\n - "unload": tile.onLoadEnd,\n - "loaderror": tile.onLoadError,\n - scope: this\n - });\n - },\n -\n - /** \n - * Method: removeTileMonitoringHooks\n - * This function takes a tile as input and removes the tile hooks \n - * that were added in addTileMonitoringHooks()\n - * \n - * Parameters: \n - * tile - {<OpenLayers.Tile>}\n - */\n - removeTileMonitoringHooks: function(tile) {\n - tile.unload();\n - tile.events.un({\n - "loadstart": tile.onLoadStart,\n - "loadend": tile.onLoadEnd,\n - "unload": tile.onLoadEnd,\n - "loaderror": tile.onLoadError,\n - scope: this\n - });\n - },\n - \n - /**\n - * Method: moveGriddedTiles\n - *\n - * Parameter:\n - * deferred - {Boolean} true if this is a deferred call that should not\n - * be delayed.\n - */\n - moveGriddedTiles: function(deferred) {\n - if (!deferred && !OpenLayers.Animation.isNative) {\n - if (this.moveTimerId != null) {\n - window.clearTimeout(this.moveTimerId);\n - }\n - this.moveTimerId = window.setTimeout(\n - this.deferMoveGriddedTiles, this.tileLoadingDelay\n - );\n - return;\n - }\n - var buffer = this.buffer || 1;\n - var scale = this.getResolutionScale();\n - while(true) {\n - var tlViewPort = {\n - x: (this.grid[0][0].position.x * scale) +\n - parseInt(this.div.style.left, 10) +\n - parseInt(this.map.layerContainerDiv.style.left),\n - y: (this.grid[0][0].position.y * scale) +\n - parseInt(this.div.style.top, 10) +\n - parseInt(this.map.layerContainerDiv.style.top)\n - };\n - var tileSize = {\n - w: this.tileSize.w * scale,\n - h: this.tileSize.h * scale\n - };\n - if (tlViewPort.x > -tileSize.w * (buffer - 1)) {\n - this.shiftColumn(true);\n - } else if (tlViewPort.x < -tileSize.w * buffer) {\n - this.shiftColumn(false);\n - } else if (tlViewPort.y > -tileSize.h * (buffer - 1)) {\n - this.shiftRow(true);\n - } else if (tlViewPort.y < -tileSize.h * buffer) {\n - this.shiftRow(false);\n - } else {\n - break;\n - }\n - }\n - },\n -\n - /**\n - * Method: shiftRow\n - * Shifty grid work\n - *\n - * Parameters:\n - * prepend - {Boolean} if true, prepend to beginning.\n - * if false, then append to end\n - */\n - shiftRow:function(prepend) {\n - var modelRowIndex = (prepend) ? 0 : (this.grid.length - 1);\n - var grid = this.grid;\n - var modelRow = grid[modelRowIndex];\n -\n - var resolution = this.getServerResolution();\n - var deltaY = (prepend) ? -this.tileSize.h : this.tileSize.h;\n - var deltaLat = resolution * -deltaY;\n -\n - var row = (prepend) ? grid.pop() : grid.shift();\n -\n - for (var i=0, len=modelRow.length; i<len; i++) {\n - var modelTile = modelRow[i];\n - var bounds = modelTile.bounds.clone();\n - var position = modelTile.position.clone();\n - bounds.bottom = bounds.bottom + deltaLat;\n - bounds.top = bounds.top + deltaLat;\n - position.y = position.y + deltaY;\n - row[i].moveTo(bounds, position);\n - }\n -\n - if (prepend) {\n - grid.unshift(row);\n - } else {\n - grid.push(row);\n - }\n - },\n -\n - /**\n - * Method: shiftColumn\n - * Shift grid work in the other dimension\n - *\n - * Parameters:\n - * prepend - {Boolean} if true, prepend to beginning.\n - * if false, then append to end\n - */\n - shiftColumn: function(prepend) {\n - var deltaX = (prepend) ? -this.tileSize.w : this.tileSize.w;\n - var resolution = this.getServerResolution();\n - var deltaLon = resolution * deltaX;\n -\n - for (var i=0, len=this.grid.length; i<len; i++) {\n - var row = this.grid[i];\n - var modelTileIndex = (prepend) ? 0 : (row.length - 1);\n - var modelTile = row[modelTileIndex];\n - \n - var bounds = modelTile.bounds.clone();\n - var position = modelTile.position.clone();\n - bounds.left = bounds.left + deltaLon;\n - bounds.right = bounds.right + deltaLon;\n - position.x = position.x + deltaX;\n -\n - var tile = prepend ? this.grid[i].pop() : this.grid[i].shift();\n - tile.moveTo(bounds, position);\n - if (prepend) {\n - row.unshift(tile);\n - } else {\n - row.push(tile);\n - }\n - }\n - },\n -\n - /**\n - * Method: removeExcessTiles\n - * When the size of the map or the buffer changes, we may need to\n - * remove some excess rows and columns.\n - * \n - * Parameters:\n - * rows - {Integer} Maximum number of rows we want our grid to have.\n - * columns - {Integer} Maximum number of columns we want our grid to have.\n - */\n - removeExcessTiles: function(rows, columns) {\n - var i, l;\n - \n - // remove extra rows\n - while (this.grid.length > rows) {\n - var row = this.grid.pop();\n - for (i=0, l=row.length; i<l; i++) {\n - var tile = row[i];\n - this.destroyTile(tile);\n - }\n - }\n - \n - // remove extra columns\n - for (i=0, l=this.grid.length; i<l; i++) {\n - while (this.grid[i].length > columns) {\n - var row = this.grid[i];\n - var tile = row.pop();\n - this.destroyTile(tile);\n - }\n - }\n - },\n -\n - /**\n - * Method: onMapResize\n - * For singleTile layers, this will set a new tile size according to the\n - * dimensions of the map pane.\n - */\n - onMapResize: function() {\n - if (this.singleTile) {\n - this.clearGrid();\n - this.setTileSize();\n - }\n - },\n - \n - /**\n - * APIMethod: getTileBounds\n - * Returns The tile bounds for a layer given a pixel location.\n - *\n - * Parameters:\n - * viewPortPx - {<OpenLayers.Pixel>} The location in the viewport.\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>} Bounds of the tile at the given pixel location.\n - */\n - getTileBounds: function(viewPortPx) {\n - var maxExtent = this.maxExtent;\n - var resolution = this.getResolution();\n - var tileMapWidth = resolution * this.tileSize.w;\n - var tileMapHeight = resolution * this.tileSize.h;\n - var mapPoint = this.getLonLatFromViewPortPx(viewPortPx);\n - var tileLeft = maxExtent.left + (tileMapWidth *\n - Math.floor((mapPoint.lon -\n - maxExtent.left) /\n - tileMapWidth));\n - var tileBottom = maxExtent.bottom + (tileMapHeight *\n - Math.floor((mapPoint.lat -\n - maxExtent.bottom) /\n - tileMapHeight));\n - return new OpenLayers.Bounds(tileLeft, tileBottom,\n - tileLeft + tileMapWidth,\n - tileBottom + tileMapHeight);\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.Grid"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>47032</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/HTTPRequest.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/HTTPRequest.js.xml deleted file mode 100644 index 43dfa6ee8fcedddbb1181bcecc77c0804e6d38b0..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/HTTPRequest.js.xml +++ /dev/null @@ -1,274 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>HTTPRequest.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.HTTPRequest\n - * \n - * Inherits from: \n - * - <OpenLayers.Layer>\n - */\n -OpenLayers.Layer.HTTPRequest = OpenLayers.Class(OpenLayers.Layer, {\n -\n - /** \n - * Constant: URL_HASH_FACTOR\n - * {Float} Used to hash URL param strings for multi-WMS server selection.\n - * Set to the Golden Ratio per Knuth\'s recommendation.\n - */\n - URL_HASH_FACTOR: (Math.sqrt(5) - 1) / 2,\n -\n - /** \n - * Property: url\n - * {Array(String) or String} This is either an array of url strings or \n - * a single url string. \n - */\n - url: null,\n -\n - /** \n - * Property: params\n - * {Object} Hashtable of key/value parameters\n - */\n - params: null,\n - \n - /** \n - * APIProperty: reproject\n - * *Deprecated*. See http://docs.openlayers.org/library/spherical_mercator.html\n - * for information on the replacement for this functionality. \n - * {Boolean} Whether layer should reproject itself based on base layer \n - * locations. This allows reprojection onto commercial layers. \n - * Default is false: Most layers can\'t reproject, but layers \n - * which can create non-square geographic pixels can, like WMS.\n - * \n - */\n - reproject: false,\n -\n - /**\n - * Constructor: OpenLayers.Layer.HTTPRequest\n - * \n - * Parameters:\n - * name - {String}\n - * url - {Array(String) or String}\n - * params - {Object}\n - * options - {Object} Hashtable of extra options to tag onto the layer\n - */\n - initialize: function(name, url, params, options) {\n - OpenLayers.Layer.prototype.initialize.apply(this, [name, options]);\n - this.url = url;\n - if (!this.params) {\n - this.params = OpenLayers.Util.extend({}, params);\n - }\n - },\n -\n - /**\n - * APIMethod: destroy\n - */\n - destroy: function() {\n - this.url = null;\n - this.params = null;\n - OpenLayers.Layer.prototype.destroy.apply(this, arguments); \n - },\n - \n - /**\n - * APIMethod: clone\n - * \n - * Parameters:\n - * obj - {Object}\n - * \n - * Returns:\n - * {<OpenLayers.Layer.HTTPRequest>} An exact clone of this \n - * <OpenLayers.Layer.HTTPRequest>\n - */\n - clone: function (obj) {\n - \n - if (obj == null) {\n - obj = new OpenLayers.Layer.HTTPRequest(this.name,\n - this.url,\n - this.params,\n - this.getOptions());\n - }\n - \n - //get all additions from superclasses\n - obj = OpenLayers.Layer.prototype.clone.apply(this, [obj]);\n -\n - // copy/set any non-init, non-simple values here\n - \n - return obj;\n - },\n -\n - /** \n - * APIMethod: setUrl\n - * \n - * Parameters:\n - * newUrl - {String}\n - */\n - setUrl: function(newUrl) {\n - this.url = newUrl;\n - },\n -\n - /**\n - * APIMethod: mergeNewParams\n - * \n - * Parameters:\n - * newParams - {Object}\n - *\n - * Returns:\n - * redrawn: {Boolean} whether the layer was actually redrawn.\n - */\n - mergeNewParams:function(newParams) {\n - this.params = OpenLayers.Util.extend(this.params, newParams);\n - var ret = this.redraw();\n - if(this.map != null) {\n - this.map.events.triggerEvent("changelayer", {\n - layer: this,\n - property: "params"\n - });\n - }\n - return ret;\n - },\n -\n - /**\n - * APIMethod: redraw\n - * Redraws the layer. Returns true if the layer was redrawn, false if not.\n - *\n - * Parameters:\n - * force - {Boolean} Force redraw by adding random parameter.\n - *\n - * Returns:\n - * {Boolean} The layer was redrawn.\n - */\n - redraw: function(force) { \n - if (force) {\n - return this.mergeNewParams({"_olSalt": Math.random()});\n - } else {\n - return OpenLayers.Layer.prototype.redraw.apply(this, []);\n - }\n - },\n - \n - /**\n - * Method: selectUrl\n - * selectUrl() implements the standard floating-point multiplicative\n - * hash function described by Knuth, and hashes the contents of the \n - * given param string into a float between 0 and 1. This float is then\n - * scaled to the size of the provided urls array, and used to select\n - * a URL.\n - *\n - * Parameters:\n - * paramString - {String}\n - * urls - {Array(String)}\n - * \n - * Returns:\n - * {String} An entry from the urls array, deterministically selected based\n - * on the paramString.\n - */\n - selectUrl: function(paramString, urls) {\n - var product = 1;\n - for (var i=0, len=paramString.length; i<len; i++) { \n - product *= paramString.charCodeAt(i) * this.URL_HASH_FACTOR; \n - product -= Math.floor(product); \n - }\n - return urls[Math.floor(product * urls.length)];\n - },\n -\n - /** \n - * Method: getFullRequestString\n - * Combine url with layer\'s params and these newParams. \n - * \n - * does checking on the serverPath variable, allowing for cases when it \n - * is supplied with trailing ? or &, as well as cases where not. \n - *\n - * return in formatted string like this:\n - * "server?key1=value1&key2=value2&key3=value3"\n - * \n - * WARNING: The altUrl parameter is deprecated and will be removed in 3.0.\n - *\n - * Parameters:\n - * newParams - {Object}\n - * altUrl - {String} Use this as the url instead of the layer\'s url\n - * \n - * Returns: \n - * {String}\n - */\n - getFullRequestString:function(newParams, altUrl) {\n -\n - // if not altUrl passed in, use layer\'s url\n - var url = altUrl || this.url;\n - \n - // create a new params hashtable with all the layer params and the \n - // new params together. then convert to string\n - var allParams = OpenLayers.Util.extend({}, this.params);\n - allParams = OpenLayers.Util.extend(allParams, newParams);\n - var paramsString = OpenLayers.Util.getParameterString(allParams);\n - \n - // if url is not a string, it should be an array of strings, \n - // in which case we will deterministically select one of them in \n - // order to evenly distribute requests to different urls.\n - //\n - if (OpenLayers.Util.isArray(url)) {\n - url = this.selectUrl(paramsString, url);\n - } \n - \n - // ignore parameters that are already in the url search string\n - var urlParams = \n - OpenLayers.Util.upperCaseObject(OpenLayers.Util.getParameters(url));\n - for(var key in allParams) {\n - if(key.toUpperCase() in urlParams) {\n - delete allParams[key];\n - }\n - }\n - paramsString = OpenLayers.Util.getParameterString(allParams);\n - \n - return OpenLayers.Util.urlAppend(url, paramsString);\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.HTTPRequest"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7191</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Image.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Image.js.xml deleted file mode 100644 index 2d807537e1225d8c001da295c809f22bc0019b9e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Image.js.xml +++ /dev/null @@ -1,303 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Image.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n - \n -/**\n - * @requires OpenLayers/Layer.js\n - * @requires OpenLayers/Tile/Image.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.Image\n - * Instances of OpenLayers.Layer.Image are used to display data from a web\n - * accessible image as a map layer. Create a new image layer with the\n - * <OpenLayers.Layer.Image> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Layer>\n - */\n -OpenLayers.Layer.Image = OpenLayers.Class(OpenLayers.Layer, {\n -\n - /**\n - * Property: isBaseLayer\n - * {Boolean} The layer is a base layer. Default is true. Set this property\n - * in the layer options\n - */\n - isBaseLayer: true,\n - \n - /**\n - * Property: url\n - * {String} URL of the image to use\n - */\n - url: null,\n -\n - /**\n - * Property: extent\n - * {<OpenLayers.Bounds>} The image bounds in map units. This extent will\n - * also be used as the default maxExtent for the layer. If you wish\n - * to have a maxExtent that is different than the image extent, set the\n - * maxExtent property of the options argument (as with any other layer).\n - */\n - extent: null,\n - \n - /**\n - * Property: size\n - * {<OpenLayers.Size>} The image size in pixels\n - */\n - size: null,\n -\n - /**\n - * Property: tile\n - * {<OpenLayers.Tile.Image>}\n - */\n - tile: null,\n -\n - /**\n - * Property: aspectRatio\n - * {Float} The ratio of height/width represented by a single pixel in the\n - * graphic\n - */\n - aspectRatio: null,\n -\n - /**\n - * Constructor: OpenLayers.Layer.Image\n - * Create a new image layer\n - *\n - * Parameters:\n - * name - {String} A name for the layer.\n - * url - {String} Relative or absolute path to the image\n - * extent - {<OpenLayers.Bounds>} The extent represented by the image\n - * size - {<OpenLayers.Size>} The size (in pixels) of the image\n - * options - {Object} Hashtable of extra options to tag onto the layer\n - */\n - initialize: function(name, url, extent, size, options) {\n - this.url = url;\n - this.extent = extent;\n - this.maxExtent = extent;\n - this.size = size;\n - OpenLayers.Layer.prototype.initialize.apply(this, [name, options]);\n -\n - this.aspectRatio = (this.extent.getHeight() / this.size.h) /\n - (this.extent.getWidth() / this.size.w);\n - }, \n -\n - /**\n - * Method: destroy\n - * Destroy this layer\n - */\n - destroy: function() {\n - if (this.tile) {\n - this.removeTileMonitoringHooks(this.tile);\n - this.tile.destroy();\n - this.tile = null;\n - }\n - OpenLayers.Layer.prototype.destroy.apply(this, arguments);\n - },\n - \n - /**\n - * Method: clone\n - * Create a clone of this layer\n - *\n - * Paramters:\n - * obj - {Object} An optional layer (is this ever used?)\n - *\n - * Returns:\n - * {<OpenLayers.Layer.Image>} An exact copy of this layer\n - */\n - clone: function(obj) {\n - \n - if(obj == null) {\n - obj = new OpenLayers.Layer.Image(this.name,\n - this.url,\n - this.extent,\n - this.size,\n - this.getOptions());\n - }\n -\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.prototype.clone.apply(this, [obj]);\n -\n - // copy/set any non-init, non-simple values here\n -\n - return obj;\n - }, \n - \n - /**\n - * APIMethod: setMap\n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - setMap: function(map) {\n - /**\n - * If nothing to do with resolutions has been set, assume a single\n - * resolution determined by ratio*extent/size - if an image has a\n - * pixel aspect ratio different than one (as calculated above), the\n - * image will be stretched in one dimension only.\n - */\n - if( this.options.maxResolution == null ) {\n - this.options.maxResolution = this.aspectRatio *\n - this.extent.getWidth() /\n - this.size.w;\n - }\n - OpenLayers.Layer.prototype.setMap.apply(this, arguments);\n - },\n -\n - /** \n - * Method: moveTo\n - * Create the tile for the image or resize it for the new resolution\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - * zoomChanged - {Boolean}\n - * dragging - {Boolean}\n - */\n - moveTo:function(bounds, zoomChanged, dragging) {\n - OpenLayers.Layer.prototype.moveTo.apply(this, arguments);\n -\n - var firstRendering = (this.tile == null);\n -\n - if(zoomChanged || firstRendering) {\n -\n - //determine new tile size\n - this.setTileSize();\n -\n - //determine new position (upper left corner of new bounds)\n - var ulPx = this.map.getLayerPxFromLonLat({\n - lon: this.extent.left,\n - lat: this.extent.top\n - });\n -\n - if(firstRendering) {\n - //create the new tile\n - this.tile = new OpenLayers.Tile.Image(this, ulPx, this.extent, \n - null, this.tileSize);\n - this.addTileMonitoringHooks(this.tile);\n - } else {\n - //just resize the tile and set it\'s new position\n - this.tile.size = this.tileSize.clone();\n - this.tile.position = ulPx.clone();\n - }\n - this.tile.draw();\n - }\n - }, \n -\n - /**\n - * Set the tile size based on the map size.\n - */\n - setTileSize: function() {\n - var tileWidth = this.extent.getWidth() / this.map.getResolution();\n - var tileHeight = this.extent.getHeight() / this.map.getResolution();\n - this.tileSize = new OpenLayers.Size(tileWidth, tileHeight);\n - },\n -\n - /** \n - * Method: addTileMonitoringHooks\n - * This function takes a tile as input and adds the appropriate hooks to \n - * the tile so that the layer can keep track of the loading tiles.\n - * \n - * Parameters: \n - * tile - {<OpenLayers.Tile>}\n - */\n - addTileMonitoringHooks: function(tile) {\n - tile.onLoadStart = function() {\n - this.events.triggerEvent("loadstart");\n - };\n - tile.events.register("loadstart", this, tile.onLoadStart);\n - \n - tile.onLoadEnd = function() {\n - this.events.triggerEvent("loadend");\n - };\n - tile.events.register("loadend", this, tile.onLoadEnd);\n - tile.events.register("unload", this, tile.onLoadEnd);\n - },\n -\n - /** \n - * Method: removeTileMonitoringHooks\n - * This function takes a tile as input and removes the tile hooks \n - * that were added in <addTileMonitoringHooks>.\n - * \n - * Parameters: \n - * tile - {<OpenLayers.Tile>}\n - */\n - removeTileMonitoringHooks: function(tile) {\n - tile.unload();\n - tile.events.un({\n - "loadstart": tile.onLoadStart,\n - "loadend": tile.onLoadEnd,\n - "unload": tile.onLoadEnd,\n - scope: this\n - });\n - },\n - \n - /**\n - * APIMethod: setUrl\n - * \n - * Parameters:\n - * newUrl - {String}\n - */\n - setUrl: function(newUrl) {\n - this.url = newUrl;\n - this.tile.draw();\n - },\n -\n - /** \n - * APIMethod: getURL\n - * The url we return is always the same (the image itself never changes)\n - * so we can ignore the bounds parameter (it will always be the same, \n - * anyways) \n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - */\n - getURL: function(bounds) {\n - return this.url;\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.Image"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7832</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/KaMap.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/KaMap.js.xml deleted file mode 100644 index 26e182c5bcd36388434bc2e234858aa8087c0b3c..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/KaMap.js.xml +++ /dev/null @@ -1,220 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>KaMap.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer/Grid.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.KaMap\n - * \n - * Inherits from:\n - * - <OpenLayers.Layer.Grid>\n - */\n -OpenLayers.Layer.KaMap = OpenLayers.Class(OpenLayers.Layer.Grid, {\n -\n - /** \n - * APIProperty: isBaseLayer\n - * {Boolean} KaMap Layer is always a base layer \n - */ \n - isBaseLayer: true,\n -\n - /**\n - * Constant: DEFAULT_PARAMS\n - * {Object} parameters set by default. The default parameters set \n - * the format via the \'i\' parameter to \'jpeg\'. \n - */\n - DEFAULT_PARAMS: {\n - i: \'jpeg\',\n - map: \'\'\n - },\n - \n - /**\n - * Constructor: OpenLayers.Layer.KaMap\n - * \n - * Parameters:\n - * name - {String}\n - * url - {String}\n - * params - {Object} Parameters to be sent to the HTTP server in the\n - * query string for the tile. The format can be set via the \'i\'\n - * parameter (defaults to jpg) , and the map should be set via \n - * the \'map\' parameter. It has been reported that ka-Map may behave\n - * inconsistently if your format parameter does not match the format\n - * parameter configured in your config.php. (See ticket #327 for more\n - * information.)\n - * options - {Object} Additional options for the layer. Any of the \n - * APIProperties listed on this layer, and any layer types it\n - * extends, can be overridden through the options parameter. \n - */\n - initialize: function(name, url, params, options) {\n - OpenLayers.Layer.Grid.prototype.initialize.apply(this, arguments);\n - this.params = OpenLayers.Util.applyDefaults(\n - this.params, this.DEFAULT_PARAMS\n - );\n - },\n -\n - /**\n - * Method: getURL\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} \n - * \n - * Returns:\n - * {String} A string with the layer\'s url and parameters and also the \n - * passed-in bounds and appropriate tile size specified as \n - * parameters\n - */\n - getURL: function (bounds) {\n - bounds = this.adjustBounds(bounds);\n - var mapRes = this.map.getResolution();\n - var scale = Math.round((this.map.getScale() * 10000)) / 10000;\n - var pX = Math.round(bounds.left / mapRes);\n - var pY = -Math.round(bounds.top / mapRes);\n - return this.getFullRequestString(\n - { t: pY, \n - l: pX,\n - s: scale\n - });\n - },\n -\n - /** \n - * Method: calculateGridLayout\n - * ka-Map uses the center point of the map as an origin for \n - * its tiles. Override calculateGridLayout to center tiles \n - * correctly for this case.\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bound>}\n - * origin - {<OpenLayers.LonLat>}\n - * resolution - {Number}\n - *\n - * Returns:\n - * {Object} Object containing properties tilelon, tilelat, tileoffsetlat,\n - * tileoffsetlat, tileoffsetx, tileoffsety\n - */\n - calculateGridLayout: function(bounds, origin, resolution) {\n - var tilelon = resolution*this.tileSize.w;\n - var tilelat = resolution*this.tileSize.h;\n - \n - var offsetlon = bounds.left;\n - var tilecol = Math.floor(offsetlon/tilelon) - this.buffer;\n - var tilecolremain = offsetlon/tilelon - tilecol;\n - var tileoffsetx = -tilecolremain * this.tileSize.w;\n - var tileoffsetlon = tilecol * tilelon;\n - \n - var offsetlat = bounds.top; \n - var tilerow = Math.ceil(offsetlat/tilelat) + this.buffer;\n - var tilerowremain = tilerow - offsetlat/tilelat;\n - var tileoffsety = -(tilerowremain+1) * this.tileSize.h;\n - var tileoffsetlat = tilerow * tilelat;\n - \n - return { \n - tilelon: tilelon, tilelat: tilelat,\n - tileoffsetlon: tileoffsetlon, tileoffsetlat: tileoffsetlat,\n - tileoffsetx: tileoffsetx, tileoffsety: tileoffsety\n - };\n - }, \n -\n - /**\n - * APIMethod: clone\n - * \n - * Parameters: \n - * obj - {Object}\n - * \n - * Returns:\n - * {<OpenLayers.Layer.Kamap>} An exact clone of this OpenLayers.Layer.KaMap\n - */\n - clone: function (obj) {\n - \n - if (obj == null) {\n - obj = new OpenLayers.Layer.KaMap(this.name,\n - this.url,\n - this.params,\n - this.getOptions());\n - }\n -\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);\n -\n - // copy/set any non-init, non-simple values here\n - if (this.tileSize != null) {\n - obj.tileSize = this.tileSize.clone();\n - }\n - \n - // we do not want to copy reference to grid, so we make a new array\n - obj.grid = [];\n -\n - return obj;\n - }, \n - \n - /**\n - * APIMethod: getTileBounds\n - * Returns The tile bounds for a layer given a pixel location.\n - *\n - * Parameters:\n - * viewPortPx - {<OpenLayers.Pixel>} The location in the viewport.\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>} Bounds of the tile at the given pixel location.\n - */\n - getTileBounds: function(viewPortPx) {\n - var resolution = this.getResolution();\n - var tileMapWidth = resolution * this.tileSize.w;\n - var tileMapHeight = resolution * this.tileSize.h;\n - var mapPoint = this.getLonLatFromViewPortPx(viewPortPx);\n - var tileLeft = tileMapWidth * Math.floor(mapPoint.lon / tileMapWidth);\n - var tileBottom = tileMapHeight * Math.floor(mapPoint.lat / tileMapHeight);\n - return new OpenLayers.Bounds(tileLeft, tileBottom,\n - tileLeft + tileMapWidth,\n - tileBottom + tileMapHeight);\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.KaMap"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6009</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/KaMapCache.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/KaMapCache.js.xml deleted file mode 100644 index ab8291927f55154b3be686d2ae8bb5dab56c8484..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/KaMapCache.js.xml +++ /dev/null @@ -1,187 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>KaMapCache.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer/Grid.js\n - * @requires OpenLayers/Layer/KaMap.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.KaMapCache\n - * \n - * This class is designed to talk directly to a web-accessible ka-Map\n - * cache generated by the precache2.php script.\n - * \n - * To create a a new KaMapCache layer, you must indicate also the "i" parameter\n - * (that will be used to calculate the file extension), and another special\n - * parameter, object names "metaTileSize", with "h" (height) and "w" (width)\n - * properties.\n - * \n - * // Create a new kaMapCache layer. \n - * var kamap_base = new OpenLayers.Layer.KaMapCache(\n - * "Satellite",\n - * "http://www.example.org/web/acessible/cache",\n - * {g: "satellite", map: "world", i: \'png24\', metaTileSize: {w: 5, h: 5} }\n - * );\n - * \n - * // Create an kaMapCache overlay layer (using "isBaseLayer: false"). \n - * // Forces the output to be a "gif", using the "i" parameter.\n - * var kamap_overlay = new OpenLayers.Layer.KaMapCache(\n - * "Streets",\n - * "http://www.example.org/web/acessible/cache",\n - * {g: "streets", map: "world", i: "gif", metaTileSize: {w: 5, h: 5} },\n - * {isBaseLayer: false}\n - * );\n - *\n - * The cache URLs must look like: \n - * var/cache/World/50000/Group_Name/def/t-440320/l20480\n - * \n - * This means that the cache generated via tile.php will *not* work with\n - * this class, and should instead use the KaMap layer.\n - *\n - * More information is available in Ticket #1518.\n - * \n - * Inherits from:\n - * - <OpenLayers.Layer.KaMap>\n - * - <OpenLayers.Layer.Grid>\n - */\n -OpenLayers.Layer.KaMapCache = OpenLayers.Class(OpenLayers.Layer.KaMap, {\n -\n - /**\n - * Constant: IMAGE_EXTENSIONS\n - * {Object} Simple hash map to convert format to extension.\n - */\n - IMAGE_EXTENSIONS: {\n - \'jpeg\': \'jpg\',\n - \'gif\' : \'gif\',\n - \'png\' : \'png\',\n - \'png8\' : \'png\',\n - \'png24\' : \'png\',\n - \'dithered\' : \'png\'\n - },\n - \n - /**\n - * Constant: DEFAULT_FORMAT\n - * {Object} Simple hash map to convert format to extension.\n - */\n - DEFAULT_FORMAT: \'jpeg\',\n - \n - /**\n - * Constructor: OpenLayers.Layer.KaMapCache\n - * \n - * Parameters:\n - * name - {String}\n - * url - {String}\n - * params - {Object} Parameters to be sent to the HTTP server in the\n - * query string for the tile. The format can be set via the \'i\'\n - * parameter (defaults to jpg) , and the map should be set via \n - * the \'map\' parameter. It has been reported that ka-Map may behave\n - * inconsistently if your format parameter does not match the format\n - * parameter configured in your config.php. (See ticket #327 for more\n - * information.)\n - * options - {Object} Additional options for the layer. Any of the \n - * APIProperties listed on this layer, and any layer types it\n - * extends, can be overridden through the options parameter. \n - */\n - initialize: function(name, url, params, options) {\n - OpenLayers.Layer.KaMap.prototype.initialize.apply(this, arguments);\n - this.extension = this.IMAGE_EXTENSIONS[this.params.i.toLowerCase() || this.DEFAULT_FORMAT];\n - },\n -\n - /**\n - * Method: getURL\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} \n - * \n - * Returns:\n - * {String} A string with the layer\'s url and parameters and also the \n - * passed-in bounds and appropriate tile size specified as \n - * parameters\n - */\n - getURL: function (bounds) {\n - bounds = this.adjustBounds(bounds);\n - var mapRes = this.map.getResolution();\n - var scale = Math.round((this.map.getScale() * 10000)) / 10000;\n - var pX = Math.round(bounds.left / mapRes);\n - var pY = -Math.round(bounds.top / mapRes);\n -\n - var metaX = Math.floor(pX / this.tileSize.w / this.params.metaTileSize.w) * this.tileSize.w * this.params.metaTileSize.w;\n - var metaY = Math.floor(pY / this.tileSize.h / this.params.metaTileSize.h) * this.tileSize.h * this.params.metaTileSize.h;\n - \n - var components = [\n - "/",\n - this.params.map,\n - "/",\n - scale,\n - "/",\n - this.params.g.replace(/\\s/g, \'_\'),\n - "/def/t", \n - metaY,\n - "/l",\n - metaX,\n - "/t",\n - pY,\n - "l",\n - pX,\n - ".",\n - this.extension\n - ];\n -\n - var url = this.url;\n -\n - if (OpenLayers.Util.isArray(url)) {\n - url = this.selectUrl(components.join(\'\'), url);\n - }\n - return url + components.join("");\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.KaMapCache"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4875</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/MapGuide.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/MapGuide.js.xml deleted file mode 100644 index 0be6a363bd4c0b1e92a761dca39f5181da400677..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/MapGuide.js.xml +++ /dev/null @@ -1,523 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>MapGuide.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Request/XMLHttpRequest.js\n - * @requires OpenLayers/Layer/Grid.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.MapGuide\n - * Instances of OpenLayers.Layer.MapGuide are used to display\n - * data from a MapGuide OS instance.\n - *\n - * Inherits from:\n - * - <OpenLayers.Layer.Grid>\n - */\n -OpenLayers.Layer.MapGuide = OpenLayers.Class(OpenLayers.Layer.Grid, {\n -\n - /** \n - * APIProperty: isBaseLayer\n - * {Boolean} Treat this layer as a base layer. Default is true.\n - **/\n - isBaseLayer: true,\n - \n - /**\n - * APIProperty: useHttpTile\n - * {Boolean} use a tile cache exposed directly via a webserver rather than the \n - * via mapguide server. This does require extra configuration on the Mapguide Server,\n - * and will only work when singleTile is false. The url for the layer must be set to the\n - * webserver path rather than the Mapguide mapagent.\n - * See http://trac.osgeo.org/mapguide/wiki/CodeSamples/Tiles/ServingTilesViaHttp\n - **/\n - useHttpTile: false,\n - \n - /** \n - * APIProperty: singleTile\n - * {Boolean} use tile server or request single tile image. \n - **/\n - singleTile: false,\n - \n - /** \n - * APIProperty: useOverlay\n - * {Boolean} flag to indicate if the layer should be retrieved using\n - * GETMAPIMAGE (default) or using GETDYNAMICOVERLAY requests.\n - **/\n - useOverlay: false,\n - \n - /** \n - * APIProperty: useAsyncOverlay\n - * {Boolean} indicates if the MapGuide site supports the asynchronous \n - * GETDYNAMICOVERLAY requests which is available in MapGuide Enterprise 2010\n - * and MapGuide Open Source v2.0.3 or higher. The newer versions of MG \n - * is called asynchronously, allows selections to be drawn separately from \n - * the map and offers styling options.\n - * \n - * With older versions of MapGuide, set useAsyncOverlay=false. Note that in\n - * this case a synchronous AJAX call is issued and the mapname and session\n - * parameters must be used to initialize the layer, not the mapdefinition\n - * parameter. Also note that this will issue a synchronous AJAX request \n - * before the image request can be issued so the users browser may lock\n - * up if the MG Web tier does not respond in a timely fashion.\n - **/\n - useAsyncOverlay: true,\n - \n - /**\n - * Constant: TILE_PARAMS\n - * {Object} Hashtable of default parameter key/value pairs for tiled layer\n - */\n - TILE_PARAMS: {\n - operation: \'GETTILEIMAGE\',\n - version: \'1.2.0\'\n - },\n -\n - /**\n - * Constant: SINGLE_TILE_PARAMS\n - * {Object} Hashtable of default parameter key/value pairs for untiled layer\n - */\n - SINGLE_TILE_PARAMS: {\n - operation: \'GETMAPIMAGE\',\n - format: \'PNG\',\n - locale: \'en\',\n - clip: \'1\',\n - version: \'1.0.0\'\n - },\n - \n - /**\n - * Constant: OVERLAY_PARAMS\n - * {Object} Hashtable of default parameter key/value pairs for untiled layer\n - */\n - OVERLAY_PARAMS: {\n - operation: \'GETDYNAMICMAPOVERLAYIMAGE\',\n - format: \'PNG\',\n - locale: \'en\',\n - clip: \'1\',\n - version: \'2.0.0\'\n - },\n - \n - /** \n - * Constant: FOLDER_PARAMS\n - * {Object} Hashtable of parameter key/value pairs which describe \n - * the folder structure for tiles as configured in the mapguide \n - * serverconfig.ini section [TileServiceProperties]\n - */\n - FOLDER_PARAMS: {\n - tileColumnsPerFolder: 30,\n - tileRowsPerFolder: 30,\n - format: \'png\',\n - querystring: null\n - },\t\n -\n - /** \n - * Property: defaultSize\n - * {<OpenLayers.Size>} Tile size as produced by MapGuide server\n - **/\n - defaultSize: new OpenLayers.Size(300,300),\n -\n - /** \n - * Property: tileOriginCorner\n - * {String} MapGuide tile server uses top-left as tile origin\n - **/\n - tileOriginCorner: "tl",\n -\n - /**\n - * Constructor: OpenLayers.Layer.MapGuide\n - * Create a new Mapguide layer, either tiled or untiled. \n - *\n - * For tiled layers, the \'groupName\' and \'mapDefinition\' values \n - * must be specified as parameters in the constructor.\n - *\n - * For untiled base layers, specify either combination of \'mapName\' and\n - * \'session\', or \'mapDefinition\' and \'locale\'. \n - *\n - * For older versions of MapGuide and overlay layers, set useAsyncOverlay \n - * to false and in this case mapName and session are required parameters \n - * for the constructor.\n - *\n - * NOTE: MapGuide OS uses a DPI value and degrees to meters conversion \n - * factor that are different than the defaults used in OpenLayers, \n - * so these must be adjusted accordingly in your application. \n - * See the MapGuide example for how to set these values for MGOS.\n - *\n - * Parameters:\n - * name - {String} Name of the layer displayed in the interface\n - * url - {String} Location of the MapGuide mapagent executable\n - * (e.g. http://localhost:8008/mapguide/mapagent/mapagent.fcgi)\n - * params - {Object} hashtable of additional parameters to use. Some\n - * parameters may require additional code on the server. The ones that\n - * you may want to use are: \n - * - mapDefinition - {String} The MapGuide resource definition\n - * (e.g. Library://Samples/Gmap/Maps/gmapTiled.MapDefinition)\n - * - locale - Locale setting \n - * (for untiled overlays layers only)\n - * - mapName - {String} Name of the map as stored in the MapGuide session.\n - * (for untiled layers with a session parameter only)\n - * - session - { String} MapGuide session ID \n - * (for untiled overlays layers only)\n - * - basemaplayergroupname - {String} GroupName for tiled MapGuide layers only\n - * - format - Image format to be returned (for untiled overlay layers only)\n - * - showLayers - {String} A comma separated list of GUID\'s for the\n - * layers to display eg: \'cvc-xcv34,453-345-345sdf\'.\n - * - hideLayers - {String} A comma separated list of GUID\'s for the\n - * layers to hide eg: \'cvc-xcv34,453-345-345sdf\'.\n - * - showGroups - {String} A comma separated list of GUID\'s for the\n - * groups to display eg: \'cvc-xcv34,453-345-345sdf\'.\n - * - hideGroups - {String} A comma separated list of GUID\'s for the\n - * groups to hide eg: \'cvc-xcv34,453-345-345sdf\'\n - * - selectionXml - {String} A selection xml string Some server plumbing\n - * is required to read such a value.\n - * options - {Object} Hashtable of extra options to tag onto the layer; \n - * will vary depending if tiled or untiled maps are being requested\n - */\n - initialize: function(name, url, params, options) {\n - \n - OpenLayers.Layer.Grid.prototype.initialize.apply(this, arguments);\n - \n - // unless explicitly set in options, if the layer is transparent, \n - // it will be an overlay\n - if (options == null || options.isBaseLayer == null) {\n - this.isBaseLayer = ((this.transparent != "true") && \n - (this.transparent != true));\n - }\n -\n - if (options && options.useOverlay!=null) {\n - this.useOverlay = options.useOverlay;\n - }\n - \n - //initialize for untiled layers\n - if (this.singleTile) {\n - if (this.useOverlay) {\n - OpenLayers.Util.applyDefaults(\n - this.params,\n - this.OVERLAY_PARAMS\n - );\n - if (!this.useAsyncOverlay) {\n - this.params.version = "1.0.0";\n - }\n - } else {\n - OpenLayers.Util.applyDefaults(\n - this.params,\n - this.SINGLE_TILE_PARAMS\n - );\n - } \n - } else {\n - //initialize for tiled layers\n - if (this.useHttpTile) {\n - OpenLayers.Util.applyDefaults(\n - this.params,\n - this.FOLDER_PARAMS\n - );\n - } else {\n - OpenLayers.Util.applyDefaults(\n - this.params,\n - this.TILE_PARAMS\n - );\n - }\n - this.setTileSize(this.defaultSize); \n - }\n - },\n -\n - /**\n - * Method: clone\n - * Create a clone of this layer\n - *\n - * Returns:\n - * {<OpenLayers.Layer.MapGuide>} An exact clone of this layer\n - */\n - clone: function (obj) {\n - if (obj == null) {\n - obj = new OpenLayers.Layer.MapGuide(this.name,\n - this.url,\n - this.params,\n - this.getOptions());\n - }\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);\n -\n - return obj;\n - },\n -\n - /**\n - * Method: getURL\n - * Return a query string for this layer\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} A bounds representing the bbox \n - * for the request\n - *\n - * Returns:\n - * {String} A string with the layer\'s url and parameters and also \n - * the passed-in bounds and appropriate tile size specified \n - * as parameters.\n - */\n - getURL: function (bounds) {\n - var url;\n - var center = bounds.getCenterLonLat();\n - var mapSize = this.map.getSize();\n -\n - if (this.singleTile) {\n - //set up the call for GETMAPIMAGE or GETDYNAMICMAPOVERLAY with\n - //dynamic map parameters\n - var params = {\n - setdisplaydpi: OpenLayers.DOTS_PER_INCH,\n - setdisplayheight: mapSize.h*this.ratio,\n - setdisplaywidth: mapSize.w*this.ratio,\n - setviewcenterx: center.lon,\n - setviewcentery: center.lat,\n - setviewscale: this.map.getScale()\n - };\n - \n - if (this.useOverlay && !this.useAsyncOverlay) {\n - //first we need to call GETVISIBLEMAPEXTENT to set the extent\n - var getVisParams = {};\n - getVisParams = OpenLayers.Util.extend(getVisParams, params);\n - getVisParams.operation = "GETVISIBLEMAPEXTENT";\n - getVisParams.version = "1.0.0";\n - getVisParams.session = this.params.session;\n - getVisParams.mapName = this.params.mapName;\n - getVisParams.format = \'text/xml\';\n - url = this.getFullRequestString( getVisParams );\n - \n - OpenLayers.Request.GET({url: url, async: false});\n - }\n - //construct the full URL\n - url = this.getFullRequestString( params );\n - } else {\n -\n - //tiled version\n - var currentRes = this.map.getResolution();\n - var colidx = Math.floor((bounds.left-this.maxExtent.left)/currentRes);\n - colidx = Math.round(colidx/this.tileSize.w);\n - var rowidx = Math.floor((this.maxExtent.top-bounds.top)/currentRes);\n - rowidx = Math.round(rowidx/this.tileSize.h);\n -\n - if (this.useHttpTile){\n -\t url = this.getImageFilePath(\n - {\n - tilecol: colidx,\n - tilerow: rowidx,\n - scaleindex: this.resolutions.length - this.map.zoom - 1\n - });\n -\t\t \n - } else {\n - url = this.getFullRequestString(\n - {\n - tilecol: colidx,\n - tilerow: rowidx,\n - scaleindex: this.resolutions.length - this.map.zoom - 1\n - });\n - }\n - }\n - return url;\n - },\n -\n - /**\n - * Method: getFullRequestString\n - * getFullRequestString on MapGuide layers is special, because we \n - * do a regular expression replace on \',\' in parameters to \'+\'.\n - * This is why it is subclassed here.\n - *\n - * Parameters:\n - * altUrl - {String} Alternative base URL to use.\n - *\n - * Returns:\n - * {String} A string with the layer\'s url appropriately encoded for MapGuide\n - */\n - getFullRequestString:function(newParams, altUrl) {\n - // use layer\'s url unless altUrl passed in\n - var url = (altUrl == null) ? this.url : altUrl;\n - \n - // if url is not a string, it should be an array of strings, \n - // in which case we will randomly select one of them in order\n - // to evenly distribute requests to different urls.\n - if (typeof url == "object") {\n - url = url[Math.floor(Math.random()*url.length)];\n - } \n - // requestString always starts with url\n - var requestString = url; \n -\n - // create a new params hashtable with all the layer params and the \n - // new params together. then convert to string\n - var allParams = OpenLayers.Util.extend({}, this.params);\n - allParams = OpenLayers.Util.extend(allParams, newParams);\n - // ignore parameters that are already in the url search string\n - var urlParams = OpenLayers.Util.upperCaseObject(\n - OpenLayers.Util.getParameters(url));\n - for(var key in allParams) {\n - if(key.toUpperCase() in urlParams) {\n - delete allParams[key];\n - }\n - }\n - var paramsString = OpenLayers.Util.getParameterString(allParams);\n - \n - /* MapGuide needs \'+\' seperating things like bounds/height/width.\n - Since typically this is URL encoded, we use a slight hack: we\n - depend on the list-like functionality of getParameterString to\n - leave \',\' only in the case of list items (since otherwise it is\n - encoded) then do a regular expression replace on the , characters\n - to \'+\' */\n - paramsString = paramsString.replace(/,/g, "+");\n - \n - if (paramsString != "") {\n - var lastServerChar = url.charAt(url.length - 1);\n - if ((lastServerChar == "&") || (lastServerChar == "?")) {\n - requestString += paramsString;\n - } else {\n - if (url.indexOf(\'?\') == -1) {\n - //serverPath has no ? -- add one\n - requestString += \'?\' + paramsString;\n - } else {\n - //serverPath contains ?, so must already have paramsString at the end\n - requestString += \'&\' + paramsString;\n - }\n - }\n - }\n - return requestString;\n - },\n -\n - /** \n - * Method: getImageFilePath\n - * special handler to request mapguide tiles from an http exposed tilecache \n - *\n - * Parameters:\n - * altUrl - {String} Alternative base URL to use.\n - *\n - * Returns:\n - * {String} A string with the url for the tile image\n - */\n - getImageFilePath:function(newParams, altUrl) {\n - // use layer\'s url unless altUrl passed in\n - var url = (altUrl == null) ? this.url : altUrl;\n - \n - // if url is not a string, it should be an array of strings, \n - // in which case we will randomly select one of them in order\n - // to evenly distribute requests to different urls.\n - if (typeof url == "object") {\n - url = url[Math.floor(Math.random()*url.length)];\n - } \n - // requestString always starts with url\n - var requestString = url; \n -\n - var tileRowGroup = "";\n - var tileColGroup = "";\n - \n - if (newParams.tilerow < 0) {\n - tileRowGroup = \'-\';\n - }\n - \n - if (newParams.tilerow == 0 ) {\n - tileRowGroup += \'0\';\n - } else {\n - tileRowGroup += Math.floor(Math.abs(newParams.tilerow/this.params.tileRowsPerFolder)) * this.params.tileRowsPerFolder;\n - }\n - \n - if (newParams.tilecol < 0) {\n - tileColGroup = \'-\';\n - }\n - \n - if (newParams.tilecol == 0) {\n - tileColGroup += \'0\';\n - } else {\n - tileColGroup += Math.floor(Math.abs(newParams.tilecol/this.params.tileColumnsPerFolder)) * this.params.tileColumnsPerFolder;\n - }\t\t\t\t\t\n - \n - var tilePath = \'/S\' + Math.floor(newParams.scaleindex)\n - + \'/\' + this.params.basemaplayergroupname\n - + \'/R\' + tileRowGroup\n - + \'/C\' + tileColGroup\n - + \'/\' + (newParams.tilerow % this.params.tileRowsPerFolder) \n - + \'_\' + (newParams.tilecol % this.params.tileColumnsPerFolder) \n - + \'.\' + this.params.format;\n - \n - if (this.params.querystring) {\n - tilePath += "?" + this.params.querystring;\n - }\n - \n - requestString += tilePath;\n - return requestString;\n - },\n - \n - /** \n - * Method: calculateGridLayout\n - * Generate parameters for the grid layout. This \n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bound>}\n - * origin - {<OpenLayers.LonLat>}\n - * resolution - {Number}\n - *\n - * Returns:\n - * {Object} Object containing properties tilelon, tilelat, tileoffsetlat,\n - * tileoffsetlat, tileoffsetx, tileoffsety\n - */\n - calculateGridLayout: function(bounds, origin, resolution) {\n - var tilelon = resolution * this.tileSize.w;\n - var tilelat = resolution * this.tileSize.h;\n - \n - var offsetlon = bounds.left - origin.lon;\n - var tilecol = Math.floor(offsetlon/tilelon) - this.buffer;\n - var tilecolremain = offsetlon/tilelon - tilecol;\n - var tileoffsetx = -tilecolremain * this.tileSize.w;\n - var tileoffsetlon = origin.lon + tilecol * tilelon;\n - \n - var offsetlat = origin.lat - bounds.top + tilelat; \n - var tilerow = Math.floor(offsetlat/tilelat) - this.buffer;\n - var tilerowremain = tilerow - offsetlat/tilelat;\n - var tileoffsety = tilerowremain * this.tileSize.h;\n - var tileoffsetlat = origin.lat - tilelat*tilerow;\n - \n - return { \n - tilelon: tilelon, tilelat: tilelat,\n - tileoffsetlon: tileoffsetlon, tileoffsetlat: tileoffsetlat,\n - tileoffsetx: tileoffsetx, tileoffsety: tileoffsety\n - };\n - },\n - \n - CLASS_NAME: "OpenLayers.Layer.MapGuide"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>18252</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/MapServer.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/MapServer.js.xml deleted file mode 100644 index 157247e32307bdeb936fb6bbff4fd14327ffc805..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/MapServer.js.xml +++ /dev/null @@ -1,225 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>MapServer.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Layer/Grid.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.MapServer\n - * Instances of OpenLayers.Layer.MapServer are used to display\n - * data from a MapServer CGI instance.\n - *\n - * Inherits from:\n - * - <OpenLayers.Layer.Grid>\n - */\n -OpenLayers.Layer.MapServer = OpenLayers.Class(OpenLayers.Layer.Grid, {\n -\n - /**\n - * Constant: DEFAULT_PARAMS\n - * {Object} Hashtable of default parameter key/value pairs \n - */\n - DEFAULT_PARAMS: {\n - mode: "map",\n - map_imagetype: "png"\n - },\n -\n - /**\n - * Constructor: OpenLayers.Layer.MapServer\n - * Create a new MapServer layer object\n - *\n - * Parameters:\n - * name - {String} A name for the layer\n - * url - {String} Base url for the MapServer CGI\n - * (e.g. http://www2.dmsolutions.ca/cgi-bin/mapserv)\n - * params - {Object} An object with key/value pairs representing the\n - * GetMap query string parameters and parameter values.\n - * options - {Object} Hashtable of extra options to tag onto the layer\n - */\n - initialize: function(name, url, params, options) {\n - OpenLayers.Layer.Grid.prototype.initialize.apply(this, arguments);\n -\n - this.params = OpenLayers.Util.applyDefaults(\n - this.params, this.DEFAULT_PARAMS\n - );\n -\n - // unless explicitly set in options, if the layer is transparent, \n - // it will be an overlay\n - if (options == null || options.isBaseLayer == null) {\n - this.isBaseLayer = ((this.params.transparent != "true") && \n - (this.params.transparent != true));\n - }\n - },\n -\n - /**\n - * Method: clone\n - * Create a clone of this layer\n - *\n - * Returns:\n - * {<OpenLayers.Layer.MapServer>} An exact clone of this layer\n - */\n - clone: function (obj) {\n - if (obj == null) {\n - obj = new OpenLayers.Layer.MapServer(this.name,\n - this.url,\n - this.params,\n - this.getOptions());\n - }\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);\n -\n - // copy/set any non-init, non-simple values here\n -\n - return obj;\n - },\n - \n - /**\n - * Method: getURL\n - * Return a query string for this layer\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} A bounds representing the bbox \n - * for the request\n - *\n - * Returns:\n - * {String} A string with the layer\'s url and parameters and also \n - * the passed-in bounds and appropriate tile size specified \n - * as parameters.\n - */\n - getURL: function (bounds) {\n - bounds = this.adjustBounds(bounds);\n - // Make a list, so that getFullRequestString uses literal "," \n - var extent = [bounds.left, bounds. bottom, bounds.right, bounds.top];\n -\n - var imageSize = this.getImageSize(); \n - \n - // make lists, so that literal \',\'s are used \n - var url = this.getFullRequestString(\n - {mapext: extent,\n - imgext: extent,\n - map_size: [imageSize.w, imageSize.h],\n - imgx: imageSize.w / 2,\n - imgy: imageSize.h / 2,\n - imgxy: [imageSize.w, imageSize.h]\n - });\n - \n - return url;\n - },\n - \n - /** \n - * Method: getFullRequestString\n - * combine the layer\'s url with its params and these newParams. \n - * \n - * Parameters:\n - * newParams - {Object} New parameters that should be added to the \n - * request string.\n - * altUrl - {String} (optional) Replace the URL in the full request \n - * string with the provided URL.\n - * \n - * Returns: \n - * {String} A string with the layer\'s url and parameters embedded in it.\n - */\n - getFullRequestString:function(newParams, altUrl) {\n - // use layer\'s url unless altUrl passed in\n - var url = (altUrl == null) ? this.url : altUrl;\n - \n - // create a new params hashtable with all the layer params and the \n - // new params together. then convert to string\n - var allParams = OpenLayers.Util.extend({}, this.params);\n - allParams = OpenLayers.Util.extend(allParams, newParams);\n - var paramsString = OpenLayers.Util.getParameterString(allParams);\n - \n - // if url is not a string, it should be an array of strings, \n - // in which case we will deterministically select one of them in \n - // order to evenly distribute requests to different urls.\n - if (OpenLayers.Util.isArray(url)) {\n - url = this.selectUrl(paramsString, url);\n - } \n - \n - // ignore parameters that are already in the url search string\n - var urlParams = OpenLayers.Util.upperCaseObject(\n - OpenLayers.Util.getParameters(url));\n - for(var key in allParams) {\n - if(key.toUpperCase() in urlParams) {\n - delete allParams[key];\n - }\n - }\n - paramsString = OpenLayers.Util.getParameterString(allParams);\n - \n - // requestString always starts with url\n - var requestString = url; \n -\n - // MapServer needs \'+\' seperating things like bounds/height/width.\n - // Since typically this is URL encoded, we use a slight hack: we\n - // depend on the list-like functionality of getParameterString to\n - // leave \',\' only in the case of list items (since otherwise it is\n - // encoded) then do a regular expression replace on the , characters\n - // to \'+\'\n - //\n - paramsString = paramsString.replace(/,/g, "+");\n - \n - if (paramsString != "") {\n - var lastServerChar = url.charAt(url.length - 1);\n - if ((lastServerChar == "&") || (lastServerChar == "?")) {\n - requestString += paramsString;\n - } else {\n - if (url.indexOf(\'?\') == -1) {\n - //serverPath has no ? -- add one\n - requestString += \'?\' + paramsString;\n - } else {\n - //serverPath contains ?, so must already have paramsString at the end\n - requestString += \'&\' + paramsString;\n - }\n - }\n - }\n - return requestString;\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.MapServer"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6713</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Markers.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Markers.js.xml deleted file mode 100644 index 1ad7aff50271d7e8f3a86bb4eeb391611cf302b3..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Markers.js.xml +++ /dev/null @@ -1,231 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Markers.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.Markers\n - * \n - * Inherits from:\n - * - <OpenLayers.Layer> \n - */\n -OpenLayers.Layer.Markers = OpenLayers.Class(OpenLayers.Layer, {\n - \n - /** \n - * APIProperty: isBaseLayer \n - * {Boolean} Markers layer is never a base layer. \n - */\n - isBaseLayer: false,\n - \n - /** \n - * APIProperty: markers \n - * {Array(<OpenLayers.Marker>)} internal marker list \n - */\n - markers: null,\n -\n -\n - /** \n - * Property: drawn \n - * {Boolean} internal state of drawing. This is a workaround for the fact\n - * that the map does not call moveTo with a zoomChanged when the map is\n - * first starting up. This lets us catch the case where we have *never*\n - * drawn the layer, and draw it even if the zoom hasn\'t changed.\n - */\n - drawn: false,\n - \n - /**\n - * Constructor: OpenLayers.Layer.Markers \n - * Create a Markers layer.\n - *\n - * Parameters:\n - * name - {String} \n - * options - {Object} Hashtable of extra options to tag onto the layer\n - */\n - initialize: function(name, options) {\n - OpenLayers.Layer.prototype.initialize.apply(this, arguments);\n - this.markers = [];\n - },\n - \n - /**\n - * APIMethod: destroy \n - */\n - destroy: function() {\n - this.clearMarkers();\n - this.markers = null;\n - OpenLayers.Layer.prototype.destroy.apply(this, arguments);\n - },\n -\n - /**\n - * APIMethod: setOpacity\n - * Sets the opacity for all the markers.\n - * \n - * Parameters:\n - * opacity - {Float}\n - */\n - setOpacity: function(opacity) {\n - if (opacity != this.opacity) {\n - this.opacity = opacity;\n - for (var i=0, len=this.markers.length; i<len; i++) {\n - this.markers[i].setOpacity(this.opacity);\n - }\n - }\n - },\n -\n - /** \n - * Method: moveTo\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} \n - * zoomChanged - {Boolean} \n - * dragging - {Boolean} \n - */\n - moveTo:function(bounds, zoomChanged, dragging) {\n - OpenLayers.Layer.prototype.moveTo.apply(this, arguments);\n -\n - if (zoomChanged || !this.drawn) {\n - for(var i=0, len=this.markers.length; i<len; i++) {\n - this.drawMarker(this.markers[i]);\n - }\n - this.drawn = true;\n - }\n - },\n -\n - /**\n - * APIMethod: addMarker\n - *\n - * Parameters:\n - * marker - {<OpenLayers.Marker>} \n - */\n - addMarker: function(marker) {\n - this.markers.push(marker);\n -\n - if (this.opacity < 1) {\n - marker.setOpacity(this.opacity);\n - }\n -\n - if (this.map && this.map.getExtent()) {\n - marker.map = this.map;\n - this.drawMarker(marker);\n - }\n - },\n -\n - /**\n - * APIMethod: removeMarker\n - *\n - * Parameters:\n - * marker - {<OpenLayers.Marker>} \n - */\n - removeMarker: function(marker) {\n - if (this.markers && this.markers.length) {\n - OpenLayers.Util.removeItem(this.markers, marker);\n - marker.erase();\n - }\n - },\n -\n - /**\n - * Method: clearMarkers\n - * This method removes all markers from a layer. The markers are not\n - * destroyed by this function, but are removed from the list of markers.\n - */\n - clearMarkers: function() {\n - if (this.markers != null) {\n - while(this.markers.length > 0) {\n - this.removeMarker(this.markers[0]);\n - }\n - }\n - },\n -\n - /** \n - * Method: drawMarker\n - * Calculate the pixel location for the marker, create it, and \n - * add it to the layer\'s div\n - *\n - * Parameters:\n - * marker - {<OpenLayers.Marker>} \n - */\n - drawMarker: function(marker) {\n - var px = this.map.getLayerPxFromLonLat(marker.lonlat);\n - if (px == null) {\n - marker.display(false);\n - } else {\n - if (!marker.isDrawn()) {\n - var markerImg = marker.draw(px);\n - this.div.appendChild(markerImg);\n - } else if(marker.icon) {\n - marker.icon.moveTo(px);\n - }\n - }\n - },\n - \n - /** \n - * APIMethod: getDataExtent\n - * Calculates the max extent which includes all of the markers.\n - * \n - * Returns:\n - * {<OpenLayers.Bounds>}\n - */\n - getDataExtent: function () {\n - var maxExtent = null;\n - \n - if ( this.markers && (this.markers.length > 0)) {\n - var maxExtent = new OpenLayers.Bounds();\n - for(var i=0, len=this.markers.length; i<len; i++) {\n - var marker = this.markers[i];\n - maxExtent.extend(marker.lonlat);\n - }\n - }\n -\n - return maxExtent;\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.Markers"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4920</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/OSM.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/OSM.js.xml deleted file mode 100644 index 762b9e5fde2e087258aab59a04359a2c3e788264..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/OSM.js.xml +++ /dev/null @@ -1,167 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>OSM.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Layer/XYZ.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.OSM\n - * This layer allows accessing OpenStreetMap tiles. By default the OpenStreetMap\n - * hosted tile.openstreetmap.org Mapnik tileset is used. If you wish to use\n - * a different layer instead, you need to provide a different\n - * URL to the constructor. Here\'s an example for using OpenCycleMap:\n - * \n - * (code)\n - * new OpenLayers.Layer.OSM("OpenCycleMap", \n - * ["http://a.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png",\n - * "http://b.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png",\n - * "http://c.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png"]); \n - * (end)\n - *\n - * Inherits from:\n - * - <OpenLayers.Layer.XYZ>\n - */\n -OpenLayers.Layer.OSM = OpenLayers.Class(OpenLayers.Layer.XYZ, {\n -\n - /**\n - * APIProperty: name\n - * {String} The layer name. Defaults to "OpenStreetMap" if the first\n - * argument to the constructor is null or undefined.\n - */\n - name: "OpenStreetMap",\n -\n - /**\n - * APIProperty: url\n - * {String} The tileset URL scheme. Defaults to\n - * : http://[a|b|c].tile.openstreetmap.org/${z}/${x}/${y}.png\n - * (the official OSM tileset) if the second argument to the constructor\n - * is null or undefined. To use another tileset you can have something\n - * like this:\n - * (code)\n - * new OpenLayers.Layer.OSM("OpenCycleMap", \n - * ["http://a.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png",\n - * "http://b.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png",\n - * "http://c.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png"]); \n - * (end)\n - */\n - url: [\n - \'http://a.tile.openstreetmap.org/${z}/${x}/${y}.png\',\n - \'http://b.tile.openstreetmap.org/${z}/${x}/${y}.png\',\n - \'http://c.tile.openstreetmap.org/${z}/${x}/${y}.png\'\n - ],\n -\n - /**\n - * Property: attribution\n - * {String} The layer attribution.\n - */\n - attribution: "Data CC-By-SA by <a href=\'http://openstreetmap.org/\'>OpenStreetMap</a>",\n -\n - /**\n - * Property: sphericalMercator\n - * {Boolean}\n - */\n - sphericalMercator: true,\n -\n - /**\n - * Property: wrapDateLine\n - * {Boolean}\n - */\n - wrapDateLine: true,\n -\n - /** APIProperty: tileOptions\n - * {Object} optional configuration options for <OpenLayers.Tile> instances\n - * created by this Layer. Default is\n - *\n - * (code)\n - * {crossOriginKeyword: \'anonymous\'}\n - * (end)\n - *\n - * When using OSM tilesets other than the default ones, it may be\n - * necessary to set this to\n - *\n - * (code)\n - * {crossOriginKeyword: null}\n - * (end)\n - *\n - * if the server does not send Access-Control-Allow-Origin headers.\n - */\n - tileOptions: null,\n -\n - /**\n - * Constructor: OpenLayers.Layer.OSM\n - *\n - * Parameters:\n - * name - {String} The layer name.\n - * url - {String} The tileset URL scheme.\n - * options - {Object} Configuration options for the layer. Any inherited\n - * layer option can be set in this object (e.g.\n - * <OpenLayers.Layer.Grid.buffer>).\n - */\n - initialize: function(name, url, options) {\n - OpenLayers.Layer.XYZ.prototype.initialize.apply(this, arguments);\n - this.tileOptions = OpenLayers.Util.extend({\n - crossOriginKeyword: \'anonymous\'\n - }, this.options && this.options.tileOptions);\n - },\n -\n - /**\n - * Method: clone\n - */\n - clone: function(obj) {\n - if (obj == null) {\n - obj = new OpenLayers.Layer.OSM(\n - this.name, this.url, this.getOptions());\n - }\n - obj = OpenLayers.Layer.XYZ.prototype.clone.apply(this, [obj]);\n - return obj;\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.OSM"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3922</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/PointGrid.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/PointGrid.js.xml deleted file mode 100644 index 8e8abbce396d31e05e20fb93f2cabd774e28d3a1..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/PointGrid.js.xml +++ /dev/null @@ -1,343 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>PointGrid.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Layer/Vector.js\n - * @requires OpenLayers/Geometry/Polygon.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.PointGrid\n - * A point grid layer dynamically generates a regularly spaced grid of point\n - * features. This is a specialty layer for cases where an application needs\n - * a regular grid of points. It can be used, for example, in an editing\n - * environment to snap to a grid.\n - *\n - * Create a new vector layer with the <OpenLayers.Layer.PointGrid> constructor.\n - * (code)\n - * // create a grid with points spaced at 10 map units\n - * var points = new OpenLayers.Layer.PointGrid({dx: 10, dy: 10});\n - *\n - * // create a grid with different x/y spacing rotated 15 degrees clockwise.\n - * var points = new OpenLayers.Layer.PointGrid({dx: 5, dy: 10, rotation: 15});\n - * (end)\n - *\n - * Inherits from:\n - * - <OpenLayers.Layer.Vector>\n - */\n -OpenLayers.Layer.PointGrid = OpenLayers.Class(OpenLayers.Layer.Vector, {\n -\n - /**\n - * APIProperty: dx\n - * {Number} Point grid spacing in the x-axis direction (map units). \n - * Read-only. Use the <setSpacing> method to modify this value.\n - */\n - dx: null,\n -\n - /**\n - * APIProperty: dy\n - * {Number} Point grid spacing in the y-axis direction (map units). \n - * Read-only. Use the <setSpacing> method to modify this value.\n - */\n - dy: null,\n -\n - /**\n - * APIProperty: ratio\n - * {Number} Ratio of the desired grid size to the map viewport size. \n - * Default is 1.5. Larger ratios mean the grid is recalculated less often \n - * while panning. The <maxFeatures> setting has precedence when determining\n - * grid size. Read-only. Use the <setRatio> method to modify this value.\n - */\n - ratio: 1.5,\n -\n - /**\n - * APIProperty: maxFeatures\n - * {Number} The maximum number of points to generate in the grid. Default\n - * is 250. Read-only. Use the <setMaxFeatures> method to modify this value.\n - */\n - maxFeatures: 250,\n -\n - /**\n - * APIProperty: rotation\n - * {Number} Grid rotation (in degrees clockwise from the positive x-axis).\n - * Default is 0. Read-only. Use the <setRotation> method to modify this\n - * value.\n - */\n - rotation: 0,\n -\n - /**\n - * APIProperty: origin\n - * {<OpenLayers.LonLat>} Grid origin. The grid lattice will be aligned with \n - * the origin. If not set at construction, the center of the map\'s maximum \n - * extent is used. Read-only. Use the <setOrigin> method to modify this \n - * value.\n - */\n - origin: null,\n -\n - /**\n - * Property: gridBounds\n - * {<OpenLayers.Bounds>} Internally cached grid bounds (with optional \n - * rotation applied).\n - */\n - gridBounds: null,\n -\n - /**\n - * Constructor: OpenLayers.Layer.PointGrid\n - * Creates a new point grid layer.\n - *\n - * Parameters:\n - * config - {Object} An object containing all configuration properties for\n - * the layer. The <dx> and <dy> properties are required to be set at \n - * construction. Any other layer properties may be set in this object.\n - */\n - initialize: function(config) {\n - config = config || {};\n - OpenLayers.Layer.Vector.prototype.initialize.apply(this, [config.name, config]);\n - },\n - \n - /** \n - * Method: setMap\n - * The layer has been added to the map. \n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>} \n - */\n - setMap: function(map) { \n - OpenLayers.Layer.Vector.prototype.setMap.apply(this, arguments);\n - map.events.register("moveend", this, this.onMoveEnd);\n - },\n -\n - /**\n - * Method: removeMap\n - * The layer has been removed from the map.\n - *\n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - removeMap: function(map) {\n - map.events.unregister("moveend", this, this.onMoveEnd);\n - OpenLayers.Layer.Vector.prototype.removeMap.apply(this, arguments);\n - },\n - \n - /**\n - * APIMethod: setRatio\n - * Set the grid <ratio> property and update the grid. Can only be called\n - * after the layer has been added to a map with a center/extent.\n - *\n - * Parameters:\n - * ratio - {Number}\n - */\n - setRatio: function(ratio) {\n - this.ratio = ratio;\n - this.updateGrid(true);\n - },\n - \n - /**\n - * APIMethod: setMaxFeatures\n - * Set the grid <maxFeatures> property and update the grid. Can only be \n - * called after the layer has been added to a map with a center/extent.\n - *\n - * Parameters:\n - * maxFeatures - {Number}\n - */\n - setMaxFeatures: function(maxFeatures) {\n - this.maxFeatures = maxFeatures;\n - this.updateGrid(true);\n - },\n -\n - /**\n - * APIMethod: setSpacing\n - * Set the grid <dx> and <dy> properties and update the grid. If only one\n - * argument is provided, it will be set as <dx> and <dy>. Can only be \n - * called after the layer has been added to a map with a center/extent.\n - *\n - * Parameters:\n - * dx - {Number}\n - * dy - {Number}\n - */\n - setSpacing: function(dx, dy) {\n - this.dx = dx;\n - this.dy = dy || dx;\n - this.updateGrid(true);\n - },\n - \n - /**\n - * APIMethod: setOrigin\n - * Set the grid <origin> property and update the grid. Can only be called\n - * after the layer has been added to a map with a center/extent.\n - *\n - * Parameters:\n - * origin - {<OpenLayers.LonLat>}\n - */\n - setOrigin: function(origin) {\n - this.origin = origin;\n - this.updateGrid(true);\n - },\n - \n - /**\n - * APIMethod: getOrigin\n - * Get the grid <origin> property.\n - *\n - * Returns:\n - * {<OpenLayers.LonLat>} The grid origin.\n - */\n - getOrigin: function() {\n - if (!this.origin) {\n - this.origin = this.map.getExtent().getCenterLonLat();\n - }\n - return this.origin;\n - },\n - \n - /**\n - * APIMethod: setRotation\n - * Set the grid <rotation> property and update the grid. Rotation values\n - * are in degrees clockwise from the positive x-axis (negative values\n - * for counter-clockwise rotation). Can only be called after the layer \n - * has been added to a map with a center/extent.\n - *\n - * Parameters:\n - * rotation - {Number} Degrees clockwise from the positive x-axis.\n - */\n - setRotation: function(rotation) {\n - this.rotation = rotation;\n - this.updateGrid(true);\n - },\n - \n - /**\n - * Method: onMoveEnd\n - * Listener for map "moveend" events.\n - */\n - onMoveEnd: function() {\n - this.updateGrid();\n - },\n - \n - /**\n - * Method: getViewBounds\n - * Gets the (potentially rotated) view bounds for grid calculations.\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>}\n - */\n - getViewBounds: function() {\n - var bounds = this.map.getExtent();\n - if (this.rotation) {\n - var origin = this.getOrigin();\n - var rotationOrigin = new OpenLayers.Geometry.Point(origin.lon, origin.lat);\n - var rect = bounds.toGeometry();\n - rect.rotate(-this.rotation, rotationOrigin);\n - bounds = rect.getBounds();\n - }\n - return bounds;\n - },\n - \n - /**\n - * Method: updateGrid\n - * Update the grid.\n - *\n - * Parameters:\n - * force - {Boolean} Update the grid even if the previous bounds are still\n - * valid.\n - */\n - updateGrid: function(force) {\n - if (force || this.invalidBounds()) {\n - var viewBounds = this.getViewBounds();\n - var origin = this.getOrigin();\n - var rotationOrigin = new OpenLayers.Geometry.Point(origin.lon, origin.lat);\n - var viewBoundsWidth = viewBounds.getWidth();\n - var viewBoundsHeight = viewBounds.getHeight();\n - var aspectRatio = viewBoundsWidth / viewBoundsHeight;\n - var maxHeight = Math.sqrt(this.dx * this.dy * this.maxFeatures / aspectRatio);\n - var maxWidth = maxHeight * aspectRatio; \n - var gridWidth = Math.min(viewBoundsWidth * this.ratio, maxWidth);\n - var gridHeight = Math.min(viewBoundsHeight * this.ratio, maxHeight);\n - var center = viewBounds.getCenterLonLat();\n - this.gridBounds = new OpenLayers.Bounds(\n - center.lon - (gridWidth / 2),\n - center.lat - (gridHeight / 2),\n - center.lon + (gridWidth / 2),\n - center.lat + (gridHeight / 2)\n - );\n - var rows = Math.floor(gridHeight / this.dy);\n - var cols = Math.floor(gridWidth / this.dx);\n - var gridLeft = origin.lon + (this.dx * Math.ceil((this.gridBounds.left - origin.lon) / this.dx));\n - var gridBottom = origin.lat + (this.dy * Math.ceil((this.gridBounds.bottom - origin.lat) / this.dy));\n - var features = new Array(rows * cols);\n - var x, y, point;\n - for (var i=0; i<cols; ++i) {\n - x = gridLeft + (i * this.dx);\n - for (var j=0; j<rows; ++j) {\n - y = gridBottom + (j * this.dy);\n - point = new OpenLayers.Geometry.Point(x, y);\n - if (this.rotation) {\n - point.rotate(this.rotation, rotationOrigin);\n - }\n - features[(i*rows)+j] = new OpenLayers.Feature.Vector(point);\n - }\n - }\n - this.destroyFeatures(this.features, {silent: true});\n - this.addFeatures(features, {silent: true});\n - }\n - },\n -\n - /**\n - * Method: invalidBounds\n - * Determine whether the previously generated point grid is invalid. \n - * This occurs when the map bounds extends beyond the previously \n - * generated grid bounds.\n - *\n - * Returns:\n - * {Boolean} \n - */\n - invalidBounds: function() {\n - return !this.gridBounds || !this.gridBounds.containsBounds(this.getViewBounds());\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.PointGrid"\n - \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>10022</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/PointTrack.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/PointTrack.js.xml deleted file mode 100644 index af174538c23eeefb97dad980ae594a9dbbe4f0fd..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/PointTrack.js.xml +++ /dev/null @@ -1,169 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>PointTrack.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Layer/Vector.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.PointTrack\n - * Vector layer to display ordered point features as a line, creating one\n - * LineString feature for each pair of two points.\n - *\n - * Inherits from:\n - * - <OpenLayers.Layer.Vector> \n - */\n -OpenLayers.Layer.PointTrack = OpenLayers.Class(OpenLayers.Layer.Vector, {\n - \n - /**\n - * APIProperty: dataFrom\n - * {<OpenLayers.Layer.PointTrack.TARGET_NODE>} or\n - * {<OpenLayers.Layer.PointTrack.SOURCE_NODE>} optional. If the lines\n - * should get the data/attributes from one of the two points it is\n - * composed of, which one should it be?\n - */\n - dataFrom: null,\n - \n - /**\n - * APIProperty: styleFrom\n - * {<OpenLayers.Layer.PointTrack.TARGET_NODE>} or\n - * {<OpenLayers.Layer.PointTrack.SOURCE_NODE>} optional. If the lines\n - * should get the style from one of the two points it is composed of,\n - * which one should it be?\n - */\n - styleFrom: null,\n - \n - /**\n - * Constructor: OpenLayers.PointTrack\n - * Constructor for a new OpenLayers.PointTrack instance.\n - *\n - * Parameters:\n - * name - {String} name of the layer\n - * options - {Object} Optional object with properties to tag onto the\n - * instance.\n - */ \n - \n - /**\n - * APIMethod: addNodes\n - * Adds point features that will be used to create lines from, using point\n - * pairs. The first point of a pair will be the source node, the second\n - * will be the target node.\n - * \n - * Parameters:\n - * pointFeatures - {Array(<OpenLayers.Feature>)}\n - * options - {Object}\n - * \n - * Supported options:\n - * silent - {Boolean} true to suppress (before)feature(s)added events\n - */\n - addNodes: function(pointFeatures, options) {\n - if (pointFeatures.length < 2) {\n - throw new Error("At least two point features have to be added to " +\n - "create a line from");\n - }\n - \n - var lines = new Array(pointFeatures.length-1);\n - \n - var pointFeature, startPoint, endPoint;\n - for(var i=0, len=pointFeatures.length; i<len; i++) {\n - pointFeature = pointFeatures[i];\n - endPoint = pointFeature.geometry;\n - \n - if (!endPoint) {\n - var lonlat = pointFeature.lonlat;\n - endPoint = new OpenLayers.Geometry.Point(lonlat.lon, lonlat.lat);\n - } else if(endPoint.CLASS_NAME != "OpenLayers.Geometry.Point") {\n - throw new TypeError("Only features with point geometries are supported.");\n - }\n - \n - if(i > 0) {\n - var attributes = (this.dataFrom != null) ?\n - (pointFeatures[i+this.dataFrom].data ||\n - pointFeatures[i+this.dataFrom].attributes) :\n - null;\n - var style = (this.styleFrom != null) ?\n - (pointFeatures[i+this.styleFrom].style) :\n - null;\n - var line = new OpenLayers.Geometry.LineString([startPoint,\n - endPoint]);\n - \n - lines[i-1] = new OpenLayers.Feature.Vector(line, attributes,\n - style);\n - }\n - \n - startPoint = endPoint;\n - }\n -\n - this.addFeatures(lines, options);\n - },\n - \n - CLASS_NAME: "OpenLayers.Layer.PointTrack"\n -});\n -\n -/**\n - * Constant: OpenLayers.Layer.PointTrack.SOURCE_NODE\n - * {Number} value for <OpenLayers.Layer.PointTrack.dataFrom> and\n - * <OpenLayers.Layer.PointTrack.styleFrom>\n - */\n -OpenLayers.Layer.PointTrack.SOURCE_NODE = -1;\n -\n -/**\n - * Constant: OpenLayers.Layer.PointTrack.TARGET_NODE\n - * {Number} value for <OpenLayers.Layer.PointTrack.dataFrom> and\n - * <OpenLayers.Layer.PointTrack.styleFrom>\n - */\n -OpenLayers.Layer.PointTrack.TARGET_NODE = 0;\n -\n -/**\n - * Constant: OpenLayers.Layer.PointTrack.dataFrom\n - * {Object} with the following keys - *deprecated*\n - * - SOURCE_NODE: take data/attributes from the source node of the line\n - * - TARGET_NODE: take data/attributes from the target node of the line\n - */\n -OpenLayers.Layer.PointTrack.dataFrom = {\'SOURCE_NODE\': -1, \'TARGET_NODE\': 0};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4459</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/SphericalMercator.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/SphericalMercator.js.xml deleted file mode 100644 index 6e03619292fba8660657947c40c89b30914f947e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/SphericalMercator.js.xml +++ /dev/null @@ -1,190 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>SphericalMercator.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Layer.js\n - * @requires OpenLayers/Projection.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.SphericalMercator\n - * A mixin for layers that wraps up the pieces neccesary to have a coordinate\n - * conversion for working with commercial APIs which use a spherical\n - * mercator projection. Using this layer as a base layer, additional\n - * layers can be used as overlays if they are in the same projection.\n - *\n - * A layer is given properties of this object by setting the sphericalMercator\n - * property to true.\n - *\n - * More projection information:\n - * - http://spatialreference.org/ref/user/google-projection/\n - *\n - * Proj4 Text:\n - * +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0\n - * +k=1.0 +units=m +nadgrids=@null +no_defs\n - *\n - * WKT:\n - * 900913=PROJCS["WGS84 / Simple Mercator", GEOGCS["WGS 84",\n - * DATUM["WGS_1984", SPHEROID["WGS_1984", 6378137.0, 298.257223563]], \n - * PRIMEM["Greenwich", 0.0], UNIT["degree", 0.017453292519943295], \n - * AXIS["Longitude", EAST], AXIS["Latitude", NORTH]],\n - * PROJECTION["Mercator_1SP_Google"], \n - * PARAMETER["latitude_of_origin", 0.0], PARAMETER["central_meridian", 0.0], \n - * PARAMETER["scale_factor", 1.0], PARAMETER["false_easting", 0.0], \n - * PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["x", EAST],\n - * AXIS["y", NORTH], AUTHORITY["EPSG","900913"]]\n - */\n -OpenLayers.Layer.SphericalMercator = {\n -\n - /**\n - * Method: getExtent\n - * Get the map\'s extent.\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>} The map extent.\n - */\n - getExtent: function() {\n - var extent = null;\n - if (this.sphericalMercator) {\n - extent = this.map.calculateBounds();\n - } else {\n - extent = OpenLayers.Layer.FixedZoomLevels.prototype.getExtent.apply(this);\n - }\n - return extent;\n - },\n -\n - /**\n - * Method: getLonLatFromViewPortPx\n - * Get a map location from a pixel location\n - * \n - * Parameters:\n - * viewPortPx - {<OpenLayers.Pixel>}\n - *\n - * Returns:\n - * {<OpenLayers.LonLat>} An OpenLayers.LonLat which is the passed-in view\n - * port OpenLayers.Pixel, translated into lon/lat by map lib\n - * If the map lib is not loaded or not centered, returns null\n - */\n - getLonLatFromViewPortPx: function (viewPortPx) {\n - return OpenLayers.Layer.prototype.getLonLatFromViewPortPx.apply(this, arguments);\n - },\n - \n - /**\n - * Method: getViewPortPxFromLonLat\n - * Get a pixel location from a map location\n - *\n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>}\n - *\n - * Returns:\n - * {<OpenLayers.Pixel>} An OpenLayers.Pixel which is the passed-in\n - * OpenLayers.LonLat, translated into view port pixels by map lib\n - * If map lib is not loaded or not centered, returns null\n - */\n - getViewPortPxFromLonLat: function (lonlat) {\n - return OpenLayers.Layer.prototype.getViewPortPxFromLonLat.apply(this, arguments);\n - },\n -\n - /** \n - * Method: initMercatorParameters \n - * Set up the mercator parameters on the layer: resolutions,\n - * projection, units.\n - */\n - initMercatorParameters: function() {\n - // set up properties for Mercator - assume EPSG:900913\n - this.RESOLUTIONS = [];\n - var maxResolution = 156543.03390625;\n - for(var zoom=0; zoom<=this.MAX_ZOOM_LEVEL; ++zoom) {\n - this.RESOLUTIONS[zoom] = maxResolution / Math.pow(2, zoom);\n - }\n - this.units = "m";\n - this.projection = this.projection || "EPSG:900913";\n - },\n -\n - /**\n - * APIMethod: forwardMercator\n - * Given a lon,lat in EPSG:4326, return a point in Spherical Mercator.\n - *\n - * Parameters:\n - * lon - {float} \n - * lat - {float}\n - * \n - * Returns:\n - * {<OpenLayers.LonLat>} The coordinates transformed to Mercator.\n - */\n - forwardMercator: (function() {\n - var gg = new OpenLayers.Projection("EPSG:4326");\n - var sm = new OpenLayers.Projection("EPSG:900913");\n - return function(lon, lat) {\n - var point = OpenLayers.Projection.transform({x: lon, y: lat}, gg, sm);\n - return new OpenLayers.LonLat(point.x, point.y);\n - };\n - })(),\n -\n - /**\n - * APIMethod: inverseMercator\n - * Given a x,y in Spherical Mercator, return a point in EPSG:4326.\n - *\n - * Parameters:\n - * x - {float} A map x in Spherical Mercator.\n - * y - {float} A map y in Spherical Mercator.\n - * \n - * Returns:\n - * {<OpenLayers.LonLat>} The coordinates transformed to EPSG:4326.\n - */\n - inverseMercator: (function() {\n - var gg = new OpenLayers.Projection("EPSG:4326");\n - var sm = new OpenLayers.Projection("EPSG:900913");\n - return function(x, y) {\n - var point = OpenLayers.Projection.transform({x: x, y: y}, sm, gg);\n - return new OpenLayers.LonLat(point.x, point.y);\n - };\n - })()\n -\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5103</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/TMS.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/TMS.js.xml deleted file mode 100644 index ae03d15eb4a4c22bc8e79a1b4ac5b2d14f6c0cc0..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/TMS.js.xml +++ /dev/null @@ -1,246 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>TMS.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer/Grid.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.TMS\n - * Create a layer for accessing tiles from services that conform with the \n - * Tile Map Service Specification \n - * (http://wiki.osgeo.org/wiki/Tile_Map_Service_Specification).\n - *\n - * Example:\n - * (code)\n - * var layer = new OpenLayers.Layer.TMS(\n - * "My Layer", // name for display in LayerSwitcher\n - * "http://tilecache.osgeo.org/wms-c/Basic.py/", // service endpoint\n - * {layername: "basic", type: "png"} // required properties\n - * );\n - * (end)\n - * \n - * Inherits from:\n - * - <OpenLayers.Layer.Grid>\n - */\n -OpenLayers.Layer.TMS = OpenLayers.Class(OpenLayers.Layer.Grid, {\n -\n - /**\n - * APIProperty: serviceVersion\n - * {String} Service version for tile requests. Default is "1.0.0".\n - */\n - serviceVersion: "1.0.0",\n -\n - /**\n - * APIProperty: layername\n - * {String} The identifier for the <TileMap> as advertised by the service. \n - * For example, if the service advertises a <TileMap> with \n - * \'href="http://tms.osgeo.org/1.0.0/vmap0"\', the <layername> property \n - * would be set to "vmap0".\n - */\n - layername: null,\n -\n - /**\n - * APIProperty: type\n - * {String} The format extension corresponding to the requested tile image\n - * type. This is advertised in a <TileFormat> element as the \n - * "extension" attribute. For example, if the service advertises a \n - * <TileMap> with <TileFormat width="256" height="256" mime-type="image/jpeg" extension="jpg" />,\n - * the <type> property would be set to "jpg".\n - */\n - type: null,\n -\n - /**\n - * APIProperty: isBaseLayer\n - * {Boolean} Make this layer a base layer. Default is true. Set false to\n - * use the layer as an overlay.\n - */\n - isBaseLayer: true,\n -\n - /**\n - * APIProperty: tileOrigin\n - * {<OpenLayers.LonLat>} Optional origin for aligning the grid of tiles.\n - * If provided, requests for tiles at all resolutions will be aligned\n - * with this location (no tiles shall overlap this location). If\n - * not provided, the grid of tiles will be aligned with the bottom-left\n - * corner of the map\'s <maxExtent>. Default is ``null``.\n - *\n - * Example:\n - * (code)\n - * var layer = new OpenLayers.Layer.TMS(\n - * "My Layer",\n - * "http://tilecache.osgeo.org/wms-c/Basic.py/",\n - * {\n - * layername: "basic", \n - * type: "png",\n - * // set if different than the bottom left of map.maxExtent\n - * tileOrigin: new OpenLayers.LonLat(-180, -90)\n - * }\n - * );\n - * (end)\n - */\n - tileOrigin: null,\n -\n - /**\n - * APIProperty: serverResolutions\n - * {Array} A list of all resolutions available on the server. Only set this\n - * property if the map resolutions differ from the server. This\n - * property serves two purposes. (a) <serverResolutions> can include\n - * resolutions that the server supports and that you don\'t want to\n - * provide with this layer; you can also look at <zoomOffset>, which is\n - * an alternative to <serverResolutions> for that specific purpose.\n - * (b) The map can work with resolutions that aren\'t supported by\n - * the server, i.e. that aren\'t in <serverResolutions>. When the\n - * map is displayed in such a resolution data for the closest\n - * server-supported resolution is loaded and the layer div is\n - * stretched as necessary.\n - */\n - serverResolutions: null,\n -\n - /**\n - * APIProperty: zoomOffset\n - * {Number} If your cache has more zoom levels than you want to provide\n - * access to with this layer, supply a zoomOffset. This zoom offset\n - * is added to the current map zoom level to determine the level\n - * for a requested tile. For example, if you supply a zoomOffset\n - * of 3, when the map is at the zoom 0, tiles will be requested from\n - * level 3 of your cache. Default is 0 (assumes cache level and map\n - * zoom are equivalent). Using <zoomOffset> is an alternative to\n - * setting <serverResolutions> if you only want to expose a subset\n - * of the server resolutions.\n - */\n - zoomOffset: 0,\n - \n - /**\n - * Constructor: OpenLayers.Layer.TMS\n - * \n - * Parameters:\n - * name - {String} Title to be displayed in a <OpenLayers.Control.LayerSwitcher>\n - * url - {String} Service endpoint (without the version number). E.g.\n - * "http://tms.osgeo.org/".\n - * options - {Object} Additional properties to be set on the layer. The\n - * <layername> and <type> properties must be set here.\n - */\n - initialize: function(name, url, options) {\n - var newArguments = [];\n - newArguments.push(name, url, {}, options);\n - OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);\n - }, \n -\n - /**\n - * APIMethod: clone\n - * Create a complete copy of this layer.\n - *\n - * Parameters:\n - * obj - {Object} Should only be provided by subclasses that call this\n - * method.\n - * \n - * Returns:\n - * {<OpenLayers.Layer.TMS>} An exact clone of this <OpenLayers.Layer.TMS>\n - */\n - clone: function (obj) {\n - \n - if (obj == null) {\n - obj = new OpenLayers.Layer.TMS(this.name,\n - this.url,\n - this.getOptions());\n - }\n -\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);\n -\n - // copy/set any non-init, non-simple values here\n -\n - return obj;\n - }, \n - \n - /**\n - * Method: getURL\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - * \n - * Returns:\n - * {String} A string with the layer\'s url and parameters and also the \n - * passed-in bounds and appropriate tile size specified as \n - * parameters\n - */\n - getURL: function (bounds) {\n - bounds = this.adjustBounds(bounds);\n - var res = this.getServerResolution();\n - var x = Math.round((bounds.left - this.tileOrigin.lon) / (res * this.tileSize.w));\n - var y = Math.round((bounds.bottom - this.tileOrigin.lat) / (res * this.tileSize.h));\n - var z = this.getServerZoom();\n - var path = this.serviceVersion + "/" + this.layername + "/" + z + "/" + x + "/" + y + "." + this.type; \n - var url = this.url;\n - if (OpenLayers.Util.isArray(url)) {\n - url = this.selectUrl(path, url);\n - }\n - return url + path;\n - },\n -\n - /** \n - * Method: setMap\n - * When the layer is added to a map, then we can fetch our origin \n - * (if we don\'t have one.) \n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - setMap: function(map) {\n - OpenLayers.Layer.Grid.prototype.setMap.apply(this, arguments);\n - if (!this.tileOrigin) { \n - this.tileOrigin = new OpenLayers.LonLat(this.map.maxExtent.left,\n - this.map.maxExtent.bottom);\n - } \n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.TMS"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7441</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Text.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Text.js.xml deleted file mode 100644 index 09f428a11724bdc7ed54b815466f37ad8c1e5a74..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Text.js.xml +++ /dev/null @@ -1,311 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Text.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer/Markers.js\n - * @requires OpenLayers/Format/Text.js\n - * @requires OpenLayers/Request/XMLHttpRequest.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.Text\n - * This layer creates markers given data in a text file. The <location>\n - * property of the layer (specified as a property of the options argument\n - * in the <OpenLayers.Layer.Text> constructor) points to a tab delimited\n - * file with data used to create markers.\n - *\n - * The first row of the data file should be a header line with the column names\n - * of the data. Each column should be delimited by a tab space. The\n - * possible columns are:\n - * - *point* lat,lon of the point where a marker is to be placed\n - * - *lat* Latitude of the point where a marker is to be placed\n - * - *lon* Longitude of the point where a marker is to be placed\n - * - *icon* or *image* URL of marker icon to use.\n - * - *iconSize* Size of Icon to use.\n - * - *iconOffset* Where the top-left corner of the icon is to be placed\n - * relative to the latitude and longitude of the point.\n - * - *title* The text of the \'title\' is placed inside an \'h2\' marker\n - * inside a popup, which opens when the marker is clicked.\n - * - *description* The text of the \'description\' is placed below the h2\n - * in the popup. this can be plain text or HTML.\n - *\n - * Example text file:\n - * (code)\n - * lat\tlon\ttitle\tdescription\ticonSize\ticonOffset\ticon\n - * 10\t20\ttitle\tdescription\t21,25\t\t-10,-25\t\thttp://www.openlayers.org/dev/img/marker.png\n - * (end)\n - *\n - * Inherits from:\n - * - <OpenLayers.Layer.Markers>\n - */\n -OpenLayers.Layer.Text = OpenLayers.Class(OpenLayers.Layer.Markers, {\n -\n - /**\n - * APIProperty: location \n - * {String} URL of text file. Must be specified in the "options" argument\n - * of the constructor. Can not be changed once passed in. \n - */\n - location:null,\n -\n - /** \n - * Property: features\n - * {Array(<OpenLayers.Feature>)} \n - */\n - features: null,\n - \n - /**\n - * APIProperty: formatOptions\n - * {Object} Hash of options which should be passed to the format when it is\n - * created. Must be passed in the constructor.\n - */\n - formatOptions: null, \n -\n - /** \n - * Property: selectedFeature\n - * {<OpenLayers.Feature>}\n - */\n - selectedFeature: null,\n -\n - /**\n - * Constructor: OpenLayers.Layer.Text\n - * Create a text layer.\n - * \n - * Parameters:\n - * name - {String} \n - * options - {Object} Object with properties to be set on the layer.\n - * Must include <location> property.\n - */\n - initialize: function(name, options) {\n - OpenLayers.Layer.Markers.prototype.initialize.apply(this, arguments);\n - this.features = [];\n - },\n -\n - /**\n - * APIMethod: destroy \n - */\n - destroy: function() {\n - // Warning: Layer.Markers.destroy() must be called prior to calling\n - // clearFeatures() here, otherwise we leak memory. Indeed, if\n - // Layer.Markers.destroy() is called after clearFeatures(), it won\'t be\n - // able to remove the marker image elements from the layer\'s div since\n - // the markers will have been destroyed by clearFeatures().\n - OpenLayers.Layer.Markers.prototype.destroy.apply(this, arguments);\n - this.clearFeatures();\n - this.features = null;\n - },\n - \n - /**\n - * Method: loadText\n - * Start the load of the Text data. Don\'t do this when we first add the layer,\n - * since we may not be visible at any point, and it would therefore be a waste.\n - */\n - loadText: function() {\n - if (!this.loaded) {\n - if (this.location != null) {\n -\n - var onFail = function(e) {\n - this.events.triggerEvent("loadend");\n - };\n -\n - this.events.triggerEvent("loadstart");\n - OpenLayers.Request.GET({\n - url: this.location,\n - success: this.parseData,\n - failure: onFail,\n - scope: this\n - });\n - this.loaded = true;\n - }\n - } \n - }, \n - \n - /**\n - * Method: moveTo\n - * If layer is visible and Text has not been loaded, load Text. \n - * \n - * Parameters:\n - * bounds - {Object} \n - * zoomChanged - {Object} \n - * minor - {Object} \n - */\n - moveTo:function(bounds, zoomChanged, minor) {\n - OpenLayers.Layer.Markers.prototype.moveTo.apply(this, arguments);\n - if(this.visibility && !this.loaded){\n - this.loadText();\n - }\n - },\n - \n - /**\n - * Method: parseData\n - *\n - * Parameters:\n - * ajaxRequest - {<OpenLayers.Request.XMLHttpRequest>} \n - */\n - parseData: function(ajaxRequest) {\n - var text = ajaxRequest.responseText;\n - \n - var options = {};\n - \n - OpenLayers.Util.extend(options, this.formatOptions);\n - \n - if (this.map && !this.projection.equals(this.map.getProjectionObject())) {\n - options.externalProjection = this.projection;\n - options.internalProjection = this.map.getProjectionObject();\n - } \n - \n - var parser = new OpenLayers.Format.Text(options);\n - var features = parser.read(text);\n - for (var i=0, len=features.length; i<len; i++) {\n - var data = {};\n - var feature = features[i];\n - var location;\n - var iconSize, iconOffset;\n - \n - location = new OpenLayers.LonLat(feature.geometry.x, \n - feature.geometry.y);\n - \n - if (feature.style.graphicWidth \n - && feature.style.graphicHeight) {\n - iconSize = new OpenLayers.Size(\n - feature.style.graphicWidth,\n - feature.style.graphicHeight);\n - } \n - \n - // FIXME: At the moment, we only use this if we have an \n - // externalGraphic, because icon has no setOffset API Method.\n - /**\n - * FIXME FIRST!!\n - * The Text format does all sorts of parseFloating\n - * The result of a parseFloat for a bogus string is NaN. That\n - * means the three possible values here are undefined, NaN, or a\n - * number. The previous check was an identity check for null. This\n - * means it was failing for all undefined or NaN. A slightly better\n - * check is for undefined. An even better check is to see if the\n - * value is a number (see #1441).\n - */\n - if (feature.style.graphicXOffset !== undefined\n - && feature.style.graphicYOffset !== undefined) {\n - iconOffset = new OpenLayers.Pixel(\n - feature.style.graphicXOffset, \n - feature.style.graphicYOffset);\n - }\n - \n - if (feature.style.externalGraphic != null) {\n - data.icon = new OpenLayers.Icon(feature.style.externalGraphic, \n - iconSize, \n - iconOffset);\n - } else {\n - data.icon = OpenLayers.Marker.defaultIcon();\n -\n - //allows for the case where the image url is not \n - // specified but the size is. use a default icon\n - // but change the size\n - if (iconSize != null) {\n - data.icon.setSize(iconSize);\n - }\n - }\n - \n - if ((feature.attributes.title != null) \n - && (feature.attributes.description != null)) {\n - data[\'popupContentHTML\'] = \n - \'<h2>\'+feature.attributes.title+\'</h2>\' + \n - \'<p>\'+feature.attributes.description+\'</p>\';\n - }\n - \n - data[\'overflow\'] = feature.attributes.overflow || "auto"; \n - \n - var markerFeature = new OpenLayers.Feature(this, location, data);\n - this.features.push(markerFeature);\n - var marker = markerFeature.createMarker();\n - if ((feature.attributes.title != null) \n - && (feature.attributes.description != null)) {\n - marker.events.register(\'click\', markerFeature, this.markerClick);\n - }\n - this.addMarker(marker);\n - }\n - this.events.triggerEvent("loadend");\n - },\n - \n - /**\n - * Property: markerClick\n - * \n - * Parameters:\n - * evt - {Event} \n - *\n - * Context:\n - * - {<OpenLayers.Feature>}\n - */\n - markerClick: function(evt) {\n - var sameMarkerClicked = (this == this.layer.selectedFeature);\n - this.layer.selectedFeature = (!sameMarkerClicked) ? this : null;\n - for(var i=0, len=this.layer.map.popups.length; i<len; i++) {\n - this.layer.map.removePopup(this.layer.map.popups[i]);\n - }\n - if (!sameMarkerClicked) {\n - this.layer.map.addPopup(this.createPopup()); \n - }\n - OpenLayers.Event.stop(evt);\n - },\n -\n - /**\n - * Method: clearFeatures\n - */\n - clearFeatures: function() {\n - if (this.features != null) {\n - while(this.features.length > 0) {\n - var feature = this.features[0];\n - OpenLayers.Util.removeItem(this.features, feature);\n - feature.destroy();\n - }\n - } \n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.Text"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>9613</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/TileCache.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/TileCache.js.xml deleted file mode 100644 index a52aca43b03da145cfbd74d163943ccd97bcb794..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/TileCache.js.xml +++ /dev/null @@ -1,199 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>TileCache.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer/Grid.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.TileCache\n - * A read only TileCache layer. Used to requests tiles cached by TileCache in\n - * a web accessible cache. This means that you have to pre-populate your\n - * cache before this layer can be used. It is meant only to read tiles\n - * created by TileCache, and not to make calls to TileCache for tile\n - * creation. Create a new instance with the\n - * <OpenLayers.Layer.TileCache> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Layer.Grid>\n - */\n -OpenLayers.Layer.TileCache = OpenLayers.Class(OpenLayers.Layer.Grid, {\n -\n - /** \n - * APIProperty: isBaseLayer\n - * {Boolean} Treat this layer as a base layer. Default is true.\n - */\n - isBaseLayer: true,\n - \n - /** \n - * APIProperty: format\n - * {String} Mime type of the images returned. Default is image/png.\n - */\n - format: \'image/png\',\n -\n - /**\n - * APIProperty: serverResolutions\n - * {Array} A list of all resolutions available on the server. Only set this\n - * property if the map resolutions differ from the server. This\n - * property serves two purposes. (a) <serverResolutions> can include\n - * resolutions that the server supports and that you don\'t want to\n - * provide with this layer. (b) The map can work with resolutions\n - * that aren\'t supported by the server, i.e. that aren\'t in\n - * <serverResolutions>. When the map is displayed in such a resolution\n - * data for the closest server-supported resolution is loaded and the\n - * layer div is stretched as necessary.\n - */\n - serverResolutions: null,\n -\n - /**\n - * Constructor: OpenLayers.Layer.TileCache\n - * Create a new read only TileCache layer.\n - *\n - * Parameters:\n - * name - {String} Name of the layer displayed in the interface\n - * url - {String} Location of the web accessible cache (not the location of\n - * your tilecache script!)\n - * layername - {String} Layer name as defined in the TileCache \n - * configuration\n - * options - {Object} Optional object with properties to be set on the\n - * layer. Note that you should speficy your resolutions to match\n - * your TileCache configuration. This can be done by setting\n - * the resolutions array directly (here or on the map), by setting\n - * maxResolution and numZoomLevels, or by using scale based properties.\n - */\n - initialize: function(name, url, layername, options) {\n - this.layername = layername;\n - OpenLayers.Layer.Grid.prototype.initialize.apply(this,\n - [name, url, {}, options]);\n - this.extension = this.format.split(\'/\')[1].toLowerCase();\n - this.extension = (this.extension == \'jpg\') ? \'jpeg\' : this.extension;\n - }, \n -\n - /**\n - * APIMethod: clone\n - * obj - {Object} \n - * \n - * Returns:\n - * {<OpenLayers.Layer.TileCache>} An exact clone of this \n - * <OpenLayers.Layer.TileCache>\n - */\n - clone: function (obj) {\n - \n - if (obj == null) {\n - obj = new OpenLayers.Layer.TileCache(this.name,\n - this.url,\n - this.layername,\n - this.getOptions());\n - }\n -\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);\n -\n - // copy/set any non-init, non-simple values here\n -\n - return obj;\n - }, \n - \n - /**\n - * Method: getURL\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} \n - * \n - * Returns:\n - * {String} A string with the layer\'s url and parameters and also the \n - * passed-in bounds and appropriate tile size specified as parameters.\n - */\n - getURL: function(bounds) {\n - var res = this.getServerResolution();\n - var bbox = this.maxExtent;\n - var size = this.tileSize;\n - var tileX = Math.round((bounds.left - bbox.left) / (res * size.w));\n - var tileY = Math.round((bounds.bottom - bbox.bottom) / (res * size.h));\n - var tileZ = this.serverResolutions != null ?\n - OpenLayers.Util.indexOf(this.serverResolutions, res) :\n - this.map.getZoom();\n - /**\n - * Zero-pad a positive integer.\n - * number - {Int} \n - * length - {Int} \n - *\n - * Returns:\n - * {String} A zero-padded string\n - */\n - function zeroPad(number, length) {\n - number = String(number);\n - var zeros = [];\n - for(var i=0; i<length; ++i) {\n - zeros.push(\'0\');\n - }\n - return zeros.join(\'\').substring(0, length - number.length) + number;\n - }\n - var components = [\n - this.layername,\n - zeroPad(tileZ, 2),\n - zeroPad(parseInt(tileX / 1000000), 3),\n - zeroPad((parseInt(tileX / 1000) % 1000), 3),\n - zeroPad((parseInt(tileX) % 1000), 3),\n - zeroPad(parseInt(tileY / 1000000), 3),\n - zeroPad((parseInt(tileY / 1000) % 1000), 3),\n - zeroPad((parseInt(tileY) % 1000), 3) + \'.\' + this.extension\n - ];\n - var path = components.join(\'/\'); \n - var url = this.url;\n - if (OpenLayers.Util.isArray(url)) {\n - url = this.selectUrl(path, url);\n - }\n - url = (url.charAt(url.length - 1) == \'/\') ? url : url + \'/\';\n - return url + path;\n - },\n - \n - CLASS_NAME: "OpenLayers.Layer.TileCache"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5786</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/UTFGrid.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/UTFGrid.js.xml deleted file mode 100644 index ed42fb0a2f6fbfc3b719ce32df85c1434dae3323..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/UTFGrid.js.xml +++ /dev/null @@ -1,222 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>UTFGrid.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Layer/XYZ.js\n - * @requires OpenLayers/Tile/UTFGrid.js\n - */\n -\n -/** \n - * Class: OpenLayers.Layer.UTFGrid\n - * This Layer reads from UTFGrid tiled data sources. Since UTFGrids are \n - * essentially JSON-based ASCII art with attached attributes, they are not \n - * visibly rendered. In order to use them in the map, you must add a \n - * <OpenLayers.Control.UTFGrid> ontrol as well.\n - *\n - * Example:\n - *\n - * (start code)\n - * var world_utfgrid = new OpenLayers.Layer.UTFGrid({\n - * url: "/tiles/world_utfgrid/${z}/${x}/${y}.json",\n - * utfgridResolution: 4,\n - * displayInLayerSwitcher: false\n - * );\n - * map.addLayer(world_utfgrid);\n - * \n - * var control = new OpenLayers.Control.UTFGrid({\n - * layers: [world_utfgrid],\n - * handlerMode: \'move\',\n - * callback: function(dataLookup) {\n - * // do something with returned data\n - * }\n - * })\n - * (end code)\n - *\n - * \n - * Inherits from:\n - * - <OpenLayers.Layer.XYZ>\n - */\n -OpenLayers.Layer.UTFGrid = OpenLayers.Class(OpenLayers.Layer.XYZ, {\n - \n - /**\n - * APIProperty: isBaseLayer\n - * Default is true, as this is designed to be a base tile source. \n - */\n - isBaseLayer: false,\n - \n - /**\n - * APIProperty: projection\n - * {<OpenLayers.Projection>}\n - * Source projection for the UTFGrids. Default is "EPSG:900913".\n - */\n - projection: new OpenLayers.Projection("EPSG:900913"),\n -\n - /**\n - * Property: useJSONP\n - * {Boolean}\n - * Should we use a JSONP script approach instead of a standard AJAX call?\n - *\n - * Set to true for using utfgrids from another server. \n - * Avoids same-domain policy restrictions. \n - * Note that this only works if the server accepts \n - * the callback GET parameter and dynamically \n - * wraps the returned json in a function call.\n - * \n - * Default is false\n - */\n - useJSONP: false,\n - \n - /**\n - * APIProperty: url\n - * {String}\n - * URL tempate for UTFGrid tiles. Include x, y, and z parameters.\n - * E.g. "/tiles/${z}/${x}/${y}.json"\n - */\n -\n - /**\n - * APIProperty: utfgridResolution\n - * {Number}\n - * Ratio of the pixel width to the width of a UTFGrid data point. If an \n - * entry in the grid represents a 4x4 block of pixels, the \n - * utfgridResolution would be 4. Default is 2 (specified in \n - * <OpenLayers.Tile.UTFGrid>).\n - */\n -\n - /**\n - * Property: tileClass\n - * {<OpenLayers.Tile>} The tile class to use for this layer.\n - * Defaults is <OpenLayers.Tile.UTFGrid>.\n - */\n - tileClass: OpenLayers.Tile.UTFGrid,\n -\n - /**\n - * Constructor: OpenLayers.Layer.UTFGrid\n - * Create a new UTFGrid layer.\n - *\n - * Parameters:\n - * config - {Object} Configuration properties for the layer.\n - *\n - * Required configuration properties:\n - * url - {String} The url template for UTFGrid tiles. See the <url> property.\n - */\n - initialize: function(options) {\n - OpenLayers.Layer.Grid.prototype.initialize.apply(\n - this, [options.name, options.url, {}, options]\n - );\n - this.tileOptions = OpenLayers.Util.extend({\n - utfgridResolution: this.utfgridResolution\n - }, this.tileOptions);\n - },\n - \n - /**\n - * APIMethod: clone\n - * Create a clone of this layer\n - *\n - * Parameters:\n - * obj - {Object} Only used by a subclass of this layer.\n - * \n - * Returns:\n - * {<OpenLayers.Layer.UTFGrid>} An exact clone of this OpenLayers.Layer.UTFGrid\n - */\n - clone: function (obj) {\n - if (obj == null) {\n - obj = new OpenLayers.Layer.UTFGrid(this.getOptions());\n - }\n -\n - // get all additions from superclasses\n - obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);\n -\n - return obj;\n - },\n -\n - /**\n - * APIProperty: getFeatureInfo\n - * Get details about a feature associated with a map location. The object\n - * returned will have id and data properties. If the given location\n - * doesn\'t correspond to a feature, null will be returned.\n - *\n - * Parameters:\n - * location - {<OpenLayers.LonLat>} map location\n - *\n - * Returns:\n - * {Object} Object representing the feature id and UTFGrid data \n - * corresponding to the given map location. Returns null if the given\n - * location doesn\'t hit a feature.\n - */\n - getFeatureInfo: function(location) {\n - var info = null;\n - var tileInfo = this.getTileData(location);\n - if (tileInfo.tile) {\n - info = tileInfo.tile.getFeatureInfo(tileInfo.i, tileInfo.j);\n - }\n - return info;\n - },\n -\n - /**\n - * APIMethod: getFeatureId\n - * Get the identifier for the feature associated with a map location.\n - *\n - * Parameters:\n - * location - {<OpenLayers.LonLat>} map location\n - *\n - * Returns:\n - * {String} The feature identifier corresponding to the given map location.\n - * Returns null if the location doesn\'t hit a feature.\n - */\n - getFeatureId: function(location) {\n - var id = null;\n - var info = this.getTileData(location);\n - if (info.tile) {\n - id = info.tile.getFeatureId(info.i, info.j);\n - }\n - return id;\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.UTFGrid"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5425</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Vector.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Vector.js.xml deleted file mode 100644 index 205d645400bb0b0493f4dd009166bec052ca64ac..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Vector.js.xml +++ /dev/null @@ -1,1050 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Vector.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Layer.js\n - * @requires OpenLayers/Renderer.js\n - * @requires OpenLayers/StyleMap.js\n - * @requires OpenLayers/Feature/Vector.js\n - * @requires OpenLayers/Console.js\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.Vector\n - * Instances of OpenLayers.Layer.Vector are used to render vector data from\n - * a variety of sources. Create a new vector layer with the\n - * <OpenLayers.Layer.Vector> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Layer>\n - */\n -OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {\n -\n - /**\n - * APIProperty: events\n - * {<OpenLayers.Events>}\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * layer.events.register(type, obj, listener);\n - * (end)\n - *\n - * Listeners will be called with a reference to an event object. The\n - * properties of this event depends on exactly what happened.\n - *\n - * All event objects have at least the following properties:\n - * object - {Object} A reference to layer.events.object.\n - * element - {DOMElement} A reference to layer.events.element.\n - *\n - * Supported map event types (in addition to those from <OpenLayers.Layer.events>):\n - * beforefeatureadded - Triggered before a feature is added. Listeners\n - * will receive an object with a *feature* property referencing the\n - * feature to be added. To stop the feature from being added, a\n - * listener should return false.\n - * beforefeaturesadded - Triggered before an array of features is added.\n - * Listeners will receive an object with a *features* property\n - * referencing the feature to be added. To stop the features from\n - * being added, a listener should return false.\n - * featureadded - Triggered after a feature is added. The event\n - * object passed to listeners will have a *feature* property with a\n - * reference to the added feature.\n - * featuresadded - Triggered after features are added. The event\n - * object passed to listeners will have a *features* property with a\n - * reference to an array of added features.\n - * beforefeatureremoved - Triggered before a feature is removed. Listeners\n - * will receive an object with a *feature* property referencing the\n - * feature to be removed.\n - * beforefeaturesremoved - Triggered before multiple features are removed. \n - * Listeners will receive an object with a *features* property\n - * referencing the features to be removed.\n - * featureremoved - Triggerd after a feature is removed. The event\n - * object passed to listeners will have a *feature* property with a\n - * reference to the removed feature.\n - * featuresremoved - Triggered after features are removed. The event\n - * object passed to listeners will have a *features* property with a\n - * reference to an array of removed features.\n - * beforefeatureselected - Triggered before a feature is selected. Listeners\n - * will receive an object with a *feature* property referencing the\n - * feature to be selected. To stop the feature from being selectd, a\n - * listener should return false.\n - * featureselected - Triggered after a feature is selected. Listeners\n - * will receive an object with a *feature* property referencing the\n - * selected feature.\n - * featureunselected - Triggered after a feature is unselected.\n - * Listeners will receive an object with a *feature* property\n - * referencing the unselected feature.\n - * beforefeaturemodified - Triggered when a feature is selected to \n - * be modified. Listeners will receive an object with a *feature* \n - * property referencing the selected feature.\n - * featuremodified - Triggered when a feature has been modified.\n - * Listeners will receive an object with a *feature* property referencing \n - * the modified feature.\n - * afterfeaturemodified - Triggered when a feature is finished being modified.\n - * Listeners will receive an object with a *feature* property referencing \n - * the modified feature.\n - * vertexmodified - Triggered when a vertex within any feature geometry\n - * has been modified. Listeners will receive an object with a\n - * *feature* property referencing the modified feature, a *vertex*\n - * property referencing the vertex modified (always a point geometry),\n - * and a *pixel* property referencing the pixel location of the\n - * modification.\n - * vertexremoved - Triggered when a vertex within any feature geometry\n - * has been deleted. Listeners will receive an object with a\n - * *feature* property referencing the modified feature, a *vertex*\n - * property referencing the vertex modified (always a point geometry),\n - * and a *pixel* property referencing the pixel location of the\n - * removal.\n - * sketchstarted - Triggered when a feature sketch bound for this layer\n - * is started. Listeners will receive an object with a *feature*\n - * property referencing the new sketch feature and a *vertex* property\n - * referencing the creation point.\n - * sketchmodified - Triggered when a feature sketch bound for this layer\n - * is modified. Listeners will receive an object with a *vertex*\n - * property referencing the modified vertex and a *feature* property\n - * referencing the sketch feature.\n - * sketchcomplete - Triggered when a feature sketch bound for this layer\n - * is complete. Listeners will receive an object with a *feature*\n - * property referencing the sketch feature. By returning false, a\n - * listener can stop the sketch feature from being added to the layer.\n - * refresh - Triggered when something wants a strategy to ask the protocol\n - * for a new set of features.\n - */\n -\n - /**\n - * APIProperty: isBaseLayer\n - * {Boolean} The layer is a base layer. Default is false. Set this property\n - * in the layer options.\n - */\n - isBaseLayer: false,\n -\n - /** \n - * APIProperty: isFixed\n - * {Boolean} Whether the layer remains in one place while dragging the\n - * map.\n - */\n - isFixed: false,\n -\n - /** \n - * APIProperty: features\n - * {Array(<OpenLayers.Feature.Vector>)} \n - */\n - features: null,\n - \n - /** \n - * Property: filter\n - * {<OpenLayers.Filter>} The filter set in this layer,\n - * a strategy launching read requests can combined\n - * this filter with its own filter.\n - */\n - filter: null,\n - \n - /** \n - * Property: selectedFeatures\n - * {Array(<OpenLayers.Feature.Vector>)} \n - */\n - selectedFeatures: null,\n - \n - /**\n - * Property: unrenderedFeatures\n - * {Object} hash of features, keyed by feature.id, that the renderer\n - * failed to draw\n - */\n - unrenderedFeatures: null,\n -\n - /**\n - * APIProperty: reportError\n - * {Boolean} report friendly error message when loading of renderer\n - * fails.\n - */\n - reportError: true, \n -\n - /** \n - * APIProperty: style\n - * {Object} Default style for the layer\n - */\n - style: null,\n - \n - /**\n - * Property: styleMap\n - * {<OpenLayers.StyleMap>}\n - */\n - styleMap: null,\n - \n - /**\n - * Property: strategies\n - * {Array(<OpenLayers.Strategy>})} Optional list of strategies for the layer.\n - */\n - strategies: null,\n - \n - /**\n - * Property: protocol\n - * {<OpenLayers.Protocol>} Optional protocol for the layer.\n - */\n - protocol: null,\n - \n - /**\n - * Property: renderers\n - * {Array(String)} List of supported Renderer classes. Add to this list to\n - * add support for additional renderers. This list is ordered:\n - * the first renderer which returns true for the \'supported()\'\n - * method will be used, if not defined in the \'renderer\' option.\n - */\n - renderers: [\'SVG\', \'VML\', \'Canvas\'],\n - \n - /** \n - * Property: renderer\n - * {<OpenLayers.Renderer>}\n - */\n - renderer: null,\n - \n - /**\n - * APIProperty: rendererOptions\n - * {Object} Options for the renderer. See {<OpenLayers.Renderer>} for\n - * supported options.\n - */\n - rendererOptions: null,\n - \n - /** \n - * APIProperty: geometryType\n - * {String} geometryType allows you to limit the types of geometries this\n - * layer supports. This should be set to something like\n - * "OpenLayers.Geometry.Point" to limit types.\n - */\n - geometryType: null,\n -\n - /** \n - * Property: drawn\n - * {Boolean} Whether the Vector Layer features have been drawn yet.\n - */\n - drawn: false,\n - \n - /** \n - * APIProperty: ratio\n - * {Float} This specifies the ratio of the size of the visiblity of the Vector Layer features to the size of the map.\n - */ \n - ratio: 1,\n -\n - /**\n - * Constructor: OpenLayers.Layer.Vector\n - * Create a new vector layer\n - *\n - * Parameters:\n - * name - {String} A name for the layer\n - * options - {Object} Optional object with non-default properties to set on\n - * the layer.\n - *\n - * Returns:\n - * {<OpenLayers.Layer.Vector>} A new vector layer\n - */\n - initialize: function(name, options) {\n - OpenLayers.Layer.prototype.initialize.apply(this, arguments);\n -\n - // allow user-set renderer, otherwise assign one\n - if (!this.renderer || !this.renderer.supported()) { \n - this.assignRenderer();\n - }\n -\n - // if no valid renderer found, display error\n - if (!this.renderer || !this.renderer.supported()) {\n - this.renderer = null;\n - this.displayError();\n - } \n -\n - if (!this.styleMap) {\n - this.styleMap = new OpenLayers.StyleMap();\n - }\n -\n - this.features = [];\n - this.selectedFeatures = [];\n - this.unrenderedFeatures = {};\n - \n - // Allow for custom layer behavior\n - if(this.strategies){\n - for(var i=0, len=this.strategies.length; i<len; i++) {\n - this.strategies[i].setLayer(this);\n - }\n - }\n -\n - },\n -\n - /**\n - * APIMethod: destroy\n - * Destroy this layer\n - */\n - destroy: function() {\n - if (this.strategies) {\n - var strategy, i, len;\n - for(i=0, len=this.strategies.length; i<len; i++) {\n - strategy = this.strategies[i];\n - if(strategy.autoDestroy) {\n - strategy.destroy();\n - }\n - }\n - this.strategies = null;\n - }\n - if (this.protocol) {\n - if(this.protocol.autoDestroy) {\n - this.protocol.destroy();\n - }\n - this.protocol = null;\n - }\n - this.destroyFeatures();\n - this.features = null;\n - this.selectedFeatures = null;\n - this.unrenderedFeatures = null;\n - if (this.renderer) {\n - this.renderer.destroy();\n - }\n - this.renderer = null;\n - this.geometryType = null;\n - this.drawn = null;\n - OpenLayers.Layer.prototype.destroy.apply(this, arguments); \n - },\n -\n - /**\n - * Method: clone\n - * Create a clone of this layer.\n - * \n - * Note: Features of the layer are also cloned.\n - *\n - * Returns:\n - * {<OpenLayers.Layer.Vector>} An exact clone of this layer\n - */\n - clone: function (obj) {\n - \n - if (obj == null) {\n - obj = new OpenLayers.Layer.Vector(this.name, this.getOptions());\n - }\n -\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.prototype.clone.apply(this, [obj]);\n -\n - // copy/set any non-init, non-simple values here\n - var features = this.features;\n - var len = features.length;\n - var clonedFeatures = new Array(len);\n - for(var i=0; i<len; ++i) {\n - clonedFeatures[i] = features[i].clone();\n - }\n - obj.features = clonedFeatures;\n -\n - return obj;\n - }, \n - \n - /**\n - * Method: refresh\n - * Ask the layer to request features again and redraw them. Triggers\n - * the refresh event if the layer is in range and visible.\n - *\n - * Parameters:\n - * obj - {Object} Optional object with properties for any listener of\n - * the refresh event.\n - */\n - refresh: function(obj) {\n - if(this.calculateInRange() && this.visibility) {\n - this.events.triggerEvent("refresh", obj);\n - }\n - },\n -\n - /** \n - * Method: assignRenderer\n - * Iterates through the available renderer implementations and selects \n - * and assigns the first one whose "supported()" function returns true.\n - */ \n - assignRenderer: function() {\n - for (var i=0, len=this.renderers.length; i<len; i++) {\n - var rendererClass = this.renderers[i];\n - var renderer = (typeof rendererClass == "function") ?\n - rendererClass :\n - OpenLayers.Renderer[rendererClass];\n - if (renderer && renderer.prototype.supported()) {\n - this.renderer = new renderer(this.div, this.rendererOptions);\n - break;\n - } \n - } \n - },\n -\n - /** \n - * Method: displayError \n - * Let the user know their browser isn\'t supported.\n - */\n - displayError: function() {\n - if (this.reportError) {\n - OpenLayers.Console.userError(OpenLayers.i18n("browserNotSupported", \n - {renderers: this. renderers.join(\'\\n\')}));\n - } \n - },\n -\n - /** \n - * Method: setMap\n - * The layer has been added to the map. \n - * \n - * If there is no renderer set, the layer can\'t be used. Remove it.\n - * Otherwise, give the renderer a reference to the map and set its size.\n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>} \n - */\n - setMap: function(map) { \n - OpenLayers.Layer.prototype.setMap.apply(this, arguments);\n -\n - if (!this.renderer) {\n - this.map.removeLayer(this);\n - } else {\n - this.renderer.map = this.map;\n -\n - var newSize = this.map.getSize();\n - newSize.w = newSize.w * this.ratio;\n - newSize.h = newSize.h * this.ratio;\n - this.renderer.setSize(newSize);\n - }\n - },\n -\n - /**\n - * Method: afterAdd\n - * Called at the end of the map.addLayer sequence. At this point, the map\n - * will have a base layer. Any autoActivate strategies will be\n - * activated here.\n - */\n - afterAdd: function() {\n - if(this.strategies) {\n - var strategy, i, len;\n - for(i=0, len=this.strategies.length; i<len; i++) {\n - strategy = this.strategies[i];\n - if(strategy.autoActivate) {\n - strategy.activate();\n - }\n - }\n - }\n - },\n -\n - /**\n - * Method: removeMap\n - * The layer has been removed from the map.\n - *\n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - removeMap: function(map) {\n - this.drawn = false;\n - if(this.strategies) {\n - var strategy, i, len;\n - for(i=0, len=this.strategies.length; i<len; i++) {\n - strategy = this.strategies[i];\n - if(strategy.autoActivate) {\n - strategy.deactivate();\n - }\n - }\n - }\n - },\n - \n - /**\n - * Method: onMapResize\n - * Notify the renderer of the change in size. \n - * \n - */\n - onMapResize: function() {\n - OpenLayers.Layer.prototype.onMapResize.apply(this, arguments);\n - \n - var newSize = this.map.getSize();\n - newSize.w = newSize.w * this.ratio;\n - newSize.h = newSize.h * this.ratio;\n - this.renderer.setSize(newSize);\n - },\n -\n - /**\n - * Method: moveTo\n - * Reset the vector layer\'s div so that it once again is lined up with \n - * the map. Notify the renderer of the change of extent, and in the\n - * case of a change of zoom level (resolution), have the \n - * renderer redraw features.\n - * \n - * If the layer has not yet been drawn, cycle through the layer\'s \n - * features and draw each one.\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} \n - * zoomChanged - {Boolean} \n - * dragging - {Boolean} \n - */\n - moveTo: function(bounds, zoomChanged, dragging) {\n - OpenLayers.Layer.prototype.moveTo.apply(this, arguments);\n - \n - var coordSysUnchanged = true;\n - if (!dragging) {\n - this.renderer.root.style.visibility = \'hidden\';\n -\n - var viewSize = this.map.getSize(),\n - viewWidth = viewSize.w,\n - viewHeight = viewSize.h,\n - offsetLeft = (viewWidth / 2 * this.ratio) - viewWidth / 2,\n - offsetTop = (viewHeight / 2 * this.ratio) - viewHeight / 2;\n - offsetLeft += parseInt(this.map.layerContainerDiv.style.left, 10);\n - offsetLeft = -Math.round(offsetLeft);\n - offsetTop += parseInt(this.map.layerContainerDiv.style.top, 10);\n - offsetTop = -Math.round(offsetTop);\n -\n - this.div.style.left = offsetLeft + \'px\';\n - this.div.style.top = offsetTop + \'px\';\n -\n - var extent = this.map.getExtent().scale(this.ratio);\n - coordSysUnchanged = this.renderer.setExtent(extent, zoomChanged);\n -\n - this.renderer.root.style.visibility = \'visible\';\n -\n - // Force a reflow on gecko based browsers to prevent jump/flicker.\n - // This seems to happen on only certain configurations; it was originally\n - // noticed in FF 2.0 and Linux.\n - if (OpenLayers.IS_GECKO === true) {\n - this.div.scrollLeft = this.div.scrollLeft;\n - }\n - \n - if (!zoomChanged && coordSysUnchanged) {\n - for (var i in this.unrenderedFeatures) {\n - var feature = this.unrenderedFeatures[i];\n - this.drawFeature(feature);\n - }\n - }\n - }\n - if (!this.drawn || zoomChanged || !coordSysUnchanged) {\n - this.drawn = true;\n - var feature;\n - for(var i=0, len=this.features.length; i<len; i++) {\n - this.renderer.locked = (i !== (len - 1));\n - feature = this.features[i];\n - this.drawFeature(feature);\n - }\n - } \n - },\n - \n - /** \n - * APIMethod: display\n - * Hide or show the Layer\n - * \n - * Parameters:\n - * display - {Boolean}\n - */\n - display: function(display) {\n - OpenLayers.Layer.prototype.display.apply(this, arguments);\n - // we need to set the display style of the root in case it is attached\n - // to a foreign layer\n - var currentDisplay = this.div.style.display;\n - if(currentDisplay != this.renderer.root.style.display) {\n - this.renderer.root.style.display = currentDisplay;\n - }\n - },\n -\n - /**\n - * APIMethod: addFeatures\n - * Add Features to the layer.\n - *\n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)} \n - * options - {Object}\n - */\n - addFeatures: function(features, options) {\n - if (!(OpenLayers.Util.isArray(features))) {\n - features = [features];\n - }\n - \n - var notify = !options || !options.silent;\n - if(notify) {\n - var event = {features: features};\n - var ret = this.events.triggerEvent("beforefeaturesadded", event);\n - if(ret === false) {\n - return;\n - }\n - features = event.features;\n - }\n - \n - // Track successfully added features for featuresadded event, since\n - // beforefeatureadded can veto single features.\n - var featuresAdded = [];\n - for (var i=0, len=features.length; i<len; i++) {\n - if (i != (features.length - 1)) {\n - this.renderer.locked = true;\n - } else {\n - this.renderer.locked = false;\n - } \n - var feature = features[i];\n - \n - if (this.geometryType &&\n - !(feature.geometry instanceof this.geometryType)) {\n - throw new TypeError(\'addFeatures: component should be an \' +\n - this.geometryType.prototype.CLASS_NAME);\n - }\n -\n - //give feature reference to its layer\n - feature.layer = this;\n -\n - if (!feature.style && this.style) {\n - feature.style = OpenLayers.Util.extend({}, this.style);\n - }\n -\n - if (notify) {\n - if(this.events.triggerEvent("beforefeatureadded",\n - {feature: feature}) === false) {\n - continue;\n - }\n - this.preFeatureInsert(feature);\n - }\n -\n - featuresAdded.push(feature);\n - this.features.push(feature);\n - this.drawFeature(feature);\n - \n - if (notify) {\n - this.events.triggerEvent("featureadded", {\n - feature: feature\n - });\n - this.onFeatureInsert(feature);\n - }\n - }\n - \n - if(notify) {\n - this.events.triggerEvent("featuresadded", {features: featuresAdded});\n - }\n - },\n -\n -\n - /**\n - * APIMethod: removeFeatures\n - * Remove features from the layer. This erases any drawn features and\n - * removes them from the layer\'s control. The beforefeatureremoved\n - * and featureremoved events will be triggered for each feature. The\n - * featuresremoved event will be triggered after all features have\n - * been removed. To supress event triggering, use the silent option.\n - * \n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)} List of features to be\n - * removed.\n - * options - {Object} Optional properties for changing behavior of the\n - * removal.\n - *\n - * Valid options:\n - * silent - {Boolean} Supress event triggering. Default is false.\n - */\n - removeFeatures: function(features, options) {\n - if(!features || features.length === 0) {\n - return;\n - }\n - if (features === this.features) {\n - return this.removeAllFeatures(options);\n - }\n - if (!(OpenLayers.Util.isArray(features))) {\n - features = [features];\n - }\n - if (features === this.selectedFeatures) {\n - features = features.slice();\n - }\n -\n - var notify = !options || !options.silent;\n - \n - if (notify) {\n - this.events.triggerEvent(\n - "beforefeaturesremoved", {features: features}\n - );\n - }\n -\n - for (var i = features.length - 1; i >= 0; i--) {\n - // We remain locked so long as we\'re not at 0\n - // and the \'next\' feature has a geometry. We do the geometry check\n - // because if all the features after the current one are \'null\', we\n - // won\'t call eraseGeometry, so we break the \'renderer functions\n - // will always be called with locked=false *last*\' rule. The end result\n - // is a possible gratiutious unlocking to save a loop through the rest \n - // of the list checking the remaining features every time. So long as\n - // null geoms are rare, this is probably okay. \n - if (i != 0 && features[i-1].geometry) {\n - this.renderer.locked = true;\n - } else {\n - this.renderer.locked = false;\n - }\n - \n - var feature = features[i];\n - delete this.unrenderedFeatures[feature.id];\n -\n - if (notify) {\n - this.events.triggerEvent("beforefeatureremoved", {\n - feature: feature\n - });\n - }\n -\n - this.features = OpenLayers.Util.removeItem(this.features, feature);\n - // feature has no layer at this point\n - feature.layer = null;\n -\n - if (feature.geometry) {\n - this.renderer.eraseFeatures(feature);\n - }\n - \n - //in the case that this feature is one of the selected features, \n - // remove it from that array as well.\n - if (OpenLayers.Util.indexOf(this.selectedFeatures, feature) != -1){\n - OpenLayers.Util.removeItem(this.selectedFeatures, feature);\n - }\n -\n - if (notify) {\n - this.events.triggerEvent("featureremoved", {\n - feature: feature\n - });\n - }\n - }\n -\n - if (notify) {\n - this.events.triggerEvent("featuresremoved", {features: features});\n - }\n - },\n - \n - /** \n - * APIMethod: removeAllFeatures\n - * Remove all features from the layer.\n - *\n - * Parameters:\n - * options - {Object} Optional properties for changing behavior of the\n - * removal.\n - *\n - * Valid options:\n - * silent - {Boolean} Supress event triggering. Default is false.\n - */\n - removeAllFeatures: function(options) {\n - var notify = !options || !options.silent;\n - var features = this.features;\n - if (notify) {\n - this.events.triggerEvent(\n - "beforefeaturesremoved", {features: features}\n - );\n - }\n - var feature;\n - for (var i = features.length-1; i >= 0; i--) {\n - feature = features[i];\n - if (notify) {\n - this.events.triggerEvent("beforefeatureremoved", {\n - feature: feature\n - });\n - }\n - feature.layer = null;\n - if (notify) {\n - this.events.triggerEvent("featureremoved", {\n - feature: feature\n - });\n - }\n - }\n - this.renderer.clear();\n - this.features = [];\n - this.unrenderedFeatures = {};\n - this.selectedFeatures = [];\n - if (notify) {\n - this.events.triggerEvent("featuresremoved", {features: features});\n - }\n - },\n -\n - /**\n - * APIMethod: destroyFeatures\n - * Erase and destroy features on the layer.\n - *\n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)} An optional array of\n - * features to destroy. If not supplied, all features on the layer\n - * will be destroyed.\n - * options - {Object}\n - */\n - destroyFeatures: function(features, options) {\n - var all = (features == undefined); // evaluates to true if\n - // features is null\n - if(all) {\n - features = this.features;\n - }\n - if(features) {\n - this.removeFeatures(features, options);\n - for(var i=features.length-1; i>=0; i--) {\n - features[i].destroy();\n - }\n - }\n - },\n -\n - /**\n - * APIMethod: drawFeature\n - * Draw (or redraw) a feature on the layer. If the optional style argument\n - * is included, this style will be used. If no style is included, the\n - * feature\'s style will be used. If the feature doesn\'t have a style,\n - * the layer\'s style will be used.\n - * \n - * This function is not designed to be used when adding features to \n - * the layer (use addFeatures instead). It is meant to be used when\n - * the style of a feature has changed, or in some other way needs to \n - * visually updated *after* it has already been added to a layer. You\n - * must add the feature to the layer for most layer-related events to \n - * happen.\n - *\n - * Parameters: \n - * feature - {<OpenLayers.Feature.Vector>} \n - * style - {String | Object} Named render intent or full symbolizer object.\n - */\n - drawFeature: function(feature, style) {\n - // don\'t try to draw the feature with the renderer if the layer is not \n - // drawn itself\n - if (!this.drawn) {\n - return;\n - }\n - if (typeof style != "object") {\n - if(!style && feature.state === OpenLayers.State.DELETE) {\n - style = "delete";\n - }\n - var renderIntent = style || feature.renderIntent;\n - style = feature.style || this.style;\n - if (!style) {\n - style = this.styleMap.createSymbolizer(feature, renderIntent);\n - }\n - }\n - \n - var drawn = this.renderer.drawFeature(feature, style);\n - //TODO remove the check for null when we get rid of Renderer.SVG\n - if (drawn === false || drawn === null) {\n - this.unrenderedFeatures[feature.id] = feature;\n - } else {\n - delete this.unrenderedFeatures[feature.id];\n - }\n - },\n - \n - /**\n - * Method: eraseFeatures\n - * Erase features from the layer.\n - *\n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)} \n - */\n - eraseFeatures: function(features) {\n - this.renderer.eraseFeatures(features);\n - },\n -\n - /**\n - * Method: getFeatureFromEvent\n - * Given an event, return a feature if the event occurred over one.\n - * Otherwise, return null.\n - *\n - * Parameters:\n - * evt - {Event} \n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector>} A feature if one was under the event.\n - */\n - getFeatureFromEvent: function(evt) {\n - if (!this.renderer) {\n - throw new Error(\'getFeatureFromEvent called on layer with no \' +\n - \'renderer. This usually means you destroyed a \' +\n - \'layer, but not some handler which is associated \' +\n - \'with it.\');\n - }\n - var feature = null;\n - var featureId = this.renderer.getFeatureIdFromEvent(evt);\n - if (featureId) {\n - if (typeof featureId === "string") {\n - feature = this.getFeatureById(featureId);\n - } else {\n - feature = featureId;\n - }\n - }\n - return feature;\n - },\n -\n - /**\n - * APIMethod: getFeatureBy\n - * Given a property value, return the feature if it exists in the features array\n - *\n - * Parameters:\n - * property - {String}\n - * value - {String}\n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector>} A feature corresponding to the given\n - * property value or null if there is no such feature.\n - */\n - getFeatureBy: function(property, value) {\n - //TBD - would it be more efficient to use a hash for this.features?\n - var feature = null;\n - for(var i=0, len=this.features.length; i<len; ++i) {\n - if(this.features[i][property] == value) {\n - feature = this.features[i];\n - break;\n - }\n - }\n - return feature;\n - },\n -\n - /**\n - * APIMethod: getFeatureById\n - * Given a feature id, return the feature if it exists in the features array\n - *\n - * Parameters:\n - * featureId - {String}\n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector>} A feature corresponding to the given\n - * featureId or null if there is no such feature.\n - */\n - getFeatureById: function(featureId) {\n - return this.getFeatureBy(\'id\', featureId);\n - },\n -\n - /**\n - * APIMethod: getFeatureByFid\n - * Given a feature fid, return the feature if it exists in the features array\n - *\n - * Parameters:\n - * featureFid - {String}\n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector>} A feature corresponding to the given\n - * featureFid or null if there is no such feature.\n - */\n - getFeatureByFid: function(featureFid) {\n - return this.getFeatureBy(\'fid\', featureFid);\n - },\n - \n - /**\n - * APIMethod: getFeaturesByAttribute\n - * Returns an array of features that have the given attribute key set to the\n - * given value. Comparison of attribute values takes care of datatypes, e.g.\n - * the string \'1234\' is not equal to the number 1234.\n - *\n - * Parameters:\n - * attrName - {String}\n - * attrValue - {Mixed}\n - *\n - * Returns:\n - * Array({<OpenLayers.Feature.Vector>}) An array of features that have the \n - * passed named attribute set to the given value.\n - */\n - getFeaturesByAttribute: function(attrName, attrValue) {\n - var i,\n - feature, \n - len = this.features.length,\n - foundFeatures = [];\n - for(i = 0; i < len; i++) { \n - feature = this.features[i];\n - if(feature && feature.attributes) {\n - if (feature.attributes[attrName] === attrValue) {\n - foundFeatures.push(feature);\n - }\n - }\n - }\n - return foundFeatures;\n - },\n -\n - /**\n - * Unselect the selected features\n - * i.e. clears the featureSelection array\n - * change the style back\n - clearSelection: function() {\n -\n - var vectorLayer = this.map.vectorLayer;\n - for (var i = 0; i < this.map.featureSelection.length; i++) {\n - var featureSelection = this.map.featureSelection[i];\n - vectorLayer.drawFeature(featureSelection, vectorLayer.style);\n - }\n - this.map.featureSelection = [];\n - },\n - */\n -\n -\n - /**\n - * APIMethod: onFeatureInsert\n - * method called after a feature is inserted.\n - * Does nothing by default. Override this if you\n - * need to do something on feature updates.\n - *\n - * Parameters: \n - * feature - {<OpenLayers.Feature.Vector>} \n - */\n - onFeatureInsert: function(feature) {\n - },\n - \n - /**\n - * APIMethod: preFeatureInsert\n - * method called before a feature is inserted.\n - * Does nothing by default. Override this if you\n - * need to do something when features are first added to the\n - * layer, but before they are drawn, such as adjust the style.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} \n - */\n - preFeatureInsert: function(feature) {\n - },\n -\n - /** \n - * APIMethod: getDataExtent\n - * Calculates the max extent which includes all of the features.\n - * \n - * Returns:\n - * {<OpenLayers.Bounds>} or null if the layer has no features with\n - * geometries.\n - */\n - getDataExtent: function () {\n - var maxExtent = null;\n - var features = this.features;\n - if(features && (features.length > 0)) {\n - var geometry = null;\n - for(var i=0, len=features.length; i<len; i++) {\n - geometry = features[i].geometry;\n - if (geometry) {\n - if (maxExtent === null) {\n - maxExtent = new OpenLayers.Bounds();\n - }\n - maxExtent.extend(geometry.getBounds());\n - }\n - }\n - }\n - return maxExtent;\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.Vector"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>34709</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Vector.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Vector.xml deleted file mode 100644 index 2c357b32b02076cdd2df90374b413cdd2d1baca1..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Vector.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Vector</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Layer/Vector</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Vector/RootContainer.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Vector/RootContainer.js.xml deleted file mode 100644 index 0a8e78bd00f7f09d2c80c79fac76a012a014a364..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Vector/RootContainer.js.xml +++ /dev/null @@ -1,198 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>RootContainer.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Layer/Vector.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.Vector.RootContainer\n - * A special layer type to combine multiple vector layers inside a single\n - * renderer root container. This class is not supposed to be instantiated\n - * from user space, it is a helper class for controls that require event\n - * processing for multiple vector layers.\n - *\n - * Inherits from:\n - * - <OpenLayers.Layer.Vector>\n - */\n -OpenLayers.Layer.Vector.RootContainer = OpenLayers.Class(OpenLayers.Layer.Vector, {\n - \n - /**\n - * Property: displayInLayerSwitcher\n - * Set to false for this layer type\n - */\n - displayInLayerSwitcher: false,\n - \n - /**\n - * APIProperty: layers\n - * Layers that are attached to this container. Required config option.\n - */\n - layers: null,\n - \n - /**\n - * Constructor: OpenLayers.Layer.Vector.RootContainer\n - * Create a new root container for multiple vector layer. This constructor\n - * is not supposed to be used from user space, it is only to be used by\n - * controls that need feature selection across multiple vector layers.\n - *\n - * Parameters:\n - * name - {String} A name for the layer\n - * options - {Object} Optional object with non-default properties to set on\n - * the layer.\n - * \n - * Required options properties:\n - * layers - {Array(<OpenLayers.Layer.Vector>)} The layers managed by this\n - * container\n - *\n - * Returns:\n - * {<OpenLayers.Layer.Vector.RootContainer>} A new vector layer root\n - * container\n - */\n - \n - /**\n - * Method: display\n - */\n - display: function() {},\n - \n - /**\n - * Method: getFeatureFromEvent\n - * walk through the layers to find the feature returned by the event\n - * \n - * Parameters:\n - * evt - {Object} event object with a feature property\n - * \n - * Returns:\n - * {<OpenLayers.Feature.Vector>}\n - */\n - getFeatureFromEvent: function(evt) {\n - var layers = this.layers;\n - var feature;\n - for(var i=0; i<layers.length; i++) {\n - feature = layers[i].getFeatureFromEvent(evt);\n - if(feature) {\n - return feature;\n - }\n - }\n - },\n - \n - /**\n - * Method: setMap\n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - setMap: function(map) {\n - OpenLayers.Layer.Vector.prototype.setMap.apply(this, arguments);\n - this.collectRoots();\n - map.events.register("changelayer", this, this.handleChangeLayer);\n - },\n - \n - /**\n - * Method: removeMap\n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - removeMap: function(map) {\n - map.events.unregister("changelayer", this, this.handleChangeLayer);\n - this.resetRoots();\n - OpenLayers.Layer.Vector.prototype.removeMap.apply(this, arguments);\n - },\n - \n - /**\n - * Method: collectRoots\n - * Collects the root nodes of all layers this control is configured with\n - * and moveswien the nodes to this control\'s layer\n - */\n - collectRoots: function() {\n - var layer;\n - // walk through all map layers, because we want to keep the order\n - for(var i=0; i<this.map.layers.length; ++i) {\n - layer = this.map.layers[i];\n - if(OpenLayers.Util.indexOf(this.layers, layer) != -1) {\n - layer.renderer.moveRoot(this.renderer);\n - }\n - }\n - },\n - \n - /**\n - * Method: resetRoots\n - * Resets the root nodes back into the layers they belong to.\n - */\n - resetRoots: function() {\n - var layer;\n - for(var i=0; i<this.layers.length; ++i) {\n - layer = this.layers[i];\n - if(this.renderer && layer.renderer.getRenderLayerId() == this.id) {\n - this.renderer.moveRoot(layer.renderer);\n - }\n - }\n - },\n - \n - /**\n - * Method: handleChangeLayer\n - * Event handler for the map\'s changelayer event. We need to rebuild\n - * this container\'s layer dom if order of one of its layers changes.\n - * This handler is added with the setMap method, and removed with the\n - * removeMap method.\n - * \n - * Parameters:\n - * evt - {Object}\n - */\n - handleChangeLayer: function(evt) {\n - var layer = evt.layer;\n - if(evt.property == "order" &&\n - OpenLayers.Util.indexOf(this.layers, layer) != -1) {\n - this.resetRoots();\n - this.collectRoots();\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.Vector.RootContainer"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4709</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/WMS.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/WMS.js.xml deleted file mode 100644 index e8cf1ba575e682b2f3aed2bd2c33e6ccc6cd3cbb..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/WMS.js.xml +++ /dev/null @@ -1,310 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WMS.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer/Grid.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.WMS\n - * Instances of OpenLayers.Layer.WMS are used to display data from OGC Web\n - * Mapping Services. Create a new WMS layer with the <OpenLayers.Layer.WMS>\n - * constructor.\n - * \n - * Inherits from:\n - * - <OpenLayers.Layer.Grid>\n - */\n -OpenLayers.Layer.WMS = OpenLayers.Class(OpenLayers.Layer.Grid, {\n -\n - /**\n - * Constant: DEFAULT_PARAMS\n - * {Object} Hashtable of default parameter key/value pairs \n - */\n - DEFAULT_PARAMS: { service: "WMS",\n - version: "1.1.1",\n - request: "GetMap",\n - styles: "",\n - format: "image/jpeg"\n - },\n - \n - /**\n - * APIProperty: isBaseLayer\n - * {Boolean} Default is true for WMS layer\n - */\n - isBaseLayer: true,\n - \n - /**\n - * APIProperty: encodeBBOX\n - * {Boolean} Should the BBOX commas be encoded? The WMS spec says \'no\', \n - * but some services want it that way. Default false.\n - */\n - encodeBBOX: false,\n - \n - /** \n - * APIProperty: noMagic \n - * {Boolean} If true, the image format will not be automagicaly switched \n - * from image/jpeg to image/png or image/gif when using \n - * TRANSPARENT=TRUE. Also isBaseLayer will not changed by the \n - * constructor. Default false. \n - */ \n - noMagic: false,\n - \n - /**\n - * Property: yx\n - * {Object} Keys in this object are EPSG codes for which the axis order\n - * is to be reversed (yx instead of xy, LatLon instead of LonLat), with\n - * true as value. This is only relevant for WMS versions >= 1.3.0, and\n - * only if yx is not set in <OpenLayers.Projection.defaults> for the\n - * used projection.\n - */\n - yx: {},\n - \n - /**\n - * Constructor: OpenLayers.Layer.WMS\n - * Create a new WMS layer object\n - *\n - * Examples:\n - *\n - * The code below creates a simple WMS layer using the image/jpeg format.\n - * (code)\n - * var wms = new OpenLayers.Layer.WMS("NASA Global Mosaic",\n - * "http://wms.jpl.nasa.gov/wms.cgi", \n - * {layers: "modis,global_mosaic"});\n - * (end)\n - * Note the 3rd argument (params). Properties added to this object will be\n - * added to the WMS GetMap requests used for this layer\'s tiles. The only\n - * mandatory parameter is "layers". Other common WMS params include\n - * "transparent", "styles" and "format". Note that the "srs" param will\n - * always be ignored. Instead, it will be derived from the baseLayer\'s or\n - * map\'s projection.\n - *\n - * The code below creates a transparent WMS layer with additional options.\n - * (code)\n - * var wms = new OpenLayers.Layer.WMS("NASA Global Mosaic",\n - * "http://wms.jpl.nasa.gov/wms.cgi", \n - * {\n - * layers: "modis,global_mosaic",\n - * transparent: true\n - * }, {\n - * opacity: 0.5,\n - * singleTile: true\n - * });\n - * (end)\n - * Note that by default, a WMS layer is configured as baseLayer. Setting\n - * the "transparent" param to true will apply some magic (see <noMagic>).\n - * The default image format changes from image/jpeg to image/png, and the\n - * layer is not configured as baseLayer.\n - *\n - * Parameters:\n - * name - {String} A name for the layer\n - * url - {String} Base url for the WMS\n - * (e.g. http://wms.jpl.nasa.gov/wms.cgi)\n - * params - {Object} An object with key/value pairs representing the\n - * GetMap query string parameters and parameter values.\n - * options - {Object} Hashtable of extra options to tag onto the layer.\n - * These options include all properties listed above, plus the ones\n - * inherited from superclasses.\n - */\n - initialize: function(name, url, params, options) {\n - var newArguments = [];\n - //uppercase params\n - params = OpenLayers.Util.upperCaseObject(params);\n - if (parseFloat(params.VERSION) >= 1.3 && !params.EXCEPTIONS) {\n - params.EXCEPTIONS = "INIMAGE";\n - } \n - newArguments.push(name, url, params, options);\n - OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);\n - OpenLayers.Util.applyDefaults(\n - this.params, \n - OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS)\n - );\n -\n -\n - //layer is transparent \n - if (!this.noMagic && this.params.TRANSPARENT && \n - this.params.TRANSPARENT.toString().toLowerCase() == "true") {\n - \n - // unless explicitly set in options, make layer an overlay\n - if ( (options == null) || (!options.isBaseLayer) ) {\n - this.isBaseLayer = false;\n - } \n - \n - // jpegs can never be transparent, so intelligently switch the \n - // format, depending on the browser\'s capabilities\n - if (this.params.FORMAT == "image/jpeg") {\n - this.params.FORMAT = OpenLayers.Util.alphaHack() ? "image/gif"\n - : "image/png";\n - }\n - }\n -\n - }, \n -\n - /**\n - * Method: clone\n - * Create a clone of this layer\n - *\n - * Returns:\n - * {<OpenLayers.Layer.WMS>} An exact clone of this layer\n - */\n - clone: function (obj) {\n - \n - if (obj == null) {\n - obj = new OpenLayers.Layer.WMS(this.name,\n - this.url,\n - this.params,\n - this.getOptions());\n - }\n -\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);\n -\n - // copy/set any non-init, non-simple values here\n -\n - return obj;\n - }, \n - \n - /**\n - * APIMethod: reverseAxisOrder\n - * Returns true if the axis order is reversed for the WMS version and\n - * projection of the layer.\n - * \n - * Returns:\n - * {Boolean} true if the axis order is reversed, false otherwise.\n - */\n - reverseAxisOrder: function() {\n - var projCode = this.projection.getCode();\n - return parseFloat(this.params.VERSION) >= 1.3 && \n - !!(this.yx[projCode] || OpenLayers.Projection.defaults[projCode].yx);\n - },\n - \n - /**\n - * Method: getURL\n - * Return a GetMap query string for this layer\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} A bounds representing the bbox for the\n - * request.\n - *\n - * Returns:\n - * {String} A string with the layer\'s url and parameters and also the\n - * passed-in bounds and appropriate tile size specified as \n - * parameters.\n - */\n - getURL: function (bounds) {\n - bounds = this.adjustBounds(bounds);\n - \n - var imageSize = this.getImageSize();\n - var newParams = {};\n - // WMS 1.3 introduced axis order\n - var reverseAxisOrder = this.reverseAxisOrder();\n - newParams.BBOX = this.encodeBBOX ?\n - bounds.toBBOX(null, reverseAxisOrder) :\n - bounds.toArray(reverseAxisOrder);\n - newParams.WIDTH = imageSize.w;\n - newParams.HEIGHT = imageSize.h;\n - var requestString = this.getFullRequestString(newParams);\n - return requestString;\n - },\n -\n - /**\n - * APIMethod: mergeNewParams\n - * Catch changeParams and uppercase the new params to be merged in\n - * before calling changeParams on the super class.\n - * \n - * Once params have been changed, the tiles will be reloaded with\n - * the new parameters.\n - * \n - * Parameters:\n - * newParams - {Object} Hashtable of new params to use\n - */\n - mergeNewParams:function(newParams) {\n - var upperParams = OpenLayers.Util.upperCaseObject(newParams);\n - var newArguments = [upperParams];\n - return OpenLayers.Layer.Grid.prototype.mergeNewParams.apply(this, \n - newArguments);\n - },\n -\n - /** \n - * APIMethod: getFullRequestString\n - * Combine the layer\'s url with its params and these newParams. \n - * \n - * Add the SRS parameter from projection -- this is probably\n - * more eloquently done via a setProjection() method, but this \n - * works for now and always.\n - *\n - * Parameters:\n - * newParams - {Object}\n - * altUrl - {String} Use this as the url instead of the layer\'s url\n - * \n - * Returns:\n - * {String} \n - */\n - getFullRequestString:function(newParams, altUrl) {\n - var mapProjection = this.map.getProjectionObject();\n - var projectionCode = this.projection && this.projection.equals(mapProjection) ?\n - this.projection.getCode() :\n - mapProjection.getCode();\n - var value = (projectionCode == "none") ? null : projectionCode;\n - if (parseFloat(this.params.VERSION) >= 1.3) {\n - this.params.CRS = value;\n - } else {\n - this.params.SRS = value;\n - }\n - \n - if (typeof this.params.TRANSPARENT == "boolean") {\n - newParams.TRANSPARENT = this.params.TRANSPARENT ? "TRUE" : "FALSE";\n - }\n -\n - return OpenLayers.Layer.Grid.prototype.getFullRequestString.apply(\n - this, arguments);\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.WMS"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>9926</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/WMTS.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/WMTS.js.xml deleted file mode 100644 index f01ea3d3e4d31a8427a06315be4e8997b334c867..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/WMTS.js.xml +++ /dev/null @@ -1,550 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WMTS.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Layer/Grid.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.WMTS\n - * Instances of the WMTS class allow viewing of tiles from a service that \n - * implements the OGC WMTS specification version 1.0.0.\n - * \n - * Inherits from:\n - * - <OpenLayers.Layer.Grid>\n - */\n -OpenLayers.Layer.WMTS = OpenLayers.Class(OpenLayers.Layer.Grid, {\n - \n - /**\n - * APIProperty: isBaseLayer\n - * {Boolean} The layer will be considered a base layer. Default is true.\n - */\n - isBaseLayer: true,\n -\n - /**\n - * Property: version\n - * {String} WMTS version. Default is "1.0.0".\n - */\n - version: "1.0.0",\n - \n - /**\n - * APIProperty: requestEncoding\n - * {String} Request encoding. Can be "REST" or "KVP". Default is "KVP".\n - */\n - requestEncoding: "KVP",\n - \n - /**\n - * APIProperty: url\n - * {String|Array(String)} The base URL or request URL template for the WMTS\n - * service. Must be provided. Array is only supported for base URLs, not\n - * for request URL templates. URL templates are only supported for\n - * REST <requestEncoding>.\n - */\n - url: null,\n -\n - /**\n - * APIProperty: layer\n - * {String} The layer identifier advertised by the WMTS service. Must be \n - * provided.\n - */\n - layer: null,\n - \n - /** \n - * APIProperty: matrixSet\n - * {String} One of the advertised matrix set identifiers. Must be provided.\n - */\n - matrixSet: null,\n -\n - /** \n - * APIProperty: style\n - * {String} One of the advertised layer styles. Must be provided.\n - */\n - style: null,\n - \n - /** \n - * APIProperty: format\n - * {String} The image MIME type. Default is "image/jpeg".\n - */\n - format: "image/jpeg",\n - \n - /**\n - * APIProperty: tileOrigin\n - * {<OpenLayers.LonLat>} The top-left corner of the tile matrix in map \n - * units. If the tile origin for each matrix in a set is different,\n - * the <matrixIds> should include a topLeftCorner property. If\n - * not provided, the tile origin will default to the top left corner\n - * of the layer <maxExtent>.\n - */\n - tileOrigin: null,\n - \n - /**\n - * APIProperty: tileFullExtent\n - * {<OpenLayers.Bounds>} The full extent of the tile set. If not supplied,\n - * the layer\'s <maxExtent> property will be used.\n - */\n - tileFullExtent: null,\n -\n - /**\n - * APIProperty: formatSuffix\n - * {String} For REST request encoding, an image format suffix must be \n - * included in the request. If not provided, the suffix will be derived\n - * from the <format> property.\n - */\n - formatSuffix: null, \n -\n - /**\n - * APIProperty: matrixIds\n - * {Array} A list of tile matrix identifiers. If not provided, the matrix\n - * identifiers will be assumed to be integers corresponding to the \n - * map zoom level. If a list of strings is provided, each item should\n - * be the matrix identifier that corresponds to the map zoom level.\n - * Additionally, a list of objects can be provided. Each object should\n - * describe the matrix as presented in the WMTS capabilities. These\n - * objects should have the propertes shown below.\n - * \n - * Matrix properties:\n - * identifier - {String} The matrix identifier (required).\n - * topLeftCorner - {<OpenLayers.LonLat>} The top left corner of the \n - * matrix. Must be provided if different than the layer <tileOrigin>.\n - * tileWidth - {Number} The tile width for the matrix. Must be provided \n - * if different than the width given in the layer <tileSize>.\n - * tileHeight - {Number} The tile height for the matrix. Must be provided \n - * if different than the height given in the layer <tileSize>.\n - */\n - matrixIds: null,\n - \n - /**\n - * APIProperty: dimensions\n - * {Array} For RESTful request encoding, extra dimensions may be specified.\n - * Items in this list should be property names in the <params> object.\n - * Values of extra dimensions will be determined from the corresponding\n - * values in the <params> object.\n - */\n - dimensions: null,\n - \n - /**\n - * APIProperty: params\n - * {Object} Extra parameters to include in tile requests. For KVP \n - * <requestEncoding>, these properties will be encoded in the request \n - * query string. For REST <requestEncoding>, these properties will\n - * become part of the request path, with order determined by the \n - * <dimensions> list.\n - */\n - params: null,\n - \n - /**\n - * APIProperty: zoomOffset\n - * {Number} If your cache has more levels than you want to provide\n - * access to with this layer, supply a zoomOffset. This zoom offset\n - * is added to the current map zoom level to determine the level\n - * for a requested tile. For example, if you supply a zoomOffset\n - * of 3, when the map is at the zoom 0, tiles will be requested from\n - * level 3 of your cache. Default is 0 (assumes cache level and map\n - * zoom are equivalent). Additionally, if this layer is to be used\n - * as an overlay and the cache has fewer zoom levels than the base\n - * layer, you can supply a negative zoomOffset. For example, if a\n - * map zoom level of 1 corresponds to your cache level zero, you would\n - * supply a -1 zoomOffset (and set the maxResolution of the layer\n - * appropriately). The zoomOffset value has no effect if complete\n - * matrix definitions (including scaleDenominator) are supplied in\n - * the <matrixIds> property. Defaults to 0 (no zoom offset).\n - */\n - zoomOffset: 0,\n -\n - /**\n - * APIProperty: serverResolutions\n - * {Array} A list of all resolutions available on the server. Only set this\n - * property if the map resolutions differ from the server. This\n - * property serves two purposes. (a) <serverResolutions> can include\n - * resolutions that the server supports and that you don\'t want to\n - * provide with this layer; you can also look at <zoomOffset>, which is\n - * an alternative to <serverResolutions> for that specific purpose.\n - * (b) The map can work with resolutions that aren\'t supported by\n - * the server, i.e. that aren\'t in <serverResolutions>. When the\n - * map is displayed in such a resolution data for the closest\n - * server-supported resolution is loaded and the layer div is\n - * stretched as necessary.\n - */\n - serverResolutions: null,\n -\n - /**\n - * Property: formatSuffixMap\n - * {Object} a map between WMTS \'format\' request parameter and tile image file suffix\n - */\n - formatSuffixMap: {\n - "image/png": "png",\n - "image/png8": "png",\n - "image/png24": "png",\n - "image/png32": "png",\n - "png": "png",\n - "image/jpeg": "jpg",\n - "image/jpg": "jpg",\n - "jpeg": "jpg",\n - "jpg": "jpg"\n - },\n - \n - /**\n - * Property: matrix\n - * {Object} Matrix definition for the current map resolution. Updated by\n - * the <updateMatrixProperties> method.\n - */\n - matrix: null,\n - \n - /**\n - * Constructor: OpenLayers.Layer.WMTS\n - * Create a new WMTS layer.\n - *\n - * Example:\n - * (code)\n - * var wmts = new OpenLayers.Layer.WMTS({\n - * name: "My WMTS Layer",\n - * url: "http://example.com/wmts", \n - * layer: "layer_id",\n - * style: "default",\n - * matrixSet: "matrix_id"\n - * });\n - * (end)\n - *\n - * Parameters:\n - * config - {Object} Configuration properties for the layer.\n - *\n - * Required configuration properties:\n - * url - {String} The base url for the service. See the <url> property.\n - * layer - {String} The layer identifier. See the <layer> property.\n - * style - {String} The layer style identifier. See the <style> property.\n - * matrixSet - {String} The tile matrix set identifier. See the <matrixSet>\n - * property.\n - *\n - * Any other documented layer properties can be provided in the config object.\n - */\n - initialize: function(config) {\n -\n - // confirm required properties are supplied\n - var required = {\n - url: true,\n - layer: true,\n - style: true,\n - matrixSet: true\n - };\n - for (var prop in required) {\n - if (!(prop in config)) {\n - throw new Error("Missing property \'" + prop + "\' in layer configuration.");\n - }\n - }\n -\n - config.params = OpenLayers.Util.upperCaseObject(config.params);\n - var args = [config.name, config.url, config.params, config];\n - OpenLayers.Layer.Grid.prototype.initialize.apply(this, args);\n - \n -\n - // determine format suffix (for REST)\n - if (!this.formatSuffix) {\n - this.formatSuffix = this.formatSuffixMap[this.format] || this.format.split("/").pop(); \n - }\n -\n - // expand matrixIds (may be array of string or array of object)\n - if (this.matrixIds) {\n - var len = this.matrixIds.length;\n - if (len && typeof this.matrixIds[0] === "string") {\n - var ids = this.matrixIds;\n - this.matrixIds = new Array(len);\n - for (var i=0; i<len; ++i) {\n - this.matrixIds[i] = {identifier: ids[i]};\n - }\n - }\n - }\n -\n - },\n - \n - /**\n - * Method: setMap\n - */\n - setMap: function() {\n - OpenLayers.Layer.Grid.prototype.setMap.apply(this, arguments);\n - this.updateMatrixProperties();\n - },\n - \n - /**\n - * Method: updateMatrixProperties\n - * Called when map resolution changes to update matrix related properties.\n - */\n - updateMatrixProperties: function() {\n - this.matrix = this.getMatrix();\n - if (this.matrix) {\n - if (this.matrix.topLeftCorner) {\n - this.tileOrigin = this.matrix.topLeftCorner;\n - }\n - if (this.matrix.tileWidth && this.matrix.tileHeight) {\n - this.tileSize = new OpenLayers.Size(\n - this.matrix.tileWidth, this.matrix.tileHeight\n - );\n - }\n - if (!this.tileOrigin) { \n - this.tileOrigin = new OpenLayers.LonLat(\n - this.maxExtent.left, this.maxExtent.top\n - );\n - } \n - if (!this.tileFullExtent) { \n - this.tileFullExtent = this.maxExtent;\n - }\n - }\n - },\n - \n - /**\n - * Method: moveTo\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - * zoomChanged - {Boolean} Tells when zoom has changed, as layers have to\n - * do some init work in that case.\n - * dragging - {Boolean}\n - */\n - moveTo:function(bounds, zoomChanged, dragging) {\n - if (zoomChanged || !this.matrix) {\n - this.updateMatrixProperties();\n - }\n - return OpenLayers.Layer.Grid.prototype.moveTo.apply(this, arguments);\n - },\n -\n - /**\n - * APIMethod: clone\n - * \n - * Parameters:\n - * obj - {Object}\n - * \n - * Returns:\n - * {<OpenLayers.Layer.WMTS>} An exact clone of this <OpenLayers.Layer.WMTS>\n - */\n - clone: function(obj) {\n - if (obj == null) {\n - obj = new OpenLayers.Layer.WMTS(this.options);\n - }\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);\n - // copy/set any non-init, non-simple values here\n - return obj;\n - },\n -\n - /**\n - * Method: getIdentifier\n - * Get the current index in the matrixIds array.\n - */\n - getIdentifier: function() {\n - return this.getServerZoom();\n - },\n - \n - /**\n - * Method: getMatrix\n - * Get the appropriate matrix definition for the current map resolution.\n - */\n - getMatrix: function() {\n - var matrix;\n - if (!this.matrixIds || this.matrixIds.length === 0) {\n - matrix = {identifier: this.getIdentifier()};\n - } else {\n - // get appropriate matrix given the map scale if possible\n - if ("scaleDenominator" in this.matrixIds[0]) {\n - // scale denominator calculation based on WMTS spec\n - var denom = \n - OpenLayers.METERS_PER_INCH * \n - OpenLayers.INCHES_PER_UNIT[this.units] * \n - this.getServerResolution() / 0.28E-3;\n - var diff = Number.POSITIVE_INFINITY;\n - var delta;\n - for (var i=0, ii=this.matrixIds.length; i<ii; ++i) {\n - delta = Math.abs(1 - (this.matrixIds[i].scaleDenominator / denom));\n - if (delta < diff) {\n - diff = delta;\n - matrix = this.matrixIds[i];\n - }\n - }\n - } else {\n - // fall back on zoom as index\n - matrix = this.matrixIds[this.getIdentifier()];\n - }\n - }\n - return matrix;\n - },\n - \n - /** \n - * Method: getTileInfo\n - * Get tile information for a given location at the current map resolution.\n - *\n - * Parameters:\n - * loc - {<OpenLayers.LonLat} A location in map coordinates.\n - *\n - * Returns:\n - * {Object} An object with "col", "row", "i", and "j" properties. The col\n - * and row values are zero based tile indexes from the top left. The\n - * i and j values are the number of pixels to the left and top \n - * (respectively) of the given location within the target tile.\n - */\n - getTileInfo: function(loc) {\n - var res = this.getServerResolution();\n - \n - var fx = (loc.lon - this.tileOrigin.lon) / (res * this.tileSize.w);\n - var fy = (this.tileOrigin.lat - loc.lat) / (res * this.tileSize.h);\n -\n - var col = Math.floor(fx);\n - var row = Math.floor(fy);\n - \n - return {\n - col: col, \n - row: row,\n - i: Math.floor((fx - col) * this.tileSize.w),\n - j: Math.floor((fy - row) * this.tileSize.h)\n - };\n - },\n - \n - /**\n - * Method: getURL\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - * \n - * Returns:\n - * {String} A URL for the tile corresponding to the given bounds.\n - */\n - getURL: function(bounds) {\n - bounds = this.adjustBounds(bounds);\n - var url = "";\n - if (!this.tileFullExtent || this.tileFullExtent.intersectsBounds(bounds)) { \n -\n - var center = bounds.getCenterLonLat(); \n - var info = this.getTileInfo(center);\n - var matrixId = this.matrix.identifier;\n - var dimensions = this.dimensions, params;\n -\n - if (this.requestEncoding.toUpperCase() === "REST") {\n - params = this.params;\n - if (typeof this.url === "string" && this.url.indexOf("{") !== -1) {\n - var template = this.url.replace(/\\{/g, "${");\n - var context = {\n - // spec does not make clear if capital S or not\n - style: this.style, Style: this.style,\n - TileMatrixSet: this.matrixSet,\n - TileMatrix: this.matrix.identifier,\n - TileRow: info.row,\n - TileCol: info.col\n - };\n - if (dimensions) {\n - var dimension, i;\n - for (i=dimensions.length-1; i>=0; --i) {\n - dimension = dimensions[i];\n - context[dimension] = params[dimension.toUpperCase()];\n - }\n - }\n - url = OpenLayers.String.format(template, context);\n - } else {\n - // include \'version\', \'layer\' and \'style\' in tile resource url\n - var path = this.version + "/" + this.layer + "/" + this.style + "/";\n -\n - // append optional dimension path elements\n - if (dimensions) {\n - for (var i=0; i<dimensions.length; i++) {\n - if (params[dimensions[i]]) {\n - path = path + params[dimensions[i]] + "/";\n - }\n - }\n - }\n -\n - // append other required path elements\n - path = path + this.matrixSet + "/" + this.matrix.identifier + \n - "/" + info.row + "/" + info.col + "." + this.formatSuffix;\n -\n - if (OpenLayers.Util.isArray(this.url)) {\n - url = this.selectUrl(path, this.url);\n - } else {\n - url = this.url;\n - }\n - if (!url.match(/\\/$/)) {\n - url = url + "/";\n - }\n - url = url + path;\n - }\n - } else if (this.requestEncoding.toUpperCase() === "KVP") {\n -\n - // assemble all required parameters\n - params = {\n - SERVICE: "WMTS",\n - REQUEST: "GetTile",\n - VERSION: this.version,\n - LAYER: this.layer,\n - STYLE: this.style,\n - TILEMATRIXSET: this.matrixSet,\n - TILEMATRIX: this.matrix.identifier,\n - TILEROW: info.row,\n - TILECOL: info.col,\n - FORMAT: this.format\n - };\n - url = OpenLayers.Layer.Grid.prototype.getFullRequestString.apply(this, [params]);\n -\n - }\n - }\n - return url; \n - },\n - \n - /**\n - * APIMethod: mergeNewParams\n - * Extend the existing layer <params> with new properties. Tiles will be\n - * reloaded with updated params in the request.\n - * \n - * Parameters:\n - * newParams - {Object} Properties to extend to existing <params>.\n - */\n - mergeNewParams: function(newParams) {\n - if (this.requestEncoding.toUpperCase() === "KVP") {\n - return OpenLayers.Layer.Grid.prototype.mergeNewParams.apply(\n - this, [OpenLayers.Util.upperCaseObject(newParams)]\n - );\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.WMTS"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>18357</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/WorldWind.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/WorldWind.js.xml deleted file mode 100644 index cd38bc26f781da14c4a193b0cd9b9316b0111576..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/WorldWind.js.xml +++ /dev/null @@ -1,149 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.78</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WorldWind.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Layer/Grid.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.WorldWind\n - * \n - * Inherits from:\n - * - <OpenLayers.Layer.Grid>\n - */\n -OpenLayers.Layer.WorldWind = OpenLayers.Class(OpenLayers.Layer.Grid, {\n - \n - DEFAULT_PARAMS: {\n - },\n -\n - /**\n - * APIProperty: isBaseLayer\n - * {Boolean} WorldWind layer is a base layer by default.\n - */\n - isBaseLayer: true,\n -\n - /** \n - * APIProperty: lzd\n - * {Float} LevelZeroTileSizeDegrees\n - */\n - lzd: null,\n -\n - /**\n - * APIProperty: zoomLevels\n - * {Integer} Number of zoom levels.\n - */\n - zoomLevels: null,\n - \n - /**\n - * Constructor: OpenLayers.Layer.WorldWind\n - * \n - * Parameters:\n - * name - {String} Name of Layer\n - * url - {String} Base URL \n - * lzd - {Float} Level zero tile size degrees \n - * zoomLevels - {Integer} number of zoom levels\n - * params - {Object} additional parameters\n - * options - {Object} additional options\n - */\n - initialize: function(name, url, lzd, zoomLevels, params, options) {\n - this.lzd = lzd;\n - this.zoomLevels = zoomLevels;\n - var newArguments = [];\n - newArguments.push(name, url, params, options);\n - OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);\n - this.params = OpenLayers.Util.applyDefaults(\n - this.params, this.DEFAULT_PARAMS\n - );\n - },\n -\n - /**\n - * Method: getZoom\n - * Convert map zoom to WW zoom.\n - */\n - getZoom: function () {\n - var zoom = this.map.getZoom();\n - var extent = this.map.getMaxExtent();\n - zoom = zoom - Math.log(this.maxResolution / (this.lzd/512))/Math.log(2);\n - return zoom;\n - },\n -\n - /**\n - * Method: getURL\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} \n - *\n - * Returns:\n - * {String} A string with the layer\'s url and parameters and also the \n - * passed-in bounds and appropriate tile size specified as \n - * parameters\n - */\n - getURL: function (bounds) {\n - bounds = this.adjustBounds(bounds);\n - var zoom = this.getZoom();\n - var extent = this.map.getMaxExtent();\n - var deg = this.lzd/Math.pow(2,this.getZoom());\n - var x = Math.floor((bounds.left - extent.left)/deg);\n - var y = Math.floor((bounds.bottom - extent.bottom)/deg);\n - if (this.map.getResolution() <= (this.lzd/512)\n - && this.getZoom() <= this.zoomLevels) {\n - return this.getFullRequestString(\n - { L: zoom, \n - X: x,\n - Y: y\n - });\n - } else {\n - return OpenLayers.Util.getImageLocation("blank.gif");\n - }\n -\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.WorldWind"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2948</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/XYZ.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/XYZ.js.xml deleted file mode 100644 index 2a45b9328843923fcf206dbe65df9a423f035206..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/XYZ.js.xml +++ /dev/null @@ -1,216 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>XYZ.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Layer/Grid.js\n - */\n -\n -/** \n - * Class: OpenLayers.Layer.XYZ\n - * The XYZ class is designed to make it easier for people who have tiles\n - * arranged by a standard XYZ grid. \n - * \n - * Inherits from:\n - * - <OpenLayers.Layer.Grid>\n - */\n -OpenLayers.Layer.XYZ = OpenLayers.Class(OpenLayers.Layer.Grid, {\n - \n - /**\n - * APIProperty: isBaseLayer\n - * Default is true, as this is designed to be a base tile source. \n - */\n - isBaseLayer: true,\n - \n - /**\n - * APIProperty: sphericalMecator\n - * Whether the tile extents should be set to the defaults for \n - * spherical mercator. Useful for things like OpenStreetMap.\n - * Default is false, except for the OSM subclass.\n - */\n - sphericalMercator: false,\n -\n - /**\n - * APIProperty: zoomOffset\n - * {Number} If your cache has more zoom levels than you want to provide\n - * access to with this layer, supply a zoomOffset. This zoom offset\n - * is added to the current map zoom level to determine the level\n - * for a requested tile. For example, if you supply a zoomOffset\n - * of 3, when the map is at the zoom 0, tiles will be requested from\n - * level 3 of your cache. Default is 0 (assumes cache level and map\n - * zoom are equivalent). Using <zoomOffset> is an alternative to\n - * setting <serverResolutions> if you only want to expose a subset\n - * of the server resolutions.\n - */\n - zoomOffset: 0,\n - \n - /**\n - * APIProperty: serverResolutions\n - * {Array} A list of all resolutions available on the server. Only set this\n - * property if the map resolutions differ from the server. This\n - * property serves two purposes. (a) <serverResolutions> can include\n - * resolutions that the server supports and that you don\'t want to\n - * provide with this layer; you can also look at <zoomOffset>, which is\n - * an alternative to <serverResolutions> for that specific purpose.\n - * (b) The map can work with resolutions that aren\'t supported by\n - * the server, i.e. that aren\'t in <serverResolutions>. When the\n - * map is displayed in such a resolution data for the closest\n - * server-supported resolution is loaded and the layer div is\n - * stretched as necessary.\n - */\n - serverResolutions: null,\n -\n - /**\n - * Constructor: OpenLayers.Layer.XYZ\n - *\n - * Parameters:\n - * name - {String}\n - * url - {String}\n - * options - {Object} Hashtable of extra options to tag onto the layer\n - */\n - initialize: function(name, url, options) {\n - if (options && options.sphericalMercator || this.sphericalMercator) {\n - options = OpenLayers.Util.extend({\n - projection: "EPSG:900913",\n - numZoomLevels: 19\n - }, options);\n - }\n - OpenLayers.Layer.Grid.prototype.initialize.apply(this, [\n - name || this.name, url || this.url, {}, options\n - ]);\n - },\n - \n - /**\n - * APIMethod: clone\n - * Create a clone of this layer\n - *\n - * Parameters:\n - * obj - {Object} Is this ever used?\n - * \n - * Returns:\n - * {<OpenLayers.Layer.XYZ>} An exact clone of this OpenLayers.Layer.XYZ\n - */\n - clone: function (obj) {\n - \n - if (obj == null) {\n - obj = new OpenLayers.Layer.XYZ(this.name,\n - this.url,\n - this.getOptions());\n - }\n -\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);\n -\n - return obj;\n - }, \n -\n - /**\n - * Method: getURL\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - *\n - * Returns:\n - * {String} A string with the layer\'s url and parameters and also the\n - * passed-in bounds and appropriate tile size specified as\n - * parameters\n - */\n - getURL: function (bounds) {\n - var xyz = this.getXYZ(bounds);\n - var url = this.url;\n - if (OpenLayers.Util.isArray(url)) {\n - var s = \'\' + xyz.x + xyz.y + xyz.z;\n - url = this.selectUrl(s, url);\n - }\n - \n - return OpenLayers.String.format(url, xyz);\n - },\n - \n - /**\n - * Method: getXYZ\n - * Calculates x, y and z for the given bounds.\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - *\n - * Returns:\n - * {Object} - an object with x, y and z properties.\n - */\n - getXYZ: function(bounds) {\n - var res = this.getServerResolution();\n - var x = Math.round((bounds.left - this.maxExtent.left) /\n - (res * this.tileSize.w));\n - var y = Math.round((this.maxExtent.top - bounds.top) /\n - (res * this.tileSize.h));\n - var z = this.getServerZoom();\n -\n - if (this.wrapDateLine) {\n - var limit = Math.pow(2, z);\n - x = ((x % limit) + limit) % limit;\n - }\n -\n - return {\'x\': x, \'y\': y, \'z\': z};\n - },\n - \n - /* APIMethod: setMap\n - * When the layer is added to a map, then we can fetch our origin \n - * (if we don\'t have one.) \n - * \n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - setMap: function(map) {\n - OpenLayers.Layer.Grid.prototype.setMap.apply(this, arguments);\n - if (!this.tileOrigin) { \n - this.tileOrigin = new OpenLayers.LonLat(this.maxExtent.left,\n - this.maxExtent.bottom);\n - } \n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.XYZ"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5776</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Zoomify.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Zoomify.js.xml deleted file mode 100644 index 1ee7f5a36f7551401e67966f8d2473e7c3ac856d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Layer/Zoomify.js.xml +++ /dev/null @@ -1,335 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Zoomify.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/*\n - * Development supported by a R&D grant DC08P02OUK006 - Old Maps Online\n - * (www.oldmapsonline.org) from Ministry of Culture of the Czech Republic.\n - */\n -\n -\n -/**\n - * @requires OpenLayers/Layer/Grid.js\n - */\n -\n -/**\n - * Class: OpenLayers.Layer.Zoomify\n - *\n - * Inherits from:\n - * - <OpenLayers.Layer.Grid>\n - */\n -OpenLayers.Layer.Zoomify = OpenLayers.Class(OpenLayers.Layer.Grid, {\n -\n - /**\n - * Property: size\n - * {<OpenLayers.Size>} The Zoomify image size in pixels.\n - */\n - size: null,\n -\n - /**\n - * APIProperty: isBaseLayer\n - * {Boolean}\n - */\n - isBaseLayer: true,\n -\n - /**\n - * Property: standardTileSize\n - * {Integer} The size of a standard (non-border) square tile in pixels.\n - */\n - standardTileSize: 256,\n -\n - /** \n - * Property: tileOriginCorner\n - * {String} This layer uses top-left as tile origin\n - **/\n - tileOriginCorner: "tl",\n -\n - /**\n - * Property: numberOfTiers\n - * {Integer} Depth of the Zoomify pyramid, number of tiers (zoom levels)\n - * - filled during Zoomify pyramid initialization.\n - */\n - numberOfTiers: 0,\n -\n - /**\n - * Property: tileCountUpToTier\n - * {Array(Integer)} Number of tiles up to the given tier of pyramid.\n - * - filled during Zoomify pyramid initialization.\n - */\n - tileCountUpToTier: null,\n -\n - /**\n - * Property: tierSizeInTiles\n - * {Array(<OpenLayers.Size>)} Size (in tiles) for each tier of pyramid.\n - * - filled during Zoomify pyramid initialization.\n - */\n - tierSizeInTiles: null,\n -\n - /**\n - * Property: tierImageSize\n - * {Array(<OpenLayers.Size>)} Image size in pixels for each pyramid tier.\n - * - filled during Zoomify pyramid initialization.\n - */\n - tierImageSize: null,\n -\n - /**\n - * Constructor: OpenLayers.Layer.Zoomify\n - *\n - * Parameters:\n - * name - {String} A name for the layer.\n - * url - {String} - Relative or absolute path to the image or more\n - * precisly to the TileGroup[X] directories root.\n - * Flash plugin use the variable name "zoomifyImagePath" for this.\n - * size - {<OpenLayers.Size>} The size (in pixels) of the image.\n - * options - {Object} Hashtable of extra options to tag onto the layer\n - */\n - initialize: function(name, url, size, options) {\n -\n - // initilize the Zoomify pyramid for given size\n - this.initializeZoomify(size);\n -\n - OpenLayers.Layer.Grid.prototype.initialize.apply(this, [\n - name, url, size, {}, options\n - ]);\n - },\n -\n - /**\n - * Method: initializeZoomify\n - * It generates constants for all tiers of the Zoomify pyramid\n - *\n - * Parameters:\n - * size - {<OpenLayers.Size>} The size of the image in pixels\n - *\n - */\n - initializeZoomify: function( size ) {\n -\n - var imageSize = size.clone();\n - var tiles = new OpenLayers.Size(\n - Math.ceil( imageSize.w / this.standardTileSize ),\n - Math.ceil( imageSize.h / this.standardTileSize )\n - );\n -\n - this.tierSizeInTiles = [tiles];\n - this.tierImageSize = [imageSize];\n -\n - while (imageSize.w > this.standardTileSize ||\n - imageSize.h > this.standardTileSize ) {\n -\n - imageSize = new OpenLayers.Size(\n - Math.floor( imageSize.w / 2 ),\n - Math.floor( imageSize.h / 2 )\n - );\n - tiles = new OpenLayers.Size(\n - Math.ceil( imageSize.w / this.standardTileSize ),\n - Math.ceil( imageSize.h / this.standardTileSize )\n - );\n - this.tierSizeInTiles.push( tiles );\n - this.tierImageSize.push( imageSize );\n - }\n -\n - this.tierSizeInTiles.reverse();\n - this.tierImageSize.reverse();\n -\n - this.numberOfTiers = this.tierSizeInTiles.length;\n -\n - this.tileCountUpToTier = [0];\n - for (var i = 1; i < this.numberOfTiers; i++) {\n - this.tileCountUpToTier.push(\n - this.tierSizeInTiles[i-1].w * this.tierSizeInTiles[i-1].h +\n - this.tileCountUpToTier[i-1]\n - );\n - }\n - },\n -\n - /**\n - * APIMethod:destroy\n - */\n - destroy: function() {\n - // for now, nothing special to do here.\n - OpenLayers.Layer.Grid.prototype.destroy.apply(this, arguments);\n -\n - // Remove from memory the Zoomify pyramid - is that enough?\n - this.tileCountUpToTier.length = 0;\n - this.tierSizeInTiles.length = 0;\n - this.tierImageSize.length = 0;\n -\n - },\n -\n - /**\n - * APIMethod: clone\n - *\n - * Parameters:\n - * obj - {Object}\n - *\n - * Returns:\n - * {<OpenLayers.Layer.Zoomify>} An exact clone of this <OpenLayers.Layer.Zoomify>\n - */\n - clone: function (obj) {\n -\n - if (obj == null) {\n - obj = new OpenLayers.Layer.Zoomify(this.name,\n - this.url,\n - this.size,\n - this.options);\n - }\n -\n - //get all additions from superclasses\n - obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);\n -\n - // copy/set any non-init, non-simple values here\n -\n - return obj;\n - },\n -\n - /**\n - * Method: getURL\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - *\n - * Returns:\n - * {String} A string with the layer\'s url and parameters and also the\n - * passed-in bounds and appropriate tile size specified as\n - * parameters\n - */\n - getURL: function (bounds) {\n - bounds = this.adjustBounds(bounds);\n - var res = this.map.getResolution();\n - var x = Math.round((bounds.left - this.tileOrigin.lon) / (res * this.tileSize.w));\n - var y = Math.round((this.tileOrigin.lat - bounds.top) / (res * this.tileSize.h));\n - var z = this.map.getZoom();\n -\n - var tileIndex = x + y * this.tierSizeInTiles[z].w + this.tileCountUpToTier[z];\n - var path = "TileGroup" + Math.floor( (tileIndex) / 256 ) +\n - "/" + z + "-" + x + "-" + y + ".jpg";\n - var url = this.url;\n - if (OpenLayers.Util.isArray(url)) {\n - url = this.selectUrl(path, url);\n - }\n - return url + path;\n - },\n -\n - /**\n - * Method: getImageSize\n - * getImageSize returns size for a particular tile. If bounds are given as\n - * first argument, size is calculated (bottom-right tiles are non square).\n - *\n - */\n - getImageSize: function() {\n - if (arguments.length > 0) {\n - var bounds = this.adjustBounds(arguments[0]);\n - var res = this.map.getResolution();\n - var x = Math.round((bounds.left - this.tileOrigin.lon) / (res * this.tileSize.w));\n - var y = Math.round((this.tileOrigin.lat - bounds.top) / (res * this.tileSize.h));\n - var z = this.map.getZoom();\n - var w = this.standardTileSize;\n - var h = this.standardTileSize;\n - if (x == this.tierSizeInTiles[z].w -1 ) {\n - var w = this.tierImageSize[z].w % this.standardTileSize;\n - }\n - if (y == this.tierSizeInTiles[z].h -1 ) {\n - var h = this.tierImageSize[z].h % this.standardTileSize;\n - }\n - return (new OpenLayers.Size(w, h));\n - } else {\n - return this.tileSize;\n - }\n - },\n -\n - /**\n - * APIMethod: setMap\n - * When the layer is added to a map, then we can fetch our origin\n - * (if we don\'t have one.)\n - *\n - * Parameters:\n - * map - {<OpenLayers.Map>}\n - */\n - setMap: function(map) {\n - OpenLayers.Layer.Grid.prototype.setMap.apply(this, arguments);\n - this.tileOrigin = new OpenLayers.LonLat(this.map.maxExtent.left,\n - this.map.maxExtent.top);\n - },\n -\n - /**\n - * Method: calculateGridLayout\n - * Generate parameters for the grid layout. This\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bound>}\n - * origin - {<OpenLayers.LonLat>}\n - * resolution - {Number}\n - *\n - * Returns:\n - * {Object} Object containing properties tilelon, tilelat, tileoffsetlat,\n - * tileoffsetlat, tileoffsetx, tileoffsety\n - */\n - calculateGridLayout: function(bounds, origin, resolution) {\n - var tilelon = resolution * this.tileSize.w;\n - var tilelat = resolution * this.tileSize.h;\n -\n - var offsetlon = bounds.left - origin.lon;\n - var tilecol = Math.floor(offsetlon/tilelon) - this.buffer;\n - var tilecolremain = offsetlon/tilelon - tilecol;\n - var tileoffsetx = -tilecolremain * this.tileSize.w;\n - var tileoffsetlon = origin.lon + tilecol * tilelon;\n -\n - var offsetlat = origin.lat - bounds.top + tilelat;\n - var tilerow = Math.floor(offsetlat/tilelat) - this.buffer;\n - var tilerowremain = tilerow - offsetlat/tilelat;\n - var tileoffsety = tilerowremain * this.tileSize.h;\n - var tileoffsetlat = origin.lat - tilelat*tilerow;\n -\n - return {\n - tilelon: tilelon, tilelat: tilelat,\n - tileoffsetlon: tileoffsetlon, tileoffsetlat: tileoffsetlat,\n - tileoffsetx: tileoffsetx, tileoffsety: tileoffsety\n - };\n - },\n -\n - CLASS_NAME: "OpenLayers.Layer.Zoomify"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>9399</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Map.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Map.js.xml deleted file mode 100644 index 8f407d143569006cd5edb87d723e0bb62371a10f..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Map.js.xml +++ /dev/null @@ -1,2687 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.76</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Map.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>93493</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <global name="Pdata" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Util.js\n - * @requires OpenLayers/Events.js\n - * @requires OpenLayers/Tween.js\n - * @requires OpenLayers/Projection.js\n - */\n -\n -/**\n - * Class: OpenLayers.Map\n - * Instances of OpenLayers.Map are interactive maps embedded in a web page.\n - * Create a new map with the <OpenLayers.Map> constructor.\n - * \n - * On their own maps do not provide much functionality. To extend a map\n - * it\'s necessary to add controls (<OpenLayers.Control>) and \n - * layers (<OpenLayers.Layer>) to the map. \n - */\n -OpenLayers.Map = OpenLayers.Class({\n - \n - /**\n - * Constant: Z_INDEX_BASE\n - * {Object} Base z-indexes for different classes of thing \n - */\n - Z_INDEX_BASE: {\n - BaseLayer: 100,\n - Overlay: 325,\n - Feature: 725,\n - Popup: 750,\n - Control: 1000\n - },\n -\n - /**\n - * APIProperty: events\n - * {<OpenLayers.Events>}\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * map.events.register(type, obj, listener);\n - * (end)\n - *\n - * Listeners will be called with a reference to an event object. The\n - * properties of this event depends on exactly what happened.\n - *\n - * All event objects have at least the following properties:\n - * object - {Object} A reference to map.events.object.\n - * element - {DOMElement} A reference to map.events.element.\n - *\n - * Browser events have the following additional properties:\n - * xy - {<OpenLayers.Pixel>} The pixel location of the event (relative\n - * to the the map viewport).\n - *\n - * Supported map event types:\n - * preaddlayer - triggered before a layer has been added. The event\n - * object will include a *layer* property that references the layer \n - * to be added. When a listener returns "false" the adding will be \n - * aborted.\n - * addlayer - triggered after a layer has been added. The event object\n - * will include a *layer* property that references the added layer.\n - * preremovelayer - triggered before a layer has been removed. The event\n - * object will include a *layer* property that references the layer \n - * to be removed. When a listener returns "false" the removal will be \n - * aborted.\n - * removelayer - triggered after a layer has been removed. The event\n - * object will include a *layer* property that references the removed\n - * layer.\n - * changelayer - triggered after a layer name change, order change,\n - * opacity change, params change, visibility change (due to resolution\n - * thresholds) or attribution change (due to extent change). Listeners\n - * will receive an event object with *layer* and *property* properties.\n - * The *layer* property will be a reference to the changed layer. The\n - * *property* property will be a key to the changed property (name,\n - * order, opacity, params, visibility or attribution).\n - * movestart - triggered after the start of a drag, pan, or zoom\n - * move - triggered after each drag, pan, or zoom\n - * moveend - triggered after a drag, pan, or zoom completes\n - * zoomend - triggered after a zoom completes\n - * mouseover - triggered after mouseover the map\n - * mouseout - triggered after mouseout the map\n - * mousemove - triggered after mousemove the map\n - * changebaselayer - triggered after the base layer changes\n - */\n -\n - /**\n - * Property: id\n - * {String} Unique identifier for the map\n - */\n - id: null,\n - \n - /**\n - * Property: fractionalZoom\n - * {Boolean} For a base layer that supports it, allow the map resolution\n - * to be set to a value between one of the values in the resolutions\n - * array. Default is false.\n - *\n - * When fractionalZoom is set to true, it is possible to zoom to\n - * an arbitrary extent. This requires a base layer from a source\n - * that supports requests for arbitrary extents (i.e. not cached\n - * tiles on a regular lattice). This means that fractionalZoom\n - * will not work with commercial layers (Google, Yahoo, VE), layers\n - * using TileCache, or any other pre-cached data sources.\n - *\n - * If you are using fractionalZoom, then you should also use\n - * <getResolutionForZoom> instead of layer.resolutions[zoom] as the\n - * former works for non-integer zoom levels.\n - */\n - fractionalZoom: false,\n - \n - /**\n - * APIProperty: events\n - * {<OpenLayers.Events>} An events object that handles all \n - * events on the map\n - */\n - events: null,\n - \n - /**\n - * APIProperty: allOverlays\n - * {Boolean} Allow the map to function with "overlays" only. Defaults to\n - * false. If true, the lowest layer in the draw order will act as\n - * the base layer. In addition, if set to true, all layers will\n - * have isBaseLayer set to false when they are added to the map.\n - *\n - * Note:\n - * If you set map.allOverlays to true, then you *cannot* use\n - * map.setBaseLayer or layer.setIsBaseLayer. With allOverlays true,\n - * the lowest layer in the draw layer is the base layer. So, to change\n - * the base layer, use <setLayerIndex> or <raiseLayer> to set the layer\n - * index to 0.\n - */\n - allOverlays: false,\n -\n - /**\n - * APIProperty: div\n - * {DOMElement|String} The element that contains the map (or an id for\n - * that element). If the <OpenLayers.Map> constructor is called\n - * with two arguments, this should be provided as the first argument.\n - * Alternatively, the map constructor can be called with the options\n - * object as the only argument. In this case (one argument), a\n - * div property may or may not be provided. If the div property\n - * is not provided, the map can be rendered to a container later\n - * using the <render> method.\n - * \n - * Note:\n - * If you are calling <render> after map construction, do not use\n - * <maxResolution> auto. Instead, divide your <maxExtent> by your\n - * maximum expected dimension.\n - */\n - div: null,\n - \n - /**\n - * Property: dragging\n - * {Boolean} The map is currently being dragged.\n - */\n - dragging: false,\n -\n - /**\n - * Property: size\n - * {<OpenLayers.Size>} Size of the main div (this.div)\n - */\n - size: null,\n - \n - /**\n - * Property: viewPortDiv\n - * {HTMLDivElement} The element that represents the map viewport\n - */\n - viewPortDiv: null,\n -\n - /**\n - * Property: layerContainerOrigin\n - * {<OpenLayers.LonLat>} The lonlat at which the later container was\n - * re-initialized (on-zoom)\n - */\n - layerContainerOrigin: null,\n -\n - /**\n - * Property: layerContainerDiv\n - * {HTMLDivElement} The element that contains the layers.\n - */\n - layerContainerDiv: null,\n -\n - /**\n - * APIProperty: layers\n - * {Array(<OpenLayers.Layer>)} Ordered list of layers in the map\n - */\n - layers: null,\n -\n - /**\n - * APIProperty: controls\n - * {Array(<OpenLayers.Control>)} List of controls associated with the map.\n - *\n - * If not provided in the map options at construction, the map will\n - * by default be given the following controls if present in the build:\n - * - <OpenLayers.Control.Navigation> or <OpenLayers.Control.TouchNavigation>\n - * - <OpenLayers.Control.Zoom> or <OpenLayers.Control.PanZoom>\n - * - <OpenLayers.Control.ArgParser>\n - * - <OpenLayers.Control.Attribution>\n - */\n - controls: null,\n -\n - /**\n - * Property: popups\n - * {Array(<OpenLayers.Popup>)} List of popups associated with the map\n - */\n - popups: null,\n -\n - /**\n - * APIProperty: baseLayer\n - * {<OpenLayers.Layer>} The currently selected base layer. This determines\n - * min/max zoom level, projection, etc.\n - */\n - baseLayer: null,\n - \n - /**\n - * Property: center\n - * {<OpenLayers.LonLat>} The current center of the map\n - */\n - center: null,\n -\n - /**\n - * Property: resolution\n - * {Float} The resolution of the map.\n - */\n - resolution: null,\n -\n - /**\n - * Property: zoom\n - * {Integer} The current zoom level of the map\n - */\n - zoom: 0, \n -\n - /**\n - * Property: panRatio\n - * {Float} The ratio of the current extent within\n - * which panning will tween.\n - */\n - panRatio: 1.5, \n -\n - /**\n - * APIProperty: options\n - * {Object} The options object passed to the class constructor. Read-only.\n - */\n - options: null,\n -\n - // Options\n -\n - /**\n - * APIProperty: tileSize\n - * {<OpenLayers.Size>} Set in the map options to override the default tile\n - * size for this map.\n - */\n - tileSize: null,\n -\n - /**\n - * APIProperty: projection\n - * {String} Set in the map options to specify the default projection \n - * for layers added to this map. When using a projection other than EPSG:4326\n - * (CRS:84, Geographic) or EPSG:3857 (EPSG:900913, Web Mercator),\n - * also set maxExtent, maxResolution or resolutions. Default is "EPSG:4326".\n - * Note that the projection of the map is usually determined\n - * by that of the current baseLayer (see <baseLayer> and <getProjectionObject>).\n - */\n - projection: "EPSG:4326", \n - \n - /**\n - * APIProperty: units\n - * {String} The map units. Possible values are \'degrees\' (or \'dd\'), \'m\', \n - * \'ft\', \'km\', \'mi\', \'inches\'. Normally taken from the projection.\n - * Only required if both map and layers do not define a projection,\n - * or if they define a projection which does not define units\n - */\n - units: null,\n -\n - /**\n - * APIProperty: resolutions\n - * {Array(Float)} A list of map resolutions (map units per pixel) in \n - * descending order. If this is not set in the layer constructor, it \n - * will be set based on other resolution related properties \n - * (maxExtent, maxResolution, maxScale, etc.).\n - */\n - resolutions: null,\n -\n - /**\n - * APIProperty: maxResolution\n - * {Float} Required if you are not displaying the whole world on a tile\n - * with the size specified in <tileSize>.\n - */\n - maxResolution: null,\n -\n - /**\n - * APIProperty: minResolution\n - * {Float}\n - */\n - minResolution: null,\n -\n - /**\n - * APIProperty: maxScale\n - * {Float}\n - */\n - maxScale: null,\n -\n - /**\n - * APIProperty: minScale\n - * {Float}\n - */\n - minScale: null,\n -\n - /**\n - * APIProperty: maxExtent\n - * {<OpenLayers.Bounds>|Array} If provided as an array, the array\n - * should consist of four values (left, bottom, right, top).\n - * The maximum extent for the map. Defaults to the\n - * whole world in decimal degrees (-180, -90, 180, 90). Specify a \n - * different extent in the map options if you are not using a geographic\n - * projection and displaying the whole world. To restrict user panning\n - * and zooming of the map, use <restrictedExtent> instead. The value \n - * for <maxExtent> will change calculations for tile URLs.\n - */\n - maxExtent: null,\n - \n - /**\n - * APIProperty: minExtent\n - * {<OpenLayers.Bounds>|Array} If provided as an array, the array\n - * should consist of four values (left, bottom, right, top).\n - * The minimum extent for the map. Defaults to null.\n - */\n - minExtent: null,\n - \n - /**\n - * APIProperty: restrictedExtent\n - * {<OpenLayers.Bounds>|Array} If provided as an array, the array\n - * should consist of four values (left, bottom, right, top).\n - * Limit map navigation to this extent where possible.\n - * If a non-null restrictedExtent is set, panning will be restricted\n - * to the given bounds. In addition, zooming to a resolution that\n - * displays more than the restricted extent will center the map\n - * on the restricted extent. If you wish to limit the zoom level\n - * or resolution, use maxResolution.\n - */\n - restrictedExtent: null,\n -\n - /**\n - * APIProperty: numZoomLevels\n - * {Integer} Number of zoom levels for the map. Defaults to 16. Set a\n - * different value in the map options if needed.\n - */\n - numZoomLevels: 16,\n -\n - /**\n - * APIProperty: theme\n - * {String} Relative path to a CSS file from which to load theme styles.\n - * Specify null in the map options (e.g. {theme: null}) if you \n - * want to get cascading style declarations - by putting links to \n - * stylesheets or style declarations directly in your page.\n - */\n - theme: null,\n - \n - /** \n - * APIProperty: displayProjection\n - * {<OpenLayers.Projection>} Requires proj4js support for projections other\n - * than EPSG:4326 or EPSG:900913/EPSG:3857. Projection used by\n - * several controls to display data to user. If this property is set,\n - * it will be set on any control which has a null displayProjection\n - * property at the time the control is added to the map. \n - */\n - displayProjection: null,\n -\n - /**\n - * APIProperty: fallThrough\n - * {Boolean} Should OpenLayers allow events on the map to fall through to\n - * other elements on the page, or should it swallow them? (#457)\n - * Default is to fall through.\n - */\n - fallThrough: true,\n - \n - /**\n - * Property: panTween\n - * {<OpenLayers.Tween>} Animated panning tween object, see panTo()\n - */\n - panTween: null,\n -\n - /**\n - * APIProperty: eventListeners\n - * {Object} If set as an option at construction, the eventListeners\n - * object will be registered with <OpenLayers.Events.on>. Object\n - * structure must be a listeners object as shown in the example for\n - * the events.on method.\n - */\n - eventListeners: null,\n -\n - /**\n - * APIProperty: panMethod\n - * {Function} The Easing function to be used for tweening. Default is\n - * OpenLayers.Easing.Expo.easeOut. Setting this to \'null\' turns off\n - * animated panning.\n - */\n - panMethod: OpenLayers.Easing.Expo.easeOut,\n - \n - /**\n - * Property: panDuration\n - * {Integer} The number of steps to be passed to the\n - * OpenLayers.Tween.start() method when the map is\n - * panned.\n - * Default is 50.\n - */\n - panDuration: 50,\n - \n - /**\n - * Property: paddingForPopups\n - * {<OpenLayers.Bounds>} Outside margin of the popup. Used to prevent \n - * the popup from getting too close to the map border.\n - */\n - paddingForPopups : null,\n - \n - /**\n - * Property: minPx\n - * {Object} An object with a \'x\' and \'y\' values that is the lower\n - * left of maxExtent in viewport pixel space.\n - * Used to verify in moveByPx that the new location we\'re moving to\n - * is valid. It is also used in the getLonLatFromViewPortPx function\n - * of Layer.\n - */\n - minPx: null,\n - \n - /**\n - * Property: maxPx\n - * {Object} An object with a \'x\' and \'y\' values that is the top\n - * right of maxExtent in viewport pixel space.\n - * Used to verify in moveByPx that the new location we\'re moving to\n - * is valid.\n - */\n - maxPx: null,\n - \n - /**\n - * Constructor: OpenLayers.Map\n - * Constructor for a new OpenLayers.Map instance. There are two possible\n - * ways to call the map constructor. See the examples below.\n - *\n - * Parameters:\n - * div - {DOMElement|String} The element or id of an element in your page\n - * that will contain the map. May be omitted if the <div> option is\n - * provided or if you intend to call the <render> method later.\n - * options - {Object} Optional object with properties to tag onto the map.\n - *\n - * Valid options (in addition to the listed API properties):\n - * center - {<OpenLayers.LonLat>|Array} The default initial center of the map.\n - * If provided as array, the first value is the x coordinate,\n - * and the 2nd value is the y coordinate.\n - * Only specify if <layers> is provided.\n - * Note that if an ArgParser/Permalink control is present,\n - * and the querystring contains coordinates, center will be set\n - * by that, and this option will be ignored.\n - * zoom - {Number} The initial zoom level for the map. Only specify if\n - * <layers> is provided.\n - * Note that if an ArgParser/Permalink control is present,\n - * and the querystring contains a zoom level, zoom will be set\n - * by that, and this option will be ignored.\n - * extent - {<OpenLayers.Bounds>|Array} The initial extent of the map.\n - * If provided as an array, the array should consist of\n - * four values (left, bottom, right, top).\n - * Only specify if <center> and <zoom> are not provided.\n - * \n - * Examples:\n - * (code)\n - * // create a map with default options in an element with the id "map1"\n - * var map = new OpenLayers.Map("map1");\n - *\n - * // create a map with non-default options in an element with id "map2"\n - * var options = {\n - * projection: "EPSG:3857",\n - * maxExtent: new OpenLayers.Bounds(-200000, -200000, 200000, 200000),\n - * center: new OpenLayers.LonLat(-12356463.476333, 5621521.4854095)\n - * };\n - * var map = new OpenLayers.Map("map2", options);\n - *\n - * // map with non-default options - same as above but with a single argument,\n - * // a restricted extent, and using arrays for bounds and center\n - * var map = new OpenLayers.Map({\n - * div: "map_id",\n - * projection: "EPSG:3857",\n - * maxExtent: [-18924313.432222, -15538711.094146, 18924313.432222, 15538711.094146],\n - * restrictedExtent: [-13358338.893333, -9608371.5085962, 13358338.893333, 9608371.5085962],\n - * center: [-12356463.476333, 5621521.4854095]\n - * });\n - *\n - * // create a map without a reference to a container - call render later\n - * var map = new OpenLayers.Map({\n - * projection: "EPSG:3857",\n - * maxExtent: new OpenLayers.Bounds(-200000, -200000, 200000, 200000)\n - * });\n - * (end)\n - */ \n - initialize: function (div, options) {\n - \n - // If only one argument is provided, check if it is an object.\n - if(arguments.length === 1 && typeof div === "object") {\n - options = div;\n - div = options && options.div;\n - }\n -\n - // Simple-type defaults are set in class definition. \n - // Now set complex-type defaults \n - this.tileSize = new OpenLayers.Size(OpenLayers.Map.TILE_WIDTH,\n - OpenLayers.Map.TILE_HEIGHT);\n - \n - this.paddingForPopups = new OpenLayers.Bounds(15, 15, 15, 15);\n -\n - this.theme = OpenLayers._getScriptLocation() + \n - \'theme/default/style.css\'; \n -\n - // backup original options\n - this.options = OpenLayers.Util.extend({}, options);\n -\n - // now override default options \n - OpenLayers.Util.extend(this, options);\n - \n - var projCode = this.projection instanceof OpenLayers.Projection ?\n - this.projection.projCode : this.projection;\n - OpenLayers.Util.applyDefaults(this, OpenLayers.Projection.defaults[projCode]);\n - \n - // allow extents and center to be arrays\n - if (this.maxExtent && !(this.maxExtent instanceof OpenLayers.Bounds)) {\n - this.maxExtent = new OpenLayers.Bounds(this.maxExtent);\n - }\n - if (this.minExtent && !(this.minExtent instanceof OpenLayers.Bounds)) {\n - this.minExtent = new OpenLayers.Bounds(this.minExtent);\n - }\n - if (this.restrictedExtent && !(this.restrictedExtent instanceof OpenLayers.Bounds)) {\n - this.restrictedExtent = new OpenLayers.Bounds(this.restrictedExtent);\n - }\n - if (this.center && !(this.center instanceof OpenLayers.LonLat)) {\n - this.center = new OpenLayers.LonLat(this.center);\n - }\n -\n - // initialize layers array\n - this.layers = [];\n -\n - this.id = OpenLayers.Util.createUniqueID("OpenLayers.Map_");\n -\n - this.div = OpenLayers.Util.getElement(div);\n - if(!this.div) {\n - this.div = document.createElement("div");\n - this.div.style.height = "1px";\n - this.div.style.width = "1px";\n - }\n - \n - OpenLayers.Element.addClass(this.div, \'olMap\');\n -\n - // the viewPortDiv is the outermost div we modify\n - var id = this.id + "_OpenLayers_ViewPort";\n - this.viewPortDiv = OpenLayers.Util.createDiv(id, null, null, null,\n - "relative", null,\n - "hidden");\n - this.viewPortDiv.style.width = "100%";\n - this.viewPortDiv.style.height = "100%";\n - this.viewPortDiv.className = "olMapViewport";\n - this.div.appendChild(this.viewPortDiv);\n -\n - this.events = new OpenLayers.Events(\n - this, this.viewPortDiv, null, this.fallThrough, \n - {includeXY: true}\n - );\n -\n - // the layerContainerDiv is the one that holds all the layers\n - id = this.id + "_OpenLayers_Container";\n - this.layerContainerDiv = OpenLayers.Util.createDiv(id);\n - this.layerContainerDiv.style.width = \'100px\';\n - this.layerContainerDiv.style.height = \'100px\';\n - this.layerContainerDiv.style.zIndex=this.Z_INDEX_BASE[\'Popup\']-1;\n - \n - this.viewPortDiv.appendChild(this.layerContainerDiv);\n -\n - this.updateSize();\n - if(this.eventListeners instanceof Object) {\n - this.events.on(this.eventListeners);\n - }\n - \n - // Because Mozilla does not support the "resize" event for elements \n - // other than "window", we need to put a hack here. \n - if (parseFloat(navigator.appVersion.split("MSIE")[1]) < 9) {\n - // If IE < 9, register the resize on the div\n - this.events.register("resize", this, this.updateSize);\n - } else {\n - // Else updateSize on catching the window\'s resize\n - // Note that this is ok, as updateSize() does nothing if the \n - // map\'s size has not actually changed.\n - this.updateSizeDestroy = OpenLayers.Function.bind(this.updateSize, \n - this);\n - OpenLayers.Event.observe(window, \'resize\',\n - this.updateSizeDestroy);\n - }\n - \n - // only append link stylesheet if the theme property is set\n - if(this.theme) {\n - // check existing links for equivalent url\n - var addNode = true;\n - var nodes = document.getElementsByTagName(\'link\');\n - for(var i=0, len=nodes.length; i<len; ++i) {\n - if(OpenLayers.Util.isEquivalentUrl(nodes.item(i).href,\n - this.theme)) {\n - addNode = false;\n - break;\n - }\n - }\n - // only add a new node if one with an equivalent url hasn\'t already\n - // been added\n - if(addNode) {\n - var cssNode = document.createElement(\'link\');\n - cssNode.setAttribute(\'rel\', \'stylesheet\');\n - cssNode.setAttribute(\'type\', \'text/css\');\n - cssNode.setAttribute(\'href\', this.theme);\n - document.getElementsByTagName(\'head\')[0].appendChild(cssNode);\n - }\n - }\n - \n - if (this.controls == null) { // default controls\n - this.controls = [];\n - if (OpenLayers.Control != null) { // running full or lite?\n - // Navigation or TouchNavigation depending on what is in build\n - if (OpenLayers.Control.Navigation) {\n - this.controls.push(new OpenLayers.Control.Navigation());\n - } else if (OpenLayers.Control.TouchNavigation) {\n - this.controls.push(new OpenLayers.Control.TouchNavigation());\n - }\n - if (OpenLayers.Control.Zoom) {\n - this.controls.push(new OpenLayers.Control.Zoom());\n - } else if (OpenLayers.Control.PanZoom) {\n - this.controls.push(new OpenLayers.Control.PanZoom());\n - }\n -\n - if (OpenLayers.Control.ArgParser) {\n - this.controls.push(new OpenLayers.Control.ArgParser());\n - }\n - if (OpenLayers.Control.Attribution) {\n - this.controls.push(new OpenLayers.Control.Attribution());\n - }\n - }\n - }\n -\n - for(var i=0, len=this.controls.length; i<len; i++) {\n - this.addControlToMap(this.controls[i]);\n - }\n -\n - this.popups = [];\n -\n - this.unloadDestroy = OpenLayers.Function.bind(this.destroy, this);\n - \n -\n - // always call map.destroy()\n - OpenLayers.Event.observe(window, \'unload\', this.unloadDestroy);\n - \n - // add any initial layers\n - if (options && options.layers) {\n - /** \n - * If you have set options.center, the map center property will be\n - * set at this point. However, since setCenter has not been called,\n - * addLayers gets confused. So we delete the map center in this \n - * case. Because the check below uses options.center, it will\n - * be properly set below.\n - */\n - delete this.center;\n - this.addLayers(options.layers);\n - // set center (and optionally zoom)\n - if (options.center && !this.getCenter()) {\n - // zoom can be undefined here\n - this.setCenter(options.center, options.zoom);\n - }\n - }\n - },\n -\n - /** \n - * APIMethod: getViewport\n - * Get the DOMElement representing the view port.\n - *\n - * Returns:\n - * {DOMElement}\n - */\n - getViewport: function() {\n - return this.viewPortDiv;\n - },\n - \n - /**\n - * APIMethod: render\n - * Render the map to a specified container.\n - * \n - * Parameters:\n - * div - {String|DOMElement} The container that the map should be rendered\n - * to. If different than the current container, the map viewport\n - * will be moved from the current to the new container.\n - */\n - render: function(div) {\n - this.div = OpenLayers.Util.getElement(div);\n - OpenLayers.Element.addClass(this.div, \'olMap\');\n - this.viewPortDiv.parentNode.removeChild(this.viewPortDiv);\n - this.div.appendChild(this.viewPortDiv);\n - this.updateSize();\n - },\n -\n - /**\n - * Method: unloadDestroy\n - * Function that is called to destroy the map on page unload. stored here\n - * so that if map is manually destroyed, we can unregister this.\n - */\n - unloadDestroy: null,\n - \n - /**\n - * Method: updateSizeDestroy\n - * When the map is destroyed, we need to stop listening to updateSize\n - * events: this method stores the function we need to unregister in \n - * non-IE browsers.\n - */\n - updateSizeDestroy: null,\n -\n - /**\n - * APIMethod: destroy\n - * Destroy this map.\n - * Note that if you are using an application which removes a container\n - * of the map from the DOM, you need to ensure that you destroy the\n - * map *before* this happens; otherwise, the page unload handler\n - * will fail because the DOM elements that map.destroy() wants\n - * to clean up will be gone. (See \n - * http://trac.osgeo.org/openlayers/ticket/2277 for more information).\n - * This will apply to GeoExt and also to other applications which\n - * modify the DOM of the container of the OpenLayers Map.\n - */\n - destroy:function() {\n - // if unloadDestroy is null, we\'ve already been destroyed\n - if (!this.unloadDestroy) {\n - return false;\n - }\n - \n - // make sure panning doesn\'t continue after destruction\n - if(this.panTween) {\n - this.panTween.stop();\n - this.panTween = null;\n - }\n -\n - // map has been destroyed. dont do it again!\n - OpenLayers.Event.stopObserving(window, \'unload\', this.unloadDestroy);\n - this.unloadDestroy = null;\n -\n - if (this.updateSizeDestroy) {\n - OpenLayers.Event.stopObserving(window, \'resize\', \n - this.updateSizeDestroy);\n - } else {\n - this.events.unregister("resize", this, this.updateSize);\n - } \n - \n - this.paddingForPopups = null; \n -\n - if (this.controls != null) {\n - for (var i = this.controls.length - 1; i>=0; --i) {\n - this.controls[i].destroy();\n - } \n - this.controls = null;\n - }\n - if (this.layers != null) {\n - for (var i = this.layers.length - 1; i>=0; --i) {\n - //pass \'false\' to destroy so that map wont try to set a new \n - // baselayer after each baselayer is removed\n - this.layers[i].destroy(false);\n - } \n - this.layers = null;\n - }\n - if (this.viewPortDiv) {\n - this.div.removeChild(this.viewPortDiv);\n - }\n - this.viewPortDiv = null;\n -\n - if(this.eventListeners) {\n - this.events.un(this.eventListeners);\n - this.eventListeners = null;\n - }\n - this.events.destroy();\n - this.events = null;\n -\n - this.options = null;\n - },\n -\n - /**\n - * APIMethod: setOptions\n - * Change the map options\n - *\n - * Parameters:\n - * options - {Object} Hashtable of options to tag to the map\n - */\n - setOptions: function(options) {\n - var updatePxExtent = this.minPx &&\n - options.restrictedExtent != this.restrictedExtent;\n - OpenLayers.Util.extend(this, options);\n - // force recalculation of minPx and maxPx\n - updatePxExtent && this.moveTo(this.getCachedCenter(), this.zoom, {\n - forceZoomChange: true\n - });\n - },\n -\n - /**\n - * APIMethod: getTileSize\n - * Get the tile size for the map\n - *\n - * Returns:\n - * {<OpenLayers.Size>}\n - */\n - getTileSize: function() {\n - return this.tileSize;\n - },\n -\n -\n - /**\n - * APIMethod: getBy\n - * Get a list of objects given a property and a match item.\n - *\n - * Parameters:\n - * array - {String} A property on the map whose value is an array.\n - * property - {String} A property on each item of the given array.\n - * match - {String | Object} A string to match. Can also be a regular\n - * expression literal or object. In addition, it can be any object\n - * with a method named test. For reqular expressions or other, if\n - * match.test(map[array][i][property]) evaluates to true, the item will\n - * be included in the array returned. If no items are found, an empty\n - * array is returned.\n - *\n - * Returns:\n - * {Array} An array of items where the given property matches the given\n - * criteria.\n - */\n - getBy: function(array, property, match) {\n - var test = (typeof match.test == "function");\n - var found = OpenLayers.Array.filter(this[array], function(item) {\n - return item[property] == match || (test && match.test(item[property]));\n - });\n - return found;\n - },\n -\n - /**\n - * APIMethod: getLayersBy\n - * Get a list of layers with properties matching the given criteria.\n - *\n - * Parameters:\n - * property - {String} A layer property to be matched.\n - * match - {String | Object} A string to match. Can also be a regular\n - * expression literal or object. In addition, it can be any object\n - * with a method named test. For reqular expressions or other, if\n - * match.test(layer[property]) evaluates to true, the layer will be\n - * included in the array returned. If no layers are found, an empty\n - * array is returned.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Layer>)} A list of layers matching the given criteria.\n - * An empty array is returned if no matches are found.\n - */\n - getLayersBy: function(property, match) {\n - return this.getBy("layers", property, match);\n - },\n -\n - /**\n - * APIMethod: getLayersByName\n - * Get a list of layers with names matching the given name.\n - *\n - * Parameters:\n - * match - {String | Object} A layer name. The name can also be a regular\n - * expression literal or object. In addition, it can be any object\n - * with a method named test. For reqular expressions or other, if\n - * name.test(layer.name) evaluates to true, the layer will be included\n - * in the list of layers returned. If no layers are found, an empty\n - * array is returned.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Layer>)} A list of layers matching the given name.\n - * An empty array is returned if no matches are found.\n - */\n - getLayersByName: function(match) {\n - return this.getLayersBy("name", match);\n - },\n -\n - /**\n - * APIMethod: getLayersByClass\n - * Get a list of layers of a given class (CLASS_NAME).\n - *\n - * Parameters:\n - * match - {String | Object} A layer class name. The match can also be a\n - * regular expression literal or object. In addition, it can be any\n - * object with a method named test. For reqular expressions or other,\n - * if type.test(layer.CLASS_NAME) evaluates to true, the layer will\n - * be included in the list of layers returned. If no layers are\n - * found, an empty array is returned.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Layer>)} A list of layers matching the given class.\n - * An empty array is returned if no matches are found.\n - */\n - getLayersByClass: function(match) {\n - return this.getLayersBy("CLASS_NAME", match);\n - },\n -\n - /**\n - * APIMethod: getControlsBy\n - * Get a list of controls with properties matching the given criteria.\n - *\n - * Parameters:\n - * property - {String} A control property to be matched.\n - * match - {String | Object} A string to match. Can also be a regular\n - * expression literal or object. In addition, it can be any object\n - * with a method named test. For reqular expressions or other, if\n - * match.test(layer[property]) evaluates to true, the layer will be\n - * included in the array returned. If no layers are found, an empty\n - * array is returned.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Control>)} A list of controls matching the given\n - * criteria. An empty array is returned if no matches are found.\n - */\n - getControlsBy: function(property, match) {\n - return this.getBy("controls", property, match);\n - },\n -\n - /**\n - * APIMethod: getControlsByClass\n - * Get a list of controls of a given class (CLASS_NAME).\n - *\n - * Parameters:\n - * match - {String | Object} A control class name. The match can also be a\n - * regular expression literal or object. In addition, it can be any\n - * object with a method named test. For reqular expressions or other,\n - * if type.test(control.CLASS_NAME) evaluates to true, the control will\n - * be included in the list of controls returned. If no controls are\n - * found, an empty array is returned.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Control>)} A list of controls matching the given class.\n - * An empty array is returned if no matches are found.\n - */\n - getControlsByClass: function(match) {\n - return this.getControlsBy("CLASS_NAME", match);\n - },\n -\n - /********************************************************/\n - /* */\n - /* Layer Functions */\n - /* */\n - /* The following functions deal with adding and */\n - /* removing Layers to and from the Map */\n - /* */\n - /********************************************************/ \n -\n - /**\n - * APIMethod: getLayer\n - * Get a layer based on its id\n - *\n - * Parameters:\n - * id - {String} A layer id\n - *\n - * Returns:\n - * {<OpenLayers.Layer>} The Layer with the corresponding id from the map\'s \n - * layer collection, or null if not found.\n - */\n - getLayer: function(id) {\n - var foundLayer = null;\n - for (var i=0, len=this.layers.length; i<len; i++) {\n - var layer = this.layers[i];\n - if (layer.id == id) {\n - foundLayer = layer;\n - break;\n - }\n - }\n - return foundLayer;\n - },\n -\n - /**\n - * Method: setLayerZIndex\n - * \n - * Parameters:\n - * layer - {<OpenLayers.Layer>} \n - * zIdx - {int} \n - */ \n - setLayerZIndex: function (layer, zIdx) {\n - layer.setZIndex(\n - this.Z_INDEX_BASE[layer.isBaseLayer ? \'BaseLayer\' : \'Overlay\']\n - + zIdx * 5 );\n - },\n -\n - /**\n - * Method: resetLayersZIndex\n - * Reset each layer\'s z-index based on layer\'s array index\n - */\n - resetLayersZIndex: function() {\n - for (var i=0, len=this.layers.length; i<len; i++) {\n - var layer = this.layers[i];\n - this.setLayerZIndex(layer, i);\n - }\n - },\n -\n - /**\n - * APIMethod: addLayer\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer>} \n - *\n - * Returns:\n - * {Boolean} True if the layer has been added to the map.\n - */ \n - addLayer: function (layer) {\n - for(var i = 0, len = this.layers.length; i < len; i++) {\n - if (this.layers[i] == layer) {\n - return false;\n - }\n - }\n - if (this.events.triggerEvent("preaddlayer", {layer: layer}) === false) {\n - return false;\n - }\n - if(this.allOverlays) {\n - layer.isBaseLayer = false;\n - }\n - \n - layer.div.className = "olLayerDiv";\n - layer.div.style.overflow = "";\n - this.setLayerZIndex(layer, this.layers.length);\n -\n - if (layer.isFixed) {\n - this.viewPortDiv.appendChild(layer.div);\n - } else {\n - this.layerContainerDiv.appendChild(layer.div);\n - }\n - this.layers.push(layer);\n - layer.setMap(this);\n -\n - if (layer.isBaseLayer || (this.allOverlays && !this.baseLayer)) {\n - if (this.baseLayer == null) {\n - // set the first baselaye we add as the baselayer\n - this.setBaseLayer(layer);\n - } else {\n - layer.setVisibility(false);\n - }\n - } else {\n - layer.redraw();\n - }\n -\n - this.events.triggerEvent("addlayer", {layer: layer});\n - layer.events.triggerEvent("added", {map: this, layer: layer});\n - layer.afterAdd();\n -\n - return true;\n - },\n -\n - /**\n - * APIMethod: addLayers \n - *\n - * Parameters:\n - * layers - {Array(<OpenLayers.Layer>)} \n - */ \n - addLayers: function (layers) {\n - for (var i=0, len=layers.length; i<len; i++) {\n - this.addLayer(layers[i]);\n - }\n - },\n -\n - /** \n - * APIMethod: removeLayer\n - * Removes a layer from the map by removing its visual element (the \n - * layer.div property), then removing it from the map\'s internal list \n - * of layers, setting the layer\'s map property to null. \n - * \n - * a "removelayer" event is triggered.\n - * \n - * very worthy of mention is that simply removing a layer from a map\n - * will not cause the removal of any popups which may have been created\n - * by the layer. this is due to the fact that it was decided at some\n - * point that popups would not belong to layers. thus there is no way \n - * for us to know here to which layer the popup belongs.\n - * \n - * A simple solution to this is simply to call destroy() on the layer.\n - * the default OpenLayers.Layer class\'s destroy() function\n - * automatically takes care to remove itself from whatever map it has\n - * been attached to. \n - * \n - * The correct solution is for the layer itself to register an \n - * event-handler on "removelayer" and when it is called, if it \n - * recognizes itself as the layer being removed, then it cycles through\n - * its own personal list of popups, removing them from the map.\n - * \n - * Parameters:\n - * layer - {<OpenLayers.Layer>} \n - * setNewBaseLayer - {Boolean} Default is true\n - */\n - removeLayer: function(layer, setNewBaseLayer) {\n - if (this.events.triggerEvent("preremovelayer", {layer: layer}) === false) {\n - return;\n - }\n - if (setNewBaseLayer == null) {\n - setNewBaseLayer = true;\n - }\n -\n - if (layer.isFixed) {\n - this.viewPortDiv.removeChild(layer.div);\n - } else {\n - this.layerContainerDiv.removeChild(layer.div);\n - }\n - OpenLayers.Util.removeItem(this.layers, layer);\n - layer.removeMap(this);\n - layer.map = null;\n -\n - // if we removed the base layer, need to set a new one\n - if(this.baseLayer == layer) {\n - this.baseLayer = null;\n - if(setNewBaseLayer) {\n - for(var i=0, len=this.layers.length; i<len; i++) {\n - var iLayer = this.layers[i];\n - if (iLayer.isBaseLayer || this.allOverlays) {\n - this.setBaseLayer(iLayer);\n - break;\n - }\n - }\n - }\n - }\n -\n - this.resetLayersZIndex();\n -\n - this.events.triggerEvent("removelayer", {layer: layer});\n - layer.events.triggerEvent("removed", {map: this, layer: layer});\n - },\n -\n - /**\n - * APIMethod: getNumLayers\n - * \n - * Returns:\n - * {Int} The number of layers attached to the map.\n - */\n - getNumLayers: function () {\n - return this.layers.length;\n - },\n -\n - /** \n - * APIMethod: getLayerIndex\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer>}\n - *\n - * Returns:\n - * {Integer} The current (zero-based) index of the given layer in the map\'s\n - * layer stack. Returns -1 if the layer isn\'t on the map.\n - */\n - getLayerIndex: function (layer) {\n - return OpenLayers.Util.indexOf(this.layers, layer);\n - },\n - \n - /** \n - * APIMethod: setLayerIndex\n - * Move the given layer to the specified (zero-based) index in the layer\n - * list, changing its z-index in the map display. Use\n - * map.getLayerIndex() to find out the current index of a layer. Note\n - * that this cannot (or at least should not) be effectively used to\n - * raise base layers above overlays.\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer>} \n - * idx - {int} \n - */\n - setLayerIndex: function (layer, idx) {\n - var base = this.getLayerIndex(layer);\n - if (idx < 0) {\n - idx = 0;\n - } else if (idx > this.layers.length) {\n - idx = this.layers.length;\n - }\n - if (base != idx) {\n - this.layers.splice(base, 1);\n - this.layers.splice(idx, 0, layer);\n - for (var i=0, len=this.layers.length; i<len; i++) {\n - this.setLayerZIndex(this.layers[i], i);\n - }\n - this.events.triggerEvent("changelayer", {\n - layer: layer, property: "order"\n - });\n - if(this.allOverlays) {\n - if(idx === 0) {\n - this.setBaseLayer(layer);\n - } else if(this.baseLayer !== this.layers[0]) {\n - this.setBaseLayer(this.layers[0]);\n - }\n - }\n - }\n - },\n -\n - /** \n - * APIMethod: raiseLayer\n - * Change the index of the given layer by delta. If delta is positive, \n - * the layer is moved up the map\'s layer stack; if delta is negative,\n - * the layer is moved down. Again, note that this cannot (or at least\n - * should not) be effectively used to raise base layers above overlays.\n - *\n - * Paremeters:\n - * layer - {<OpenLayers.Layer>} \n - * delta - {int} \n - */\n - raiseLayer: function (layer, delta) {\n - var idx = this.getLayerIndex(layer) + delta;\n - this.setLayerIndex(layer, idx);\n - },\n - \n - /** \n - * APIMethod: setBaseLayer\n - * Allows user to specify one of the currently-loaded layers as the Map\'s\n - * new base layer.\n - * \n - * Parameters:\n - * newBaseLayer - {<OpenLayers.Layer>}\n - */\n - setBaseLayer: function(newBaseLayer) {\n - \n - if (newBaseLayer != this.baseLayer) {\n - \n - // ensure newBaseLayer is already loaded\n - if (OpenLayers.Util.indexOf(this.layers, newBaseLayer) != -1) {\n -\n - // preserve center and scale when changing base layers\n - var center = this.getCachedCenter();\n - var newResolution = OpenLayers.Util.getResolutionFromScale(\n - this.getScale(), newBaseLayer.units\n - );\n -\n - // make the old base layer invisible \n - if (this.baseLayer != null && !this.allOverlays) {\n - this.baseLayer.setVisibility(false);\n - }\n -\n - // set new baselayer\n - this.baseLayer = newBaseLayer;\n - \n - if(!this.allOverlays || this.baseLayer.visibility) {\n - this.baseLayer.setVisibility(true);\n - // Layer may previously have been visible but not in range.\n - // In this case we need to redraw it to make it visible.\n - if (this.baseLayer.inRange === false) {\n - this.baseLayer.redraw();\n - }\n - }\n -\n - // recenter the map\n - if (center != null) {\n - // new zoom level derived from old scale\n - var newZoom = this.getZoomForResolution(\n - newResolution || this.resolution, true\n - );\n - // zoom and force zoom change\n - this.setCenter(center, newZoom, false, true);\n - }\n -\n - this.events.triggerEvent("changebaselayer", {\n - layer: this.baseLayer\n - });\n - } \n - }\n - },\n -\n -\n - /********************************************************/\n - /* */\n - /* Control Functions */\n - /* */\n - /* The following functions deal with adding and */\n - /* removing Controls to and from the Map */\n - /* */\n - /********************************************************/ \n -\n - /**\n - * APIMethod: addControl\n - * Add the passed over control to the map. Optionally \n - * position the control at the given pixel.\n - * \n - * Parameters:\n - * control - {<OpenLayers.Control>}\n - * px - {<OpenLayers.Pixel>}\n - */ \n - addControl: function (control, px) {\n - this.controls.push(control);\n - this.addControlToMap(control, px);\n - },\n - \n - /**\n - * APIMethod: addControls\n - * Add all of the passed over controls to the map. \n - * You can pass over an optional second array\n - * with pixel-objects to position the controls.\n - * The indices of the two arrays should match and\n - * you can add null as pixel for those controls \n - * you want to be autopositioned. \n - * \n - * Parameters:\n - * controls - {Array(<OpenLayers.Control>)}\n - * pixels - {Array(<OpenLayers.Pixel>)}\n - */ \n - addControls: function (controls, pixels) {\n - var pxs = (arguments.length === 1) ? [] : pixels;\n - for (var i=0, len=controls.length; i<len; i++) {\n - var ctrl = controls[i];\n - var px = (pxs[i]) ? pxs[i] : null;\n - this.addControl( ctrl, px );\n - }\n - },\n -\n - /**\n - * Method: addControlToMap\n - * \n - * Parameters:\n - * \n - * control - {<OpenLayers.Control>}\n - * px - {<OpenLayers.Pixel>}\n - */ \n - addControlToMap: function (control, px) {\n - // If a control doesn\'t have a div at this point, it belongs in the\n - // viewport.\n - control.outsideViewport = (control.div != null);\n - \n - // If the map has a displayProjection, and the control doesn\'t, set \n - // the display projection.\n - if (this.displayProjection && !control.displayProjection) {\n - control.displayProjection = this.displayProjection;\n - } \n - \n - control.setMap(this);\n - var div = control.draw(px);\n - if (div) {\n - if(!control.outsideViewport) {\n - div.style.zIndex = this.Z_INDEX_BASE[\'Control\'] +\n - this.controls.length;\n - this.viewPortDiv.appendChild( div );\n - }\n - }\n - if(control.autoActivate) {\n - control.activate();\n - }\n - },\n - \n - /**\n - * APIMethod: getControl\n - * \n - * Parameters:\n - * id - {String} ID of the control to return.\n - * \n - * Returns:\n - * {<OpenLayers.Control>} The control from the map\'s list of controls \n - * which has a matching \'id\'. If none found, \n - * returns null.\n - */ \n - getControl: function (id) {\n - var returnControl = null;\n - for(var i=0, len=this.controls.length; i<len; i++) {\n - var control = this.controls[i];\n - if (control.id == id) {\n - returnControl = control;\n - break;\n - }\n - }\n - return returnControl;\n - },\n - \n - /** \n - * APIMethod: removeControl\n - * Remove a control from the map. Removes the control both from the map \n - * object\'s internal array of controls, as well as from the map\'s \n - * viewPort (assuming the control was not added outsideViewport)\n - * \n - * Parameters:\n - * control - {<OpenLayers.Control>} The control to remove.\n - */ \n - removeControl: function (control) {\n - //make sure control is non-null and actually part of our map\n - if ( (control) && (control == this.getControl(control.id)) ) {\n - if (control.div && (control.div.parentNode == this.viewPortDiv)) {\n - this.viewPortDiv.removeChild(control.div);\n - }\n - OpenLayers.Util.removeItem(this.controls, control);\n - }\n - },\n -\n - /********************************************************/\n - /* */\n - /* Popup Functions */\n - /* */\n - /* The following functions deal with adding and */\n - /* removing Popups to and from the Map */\n - /* */\n - /********************************************************/ \n -\n - /** \n - * APIMethod: addPopup\n - * \n - * Parameters:\n - * popup - {<OpenLayers.Popup>}\n - * exclusive - {Boolean} If true, closes all other popups first\n - */\n - addPopup: function(popup, exclusive) {\n -\n - if (exclusive) {\n - //remove all other popups from screen\n - for (var i = this.popups.length - 1; i >= 0; --i) {\n - this.removePopup(this.popups[i]);\n - }\n - }\n -\n - popup.map = this;\n - this.popups.push(popup);\n - var popupDiv = popup.draw();\n - if (popupDiv) {\n - popupDiv.style.zIndex = this.Z_INDEX_BASE[\'Popup\'] +\n - this.popups.length;\n - this.layerContainerDiv.appendChild(popupDiv);\n - }\n - },\n - \n - /** \n - * APIMethod: removePopup\n - * \n - * Parameters:\n - * popup - {<OpenLayers.Popup>}\n - */\n - removePopup: function(popup) {\n - OpenLayers.Util.removeItem(this.popups, popup);\n - if (popup.div) {\n - try { this.layerContainerDiv.removeChild(popup.div); }\n - catch (e) { } // Popups sometimes apparently get disconnected\n - // from the layerContainerDiv, and cause complaints.\n - }\n - popup.map = null;\n - },\n -\n - /********************************************************/\n - /* */\n - /* Container Div Functions */\n - /* */\n - /* The following functions deal with the access to */\n - /* and maintenance of the size of the container div */\n - /* */\n - /********************************************************/ \n -\n - /**\n - * APIMethod: getSize\n - * \n - * Returns:\n - * {<OpenLayers.Size>} An <OpenLayers.Size> object that represents the \n - * size, in pixels, of the div into which OpenLayers \n - * has been loaded. \n - * Note - A clone() of this locally cached variable is\n - * returned, so as not to allow users to modify it.\n - */\n - getSize: function () {\n - var size = null;\n - if (this.size != null) {\n - size = this.size.clone();\n - }\n - return size;\n - },\n -\n - /**\n - * APIMethod: updateSize\n - * This function should be called by any external code which dynamically\n - * changes the size of the map div (because mozilla wont let us catch \n - * the "onresize" for an element)\n - */\n - updateSize: function() {\n - // the div might have moved on the page, also\n - var newSize = this.getCurrentSize();\n - if (newSize && !isNaN(newSize.h) && !isNaN(newSize.w)) {\n - this.events.clearMouseCache();\n - var oldSize = this.getSize();\n - if (oldSize == null) {\n - this.size = oldSize = newSize;\n - }\n - if (!newSize.equals(oldSize)) {\n - \n - // store the new size\n - this.size = newSize;\n - \n - //notify layers of mapresize\n - for(var i=0, len=this.layers.length; i<len; i++) {\n - this.layers[i].onMapResize(); \n - }\n - \n - var center = this.getCachedCenter();\n - \n - if (this.baseLayer != null && center != null) {\n - var zoom = this.getZoom();\n - this.zoom = null;\n - this.setCenter(center, zoom);\n - }\n - \n - }\n - }\n - },\n - \n - /**\n - * Method: getCurrentSize\n - * \n - * Returns:\n - * {<OpenLayers.Size>} A new <OpenLayers.Size> object with the dimensions \n - * of the map div\n - */\n - getCurrentSize: function() {\n -\n - var size = new OpenLayers.Size(this.div.clientWidth, \n - this.div.clientHeight);\n -\n - if (size.w == 0 && size.h == 0 || isNaN(size.w) && isNaN(size.h)) {\n - size.w = this.div.offsetWidth;\n - size.h = this.div.offsetHeight;\n - }\n - if (size.w == 0 && size.h == 0 || isNaN(size.w) && isNaN(size.h)) {\n - size.w = parseInt(this.div.style.width);\n - size.h = parseInt(this.div.style.height);\n - }\n - return size;\n - },\n -\n - /** \n - * Method: calculateBounds\n - * \n - * Parameters:\n - * center - {<OpenLayers.LonLat>} Default is this.getCenter()\n - * resolution - {float} Default is this.getResolution() \n - * \n - * Returns:\n - * {<OpenLayers.Bounds>} A bounds based on resolution, center, and \n - * current mapsize.\n - */\n - calculateBounds: function(center, resolution) {\n -\n - var extent = null;\n - \n - if (center == null) {\n - center = this.getCachedCenter();\n - } \n - if (resolution == null) {\n - resolution = this.getResolution();\n - }\n - \n - if ((center != null) && (resolution != null)) {\n - var halfWDeg = (this.size.w * resolution) / 2;\n - var halfHDeg = (this.size.h * resolution) / 2;\n - \n - extent = new OpenLayers.Bounds(center.lon - halfWDeg,\n - center.lat - halfHDeg,\n - center.lon + halfWDeg,\n - center.lat + halfHDeg);\n - }\n -\n - return extent;\n - },\n -\n -\n - /********************************************************/\n - /* */\n - /* Zoom, Center, Pan Functions */\n - /* */\n - /* The following functions handle the validation, */\n - /* getting and setting of the Zoom Level and Center */\n - /* as well as the panning of the Map */\n - /* */\n - /********************************************************/\n - /**\n - * APIMethod: getCenter\n - * \n - * Returns:\n - * {<OpenLayers.LonLat>}\n - */\n - getCenter: function () {\n - var center = null;\n - var cachedCenter = this.getCachedCenter();\n - if (cachedCenter) {\n - center = cachedCenter.clone();\n - }\n - return center;\n - },\n -\n - /**\n - * Method: getCachedCenter\n - *\n - * Returns:\n - * {<OpenLayers.LonLat>}\n - */\n - getCachedCenter: function() {\n - if (!this.center && this.size) {\n - this.center = this.getLonLatFromViewPortPx({\n - x: this.size.w / 2,\n - y: this.size.h / 2\n - });\n - }\n - return this.center;\n - },\n -\n - /**\n - * APIMethod: getZoom\n - * \n - * Returns:\n - * {Integer}\n - */\n - getZoom: function () {\n - return this.zoom;\n - },\n - \n - /** \n - * APIMethod: pan\n - * Allows user to pan by a value of screen pixels\n - * \n - * Parameters:\n - * dx - {Integer}\n - * dy - {Integer}\n - * options - {Object} Options to configure panning:\n - * - *animate* {Boolean} Use panTo instead of setCenter. Default is true.\n - * - *dragging* {Boolean} Call setCenter with dragging true. Default is\n - * false.\n - */\n - pan: function(dx, dy, options) {\n - options = OpenLayers.Util.applyDefaults(options, {\n - animate: true,\n - dragging: false\n - });\n - if (options.dragging) {\n - if (dx != 0 || dy != 0) {\n - this.moveByPx(dx, dy);\n - }\n - } else {\n - // getCenter\n - var centerPx = this.getViewPortPxFromLonLat(this.getCachedCenter());\n -\n - // adjust\n - var newCenterPx = centerPx.add(dx, dy);\n -\n - if (this.dragging || !newCenterPx.equals(centerPx)) {\n - var newCenterLonLat = this.getLonLatFromViewPortPx(newCenterPx);\n - if (options.animate) {\n - this.panTo(newCenterLonLat);\n - } else {\n - this.moveTo(newCenterLonLat);\n - if(this.dragging) {\n - this.dragging = false;\n - this.events.triggerEvent("moveend");\n - }\n - } \n - }\n - } \n -\n - },\n - \n - /** \n - * APIMethod: panTo\n - * Allows user to pan to a new lonlat\n - * If the new lonlat is in the current extent the map will slide smoothly\n - * \n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>}\n - */\n - panTo: function(lonlat) {\n - if (this.panMethod && this.getExtent().scale(this.panRatio).containsLonLat(lonlat)) {\n - if (!this.panTween) {\n - this.panTween = new OpenLayers.Tween(this.panMethod);\n - }\n - var center = this.getCachedCenter();\n -\n - // center will not change, don\'t do nothing\n - if (lonlat.equals(center)) {\n - return;\n - }\n -\n - var from = this.getPixelFromLonLat(center);\n - var to = this.getPixelFromLonLat(lonlat);\n - var vector = { x: to.x - from.x, y: to.y - from.y };\n - var last = { x: 0, y: 0 };\n -\n - this.panTween.start( { x: 0, y: 0 }, vector, this.panDuration, {\n - callbacks: {\n - eachStep: OpenLayers.Function.bind(function(px) {\n - var x = px.x - last.x,\n - y = px.y - last.y;\n - this.moveByPx(x, y);\n - last.x = Math.round(px.x);\n - last.y = Math.round(px.y);\n - }, this),\n - done: OpenLayers.Function.bind(function(px) {\n - this.moveTo(lonlat);\n - this.dragging = false;\n - this.events.triggerEvent("moveend");\n - }, this)\n - }\n - });\n - } else {\n - this.setCenter(lonlat);\n - }\n - },\n -\n - /**\n - * APIMethod: setCenter\n - * Set the map center (and optionally, the zoom level).\n - * \n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>|Array} The new center location.\n - * If provided as array, the first value is the x coordinate,\n - * and the 2nd value is the y coordinate.\n - * zoom - {Integer} Optional zoom level.\n - * dragging - {Boolean} Specifies whether or not to trigger \n - * movestart/end events\n - * forceZoomChange - {Boolean} Specifies whether or not to trigger zoom \n - * change events (needed on baseLayer change)\n - *\n - * TBD: reconsider forceZoomChange in 3.0\n - */\n - setCenter: function(lonlat, zoom, dragging, forceZoomChange) {\n - this.panTween && this.panTween.stop(); \n - this.moveTo(lonlat, zoom, {\n - \'dragging\': dragging,\n - \'forceZoomChange\': forceZoomChange\n - });\n - },\n - \n - /** \n - * Method: moveByPx\n - * Drag the map by pixels.\n - *\n - * Parameters:\n - * dx - {Number}\n - * dy - {Number}\n - */\n - moveByPx: function(dx, dy) {\n - var hw = this.size.w / 2;\n - var hh = this.size.h / 2;\n - var x = hw + dx;\n - var y = hh + dy;\n - var wrapDateLine = this.baseLayer.wrapDateLine;\n - var xRestriction = 0;\n - var yRestriction = 0;\n - if (this.restrictedExtent) {\n - xRestriction = hw;\n - yRestriction = hh;\n - // wrapping the date line makes no sense for restricted extents\n - wrapDateLine = false;\n - }\n - dx = wrapDateLine ||\n - x <= this.maxPx.x - xRestriction &&\n - x >= this.minPx.x + xRestriction ? Math.round(dx) : 0;\n - dy = y <= this.maxPx.y - yRestriction &&\n - y >= this.minPx.y + yRestriction ? Math.round(dy) : 0;\n - if (dx || dy) {\n - if (!this.dragging) {\n - this.dragging = true;\n - this.events.triggerEvent("movestart");\n - }\n - this.center = null;\n - if (dx) {\n - this.layerContainerDiv.style.left =\n - parseInt(this.layerContainerDiv.style.left) - dx + "px";\n - this.minPx.x -= dx;\n - this.maxPx.x -= dx;\n - }\n - if (dy) {\n - this.layerContainerDiv.style.top =\n - parseInt(this.layerContainerDiv.style.top) - dy + "px";\n - this.minPx.y -= dy;\n - this.maxPx.y -= dy;\n - }\n - var layer, i, len;\n - for (i=0, len=this.layers.length; i<len; ++i) {\n - layer = this.layers[i];\n - if (layer.visibility &&\n - (layer === this.baseLayer || layer.inRange)) {\n - layer.moveByPx(dx, dy);\n - layer.events.triggerEvent("move");\n - }\n - }\n - this.events.triggerEvent("move");\n - }\n - },\n - \n - /**\n - * Method: adjustZoom\n - *\n - * Parameters:\n - * zoom - {Number} The zoom level to adjust\n - *\n - * Returns:\n - * {Integer} Adjusted zoom level that shows a map not wider than its\n - * <baseLayer>\'s maxExtent.\n - */\n - adjustZoom: function(zoom) {\n - var resolution, resolutions = this.baseLayer.resolutions,\n - maxResolution = this.getMaxExtent().getWidth() / this.size.w;\n - if (this.getResolutionForZoom(zoom) > maxResolution) {\n - for (var i=zoom|0, ii=resolutions.length; i<ii; ++i) {\n - if (resolutions[i] <= maxResolution) {\n - zoom = i;\n - break;\n - }\n - }\n - }\n - return zoom;\n - },\n -\n - /**\n - * Method: moveTo\n - *\n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>}\n - * zoom - {Integer}\n - * options - {Object}\n - */\n - moveTo: function(lonlat, zoom, options) {\n - if (lonlat != null && !(lonlat instanceof OpenLayers.LonLat)) {\n - lonlat = new OpenLayers.LonLat(lonlat);\n - }\n - if (!options) { \n - options = {};\n - }\n - if (zoom != null) {\n - zoom = parseFloat(zoom);\n - if (!this.fractionalZoom) {\n - zoom = Math.round(zoom);\n - }\n - }\n - if (this.baseLayer.wrapDateLine) {\n - var requestedZoom = zoom;\n - zoom = this.adjustZoom(zoom);\n - if (zoom !== requestedZoom) {\n - // zoom was adjusted, so keep old lonlat to avoid panning\n - lonlat = this.getCenter();\n - }\n - }\n - // dragging is false by default\n - var dragging = options.dragging || this.dragging;\n - // forceZoomChange is false by default\n - var forceZoomChange = options.forceZoomChange;\n -\n - if (!this.getCachedCenter() && !this.isValidLonLat(lonlat)) {\n - lonlat = this.maxExtent.getCenterLonLat();\n - this.center = lonlat.clone();\n - }\n -\n - if(this.restrictedExtent != null) {\n - // In 3.0, decide if we want to change interpretation of maxExtent.\n - if(lonlat == null) { \n - lonlat = this.center; \n - }\n - if(zoom == null) { \n - zoom = this.getZoom(); \n - }\n - var resolution = this.getResolutionForZoom(zoom);\n - var extent = this.calculateBounds(lonlat, resolution); \n - if(!this.restrictedExtent.containsBounds(extent)) {\n - var maxCenter = this.restrictedExtent.getCenterLonLat(); \n - if(extent.getWidth() > this.restrictedExtent.getWidth()) { \n - lonlat = new OpenLayers.LonLat(maxCenter.lon, lonlat.lat); \n - } else if(extent.left < this.restrictedExtent.left) {\n - lonlat = lonlat.add(this.restrictedExtent.left -\n - extent.left, 0); \n - } else if(extent.right > this.restrictedExtent.right) { \n - lonlat = lonlat.add(this.restrictedExtent.right -\n - extent.right, 0); \n - } \n - if(extent.getHeight() > this.restrictedExtent.getHeight()) { \n - lonlat = new OpenLayers.LonLat(lonlat.lon, maxCenter.lat); \n - } else if(extent.bottom < this.restrictedExtent.bottom) { \n - lonlat = lonlat.add(0, this.restrictedExtent.bottom -\n - extent.bottom); \n - } \n - else if(extent.top > this.restrictedExtent.top) { \n - lonlat = lonlat.add(0, this.restrictedExtent.top -\n - extent.top); \n - } \n - }\n - }\n - \n - var zoomChanged = forceZoomChange || (\n - (this.isValidZoomLevel(zoom)) && \n - (zoom != this.getZoom()) );\n -\n - var centerChanged = (this.isValidLonLat(lonlat)) && \n - (!lonlat.equals(this.center));\n -\n - // if neither center nor zoom will change, no need to do anything\n - if (zoomChanged || centerChanged || dragging) {\n - dragging || this.events.triggerEvent("movestart");\n -\n - if (centerChanged) {\n - if (!zoomChanged && this.center) { \n - // if zoom hasnt changed, just slide layerContainer\n - // (must be done before setting this.center to new value)\n - this.centerLayerContainer(lonlat);\n - }\n - this.center = lonlat.clone();\n - }\n -\n - var res = zoomChanged ?\n - this.getResolutionForZoom(zoom) : this.getResolution();\n - // (re)set the layerContainerDiv\'s location\n - if (zoomChanged || this.layerContainerOrigin == null) {\n - this.layerContainerOrigin = this.getCachedCenter();\n - this.layerContainerDiv.style.left = "0px";\n - this.layerContainerDiv.style.top = "0px";\n - var maxExtent = this.getMaxExtent({restricted: true});\n - var maxExtentCenter = maxExtent.getCenterLonLat();\n - var lonDelta = this.center.lon - maxExtentCenter.lon;\n - var latDelta = maxExtentCenter.lat - this.center.lat;\n - var extentWidth = Math.round(maxExtent.getWidth() / res);\n - var extentHeight = Math.round(maxExtent.getHeight() / res);\n - this.minPx = {\n - x: (this.size.w - extentWidth) / 2 - lonDelta / res,\n - y: (this.size.h - extentHeight) / 2 - latDelta / res\n - };\n - this.maxPx = {\n - x: this.minPx.x + Math.round(maxExtent.getWidth() / res),\n - y: this.minPx.y + Math.round(maxExtent.getHeight() / res)\n - };\n - }\n -\n - if (zoomChanged) {\n - this.zoom = zoom;\n - this.resolution = res;\n - } \n - \n - var bounds = this.getExtent();\n - \n - //send the move call to the baselayer and all the overlays \n -\n - if(this.baseLayer.visibility) {\n - this.baseLayer.moveTo(bounds, zoomChanged, options.dragging);\n - options.dragging || this.baseLayer.events.triggerEvent(\n - "moveend", {zoomChanged: zoomChanged}\n - );\n - }\n - \n - bounds = this.baseLayer.getExtent();\n - \n - for (var i=this.layers.length-1; i>=0; --i) {\n - var layer = this.layers[i];\n - if (layer !== this.baseLayer && !layer.isBaseLayer) {\n - var inRange = layer.calculateInRange();\n - if (layer.inRange != inRange) {\n - // the inRange property has changed. If the layer is\n - // no longer in range, we turn it off right away. If\n - // the layer is no longer out of range, the moveTo\n - // call below will turn on the layer.\n - layer.inRange = inRange;\n - if (!inRange) {\n - layer.display(false);\n - }\n - this.events.triggerEvent("changelayer", {\n - layer: layer, property: "visibility"\n - });\n - }\n - if (inRange && layer.visibility) {\n - layer.moveTo(bounds, zoomChanged, options.dragging);\n - options.dragging || layer.events.triggerEvent(\n - "moveend", {zoomChanged: zoomChanged}\n - );\n - }\n - } \n - }\n - \n - this.events.triggerEvent("move");\n - dragging || this.events.triggerEvent("moveend");\n -\n - if (zoomChanged) {\n - //redraw popups\n - for (var i=0, len=this.popups.length; i<len; i++) {\n - this.popups[i].updatePosition();\n - }\n - this.events.triggerEvent("zoomend");\n - }\n - }\n - },\n -\n - /** \n - * Method: centerLayerContainer\n - * This function takes care to recenter the layerContainerDiv.\n - * \n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>}\n - */\n - centerLayerContainer: function (lonlat) {\n - var originPx = this.getViewPortPxFromLonLat(this.layerContainerOrigin);\n - var newPx = this.getViewPortPxFromLonLat(lonlat);\n -\n - if ((originPx != null) && (newPx != null)) {\n - var oldLeft = parseInt(this.layerContainerDiv.style.left);\n - var oldTop = parseInt(this.layerContainerDiv.style.top);\n - var newLeft = Math.round(originPx.x - newPx.x);\n - var newTop = Math.round(originPx.y - newPx.y);\n - this.layerContainerDiv.style.left = newLeft + "px";\n - this.layerContainerDiv.style.top = newTop + "px";\n - var dx = oldLeft - newLeft;\n - var dy = oldTop - newTop;\n - this.minPx.x -= dx;\n - this.maxPx.x -= dx;\n - this.minPx.y -= dy;\n - this.maxPx.y -= dy;\n - } \n - },\n -\n - /**\n - * Method: isValidZoomLevel\n - * \n - * Parameters:\n - * zoomLevel - {Integer}\n - * \n - * Returns:\n - * {Boolean} Whether or not the zoom level passed in is non-null and \n - * within the min/max range of zoom levels.\n - */\n - isValidZoomLevel: function(zoomLevel) {\n - return ( (zoomLevel != null) &&\n - (zoomLevel >= 0) && \n - (zoomLevel < this.getNumZoomLevels()) );\n - },\n - \n - /**\n - * Method: isValidLonLat\n - * \n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>}\n - * \n - * Returns:\n - * {Boolean} Whether or not the lonlat passed in is non-null and within\n - * the maxExtent bounds\n - */\n - isValidLonLat: function(lonlat) {\n - var valid = false;\n - if (lonlat != null) {\n - var maxExtent = this.getMaxExtent();\n - var worldBounds = this.baseLayer.wrapDateLine && maxExtent;\n - valid = maxExtent.containsLonLat(lonlat, {worldBounds: worldBounds});\n - }\n - return valid;\n - },\n -\n - /********************************************************/\n - /* */\n - /* Layer Options */\n - /* */\n - /* Accessor functions to Layer Options parameters */\n - /* */\n - /********************************************************/\n - \n - /**\n - * APIMethod: getProjection\n - * This method returns a string representing the projection. In \n - * the case of projection support, this will be the srsCode which\n - * is loaded -- otherwise it will simply be the string value that\n - * was passed to the projection at startup.\n - *\n - * FIXME: In 3.0, we will remove getProjectionObject, and instead\n - * return a Projection object from this function. \n - * \n - * Returns:\n - * {String} The Projection string from the base layer or null. \n - */\n - getProjection: function() {\n - var projection = this.getProjectionObject();\n - return projection ? projection.getCode() : null;\n - },\n - \n - /**\n - * APIMethod: getProjectionObject\n - * Returns the projection obect from the baselayer.\n - *\n - * Returns:\n - * {<OpenLayers.Projection>} The Projection of the base layer.\n - */\n - getProjectionObject: function() {\n - var projection = null;\n - if (this.baseLayer != null) {\n - projection = this.baseLayer.projection;\n - }\n - return projection;\n - },\n - \n - /**\n - * APIMethod: getMaxResolution\n - * \n - * Returns:\n - * {String} The Map\'s Maximum Resolution\n - */\n - getMaxResolution: function() {\n - var maxResolution = null;\n - if (this.baseLayer != null) {\n - maxResolution = this.baseLayer.maxResolution;\n - }\n - return maxResolution;\n - },\n - \n - /**\n - * APIMethod: getMaxExtent\n - *\n - * Parameters:\n - * options - {Object} \n - * \n - * Allowed Options:\n - * restricted - {Boolean} If true, returns restricted extent (if it is \n - * available.)\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>} The maxExtent property as set on the current \n - * baselayer, unless the \'restricted\' option is set, in which case\n - * the \'restrictedExtent\' option from the map is returned (if it\n - * is set).\n - */\n - getMaxExtent: function (options) {\n - var maxExtent = null;\n - if(options && options.restricted && this.restrictedExtent){\n - maxExtent = this.restrictedExtent;\n - } else if (this.baseLayer != null) {\n - maxExtent = this.baseLayer.maxExtent;\n - } \n - return maxExtent;\n - },\n - \n - /**\n - * APIMethod: getNumZoomLevels\n - * \n - * Returns:\n - * {Integer} The total number of zoom levels that can be displayed by the \n - * current baseLayer.\n - */\n - getNumZoomLevels: function() {\n - var numZoomLevels = null;\n - if (this.baseLayer != null) {\n - numZoomLevels = this.baseLayer.numZoomLevels;\n - }\n - return numZoomLevels;\n - },\n -\n - /********************************************************/\n - /* */\n - /* Baselayer Functions */\n - /* */\n - /* The following functions, all publicly exposed */\n - /* in the API?, are all merely wrappers to the */\n - /* the same calls on whatever layer is set as */\n - /* the current base layer */\n - /* */\n - /********************************************************/\n -\n - /**\n - * APIMethod: getExtent\n - * \n - * Returns:\n - * {<OpenLayers.Bounds>} A Bounds object which represents the lon/lat \n - * bounds of the current viewPort. \n - * If no baselayer is set, returns null.\n - */\n - getExtent: function () {\n - var extent = null;\n - if (this.baseLayer != null) {\n - extent = this.baseLayer.getExtent();\n - }\n - return extent;\n - },\n -\n - /**\n - * APIMethod: getResolution\n - * \n - * Returns:\n - * {Float} The current resolution of the map. \n - * If no baselayer is set, returns null.\n - */\n - getResolution: function () {\n - var resolution = null;\n - if (this.baseLayer != null) {\n - resolution = this.baseLayer.getResolution();\n - } else if(this.allOverlays === true && this.layers.length > 0) {\n - // while adding the 1st layer to the map in allOverlays mode,\n - // this.baseLayer is not set yet when we need the resolution\n - // for calculateInRange.\n - resolution = this.layers[0].getResolution();\n - }\n - return resolution;\n - },\n -\n - /**\n - * APIMethod: getUnits\n - * \n - * Returns:\n - * {Float} The current units of the map. \n - * If no baselayer is set, returns null.\n - */\n - getUnits: function () {\n - var units = null;\n - if (this.baseLayer != null) {\n - units = this.baseLayer.units;\n - }\n - return units;\n - },\n -\n - /**\n - * APIMethod: getScale\n - * \n - * Returns:\n - * {Float} The current scale denominator of the map. \n - * If no baselayer is set, returns null.\n - */\n - getScale: function () {\n - var scale = null;\n - if (this.baseLayer != null) {\n - var res = this.getResolution();\n - var units = this.baseLayer.units;\n - scale = OpenLayers.Util.getScaleFromResolution(res, units);\n - }\n - return scale;\n - },\n -\n -\n - /**\n - * APIMethod: getZoomForExtent\n - * \n - * Parameters: \n - * bounds - {<OpenLayers.Bounds>}\n - * closest - {Boolean} Find the zoom level that most closely fits the \n - * specified bounds. Note that this may result in a zoom that does \n - * not exactly contain the entire extent.\n - * Default is false.\n - * \n - * Returns:\n - * {Integer} A suitable zoom level for the specified bounds.\n - * If no baselayer is set, returns null.\n - */\n - getZoomForExtent: function (bounds, closest) {\n - var zoom = null;\n - if (this.baseLayer != null) {\n - zoom = this.baseLayer.getZoomForExtent(bounds, closest);\n - }\n - return zoom;\n - },\n -\n - /**\n - * APIMethod: getResolutionForZoom\n - * \n - * Parameters:\n - * zoom - {Float}\n - * \n - * Returns:\n - * {Float} A suitable resolution for the specified zoom. If no baselayer\n - * is set, returns null.\n - */\n - getResolutionForZoom: function(zoom) {\n - var resolution = null;\n - if(this.baseLayer) {\n - resolution = this.baseLayer.getResolutionForZoom(zoom);\n - }\n - return resolution;\n - },\n -\n - /**\n - * APIMethod: getZoomForResolution\n - * \n - * Parameters:\n - * resolution - {Float}\n - * closest - {Boolean} Find the zoom level that corresponds to the absolute \n - * closest resolution, which may result in a zoom whose corresponding\n - * resolution is actually smaller than we would have desired (if this\n - * is being called from a getZoomForExtent() call, then this means that\n - * the returned zoom index might not actually contain the entire \n - * extent specified... but it\'ll be close).\n - * Default is false.\n - * \n - * Returns:\n - * {Integer} A suitable zoom level for the specified resolution.\n - * If no baselayer is set, returns null.\n - */\n - getZoomForResolution: function(resolution, closest) {\n - var zoom = null;\n - if (this.baseLayer != null) {\n - zoom = this.baseLayer.getZoomForResolution(resolution, closest);\n - }\n - return zoom;\n - },\n -\n - /********************************************************/\n - /* */\n - /* Zooming Functions */\n - /* */\n - /* The following functions, all publicly exposed */\n - /* in the API, are all merely wrappers to the */\n - /* the setCenter() function */\n - /* */\n - /********************************************************/\n - \n - /** \n - * APIMethod: zoomTo\n - * Zoom to a specific zoom level\n - * \n - * Parameters:\n - * zoom - {Integer}\n - */\n - zoomTo: function(zoom) {\n - if (this.isValidZoomLevel(zoom)) {\n - this.setCenter(null, zoom);\n - }\n - },\n - \n - /**\n - * APIMethod: zoomIn\n - * \n - */\n - zoomIn: function() {\n - this.zoomTo(this.getZoom() + 1);\n - },\n - \n - /**\n - * APIMethod: zoomOut\n - * \n - */\n - zoomOut: function() {\n - this.zoomTo(this.getZoom() - 1);\n - },\n -\n - /**\n - * APIMethod: zoomToExtent\n - * Zoom to the passed in bounds, recenter\n - * \n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>|Array} If provided as an array, the array\n - * should consist of four values (left, bottom, right, top).\n - * closest - {Boolean} Find the zoom level that most closely fits the \n - * specified bounds. Note that this may result in a zoom that does \n - * not exactly contain the entire extent.\n - * Default is false.\n - * \n - */\n - zoomToExtent: function(bounds, closest) {\n - if (!(bounds instanceof OpenLayers.Bounds)) {\n - bounds = new OpenLayers.Bounds(bounds);\n - }\n - var center = bounds.getCenterLonLat();\n - if (this.baseLayer.wrapDateLine) {\n - var maxExtent = this.getMaxExtent();\n -\n - //fix straddling bounds (in the case of a bbox that straddles the \n - // dateline, it\'s left and right boundaries will appear backwards. \n - // we fix this by allowing a right value that is greater than the\n - // max value at the dateline -- this allows us to pass a valid \n - // bounds to calculate zoom)\n - //\n - bounds = bounds.clone();\n - while (bounds.right < bounds.left) {\n - bounds.right += maxExtent.getWidth();\n - }\n - //if the bounds was straddling (see above), then the center point \n - // we got from it was wrong. So we take our new bounds and ask it\n - // for the center.\n - //\n - center = bounds.getCenterLonLat().wrapDateLine(maxExtent);\n - }\n - this.setCenter(center, this.getZoomForExtent(bounds, closest));\n - },\n -\n - /** \n - * APIMethod: zoomToMaxExtent\n - * Zoom to the full extent and recenter.\n - *\n - * Parameters:\n - * options - {Object}\n - * \n - * Allowed Options:\n - * restricted - {Boolean} True to zoom to restricted extent if it is \n - * set. Defaults to true.\n - */\n - zoomToMaxExtent: function(options) {\n - //restricted is true by default\n - var restricted = (options) ? options.restricted : true;\n -\n - var maxExtent = this.getMaxExtent({\n - \'restricted\': restricted \n - });\n - this.zoomToExtent(maxExtent);\n - },\n -\n - /** \n - * APIMethod: zoomToScale\n - * Zoom to a specified scale \n - * \n - * Parameters:\n - * scale - {float}\n - * closest - {Boolean} Find the zoom level that most closely fits the \n - * specified scale. Note that this may result in a zoom that does \n - * not exactly contain the entire extent.\n - * Default is false.\n - * \n - */\n - zoomToScale: function(scale, closest) {\n - var res = OpenLayers.Util.getResolutionFromScale(scale, \n - this.baseLayer.units);\n -\n - var halfWDeg = (this.size.w * res) / 2;\n - var halfHDeg = (this.size.h * res) / 2;\n - var center = this.getCachedCenter();\n -\n - var extent = new OpenLayers.Bounds(center.lon - halfWDeg,\n - center.lat - halfHDeg,\n - center.lon + halfWDeg,\n - center.lat + halfHDeg);\n - this.zoomToExtent(extent, closest);\n - },\n - \n - /********************************************************/\n - /* */\n - /* Translation Functions */\n - /* */\n - /* The following functions translate between */\n - /* LonLat, LayerPx, and ViewPortPx */\n - /* */\n - /********************************************************/\n - \n - //\n - // TRANSLATION: LonLat <-> ViewPortPx\n - //\n -\n - /**\n - * Method: getLonLatFromViewPortPx\n - * \n - * Parameters:\n - * viewPortPx - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or\n - * an object with a \'x\'\n - * and \'y\' properties.\n - * \n - * Returns:\n - * {<OpenLayers.LonLat>} An OpenLayers.LonLat which is the passed-in view \n - * port <OpenLayers.Pixel>, translated into lon/lat\n - * by the current base layer.\n - */\n - getLonLatFromViewPortPx: function (viewPortPx) {\n - var lonlat = null; \n - if (this.baseLayer != null) {\n - lonlat = this.baseLayer.getLonLatFromViewPortPx(viewPortPx);\n - }\n - return lonlat;\n - },\n -\n - /**\n - * APIMethod: getViewPortPxFromLonLat\n - * \n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>}\n - * \n - * Returns:\n - * {<OpenLayers.Pixel>} An OpenLayers.Pixel which is the passed-in \n - * <OpenLayers.LonLat>, translated into view port \n - * pixels by the current base layer.\n - */\n - getViewPortPxFromLonLat: function (lonlat) {\n - var px = null; \n - if (this.baseLayer != null) {\n - px = this.baseLayer.getViewPortPxFromLonLat(lonlat);\n - }\n - return px;\n - },\n -\n - \n - //\n - // CONVENIENCE TRANSLATION FUNCTIONS FOR API\n - //\n -\n - /**\n - * APIMethod: getLonLatFromPixel\n - * \n - * Parameters:\n - * px - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or an object with\n - * a \'x\' and \'y\' properties.\n - *\n - * Returns:\n - * {<OpenLayers.LonLat>} An OpenLayers.LonLat corresponding to the given\n - * OpenLayers.Pixel, translated into lon/lat by the \n - * current base layer\n - */\n - getLonLatFromPixel: function (px) {\n - return this.getLonLatFromViewPortPx(px);\n - },\n -\n - /**\n - * APIMethod: getPixelFromLonLat\n - * Returns a pixel location given a map location. The map location is\n - * translated to an integer pixel location (in viewport pixel\n - * coordinates) by the current base layer.\n - * \n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>} A map location.\n - * \n - * Returns: \n - * {<OpenLayers.Pixel>} An OpenLayers.Pixel corresponding to the \n - * <OpenLayers.LonLat> translated into view port pixels by the current\n - * base layer.\n - */\n - getPixelFromLonLat: function (lonlat) {\n - var px = this.getViewPortPxFromLonLat(lonlat);\n - px.x = Math.round(px.x);\n - px.y = Math.round(px.y);\n - return px;\n - },\n - \n - /**\n - * Method: getGeodesicPixelSize\n - * \n - * Parameters:\n - * px - {<OpenLayers.Pixel>} The pixel to get the geodesic length for. If\n - * not provided, the center pixel of the map viewport will be used.\n - * \n - * Returns:\n - * {<OpenLayers.Size>} The geodesic size of the pixel in kilometers.\n - */\n - getGeodesicPixelSize: function(px) {\n - var lonlat = px ? this.getLonLatFromPixel(px) : (\n - this.getCachedCenter() || new OpenLayers.LonLat(0, 0));\n - var res = this.getResolution();\n - var left = lonlat.add(-res / 2, 0);\n - var right = lonlat.add(res / 2, 0);\n - var bottom = lonlat.add(0, -res / 2);\n - var top = lonlat.add(0, res / 2);\n - var dest = new OpenLayers.Projection("EPSG:4326");\n - var source = this.getProjectionObject() || dest;\n - if(!source.equals(dest)) {\n - left.transform(source, dest);\n - right.transform(source, dest);\n - bottom.transform(source, dest);\n - top.transform(source, dest);\n - }\n - \n - return new OpenLayers.Size(\n - OpenLayers.Util.distVincenty(left, right),\n - OpenLayers.Util.distVincenty(bottom, top)\n - );\n - },\n -\n -\n -\n - //\n - // TRANSLATION: ViewPortPx <-> LayerPx\n - //\n -\n - /**\n - * APIMethod: getViewPortPxFromLayerPx\n - * \n - * Parameters:\n - * layerPx - {<OpenLayers.Pixel>}\n - * \n - * Returns:\n - * {<OpenLayers.Pixel>} Layer Pixel translated into ViewPort Pixel \n - * coordinates\n - */\n - getViewPortPxFromLayerPx:function(layerPx) {\n - var viewPortPx = null;\n - if (layerPx != null) {\n - var dX = parseInt(this.layerContainerDiv.style.left);\n - var dY = parseInt(this.layerContainerDiv.style.top);\n - viewPortPx = layerPx.add(dX, dY); \n - }\n - return viewPortPx;\n - },\n - \n - /**\n - * APIMethod: getLayerPxFromViewPortPx\n - * \n - * Parameters:\n - * viewPortPx - {<OpenLayers.Pixel>}\n - * \n - * Returns:\n - * {<OpenLayers.Pixel>} ViewPort Pixel translated into Layer Pixel \n - * coordinates\n - */\n - getLayerPxFromViewPortPx:function(viewPortPx) {\n - var layerPx = null;\n - if (viewPortPx != null) {\n - var dX = -parseInt(this.layerContainerDiv.style.left);\n - var dY = -parseInt(this.layerContainerDiv.style.top);\n - layerPx = viewPortPx.add(dX, dY);\n - if (isNaN(layerPx.x) || isNaN(layerPx.y)) {\n - layerPx = null;\n - }\n - }\n - return layerPx;\n - },\n - \n - //\n - // TRANSLATION: LonLat <-> LayerPx\n - //\n -\n - /**\n - * Method: getLonLatFromLayerPx\n - * \n - * Parameters:\n - * px - {<OpenLayers.Pixel>}\n - *\n - * Returns:\n - * {<OpenLayers.LonLat>}\n - */\n - getLonLatFromLayerPx: function (px) {\n - //adjust for displacement of layerContainerDiv\n - px = this.getViewPortPxFromLayerPx(px);\n - return this.getLonLatFromViewPortPx(px); \n - },\n - \n - /**\n - * APIMethod: getLayerPxFromLonLat\n - * \n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>} lonlat\n - *\n - * Returns:\n - * {<OpenLayers.Pixel>} An OpenLayers.Pixel which is the passed-in \n - * <OpenLayers.LonLat>, translated into layer pixels \n - * by the current base layer\n - */\n - getLayerPxFromLonLat: function (lonlat) {\n - //adjust for displacement of layerContainerDiv\n - var px = this.getPixelFromLonLat(lonlat);\n - return this.getLayerPxFromViewPortPx(px); \n - },\n -\n - CLASS_NAME: "OpenLayers.Map"\n -});\n -\n -/**\n - * Constant: TILE_WIDTH\n - * {Integer} 256 Default tile width (unless otherwise specified)\n - */\n -OpenLayers.Map.TILE_WIDTH = 256;\n -/**\n - * Constant: TILE_HEIGHT\n - * {Integer} 256 Default tile height (unless otherwise specified)\n - */\n -OpenLayers.Map.TILE_HEIGHT = 256;\n - - -]]></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Marker.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Marker.js.xml deleted file mode 100644 index 8e213418a0f098beff899047ee7d36a8648e3992..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Marker.js.xml +++ /dev/null @@ -1,285 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Marker.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Events.js\n - * @requires OpenLayers/Icon.js\n - */\n -\n -/**\n - * Class: OpenLayers.Marker\n - * Instances of OpenLayers.Marker are a combination of a \n - * <OpenLayers.LonLat> and an <OpenLayers.Icon>. \n - *\n - * Markers are generally added to a special layer called\n - * <OpenLayers.Layer.Markers>.\n - *\n - * Example:\n - * (code)\n - * var markers = new OpenLayers.Layer.Markers( "Markers" );\n - * map.addLayer(markers);\n - *\n - * var size = new OpenLayers.Size(21,25);\n - * var offset = new OpenLayers.Pixel(-(size.w/2), -size.h);\n - * var icon = new OpenLayers.Icon(\'http://www.openlayers.org/dev/img/marker.png\', size, offset);\n - * markers.addMarker(new OpenLayers.Marker(new OpenLayers.LonLat(0,0),icon));\n - * markers.addMarker(new OpenLayers.Marker(new OpenLayers.LonLat(0,0),icon.clone()));\n - *\n - * (end)\n - *\n - * Note that if you pass an icon into the Marker constructor, it will take\n - * that icon and use it. This means that you should not share icons between\n - * markers -- you use them once, but you should clone() for any additional\n - * markers using that same icon.\n - */\n -OpenLayers.Marker = OpenLayers.Class({\n - \n - /** \n - * Property: icon \n - * {<OpenLayers.Icon>} The icon used by this marker.\n - */\n - icon: null,\n -\n - /** \n - * Property: lonlat \n - * {<OpenLayers.LonLat>} location of object\n - */\n - lonlat: null,\n - \n - /** \n - * Property: events \n - * {<OpenLayers.Events>} the event handler.\n - */\n - events: null,\n - \n - /** \n - * Property: map \n - * {<OpenLayers.Map>} the map this marker is attached to\n - */\n - map: null,\n - \n - /** \n - * Constructor: OpenLayers.Marker\n - *\n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>} the position of this marker\n - * icon - {<OpenLayers.Icon>} the icon for this marker\n - */\n - initialize: function(lonlat, icon) {\n - this.lonlat = lonlat;\n - \n - var newIcon = (icon) ? icon : OpenLayers.Marker.defaultIcon();\n - if (this.icon == null) {\n - this.icon = newIcon;\n - } else {\n - this.icon.url = newIcon.url;\n - this.icon.size = newIcon.size;\n - this.icon.offset = newIcon.offset;\n - this.icon.calculateOffset = newIcon.calculateOffset;\n - }\n - this.events = new OpenLayers.Events(this, this.icon.imageDiv);\n - },\n - \n - /**\n - * APIMethod: destroy\n - * Destroy the marker. You must first remove the marker from any \n - * layer which it has been added to, or you will get buggy behavior.\n - * (This can not be done within the marker since the marker does not\n - * know which layer it is attached to.)\n - */\n - destroy: function() {\n - // erase any drawn features\n - this.erase();\n -\n - this.map = null;\n -\n - this.events.destroy();\n - this.events = null;\n -\n - if (this.icon != null) {\n - this.icon.destroy();\n - this.icon = null;\n - }\n - },\n - \n - /** \n - * Method: draw\n - * Calls draw on the icon, and returns that output.\n - * \n - * Parameters:\n - * px - {<OpenLayers.Pixel>}\n - * \n - * Returns:\n - * {DOMElement} A new DOM Image with this marker\'s icon set at the \n - * location passed-in\n - */\n - draw: function(px) {\n - return this.icon.draw(px);\n - }, \n -\n - /** \n - * Method: erase\n - * Erases any drawn elements for this marker.\n - */\n - erase: function() {\n - if (this.icon != null) {\n - this.icon.erase();\n - }\n - }, \n -\n - /**\n - * Method: moveTo\n - * Move the marker to the new location.\n - *\n - * Parameters:\n - * px - {<OpenLayers.Pixel>|Object} the pixel position to move to.\n - * An OpenLayers.Pixel or an object with a \'x\' and \'y\' properties.\n - */\n - moveTo: function (px) {\n - if ((px != null) && (this.icon != null)) {\n - this.icon.moveTo(px);\n - } \n - this.lonlat = this.map.getLonLatFromLayerPx(px);\n - },\n -\n - /**\n - * APIMethod: isDrawn\n - * \n - * Returns:\n - * {Boolean} Whether or not the marker is drawn.\n - */\n - isDrawn: function() {\n - var isDrawn = (this.icon && this.icon.isDrawn());\n - return isDrawn; \n - },\n -\n - /**\n - * Method: onScreen\n - *\n - * Returns:\n - * {Boolean} Whether or not the marker is currently visible on screen.\n - */\n - onScreen:function() {\n - \n - var onScreen = false;\n - if (this.map) {\n - var screenBounds = this.map.getExtent();\n - onScreen = screenBounds.containsLonLat(this.lonlat);\n - } \n - return onScreen;\n - },\n - \n - /**\n - * Method: inflate\n - * Englarges the markers icon by the specified ratio.\n - *\n - * Parameters:\n - * inflate - {float} the ratio to enlarge the marker by (passing 2\n - * will double the size).\n - */\n - inflate: function(inflate) {\n - if (this.icon) {\n - this.icon.setSize({\n - w: this.icon.size.w * inflate,\n - h: this.icon.size.h * inflate\n - });\n - } \n - },\n - \n - /** \n - * Method: setOpacity\n - * Change the opacity of the marker by changin the opacity of \n - * its icon\n - * \n - * Parameters:\n - * opacity - {float} Specified as fraction (0.4, etc)\n - */\n - setOpacity: function(opacity) {\n - this.icon.setOpacity(opacity);\n - },\n -\n - /**\n - * Method: setUrl\n - * Change URL of the Icon Image.\n - * \n - * url - {String} \n - */\n - setUrl: function(url) {\n - this.icon.setUrl(url);\n - }, \n -\n - /** \n - * Method: display\n - * Hide or show the icon\n - * \n - * display - {Boolean} \n - */\n - display: function(display) {\n - this.icon.display(display);\n - },\n -\n - CLASS_NAME: "OpenLayers.Marker"\n -});\n -\n -\n -/**\n - * Function: defaultIcon\n - * Creates a default <OpenLayers.Icon>.\n - * \n - * Returns:\n - * {<OpenLayers.Icon>} A default OpenLayers.Icon to use for a marker\n - */\n -OpenLayers.Marker.defaultIcon = function() {\n - return new OpenLayers.Icon(OpenLayers.Util.getImageLocation("marker.png"),\n - {w: 21, h: 25}, {x: -10.5, y: -25});\n -};\n - \n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6315</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Marker.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Marker.xml deleted file mode 100644 index e6d4339a3eab101ba082c6c97c6529bbb9666c50..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Marker.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Marker</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Marker</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Marker/Box.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Marker/Box.js.xml deleted file mode 100644 index 584861761582be631fc548562674bc59ea435e01..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Marker/Box.js.xml +++ /dev/null @@ -1,164 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.87</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Box.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Marker.js\n - */\n -\n -/**\n - * Class: OpenLayers.Marker.Box\n - *\n - * Inherits from:\n - * - <OpenLayers.Marker> \n - */\n -OpenLayers.Marker.Box = OpenLayers.Class(OpenLayers.Marker, {\n -\n - /** \n - * Property: bounds \n - * {<OpenLayers.Bounds>} \n - */\n - bounds: null,\n -\n - /** \n - * Property: div \n - * {DOMElement} \n - */\n - div: null,\n - \n - /** \n - * Constructor: OpenLayers.Marker.Box\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} \n - * borderColor - {String} \n - * borderWidth - {int} \n - */\n - initialize: function(bounds, borderColor, borderWidth) {\n - this.bounds = bounds;\n - this.div = OpenLayers.Util.createDiv();\n - this.div.style.overflow = \'hidden\';\n - this.events = new OpenLayers.Events(this, this.div);\n - this.setBorder(borderColor, borderWidth);\n - },\n -\n - /**\n - * Method: destroy \n - */ \n - destroy: function() {\n -\n - this.bounds = null;\n - this.div = null;\n -\n - OpenLayers.Marker.prototype.destroy.apply(this, arguments);\n - },\n -\n - /** \n - * Method: setBorder\n - * Allow the user to change the box\'s color and border width\n - * \n - * Parameters:\n - * color - {String} Default is "red"\n - * width - {int} Default is 2\n - */\n - setBorder: function (color, width) {\n - if (!color) {\n - color = "red";\n - }\n - if (!width) {\n - width = 2;\n - }\n - this.div.style.border = width + "px solid " + color;\n - },\n - \n - /** \n - * Method: draw\n - * \n - * Parameters:\n - * px - {<OpenLayers.Pixel>} \n - * sz - {<OpenLayers.Size>} \n - * \n - * Returns: \n - * {DOMElement} A new DOM Image with this marker\xb4s icon set at the \n - * location passed-in\n - */\n - draw: function(px, sz) {\n - OpenLayers.Util.modifyDOMElement(this.div, null, px, sz);\n - return this.div;\n - }, \n -\n - /**\n - * Method: onScreen\n - * \n - * Rreturn:\n - * {Boolean} Whether or not the marker is currently visible on screen.\n - */\n - onScreen:function() {\n - var onScreen = false;\n - if (this.map) {\n - var screenBounds = this.map.getExtent();\n - onScreen = screenBounds.containsBounds(this.bounds, true, true);\n - } \n - return onScreen;\n - },\n - \n - /**\n - * Method: display\n - * Hide or show the icon\n - * \n - * Parameters:\n - * display - {Boolean} \n - */\n - display: function(display) {\n - this.div.style.display = (display) ? "" : "none";\n - },\n -\n - CLASS_NAME: "OpenLayers.Marker.Box"\n -});\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2794</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup.js.xml deleted file mode 100644 index 937c4dc76eda2d944bd5f8396beddc13bfc2a948..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup.js.xml +++ /dev/null @@ -1,1109 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.76</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Popup.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - */\n -\n -\n -/**\n - * Class: OpenLayers.Popup\n - * A popup is a small div that can opened and closed on the map.\n - * Typically opened in response to clicking on a marker. \n - * See <OpenLayers.Marker>. Popup\'s don\'t require their own\n - * layer and are added the the map using the <OpenLayers.Map.addPopup>\n - * method.\n - *\n - * Example:\n - * (code)\n - * popup = new OpenLayers.Popup("chicken", \n - * new OpenLayers.LonLat(5,40),\n - * new OpenLayers.Size(200,200),\n - * "example popup",\n - * true);\n - * \n - * map.addPopup(popup);\n - * (end)\n - */\n -OpenLayers.Popup = OpenLayers.Class({\n -\n - /** \n - * Property: events \n - * {<OpenLayers.Events>} custom event manager \n - */\n - events: null,\n - \n - /** Property: id\n - * {String} the unique identifier assigned to this popup.\n - */\n - id: "",\n -\n - /** \n - * Property: lonlat \n - * {<OpenLayers.LonLat>} the position of this popup on the map\n - */\n - lonlat: null,\n -\n - /** \n - * Property: div \n - * {DOMElement} the div that contains this popup.\n - */\n - div: null,\n -\n - /** \n - * Property: contentSize \n - * {<OpenLayers.Size>} the width and height of the content.\n - */\n - contentSize: null, \n -\n - /** \n - * Property: size \n - * {<OpenLayers.Size>} the width and height of the popup.\n - */\n - size: null, \n -\n - /** \n - * Property: contentHTML \n - * {String} An HTML string for this popup to display.\n - */\n - contentHTML: null,\n - \n - /** \n - * Property: backgroundColor \n - * {String} the background color used by the popup.\n - */\n - backgroundColor: "",\n - \n - /** \n - * Property: opacity \n - * {float} the opacity of this popup (between 0.0 and 1.0)\n - */\n - opacity: "",\n -\n - /** \n - * Property: border \n - * {String} the border size of the popup. (eg 2px)\n - */\n - border: "",\n - \n - /** \n - * Property: contentDiv \n - * {DOMElement} a reference to the element that holds the content of\n - * the div.\n - */\n - contentDiv: null,\n - \n - /** \n - * Property: groupDiv \n - * {DOMElement} First and only child of \'div\'. The group Div contains the\n - * \'contentDiv\' and the \'closeDiv\'.\n - */\n - groupDiv: null,\n -\n - /** \n - * Property: closeDiv\n - * {DOMElement} the optional closer image\n - */\n - closeDiv: null,\n -\n - /** \n - * APIProperty: autoSize\n - * {Boolean} Resize the popup to auto-fit the contents.\n - * Default is false.\n - */\n - autoSize: false,\n -\n - /**\n - * APIProperty: minSize\n - * {<OpenLayers.Size>} Minimum size allowed for the popup\'s contents.\n - */\n - minSize: null,\n -\n - /**\n - * APIProperty: maxSize\n - * {<OpenLayers.Size>} Maximum size allowed for the popup\'s contents.\n - */\n - maxSize: null,\n -\n - /** \n - * Property: displayClass\n - * {String} The CSS class of the popup.\n - */\n - displayClass: "olPopup",\n -\n - /** \n - * Property: contentDisplayClass\n - * {String} The CSS class of the popup content div.\n - */\n - contentDisplayClass: "olPopupContent",\n -\n - /** \n - * Property: padding \n - * {int or <OpenLayers.Bounds>} An extra opportunity to specify internal \n - * padding of the content div inside the popup. This was originally\n - * confused with the css padding as specified in style.css\'s \n - * \'olPopupContent\' class. We would like to get rid of this altogether,\n - * except that it does come in handy for the framed and anchoredbubble\n - * popups, who need to maintain yet another barrier between their \n - * content and the outer border of the popup itself. \n - * \n - * Note that in order to not break API, we must continue to support \n - * this property being set as an integer. Really, though, we\'d like to \n - * have this specified as a Bounds object so that user can specify\n - * distinct left, top, right, bottom paddings. With the 3.0 release\n - * we can make this only a bounds.\n - */\n - padding: 0,\n -\n - /** \n - * Property: disableFirefoxOverflowHack\n - * {Boolean} The hack for overflow in Firefox causes all elements \n - * to be re-drawn, which causes Flash elements to be \n - * re-initialized, which is troublesome.\n - * With this property the hack can be disabled.\n - */\n - disableFirefoxOverflowHack: false,\n -\n - /**\n - * Method: fixPadding\n - * To be removed in 3.0, this function merely helps us to deal with the \n - * case where the user may have set an integer value for padding, \n - * instead of an <OpenLayers.Bounds> object.\n - */\n - fixPadding: function() {\n - if (typeof this.padding == "number") {\n - this.padding = new OpenLayers.Bounds(\n - this.padding, this.padding, this.padding, this.padding\n - );\n - }\n - },\n -\n - /**\n - * APIProperty: panMapIfOutOfView\n - * {Boolean} When drawn, pan map such that the entire popup is visible in\n - * the current viewport (if necessary).\n - * Default is false.\n - */\n - panMapIfOutOfView: false,\n - \n - /**\n - * APIProperty: keepInMap \n - * {Boolean} If panMapIfOutOfView is false, and this property is true, \n - * contrain the popup such that it always fits in the available map\n - * space. By default, this is not set on the base class. If you are\n - * creating popups that are near map edges and not allowing pannning,\n - * and especially if you have a popup which has a\n - * fixedRelativePosition, setting this to false may be a smart thing to\n - * do. Subclasses may want to override this setting.\n - * \n - * Default is false.\n - */\n - keepInMap: false,\n -\n - /**\n - * APIProperty: closeOnMove\n - * {Boolean} When map pans, close the popup.\n - * Default is false.\n - */\n - closeOnMove: false,\n - \n - /** \n - * Property: map \n - * {<OpenLayers.Map>} this gets set in Map.js when the popup is added to the map\n - */\n - map: null,\n -\n - /** \n - * Constructor: OpenLayers.Popup\n - * Create a popup.\n - * \n - * Parameters: \n - * id - {String} a unqiue identifier for this popup. If null is passed\n - * an identifier will be automatically generated. \n - * lonlat - {<OpenLayers.LonLat>} The position on the map the popup will\n - * be shown.\n - * contentSize - {<OpenLayers.Size>} The size of the content.\n - * contentHTML - {String} An HTML string to display inside the \n - * popup.\n - * closeBox - {Boolean} Whether to display a close box inside\n - * the popup.\n - * closeBoxCallback - {Function} Function to be called on closeBox click.\n - */\n - initialize:function(id, lonlat, contentSize, contentHTML, closeBox, closeBoxCallback) {\n - if (id == null) {\n - id = OpenLayers.Util.createUniqueID(this.CLASS_NAME + "_");\n - }\n -\n - this.id = id;\n - this.lonlat = lonlat;\n -\n - this.contentSize = (contentSize != null) ? contentSize \n - : new OpenLayers.Size(\n - OpenLayers.Popup.WIDTH,\n - OpenLayers.Popup.HEIGHT);\n - if (contentHTML != null) { \n - this.contentHTML = contentHTML;\n - }\n - this.backgroundColor = OpenLayers.Popup.COLOR;\n - this.opacity = OpenLayers.Popup.OPACITY;\n - this.border = OpenLayers.Popup.BORDER;\n -\n - this.div = OpenLayers.Util.createDiv(this.id, null, null, \n - null, null, null, "hidden");\n - this.div.className = this.displayClass;\n - \n - var groupDivId = this.id + "_GroupDiv";\n - this.groupDiv = OpenLayers.Util.createDiv(groupDivId, null, null, \n - null, "relative", null,\n - "hidden");\n -\n - var id = this.div.id + "_contentDiv";\n - this.contentDiv = OpenLayers.Util.createDiv(id, null, this.contentSize.clone(), \n - null, "relative");\n - this.contentDiv.className = this.contentDisplayClass;\n - this.groupDiv.appendChild(this.contentDiv);\n - this.div.appendChild(this.groupDiv);\n -\n - if (closeBox) {\n - this.addCloseBox(closeBoxCallback);\n - } \n -\n - this.registerEvents();\n - },\n -\n - /** \n - * Method: destroy\n - * nullify references to prevent circular references and memory leaks\n - */\n - destroy: function() {\n -\n - this.id = null;\n - this.lonlat = null;\n - this.size = null;\n - this.contentHTML = null;\n - \n - this.backgroundColor = null;\n - this.opacity = null;\n - this.border = null;\n - \n - if (this.closeOnMove && this.map) {\n - this.map.events.unregister("movestart", this, this.hide);\n - }\n -\n - this.events.destroy();\n - this.events = null;\n - \n - if (this.closeDiv) {\n - OpenLayers.Event.stopObservingElement(this.closeDiv); \n - this.groupDiv.removeChild(this.closeDiv);\n - }\n - this.closeDiv = null;\n - \n - this.div.removeChild(this.groupDiv);\n - this.groupDiv = null;\n -\n - if (this.map != null) {\n - this.map.removePopup(this);\n - }\n - this.map = null;\n - this.div = null;\n - \n - this.autoSize = null;\n - this.minSize = null;\n - this.maxSize = null;\n - this.padding = null;\n - this.panMapIfOutOfView = null;\n - },\n -\n - /** \n - * Method: draw\n - * Constructs the elements that make up the popup.\n - *\n - * Parameters:\n - * px - {<OpenLayers.Pixel>} the position the popup in pixels.\n - * \n - * Returns:\n - * {DOMElement} Reference to a div that contains the drawn popup\n - */\n - draw: function(px) {\n - if (px == null) {\n - if ((this.lonlat != null) && (this.map != null)) {\n - px = this.map.getLayerPxFromLonLat(this.lonlat);\n - }\n - }\n -\n - // this assumes that this.map already exists, which is okay because \n - // this.draw is only called once the popup has been added to the map.\n - if (this.closeOnMove) {\n - this.map.events.register("movestart", this, this.hide);\n - }\n - \n - //listen to movestart, moveend to disable overflow (FF bug)\n - if (!this.disableFirefoxOverflowHack && OpenLayers.BROWSER_NAME == \'firefox\') {\n - this.map.events.register("movestart", this, function() {\n - var style = document.defaultView.getComputedStyle(\n - this.contentDiv, null\n - );\n - var currentOverflow = style.getPropertyValue("overflow");\n - if (currentOverflow != "hidden") {\n - this.contentDiv._oldOverflow = currentOverflow;\n - this.contentDiv.style.overflow = "hidden";\n - }\n - });\n - this.map.events.register("moveend", this, function() {\n - var oldOverflow = this.contentDiv._oldOverflow;\n - if (oldOverflow) {\n - this.contentDiv.style.overflow = oldOverflow;\n - this.contentDiv._oldOverflow = null;\n - }\n - });\n - }\n -\n - this.moveTo(px);\n - if (!this.autoSize && !this.size) {\n - this.setSize(this.contentSize);\n - }\n - this.setBackgroundColor();\n - this.setOpacity();\n - this.setBorder();\n - this.setContentHTML();\n - \n - if (this.panMapIfOutOfView) {\n - this.panIntoView();\n - } \n -\n - return this.div;\n - },\n -\n - /** \n - * Method: updatePosition\n - * if the popup has a lonlat and its map members set, \n - * then have it move itself to its proper position\n - */\n - updatePosition: function() {\n - if ((this.lonlat) && (this.map)) {\n - var px = this.map.getLayerPxFromLonLat(this.lonlat);\n - if (px) {\n - this.moveTo(px); \n - } \n - }\n - },\n -\n - /**\n - * Method: moveTo\n - * \n - * Parameters:\n - * px - {<OpenLayers.Pixel>} the top and left position of the popup div. \n - */\n - moveTo: function(px) {\n - if ((px != null) && (this.div != null)) {\n - this.div.style.left = px.x + "px";\n - this.div.style.top = px.y + "px";\n - }\n - },\n -\n - /**\n - * Method: visible\n - *\n - * Returns: \n - * {Boolean} Boolean indicating whether or not the popup is visible\n - */\n - visible: function() {\n - return OpenLayers.Element.visible(this.div);\n - },\n -\n - /**\n - * Method: toggle\n - * Toggles visibility of the popup.\n - */\n - toggle: function() {\n - if (this.visible()) {\n - this.hide();\n - } else {\n - this.show();\n - }\n - },\n -\n - /**\n - * Method: show\n - * Makes the popup visible.\n - */\n - show: function() {\n - this.div.style.display = \'\';\n -\n - if (this.panMapIfOutOfView) {\n - this.panIntoView();\n - } \n - },\n -\n - /**\n - * Method: hide\n - * Makes the popup invisible.\n - */\n - hide: function() {\n - this.div.style.display = \'none\';\n - },\n -\n - /**\n - * Method: setSize\n - * Used to adjust the size of the popup. \n - *\n - * Parameters:\n - * contentSize - {<OpenLayers.Size>} the new size for the popup\'s \n - * contents div (in pixels).\n - */\n - setSize:function(contentSize) { \n - this.size = contentSize.clone(); \n - \n - // if our contentDiv has a css \'padding\' set on it by a stylesheet, we \n - // must add that to the desired "size". \n - var contentDivPadding = this.getContentDivPadding();\n - var wPadding = contentDivPadding.left + contentDivPadding.right;\n - var hPadding = contentDivPadding.top + contentDivPadding.bottom;\n -\n - // take into account the popup\'s \'padding\' property\n - this.fixPadding();\n - wPadding += this.padding.left + this.padding.right;\n - hPadding += this.padding.top + this.padding.bottom;\n -\n - // make extra space for the close div\n - if (this.closeDiv) {\n - var closeDivWidth = parseInt(this.closeDiv.style.width);\n - wPadding += closeDivWidth + contentDivPadding.right;\n - }\n -\n - //increase size of the main popup div to take into account the \n - // users\'s desired padding and close div. \n - this.size.w += wPadding;\n - this.size.h += hPadding;\n -\n - //now if our browser is IE, we need to actually make the contents \n - // div itself bigger to take its own padding into effect. this makes \n - // me want to shoot someone, but so it goes.\n - if (OpenLayers.BROWSER_NAME == "msie") {\n - this.contentSize.w += \n - contentDivPadding.left + contentDivPadding.right;\n - this.contentSize.h += \n - contentDivPadding.bottom + contentDivPadding.top;\n - }\n -\n - if (this.div != null) {\n - this.div.style.width = this.size.w + "px";\n - this.div.style.height = this.size.h + "px";\n - }\n - if (this.contentDiv != null){\n - this.contentDiv.style.width = contentSize.w + "px";\n - this.contentDiv.style.height = contentSize.h + "px";\n - }\n - }, \n -\n - /**\n - * APIMethod: updateSize\n - * Auto size the popup so that it precisely fits its contents (as \n - * determined by this.contentDiv.innerHTML). Popup size will, of\n - * course, be limited by the available space on the current map\n - */\n - updateSize: function() {\n - \n - // determine actual render dimensions of the contents by putting its\n - // contents into a fake contentDiv (for the CSS) and then measuring it\n - var preparedHTML = "<div class=\'" + this.contentDisplayClass+ "\'>" + \n - this.contentDiv.innerHTML + \n - "</div>";\n - \n - var containerElement = (this.map) ? this.map.div : document.body;\n - var realSize = OpenLayers.Util.getRenderedDimensions(\n - preparedHTML, null, {\n - displayClass: this.displayClass,\n - containerElement: containerElement\n - }\n - );\n -\n - // is the "real" size of the div is safe to display in our map?\n - var safeSize = this.getSafeContentSize(realSize);\n -\n - var newSize = null;\n - if (safeSize.equals(realSize)) {\n - //real size of content is small enough to fit on the map, \n - // so we use real size.\n - newSize = realSize;\n -\n - } else {\n -\n - // make a new \'size\' object with the clipped dimensions \n - // set or null if not clipped.\n - var fixedSize = {\n - w: (safeSize.w < realSize.w) ? safeSize.w : null,\n - h: (safeSize.h < realSize.h) ? safeSize.h : null\n - };\n - \n - if (fixedSize.w && fixedSize.h) {\n - //content is too big in both directions, so we will use \n - // max popup size (safeSize), knowing well that it will \n - // overflow both ways. \n - newSize = safeSize;\n - } else {\n - //content is clipped in only one direction, so we need to \n - // run getRenderedDimensions() again with a fixed dimension\n - var clippedSize = OpenLayers.Util.getRenderedDimensions(\n - preparedHTML, fixedSize, {\n - displayClass: this.contentDisplayClass,\n - containerElement: containerElement\n - }\n - );\n - \n - //if the clipped size is still the same as the safeSize, \n - // that means that our content must be fixed in the \n - // offending direction. If overflow is \'auto\', this means \n - // we are going to have a scrollbar for sure, so we must \n - // adjust for that.\n - //\n - var currentOverflow = OpenLayers.Element.getStyle(\n - this.contentDiv, "overflow"\n - );\n - if ( (currentOverflow != "hidden") && \n - (clippedSize.equals(safeSize)) ) {\n - var scrollBar = OpenLayers.Util.getScrollbarWidth();\n - if (fixedSize.w) {\n - clippedSize.h += scrollBar;\n - } else {\n - clippedSize.w += scrollBar;\n - }\n - }\n - \n - newSize = this.getSafeContentSize(clippedSize);\n - }\n - } \n - this.setSize(newSize); \n - }, \n -\n - /**\n - * Method: setBackgroundColor\n - * Sets the background color of the popup.\n - *\n - * Parameters:\n - * color - {String} the background color. eg "#FFBBBB"\n - */\n - setBackgroundColor:function(color) { \n - if (color != undefined) {\n - this.backgroundColor = color; \n - }\n - \n - if (this.div != null) {\n - this.div.style.backgroundColor = this.backgroundColor;\n - }\n - }, \n - \n - /**\n - * Method: setOpacity\n - * Sets the opacity of the popup.\n - * \n - * Parameters:\n - * opacity - {float} A value between 0.0 (transparent) and 1.0 (solid). \n - */\n - setOpacity:function(opacity) { \n - if (opacity != undefined) {\n - this.opacity = opacity; \n - }\n - \n - if (this.div != null) {\n - // for Mozilla and Safari\n - this.div.style.opacity = this.opacity;\n -\n - // for IE\n - this.div.style.filter = \'alpha(opacity=\' + this.opacity*100 + \')\';\n - }\n - }, \n - \n - /**\n - * Method: setBorder\n - * Sets the border style of the popup.\n - *\n - * Parameters:\n - * border - {String} The border style value. eg 2px \n - */\n - setBorder:function(border) { \n - if (border != undefined) {\n - this.border = border;\n - }\n - \n - if (this.div != null) {\n - this.div.style.border = this.border;\n - }\n - }, \n - \n - /**\n - * Method: setContentHTML\n - * Allows the user to set the HTML content of the popup.\n - *\n - * Parameters:\n - * contentHTML - {String} HTML for the div.\n - */\n - setContentHTML:function(contentHTML) {\n -\n - if (contentHTML != null) {\n - this.contentHTML = contentHTML;\n - }\n - \n - if ((this.contentDiv != null) && \n - (this.contentHTML != null) &&\n - (this.contentHTML != this.contentDiv.innerHTML)) {\n - \n - this.contentDiv.innerHTML = this.contentHTML;\n - \n - if (this.autoSize) {\n - \n - //if popup has images, listen for when they finish\n - // loading and resize accordingly\n - this.registerImageListeners();\n -\n - //auto size the popup to its current contents\n - this.updateSize();\n - }\n - } \n -\n - },\n - \n - /**\n - * Method: registerImageListeners\n - * Called when an image contained by the popup loaded. this function\n - * updates the popup size, then unregisters the image load listener.\n - */ \n - registerImageListeners: function() { \n -\n - // As the images load, this function will call updateSize() to \n - // resize the popup to fit the content div (which presumably is now\n - // bigger than when the image was not loaded).\n - // \n - // If the \'panMapIfOutOfView\' property is set, we will pan the newly\n - // resized popup back into view.\n - // \n - // Note that this function, when called, will have \'popup\' and \n - // \'img\' properties in the context.\n - //\n - var onImgLoad = function() {\n - if (this.popup.id === null) { // this.popup has been destroyed!\n - return;\n - }\n - this.popup.updateSize();\n - \n - if ( this.popup.visible() && this.popup.panMapIfOutOfView ) {\n - this.popup.panIntoView();\n - }\n -\n - OpenLayers.Event.stopObserving(\n - this.img, "load", this.img._onImageLoad\n - );\n - \n - };\n -\n - //cycle through the images and if their size is 0x0, that means that \n - // they haven\'t been loaded yet, so we attach the listener, which \n - // will fire when the images finish loading and will resize the \n - // popup accordingly to its new size.\n - var images = this.contentDiv.getElementsByTagName("img");\n - for (var i = 0, len = images.length; i < len; i++) {\n - var img = images[i];\n - if (img.width == 0 || img.height == 0) {\n -\n - var context = {\n - \'popup\': this,\n - \'img\': img\n - };\n -\n - //expando this function to the image itself before registering\n - // it. This way we can easily and properly unregister it.\n - img._onImgLoad = OpenLayers.Function.bind(onImgLoad, context);\n -\n - OpenLayers.Event.observe(img, \'load\', img._onImgLoad);\n - } \n - } \n - },\n -\n - /**\n - * APIMethod: getSafeContentSize\n - * \n - * Parameters:\n - * size - {<OpenLayers.Size>} Desired size to make the popup.\n - * \n - * Returns:\n - * {<OpenLayers.Size>} A size to make the popup which is neither smaller\n - * than the specified minimum size, nor bigger than the maximum \n - * size (which is calculated relative to the size of the viewport).\n - */\n - getSafeContentSize: function(size) {\n -\n - var safeContentSize = size.clone();\n -\n - // if our contentDiv has a css \'padding\' set on it by a stylesheet, we \n - // must add that to the desired "size". \n - var contentDivPadding = this.getContentDivPadding();\n - var wPadding = contentDivPadding.left + contentDivPadding.right;\n - var hPadding = contentDivPadding.top + contentDivPadding.bottom;\n -\n - // take into account the popup\'s \'padding\' property\n - this.fixPadding();\n - wPadding += this.padding.left + this.padding.right;\n - hPadding += this.padding.top + this.padding.bottom;\n -\n - if (this.closeDiv) {\n - var closeDivWidth = parseInt(this.closeDiv.style.width);\n - wPadding += closeDivWidth + contentDivPadding.right;\n - }\n -\n - // prevent the popup from being smaller than a specified minimal size\n - if (this.minSize) {\n - safeContentSize.w = Math.max(safeContentSize.w, \n - (this.minSize.w - wPadding));\n - safeContentSize.h = Math.max(safeContentSize.h, \n - (this.minSize.h - hPadding));\n - }\n -\n - // prevent the popup from being bigger than a specified maximum size\n - if (this.maxSize) {\n - safeContentSize.w = Math.min(safeContentSize.w, \n - (this.maxSize.w - wPadding));\n - safeContentSize.h = Math.min(safeContentSize.h, \n - (this.maxSize.h - hPadding));\n - }\n - \n - //make sure the desired size to set doesn\'t result in a popup that \n - // is bigger than the map\'s viewport.\n - //\n - if (this.map && this.map.size) {\n - \n - var extraX = 0, extraY = 0;\n - if (this.keepInMap && !this.panMapIfOutOfView) {\n - var px = this.map.getPixelFromLonLat(this.lonlat);\n - switch (this.relativePosition) {\n - case "tr":\n - extraX = px.x;\n - extraY = this.map.size.h - px.y;\n - break;\n - case "tl":\n - extraX = this.map.size.w - px.x;\n - extraY = this.map.size.h - px.y;\n - break;\n - case "bl":\n - extraX = this.map.size.w - px.x;\n - extraY = px.y;\n - break;\n - case "br":\n - extraX = px.x;\n - extraY = px.y;\n - break;\n - default: \n - extraX = px.x;\n - extraY = this.map.size.h - px.y;\n - break;\n - }\n - } \n - \n - var maxY = this.map.size.h - \n - this.map.paddingForPopups.top - \n - this.map.paddingForPopups.bottom - \n - hPadding - extraY;\n - \n - var maxX = this.map.size.w - \n - this.map.paddingForPopups.left - \n - this.map.paddingForPopups.right - \n - wPadding - extraX;\n - \n - safeContentSize.w = Math.min(safeContentSize.w, maxX);\n - safeContentSize.h = Math.min(safeContentSize.h, maxY);\n - }\n - \n - return safeContentSize;\n - },\n - \n - /**\n - * Method: getContentDivPadding\n - * Glorious, oh glorious hack in order to determine the css \'padding\' of \n - * the contentDiv. IE/Opera return null here unless we actually add the \n - * popup\'s main \'div\' element (which contains contentDiv) to the DOM. \n - * So we make it invisible and then add it to the document temporarily. \n - *\n - * Once we\'ve taken the padding readings we need, we then remove it \n - * from the DOM (it will actually get added to the DOM in \n - * Map.js\'s addPopup)\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>}\n - */\n - getContentDivPadding: function() {\n -\n - //use cached value if we have it\n - var contentDivPadding = this._contentDivPadding;\n - if (!contentDivPadding) {\n -\n - if (this.div.parentNode == null) {\n - //make the div invisible and add it to the page \n - this.div.style.display = "none";\n - document.body.appendChild(this.div);\n - }\n - \n - //read the padding settings from css, put them in an OL.Bounds \n - contentDivPadding = new OpenLayers.Bounds(\n - OpenLayers.Element.getStyle(this.contentDiv, "padding-left"),\n - OpenLayers.Element.getStyle(this.contentDiv, "padding-bottom"),\n - OpenLayers.Element.getStyle(this.contentDiv, "padding-right"),\n - OpenLayers.Element.getStyle(this.contentDiv, "padding-top")\n - );\n - \n - //cache the value\n - this._contentDivPadding = contentDivPadding;\n -\n - if (this.div.parentNode == document.body) {\n - //remove the div from the page and make it visible again\n - document.body.removeChild(this.div);\n - this.div.style.display = "";\n - }\n - }\n - return contentDivPadding;\n - },\n -\n - /**\n - * Method: addCloseBox\n - * \n - * Parameters:\n - * callback - {Function} The callback to be called when the close button\n - * is clicked.\n - */\n - addCloseBox: function(callback) {\n -\n - this.closeDiv = OpenLayers.Util.createDiv(\n - this.id + "_close", null, {w: 17, h: 17}\n - );\n - this.closeDiv.className = "olPopupCloseBox"; \n - \n - // use the content div\'s css padding to determine if we should\n - // padd the close div\n - var contentDivPadding = this.getContentDivPadding();\n - \n - this.closeDiv.style.right = contentDivPadding.right + "px";\n - this.closeDiv.style.top = contentDivPadding.top + "px";\n - this.groupDiv.appendChild(this.closeDiv);\n -\n - var closePopup = callback || function(e) {\n - this.hide();\n - OpenLayers.Event.stop(e);\n - };\n - OpenLayers.Event.observe(this.closeDiv, "touchend", \n - OpenLayers.Function.bindAsEventListener(closePopup, this));\n - OpenLayers.Event.observe(this.closeDiv, "click", \n - OpenLayers.Function.bindAsEventListener(closePopup, this));\n - },\n -\n - /**\n - * Method: panIntoView\n - * Pans the map such that the popup is totaly viewable (if necessary)\n - */\n - panIntoView: function() {\n - \n - var mapSize = this.map.getSize();\n - \n - //start with the top left corner of the popup, in px, \n - // relative to the viewport\n - var origTL = this.map.getViewPortPxFromLayerPx( new OpenLayers.Pixel(\n - parseInt(this.div.style.left),\n - parseInt(this.div.style.top)\n - ));\n - var newTL = origTL.clone();\n - \n - //new left (compare to margins, using this.size to calculate right)\n - if (origTL.x < this.map.paddingForPopups.left) {\n - newTL.x = this.map.paddingForPopups.left;\n - } else \n - if ( (origTL.x + this.size.w) > (mapSize.w - this.map.paddingForPopups.right)) {\n - newTL.x = mapSize.w - this.map.paddingForPopups.right - this.size.w;\n - }\n - \n - //new top (compare to margins, using this.size to calculate bottom)\n - if (origTL.y < this.map.paddingForPopups.top) {\n - newTL.y = this.map.paddingForPopups.top;\n - } else \n - if ( (origTL.y + this.size.h) > (mapSize.h - this.map.paddingForPopups.bottom)) {\n - newTL.y = mapSize.h - this.map.paddingForPopups.bottom - this.size.h;\n - }\n - \n - var dx = origTL.x - newTL.x;\n - var dy = origTL.y - newTL.y;\n - \n - this.map.pan(dx, dy);\n - },\n -\n - /** \n - * Method: registerEvents\n - * Registers events on the popup.\n - *\n - * Do this in a separate function so that subclasses can \n - * choose to override it if they wish to deal differently\n - * with mouse events\n - * \n - * Note in the following handler functions that some special\n - * care is needed to deal correctly with mousing and popups. \n - * \n - * Because the user might select the zoom-rectangle option and\n - * then drag it over a popup, we need a safe way to allow the\n - * mousemove and mouseup events to pass through the popup when\n - * they are initiated from outside. The same procedure is needed for\n - * touchmove and touchend events.\n - * \n - * Otherwise, we want to essentially kill the event propagation\n - * for all other events, though we have to do so carefully, \n - * without disabling basic html functionality, like clicking on \n - * hyperlinks or drag-selecting text.\n - */\n - registerEvents:function() {\n - this.events = new OpenLayers.Events(this, this.div, null, true);\n -\n - function onTouchstart(evt) {\n - OpenLayers.Event.stop(evt, true);\n - }\n - this.events.on({\n - "mousedown": this.onmousedown,\n - "mousemove": this.onmousemove,\n - "mouseup": this.onmouseup,\n - "click": this.onclick,\n - "mouseout": this.onmouseout,\n - "dblclick": this.ondblclick,\n - "touchstart": onTouchstart,\n - scope: this\n - });\n - \n - },\n -\n - /** \n - * Method: onmousedown \n - * When mouse goes down within the popup, make a note of\n - * it locally, and then do not propagate the mousedown \n - * (but do so safely so that user can select text inside)\n - * \n - * Parameters:\n - * evt - {Event} \n - */\n - onmousedown: function (evt) {\n - this.mousedown = true;\n - OpenLayers.Event.stop(evt, true);\n - },\n -\n - /** \n - * Method: onmousemove\n - * If the drag was started within the popup, then \n - * do not propagate the mousemove (but do so safely\n - * so that user can select text inside)\n - * \n - * Parameters:\n - * evt - {Event} \n - */\n - onmousemove: function (evt) {\n - if (this.mousedown) {\n - OpenLayers.Event.stop(evt, true);\n - }\n - },\n -\n - /** \n - * Method: onmouseup\n - * When mouse comes up within the popup, after going down \n - * in it, reset the flag, and then (once again) do not \n - * propagate the event, but do so safely so that user can \n - * select text inside\n - * \n - * Parameters:\n - * evt - {Event} \n - */\n - onmouseup: function (evt) {\n - if (this.mousedown) {\n - this.mousedown = false;\n - OpenLayers.Event.stop(evt, true);\n - }\n - },\n -\n - /**\n - * Method: onclick\n - * Ignore clicks, but allowing default browser handling\n - * \n - * Parameters:\n - * evt - {Event} \n - */\n - onclick: function (evt) {\n - OpenLayers.Event.stop(evt, true);\n - },\n -\n - /** \n - * Method: onmouseout\n - * When mouse goes out of the popup set the flag to false so that\n - * if they let go and then drag back in, we won\'t be confused.\n - * \n - * Parameters:\n - * evt - {Event} \n - */\n - onmouseout: function (evt) {\n - this.mousedown = false;\n - },\n - \n - /** \n - * Method: ondblclick\n - * Ignore double-clicks, but allowing default browser handling\n - * \n - * Parameters:\n - * evt - {Event} \n - */\n - ondblclick: function (evt) {\n - OpenLayers.Event.stop(evt, true);\n - },\n -\n - CLASS_NAME: "OpenLayers.Popup"\n -});\n -\n -OpenLayers.Popup.WIDTH = 200;\n -OpenLayers.Popup.HEIGHT = 200;\n -OpenLayers.Popup.COLOR = "white";\n -OpenLayers.Popup.OPACITY = 1;\n -OpenLayers.Popup.BORDER = "0px";\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>35284</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup.xml deleted file mode 100644 index 7a0cc45bec6c9b09c08d08387f95f669058e4abb..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Popup</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Popup</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup/Anchored.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup/Anchored.js.xml deleted file mode 100644 index dca36bfc729cad099000db155aacf6606fd56d90..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup/Anchored.js.xml +++ /dev/null @@ -1,242 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.83</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Anchored.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Popup.js\n - */\n -\n -/**\n - * Class: OpenLayers.Popup.Anchored\n - * \n - * Inherits from:\n - * - <OpenLayers.Popup>\n - */\n -OpenLayers.Popup.Anchored = \n - OpenLayers.Class(OpenLayers.Popup, {\n -\n - /** \n - * Property: relativePosition\n - * {String} Relative position of the popup ("br", "tr", "tl" or "bl").\n - */\n - relativePosition: null,\n - \n - /**\n - * APIProperty: keepInMap \n - * {Boolean} If panMapIfOutOfView is false, and this property is true, \n - * contrain the popup such that it always fits in the available map\n - * space. By default, this is set. If you are creating popups that are\n - * near map edges and not allowing pannning, and especially if you have\n - * a popup which has a fixedRelativePosition, setting this to false may\n - * be a smart thing to do.\n - * \n - * For anchored popups, default is true, since subclasses will\n - * usually want this functionality.\n - */\n - keepInMap: true,\n -\n - /**\n - * Property: anchor\n - * {Object} Object to which we\'ll anchor the popup. Must expose a \n - * \'size\' (<OpenLayers.Size>) and \'offset\' (<OpenLayers.Pixel>).\n - */\n - anchor: null,\n -\n - /** \n - * Constructor: OpenLayers.Popup.Anchored\n - * \n - * Parameters:\n - * id - {String}\n - * lonlat - {<OpenLayers.LonLat>}\n - * contentSize - {<OpenLayers.Size>}\n - * contentHTML - {String}\n - * anchor - {Object} Object which must expose a \'size\' <OpenLayers.Size> \n - * and \'offset\' <OpenLayers.Pixel> (generally an <OpenLayers.Icon>).\n - * closeBox - {Boolean}\n - * closeBoxCallback - {Function} Function to be called on closeBox click.\n - */\n - initialize:function(id, lonlat, contentSize, contentHTML, anchor, closeBox,\n - closeBoxCallback) {\n - var newArguments = [\n - id, lonlat, contentSize, contentHTML, closeBox, closeBoxCallback\n - ];\n - OpenLayers.Popup.prototype.initialize.apply(this, newArguments);\n -\n - this.anchor = (anchor != null) ? anchor \n - : { size: new OpenLayers.Size(0,0),\n - offset: new OpenLayers.Pixel(0,0)};\n - },\n -\n - /**\n - * APIMethod: destroy\n - */\n - destroy: function() {\n - this.anchor = null;\n - this.relativePosition = null;\n - \n - OpenLayers.Popup.prototype.destroy.apply(this, arguments); \n - },\n -\n - /**\n - * APIMethod: show\n - * Overridden from Popup since user might hide popup and then show() it \n - * in a new location (meaning we might want to update the relative\n - * position on the show)\n - */\n - show: function() {\n - this.updatePosition();\n - OpenLayers.Popup.prototype.show.apply(this, arguments);\n - },\n -\n - /**\n - * Method: moveTo\n - * Since the popup is moving to a new px, it might need also to be moved\n - * relative to where the marker is. We first calculate the new \n - * relativePosition, and then we calculate the new px where we will \n - * put the popup, based on the new relative position. \n - * \n - * If the relativePosition has changed, we must also call \n - * updateRelativePosition() to make any visual changes to the popup \n - * which are associated with putting it in a new relativePosition.\n - * \n - * Parameters:\n - * px - {<OpenLayers.Pixel>}\n - */\n - moveTo: function(px) {\n - var oldRelativePosition = this.relativePosition;\n - this.relativePosition = this.calculateRelativePosition(px);\n - \n - var newPx = this.calculateNewPx(px);\n - \n - var newArguments = new Array(newPx); \n - OpenLayers.Popup.prototype.moveTo.apply(this, newArguments);\n - \n - //if this move has caused the popup to change its relative position, \n - // we need to make the appropriate cosmetic changes.\n - if (this.relativePosition != oldRelativePosition) {\n - this.updateRelativePosition();\n - }\n - },\n -\n - /**\n - * APIMethod: setSize\n - * \n - * Parameters:\n - * contentSize - {<OpenLayers.Size>} the new size for the popup\'s \n - * contents div (in pixels).\n - */\n - setSize:function(contentSize) { \n - OpenLayers.Popup.prototype.setSize.apply(this, arguments);\n -\n - if ((this.lonlat) && (this.map)) {\n - var px = this.map.getLayerPxFromLonLat(this.lonlat);\n - this.moveTo(px);\n - }\n - }, \n - \n - /** \n - * Method: calculateRelativePosition\n - * \n - * Parameters:\n - * px - {<OpenLayers.Pixel>}\n - * \n - * Returns:\n - * {String} The relative position ("br" "tr" "tl" "bl") at which the popup\n - * should be placed.\n - */\n - calculateRelativePosition:function(px) {\n - var lonlat = this.map.getLonLatFromLayerPx(px); \n - \n - var extent = this.map.getExtent();\n - var quadrant = extent.determineQuadrant(lonlat);\n - \n - return OpenLayers.Bounds.oppositeQuadrant(quadrant);\n - }, \n -\n - /**\n - * Method: updateRelativePosition\n - * The popup has been moved to a new relative location, so we may want to \n - * make some cosmetic adjustments to it. \n - * \n - * Note that in the classic Anchored popup, there is nothing to do \n - * here, since the popup looks exactly the same in all four positions.\n - * Subclasses such as Framed, however, will want to do something\n - * special here.\n - */\n - updateRelativePosition: function() {\n - //to be overridden by subclasses\n - },\n -\n - /** \n - * Method: calculateNewPx\n - * \n - * Parameters:\n - * px - {<OpenLayers.Pixel>}\n - * \n - * Returns:\n - * {<OpenLayers.Pixel>} The the new px position of the popup on the screen\n - * relative to the passed-in px.\n - */\n - calculateNewPx:function(px) {\n - var newPx = px.offset(this.anchor.offset);\n - \n - //use contentSize if size is not already set\n - var size = this.size || this.contentSize;\n -\n - var top = (this.relativePosition.charAt(0) == \'t\');\n - newPx.y += (top) ? -size.h : this.anchor.size.h;\n - \n - var left = (this.relativePosition.charAt(1) == \'l\');\n - newPx.x += (left) ? -size.w : this.anchor.size.w;\n -\n - return newPx; \n - },\n -\n - CLASS_NAME: "OpenLayers.Popup.Anchored"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6530</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup/AnchoredBubble.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup/AnchoredBubble.js.xml deleted file mode 100644 index 00073e0dea79da1ae976b8086f7ffb0de06e54b5..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup/AnchoredBubble.js.xml +++ /dev/null @@ -1,240 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.83</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>AnchoredBubble.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Popup/Anchored.js\n - * @requires OpenLayers/Console.js\n - * @requires Rico/Corner.js\n - */\n -\n -/**\n - * Class: OpenLayers.Popup.AnchoredBubble\n - * This class is *deprecated*. Use {<OpenLayers.Popup.Anchored>} and\n - * round corners using CSS3\'s border-radius property.\n - * \n - * Inherits from: \n - * - <OpenLayers.Popup.Anchored>\n - */\n -OpenLayers.Popup.AnchoredBubble = \n - OpenLayers.Class(OpenLayers.Popup.Anchored, {\n -\n - /**\n - * Property: rounded\n - * {Boolean} Has the popup been rounded yet?\n - */\n - rounded: false, \n - \n - /** \n - * Constructor: OpenLayers.Popup.AnchoredBubble\n - * \n - * Parameters:\n - * id - {String}\n - * lonlat - {<OpenLayers.LonLat>}\n - * contentSize - {<OpenLayers.Size>}\n - * contentHTML - {String}\n - * anchor - {Object} Object to which we\'ll anchor the popup. Must expose \n - * a \'size\' (<OpenLayers.Size>) and \'offset\' (<OpenLayers.Pixel>) \n - * (Note that this is generally an <OpenLayers.Icon>).\n - * closeBox - {Boolean}\n - * closeBoxCallback - {Function} Function to be called on closeBox click.\n - */\n - initialize:function(id, lonlat, contentSize, contentHTML, anchor, closeBox,\n - closeBoxCallback) {\n -\n - OpenLayers.Console.warn(\'AnchoredBubble is deprecated\');\n - \n - this.padding = new OpenLayers.Bounds(\n - 0, OpenLayers.Popup.AnchoredBubble.CORNER_SIZE,\n - 0, OpenLayers.Popup.AnchoredBubble.CORNER_SIZE\n - );\n - OpenLayers.Popup.Anchored.prototype.initialize.apply(this, arguments);\n - },\n -\n - /** \n - * Method: draw\n - * \n - * Parameters:\n - * px - {<OpenLayers.Pixel>}\n - * \n - * Returns:\n - * {DOMElement} Reference to a div that contains the drawn popup.\n - */\n - draw: function(px) {\n - \n - OpenLayers.Popup.Anchored.prototype.draw.apply(this, arguments);\n -\n - this.setContentHTML();\n - \n - //set the popup color and opacity \n - this.setBackgroundColor(); \n - this.setOpacity();\n -\n - return this.div;\n - },\n -\n - /**\n - * Method: updateRelativePosition\n - * The popup has been moved to a new relative location, in which case\n - * we will want to re-do the rico corners.\n - */\n - updateRelativePosition: function() {\n - this.setRicoCorners();\n - },\n -\n - /**\n - * APIMethod: setSize\n - * \n - * Parameters:\n - * contentSize - {<OpenLayers.Size>} the new size for the popup\'s \n - * contents div (in pixels).\n - */\n - setSize:function(contentSize) { \n - OpenLayers.Popup.Anchored.prototype.setSize.apply(this, arguments);\n -\n - this.setRicoCorners();\n - }, \n -\n - /**\n - * APIMethod: setBackgroundColor\n - * \n - * Parameters:\n - * color - {String}\n - */\n - setBackgroundColor:function(color) { \n - if (color != undefined) {\n - this.backgroundColor = color; \n - }\n - \n - if (this.div != null) {\n - if (this.contentDiv != null) {\n - this.div.style.background = "transparent";\n - OpenLayers.Rico.Corner.changeColor(this.groupDiv, \n - this.backgroundColor);\n - }\n - }\n - }, \n - \n - /**\n - * APIMethod: setOpacity\n - * \n - * Parameters: \n - * opacity - {float}\n - */\n - setOpacity:function(opacity) { \n - OpenLayers.Popup.Anchored.prototype.setOpacity.call(this, opacity);\n - \n - if (this.div != null) {\n - if (this.groupDiv != null) {\n - OpenLayers.Rico.Corner.changeOpacity(this.groupDiv, \n - this.opacity);\n - }\n - }\n - }, \n - \n - /** \n - * Method: setBorder\n - * Always sets border to 0. Bubble Popups can not have a border.\n - * \n - * Parameters:\n - * border - {Integer}\n - */\n - setBorder:function(border) { \n - this.border = 0;\n - }, \n - \n - /** \n - * Method: setRicoCorners\n - * Update RICO corners according to the popup\'s current relative postion.\n - */\n - setRicoCorners:function() {\n - \n - var corners = this.getCornersToRound(this.relativePosition);\n - var options = {corners: corners,\n - color: this.backgroundColor,\n - bgColor: "transparent",\n - blend: false};\n -\n - if (!this.rounded) {\n - OpenLayers.Rico.Corner.round(this.div, options);\n - this.rounded = true;\n - } else {\n - OpenLayers.Rico.Corner.reRound(this.groupDiv, options);\n - //set the popup color and opacity\n - this.setBackgroundColor(); \n - this.setOpacity();\n - }\n - },\n -\n - /** \n - * Method: getCornersToRound\n - * \n - * Returns:\n - * {String} The proper corners string ("tr tl bl br") for rico to round.\n - */\n - getCornersToRound:function() {\n -\n - var corners = [\'tl\', \'tr\', \'bl\', \'br\'];\n -\n - //we want to round all the corners _except_ the opposite one. \n - var corner = OpenLayers.Bounds.oppositeQuadrant(this.relativePosition);\n - OpenLayers.Util.removeItem(corners, corner);\n -\n - return corners.join(" ");\n - },\n -\n - CLASS_NAME: "OpenLayers.Popup.AnchoredBubble"\n -});\n -\n -/**\n - * Constant: CORNER_SIZE\n - * {Integer} 5. Border space for the RICO corners.\n - */\n -OpenLayers.Popup.AnchoredBubble.CORNER_SIZE = 5;\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>5576</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup/Framed.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup/Framed.js.xml deleted file mode 100644 index 81bb19a00e5d8c5895cb3dbfbb73d2b5b1983124..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup/Framed.js.xml +++ /dev/null @@ -1,387 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.83</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Framed.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Popup/Anchored.js\n - */\n -\n -/**\n - * Class: OpenLayers.Popup.Framed\n - * \n - * Inherits from:\n - * - <OpenLayers.Popup.Anchored>\n - */\n -OpenLayers.Popup.Framed =\n - OpenLayers.Class(OpenLayers.Popup.Anchored, {\n -\n - /**\n - * Property: imageSrc\n - * {String} location of the image to be used as the popup frame\n - */\n - imageSrc: null,\n -\n - /**\n - * Property: imageSize\n - * {<OpenLayers.Size>} Size (measured in pixels) of the image located\n - * by the \'imageSrc\' property.\n - */\n - imageSize: null,\n -\n - /**\n - * APIProperty: isAlphaImage\n - * {Boolean} The image has some alpha and thus needs to use the alpha \n - * image hack. Note that setting this to true will have no noticeable\n - * effect in FF or IE7 browsers, but will all but crush the ie6 \n - * browser. \n - * Default is false.\n - */\n - isAlphaImage: false,\n -\n - /**\n - * Property: positionBlocks\n - * {Object} Hash of different position blocks (Object/Hashs). Each block \n - * will be keyed by a two-character \'relativePosition\' \n - * code string (ie "tl", "tr", "bl", "br"). Block properties are \n - * \'offset\', \'padding\' (self-explanatory), and finally the \'blocks\'\n - * parameter, which is an array of the block objects. \n - * \n - * Each block object must have \'size\', \'anchor\', and \'position\' \n - * properties.\n - * \n - * Note that positionBlocks should never be modified at runtime.\n - */\n - positionBlocks: null,\n -\n - /**\n - * Property: blocks\n - * {Array[Object]} Array of objects, each of which is one "block" of the \n - * popup. Each block has a \'div\' and an \'image\' property, both of \n - * which are DOMElements, and the latter of which is appended to the \n - * former. These are reused as the popup goes changing positions for\n - * great economy and elegance.\n - */\n - blocks: null,\n -\n - /** \n - * APIProperty: fixedRelativePosition\n - * {Boolean} We want the framed popup to work dynamically placed relative\n - * to its anchor but also in just one fixed position. A well designed\n - * framed popup will have the pixels and logic to display itself in \n - * any of the four relative positions, but (understandably), this will\n - * not be the case for all of them. By setting this property to \'true\', \n - * framed popup will not recalculate for the best placement each time\n - * it\'s open, but will always open the same way. \n - * Note that if this is set to true, it is generally advisable to also\n - * set the \'panIntoView\' property to true so that the popup can be \n - * scrolled into view (since it will often be offscreen on open)\n - * Default is false.\n - */\n - fixedRelativePosition: false,\n -\n - /** \n - * Constructor: OpenLayers.Popup.Framed\n - * \n - * Parameters:\n - * id - {String}\n - * lonlat - {<OpenLayers.LonLat>}\n - * contentSize - {<OpenLayers.Size>}\n - * contentHTML - {String}\n - * anchor - {Object} Object to which we\'ll anchor the popup. Must expose \n - * a \'size\' (<OpenLayers.Size>) and \'offset\' (<OpenLayers.Pixel>) \n - * (Note that this is generally an <OpenLayers.Icon>).\n - * closeBox - {Boolean}\n - * closeBoxCallback - {Function} Function to be called on closeBox click.\n - */\n - initialize:function(id, lonlat, contentSize, contentHTML, anchor, closeBox, \n - closeBoxCallback) {\n -\n - OpenLayers.Popup.Anchored.prototype.initialize.apply(this, arguments);\n -\n - if (this.fixedRelativePosition) {\n - //based on our decided relativePostion, set the current padding\n - // this keeps us from getting into trouble \n - this.updateRelativePosition();\n - \n - //make calculateRelativePosition always return the specified\n - // fixed position.\n - this.calculateRelativePosition = function(px) {\n - return this.relativePosition;\n - };\n - }\n -\n - this.contentDiv.style.position = "absolute";\n - this.contentDiv.style.zIndex = 1;\n -\n - if (closeBox) {\n - this.closeDiv.style.zIndex = 1;\n - }\n -\n - this.groupDiv.style.position = "absolute";\n - this.groupDiv.style.top = "0px";\n - this.groupDiv.style.left = "0px";\n - this.groupDiv.style.height = "100%";\n - this.groupDiv.style.width = "100%";\n - },\n -\n - /** \n - * APIMethod: destroy\n - */\n - destroy: function() {\n - this.imageSrc = null;\n - this.imageSize = null;\n - this.isAlphaImage = null;\n -\n - this.fixedRelativePosition = false;\n - this.positionBlocks = null;\n -\n - //remove our blocks\n - for(var i = 0; i < this.blocks.length; i++) {\n - var block = this.blocks[i];\n -\n - if (block.image) {\n - block.div.removeChild(block.image);\n - }\n - block.image = null;\n -\n - if (block.div) {\n - this.groupDiv.removeChild(block.div);\n - }\n - block.div = null;\n - }\n - this.blocks = null;\n -\n - OpenLayers.Popup.Anchored.prototype.destroy.apply(this, arguments);\n - },\n -\n - /**\n - * APIMethod: setBackgroundColor\n - */\n - setBackgroundColor:function(color) {\n - //does nothing since the framed popup\'s entire scheme is based on a \n - // an image -- changing the background color makes no sense. \n - },\n -\n - /**\n - * APIMethod: setBorder\n - */\n - setBorder:function() {\n - //does nothing since the framed popup\'s entire scheme is based on a \n - // an image -- changing the popup\'s border makes no sense. \n - },\n -\n - /**\n - * Method: setOpacity\n - * Sets the opacity of the popup.\n - * \n - * Parameters:\n - * opacity - {float} A value between 0.0 (transparent) and 1.0 (solid). \n - */\n - setOpacity:function(opacity) {\n - //does nothing since we suppose that we\'ll never apply an opacity\n - // to a framed popup\n - },\n -\n - /**\n - * APIMethod: setSize\n - * Overridden here, because we need to update the blocks whenever the size\n - * of the popup has changed.\n - * \n - * Parameters:\n - * contentSize - {<OpenLayers.Size>} the new size for the popup\'s \n - * contents div (in pixels).\n - */\n - setSize:function(contentSize) { \n - OpenLayers.Popup.Anchored.prototype.setSize.apply(this, arguments);\n -\n - this.updateBlocks();\n - },\n -\n - /**\n - * Method: updateRelativePosition\n - * When the relative position changes, we need to set the new padding \n - * BBOX on the popup, reposition the close div, and update the blocks.\n - */\n - updateRelativePosition: function() {\n -\n - //update the padding\n - this.padding = this.positionBlocks[this.relativePosition].padding;\n -\n - //update the position of our close box to new padding\n - if (this.closeDiv) {\n - // use the content div\'s css padding to determine if we should\n - // padd the close div\n - var contentDivPadding = this.getContentDivPadding();\n -\n - this.closeDiv.style.right = contentDivPadding.right + \n - this.padding.right + "px";\n - this.closeDiv.style.top = contentDivPadding.top + \n - this.padding.top + "px";\n - }\n -\n - this.updateBlocks();\n - },\n -\n - /** \n - * Method: calculateNewPx\n - * Besides the standard offset as determined by the Anchored class, our \n - * Framed popups have a special \'offset\' property for each of their \n - * positions, which is used to offset the popup relative to its anchor.\n - * \n - * Parameters:\n - * px - {<OpenLayers.Pixel>}\n - * \n - * Returns:\n - * {<OpenLayers.Pixel>} The the new px position of the popup on the screen\n - * relative to the passed-in px.\n - */\n - calculateNewPx:function(px) {\n - var newPx = OpenLayers.Popup.Anchored.prototype.calculateNewPx.apply(\n - this, arguments\n - );\n -\n - newPx = newPx.offset(this.positionBlocks[this.relativePosition].offset);\n -\n - return newPx;\n - },\n -\n - /**\n - * Method: createBlocks\n - */\n - createBlocks: function() {\n - this.blocks = [];\n -\n - //since all positions contain the same number of blocks, we can \n - // just pick the first position and use its blocks array to create\n - // our blocks array\n - var firstPosition = null;\n - for(var key in this.positionBlocks) {\n - firstPosition = key;\n - break;\n - }\n - \n - var position = this.positionBlocks[firstPosition];\n - for (var i = 0; i < position.blocks.length; i++) {\n -\n - var block = {};\n - this.blocks.push(block);\n -\n - var divId = this.id + \'_FrameDecorationDiv_\' + i;\n - block.div = OpenLayers.Util.createDiv(divId, \n - null, null, null, "absolute", null, "hidden", null\n - );\n -\n - var imgId = this.id + \'_FrameDecorationImg_\' + i;\n - var imageCreator = \n - (this.isAlphaImage) ? OpenLayers.Util.createAlphaImageDiv\n - : OpenLayers.Util.createImage;\n -\n - block.image = imageCreator(imgId, \n - null, this.imageSize, this.imageSrc, \n - "absolute", null, null, null\n - );\n -\n - block.div.appendChild(block.image);\n - this.groupDiv.appendChild(block.div);\n - }\n - },\n -\n - /**\n - * Method: updateBlocks\n - * Internal method, called on initialize and when the popup\'s relative\n - * position has changed. This function takes care of re-positioning\n - * the popup\'s blocks in their appropropriate places.\n - */\n - updateBlocks: function() {\n - if (!this.blocks) {\n - this.createBlocks();\n - }\n - \n - if (this.size && this.relativePosition) {\n - var position = this.positionBlocks[this.relativePosition];\n - for (var i = 0; i < position.blocks.length; i++) {\n - \n - var positionBlock = position.blocks[i];\n - var block = this.blocks[i];\n - \n - // adjust sizes\n - var l = positionBlock.anchor.left;\n - var b = positionBlock.anchor.bottom;\n - var r = positionBlock.anchor.right;\n - var t = positionBlock.anchor.top;\n - \n - //note that we use the isNaN() test here because if the \n - // size object is initialized with a "auto" parameter, the \n - // size constructor calls parseFloat() on the string, \n - // which will turn it into NaN\n - //\n - var w = (isNaN(positionBlock.size.w)) ? this.size.w - (r + l) \n - : positionBlock.size.w;\n - \n - var h = (isNaN(positionBlock.size.h)) ? this.size.h - (b + t) \n - : positionBlock.size.h;\n - \n - block.div.style.width = (w < 0 ? 0 : w) + \'px\';\n - block.div.style.height = (h < 0 ? 0 : h) + \'px\';\n - \n - block.div.style.left = (l != null) ? l + \'px\' : \'\';\n - block.div.style.bottom = (b != null) ? b + \'px\' : \'\';\n - block.div.style.right = (r != null) ? r + \'px\' : \'\'; \n - block.div.style.top = (t != null) ? t + \'px\' : \'\';\n - \n - block.image.style.left = positionBlock.position.x + \'px\';\n - block.image.style.top = positionBlock.position.y + \'px\';\n - }\n - \n - this.contentDiv.style.left = this.padding.left + "px";\n - this.contentDiv.style.top = this.padding.top + "px";\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Popup.Framed"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>11967</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup/FramedCloud.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup/FramedCloud.js.xml deleted file mode 100644 index 6a83affab62e8f31f0610543374360af83ef910e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Popup/FramedCloud.js.xml +++ /dev/null @@ -1,271 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.83</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>FramedCloud.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Popup/Framed.js\n - * @requires OpenLayers/Util.js\n - * @requires OpenLayers/BaseTypes/Bounds.js\n - * @requires OpenLayers/BaseTypes/Pixel.js\n - * @requires OpenLayers/BaseTypes/Size.js\n - */\n -\n -/**\n - * Class: OpenLayers.Popup.FramedCloud\n - * \n - * Inherits from: \n - * - <OpenLayers.Popup.Framed>\n - */\n -OpenLayers.Popup.FramedCloud = \n - OpenLayers.Class(OpenLayers.Popup.Framed, {\n -\n - /** \n - * Property: contentDisplayClass\n - * {String} The CSS class of the popup content div.\n - */\n - contentDisplayClass: "olFramedCloudPopupContent",\n -\n - /**\n - * APIProperty: autoSize\n - * {Boolean} Framed Cloud is autosizing by default.\n - */\n - autoSize: true,\n -\n - /**\n - * APIProperty: panMapIfOutOfView\n - * {Boolean} Framed Cloud does pan into view by default.\n - */\n - panMapIfOutOfView: true,\n -\n - /**\n - * APIProperty: imageSize\n - * {<OpenLayers.Size>}\n - */\n - imageSize: new OpenLayers.Size(1276, 736),\n -\n - /**\n - * APIProperty: isAlphaImage\n - * {Boolean} The FramedCloud does not use an alpha image (in honor of the \n - * good ie6 folk out there)\n - */\n - isAlphaImage: false,\n -\n - /** \n - * APIProperty: fixedRelativePosition\n - * {Boolean} The Framed Cloud popup works in just one fixed position.\n - */\n - fixedRelativePosition: false,\n -\n - /**\n - * Property: positionBlocks\n - * {Object} Hash of differen position blocks, keyed by relativePosition\n - * two-character code string (ie "tl", "tr", "bl", "br")\n - */\n - positionBlocks: {\n - "tl": {\n - \'offset\': new OpenLayers.Pixel(44, 0),\n - \'padding\': new OpenLayers.Bounds(8, 40, 8, 9),\n - \'blocks\': [\n - { // top-left\n - size: new OpenLayers.Size(\'auto\', \'auto\'),\n - anchor: new OpenLayers.Bounds(0, 51, 22, 0),\n - position: new OpenLayers.Pixel(0, 0)\n - },\n - { //top-right\n - size: new OpenLayers.Size(22, \'auto\'),\n - anchor: new OpenLayers.Bounds(null, 50, 0, 0),\n - position: new OpenLayers.Pixel(-1238, 0)\n - },\n - { //bottom-left\n - size: new OpenLayers.Size(\'auto\', 19),\n - anchor: new OpenLayers.Bounds(0, 32, 22, null),\n - position: new OpenLayers.Pixel(0, -631)\n - },\n - { //bottom-right\n - size: new OpenLayers.Size(22, 18),\n - anchor: new OpenLayers.Bounds(null, 32, 0, null),\n - position: new OpenLayers.Pixel(-1238, -632)\n - },\n - { // stem\n - size: new OpenLayers.Size(81, 35),\n - anchor: new OpenLayers.Bounds(null, 0, 0, null),\n - position: new OpenLayers.Pixel(0, -688)\n - }\n - ]\n - },\n - "tr": {\n - \'offset\': new OpenLayers.Pixel(-45, 0),\n - \'padding\': new OpenLayers.Bounds(8, 40, 8, 9),\n - \'blocks\': [\n - { // top-left\n - size: new OpenLayers.Size(\'auto\', \'auto\'),\n - anchor: new OpenLayers.Bounds(0, 51, 22, 0),\n - position: new OpenLayers.Pixel(0, 0)\n - },\n - { //top-right\n - size: new OpenLayers.Size(22, \'auto\'),\n - anchor: new OpenLayers.Bounds(null, 50, 0, 0),\n - position: new OpenLayers.Pixel(-1238, 0)\n - },\n - { //bottom-left\n - size: new OpenLayers.Size(\'auto\', 19),\n - anchor: new OpenLayers.Bounds(0, 32, 22, null),\n - position: new OpenLayers.Pixel(0, -631)\n - },\n - { //bottom-right\n - size: new OpenLayers.Size(22, 19),\n - anchor: new OpenLayers.Bounds(null, 32, 0, null),\n - position: new OpenLayers.Pixel(-1238, -631)\n - },\n - { // stem\n - size: new OpenLayers.Size(81, 35),\n - anchor: new OpenLayers.Bounds(0, 0, null, null),\n - position: new OpenLayers.Pixel(-215, -687)\n - }\n - ]\n - },\n - "bl": {\n - \'offset\': new OpenLayers.Pixel(45, 0),\n - \'padding\': new OpenLayers.Bounds(8, 9, 8, 40),\n - \'blocks\': [\n - { // top-left\n - size: new OpenLayers.Size(\'auto\', \'auto\'),\n - anchor: new OpenLayers.Bounds(0, 21, 22, 32),\n - position: new OpenLayers.Pixel(0, 0)\n - },\n - { //top-right\n - size: new OpenLayers.Size(22, \'auto\'),\n - anchor: new OpenLayers.Bounds(null, 21, 0, 32),\n - position: new OpenLayers.Pixel(-1238, 0)\n - },\n - { //bottom-left\n - size: new OpenLayers.Size(\'auto\', 21),\n - anchor: new OpenLayers.Bounds(0, 0, 22, null),\n - position: new OpenLayers.Pixel(0, -629)\n - },\n - { //bottom-right\n - size: new OpenLayers.Size(22, 21),\n - anchor: new OpenLayers.Bounds(null, 0, 0, null),\n - position: new OpenLayers.Pixel(-1238, -629)\n - },\n - { // stem\n - size: new OpenLayers.Size(81, 33),\n - anchor: new OpenLayers.Bounds(null, null, 0, 0),\n - position: new OpenLayers.Pixel(-101, -674)\n - }\n - ]\n - },\n - "br": {\n - \'offset\': new OpenLayers.Pixel(-44, 0),\n - \'padding\': new OpenLayers.Bounds(8, 9, 8, 40),\n - \'blocks\': [\n - { // top-left\n - size: new OpenLayers.Size(\'auto\', \'auto\'),\n - anchor: new OpenLayers.Bounds(0, 21, 22, 32),\n - position: new OpenLayers.Pixel(0, 0)\n - },\n - { //top-right\n - size: new OpenLayers.Size(22, \'auto\'),\n - anchor: new OpenLayers.Bounds(null, 21, 0, 32),\n - position: new OpenLayers.Pixel(-1238, 0)\n - },\n - { //bottom-left\n - size: new OpenLayers.Size(\'auto\', 21),\n - anchor: new OpenLayers.Bounds(0, 0, 22, null),\n - position: new OpenLayers.Pixel(0, -629)\n - },\n - { //bottom-right\n - size: new OpenLayers.Size(22, 21),\n - anchor: new OpenLayers.Bounds(null, 0, 0, null),\n - position: new OpenLayers.Pixel(-1238, -629)\n - },\n - { // stem\n - size: new OpenLayers.Size(81, 33),\n - anchor: new OpenLayers.Bounds(0, null, null, 0),\n - position: new OpenLayers.Pixel(-311, -674)\n - }\n - ]\n - }\n - },\n -\n - /**\n - * APIProperty: minSize\n - * {<OpenLayers.Size>}\n - */\n - minSize: new OpenLayers.Size(105, 10),\n -\n - /**\n - * APIProperty: maxSize\n - * {<OpenLayers.Size>}\n - */\n - maxSize: new OpenLayers.Size(1200, 660),\n -\n - /** \n - * Constructor: OpenLayers.Popup.FramedCloud\n - * \n - * Parameters:\n - * id - {String}\n - * lonlat - {<OpenLayers.LonLat>}\n - * contentSize - {<OpenLayers.Size>}\n - * contentHTML - {String}\n - * anchor - {Object} Object to which we\'ll anchor the popup. Must expose \n - * a \'size\' (<OpenLayers.Size>) and \'offset\' (<OpenLayers.Pixel>) \n - * (Note that this is generally an <OpenLayers.Icon>).\n - * closeBox - {Boolean}\n - * closeBoxCallback - {Function} Function to be called on closeBox click.\n - */\n - initialize:function(id, lonlat, contentSize, contentHTML, anchor, closeBox, \n - closeBoxCallback) {\n -\n - this.imageSrc = OpenLayers.Util.getImageLocation(\'cloud-popup-relative.png\');\n - OpenLayers.Popup.Framed.prototype.initialize.apply(this, arguments);\n - this.contentDiv.className = this.contentDisplayClass;\n - },\n -\n - CLASS_NAME: "OpenLayers.Popup.FramedCloud"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>8380</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Projection.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Projection.js.xml deleted file mode 100644 index ec5ee85cb7735b49bf564733a72c2923cf4d9746..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Projection.js.xml +++ /dev/null @@ -1,365 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Projection.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Util.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Projection\n - * Methods for coordinate transforms between coordinate systems. By default,\n - * OpenLayers ships with the ability to transform coordinates between\n - * geographic (EPSG:4326) and web or spherical mercator (EPSG:900913 et al.)\n - * coordinate reference systems. See the <transform> method for details\n - * on usage.\n - *\n - * Additional transforms may be added by using the <proj4js at http://proj4js.org/>\n - * library. If the proj4js library is included, the <transform> method \n - * will work between any two coordinate reference systems with proj4js \n - * definitions.\n - *\n - * If the proj4js library is not included, or if you wish to allow transforms\n - * between arbitrary coordinate reference systems, use the <addTransform>\n - * method to register a custom transform method.\n - */\n -OpenLayers.Projection = OpenLayers.Class({\n -\n - /**\n - * Property: proj\n - * {Object} Proj4js.Proj instance.\n - */\n - proj: null,\n - \n - /**\n - * Property: projCode\n - * {String}\n - */\n - projCode: null,\n - \n - /**\n - * Property: titleRegEx\n - * {RegExp} regular expression to strip the title from a proj4js definition\n - */\n - titleRegEx: /\\+title=[^\\+]*/,\n -\n - /**\n - * Constructor: OpenLayers.Projection\n - * This class offers several methods for interacting with a wrapped \n - * pro4js projection object. \n - *\n - * Parameters:\n - * projCode - {String} A string identifying the Well Known Identifier for\n - * the projection.\n - * options - {Object} An optional object to set additional properties\n - * on the projection.\n - *\n - * Returns:\n - * {<OpenLayers.Projection>} A projection object.\n - */\n - initialize: function(projCode, options) {\n - OpenLayers.Util.extend(this, options);\n - this.projCode = projCode;\n - if (window.Proj4js) {\n - this.proj = new Proj4js.Proj(projCode);\n - }\n - },\n - \n - /**\n - * APIMethod: getCode\n - * Get the string SRS code.\n - *\n - * Returns:\n - * {String} The SRS code.\n - */\n - getCode: function() {\n - return this.proj ? this.proj.srsCode : this.projCode;\n - },\n - \n - /**\n - * APIMethod: getUnits\n - * Get the units string for the projection -- returns null if \n - * proj4js is not available.\n - *\n - * Returns:\n - * {String} The units abbreviation.\n - */\n - getUnits: function() {\n - return this.proj ? this.proj.units : null;\n - },\n -\n - /**\n - * Method: toString\n - * Convert projection to string (getCode wrapper).\n - *\n - * Returns:\n - * {String} The projection code.\n - */\n - toString: function() {\n - return this.getCode();\n - },\n -\n - /**\n - * Method: equals\n - * Test equality of two projection instances. Determines equality based\n - * soley on the projection code.\n - *\n - * Returns:\n - * {Boolean} The two projections are equivalent.\n - */\n - equals: function(projection) {\n - var p = projection, equals = false;\n - if (p) {\n - if (!(p instanceof OpenLayers.Projection)) {\n - p = new OpenLayers.Projection(p);\n - }\n - if (window.Proj4js && this.proj.defData && p.proj.defData) {\n - equals = this.proj.defData.replace(this.titleRegEx, "") ==\n - p.proj.defData.replace(this.titleRegEx, "");\n - } else if (p.getCode) {\n - var source = this.getCode(), target = p.getCode();\n - equals = source == target ||\n - !!OpenLayers.Projection.transforms[source] &&\n - OpenLayers.Projection.transforms[source][target] ===\n - OpenLayers.Projection.nullTransform;\n - }\n - }\n - return equals; \n - },\n -\n - /* Method: destroy\n - * Destroy projection object.\n - */\n - destroy: function() {\n - delete this.proj;\n - delete this.projCode;\n - },\n - \n - CLASS_NAME: "OpenLayers.Projection" \n -}); \n -\n -/**\n - * Property: transforms\n - * {Object} Transforms is an object, with from properties, each of which may\n - * have a to property. This allows you to define projections without \n - * requiring support for proj4js to be included.\n - *\n - * This object has keys which correspond to a \'source\' projection object. The\n - * keys should be strings, corresponding to the projection.getCode() value.\n - * Each source projection object should have a set of destination projection\n - * keys included in the object. \n - * \n - * Each value in the destination object should be a transformation function,\n - * where the function is expected to be passed an object with a .x and a .y\n - * property. The function should return the object, with the .x and .y\n - * transformed according to the transformation function.\n - *\n - * Note - Properties on this object should not be set directly. To add a\n - * transform method to this object, use the <addTransform> method. For an\n - * example of usage, see the OpenLayers.Layer.SphericalMercator file.\n - */\n -OpenLayers.Projection.transforms = {};\n -\n -/**\n - * APIProperty: defaults\n - * {Object} Defaults for the SRS codes known to OpenLayers (currently\n - * EPSG:4326, CRS:84, urn:ogc:def:crs:EPSG:6.6:4326, EPSG:900913, EPSG:3857,\n - * EPSG:102113 and EPSG:102100). Keys are the SRS code, values are units,\n - * maxExtent (the validity extent for the SRS) and yx (true if this SRS is\n - * known to have a reverse axis order).\n - */\n -OpenLayers.Projection.defaults = {\n - "EPSG:4326": {\n - units: "degrees",\n - maxExtent: [-180, -90, 180, 90],\n - yx: true\n - },\n - "CRS:84": {\n - units: "degrees",\n - maxExtent: [-180, -90, 180, 90]\n - },\n - "EPSG:900913": {\n - units: "m",\n - maxExtent: [-20037508.34, -20037508.34, 20037508.34, 20037508.34]\n - }\n -};\n -\n -/**\n - * APIMethod: addTransform\n - * Set a custom transform method between two projections. Use this method in\n - * cases where the proj4js lib is not available or where custom projections\n - * need to be handled.\n - *\n - * Parameters:\n - * from - {String} The code for the source projection\n - * to - {String} the code for the destination projection\n - * method - {Function} A function that takes a point as an argument and\n - * transforms that point from the source to the destination projection\n - * in place. The original point should be modified.\n - */\n -OpenLayers.Projection.addTransform = function(from, to, method) {\n - if (method === OpenLayers.Projection.nullTransform) {\n - var defaults = OpenLayers.Projection.defaults[from];\n - if (defaults && !OpenLayers.Projection.defaults[to]) {\n - OpenLayers.Projection.defaults[to] = defaults;\n - }\n - }\n - if(!OpenLayers.Projection.transforms[from]) {\n - OpenLayers.Projection.transforms[from] = {};\n - }\n - OpenLayers.Projection.transforms[from][to] = method;\n -};\n -\n -/**\n - * APIMethod: transform\n - * Transform a point coordinate from one projection to another. Note that\n - * the input point is transformed in place.\n - * \n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point> | Object} An object with x and y\n - * properties representing coordinates in those dimensions.\n - * source - {OpenLayers.Projection} Source map coordinate system\n - * dest - {OpenLayers.Projection} Destination map coordinate system\n - *\n - * Returns:\n - * point - {object} A transformed coordinate. The original point is modified.\n - */\n -OpenLayers.Projection.transform = function(point, source, dest) {\n - if (source && dest) {\n - if (!(source instanceof OpenLayers.Projection)) {\n - source = new OpenLayers.Projection(source);\n - }\n - if (!(dest instanceof OpenLayers.Projection)) {\n - dest = new OpenLayers.Projection(dest);\n - }\n - if (source.proj && dest.proj) {\n - point = Proj4js.transform(source.proj, dest.proj, point);\n - } else {\n - var sourceCode = source.getCode();\n - var destCode = dest.getCode();\n - var transforms = OpenLayers.Projection.transforms;\n - if (transforms[sourceCode] && transforms[sourceCode][destCode]) {\n - transforms[sourceCode][destCode](point);\n - }\n - }\n - }\n - return point;\n -};\n -\n -/**\n - * APIFunction: nullTransform\n - * A null transformation - useful for defining projection aliases when\n - * proj4js is not available:\n - *\n - * (code)\n - * OpenLayers.Projection.addTransform("EPSG:3857", "EPSG:900913",\n - * OpenLayers.Projection.nullTransform);\n - * OpenLayers.Projection.addTransform("EPSG:900913", "EPSG:3857",\n - * OpenLayers.Projection.nullTransform);\n - * (end)\n - */\n -OpenLayers.Projection.nullTransform = function(point) {\n - return point;\n -};\n -\n -/**\n - * Note: Transforms for web mercator <-> geographic\n - * OpenLayers recognizes EPSG:3857, EPSG:900913, EPSG:102113 and EPSG:102100.\n - * OpenLayers originally started referring to EPSG:900913 as web mercator.\n - * The EPSG has declared EPSG:3857 to be web mercator.\n - * ArcGIS 10 recognizes the EPSG:3857, EPSG:102113, and EPSG:102100 as\n - * equivalent. See http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2009/11/20/ArcGIS-Online-moving-to-Google-_2F00_-Bing-tiling-scheme_3A00_-What-does-this-mean-for-you_3F00_.aspx#12084.\n - * For geographic, OpenLayers recognizes EPSG:4326, CRS:84 and\n - * urn:ogc:def:crs:EPSG:6.6:4326. OpenLayers also knows about the reverse axis\n - * order for EPSG:4326. \n - */\n -(function() {\n -\n - var pole = 20037508.34;\n -\n - function inverseMercator(xy) {\n - xy.x = 180 * xy.x / pole;\n - xy.y = 180 / Math.PI * (2 * Math.atan(Math.exp((xy.y / pole) * Math.PI)) - Math.PI / 2);\n - return xy;\n - }\n -\n - function forwardMercator(xy) {\n - xy.x = xy.x * pole / 180;\n - xy.y = Math.log(Math.tan((90 + xy.y) * Math.PI / 360)) / Math.PI * pole;\n - return xy;\n - }\n -\n - function map(base, codes) {\n - var add = OpenLayers.Projection.addTransform;\n - var same = OpenLayers.Projection.nullTransform;\n - var i, len, code, other, j;\n - for (i=0, len=codes.length; i<len; ++i) {\n - code = codes[i];\n - add(base, code, forwardMercator);\n - add(code, base, inverseMercator);\n - for (j=i+1; j<len; ++j) {\n - other = codes[j];\n - add(code, other, same);\n - add(other, code, same);\n - }\n - }\n - }\n - \n - // list of equivalent codes for web mercator\n - var mercator = ["EPSG:900913", "EPSG:3857", "EPSG:102113", "EPSG:102100"],\n - geographic = ["CRS:84", "urn:ogc:def:crs:EPSG:6.6:4326", "EPSG:4326"],\n - i;\n - for (i=mercator.length-1; i>=0; --i) {\n - map(mercator[i], geographic);\n - }\n - for (i=geographic.length-1; i>=0; --i) {\n - map(geographic[i], mercator);\n - }\n -\n -})();\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>10970</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol.js.xml deleted file mode 100644 index d9d0a2eb5fdf822d29215c1f341556e6901baa06..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol.js.xml +++ /dev/null @@ -1,335 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Protocol.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - */\n -\n -/**\n - * Class: OpenLayers.Protocol\n - * Abstract vector layer protocol class. Not to be instantiated directly. Use\n - * one of the protocol subclasses instead.\n - */\n -OpenLayers.Protocol = OpenLayers.Class({\n - \n - /**\n - * Property: format\n - * {<OpenLayers.Format>} The format used by this protocol.\n - */\n - format: null,\n - \n - /**\n - * Property: options\n - * {Object} Any options sent to the constructor.\n - */\n - options: null,\n -\n - /**\n - * Property: autoDestroy\n - * {Boolean} The creator of the protocol can set autoDestroy to false\n - * to fully control when the protocol is destroyed. Defaults to\n - * true.\n - */\n - autoDestroy: true,\n - \n - /**\n - * Property: defaultFilter\n - * {<OpenLayers.Filter>} Optional default filter to read requests\n - */\n - defaultFilter: null,\n - \n - /**\n - * Constructor: OpenLayers.Protocol\n - * Abstract class for vector protocols. Create instances of a subclass.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - */\n - initialize: function(options) {\n - options = options || {};\n - OpenLayers.Util.extend(this, options);\n - this.options = options;\n - },\n -\n - /**\n - * Method: mergeWithDefaultFilter\n - * Merge filter passed to the read method with the default one\n - *\n - * Parameters:\n - * filter - {<OpenLayers.Filter>}\n - */\n - mergeWithDefaultFilter: function(filter) {\n - var merged;\n - if (filter && this.defaultFilter) {\n - merged = new OpenLayers.Filter.Logical({\n - type: OpenLayers.Filter.Logical.AND,\n - filters: [this.defaultFilter, filter]\n - });\n - } else {\n - merged = filter || this.defaultFilter || undefined;\n - }\n - return merged;\n - },\n -\n - /**\n - * APIMethod: destroy\n - * Clean up the protocol.\n - */\n - destroy: function() {\n - this.options = null;\n - this.format = null;\n - },\n - \n - /**\n - * APIMethod: read\n - * Construct a request for reading new features.\n - *\n - * Parameters:\n - * options - {Object} Optional object for configuring the request.\n - *\n - * Returns:\n - * {<OpenLayers.Protocol.Response>} An <OpenLayers.Protocol.Response>\n - * object, the same object will be passed to the callback function passed\n - * if one exists in the options object.\n - */\n - read: function(options) {\n - options = options || {};\n - options.filter = this.mergeWithDefaultFilter(options.filter);\n - },\n - \n - \n - /**\n - * APIMethod: create\n - * Construct a request for writing newly created features.\n - *\n - * Parameters:\n - * features - {Array({<OpenLayers.Feature.Vector>})} or\n - * {<OpenLayers.Feature.Vector>}\n - * options - {Object} Optional object for configuring the request.\n - *\n - * Returns:\n - * {<OpenLayers.Protocol.Response>} An <OpenLayers.Protocol.Response>\n - * object, the same object will be passed to the callback function passed\n - * if one exists in the options object.\n - */\n - create: function() {\n - },\n - \n - /**\n - * APIMethod: update\n - * Construct a request updating modified features.\n - *\n - * Parameters:\n - * features - {Array({<OpenLayers.Feature.Vector>})} or\n - * {<OpenLayers.Feature.Vector>}\n - * options - {Object} Optional object for configuring the request.\n - *\n - * Returns:\n - * {<OpenLayers.Protocol.Response>} An <OpenLayers.Protocol.Response>\n - * object, the same object will be passed to the callback function passed\n - * if one exists in the options object.\n - */\n - update: function() {\n - },\n - \n - /**\n - * APIMethod: delete\n - * Construct a request deleting a removed feature.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - * options - {Object} Optional object for configuring the request.\n - *\n - * Returns:\n - * {<OpenLayers.Protocol.Response>} An <OpenLayers.Protocol.Response>\n - * object, the same object will be passed to the callback function passed\n - * if one exists in the options object.\n - */\n - "delete": function() {\n - },\n -\n - /**\n - * APIMethod: commit\n - * Go over the features and for each take action\n - * based on the feature state. Possible actions are create,\n - * update and delete.\n - *\n - * Parameters:\n - * features - {Array({<OpenLayers.Feature.Vector>})}\n - * options - {Object} Object whose possible keys are "create", "update",\n - * "delete", "callback" and "scope", the values referenced by the\n - * first three are objects as passed to the "create", "update", and\n - * "delete" methods, the value referenced by the "callback" key is\n - * a function which is called when the commit operation is complete\n - * using the scope referenced by the "scope" key.\n - *\n - * Returns:\n - * {Array({<OpenLayers.Protocol.Response>})} An array of\n - * <OpenLayers.Protocol.Response> objects.\n - */\n - commit: function() {\n - },\n -\n - /**\n - * Method: abort\n - * Abort an ongoing request.\n - *\n - * Parameters:\n - * response - {<OpenLayers.Protocol.Response>}\n - */\n - abort: function(response) {\n - },\n - \n - /**\n - * Method: createCallback\n - * Returns a function that applies the given public method with resp and\n - * options arguments.\n - *\n - * Parameters:\n - * method - {Function} The method to be applied by the callback.\n - * response - {<OpenLayers.Protocol.Response>} The protocol response object.\n - * options - {Object} Options sent to the protocol method\n - */\n - createCallback: function(method, response, options) {\n - return OpenLayers.Function.bind(function() {\n - method.apply(this, [response, options]);\n - }, this);\n - },\n - \n - CLASS_NAME: "OpenLayers.Protocol" \n -});\n -\n -/**\n - * Class: OpenLayers.Protocol.Response\n - * Protocols return Response objects to their users.\n - */\n -OpenLayers.Protocol.Response = OpenLayers.Class({\n - /**\n - * Property: code\n - * {Number} - OpenLayers.Protocol.Response.SUCCESS or\n - * OpenLayers.Protocol.Response.FAILURE\n - */\n - code: null,\n -\n - /**\n - * Property: requestType\n - * {String} The type of request this response corresponds to. Either\n - * "create", "read", "update" or "delete".\n - */\n - requestType: null,\n -\n - /**\n - * Property: last\n - * {Boolean} - true if this is the last response expected in a commit,\n - * false otherwise, defaults to true.\n - */\n - last: true,\n -\n - /**\n - * Property: features\n - * {Array({<OpenLayers.Feature.Vector>})} or {<OpenLayers.Feature.Vector>}\n - * The features returned in the response by the server. Depending on the \n - * protocol\'s read payload, either features or data will be populated.\n - */\n - features: null,\n -\n - /**\n - * Property: data\n - * {Object}\n - * The data returned in the response by the server. Depending on the \n - * protocol\'s read payload, either features or data will be populated.\n - */\n - data: null,\n -\n - /**\n - * Property: reqFeatures\n - * {Array({<OpenLayers.Feature.Vector>})} or {<OpenLayers.Feature.Vector>}\n - * The features provided by the user and placed in the request by the\n - * protocol.\n - */\n - reqFeatures: null,\n -\n - /**\n - * Property: priv\n - */\n - priv: null,\n -\n - /**\n - * Property: error\n - * {Object} The error object in case a service exception was encountered.\n - */\n - error: null,\n -\n - /**\n - * Constructor: OpenLayers.Protocol.Response\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Util.extend(this, options);\n - },\n -\n - /**\n - * Method: success\n - *\n - * Returns:\n - * {Boolean} - true on success, false otherwise\n - */\n - success: function() {\n - return this.code > 0;\n - },\n -\n - CLASS_NAME: "OpenLayers.Protocol.Response"\n -});\n -\n -OpenLayers.Protocol.Response.SUCCESS = 1;\n -OpenLayers.Protocol.Response.FAILURE = 0;\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>8408</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol.xml deleted file mode 100644 index 892f1d90b6ea32b485004df4077748f5cd7fd736..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Protocol</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Protocol</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/CSW.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/CSW.js.xml deleted file mode 100644 index 60de85e9e9fd98db6984619bf41ad4f5fba8c8ce..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/CSW.js.xml +++ /dev/null @@ -1,70 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>CSW.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string>/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Protocol.js\n - */\n -\n -/**\n - * Class: OpenLayers.Protocol.CSW\n - * Used to create a versioned CSW protocol. Default version is 2.0.2.\n - */\n -OpenLayers.Protocol.CSW = function(options) {\n - options = OpenLayers.Util.applyDefaults(\n - options, OpenLayers.Protocol.CSW.DEFAULTS\n - );\n - var cls = OpenLayers.Protocol.CSW["v"+options.version.replace(/\\./g, "_")];\n - if(!cls) {\n - throw "Unsupported CSW version: " + options.version;\n - }\n - return new cls(options);\n -};\n -\n -/**\n - * Constant: OpenLayers.Protocol.CSW.DEFAULTS\n - */\n -OpenLayers.Protocol.CSW.DEFAULTS = {\n - "version": "2.0.2"\n -};\n -</string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>871</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/CSW.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/CSW.xml deleted file mode 100644 index 32fff929f6799a85978db1b67d855fbcce7e5980..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/CSW.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>CSW</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Protocol/CSW</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/CSW/v2_0_2.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/CSW/v2_0_2.js.xml deleted file mode 100644 index a937dc9bdf8e30593860c754d0d70ee1bfd1498e..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/CSW/v2_0_2.js.xml +++ /dev/null @@ -1,171 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.83</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v2_0_2.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Protocol/CSW.js\n - * @requires OpenLayers/Format/CSWGetRecords/v2_0_2.js\n - */\n -\n -/**\n - * Class: OpenLayers.Protocol.CSW.v2_0_2\n - * CS-W (Catalogue services for the Web) version 2.0.2 protocol.\n - *\n - * Inherits from:\n - * - <OpenLayers.Protocol>\n - */\n -OpenLayers.Protocol.CSW.v2_0_2 = OpenLayers.Class(OpenLayers.Protocol, {\n -\n - /**\n - * Property: formatOptions\n - * {Object} Optional options for the format. If a format is not provided,\n - * this property can be used to extend the default format options.\n - */\n - formatOptions: null,\n -\n - /**\n - * Constructor: OpenLayers.Protocol.CSW.v2_0_2\n - * A class for CSW version 2.0.2 protocol management.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Protocol.prototype.initialize.apply(this, [options]);\n - if(!options.format) {\n - this.format = new OpenLayers.Format.CSWGetRecords.v2_0_2(OpenLayers.Util.extend({\n - }, this.formatOptions));\n - }\n - },\n -\n - /**\n - * APIMethod: destroy\n - * Clean up the protocol.\n - */\n - destroy: function() {\n - if(this.options && !this.options.format) {\n - this.format.destroy();\n - }\n - this.format = null;\n - OpenLayers.Protocol.prototype.destroy.apply(this);\n - },\n -\n - /**\n - * Method: read\n - * Construct a request for reading new records from the Catalogue.\n - */\n - read: function(options) {\n - options = OpenLayers.Util.extend({}, options);\n - OpenLayers.Util.applyDefaults(options, this.options || {});\n - var response = new OpenLayers.Protocol.Response({requestType: "read"});\n -\n - var data = this.format.write(options.params);\n -\n - response.priv = OpenLayers.Request.POST({\n - url: options.url,\n - callback: this.createCallback(this.handleRead, response, options),\n - params: options.params,\n - headers: options.headers,\n - data: data\n - });\n -\n - return response;\n - },\n -\n - /**\n - * Method: handleRead\n - * Deal with response from the read request.\n - *\n - * Parameters:\n - * response - {<OpenLayers.Protocol.Response>} The response object to pass\n - * to the user callback.\n - * This response is given a code property, and optionally a data property.\n - * The latter represents the CSW records as returned by the call to\n - * the CSW format read method.\n - * options - {Object} The user options passed to the read call.\n - */\n - handleRead: function(response, options) {\n - if(options.callback) {\n - var request = response.priv;\n - if(request.status >= 200 && request.status < 300) {\n - // success\n - response.data = this.parseData(request);\n - response.code = OpenLayers.Protocol.Response.SUCCESS;\n - } else {\n - // failure\n - response.code = OpenLayers.Protocol.Response.FAILURE;\n - }\n - options.callback.call(options.scope, response);\n - }\n - },\n -\n - /**\n - * Method: parseData\n - * Read HTTP response body and return records\n - *\n - * Parameters:\n - * request - {XMLHttpRequest} The request object\n - *\n - * Returns:\n - * {Object} The CSW records as returned by the call to the format read method.\n - */\n - parseData: function(request) {\n - var doc = request.responseXML;\n - if(!doc || !doc.documentElement) {\n - doc = request.responseText;\n - }\n - if(!doc || doc.length <= 0) {\n - return null;\n - }\n - return this.format.read(doc);\n - },\n -\n - CLASS_NAME: "OpenLayers.Protocol.CSW.v2_0_2"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4004</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/HTTP.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/HTTP.js.xml deleted file mode 100644 index 1ca6155704cc58b915d2042d9ceef726f15812f7..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/HTTP.js.xml +++ /dev/null @@ -1,624 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>HTTP.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Protocol.js\n - * @requires OpenLayers/Request/XMLHttpRequest.js\n - */\n -\n -/**\n - * if application uses the query string, for example, for BBOX parameters,\n - * OpenLayers/Format/QueryStringFilter.js should be included in the build config file\n - */\n -\n -/**\n - * Class: OpenLayers.Protocol.HTTP\n - * A basic HTTP protocol for vector layers. Create a new instance with the\n - * <OpenLayers.Protocol.HTTP> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Protocol>\n - */\n -OpenLayers.Protocol.HTTP = OpenLayers.Class(OpenLayers.Protocol, {\n -\n - /**\n - * Property: url\n - * {String} Service URL, read-only, set through the options\n - * passed to constructor.\n - */\n - url: null,\n -\n - /**\n - * Property: headers\n - * {Object} HTTP request headers, read-only, set through the options\n - * passed to the constructor,\n - * Example: {\'Content-Type\': \'plain/text\'}\n - */\n - headers: null,\n -\n - /**\n - * Property: params\n - * {Object} Parameters of GET requests, read-only, set through the options\n - * passed to the constructor,\n - * Example: {\'bbox\': \'5,5,5,5\'}\n - */\n - params: null,\n - \n - /**\n - * Property: callback\n - * {Object} Function to be called when the <read>, <create>,\n - * <update>, <delete> or <commit> operation completes, read-only,\n - * set through the options passed to the constructor.\n - */\n - callback: null,\n -\n - /**\n - * Property: scope\n - * {Object} Callback execution scope, read-only, set through the\n - * options passed to the constructor.\n - */\n - scope: null,\n -\n - /**\n - * APIProperty: readWithPOST\n - * {Boolean} true if read operations are done with POST requests\n - * instead of GET, defaults to false.\n - */\n - readWithPOST: false,\n -\n - /**\n - * APIProperty: updateWithPOST\n - * {Boolean} true if update operations are done with POST requests\n - * defaults to false.\n - */\n - updateWithPOST: false,\n - \n - /**\n - * APIProperty: deleteWithPOST\n - * {Boolean} true if delete operations are done with POST requests\n - * defaults to false.\n - * if true, POST data is set to output of format.write().\n - */\n - deleteWithPOST: false,\n -\n - /**\n - * Property: wildcarded.\n - * {Boolean} If true percent signs are added around values\n - * read from LIKE filters, for example if the protocol\n - * read method is passed a LIKE filter whose property\n - * is "foo" and whose value is "bar" the string\n - * "foo__ilike=%bar%" will be sent in the query string;\n - * defaults to false.\n - */\n - wildcarded: false,\n -\n - /**\n - * APIProperty: srsInBBOX\n - * {Boolean} Include the SRS identifier in BBOX query string parameter. \n - * Default is false. If true and the layer has a projection object set,\n - * any BBOX filter will be serialized with a fifth item identifying the\n - * projection. E.g. bbox=-1000,-1000,1000,1000,EPSG:900913\n - */\n - srsInBBOX: false,\n -\n - /**\n - * Constructor: OpenLayers.Protocol.HTTP\n - * A class for giving layers generic HTTP protocol.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - *\n - * Valid options include:\n - * url - {String}\n - * headers - {Object} \n - * params - {Object} URL parameters for GET requests\n - * format - {<OpenLayers.Format>}\n - * callback - {Function}\n - * scope - {Object}\n - */\n - initialize: function(options) {\n - options = options || {};\n - this.params = {};\n - this.headers = {};\n - OpenLayers.Protocol.prototype.initialize.apply(this, arguments);\n -\n - if (!this.filterToParams && OpenLayers.Format.QueryStringFilter) {\n - var format = new OpenLayers.Format.QueryStringFilter({\n - wildcarded: this.wildcarded,\n - srsInBBOX: this.srsInBBOX\n - });\n - this.filterToParams = function(filter, params) {\n - return format.write(filter, params);\n - };\n - }\n - },\n - \n - /**\n - * APIMethod: destroy\n - * Clean up the protocol.\n - */\n - destroy: function() {\n - this.params = null;\n - this.headers = null;\n - OpenLayers.Protocol.prototype.destroy.apply(this);\n - },\n -\n - /**\n - * APIMethod: filterToParams\n - * Optional method to translate an <OpenLayers.Filter> object into an object\n - * that can be serialized as request query string provided. If a custom\n - * method is not provided, the filter will be serialized using the \n - * <OpenLayers.Format.QueryStringFilter> class.\n - *\n - * Parameters:\n - * filter - {<OpenLayers.Filter>} filter to convert.\n - * params - {Object} The parameters object.\n - *\n - * Returns:\n - * {Object} The resulting parameters object.\n - */\n - \n - /**\n - * APIMethod: read\n - * Construct a request for reading new features.\n - *\n - * Parameters:\n - * options - {Object} Optional object for configuring the request.\n - * This object is modified and should not be reused.\n - *\n - * Valid options:\n - * url - {String} Url for the request.\n - * params - {Object} Parameters to get serialized as a query string.\n - * headers - {Object} Headers to be set on the request.\n - * filter - {<OpenLayers.Filter>} Filter to get serialized as a\n - * query string.\n - * readWithPOST - {Boolean} If the request should be done with POST.\n - *\n - * Returns:\n - * {<OpenLayers.Protocol.Response>} A response object, whose "priv" property\n - * references the HTTP request, this object is also passed to the\n - * callback function when the request completes, its "features" property\n - * is then populated with the features received from the server.\n - */\n - read: function(options) {\n - OpenLayers.Protocol.prototype.read.apply(this, arguments);\n - options = options || {};\n - options.params = OpenLayers.Util.applyDefaults(\n - options.params, this.options.params);\n - options = OpenLayers.Util.applyDefaults(options, this.options);\n - if (options.filter && this.filterToParams) {\n - options.params = this.filterToParams(\n - options.filter, options.params\n - );\n - }\n - var readWithPOST = (options.readWithPOST !== undefined) ?\n - options.readWithPOST : this.readWithPOST;\n - var resp = new OpenLayers.Protocol.Response({requestType: "read"});\n - if(readWithPOST) {\n - var headers = options.headers || {};\n - headers["Content-Type"] = "application/x-www-form-urlencoded";\n - resp.priv = OpenLayers.Request.POST({\n - url: options.url,\n - callback: this.createCallback(this.handleRead, resp, options),\n - data: OpenLayers.Util.getParameterString(options.params),\n - headers: headers\n - });\n - } else {\n - resp.priv = OpenLayers.Request.GET({\n - url: options.url,\n - callback: this.createCallback(this.handleRead, resp, options),\n - params: options.params,\n - headers: options.headers\n - });\n - }\n - return resp;\n - },\n -\n - /**\n - * Method: handleRead\n - * Individual callbacks are created for read, create and update, should\n - * a subclass need to override each one separately.\n - *\n - * Parameters:\n - * resp - {<OpenLayers.Protocol.Response>} The response object to pass to\n - * the user callback.\n - * options - {Object} The user options passed to the read call.\n - */\n - handleRead: function(resp, options) {\n - this.handleResponse(resp, options);\n - },\n -\n - /**\n - * APIMethod: create\n - * Construct a request for writing newly created features.\n - *\n - * Parameters:\n - * features - {Array({<OpenLayers.Feature.Vector>})} or\n - * {<OpenLayers.Feature.Vector>}\n - * options - {Object} Optional object for configuring the request.\n - * This object is modified and should not be reused.\n - *\n - * Returns:\n - * {<OpenLayers.Protocol.Response>} An <OpenLayers.Protocol.Response>\n - * object, whose "priv" property references the HTTP request, this \n - * object is also passed to the callback function when the request\n - * completes, its "features" property is then populated with the\n - * the features received from the server.\n - */\n - create: function(features, options) {\n - options = OpenLayers.Util.applyDefaults(options, this.options);\n -\n - var resp = new OpenLayers.Protocol.Response({\n - reqFeatures: features,\n - requestType: "create"\n - });\n -\n - resp.priv = OpenLayers.Request.POST({\n - url: options.url,\n - callback: this.createCallback(this.handleCreate, resp, options),\n - headers: options.headers,\n - data: this.format.write(features)\n - });\n -\n - return resp;\n - },\n -\n - /**\n - * Method: handleCreate\n - * Called the the request issued by <create> is complete. May be overridden\n - * by subclasses.\n - *\n - * Parameters:\n - * resp - {<OpenLayers.Protocol.Response>} The response object to pass to\n - * any user callback.\n - * options - {Object} The user options passed to the create call.\n - */\n - handleCreate: function(resp, options) {\n - this.handleResponse(resp, options);\n - },\n -\n - /**\n - * APIMethod: update\n - * Construct a request updating modified feature.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - * options - {Object} Optional object for configuring the request.\n - * This object is modified and should not be reused.\n - *\n - * Returns:\n - * {<OpenLayers.Protocol.Response>} An <OpenLayers.Protocol.Response>\n - * object, whose "priv" property references the HTTP request, this \n - * object is also passed to the callback function when the request\n - * completes, its "features" property is then populated with the\n - * the feature received from the server.\n - */\n - update: function(feature, options) {\n - options = options || {};\n - var url = options.url ||\n - feature.url ||\n - this.options.url + "/" + feature.fid;\n - options = OpenLayers.Util.applyDefaults(options, this.options);\n -\n - var resp = new OpenLayers.Protocol.Response({\n - reqFeatures: feature,\n - requestType: "update"\n - });\n -\n - var method = this.updateWithPOST ? "POST" : "PUT";\n - resp.priv = OpenLayers.Request[method]({\n - url: url,\n - callback: this.createCallback(this.handleUpdate, resp, options),\n - headers: options.headers,\n - data: this.format.write(feature)\n - });\n -\n - return resp;\n - },\n -\n - /**\n - * Method: handleUpdate\n - * Called the the request issued by <update> is complete. May be overridden\n - * by subclasses.\n - *\n - * Parameters:\n - * resp - {<OpenLayers.Protocol.Response>} The response object to pass to\n - * any user callback.\n - * options - {Object} The user options passed to the update call.\n - */\n - handleUpdate: function(resp, options) {\n - this.handleResponse(resp, options);\n - },\n -\n - /**\n - * APIMethod: delete\n - * Construct a request deleting a removed feature.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - * options - {Object} Optional object for configuring the request.\n - * This object is modified and should not be reused.\n - *\n - * Returns:\n - * {<OpenLayers.Protocol.Response>} An <OpenLayers.Protocol.Response>\n - * object, whose "priv" property references the HTTP request, this \n - * object is also passed to the callback function when the request\n - * completes.\n - */\n - "delete": function(feature, options) {\n - options = options || {};\n - var url = options.url ||\n - feature.url ||\n - this.options.url + "/" + feature.fid;\n - options = OpenLayers.Util.applyDefaults(options, this.options);\n -\n - var resp = new OpenLayers.Protocol.Response({\n - reqFeatures: feature,\n - requestType: "delete"\n - });\n -\n - var method = this.deleteWithPOST ? "POST" : "DELETE";\n - var requestOptions = {\n - url: url,\n - callback: this.createCallback(this.handleDelete, resp, options),\n - headers: options.headers\n - };\n - if (this.deleteWithPOST) {\n - requestOptions.data = this.format.write(feature);\n - }\n - resp.priv = OpenLayers.Request[method](requestOptions);\n -\n - return resp;\n - },\n -\n - /**\n - * Method: handleDelete\n - * Called the the request issued by <delete> is complete. May be overridden\n - * by subclasses.\n - *\n - * Parameters:\n - * resp - {<OpenLayers.Protocol.Response>} The response object to pass to\n - * any user callback.\n - * options - {Object} The user options passed to the delete call.\n - */\n - handleDelete: function(resp, options) {\n - this.handleResponse(resp, options);\n - },\n -\n - /**\n - * Method: handleResponse\n - * Called by CRUD specific handlers.\n - *\n - * Parameters:\n - * resp - {<OpenLayers.Protocol.Response>} The response object to pass to\n - * any user callback.\n - * options - {Object} The user options passed to the create, read, update,\n - * or delete call.\n - */\n - handleResponse: function(resp, options) {\n - var request = resp.priv;\n - if(options.callback) {\n - if(request.status >= 200 && request.status < 300) {\n - // success\n - if(resp.requestType != "delete") {\n - resp.features = this.parseFeatures(request);\n - }\n - resp.code = OpenLayers.Protocol.Response.SUCCESS;\n - } else {\n - // failure\n - resp.code = OpenLayers.Protocol.Response.FAILURE;\n - }\n - options.callback.call(options.scope, resp);\n - }\n - },\n -\n - /**\n - * Method: parseFeatures\n - * Read HTTP response body and return features.\n - *\n - * Parameters:\n - * request - {XMLHttpRequest} The request object\n - *\n - * Returns:\n - * {Array({<OpenLayers.Feature.Vector>})} or\n - * {<OpenLayers.Feature.Vector>} Array of features or a single feature.\n - */\n - parseFeatures: function(request) {\n - var doc = request.responseXML;\n - if (!doc || !doc.documentElement) {\n - doc = request.responseText;\n - }\n - if (!doc || doc.length <= 0) {\n - return null;\n - }\n - return this.format.read(doc);\n - },\n -\n - /**\n - * APIMethod: commit\n - * Iterate over each feature and take action based on the feature state.\n - * Possible actions are create, update and delete.\n - *\n - * Parameters:\n - * features - {Array({<OpenLayers.Feature.Vector>})}\n - * options - {Object} Optional object for setting up intermediate commit\n - * callbacks.\n - *\n - * Valid options:\n - * create - {Object} Optional object to be passed to the <create> method.\n - * update - {Object} Optional object to be passed to the <update> method.\n - * delete - {Object} Optional object to be passed to the <delete> method.\n - * callback - {Function} Optional function to be called when the commit\n - * is complete.\n - * scope - {Object} Optional object to be set as the scope of the callback.\n - *\n - * Returns:\n - * {Array(<OpenLayers.Protocol.Response>)} An array of response objects,\n - * one per request made to the server, each object\'s "priv" property\n - * references the corresponding HTTP request.\n - */\n - commit: function(features, options) {\n - options = OpenLayers.Util.applyDefaults(options, this.options);\n - var resp = [], nResponses = 0;\n - \n - // Divide up features before issuing any requests. This properly\n - // counts requests in the event that any responses come in before\n - // all requests have been issued.\n - var types = {};\n - types[OpenLayers.State.INSERT] = [];\n - types[OpenLayers.State.UPDATE] = [];\n - types[OpenLayers.State.DELETE] = [];\n - var feature, list, requestFeatures = [];\n - for(var i=0, len=features.length; i<len; ++i) {\n - feature = features[i];\n - list = types[feature.state];\n - if(list) {\n - list.push(feature);\n - requestFeatures.push(feature); \n - }\n - }\n - // tally up number of requests\n - var nRequests = (types[OpenLayers.State.INSERT].length > 0 ? 1 : 0) +\n - types[OpenLayers.State.UPDATE].length +\n - types[OpenLayers.State.DELETE].length;\n - \n - // This response will be sent to the final callback after all the others\n - // have been fired.\n - var success = true;\n - var finalResponse = new OpenLayers.Protocol.Response({\n - reqFeatures: requestFeatures \n - });\n - \n - function insertCallback(response) {\n - var len = response.features ? response.features.length : 0;\n - var fids = new Array(len);\n - for(var i=0; i<len; ++i) {\n - fids[i] = response.features[i].fid;\n - } \n - finalResponse.insertIds = fids;\n - callback.apply(this, [response]);\n - }\n - \n - function callback(response) {\n - this.callUserCallback(response, options);\n - success = success && response.success();\n - nResponses++;\n - if (nResponses >= nRequests) {\n - if (options.callback) {\n - finalResponse.code = success ? \n - OpenLayers.Protocol.Response.SUCCESS :\n - OpenLayers.Protocol.Response.FAILURE;\n - options.callback.apply(options.scope, [finalResponse]);\n - } \n - }\n - }\n -\n - // start issuing requests\n - var queue = types[OpenLayers.State.INSERT];\n - if(queue.length > 0) {\n - resp.push(this.create(\n - queue, OpenLayers.Util.applyDefaults(\n - {callback: insertCallback, scope: this}, options.create\n - )\n - ));\n - }\n - queue = types[OpenLayers.State.UPDATE];\n - for(var i=queue.length-1; i>=0; --i) {\n - resp.push(this.update(\n - queue[i], OpenLayers.Util.applyDefaults(\n - {callback: callback, scope: this}, options.update\n - ))\n - );\n - }\n - queue = types[OpenLayers.State.DELETE];\n - for(var i=queue.length-1; i>=0; --i) {\n - resp.push(this["delete"](\n - queue[i], OpenLayers.Util.applyDefaults(\n - {callback: callback, scope: this}, options["delete"]\n - ))\n - );\n - }\n - return resp;\n - },\n -\n - /**\n - * APIMethod: abort\n - * Abort an ongoing request, the response object passed to\n - * this method must come from this HTTP protocol (as a result\n - * of a create, read, update, delete or commit operation).\n - *\n - * Parameters:\n - * response - {<OpenLayers.Protocol.Response>}\n - */\n - abort: function(response) {\n - if (response) {\n - response.priv.abort();\n - }\n - },\n -\n - /**\n - * Method: callUserCallback\n - * This method is used from within the commit method each time an\n - * an HTTP response is received from the server, it is responsible\n - * for calling the user-supplied callbacks.\n - *\n - * Parameters:\n - * resp - {<OpenLayers.Protocol.Response>}\n - * options - {Object} The map of options passed to the commit call.\n - */\n - callUserCallback: function(resp, options) {\n - var opt = options[resp.requestType];\n - if(opt && opt.callback) {\n - opt.callback.call(opt.scope, resp);\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Protocol.HTTP" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>20226</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/SOS.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/SOS.js.xml deleted file mode 100644 index af4f92976c9b5f624bc7e76b32100b8d636ce1d3..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/SOS.js.xml +++ /dev/null @@ -1,77 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>SOS.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Protocol.js\n - */\n -\n -/**\n - * Function: OpenLayers.Protocol.SOS\n - * Used to create a versioned SOS protocol. Default version is 1.0.0.\n - *\n - * Returns:\n - * {<OpenLayers.Protocol>} An SOS protocol for the given version.\n - */\n -OpenLayers.Protocol.SOS = function(options) {\n - options = OpenLayers.Util.applyDefaults(\n - options, OpenLayers.Protocol.SOS.DEFAULTS\n - );\n - var cls = OpenLayers.Protocol.SOS["v"+options.version.replace(/\\./g, "_")];\n - if(!cls) {\n - throw "Unsupported SOS version: " + options.version;\n - }\n - return new cls(options);\n -};\n -\n -/**\n - * Constant: OpenLayers.Protocol.SOS.DEFAULTS\n - */\n -OpenLayers.Protocol.SOS.DEFAULTS = {\n - "version": "1.0.0"\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>956</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/SOS.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/SOS.xml deleted file mode 100644 index 99bcf86b22874bfdd95e83a4703f136186443d75..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/SOS.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>SOS</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Protocol/SOS</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/SOS/v1_0_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/SOS/v1_0_0.js.xml deleted file mode 100644 index 52b5e3ae768b2724f81c78e03775e06bc2097b6d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/SOS/v1_0_0.js.xml +++ /dev/null @@ -1,177 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.83</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_0_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Protocol/SOS.js\n - * @requires OpenLayers/Format/SOSGetFeatureOfInterest.js\n - */\n -\n -/**\n - * Class: OpenLayers.Protocol.SOS.v1_0_0\n - * An SOS v1.0.0 Protocol for vector layers. Create a new instance with the\n - * <OpenLayers.Protocol.SOS.v1_0_0> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Protocol>\n - */\n - OpenLayers.Protocol.SOS.v1_0_0 = OpenLayers.Class(OpenLayers.Protocol, {\n -\n - /**\n - * APIProperty: fois\n - * {Array(String)} Array of features of interest (foi)\n - */\n - fois: null,\n -\n - /**\n - * Property: formatOptions\n - * {Object} Optional options for the format. If a format is not provided,\n - * this property can be used to extend the default format options.\n - */\n - formatOptions: null,\n - \n - /**\n - * Constructor: OpenLayers.Protocol.SOS\n - * A class for giving layers an SOS protocol.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - *\n - * Valid options properties:\n - * url - {String} URL to send requests to (required).\n - * fois - {Array} The features of interest (required).\n - */\n - initialize: function(options) {\n - OpenLayers.Protocol.prototype.initialize.apply(this, [options]);\n - if(!options.format) {\n - this.format = new OpenLayers.Format.SOSGetFeatureOfInterest(\n - this.formatOptions);\n - }\n - },\n - \n - /**\n - * APIMethod: destroy\n - * Clean up the protocol.\n - */\n - destroy: function() {\n - if(this.options && !this.options.format) {\n - this.format.destroy();\n - }\n - this.format = null;\n - OpenLayers.Protocol.prototype.destroy.apply(this);\n - },\n -\n - /**\n - * APIMethod: read\n - * Construct a request for reading new sensor positions. This is done by\n - * issuing one GetFeatureOfInterest request.\n - */\n - read: function(options) {\n - options = OpenLayers.Util.extend({}, options);\n - OpenLayers.Util.applyDefaults(options, this.options || {});\n - var response = new OpenLayers.Protocol.Response({requestType: "read"});\n - var format = this.format;\n - var data = OpenLayers.Format.XML.prototype.write.apply(format,\n - [format.writeNode("sos:GetFeatureOfInterest", {fois: this.fois})]\n - );\n - response.priv = OpenLayers.Request.POST({\n - url: options.url,\n - callback: this.createCallback(this.handleRead, response, options),\n - data: data\n - });\n - return response;\n - },\n - \n - /**\n - * Method: handleRead\n - * Deal with response from the read request.\n - *\n - * Parameters:\n - * response - {<OpenLayers.Protocol.Response>} The response object to pass\n - * to the user callback.\n - * options - {Object} The user options passed to the read call.\n - */\n - handleRead: function(response, options) {\n - if(options.callback) {\n - var request = response.priv;\n - if(request.status >= 200 && request.status < 300) {\n - // success\n - response.features = this.parseFeatures(request);\n - response.code = OpenLayers.Protocol.Response.SUCCESS;\n - } else {\n - // failure\n - response.code = OpenLayers.Protocol.Response.FAILURE;\n - }\n - options.callback.call(options.scope, response);\n - }\n - },\n -\n - /**\n - * Method: parseFeatures\n - * Read HTTP response body and return features\n - *\n - * Parameters:\n - * request - {XMLHttpRequest} The request object\n - *\n - * Returns:\n - * {Array({<OpenLayers.Feature.Vector>})} Array of features\n - */\n - parseFeatures: function(request) {\n - var doc = request.responseXML;\n - if(!doc || !doc.documentElement) {\n - doc = request.responseText;\n - }\n - if(!doc || doc.length <= 0) {\n - return null;\n - }\n - return this.format.read(doc);\n - },\n -\n - CLASS_NAME: "OpenLayers.Protocol.SOS.v1_0_0"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4244</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/Script.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/Script.js.xml deleted file mode 100644 index 67de7c7edbc9e1386abceca85b170a6dcf9d62d6..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/Script.js.xml +++ /dev/null @@ -1,421 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Script.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Protocol.js\n - * @requires OpenLayers/Feature/Vector.js\n - * @requires OpenLayers/Format/GeoJSON.js\n - */\n -\n -/**\n - * if application uses the query string, for example, for BBOX parameters,\n - * OpenLayers/Format/QueryStringFilter.js should be included in the build config file\n - */\n -\n -/**\n - * Class: OpenLayers.Protocol.Script\n - * A basic Script protocol for vector layers. Create a new instance with the\n - * <OpenLayers.Protocol.Script> constructor. A script protocol is used to\n - * get around the same origin policy. It works with services that return\n - * JSONP - that is, JSON wrapped in a client-specified callback. The\n - * protocol handles fetching and parsing of feature data and sends parsed\n - * features to the <callback> configured with the protocol. The protocol\n - * expects features serialized as GeoJSON by default, but can be configured\n - * to work with other formats by setting the <format> property.\n - *\n - * Inherits from:\n - * - <OpenLayers.Protocol>\n - */\n -OpenLayers.Protocol.Script = OpenLayers.Class(OpenLayers.Protocol, {\n -\n - /**\n - * APIProperty: url\n - * {String} Service URL. The service is expected to return serialized \n - * features wrapped in a named callback (where the callback name is\n - * generated by this protocol).\n - * Read-only, set through the options passed to the constructor.\n - */\n - url: null,\n -\n - /**\n - * APIProperty: params\n - * {Object} Query string parameters to be appended to the URL.\n - * Read-only, set through the options passed to the constructor.\n - * Example: {maxFeatures: 50}\n - */\n - params: null,\n - \n - /**\n - * APIProperty: callback\n - * {Object} Function to be called when the <read> operation completes.\n - */\n - callback: null,\n -\n - /**\n - * APIProperty: callbackTemplate\n - * {String} Template for creating a unique callback function name\n - * for the registry. Should include ${id}. The ${id} variable will be\n - * replaced with a string identifier prefixed with a "c" (e.g. c1, c2).\n - * Default is "OpenLayers.Protocol.Script.registry.${id}".\n - */\n - callbackTemplate: "OpenLayers.Protocol.Script.registry.${id}",\n -\n - /**\n - * APIProperty: callbackKey\n - * {String} The name of the query string parameter that the service \n - * recognizes as the callback identifier. Default is "callback".\n - * This key is used to generate the URL for the script. For example\n - * setting <callbackKey> to "myCallback" would result in a URL like \n - * http://example.com/?myCallback=...\n - */\n - callbackKey: "callback",\n -\n - /**\n - * APIProperty: callbackPrefix\n - * {String} Where a service requires that the callback query string \n - * parameter value is prefixed by some string, this value may be set.\n - * For example, setting <callbackPrefix> to "foo:" would result in a\n - * URL like http://example.com/?callback=foo:... Default is "".\n - */\n - callbackPrefix: "",\n -\n - /**\n - * APIProperty: scope\n - * {Object} Optional ``this`` object for the callback. Read-only, set \n - * through the options passed to the constructor.\n - */\n - scope: null,\n -\n - /**\n - * APIProperty: format\n - * {<OpenLayers.Format>} Format for parsing features. Default is an \n - * <OpenLayers.Format.GeoJSON> format. If an alternative is provided,\n - * the format\'s read method must take an object and return an array\n - * of features.\n - */\n - format: null,\n -\n - /**\n - * Property: pendingRequests\n - * {Object} References all pending requests. Property names are script \n - * identifiers and property values are script elements.\n - */\n - pendingRequests: null,\n -\n - /**\n - * APIProperty: srsInBBOX\n - * {Boolean} Include the SRS identifier in BBOX query string parameter.\n - * Setting this property has no effect if a custom filterToParams method\n - * is provided. Default is false. If true and the layer has a \n - * projection object set, any BBOX filter will be serialized with a \n - * fifth item identifying the projection. \n - * E.g. bbox=-1000,-1000,1000,1000,EPSG:900913\n - */\n - srsInBBOX: false,\n -\n - /**\n - * Constructor: OpenLayers.Protocol.Script\n - * A class for giving layers generic Script protocol.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - *\n - * Valid options include:\n - * url - {String}\n - * params - {Object}\n - * callback - {Function}\n - * scope - {Object}\n - */\n - initialize: function(options) {\n - options = options || {};\n - this.params = {};\n - this.pendingRequests = {};\n - OpenLayers.Protocol.prototype.initialize.apply(this, arguments);\n - if (!this.format) {\n - this.format = new OpenLayers.Format.GeoJSON();\n - }\n -\n - if (!this.filterToParams && OpenLayers.Format.QueryStringFilter) {\n - var format = new OpenLayers.Format.QueryStringFilter({\n - srsInBBOX: this.srsInBBOX\n - });\n - this.filterToParams = function(filter, params) {\n - return format.write(filter, params);\n - };\n - }\n - },\n - \n - /**\n - * APIMethod: read\n - * Construct a request for reading new features.\n - *\n - * Parameters:\n - * options - {Object} Optional object for configuring the request.\n - * This object is modified and should not be reused.\n - *\n - * Valid options:\n - * url - {String} Url for the request.\n - * params - {Object} Parameters to get serialized as a query string.\n - * filter - {<OpenLayers.Filter>} Filter to get serialized as a\n - * query string.\n - *\n - * Returns:\n - * {<OpenLayers.Protocol.Response>} A response object, whose "priv" property\n - * references the injected script. This object is also passed to the\n - * callback function when the request completes, its "features" property\n - * is then populated with the features received from the server.\n - */\n - read: function(options) {\n - OpenLayers.Protocol.prototype.read.apply(this, arguments);\n - options = OpenLayers.Util.applyDefaults(options, this.options);\n - options.params = OpenLayers.Util.applyDefaults(\n - options.params, this.options.params\n - );\n - if (options.filter && this.filterToParams) {\n - options.params = this.filterToParams(\n - options.filter, options.params\n - );\n - }\n - var response = new OpenLayers.Protocol.Response({requestType: "read"});\n - var request = this.createRequest(\n - options.url, \n - options.params, \n - OpenLayers.Function.bind(function(data) {\n - response.data = data;\n - this.handleRead(response, options);\n - }, this)\n - );\n - response.priv = request;\n - return response;\n - },\n -\n - /** \n - * APIMethod: filterToParams \n - * Optional method to translate an <OpenLayers.Filter> object into an object \n - * that can be serialized as request query string provided. If a custom \n - * method is not provided, any filter will not be serialized. \n - * \n - * Parameters: \n - * filter - {<OpenLayers.Filter>} filter to convert. \n - * params - {Object} The parameters object. \n - * \n - * Returns: \n - * {Object} The resulting parameters object. \n - */\n -\n - /** \n - * Method: createRequest\n - * Issues a request for features by creating injecting a script in the \n - * document head.\n - *\n - * Parameters:\n - * url - {String} Service URL.\n - * params - {Object} Query string parameters.\n - * callback - {Function} Callback to be called with resulting data.\n - *\n - * Returns:\n - * {HTMLScriptElement} The script pending execution.\n - */\n - createRequest: function(url, params, callback) {\n - var id = OpenLayers.Protocol.Script.register(callback);\n - var name = OpenLayers.String.format(this.callbackTemplate, {id: id});\n - params = OpenLayers.Util.extend({}, params);\n - params[this.callbackKey] = this.callbackPrefix + name;\n - url = OpenLayers.Util.urlAppend(\n - url, OpenLayers.Util.getParameterString(params)\n - );\n - var script = document.createElement("script");\n - script.type = "text/javascript";\n - script.src = url;\n - script.id = "OpenLayers_Protocol_Script_" + id;\n - this.pendingRequests[script.id] = script;\n - var head = document.getElementsByTagName("head")[0];\n - head.appendChild(script);\n - return script;\n - },\n - \n - /** \n - * Method: destroyRequest\n - * Remove a script node associated with a response from the document. Also\n - * unregisters the callback and removes the script from the \n - * <pendingRequests> object.\n - *\n - * Parameters:\n - * script - {HTMLScriptElement}\n - */\n - destroyRequest: function(script) {\n - OpenLayers.Protocol.Script.unregister(script.id.split("_").pop());\n - delete this.pendingRequests[script.id];\n - if (script.parentNode) {\n - script.parentNode.removeChild(script);\n - }\n - },\n -\n - /**\n - * Method: handleRead\n - * Individual callbacks are created for read, create and update, should\n - * a subclass need to override each one separately.\n - *\n - * Parameters:\n - * response - {<OpenLayers.Protocol.Response>} The response object to pass to\n - * the user callback.\n - * options - {Object} The user options passed to the read call.\n - */\n - handleRead: function(response, options) {\n - this.handleResponse(response, options);\n - },\n -\n - /**\n - * Method: handleResponse\n - * Called by CRUD specific handlers.\n - *\n - * Parameters:\n - * response - {<OpenLayers.Protocol.Response>} The response object to pass to\n - * any user callback.\n - * options - {Object} The user options passed to the create, read, update,\n - * or delete call.\n - */\n - handleResponse: function(response, options) {\n - if (options.callback) {\n - if (response.data) {\n - response.features = this.parseFeatures(response.data);\n - response.code = OpenLayers.Protocol.Response.SUCCESS;\n - } else {\n - response.code = OpenLayers.Protocol.Response.FAILURE;\n - }\n - this.destroyRequest(response.priv);\n - options.callback.call(options.scope, response);\n - }\n - },\n -\n - /**\n - * Method: parseFeatures\n - * Read Script response body and return features.\n - *\n - * Parameters:\n - * data - {Object} The data sent to the callback function by the server.\n - *\n - * Returns:\n - * {Array({<OpenLayers.Feature.Vector>})} or\n - * {<OpenLayers.Feature.Vector>} Array of features or a single feature.\n - */\n - parseFeatures: function(data) {\n - return this.format.read(data);\n - },\n -\n - /**\n - * APIMethod: abort\n - * Abort an ongoing request. If no response is provided, all pending \n - * requests will be aborted.\n - *\n - * Parameters:\n - * response - {<OpenLayers.Protocol.Response>} The response object returned\n - * from a <read> request.\n - */\n - abort: function(response) {\n - if (response) {\n - this.destroyRequest(response.priv);\n - } else {\n - for (var key in this.pendingRequests) {\n - this.destroyRequest(this.pendingRequests[key]);\n - }\n - }\n - },\n - \n - /**\n - * APIMethod: destroy\n - * Clean up the protocol.\n - */\n - destroy: function() {\n - this.abort();\n - delete this.params;\n - delete this.format;\n - OpenLayers.Protocol.prototype.destroy.apply(this);\n - },\n -\n - CLASS_NAME: "OpenLayers.Protocol.Script" \n -});\n -\n -(function() {\n - var o = OpenLayers.Protocol.Script;\n - var counter = 0;\n - o.registry = {};\n - \n - /**\n - * Function: OpenLayers.Protocol.Script.register\n - * Register a callback for a newly created script.\n - *\n - * Parameters:\n - * callback - {Function} The callback to be executed when the newly added\n - * script loads. This callback will be called with a single argument\n - * that is the JSON returned by the service.\n - *\n - * Returns:\n - * {Number} An identifier for retrieving the registered callback.\n - */\n - o.register = function(callback) {\n - var id = "c"+(++counter);\n - o.registry[id] = function() {\n - callback.apply(this, arguments);\n - };\n - return id;\n - };\n - \n - /**\n - * Function: OpenLayers.Protocol.Script.unregister\n - * Unregister a callback previously registered with the register function.\n - *\n - * Parameters:\n - * id - {Number} The identifer returned by the register function.\n - */\n - o.unregister = function(id) {\n - delete o.registry[id];\n - };\n -})();\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>13112</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS.js.xml deleted file mode 100644 index 873a3d889f273910552308d3898428c7251fb694..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS.js.xml +++ /dev/null @@ -1,130 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>WFS.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Protocol.js\n - */\n -\n -/**\n - * Class: OpenLayers.Protocol.WFS\n - * Used to create a versioned WFS protocol. Default version is 1.0.0.\n - *\n - * Returns:\n - * {<OpenLayers.Protocol>} A WFS protocol of the given version.\n - *\n - * Example:\n - * (code)\n - * var protocol = new OpenLayers.Protocol.WFS({\n - * version: "1.1.0",\n - * url: "http://demo.opengeo.org/geoserver/wfs",\n - * featureType: "tasmania_roads",\n - * featureNS: "http://www.openplans.org/topp",\n - * geometryName: "the_geom"\n - * });\n - * (end)\n - *\n - * See the protocols for specific WFS versions for more detail.\n - */\n -OpenLayers.Protocol.WFS = function(options) {\n - options = OpenLayers.Util.applyDefaults(\n - options, OpenLayers.Protocol.WFS.DEFAULTS\n - );\n - var cls = OpenLayers.Protocol.WFS["v"+options.version.replace(/\\./g, "_")];\n - if(!cls) {\n - throw "Unsupported WFS version: " + options.version;\n - }\n - return new cls(options);\n -};\n -\n -/**\n - * Function: fromWMSLayer\n - * Convenience function to create a WFS protocol from a WMS layer. This makes\n - * the assumption that a WFS requests can be issued at the same URL as\n - * WMS requests and that a WFS featureType exists with the same name as the\n - * WMS layer.\n - * \n - * This function is designed to auto-configure <url>, <featureType>,\n - * <featurePrefix> and <srsName> for WFS <version> 1.1.0. Note that\n - * srsName matching with the WMS layer will not work with WFS 1.0.0.\n - * \n - * Parameters:\n - * layer - {<OpenLayers.Layer.WMS>} WMS layer that has a matching WFS\n - * FeatureType at the same server url with the same typename.\n - * options - {Object} Default properties to be set on the protocol.\n - *\n - * Returns:\n - * {<OpenLayers.Protocol.WFS>}\n - */\n -OpenLayers.Protocol.WFS.fromWMSLayer = function(layer, options) {\n - var typeName, featurePrefix;\n - var param = layer.params["LAYERS"];\n - var parts = (OpenLayers.Util.isArray(param) ? param[0] : param).split(":");\n - if(parts.length > 1) {\n - featurePrefix = parts[0];\n - }\n - typeName = parts.pop();\n - var protocolOptions = {\n - url: layer.url,\n - featureType: typeName,\n - featurePrefix: featurePrefix,\n - srsName: layer.projection && layer.projection.getCode() ||\n - layer.map && layer.map.getProjectionObject().getCode(),\n - version: "1.1.0"\n - };\n - return new OpenLayers.Protocol.WFS(OpenLayers.Util.applyDefaults(\n - options, protocolOptions\n - ));\n -};\n -\n -/**\n - * Constant: OpenLayers.Protocol.WFS.DEFAULTS\n - */\n -OpenLayers.Protocol.WFS.DEFAULTS = {\n - "version": "1.0.0"\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2834</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS.xml deleted file mode 100644 index 36db3902c6c36969a2f6e7b309c277bd54e37485..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>WFS</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Protocol/WFS</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS/v1.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS/v1.js.xml deleted file mode 100644 index 3fae5b6c93c3504e79ab77efad3ba44baa992a92..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS/v1.js.xml +++ /dev/null @@ -1,492 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Protocol/WFS.js\n - */\n -\n -/**\n - * Class: OpenLayers.Protocol.WFS.v1\n - * Abstract class for for v1.0.0 and v1.1.0 protocol.\n - *\n - * Inherits from:\n - * - <OpenLayers.Protocol>\n - */\n -OpenLayers.Protocol.WFS.v1 = OpenLayers.Class(OpenLayers.Protocol, {\n - \n - /**\n - * Property: version\n - * {String} WFS version number.\n - */\n - version: null,\n - \n - /**\n - * Property: srsName\n - * {String} Name of spatial reference system. Default is "EPSG:4326".\n - */\n - srsName: "EPSG:4326",\n - \n - /**\n - * Property: featureType\n - * {String} Local feature typeName.\n - */\n - featureType: null,\n - \n - /**\n - * Property: featureNS\n - * {String} Feature namespace.\n - */\n - featureNS: null,\n - \n - /**\n - * Property: geometryName\n - * {String} Name of the geometry attribute for features. Default is\n - * "the_geom" for WFS <version> 1.0, and null for higher versions.\n - */\n - geometryName: "the_geom",\n - \n - /**\n - * Property: schema\n - * {String} Optional schema location that will be included in the\n - * schemaLocation attribute value. Note that the feature type schema\n - * is required for a strict XML validator (on transactions with an\n - * insert for example), but is *not* required by the WFS specification\n - * (since the server is supposed to know about feature type schemas).\n - */\n - schema: null,\n -\n - /**\n - * Property: featurePrefix\n - * {String} Namespace alias for feature type. Default is "feature".\n - */\n - featurePrefix: "feature",\n - \n - /**\n - * Property: formatOptions\n - * {Object} Optional options for the format. If a format is not provided,\n - * this property can be used to extend the default format options.\n - */\n - formatOptions: null,\n -\n - /** \n - * Property: readFormat \n - * {<OpenLayers.Format>} For WFS requests it is possible to get a \n - * different output format than GML. In that case, we cannot parse \n - * the response with the default format (WFST) and we need a different \n - * format for reading. \n - */ \n - readFormat: null,\n - \n - /**\n - * Property: readOptions\n - * {Object} Optional object to pass to format\'s read.\n - */\n - readOptions: null,\n - \n - /**\n - * Constructor: OpenLayers.Protocol.WFS\n - * A class for giving layers WFS protocol.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - *\n - * Valid options properties:\n - * url - {String} URL to send requests to (required).\n - * featureType - {String} Local (without prefix) feature typeName (required).\n - * featureNS - {String} Feature namespace (required, but can be autodetected\n - * during the first query if GML is used as readFormat and\n - * featurePrefix is provided and matches the prefix used by the server\n - * for this featureType).\n - * featurePrefix - {String} Feature namespace alias (optional - only used\n - * for writing if featureNS is provided). Default is \'feature\'.\n - * geometryName - {String} Name of geometry attribute. The default is\n - * \'the_geom\' for WFS <version> 1.0, and null for higher versions. If\n - * null, it will be set to the name of the first geometry found in the\n - * first read operation.\n - * multi - {Boolean} If set to true, geometries will be casted to Multi\n - * geometries before they are written in a transaction. No casting will\n - * be done when reading features.\n - */\n - initialize: function(options) {\n - OpenLayers.Protocol.prototype.initialize.apply(this, [options]);\n - if(!options.format) {\n - this.format = OpenLayers.Format.WFST(OpenLayers.Util.extend({\n - version: this.version,\n - featureType: this.featureType,\n - featureNS: this.featureNS,\n - featurePrefix: this.featurePrefix,\n - geometryName: this.geometryName,\n - srsName: this.srsName,\n - schema: this.schema\n - }, this.formatOptions));\n - }\n - if (!options.geometryName && parseFloat(this.format.version) > 1.0) {\n - this.setGeometryName(null);\n - }\n - },\n - \n - /**\n - * APIMethod: destroy\n - * Clean up the protocol.\n - */\n - destroy: function() {\n - if(this.options && !this.options.format) {\n - this.format.destroy();\n - }\n - this.format = null;\n - OpenLayers.Protocol.prototype.destroy.apply(this);\n - },\n -\n - /**\n - * APIMethod: read\n - * Construct a request for reading new features. Since WFS splits the\n - * basic CRUD operations into GetFeature requests (for read) and\n - * Transactions (for all others), this method does not make use of the\n - * format\'s read method (that is only about reading transaction\n - * responses).\n - *\n - * Parameters:\n - * options - {Object} Options for the read operation, in addition to the\n - * options set on the instance (options set here will take precedence).\n - *\n - * To use a configured protocol to get e.g. a WFS hit count, applications\n - * could do the following:\n - *\n - * (code)\n - * protocol.read({\n - * readOptions: {output: "object"},\n - * resultType: "hits",\n - * maxFeatures: null,\n - * callback: function(resp) {\n - * // process resp.numberOfFeatures here\n - * }\n - * });\n - * (end)\n - *\n - * To use a configured protocol to use WFS paging (if supported by the\n - * server), applications could do the following:\n - *\n - * (code)\n - * protocol.read({\n - * startIndex: 0,\n - * count: 50\n - * });\n - * (end)\n - *\n - * To limit the attributes returned by the GetFeature request, applications\n - * can use the propertyNames option to specify the properties to include in\n - * the response:\n - *\n - * (code)\n - * protocol.read({\n - * propertyNames: ["DURATION", "INTENSITY"]\n - * });\n - * (end)\n - */\n - read: function(options) {\n - OpenLayers.Protocol.prototype.read.apply(this, arguments);\n - options = OpenLayers.Util.extend({}, options);\n - OpenLayers.Util.applyDefaults(options, this.options || {});\n - var response = new OpenLayers.Protocol.Response({requestType: "read"});\n - \n - var data = OpenLayers.Format.XML.prototype.write.apply(\n - this.format, [this.format.writeNode("wfs:GetFeature", options)]\n - );\n -\n - response.priv = OpenLayers.Request.POST({\n - url: options.url,\n - callback: this.createCallback(this.handleRead, response, options),\n - params: options.params,\n - headers: options.headers,\n - data: data\n - });\n -\n - return response;\n - },\n -\n - /**\n - * APIMethod: setFeatureType\n - * Change the feature type on the fly.\n - *\n - * Parameters:\n - * featureType - {String} Local (without prefix) feature typeName.\n - */\n - setFeatureType: function(featureType) {\n - this.featureType = featureType;\n - this.format.featureType = featureType;\n - },\n - \n - /**\n - * APIMethod: setGeometryName\n - * Sets the geometryName option after instantiation.\n - *\n - * Parameters:\n - * geometryName - {String} Name of geometry attribute.\n - */\n - setGeometryName: function(geometryName) {\n - this.geometryName = geometryName;\n - this.format.geometryName = geometryName;\n - },\n - \n - /**\n - * Method: handleRead\n - * Deal with response from the read request.\n - *\n - * Parameters:\n - * response - {<OpenLayers.Protocol.Response>} The response object to pass\n - * to the user callback.\n - * options - {Object} The user options passed to the read call.\n - */\n - handleRead: function(response, options) {\n - options = OpenLayers.Util.extend({}, options);\n - OpenLayers.Util.applyDefaults(options, this.options);\n -\n - if(options.callback) {\n - var request = response.priv;\n - if(request.status >= 200 && request.status < 300) {\n - // success\n - var result = this.parseResponse(request, options.readOptions);\n - if (result && result.success !== false) { \n - if (options.readOptions && options.readOptions.output == "object") {\n - OpenLayers.Util.extend(response, result);\n - } else {\n - response.features = result;\n - }\n - response.code = OpenLayers.Protocol.Response.SUCCESS;\n - } else {\n - // failure (service exception)\n - response.code = OpenLayers.Protocol.Response.FAILURE;\n - response.error = result;\n - }\n - } else {\n - // failure\n - response.code = OpenLayers.Protocol.Response.FAILURE;\n - }\n - options.callback.call(options.scope, response);\n - }\n - },\n -\n - /**\n - * Method: parseResponse\n - * Read HTTP response body and return features\n - *\n - * Parameters:\n - * request - {XMLHttpRequest} The request object\n - * options - {Object} Optional object to pass to format\'s read\n - *\n - * Returns:\n - * {Object} or {Array({<OpenLayers.Feature.Vector>})} or\n - * {<OpenLayers.Feature.Vector>} \n - * An object with a features property, an array of features or a single \n - * feature.\n - */\n - parseResponse: function(request, options) {\n - var doc = request.responseXML;\n - if(!doc || !doc.documentElement) {\n - doc = request.responseText;\n - }\n - if(!doc || doc.length <= 0) {\n - return null;\n - }\n - var result = (this.readFormat !== null) ? this.readFormat.read(doc) : \n - this.format.read(doc, options);\n - if (!this.featureNS) {\n - var format = this.readFormat || this.format;\n - this.featureNS = format.featureNS;\n - // no need to auto-configure again on subsequent reads\n - format.autoConfig = false;\n - if (!this.geometryName) {\n - this.setGeometryName(format.geometryName);\n - }\n - }\n - return result;\n - },\n -\n - /**\n - * Method: commit\n - * Given a list of feature, assemble a batch request for update, create,\n - * and delete transactions. A commit call on the prototype amounts\n - * to writing a WFS transaction - so the write method on the format\n - * is used.\n - *\n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)}\n - * options - {Object}\n - *\n - * Valid options properties:\n - * nativeElements - {Array({Object})} Array of objects with information for writing\n - * out <Native> elements, these objects have vendorId, safeToIgnore and\n - * value properties. The <Native> element is intended to allow access to \n - * vendor specific capabilities of any particular web feature server or \n - * datastore.\n - *\n - * Returns:\n - * {<OpenLayers.Protocol.Response>} A response object with a features\n - * property containing any insertIds and a priv property referencing\n - * the XMLHttpRequest object.\n - */\n - commit: function(features, options) {\n -\n - options = OpenLayers.Util.extend({}, options);\n - OpenLayers.Util.applyDefaults(options, this.options);\n - \n - var response = new OpenLayers.Protocol.Response({\n - requestType: "commit",\n - reqFeatures: features\n - });\n - response.priv = OpenLayers.Request.POST({\n - url: options.url,\n - headers: options.headers,\n - data: this.format.write(features, options),\n - callback: this.createCallback(this.handleCommit, response, options)\n - });\n - \n - return response;\n - },\n - \n - /**\n - * Method: handleCommit\n - * Called when the commit request returns.\n - * \n - * Parameters:\n - * response - {<OpenLayers.Protocol.Response>} The response object to pass\n - * to the user callback.\n - * options - {Object} The user options passed to the commit call.\n - */\n - handleCommit: function(response, options) {\n - if(options.callback) {\n - var request = response.priv;\n -\n - // ensure that we have an xml doc\n - var data = request.responseXML;\n - if(!data || !data.documentElement) {\n - data = request.responseText;\n - }\n - \n - var obj = this.format.read(data) || {};\n - \n - response.insertIds = obj.insertIds || [];\n - if (obj.success) {\n - response.code = OpenLayers.Protocol.Response.SUCCESS;\n - } else {\n - response.code = OpenLayers.Protocol.Response.FAILURE;\n - response.error = obj;\n - }\n - options.callback.call(options.scope, response);\n - }\n - },\n - \n - /**\n - * Method: filterDelete\n - * Send a request that deletes all features by their filter.\n - * \n - * Parameters:\n - * filter - {<OpenLayers.Filter>} filter\n - */\n - filterDelete: function(filter, options) {\n - options = OpenLayers.Util.extend({}, options);\n - OpenLayers.Util.applyDefaults(options, this.options); \n - \n - var response = new OpenLayers.Protocol.Response({\n - requestType: "commit"\n - }); \n - \n - var root = this.format.createElementNSPlus("wfs:Transaction", {\n - attributes: {\n - service: "WFS",\n - version: this.version\n - }\n - });\n - \n - var deleteNode = this.format.createElementNSPlus("wfs:Delete", {\n - attributes: {\n - typeName: (options.featureNS ? this.featurePrefix + ":" : "") +\n - options.featureType\n - }\n - }); \n - \n - if(options.featureNS) {\n - deleteNode.setAttribute("xmlns:" + this.featurePrefix, options.featureNS);\n - }\n - var filterNode = this.format.writeNode("ogc:Filter", filter);\n - \n - deleteNode.appendChild(filterNode);\n - \n - root.appendChild(deleteNode);\n - \n - var data = OpenLayers.Format.XML.prototype.write.apply(\n - this.format, [root]\n - );\n - \n - return OpenLayers.Request.POST({\n - url: this.url,\n - callback : options.callback || function(){},\n - data: data\n - }); \n - \n - },\n -\n - /**\n - * Method: abort\n - * Abort an ongoing request, the response object passed to\n - * this method must come from this protocol (as a result\n - * of a read, or commit operation).\n - *\n - * Parameters:\n - * response - {<OpenLayers.Protocol.Response>}\n - */\n - abort: function(response) {\n - if (response) {\n - response.priv.abort();\n - }\n - },\n - \n - CLASS_NAME: "OpenLayers.Protocol.WFS.v1" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>15122</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS/v1_0_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS/v1_0_0.js.xml deleted file mode 100644 index 1a1dc17d0b4f8133316d139bacd3e8dacba16147..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS/v1_0_0.js.xml +++ /dev/null @@ -1,88 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_0_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Protocol/WFS/v1.js\n - * @requires OpenLayers/Format/WFST/v1_0_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Protocol.WFS.v1_0_0\n - * A WFS v1.0.0 protocol for vector layers. Create a new instance with the\n - * <OpenLayers.Protocol.WFS.v1_0_0> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Protocol.WFS.v1>\n - */\n -OpenLayers.Protocol.WFS.v1_0_0 = OpenLayers.Class(OpenLayers.Protocol.WFS.v1, {\n - \n - /**\n - * Property: version\n - * {String} WFS version number.\n - */\n - version: "1.0.0",\n - \n - /**\n - * Constructor: OpenLayers.Protocol.WFS.v1_0_0\n - * A class for giving layers WFS v1.0.0 protocol.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - *\n - * Valid options properties:\n - * featureType - {String} Local (without prefix) feature typeName (required).\n - * featureNS - {String} Feature namespace (optional).\n - * featurePrefix - {String} Feature namespace alias (optional - only used\n - * if featureNS is provided). Default is \'feature\'.\n - * geometryName - {String} Name of geometry attribute. Default is \'the_geom\'.\n - */\n - \n - CLASS_NAME: "OpenLayers.Protocol.WFS.v1_0_0" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1481</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS/v1_1_0.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS/v1_1_0.js.xml deleted file mode 100644 index 81761188bb2da115b9c748a262a752aaf1604a15..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Protocol/WFS/v1_1_0.js.xml +++ /dev/null @@ -1,112 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.82</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>v1_1_0.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Protocol/WFS/v1.js\n - * @requires OpenLayers/Format/WFST/v1_1_0.js\n - */\n -\n -/**\n - * Class: OpenLayers.Protocol.WFS.v1_1_0\n - * A WFS v1.1.0 protocol for vector layers. Create a new instance with the\n - * <OpenLayers.Protocol.WFS.v1_1_0> constructor.\n - *\n - * Differences from the v1.0.0 protocol:\n - * - uses Filter Encoding 1.1.0 instead of 1.0.0\n - * - uses GML 3 instead of 2 if no format is provided\n - * \n - * Inherits from:\n - * - <OpenLayers.Protocol.WFS.v1>\n - */\n -OpenLayers.Protocol.WFS.v1_1_0 = OpenLayers.Class(OpenLayers.Protocol.WFS.v1, {\n - \n - /**\n - * Property: version\n - * {String} WFS version number.\n - */\n - version: "1.1.0",\n - \n - /**\n - * Constructor: OpenLayers.Protocol.WFS.v1_1_0\n - * A class for giving layers WFS v1.1.0 protocol.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - *\n - * Valid options properties:\n - * featureType - {String} Local (without prefix) feature typeName (required).\n - * featureNS - {String} Feature namespace (optional).\n - * featurePrefix - {String} Feature namespace alias (optional - only used\n - * if featureNS is provided). Default is \'feature\'.\n - * geometryName - {String} Name of geometry attribute. Default is \'the_geom\'.\n - * outputFormat - {String} Optional output format to use for WFS GetFeature\n - * requests. This can be any format advertized by the WFS\'s\n - * GetCapabilities response. If set, an appropriate readFormat also\n - * has to be provided, unless outputFormat is GML3, GML2 or JSON.\n - * readFormat - {<OpenLayers.Format>} An appropriate format parser if\n - * outputFormat is none of GML3, GML2 or JSON.\n - */\n - initialize: function(options) {\n - OpenLayers.Protocol.WFS.v1.prototype.initialize.apply(this, arguments);\n - if (this.outputFormat && !this.readFormat) {\n - if (this.outputFormat.toLowerCase() == "gml2") {\n - this.readFormat = new OpenLayers.Format.GML.v2({\n - featureType: this.featureType,\n - featureNS: this.featureNS,\n - geometryName: this.geometryName\n - });\n - } else if (this.outputFormat.toLowerCase() == "json") {\n - this.readFormat = new OpenLayers.Format.GeoJSON();\n - }\n - }\n - },\n - \n - CLASS_NAME: "OpenLayers.Protocol.WFS.v1_1_0"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2689</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer.js.xml deleted file mode 100644 index 91ee22d8a90a44a8ebcdff54637411dd3efc122d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer.js.xml +++ /dev/null @@ -1,476 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.76</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Renderer.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - */\n -\n -/**\n - * Class: OpenLayers.Renderer \n - * This is the base class for all renderers.\n - *\n - * This is based on a merger code written by Paul Spencer and Bertil Chapuis.\n - * It is largely composed of virtual functions that are to be implemented\n - * in technology-specific subclasses, but there is some generic code too.\n - * \n - * The functions that *are* implemented here merely deal with the maintenance\n - * of the size and extent variables, as well as the cached \'resolution\' \n - * value. \n - * \n - * A note to the user that all subclasses should use getResolution() instead\n - * of directly accessing this.resolution in order to correctly use the \n - * cacheing system.\n - *\n - */\n -OpenLayers.Renderer = OpenLayers.Class({\n -\n - /** \n - * Property: container\n - * {DOMElement} \n - */\n - container: null,\n - \n - /**\n - * Property: root\n - * {DOMElement}\n - */\n - root: null,\n -\n - /** \n - * Property: extent\n - * {<OpenLayers.Bounds>}\n - */\n - extent: null,\n -\n - /**\n - * Property: locked\n - * {Boolean} If the renderer is currently in a state where many things\n - * are changing, the \'locked\' property is set to true. This means \n - * that renderers can expect at least one more drawFeature event to be\n - * called with the \'locked\' property set to \'true\': In some renderers,\n - * this might make sense to use as a \'only update local information\'\n - * flag. \n - */ \n - locked: false,\n - \n - /** \n - * Property: size\n - * {<OpenLayers.Size>} \n - */\n - size: null,\n - \n - /**\n - * Property: resolution\n - * {Float} cache of current map resolution\n - */\n - resolution: null,\n - \n - /**\n - * Property: map \n - * {<OpenLayers.Map>} Reference to the map -- this is set in Vector\'s setMap()\n - */\n - map: null,\n - \n - /**\n - * Property: featureDx\n - * {Number} Feature offset in x direction. Will be calculated for and\n - * applied to the current feature while rendering (see\n - * <calculateFeatureDx>).\n - */\n - featureDx: 0,\n - \n - /**\n - * Constructor: OpenLayers.Renderer \n - *\n - * Parameters:\n - * containerID - {<String>} \n - * options - {Object} options for this renderer. See sublcasses for\n - * supported options.\n - */\n - initialize: function(containerID, options) {\n - this.container = OpenLayers.Util.getElement(containerID);\n - OpenLayers.Util.extend(this, options);\n - },\n - \n - /**\n - * APIMethod: destroy\n - */\n - destroy: function() {\n - this.container = null;\n - this.extent = null;\n - this.size = null;\n - this.resolution = null;\n - this.map = null;\n - },\n -\n - /**\n - * APIMethod: supported\n - * This should be overridden by specific subclasses\n - * \n - * Returns:\n - * {Boolean} Whether or not the browser supports the renderer class\n - */\n - supported: function() {\n - return false;\n - }, \n - \n - /**\n - * Method: setExtent\n - * Set the visible part of the layer.\n - *\n - * Resolution has probably changed, so we nullify the resolution \n - * cache (this.resolution) -- this way it will be re-computed when \n - * next it is needed.\n - * We nullify the resolution cache (this.resolution) if resolutionChanged\n - * is set to true - this way it will be re-computed on the next\n - * getResolution() request.\n - *\n - * Parameters:\n - * extent - {<OpenLayers.Bounds>}\n - * resolutionChanged - {Boolean}\n - *\n - * Returns:\n - * {Boolean} true to notify the layer that the new extent does not exceed\n - * the coordinate range, and the features will not need to be redrawn.\n - * False otherwise.\n - */\n - setExtent: function(extent, resolutionChanged) {\n - this.extent = extent.clone();\n - if (this.map.baseLayer && this.map.baseLayer.wrapDateLine) {\n - var ratio = extent.getWidth() / this.map.getExtent().getWidth(),\n - extent = extent.scale(1 / ratio);\n - this.extent = extent.wrapDateLine(this.map.getMaxExtent()).scale(ratio);\n - }\n - if (resolutionChanged) {\n - this.resolution = null;\n - }\n - return true;\n - },\n - \n - /**\n - * Method: setSize\n - * Sets the size of the drawing surface.\n - * \n - * Resolution has probably changed, so we nullify the resolution \n - * cache (this.resolution) -- this way it will be re-computed when \n - * next it is needed.\n - *\n - * Parameters:\n - * size - {<OpenLayers.Size>} \n - */\n - setSize: function(size) {\n - this.size = size.clone();\n - this.resolution = null;\n - },\n - \n - /** \n - * Method: getResolution\n - * Uses cached copy of resolution if available to minimize computing\n - * \n - * Returns:\n - * {Float} The current map\'s resolution\n - */\n - getResolution: function() {\n - this.resolution = this.resolution || this.map.getResolution();\n - return this.resolution;\n - },\n - \n - /**\n - * Method: drawFeature\n - * Draw the feature. The optional style argument can be used\n - * to override the feature\'s own style. This method should only\n - * be called from layer.drawFeature().\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} \n - * style - {<Object>}\n - * \n - * Returns:\n - * {Boolean} true if the feature has been drawn completely, false if not,\n - * undefined if the feature had no geometry\n - */\n - drawFeature: function(feature, style) {\n - if(style == null) {\n - style = feature.style;\n - }\n - if (feature.geometry) {\n - var bounds = feature.geometry.getBounds();\n - if(bounds) {\n - var worldBounds;\n - if (this.map.baseLayer && this.map.baseLayer.wrapDateLine) {\n - worldBounds = this.map.getMaxExtent();\n - }\n - if (!bounds.intersectsBounds(this.extent, {worldBounds: worldBounds})) {\n - style = {display: "none"};\n - } else {\n - this.calculateFeatureDx(bounds, worldBounds);\n - }\n - var rendered = this.drawGeometry(feature.geometry, style, feature.id);\n - if(style.display != "none" && style.label && rendered !== false) {\n -\n - var location = feature.geometry.getCentroid(); \n - if(style.labelXOffset || style.labelYOffset) {\n - var xOffset = isNaN(style.labelXOffset) ? 0 : style.labelXOffset;\n - var yOffset = isNaN(style.labelYOffset) ? 0 : style.labelYOffset;\n - var res = this.getResolution();\n - location.move(xOffset*res, yOffset*res);\n - }\n - this.drawText(feature.id, style, location);\n - } else {\n - this.removeText(feature.id);\n - }\n - return rendered;\n - }\n - }\n - },\n -\n - /**\n - * Method: calculateFeatureDx\n - * {Number} Calculates the feature offset in x direction. Looking at the\n - * center of the feature bounds and the renderer extent, we calculate how\n - * many world widths the two are away from each other. This distance is\n - * used to shift the feature as close as possible to the center of the\n - * current enderer extent, which ensures that the feature is visible in the\n - * current viewport.\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>} Bounds of the feature\n - * worldBounds - {<OpenLayers.Bounds>} Bounds of the world\n - */\n - calculateFeatureDx: function(bounds, worldBounds) {\n - this.featureDx = 0;\n - if (worldBounds) {\n - var worldWidth = worldBounds.getWidth(),\n - rendererCenterX = (this.extent.left + this.extent.right) / 2,\n - featureCenterX = (bounds.left + bounds.right) / 2,\n - worldsAway = Math.round((featureCenterX - rendererCenterX) / worldWidth);\n - this.featureDx = worldsAway * worldWidth;\n - }\n - },\n -\n - /** \n - * Method: drawGeometry\n - * \n - * Draw a geometry. This should only be called from the renderer itself.\n - * Use layer.drawFeature() from outside the renderer.\n - * virtual function\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} \n - * style - {Object} \n - * featureId - {<String>} \n - */\n - drawGeometry: function(geometry, style, featureId) {},\n - \n - /**\n - * Method: drawText\n - * Function for drawing text labels.\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * featureId - {String}\n - * style -\n - * location - {<OpenLayers.Geometry.Point>}\n - */\n - drawText: function(featureId, style, location) {},\n -\n - /**\n - * Method: removeText\n - * Function for removing text labels.\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * featureId - {String}\n - */\n - removeText: function(featureId) {},\n - \n - /**\n - * Method: clear\n - * Clear all vectors from the renderer.\n - * virtual function.\n - */ \n - clear: function() {},\n -\n - /**\n - * Method: getFeatureIdFromEvent\n - * Returns a feature id from an event on the renderer. \n - * How this happens is specific to the renderer. This should be\n - * called from layer.getFeatureFromEvent().\n - * Virtual function.\n - * \n - * Parameters:\n - * evt - {<OpenLayers.Event>} \n - *\n - * Returns:\n - * {String} A feature id or undefined.\n - */\n - getFeatureIdFromEvent: function(evt) {},\n - \n - /**\n - * Method: eraseFeatures \n - * This is called by the layer to erase features\n - * \n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)} \n - */\n - eraseFeatures: function(features) {\n - if(!(OpenLayers.Util.isArray(features))) {\n - features = [features];\n - }\n - for(var i=0, len=features.length; i<len; ++i) {\n - var feature = features[i];\n - this.eraseGeometry(feature.geometry, feature.id);\n - this.removeText(feature.id);\n - }\n - },\n - \n - /**\n - * Method: eraseGeometry\n - * Remove a geometry from the renderer (by id).\n - * virtual function.\n - * \n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} \n - * featureId - {String}\n - */\n - eraseGeometry: function(geometry, featureId) {},\n - \n - /**\n - * Method: moveRoot\n - * moves this renderer\'s root to a (different) renderer.\n - * To be implemented by subclasses that require a common renderer root for\n - * feature selection.\n - * \n - * Parameters:\n - * renderer - {<OpenLayers.Renderer>} target renderer for the moved root\n - */\n - moveRoot: function(renderer) {},\n -\n - /**\n - * Method: getRenderLayerId\n - * Gets the layer that this renderer\'s output appears on. If moveRoot was\n - * used, this will be different from the id of the layer containing the\n - * features rendered by this renderer.\n - * \n - * Returns:\n - * {String} the id of the output layer.\n - */\n - getRenderLayerId: function() {\n - return this.container.id;\n - },\n - \n - /**\n - * Method: applyDefaultSymbolizer\n - * \n - * Parameters:\n - * symbolizer - {Object}\n - * \n - * Returns:\n - * {Object}\n - */\n - applyDefaultSymbolizer: function(symbolizer) {\n - var result = OpenLayers.Util.extend({},\n - OpenLayers.Renderer.defaultSymbolizer);\n - if(symbolizer.stroke === false) {\n - delete result.strokeWidth;\n - delete result.strokeColor;\n - }\n - if(symbolizer.fill === false) {\n - delete result.fillColor;\n - }\n - OpenLayers.Util.extend(result, symbolizer);\n - return result;\n - },\n -\n - CLASS_NAME: "OpenLayers.Renderer"\n -});\n -\n -/**\n - * Constant: OpenLayers.Renderer.defaultSymbolizer\n - * {Object} Properties from this symbolizer will be applied to symbolizers\n - * with missing properties. This can also be used to set a global\n - * symbolizer default in OpenLayers. To be SLD 1.x compliant, add the\n - * following code before rendering any vector features:\n - * (code)\n - * OpenLayers.Renderer.defaultSymbolizer = {\n - * fillColor: "#808080",\n - * fillOpacity: 1,\n - * strokeColor: "#000000",\n - * strokeOpacity: 1,\n - * strokeWidth: 1,\n - * pointRadius: 3,\n - * graphicName: "square"\n - * };\n - * (end)\n - */\n -OpenLayers.Renderer.defaultSymbolizer = {\n - fillColor: "#000000",\n - strokeColor: "#000000",\n - strokeWidth: 2,\n - fillOpacity: 1,\n - strokeOpacity: 1,\n - pointRadius: 0,\n - labelAlign: \'cm\'\n -};\n - \n -\n -\n -/**\n - * Constant: OpenLayers.Renderer.symbol\n - * Coordinate arrays for well known (named) symbols.\n - */\n -OpenLayers.Renderer.symbol = {\n - "star": [350,75, 379,161, 469,161, 397,215, 423,301, 350,250, 277,301,\n - 303,215, 231,161, 321,161, 350,75],\n - "cross": [4,0, 6,0, 6,4, 10,4, 10,6, 6,6, 6,10, 4,10, 4,6, 0,6, 0,4, 4,4,\n - 4,0],\n - "x": [0,0, 25,0, 50,35, 75,0, 100,0, 65,50, 100,100, 75,100, 50,65, 25,100, 0,100, 35,50, 0,0],\n - "square": [0,0, 0,1, 1,1, 1,0, 0,0],\n - "triangle": [0,10, 10,10, 5,0, 0,10]\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>13322</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer.xml deleted file mode 100644 index d084f0cac3cd6b231a305bdc2d8a3e6f4afed28b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Renderer</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Renderer</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer/Canvas.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer/Canvas.js.xml deleted file mode 100644 index e251beb8c15f98182e4181b4f5191de2a1f8b452..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer/Canvas.js.xml +++ /dev/null @@ -1,948 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Canvas.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Renderer.js\n - */\n -\n -/**\n - * Class: OpenLayers.Renderer.Canvas \n - * A renderer based on the 2D \'canvas\' drawing element.\n - * \n - * Inherits:\n - * - <OpenLayers.Renderer>\n - */\n -OpenLayers.Renderer.Canvas = OpenLayers.Class(OpenLayers.Renderer, {\n - \n - /**\n - * APIProperty: hitDetection\n - * {Boolean} Allow for hit detection of features. Default is true.\n - */\n - hitDetection: true,\n - \n - /**\n - * Property: hitOverflow\n - * {Number} The method for converting feature identifiers to color values\n - * supports 16777215 sequential values. Two features cannot be \n - * predictably detected if their identifiers differ by more than this\n - * value. The hitOverflow allows for bigger numbers (but the \n - * difference in values is still limited).\n - */\n - hitOverflow: 0,\n -\n - /**\n - * Property: canvas\n - * {Canvas} The canvas context object.\n - */\n - canvas: null, \n - \n - /**\n - * Property: features\n - * {Object} Internal object of feature/style pairs for use in redrawing the layer.\n - */\n - features: null,\n - \n - /**\n - * Property: pendingRedraw\n - * {Boolean} The renderer needs a redraw call to render features added while\n - * the renderer was locked.\n - */\n - pendingRedraw: false,\n - \n - /**\n - * Property: cachedSymbolBounds\n - * {Object} Internal cache of calculated symbol extents.\n - */\n - cachedSymbolBounds: {},\n - \n - /**\n - * Constructor: OpenLayers.Renderer.Canvas\n - *\n - * Parameters:\n - * containerID - {<String>}\n - * options - {Object} Optional properties to be set on the renderer.\n - */\n - initialize: function(containerID, options) {\n - OpenLayers.Renderer.prototype.initialize.apply(this, arguments);\n - this.root = document.createElement("canvas");\n - this.container.appendChild(this.root);\n - this.canvas = this.root.getContext("2d");\n - this.features = {};\n - if (this.hitDetection) {\n - this.hitCanvas = document.createElement("canvas");\n - this.hitContext = this.hitCanvas.getContext("2d");\n - }\n - },\n - \n - /**\n - * Method: setExtent\n - * Set the visible part of the layer.\n - *\n - * Parameters:\n - * extent - {<OpenLayers.Bounds>}\n - * resolutionChanged - {Boolean}\n - *\n - * Returns:\n - * {Boolean} true to notify the layer that the new extent does not exceed\n - * the coordinate range, and the features will not need to be redrawn.\n - * False otherwise.\n - */\n - setExtent: function() {\n - OpenLayers.Renderer.prototype.setExtent.apply(this, arguments);\n - // always redraw features\n - return false;\n - },\n - \n - /** \n - * Method: eraseGeometry\n - * Erase a geometry from the renderer. Because the Canvas renderer has\n - * \'memory\' of the features that it has drawn, we have to remove the\n - * feature so it doesn\'t redraw. \n - * \n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - * featureId - {String}\n - */\n - eraseGeometry: function(geometry, featureId) {\n - this.eraseFeatures(this.features[featureId][0]);\n - },\n -\n - /**\n - * APIMethod: supported\n - * \n - * Returns:\n - * {Boolean} Whether or not the browser supports the renderer class\n - */\n - supported: function() {\n - return OpenLayers.CANVAS_SUPPORTED;\n - }, \n - \n - /**\n - * Method: setSize\n - * Sets the size of the drawing surface.\n - *\n - * Once the size is updated, redraw the canvas.\n - *\n - * Parameters:\n - * size - {<OpenLayers.Size>} \n - */\n - setSize: function(size) {\n - this.size = size.clone();\n - var root = this.root;\n - root.style.width = size.w + "px";\n - root.style.height = size.h + "px";\n - root.width = size.w;\n - root.height = size.h;\n - this.resolution = null;\n - if (this.hitDetection) {\n - var hitCanvas = this.hitCanvas;\n - hitCanvas.style.width = size.w + "px";\n - hitCanvas.style.height = size.h + "px";\n - hitCanvas.width = size.w;\n - hitCanvas.height = size.h;\n - }\n - },\n - \n - /**\n - * Method: drawFeature\n - * Draw the feature. Stores the feature in the features list,\n - * then redraws the layer. \n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>} \n - * style - {<Object>} \n - *\n - * Returns:\n - * {Boolean} The feature has been drawn completely. If the feature has no\n - * geometry, undefined will be returned. If the feature is not rendered\n - * for other reasons, false will be returned.\n - */\n - drawFeature: function(feature, style) {\n - var rendered;\n - if (feature.geometry) {\n - style = this.applyDefaultSymbolizer(style || feature.style);\n - // don\'t render if display none or feature outside extent\n - var bounds = feature.geometry.getBounds();\n -\n - var worldBounds;\n - if (this.map.baseLayer && this.map.baseLayer.wrapDateLine) {\n - worldBounds = this.map.getMaxExtent();\n - }\n -\n - var intersects = bounds && bounds.intersectsBounds(this.extent, {worldBounds: worldBounds});\n -\n - rendered = (style.display !== "none") && !!bounds && intersects;\n - if (rendered) {\n - // keep track of what we have rendered for redraw\n - this.features[feature.id] = [feature, style];\n - }\n - else {\n - // remove from features tracked for redraw\n - delete(this.features[feature.id]);\n - }\n - this.pendingRedraw = true;\n - }\n - if (this.pendingRedraw && !this.locked) {\n - this.redraw();\n - this.pendingRedraw = false;\n - }\n - return rendered;\n - },\n -\n - /** \n - * Method: drawGeometry\n - * Used when looping (in redraw) over the features; draws\n - * the canvas. \n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>} \n - * style - {Object} \n - */\n - drawGeometry: function(geometry, style, featureId) {\n - var className = geometry.CLASS_NAME;\n - if ((className == "OpenLayers.Geometry.Collection") ||\n - (className == "OpenLayers.Geometry.MultiPoint") ||\n - (className == "OpenLayers.Geometry.MultiLineString") ||\n - (className == "OpenLayers.Geometry.MultiPolygon")) {\n - for (var i = 0; i < geometry.components.length; i++) {\n - this.drawGeometry(geometry.components[i], style, featureId);\n - }\n - return;\n - }\n - switch (geometry.CLASS_NAME) {\n - case "OpenLayers.Geometry.Point":\n - this.drawPoint(geometry, style, featureId);\n - break;\n - case "OpenLayers.Geometry.LineString":\n - this.drawLineString(geometry, style, featureId);\n - break;\n - case "OpenLayers.Geometry.LinearRing":\n - this.drawLinearRing(geometry, style, featureId);\n - break;\n - case "OpenLayers.Geometry.Polygon":\n - this.drawPolygon(geometry, style, featureId);\n - break;\n - default:\n - break;\n - }\n - },\n -\n - /**\n - * Method: drawExternalGraphic\n - * Called to draw External graphics. \n - * \n - * Parameters: \n - * geometry - {<OpenLayers.Geometry>}\n - * style - {Object}\n - * featureId - {String}\n - */ \n - drawExternalGraphic: function(geometry, style, featureId) {\n - var img = new Image();\n -\n - if (style.graphicTitle) {\n - img.title = style.graphicTitle; \n - }\n -\n - var width = style.graphicWidth || style.graphicHeight;\n - var height = style.graphicHeight || style.graphicWidth;\n - width = width ? width : style.pointRadius * 2;\n - height = height ? height : style.pointRadius * 2;\n - var xOffset = (style.graphicXOffset != undefined) ?\n - style.graphicXOffset : -(0.5 * width);\n - var yOffset = (style.graphicYOffset != undefined) ?\n - style.graphicYOffset : -(0.5 * height);\n -\n - var opacity = style.graphicOpacity || style.fillOpacity;\n - \n - var onLoad = function() {\n - if(!this.features[featureId]) {\n - return;\n - }\n - var pt = this.getLocalXY(geometry);\n - var p0 = pt[0];\n - var p1 = pt[1];\n - if(!isNaN(p0) && !isNaN(p1)) {\n - var x = (p0 + xOffset) | 0;\n - var y = (p1 + yOffset) | 0;\n - var canvas = this.canvas;\n - canvas.globalAlpha = opacity;\n - var factor = OpenLayers.Renderer.Canvas.drawImageScaleFactor ||\n - (OpenLayers.Renderer.Canvas.drawImageScaleFactor =\n - /android 2.1/.test(navigator.userAgent.toLowerCase()) ?\n - // 320 is the screen width of the G1 phone, for\n - // which drawImage works out of the box.\n - 320 / window.screen.width : 1\n - );\n - canvas.drawImage(\n - img, x*factor, y*factor, width*factor, height*factor\n - );\n - if (this.hitDetection) {\n - this.setHitContextStyle("fill", featureId);\n - this.hitContext.fillRect(x, y, width, height);\n - }\n - }\n - };\n -\n - img.onload = OpenLayers.Function.bind(onLoad, this);\n - img.src = style.externalGraphic;\n - },\n -\n - /**\n - * Method: drawNamedSymbol\n - * Called to draw Well Known Graphic Symbol Name. \n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * geometry - {<OpenLayers.Geometry>}\n - * style - {Object}\n - * featureId - {String}\n - */ \n - drawNamedSymbol: function(geometry, style, featureId) {\n - var x, y, cx, cy, i, symbolBounds, scaling, angle;\n - var unscaledStrokeWidth;\n - var deg2rad = Math.PI / 180.0;\n - \n - var symbol = OpenLayers.Renderer.symbol[style.graphicName];\n - \n - if (!symbol) {\n - throw new Error(style.graphicName + \' is not a valid symbol name\');\n - }\n - \n - if (!symbol.length || symbol.length < 2) return;\n - \n - var pt = this.getLocalXY(geometry);\n - var p0 = pt[0];\n - var p1 = pt[1];\n - \n - if (isNaN(p0) || isNaN(p1)) return;\n - \n - // Use rounded line caps\n - this.canvas.lineCap = "round";\n - this.canvas.lineJoin = "round";\n - \n - if (this.hitDetection) {\n - this.hitContext.lineCap = "round";\n - this.hitContext.lineJoin = "round";\n - }\n - \n - // Scale and rotate symbols, using precalculated bounds whenever possible.\n - if (style.graphicName in this.cachedSymbolBounds) {\n - symbolBounds = this.cachedSymbolBounds[style.graphicName];\n - } else {\n - symbolBounds = new OpenLayers.Bounds();\n - for(i = 0; i < symbol.length; i+=2) {\n - symbolBounds.extend(new OpenLayers.LonLat(symbol[i], symbol[i+1]));\n - }\n - this.cachedSymbolBounds[style.graphicName] = symbolBounds;\n - }\n - \n - // Push symbol scaling, translation and rotation onto the transformation stack in reverse order.\n - // Don\'t forget to apply all canvas transformations to the hitContext canvas as well(!)\n - this.canvas.save();\n - if (this.hitDetection) { this.hitContext.save(); }\n - \n - // Step 3: place symbol at the desired location\n - this.canvas.translate(p0,p1);\n - if (this.hitDetection) { this.hitContext.translate(p0,p1); }\n - \n - // Step 2a. rotate the symbol if necessary\n - angle = deg2rad * style.rotation; // will be NaN when style.rotation is undefined.\n - if (!isNaN(angle)) {\n - this.canvas.rotate(angle);\n - if (this.hitDetection) { this.hitContext.rotate(angle); }\n - }\n - \n - // // Step 2: scale symbol such that pointRadius equals half the maximum symbol dimension.\n - scaling = 2.0 * style.pointRadius / Math.max(symbolBounds.getWidth(), symbolBounds.getHeight());\n - this.canvas.scale(scaling,scaling);\n - if (this.hitDetection) { this.hitContext.scale(scaling,scaling); }\n - \n - // Step 1: center the symbol at the origin \n - cx = symbolBounds.getCenterLonLat().lon;\n - cy = symbolBounds.getCenterLonLat().lat;\n - this.canvas.translate(-cx,-cy);\n - if (this.hitDetection) { this.hitContext.translate(-cx,-cy); } \n -\n - // Don\'t forget to scale stroke widths, because they are affected by canvas scale transformations as well(!)\n - // Alternative: scale symbol coordinates manually, so stroke width scaling is not needed anymore.\n - unscaledStrokeWidth = style.strokeWidth;\n - style.strokeWidth = unscaledStrokeWidth / scaling;\n - \n - if (style.fill !== false) {\n - this.setCanvasStyle("fill", style);\n - this.canvas.beginPath();\n - for (i=0; i<symbol.length; i=i+2) {\n - x = symbol[i];\n - y = symbol[i+1];\n - if (i == 0) this.canvas.moveTo(x,y);\n - this.canvas.lineTo(x,y);\n - }\n - this.canvas.closePath();\n - this.canvas.fill();\n -\n - if (this.hitDetection) {\n - this.setHitContextStyle("fill", featureId, style);\n - this.hitContext.beginPath();\n - for (i=0; i<symbol.length; i=i+2) {\n - x = symbol[i];\n - y = symbol[i+1];\n - if (i == 0) this.canvas.moveTo(x,y);\n - this.hitContext.lineTo(x,y);\n - }\n - this.hitContext.closePath();\n - this.hitContext.fill();\n - }\n - } \n - \n - if (style.stroke !== false) {\n - this.setCanvasStyle("stroke", style);\n - this.canvas.beginPath();\n - for (i=0; i<symbol.length; i=i+2) {\n - x = symbol[i];\n - y = symbol[i+1];\n - if (i == 0) this.canvas.moveTo(x,y);\n - this.canvas.lineTo(x,y);\n - }\n - this.canvas.closePath();\n - this.canvas.stroke();\n - \n - \n - if (this.hitDetection) {\n - this.setHitContextStyle("stroke", featureId, style, scaling);\n - this.hitContext.beginPath();\n - for (i=0; i<symbol.length; i=i+2) {\n - x = symbol[i];\n - y = symbol[i+1];\n - if (i == 0) this.hitContext.moveTo(x,y);\n - this.hitContext.lineTo(x,y);\n - }\n - this.hitContext.closePath();\n - this.hitContext.stroke();\n - }\n - \n - }\n - \n - style.strokeWidth = unscaledStrokeWidth;\n - this.canvas.restore();\n - if (this.hitDetection) { this.hitContext.restore(); }\n - this.setCanvasStyle("reset"); \n - },\n -\n - /**\n - * Method: setCanvasStyle\n - * Prepare the canvas for drawing by setting various global settings.\n - *\n - * Parameters:\n - * type - {String} one of \'stroke\', \'fill\', or \'reset\'\n - * style - {Object} Symbolizer hash\n - */\n - setCanvasStyle: function(type, style) {\n - if (type === "fill") { \n - this.canvas.globalAlpha = style[\'fillOpacity\'];\n - this.canvas.fillStyle = style[\'fillColor\'];\n - } else if (type === "stroke") { \n - this.canvas.globalAlpha = style[\'strokeOpacity\'];\n - this.canvas.strokeStyle = style[\'strokeColor\'];\n - this.canvas.lineWidth = style[\'strokeWidth\'];\n - } else {\n - this.canvas.globalAlpha = 0;\n - this.canvas.lineWidth = 1;\n - }\n - },\n - \n - /**\n - * Method: featureIdToHex\n - * Convert a feature ID string into an RGB hex string.\n - *\n - * Parameters:\n - * featureId - {String} Feature id\n - *\n - * Returns:\n - * {String} RGB hex string.\n - */\n - featureIdToHex: function(featureId) {\n - var id = Number(featureId.split("_").pop()) + 1; // zero for no feature\n - if (id >= 16777216) {\n - this.hitOverflow = id - 16777215;\n - id = id % 16777216 + 1;\n - }\n - var hex = "000000" + id.toString(16);\n - var len = hex.length;\n - hex = "#" + hex.substring(len-6, len);\n - return hex;\n - },\n - \n - /**\n - * Method: setHitContextStyle\n - * Prepare the hit canvas for drawing by setting various global settings.\n - *\n - * Parameters:\n - * type - {String} one of \'stroke\', \'fill\', or \'reset\'\n - * featureId - {String} The feature id.\n - * symbolizer - {<OpenLayers.Symbolizer>} The symbolizer.\n - */\n - setHitContextStyle: function(type, featureId, symbolizer, strokeScaling) {\n - var hex = this.featureIdToHex(featureId);\n - if (type == "fill") {\n - this.hitContext.globalAlpha = 1.0;\n - this.hitContext.fillStyle = hex;\n - } else if (type == "stroke") { \n - this.hitContext.globalAlpha = 1.0;\n - this.hitContext.strokeStyle = hex;\n - // bump up stroke width to deal with antialiasing. If strokeScaling is defined, we\'re rendering a symbol \n - // on a transformed canvas, so the antialias width bump has to scale as well.\n - if (typeof strokeScaling === "undefined") {\n - this.hitContext.lineWidth = symbolizer.strokeWidth + 2;\n - } else {\n - if (!isNaN(strokeScaling)) { this.hitContext.lineWidth = symbolizer.strokeWidth + 2.0 / strokeScaling; }\n - }\n - } else {\n - this.hitContext.globalAlpha = 0;\n - this.hitContext.lineWidth = 1;\n - }\n - },\n -\n - /**\n - * Method: drawPoint\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * geometry - {<OpenLayers.Geometry>}\n - * style - {Object}\n - * featureId - {String}\n - */ \n - drawPoint: function(geometry, style, featureId) {\n - if(style.graphic !== false) {\n - if(style.externalGraphic) {\n - this.drawExternalGraphic(geometry, style, featureId);\n - } else if (style.graphicName && (style.graphicName != "circle")) {\n - this.drawNamedSymbol(geometry, style, featureId);\n - } else {\n - var pt = this.getLocalXY(geometry);\n - var p0 = pt[0];\n - var p1 = pt[1];\n - if(!isNaN(p0) && !isNaN(p1)) {\n - var twoPi = Math.PI*2;\n - var radius = style.pointRadius;\n - if(style.fill !== false) {\n - this.setCanvasStyle("fill", style);\n - this.canvas.beginPath();\n - this.canvas.arc(p0, p1, radius, 0, twoPi, true);\n - this.canvas.fill();\n - if (this.hitDetection) {\n - this.setHitContextStyle("fill", featureId, style);\n - this.hitContext.beginPath();\n - this.hitContext.arc(p0, p1, radius, 0, twoPi, true);\n - this.hitContext.fill();\n - }\n - }\n -\n - if(style.stroke !== false) {\n - this.setCanvasStyle("stroke", style);\n - this.canvas.beginPath();\n - this.canvas.arc(p0, p1, radius, 0, twoPi, true);\n - this.canvas.stroke();\n - if (this.hitDetection) {\n - this.setHitContextStyle("stroke", featureId, style);\n - this.hitContext.beginPath();\n - this.hitContext.arc(p0, p1, radius, 0, twoPi, true);\n - this.hitContext.stroke();\n - }\n - this.setCanvasStyle("reset");\n - }\n - }\n - }\n - }\n - },\n - \n - /**\n - * Method: drawLineString\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * geometry - {<OpenLayers.Geometry>}\n - * style - {Object}\n - * featureId - {String}\n - */ \n - drawLineString: function(geometry, style, featureId) {\n - style = OpenLayers.Util.applyDefaults({fill: false}, style);\n - this.drawLinearRing(geometry, style, featureId);\n - }, \n - \n - /**\n - * Method: drawLinearRing\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * geometry - {<OpenLayers.Geometry>}\n - * style - {Object}\n - * featureId - {String}\n - */ \n - drawLinearRing: function(geometry, style, featureId) {\n - if (style.fill !== false) {\n - this.setCanvasStyle("fill", style);\n - this.renderPath(this.canvas, geometry, style, featureId, "fill");\n - if (this.hitDetection) {\n - this.setHitContextStyle("fill", featureId, style);\n - this.renderPath(this.hitContext, geometry, style, featureId, "fill");\n - }\n - }\n - if (style.stroke !== false) {\n - this.setCanvasStyle("stroke", style);\n - this.renderPath(this.canvas, geometry, style, featureId, "stroke");\n - if (this.hitDetection) {\n - this.setHitContextStyle("stroke", featureId, style);\n - this.renderPath(this.hitContext, geometry, style, featureId, "stroke");\n - }\n - }\n - this.setCanvasStyle("reset");\n - },\n - \n - /**\n - * Method: renderPath\n - * Render a path with stroke and optional fill.\n - */\n - renderPath: function(context, geometry, style, featureId, type) {\n - var components = geometry.components;\n - var len = components.length;\n - context.beginPath();\n - var start = this.getLocalXY(components[0]);\n - var x = start[0];\n - var y = start[1];\n - if (!isNaN(x) && !isNaN(y)) {\n - context.moveTo(start[0], start[1]);\n - for (var i=1; i<len; ++i) {\n - var pt = this.getLocalXY(components[i]);\n - context.lineTo(pt[0], pt[1]);\n - }\n - if (type === "fill") {\n - context.fill();\n - } else {\n - context.stroke();\n - }\n - }\n - },\n - \n - /**\n - * Method: drawPolygon\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * geometry - {<OpenLayers.Geometry>}\n - * style - {Object}\n - * featureId - {String}\n - */ \n - drawPolygon: function(geometry, style, featureId) {\n - var components = geometry.components;\n - var len = components.length;\n - this.drawLinearRing(components[0], style, featureId);\n - // erase inner rings\n - for (var i=1; i<len; ++i) {\n - /** \n - * Note that this is overly agressive. Here we punch holes through \n - * all previously rendered features on the same canvas. A better \n - * solution for polygons with interior rings would be to draw the \n - * polygon on a sketch canvas first. We could erase all holes \n - * there and then copy the drawing to the layer canvas. \n - * TODO: http://trac.osgeo.org/openlayers/ticket/3130 \n - */\n - this.canvas.globalCompositeOperation = "destination-out";\n - if (this.hitDetection) {\n - this.hitContext.globalCompositeOperation = "destination-out";\n - }\n - this.drawLinearRing(\n - components[i], \n - OpenLayers.Util.applyDefaults({stroke: false, fillOpacity: 1.0}, style),\n - featureId\n - );\n - this.canvas.globalCompositeOperation = "source-over";\n - if (this.hitDetection) {\n - this.hitContext.globalCompositeOperation = "source-over";\n - }\n - this.drawLinearRing(\n - components[i], \n - OpenLayers.Util.applyDefaults({fill: false}, style),\n - featureId\n - );\n - }\n - },\n - \n - /**\n - * Method: drawText\n - * This method is only called by the renderer itself.\n - *\n - * Parameters:\n - * location - {<OpenLayers.Point>}\n - * style - {Object}\n - */\n - drawText: function(location, style) {\n - var pt = this.getLocalXY(location);\n -\n - this.setCanvasStyle("reset");\n - this.canvas.fillStyle = style.fontColor;\n - this.canvas.globalAlpha = style.fontOpacity || 1.0;\n - var fontStyle = [style.fontStyle ? style.fontStyle : "normal",\n - "normal", // "font-variant" not supported\n - style.fontWeight ? style.fontWeight : "normal",\n - style.fontSize ? style.fontSize : "1em",\n - style.fontFamily ? style.fontFamily : "sans-serif"].join(" ");\n - var labelRows = style.label.split(\'\\n\');\n - var numRows = labelRows.length;\n - if (this.canvas.fillText) {\n - // HTML5\n - this.canvas.font = fontStyle;\n - this.canvas.textAlign =\n - OpenLayers.Renderer.Canvas.LABEL_ALIGN[style.labelAlign[0]] ||\n - "center";\n - this.canvas.textBaseline =\n - OpenLayers.Renderer.Canvas.LABEL_ALIGN[style.labelAlign[1]] ||\n - "middle";\n - var vfactor =\n - OpenLayers.Renderer.Canvas.LABEL_FACTOR[style.labelAlign[1]];\n - if (vfactor == null) {\n - vfactor = -.5;\n - }\n - var lineHeight =\n - this.canvas.measureText(\'Mg\').height ||\n - this.canvas.measureText(\'xx\').width;\n - pt[1] += lineHeight*vfactor*(numRows-1);\n - for (var i = 0; i < numRows; i++) {\n - if (style.labelOutlineWidth) {\n - this.canvas.save();\n - this.canvas.strokeStyle = style.labelOutlineColor;\n - this.canvas.lineWidth = style.labelOutlineWidth;\n - this.canvas.strokeText(labelRows[i], pt[0], pt[1] + (lineHeight*i) + 1);\n - this.canvas.restore();\n - }\n - this.canvas.fillText(labelRows[i], pt[0], pt[1] + (lineHeight*i));\n - }\n - } else if (this.canvas.mozDrawText) {\n - // Mozilla pre-Gecko1.9.1 (<FF3.1)\n - this.canvas.mozTextStyle = fontStyle;\n - // No built-in text alignment, so we measure and adjust the position\n - var hfactor =\n - OpenLayers.Renderer.Canvas.LABEL_FACTOR[style.labelAlign[0]];\n - if (hfactor == null) {\n - hfactor = -.5;\n - }\n - var vfactor =\n - OpenLayers.Renderer.Canvas.LABEL_FACTOR[style.labelAlign[1]];\n - if (vfactor == null) {\n - vfactor = -.5;\n - }\n - var lineHeight = this.canvas.mozMeasureText(\'xx\');\n - pt[1] += lineHeight*(1 + (vfactor*numRows));\n - for (var i = 0; i < numRows; i++) {\n - var x = pt[0] + (hfactor*this.canvas.mozMeasureText(labelRows[i]));\n - var y = pt[1] + (i*lineHeight);\n - this.canvas.translate(x, y);\n - this.canvas.mozDrawText(labelRows[i]);\n - this.canvas.translate(-x, -y);\n - }\n - }\n - this.setCanvasStyle("reset");\n - },\n - \n - /**\n - * Method: getLocalXY\n - * transform geographic xy into pixel xy\n - *\n - * Parameters: \n - * point - {<OpenLayers.Geometry.Point>}\n - */\n - getLocalXY: function(point) {\n - var resolution = this.getResolution();\n - var extent = this.extent;\n - var x = ((point.x - this.featureDx) / resolution + (-extent.left / resolution));\n - var y = ((extent.top / resolution) - point.y / resolution);\n - return [x, y];\n - },\n -\n - /**\n - * Method: clear\n - * Clear all vectors from the renderer.\n - */ \n - clear: function() {\n - var height = this.root.height;\n - var width = this.root.width;\n - this.canvas.clearRect(0, 0, width, height);\n - this.features = {};\n - if (this.hitDetection) {\n - this.hitContext.clearRect(0, 0, width, height);\n - }\n - },\n -\n - /**\n - * Method: getFeatureIdFromEvent\n - * Returns a feature id from an event on the renderer. \n - * \n - * Parameters:\n - * evt - {<OpenLayers.Event>} \n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector} A feature or undefined. This method returns a \n - * feature instead of a feature id to avoid an unnecessary lookup on the\n - * layer.\n - */\n - getFeatureIdFromEvent: function(evt) {\n - var featureId, feature;\n - \n - if (this.hitDetection && this.root.style.display !== "none") {\n - // this dragging check should go in the feature handler\n - if (!this.map.dragging) {\n - var xy = evt.xy;\n - var x = xy.x | 0;\n - var y = xy.y | 0;\n - var data = this.hitContext.getImageData(x, y, 1, 1).data;\n - if (data[3] === 255) { // antialiased\n - var id = data[2] + (256 * (data[1] + (256 * data[0])));\n - if (id) {\n - featureId = "OpenLayers.Feature.Vector_" + (id - 1 + this.hitOverflow);\n - try {\n - feature = this.features[featureId][0];\n - } catch(err) {\n - // Because of antialiasing on the canvas, when the hit location is at a point where the edge of\n - // one symbol intersects the interior of another symbol, a wrong hit color (and therefore id) results.\n - // todo: set Antialiasing = \'off\' on the hitContext as soon as browsers allow it.\n - }\n - }\n - }\n - }\n - }\n - return feature;\n - },\n - \n - /**\n - * Method: eraseFeatures \n - * This is called by the layer to erase features; removes the feature from\n - * the list, then redraws the layer.\n - * \n - * Parameters:\n - * features - {Array(<OpenLayers.Feature.Vector>)} \n - */\n - eraseFeatures: function(features) {\n - if(!(OpenLayers.Util.isArray(features))) {\n - features = [features];\n - }\n - for(var i=0; i<features.length; ++i) {\n - delete this.features[features[i].id];\n - }\n - this.redraw();\n - },\n -\n - /**\n - * Method: redraw\n - * The real \'meat\' of the function: any time things have changed,\n - * redraw() can be called to loop over all the data and (you guessed\n - * it) redraw it. Unlike Elements-based Renderers, we can\'t interact\n - * with things once they\'re drawn, to remove them, for example, so\n - * instead we have to just clear everything and draw from scratch.\n - */\n - redraw: function() {\n - if (!this.locked) {\n - var height = this.root.height;\n - var width = this.root.width;\n - this.canvas.clearRect(0, 0, width, height);\n - if (this.hitDetection) {\n - this.hitContext.clearRect(0, 0, width, height);\n - }\n - var labelMap = [];\n - var feature, geometry, style;\n - var worldBounds = (this.map.baseLayer && this.map.baseLayer.wrapDateLine) && this.map.getMaxExtent();\n - for (var id in this.features) {\n - if (!this.features.hasOwnProperty(id)) { continue; }\n - feature = this.features[id][0];\n - geometry = feature.geometry;\n - this.calculateFeatureDx(geometry.getBounds(), worldBounds);\n - style = this.features[id][1];\n - this.drawGeometry(geometry, style, feature.id);\n - if(style.label) {\n - labelMap.push([feature, style]);\n - }\n - }\n - var item;\n - for (var i=0, len=labelMap.length; i<len; ++i) {\n - item = labelMap[i];\n - this.drawText(item[0].geometry.getCentroid(), item[1]);\n - }\n - } \n - },\n -\n - CLASS_NAME: "OpenLayers.Renderer.Canvas"\n -});\n -\n -/**\n - * Constant: OpenLayers.Renderer.Canvas.LABEL_ALIGN\n - * {Object}\n - */\n -OpenLayers.Renderer.Canvas.LABEL_ALIGN = {\n - "l": "left",\n - "r": "right",\n - "t": "top",\n - "b": "bottom"\n -};\n -\n -/**\n - * Constant: OpenLayers.Renderer.Canvas.LABEL_FACTOR\n - * {Object}\n - */\n -OpenLayers.Renderer.Canvas.LABEL_FACTOR = {\n - "l": 0,\n - "r": -1,\n - "t": 0,\n - "b": -1\n -};\n -\n -/**\n - * Constant: OpenLayers.Renderer.Canvas.drawImageScaleFactor\n - * {Number} Scale factor to apply to the canvas drawImage arguments. This\n - * is always 1 except for Android 2.1 devices, to work around\n - * http://code.google.com/p/android/issues/detail?id=5141.\n - */\n -OpenLayers.Renderer.Canvas.drawImageScaleFactor = null;\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>33022</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer/Elements.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer/Elements.js.xml deleted file mode 100644 index b3668c9ab1fcfee34d1f9021120b21a2e54a9b8d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer/Elements.js.xml +++ /dev/null @@ -1,1097 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Elements.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Renderer.js\n - */\n -\n -/**\n - * Class: OpenLayers.ElementsIndexer\n - * This class takes care of figuring out which order elements should be\n - * placed in the DOM based on given indexing methods. \n - */\n -OpenLayers.ElementsIndexer = OpenLayers.Class({\n - \n - /**\n - * Property: maxZIndex\n - * {Integer} This is the largest-most z-index value for a node\n - * contained within the indexer.\n - */\n - maxZIndex: null,\n - \n - /**\n - * Property: order\n - * {Array<String>} This is an array of node id\'s stored in the\n - * order that they should show up on screen. Id\'s higher up in the\n - * array (higher array index) represent nodes with higher z-indeces.\n - */\n - order: null, \n - \n - /**\n - * Property: indices\n - * {Object} This is a hash that maps node ids to their z-index value\n - * stored in the indexer. This is done to make finding a nodes z-index \n - * value O(1).\n - */\n - indices: null,\n - \n - /**\n - * Property: compare\n - * {Function} This is the function used to determine placement of\n - * of a new node within the indexer. If null, this defaults to to\n - * the Z_ORDER_DRAWING_ORDER comparison method.\n - */\n - compare: null,\n - \n - /**\n - * APIMethod: initialize\n - * Create a new indexer with \n - * \n - * Parameters:\n - * yOrdering - {Boolean} Whether to use y-ordering.\n - */\n - initialize: function(yOrdering) {\n -\n - this.compare = yOrdering ? \n - OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER_Y_ORDER :\n - OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER_DRAWING_ORDER;\n -\n - this.clear();\n - },\n - \n - /**\n - * APIMethod: insert\n - * Insert a new node into the indexer. In order to find the correct \n - * positioning for the node to be inserted, this method uses a binary \n - * search. This makes inserting O(log(n)). \n - * \n - * Parameters:\n - * newNode - {DOMElement} The new node to be inserted.\n - * \n - * Returns\n - * {DOMElement} the node before which we should insert our newNode, or\n - * null if newNode can just be appended.\n - */\n - insert: function(newNode) {\n - // If the node is known to the indexer, remove it so we can\n - // recalculate where it should go.\n - if (this.exists(newNode)) {\n - this.remove(newNode);\n - }\n - \n - var nodeId = newNode.id;\n - \n - this.determineZIndex(newNode); \n -\n - var leftIndex = -1;\n - var rightIndex = this.order.length;\n - var middle;\n -\n - while (rightIndex - leftIndex > 1) {\n - middle = parseInt((leftIndex + rightIndex) / 2);\n - \n - var placement = this.compare(this, newNode,\n - OpenLayers.Util.getElement(this.order[middle]));\n - \n - if (placement > 0) {\n - leftIndex = middle;\n - } else {\n - rightIndex = middle;\n - } \n - }\n - \n - this.order.splice(rightIndex, 0, nodeId);\n - this.indices[nodeId] = this.getZIndex(newNode);\n - \n - // If the new node should be before another in the index\n - // order, return the node before which we have to insert the new one;\n - // else, return null to indicate that the new node can be appended.\n - return this.getNextElement(rightIndex);\n - },\n - \n - /**\n - * APIMethod: remove\n - * \n - * Parameters:\n - * node - {DOMElement} The node to be removed.\n - */\n - remove: function(node) {\n - var nodeId = node.id;\n - var arrayIndex = OpenLayers.Util.indexOf(this.order, nodeId);\n - if (arrayIndex >= 0) {\n - // Remove it from the order array, as well as deleting the node\n - // from the indeces hash.\n - this.order.splice(arrayIndex, 1);\n - delete this.indices[nodeId];\n - \n - // Reset the maxium z-index based on the last item in the \n - // order array.\n - if (this.order.length > 0) {\n - var lastId = this.order[this.order.length - 1];\n - this.maxZIndex = this.indices[lastId];\n - } else {\n - this.maxZIndex = 0;\n - }\n - }\n - },\n - \n - /**\n - * APIMethod: clear\n - */\n - clear: function() {\n - this.order = [];\n - this.indices = {};\n - this.maxZIndex = 0;\n - },\n - \n - /**\n - * APIMethod: exists\n - *\n - * Parameters:\n - * node - {DOMElement} The node to test for existence.\n - *\n - * Returns:\n - * {Boolean} Whether or not the node exists in the indexer?\n - */\n - exists: function(node) {\n - return (this.indices[node.id] != null);\n - },\n -\n - /**\n - * APIMethod: getZIndex\n - * Get the z-index value for the current node from the node data itself.\n - * \n - * Parameters:\n - * node - {DOMElement} The node whose z-index to get.\n - * \n - * Returns:\n - * {Integer} The z-index value for the specified node (from the node \n - * data itself).\n - */\n - getZIndex: function(node) {\n - return node._style.graphicZIndex; \n - },\n - \n - /**\n - * Method: determineZIndex\n - * Determine the z-index for the current node if there isn\'t one, \n - * and set the maximum value if we\'ve found a new maximum.\n - * \n - * Parameters:\n - * node - {DOMElement} \n - */\n - determineZIndex: function(node) {\n - var zIndex = node._style.graphicZIndex;\n - \n - // Everything must have a zIndex. If none is specified,\n - // this means the user *must* (hint: assumption) want this\n - // node to succomb to drawing order. To enforce drawing order\n - // over all indexing methods, we\'ll create a new z-index that\'s\n - // greater than any currently in the indexer.\n - if (zIndex == null) {\n - zIndex = this.maxZIndex;\n - node._style.graphicZIndex = zIndex; \n - } else if (zIndex > this.maxZIndex) {\n - this.maxZIndex = zIndex;\n - }\n - },\n -\n - /**\n - * APIMethod: getNextElement\n - * Get the next element in the order stack.\n - * \n - * Parameters:\n - * index - {Integer} The index of the current node in this.order.\n - * \n - * Returns:\n - * {DOMElement} the node following the index passed in, or\n - * null.\n - */\n - getNextElement: function(index) {\n - var nextIndex = index + 1;\n - if (nextIndex < this.order.length) {\n - var nextElement = OpenLayers.Util.getElement(this.order[nextIndex]);\n - if (nextElement == undefined) {\n - nextElement = this.getNextElement(nextIndex);\n - }\n - return nextElement;\n - } else {\n - return null;\n - } \n - },\n - \n - CLASS_NAME: "OpenLayers.ElementsIndexer"\n -});\n -\n -/**\n - * Namespace: OpenLayers.ElementsIndexer.IndexingMethods\n - * These are the compare methods for figuring out where a new node should be \n - * placed within the indexer. These methods are very similar to general \n - * sorting methods in that they return -1, 0, and 1 to specify the \n - * direction in which new nodes fall in the ordering.\n - */\n -OpenLayers.ElementsIndexer.IndexingMethods = {\n - \n - /**\n - * Method: Z_ORDER\n - * This compare method is used by other comparison methods.\n - * It can be used individually for ordering, but is not recommended,\n - * because it doesn\'t subscribe to drawing order.\n - * \n - * Parameters:\n - * indexer - {<OpenLayers.ElementsIndexer>}\n - * newNode - {DOMElement}\n - * nextNode - {DOMElement}\n - * \n - * Returns:\n - * {Integer}\n - */\n - Z_ORDER: function(indexer, newNode, nextNode) {\n - var newZIndex = indexer.getZIndex(newNode);\n -\n - var returnVal = 0;\n - if (nextNode) {\n - var nextZIndex = indexer.getZIndex(nextNode);\n - returnVal = newZIndex - nextZIndex; \n - }\n - \n - return returnVal;\n - },\n -\n - /**\n - * APIMethod: Z_ORDER_DRAWING_ORDER\n - * This method orders nodes by their z-index, but does so in a way\n - * that, if there are other nodes with the same z-index, the newest \n - * drawn will be the front most within that z-index. This is the \n - * default indexing method.\n - * \n - * Parameters:\n - * indexer - {<OpenLayers.ElementsIndexer>}\n - * newNode - {DOMElement}\n - * nextNode - {DOMElement}\n - * \n - * Returns:\n - * {Integer}\n - */\n - Z_ORDER_DRAWING_ORDER: function(indexer, newNode, nextNode) {\n - var returnVal = OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER(\n - indexer, \n - newNode, \n - nextNode\n - );\n - \n - // Make Z_ORDER subscribe to drawing order by pushing it above\n - // all of the other nodes with the same z-index.\n - if (nextNode && returnVal == 0) {\n - returnVal = 1;\n - }\n - \n - return returnVal;\n - },\n -\n - /**\n - * APIMethod: Z_ORDER_Y_ORDER\n - * This one should really be called Z_ORDER_Y_ORDER_DRAWING_ORDER, as it\n - * best describes which ordering methods have precedence (though, the \n - * name would be too long). This method orders nodes by their z-index, \n - * but does so in a way that, if there are other nodes with the same \n - * z-index, the nodes with the lower y position will be "closer" than \n - * those with a higher y position. If two nodes have the exact same y \n - * position, however, then this method will revert to using drawing \n - * order to decide placement.\n - * \n - * Parameters:\n - * indexer - {<OpenLayers.ElementsIndexer>}\n - * newNode - {DOMElement}\n - * nextNode - {DOMElement}\n - * \n - * Returns:\n - * {Integer}\n - */\n - Z_ORDER_Y_ORDER: function(indexer, newNode, nextNode) {\n - var returnVal = OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER(\n - indexer, \n - newNode, \n - nextNode\n - );\n - \n - if (nextNode && returnVal === 0) { \n - var result = nextNode._boundsBottom - newNode._boundsBottom;\n - returnVal = (result === 0) ? 1 : result;\n - }\n - \n - return returnVal; \n - }\n -};\n -\n -/**\n - * Class: OpenLayers.Renderer.Elements\n - * This is another virtual class in that it should never be instantiated by \n - * itself as a Renderer. It exists because there is *tons* of shared \n - * functionality between different vector libraries which use nodes/elements\n - * as a base for rendering vectors. \n - * \n - * The highlevel bits of code that are implemented here are the adding and \n - * removing of geometries, which is essentially the same for any \n - * element-based renderer. The details of creating each node and drawing the\n - * paths are of course different, but the machinery is the same. \n - * \n - * Inherits:\n - * - <OpenLayers.Renderer>\n - */\n -OpenLayers.Renderer.Elements = OpenLayers.Class(OpenLayers.Renderer, {\n -\n - /**\n - * Property: rendererRoot\n - * {DOMElement}\n - */\n - rendererRoot: null,\n - \n - /**\n - * Property: root\n - * {DOMElement}\n - */\n - root: null,\n - \n - /**\n - * Property: vectorRoot\n - * {DOMElement}\n - */\n - vectorRoot: null,\n -\n - /**\n - * Property: textRoot\n - * {DOMElement}\n - */\n - textRoot: null,\n -\n - /**\n - * Property: xmlns\n - * {String}\n - */ \n - xmlns: null,\n - \n - /**\n - * Property: xOffset\n - * {Number} Offset to apply to the renderer viewport translation in x\n - * direction. If the renderer extent\'s center is on the right of the\n - * dateline (i.e. exceeds the world bounds), we shift the viewport to the\n - * left by one world width. This avoids that features disappear from the\n - * map viewport. Because our dateline handling logic in other places\n - * ensures that extents crossing the dateline always have a center\n - * exceeding the world bounds on the left, we need this offset to make sure\n - * that the same is true for the renderer extent in pixel space as well.\n - */\n - xOffset: 0,\n - \n - /**\n - * Property: rightOfDateLine\n - * {Boolean} Keeps track of the location of the map extent relative to the\n - * date line. The <setExtent> method compares this value (which is the one\n - * from the previous <setExtent> call) with the current position of the map\n - * extent relative to the date line and updates the xOffset when the extent\n - * has moved from one side of the date line to the other.\n - */\n - \n - /**\n - * Property: Indexer\n - * {<OpenLayers.ElementIndexer>} An instance of OpenLayers.ElementsIndexer \n - * created upon initialization if the zIndexing or yOrdering options\n - * passed to this renderer\'s constructor are set to true.\n - */\n - indexer: null, \n - \n - /**\n - * Constant: BACKGROUND_ID_SUFFIX\n - * {String}\n - */\n - BACKGROUND_ID_SUFFIX: "_background",\n - \n - /**\n - * Constant: LABEL_ID_SUFFIX\n - * {String}\n - */\n - LABEL_ID_SUFFIX: "_label",\n - \n - /**\n - * Constant: LABEL_OUTLINE_SUFFIX\n - * {String}\n - */\n - LABEL_OUTLINE_SUFFIX: "_outline",\n -\n - /**\n - * Constructor: OpenLayers.Renderer.Elements\n - * \n - * Parameters:\n - * containerID - {String}\n - * options - {Object} options for this renderer. \n - *\n - * Supported options are:\n - * yOrdering - {Boolean} Whether to use y-ordering\n - * zIndexing - {Boolean} Whether to use z-indexing. Will be ignored\n - * if yOrdering is set to true.\n - */\n - initialize: function(containerID, options) {\n - OpenLayers.Renderer.prototype.initialize.apply(this, arguments);\n -\n - this.rendererRoot = this.createRenderRoot();\n - this.root = this.createRoot("_root");\n - this.vectorRoot = this.createRoot("_vroot");\n - this.textRoot = this.createRoot("_troot");\n - \n - this.root.appendChild(this.vectorRoot);\n - this.root.appendChild(this.textRoot);\n - \n - this.rendererRoot.appendChild(this.root);\n - this.container.appendChild(this.rendererRoot);\n - \n - if(options && (options.zIndexing || options.yOrdering)) {\n - this.indexer = new OpenLayers.ElementsIndexer(options.yOrdering);\n - }\n - },\n - \n - /**\n - * Method: destroy\n - */\n - destroy: function() {\n -\n - this.clear(); \n -\n - this.rendererRoot = null;\n - this.root = null;\n - this.xmlns = null;\n -\n - OpenLayers.Renderer.prototype.destroy.apply(this, arguments);\n - },\n - \n - /**\n - * Method: clear\n - * Remove all the elements from the root\n - */ \n - clear: function() {\n - var child;\n - var root = this.vectorRoot;\n - if (root) {\n - while (child = root.firstChild) {\n - root.removeChild(child);\n - }\n - }\n - root = this.textRoot;\n - if (root) {\n - while (child = root.firstChild) {\n - root.removeChild(child);\n - }\n - }\n - if (this.indexer) {\n - this.indexer.clear();\n - }\n - },\n - \n - /**\n - * Method: setExtent\n - * Set the visible part of the layer.\n - *\n - * Parameters:\n - * extent - {<OpenLayers.Bounds>}\n - * resolutionChanged - {Boolean}\n - *\n - * Returns:\n - * {Boolean} true to notify the layer that the new extent does not exceed\n - * the coordinate range, and the features will not need to be redrawn.\n - * False otherwise.\n - */\n - setExtent: function(extent, resolutionChanged) {\n - var coordSysUnchanged = OpenLayers.Renderer.prototype.setExtent.apply(this, arguments);\n - var resolution = this.getResolution();\n - if (this.map.baseLayer && this.map.baseLayer.wrapDateLine) {\n - var rightOfDateLine,\n - ratio = extent.getWidth() / this.map.getExtent().getWidth(),\n - extent = extent.scale(1 / ratio),\n - world = this.map.getMaxExtent();\n - if (world.right > extent.left && world.right < extent.right) {\n - rightOfDateLine = true;\n - } else if (world.left > extent.left && world.left < extent.right) {\n - rightOfDateLine = false;\n - }\n - if (rightOfDateLine !== this.rightOfDateLine || resolutionChanged) {\n - coordSysUnchanged = false;\n - this.xOffset = rightOfDateLine === true ?\n - world.getWidth() / resolution : 0;\n - }\n - this.rightOfDateLine = rightOfDateLine;\n - }\n - return coordSysUnchanged;\n - },\n -\n - /** \n - * Method: getNodeType\n - * This function is in charge of asking the specific renderer which type\n - * of node to create for the given geometry and style. All geometries\n - * in an Elements-based renderer consist of one node and some\n - * attributes. We have the nodeFactory() function which creates a node\n - * for us, but it takes a \'type\' as input, and that is precisely what\n - * this function tells us. \n - * \n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - * style - {Object}\n - * \n - * Returns:\n - * {String} The corresponding node type for the specified geometry\n - */\n - getNodeType: function(geometry, style) { },\n -\n - /** \n - * Method: drawGeometry \n - * Draw the geometry, creating new nodes, setting paths, setting style,\n - * setting featureId on the node. This method should only be called\n - * by the renderer itself.\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - * style - {Object}\n - * featureId - {String}\n - * \n - * Returns:\n - * {Boolean} true if the geometry has been drawn completely; null if\n - * incomplete; false otherwise\n - */\n - drawGeometry: function(geometry, style, featureId) {\n - var className = geometry.CLASS_NAME;\n - var rendered = true;\n - if ((className == "OpenLayers.Geometry.Collection") ||\n - (className == "OpenLayers.Geometry.MultiPoint") ||\n - (className == "OpenLayers.Geometry.MultiLineString") ||\n - (className == "OpenLayers.Geometry.MultiPolygon")) {\n - for (var i = 0, len=geometry.components.length; i<len; i++) {\n - rendered = this.drawGeometry(\n - geometry.components[i], style, featureId) && rendered;\n - }\n - return rendered;\n - }\n -\n - rendered = false;\n - var removeBackground = false;\n - if (style.display != "none") {\n - if (style.backgroundGraphic) {\n - this.redrawBackgroundNode(geometry.id, geometry, style,\n - featureId);\n - } else {\n - removeBackground = true;\n - }\n - rendered = this.redrawNode(geometry.id, geometry, style,\n - featureId);\n - }\n - if (rendered == false) {\n - var node = document.getElementById(geometry.id);\n - if (node) {\n - if (node._style.backgroundGraphic) {\n - removeBackground = true;\n - }\n - node.parentNode.removeChild(node);\n - }\n - }\n - if (removeBackground) {\n - var node = document.getElementById(\n - geometry.id + this.BACKGROUND_ID_SUFFIX);\n - if (node) {\n - node.parentNode.removeChild(node);\n - }\n - }\n - return rendered;\n - },\n - \n - /**\n - * Method: redrawNode\n - * \n - * Parameters:\n - * id - {String}\n - * geometry - {<OpenLayers.Geometry>}\n - * style - {Object}\n - * featureId - {String}\n - * \n - * Returns:\n - * {Boolean} true if the complete geometry could be drawn, null if parts of\n - * the geometry could not be drawn, false otherwise\n - */\n - redrawNode: function(id, geometry, style, featureId) {\n - style = this.applyDefaultSymbolizer(style);\n - // Get the node if it\'s already on the map.\n - var node = this.nodeFactory(id, this.getNodeType(geometry, style));\n - \n - // Set the data for the node, then draw it.\n - node._featureId = featureId;\n - node._boundsBottom = geometry.getBounds().bottom;\n - node._geometryClass = geometry.CLASS_NAME;\n - node._style = style;\n -\n - var drawResult = this.drawGeometryNode(node, geometry, style);\n - if(drawResult === false) {\n - return false;\n - }\n - \n - node = drawResult.node;\n - \n - // Insert the node into the indexer so it can show us where to\n - // place it. Note that this operation is O(log(n)). If there\'s a\n - // performance problem (when dragging, for instance) this is\n - // likely where it would be.\n - if (this.indexer) {\n - var insert = this.indexer.insert(node);\n - if (insert) {\n - this.vectorRoot.insertBefore(node, insert);\n - } else {\n - this.vectorRoot.appendChild(node);\n - }\n - } else {\n - // if there\'s no indexer, simply append the node to root,\n - // but only if the node is a new one\n - if (node.parentNode !== this.vectorRoot){ \n - this.vectorRoot.appendChild(node);\n - }\n - }\n - \n - this.postDraw(node);\n - \n - return drawResult.complete;\n - },\n - \n - /**\n - * Method: redrawBackgroundNode\n - * Redraws the node using special \'background\' style properties. Basically\n - * just calls redrawNode(), but instead of directly using the \n - * \'externalGraphic\', \'graphicXOffset\', \'graphicYOffset\', and \n - * \'graphicZIndex\' properties directly from the specified \'style\' \n - * parameter, we create a new style object and set those properties \n - * from the corresponding \'background\'-prefixed properties from \n - * specified \'style\' parameter.\n - * \n - * Parameters:\n - * id - {String}\n - * geometry - {<OpenLayers.Geometry>}\n - * style - {Object}\n - * featureId - {String}\n - * \n - * Returns:\n - * {Boolean} true if the complete geometry could be drawn, null if parts of\n - * the geometry could not be drawn, false otherwise\n - */\n - redrawBackgroundNode: function(id, geometry, style, featureId) {\n - var backgroundStyle = OpenLayers.Util.extend({}, style);\n - \n - // Set regular style attributes to apply to the background styles.\n - backgroundStyle.externalGraphic = backgroundStyle.backgroundGraphic;\n - backgroundStyle.graphicXOffset = backgroundStyle.backgroundXOffset;\n - backgroundStyle.graphicYOffset = backgroundStyle.backgroundYOffset;\n - backgroundStyle.graphicZIndex = backgroundStyle.backgroundGraphicZIndex;\n - backgroundStyle.graphicWidth = backgroundStyle.backgroundWidth || backgroundStyle.graphicWidth;\n - backgroundStyle.graphicHeight = backgroundStyle.backgroundHeight || backgroundStyle.graphicHeight;\n - \n - // Erase background styles.\n - backgroundStyle.backgroundGraphic = null;\n - backgroundStyle.backgroundXOffset = null;\n - backgroundStyle.backgroundYOffset = null;\n - backgroundStyle.backgroundGraphicZIndex = null;\n - \n - return this.redrawNode(\n - id + this.BACKGROUND_ID_SUFFIX, \n - geometry, \n - backgroundStyle, \n - null\n - );\n - },\n -\n - /**\n - * Method: drawGeometryNode\n - * Given a node, draw a geometry on the specified layer.\n - * node and geometry are required arguments, style is optional.\n - * This method is only called by the render itself.\n - *\n - * Parameters:\n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * style - {Object}\n - * \n - * Returns:\n - * {Object} a hash with properties "node" (the drawn node) and "complete"\n - * (null if parts of the geometry could not be drawn, false if nothing\n - * could be drawn)\n - */\n - drawGeometryNode: function(node, geometry, style) {\n - style = style || node._style;\n -\n - var options = {\n - \'isFilled\': style.fill === undefined ?\n - true :\n - style.fill,\n - \'isStroked\': style.stroke === undefined ?\n - !!style.strokeWidth :\n - style.stroke\n - };\n - var drawn;\n - switch (geometry.CLASS_NAME) {\n - case "OpenLayers.Geometry.Point":\n - if(style.graphic === false) {\n - options.isFilled = false;\n - options.isStroked = false;\n - }\n - drawn = this.drawPoint(node, geometry);\n - break;\n - case "OpenLayers.Geometry.LineString":\n - options.isFilled = false;\n - drawn = this.drawLineString(node, geometry);\n - break;\n - case "OpenLayers.Geometry.LinearRing":\n - drawn = this.drawLinearRing(node, geometry);\n - break;\n - case "OpenLayers.Geometry.Polygon":\n - drawn = this.drawPolygon(node, geometry);\n - break;\n - case "OpenLayers.Geometry.Rectangle":\n - drawn = this.drawRectangle(node, geometry);\n - break;\n - default:\n - break;\n - }\n -\n - node._options = options; \n -\n - //set style\n - //TBD simplify this\n - if (drawn != false) {\n - return {\n - node: this.setStyle(node, style, options, geometry),\n - complete: drawn\n - };\n - } else {\n - return false;\n - }\n - },\n - \n - /**\n - * Method: postDraw\n - * Things that have do be done after the geometry node is appended\n - * to its parent node. To be overridden by subclasses.\n - * \n - * Parameters:\n - * node - {DOMElement}\n - */\n - postDraw: function(node) {},\n - \n - /**\n - * Method: drawPoint\n - * Virtual function for drawing Point Geometry. \n - * Should be implemented by subclasses.\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement} or false if the renderer could not draw the point\n - */ \n - drawPoint: function(node, geometry) {},\n -\n - /**\n - * Method: drawLineString\n - * Virtual function for drawing LineString Geometry. \n - * Should be implemented by subclasses.\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement} or null if the renderer could not draw all components of\n - * the linestring, or false if nothing could be drawn\n - */ \n - drawLineString: function(node, geometry) {},\n -\n - /**\n - * Method: drawLinearRing\n - * Virtual function for drawing LinearRing Geometry. \n - * Should be implemented by subclasses.\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement} or null if the renderer could not draw all components\n - * of the linear ring, or false if nothing could be drawn\n - */ \n - drawLinearRing: function(node, geometry) {},\n -\n - /**\n - * Method: drawPolygon\n - * Virtual function for drawing Polygon Geometry. \n - * Should be implemented by subclasses.\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement} or null if the renderer could not draw all components\n - * of the polygon, or false if nothing could be drawn\n - */ \n - drawPolygon: function(node, geometry) {},\n -\n - /**\n - * Method: drawRectangle\n - * Virtual function for drawing Rectangle Geometry. \n - * Should be implemented by subclasses.\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement} or false if the renderer could not draw the rectangle\n - */ \n - drawRectangle: function(node, geometry) {},\n -\n - /**\n - * Method: drawCircle\n - * Virtual function for drawing Circle Geometry. \n - * Should be implemented by subclasses.\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement} or false if the renderer could not draw the circle\n - */ \n - drawCircle: function(node, geometry) {},\n -\n - /**\n - * Method: removeText\n - * Removes a label\n - * \n - * Parameters:\n - * featureId - {String}\n - */\n - removeText: function(featureId) {\n - var label = document.getElementById(featureId + this.LABEL_ID_SUFFIX);\n - if (label) {\n - this.textRoot.removeChild(label);\n - }\n - var outline = document.getElementById(featureId + this.LABEL_OUTLINE_SUFFIX);\n - if (outline) {\n - this.textRoot.removeChild(outline);\n - }\n - },\n -\n - /**\n - * Method: getFeatureIdFromEvent\n - * \n - * Parameters:\n - * evt - {Object} An <OpenLayers.Event> object\n - *\n - * Returns:\n - * {String} A feature id or undefined.\n - */\n - getFeatureIdFromEvent: function(evt) {\n - var target = evt.target;\n - var useElement = target && target.correspondingUseElement;\n - var node = useElement ? useElement : (target || evt.srcElement);\n - return node._featureId;\n - },\n -\n - /** \n - * Method: eraseGeometry\n - * Erase a geometry from the renderer. In the case of a multi-geometry, \n - * we cycle through and recurse on ourselves. Otherwise, we look for a \n - * node with the geometry.id, destroy its geometry, and remove it from\n - * the DOM.\n - * \n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - * featureId - {String}\n - */\n - eraseGeometry: function(geometry, featureId) {\n - if ((geometry.CLASS_NAME == "OpenLayers.Geometry.MultiPoint") ||\n - (geometry.CLASS_NAME == "OpenLayers.Geometry.MultiLineString") ||\n - (geometry.CLASS_NAME == "OpenLayers.Geometry.MultiPolygon") ||\n - (geometry.CLASS_NAME == "OpenLayers.Geometry.Collection")) {\n - for (var i=0, len=geometry.components.length; i<len; i++) {\n - this.eraseGeometry(geometry.components[i], featureId);\n - }\n - } else { \n - var element = OpenLayers.Util.getElement(geometry.id);\n - if (element && element.parentNode) {\n - if (element.geometry) {\n - element.geometry.destroy();\n - element.geometry = null;\n - }\n - element.parentNode.removeChild(element);\n -\n - if (this.indexer) {\n - this.indexer.remove(element);\n - }\n - \n - if (element._style.backgroundGraphic) {\n - var backgroundId = geometry.id + this.BACKGROUND_ID_SUFFIX;\n - var bElem = OpenLayers.Util.getElement(backgroundId);\n - if (bElem && bElem.parentNode) {\n - // No need to destroy the geometry since the element and the background\n - // node share the same geometry.\n - bElem.parentNode.removeChild(bElem);\n - }\n - }\n - }\n - }\n - },\n -\n - /** \n - * Method: nodeFactory\n - * Create new node of the specified type, with the (optional) specified id.\n - * \n - * If node already exists with same ID and a different type, we remove it\n - * and then call ourselves again to recreate it.\n - * \n - * Parameters:\n - * id - {String}\n - * type - {String} type Kind of node to draw.\n - * \n - * Returns:\n - * {DOMElement} A new node of the given type and id.\n - */\n - nodeFactory: function(id, type) {\n - var node = OpenLayers.Util.getElement(id);\n - if (node) {\n - if (!this.nodeTypeCompare(node, type)) {\n - node.parentNode.removeChild(node);\n - node = this.nodeFactory(id, type);\n - }\n - } else {\n - node = this.createNode(type, id);\n - }\n - return node;\n - },\n - \n - /** \n - * Method: nodeTypeCompare\n - * \n - * Parameters:\n - * node - {DOMElement}\n - * type - {String} Kind of node\n - * \n - * Returns:\n - * {Boolean} Whether or not the specified node is of the specified type\n - * This function must be overridden by subclasses.\n - */\n - nodeTypeCompare: function(node, type) {},\n - \n - /** \n - * Method: createNode\n - * \n - * Parameters:\n - * type - {String} Kind of node to draw.\n - * id - {String} Id for node.\n - * \n - * Returns:\n - * {DOMElement} A new node of the given type and id.\n - * This function must be overridden by subclasses.\n - */\n - createNode: function(type, id) {},\n -\n - /**\n - * Method: moveRoot\n - * moves this renderer\'s root to a different renderer.\n - * \n - * Parameters:\n - * renderer - {<OpenLayers.Renderer>} target renderer for the moved root\n - */\n - moveRoot: function(renderer) {\n - var root = this.root;\n - if(renderer.root.parentNode == this.rendererRoot) {\n - root = renderer.root;\n - }\n - root.parentNode.removeChild(root);\n - renderer.rendererRoot.appendChild(root);\n - },\n - \n - /**\n - * Method: getRenderLayerId\n - * Gets the layer that this renderer\'s output appears on. If moveRoot was\n - * used, this will be different from the id of the layer containing the\n - * features rendered by this renderer.\n - * \n - * Returns:\n - * {String} the id of the output layer.\n - */\n - getRenderLayerId: function() {\n - return this.root.parentNode.parentNode.id;\n - },\n - \n - /**\n - * Method: isComplexSymbol\n - * Determines if a symbol cannot be rendered using drawCircle\n - * \n - * Parameters:\n - * graphicName - {String}\n - * \n - * Returns\n - * {Boolean} true if the symbol is complex, false if not\n - */\n - isComplexSymbol: function(graphicName) {\n - return (graphicName != "circle") && !!graphicName;\n - },\n -\n - CLASS_NAME: "OpenLayers.Renderer.Elements"\n -});\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>34381</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer/SVG.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer/SVG.js.xml deleted file mode 100644 index c4509b07d903102798adcced524294a9f705047a..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer/SVG.js.xml +++ /dev/null @@ -1,1050 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>SVG.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Renderer/Elements.js\n - */\n -\n -/**\n - * Class: OpenLayers.Renderer.SVG\n - * \n - * Inherits:\n - * - <OpenLayers.Renderer.Elements>\n - */\n -OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {\n -\n - /** \n - * Property: xmlns\n - * {String}\n - */\n - xmlns: "http://www.w3.org/2000/svg",\n - \n - /**\n - * Property: xlinkns\n - * {String}\n - */\n - xlinkns: "http://www.w3.org/1999/xlink",\n -\n - /**\n - * Constant: MAX_PIXEL\n - * {Integer} Firefox has a limitation where values larger or smaller than \n - * about 15000 in an SVG document lock the browser up. This \n - * works around it.\n - */\n - MAX_PIXEL: 15000,\n -\n - /**\n - * Property: translationParameters\n - * {Object} Hash with "x" and "y" properties\n - */\n - translationParameters: null,\n - \n - /**\n - * Property: symbolMetrics\n - * {Object} Cache for symbol metrics according to their svg coordinate\n - * space. This is an object keyed by the symbol\'s id, and values are\n - * an array of [width, centerX, centerY].\n - */\n - symbolMetrics: null,\n - \n - /**\n - * Constructor: OpenLayers.Renderer.SVG\n - * \n - * Parameters:\n - * containerID - {String}\n - */\n - initialize: function(containerID) {\n - if (!this.supported()) { \n - return; \n - }\n - OpenLayers.Renderer.Elements.prototype.initialize.apply(this, \n - arguments);\n - this.translationParameters = {x: 0, y: 0};\n - \n - this.symbolMetrics = {};\n - },\n -\n - /**\n - * APIMethod: supported\n - * \n - * Returns:\n - * {Boolean} Whether or not the browser supports the SVG renderer\n - */\n - supported: function() {\n - var svgFeature = "http://www.w3.org/TR/SVG11/feature#";\n - return (document.implementation && \n - (document.implementation.hasFeature("org.w3c.svg", "1.0") || \n - document.implementation.hasFeature(svgFeature + "SVG", "1.1") || \n - document.implementation.hasFeature(svgFeature + "BasicStructure", "1.1") ));\n - }, \n -\n - /**\n - * Method: inValidRange\n - * See #669 for more information\n - *\n - * Parameters:\n - * x - {Integer}\n - * y - {Integer}\n - * xyOnly - {Boolean} whether or not to just check for x and y, which means\n - * to not take the current translation parameters into account if true.\n - * \n - * Returns:\n - * {Boolean} Whether or not the \'x\' and \'y\' coordinates are in the \n - * valid range.\n - */ \n - inValidRange: function(x, y, xyOnly) {\n - var left = x + (xyOnly ? 0 : this.translationParameters.x);\n - var top = y + (xyOnly ? 0 : this.translationParameters.y);\n - return (left >= -this.MAX_PIXEL && left <= this.MAX_PIXEL &&\n - top >= -this.MAX_PIXEL && top <= this.MAX_PIXEL);\n - },\n -\n - /**\n - * Method: setExtent\n - * \n - * Parameters:\n - * extent - {<OpenLayers.Bounds>}\n - * resolutionChanged - {Boolean}\n - * \n - * Returns:\n - * {Boolean} true to notify the layer that the new extent does not exceed\n - * the coordinate range, and the features will not need to be redrawn.\n - * False otherwise.\n - */\n - setExtent: function(extent, resolutionChanged) {\n - var coordSysUnchanged = OpenLayers.Renderer.Elements.prototype.setExtent.apply(this, arguments);\n - \n - var resolution = this.getResolution(),\n - left = -extent.left / resolution,\n - top = extent.top / resolution;\n -\n - // If the resolution has changed, start over changing the corner, because\n - // the features will redraw.\n - if (resolutionChanged) {\n - this.left = left;\n - this.top = top;\n - // Set the viewbox\n - var extentString = "0 0 " + this.size.w + " " + this.size.h;\n -\n - this.rendererRoot.setAttributeNS(null, "viewBox", extentString);\n - this.translate(this.xOffset, 0);\n - return true;\n - } else {\n - var inRange = this.translate(left - this.left + this.xOffset, top - this.top);\n - if (!inRange) {\n - // recenter the coordinate system\n - this.setExtent(extent, true);\n - }\n - return coordSysUnchanged && inRange;\n - }\n - },\n - \n - /**\n - * Method: translate\n - * Transforms the SVG coordinate system\n - * \n - * Parameters:\n - * x - {Float}\n - * y - {Float}\n - * \n - * Returns:\n - * {Boolean} true if the translation parameters are in the valid coordinates\n - * range, false otherwise.\n - */\n - translate: function(x, y) {\n - if (!this.inValidRange(x, y, true)) {\n - return false;\n - } else {\n - var transformString = "";\n - if (x || y) {\n - transformString = "translate(" + x + "," + y + ")";\n - }\n - this.root.setAttributeNS(null, "transform", transformString);\n - this.translationParameters = {x: x, y: y};\n - return true;\n - }\n - },\n -\n - /**\n - * Method: setSize\n - * Sets the size of the drawing surface.\n - * \n - * Parameters:\n - * size - {<OpenLayers.Size>} The size of the drawing surface\n - */\n - setSize: function(size) {\n - OpenLayers.Renderer.prototype.setSize.apply(this, arguments);\n - \n - this.rendererRoot.setAttributeNS(null, "width", this.size.w);\n - this.rendererRoot.setAttributeNS(null, "height", this.size.h);\n - },\n -\n - /** \n - * Method: getNodeType \n - * \n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - * style - {Object}\n - * \n - * Returns:\n - * {String} The corresponding node type for the specified geometry\n - */\n - getNodeType: function(geometry, style) {\n - var nodeType = null;\n - switch (geometry.CLASS_NAME) {\n - case "OpenLayers.Geometry.Point":\n - if (style.externalGraphic) {\n - nodeType = "image";\n - } else if (this.isComplexSymbol(style.graphicName)) {\n - nodeType = "svg";\n - } else {\n - nodeType = "circle";\n - }\n - break;\n - case "OpenLayers.Geometry.Rectangle":\n - nodeType = "rect";\n - break;\n - case "OpenLayers.Geometry.LineString":\n - nodeType = "polyline";\n - break;\n - case "OpenLayers.Geometry.LinearRing":\n - nodeType = "polygon";\n - break;\n - case "OpenLayers.Geometry.Polygon":\n - case "OpenLayers.Geometry.Curve":\n - nodeType = "path";\n - break;\n - default:\n - break;\n - }\n - return nodeType;\n - },\n -\n - /** \n - * Method: setStyle\n - * Use to set all the style attributes to a SVG node.\n - * \n - * Takes care to adjust stroke width and point radius to be\n - * resolution-relative\n - *\n - * Parameters:\n - * node - {SVGDomElement} An SVG element to decorate\n - * style - {Object}\n - * options - {Object} Currently supported options include \n - * \'isFilled\' {Boolean} and\n - * \'isStroked\' {Boolean}\n - */\n - setStyle: function(node, style, options) {\n - style = style || node._style;\n - options = options || node._options;\n - var r = parseFloat(node.getAttributeNS(null, "r"));\n - var widthFactor = 1;\n - var pos;\n - if (node._geometryClass == "OpenLayers.Geometry.Point" && r) {\n - node.style.visibility = "";\n - if (style.graphic === false) {\n - node.style.visibility = "hidden";\n - } else if (style.externalGraphic) {\n - pos = this.getPosition(node);\n - \n - if (style.graphicTitle) {\n - node.setAttributeNS(null, "title", style.graphicTitle);\n - //Standards-conformant SVG\n - // Prevent duplicate nodes. See issue https://github.com/openlayers/openlayers/issues/92 \n - var titleNode = node.getElementsByTagName("title");\n - if (titleNode.length > 0) {\n - titleNode[0].firstChild.textContent = style.graphicTitle;\n - } else {\n - var label = this.nodeFactory(null, "title");\n - label.textContent = style.graphicTitle;\n - node.appendChild(label);\n - }\n - }\n - if (style.graphicWidth && style.graphicHeight) {\n - node.setAttributeNS(null, "preserveAspectRatio", "none");\n - }\n - var width = style.graphicWidth || style.graphicHeight;\n - var height = style.graphicHeight || style.graphicWidth;\n - width = width ? width : style.pointRadius*2;\n - height = height ? height : style.pointRadius*2;\n - var xOffset = (style.graphicXOffset != undefined) ?\n - style.graphicXOffset : -(0.5 * width);\n - var yOffset = (style.graphicYOffset != undefined) ?\n - style.graphicYOffset : -(0.5 * height);\n -\n - var opacity = style.graphicOpacity || style.fillOpacity;\n - \n - node.setAttributeNS(null, "x", (pos.x + xOffset).toFixed());\n - node.setAttributeNS(null, "y", (pos.y + yOffset).toFixed());\n - node.setAttributeNS(null, "width", width);\n - node.setAttributeNS(null, "height", height);\n - node.setAttributeNS(this.xlinkns, "href", style.externalGraphic);\n - node.setAttributeNS(null, "style", "opacity: "+opacity);\n - node.onclick = OpenLayers.Renderer.SVG.preventDefault;\n - } else if (this.isComplexSymbol(style.graphicName)) {\n - // the symbol viewBox is three times as large as the symbol\n - var offset = style.pointRadius * 3;\n - var size = offset * 2;\n - var src = this.importSymbol(style.graphicName);\n - pos = this.getPosition(node);\n - widthFactor = this.symbolMetrics[src.id][0] * 3 / size;\n - \n - // remove the node from the dom before we modify it. This\n - // prevents various rendering issues in Safari and FF\n - var parent = node.parentNode;\n - var nextSibling = node.nextSibling;\n - if(parent) {\n - parent.removeChild(node);\n - }\n - \n - // The more appropriate way to implement this would be use/defs,\n - // but due to various issues in several browsers, it is safer to\n - // copy the symbols instead of referencing them. \n - // See e.g. ticket http://trac.osgeo.org/openlayers/ticket/2985 \n - // and this email thread\n - // http://osgeo-org.1803224.n2.nabble.com/Select-Control-Ctrl-click-on-Feature-with-a-graphicName-opens-new-browser-window-tc5846039.html\n - node.firstChild && node.removeChild(node.firstChild);\n - node.appendChild(src.firstChild.cloneNode(true));\n - node.setAttributeNS(null, "viewBox", src.getAttributeNS(null, "viewBox"));\n - \n - node.setAttributeNS(null, "width", size);\n - node.setAttributeNS(null, "height", size);\n - node.setAttributeNS(null, "x", pos.x - offset);\n - node.setAttributeNS(null, "y", pos.y - offset);\n - \n - // now that the node has all its new properties, insert it\n - // back into the dom where it was\n - if(nextSibling) {\n - parent.insertBefore(node, nextSibling);\n - } else if(parent) {\n - parent.appendChild(node);\n - }\n - } else {\n - node.setAttributeNS(null, "r", style.pointRadius);\n - }\n -\n - var rotation = style.rotation;\n - \n - if ((rotation !== undefined || node._rotation !== undefined) && pos) {\n - node._rotation = rotation;\n - rotation |= 0;\n - if (node.nodeName !== "svg") { \n - node.setAttributeNS(null, "transform", \n - "rotate(" + rotation + " " + pos.x + " " + \n - pos.y + ")"); \n - } else {\n - var metrics = this.symbolMetrics[src.id];\n - node.firstChild.setAttributeNS(null, "transform", "rotate(" \n - + rotation + " " \n - + metrics[1] + " "\n - + metrics[2] + ")");\n - }\n - }\n - }\n - \n - if (options.isFilled) {\n - node.setAttributeNS(null, "fill", style.fillColor);\n - node.setAttributeNS(null, "fill-opacity", style.fillOpacity);\n - } else {\n - node.setAttributeNS(null, "fill", "none");\n - }\n -\n - if (options.isStroked) {\n - node.setAttributeNS(null, "stroke", style.strokeColor);\n - node.setAttributeNS(null, "stroke-opacity", style.strokeOpacity);\n - node.setAttributeNS(null, "stroke-width", style.strokeWidth * widthFactor);\n - node.setAttributeNS(null, "stroke-linecap", style.strokeLinecap || "round");\n - // Hard-coded linejoin for now, to make it look the same as in VML.\n - // There is no strokeLinejoin property yet for symbolizers.\n - node.setAttributeNS(null, "stroke-linejoin", "round");\n - style.strokeDashstyle && node.setAttributeNS(null,\n - "stroke-dasharray", this.dashStyle(style, widthFactor));\n - } else {\n - node.setAttributeNS(null, "stroke", "none");\n - }\n - \n - if (style.pointerEvents) {\n - node.setAttributeNS(null, "pointer-events", style.pointerEvents);\n - }\n - \n - if (style.cursor != null) {\n - node.setAttributeNS(null, "cursor", style.cursor);\n - }\n - \n - return node;\n - },\n -\n - /** \n - * Method: dashStyle\n - * \n - * Parameters:\n - * style - {Object}\n - * widthFactor - {Number}\n - * \n - * Returns:\n - * {String} A SVG compliant \'stroke-dasharray\' value\n - */\n - dashStyle: function(style, widthFactor) {\n - var w = style.strokeWidth * widthFactor;\n - var str = style.strokeDashstyle;\n - switch (str) {\n - case \'solid\':\n - return \'none\';\n - case \'dot\':\n - return [1, 4 * w].join();\n - case \'dash\':\n - return [4 * w, 4 * w].join();\n - case \'dashdot\':\n - return [4 * w, 4 * w, 1, 4 * w].join();\n - case \'longdash\':\n - return [8 * w, 4 * w].join();\n - case \'longdashdot\':\n - return [8 * w, 4 * w, 1, 4 * w].join();\n - default:\n - return OpenLayers.String.trim(str).replace(/\\s+/g, ",");\n - }\n - },\n - \n - /** \n - * Method: createNode\n - * \n - * Parameters:\n - * type - {String} Kind of node to draw\n - * id - {String} Id for node\n - * \n - * Returns:\n - * {DOMElement} A new node of the given type and id\n - */\n - createNode: function(type, id) {\n - var node = document.createElementNS(this.xmlns, type);\n - if (id) {\n - node.setAttributeNS(null, "id", id);\n - }\n - return node; \n - },\n - \n - /** \n - * Method: nodeTypeCompare\n - * \n - * Parameters:\n - * node - {SVGDomElement} An SVG element\n - * type - {String} Kind of node\n - * \n - * Returns:\n - * {Boolean} Whether or not the specified node is of the specified type\n - */\n - nodeTypeCompare: function(node, type) {\n - return (type == node.nodeName);\n - },\n - \n - /**\n - * Method: createRenderRoot\n - * \n - * Returns:\n - * {DOMElement} The specific render engine\'s root element\n - */\n - createRenderRoot: function() {\n - var svg = this.nodeFactory(this.container.id + "_svgRoot", "svg");\n - svg.style.display = "block";\n - return svg;\n - },\n -\n - /**\n - * Method: createRoot\n - * \n - * Parameters:\n - * suffix - {String} suffix to append to the id\n - * \n - * Returns:\n - * {DOMElement}\n - */\n - createRoot: function(suffix) {\n - return this.nodeFactory(this.container.id + suffix, "g");\n - },\n -\n - /**\n - * Method: createDefs\n - *\n - * Returns:\n - * {DOMElement} The element to which we\'ll add the symbol definitions\n - */\n - createDefs: function() {\n - var defs = this.nodeFactory(this.container.id + "_defs", "defs");\n - this.rendererRoot.appendChild(defs);\n - return defs;\n - },\n -\n - /**************************************\n - * *\n - * GEOMETRY DRAWING FUNCTIONS *\n - * *\n - **************************************/\n -\n - /**\n - * Method: drawPoint\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement} or false if the renderer could not draw the point\n - */ \n - drawPoint: function(node, geometry) {\n - return this.drawCircle(node, geometry, 1);\n - },\n -\n - /**\n - * Method: drawCircle\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * radius - {Float}\n - * \n - * Returns:\n - * {DOMElement} or false if the renderer could not draw the circle\n - */\n - drawCircle: function(node, geometry, radius) {\n - var resolution = this.getResolution();\n - var x = ((geometry.x - this.featureDx) / resolution + this.left);\n - var y = (this.top - geometry.y / resolution);\n -\n - if (this.inValidRange(x, y)) { \n - node.setAttributeNS(null, "cx", x);\n - node.setAttributeNS(null, "cy", y);\n - node.setAttributeNS(null, "r", radius);\n - return node;\n - } else {\n - return false;\n - } \n - \n - },\n - \n - /**\n - * Method: drawLineString\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement} or null if the renderer could not draw all components of\n - * the linestring, or false if nothing could be drawn\n - */ \n - drawLineString: function(node, geometry) {\n - var componentsResult = this.getComponentsString(geometry.components);\n - if (componentsResult.path) {\n - node.setAttributeNS(null, "points", componentsResult.path);\n - return (componentsResult.complete ? node : null); \n - } else {\n - return false;\n - }\n - },\n - \n - /**\n - * Method: drawLinearRing\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement} or null if the renderer could not draw all components\n - * of the linear ring, or false if nothing could be drawn\n - */ \n - drawLinearRing: function(node, geometry) {\n - var componentsResult = this.getComponentsString(geometry.components);\n - if (componentsResult.path) {\n - node.setAttributeNS(null, "points", componentsResult.path);\n - return (componentsResult.complete ? node : null); \n - } else {\n - return false;\n - }\n - },\n - \n - /**\n - * Method: drawPolygon\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement} or null if the renderer could not draw all components\n - * of the polygon, or false if nothing could be drawn\n - */ \n - drawPolygon: function(node, geometry) {\n - var d = "";\n - var draw = true;\n - var complete = true;\n - var linearRingResult, path;\n - for (var j=0, len=geometry.components.length; j<len; j++) {\n - d += " M";\n - linearRingResult = this.getComponentsString(\n - geometry.components[j].components, " ");\n - path = linearRingResult.path;\n - if (path) {\n - d += " " + path;\n - complete = linearRingResult.complete && complete;\n - } else {\n - draw = false;\n - }\n - }\n - d += " z";\n - if (draw) {\n - node.setAttributeNS(null, "d", d);\n - node.setAttributeNS(null, "fill-rule", "evenodd");\n - return complete ? node : null;\n - } else {\n - return false;\n - } \n - },\n - \n - /**\n - * Method: drawRectangle\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement} or false if the renderer could not draw the rectangle\n - */ \n - drawRectangle: function(node, geometry) {\n - var resolution = this.getResolution();\n - var x = ((geometry.x - this.featureDx) / resolution + this.left);\n - var y = (this.top - geometry.y / resolution);\n -\n - if (this.inValidRange(x, y)) { \n - node.setAttributeNS(null, "x", x);\n - node.setAttributeNS(null, "y", y);\n - node.setAttributeNS(null, "width", geometry.width / resolution);\n - node.setAttributeNS(null, "height", geometry.height / resolution);\n - return node;\n - } else {\n - return false;\n - }\n - },\n - \n - /**\n - * Method: drawText\n - * This method is only called by the renderer itself.\n - *\n - * Parameters:\n - * featureId - {String}\n - * style -\n - * location - {<OpenLayers.Geometry.Point>}\n - */\n - drawText: function(featureId, style, location) {\n - var drawOutline = (!!style.labelOutlineWidth);\n - // First draw text in halo color and size and overlay the\n - // normal text afterwards\n - if (drawOutline) {\n - var outlineStyle = OpenLayers.Util.extend({}, style);\n - outlineStyle.fontColor = outlineStyle.labelOutlineColor;\n - outlineStyle.fontStrokeColor = outlineStyle.labelOutlineColor;\n - outlineStyle.fontStrokeWidth = style.labelOutlineWidth;\n - delete outlineStyle.labelOutlineWidth;\n - this.drawText(featureId, outlineStyle, location);\n - }\n -\n - var resolution = this.getResolution();\n -\n - var x = ((location.x - this.featureDx) / resolution + this.left);\n - var y = (location.y / resolution - this.top);\n -\n - var suffix = (drawOutline)?this.LABEL_OUTLINE_SUFFIX:this.LABEL_ID_SUFFIX;\n - var label = this.nodeFactory(featureId + suffix, "text");\n -\n - label.setAttributeNS(null, "x", x);\n - label.setAttributeNS(null, "y", -y);\n -\n - if (style.fontColor) {\n - label.setAttributeNS(null, "fill", style.fontColor);\n - }\n - if (style.fontStrokeColor) {\n - label.setAttributeNS(null, "stroke", style.fontStrokeColor);\n - }\n - if (style.fontStrokeWidth) {\n - label.setAttributeNS(null, "stroke-width", style.fontStrokeWidth);\n - }\n - if (style.fontOpacity) {\n - label.setAttributeNS(null, "opacity", style.fontOpacity);\n - }\n - if (style.fontFamily) {\n - label.setAttributeNS(null, "font-family", style.fontFamily);\n - }\n - if (style.fontSize) {\n - label.setAttributeNS(null, "font-size", style.fontSize);\n - }\n - if (style.fontWeight) {\n - label.setAttributeNS(null, "font-weight", style.fontWeight);\n - }\n - if (style.fontStyle) {\n - label.setAttributeNS(null, "font-style", style.fontStyle);\n - }\n - if (style.labelSelect === true) {\n - label.setAttributeNS(null, "pointer-events", "visible");\n - label._featureId = featureId;\n - } else {\n - label.setAttributeNS(null, "pointer-events", "none");\n - }\n - var align = style.labelAlign || OpenLayers.Renderer.defaultSymbolizer.labelAlign;\n - label.setAttributeNS(null, "text-anchor",\n - OpenLayers.Renderer.SVG.LABEL_ALIGN[align[0]] || "middle");\n -\n - if (OpenLayers.IS_GECKO === true) {\n - label.setAttributeNS(null, "dominant-baseline",\n - OpenLayers.Renderer.SVG.LABEL_ALIGN[align[1]] || "central");\n - }\n -\n - var labelRows = style.label.split(\'\\n\');\n - var numRows = labelRows.length;\n - while (label.childNodes.length > numRows) {\n - label.removeChild(label.lastChild);\n - }\n - for (var i = 0; i < numRows; i++) {\n - var tspan = this.nodeFactory(featureId + suffix + "_tspan_" + i, "tspan");\n - if (style.labelSelect === true) {\n - tspan._featureId = featureId;\n - tspan._geometry = location;\n - tspan._geometryClass = location.CLASS_NAME;\n - }\n - if (OpenLayers.IS_GECKO === false) {\n - tspan.setAttributeNS(null, "baseline-shift",\n - OpenLayers.Renderer.SVG.LABEL_VSHIFT[align[1]] || "-35%");\n - }\n - tspan.setAttribute("x", x);\n - if (i == 0) {\n - var vfactor = OpenLayers.Renderer.SVG.LABEL_VFACTOR[align[1]];\n - if (vfactor == null) {\n - vfactor = -.5;\n - }\n - tspan.setAttribute("dy", (vfactor*(numRows-1)) + "em");\n - } else {\n - tspan.setAttribute("dy", "1em");\n - }\n - tspan.textContent = (labelRows[i] === \'\') ? \' \' : labelRows[i];\n - if (!tspan.parentNode) {\n - label.appendChild(tspan);\n - }\n - }\n -\n - if (!label.parentNode) {\n - this.textRoot.appendChild(label);\n - }\n - },\n - \n - /** \n - * Method: getComponentString\n - * \n - * Parameters:\n - * components - {Array(<OpenLayers.Geometry.Point>)} Array of points\n - * separator - {String} character between coordinate pairs. Defaults to ","\n - * \n - * Returns:\n - * {Object} hash with properties "path" (the string created from the\n - * components and "complete" (false if the renderer was unable to\n - * draw all components)\n - */\n - getComponentsString: function(components, separator) {\n - var renderCmp = [];\n - var complete = true;\n - var len = components.length;\n - var strings = [];\n - var str, component;\n - for(var i=0; i<len; i++) {\n - component = components[i];\n - renderCmp.push(component);\n - str = this.getShortString(component);\n - if (str) {\n - strings.push(str);\n - } else {\n - // The current component is outside the valid range. Let\'s\n - // see if the previous or next component is inside the range.\n - // If so, add the coordinate of the intersection with the\n - // valid range bounds.\n - if (i > 0) {\n - if (this.getShortString(components[i - 1])) {\n - strings.push(this.clipLine(components[i],\n - components[i-1]));\n - }\n - }\n - if (i < len - 1) {\n - if (this.getShortString(components[i + 1])) {\n - strings.push(this.clipLine(components[i],\n - components[i+1]));\n - }\n - }\n - complete = false;\n - }\n - }\n -\n - return {\n - path: strings.join(separator || ","),\n - complete: complete\n - };\n - },\n - \n - /**\n - * Method: clipLine\n - * Given two points (one inside the valid range, and one outside),\n - * clips the line betweeen the two points so that the new points are both\n - * inside the valid range.\n - * \n - * Parameters:\n - * badComponent - {<OpenLayers.Geometry.Point>} original geometry of the\n - * invalid point\n - * goodComponent - {<OpenLayers.Geometry.Point>} original geometry of the\n - * valid point\n - * Returns\n - * {String} the SVG coordinate pair of the clipped point (like\n - * getShortString), or an empty string if both passed componets are at\n - * the same point.\n - */\n - clipLine: function(badComponent, goodComponent) {\n - if (goodComponent.equals(badComponent)) {\n - return "";\n - }\n - var resolution = this.getResolution();\n - var maxX = this.MAX_PIXEL - this.translationParameters.x;\n - var maxY = this.MAX_PIXEL - this.translationParameters.y;\n - var x1 = (goodComponent.x - this.featureDx) / resolution + this.left;\n - var y1 = this.top - goodComponent.y / resolution;\n - var x2 = (badComponent.x - this.featureDx) / resolution + this.left;\n - var y2 = this.top - badComponent.y / resolution;\n - var k;\n - if (x2 < -maxX || x2 > maxX) {\n - k = (y2 - y1) / (x2 - x1);\n - x2 = x2 < 0 ? -maxX : maxX;\n - y2 = y1 + (x2 - x1) * k;\n - }\n - if (y2 < -maxY || y2 > maxY) {\n - k = (x2 - x1) / (y2 - y1);\n - y2 = y2 < 0 ? -maxY : maxY;\n - x2 = x1 + (y2 - y1) * k;\n - }\n - return x2 + "," + y2;\n - },\n -\n - /** \n - * Method: getShortString\n - * \n - * Parameters:\n - * point - {<OpenLayers.Geometry.Point>}\n - * \n - * Returns:\n - * {String} or false if point is outside the valid range\n - */\n - getShortString: function(point) {\n - var resolution = this.getResolution();\n - var x = ((point.x - this.featureDx) / resolution + this.left);\n - var y = (this.top - point.y / resolution);\n -\n - if (this.inValidRange(x, y)) { \n - return x + "," + y;\n - } else {\n - return false;\n - }\n - },\n - \n - /**\n - * Method: getPosition\n - * Finds the position of an svg node.\n - * \n - * Parameters:\n - * node - {DOMElement}\n - * \n - * Returns:\n - * {Object} hash with x and y properties, representing the coordinates\n - * within the svg coordinate system\n - */\n - getPosition: function(node) {\n - return({\n - x: parseFloat(node.getAttributeNS(null, "cx")),\n - y: parseFloat(node.getAttributeNS(null, "cy"))\n - });\n - },\n -\n - /**\n - * Method: importSymbol\n - * add a new symbol definition from the rendererer\'s symbol hash\n - * \n - * Parameters:\n - * graphicName - {String} name of the symbol to import\n - * \n - * Returns:\n - * {DOMElement} - the imported symbol\n - */ \n - importSymbol: function (graphicName) {\n - if (!this.defs) {\n - // create svg defs tag\n - this.defs = this.createDefs();\n - }\n - var id = this.container.id + "-" + graphicName;\n - \n - // check if symbol already exists in the defs\n - var existing = document.getElementById(id);\n - if (existing != null) {\n - return existing;\n - }\n - \n - var symbol = OpenLayers.Renderer.symbol[graphicName];\n - if (!symbol) {\n - throw new Error(graphicName + \' is not a valid symbol name\');\n - }\n -\n - var symbolNode = this.nodeFactory(id, "symbol");\n - var node = this.nodeFactory(null, "polygon");\n - symbolNode.appendChild(node);\n - var symbolExtent = new OpenLayers.Bounds(\n - Number.MAX_VALUE, Number.MAX_VALUE, 0, 0);\n -\n - var points = [];\n - var x,y;\n - for (var i=0; i<symbol.length; i=i+2) {\n - x = symbol[i];\n - y = symbol[i+1];\n - symbolExtent.left = Math.min(symbolExtent.left, x);\n - symbolExtent.bottom = Math.min(symbolExtent.bottom, y);\n - symbolExtent.right = Math.max(symbolExtent.right, x);\n - symbolExtent.top = Math.max(symbolExtent.top, y);\n - points.push(x, ",", y);\n - }\n - \n - node.setAttributeNS(null, "points", points.join(" "));\n - \n - var width = symbolExtent.getWidth();\n - var height = symbolExtent.getHeight();\n - // create a viewBox three times as large as the symbol itself,\n - // to allow for strokeWidth being displayed correctly at the corners.\n - var viewBox = [symbolExtent.left - width,\n - symbolExtent.bottom - height, width * 3, height * 3];\n - symbolNode.setAttributeNS(null, "viewBox", viewBox.join(" "));\n - this.symbolMetrics[id] = [\n - Math.max(width, height),\n - symbolExtent.getCenterLonLat().lon,\n - symbolExtent.getCenterLonLat().lat\n - ];\n - \n - this.defs.appendChild(symbolNode);\n - return symbolNode;\n - },\n - \n - /**\n - * Method: getFeatureIdFromEvent\n - * \n - * Parameters:\n - * evt - {Object} An <OpenLayers.Event> object\n - *\n - * Returns:\n - * {String} A feature id or undefined.\n - */\n - getFeatureIdFromEvent: function(evt) {\n - var featureId = OpenLayers.Renderer.Elements.prototype.getFeatureIdFromEvent.apply(this, arguments);\n - if(!featureId) {\n - var target = evt.target;\n - featureId = target.parentNode && target != this.rendererRoot ?\n - target.parentNode._featureId : undefined;\n - }\n - return featureId;\n - },\n -\n - CLASS_NAME: "OpenLayers.Renderer.SVG"\n -});\n -\n -/**\n - * Constant: OpenLayers.Renderer.SVG.LABEL_ALIGN\n - * {Object}\n - */\n -OpenLayers.Renderer.SVG.LABEL_ALIGN = {\n - "l": "start",\n - "r": "end",\n - "b": "bottom",\n - "t": "hanging"\n -};\n -\n -/**\n - * Constant: OpenLayers.Renderer.SVG.LABEL_VSHIFT\n - * {Object}\n - */\n -OpenLayers.Renderer.SVG.LABEL_VSHIFT = {\n - // according to\n - // http://www.w3.org/Graphics/SVG/Test/20061213/htmlObjectHarness/full-text-align-02-b.html\n - // a baseline-shift of -70% shifts the text exactly from the\n - // bottom to the top of the baseline, so -35% moves the text to\n - // the center of the baseline.\n - "t": "-70%",\n - "b": "0" \n -};\n -\n -/**\n - * Constant: OpenLayers.Renderer.SVG.LABEL_VFACTOR\n - * {Object}\n - */\n -OpenLayers.Renderer.SVG.LABEL_VFACTOR = {\n - "t": 0,\n - "b": -1\n -};\n -\n -/**\n - * Function: OpenLayers.Renderer.SVG.preventDefault\n - * Used to prevent default events (especially opening images in a new tab on\n - * ctrl-click) from being executed for externalGraphic symbols\n - */\n -OpenLayers.Renderer.SVG.preventDefault = function(e) {\n - e.preventDefault && e.preventDefault();\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>34784</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer/VML.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer/VML.js.xml deleted file mode 100644 index 4bad4d39244f9e7608502cddf1da9e79b1104c93..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Renderer/VML.js.xml +++ /dev/null @@ -1,1027 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.8</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>VML.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Renderer/Elements.js\n - */\n -\n -/**\n - * Class: OpenLayers.Renderer.VML\n - * Render vector features in browsers with VML capability. Construct a new\n - * VML renderer with the <OpenLayers.Renderer.VML> constructor.\n - * \n - * Note that for all calculations in this class, we use (num | 0) to truncate a \n - * float value to an integer. This is done because it seems that VML doesn\'t \n - * support float values.\n - *\n - * Inherits from:\n - * - <OpenLayers.Renderer.Elements>\n - */\n -OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {\n -\n - /**\n - * Property: xmlns\n - * {String} XML Namespace URN\n - */\n - xmlns: "urn:schemas-microsoft-com:vml",\n - \n - /**\n - * Property: symbolCache\n - * {DOMElement} node holding symbols. This hash is keyed by symbol name,\n - * and each value is a hash with a "path" and an "extent" property.\n - */\n - symbolCache: {},\n -\n - /**\n - * Property: offset\n - * {Object} Hash with "x" and "y" properties\n - */\n - offset: null,\n - \n - /**\n - * Constructor: OpenLayers.Renderer.VML\n - * Create a new VML renderer.\n - *\n - * Parameters:\n - * containerID - {String} The id for the element that contains the renderer\n - */\n - initialize: function(containerID) {\n - if (!this.supported()) { \n - return; \n - }\n - if (!document.namespaces.olv) {\n - document.namespaces.add("olv", this.xmlns);\n - var style = document.createStyleSheet();\n - var shapes = [\'shape\',\'rect\', \'oval\', \'fill\', \'stroke\', \'imagedata\', \'group\',\'textbox\']; \n - for (var i = 0, len = shapes.length; i < len; i++) {\n -\n - style.addRule(\'olv\\\\:\' + shapes[i], "behavior: url(#default#VML); " +\n - "position: absolute; display: inline-block;");\n - } \n - }\n - \n - OpenLayers.Renderer.Elements.prototype.initialize.apply(this, \n - arguments);\n - },\n -\n - /**\n - * APIMethod: supported\n - * Determine whether a browser supports this renderer.\n - *\n - * Returns:\n - * {Boolean} The browser supports the VML renderer\n - */\n - supported: function() {\n - return !!(document.namespaces);\n - }, \n -\n - /**\n - * Method: setExtent\n - * Set the renderer\'s extent\n - *\n - * Parameters:\n - * extent - {<OpenLayers.Bounds>}\n - * resolutionChanged - {Boolean}\n - * \n - * Returns:\n - * {Boolean} true to notify the layer that the new extent does not exceed\n - * the coordinate range, and the features will not need to be redrawn.\n - */\n - setExtent: function(extent, resolutionChanged) {\n - var coordSysUnchanged = OpenLayers.Renderer.Elements.prototype.setExtent.apply(this, arguments);\n - var resolution = this.getResolution();\n - \n - var left = (extent.left/resolution) | 0;\n - var top = (extent.top/resolution - this.size.h) | 0;\n - if (resolutionChanged || !this.offset) {\n - this.offset = {x: left, y: top};\n - left = 0;\n - top = 0;\n - } else {\n - left = left - this.offset.x;\n - top = top - this.offset.y;\n - }\n -\n - \n - var org = (left - this.xOffset) + " " + top;\n - this.root.coordorigin = org;\n - var roots = [this.root, this.vectorRoot, this.textRoot];\n - var root;\n - for(var i=0, len=roots.length; i<len; ++i) {\n - root = roots[i];\n -\n - var size = this.size.w + " " + this.size.h;\n - root.coordsize = size;\n - \n - }\n - // flip the VML display Y axis upside down so it \n - // matches the display Y axis of the map\n - this.root.style.flip = "y";\n - \n - return coordSysUnchanged;\n - },\n -\n -\n - /**\n - * Method: setSize\n - * Set the size of the drawing surface\n - *\n - * Parameters:\n - * size - {<OpenLayers.Size>} the size of the drawing surface\n - */\n - setSize: function(size) {\n - OpenLayers.Renderer.prototype.setSize.apply(this, arguments);\n - \n - // setting width and height on all roots to avoid flicker which we\n - // would get with 100% width and height on child roots\n - var roots = [\n - this.rendererRoot,\n - this.root,\n - this.vectorRoot,\n - this.textRoot\n - ];\n - var w = this.size.w + "px";\n - var h = this.size.h + "px";\n - var root;\n - for(var i=0, len=roots.length; i<len; ++i) {\n - root = roots[i];\n - root.style.width = w;\n - root.style.height = h;\n - }\n - },\n -\n - /**\n - * Method: getNodeType\n - * Get the node type for a geometry and style\n - *\n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - * style - {Object}\n - *\n - * Returns:\n - * {String} The corresponding node type for the specified geometry\n - */\n - getNodeType: function(geometry, style) {\n - var nodeType = null;\n - switch (geometry.CLASS_NAME) {\n - case "OpenLayers.Geometry.Point":\n - if (style.externalGraphic) {\n - nodeType = "olv:rect";\n - } else if (this.isComplexSymbol(style.graphicName)) {\n - nodeType = "olv:shape";\n - } else {\n - nodeType = "olv:oval";\n - }\n - break;\n - case "OpenLayers.Geometry.Rectangle":\n - nodeType = "olv:rect";\n - break;\n - case "OpenLayers.Geometry.LineString":\n - case "OpenLayers.Geometry.LinearRing":\n - case "OpenLayers.Geometry.Polygon":\n - case "OpenLayers.Geometry.Curve":\n - nodeType = "olv:shape";\n - break;\n - default:\n - break;\n - }\n - return nodeType;\n - },\n -\n - /**\n - * Method: setStyle\n - * Use to set all the style attributes to a VML node.\n - *\n - * Parameters:\n - * node - {DOMElement} An VML element to decorate\n - * style - {Object}\n - * options - {Object} Currently supported options include \n - * \'isFilled\' {Boolean} and\n - * \'isStroked\' {Boolean}\n - * geometry - {<OpenLayers.Geometry>}\n - */\n - setStyle: function(node, style, options, geometry) {\n - style = style || node._style;\n - options = options || node._options;\n - var fillColor = style.fillColor;\n -\n - if (node._geometryClass === "OpenLayers.Geometry.Point") {\n - if (style.externalGraphic) {\n - options.isFilled = true;\n - if (style.graphicTitle) {\n - node.title=style.graphicTitle;\n - } \n - var width = style.graphicWidth || style.graphicHeight;\n - var height = style.graphicHeight || style.graphicWidth;\n - width = width ? width : style.pointRadius*2;\n - height = height ? height : style.pointRadius*2;\n -\n - var resolution = this.getResolution();\n - var xOffset = (style.graphicXOffset != undefined) ?\n - style.graphicXOffset : -(0.5 * width);\n - var yOffset = (style.graphicYOffset != undefined) ?\n - style.graphicYOffset : -(0.5 * height);\n - \n - node.style.left = ((((geometry.x - this.featureDx)/resolution - this.offset.x)+xOffset) | 0) + "px";\n - node.style.top = (((geometry.y/resolution - this.offset.y)-(yOffset+height)) | 0) + "px";\n - node.style.width = width + "px";\n - node.style.height = height + "px";\n - node.style.flip = "y";\n - \n - // modify fillColor and options for stroke styling below\n - fillColor = "none";\n - options.isStroked = false;\n - } else if (this.isComplexSymbol(style.graphicName)) {\n - var cache = this.importSymbol(style.graphicName);\n - node.path = cache.path;\n - node.coordorigin = cache.left + "," + cache.bottom;\n - var size = cache.size;\n - node.coordsize = size + "," + size; \n - this.drawCircle(node, geometry, style.pointRadius);\n - node.style.flip = "y";\n - } else {\n - this.drawCircle(node, geometry, style.pointRadius);\n - }\n - }\n -\n - // fill \n - if (options.isFilled) { \n - node.fillcolor = fillColor; \n - } else { \n - node.filled = "false"; \n - }\n - var fills = node.getElementsByTagName("fill");\n - var fill = (fills.length == 0) ? null : fills[0];\n - if (!options.isFilled) {\n - if (fill) {\n - node.removeChild(fill);\n - }\n - } else {\n - if (!fill) {\n - fill = this.createNode(\'olv:fill\', node.id + "_fill");\n - }\n - fill.opacity = style.fillOpacity;\n -\n - if (node._geometryClass === "OpenLayers.Geometry.Point" &&\n - style.externalGraphic) {\n -\n - // override fillOpacity\n - if (style.graphicOpacity) {\n - fill.opacity = style.graphicOpacity;\n - }\n - \n - fill.src = style.externalGraphic;\n - fill.type = "frame";\n - \n - if (!(style.graphicWidth && style.graphicHeight)) {\n - fill.aspect = "atmost";\n - } \n - }\n - if (fill.parentNode != node) {\n - node.appendChild(fill);\n - }\n - }\n -\n - // additional rendering for rotated graphics or symbols\n - var rotation = style.rotation;\n - if ((rotation !== undefined || node._rotation !== undefined)) {\n - node._rotation = rotation;\n - if (style.externalGraphic) {\n - this.graphicRotate(node, xOffset, yOffset, style);\n - // make the fill fully transparent, because we now have\n - // the graphic as imagedata element. We cannot just remove\n - // the fill, because this is part of the hack described\n - // in graphicRotate\n - fill.opacity = 0;\n - } else if(node._geometryClass === "OpenLayers.Geometry.Point") {\n - node.style.rotation = rotation || 0;\n - }\n - }\n -\n - // stroke \n - var strokes = node.getElementsByTagName("stroke");\n - var stroke = (strokes.length == 0) ? null : strokes[0];\n - if (!options.isStroked) {\n - node.stroked = false;\n - if (stroke) {\n - stroke.on = false;\n - }\n - } else {\n - if (!stroke) {\n - stroke = this.createNode(\'olv:stroke\', node.id + "_stroke");\n - node.appendChild(stroke);\n - }\n - stroke.on = true;\n - stroke.color = style.strokeColor; \n - stroke.weight = style.strokeWidth + "px"; \n - stroke.opacity = style.strokeOpacity;\n - stroke.endcap = style.strokeLinecap == \'butt\' ? \'flat\' :\n - (style.strokeLinecap || \'round\');\n - if (style.strokeDashstyle) {\n - stroke.dashstyle = this.dashStyle(style);\n - }\n - }\n - \n - if (style.cursor != "inherit" && style.cursor != null) {\n - node.style.cursor = style.cursor;\n - }\n - return node;\n - },\n -\n - /**\n - * Method: graphicRotate\n - * If a point is to be styled with externalGraphic and rotation, VML fills\n - * cannot be used to display the graphic, because rotation of graphic\n - * fills is not supported by the VML implementation of Internet Explorer.\n - * This method creates a olv:imagedata element inside the VML node,\n - * DXImageTransform.Matrix and BasicImage filters for rotation and\n - * opacity, and a 3-step hack to remove rendering artefacts from the\n - * graphic and preserve the ability of graphics to trigger events.\n - * Finally, OpenLayers methods are used to determine the correct\n - * insertion point of the rotated image, because DXImageTransform.Matrix\n - * does the rotation without the ability to specify a rotation center\n - * point.\n - * \n - * Parameters:\n - * node - {DOMElement}\n - * xOffset - {Number} rotation center relative to image, x coordinate\n - * yOffset - {Number} rotation center relative to image, y coordinate\n - * style - {Object}\n - */\n - graphicRotate: function(node, xOffset, yOffset, style) {\n - var style = style || node._style;\n - var rotation = style.rotation || 0;\n - \n - var aspectRatio, size;\n - if (!(style.graphicWidth && style.graphicHeight)) {\n - // load the image to determine its size\n - var img = new Image();\n - img.onreadystatechange = OpenLayers.Function.bind(function() {\n - if(img.readyState == "complete" ||\n - img.readyState == "interactive") {\n - aspectRatio = img.width / img.height;\n - size = Math.max(style.pointRadius * 2, \n - style.graphicWidth || 0,\n - style.graphicHeight || 0);\n - xOffset = xOffset * aspectRatio;\n - style.graphicWidth = size * aspectRatio;\n - style.graphicHeight = size;\n - this.graphicRotate(node, xOffset, yOffset, style);\n - }\n - }, this);\n - img.src = style.externalGraphic;\n - \n - // will be called again by the onreadystate handler\n - return;\n - } else {\n - size = Math.max(style.graphicWidth, style.graphicHeight);\n - aspectRatio = style.graphicWidth / style.graphicHeight;\n - }\n - \n - var width = Math.round(style.graphicWidth || size * aspectRatio);\n - var height = Math.round(style.graphicHeight || size);\n - node.style.width = width + "px";\n - node.style.height = height + "px";\n - \n - // Three steps are required to remove artefacts for images with\n - // transparent backgrounds (resulting from using DXImageTransform\n - // filters on svg objects), while preserving awareness for browser\n - // events on images:\n - // - Use the fill as usual (like for unrotated images) to handle\n - // events\n - // - specify an imagedata element with the same src as the fill\n - // - style the imagedata element with an AlphaImageLoader filter\n - // with empty src\n - var image = document.getElementById(node.id + "_image");\n - if (!image) {\n - image = this.createNode("olv:imagedata", node.id + "_image");\n - node.appendChild(image);\n - }\n - image.style.width = width + "px";\n - image.style.height = height + "px";\n - image.src = style.externalGraphic;\n - image.style.filter =\n - "progid:DXImageTransform.Microsoft.AlphaImageLoader(" + \n - "src=\'\', sizingMethod=\'scale\')";\n -\n - var rot = rotation * Math.PI / 180;\n - var sintheta = Math.sin(rot);\n - var costheta = Math.cos(rot);\n -\n - // do the rotation on the image\n - var filter =\n - "progid:DXImageTransform.Microsoft.Matrix(M11=" + costheta +\n - ",M12=" + (-sintheta) + ",M21=" + sintheta + ",M22=" + costheta +\n - ",SizingMethod=\'auto expand\')\\n";\n -\n - // set the opacity (needed for the imagedata)\n - var opacity = style.graphicOpacity || style.fillOpacity;\n - if (opacity && opacity != 1) {\n - filter += \n - "progid:DXImageTransform.Microsoft.BasicImage(opacity=" + \n - opacity+")\\n";\n - }\n - node.style.filter = filter;\n -\n - // do the rotation again on a box, so we know the insertion point\n - var centerPoint = new OpenLayers.Geometry.Point(-xOffset, -yOffset);\n - var imgBox = new OpenLayers.Bounds(0, 0, width, height).toGeometry();\n - imgBox.rotate(style.rotation, centerPoint);\n - var imgBounds = imgBox.getBounds();\n -\n - node.style.left = Math.round(\n - parseInt(node.style.left) + imgBounds.left) + "px";\n - node.style.top = Math.round(\n - parseInt(node.style.top) - imgBounds.bottom) + "px";\n - },\n -\n - /**\n - * Method: postDraw\n - * Does some node postprocessing to work around browser issues:\n - * - Some versions of Internet Explorer seem to be unable to set fillcolor\n - * and strokecolor to "none" correctly before the fill node is appended\n - * to a visible vml node. This method takes care of that and sets\n - * fillcolor and strokecolor again if needed.\n - * - In some cases, a node won\'t become visible after being drawn. Setting\n - * style.visibility to "visible" works around that.\n - * \n - * Parameters:\n - * node - {DOMElement}\n - */\n - postDraw: function(node) {\n - node.style.visibility = "visible";\n - var fillColor = node._style.fillColor;\n - var strokeColor = node._style.strokeColor;\n - if (fillColor == "none" &&\n - node.fillcolor != fillColor) {\n - node.fillcolor = fillColor;\n - }\n - if (strokeColor == "none" &&\n - node.strokecolor != strokeColor) {\n - node.strokecolor = strokeColor;\n - }\n - },\n -\n -\n - /**\n - * Method: setNodeDimension\n - * Get the geometry\'s bounds, convert it to our vml coordinate system, \n - * then set the node\'s position, size, and local coordinate system.\n - * \n - * Parameters:\n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - */\n - setNodeDimension: function(node, geometry) {\n -\n - var bbox = geometry.getBounds();\n - if(bbox) {\n - var resolution = this.getResolution();\n - \n - var scaledBox = \n - new OpenLayers.Bounds(((bbox.left - this.featureDx)/resolution - this.offset.x) | 0,\n - (bbox.bottom/resolution - this.offset.y) | 0,\n - ((bbox.right - this.featureDx)/resolution - this.offset.x) | 0,\n - (bbox.top/resolution - this.offset.y) | 0);\n - \n - // Set the internal coordinate system to draw the path\n - node.style.left = scaledBox.left + "px";\n - node.style.top = scaledBox.top + "px";\n - node.style.width = scaledBox.getWidth() + "px";\n - node.style.height = scaledBox.getHeight() + "px";\n - \n - node.coordorigin = scaledBox.left + " " + scaledBox.top;\n - node.coordsize = scaledBox.getWidth()+ " " + scaledBox.getHeight();\n - }\n - },\n - \n - /** \n - * Method: dashStyle\n - * \n - * Parameters:\n - * style - {Object}\n - * \n - * Returns:\n - * {String} A VML compliant \'stroke-dasharray\' value\n - */\n - dashStyle: function(style) {\n - var dash = style.strokeDashstyle;\n - switch (dash) {\n - case \'solid\':\n - case \'dot\':\n - case \'dash\':\n - case \'dashdot\':\n - case \'longdash\':\n - case \'longdashdot\':\n - return dash;\n - default:\n - // very basic guessing of dash style patterns\n - var parts = dash.split(/[ ,]/);\n - if (parts.length == 2) {\n - if (1*parts[0] >= 2*parts[1]) {\n - return "longdash";\n - }\n - return (parts[0] == 1 || parts[1] == 1) ? "dot" : "dash";\n - } else if (parts.length == 4) {\n - return (1*parts[0] >= 2*parts[1]) ? "longdashdot" :\n - "dashdot";\n - }\n - return "solid";\n - }\n - },\n -\n - /**\n - * Method: createNode\n - * Create a new node\n - *\n - * Parameters:\n - * type - {String} Kind of node to draw\n - * id - {String} Id for node\n - *\n - * Returns:\n - * {DOMElement} A new node of the given type and id\n - */\n - createNode: function(type, id) {\n - var node = document.createElement(type);\n - if (id) {\n - node.id = id;\n - }\n - \n - // IE hack to make elements unselectable, to prevent \'blue flash\'\n - // while dragging vectors; #1410\n - node.unselectable = \'on\';\n - node.onselectstart = OpenLayers.Function.False;\n - \n - return node; \n - },\n - \n - /**\n - * Method: nodeTypeCompare\n - * Determine whether a node is of a given type\n - *\n - * Parameters:\n - * node - {DOMElement} An VML element\n - * type - {String} Kind of node\n - *\n - * Returns:\n - * {Boolean} Whether or not the specified node is of the specified type\n - */\n - nodeTypeCompare: function(node, type) {\n -\n - //split type\n - var subType = type;\n - var splitIndex = subType.indexOf(":");\n - if (splitIndex != -1) {\n - subType = subType.substr(splitIndex+1);\n - }\n -\n - //split nodeName\n - var nodeName = node.nodeName;\n - splitIndex = nodeName.indexOf(":");\n - if (splitIndex != -1) {\n - nodeName = nodeName.substr(splitIndex+1);\n - }\n -\n - return (subType == nodeName);\n - },\n -\n - /**\n - * Method: createRenderRoot\n - * Create the renderer root\n - *\n - * Returns:\n - * {DOMElement} The specific render engine\'s root element\n - */\n - createRenderRoot: function() {\n - return this.nodeFactory(this.container.id + "_vmlRoot", "div");\n - },\n -\n - /**\n - * Method: createRoot\n - * Create the main root element\n - * \n - * Parameters:\n - * suffix - {String} suffix to append to the id\n - *\n - * Returns:\n - * {DOMElement}\n - */\n - createRoot: function(suffix) {\n - return this.nodeFactory(this.container.id + suffix, "olv:group");\n - },\n - \n - /**************************************\n - * *\n - * GEOMETRY DRAWING FUNCTIONS *\n - * *\n - **************************************/\n - \n - /**\n - * Method: drawPoint\n - * Render a point\n - * \n - * Parameters:\n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement} or false if the point could not be drawn\n - */\n - drawPoint: function(node, geometry) {\n - return this.drawCircle(node, geometry, 1);\n - },\n -\n - /**\n - * Method: drawCircle\n - * Render a circle.\n - * Size and Center a circle given geometry (x,y center) and radius\n - * \n - * Parameters:\n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * radius - {float}\n - * \n - * Returns:\n - * {DOMElement} or false if the circle could not ne drawn\n - */\n - drawCircle: function(node, geometry, radius) {\n - if(!isNaN(geometry.x)&& !isNaN(geometry.y)) {\n - var resolution = this.getResolution();\n -\n - node.style.left = ((((geometry.x - this.featureDx) /resolution - this.offset.x) | 0) - radius) + "px";\n - node.style.top = (((geometry.y /resolution - this.offset.y) | 0) - radius) + "px";\n - \n - var diameter = radius * 2;\n - \n - node.style.width = diameter + "px";\n - node.style.height = diameter + "px";\n - return node;\n - }\n - return false;\n - },\n -\n -\n - /**\n - * Method: drawLineString\n - * Render a linestring.\n - * \n - * Parameters:\n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement}\n - */\n - drawLineString: function(node, geometry) {\n - return this.drawLine(node, geometry, false);\n - },\n -\n - /**\n - * Method: drawLinearRing\n - * Render a linearring\n - * \n - * Parameters:\n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement}\n - */\n - drawLinearRing: function(node, geometry) {\n - return this.drawLine(node, geometry, true);\n - },\n -\n - /**\n - * Method: DrawLine\n - * Render a line.\n - * \n - * Parameters:\n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * closeLine - {Boolean} Close the line? (make it a ring?)\n - * \n - * Returns:\n - * {DOMElement}\n - */\n - drawLine: function(node, geometry, closeLine) {\n -\n - this.setNodeDimension(node, geometry);\n -\n - var resolution = this.getResolution();\n - var numComponents = geometry.components.length;\n - var parts = new Array(numComponents);\n -\n - var comp, x, y;\n - for (var i = 0; i < numComponents; i++) {\n - comp = geometry.components[i];\n - x = ((comp.x - this.featureDx)/resolution - this.offset.x) | 0;\n - y = (comp.y/resolution - this.offset.y) | 0;\n - parts[i] = " " + x + "," + y + " l ";\n - }\n - var end = (closeLine) ? " x e" : " e";\n - node.path = "m" + parts.join("") + end;\n - return node;\n - },\n -\n - /**\n - * Method: drawPolygon\n - * Render a polygon\n - * \n - * Parameters:\n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement}\n - */\n - drawPolygon: function(node, geometry) {\n - this.setNodeDimension(node, geometry);\n -\n - var resolution = this.getResolution();\n - \n - var path = [];\n - var j, jj, points, area, first, second, i, ii, comp, pathComp, x, y;\n - for (j=0, jj=geometry.components.length; j<jj; j++) {\n - path.push("m");\n - points = geometry.components[j].components;\n - // we only close paths of interior rings with area\n - area = (j === 0);\n - first = null;\n - second = null;\n - for (i=0, ii=points.length; i<ii; i++) {\n - comp = points[i];\n - x = ((comp.x - this.featureDx) / resolution - this.offset.x) | 0;\n - y = (comp.y / resolution - this.offset.y) | 0;\n - pathComp = " " + x + "," + y;\n - path.push(pathComp);\n - if (i==0) {\n - path.push(" l");\n - }\n - if (!area) {\n - // IE improperly renders sub-paths that have no area.\n - // Instead of checking the area of every ring, we confirm\n - // the ring has at least three distinct points. This does\n - // not catch all non-zero area cases, but it greatly improves\n - // interior ring digitizing and is a minor performance hit\n - // when rendering rings with many points.\n - if (!first) {\n - first = pathComp;\n - } else if (first != pathComp) {\n - if (!second) {\n - second = pathComp;\n - } else if (second != pathComp) {\n - // stop looking\n - area = true;\n - }\n - }\n - }\n - }\n - path.push(area ? " x " : " ");\n - }\n - path.push("e");\n - node.path = path.join("");\n - return node;\n - },\n -\n - /**\n - * Method: drawRectangle\n - * Render a rectangle\n - * \n - * Parameters:\n - * node - {DOMElement}\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {DOMElement}\n - */\n - drawRectangle: function(node, geometry) {\n - var resolution = this.getResolution();\n - \n - node.style.left = (((geometry.x - this.featureDx)/resolution - this.offset.x) | 0) + "px";\n - node.style.top = ((geometry.y/resolution - this.offset.y) | 0) + "px";\n - node.style.width = ((geometry.width/resolution) | 0) + "px";\n - node.style.height = ((geometry.height/resolution) | 0) + "px";\n - \n - return node;\n - },\n - \n - /**\n - * Method: drawText\n - * This method is only called by the renderer itself.\n - * \n - * Parameters: \n - * featureId - {String}\n - * style -\n - * location - {<OpenLayers.Geometry.Point>}\n - */\n - drawText: function(featureId, style, location) {\n - var label = this.nodeFactory(featureId + this.LABEL_ID_SUFFIX, "olv:rect");\n - var textbox = this.nodeFactory(featureId + this.LABEL_ID_SUFFIX + "_textbox", "olv:textbox");\n - \n - var resolution = this.getResolution();\n - label.style.left = (((location.x - this.featureDx)/resolution - this.offset.x) | 0) + "px";\n - label.style.top = ((location.y/resolution - this.offset.y) | 0) + "px";\n - label.style.flip = "y";\n -\n - textbox.innerText = style.label;\n -\n - if (style.cursor != "inherit" && style.cursor != null) {\n - textbox.style.cursor = style.cursor;\n - }\n - if (style.fontColor) {\n - textbox.style.color = style.fontColor;\n - }\n - if (style.fontOpacity) {\n - textbox.style.filter = \'alpha(opacity=\' + (style.fontOpacity * 100) + \')\';\n - }\n - if (style.fontFamily) {\n - textbox.style.fontFamily = style.fontFamily;\n - }\n - if (style.fontSize) {\n - textbox.style.fontSize = style.fontSize;\n - }\n - if (style.fontWeight) {\n - textbox.style.fontWeight = style.fontWeight;\n - }\n - if (style.fontStyle) {\n - textbox.style.fontStyle = style.fontStyle;\n - }\n - if(style.labelSelect === true) {\n - label._featureId = featureId;\n - textbox._featureId = featureId;\n - textbox._geometry = location;\n - textbox._geometryClass = location.CLASS_NAME;\n - }\n - textbox.style.whiteSpace = "nowrap";\n - // fun with IE: IE7 in standards compliant mode does not display any\n - // text with a left inset of 0. So we set this to 1px and subtract one\n - // pixel later when we set label.style.left\n - textbox.inset = "1px,0px,0px,0px";\n -\n - if(!label.parentNode) {\n - label.appendChild(textbox);\n - this.textRoot.appendChild(label);\n - }\n -\n - var align = style.labelAlign || "cm";\n - if (align.length == 1) {\n - align += "m";\n - }\n - var xshift = textbox.clientWidth *\n - (OpenLayers.Renderer.VML.LABEL_SHIFT[align.substr(0,1)]);\n - var yshift = textbox.clientHeight *\n - (OpenLayers.Renderer.VML.LABEL_SHIFT[align.substr(1,1)]);\n - label.style.left = parseInt(label.style.left)-xshift-1+"px";\n - label.style.top = parseInt(label.style.top)+yshift+"px";\n - \n - },\n - \n - /**\n - * Method: moveRoot\n - * moves this renderer\'s root to a different renderer.\n - * \n - * Parameters:\n - * renderer - {<OpenLayers.Renderer>} target renderer for the moved root\n - * root - {DOMElement} optional root node. To be used when this renderer\n - * holds roots from multiple layers to tell this method which one to\n - * detach\n - * \n - * Returns:\n - * {Boolean} true if successful, false otherwise\n - */\n - moveRoot: function(renderer) {\n - var layer = this.map.getLayer(renderer.container.id);\n - if(layer instanceof OpenLayers.Layer.Vector.RootContainer) {\n - layer = this.map.getLayer(this.container.id);\n - }\n - layer && layer.renderer.clear();\n - OpenLayers.Renderer.Elements.prototype.moveRoot.apply(this, arguments);\n - layer && layer.redraw();\n - },\n - \n - /**\n - * Method: importSymbol\n - * add a new symbol definition from the rendererer\'s symbol hash\n - * \n - * Parameters:\n - * graphicName - {String} name of the symbol to import\n - * \n - * Returns:\n - * {Object} - hash of {DOMElement} "symbol" and {Number} "size"\n - */ \n - importSymbol: function (graphicName) {\n - var id = this.container.id + "-" + graphicName;\n - \n - // check if symbol already exists in the cache\n - var cache = this.symbolCache[id];\n - if (cache) {\n - return cache;\n - }\n - \n - var symbol = OpenLayers.Renderer.symbol[graphicName];\n - if (!symbol) {\n - throw new Error(graphicName + \' is not a valid symbol name\');\n - }\n -\n - var symbolExtent = new OpenLayers.Bounds(\n - Number.MAX_VALUE, Number.MAX_VALUE, 0, 0);\n - \n - var pathitems = ["m"];\n - for (var i=0; i<symbol.length; i=i+2) {\n - var x = symbol[i];\n - var y = symbol[i+1];\n - symbolExtent.left = Math.min(symbolExtent.left, x);\n - symbolExtent.bottom = Math.min(symbolExtent.bottom, y);\n - symbolExtent.right = Math.max(symbolExtent.right, x);\n - symbolExtent.top = Math.max(symbolExtent.top, y);\n -\n - pathitems.push(x);\n - pathitems.push(y);\n - if (i == 0) {\n - pathitems.push("l");\n - }\n - }\n - pathitems.push("x e");\n - var path = pathitems.join(" ");\n -\n - var diff = (symbolExtent.getWidth() - symbolExtent.getHeight()) / 2;\n - if(diff > 0) {\n - symbolExtent.bottom = symbolExtent.bottom - diff;\n - symbolExtent.top = symbolExtent.top + diff;\n - } else {\n - symbolExtent.left = symbolExtent.left + diff;\n - symbolExtent.right = symbolExtent.right - diff;\n - }\n - \n - cache = {\n - path: path,\n - size: symbolExtent.getWidth(), // equals getHeight() now\n - left: symbolExtent.left,\n - bottom: symbolExtent.bottom\n - };\n - this.symbolCache[id] = cache;\n - \n - return cache;\n - },\n - \n - CLASS_NAME: "OpenLayers.Renderer.VML"\n -});\n -\n -/**\n - * Constant: OpenLayers.Renderer.VML.LABEL_SHIFT\n - * {Object}\n - */\n -OpenLayers.Renderer.VML.LABEL_SHIFT = {\n - "l": 0,\n - "c": .5,\n - "r": 1,\n - "t": 0,\n - "m": .5,\n - "b": 1\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>33790</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Request.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Request.js.xml deleted file mode 100644 index 1960d5877bba4ecf25164a4ce694ac6e9466a639..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Request.js.xml +++ /dev/null @@ -1,466 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Request.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Events.js\n - */\n -\n -/**\n - * TODO: deprecate me\n - * Use OpenLayers.Request.proxy instead.\n - */\n -OpenLayers.ProxyHost = "";\n -\n -/**\n - * Namespace: OpenLayers.Request\n - * The OpenLayers.Request namespace contains convenience methods for working\n - * with XMLHttpRequests. These methods work with a cross-browser\n - * W3C compliant <OpenLayers.Request.XMLHttpRequest> class.\n - */\n -OpenLayers.Request = {\n - \n - /**\n - * Constant: DEFAULT_CONFIG\n - * {Object} Default configuration for all requests.\n - */\n - DEFAULT_CONFIG: {\n - method: "GET",\n - url: window.location.href,\n - async: true,\n - user: undefined,\n - password: undefined,\n - params: null,\n - proxy: OpenLayers.ProxyHost,\n - headers: {},\n - data: null,\n - callback: function() {},\n - success: null,\n - failure: null,\n - scope: null\n - },\n - \n - /**\n - * Constant: URL_SPLIT_REGEX\n - */\n - URL_SPLIT_REGEX: /([^:]*:)\\/\\/([^:]*:?[^@]*@)?([^:\\/\\?]*):?([^\\/\\?]*)/,\n - \n - /**\n - * APIProperty: events\n - * {<OpenLayers.Events>} An events object that handles all \n - * events on the {<OpenLayers.Request>} object.\n - *\n - * All event listeners will receive an event object with three properties:\n - * request - {<OpenLayers.Request.XMLHttpRequest>} The request object.\n - * config - {Object} The config object sent to the specific request method.\n - * requestUrl - {String} The request url.\n - * \n - * Supported event types:\n - * complete - Triggered when we have a response from the request, if a\n - * listener returns false, no further response processing will take\n - * place.\n - * success - Triggered when the HTTP response has a success code (200-299).\n - * failure - Triggered when the HTTP response does not have a success code.\n - */\n - events: new OpenLayers.Events(this),\n - \n - /**\n - * Method: makeSameOrigin\n - * Using the specified proxy, returns a same origin url of the provided url.\n - *\n - * Parameters:\n - * url - {String} An arbitrary url\n - * proxy {String|Function} The proxy to use to make the provided url a\n - * same origin url.\n - *\n - * Returns\n - * {String} the same origin url. If no proxy is provided, the returned url\n - * will be the same as the provided url.\n - */\n - makeSameOrigin: function(url, proxy) {\n - var sameOrigin = url.indexOf("http") !== 0;\n - var urlParts = !sameOrigin && url.match(this.URL_SPLIT_REGEX);\n - if (urlParts) {\n - var location = window.location;\n - sameOrigin =\n - urlParts[1] == location.protocol &&\n - urlParts[3] == location.hostname;\n - var uPort = urlParts[4], lPort = location.port;\n - if (uPort != 80 && uPort != "" || lPort != "80" && lPort != "") {\n - sameOrigin = sameOrigin && uPort == lPort;\n - }\n - }\n - if (!sameOrigin) {\n - if (proxy) {\n - if (typeof proxy == "function") {\n - url = proxy(url);\n - } else {\n - url = proxy + encodeURIComponent(url);\n - }\n - } else {\n - OpenLayers.Console.warn(\n - OpenLayers.i18n("proxyNeeded"), {url: url});\n - }\n - }\n - return url;\n - },\n -\n - /**\n - * APIMethod: issue\n - * Create a new XMLHttpRequest object, open it, set any headers, bind\n - * a callback to done state, and send any data. It is recommended that\n - * you use one <GET>, <POST>, <PUT>, <DELETE>, <OPTIONS>, or <HEAD>.\n - * This method is only documented to provide detail on the configuration\n - * options available to all request methods.\n - *\n - * Parameters:\n - * config - {Object} Object containing properties for configuring the\n - * request. Allowed configuration properties are described below.\n - * This object is modified and should not be reused.\n - *\n - * Allowed config properties:\n - * method - {String} One of GET, POST, PUT, DELETE, HEAD, or\n - * OPTIONS. Default is GET.\n - * url - {String} URL for the request.\n - * async - {Boolean} Open an asynchronous request. Default is true.\n - * user - {String} User for relevant authentication scheme. Set\n - * to null to clear current user.\n - * password - {String} Password for relevant authentication scheme.\n - * Set to null to clear current password.\n - * proxy - {String} Optional proxy. Defaults to\n - * <OpenLayers.ProxyHost>.\n - * params - {Object} Any key:value pairs to be appended to the\n - * url as a query string. Assumes url doesn\'t already include a query\n - * string or hash. Typically, this is only appropriate for <GET>\n - * requests where the query string will be appended to the url.\n - * Parameter values that are arrays will be\n - * concatenated with a comma (note that this goes against form-encoding)\n - * as is done with <OpenLayers.Util.getParameterString>.\n - * headers - {Object} Object with header:value pairs to be set on\n - * the request.\n - * data - {String | Document} Optional data to send with the request.\n - * Typically, this is only used with <POST> and <PUT> requests.\n - * Make sure to provide the appropriate "Content-Type" header for your\n - * data. For <POST> and <PUT> requests, the content type defaults to\n - * "application-xml". If your data is a different content type, or\n - * if you are using a different HTTP method, set the "Content-Type"\n - * header to match your data type.\n - * callback - {Function} Function to call when request is done.\n - * To determine if the request failed, check request.status (200\n - * indicates success).\n - * success - {Function} Optional function to call if request status is in\n - * the 200s. This will be called in addition to callback above and\n - * would typically only be used as an alternative.\n - * failure - {Function} Optional function to call if request status is not\n - * in the 200s. This will be called in addition to callback above and\n - * would typically only be used as an alternative.\n - * scope - {Object} If callback is a public method on some object,\n - * set the scope to that object.\n - *\n - * Returns:\n - * {XMLHttpRequest} Request object. To abort the request before a response\n - * is received, call abort() on the request object.\n - */\n - issue: function(config) { \n - // apply default config - proxy host may have changed\n - var defaultConfig = OpenLayers.Util.extend(\n - this.DEFAULT_CONFIG,\n - {proxy: OpenLayers.ProxyHost}\n - );\n - config = OpenLayers.Util.applyDefaults(config, defaultConfig);\n - \n - // Always set the "X-Requested-With" header to signal that this request\n - // was issued through the XHR-object. Since header keys are case \n - // insensitive and we want to allow overriding of the "X-Requested-With"\n - // header through the user we cannot use applyDefaults, but have to \n - // check manually whether we were called with a "X-Requested-With"\n - // header.\n - var customRequestedWithHeader = false,\n - headerKey;\n - for(headerKey in config.headers) {\n - if (config.headers.hasOwnProperty( headerKey )) {\n - if (headerKey.toLowerCase() === \'x-requested-with\') {\n - customRequestedWithHeader = true;\n - }\n - }\n - }\n - if (customRequestedWithHeader === false) {\n - // we did not have a custom "X-Requested-With" header\n - config.headers[\'X-Requested-With\'] = \'XMLHttpRequest\';\n - }\n -\n - // create request, open, and set headers\n - var request = new OpenLayers.Request.XMLHttpRequest();\n - var url = OpenLayers.Util.urlAppend(config.url, \n - OpenLayers.Util.getParameterString(config.params || {}));\n - url = OpenLayers.Request.makeSameOrigin(url, config.proxy);\n - request.open(\n - config.method, url, config.async, config.user, config.password\n - );\n - for(var header in config.headers) {\n - request.setRequestHeader(header, config.headers[header]);\n - }\n -\n - var events = this.events;\n -\n - // we want to execute runCallbacks with "this" as the\n - // execution scope\n - var self = this;\n - \n - request.onreadystatechange = function() {\n - if(request.readyState == OpenLayers.Request.XMLHttpRequest.DONE) {\n - var proceed = events.triggerEvent(\n - "complete",\n - {request: request, config: config, requestUrl: url}\n - );\n - if(proceed !== false) {\n - self.runCallbacks(\n - {request: request, config: config, requestUrl: url}\n - );\n - }\n - }\n - };\n - \n - // send request (optionally with data) and return\n - // call in a timeout for asynchronous requests so the return is\n - // available before readyState == 4 for cached docs\n - if(config.async === false) {\n - request.send(config.data);\n - } else {\n - window.setTimeout(function(){\n - if (request.readyState !== 0) { // W3C: 0-UNSENT\n - request.send(config.data);\n - }\n - }, 0);\n - }\n - return request;\n - },\n - \n - /**\n - * Method: runCallbacks\n - * Calls the complete, success and failure callbacks. Application\n - * can listen to the "complete" event, have the listener \n - * display a confirm window and always return false, and\n - * execute OpenLayers.Request.runCallbacks if the user\n - * hits "yes" in the confirm window.\n - *\n - * Parameters:\n - * options - {Object} Hash containing request, config and requestUrl keys\n - */\n - runCallbacks: function(options) {\n - var request = options.request;\n - var config = options.config;\n - \n - // bind callbacks to readyState 4 (done)\n - var complete = (config.scope) ?\n - OpenLayers.Function.bind(config.callback, config.scope) :\n - config.callback;\n - \n - // optional success callback\n - var success;\n - if(config.success) {\n - success = (config.scope) ?\n - OpenLayers.Function.bind(config.success, config.scope) :\n - config.success;\n - }\n -\n - // optional failure callback\n - var failure;\n - if(config.failure) {\n - failure = (config.scope) ?\n - OpenLayers.Function.bind(config.failure, config.scope) :\n - config.failure;\n - }\n -\n - if (OpenLayers.Util.createUrlObject(config.url).protocol == "file:" &&\n - request.responseText) {\n - request.status = 200;\n - }\n - complete(request);\n -\n - if (!request.status || (request.status >= 200 && request.status < 300)) {\n - this.events.triggerEvent("success", options);\n - if(success) {\n - success(request);\n - }\n - }\n - if(request.status && (request.status < 200 || request.status >= 300)) { \n - this.events.triggerEvent("failure", options);\n - if(failure) {\n - failure(request);\n - }\n - }\n - },\n - \n - /**\n - * APIMethod: GET\n - * Send an HTTP GET request. Additional configuration properties are\n - * documented in the <issue> method, with the method property set\n - * to GET.\n - *\n - * Parameters:\n - * config - {Object} Object with properties for configuring the request.\n - * See the <issue> method for documentation of allowed properties.\n - * This object is modified and should not be reused.\n - * \n - * Returns:\n - * {XMLHttpRequest} Request object.\n - */\n - GET: function(config) {\n - config = OpenLayers.Util.extend(config, {method: "GET"});\n - return OpenLayers.Request.issue(config);\n - },\n - \n - /**\n - * APIMethod: POST\n - * Send a POST request. Additional configuration properties are\n - * documented in the <issue> method, with the method property set\n - * to POST and "Content-Type" header set to "application/xml".\n - *\n - * Parameters:\n - * config - {Object} Object with properties for configuring the request.\n - * See the <issue> method for documentation of allowed properties. The\n - * default "Content-Type" header will be set to "application-xml" if\n - * none is provided. This object is modified and should not be reused.\n - * \n - * Returns:\n - * {XMLHttpRequest} Request object.\n - */\n - POST: function(config) {\n - config = OpenLayers.Util.extend(config, {method: "POST"});\n - // set content type to application/xml if it isn\'t already set\n - config.headers = config.headers ? config.headers : {};\n - if(!("CONTENT-TYPE" in OpenLayers.Util.upperCaseObject(config.headers))) {\n - config.headers["Content-Type"] = "application/xml";\n - }\n - return OpenLayers.Request.issue(config);\n - },\n - \n - /**\n - * APIMethod: PUT\n - * Send an HTTP PUT request. Additional configuration properties are\n - * documented in the <issue> method, with the method property set\n - * to PUT and "Content-Type" header set to "application/xml".\n - *\n - * Parameters:\n - * config - {Object} Object with properties for configuring the request.\n - * See the <issue> method for documentation of allowed properties. The\n - * default "Content-Type" header will be set to "application-xml" if\n - * none is provided. This object is modified and should not be reused.\n - * \n - * Returns:\n - * {XMLHttpRequest} Request object.\n - */\n - PUT: function(config) {\n - config = OpenLayers.Util.extend(config, {method: "PUT"});\n - // set content type to application/xml if it isn\'t already set\n - config.headers = config.headers ? config.headers : {};\n - if(!("CONTENT-TYPE" in OpenLayers.Util.upperCaseObject(config.headers))) {\n - config.headers["Content-Type"] = "application/xml";\n - }\n - return OpenLayers.Request.issue(config);\n - },\n - \n - /**\n - * APIMethod: DELETE\n - * Send an HTTP DELETE request. Additional configuration properties are\n - * documented in the <issue> method, with the method property set\n - * to DELETE.\n - *\n - * Parameters:\n - * config - {Object} Object with properties for configuring the request.\n - * See the <issue> method for documentation of allowed properties.\n - * This object is modified and should not be reused.\n - * \n - * Returns:\n - * {XMLHttpRequest} Request object.\n - */\n - DELETE: function(config) {\n - config = OpenLayers.Util.extend(config, {method: "DELETE"});\n - return OpenLayers.Request.issue(config);\n - },\n - \n - /**\n - * APIMethod: HEAD\n - * Send an HTTP HEAD request. Additional configuration properties are\n - * documented in the <issue> method, with the method property set\n - * to HEAD.\n - *\n - * Parameters:\n - * config - {Object} Object with properties for configuring the request.\n - * See the <issue> method for documentation of allowed properties.\n - * This object is modified and should not be reused.\n - * \n - * Returns:\n - * {XMLHttpRequest} Request object.\n - */\n - HEAD: function(config) {\n - config = OpenLayers.Util.extend(config, {method: "HEAD"});\n - return OpenLayers.Request.issue(config);\n - },\n - \n - /**\n - * APIMethod: OPTIONS\n - * Send an HTTP OPTIONS request. Additional configuration properties are\n - * documented in the <issue> method, with the method property set\n - * to OPTIONS.\n - *\n - * Parameters:\n - * config - {Object} Object with properties for configuring the request.\n - * See the <issue> method for documentation of allowed properties.\n - * This object is modified and should not be reused.\n - * \n - * Returns:\n - * {XMLHttpRequest} Request object.\n - */\n - OPTIONS: function(config) {\n - config = OpenLayers.Util.extend(config, {method: "OPTIONS"});\n - return OpenLayers.Request.issue(config);\n - }\n -\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>16643</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Request.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Request.xml deleted file mode 100644 index e51a1399ab08700794f805fbfd69fb92dc851b56..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Request.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Request</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Request</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Request/XMLHttpRequest.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Request/XMLHttpRequest.js.xml deleted file mode 100644 index 721f8b7c5d371a874270e8bb432183cff8bb613f..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Request/XMLHttpRequest.js.xml +++ /dev/null @@ -1,495 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.79</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>XMLHttpRequest.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -// XMLHttpRequest.js Copyright (C) 2010 Sergey Ilinsky (http://www.ilinsky.com)\n -//\n -// Licensed under the Apache License, Version 2.0 (the "License");\n -// you may not use this file except in compliance with the License.\n -// You may obtain a copy of the License at\n -//\n -// http://www.apache.org/licenses/LICENSE-2.0\n -//\n -// Unless required by applicable law or agreed to in writing, software\n -// distributed under the License is distributed on an "AS IS" BASIS,\n -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n -// See the License for the specific language governing permissions and\n -// limitations under the License.\n -\n -/**\n - * @requires OpenLayers/Request.js\n - */\n -\n -(function () {\n -\n - // Save reference to earlier defined object implementation (if any)\n - var oXMLHttpRequest = window.XMLHttpRequest;\n -\n - // Define on browser type\n - var bGecko = !!window.controllers,\n - bIE = window.document.all && !window.opera,\n - bIE7 = bIE && window.navigator.userAgent.match(/MSIE 7.0/);\n -\n - // Enables "XMLHttpRequest()" call next to "new XMLHttpReques()"\n - function fXMLHttpRequest() {\n - this._object = oXMLHttpRequest && !bIE7 ? new oXMLHttpRequest : new window.ActiveXObject("Microsoft.XMLHTTP");\n - this._listeners = [];\n - };\n -\n - // Constructor\n - function cXMLHttpRequest() {\n - return new fXMLHttpRequest;\n - };\n - cXMLHttpRequest.prototype = fXMLHttpRequest.prototype;\n -\n - // BUGFIX: Firefox with Firebug installed would break pages if not executed\n - if (bGecko && oXMLHttpRequest.wrapped)\n - cXMLHttpRequest.wrapped = oXMLHttpRequest.wrapped;\n -\n - // Constants\n - cXMLHttpRequest.UNSENT = 0;\n - cXMLHttpRequest.OPENED = 1;\n - cXMLHttpRequest.HEADERS_RECEIVED = 2;\n - cXMLHttpRequest.LOADING = 3;\n - cXMLHttpRequest.DONE = 4;\n -\n - // Public Properties\n - cXMLHttpRequest.prototype.readyState = cXMLHttpRequest.UNSENT;\n - cXMLHttpRequest.prototype.responseText = \'\';\n - cXMLHttpRequest.prototype.responseXML = null;\n - cXMLHttpRequest.prototype.status = 0;\n - cXMLHttpRequest.prototype.statusText = \'\';\n -\n - // Priority proposal\n - cXMLHttpRequest.prototype.priority = "NORMAL";\n -\n - // Instance-level Events Handlers\n - cXMLHttpRequest.prototype.onreadystatechange = null;\n -\n - // Class-level Events Handlers\n - cXMLHttpRequest.onreadystatechange = null;\n - cXMLHttpRequest.onopen = null;\n - cXMLHttpRequest.onsend = null;\n - cXMLHttpRequest.onabort = null;\n -\n - // Public Methods\n - cXMLHttpRequest.prototype.open = function(sMethod, sUrl, bAsync, sUser, sPassword) {\n - // Delete headers, required when object is reused\n - delete this._headers;\n -\n - // When bAsync parameter value is omitted, use true as default\n - if (arguments.length < 3)\n - bAsync = true;\n -\n - // Save async parameter for fixing Gecko bug with missing readystatechange in synchronous requests\n - this._async = bAsync;\n -\n - // Set the onreadystatechange handler\n - var oRequest = this,\n - nState = this.readyState,\n - fOnUnload;\n -\n - // BUGFIX: IE - memory leak on page unload (inter-page leak)\n - if (bIE && bAsync) {\n - fOnUnload = function() {\n - if (nState != cXMLHttpRequest.DONE) {\n - fCleanTransport(oRequest);\n - // Safe to abort here since onreadystatechange handler removed\n - oRequest.abort();\n - }\n - };\n - window.attachEvent("onunload", fOnUnload);\n - }\n -\n - // Add method sniffer\n - if (cXMLHttpRequest.onopen)\n - cXMLHttpRequest.onopen.apply(this, arguments);\n -\n - if (arguments.length > 4)\n - this._object.open(sMethod, sUrl, bAsync, sUser, sPassword);\n - else\n - if (arguments.length > 3)\n - this._object.open(sMethod, sUrl, bAsync, sUser);\n - else\n - this._object.open(sMethod, sUrl, bAsync);\n -\n - this.readyState = cXMLHttpRequest.OPENED;\n - fReadyStateChange(this);\n -\n - this._object.onreadystatechange = function() {\n - if (bGecko && !bAsync)\n - return;\n -\n - // Synchronize state\n - oRequest.readyState = oRequest._object.readyState;\n -\n - //\n - fSynchronizeValues(oRequest);\n -\n - // BUGFIX: Firefox fires unnecessary DONE when aborting\n - if (oRequest._aborted) {\n - // Reset readyState to UNSENT\n - oRequest.readyState = cXMLHttpRequest.UNSENT;\n -\n - // Return now\n - return;\n - }\n -\n - if (oRequest.readyState == cXMLHttpRequest.DONE) {\n - // Free up queue\n - delete oRequest._data;\n -/* if (bAsync)\n - fQueue_remove(oRequest);*/\n - //\n - fCleanTransport(oRequest);\n -// Uncomment this block if you need a fix for IE cache\n -/*\n - // BUGFIX: IE - cache issue\n - if (!oRequest._object.getResponseHeader("Date")) {\n - // Save object to cache\n - oRequest._cached = oRequest._object;\n -\n - // Instantiate a new transport object\n - cXMLHttpRequest.call(oRequest);\n -\n - // Re-send request\n - if (sUser) {\n - if (sPassword)\n - oRequest._object.open(sMethod, sUrl, bAsync, sUser, sPassword);\n - else\n - oRequest._object.open(sMethod, sUrl, bAsync, sUser);\n - }\n - else\n - oRequest._object.open(sMethod, sUrl, bAsync);\n - oRequest._object.setRequestHeader("If-Modified-Since", oRequest._cached.getResponseHeader("Last-Modified") || new window.Date(0));\n - // Copy headers set\n - if (oRequest._headers)\n - for (var sHeader in oRequest._headers)\n - if (typeof oRequest._headers[sHeader] == "string") // Some frameworks prototype objects with functions\n - oRequest._object.setRequestHeader(sHeader, oRequest._headers[sHeader]);\n -\n - oRequest._object.onreadystatechange = function() {\n - // Synchronize state\n - oRequest.readyState = oRequest._object.readyState;\n -\n - if (oRequest._aborted) {\n - //\n - oRequest.readyState = cXMLHttpRequest.UNSENT;\n -\n - // Return\n - return;\n - }\n -\n - if (oRequest.readyState == cXMLHttpRequest.DONE) {\n - // Clean Object\n - fCleanTransport(oRequest);\n -\n - // get cached request\n - if (oRequest.status == 304)\n - oRequest._object = oRequest._cached;\n -\n - //\n - delete oRequest._cached;\n -\n - //\n - fSynchronizeValues(oRequest);\n -\n - //\n - fReadyStateChange(oRequest);\n -\n - // BUGFIX: IE - memory leak in interrupted\n - if (bIE && bAsync)\n - window.detachEvent("onunload", fOnUnload);\n - }\n - };\n - oRequest._object.send(null);\n -\n - // Return now - wait until re-sent request is finished\n - return;\n - };\n -*/\n - // BUGFIX: IE - memory leak in interrupted\n - if (bIE && bAsync)\n - window.detachEvent("onunload", fOnUnload);\n - }\n -\n - // BUGFIX: Some browsers (Internet Explorer, Gecko) fire OPEN readystate twice\n - if (nState != oRequest.readyState)\n - fReadyStateChange(oRequest);\n -\n - nState = oRequest.readyState;\n - }\n - };\n - function fXMLHttpRequest_send(oRequest) {\n - oRequest._object.send(oRequest._data);\n -\n - // BUGFIX: Gecko - missing readystatechange calls in synchronous requests\n - if (bGecko && !oRequest._async) {\n - oRequest.readyState = cXMLHttpRequest.OPENED;\n -\n - // Synchronize state\n - fSynchronizeValues(oRequest);\n -\n - // Simulate missing states\n - while (oRequest.readyState < cXMLHttpRequest.DONE) {\n - oRequest.readyState++;\n - fReadyStateChange(oRequest);\n - // Check if we are aborted\n - if (oRequest._aborted)\n - return;\n - }\n - }\n - };\n - cXMLHttpRequest.prototype.send = function(vData) {\n - // Add method sniffer\n - if (cXMLHttpRequest.onsend)\n - cXMLHttpRequest.onsend.apply(this, arguments);\n -\n - if (!arguments.length)\n - vData = null;\n -\n - // BUGFIX: Safari - fails sending documents created/modified dynamically, so an explicit serialization required\n - // BUGFIX: IE - rewrites any custom mime-type to "text/xml" in case an XMLNode is sent\n - // BUGFIX: Gecko - fails sending Element (this is up to the implementation either to standard)\n - if (vData && vData.nodeType) {\n - vData = window.XMLSerializer ? new window.XMLSerializer().serializeToString(vData) : vData.xml;\n - if (!this._headers["Content-Type"])\n - this._object.setRequestHeader("Content-Type", "application/xml");\n - }\n -\n - this._data = vData;\n -/*\n - // Add to queue\n - if (this._async)\n - fQueue_add(this);\n - else*/\n - fXMLHttpRequest_send(this);\n - };\n - cXMLHttpRequest.prototype.abort = function() {\n - // Add method sniffer\n - if (cXMLHttpRequest.onabort)\n - cXMLHttpRequest.onabort.apply(this, arguments);\n -\n - // BUGFIX: Gecko - unnecessary DONE when aborting\n - if (this.readyState > cXMLHttpRequest.UNSENT)\n - this._aborted = true;\n -\n - this._object.abort();\n -\n - // BUGFIX: IE - memory leak\n - fCleanTransport(this);\n -\n - this.readyState = cXMLHttpRequest.UNSENT;\n -\n - delete this._data;\n -/* if (this._async)\n - fQueue_remove(this);*/\n - };\n - cXMLHttpRequest.prototype.getAllResponseHeaders = function() {\n - return this._object.getAllResponseHeaders();\n - };\n - cXMLHttpRequest.prototype.getResponseHeader = function(sName) {\n - return this._object.getResponseHeader(sName);\n - };\n - cXMLHttpRequest.prototype.setRequestHeader = function(sName, sValue) {\n - // BUGFIX: IE - cache issue\n - if (!this._headers)\n - this._headers = {};\n - this._headers[sName] = sValue;\n -\n - return this._object.setRequestHeader(sName, sValue);\n - };\n -\n - // EventTarget interface implementation\n - cXMLHttpRequest.prototype.addEventListener = function(sName, fHandler, bUseCapture) {\n - for (var nIndex = 0, oListener; oListener = this._listeners[nIndex]; nIndex++)\n - if (oListener[0] == sName && oListener[1] == fHandler && oListener[2] == bUseCapture)\n - return;\n - // Add listener\n - this._listeners.push([sName, fHandler, bUseCapture]);\n - };\n -\n - cXMLHttpRequest.prototype.removeEventListener = function(sName, fHandler, bUseCapture) {\n - for (var nIndex = 0, oListener; oListener = this._listeners[nIndex]; nIndex++)\n - if (oListener[0] == sName && oListener[1] == fHandler && oListener[2] == bUseCapture)\n - break;\n - // Remove listener\n - if (oListener)\n - this._listeners.splice(nIndex, 1);\n - };\n -\n - cXMLHttpRequest.prototype.dispatchEvent = function(oEvent) {\n - var oEventPseudo = {\n - \'type\': oEvent.type,\n - \'target\': this,\n - \'currentTarget\':this,\n - \'eventPhase\': 2,\n - \'bubbles\': oEvent.bubbles,\n - \'cancelable\': oEvent.cancelable,\n - \'timeStamp\': oEvent.timeStamp,\n - \'stopPropagation\': function() {}, // There is no flow\n - \'preventDefault\': function() {}, // There is no default action\n - \'initEvent\': function() {} // Original event object should be initialized\n - };\n -\n - // Execute onreadystatechange\n - if (oEventPseudo.type == "readystatechange" && this.onreadystatechange)\n - (this.onreadystatechange.handleEvent || this.onreadystatechange).apply(this, [oEventPseudo]);\n -\n - // Execute listeners\n - for (var nIndex = 0, oListener; oListener = this._listeners[nIndex]; nIndex++)\n - if (oListener[0] == oEventPseudo.type && !oListener[2])\n - (oListener[1].handleEvent || oListener[1]).apply(this, [oEventPseudo]);\n - };\n -\n - //\n - cXMLHttpRequest.prototype.toString = function() {\n - return \'[\' + "object" + \' \' + "XMLHttpRequest" + \']\';\n - };\n -\n - cXMLHttpRequest.toString = function() {\n - return \'[\' + "XMLHttpRequest" + \']\';\n - };\n -\n - // Helper function\n - function fReadyStateChange(oRequest) {\n - // Sniffing code\n - if (cXMLHttpRequest.onreadystatechange)\n - cXMLHttpRequest.onreadystatechange.apply(oRequest);\n -\n - // Fake event\n - oRequest.dispatchEvent({\n - \'type\': "readystatechange",\n - \'bubbles\': false,\n - \'cancelable\': false,\n - \'timeStamp\': new Date + 0\n - });\n - };\n -\n - function fGetDocument(oRequest) {\n - var oDocument = oRequest.responseXML,\n - sResponse = oRequest.responseText;\n - // Try parsing responseText\n - if (bIE && sResponse && oDocument && !oDocument.documentElement && oRequest.getResponseHeader("Content-Type").match(/[^\\/]+\\/[^\\+]+\\+xml/)) {\n - oDocument = new window.ActiveXObject("Microsoft.XMLDOM");\n - oDocument.async = false;\n - oDocument.validateOnParse = false;\n - oDocument.loadXML(sResponse);\n - }\n - // Check if there is no error in document\n - if (oDocument)\n - if ((bIE && oDocument.parseError != 0) || !oDocument.documentElement || (oDocument.documentElement && oDocument.documentElement.tagName == "parsererror"))\n - return null;\n - return oDocument;\n - };\n -\n - function fSynchronizeValues(oRequest) {\n - try { oRequest.responseText = oRequest._object.responseText; } catch (e) {}\n - try { oRequest.responseXML = fGetDocument(oRequest._object); } catch (e) {}\n - try { oRequest.status = oRequest._object.status; } catch (e) {}\n - try { oRequest.statusText = oRequest._object.statusText; } catch (e) {}\n - };\n -\n - function fCleanTransport(oRequest) {\n - // BUGFIX: IE - memory leak (on-page leak)\n - oRequest._object.onreadystatechange = new window.Function;\n - };\n -/*\n - // Queue manager\n - var oQueuePending = {"CRITICAL":[],"HIGH":[],"NORMAL":[],"LOW":[],"LOWEST":[]},\n - aQueueRunning = [];\n - function fQueue_add(oRequest) {\n - oQueuePending[oRequest.priority in oQueuePending ? oRequest.priority : "NORMAL"].push(oRequest);\n - //\n - setTimeout(fQueue_process);\n - };\n -\n - function fQueue_remove(oRequest) {\n - for (var nIndex = 0, bFound = false; nIndex < aQueueRunning.length; nIndex++)\n - if (bFound)\n - aQueueRunning[nIndex - 1] = aQueueRunning[nIndex];\n - else\n - if (aQueueRunning[nIndex] == oRequest)\n - bFound = true;\n - if (bFound)\n - aQueueRunning.length--;\n - //\n - setTimeout(fQueue_process);\n - };\n -\n - function fQueue_process() {\n - if (aQueueRunning.length < 6) {\n - for (var sPriority in oQueuePending) {\n - if (oQueuePending[sPriority].length) {\n - var oRequest = oQueuePending[sPriority][0];\n - oQueuePending[sPriority] = oQueuePending[sPriority].slice(1);\n - //\n - aQueueRunning.push(oRequest);\n - // Send request\n - fXMLHttpRequest_send(oRequest);\n - break;\n - }\n - }\n - }\n - };\n -*/\n - // Internet Explorer 5.0 (missing apply)\n - if (!window.Function.prototype.apply) {\n - window.Function.prototype.apply = function(oRequest, oArguments) {\n - if (!oArguments)\n - oArguments = [];\n - oRequest.__func = this;\n - oRequest.__func(oArguments[0], oArguments[1], oArguments[2], oArguments[3], oArguments[4]);\n - delete oRequest.__func;\n - };\n - };\n -\n - // Register new object with window\n - /**\n - * Class: OpenLayers.Request.XMLHttpRequest\n - * Standard-compliant (W3C) cross-browser implementation of the\n - * XMLHttpRequest object. From\n - * http://code.google.com/p/xmlhttprequest/.\n - */\n - OpenLayers.Request.XMLHttpRequest = cXMLHttpRequest;\n -})();\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>17370</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Rule.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Rule.js.xml deleted file mode 100644 index 1f62a05b3722613c4e4baf342c89d230786be093..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Rule.js.xml +++ /dev/null @@ -1,279 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.76</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Rule.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Util.js\n - * @requires OpenLayers/Style.js\n - */\n -\n -/**\n - * Class: OpenLayers.Rule\n - * This class represents an SLD Rule, as being used for rule-based SLD styling.\n - */\n -OpenLayers.Rule = OpenLayers.Class({\n - \n - /**\n - * Property: id\n - * {String} A unique id for this session.\n - */\n - id: null,\n - \n - /**\n - * APIProperty: name\n - * {String} name of this rule\n - */\n - name: null,\n - \n - /**\n - * Property: title\n - * {String} Title of this rule (set if included in SLD)\n - */\n - title: null,\n - \n - /**\n - * Property: description\n - * {String} Description of this rule (set if abstract is included in SLD)\n - */\n - description: null,\n -\n - /**\n - * Property: context\n - * {Object} An optional object with properties that the rule should be\n - * evaluated against. If no context is specified, feature.attributes will\n - * be used.\n - */\n - context: null,\n - \n - /**\n - * Property: filter\n - * {<OpenLayers.Filter>} Optional filter for the rule.\n - */\n - filter: null,\n -\n - /**\n - * Property: elseFilter\n - * {Boolean} Determines whether this rule is only to be applied only if\n - * no other rules match (ElseFilter according to the SLD specification). \n - * Default is false. For instances of OpenLayers.Rule, if elseFilter is\n - * false, the rule will always apply. For subclasses, the else property is \n - * ignored.\n - */\n - elseFilter: false,\n - \n - /**\n - * Property: symbolizer\n - * {Object} Symbolizer or hash of symbolizers for this rule. If hash of\n - * symbolizers, keys are one or more of ["Point", "Line", "Polygon"]. The\n - * latter if useful if it is required to style e.g. vertices of a line\n - * with a point symbolizer. Note, however, that this is not implemented\n - * yet in OpenLayers, but it is the way how symbolizers are defined in\n - * SLD.\n - */\n - symbolizer: null,\n - \n - /**\n - * Property: symbolizers\n - * {Array} Collection of symbolizers associated with this rule. If \n - * provided at construction, the symbolizers array has precedence\n - * over the deprecated symbolizer property. Note that multiple \n - * symbolizers are not currently supported by the vector renderers.\n - * Rules with multiple symbolizers are currently only useful for\n - * maintaining elements in an SLD document.\n - */\n - symbolizers: null,\n - \n - /**\n - * APIProperty: minScaleDenominator\n - * {Number} or {String} minimum scale at which to draw the feature.\n - * In the case of a String, this can be a combination of text and\n - * propertyNames in the form "literal ${propertyName}"\n - */\n - minScaleDenominator: null,\n -\n - /**\n - * APIProperty: maxScaleDenominator\n - * {Number} or {String} maximum scale at which to draw the feature.\n - * In the case of a String, this can be a combination of text and\n - * propertyNames in the form "literal ${propertyName}"\n - */\n - maxScaleDenominator: null,\n - \n - /** \n - * Constructor: OpenLayers.Rule\n - * Creates a Rule.\n - *\n - * Parameters:\n - * options - {Object} An optional object with properties to set on the\n - * rule\n - * \n - * Returns:\n - * {<OpenLayers.Rule>}\n - */\n - initialize: function(options) {\n - this.symbolizer = {};\n - OpenLayers.Util.extend(this, options);\n - if (this.symbolizers) {\n - delete this.symbolizer;\n - }\n - this.id = OpenLayers.Util.createUniqueID(this.CLASS_NAME + "_");\n - },\n -\n - /** \n - * APIMethod: destroy\n - * nullify references to prevent circular references and memory leaks\n - */\n - destroy: function() {\n - for (var i in this.symbolizer) {\n - this.symbolizer[i] = null;\n - }\n - this.symbolizer = null;\n - delete this.symbolizers;\n - },\n - \n - /**\n - * APIMethod: evaluate\n - * evaluates this rule for a specific feature\n - * \n - * Parameters:\n - * feature - {<OpenLayers.Feature>} feature to apply the rule to.\n - * \n - * Returns:\n - * {Boolean} true if the rule applies, false if it does not.\n - * This rule is the default rule and always returns true.\n - */\n - evaluate: function(feature) {\n - var context = this.getContext(feature);\n - var applies = true;\n -\n - if (this.minScaleDenominator || this.maxScaleDenominator) {\n - var scale = feature.layer.map.getScale();\n - }\n - \n - // check if within minScale/maxScale bounds\n - if (this.minScaleDenominator) {\n - applies = scale >= OpenLayers.Style.createLiteral(\n - this.minScaleDenominator, context);\n - }\n - if (applies && this.maxScaleDenominator) {\n - applies = scale < OpenLayers.Style.createLiteral(\n - this.maxScaleDenominator, context);\n - }\n - \n - // check if optional filter applies\n - if(applies && this.filter) {\n - // feature id filters get the feature, others get the context\n - if(this.filter.CLASS_NAME == "OpenLayers.Filter.FeatureId") {\n - applies = this.filter.evaluate(feature);\n - } else {\n - applies = this.filter.evaluate(context);\n - }\n - }\n -\n - return applies;\n - },\n - \n - /**\n - * Method: getContext\n - * Gets the context for evaluating this rule\n - * \n - * Paramters:\n - * feature - {<OpenLayers.Feature>} feature to take the context from if\n - * none is specified.\n - */\n - getContext: function(feature) {\n - var context = this.context;\n - if (!context) {\n - context = feature.attributes || feature.data;\n - }\n - if (typeof this.context == "function") {\n - context = this.context(feature);\n - }\n - return context;\n - },\n - \n - /**\n - * APIMethod: clone\n - * Clones this rule.\n - * \n - * Returns:\n - * {<OpenLayers.Rule>} Clone of this rule.\n - */\n - clone: function() {\n - var options = OpenLayers.Util.extend({}, this);\n - if (this.symbolizers) {\n - // clone symbolizers\n - var len = this.symbolizers.length;\n - options.symbolizers = new Array(len);\n - for (var i=0; i<len; ++i) {\n - options.symbolizers[i] = this.symbolizers[i].clone();\n - }\n - } else {\n - // clone symbolizer\n - options.symbolizer = {};\n - var value, type;\n - for(var key in this.symbolizer) {\n - value = this.symbolizer[key];\n - type = typeof value;\n - if(type === "object") {\n - options.symbolizer[key] = OpenLayers.Util.extend({}, value);\n - } else if(type === "string") {\n - options.symbolizer[key] = value;\n - }\n - }\n - }\n - // clone filter\n - options.filter = this.filter && this.filter.clone();\n - // clone context\n - options.context = this.context && OpenLayers.Util.extend({}, this.context);\n - return new OpenLayers.Rule(options);\n - },\n - \n - CLASS_NAME: "OpenLayers.Rule"\n -}); - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7377</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/SingleFile.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/SingleFile.js.xml deleted file mode 100644 index 2ab726d77a241254e33c097aa6ff4ab4ab5f97a8..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/SingleFile.js.xml +++ /dev/null @@ -1,122 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>SingleFile.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -var OpenLayers = {\n - /**\n - * Constant: VERSION_NUMBER\n - */\n - VERSION_NUMBER: "Release 2.12",\n -\n - /**\n - * Constant: singleFile\n - * TODO: remove this in 3.0 when we stop supporting build profiles that\n - * include OpenLayers.js\n - */\n - singleFile: true,\n -\n - /**\n - * Method: _getScriptLocation\n - * Return the path to this script. This is also implemented in\n - * OpenLayers.js\n - *\n - * Returns:\n - * {String} Path to this script\n - */\n - _getScriptLocation: (function() {\n - var r = new RegExp("(^|(.*?\\\\/))(OpenLayers[^\\\\/]*?\\\\.js)(\\\\?|$)"),\n - s = document.getElementsByTagName(\'script\'),\n - src, m, l = "";\n - for(var i=0, len=s.length; i<len; i++) {\n - src = s[i].getAttribute(\'src\');\n - if(src) {\n - m = src.match(r);\n - if(m) {\n - l = m[1];\n - break;\n - }\n - }\n - }\n - return (function() { return l; });\n - })(),\n - \n - /**\n - * Property: ImgPath\n - * {String} Set this to the path where control images are stored, a path \n - * given here must end with a slash. If set to \'\' (which is the default) \n - * OpenLayers will use its script location + "img/".\n - * \n - * You will need to set this property when you have a singlefile build of \n - * OpenLayers that either is not named "OpenLayers.js" or if you move\n - * the file in a way such that the image directory cannot be derived from \n - * the script location.\n - * \n - * If your custom OpenLayers build is named "my-custom-ol.js" and the images\n - * of OpenLayers are in a folder "/resources/external/images/ol" a correct\n - * way of including OpenLayers in your HTML would be:\n - * \n - * (code)\n - * <script src="/path/to/my-custom-ol.js" type="text/javascript"></script>\n - * <script type="text/javascript">\n - * // tell OpenLayers where the control images are\n - * // remember the trailing slash\n - * OpenLayers.ImgPath = "/resources/external/images/ol/";\n - * </script>\n - * (end code)\n - * \n - * Please remember that when your OpenLayers script is not named \n - * "OpenLayers.js" you will have to make sure that the default theme is \n - * loaded into the page by including an appropriate <link>-tag, \n - * e.g.:\n - * \n - * (code)\n - * <link rel="stylesheet" href="/path/to/default/style.css" type="text/css">\n - * (end code)\n - */\n - ImgPath : \'\'\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2737</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Spherical.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Spherical.js.xml deleted file mode 100644 index 5c39542be9d94c7b4462978a498e4f039a348fdd..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Spherical.js.xml +++ /dev/null @@ -1,111 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.76</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Spherical.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for\n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/SingleFile.js\n - */\n -\n -/**\n - * Namespace: Spherical\n - * The OpenLayers.Spherical namespace includes utility functions for\n - * calculations on the basis of a spherical earth (ignoring ellipsoidal\n - * effects), which is accurate enough for most purposes.\n - *\n - * Relevant links:\n - * * http://www.movable-type.co.uk/scripts/latlong.html\n - * * http://code.google.com/apis/maps/documentation/javascript/reference.html#spherical\n - */\n -\n -OpenLayers.Spherical = OpenLayers.Spherical || {};\n -\n -OpenLayers.Spherical.DEFAULT_RADIUS = 6378137;\n -\n -/**\n - * APIFunction: computeDistanceBetween\n - * Computes the distance between two LonLats.\n - *\n - * Parameters:\n - * from - {<OpenLayers.LonLat>} or {Object} Starting point. A LonLat or\n - * a JavaScript literal with lon lat properties.\n - * to - {<OpenLayers.LonLat>} or {Object} Ending point. A LonLat or a\n - * JavaScript literal with lon lat properties.\n - * radius - {Float} The radius. Optional. Defaults to 6378137 meters.\n - *\n - * Returns:\n - * {Float} The distance in meters.\n - */\n -OpenLayers.Spherical.computeDistanceBetween = function(from, to, radius) {\n - var R = radius || OpenLayers.Spherical.DEFAULT_RADIUS;\n - var sinHalfDeltaLon = Math.sin(Math.PI * (to.lon - from.lon) / 360);\n - var sinHalfDeltaLat = Math.sin(Math.PI * (to.lat - from.lat) / 360);\n - var a = sinHalfDeltaLat * sinHalfDeltaLat +\n - sinHalfDeltaLon * sinHalfDeltaLon * Math.cos(Math.PI * from.lat / 180) * Math.cos(Math.PI * to.lat / 180); \n - return 2 * R * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)); \n -};\n -\n -\n -/**\n - * APIFunction: computeHeading\n - * Computes the heading from one LonLat to another LonLat.\n - *\n - * Parameters:\n - * from - {<OpenLayers.LonLat>} or {Object} Starting point. A LonLat or\n - * a JavaScript literal with lon lat properties.\n - * to - {<OpenLayers.LonLat>} or {Object} Ending point. A LonLat or a\n - * JavaScript literal with lon lat properties.\n - *\n - * Returns:\n - * {Float} The heading in degrees.\n - */\n -OpenLayers.Spherical.computeHeading = function(from, to) {\n - var y = Math.sin(Math.PI * (from.lon - to.lon) / 180) * Math.cos(Math.PI * to.lat / 180);\n - var x = Math.cos(Math.PI * from.lat / 180) * Math.sin(Math.PI * to.lat / 180) -\n - Math.sin(Math.PI * from.lat / 180) * Math.cos(Math.PI * to.lat / 180) * Math.cos(Math.PI * (from.lon - to.lon) / 180);\n - return 180 * Math.atan2(y, x) / Math.PI;\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2631</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy.js.xml deleted file mode 100644 index 6fa5d713c7e2d5520a4af6491104c892184c8000..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy.js.xml +++ /dev/null @@ -1,165 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Strategy.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - */\n -\n -/**\n - * Class: OpenLayers.Strategy\n - * Abstract vector layer strategy class. Not to be instantiated directly. Use\n - * one of the strategy subclasses instead.\n - */\n -OpenLayers.Strategy = OpenLayers.Class({\n - \n - /**\n - * Property: layer\n - * {<OpenLayers.Layer.Vector>} The layer this strategy belongs to.\n - */\n - layer: null,\n - \n - /**\n - * Property: options\n - * {Object} Any options sent to the constructor.\n - */\n - options: null,\n -\n - /** \n - * Property: active \n - * {Boolean} The control is active.\n - */\n - active: null,\n -\n - /**\n - * Property: autoActivate\n - * {Boolean} The creator of the strategy can set autoActivate to false\n - * to fully control when the protocol is activated and deactivated.\n - * Defaults to true.\n - */\n - autoActivate: true,\n -\n - /**\n - * Property: autoDestroy\n - * {Boolean} The creator of the strategy can set autoDestroy to false\n - * to fully control when the strategy is destroyed. Defaults to\n - * true.\n - */\n - autoDestroy: true,\n -\n - /**\n - * Constructor: OpenLayers.Strategy\n - * Abstract class for vector strategies. Create instances of a subclass.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Util.extend(this, options);\n - this.options = options;\n - // set the active property here, so that user cannot override it\n - this.active = false;\n - },\n - \n - /**\n - * APIMethod: destroy\n - * Clean up the strategy.\n - */\n - destroy: function() {\n - this.deactivate();\n - this.layer = null;\n - this.options = null;\n - },\n -\n - /**\n - * Method: setLayer\n - * Called to set the <layer> property.\n - *\n - * Parameters:\n - * layer - {<OpenLayers.Layer.Vector>}\n - */\n - setLayer: function(layer) {\n - this.layer = layer;\n - },\n - \n - /**\n - * Method: activate\n - * Activate the strategy. Register any listeners, do appropriate setup.\n - *\n - * Returns:\n - * {Boolean} True if the strategy was successfully activated or false if\n - * the strategy was already active.\n - */\n - activate: function() {\n - if (!this.active) {\n - this.active = true;\n - return true;\n - }\n - return false;\n - },\n - \n - /**\n - * Method: deactivate\n - * Deactivate the strategy. Unregister any listeners, do appropriate\n - * tear-down.\n - *\n - * Returns:\n - * {Boolean} True if the strategy was successfully deactivated or false if\n - * the strategy was already inactive.\n - */\n - deactivate: function() {\n - if (this.active) {\n - this.active = false;\n - return true;\n - }\n - return false;\n - },\n - \n - CLASS_NAME: "OpenLayers.Strategy" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3157</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy.xml deleted file mode 100644 index 5615f40a191f0372ea881e6530c8a3cc6fdfb5f8..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Strategy</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Strategy</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/BBOX.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/BBOX.js.xml deleted file mode 100644 index 8f433f8a2990f47da1aebd8d5d604ae702bf5337..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/BBOX.js.xml +++ /dev/null @@ -1,329 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.88</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>BBOX.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Strategy.js\n - * @requires OpenLayers/Filter/Spatial.js\n - */\n -\n -/**\n - * Class: OpenLayers.Strategy.BBOX\n - * A simple strategy that reads new features when the viewport invalidates\n - * some bounds.\n - *\n - * Inherits from:\n - * - <OpenLayers.Strategy>\n - */\n -OpenLayers.Strategy.BBOX = OpenLayers.Class(OpenLayers.Strategy, {\n - \n - /**\n - * Property: bounds\n - * {<OpenLayers.Bounds>} The current data bounds (in the same projection\n - * as the layer - not always the same projection as the map).\n - */\n - bounds: null,\n - \n - /** \n - * Property: resolution \n - * {Float} The current data resolution. \n - */ \n - resolution: null, \n - \n - /**\n - * APIProperty: ratio\n - * {Float} The ratio of the data bounds to the viewport bounds (in each\n - * dimension). Default is 2.\n - */\n - ratio: 2,\n -\n - /** \n - * Property: resFactor \n - * {Float} Optional factor used to determine when previously requested \n - * features are invalid. If set, the resFactor will be compared to the\n - * resolution of the previous request to the current map resolution.\n - * If resFactor > (old / new) and 1/resFactor < (old / new). If you\n - * set a resFactor of 1, data will be requested every time the\n - * resolution changes. If you set a resFactor of 3, data will be\n - * requested if the old resolution is 3 times the new, or if the new is\n - * 3 times the old. If the old bounds do not contain the new bounds\n - * new data will always be requested (with or without considering\n - * resFactor). \n - */ \n - resFactor: null, \n - \n - /**\n - * Property: response\n - * {<OpenLayers.Protocol.Response>} The protocol response object returned\n - * by the layer protocol.\n - */\n - response: null,\n -\n - /**\n - * Constructor: OpenLayers.Strategy.BBOX\n - * Create a new BBOX strategy.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - */\n - \n - /**\n - * Method: activate\n - * Set up strategy with regard to reading new batches of remote data.\n - * \n - * Returns:\n - * {Boolean} The strategy was successfully activated.\n - */\n - activate: function() {\n - var activated = OpenLayers.Strategy.prototype.activate.call(this);\n - if(activated) {\n - this.layer.events.on({\n - "moveend": this.update,\n - "refresh": this.update,\n - "visibilitychanged": this.update,\n - scope: this\n - });\n - this.update();\n - }\n - return activated;\n - },\n - \n - /**\n - * Method: deactivate\n - * Tear down strategy with regard to reading new batches of remote data.\n - * \n - * Returns:\n - * {Boolean} The strategy was successfully deactivated.\n - */\n - deactivate: function() {\n - var deactivated = OpenLayers.Strategy.prototype.deactivate.call(this);\n - if(deactivated) {\n - this.layer.events.un({\n - "moveend": this.update,\n - "refresh": this.update,\n - "visibilitychanged": this.update,\n - scope: this\n - });\n - }\n - return deactivated;\n - },\n -\n - /**\n - * Method: update\n - * Callback function called on "moveend" or "refresh" layer events.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will determine\n - * the behaviour of this Strategy\n - *\n - * Valid options include:\n - * force - {Boolean} if true, new data must be unconditionally read.\n - * noAbort - {Boolean} if true, do not abort previous requests.\n - */\n - update: function(options) {\n - var mapBounds = this.getMapBounds();\n - if (mapBounds !== null && ((options && options.force) ||\n - (this.layer.visibility && this.layer.calculateInRange() && this.invalidBounds(mapBounds)))) {\n - this.calculateBounds(mapBounds);\n - this.resolution = this.layer.map.getResolution(); \n - this.triggerRead(options);\n - }\n - },\n - \n - /**\n - * Method: getMapBounds\n - * Get the map bounds expressed in the same projection as this layer.\n - *\n - * Returns:\n - * {<OpenLayers.Bounds>} Map bounds in the projection of the layer.\n - */\n - getMapBounds: function() {\n - if (this.layer.map === null) {\n - return null;\n - }\n - var bounds = this.layer.map.getExtent();\n - if(bounds && !this.layer.projection.equals(\n - this.layer.map.getProjectionObject())) {\n - bounds = bounds.clone().transform(\n - this.layer.map.getProjectionObject(), this.layer.projection\n - );\n - }\n - return bounds;\n - },\n -\n - /**\n - * Method: invalidBounds\n - * Determine whether the previously requested set of features is invalid. \n - * This occurs when the new map bounds do not contain the previously \n - * requested bounds. In addition, if <resFactor> is set, it will be \n - * considered.\n - *\n - * Parameters:\n - * mapBounds - {<OpenLayers.Bounds>} the current map extent, will be\n - * retrieved from the map object if not provided\n - *\n - * Returns:\n - * {Boolean} \n - */\n - invalidBounds: function(mapBounds) {\n - if(!mapBounds) {\n - mapBounds = this.getMapBounds();\n - }\n - var invalid = !this.bounds || !this.bounds.containsBounds(mapBounds);\n - if(!invalid && this.resFactor) {\n - var ratio = this.resolution / this.layer.map.getResolution();\n - invalid = (ratio >= this.resFactor || ratio <= (1 / this.resFactor));\n - }\n - return invalid;\n - },\n - \n - /**\n - * Method: calculateBounds\n - *\n - * Parameters:\n - * mapBounds - {<OpenLayers.Bounds>} the current map extent, will be\n - * retrieved from the map object if not provided\n - */\n - calculateBounds: function(mapBounds) {\n - if(!mapBounds) {\n - mapBounds = this.getMapBounds();\n - }\n - var center = mapBounds.getCenterLonLat();\n - var dataWidth = mapBounds.getWidth() * this.ratio;\n - var dataHeight = mapBounds.getHeight() * this.ratio;\n - this.bounds = new OpenLayers.Bounds(\n - center.lon - (dataWidth / 2),\n - center.lat - (dataHeight / 2),\n - center.lon + (dataWidth / 2),\n - center.lat + (dataHeight / 2)\n - );\n - },\n - \n - /**\n - * Method: triggerRead\n - *\n - * Parameters:\n - * options - {Object} Additional options for the protocol\'s read method \n - * (optional)\n - *\n - * Returns:\n - * {<OpenLayers.Protocol.Response>} The protocol response object\n - * returned by the layer protocol.\n - */\n - triggerRead: function(options) {\n - if (this.response && !(options && options.noAbort === true)) {\n - this.layer.protocol.abort(this.response);\n - this.layer.events.triggerEvent("loadend");\n - }\n - this.layer.events.triggerEvent("loadstart");\n - this.response = this.layer.protocol.read(\n - OpenLayers.Util.applyDefaults({\n - filter: this.createFilter(),\n - callback: this.merge,\n - scope: this\n - }, options));\n - },\n - \n - /**\n - * Method: createFilter\n - * Creates a spatial BBOX filter. If the layer that this strategy belongs\n - * to has a filter property, this filter will be combined with the BBOX \n - * filter.\n - * \n - * Returns\n - * {<OpenLayers.Filter>} The filter object.\n - */\n - createFilter: function() {\n - var filter = new OpenLayers.Filter.Spatial({\n - type: OpenLayers.Filter.Spatial.BBOX,\n - value: this.bounds,\n - projection: this.layer.projection\n - });\n - if (this.layer.filter) {\n - filter = new OpenLayers.Filter.Logical({\n - type: OpenLayers.Filter.Logical.AND,\n - filters: [this.layer.filter, filter]\n - });\n - }\n - return filter;\n - },\n - \n - /**\n - * Method: merge\n - * Given a list of features, determine which ones to add to the layer.\n - * If the layer projection differs from the map projection, features\n - * will be transformed from the layer projection to the map projection.\n - *\n - * Parameters:\n - * resp - {<OpenLayers.Protocol.Response>} The response object passed\n - * by the protocol.\n - */\n - merge: function(resp) {\n - this.layer.destroyFeatures();\n - var features = resp.features;\n - if(features && features.length > 0) {\n - var remote = this.layer.projection;\n - var local = this.layer.map.getProjectionObject();\n - if(!local.equals(remote)) {\n - var geom;\n - for(var i=0, len=features.length; i<len; ++i) {\n - geom = features[i].geometry;\n - if(geom) {\n - geom.transform(remote, local);\n - }\n - }\n - }\n - this.layer.addFeatures(features);\n - }\n - this.response = null;\n - this.layer.events.triggerEvent("loadend");\n - },\n - \n - CLASS_NAME: "OpenLayers.Strategy.BBOX" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>9419</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Cluster.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Cluster.js.xml deleted file mode 100644 index f0eeb9e7230a742a55a2ce804789031f020a69bf..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Cluster.js.xml +++ /dev/null @@ -1,321 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.88</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Cluster.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Strategy.js\n - */\n -\n -/**\n - * Class: OpenLayers.Strategy.Cluster\n - * Strategy for vector feature clustering.\n - *\n - * Inherits from:\n - * - <OpenLayers.Strategy>\n - */\n -OpenLayers.Strategy.Cluster = OpenLayers.Class(OpenLayers.Strategy, {\n - \n - /**\n - * APIProperty: distance\n - * {Integer} Pixel distance between features that should be considered a\n - * single cluster. Default is 20 pixels.\n - */\n - distance: 20,\n - \n - /**\n - * APIProperty: threshold\n - * {Integer} Optional threshold below which original features will be\n - * added to the layer instead of clusters. For example, a threshold\n - * of 3 would mean that any time there are 2 or fewer features in\n - * a cluster, those features will be added directly to the layer instead\n - * of a cluster representing those features. Default is null (which is\n - * equivalent to 1 - meaning that clusters may contain just one feature).\n - */\n - threshold: null,\n - \n - /**\n - * Property: features\n - * {Array(<OpenLayers.Feature.Vector>)} Cached features.\n - */\n - features: null,\n - \n - /**\n - * Property: clusters\n - * {Array(<OpenLayers.Feature.Vector>)} Calculated clusters.\n - */\n - clusters: null,\n - \n - /**\n - * Property: clustering\n - * {Boolean} The strategy is currently clustering features.\n - */\n - clustering: false,\n - \n - /**\n - * Property: resolution\n - * {Float} The resolution (map units per pixel) of the current cluster set.\n - */\n - resolution: null,\n -\n - /**\n - * Constructor: OpenLayers.Strategy.Cluster\n - * Create a new clustering strategy.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - */\n - \n - /**\n - * APIMethod: activate\n - * Activate the strategy. Register any listeners, do appropriate setup.\n - * \n - * Returns:\n - * {Boolean} The strategy was successfully activated.\n - */\n - activate: function() {\n - var activated = OpenLayers.Strategy.prototype.activate.call(this);\n - if(activated) {\n - this.layer.events.on({\n - "beforefeaturesadded": this.cacheFeatures,\n - "moveend": this.cluster,\n - scope: this\n - });\n - }\n - return activated;\n - },\n - \n - /**\n - * APIMethod: deactivate\n - * Deactivate the strategy. Unregister any listeners, do appropriate\n - * tear-down.\n - * \n - * Returns:\n - * {Boolean} The strategy was successfully deactivated.\n - */\n - deactivate: function() {\n - var deactivated = OpenLayers.Strategy.prototype.deactivate.call(this);\n - if(deactivated) {\n - this.clearCache();\n - this.layer.events.un({\n - "beforefeaturesadded": this.cacheFeatures,\n - "moveend": this.cluster,\n - scope: this\n - });\n - }\n - return deactivated;\n - },\n - \n - /**\n - * Method: cacheFeatures\n - * Cache features before they are added to the layer.\n - *\n - * Parameters:\n - * event - {Object} The event that this was listening for. This will come\n - * with a batch of features to be clustered.\n - * \n - * Returns:\n - * {Boolean} False to stop features from being added to the layer.\n - */\n - cacheFeatures: function(event) {\n - var propagate = true;\n - if(!this.clustering) {\n - this.clearCache();\n - this.features = event.features;\n - this.cluster();\n - propagate = false;\n - }\n - return propagate;\n - },\n - \n - /**\n - * Method: clearCache\n - * Clear out the cached features.\n - */\n - clearCache: function() {\n - this.features = null;\n - },\n - \n - /**\n - * Method: cluster\n - * Cluster features based on some threshold distance.\n - *\n - * Parameters:\n - * event - {Object} The event received when cluster is called as a\n - * result of a moveend event.\n - */\n - cluster: function(event) {\n - if((!event || event.zoomChanged) && this.features) {\n - var resolution = this.layer.map.getResolution();\n - if(resolution != this.resolution || !this.clustersExist()) {\n - this.resolution = resolution;\n - var clusters = [];\n - var feature, clustered, cluster;\n - for(var i=0; i<this.features.length; ++i) {\n - feature = this.features[i];\n - if(feature.geometry) {\n - clustered = false;\n - for(var j=clusters.length-1; j>=0; --j) {\n - cluster = clusters[j];\n - if(this.shouldCluster(cluster, feature)) {\n - this.addToCluster(cluster, feature);\n - clustered = true;\n - break;\n - }\n - }\n - if(!clustered) {\n - clusters.push(this.createCluster(this.features[i]));\n - }\n - }\n - }\n - this.layer.removeAllFeatures();\n - if(clusters.length > 0) {\n - if(this.threshold > 1) {\n - var clone = clusters.slice();\n - clusters = [];\n - var candidate;\n - for(var i=0, len=clone.length; i<len; ++i) {\n - candidate = clone[i];\n - if(candidate.attributes.count < this.threshold) {\n - Array.prototype.push.apply(clusters, candidate.cluster);\n - } else {\n - clusters.push(candidate);\n - }\n - }\n - }\n - this.clustering = true;\n - // A legitimate feature addition could occur during this\n - // addFeatures call. For clustering to behave well, features\n - // should be removed from a layer before requesting a new batch.\n - this.layer.addFeatures(clusters);\n - this.clustering = false;\n - }\n - this.clusters = clusters;\n - }\n - }\n - },\n - \n - /**\n - * Method: clustersExist\n - * Determine whether calculated clusters are already on the layer.\n - *\n - * Returns:\n - * {Boolean} The calculated clusters are already on the layer.\n - */\n - clustersExist: function() {\n - var exist = false;\n - if(this.clusters && this.clusters.length > 0 &&\n - this.clusters.length == this.layer.features.length) {\n - exist = true;\n - for(var i=0; i<this.clusters.length; ++i) {\n - if(this.clusters[i] != this.layer.features[i]) {\n - exist = false;\n - break;\n - }\n - }\n - }\n - return exist;\n - },\n - \n - /**\n - * Method: shouldCluster\n - * Determine whether to include a feature in a given cluster.\n - *\n - * Parameters:\n - * cluster - {<OpenLayers.Feature.Vector>} A cluster.\n - * feature - {<OpenLayers.Feature.Vector>} A feature.\n - *\n - * Returns:\n - * {Boolean} The feature should be included in the cluster.\n - */\n - shouldCluster: function(cluster, feature) {\n - var cc = cluster.geometry.getBounds().getCenterLonLat();\n - var fc = feature.geometry.getBounds().getCenterLonLat();\n - var distance = (\n - Math.sqrt(\n - Math.pow((cc.lon - fc.lon), 2) + Math.pow((cc.lat - fc.lat), 2)\n - ) / this.resolution\n - );\n - return (distance <= this.distance);\n - },\n - \n - /**\n - * Method: addToCluster\n - * Add a feature to a cluster.\n - *\n - * Parameters:\n - * cluster - {<OpenLayers.Feature.Vector>} A cluster.\n - * feature - {<OpenLayers.Feature.Vector>} A feature.\n - */\n - addToCluster: function(cluster, feature) {\n - cluster.cluster.push(feature);\n - cluster.attributes.count += 1;\n - },\n - \n - /**\n - * Method: createCluster\n - * Given a feature, create a cluster.\n - *\n - * Parameters:\n - * feature - {<OpenLayers.Feature.Vector>}\n - *\n - * Returns:\n - * {<OpenLayers.Feature.Vector>} A cluster.\n - */\n - createCluster: function(feature) {\n - var center = feature.geometry.getBounds().getCenterLonLat();\n - var cluster = new OpenLayers.Feature.Vector(\n - new OpenLayers.Geometry.Point(center.lon, center.lat),\n - {count: 1}\n - );\n - cluster.cluster = [feature];\n - return cluster;\n - },\n -\n - CLASS_NAME: "OpenLayers.Strategy.Cluster" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>8958</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Filter.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Filter.js.xml deleted file mode 100644 index b92adabad80ddc6dcd6d422c4e6dd70fdcc5b6f4..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Filter.js.xml +++ /dev/null @@ -1,203 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.88</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Filter.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Strategy.js\n - * @requires OpenLayers/Filter.js\n - */\n -\n -/**\n - * Class: OpenLayers.Strategy.Filter\n - * Strategy for limiting features that get added to a layer by \n - * evaluating a filter. The strategy maintains a cache of\n - * all features until removeFeatures is called on the layer.\n - *\n - * Inherits from:\n - * - <OpenLayers.Strategy>\n - */\n -OpenLayers.Strategy.Filter = OpenLayers.Class(OpenLayers.Strategy, {\n - \n - /**\n - * APIProperty: filter\n - * {<OpenLayers.Filter>} Filter for limiting features sent to the layer.\n - * Use the <setFilter> method to update this filter after construction.\n - */\n - filter: null,\n - \n - /**\n - * Property: cache\n - * {Array(<OpenLayers.Feature.Vector>)} List of currently cached\n - * features.\n - */\n - cache: null,\n - \n - /**\n - * Property: caching\n - * {Boolean} The filter is currently caching features.\n - */\n - caching: false,\n - \n - /**\n - * Constructor: OpenLayers.Strategy.Filter\n - * Create a new filter strategy.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - */\n -\n - /**\n - * APIMethod: activate\n - * Activate the strategy. Register any listeners, do appropriate setup.\n - * By default, this strategy automatically activates itself when a layer\n - * is added to a map.\n - *\n - * Returns:\n - * {Boolean} True if the strategy was successfully activated or false if\n - * the strategy was already active.\n - */\n - activate: function() {\n - var activated = OpenLayers.Strategy.prototype.activate.apply(this, arguments);\n - if (activated) {\n - this.cache = [];\n - this.layer.events.on({\n - "beforefeaturesadded": this.handleAdd,\n - "beforefeaturesremoved": this.handleRemove,\n - scope: this\n - });\n - }\n - return activated;\n - },\n - \n - /**\n - * APIMethod: deactivate\n - * Deactivate the strategy. Clear the feature cache.\n - *\n - * Returns:\n - * {Boolean} True if the strategy was successfully deactivated or false if\n - * the strategy was already inactive.\n - */\n - deactivate: function() {\n - this.cache = null;\n - if (this.layer && this.layer.events) {\n - this.layer.events.un({\n - "beforefeaturesadded": this.handleAdd,\n - "beforefeaturesremoved": this.handleRemove,\n - scope: this\n - }); \n - }\n - return OpenLayers.Strategy.prototype.deactivate.apply(this, arguments);\n - },\n - \n - /**\n - * Method: handleAdd\n - */\n - handleAdd: function(event) {\n - if (!this.caching && this.filter) {\n - var features = event.features;\n - event.features = [];\n - var feature;\n - for (var i=0, ii=features.length; i<ii; ++i) {\n - feature = features[i];\n - if (this.filter.evaluate(feature)) {\n - event.features.push(feature);\n - } else {\n - this.cache.push(feature);\n - }\n - }\n - }\n - },\n - \n - /**\n - * Method: handleRemove\n - */\n - handleRemove: function(event) {\n - if (!this.caching) {\n - this.cache = [];\n - }\n - },\n -\n - /** \n - * APIMethod: setFilter\n - * Update the filter for this strategy. This will re-evaluate\n - * any features on the layer and in the cache. Only features\n - * for which filter.evalute(feature) returns true will be\n - * added to the layer. Others will be cached by the strategy.\n - *\n - * Parameters:\n - * filter - {<OpenLayers.Filter>} A filter for evaluating features.\n - */\n - setFilter: function(filter) {\n - this.filter = filter;\n - var previousCache = this.cache;\n - this.cache = [];\n - // look through layer for features to remove from layer\n - this.handleAdd({features: this.layer.features});\n - // cache now contains features to remove from layer\n - if (this.cache.length > 0) {\n - this.caching = true;\n - this.layer.removeFeatures(this.cache.slice());\n - this.caching = false;\n - }\n - // now look through previous cache for features to add to layer\n - if (previousCache.length > 0) {\n - var event = {features: previousCache};\n - this.handleAdd(event);\n - if (event.features.length > 0) {\n - // event has features to add to layer\n - this.caching = true;\n - this.layer.addFeatures(event.features);\n - this.caching = false;\n - }\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Strategy.Filter"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4979</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Fixed.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Fixed.js.xml deleted file mode 100644 index 0e3b40ea022f75ebaf4149d57917e2144ee45987..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Fixed.js.xml +++ /dev/null @@ -1,175 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.88</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Fixed.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Strategy.js\n - */\n -\n -/**\n - * Class: OpenLayers.Strategy.Fixed\n - * A simple strategy that requests features once and never requests new data.\n - *\n - * Inherits from:\n - * - <OpenLayers.Strategy>\n - */\n -OpenLayers.Strategy.Fixed = OpenLayers.Class(OpenLayers.Strategy, {\n - \n - /**\n - * APIProperty: preload\n - * {Boolean} Load data before layer made visible. Enabling this may result\n - * in considerable overhead if your application loads many data layers\n - * that are not visible by default. Default is false.\n - */\n - preload: false,\n -\n - /**\n - * Constructor: OpenLayers.Strategy.Fixed\n - * Create a new Fixed strategy.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - */\n -\n - /**\n - * Method: activate\n - * Activate the strategy: load data or add listener to load when visible\n - *\n - * Returns:\n - * {Boolean} True if the strategy was successfully activated or false if\n - * the strategy was already active.\n - */\n - activate: function() {\n - if(OpenLayers.Strategy.prototype.activate.apply(this, arguments)) {\n - this.layer.events.on({\n - "refresh": this.load,\n - scope: this\n - });\n - if(this.layer.visibility == true || this.preload) {\n - this.load();\n - } else {\n - this.layer.events.on({\n - "visibilitychanged": this.load,\n - scope: this\n - });\n - }\n - return true;\n - }\n - return false;\n - },\n - \n - /**\n - * Method: deactivate\n - * Deactivate the strategy. Undo what is done in <activate>.\n - * \n - * Returns:\n - * {Boolean} The strategy was successfully deactivated.\n - */\n - deactivate: function() {\n - var deactivated = OpenLayers.Strategy.prototype.deactivate.call(this);\n - if(deactivated) {\n - this.layer.events.un({\n - "refresh": this.load,\n - "visibilitychanged": this.load,\n - scope: this\n - });\n - }\n - return deactivated;\n - },\n -\n - /**\n - * Method: load\n - * Tells protocol to load data and unhooks the visibilitychanged event\n - *\n - * Parameters:\n - * options - {Object} options to pass to protocol read.\n - */\n - load: function(options) {\n - var layer = this.layer;\n - layer.events.triggerEvent("loadstart");\n - layer.protocol.read(OpenLayers.Util.applyDefaults({\n - callback: OpenLayers.Function.bind(this.merge, this,\n - layer.map.getProjectionObject()),\n - filter: layer.filter\n - }, options));\n - layer.events.un({\n - "visibilitychanged": this.load,\n - scope: this\n - });\n - },\n -\n - /**\n - * Method: merge\n - * Add all features to the layer.\n - *\n - * Parameters:\n - * mapProjection - {<OpenLayers.Projection>} the map projection\n - * resp - {Object} options to pass to protocol read.\n - */\n - merge: function(mapProjection, resp) {\n - var layer = this.layer;\n - layer.destroyFeatures();\n - var features = resp.features;\n - if (features && features.length > 0) {\n - if(!mapProjection.equals(layer.projection)) {\n - var geom;\n - for(var i=0, len=features.length; i<len; ++i) {\n - geom = features[i].geometry;\n - if(geom) {\n - geom.transform(layer.projection, mapProjection);\n - }\n - }\n - }\n - layer.addFeatures(features);\n - }\n - layer.events.triggerEvent("loadend");\n - },\n -\n - CLASS_NAME: "OpenLayers.Strategy.Fixed"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3985</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Paging.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Paging.js.xml deleted file mode 100644 index 6e76091c433e0f8eadfa890a0daf01e020a225f1..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Paging.js.xml +++ /dev/null @@ -1,277 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.88</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Paging.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Strategy.js\n - */\n -\n -/**\n - * Class: OpenLayers.Strategy.Paging\n - * Strategy for vector feature paging\n - *\n - * Inherits from:\n - * - <OpenLayers.Strategy>\n - */\n -OpenLayers.Strategy.Paging = OpenLayers.Class(OpenLayers.Strategy, {\n - \n - /**\n - * Property: features\n - * {Array(<OpenLayers.Feature.Vector>)} Cached features.\n - */\n - features: null,\n - \n - /**\n - * Property: length\n - * {Integer} Number of features per page. Default is 10.\n - */\n - length: 10,\n - \n - /**\n - * Property: num\n - * {Integer} The currently displayed page number.\n - */\n - num: null,\n - \n - /**\n - * Property: paging\n - * {Boolean} The strategy is currently changing pages.\n - */\n - paging: false,\n -\n - /**\n - * Constructor: OpenLayers.Strategy.Paging\n - * Create a new paging strategy.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - */\n - \n - /**\n - * APIMethod: activate\n - * Activate the strategy. Register any listeners, do appropriate setup.\n - * \n - * Returns:\n - * {Boolean} The strategy was successfully activated.\n - */\n - activate: function() {\n - var activated = OpenLayers.Strategy.prototype.activate.call(this);\n - if(activated) {\n - this.layer.events.on({\n - "beforefeaturesadded": this.cacheFeatures,\n - scope: this\n - });\n - }\n - return activated;\n - },\n - \n - /**\n - * APIMethod: deactivate\n - * Deactivate the strategy. Unregister any listeners, do appropriate\n - * tear-down.\n - * \n - * Returns:\n - * {Boolean} The strategy was successfully deactivated.\n - */\n - deactivate: function() {\n - var deactivated = OpenLayers.Strategy.prototype.deactivate.call(this);\n - if(deactivated) {\n - this.clearCache();\n - this.layer.events.un({\n - "beforefeaturesadded": this.cacheFeatures,\n - scope: this\n - });\n - }\n - return deactivated;\n - },\n - \n - /**\n - * Method: cacheFeatures\n - * Cache features before they are added to the layer.\n - *\n - * Parameters:\n - * event - {Object} The event that this was listening for. This will come\n - * with a batch of features to be paged.\n - */\n - cacheFeatures: function(event) {\n - if(!this.paging) {\n - this.clearCache();\n - this.features = event.features;\n - this.pageNext(event);\n - }\n - },\n - \n - /**\n - * Method: clearCache\n - * Clear out the cached features. This destroys features, assuming\n - * nothing else has a reference.\n - */\n - clearCache: function() {\n - if(this.features) {\n - for(var i=0; i<this.features.length; ++i) {\n - this.features[i].destroy();\n - }\n - }\n - this.features = null;\n - this.num = null;\n - },\n - \n - /**\n - * APIMethod: pageCount\n - * Get the total count of pages given the current cache of features.\n - *\n - * Returns:\n - * {Integer} The page count.\n - */\n - pageCount: function() {\n - var numFeatures = this.features ? this.features.length : 0;\n - return Math.ceil(numFeatures / this.length);\n - },\n -\n - /**\n - * APIMethod: pageNum\n - * Get the zero based page number.\n - *\n - * Returns:\n - * {Integer} The current page number being displayed.\n - */\n - pageNum: function() {\n - return this.num;\n - },\n -\n - /**\n - * APIMethod: pageLength\n - * Gets or sets page length.\n - *\n - * Parameters:\n - * newLength - {Integer} Optional length to be set.\n - *\n - * Returns:\n - * {Integer} The length of a page (number of features per page).\n - */\n - pageLength: function(newLength) {\n - if(newLength && newLength > 0) {\n - this.length = newLength;\n - }\n - return this.length;\n - },\n -\n - /**\n - * APIMethod: pageNext\n - * Display the next page of features.\n - *\n - * Returns:\n - * {Boolean} A new page was displayed.\n - */\n - pageNext: function(event) {\n - var changed = false;\n - if(this.features) {\n - if(this.num === null) {\n - this.num = -1;\n - }\n - var start = (this.num + 1) * this.length;\n - changed = this.page(start, event);\n - }\n - return changed;\n - },\n -\n - /**\n - * APIMethod: pagePrevious\n - * Display the previous page of features.\n - *\n - * Returns:\n - * {Boolean} A new page was displayed.\n - */\n - pagePrevious: function() {\n - var changed = false;\n - if(this.features) {\n - if(this.num === null) {\n - this.num = this.pageCount();\n - }\n - var start = (this.num - 1) * this.length;\n - changed = this.page(start);\n - }\n - return changed;\n - },\n - \n - /**\n - * Method: page\n - * Display the page starting at the given index from the cache.\n - *\n - * Returns:\n - * {Boolean} A new page was displayed.\n - */\n - page: function(start, event) {\n - var changed = false;\n - if(this.features) {\n - if(start >= 0 && start < this.features.length) {\n - var num = Math.floor(start / this.length);\n - if(num != this.num) {\n - this.paging = true;\n - var features = this.features.slice(start, start + this.length);\n - this.layer.removeFeatures(this.layer.features);\n - this.num = num;\n - // modify the event if any\n - if(event && event.features) {\n - // this.was called by an event listener\n - event.features = features;\n - } else {\n - // this was called directly on the strategy\n - this.layer.addFeatures(features);\n - }\n - this.paging = false;\n - changed = true;\n - }\n - }\n - }\n - return changed;\n - },\n - \n - CLASS_NAME: "OpenLayers.Strategy.Paging" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6316</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Refresh.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Refresh.js.xml deleted file mode 100644 index 466c9bd8c5196a2936f7c6579c53059e45d440f2..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Refresh.js.xml +++ /dev/null @@ -1,181 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.88</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Refresh.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Strategy.js\n - */\n -\n -/**\n - * Class: OpenLayers.Strategy.Refresh\n - * A strategy that refreshes the layer. By default the strategy waits for a\n - * call to <refresh> before refreshing. By configuring the strategy with \n - * the <interval> option, refreshing can take place automatically.\n - *\n - * Inherits from:\n - * - <OpenLayers.Strategy>\n - */\n -OpenLayers.Strategy.Refresh = OpenLayers.Class(OpenLayers.Strategy, {\n - \n - /**\n - * Property: force\n - * {Boolean} Force a refresh on the layer. Default is false.\n - */\n - force: false,\n -\n - /**\n - * Property: interval\n - * {Number} Auto-refresh. Default is 0. If > 0, layer will be refreshed \n - * every N milliseconds.\n - */\n - interval: 0,\n - \n - /**\n - * Property: timer\n - * {Number} The id of the timer.\n - */\n - timer: null,\n -\n - /**\n - * Constructor: OpenLayers.Strategy.Refresh\n - * Create a new Refresh strategy.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - */\n - \n - /**\n - * APIMethod: activate\n - * Activate the strategy. Register any listeners, do appropriate setup.\n - * \n - * Returns:\n - * {Boolean} True if the strategy was successfully activated.\n - */\n - activate: function() {\n - var activated = OpenLayers.Strategy.prototype.activate.call(this);\n - if(activated) {\n - if(this.layer.visibility === true) {\n - this.start();\n - } \n - this.layer.events.on({\n - "visibilitychanged": this.reset,\n - scope: this\n - });\n - }\n - return activated;\n - },\n - \n - /**\n - * APIMethod: deactivate\n - * Deactivate the strategy. Unregister any listeners, do appropriate\n - * tear-down.\n - * \n - * Returns:\n - * {Boolean} True if the strategy was successfully deactivated.\n - */\n - deactivate: function() {\n - var deactivated = OpenLayers.Strategy.prototype.deactivate.call(this);\n - if(deactivated) {\n - this.stop();\n - }\n - return deactivated;\n - },\n - \n - /**\n - * Method: reset\n - * Start or cancel the refresh interval depending on the visibility of \n - * the layer.\n - */\n - reset: function() {\n - if(this.layer.visibility === true) {\n - this.start();\n - } else {\n - this.stop();\n - }\n - },\n - \n - /**\n - * Method: start\n - * Start the refresh interval. \n - */\n - start: function() {\n - if(this.interval && typeof this.interval === "number" && \n - this.interval > 0) {\n -\n - this.timer = window.setInterval(\n - OpenLayers.Function.bind(this.refresh, this),\n - this.interval);\n - }\n - },\n - \n - /**\n - * APIMethod: refresh\n - * Tell the strategy to refresh which will refresh the layer.\n - */\n - refresh: function() {\n - if (this.layer && this.layer.refresh && \n - typeof this.layer.refresh == "function") {\n -\n - this.layer.refresh({force: this.force});\n - }\n - },\n - \n - /**\n - * Method: stop\n - * Cancels the refresh interval. \n - */\n - stop: function() {\n - if(this.timer !== null) {\n - window.clearInterval(this.timer);\n - this.timer = null;\n - }\n - },\n - \n - CLASS_NAME: "OpenLayers.Strategy.Refresh" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>3610</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Save.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Save.js.xml deleted file mode 100644 index a114fdd52ce1710c0de50dc1f5886097b81a7f73..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Strategy/Save.js.xml +++ /dev/null @@ -1,275 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.88</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Save.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Strategy.js\n - */\n -\n -/**\n - * Class: OpenLayers.Strategy.Save\n - * A strategy that commits newly created or modified features. By default\n - * the strategy waits for a call to <save> before persisting changes. By\n - * configuring the strategy with the <auto> option, changes can be saved\n - * automatically.\n - *\n - * Inherits from:\n - * - <OpenLayers.Strategy>\n - */\n -OpenLayers.Strategy.Save = OpenLayers.Class(OpenLayers.Strategy, {\n - \n - /**\n - * APIProperty: events\n - * {<OpenLayers.Events>} An events object that handles all \n - * events on the strategy object.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * strategy.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types:\n - * start - Triggered before saving\n - * success - Triggered after a successful transaction\n - * fail - Triggered after a failed transaction\n - * \n - */\n - \n - /** \n - * Property: events\n - * {<OpenLayers.Events>} Events instance for triggering this protocol\n - * events.\n - */\n - events: null,\n - \n - /**\n - * APIProperty: auto\n - * {Boolean | Number} Auto-save. Default is false. If true, features will be\n - * saved immediately after being added to the layer and with each\n - * modification or deletion. If auto is a number, features will be\n - * saved on an interval provided by the value (in seconds).\n - */\n - auto: false,\n - \n - /**\n - * Property: timer\n - * {Number} The id of the timer.\n - */\n - timer: null,\n -\n - /**\n - * Constructor: OpenLayers.Strategy.Save\n - * Create a new Save strategy.\n - *\n - * Parameters:\n - * options - {Object} Optional object whose properties will be set on the\n - * instance.\n - */\n - initialize: function(options) {\n - OpenLayers.Strategy.prototype.initialize.apply(this, [options]);\n - this.events = new OpenLayers.Events(this);\n - },\n - \n - /**\n - * APIMethod: activate\n - * Activate the strategy. Register any listeners, do appropriate setup.\n - * \n - * Returns:\n - * {Boolean} The strategy was successfully activated.\n - */\n - activate: function() {\n - var activated = OpenLayers.Strategy.prototype.activate.call(this);\n - if(activated) {\n - if(this.auto) {\n - if(typeof this.auto === "number") {\n - this.timer = window.setInterval(\n - OpenLayers.Function.bind(this.save, this),\n - this.auto * 1000\n - );\n - } else {\n - this.layer.events.on({\n - "featureadded": this.triggerSave,\n - "afterfeaturemodified": this.triggerSave,\n - scope: this\n - });\n - }\n - }\n - }\n - return activated;\n - },\n - \n - /**\n - * APIMethod: deactivate\n - * Deactivate the strategy. Unregister any listeners, do appropriate\n - * tear-down.\n - * \n - * Returns:\n - * {Boolean} The strategy was successfully deactivated.\n - */\n - deactivate: function() {\n - var deactivated = OpenLayers.Strategy.prototype.deactivate.call(this);\n - if(deactivated) {\n - if(this.auto) {\n - if(typeof this.auto === "number") {\n - window.clearInterval(this.timer);\n - } else {\n - this.layer.events.un({\n - "featureadded": this.triggerSave,\n - "afterfeaturemodified": this.triggerSave,\n - scope: this\n - });\n - }\n - }\n - }\n - return deactivated;\n - },\n - \n - /**\n - * Method: triggerSave\n - * Registered as a listener. Calls save if a feature has insert, update,\n - * or delete state.\n - *\n - * Parameters:\n - * event - {Object} The event this function is listening for.\n - */\n - triggerSave: function(event) {\n - var feature = event.feature;\n - if(feature.state === OpenLayers.State.INSERT ||\n - feature.state === OpenLayers.State.UPDATE ||\n - feature.state === OpenLayers.State.DELETE) {\n - this.save([event.feature]);\n - }\n - },\n - \n - /**\n - * APIMethod: save\n - * Tell the layer protocol to commit unsaved features. If the layer\n - * projection differs from the map projection, features will be\n - * transformed into the layer projection before being committed.\n - *\n - * Parameters:\n - * features - {Array} Features to be saved. If null, then default is all\n - * features in the layer. Features are assumed to be in the map\n - * projection.\n - */\n - save: function(features) {\n - if(!features) {\n - features = this.layer.features;\n - }\n - this.events.triggerEvent("start", {features:features});\n - var remote = this.layer.projection;\n - var local = this.layer.map.getProjectionObject();\n - if(!local.equals(remote)) {\n - var len = features.length;\n - var clones = new Array(len);\n - var orig, clone;\n - for(var i=0; i<len; ++i) {\n - orig = features[i];\n - clone = orig.clone();\n - clone.fid = orig.fid;\n - clone.state = orig.state;\n - if(orig.url) {\n - clone.url = orig.url;\n - }\n - clone._original = orig;\n - clone.geometry.transform(local, remote);\n - clones[i] = clone;\n - }\n - features = clones;\n - }\n - this.layer.protocol.commit(features, {\n - callback: this.onCommit,\n - scope: this\n - });\n - },\n - \n - /**\n - * Method: onCommit\n - * Called after protocol commit.\n - *\n - * Parameters:\n - * response - {<OpenLayers.Protocol.Response>} A response object.\n - */\n - onCommit: function(response) {\n - var evt = {"response": response};\n - if(response.success()) {\n - var features = response.reqFeatures;\n - // deal with inserts, updates, and deletes\n - var state, feature;\n - var destroys = [];\n - var insertIds = response.insertIds || [];\n - var j = 0;\n - for(var i=0, len=features.length; i<len; ++i) {\n - feature = features[i];\n - // if projection was different, we may be dealing with clones\n - feature = feature._original || feature;\n - state = feature.state;\n - if(state) {\n - if(state == OpenLayers.State.DELETE) {\n - destroys.push(feature);\n - } else if(state == OpenLayers.State.INSERT) {\n - feature.fid = insertIds[j];\n - ++j;\n - }\n - feature.state = null;\n - }\n - }\n -\n - if(destroys.length > 0) {\n - this.layer.destroyFeatures(destroys);\n - }\n -\n - this.events.triggerEvent("success", evt);\n -\n - } else {\n - this.events.triggerEvent("fail", evt);\n - }\n - },\n - \n - CLASS_NAME: "OpenLayers.Strategy.Save" \n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7481</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Style.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Style.js.xml deleted file mode 100644 index 007d5c317865729a1b445ecf1540580d7f81d521..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Style.js.xml +++ /dev/null @@ -1,492 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Style.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Util.js\n - * @requires OpenLayers/Feature/Vector.js\n - */\n -\n -/**\n - * Class: OpenLayers.Style\n - * This class represents a UserStyle obtained\n - * from a SLD, containing styling rules.\n - */\n -OpenLayers.Style = OpenLayers.Class({\n -\n - /**\n - * Property: id\n - * {String} A unique id for this session.\n - */\n - id: null,\n - \n - /**\n - * APIProperty: name\n - * {String}\n - */\n - name: null,\n - \n - /**\n - * Property: title\n - * {String} Title of this style (set if included in SLD)\n - */\n - title: null,\n - \n - /**\n - * Property: description\n - * {String} Description of this style (set if abstract is included in SLD)\n - */\n - description: null,\n -\n - /**\n - * APIProperty: layerName\n - * {<String>} name of the layer that this style belongs to, usually\n - * according to the NamedLayer attribute of an SLD document.\n - */\n - layerName: null,\n - \n - /**\n - * APIProperty: isDefault\n - * {Boolean}\n - */\n - isDefault: false,\n - \n - /** \n - * Property: rules \n - * {Array(<OpenLayers.Rule>)}\n - */\n - rules: null,\n - \n - /**\n - * Property: context\n - * {Object} An optional object with properties that symbolizers\' property\n - * values should be evaluated against. If no context is specified,\n - * feature.attributes will be used\n - */\n - context: null,\n -\n - /**\n - * Property: defaultStyle\n - * {Object} hash of style properties to use as default for merging\n - * rule-based style symbolizers onto. If no rules are defined,\n - * createSymbolizer will return this style. If <defaultsPerSymbolizer> is set to\n - * true, the defaultStyle will only be taken into account if there are\n - * rules defined.\n - */\n - defaultStyle: null,\n - \n - /**\n - * Property: defaultsPerSymbolizer\n - * {Boolean} If set to true, the <defaultStyle> will extend the symbolizer\n - * of every rule. Properties of the <defaultStyle> will also be used to set\n - * missing symbolizer properties if the symbolizer has stroke, fill or\n - * graphic set to true. Default is false.\n - */\n - defaultsPerSymbolizer: false,\n - \n - /**\n - * Property: propertyStyles\n - * {Hash of Boolean} cache of style properties that need to be parsed for\n - * propertyNames. Property names are keys, values won\'t be used.\n - */\n - propertyStyles: null,\n - \n -\n - /** \n - * Constructor: OpenLayers.Style\n - * Creates a UserStyle.\n - *\n - * Parameters:\n - * style - {Object} Optional hash of style properties that will be\n - * used as default style for this style object. This style\n - * applies if no rules are specified. Symbolizers defined in\n - * rules will extend this default style.\n - * options - {Object} An optional object with properties to set on the\n - * style.\n - *\n - * Valid options:\n - * rules - {Array(<OpenLayers.Rule>)} List of rules to be added to the\n - * style.\n - * \n - * Returns:\n - * {<OpenLayers.Style>}\n - */\n - initialize: function(style, options) {\n -\n - OpenLayers.Util.extend(this, options);\n - this.rules = [];\n - if(options && options.rules) {\n - this.addRules(options.rules);\n - }\n -\n - // use the default style from OpenLayers.Feature.Vector if no style\n - // was given in the constructor\n - this.setDefaultStyle(style ||\n - OpenLayers.Feature.Vector.style["default"]);\n -\n - this.id = OpenLayers.Util.createUniqueID(this.CLASS_NAME + "_");\n - },\n -\n - /** \n - * APIMethod: destroy\n - * nullify references to prevent circular references and memory leaks\n - */\n - destroy: function() {\n - for (var i=0, len=this.rules.length; i<len; i++) {\n - this.rules[i].destroy();\n - this.rules[i] = null;\n - }\n - this.rules = null;\n - this.defaultStyle = null;\n - },\n - \n - /**\n - * Method: createSymbolizer\n - * creates a style by applying all feature-dependent rules to the base\n - * style.\n - * \n - * Parameters:\n - * feature - {<OpenLayers.Feature>} feature to evaluate rules for\n - * \n - * Returns:\n - * {Object} symbolizer hash\n - */\n - createSymbolizer: function(feature) {\n - var style = this.defaultsPerSymbolizer ? {} : this.createLiterals(\n - OpenLayers.Util.extend({}, this.defaultStyle), feature);\n - \n - var rules = this.rules;\n -\n - var rule, context;\n - var elseRules = [];\n - var appliedRules = false;\n - for(var i=0, len=rules.length; i<len; i++) {\n - rule = rules[i];\n - // does the rule apply?\n - var applies = rule.evaluate(feature);\n - \n - if(applies) {\n - if(rule instanceof OpenLayers.Rule && rule.elseFilter) {\n - elseRules.push(rule);\n - } else {\n - appliedRules = true;\n - this.applySymbolizer(rule, style, feature);\n - }\n - }\n - }\n - \n - // if no other rules apply, apply the rules with else filters\n - if(appliedRules == false && elseRules.length > 0) {\n - appliedRules = true;\n - for(var i=0, len=elseRules.length; i<len; i++) {\n - this.applySymbolizer(elseRules[i], style, feature);\n - }\n - }\n -\n - // don\'t display if there were rules but none applied\n - if(rules.length > 0 && appliedRules == false) {\n - style.display = "none";\n - }\n - \n - if (style.label != null && typeof style.label !== "string") {\n - style.label = String(style.label);\n - }\n - \n - return style;\n - },\n - \n - /**\n - * Method: applySymbolizer\n - *\n - * Parameters:\n - * rule - {<OpenLayers.Rule>}\n - * style - {Object}\n - * feature - {<OpenLayer.Feature.Vector>}\n - *\n - * Returns:\n - * {Object} A style with new symbolizer applied.\n - */\n - applySymbolizer: function(rule, style, feature) {\n - var symbolizerPrefix = feature.geometry ?\n - this.getSymbolizerPrefix(feature.geometry) :\n - OpenLayers.Style.SYMBOLIZER_PREFIXES[0];\n -\n - var symbolizer = rule.symbolizer[symbolizerPrefix] || rule.symbolizer;\n - \n - if(this.defaultsPerSymbolizer === true) {\n - var defaults = this.defaultStyle;\n - OpenLayers.Util.applyDefaults(symbolizer, {\n - pointRadius: defaults.pointRadius\n - });\n - if(symbolizer.stroke === true || symbolizer.graphic === true) {\n - OpenLayers.Util.applyDefaults(symbolizer, {\n - strokeWidth: defaults.strokeWidth,\n - strokeColor: defaults.strokeColor,\n - strokeOpacity: defaults.strokeOpacity,\n - strokeDashstyle: defaults.strokeDashstyle,\n - strokeLinecap: defaults.strokeLinecap\n - });\n - }\n - if(symbolizer.fill === true || symbolizer.graphic === true) {\n - OpenLayers.Util.applyDefaults(symbolizer, {\n - fillColor: defaults.fillColor,\n - fillOpacity: defaults.fillOpacity\n - });\n - }\n - if(symbolizer.graphic === true) {\n - OpenLayers.Util.applyDefaults(symbolizer, {\n - pointRadius: this.defaultStyle.pointRadius,\n - externalGraphic: this.defaultStyle.externalGraphic,\n - graphicName: this.defaultStyle.graphicName,\n - graphicOpacity: this.defaultStyle.graphicOpacity,\n - graphicWidth: this.defaultStyle.graphicWidth,\n - graphicHeight: this.defaultStyle.graphicHeight,\n - graphicXOffset: this.defaultStyle.graphicXOffset,\n - graphicYOffset: this.defaultStyle.graphicYOffset\n - });\n - }\n - }\n -\n - // merge the style with the current style\n - return this.createLiterals(\n - OpenLayers.Util.extend(style, symbolizer), feature);\n - },\n - \n - /**\n - * Method: createLiterals\n - * creates literals for all style properties that have an entry in\n - * <this.propertyStyles>.\n - * \n - * Parameters:\n - * style - {Object} style to create literals for. Will be modified\n - * inline.\n - * feature - {Object}\n - * \n - * Returns:\n - * {Object} the modified style\n - */\n - createLiterals: function(style, feature) {\n - var context = OpenLayers.Util.extend({}, feature.attributes || feature.data);\n - OpenLayers.Util.extend(context, this.context);\n - \n - for (var i in this.propertyStyles) {\n - style[i] = OpenLayers.Style.createLiteral(style[i], context, feature, i);\n - }\n - return style;\n - },\n - \n - /**\n - * Method: findPropertyStyles\n - * Looks into all rules for this style and the defaultStyle to collect\n - * all the style hash property names containing ${...} strings that have\n - * to be replaced using the createLiteral method before returning them.\n - * \n - * Returns:\n - * {Object} hash of property names that need createLiteral parsing. The\n - * name of the property is the key, and the value is true;\n - */\n - findPropertyStyles: function() {\n - var propertyStyles = {};\n -\n - // check the default style\n - var style = this.defaultStyle;\n - this.addPropertyStyles(propertyStyles, style);\n -\n - // walk through all rules to check for properties in their symbolizer\n - var rules = this.rules;\n - var symbolizer, value;\n - for (var i=0, len=rules.length; i<len; i++) {\n - symbolizer = rules[i].symbolizer;\n - for (var key in symbolizer) {\n - value = symbolizer[key];\n - if (typeof value == "object") {\n - // symbolizer key is "Point", "Line" or "Polygon"\n - this.addPropertyStyles(propertyStyles, value);\n - } else {\n - // symbolizer is a hash of style properties\n - this.addPropertyStyles(propertyStyles, symbolizer);\n - break;\n - }\n - }\n - }\n - return propertyStyles;\n - },\n - \n - /**\n - * Method: addPropertyStyles\n - * \n - * Parameters:\n - * propertyStyles - {Object} hash to add new property styles to. Will be\n - * modified inline\n - * symbolizer - {Object} search this symbolizer for property styles\n - * \n - * Returns:\n - * {Object} propertyStyles hash\n - */\n - addPropertyStyles: function(propertyStyles, symbolizer) {\n - var property;\n - for (var key in symbolizer) {\n - property = symbolizer[key];\n - if (typeof property == "string" &&\n - property.match(/\\$\\{\\w+\\}/)) {\n - propertyStyles[key] = true;\n - }\n - }\n - return propertyStyles;\n - },\n - \n - /**\n - * APIMethod: addRules\n - * Adds rules to this style.\n - * \n - * Parameters:\n - * rules - {Array(<OpenLayers.Rule>)}\n - */\n - addRules: function(rules) {\n - Array.prototype.push.apply(this.rules, rules);\n - this.propertyStyles = this.findPropertyStyles();\n - },\n - \n - /**\n - * APIMethod: setDefaultStyle\n - * Sets the default style for this style object.\n - * \n - * Parameters:\n - * style - {Object} Hash of style properties\n - */\n - setDefaultStyle: function(style) {\n - this.defaultStyle = style; \n - this.propertyStyles = this.findPropertyStyles();\n - },\n - \n - /**\n - * Method: getSymbolizerPrefix\n - * Returns the correct symbolizer prefix according to the\n - * geometry type of the passed geometry\n - * \n - * Parameters:\n - * geometry - {<OpenLayers.Geometry>}\n - * \n - * Returns:\n - * {String} key of the according symbolizer\n - */\n - getSymbolizerPrefix: function(geometry) {\n - var prefixes = OpenLayers.Style.SYMBOLIZER_PREFIXES;\n - for (var i=0, len=prefixes.length; i<len; i++) {\n - if (geometry.CLASS_NAME.indexOf(prefixes[i]) != -1) {\n - return prefixes[i];\n - }\n - }\n - },\n - \n - /**\n - * APIMethod: clone\n - * Clones this style.\n - * \n - * Returns:\n - * {<OpenLayers.Style>} Clone of this style.\n - */\n - clone: function() {\n - var options = OpenLayers.Util.extend({}, this);\n - // clone rules\n - if(this.rules) {\n - options.rules = [];\n - for(var i=0, len=this.rules.length; i<len; ++i) {\n - options.rules.push(this.rules[i].clone());\n - }\n - }\n - // clone context\n - options.context = this.context && OpenLayers.Util.extend({}, this.context);\n - //clone default style\n - var defaultStyle = OpenLayers.Util.extend({}, this.defaultStyle);\n - return new OpenLayers.Style(defaultStyle, options);\n - },\n - \n - CLASS_NAME: "OpenLayers.Style"\n -});\n -\n -\n -/**\n - * Function: createLiteral\n - * converts a style value holding a combination of PropertyName and Literal\n - * into a Literal, taking the property values from the passed features.\n - * \n - * Parameters:\n - * value - {String} value to parse. If this string contains a construct like\n - * "foo ${bar}", then "foo " will be taken as literal, and "${bar}"\n - * will be replaced by the value of the "bar" attribute of the passed\n - * feature.\n - * context - {Object} context to take attribute values from\n - * feature - {<OpenLayers.Feature.Vector>} optional feature to pass to\n - * <OpenLayers.String.format> for evaluating functions in the\n - * context.\n - * property - {String} optional, name of the property for which the literal is\n - * being created for evaluating functions in the context.\n - * \n - * Returns:\n - * {String} the parsed value. In the example of the value parameter above, the\n - * result would be "foo valueOfBar", assuming that the passed feature has an\n - * attribute named "bar" with the value "valueOfBar".\n - */\n -OpenLayers.Style.createLiteral = function(value, context, feature, property) {\n - if (typeof value == "string" && value.indexOf("${") != -1) {\n - value = OpenLayers.String.format(value, context, [feature, property]);\n - value = (isNaN(value) || !value) ? value : parseFloat(value);\n - }\n - return value;\n -};\n - \n -/**\n - * Constant: OpenLayers.Style.SYMBOLIZER_PREFIXES\n - * {Array} prefixes of the sld symbolizers. These are the\n - * same as the main geometry types\n - */\n -OpenLayers.Style.SYMBOLIZER_PREFIXES = [\'Point\', \'Line\', \'Polygon\', \'Text\',\n - \'Raster\'];\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>14798</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Style2.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Style2.js.xml deleted file mode 100644 index fdc11a706f96885db1822725abf3fb6a5c927cb0..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Style2.js.xml +++ /dev/null @@ -1,156 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.76</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Style2.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Rule.js\n - * @requires OpenLayers/Symbolizer/Point.js\n - * @requires OpenLayers/Symbolizer/Line.js\n - * @requires OpenLayers/Symbolizer/Polygon.js\n - * @requires OpenLayers/Symbolizer/Text.js\n - * @requires OpenLayers/Symbolizer/Raster.js\n - */\n -\n -/**\n - * Class: OpenLayers.Style2\n - * This class represents a collection of rules for rendering features.\n - */\n -OpenLayers.Style2 = OpenLayers.Class({\n -\n - /**\n - * Property: id\n - * {String} A unique id for this session.\n - */\n - id: null,\n - \n - /**\n - * APIProperty: name\n - * {String} Style identifier.\n - */\n - name: null,\n - \n - /**\n - * APIProperty: title\n - * {String} Title of this style.\n - */\n - title: null,\n - \n - /**\n - * APIProperty: description\n - * {String} Description of this style.\n - */\n - description: null,\n -\n - /**\n - * APIProperty: layerName\n - * {<String>} Name of the layer that this style belongs to, usually\n - * according to the NamedLayer attribute of an SLD document.\n - */\n - layerName: null,\n - \n - /**\n - * APIProperty: isDefault\n - * {Boolean}\n - */\n - isDefault: false,\n - \n - /** \n - * APIProperty: rules \n - * {Array(<OpenLayers.Rule>)} Collection of rendering rules.\n - */\n - rules: null,\n - \n - /** \n - * Constructor: OpenLayers.Style2\n - * Creates a style representing a collection of rendering rules.\n - *\n - * Parameters:\n - * config - {Object} An object containing properties to be set on the \n - * style. Any documented properties may be set at construction.\n - *\n - * Returns:\n - * {<OpenLayers.Style2>} A new style object.\n - */\n - initialize: function(config) {\n - OpenLayers.Util.extend(this, config);\n - this.id = OpenLayers.Util.createUniqueID(this.CLASS_NAME + "_");\n - },\n -\n - /** \n - * APIMethod: destroy\n - * nullify references to prevent circular references and memory leaks\n - */\n - destroy: function() {\n - for (var i=0, len=this.rules.length; i<len; i++) {\n - this.rules[i].destroy();\n - }\n - delete this.rules;\n - },\n -\n - /**\n - * APIMethod: clone\n - * Clones this style.\n - * \n - * Returns:\n - * {<OpenLayers.Style2>} Clone of this style.\n - */\n - clone: function() {\n - var config = OpenLayers.Util.extend({}, this);\n - // clone rules\n - if (this.rules) {\n - config.rules = [];\n - for (var i=0, len=this.rules.length; i<len; ++i) {\n - config.rules.push(this.rules[i].clone());\n - }\n - }\n - return new OpenLayers.Style2(config);\n - },\n - \n - CLASS_NAME: "OpenLayers.Style2"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2912</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/StyleMap.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/StyleMap.js.xml deleted file mode 100644 index 4599883af7079882249ca053218381d419d7bc47..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/StyleMap.js.xml +++ /dev/null @@ -1,205 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.76</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>StyleMap.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Style.js\n - * @requires OpenLayers/Feature/Vector.js\n - */\n - \n -/**\n - * Class: OpenLayers.StyleMap\n - */\n -OpenLayers.StyleMap = OpenLayers.Class({\n - \n - /**\n - * Property: styles\n - * {Object} Hash of {<OpenLayers.Style>}, keyed by names of well known\n - * rendering intents (e.g. "default", "temporary", "select", "delete").\n - */\n - styles: null,\n - \n - /**\n - * Property: extendDefault\n - * {Boolean} if true, every render intent will extend the symbolizers\n - * specified for the "default" intent at rendering time. Otherwise, every\n - * rendering intent will be treated as a completely independent style.\n - */\n - extendDefault: true,\n - \n - /**\n - * Constructor: OpenLayers.StyleMap\n - * \n - * Parameters:\n - * style - {Object} Optional. Either a style hash, or a style object, or\n - * a hash of style objects (style hashes) keyed by rendering\n - * intent. If just one style hash or style object is passed,\n - * this will be used for all known render intents (default,\n - * select, temporary)\n - * options - {Object} optional hash of additional options for this\n - * instance\n - */\n - initialize: function (style, options) {\n - this.styles = {\n - "default": new OpenLayers.Style(\n - OpenLayers.Feature.Vector.style["default"]),\n - "select": new OpenLayers.Style(\n - OpenLayers.Feature.Vector.style["select"]),\n - "temporary": new OpenLayers.Style(\n - OpenLayers.Feature.Vector.style["temporary"]),\n - "delete": new OpenLayers.Style(\n - OpenLayers.Feature.Vector.style["delete"])\n - };\n - \n - // take whatever the user passed as style parameter and convert it\n - // into parts of stylemap.\n - if(style instanceof OpenLayers.Style) {\n - // user passed a style object\n - this.styles["default"] = style;\n - this.styles["select"] = style;\n - this.styles["temporary"] = style;\n - this.styles["delete"] = style;\n - } else if(typeof style == "object") {\n - for(var key in style) {\n - if(style[key] instanceof OpenLayers.Style) {\n - // user passed a hash of style objects\n - this.styles[key] = style[key];\n - } else if(typeof style[key] == "object") {\n - // user passsed a hash of style hashes\n - this.styles[key] = new OpenLayers.Style(style[key]);\n - } else {\n - // user passed a style hash (i.e. symbolizer)\n - this.styles["default"] = new OpenLayers.Style(style);\n - this.styles["select"] = new OpenLayers.Style(style);\n - this.styles["temporary"] = new OpenLayers.Style(style);\n - this.styles["delete"] = new OpenLayers.Style(style);\n - break;\n - }\n - }\n - }\n - OpenLayers.Util.extend(this, options);\n - },\n -\n - /**\n - * Method: destroy\n - */\n - destroy: function() {\n - for(var key in this.styles) {\n - this.styles[key].destroy();\n - }\n - this.styles = null;\n - },\n - \n - /**\n - * Method: createSymbolizer\n - * Creates the symbolizer for a feature for a render intent.\n - * \n - * Parameters:\n - * feature - {<OpenLayers.Feature>} The feature to evaluate the rules\n - * of the intended style against.\n - * intent - {String} The intent determines the symbolizer that will be\n - * used to draw the feature. Well known intents are "default"\n - * (for just drawing the features), "select" (for selected\n - * features) and "temporary" (for drawing features).\n - * \n - * Returns:\n - * {Object} symbolizer hash\n - */\n - createSymbolizer: function(feature, intent) {\n - if(!feature) {\n - feature = new OpenLayers.Feature.Vector();\n - }\n - if(!this.styles[intent]) {\n - intent = "default";\n - }\n - feature.renderIntent = intent;\n - var defaultSymbolizer = {};\n - if(this.extendDefault && intent != "default") {\n - defaultSymbolizer = this.styles["default"].createSymbolizer(feature);\n - }\n - return OpenLayers.Util.extend(defaultSymbolizer,\n - this.styles[intent].createSymbolizer(feature));\n - },\n - \n - /**\n - * Method: addUniqueValueRules\n - * Convenience method to create comparison rules for unique values of a\n - * property. The rules will be added to the style object for a specified\n - * rendering intent. This method is a shortcut for creating something like\n - * the "unique value legends" familiar from well known desktop GIS systems\n - * \n - * Parameters:\n - * renderIntent - {String} rendering intent to add the rules to\n - * property - {String} values of feature attributes to create the\n - * rules for\n - * symbolizers - {Object} Hash of symbolizers, keyed by the desired\n - * property values \n - * context - {Object} An optional object with properties that\n - * symbolizers\' property values should be evaluated\n - * against. If no context is specified, feature.attributes\n - * will be used\n - */\n - addUniqueValueRules: function(renderIntent, property, symbolizers, context) {\n - var rules = [];\n - for (var value in symbolizers) {\n - rules.push(new OpenLayers.Rule({\n - symbolizer: symbolizers[value],\n - context: context,\n - filter: new OpenLayers.Filter.Comparison({\n - type: OpenLayers.Filter.Comparison.EQUAL_TO,\n - property: property,\n - value: value\n - })\n - }));\n - }\n - this.styles[renderIntent].addRules(rules);\n - },\n -\n - CLASS_NAME: "OpenLayers.StyleMap"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>6263</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer.js.xml deleted file mode 100644 index 794991df7e410f4c9919d40d91ded41a2fc91194..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer.js.xml +++ /dev/null @@ -1,95 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Symbolizer.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string>/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - */\n -\n -/**\n - * Class: OpenLayers.Symbolizer\n - * Base class representing a symbolizer used for feature rendering.\n - */\n -OpenLayers.Symbolizer = OpenLayers.Class({\n - \n -\n - /**\n - * APIProperty: zIndex\n - * {Number} The zIndex determines the rendering order for a symbolizer.\n - * Symbolizers with larger zIndex values are rendered over symbolizers\n - * with smaller zIndex values. Default is 0.\n - */\n - zIndex: 0,\n - \n - /**\n - * Constructor: OpenLayers.Symbolizer\n - * Instances of this class are not useful. See one of the subclasses.\n - *\n - * Parameters:\n - * config - {Object} An object containing properties to be set on the \n - * symbolizer. Any documented symbolizer property can be set at \n - * construction.\n - *\n - * Returns:\n - * A new symbolizer.\n - */\n - initialize: function(config) {\n - OpenLayers.Util.extend(this, config);\n - },\n - \n - /** \n - * APIMethod: clone\n - * Create a copy of this symbolizer.\n - *\n - * Returns a symbolizer of the same type with the same properties.\n - */\n - clone: function() {\n - var Type = eval(this.CLASS_NAME);\n - return new Type(OpenLayers.Util.extend({}, this));\n - },\n - \n - CLASS_NAME: "OpenLayers.Symbolizer"\n - \n -});\n -\n -</string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1556</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer.xml deleted file mode 100644 index c1ce4d8e03eef5844f2e1de6c0a29456f83767c1..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Symbolizer</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Symbolizer</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Line.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Line.js.xml deleted file mode 100644 index 3d7a0ec11935bdd224b1f7fc801e6a89d9b388d8..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Line.js.xml +++ /dev/null @@ -1,114 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.89</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Line.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string>/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Symbolizer.js\n - */\n -\n -/**\n - * Class: OpenLayers.Symbolizer.Line\n - * A symbolizer used to render line features.\n - */\n -OpenLayers.Symbolizer.Line = OpenLayers.Class(OpenLayers.Symbolizer, {\n -\n - /**\n - * APIProperty: strokeColor\n - * {String} Color for line stroke. This is a RGB hex value (e.g. "#ff0000"\n - * for red). \n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: strokeOpacity\n - * {Number} Stroke opacity (0-1).\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: strokeWidth\n - * {Number} Pixel stroke width.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: strokeLinecap\n - * {String} Stroke cap type ("butt", "round", or "square").\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * Property: strokeDashstyle\n - * {String} Stroke dash style according to the SLD spec. Note that the\n - * OpenLayers values for strokeDashstyle ("dot", "dash", "dashdot",\n - * "longdash", "longdashdot", or "solid") will not work in SLD, but\n - * most SLD patterns will render correctly in OpenLayers.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n -\n - /**\n - * Constructor: OpenLayers.Symbolizer.Line\n - * Create a symbolizer for rendering lines.\n - *\n - * Parameters:\n - * config - {Object} An object containing properties to be set on the \n - * symbolizer. Any documented symbolizer property can be set at \n - * construction.\n - *\n - * Returns:\n - * A new line symbolizer.\n - */\n - initialize: function(config) {\n - OpenLayers.Symbolizer.prototype.initialize.apply(this, arguments);\n - },\n - \n - CLASS_NAME: "OpenLayers.Symbolizer.Line"\n - \n -});\n -\n -</string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2260</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Point.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Point.js.xml deleted file mode 100644 index c8a105dba9fc1502577d67028762f8b4328b58bc..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Point.js.xml +++ /dev/null @@ -1,201 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.89</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Point.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Symbolizer.js\n - */\n -\n -/**\n - * Class: OpenLayers.Symbolizer.Point\n - * A symbolizer used to render point features.\n - */\n -OpenLayers.Symbolizer.Point = OpenLayers.Class(OpenLayers.Symbolizer, {\n - \n - /**\n - * APIProperty: strokeColor\n - * {String} Color for line stroke. This is a RGB hex value (e.g. "#ff0000"\n - * for red).\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: strokeOpacity\n - * {Number} Stroke opacity (0-1).\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: strokeWidth\n - * {Number} Pixel stroke width.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: strokeLinecap\n - * {String} Stroke cap type ("butt", "round", or "square").\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * Property: strokeDashstyle\n - * {String} Stroke dash style according to the SLD spec. Note that the\n - * OpenLayers values for strokeDashstyle ("dot", "dash", "dashdot",\n - * "longdash", "longdashdot", or "solid") will not work in SLD, but\n - * most SLD patterns will render correctly in OpenLayers.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n -\n - /**\n - * APIProperty: fillColor\n - * {String} RGB hex fill color (e.g. "#ff0000" for red).\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: fillOpacity\n - * {Number} Fill opacity (0-1).\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n -\n - /**\n - * APIProperty: pointRadius\n - * {Number} Pixel point radius.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n -\n - /**\n - * APIProperty: externalGraphic\n - * {String} Url to an external graphic that will be used for rendering \n - * points.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: graphicWidth\n - * {Number} Pixel width for sizing an external graphic.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: graphicHeight\n - * {Number} Pixel height for sizing an external graphic.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: graphicOpacity\n - * {Number} Opacity (0-1) for an external graphic.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: graphicXOffset\n - * {Number} Pixel offset along the positive x axis for displacing an \n - * external graphic.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: graphicYOffset\n - * {Number} Pixel offset along the positive y axis for displacing an \n - * external graphic.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n -\n - /**\n - * APIProperty: rotation\n - * {Number} The rotation of a graphic in the clockwise direction about its \n - * center point (or any point off center as specified by \n - * <graphicXOffset> and <graphicYOffset>).\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: graphicName\n - * {String} Named graphic to use when rendering points. Supported values \n - * include "circle", "square", "star", "x", "cross", and "triangle".\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * Constructor: OpenLayers.Symbolizer.Point\n - * Create a symbolizer for rendering points.\n - *\n - * Parameters:\n - * config - {Object} An object containing properties to be set on the \n - * symbolizer. Any documented symbolizer property can be set at \n - * construction.\n - *\n - * Returns:\n - * A new point symbolizer.\n - */\n - initialize: function(config) {\n - OpenLayers.Symbolizer.prototype.initialize.apply(this, arguments);\n - },\n - \n - CLASS_NAME: "OpenLayers.Symbolizer.Point"\n - \n -});\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>4815</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Polygon.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Polygon.js.xml deleted file mode 100644 index 220916eabcd9b86a3d0ce41504781280ff676d5d..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Polygon.js.xml +++ /dev/null @@ -1,128 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.89</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Polygon.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string>/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Symbolizer.js\n - */\n -\n -/**\n - * Class: OpenLayers.Symbolizer.Polygon\n - * A symbolizer used to render line features.\n - */\n -OpenLayers.Symbolizer.Polygon = OpenLayers.Class(OpenLayers.Symbolizer, {\n - \n - /**\n - * APIProperty: strokeColor\n - * {String} Color for line stroke. This is a RGB hex value (e.g. "#ff0000"\n - * for red).\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: strokeOpacity\n - * {Number} Stroke opacity (0-1).\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: strokeWidth\n - * {Number} Pixel stroke width.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: strokeLinecap\n - * {String} Stroke cap type ("butt", "round", or "square").\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * Property: strokeDashstyle\n - * {String} Stroke dash style according to the SLD spec. Note that the\n - * OpenLayers values for strokeDashstyle ("dot", "dash", "dashdot",\n - * "longdash", "longdashdot", or "solid") will not work in SLD, but\n - * most SLD patterns will render correctly in OpenLayers.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n -\n - /**\n - * APIProperty: fillColor\n - * {String} RGB hex fill color (e.g. "#ff0000" for red).\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * APIProperty: fillOpacity\n - * {Number} Fill opacity (0-1).\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n -\n - /**\n - * Constructor: OpenLayers.Symbolizer.Polygon\n - * Create a symbolizer for rendering polygons.\n - *\n - * Parameters:\n - * config - {Object} An object containing properties to be set on the \n - * symbolizer. Any documented symbolizer property can be set at \n - * construction.\n - *\n - * Returns:\n - * A new polygon symbolizer.\n - */\n - initialize: function(config) {\n - OpenLayers.Symbolizer.prototype.initialize.apply(this, arguments);\n - },\n - \n - CLASS_NAME: "OpenLayers.Symbolizer.Polygon"\n - \n -});\n -\n -</string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>2659</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Raster.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Raster.js.xml deleted file mode 100644 index 90c68d2d7e4ceca06580689fa32ea1e6ec36a57f..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Raster.js.xml +++ /dev/null @@ -1,74 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.89</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Raster.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string>/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Symbolizer.js\n - */\n -\n -/**\n - * Class: OpenLayers.Symbolizer.Raster\n - * A symbolizer used to render raster images.\n - */\n -OpenLayers.Symbolizer.Raster = OpenLayers.Class(OpenLayers.Symbolizer, {\n - \n - /**\n - * Constructor: OpenLayers.Symbolizer.Raster\n - * Create a symbolizer for rendering rasters.\n - *\n - * Parameters:\n - * config - {Object} An object containing properties to be set on the \n - * symbolizer. Any documented symbolizer property can be set at \n - * construction.\n - *\n - * Returns:\n - * A new raster symbolizer.\n - */\n - initialize: function(config) {\n - OpenLayers.Symbolizer.prototype.initialize.apply(this, arguments);\n - },\n - \n - CLASS_NAME: "OpenLayers.Symbolizer.Raster"\n - \n -});\n -</string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1020</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Text.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Text.js.xml deleted file mode 100644 index 2103e1df0ed5ebcd33a119ddd2b6438b3236b2c9..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Symbolizer/Text.js.xml +++ /dev/null @@ -1,110 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.89</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Text.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string>/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/Symbolizer.js\n - */\n -\n -/**\n - * Class: OpenLayers.Symbolizer.Text\n - * A symbolizer used to render text labels for features.\n - */\n -OpenLayers.Symbolizer.Text = OpenLayers.Class(OpenLayers.Symbolizer, {\n - \n - /** \n - * APIProperty: label\n - * {String} The text for the label.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /** \n - * APIProperty: fontFamily\n - * {String} The font family for the label.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n -\n - /** \n - * APIProperty: fontSize\n - * {String} The font size for the label.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n -\n - /** \n - * APIProperty: fontWeight\n - * {String} The font weight for the label.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n - \n - /**\n - * Property: fontStyle\n - * {String} The font style for the label.\n - * \n - * No default set here. Use OpenLayers.Renderer.defaultRenderer for defaults.\n - */\n -\n - /**\n - * Constructor: OpenLayers.Symbolizer.Text\n - * Create a symbolizer for rendering text labels.\n - *\n - * Parameters:\n - * config - {Object} An object containing properties to be set on the \n - * symbolizer. Any documented symbolizer property can be set at \n - * construction.\n - *\n - * Returns:\n - * A new text symbolizer.\n - */\n - initialize: function(config) {\n - OpenLayers.Symbolizer.prototype.initialize.apply(this, arguments);\n - },\n - \n - CLASS_NAME: "OpenLayers.Symbolizer.Text"\n - \n -});\n -\n -</string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>1947</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile.js.xml deleted file mode 100644 index faadb7a73f053c7c0b79df11aee2b0956cc02d8b..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile.js.xml +++ /dev/null @@ -1,335 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Tile.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Util.js\n - */\n -\n -/**\n - * Class: OpenLayers.Tile \n - * This is a class designed to designate a single tile, however\n - * it is explicitly designed to do relatively little. Tiles store \n - * information about themselves -- such as the URL that they are related\n - * to, and their size - but do not add themselves to the layer div \n - * automatically, for example. Create a new tile with the \n - * <OpenLayers.Tile> constructor, or a subclass. \n - * \n - * TBD 3.0 - remove reference to url in above paragraph\n - * \n - */\n -OpenLayers.Tile = OpenLayers.Class({\n - \n - /**\n - * APIProperty: events\n - * {<OpenLayers.Events>} An events object that handles all \n - * events on the tile.\n - *\n - * Register a listener for a particular event with the following syntax:\n - * (code)\n - * tile.events.register(type, obj, listener);\n - * (end)\n - *\n - * Supported event types:\n - * beforedraw - Triggered before the tile is drawn. Used to defer\n - * drawing to an animation queue. To defer drawing, listeners need\n - * to return false, which will abort drawing. The queue handler needs\n - * to call <draw>(true) to actually draw the tile.\n - * loadstart - Triggered when tile loading starts.\n - * loadend - Triggered when tile loading ends.\n - * loaderror - Triggered before the loadend event (i.e. when the tile is\n - * still hidden) if the tile could not be loaded.\n - * reload - Triggered when an already loading tile is reloaded.\n - * unload - Triggered before a tile is unloaded.\n - */\n - events: null,\n -\n - /**\n - * APIProperty: eventListeners\n - * {Object} If set as an option at construction, the eventListeners\n - * object will be registered with <OpenLayers.Events.on>. Object\n - * structure must be a listeners object as shown in the example for\n - * the events.on method.\n - *\n - * This options can be set in the ``tileOptions`` option from\n - * <OpenLayers.Layer.Grid>. For example, to be notified of the\n - * ``loadend`` event of each tiles:\n - * (code)\n - * new OpenLayers.Layer.OSM(\'osm\', \'http://tile.openstreetmap.org/${z}/${x}/${y}.png\', {\n - * tileOptions: {\n - * eventListeners: {\n - * \'loadend\': function(evt) {\n - * // do something on loadend\n - * }\n - * }\n - * }\n - * });\n - * (end)\n - */\n - eventListeners: null,\n -\n - /**\n - * Property: id \n - * {String} null\n - */\n - id: null,\n - \n - /** \n - * Property: layer \n - * {<OpenLayers.Layer>} layer the tile is attached to \n - */\n - layer: null,\n - \n - /**\n - * Property: url\n - * {String} url of the request.\n - *\n - * TBD 3.0 \n - * Deprecated. The base tile class does not need an url. This should be \n - * handled in subclasses. Does not belong here.\n - */\n - url: null,\n -\n - /** \n - * APIProperty: bounds \n - * {<OpenLayers.Bounds>} null\n - */\n - bounds: null,\n - \n - /** \n - * Property: size \n - * {<OpenLayers.Size>} null\n - */\n - size: null,\n - \n - /** \n - * Property: position \n - * {<OpenLayers.Pixel>} Top Left pixel of the tile\n - */ \n - position: null,\n - \n - /**\n - * Property: isLoading\n - * {Boolean} Is the tile loading?\n - */\n - isLoading: false,\n - \n - /** TBD 3.0 -- remove \'url\' from the list of parameters to the constructor.\n - * there is no need for the base tile class to have a url.\n - */\n -\n - /** \n - * Constructor: OpenLayers.Tile\n - * Constructor for a new <OpenLayers.Tile> instance.\n - * \n - * Parameters:\n - * layer - {<OpenLayers.Layer>} layer that the tile will go in.\n - * position - {<OpenLayers.Pixel>}\n - * bounds - {<OpenLayers.Bounds>}\n - * url - {<String>}\n - * size - {<OpenLayers.Size>}\n - * options - {Object}\n - */ \n - initialize: function(layer, position, bounds, url, size, options) {\n - this.layer = layer;\n - this.position = position.clone();\n - this.setBounds(bounds);\n - this.url = url;\n - if (size) {\n - this.size = size.clone();\n - }\n -\n - //give the tile a unique id based on its BBOX.\n - this.id = OpenLayers.Util.createUniqueID("Tile_");\n -\n - OpenLayers.Util.extend(this, options);\n -\n - this.events = new OpenLayers.Events(this);\n - if (this.eventListeners instanceof Object) {\n - this.events.on(this.eventListeners);\n - }\n - },\n -\n - /**\n - * Method: unload\n - * Call immediately before destroying if you are listening to tile\n - * events, so that counters are properly handled if tile is still\n - * loading at destroy-time. Will only fire an event if the tile is\n - * still loading.\n - */\n - unload: function() {\n - if (this.isLoading) { \n - this.isLoading = false; \n - this.events.triggerEvent("unload"); \n - }\n - },\n - \n - /** \n - * APIMethod: destroy\n - * Nullify references to prevent circular references and memory leaks.\n - */\n - destroy:function() {\n - this.layer = null;\n - this.bounds = null;\n - this.size = null;\n - this.position = null;\n - \n - if (this.eventListeners) {\n - this.events.un(this.eventListeners);\n - }\n - this.events.destroy();\n - this.eventListeners = null;\n - this.events = null;\n - },\n - \n - /**\n - * Method: draw\n - * Clear whatever is currently in the tile, then return whether or not \n - * it should actually be re-drawn. This is an example implementation\n - * that can be overridden by subclasses. The minimum thing to do here\n - * is to call <clear> and return the result from <shouldDraw>.\n - *\n - * Parameters:\n - * deferred - {Boolean} When drawing was aborted by returning false from a\n - * *beforedraw* listener, the queue manager needs to pass true, so the\n - * tile will not be cleared and immediately be drawn. Otherwise, the\n - * tile will be cleared and a *beforedraw* event will be fired.\n - * \n - * Returns:\n - * {Boolean} Whether or not the tile should actually be drawn.\n - */\n - draw: function(deferred) {\n - if (!deferred) {\n - //clear tile\'s contents and mark as not drawn\n - this.clear();\n - }\n - var draw = this.shouldDraw();\n - if (draw && !deferred) {\n - draw = this.events.triggerEvent("beforedraw") !== false;\n - }\n - return draw;\n - },\n - \n - /**\n - * Method: shouldDraw\n - * Return whether or not the tile should actually be (re-)drawn. The only\n - * case where we *wouldn\'t* want to draw the tile is if the tile is outside\n - * its layer\'s maxExtent\n - * \n - * Returns:\n - * {Boolean} Whether or not the tile should actually be drawn.\n - */\n - shouldDraw: function() { \n - var withinMaxExtent = false,\n - maxExtent = this.layer.maxExtent;\n - if (maxExtent) {\n - var map = this.layer.map;\n - var worldBounds = map.baseLayer.wrapDateLine && map.getMaxExtent();\n - if (this.bounds.intersectsBounds(maxExtent, {inclusive: false, worldBounds: worldBounds})) {\n - withinMaxExtent = true;\n - }\n - }\n - \n - return withinMaxExtent || this.layer.displayOutsideMaxExtent;\n - },\n - \n - /**\n - * Method: setBounds\n - * Sets the bounds on this instance\n - *\n - * Parameters:\n - * bounds {<OpenLayers.Bounds>}\n - */\n - setBounds: function(bounds) {\n - bounds = bounds.clone();\n - if (this.layer.map.baseLayer.wrapDateLine) {\n - var worldExtent = this.layer.map.getMaxExtent(),\n - tolerance = this.layer.map.getResolution();\n - bounds = bounds.wrapDateLine(worldExtent, {\n - leftTolerance: tolerance,\n - rightTolerance: tolerance\n - });\n - }\n - this.bounds = bounds;\n - },\n - \n - /** \n - * Method: moveTo\n - * Reposition the tile.\n - *\n - * Parameters:\n - * bounds - {<OpenLayers.Bounds>}\n - * position - {<OpenLayers.Pixel>}\n - * redraw - {Boolean} Call draw method on tile after moving.\n - * Default is true\n - */\n - moveTo: function (bounds, position, redraw) {\n - if (redraw == null) {\n - redraw = true;\n - }\n -\n - this.setBounds(bounds);\n - this.position = position.clone();\n - if (redraw) {\n - this.draw();\n - }\n - },\n -\n - /** \n - * Method: clear\n - * Clear the tile of any bounds/position-related data so that it can \n - * be reused in a new location.\n - */\n - clear: function(draw) {\n - // to be extended by subclasses\n - },\n - \n - CLASS_NAME: "OpenLayers.Tile"\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>8951</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile.xml deleted file mode 100644 index 342b2af5d69d0a4b172314cd44079b42dff8d091..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Tile</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Tile</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile/Image.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile/Image.js.xml deleted file mode 100644 index 72adb6caee073df02941dcd2af8e4ee9b0fb95f3..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile/Image.js.xml +++ /dev/null @@ -1,525 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.87</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Image.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Tile.js\n - * @requires OpenLayers/Animation.js\n - */\n -\n -/**\n - * Class: OpenLayers.Tile.Image\n - * Instances of OpenLayers.Tile.Image are used to manage the image tiles\n - * used by various layers. Create a new image tile with the\n - * <OpenLayers.Tile.Image> constructor.\n - *\n - * Inherits from:\n - * - <OpenLayers.Tile>\n - */\n -OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {\n -\n - /** \n - * APIProperty: url\n - * {String} The URL of the image being requested. No default. Filled in by\n - * layer.getURL() function. May be modified by loadstart listeners.\n - */\n - url: null,\n - \n - /** \n - * Property: imgDiv\n - * {HTMLImageElement} The image for this tile.\n - */\n - imgDiv: null,\n - \n - /**\n - * Property: frame\n - * {DOMElement} The image element is appended to the frame. Any gutter on\n - * the image will be hidden behind the frame. If no gutter is set,\n - * this will be null.\n - */ \n - frame: null, \n -\n - /** \n - * Property: imageReloadAttempts\n - * {Integer} Attempts to load the image.\n - */\n - imageReloadAttempts: null,\n - \n - /**\n - * Property: layerAlphaHack\n - * {Boolean} True if the png alpha hack needs to be applied on the layer\'s div.\n - */\n - layerAlphaHack: null,\n - \n - /**\n - * Property: asyncRequestId\n - * {Integer} ID of an request to see if request is still valid. This is a\n - * number which increments by 1 for each asynchronous request.\n - */\n - asyncRequestId: null,\n - \n - /**\n - * Property: blankImageUrl\n - * {String} Using a data scheme url is not supported by all browsers, but\n - * we don\'t care because we either set it as css backgroundImage, or the\n - * image\'s display style is set to "none" when we use it.\n - */\n - blankImageUrl: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAQAIBRAA7",\n -\n - /**\n - * APIProperty: maxGetUrlLength\n - * {Number} If set, requests that would result in GET urls with more\n - * characters than the number provided will be made using form-encoded\n - * HTTP POST. It is good practice to avoid urls that are longer than 2048\n - * characters.\n - *\n - * Caution:\n - * Older versions of Gecko based browsers (e.g. Firefox < 3.5) and most\n - * Opera versions do not fully support this option. On all browsers,\n - * transition effects are not supported if POST requests are used.\n - */\n - maxGetUrlLength: null,\n -\n - /**\n - * Property: canvasContext\n - * {CanvasRenderingContext2D} A canvas context associated with\n - * the tile image.\n - */\n - canvasContext: null,\n - \n - /**\n - * APIProperty: crossOriginKeyword\n - * The value of the crossorigin keyword to use when loading images. This is\n - * only relevant when using <getCanvasContext> for tiles from remote\n - * origins and should be set to either \'anonymous\' or \'use-credentials\'\n - * for servers that send Access-Control-Allow-Origin headers with their\n - * tiles.\n - */\n - crossOriginKeyword: null,\n -\n - /** TBD 3.0 - reorder the parameters to the init function to remove \n - * URL. the getUrl() function on the layer gets called on \n - * each draw(), so no need to specify it here.\n - */\n -\n - /** \n - * Constructor: OpenLayers.Tile.Image\n - * Constructor for a new <OpenLayers.Tile.Image> instance.\n - * \n - * Parameters:\n - * layer - {<OpenLayers.Layer>} layer that the tile will go in.\n - * position - {<OpenLayers.Pixel>}\n - * bounds - {<OpenLayers.Bounds>}\n - * url - {<String>} Deprecated. Remove me in 3.0.\n - * size - {<OpenLayers.Size>}\n - * options - {Object}\n - */ \n - initialize: function(layer, position, bounds, url, size, options) {\n - OpenLayers.Tile.prototype.initialize.apply(this, arguments);\n -\n - this.url = url; //deprecated remove me\n - \n - this.layerAlphaHack = this.layer.alpha && OpenLayers.Util.alphaHack();\n -\n - if (this.maxGetUrlLength != null || this.layer.gutter || this.layerAlphaHack) {\n - // only create frame if it\'s needed\n - this.frame = document.createElement("div");\n - this.frame.style.position = "absolute";\n - this.frame.style.overflow = "hidden";\n - }\n - if (this.maxGetUrlLength != null) {\n - OpenLayers.Util.extend(this, OpenLayers.Tile.Image.IFrame);\n - }\n - },\n - \n - /** \n - * APIMethod: destroy\n - * nullify references to prevent circular references and memory leaks\n - */\n - destroy: function() {\n - if (this.imgDiv) {\n - this.clear();\n - this.imgDiv = null;\n - this.frame = null;\n - }\n - // don\'t handle async requests any more\n - this.asyncRequestId = null;\n - OpenLayers.Tile.prototype.destroy.apply(this, arguments);\n - },\n - \n - /**\n - * Method: draw\n - * Check that a tile should be drawn, and draw it.\n - * \n - * Returns:\n - * {Boolean} Was a tile drawn?\n - */\n - draw: function() {\n - var drawn = OpenLayers.Tile.prototype.draw.apply(this, arguments);\n - if (drawn) {\n - // The layer\'s reproject option is deprecated.\n - if (this.layer != this.layer.map.baseLayer && this.layer.reproject) {\n - // getBoundsFromBaseLayer is defined in deprecated.js.\n - this.bounds = this.getBoundsFromBaseLayer(this.position);\n - }\n - if (this.isLoading) {\n - //if we\'re already loading, send \'reload\' instead of \'loadstart\'.\n - this._loadEvent = "reload"; \n - } else {\n - this.isLoading = true;\n - this._loadEvent = "loadstart";\n - }\n - this.positionTile();\n - this.renderTile();\n - } else {\n - this.unload();\n - }\n - return drawn;\n - },\n - \n - /**\n - * Method: renderTile\n - * Internal function to actually initialize the image tile,\n - * position it correctly, and set its url.\n - */\n - renderTile: function() {\n - this.layer.div.appendChild(this.getTile());\n - if (this.layer.async) {\n - // Asynchronous image requests call the asynchronous getURL method\n - // on the layer to fetch an image that covers \'this.bounds\'.\n - var id = this.asyncRequestId = (this.asyncRequestId || 0) + 1;\n - this.layer.getURLasync(this.bounds, function(url) {\n - if (id == this.asyncRequestId) {\n - this.url = url;\n - this.initImage();\n - }\n - }, this);\n - } else {\n - // synchronous image requests get the url immediately.\n - this.url = this.layer.getURL(this.bounds);\n - this.initImage();\n - }\n - },\n -\n - /**\n - * Method: positionTile\n - * Using the properties currenty set on the layer, position the tile correctly.\n - * This method is used both by the async and non-async versions of the Tile.Image\n - * code.\n - */\n - positionTile: function() {\n - var style = this.getTile().style,\n - size = this.frame ? this.size :\n - this.layer.getImageSize(this.bounds);\n - style.left = this.position.x + "%";\n - style.top = this.position.y + "%";\n - style.width = size.w + "%";\n - style.height = size.h + "%";\n - },\n -\n - /** \n - * Method: clear\n - * Remove the tile from the DOM, clear it of any image related data so that\n - * it can be reused in a new location.\n - */\n - clear: function() {\n - OpenLayers.Tile.prototype.clear.apply(this, arguments);\n - var img = this.imgDiv;\n - if (img) {\n - OpenLayers.Event.stopObservingElement(img);\n - var tile = this.getTile();\n - if (tile.parentNode === this.layer.div) {\n - this.layer.div.removeChild(tile);\n - }\n - this.setImgSrc();\n - if (this.layerAlphaHack === true) {\n - img.style.filter = "";\n - }\n - OpenLayers.Element.removeClass(img, "olImageLoadError");\n - }\n - this.canvasContext = null;\n - },\n - \n - /**\n - * Method: getImage\n - * Returns or creates and returns the tile image.\n - */\n - getImage: function() {\n - if (!this.imgDiv) {\n - this.imgDiv = document.createElement("img");\n -\n - this.imgDiv.className = "olTileImage";\n - // avoid image gallery menu in IE6\n - this.imgDiv.galleryImg = "no";\n -\n - var style = this.imgDiv.style;\n - if (this.frame) {\n - var left = 0, top = 0;\n - if (this.layer.gutter) {\n - left = this.layer.gutter / this.layer.tileSize.w * 100;\n - top = this.layer.gutter / this.layer.tileSize.h * 100;\n - }\n - style.left = -left + "%";\n - style.top = -top + "%";\n - style.width = (2 * left + 100) + "%";\n - style.height = (2 * top + 100) + "%";\n - }\n - style.visibility = "hidden";\n - style.opacity = 0;\n - if (this.layer.opacity < 1) {\n - style.filter = \'alpha(opacity=\' +\n - (this.layer.opacity * 100) +\n - \')\';\n - }\n - style.position = "absolute";\n - if (this.layerAlphaHack) {\n - // move the image out of sight\n - style.paddingTop = style.height;\n - style.height = "0";\n - style.width = "100%";\n - }\n - if (this.frame) {\n - this.frame.appendChild(this.imgDiv);\n - }\n - }\n -\n - return this.imgDiv;\n - },\n -\n - /**\n - * Method: initImage\n - * Creates the content for the frame on the tile.\n - */\n - initImage: function() {\n - this.events.triggerEvent(this._loadEvent);\n - var img = this.getImage();\n - if (this.url && img.getAttribute("src") == this.url) {\n - this.onImageLoad();\n - } else {\n - // We need to start with a blank image, to make sure that no\n - // loading image placeholder and no old image is displayed when we\n - // set the display style to "" in onImageLoad, which is called\n - // after the image is loaded, but before it is rendered. So we set\n - // a blank image with a data scheme URI, and register for the load\n - // event (for browsers that support data scheme) and the error\n - // event (for browsers that don\'t). In the event handler, we set\n - // the final src.\n - var load = OpenLayers.Function.bind(function() {\n - OpenLayers.Event.stopObservingElement(img);\n - OpenLayers.Event.observe(img, "load",\n - OpenLayers.Function.bind(this.onImageLoad, this)\n - );\n - OpenLayers.Event.observe(img, "error",\n - OpenLayers.Function.bind(this.onImageError, this)\n - );\n - this.imageReloadAttempts = 0;\n - this.setImgSrc(this.url);\n - }, this);\n - if (img.getAttribute("src") == this.blankImageUrl) {\n - load();\n - } else {\n - OpenLayers.Event.observe(img, "load", load);\n - OpenLayers.Event.observe(img, "error", load);\n - if (this.crossOriginKeyword) {\n - img.removeAttribute("crossorigin");\n - }\n - img.src = this.blankImageUrl;\n - }\n - }\n - },\n - \n - /**\n - * Method: setImgSrc\n - * Sets the source for the tile image\n - *\n - * Parameters:\n - * url - {String} or undefined to hide the image\n - */\n - setImgSrc: function(url) {\n - var img = this.imgDiv;\n - img.style.visibility = \'hidden\';\n - img.style.opacity = 0;\n - if (url) {\n - // don\'t set crossOrigin if the url is a data URL\n - if (this.crossOriginKeyword) {\n - if (url.substr(0, 5) !== \'data:\') {\n - img.setAttribute("crossorigin", this.crossOriginKeyword);\n - } else {\n - img.removeAttribute("crossorigin");\n - }\n - }\n - img.src = url;\n - }\n - },\n - \n - /**\n - * Method: getTile\n - * Get the tile\'s markup.\n - *\n - * Returns:\n - * {DOMElement} The tile\'s markup\n - */\n - getTile: function() {\n - return this.frame ? this.frame : this.getImage();\n - },\n -\n - /**\n - * Method: createBackBuffer\n - * Create a backbuffer for this tile. A backbuffer isn\'t exactly a clone\n - * of the tile\'s markup, because we want to avoid the reloading of the\n - * image. So we clone the frame, and steal the image from the tile.\n - *\n - * Returns:\n - * {DOMElement} The markup, or undefined if the tile has no image\n - * or if it\'s currently loading.\n - */\n - createBackBuffer: function() {\n - if (!this.imgDiv || this.isLoading) {\n - return;\n - }\n - var backBuffer;\n - if (this.frame) {\n - backBuffer = this.frame.cloneNode(false);\n - backBuffer.appendChild(this.imgDiv);\n - } else {\n - backBuffer = this.imgDiv;\n - }\n - this.imgDiv = null;\n - return backBuffer;\n - },\n -\n - /**\n - * Method: onImageLoad\n - * Handler for the image onload event\n - */\n - onImageLoad: function() {\n - var img = this.imgDiv;\n - OpenLayers.Event.stopObservingElement(img);\n -\n - img.style.visibility = \'inherit\';\n - img.style.opacity = this.layer.opacity;\n -\n - this.isLoading = false;\n - this.canvasContext = null;\n - this.events.triggerEvent("loadend");\n -\n - // IE<7 needs a reflow when the tiles are loaded because of the\n - // percentage based positioning. Otherwise nothing is shown\n - // until the user interacts with the map in some way.\n - if (parseFloat(navigator.appVersion.split("MSIE")[1]) < 7 &&\n - this.layer && this.layer.div) {\n - var span = document.createElement("span");\n - span.style.display = "none";\n - var layerDiv = this.layer.div;\n - layerDiv.appendChild(span);\n - window.setTimeout(function() {\n - span.parentNode === layerDiv && span.parentNode.removeChild(span);\n - }, 0);\n - }\n -\n - if (this.layerAlphaHack === true) {\n - img.style.filter =\n - "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'" +\n - img.src + "\', sizingMethod=\'scale\')";\n - }\n - },\n - \n - /**\n - * Method: onImageError\n - * Handler for the image onerror event\n - */\n - onImageError: function() {\n - var img = this.imgDiv;\n - if (img.src != null) {\n - this.imageReloadAttempts++;\n - if (this.imageReloadAttempts <= OpenLayers.IMAGE_RELOAD_ATTEMPTS) {\n - this.setImgSrc(this.layer.getURL(this.bounds));\n - } else {\n - OpenLayers.Element.addClass(img, "olImageLoadError");\n - this.events.triggerEvent("loaderror");\n - this.onImageLoad();\n - }\n - }\n - },\n -\n - /**\n - * APIMethod: getCanvasContext\n - * Returns a canvas context associated with the tile image (with\n - * the image drawn on it).\n - * Returns undefined if the browser does not support canvas, if\n - * the tile has no image or if it\'s currently loading.\n - *\n - * The function returns a canvas context instance but the\n - * underlying canvas is still available in the \'canvas\' property:\n - * (code)\n - * var context = tile.getCanvasContext();\n - * if (context) {\n - * var data = context.canvas.toDataURL(\'image/jpeg\');\n - * }\n - * (end)\n - *\n - * Returns:\n - * {Boolean}\n - */\n - getCanvasContext: function() {\n - if (OpenLayers.CANVAS_SUPPORTED && this.imgDiv && !this.isLoading) {\n - if (!this.canvasContext) {\n - var canvas = document.createElement("canvas");\n - canvas.width = this.size.w;\n - canvas.height = this.size.h;\n - this.canvasContext = canvas.getContext("2d");\n - this.canvasContext.drawImage(this.imgDiv, 0, 0);\n - }\n - return this.canvasContext;\n - }\n - },\n -\n - CLASS_NAME: "OpenLayers.Tile.Image"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>16449</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile/Image.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile/Image.xml deleted file mode 100644 index 8d44dc09d75acf5e034c96ac3a6bdc87426bad71..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile/Image.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Image</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>/srv/slapgrid/slappart165/tmp/openlayers/lib/OpenLayers/Tile/Image</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile/Image/IFrame.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile/Image/IFrame.js.xml deleted file mode 100644 index 70e3a49b79eeb0436f111f50e6ed69faf6ad05c4..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile/Image/IFrame.js.xml +++ /dev/null @@ -1,273 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.87</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>IFrame.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Tile/Image.js\n - */\n -\n -/**\n - * Constant: OpenLayers.Tile.Image.IFrame\n - * Mixin for tiles that use form-encoded POST requests to get images from\n - * remote services. Images will be loaded using HTTP-POST into an IFrame.\n - *\n - * This mixin will be applied to <OpenLayers.Tile.Image> instances\n - * configured with <OpenLayers.Tile.Image.maxGetUrlLength> set.\n - */\n -OpenLayers.Tile.Image.IFrame = {\n -\n - /**\n - * Property: useIFrame\n - * {Boolean} true if we are currently using an IFrame to render POST\n - * responses, false if we are using an img element to render GET responses.\n - */ \n - useIFrame: null,\n -\n - /**\n - * Method: draw\n - * Set useIFrame in the instance, and operate the image/iframe switch.\n - * Then call Tile.Image.draw.\n - *\n - * Returns:\n - * {Boolean}\n - */\n - draw: function() {\n - var draw = OpenLayers.Tile.Image.prototype.shouldDraw.call(this);\n - if(draw) {\n -\n - // this.url isn\'t set to the currect value yet, so we call getURL\n - // on the layer and store the result in a local variable\n - var url = this.layer.getURL(this.bounds);\n -\n - var usedIFrame = this.useIFrame;\n - this.useIFrame = this.maxGetUrlLength !== null &&\n - !this.layer.async &&\n - url.length > this.maxGetUrlLength;\n -\n - var fromIFrame = usedIFrame && !this.useIFrame;\n - var toIFrame = !usedIFrame && this.useIFrame;\n -\n - if(fromIFrame || toIFrame) {\n -\n - // Switching between GET (image) and POST (iframe).\n -\n - // We remove the imgDiv (really either an image or an iframe)\n - // from the frame and set it to null to make sure initImage\n - // will call getImage.\n -\n - if(this.imgDiv && this.imgDiv.parentNode === this.frame) {\n - this.frame.removeChild(this.imgDiv);\n - }\n - this.imgDiv = null;\n -\n - // And if we had an iframe we also remove the event pane.\n -\n - if(fromIFrame) {\n - this.blankImageUrl = this._blankImageUrl;\n - this.frame.removeChild(this.frame.firstChild);\n - } else {\n - this._blankImageUrl = this.blankImageUrl;\n - this.blankImageUrl = "about:blank";\n - }\n - }\n - }\n - return OpenLayers.Tile.Image.prototype.draw.apply(this, arguments);\n - },\n -\n - /**\n - * Method: getImage\n - * Creates the content for the frame on the tile.\n - */\n - getImage: function() {\n - if (this.useIFrame === true) {\n - if (!this.frame.childNodes.length) {\n - var eventPane = document.createElement("div"),\n - style = eventPane.style;\n - style.position = "absolute";\n - style.width = "100%";\n - style.height = "100%";\n - style.zIndex = 1;\n - style.backgroundImage = "url(" + this._blankImageUrl + ")";\n - this.frame.appendChild(eventPane);\n - }\n -\n - var id = this.id + \'_iFrame\', iframe;\n - if (parseFloat(navigator.appVersion.split("MSIE")[1]) < 9) {\n - // Older IE versions do not set the name attribute of an iFrame \n - // properly via DOM manipulation, so we need to do it on our own with\n - // this hack.\n - iframe = document.createElement(\'<iframe name="\'+id+\'">\');\n -\n - // IFrames in older IE versions are not transparent, if you set\n - // the backgroundColor transparent. This is a workaround to get \n - // transparent iframes.\n - iframe.style.backgroundColor = \'#FFFFFF\';\n - iframe.style.filter = \'chroma(color=#FFFFFF)\';\n - }\n - else {\n - iframe = document.createElement(\'iframe\');\n - iframe.style.backgroundColor = \'transparent\';\n -\n - // iframe.name needs to be an unique id, otherwise it \n - // could happen that other iframes are overwritten.\n - iframe.name = id;\n - }\n -\n - // some special properties to avoid scaling the images and scrollbars \n - // in the iframe\n - iframe.scrolling = \'no\';\n - iframe.marginWidth = \'0px\';\n - iframe.marginHeight = \'0px\';\n - iframe.frameBorder = \'0\';\n -\n - iframe.style.position = "absolute";\n - iframe.style.width = "100%";\n - iframe.style.height = "100%";\n -\n - if (this.layer.opacity < 1) {\n - OpenLayers.Util.modifyDOMElement(iframe, null, null, null,\n - null, null, null, this.layer.opacity);\n - }\n - this.frame.appendChild(iframe);\n - this.imgDiv = iframe;\n - return iframe;\n - } else {\n - return OpenLayers.Tile.Image.prototype.getImage.apply(this, arguments);\n - }\n - },\n - \n - /**\n - * Method: createRequestForm\n - * Create the html <form> element with width, height, bbox and all \n - * parameters specified in the layer params.\n - *\n - * Returns: \n - * {DOMElement} The form element which sends the HTTP-POST request to the\n - * WMS. \n - */\n - createRequestForm: function() {\n - // creation of the form element\n - var form = document.createElement(\'form\');\n - form.method = \'POST\';\n - var cacheId = this.layer.params["_OLSALT"];\n - cacheId = (cacheId ? cacheId + "_" : "") + this.bounds.toBBOX();\n - form.action = OpenLayers.Util.urlAppend(this.layer.url, cacheId);\n - form.target = this.id + \'_iFrame\';\n -\n - // adding all parameters in layer params as hidden fields to the html\n - // form element\n - var imageSize = this.layer.getImageSize(),\n - params = OpenLayers.Util.getParameters(this.url),\n - field;\n - \n - for(var par in params) {\n - field = document.createElement(\'input\');\n - field.type = \'hidden\';\n - field.name = par;\n - field.value = params[par];\n - form.appendChild(field);\n - } \n -\n - return form;\n - },\n -\n - /**\n - * Method: setImgSrc\n - * Sets the source for the tile image\n - *\n - * Parameters:\n - * url - {String}\n - */\n - setImgSrc: function(url) {\n - if (this.useIFrame === true) {\n - if (url) {\n - var form = this.createRequestForm();\n - this.frame.appendChild(form);\n - form.submit();\n - this.frame.removeChild(form);\n - } else if (this.imgDiv.parentNode === this.frame) {\n - // we don\'t reuse iframes to avoid caching issues\n - this.frame.removeChild(this.imgDiv);\n - this.imgDiv = null;\n - }\n - } else {\n - OpenLayers.Tile.Image.prototype.setImgSrc.apply(this, arguments);\n - }\n - },\n - \n - /**\n - * Method: onImageLoad\n - * Handler for the image onload event\n - */\n - onImageLoad: function() {\n - //TODO de-uglify opacity handling\n - OpenLayers.Tile.Image.prototype.onImageLoad.apply(this, arguments);\n - if (this.useIFrame === true) {\n - this.imgDiv.style.opacity = 1;\n - this.frame.style.opacity = this.layer.opacity;\n - }\n - },\n -\n - /**\n - * Method: createBackBuffer\n - * Override createBackBuffer to do nothing when we use an iframe. Moving an\n - * iframe from one element to another makes it necessary to reload the iframe\n - * because its content is lost. So we just give up.\n - *\n - * Returns:\n - * {DOMElement}\n - */\n - createBackBuffer: function() {\n - var backBuffer;\n - if(this.useIFrame === false) {\n - backBuffer = OpenLayers.Tile.Image.prototype.createBackBuffer.call(this);\n - }\n - return backBuffer;\n - }\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>8150</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile/UTFGrid.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile/UTFGrid.js.xml deleted file mode 100644 index 741e3bf4c38ecbce42628887fa9e6347bc4fabee..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tile/UTFGrid.js.xml +++ /dev/null @@ -1,295 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.87</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>UTFGrid.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -\n -/**\n - * @requires OpenLayers/Tile.js\n - * @requires OpenLayers/Format/JSON.js\n - */\n -\n -/**\n - * Class: OpenLayers.Tile.UTFGrid\n - * Instances of OpenLayers.Tile.UTFGrid are used to manage \n - * UTFGrids. This is an unusual tile type in that it doesn\'t have a\n - * rendered image; only a \'hit grid\' that can be used to \n - * look up feature attributes.\n - *\n - * See the <OpenLayers.Tile.UTFGrid> constructor for details on constructing a\n - * new instance.\n - *\n - * Inherits from:\n - * - <OpenLayers.Tile>\n - */\n -OpenLayers.Tile.UTFGrid = OpenLayers.Class(OpenLayers.Tile, {\n -\n - /** \n - * Property: url\n - * {String}\n - * The URL of the UTFGrid file being requested. Provided by the <getURL>\n - * method. \n - */\n - url: null,\n - \n - /**\n - * Property: utfgridResolution\n - * {Number}\n - * Ratio of the pixel width to the width of a UTFGrid data point. If an \n - * entry in the grid represents a 4x4 block of pixels, the \n - * utfgridResolution would be 4. Default is 2.\n - */\n - utfgridResolution: 2,\n - \n - /** \n - * Property: json\n - * {Object}\n - * Stores the parsed JSON tile data structure. \n - */\n - json: null,\n - \n - /** \n - * Property: format\n - * {OpenLayers.Format.JSON}\n - * Parser instance used to parse JSON for cross browser support. The native\n - * JSON.parse method will be used where available (all except IE<8).\n - */\n - format: null,\n -\n - /** \n - * Constructor: OpenLayers.Tile.UTFGrid\n - * Constructor for a new <OpenLayers.Tile.UTFGrid> instance.\n - * \n - * Parameters:\n - * layer - {<OpenLayers.Layer>} layer that the tile will go in.\n - * position - {<OpenLayers.Pixel>}\n - * bounds - {<OpenLayers.Bounds>}\n - * url - {<String>} Deprecated. Remove me in 3.0.\n - * size - {<OpenLayers.Size>}\n - * options - {Object}\n - */\n -\n - /** \n - * APIMethod: destroy\n - * Clean up.\n - */\n - destroy: function() {\n - this.clear();\n - OpenLayers.Tile.prototype.destroy.apply(this, arguments);\n - },\n - \n - /**\n - * Method: draw\n - * Check that a tile should be drawn, and draw it.\n - * In the case of UTFGrids, "drawing" it means fetching and\n - * parsing the json. \n - * \n - * Returns:\n - * {Boolean} Was a tile drawn?\n - */\n - draw: function() {\n - var drawn = OpenLayers.Tile.prototype.draw.apply(this, arguments);\n - if (drawn) {\n - if (this.isLoading) {\n - this.abortLoading();\n - //if we\'re already loading, send \'reload\' instead of \'loadstart\'.\n - this.events.triggerEvent("reload"); \n - } else {\n - this.isLoading = true;\n - this.events.triggerEvent("loadstart");\n - }\n - this.url = this.layer.getURL(this.bounds);\n -\n - if (this.layer.useJSONP) {\n - // Use JSONP method to avoid xbrowser policy\n - var ols = new OpenLayers.Protocol.Script({\n - url: this.url,\n - callback: function(response) {\n - this.isLoading = false;\n - this.events.triggerEvent("loadend");\n - this.json = response.data;\n - },\n - scope: this\n - });\n - ols.read();\n - this.request = ols;\n - } else {\n - // Use standard XHR\n - this.request = OpenLayers.Request.GET({\n - url: this.url,\n - callback: function(response) {\n - this.isLoading = false;\n - this.events.triggerEvent("loadend");\n - if (response.status === 200) {\n - this.parseData(response.responseText);\n - }\n - },\n - scope: this\n - });\n - }\n - } else {\n - this.unload();\n - }\n - return drawn;\n - },\n - \n - /**\n - * Method: abortLoading\n - * Cancel a pending request.\n - */\n - abortLoading: function() {\n - if (this.request) {\n - this.request.abort();\n - delete this.request;\n - }\n - this.isLoading = false;\n - },\n - \n - /**\n - * Method: getFeatureInfo\n - * Get feature information associated with a pixel offset. If the pixel\n - * offset corresponds to a feature, the returned object will have id\n - * and data properties. Otherwise, null will be returned.\n - * \n - *\n - * Parameters:\n - * i - {Number} X-axis pixel offset (from top left of tile)\n - * j - {Number} Y-axis pixel offset (from top left of tile)\n - *\n - * Returns:\n - * {Object} Object with feature id and data properties corresponding to the \n - * given pixel offset.\n - */\n - getFeatureInfo: function(i, j) {\n - var info = null;\n - if (this.json) {\n - var id = this.getFeatureId(i, j);\n - if (id !== null) {\n - info = {id: id, data: this.json.data[id]};\n - }\n - }\n - return info;\n - },\n - \n - /**\n - * Method: getFeatureId\n - * Get the identifier for the feature associated with a pixel offset.\n - *\n - * Parameters:\n - * i - {Number} X-axis pixel offset (from top left of tile)\n - * j - {Number} Y-axis pixel offset (from top left of tile)\n - *\n - * Returns:\n - * {Object} The feature identifier corresponding to the given pixel offset.\n - * Returns null if pixel doesn\'t correspond to a feature.\n - */\n - getFeatureId: function(i, j) {\n - var id = null;\n - if (this.json) {\n - var resolution = this.utfgridResolution;\n - var row = Math.floor(j / resolution);\n - var col = Math.floor(i / resolution);\n - var charCode = this.json.grid[row].charCodeAt(col);\n - var index = this.indexFromCharCode(charCode);\n - var keys = this.json.keys;\n - if (!isNaN(index) && (index in keys)) {\n - id = keys[index];\n - }\n - }\n - return id;\n - },\n - \n - /**\n - * Method: indexFromCharCode\n - * Given a character code for one of the UTFGrid "grid" characters, \n - * resolve the integer index for the feature id in the UTFGrid "keys"\n - * array.\n - *\n - * Parameters:\n - * charCode - {Integer}\n - *\n - * Returns:\n - * {Integer} Index for the feature id from the keys array.\n - */\n - indexFromCharCode: function(charCode) {\n - if (charCode >= 93) {\n - charCode--;\n - }\n - if (charCode >= 35) {\n - charCode --;\n - }\n - return charCode - 32;\n - },\n - \n - /**\n - * Method: parseData\n - * Parse the JSON from a request\n - *\n - * Parameters:\n - * str - {String} UTFGrid as a JSON string. \n - * \n - * Returns:\n - * {Object} parsed javascript data\n - */\n - parseData: function(str) {\n - if (!this.format) {\n - this.format = new OpenLayers.Format.JSON();\n - }\n - this.json = this.format.read(str);\n - },\n - \n - /** \n - * Method: clear\n - * Delete data stored with this tile.\n - */\n - clear: function() {\n - this.json = null;\n - },\n - \n - CLASS_NAME: "OpenLayers.Tile.UTFGrid"\n -\n -});\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>7418</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tween.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tween.js.xml deleted file mode 100644 index c601069a096087c5dacbd241a9c63cfd66394282..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Tween.js.xml +++ /dev/null @@ -1,383 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Tween.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes/Class.js\n - * @requires OpenLayers/Animation.js\n - */\n -\n -/**\n - * Namespace: OpenLayers.Tween\n - */\n -OpenLayers.Tween = OpenLayers.Class({\n - \n - /**\n - * APIProperty: easing\n - * {<OpenLayers.Easing>(Function)} Easing equation used for the animation\n - * Defaultly set to OpenLayers.Easing.Expo.easeOut\n - */\n - easing: null,\n - \n - /**\n - * APIProperty: begin\n - * {Object} Values to start the animation with\n - */\n - begin: null,\n - \n - /**\n - * APIProperty: finish\n - * {Object} Values to finish the animation with\n - */\n - finish: null,\n - \n - /**\n - * APIProperty: duration\n - * {int} duration of the tween (number of steps)\n - */\n - duration: null,\n - \n - /**\n - * APIProperty: callbacks\n - * {Object} An object with start, eachStep and done properties whose values\n - * are functions to be call during the animation. They are passed the\n - * current computed value as argument.\n - */\n - callbacks: null,\n - \n - /**\n - * Property: time\n - * {int} Step counter\n - */\n - time: null,\n - \n - /**\n - * Property: animationId\n - * {int} Loop id returned by OpenLayers.Animation.start\n - */\n - animationId: null,\n - \n - /**\n - * Property: playing\n - * {Boolean} Tells if the easing is currently playing\n - */\n - playing: false,\n - \n - /** \n - * Constructor: OpenLayers.Tween\n - * Creates a Tween.\n - *\n - * Parameters:\n - * easing - {<OpenLayers.Easing>(Function)} easing function method to use\n - */ \n - initialize: function(easing) {\n - this.easing = (easing) ? easing : OpenLayers.Easing.Expo.easeOut;\n - },\n - \n - /**\n - * APIMethod: start\n - * Plays the Tween, and calls the callback method on each step\n - * \n - * Parameters:\n - * begin - {Object} values to start the animation with\n - * finish - {Object} values to finish the animation with\n - * duration - {int} duration of the tween (number of steps)\n - * options - {Object} hash of options (for example callbacks (start, eachStep, done))\n - */\n - start: function(begin, finish, duration, options) {\n - this.playing = true;\n - this.begin = begin;\n - this.finish = finish;\n - this.duration = duration;\n - this.callbacks = options.callbacks;\n - this.time = 0;\n - OpenLayers.Animation.stop(this.animationId);\n - this.animationId = null;\n - if (this.callbacks && this.callbacks.start) {\n - this.callbacks.start.call(this, this.begin);\n - }\n - this.animationId = OpenLayers.Animation.start(\n - OpenLayers.Function.bind(this.play, this)\n - );\n - },\n - \n - /**\n - * APIMethod: stop\n - * Stops the Tween, and calls the done callback\n - * Doesn\'t do anything if animation is already finished\n - */\n - stop: function() {\n - if (!this.playing) {\n - return;\n - }\n - \n - if (this.callbacks && this.callbacks.done) {\n - this.callbacks.done.call(this, this.finish);\n - }\n - OpenLayers.Animation.stop(this.animationId);\n - this.animationId = null;\n - this.playing = false;\n - },\n - \n - /**\n - * Method: play\n - * Calls the appropriate easing method\n - */\n - play: function() {\n - var value = {};\n - for (var i in this.begin) {\n - var b = this.begin[i];\n - var f = this.finish[i];\n - if (b == null || f == null || isNaN(b) || isNaN(f)) {\n - throw new TypeError(\'invalid value for Tween\');\n - }\n -\n - var c = f - b;\n - value[i] = this.easing.apply(this, [this.time, b, c, this.duration]);\n - }\n - this.time++;\n - \n - if (this.callbacks && this.callbacks.eachStep) {\n - this.callbacks.eachStep.call(this, value);\n - }\n - \n - if (this.time > this.duration) {\n - this.stop();\n - }\n - },\n - \n - /**\n - * Create empty functions for all easing methods.\n - */\n - CLASS_NAME: "OpenLayers.Tween"\n -});\n -\n -/**\n - * Namespace: OpenLayers.Easing\n - * \n - * Credits:\n - * Easing Equations by Robert Penner, <http://www.robertpenner.com/easing/>\n - */\n -OpenLayers.Easing = {\n - /**\n - * Create empty functions for all easing methods.\n - */\n - CLASS_NAME: "OpenLayers.Easing"\n -};\n -\n -/**\n - * Namespace: OpenLayers.Easing.Linear\n - */\n -OpenLayers.Easing.Linear = {\n - \n - /**\n - * Function: easeIn\n - * \n - * Parameters:\n - * t - {Float} time\n - * b - {Float} beginning position\n - * c - {Float} total change\n - * d - {Float} duration of the transition\n - *\n - * Returns:\n - * {Float}\n - */\n - easeIn: function(t, b, c, d) {\n - return c*t/d + b;\n - },\n - \n - /**\n - * Function: easeOut\n - * \n - * Parameters:\n - * t - {Float} time\n - * b - {Float} beginning position\n - * c - {Float} total change\n - * d - {Float} duration of the transition\n - *\n - * Returns:\n - * {Float}\n - */\n - easeOut: function(t, b, c, d) {\n - return c*t/d + b;\n - },\n - \n - /**\n - * Function: easeInOut\n - * \n - * Parameters:\n - * t - {Float} time\n - * b - {Float} beginning position\n - * c - {Float} total change\n - * d - {Float} duration of the transition\n - *\n - * Returns:\n - * {Float}\n - */\n - easeInOut: function(t, b, c, d) {\n - return c*t/d + b;\n - },\n -\n - CLASS_NAME: "OpenLayers.Easing.Linear"\n -};\n -\n -/**\n - * Namespace: OpenLayers.Easing.Expo\n - */\n -OpenLayers.Easing.Expo = {\n - \n - /**\n - * Function: easeIn\n - * \n - * Parameters:\n - * t - {Float} time\n - * b - {Float} beginning position\n - * c - {Float} total change\n - * d - {Float} duration of the transition\n - *\n - * Returns:\n - * {Float}\n - */\n - easeIn: function(t, b, c, d) {\n - return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;\n - },\n - \n - /**\n - * Function: easeOut\n - * \n - * Parameters:\n - * t - {Float} time\n - * b - {Float} beginning position\n - * c - {Float} total change\n - * d - {Float} duration of the transition\n - *\n - * Returns:\n - * {Float}\n - */\n - easeOut: function(t, b, c, d) {\n - return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;\n - },\n - \n - /**\n - * Function: easeInOut\n - * \n - * Parameters:\n - * t - {Float} time\n - * b - {Float} beginning position\n - * c - {Float} total change\n - * d - {Float} duration of the transition\n - *\n - * Returns:\n - * {Float}\n - */\n - easeInOut: function(t, b, c, d) {\n - if (t==0) return b;\n - if (t==d) return b+c;\n - if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;\n - return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;\n - },\n -\n - CLASS_NAME: "OpenLayers.Easing.Expo"\n -};\n -\n -/**\n - * Namespace: OpenLayers.Easing.Quad\n - */\n -OpenLayers.Easing.Quad = {\n - \n - /**\n - * Function: easeIn\n - * \n - * Parameters:\n - * t - {Float} time\n - * b - {Float} beginning position\n - * c - {Float} total change\n - * d - {Float} duration of the transition\n - *\n - * Returns:\n - * {Float}\n - */\n - easeIn: function(t, b, c, d) {\n - return c*(t/=d)*t + b;\n - },\n - \n - /**\n - * Function: easeOut\n - * \n - * Parameters:\n - * t - {Float} time\n - * b - {Float} beginning position\n - * c - {Float} total change\n - * d - {Float} duration of the transition\n - *\n - * Returns:\n - * {Float}\n - */\n - easeOut: function(t, b, c, d) {\n - return -c *(t/=d)*(t-2) + b;\n - },\n - \n - /**\n - * Function: easeInOut\n - * \n - * Parameters:\n - * t - {Float} time\n - * b - {Float} beginning position\n - * c - {Float} total change\n - * d - {Float} duration of the transition\n - *\n - * Returns:\n - * {Float}\n - */\n - easeInOut: function(t, b, c, d) {\n - if ((t/=d/2) < 1) return c/2*t*t + b;\n - return -c/2 * ((--t)*(t-2) - 1) + b;\n - },\n -\n - CLASS_NAME: "OpenLayers.Easing.Quad"\n -};\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>8083</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Util.js.xml b/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Util.js.xml deleted file mode 100644 index b55274b85cbc268a0fa7f2a0f7482c6cb7a769f1..0000000000000000000000000000000000000000 --- a/erp5_javascript_openlayers/PathTemplateItem/portal_skins/erp5_safeimage/openlayers/OpenLayers/Util.js.xml +++ /dev/null @@ -1,1796 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="File" module="OFS.Image"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts53684100.77</string> </value> - </item> - <item> - <key> <string>__name__</string> </key> - <value> <string>Util.js</string> </value> - </item> - <item> - <key> <string>content_type</string> </key> - <value> <string>application/javascript</string> </value> - </item> - <item> - <key> <string>data</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for \n - * full list of contributors). Published under the 2-clause BSD license.\n - * See license.txt in the OpenLayers distribution or repository for the\n - * full text of the license. */\n -\n -/**\n - * @requires OpenLayers/BaseTypes.js\n - * @requires OpenLayers/BaseTypes/Bounds.js\n - * @requires OpenLayers/BaseTypes/Element.js\n - * @requires OpenLayers/BaseTypes/LonLat.js\n - * @requires OpenLayers/BaseTypes/Pixel.js\n - * @requires OpenLayers/BaseTypes/Size.js\n - * @requires OpenLayers/Lang.js\n - */\n -\n -/**\n - * Namespace: Util\n - */\n -OpenLayers.Util = OpenLayers.Util || {};\n -\n -/** \n - * Function: getElement\n - * This is the old $() from prototype\n - *\n - * Parameters:\n - * e - {String or DOMElement or Window}\n - *\n - * Returns:\n - * {Array(DOMElement) or DOMElement}\n - */\n -OpenLayers.Util.getElement = function() {\n - var elements = [];\n -\n - for (var i=0, len=arguments.length; i<len; i++) {\n - var element = arguments[i];\n - if (typeof element == \'string\') {\n - element = document.getElementById(element);\n - }\n - if (arguments.length == 1) {\n - return element;\n - }\n - elements.push(element);\n - }\n - return elements;\n -};\n -\n -/**\n - * Function: isElement\n - * A cross-browser implementation of "e instanceof Element".\n - *\n - * Parameters:\n - * o - {Object} The object to test.\n - *\n - * Returns:\n - * {Boolean}\n - */\n -OpenLayers.Util.isElement = function(o) {\n - return !!(o && o.nodeType === 1);\n -};\n -\n -/**\n - * Function: isArray\n - * Tests that the provided object is an array.\n - * This test handles the cross-IFRAME case not caught\n - * by "a instanceof Array" and should be used instead.\n - * \n - * Parameters:\n - * a - {Object} the object test.\n - * \n - * Returns:\n - * {Boolean} true if the object is an array.\n - */\n -OpenLayers.Util.isArray = function(a) {\n -\treturn (Object.prototype.toString.call(a) === \'[object Array]\');\n -};\n -\n -/** \n - * Maintain existing definition of $.\n - */\n -if(typeof window.$ === "undefined") {\n - window.$ = OpenLayers.Util.getElement;\n -}\n -\n -/** \n - * Function: removeItem\n - * Remove an object from an array. Iterates through the array\n - * to find the item, then removes it.\n - *\n - * Parameters:\n - * array - {Array}\n - * item - {Object}\n - * \n - * Returns:\n - * {Array} A reference to the array\n - */\n -OpenLayers.Util.removeItem = function(array, item) {\n - for(var i = array.length - 1; i >= 0; i--) {\n - if(array[i] == item) {\n - array.splice(i,1);\n - //break;more than once??\n - }\n - }\n - return array;\n -};\n -\n -/** \n - * Function: indexOf\n - * Seems to exist already in FF, but not in MOZ.\n - * \n - * Parameters:\n - * array - {Array}\n - * obj - {*}\n - * \n - * Returns:\n - * {Integer} The index at, which the first object was found in the array.\n - * If not found, returns -1.\n - */\n -OpenLayers.Util.indexOf = function(array, obj) {\n - // use the build-in function if available.\n - if (typeof array.indexOf == "function") {\n - return array.indexOf(obj);\n - } else {\n - for (var i = 0, len = array.length; i < len; i++) {\n - if (array[i] == obj) {\n - return i;\n - }\n - }\n - return -1; \n - }\n -};\n -\n -\n -\n -/**\n - * Function: modifyDOMElement\n - * \n - * Modifies many properties of a DOM element all at once. Passing in \n - * null to an individual parameter will avoid setting the attribute.\n - *\n - * Parameters:\n - * element - {DOMElement} DOM element to modify.\n - * id - {String} The element id attribute to set.\n - * px - {<OpenLayers.Pixel>|Object} The element left and top position,\n - * OpenLayers.Pixel or an object with\n - * a \'x\' and \'y\' properties.\n - * sz - {<OpenLayers.Size>|Object} The element width and height,\n - * OpenLayers.Size or an object with a\n - * \'w\' and \'h\' properties.\n - * position - {String} The position attribute. eg: absolute, \n - * relative, etc.\n - * border - {String} The style.border attribute. eg:\n - * solid black 2px\n - * overflow - {String} The style.overview attribute. \n - * opacity - {Float} Fractional value (0.0 - 1.0)\n - */\n -OpenLayers.Util.modifyDOMElement = function(element, id, px, sz, position, \n - border, overflow, opacity) {\n -\n - if (id) {\n - element.id = id;\n - }\n - if (px) {\n - element.style.left = px.x + "px";\n - element.style.top = px.y + "px";\n - }\n - if (sz) {\n - element.style.width = sz.w + "px";\n - element.style.height = sz.h + "px";\n - }\n - if (position) {\n - element.style.position = position;\n - }\n - if (border) {\n - element.style.border = border;\n - }\n - if (overflow) {\n - element.style.overflow = overflow;\n - }\n - if (parseFloat(opacity) >= 0.0 && parseFloat(opacity) < 1.0) {\n - element.style.filter = \'alpha(opacity=\' + (opacity * 100) + \')\';\n - element.style.opacity = opacity;\n - } else if (parseFloat(opacity) == 1.0) {\n - element.style.filter = \'\';\n - element.style.opacity = \'\';\n - }\n -};\n -\n -/** \n - * Function: createDiv\n - * Creates a new div and optionally set some standard attributes.\n - * Null may be passed to each parameter if you do not wish to\n - * set a particular attribute.\n - * Note - zIndex is NOT set on the resulting div.\n - * \n - * Parameters:\n - * id - {String} An identifier for this element. If no id is\n - * passed an identifier will be created \n - * automatically.\n - * px - {<OpenLayers.Pixel>|Object} The element left and top position,\n - * OpenLayers.Pixel or an object with\n - * a \'x\' and \'y\' properties.\n - * sz - {<OpenLayers.Size>|Object} The element width and height,\n - * OpenLayers.Size or an object with a\n - * \'w\' and \'h\' properties.\n - * imgURL - {String} A url pointing to an image to use as a \n - * background image.\n - * position - {String} The style.position value. eg: absolute,\n - * relative etc.\n - * border - {String} The the style.border value. \n - * eg: 2px solid black\n - * overflow - {String} The style.overflow value. Eg. hidden\n - * opacity - {Float} Fractional value (0.0 - 1.0)\n - * \n - * Returns: \n - * {DOMElement} A DOM Div created with the specified attributes.\n - */\n -OpenLayers.Util.createDiv = function(id, px, sz, imgURL, position, \n - border, overflow, opacity) {\n -\n - var dom = document.createElement(\'div\');\n -\n - if (imgURL) {\n - dom.style.backgroundImage = \'url(\' + imgURL + \')\';\n - }\n -\n - //set generic properties\n - if (!id) {\n - id = OpenLayers.Util.createUniqueID("OpenLayersDiv");\n - }\n - if (!position) {\n - position = "absolute";\n - }\n - OpenLayers.Util.modifyDOMElement(dom, id, px, sz, position, \n - border, overflow, opacity);\n -\n - return dom;\n -};\n -\n -/**\n - * Function: createImage\n - * Creates an img element with specific attribute values.\n - * \n - * Parameters:\n - * id - {String} The id field for the img. If none assigned one will be\n - * automatically generated.\n - * px - {<OpenLayers.Pixel>|Object} The element left and top position,\n - * OpenLayers.Pixel or an object with\n - * a \'x\' and \'y\' properties.\n - * sz - {<OpenLayers.Size>|Object} The element width and height,\n - * OpenLayers.Size or an object with a\n - * \'w\' and \'h\' properties.\n - * imgURL - {String} The url to use as the image source.\n - * position - {String} The style.position value.\n - * border - {String} The border to place around the image.\n - * opacity - {Float} Fractional value (0.0 - 1.0)\n - * delayDisplay - {Boolean} If true waits until the image has been\n - * loaded.\n - * \n - * Returns:\n - * {DOMElement} A DOM Image created with the specified attributes.\n - */\n -OpenLayers.Util.createImage = function(id, px, sz, imgURL, position, border,\n - opacity, delayDisplay) {\n -\n - var image = document.createElement("img");\n -\n - //set generic properties\n - if (!id) {\n - id = OpenLayers.Util.createUniqueID("OpenLayersDiv");\n - }\n - if (!position) {\n - position = "relative";\n - }\n - OpenLayers.Util.modifyDOMElement(image, id, px, sz, position, \n - border, null, opacity);\n -\n - if (delayDisplay) {\n - image.style.display = "none";\n - function display() {\n - image.style.display = "";\n - OpenLayers.Event.stopObservingElement(image);\n - }\n - OpenLayers.Event.observe(image, "load", display);\n - OpenLayers.Event.observe(image, "error", display);\n - }\n - \n - //set special properties\n - image.style.alt = id;\n - image.galleryImg = "no";\n - if (imgURL) {\n - image.src = imgURL;\n - }\n - \n - return image;\n -};\n -\n -/**\n - * Property: IMAGE_RELOAD_ATTEMPTS\n - * {Integer} How many times should we try to reload an image before giving up?\n - * Default is 0\n - */\n -OpenLayers.IMAGE_RELOAD_ATTEMPTS = 0;\n -\n -/**\n - * Property: alphaHackNeeded\n - * {Boolean} true if the png alpha hack is necessary and possible, false otherwise.\n - */\n -OpenLayers.Util.alphaHackNeeded = null;\n -\n -/**\n - * Function: alphaHack\n - * Checks whether it\'s necessary (and possible) to use the png alpha\n - * hack which allows alpha transparency for png images under Internet\n - * Explorer.\n - * \n - * Returns:\n - * {Boolean} true if the png alpha hack is necessary and possible, false otherwise.\n - */\n -OpenLayers.Util.alphaHack = function() {\n - if (OpenLayers.Util.alphaHackNeeded == null) {\n - var arVersion = navigator.appVersion.split("MSIE");\n - var version = parseFloat(arVersion[1]);\n - var filter = false;\n - \n - // IEs4Lin dies when trying to access document.body.filters, because \n - // the property is there, but requires a DLL that can\'t be provided. This\n - // means that we need to wrap this in a try/catch so that this can\n - // continue.\n - \n - try { \n - filter = !!(document.body.filters);\n - } catch (e) {} \n - \n - OpenLayers.Util.alphaHackNeeded = (filter && \n - (version >= 5.5) && (version < 7));\n - }\n - return OpenLayers.Util.alphaHackNeeded;\n -};\n -\n -/** \n - * Function: modifyAlphaImageDiv\n - * \n - * Parameters:\n - * div - {DOMElement} Div containing Alpha-adjusted Image\n - * id - {String}\n - * px - {<OpenLayers.Pixel>|Object} OpenLayers.Pixel or an object with\n - * a \'x\' and \'y\' properties.\n - * sz - {<OpenLayers.Size>|Object} OpenLayers.Size or an object with\n - * a \'w\' and \'h\' properties.\n - * imgURL - {String}\n - * position - {String}\n - * border - {String}\n - * sizing - {String} \'crop\', \'scale\', or \'image\'. Default is "scale"\n - * opacity - {Float} Fractional value (0.0 - 1.0)\n - */ \n -OpenLayers.Util.modifyAlphaImageDiv = function(div, id, px, sz, imgURL, \n - position, border, sizing, \n - opacity) {\n -\n - OpenLayers.Util.modifyDOMElement(div, id, px, sz, position,\n - null, null, opacity);\n -\n - var img = div.childNodes[0];\n -\n - if (imgURL) {\n - img.src = imgURL;\n - }\n - OpenLayers.Util.modifyDOMElement(img, div.id + "_innerImage", null, sz, \n - "relative", border);\n - \n - if (OpenLayers.Util.alphaHack()) {\n - if(div.style.display != "none") {\n - div.style.display = "inline-block";\n - }\n - if (sizing == null) {\n - sizing = "scale";\n - }\n - \n - div.style.filter = "progid:DXImageTransform.Microsoft" +\n - ".AlphaImageLoader(src=\'" + img.src + "\', " +\n - "sizingMethod=\'" + sizing + "\')";\n - if (parseFloat(div.style.opacity) >= 0.0 && \n - parseFloat(div.style.opacity) < 1.0) {\n - div.style.filter += " alpha(opacity=" + div.style.opacity * 100 + ")";\n - }\n -\n - img.style.filter = "alpha(opacity=0)";\n - }\n -};\n -\n -/** \n - * Function: createAlphaImageDiv\n - * \n - * Parameters:\n - * id - {String}\n - * px - {<OpenLayers.Pixel>|Object} OpenLayers.Pixel or an object with\n - * a \'x\' and \'y\' properties.\n - * sz - {<OpenLayers.Size>|Object} OpenLayers.Size or an object with\n - * a \'w\' and \'h\' properties.\n - * imgURL - {String}\n - * position - {String}\n - * border - {String}\n - * sizing - {String} \'crop\', \'scale\', or \'image\'. Default is "scale"\n - * opacity - {Float} Fractional value (0.0 - 1.0)\n - * delayDisplay - {Boolean} If true waits until the image has been\n - * loaded.\n - * \n - * Returns:\n - * {DOMElement} A DOM Div created with a DOM Image inside it. If the hack is \n - * needed for transparency in IE, it is added.\n - */ \n -OpenLayers.Util.createAlphaImageDiv = function(id, px, sz, imgURL, \n - position, border, sizing, \n - opacity, delayDisplay) {\n - \n - var div = OpenLayers.Util.createDiv();\n - var img = OpenLayers.Util.createImage(null, null, null, null, null, null, \n - null, delayDisplay);\n - img.className = "olAlphaImg";\n - div.appendChild(img);\n -\n - OpenLayers.Util.modifyAlphaImageDiv(div, id, px, sz, imgURL, position, \n - border, sizing, opacity);\n - \n - return div;\n -};\n -\n -\n -/** \n - * Function: upperCaseObject\n - * Creates a new hashtable and copies over all the keys from the \n - * passed-in object, but storing them under an uppercased\n - * version of the key at which they were stored.\n - * \n - * Parameters: \n - * object - {Object}\n - * \n - * Returns: \n - * {Object} A new Object with all the same keys but uppercased\n - */\n -OpenLayers.Util.upperCaseObject = function (object) {\n - var uObject = {};\n - for (var key in object) {\n - uObject[key.toUpperCase()] = object[key];\n - }\n - return uObject;\n -};\n -\n -/** \n - * Function: applyDefaults\n - * Takes an object and copies any properties that don\'t exist from\n - * another properties, by analogy with OpenLayers.Util.extend() from\n - * Prototype.js.\n - * \n - * Parameters:\n - * to - {Object} The destination object.\n - * from - {Object} The source object. Any properties of this object that\n - * are undefined in the to object will be set on the to object.\n - *\n - * Returns:\n - * {Object} A reference to the to object. Note that the to argument is modified\n - * in place and returned by this function.\n - */\n -OpenLayers.Util.applyDefaults = function (to, from) {\n - to = to || {};\n - /*\n - * FF/Windows < 2.0.0.13 reports "Illegal operation on WrappedNative\n - * prototype object" when calling hawOwnProperty if the source object is an\n - * instance of window.Event.\n - */\n - var fromIsEvt = typeof window.Event == "function"\n - && from instanceof window.Event;\n -\n - for (var key in from) {\n - if (to[key] === undefined ||\n - (!fromIsEvt && from.hasOwnProperty\n - && from.hasOwnProperty(key) && !to.hasOwnProperty(key))) {\n - to[key] = from[key];\n - }\n - }\n - /**\n - * IE doesn\'t include the toString property when iterating over an object\'s\n - * properties with the for(property in object) syntax. Explicitly check if\n - * the source has its own toString property.\n - */\n - if(!fromIsEvt && from && from.hasOwnProperty\n - && from.hasOwnProperty(\'toString\') && !to.hasOwnProperty(\'toString\')) {\n - to.toString = from.toString;\n - }\n - \n - return to;\n -};\n -\n -/**\n - * Function: getParameterString\n - * \n - * Parameters:\n - * params - {Object}\n - * \n - * Returns:\n - * {String} A concatenation of the properties of an object in \n - * http parameter notation. \n - * (ex. <i>"key1=value1&key2=value2&key3=value3"</i>)\n - * If a parameter is actually a list, that parameter will then\n - * be set to a comma-seperated list of values (foo,bar) instead\n - * of being URL escaped (foo%3Abar). \n - */\n -OpenLayers.Util.getParameterString = function(params) {\n - var paramsArray = [];\n - \n - for (var key in params) {\n - var value = params[key];\n - if ((value != null) && (typeof value != \'function\')) {\n - var encodedValue;\n - if (typeof value == \'object\' && value.constructor == Array) {\n - /* value is an array; encode items and separate with "," */\n - var encodedItemArray = [];\n - var item;\n - for (var itemIndex=0, len=value.length; itemIndex<len; itemIndex++) {\n - item = value[itemIndex];\n - encodedItemArray.push(encodeURIComponent(\n - (item === null || item === undefined) ? "" : item)\n - );\n - }\n - encodedValue = encodedItemArray.join(",");\n - }\n - else {\n - /* value is a string; simply encode */\n - encodedValue = encodeURIComponent(value);\n - }\n - paramsArray.push(encodeURIComponent(key) + "=" + encodedValue);\n - }\n - }\n - \n - return paramsArray.join("&");\n -};\n -\n -/**\n - * Function: urlAppend\n - * Appends a parameter string to a url. This function includes the logic for\n - * using the appropriate character (none, & or ?) to append to the url before\n - * appending the param string.\n - * \n - * Parameters:\n - * url - {String} The url to append to\n - * paramStr - {String} The param string to append\n - * \n - * Returns:\n - * {String} The new url\n - */\n -OpenLayers.Util.urlAppend = function(url, paramStr) {\n - var newUrl = url;\n - if(paramStr) {\n - var parts = (url + " ").split(/[?&]/);\n - newUrl += (parts.pop() === " " ?\n - paramStr :\n - parts.length ? "&" + paramStr : "?" + paramStr);\n - }\n - return newUrl;\n -};\n -\n -/** \n - * Function: getImagesLocation\n - * \n - * Returns:\n - * {String} The fully formatted image location string\n - */\n -OpenLayers.Util.getImagesLocation = function() {\n - return OpenLayers.ImgPath || (OpenLayers._getScriptLocation() + "img/");\n -};\n -\n -/** \n - * Function: getImageLocation\n - * \n - * Returns:\n - * {String} The fully formatted location string for a specified image\n - */\n -OpenLayers.Util.getImageLocation = function(image) {\n - return OpenLayers.Util.getImagesLocation() + image;\n -};\n -\n -\n -/** \n - * Function: Try\n - * Execute functions until one of them doesn\'t throw an error. \n - * Capitalized because "try" is a reserved word in JavaScript.\n - * Taken directly from OpenLayers.Util.Try()\n - * \n - * Parameters:\n - * [*] - {Function} Any number of parameters may be passed to Try()\n - * It will attempt to execute each of them until one of them \n - * successfully executes. \n - * If none executes successfully, returns null.\n - * \n - * Returns:\n - * {*} The value returned by the first successfully executed function.\n - */\n -OpenLayers.Util.Try = function() {\n - var returnValue = null;\n -\n - for (var i=0, len=arguments.length; i<len; i++) {\n - var lambda = arguments[i];\n - try {\n - returnValue = lambda();\n - break;\n - } catch (e) {}\n - }\n -\n - return returnValue;\n -};\n -\n -/**\n - * Function: getXmlNodeValue\n - * \n - * Parameters:\n - * node - {XMLNode}\n - * \n - * Returns:\n - * {String} The text value of the given node, without breaking in firefox or IE\n - */\n -OpenLayers.Util.getXmlNodeValue = function(node) {\n - var val = null;\n - OpenLayers.Util.Try( \n - function() {\n - val = node.text;\n - if (!val) {\n - val = node.textContent;\n - }\n - if (!val) {\n - val = node.firstChild.nodeValue;\n - }\n - }, \n - function() {\n - val = node.textContent;\n - }); \n - return val;\n -};\n -\n -/** \n - * Function: mouseLeft\n - * \n - * Parameters:\n - * evt - {Event}\n - * div - {HTMLDivElement}\n - * \n - * Returns:\n - * {Boolean}\n - */\n -OpenLayers.Util.mouseLeft = function (evt, div) {\n - // start with the element to which the mouse has moved\n - var target = (evt.relatedTarget) ? evt.relatedTarget : evt.toElement;\n - // walk up the DOM tree.\n - while (target != div && target != null) {\n - target = target.parentNode;\n - }\n - // if the target we stop at isn\'t the div, then we\'ve left the div.\n - return (target != div);\n -};\n -\n -/**\n - * Property: precision\n - * {Number} The number of significant digits to retain to avoid\n - * floating point precision errors.\n - *\n - * We use 14 as a "safe" default because, although IEEE 754 double floats\n - * (standard on most modern operating systems) support up to about 16\n - * significant digits, 14 significant digits are sufficient to represent\n - * sub-millimeter accuracy in any coordinate system that anyone is likely to\n - * use with OpenLayers.\n - *\n - * If DEFAULT_PRECISION is set to 0, the original non-truncating behavior\n - * of OpenLayers <2.8 is preserved. Be aware that this will cause problems\n - * with certain projections, e.g. spherical Mercator.\n - *\n - */\n -OpenLayers.Util.DEFAULT_PRECISION = 14;\n -\n -/**\n - * Function: toFloat\n - * Convenience method to cast an object to a Number, rounded to the\n - * desired floating point precision.\n - *\n - * Parameters:\n - * number - {Number} The number to cast and round.\n - * precision - {Number} An integer suitable for use with\n - * Number.toPrecision(). Defaults to OpenLayers.Util.DEFAULT_PRECISION.\n - * If set to 0, no rounding is performed.\n - *\n - * Returns:\n - * {Number} The cast, rounded number.\n - */\n -OpenLayers.Util.toFloat = function (number, precision) {\n - if (precision == null) {\n - precision = OpenLayers.Util.DEFAULT_PRECISION;\n - }\n - if (typeof number !== "number") {\n - number = parseFloat(number);\n - }\n - return precision === 0 ? number :\n - parseFloat(number.toPrecision(precision));\n -};\n -\n -/**\n - * Function: rad\n - * \n - * Parameters:\n - * x - {Float}\n - * \n - * Returns:\n - * {Float}\n - */\n -OpenLayers.Util.rad = function(x) {return x*Math.PI/180;};\n -\n -/**\n - * Function: deg\n - *\n - * Parameters:\n - * x - {Float}\n - *\n - * Returns:\n - * {Float}\n - */\n -OpenLayers.Util.deg = function(x) {return x*180/Math.PI;};\n -\n -/**\n - * Property: VincentyConstants\n - * {Object} Constants for Vincenty functions.\n - */\n -OpenLayers.Util.VincentyConstants = {\n - a: 6378137,\n - b: 6356752.3142,\n - f: 1/298.257223563\n -};\n -\n -/**\n - * APIFunction: distVincenty\n - * Given two objects representing points with geographic coordinates, this\n - * calculates the distance between those points on the surface of an\n - * ellipsoid.\n - *\n - * Parameters:\n - * p1 - {<OpenLayers.LonLat>} (or any object with both .lat, .lon properties)\n - * p2 - {<OpenLayers.LonLat>} (or any object with both .lat, .lon properties)\n - *\n - * Returns:\n - * {Float} The distance (in km) between the two input points as measured on an\n - * ellipsoid. Note that the input point objects must be in geographic\n - * coordinates (decimal degrees) and the return distance is in kilometers.\n - */\n -OpenLayers.Util.distVincenty = function(p1, p2) {\n - var ct = OpenLayers.Util.VincentyConstants;\n - var a = ct.a, b = ct.b, f = ct.f;\n -\n - var L = OpenLayers.Util.rad(p2.lon - p1.lon);\n - var U1 = Math.atan((1-f) * Math.tan(OpenLayers.Util.rad(p1.lat)));\n - var U2 = Math.atan((1-f) * Math.tan(OpenLayers.Util.rad(p2.lat)));\n - var sinU1 = Math.sin(U1), cosU1 = Math.cos(U1);\n - var sinU2 = Math.sin(U2), cosU2 = Math.cos(U2);\n - var lambda = L, lambdaP = 2*Math.PI;\n - var iterLimit = 20;\n - while (Math.abs(lambda-lambdaP) > 1e-12 && --iterLimit>0) {\n - var sinLambda = Math.sin(lambda), cosLambda = Math.cos(lambda);\n - var sinSigma = Math.sqrt((cosU2*sinLambda) * (cosU2*sinLambda) +\n - (cosU1*sinU2-sinU1*cosU2*cosLambda) * (cosU1*sinU2-sinU1*cosU2*cosLambda));\n - if (sinSigma==0) {\n - return 0; // co-incident points\n - }\n - var cosSigma = sinU1*sinU2 + cosU1*cosU2*cosLambda;\n - var sigma = Math.atan2(sinSigma, cosSigma);\n - var alpha = Math.asin(cosU1 * cosU2 * sinLambda / sinSigma);\n - var cosSqAlpha = Math.cos(alpha) * Math.cos(alpha);\n - var cos2SigmaM = cosSigma - 2*sinU1*sinU2/cosSqAlpha;\n - var C = f/16*cosSqAlpha*(4+f*(4-3*cosSqAlpha));\n - lambdaP = lambda;\n - lambda = L + (1-C) * f * Math.sin(alpha) *\n - (sigma + C*sinSigma*(cos2SigmaM+C*cosSigma*(-1+2*cos2SigmaM*cos2SigmaM)));\n - }\n - if (iterLimit==0) {\n - return NaN; // formula failed to converge\n - }\n - var uSq = cosSqAlpha * (a*a - b*b) / (b*b);\n - var A = 1 + uSq/16384*(4096+uSq*(-768+uSq*(320-175*uSq)));\n - var B = uSq/1024 * (256+uSq*(-128+uSq*(74-47*uSq)));\n - var deltaSigma = B*sinSigma*(cos2SigmaM+B/4*(cosSigma*(-1+2*cos2SigmaM*cos2SigmaM)-\n - B/6*cos2SigmaM*(-3+4*sinSigma*sinSigma)*(-3+4*cos2SigmaM*cos2SigmaM)));\n - var s = b*A*(sigma-deltaSigma);\n - var d = s.toFixed(3)/1000; // round to 1mm precision\n - return d;\n -};\n -\n -/**\n - * APIFunction: destinationVincenty\n - * Calculate destination point given start point lat/long (numeric degrees),\n - * bearing (numeric degrees) & distance (in m).\n - * Adapted from Chris Veness work, see\n - * http://www.movable-type.co.uk/scripts/latlong-vincenty-direct.html\n - *\n - * Parameters:\n - * lonlat - {<OpenLayers.LonLat>} (or any object with both .lat, .lon\n - * properties) The start point.\n - * brng - {Float} The bearing (degrees).\n - * dist - {Float} The ground distance (meters).\n - *\n - * Returns:\n - * {<OpenLayers.LonLat>} The destination point.\n - */\n -OpenLayers.Util.destinationVincenty = function(lonlat, brng, dist) {\n - var u = OpenLayers.Util;\n - var ct = u.VincentyConstants;\n - var a = ct.a, b = ct.b, f = ct.f;\n -\n - var lon1 = lonlat.lon;\n - var lat1 = lonlat.lat;\n -\n - var s = dist;\n - var alpha1 = u.rad(brng);\n - var sinAlpha1 = Math.sin(alpha1);\n - var cosAlpha1 = Math.cos(alpha1);\n -\n - var tanU1 = (1-f) * Math.tan(u.rad(lat1));\n - var cosU1 = 1 / Math.sqrt((1 + tanU1*tanU1)), sinU1 = tanU1*cosU1;\n - var sigma1 = Math.atan2(tanU1, cosAlpha1);\n - var sinAlpha = cosU1 * sinAlpha1;\n - var cosSqAlpha = 1 - sinAlpha*sinAlpha;\n - var uSq = cosSqAlpha * (a*a - b*b) / (b*b);\n - var A = 1 + uSq/16384*(4096+uSq*(-768+uSq*(320-175*uSq)));\n - var B = uSq/1024 * (256+uSq*(-128+uSq*(74-47*uSq)));\n -\n - var sigma = s / (b*A), sigmaP = 2*Math.PI;\n - while (Math.abs(sigma-sigmaP) > 1e-12) {\n - var cos2SigmaM = Math.cos(2*sigma1 + sigma);\n - var sinSigma = Math.sin(sigma);\n - var cosSigma = Math.cos(sigma);\n - var deltaSigma = B*sinSigma*(cos2SigmaM+B/4*(cosSigma*(-1+2*cos2SigmaM*cos2SigmaM)-\n - B/6*cos2SigmaM*(-3+4*sinSigma*sinSigma)*(-3+4*cos2SigmaM*cos2SigmaM)));\n - sigmaP = sigma;\n - sigma = s / (b*A) + deltaSigma;\n - }\n -\n - var tmp = sinU1*sinSigma - cosU1*cosSigma*cosAlpha1;\n - var lat2 = Math.atan2(sinU1*cosSigma + cosU1*sinSigma*cosAlpha1,\n - (1-f)*Math.sqrt(sinAlpha*sinAlpha + tmp*tmp));\n - var lambda = Math.atan2(sinSigma*sinAlpha1, cosU1*cosSigma - sinU1*sinSigma*cosAlpha1);\n - var C = f/16*cosSqAlpha*(4+f*(4-3*cosSqAlpha));\n - var L = lambda - (1-C) * f * sinAlpha *\n - (sigma + C*sinSigma*(cos2SigmaM+C*cosSigma*(-1+2*cos2SigmaM*cos2SigmaM)));\n -\n - var revAz = Math.atan2(sinAlpha, -tmp); // final bearing\n -\n - return new OpenLayers.LonLat(lon1+u.deg(L), u.deg(lat2));\n -};\n -\n -/**\n - * Function: getParameters\n - * Parse the parameters from a URL or from the current page itself into a \n - * JavaScript Object. Note that parameter values with commas are separated\n - * out into an Array.\n - * \n - * Parameters:\n - * url - {String} Optional url used to extract the query string.\n - * If url is null or is not supplied, query string is taken \n - * from the page location.\n - * \n - * Returns:\n - * {Object} An object of key/value pairs from the query string.\n - */\n -OpenLayers.Util.getParameters = function(url) {\n - // if no url specified, take it from the location bar\n - url = (url === null || url === undefined) ? window.location.href : url;\n -\n - //parse out parameters portion of url string\n - var paramsString = "";\n - if (OpenLayers.String.contains(url, \'?\')) {\n - var start = url.indexOf(\'?\') + 1;\n - var end = OpenLayers.String.contains(url, "#") ?\n - url.indexOf(\'#\') : url.length;\n - paramsString = url.substring(start, end);\n - }\n -\n - var parameters = {};\n - var pairs = paramsString.split(/[&;]/);\n - for(var i=0, len=pairs.length; i<len; ++i) {\n - var keyValue = pairs[i].split(\'=\');\n - if (keyValue[0]) {\n -\n - var key = keyValue[0];\n - try {\n - key = decodeURIComponent(key);\n - } catch (err) {\n - key = unescape(key);\n - }\n - \n - // being liberal by replacing "+" with " "\n - var value = (keyValue[1] || \'\').replace(/\\+/g, " ");\n -\n - try {\n - value = decodeURIComponent(value);\n - } catch (err) {\n - value = unescape(value);\n - }\n - \n - // follow OGC convention of comma delimited values\n - value = value.split(",");\n -\n - //if there\'s only one value, do not return as array \n - if (value.length == 1) {\n - value = value[0];\n - } \n - \n - parameters[key] = value;\n - }\n - }\n - return parameters;\n -};\n -\n -/**\n - * Property: lastSeqID\n - * {Integer} The ever-incrementing count variable.\n - * Used for generating unique ids.\n - */\n -OpenLayers.Util.lastSeqID = 0;\n -\n -/**\n - * Function: createUniqueID\n - * Create a unique identifier for this session. Each time this function\n - * is called, a counter is incremented. The return will be the optional\n - * prefix (defaults to "id_") appended with the counter value.\n - * \n - * Parameters:\n - * prefix - {String} Optional string to prefix unique id. Default is "id_".\n - * \n - * Returns:\n - * {String} A unique id string, built on the passed in prefix.\n - */\n -OpenLayers.Util.createUniqueID = function(prefix) {\n - if (prefix == null) {\n - prefix = "id_";\n - }\n - OpenLayers.Util.lastSeqID += 1; \n - return prefix + OpenLayers.Util.lastSeqID; \n -};\n -\n -/**\n - * Constant: INCHES_PER_UNIT\n - * {Object} Constant inches per unit -- borrowed from MapServer mapscale.c\n - * derivation of nautical miles from http://en.wikipedia.org/wiki/Nautical_mile\n - * Includes the full set of units supported by CS-MAP (http://trac.osgeo.org/csmap/)\n - * and PROJ.4 (http://trac.osgeo.org/proj/)\n - * The hardcoded table is maintain in a CS-MAP source code module named CSdataU.c\n - * The hardcoded table of PROJ.4 units are in pj_units.c.\n - */\n -OpenLayers.INCHES_PER_UNIT = { \n - \'inches\': 1.0,\n - \'ft\': 12.0,\n - \'mi\': 63360.0,\n - \'m\': 39.3701,\n - \'km\': 39370.1,\n - \'dd\': 4374754,\n - \'yd\': 36\n -};\n -OpenLayers.INCHES_PER_UNIT["in"]= OpenLayers.INCHES_PER_UNIT.inches;\n -OpenLayers.INCHES_PER_UNIT["degrees"] = OpenLayers.INCHES_PER_UNIT.dd;\n -OpenLayers.INCHES_PER_UNIT["nmi"] = 1852 * OpenLayers.INCHES_PER_UNIT.m;\n -\n -// Units from CS-Map\n -OpenLayers.METERS_PER_INCH = 0.02540005080010160020;\n -OpenLayers.Util.extend(OpenLayers.INCHES_PER_UNIT, {\n - "Inch": OpenLayers.INCHES_PER_UNIT.inches,\n - "Meter": 1.0 / OpenLayers.METERS_PER_INCH, //EPSG:9001\n - "Foot": 0.30480060960121920243 / OpenLayers.METERS_PER_INCH, //EPSG:9003\n - "IFoot": 0.30480000000000000000 / OpenLayers.METERS_PER_INCH, //EPSG:9002\n - "ClarkeFoot": 0.3047972651151 / OpenLayers.METERS_PER_INCH, //EPSG:9005\n - "SearsFoot": 0.30479947153867624624 / OpenLayers.METERS_PER_INCH, //EPSG:9041\n - "GoldCoastFoot": 0.30479971018150881758 / OpenLayers.METERS_PER_INCH, //EPSG:9094\n - "IInch": 0.02540000000000000000 / OpenLayers.METERS_PER_INCH,\n - "MicroInch": 0.00002540000000000000 / OpenLayers.METERS_PER_INCH,\n - "Mil": 0.00000002540000000000 / OpenLayers.METERS_PER_INCH,\n - "Centimeter": 0.01000000000000000000 / OpenLayers.METERS_PER_INCH,\n - "Kilometer": 1000.00000000000000000000 / OpenLayers.METERS_PER_INCH, //EPSG:9036\n - "Yard": 0.91440182880365760731 / OpenLayers.METERS_PER_INCH,\n - "SearsYard": 0.914398414616029 / OpenLayers.METERS_PER_INCH, //EPSG:9040\n - "IndianYard": 0.91439853074444079983 / OpenLayers.METERS_PER_INCH, //EPSG:9084\n - "IndianYd37": 0.91439523 / OpenLayers.METERS_PER_INCH, //EPSG:9085\n - "IndianYd62": 0.9143988 / OpenLayers.METERS_PER_INCH, //EPSG:9086\n - "IndianYd75": 0.9143985 / OpenLayers.METERS_PER_INCH, //EPSG:9087\n - "IndianFoot": 0.30479951 / OpenLayers.METERS_PER_INCH, //EPSG:9080\n - "IndianFt37": 0.30479841 / OpenLayers.METERS_PER_INCH, //EPSG:9081\n - "IndianFt62": 0.3047996 / OpenLayers.METERS_PER_INCH, //EPSG:9082\n - "IndianFt75": 0.3047995 / OpenLayers.METERS_PER_INCH, //EPSG:9083\n - "Mile": 1609.34721869443738887477 / OpenLayers.METERS_PER_INCH,\n - "IYard": 0.91440000000000000000 / OpenLayers.METERS_PER_INCH, //EPSG:9096\n - "IMile": 1609.34400000000000000000 / OpenLayers.METERS_PER_INCH, //EPSG:9093\n - "NautM": 1852.00000000000000000000 / OpenLayers.METERS_PER_INCH, //EPSG:9030\n - "Lat-66": 110943.316488932731 / OpenLayers.METERS_PER_INCH,\n - "Lat-83": 110946.25736872234125 / OpenLayers.METERS_PER_INCH,\n - "Decimeter": 0.10000000000000000000 / OpenLayers.METERS_PER_INCH,\n - "Millimeter": 0.00100000000000000000 / OpenLayers.METERS_PER_INCH,\n - "Dekameter": 10.00000000000000000000 / OpenLayers.METERS_PER_INCH,\n - "Decameter": 10.00000000000000000000 / OpenLayers.METERS_PER_INCH,\n - "Hectometer": 100.00000000000000000000 / OpenLayers.METERS_PER_INCH,\n - "GermanMeter": 1.0000135965 / OpenLayers.METERS_PER_INCH, //EPSG:9031\n - "CaGrid": 0.999738 / OpenLayers.METERS_PER_INCH,\n - "ClarkeChain": 20.1166194976 / OpenLayers.METERS_PER_INCH, //EPSG:9038\n - "GunterChain": 20.11684023368047 / OpenLayers.METERS_PER_INCH, //EPSG:9033\n - "BenoitChain": 20.116782494375872 / OpenLayers.METERS_PER_INCH, //EPSG:9062\n - "SearsChain": 20.11676512155 / OpenLayers.METERS_PER_INCH, //EPSG:9042\n - "ClarkeLink": 0.201166194976 / OpenLayers.METERS_PER_INCH, //EPSG:9039\n - "GunterLink": 0.2011684023368047 / OpenLayers.METERS_PER_INCH, //EPSG:9034\n - "BenoitLink": 0.20116782494375872 / OpenLayers.METERS_PER_INCH, //EPSG:9063\n - "SearsLink": 0.2011676512155 / OpenLayers.METERS_PER_INCH, //EPSG:9043\n - "Rod": 5.02921005842012 / OpenLayers.METERS_PER_INCH,\n - "IntnlChain": 20.1168 / OpenLayers.METERS_PER_INCH, //EPSG:9097\n - "IntnlLink": 0.201168 / OpenLayers.METERS_PER_INCH, //EPSG:9098\n - "Perch": 5.02921005842012 / OpenLayers.METERS_PER_INCH,\n - "Pole": 5.02921005842012 / OpenLayers.METERS_PER_INCH,\n - "Furlong": 201.1684023368046 / OpenLayers.METERS_PER_INCH,\n - "Rood": 3.778266898 / OpenLayers.METERS_PER_INCH,\n - "CapeFoot": 0.3047972615 / OpenLayers.METERS_PER_INCH,\n - "Brealey": 375.00000000000000000000 / OpenLayers.METERS_PER_INCH,\n - "ModAmFt": 0.304812252984505969011938 / OpenLayers.METERS_PER_INCH,\n - "Fathom": 1.8288 / OpenLayers.METERS_PER_INCH,\n - "NautM-UK": 1853.184 / OpenLayers.METERS_PER_INCH,\n - "50kilometers": 50000.0 / OpenLayers.METERS_PER_INCH,\n - "150kilometers": 150000.0 / OpenLayers.METERS_PER_INCH\n -});\n -\n -//unit abbreviations supported by PROJ.4\n -OpenLayers.Util.extend(OpenLayers.INCHES_PER_UNIT, {\n - "mm": OpenLayers.INCHES_PER_UNIT["Meter"] / 1000.0,\n - "cm": OpenLayers.INCHES_PER_UNIT["Meter"] / 100.0,\n - "dm": OpenLayers.INCHES_PER_UNIT["Meter"] * 100.0,\n - "km": OpenLayers.INCHES_PER_UNIT["Meter"] * 1000.0,\n - "kmi": OpenLayers.INCHES_PER_UNIT["nmi"], //International Nautical Mile\n - "fath": OpenLayers.INCHES_PER_UNIT["Fathom"], //International Fathom\n - "ch": OpenLayers.INCHES_PER_UNIT["IntnlChain"], //International Chain\n - "link": OpenLayers.INCHES_PER_UNIT["IntnlLink"], //International Link\n - "us-in": OpenLayers.INCHES_PER_UNIT["inches"], //U.S. Surveyor\'s Inch\n - "us-ft": OpenLayers.INCHES_PER_UNIT["Foot"],\t//U.S. Surveyor\'s Foot\n - "us-yd": OpenLayers.INCHES_PER_UNIT["Yard"],\t//U.S. Surveyor\'s Yard\n - "us-ch": OpenLayers.INCHES_PER_UNIT["GunterChain"], //U.S. Surveyor\'s Chain\n - "us-mi": OpenLayers.INCHES_PER_UNIT["Mile"], //U.S. Surveyor\'s Statute Mile\n - "ind-yd": OpenLayers.INCHES_PER_UNIT["IndianYd37"], //Indian Yard\n - "ind-ft": OpenLayers.INCHES_PER_UNIT["IndianFt37"], //Indian Foot\n - "ind-ch": 20.11669506 / OpenLayers.METERS_PER_INCH //Indian Chain\n -});\n -\n -/** \n - * Constant: DOTS_PER_INCH\n - * {Integer} 72 (A sensible default)\n - */\n -OpenLayers.DOTS_PER_INCH = 72;\n -\n -/**\n - * Function: normalizeScale\n - * \n - * Parameters:\n - * scale - {float}\n - * \n - * Returns:\n - * {Float} A normalized scale value, in 1 / X format. \n - * This means that if a value less than one ( already 1/x) is passed\n - * in, it just returns scale directly. Otherwise, it returns \n - * 1 / scale\n - */\n -OpenLayers.Util.normalizeScale = function (scale) {\n - var normScale = (scale > 1.0) ? (1.0 / scale) \n - : scale;\n - return normScale;\n -};\n -\n -/**\n - * Function: getResolutionFromScale\n - * \n - * Parameters:\n - * scale - {Float}\n - * units - {String} Index into OpenLayers.INCHES_PER_UNIT hashtable.\n - * Default is degrees\n - * \n - * Returns:\n - * {Float} The corresponding resolution given passed-in scale and unit \n - * parameters. If the given scale is falsey, the returned resolution will\n - * be undefined.\n - */\n -OpenLayers.Util.getResolutionFromScale = function (scale, units) {\n - var resolution;\n - if (scale) {\n - if (units == null) {\n - units = "degrees";\n - }\n - var normScale = OpenLayers.Util.normalizeScale(scale);\n - resolution = 1 / (normScale * OpenLayers.INCHES_PER_UNIT[units]\n - * OpenLayers.DOTS_PER_INCH); \n - }\n - return resolution;\n -};\n -\n -/**\n - * Function: getScaleFromResolution\n - * \n - * Parameters:\n - * resolution - {Float}\n - * units - {String} Index into OpenLayers.INCHES_PER_UNIT hashtable.\n - * Default is degrees\n - * \n - * Returns:\n - * {Float} The corresponding scale given passed-in resolution and unit \n - * parameters.\n - */\n -OpenLayers.Util.getScaleFromResolution = function (resolution, units) {\n -\n - if (units == null) {\n - units = "degrees";\n - }\n -\n - var scale = resolution * OpenLayers.INCHES_PER_UNIT[units] *\n - OpenLayers.DOTS_PER_INCH;\n - return scale;\n -};\n -\n -/**\n - * Function: pagePosition\n - * Calculates the position of an element on the page (see\n - * http://code.google.com/p/doctype/wiki/ArticlePageOffset)\n - *\n - * OpenLayers.Util.pagePosition is based on Yahoo\'s getXY method, which is\n - * Copyright (c) 2006, Yahoo! Inc.\n - * All rights reserved.\n - * \n - * Redistribution and use of this software in source and binary forms, with or\n - * without modification, are permitted provided that the following conditions\n - * are met:\n - * \n - * * Redistributions of source code must retain the above copyright notice,\n - * this list of conditions and the following disclaimer.\n - * \n - * * Redistributions in binary form must reproduce the above copyright notice,\n - * this list of conditions and the following disclaimer in the documentation\n - * and/or other materials provided with the distribution.\n - * \n - * * Neither the name of Yahoo! Inc. nor the names of its contributors may be\n - * used to endorse or promote products derived from this software without\n - * specific prior written permission of Yahoo! Inc.\n - * \n - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\n - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \n - * POSSIBILITY OF SUCH DAMAGE.\n - *\n - * Parameters:\n - * forElement - {DOMElement}\n - * \n - * Returns:\n - * {Array} two item array, Left value then Top value.\n - */\n -OpenLayers.Util.pagePosition = function(forElement) {\n - // NOTE: If element is hidden (display none or disconnected or any the\n - // ancestors are hidden) we get (0,0) by default but we still do the\n - // accumulation of scroll position.\n -\n - var pos = [0, 0];\n - var viewportElement = OpenLayers.Util.getViewportElement();\n - if (!forElement || forElement == window || forElement == viewportElement) {\n - // viewport is always at 0,0 as that defined the coordinate system for\n - // this function - this avoids special case checks in the code below\n - return pos;\n - }\n -\n - // Gecko browsers normally use getBoxObjectFor to calculate the position.\n - // When invoked for an element with an implicit absolute position though it\n - // can be off by one. Therefore the recursive implementation is used in\n - // those (relatively rare) cases.\n - var BUGGY_GECKO_BOX_OBJECT =\n - OpenLayers.IS_GECKO && document.getBoxObjectFor &&\n - OpenLayers.Element.getStyle(forElement, \'position\') == \'absolute\' &&\n - (forElement.style.top == \'\' || forElement.style.left == \'\');\n -\n - var parent = null;\n - var box;\n -\n - if (forElement.getBoundingClientRect) { // IE\n - box = forElement.getBoundingClientRect();\n - var scrollTop = viewportElement.scrollTop;\n - var scrollLeft = viewportElement.scrollLeft;\n -\n - pos[0] = box.left + scrollLeft;\n - pos[1] = box.top + scrollTop;\n -\n - } else if (document.getBoxObjectFor && !BUGGY_GECKO_BOX_OBJECT) { // gecko\n - // Gecko ignores the scroll values for ancestors, up to 1.9. See:\n - // https://bugzilla.mozilla.org/show_bug.cgi?id=328881 and\n - // https://bugzilla.mozilla.org/show_bug.cgi?id=330619\n -\n - box = document.getBoxObjectFor(forElement);\n - var vpBox = document.getBoxObjectFor(viewportElement);\n - pos[0] = box.screenX - vpBox.screenX;\n - pos[1] = box.screenY - vpBox.screenY;\n -\n - } else { // safari/opera\n - pos[0] = forElement.offsetLeft;\n - pos[1] = forElement.offsetTop;\n - parent = forElement.offsetParent;\n - if (parent != forElement) {\n - while (parent) {\n - pos[0] += parent.offsetLeft;\n - pos[1] += parent.offsetTop;\n - parent = parent.offsetParent;\n - }\n - }\n -\n - var browser = OpenLayers.BROWSER_NAME;\n -\n - // opera & (safari absolute) incorrectly account for body offsetTop\n - if (browser == "opera" || (browser == "safari" &&\n - OpenLayers.Element.getStyle(forElement, \'position\') == \'absolute\')) {\n - pos[1] -= document.body.offsetTop;\n - }\n -\n - // accumulate the scroll positions for everything but the body element\n - parent = forElement.offsetParent;\n - while (parent && parent != document.body) {\n - pos[0] -= parent.scrollLeft;\n - // see https://bugs.opera.com/show_bug.cgi?id=249965\n - if (browser != "opera" || parent.tagName != \'TR\') {\n - pos[1] -= parent.scrollTop;\n - }\n - parent = parent.offsetParent;\n - }\n - }\n - \n - return pos;\n -};\n -\n -/**\n - * Function: getViewportElement\n - * Returns die viewport element of the document. The viewport element is\n - * usually document.documentElement, except in IE,where it is either\n - * document.body or document.documentElement, depending on the document\'s\n - * compatibility mode (see\n - * http://code.google.com/p/doctype/wiki/ArticleClientViewportElement)\n - *\n - * Returns:\n - * {DOMElement}\n - */\n -OpenLayers.Util.getViewportElement = function() {\n - var viewportElement = arguments.callee.viewportElement;\n - if (viewportElement == undefined) {\n - viewportElement = (OpenLayers.BROWSER_NAME == "msie" &&\n - document.compatMode != \'CSS1Compat\') ? document.body :\n - document.documentElement;\n - arguments.callee.viewportElement = viewportElement;\n - }\n - return viewportElement;\n -};\n -\n -/** \n - * Function: isEquivalentUrl\n - * Test two URLs for equivalence. \n - * \n - * Setting \'ignoreCase\' allows for case-independent comparison.\n - * \n - * Comparison is based on: \n - * - Protocol\n - * - Host (evaluated without the port)\n - * - Port (set \'ignorePort80\' to ignore "80" values)\n - * - Hash ( set \'ignoreHash\' to disable)\n - * - Pathname (for relative <-> absolute comparison) \n - * - Arguments (so they can be out of order)\n - * \n - * Parameters:\n - * url1 - {String}\n - * url2 - {String}\n - * options - {Object} Allows for customization of comparison:\n - * \'ignoreCase\' - Default is True\n - * \'ignorePort80\' - Default is True\n - * \'ignoreHash\' - Default is True\n - *\n - * Returns:\n - * {Boolean} Whether or not the two URLs are equivalent\n - */\n -OpenLayers.Util.isEquivalentUrl = function(url1, url2, options) {\n - options = options || {};\n -\n - OpenLayers.Util.applyDefaults(options, {\n - ignoreCase: true,\n - ignorePort80: true,\n - ignoreHash: true\n - });\n -\n - var urlObj1 = OpenLayers.Util.createUrlObject(url1, options);\n - var urlObj2 = OpenLayers.Util.createUrlObject(url2, options);\n -\n - //compare all keys except for "args" (treated below)\n - for(var key in urlObj1) {\n - if(key !== "args") {\n - if(urlObj1[key] != urlObj2[key]) {\n - return false;\n - }\n - }\n - }\n -\n - // compare search args - irrespective of order\n - for(var key in urlObj1.args) {\n - if(urlObj1.args[key] != urlObj2.args[key]) {\n - return false;\n - }\n - delete urlObj2.args[key];\n - }\n - // urlObj2 shouldn\'t have any args left\n - for(var key in urlObj2.args) {\n - return false;\n - }\n - \n - return true;\n -};\n -\n -/**\n - * Function: createUrlObject\n - * \n - * Parameters:\n - * url - {String}\n - * options - {Object} A hash of options.\n - *\n - * Valid options:\n - * ignoreCase - {Boolean} lowercase url,\n - * ignorePort80 - {Boolean} don\'t include explicit port if port is 80,\n - * ignoreHash - {Boolean} Don\'t include part of url after the hash (#).\n - * \n - * Returns:\n - * {Object} An object with separate url, a, port, host, and args parsed out \n - * and ready for comparison\n - */\n -OpenLayers.Util.createUrlObject = function(url, options) {\n - options = options || {};\n -\n - // deal with relative urls first\n - if(!(/^\\w+:\\/\\//).test(url)) {\n - var loc = window.location;\n - var port = loc.port ? ":" + loc.port : "";\n - var fullUrl = loc.protocol + "//" + loc.host.split(":").shift() + port;\n - if(url.indexOf("/") === 0) {\n - // full pathname\n - url = fullUrl + url;\n - } else {\n - // relative to current path\n - var parts = loc.pathname.split("/");\n - parts.pop();\n - url = fullUrl + parts.join("/") + "/" + url;\n - }\n - }\n - \n - if (options.ignoreCase) {\n - url = url.toLowerCase(); \n - }\n -\n - var a = document.createElement(\'a\');\n - a.href = url;\n - \n - var urlObject = {};\n - \n - //host (without port)\n - urlObject.host = a.host.split(":").shift();\n -\n - //protocol\n - urlObject.protocol = a.protocol; \n -\n - //port (get uniform browser behavior with port 80 here)\n - if(options.ignorePort80) {\n - urlObject.port = (a.port == "80" || a.port == "0") ? "" : a.port;\n - } else {\n - urlObject.port = (a.port == "" || a.port == "0") ? "80" : a.port;\n - }\n -\n - //hash\n - urlObject.hash = (options.ignoreHash || a.hash === "#") ? "" : a.hash; \n - \n - //args\n - var queryString = a.search;\n - if (!queryString) {\n - var qMark = url.indexOf("?");\n - queryString = (qMark != -1) ? url.substr(qMark) : "";\n - }\n - urlObject.args = OpenLayers.Util.getParameters(queryString);\n -\n - // pathname\n - //\n - // This is a workaround for Internet Explorer where\n - // window.location.pathname has a leading "/", but\n - // a.pathname has no leading "/".\n - urlObject.pathname = (a.pathname.charAt(0) == "/") ? a.pathname : "/" + a.pathname;\n - \n - return urlObject; \n -};\n - \n -/**\n - * Function: removeTail\n - * Takes a url and removes everything after the ? and #\n - * \n - * Parameters:\n - * url - {String} The url to process\n - * \n - * Returns:\n - * {String} The string with all queryString and Hash removed\n - */\n -OpenLayers.Util.removeTail = function(url) {\n - var head = null;\n - \n - var qMark = url.indexOf("?");\n - var hashMark = url.indexOf("#");\n -\n - if (qMark == -1) {\n - head = (hashMark != -1) ? url.substr(0,hashMark) : url;\n - } else {\n - head = (hashMark != -1) ? url.substr(0,Math.min(qMark, hashMark)) \n - : url.substr(0, qMark);\n - }\n - return head;\n -};\n -\n -/**\n - * Constant: IS_GECKO\n - * {Boolean} True if the userAgent reports the browser to use the Gecko engine\n - */\n -OpenLayers.IS_GECKO = (function() {\n - var ua = navigator.userAgent.toLowerCase();\n - return ua.indexOf("webkit") == -1 && ua.indexOf("gecko") != -1;\n -})();\n -\n -/**\n - * Constant: CANVAS_SUPPORTED\n - * {Boolean} True if canvas 2d is supported.\n - */\n -OpenLayers.CANVAS_SUPPORTED = (function() {\n - var elem = document.createElement(\'canvas\');\n - return !!(elem.getContext && elem.getContext(\'2d\'));\n -})();\n -\n -/**\n - * Constant: BROWSER_NAME\n - * {String}\n - * A substring of the navigator.userAgent property. Depending on the userAgent\n - * property, this will be the empty string or one of the following:\n - * * "opera" -- Opera\n - * * "msie" -- Internet Explorer\n - * * "safari" -- Safari\n - * * "firefox" -- Firefox\n - * * "mozilla" -- Mozilla\n - */\n -OpenLayers.BROWSER_NAME = (function() {\n - var name = "";\n - var ua = navigator.userAgent.toLowerCase();\n - if (ua.indexOf("opera") != -1) {\n - name = "opera";\n - } else if (ua.indexOf("msie") != -1) {\n - name = "msie";\n - } else if (ua.indexOf("safari") != -1) {\n - name = "safari";\n - } else if (ua.indexOf("mozilla") != -1) {\n - if (ua.indexOf("firefox") != -1) {\n - name = "firefox";\n - } else {\n - name = "mozilla";\n - }\n - }\n - return name;\n -})();\n -\n -/**\n - * Function: getBrowserName\n - * \n - * Returns:\n - * {String} A string which specifies which is the current \n - * browser in which we are running. \n - * \n - * Currently-supported browser detection and codes:\n - * * \'opera\' -- Opera\n - * * \'msie\' -- Internet Explorer\n - * * \'safari\' -- Safari\n - * * \'firefox\' -- Firefox\n - * * \'mozilla\' -- Mozilla\n - * \n - * If we are unable to property identify the browser, we \n - * return an empty string.\n - */\n -OpenLayers.Util.getBrowserName = function() {\n - return OpenLayers.BROWSER_NAME;\n -};\n -\n -/**\n - * Method: getRenderedDimensions\n - * Renders the contentHTML offscreen to determine actual dimensions for\n - * popup sizing. As we need layout to determine dimensions the content\n - * is rendered -9999px to the left and absolute to ensure the \n - * scrollbars do not flicker\n - * \n - * Parameters:\n - * contentHTML\n - * size - {<OpenLayers.Size>} If either the \'w\' or \'h\' properties is \n - * specified, we fix that dimension of the div to be measured. This is \n - * useful in the case where we have a limit in one dimension and must \n - * therefore meaure the flow in the other dimension.\n - * options - {Object}\n - *\n - * Allowed Options:\n - * displayClass - {String} Optional parameter. A CSS class name(s) string\n - * to provide the CSS context of the rendered content.\n - * containerElement - {DOMElement} Optional parameter. Insert the HTML to \n - * this node instead of the body root when calculating dimensions. \n - * \n - * Returns:\n - * {<OpenLayers.Size>}\n - */\n -OpenLayers.Util.getRenderedDimensions = function(contentHTML, size, options) {\n - \n - var w, h;\n - \n - // create temp container div with restricted size\n - var container = document.createElement("div");\n - container.style.visibility = "hidden";\n - \n - var containerElement = (options && options.containerElement) \n - \t? options.containerElement : document.body;\n - \n - // Opera and IE7 can\'t handle a node with position:aboslute if it inherits\n - // position:absolute from a parent.\n - var parentHasPositionAbsolute = false;\n - var superContainer = null;\n - var parent = containerElement;\n - while (parent && parent.tagName.toLowerCase()!="body") {\n - var parentPosition = OpenLayers.Element.getStyle(parent, "position");\n - if(parentPosition == "absolute") {\n - parentHasPositionAbsolute = true;\n - break;\n - } else if (parentPosition && parentPosition != "static") {\n - break;\n - }\n - parent = parent.parentNode;\n - }\n - if(parentHasPositionAbsolute && (containerElement.clientHeight === 0 || \n - containerElement.clientWidth === 0) ){\n - superContainer = document.createElement("div");\n - superContainer.style.visibility = "hidden";\n - superContainer.style.position = "absolute";\n - superContainer.style.overflow = "visible";\n - superContainer.style.width = document.body.clientWidth + "px";\n - superContainer.style.height = document.body.clientHeight + "px";\n - superContainer.appendChild(container);\n - }\n - container.style.position = "absolute";\n -\n - //fix a dimension, if specified.\n - if (size) {\n - if (size.w) {\n - w = size.w;\n - container.style.width = w + "px";\n - } else if (size.h) {\n - h = size.h;\n - container.style.height = h + "px";\n - }\n - }\n -\n - //add css classes, if specified\n - if (options && options.displayClass) {\n - container.className = options.displayClass;\n - }\n - \n - // create temp content div and assign content\n - var content = document.createElement("div");\n - content.innerHTML = contentHTML;\n - \n - // we need overflow visible when calculating the size\n - content.style.overflow = "visible";\n - if (content.childNodes) {\n - for (var i=0, l=content.childNodes.length; i<l; i++) {\n - if (!content.childNodes[i].style) continue;\n - content.childNodes[i].style.overflow = "visible";\n - }\n - }\n - \n - // add content to restricted container \n - container.appendChild(content);\n - \n - // append container to body for rendering\n - if (superContainer) {\n - containerElement.appendChild(superContainer);\n - } else {\n - containerElement.appendChild(container);\n - }\n - \n - // calculate scroll width of content and add corners and shadow width\n - if (!w) {\n - w = parseInt(content.scrollWidth);\n - \n - // update container width to allow height to adjust\n - container.style.width = w + "px";\n - } \n - // capture height and add shadow and corner image widths\n - if (!h) {\n - h = parseInt(content.scrollHeight);\n - }\n -\n - // remove elements\n - container.removeChild(content);\n - if (superContainer) {\n - superContainer.removeChild(container);\n - containerElement.removeChild(superContainer);\n - } else {\n - containerElement.removeChild(container);\n - }\n - \n - return new OpenLayers.Size(w, h);\n -};\n -\n -/**\n - * APIFunction: getScrollbarWidth\n - * This function has been modified by the OpenLayers from the original version,\n - * written by Matthew Eernisse and released under the Apache 2 \n - * license here:\n - * \n - * http://www.fleegix.org/articles/2006/05/30/getting-the-scrollbar-width-in-pixels\n - * \n - * It has been modified simply to cache its value, since it is physically \n - * impossible that this code could ever run in more than one browser at \n - * once. \n - * \n - * Returns:\n - * {Integer}\n - */\n -OpenLayers.Util.getScrollbarWidth = function() {\n - \n - var scrollbarWidth = OpenLayers.Util._scrollbarWidth;\n - \n - if (scrollbarWidth == null) {\n - var scr = null;\n - var inn = null;\n - var wNoScroll = 0;\n - var wScroll = 0;\n - \n - // Outer scrolling div\n - scr = document.createElement(\'div\');\n - scr.style.position = \'absolute\';\n - scr.style.top = \'-1000px\';\n - scr.style.left = \'-1000px\';\n - scr.style.width = \'100px\';\n - scr.style.height = \'50px\';\n - // Start with no scrollbar\n - scr.style.overflow = \'hidden\';\n - \n - // Inner content div\n - inn = document.createElement(\'div\');\n - inn.style.width = \'100%\';\n - inn.style.height = \'200px\';\n - \n - // Put the inner div in the scrolling div\n - scr.appendChild(inn);\n - // Append the scrolling div to the doc\n - document.body.appendChild(scr);\n - \n - // Width of the inner div sans scrollbar\n - wNoScroll = inn.offsetWidth;\n - \n - // Add the scrollbar\n - scr.style.overflow = \'scroll\';\n - // Width of the inner div width scrollbar\n - wScroll = inn.offsetWidth;\n - \n - // Remove the scrolling div from the doc\n - document.body.removeChild(document.body.lastChild);\n - \n - // Pixel width of the scroller\n - OpenLayers.Util._scrollbarWidth = (wNoScroll - wScroll);\n - scrollbarWidth = OpenLayers.Util._scrollbarWidth;\n - }\n -\n - return scrollbarWidth;\n -};\n -\n -/**\n - * APIFunction: getFormattedLonLat\n - * This function will return latitude or longitude value formatted as \n - *\n - * Parameters:\n - * coordinate - {Float} the coordinate value to be formatted\n - * axis - {String} value of either \'lat\' or \'lon\' to indicate which axis is to\n - * to be formatted (default = lat)\n - * dmsOption - {String} specify the precision of the output can be one of:\n - * \'dms\' show degrees minutes and seconds\n - * \'dm\' show only degrees and minutes\n - * \'d\' show only degrees\n - * \n - * Returns:\n - * {String} the coordinate value formatted as a string\n - */\n -OpenLayers.Util.getFormattedLonLat = function(coordinate, axis, dmsOption) {\n - if (!dmsOption) {\n - dmsOption = \'dms\'; //default to show degree, minutes, seconds\n - }\n -\t\n -\tcoordinate = (coordinate+540)%360 - 180; // normalize for sphere being round\n -\t\n - var abscoordinate = Math.abs(coordinate);\n - var coordinatedegrees = Math.floor(abscoordinate);\n -\n - var coordinateminutes = (abscoordinate - coordinatedegrees)/(1/60);\n - var tempcoordinateminutes = coordinateminutes;\n - coordinateminutes = Math.floor(coordinateminutes);\n - var coordinateseconds = (tempcoordinateminutes - coordinateminutes)/(1/60);\n - coordinateseconds = Math.round(coordinateseconds*10);\n - coordinateseconds /= 10;\n -\n - if( coordinateseconds >= 60) { \n - coordinateseconds -= 60; \n - coordinateminutes += 1; \n - if( coordinateminutes >= 60) { \n - coordinateminutes -= 60; \n - coordinatedegrees += 1; \n - } \n - }\n - \n - if( coordinatedegrees < 10 ) {\n - coordinatedegrees = "0" + coordinatedegrees;\n - }\n - var str = coordinatedegrees + "\\u00B0";\n -\n - if (dmsOption.indexOf(\'dm\') >= 0) {\n - if( coordinateminutes < 10 ) {\n - coordinateminutes = "0" + coordinateminutes;\n - }\n - str += coordinateminutes + "\'";\n - \n - if (dmsOption.indexOf(\'dms\') >= 0) {\n - if( coordinateseconds < 10 ) {\n - coordinateseconds = "0" + coordinateseconds;\n - }\n - str += coordinateseconds + \'"\';\n - }\n - }\n - \n - if (axis == "lon") {\n - str += coordinate < 0 ? OpenLayers.i18n("W") : OpenLayers.i18n("E");\n - } else {\n - str += coordinate < 0 ? OpenLayers.i18n("S") : OpenLayers.i18n("N");\n - }\n - return str;\n -};\n -\n - - -]]></string> </value> - </item> - <item> - <key> <string>precondition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>size</string> </key> - <value> <int>59252</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/erp5_javascript_openlayers/bt/revision b/erp5_javascript_openlayers/bt/revision index 56a6051ca2b02b04ef92d5150c9ef600403cb1de..d8263ee9860594d2806b0dfd1bfd17528b0ba2a4 100644 --- a/erp5_javascript_openlayers/bt/revision +++ b/erp5_javascript_openlayers/bt/revision @@ -1 +1 @@ -1 \ No newline at end of file +2 \ No newline at end of file