Changeset 6579
- Timestamp:
- 03/22/08 13:26:27 (10 months ago)
- Files:
-
- sandbox/euzuro/pop/apidoc_config/Menu.txt (modified) (8 diffs)
- sandbox/euzuro/pop/build/full.cfg (modified) (1 diff)
- sandbox/euzuro/pop/build/library.cfg (modified) (1 diff)
- sandbox/euzuro/pop/build/lite.cfg (modified) (1 diff)
- sandbox/euzuro/pop/doc_config/Menu.txt (modified) (10 diffs)
- sandbox/euzuro/pop/examples/click.html (modified) (3 diffs)
- sandbox/euzuro/pop/examples/hover-handler.html (modified) (1 diff)
- sandbox/euzuro/pop/examples/layerswitcher.html (modified) (1 diff)
- sandbox/euzuro/pop/examples/styles-context.html (copied) (copied from trunk/openlayers/examples/styles-context.html)
- sandbox/euzuro/pop/examples/tasmania/sld-tasmania.xml (modified) (1 diff)
- sandbox/euzuro/pop/examples/wmc.html (modified) (2 diffs)
- sandbox/euzuro/pop/lib/OpenLayers/BaseTypes.js (modified) (1 diff)
- sandbox/euzuro/pop/lib/OpenLayers/Control/ScaleLine.js (modified) (2 diffs)
- sandbox/euzuro/pop/lib/OpenLayers/Control/SelectFeature.js (modified) (1 diff)
- sandbox/euzuro/pop/lib/OpenLayers/Format/GeoRSS.js (modified) (1 diff)
- sandbox/euzuro/pop/lib/OpenLayers/Format/SLD.js (modified) (1 diff)
- sandbox/euzuro/pop/lib/OpenLayers/Format/WMC.js (modified) (2 diffs)
- sandbox/euzuro/pop/lib/OpenLayers/Format/WMC/v1.js (modified) (1 diff)
- sandbox/euzuro/pop/lib/OpenLayers/Handler/Feature.js (modified) (2 diffs)
- sandbox/euzuro/pop/lib/OpenLayers/Handler/MouseWheel.js (modified) (1 diff)
- sandbox/euzuro/pop/lib/OpenLayers/Lang/cs-CZ.js (copied) (copied from trunk/openlayers/lib/OpenLayers/Lang/cs-CZ.js)
- sandbox/euzuro/pop/lib/OpenLayers/Layer.js (modified) (1 diff)
- sandbox/euzuro/pop/lib/OpenLayers/Layer/FixedZoomLevels.js (modified) (1 diff)
- sandbox/euzuro/pop/lib/OpenLayers/Layer/GML.js (modified) (1 diff)
- sandbox/euzuro/pop/lib/OpenLayers/Layer/GeoRSS.js (modified) (1 diff)
- sandbox/euzuro/pop/lib/OpenLayers/Renderer/Elements.js (modified) (1 diff)
- sandbox/euzuro/pop/lib/OpenLayers/Renderer/SVG.js (modified) (1 diff)
- sandbox/euzuro/pop/lib/OpenLayers/Style.js (modified) (5 diffs)
- sandbox/euzuro/pop/lib/OpenLayers/Tile/WFS.js (modified) (1 diff)
- sandbox/euzuro/pop/lib/OpenLayers/Util.js (modified) (6 diffs)
- sandbox/euzuro/pop/tests/Layer/test_Google.html (modified) (1 diff)
- sandbox/euzuro/pop/tests/Layer/test_Grid.html (modified) (1 diff)
- sandbox/euzuro/pop/tests/test_BaseTypes.html (modified) (2 diffs)
- sandbox/euzuro/pop/tests/test_Style.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/euzuro/pop/apidoc_config/Menu.txt
r5553 r6579 67 67 Group: Control { 68 68 69 File: Control (OpenLayers/Control.js) 70 71 Group: Control { 72 73 File: ArgParser (no auto-title, OpenLayers/Control/ArgParser.js) 74 File: Attribution (no auto-title, OpenLayers/Control/Attribution.js) 75 File: DragFeature (no auto-title, OpenLayers/Control/DragFeature.js) 76 File: DragPan (OpenLayers/Control/DragPan.js) 77 File: DrawFeature (no auto-title, OpenLayers/Control/DrawFeature.js) 78 File: EditingToolbar (no auto-title, OpenLayers/Control/EditingToolbar.js) 79 File: KeyboardDefaults (no auto-title, OpenLayers/Control/KeyboardDefaults.js) 80 File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js) 81 File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js) 82 File: MouseDefaults (no auto-title, OpenLayers/Control/MouseDefaults.js) 83 File: MousePosition (no auto-title, OpenLayers/Control/MousePosition.js) 84 File: MouseToolbar (no auto-title, OpenLayers/Control/MouseToolbar.js) 85 File: Navigation (no auto-title, OpenLayers/Control/Navigation.js) 86 File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js) 87 File: OverviewMap (no auto-title, OpenLayers/Control/OverviewMap.js) 88 File: Panel (no auto-title, OpenLayers/Control/Panel.js) 89 File: PanZoom (no auto-title, OpenLayers/Control/PanZoom.js) 90 File: PanZoomBar (no auto-title, OpenLayers/Control/PanZoomBar.js) 91 File: Permalink (no auto-title, OpenLayers/Control/Permalink.js) 92 File: Scale (no auto-title, OpenLayers/Control/Scale.js) 93 File: SelectFeature (no auto-title, OpenLayers/Control/SelectFeature.js) 94 File: ZoomBox (OpenLayers/Control/ZoomBox.js) 95 File: ZoomToMaxExtent (OpenLayers/Control/ZoomToMaxExtent.js) 96 } # Group: Control 97 69 File: Control (no auto-title, OpenLayers/Control.js) 70 File: ArgParser (no auto-title, OpenLayers/Control/ArgParser.js) 71 File: Attribution (no auto-title, OpenLayers/Control/Attribution.js) 72 File: Control.Button (no auto-title, OpenLayers/Control/Button.js) 73 File: DragFeature (no auto-title, OpenLayers/Control/DragFeature.js) 74 File: DragPan (no auto-title, OpenLayers/Control/DragPan.js) 75 File: DrawFeature (no auto-title, OpenLayers/Control/DrawFeature.js) 76 File: EditingToolbar (no auto-title, OpenLayers/Control/EditingToolbar.js) 77 File: KeyboardDefaults (no auto-title, OpenLayers/Control/KeyboardDefaults.js) 78 File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js) 79 File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js) 80 File: MouseDefaults (no auto-title, OpenLayers/Control/MouseDefaults.js) 81 File: MousePosition (no auto-title, OpenLayers/Control/MousePosition.js) 82 File: MouseToolbar (no auto-title, OpenLayers/Control/MouseToolbar.js) 83 File: Navigation (no auto-title, OpenLayers/Control/Navigation.js) 84 File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js) 85 File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js) 86 File: OverviewMap (no auto-title, OpenLayers/Control/OverviewMap.js) 87 File: Panel (no auto-title, OpenLayers/Control/Panel.js) 88 File: PanZoom (no auto-title, OpenLayers/Control/PanZoom.js) 89 File: PanZoomBar (no auto-title, OpenLayers/Control/PanZoomBar.js) 90 File: Permalink (no auto-title, OpenLayers/Control/Permalink.js) 91 File: Scale (no auto-title, OpenLayers/Control/Scale.js) 92 File: ScaleLine (no auto-title, OpenLayers/Control/ScaleLine.js) 93 File: SelectFeature (no auto-title, OpenLayers/Control/SelectFeature.js) 94 File: ZoomBox (no auto-title, OpenLayers/Control/ZoomBox.js) 95 File: ZoomToMaxExtent (no auto-title, OpenLayers/Control/ZoomToMaxExtent.js) 98 96 } # Group: Control 99 97 … … 109 107 Group: Format { 110 108 111 File: Format (OpenLayers/Format.js) 112 113 Group: Format { 114 115 File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js) 116 File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js) 117 File: GML (no auto-title, OpenLayers/Format/GML.js) 118 File: JSON (no auto-title, OpenLayers/Format/JSON.js) 119 File: KML (no auto-title, OpenLayers/Format/KML.js) 120 File: SLD (OpenLayers/Format/SLD.js) 121 File: Text (no auto-title, OpenLayers/Format/Text.js) 122 File: WFS (no auto-title, OpenLayers/Format/WFS.js) 123 File: WKT (no auto-title, OpenLayers/Format/WKT.js) 124 File: XML (no auto-title, OpenLayers/Format/XML.js) 125 } # Group: Format 126 109 File: Format (no auto-title, OpenLayers/Format.js) 110 File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js) 111 File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js) 112 File: GML (no auto-title, OpenLayers/Format/GML.js) 113 File: JSON (no auto-title, OpenLayers/Format/JSON.js) 114 File: KML (no auto-title, OpenLayers/Format/KML.js) 115 File: OSM (no auto-title, OpenLayers/Format/OSM.js) 116 File: SLD (no auto-title, OpenLayers/Format/SLD.js) 117 File: Text (no auto-title, OpenLayers/Format/Text.js) 118 File: WFS (no auto-title, OpenLayers/Format/WFS.js) 119 File: WKT (no auto-title, OpenLayers/Format/WKT.js) 120 121 Group: WMC { 122 123 File: WMC (no auto-title, OpenLayers/Format/WMC.js) 124 File: v1 (no auto-title, OpenLayers/Format/WMC/v1.js) 125 File: v1_0_0 (no auto-title, OpenLayers/Format/WMC/v1_0_0.js) 126 File: v1_1_0 (no auto-title, OpenLayers/Format/WMC/v1_1_0.js) 127 } # Group: WMC 128 129 File: XML (no auto-title, OpenLayers/Format/XML.js) 127 130 } # Group: Format 128 131 … … 150 153 File: Drag (no auto-title, OpenLayers/Handler/Drag.js) 151 154 File: Feature (no auto-title, OpenLayers/Handler/Feature.js) 155 File: Hover (no auto-title, OpenLayers/Handler/Hover.js) 152 156 File: Keyboard (no auto-title, OpenLayers/Handler/Keyboard.js) 153 157 File: MouseWheel (no auto-title, OpenLayers/Handler/MouseWheel.js) … … 159 163 160 164 File: Icon (no auto-title, OpenLayers/Icon.js) 165 166 Group: Lang { 167 168 File: Lang (no auto-title, OpenLayers/Lang.js) 169 File: Lang["de"] (no auto-title, OpenLayers/Lang/de.js) 170 File: Lang["en"] (no auto-title, OpenLayers/Lang/en.js) 171 File: Lang["en-CA"] (no auto-title, OpenLayers/Lang/en-CA.js) 172 File: Lang["fr"] (no auto-title, OpenLayers/Lang/fr.js) 173 } # Group: Lang 161 174 162 175 Group: Layer { … … 173 186 File: Image (no auto-title, OpenLayers/Layer/Image.js) 174 187 File: KaMap (no auto-title, OpenLayers/Layer/KaMap.js) 188 File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js) 175 189 File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js) 176 190 File: MapServer.Untiled (no auto-title, OpenLayers/Layer/MapServer/Untiled.js) 177 191 File: Markers (no auto-title, OpenLayers/Layer/Markers.js) 178 192 File: MultiMap (no auto-title, OpenLayers/Layer/MultiMap.js) 193 File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js) 179 194 File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js) 180 195 File: Text (no auto-title, OpenLayers/Layer/Text.js) … … 198 213 } # Group: Marker 199 214 200 File: Projection (no auto-title, OpenLayers/Projection.js)201 File: Rule (no auto-title, OpenLayers/Rule.js)202 File: Style (no auto-title, OpenLayers/Style.js)203 204 215 Group: Popup { 205 216 206 File: Popup ( OpenLayers/Popup.js)217 File: Popup (no auto-title, OpenLayers/Popup.js) 207 218 File: Anchored (no auto-title, OpenLayers/Popup/Anchored.js) 208 219 File: AnchoredBubble (no auto-title, OpenLayers/Popup/AnchoredBubble.js) 209 220 } # Group: Popup 210 221 222 File: Projection (no auto-title, OpenLayers/Projection.js) 223 211 224 Group: Renderer { 212 225 213 File: Renderer ( OpenLayers/Renderer.js)226 File: Renderer (no auto-title, OpenLayers/Renderer.js) 214 227 File: Elements (no auto-title, OpenLayers/Renderer/Elements.js) 215 228 File: SVG (no auto-title, OpenLayers/Renderer/SVG.js) … … 217 230 } # Group: Renderer 218 231 232 Group: Rule { 233 234 File: Rule (no auto-title, OpenLayers/Rule.js) 235 File: Comparison (no auto-title, OpenLayers/Rule/Comparison.js) 236 File: FeatureId (no auto-title, OpenLayers/Rule/FeatureId.js) 237 File: Logical (no auto-title, OpenLayers/Rule/Logical.js) 238 } # Group: Rule 239 240 File: Style (no auto-title, OpenLayers/Style.js) 241 File: StyleMap (no auto-title, OpenLayers/StyleMap.js) 242 219 243 Group: Tile { 220 244 … … 224 248 } # Group: Tile 225 249 226 Group: Rule { 227 228 File: Comparison (no auto-title, OpenLayers/Rule/Comparison.js) 229 File: FeatureId (no auto-title, OpenLayers/Rule/FeatureId.js) 230 File: Logical (no auto-title, OpenLayers/Rule/Logical.js) 231 } # Group: Rule 232 233 File: Util (OpenLayers/Util.js) 250 File: Tween (no auto-title, OpenLayers/Tween.js) 251 File: Util (no auto-title, OpenLayers/Util.js) 234 252 } # Group: OpenLayers 235 253 sandbox/euzuro/pop/build/full.cfg
r6402 r6579 17 17 OpenLayers/Lang/en-CA.js 18 18 OpenLayers/Lang/fr.js 19 OpenLayers/Lang/cs-CZ.js sandbox/euzuro/pop/build/library.cfg
r3601 r6579 47 47 OpenLayers/Renderer/VML.js 48 48 OpenLayers/Renderer.js 49 OpenLayers/Lang/de.js 50 OpenLayers/Lang/en-CA.js 51 OpenLayers/Lang/fr.js 52 OpenLayers/Lang/cs-CZ.js 49 53 50 54 sandbox/euzuro/pop/build/lite.cfg
r3601 r6579 22 22 Firebug/firebug.js 23 23 Firebug/firebugx.js 24 OpenLayers/Lang/de.js 25 OpenLayers/Lang/en-CA.js 26 OpenLayers/Lang/fr.js 27 OpenLayers/Lang/cs-CZ.js 28 sandbox/euzuro/pop/doc_config/Menu.txt
r5553 r6579 67 67 Group: Control { 68 68 69 File: Control ( OpenLayers/Control.js)69 File: Control (no auto-title, OpenLayers/Control.js) 70 70 File: ArgParser (no auto-title, OpenLayers/Control/ArgParser.js) 71 71 File: Attribution (no auto-title, OpenLayers/Control/Attribution.js) 72 File: Control.Button (no auto-title, OpenLayers/Control/Button.js) 72 73 File: DragFeature (no auto-title, OpenLayers/Control/DragFeature.js) 73 74 File: DragPan (no auto-title, OpenLayers/Control/DragPan.js) … … 81 82 File: MouseToolbar (no auto-title, OpenLayers/Control/MouseToolbar.js) 82 83 File: Navigation (no auto-title, OpenLayers/Control/Navigation.js) 84 File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js) 83 85 File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js) 84 86 File: OverviewMap (no auto-title, OpenLayers/Control/OverviewMap.js) … … 88 90 File: Permalink (no auto-title, OpenLayers/Control/Permalink.js) 89 91 File: Scale (no auto-title, OpenLayers/Control/Scale.js) 92 File: ScaleLine (no auto-title, OpenLayers/Control/ScaleLine.js) 90 93 File: SelectFeature (no auto-title, OpenLayers/Control/SelectFeature.js) 91 94 File: ZoomBox (no auto-title, OpenLayers/Control/ZoomBox.js) … … 105 108 106 109 File: Format (no auto-title, OpenLayers/Format.js) 107 108 Group: Format { 109 110 File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js) 111 File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js) 112 File: GML (no auto-title, OpenLayers/Format/GML.js) 113 File: JSON (no auto-title, OpenLayers/Format/JSON.js) 114 File: KML (no auto-title, OpenLayers/Format/KML.js) 115 File: SLD (OpenLayers/Format/SLD.js) 116 File: Text (no auto-title, OpenLayers/Format/Text.js) 117 File: WFS (no auto-title, OpenLayers/Format/WFS.js) 118 File: WKT (no auto-title, OpenLayers/Format/WKT.js) 119 File: XML (no auto-title, OpenLayers/Format/XML.js) 120 } # Group: Format 121 110 File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js) 111 File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js) 112 File: GML (no auto-title, OpenLayers/Format/GML.js) 113 File: JSON (no auto-title, OpenLayers/Format/JSON.js) 114 File: KML (no auto-title, OpenLayers/Format/KML.js) 115 File: OSM (no auto-title, OpenLayers/Format/OSM.js) 116 File: SLD (no auto-title, OpenLayers/Format/SLD.js) 117 File: Text (no auto-title, OpenLayers/Format/Text.js) 118 File: WFS (no auto-title, OpenLayers/Format/WFS.js) 119 File: WKT (no auto-title, OpenLayers/Format/WKT.js) 120 121 Group: WMC { 122 123 File: WMC (no auto-title, OpenLayers/Format/WMC.js) 124 File: v1 (no auto-title, OpenLayers/Format/WMC/v1.js) 125 File: v1_0_0 (no auto-title, OpenLayers/Format/WMC/v1_0_0.js) 126 File: v1_1_0 (no auto-title, OpenLayers/Format/WMC/v1_1_0.js) 127 } # Group: WMC 128 129 File: XML (no auto-title, OpenLayers/Format/XML.js) 122 130 } # Group: Format 123 131 … … 145 153 File: Drag (no auto-title, OpenLayers/Handler/Drag.js) 146 154 File: Feature (no auto-title, OpenLayers/Handler/Feature.js) 155 File: Hover (no auto-title, OpenLayers/Handler/Hover.js) 147 156 File: Keyboard (no auto-title, OpenLayers/Handler/Keyboard.js) 148 157 File: MouseWheel (no auto-title, OpenLayers/Handler/MouseWheel.js) … … 154 163 155 164 File: Icon (no auto-title, OpenLayers/Icon.js) 165 166 Group: Lang { 167 168 File: Lang (no auto-title, OpenLayers/Lang.js) 169 File: Lang["de"] (no auto-title, OpenLayers/Lang/de.js) 170 File: Lang["en"] (no auto-title, OpenLayers/Lang/en.js) 171 File: Lang["en-CA"] (no auto-title, OpenLayers/Lang/en-CA.js) 172 File: Lang["fr"] (no auto-title, OpenLayers/Lang/fr.js) 173 } # Group: Lang 156 174 157 175 Group: Layer { … … 168 186 File: Image (no auto-title, OpenLayers/Layer/Image.js) 169 187 File: KaMap (no auto-title, OpenLayers/Layer/KaMap.js) 188 File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js) 170 189 File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js) 171 190 File: MapServer.Untiled (no auto-title, OpenLayers/Layer/MapServer/Untiled.js) 172 191 File: Markers (no auto-title, OpenLayers/Layer/Markers.js) 173 192 File: MultiMap (no auto-title, OpenLayers/Layer/MultiMap.js) 193 File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js) 174 194 File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js) 175 195 File: Text (no auto-title, OpenLayers/Layer/Text.js) … … 193 213 } # Group: Marker 194 214 195 File: Projection (no auto-title, OpenLayers/Projection.js)196 File: Rule (no auto-title, OpenLayers/Rule.js)197 File: Style (no auto-title, OpenLayers/Style.js)198 199 215 Group: Popup { 200 216 201 File: Popup ( OpenLayers/Popup.js)217 File: Popup (no auto-title, OpenLayers/Popup.js) 202 218 File: Anchored (no auto-title, OpenLayers/Popup/Anchored.js) 203 219 File: AnchoredBubble (no auto-title, OpenLayers/Popup/AnchoredBubble.js) 204 220 } # Group: Popup 205 221 222 File: Projection (no auto-title, OpenLayers/Projection.js) 223 206 224 Group: Renderer { 207 225 208 File: Renderer ( OpenLayers/Renderer.js)226 File: Renderer (no auto-title, OpenLayers/Renderer.js) 209 227 File: Elements (no auto-title, OpenLayers/Renderer/Elements.js) 210 228 File: SVG (no auto-title, OpenLayers/Renderer/SVG.js) … … 212 230 } # Group: Renderer 213 231 232 Group: Rule { 233 234 File: Rule (no auto-title, OpenLayers/Rule.js) 235 File: Comparison (no auto-title, OpenLayers/Rule/Comparison.js) 236 File: FeatureId (no auto-title, OpenLayers/Rule/FeatureId.js) 237 File: Logical (no auto-title, OpenLayers/Rule/Logical.js) 238 } # Group: Rule 239 240 File: Style (no auto-title, OpenLayers/Style.js) 241 File: StyleMap (no auto-title, OpenLayers/StyleMap.js) 242 214 243 Group: Tile { 215 244 … … 219 248 } # Group: Tile 220 249 221 Group: Rule { 222 223 File: Comparison (no auto-title, OpenLayers/Rule/Comparison.js) 224 File: FeatureId (no auto-title, OpenLayers/Rule/FeatureId.js) 225 File: Logical (no auto-title, OpenLayers/Rule/Logical.js) 226 } # Group: Rule 227 228 File: Util (OpenLayers/Util.js) 250 File: Tween (no auto-title, OpenLayers/Tween.js) 251 File: Util (no auto-title, OpenLayers/Util.js) 229 252 } # Group: OpenLayers 230 253 sandbox/euzuro/pop/examples/click.html
r6500 r6579 13 13 <script src="../lib/OpenLayers.js"></script> 14 14 <script type="text/javascript"> 15 OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { 16 defaultHandlerOptions: { 17 'single': true, 18 'double': false, 19 'pixelTolerance': 0, 20 'stopSingle': false, 21 'stopDouble': false 22 }, 23 24 initialize: function(options) { 25 this.handlerOptions = OpenLayers.Util.extend( 26 {}, this.defaultHandlerOptions 27 ); 28 OpenLayers.Control.prototype.initialize.apply( 29 this, arguments 30 ); 31 this.handler = new OpenLayers.Handler.Click( 32 this, { 33 'click': this.trigger, 34 }, this.handlerOptions 35 ); 36 }, 37 38 trigger: function(e) { 39 var lonlat = map.getLonLatFromViewPortPx(e.xy); 40 alert("You clicked near " + lonlat.lat + " N, " + 41 + lonlat.lon + " E"); 42 }, 43 44 }); 15 45 var map; 16 46 function init(){ … … 30 60 // map.setCenter(new OpenLayers.LonLat(0, 0), 0); 31 61 map.zoomToMaxExtent(); 32 map.events.register("click", map, function(e) {33 var lonlat = map.getLonLatFromViewPortPx(e.xy);34 alert("You clicked near " + lonlat.lat + " N, " +35 + lonlat.lon + " E");36 }); 62 63 var click = new OpenLayers.Control.Click(); 64 map.addControl(click); 65 click.activate(); 66 37 67 } 38 68 </script> … … 45 75 46 76 <p id="shortdesc"> 47 This example shows the use of the register and getLonLatFromViewPortPx functions to trigger events on mouse click. 77 This example shows the use of the click handler and getLonLatFromViewPortPx functions to trigger events on mouse click. 78 48 79 </p> 49 80 50 81 <div id="map"></div> 51 82 52 <div id="docs"></div> 83 <div id="docs"> 84 Using the Click handler allows you to (for example) catch clicks without catching double clicks, something that standard browser events don't do for you. (Try double clicking: you'll zoom in, whereas using the browser click event, you would just get two alerts.) This example click control shows you how to use it. 85 </div> 53 86 </body> 54 87 </html> sandbox/euzuro/pop/examples/hover-handler.html
r6253 r6579 121 121 } 122 122 123 map.addControl(new OpenLayers.Control.MousePosition()); 123 124 map.zoomToMaxExtent(); 124 125 } sandbox/euzuro/pop/examples/layerswitcher.html
r6500 r6579 15 15 function init(){ 16 16 map = new OpenLayers.Map('map', { controls: [] }); 17 map.addControl(new OpenLayers.Control.Navigation()); 17 18 18 19 map.addControl(new OpenLayers.Control.LayerSwitcher({'div':OpenLayers.Util.getElement('layerswitcher')})); sandbox/euzuro/pop/examples/tasmania/sld-tasmania.xml
r5964 r6579 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 <sld:StyledLayerDescriptor xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink=" www.w3.org/1999/xlink">2 <sld:StyledLayerDescriptor xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink"> 3 3 <sld:NamedLayer> 4 4 <sld:Name>WaterBodies</sld:Name> sandbox/euzuro/pop/examples/wmc.html
r6253 r6579 20 20 OpenLayers.Util.onImageLoadErrorColor = "transparent"; 21 21 22 var format = new OpenLayers.Format.WMC( );22 var format = new OpenLayers.Format.WMC({'layerOptions': {buffer: 0}}); 23 23 var doc, context, map; 24 24 … … 138 138 <textarea id="wmc">paste WMC doc here</textarea> 139 139 <div id="docs"> 140 This is an example of parsing WMC documents. 140 This is an example of parsing WMC documents. <br /> 141 The format class has a layerOptions property, which can be used 142 to control the default options of the layer when it is created 143 by the parser. 141 144 </div> 142 145 </body> sandbox/euzuro/pop/lib/OpenLayers/BaseTypes.js
r6325 r6579 107 107 * to the tokens in the format string. If no context is sent, the 108 108 * window object will be used. 109 * args - {Array} Optional arguments to pass to any functions found in 110 * the context. If a context property is a function, the token 111 * will be replaced by the return from the function called with 112 * these arguments. 109 113 * 110 114 * Returns: 111 115 * {String} A string with tokens replaced from the context object. 112 116 */ 113 format: function(template, context ) {117 format: function(template, context, args) { 114 118 if(!context) { 115 119 context = window; 116 120 } 117 121 var tokens = template.split("${"); 118 var item, last ;122 var item, last, replacement; 119 123 for(var i=1; i<tokens.length; i++) { 120 124 item = tokens[i]; 121 125 last = item.indexOf("}"); 122 if(last > 0) { 123 tokens[i] = context[item.substring(0, last)] + 124 item.substring(++last); 126 if(last > 0) { 127 replacement = context[item.substring(0, last)]; 128 if(typeof replacement == "function") { 129 replacement = args ? 130 replacement.apply(null, args) : 131 replacement(); 132 } 133 tokens[i] = replacement + item.substring(++last); 125 134 } else { 126 135 tokens[i] = "${" + item; sandbox/euzuro/pop/lib/OpenLayers/Control/ScaleLine.js
r6461 r6579 155 155 } 156 156 157 var curMapUnits = this.map.units; 158 var inches = OpenLayers.INCHES_PER_UNIT; 159 157 160 // convert maxWidth to map units 158 var maxSizeData = this.maxWidth * res ;161 var maxSizeData = this.maxWidth * res * inches[curMapUnits]; 159 162 160 163 // decide whether to use large or small scale units 161 164 var topUnits; 162 165 var bottomUnits; 163 if(maxSizeData > 0.1) {166 if(maxSizeData > 100000) { 164 167 topUnits = this.topOutUnits; 165 168 bottomUnits = this.bottomOutUnits; … … 170 173 171 174 // and to map units units 172 var curMapUnits = this.map.units; 173 var inches = OpenLayers.INCHES_PER_UNIT; 174 var topMax = maxSizeData * inches[curMapUnits] / inches[topUnits]; 175 var bottomMax = maxSizeData * inches[curMapUnits] / inches[bottomUnits]; 175 var topMax = maxSizeData / inches[topUnits]; 176 var bottomMax = maxSizeData / inches[bottomUnits]; 176 177 177 178 // now trim this down to useful block length sandbox/euzuro/pop/lib/OpenLayers/Control/SelectFeature.js
r6253 r6579 7 7 * @requires OpenLayers/Control.js 8 8 * @requires OpenLayers/Feature/Vector.js 9 * @requires OpenLayers/Handler/Feature.js 9 10 */ 10 11 sandbox/euzuro/pop/lib/OpenLayers/Format/GeoRSS.js
r5837 r6579 165 165 166 166 /** 167 * Method: create GeometryFromItem167 * Method: createFeatureFromItem 168 168 * Return a feature from a GeoRSS Item. 169 169 * sandbox/euzuro/pop/lib/OpenLayers/Format/SLD.js
r6136 r6579 369 369 var rule = new OpenLayers.Rule.Logical( 370 370 {type: OpenLayers.Rule.Logical.NOT}); 371 rule.rules.push(this.parseFilter(filter[0])); 371 var filters = filter[0].childNodes; 372 for (var i=0; i<filters.length; i++) { 373 if (filters[i].nodeType == 1) { 374 rule.rules.push(this.parseFilter(filters[i])); 375 } 376 } 372 377 return rule; 373 378 } sandbox/euzuro/pop/lib/OpenLayers/Format/WMC.js
r6402 r6579 27 27 */ 28 28 version: null, 29 30 /** 31 * Property: layerOptions 32 * {Object} Default options for layers created by the parser. These 33 * options are overridden by the options which are read from the 34 * capabilities document. 35 */ 36 layerOptions: null, 29 37 30 38 /** … … 81 89 ]; 82 90 if(!format) { 83 throw "Can't find a WM S capabilitiesparser for version " +91 throw "Can't find a WMC parser for version " + 84 92 version; 85 93 } sandbox/euzuro/pop/lib/OpenLayers/Format/WMC/v1.js
r6402 r6579 194 194 */ 195 195 getLayerFromInfo: function(layerInfo) { 196 var options = layerInfo.options; 197 if (this.layerOptions) { 198 OpenLayers.Util.applyDefaults(options, this.layerOptions); 199 } 196 200 var layer = new OpenLayers.Layer.WMS( 197 201 layerInfo.title, 198 202 layerInfo.href, 199 203 layerInfo.params, 200 layerInfo.options204 options 201 205 ); 202 206 return layer; sandbox/euzuro/pop/lib/OpenLayers/Handler/Feature.js
r5976 r6579 34 34 /** 35 35 * Property: feature 36 * {<OpenLayers.Feature.Vector>} The feature currently being handled.36 * {<OpenLayers.Feature.Vector>} The last feature that was hovered. 37 37 */ 38 38 feature: null, … … 247 247 this.triggerCallback(type, 'out', [this.lastFeature]); 248 248 } 249 // next time the mouse goes in a feature whose geometry type 250 // doesn't match we don't want to call the 'out' callback 251 // again, so let's set this.feature to null so that 252 // previouslyIn will evaluate to false the next time 253 // we enter handle. Yes, a bit hackish... 254 this.feature = null; 249 255 } 250 256 } else { sandbox/euzuro/pop/lib/OpenLayers/Handler/MouseWheel.js
r6417 r6579 105 105 if (!overLayerDiv) { 106 106 for(var i=0; i < this.map.layers.length; i++) { 107 if (elem == this.map.layers[i].div) { 107 // Are we in the layer div? Note that we have two cases 108 // here: one is to catch EventPane layers, which have a 109 // pane above the layer (layer.pane) 110 if (elem == this.map.layers[i].div 111 || elem == this.map.layers[i].pane) { 108 112 overLayerDiv = true; 109 113 break; sandbox/euzuro/pop/lib/OpenLayers/Layer.js
r6461 r6579 605 605 */ 606 606 display: function(display) { 607 var inRange = this.calculateInRange(); 607 608 if (display != (this.div.style.display != "none")) { 608 this.div.style.display = (display ) ? "block" : "none";609 this.div.style.display = (display && inRange) ? "block" : "none"; 609 610 } 610 611 }, sandbox/euzuro/pop/lib/OpenLayers/Layer/FixedZoomLevels.js
r5614 r6579 111 111 this.resolutions[resolutionsIndex++] = this.RESOLUTIONS[i]; 112 112 } 113 } 113 this.maxResolution = this.resolutions[0]; 114 this.minResolution = this.resolutions[this.resolutions.length - 1]; 115 } 114 116 }, 115 117 sandbox/euzuro/pop/lib/OpenLayers/Layer/GML.js
r6500 r6579 132 132 var doc = request.responseXML; 133 133 134 if (!doc ) {134 if (!doc || !doc.documentElement) { 135 135 doc = request.responseText; 136 136 } sandbox/euzuro/pop/lib/OpenLayers/Layer/GeoRSS.js
r6500 r6579 132 132 parseData: function(ajaxRequest) { 133 133 var doc = ajaxRequest.responseXML; 134 if (!doc ) {135 doc = OpenLayers. parseXMLString(ajaxRequest.responseText);134 if (!doc || !doc.documentElement) { 135 doc = OpenLayers.Format.XML.prototype.read(ajaxRequest.responseText); 136 136 } 137 137 sandbox/euzuro/pop/lib/OpenLayers/Renderer/Elements.js
r6325 r6579 177 177 var options = { 178 178 'isFilled': true, 179 'isStroked': true179 'isStroked': !!style.strokeWidth 180 180 }; 181 181 switch (geometry.CLASS_NAME) { sandbox/euzuro/pop/lib/OpenLayers/Renderer/SVG.js
r6402 r6579 193 193 style = style || node._style; 194 194 options = options || node._options; 195 var x = node.getAttributeNS(null, "cx"); 196 // if x equals "", the node is outside the valid range 197 if (node._geometryClass == "OpenLayers.Geometry.Point" && x) { 195 var r = parseFloat(node.getAttributeNS(null, "r")); 196 if (node._geometryClass == "OpenLayers.Geometry.Point" && r) { 198 197 if (style.externalGraphic) { 199 x = parseFloat(x);198 var x = parseFloat(node.getAttributeNS(null, "cx")); 200 199 var y = parseFloat(node.getAttributeNS(null, "cy")); 201 200 sandbox/euzuro/pop/lib/OpenLayers/Style.js
r6402 r6579 116 116 */ 117 117 createSymbolizer: function(feature) { 118 var style = OpenLayers.Util.extend({}, this.defaultStyle); 118 var style = this.createLiterals( 119 OpenLayers.Util.extend({}, this.defaultStyle), feature); 119 120 120 121 var rules = this.rules; … … 174 175 var symbolizer = rule.symbolizer[symbolizerPrefix] || rule.symbolizer; 175 176 176 var context = this.context || feature.attributes || feature.data;177 178 177 // merge the style with the current style 179 178 return this.createLiterals( 180 OpenLayers.Util.extend(style, symbolizer), context);179 OpenLayers.Util.extend(style, symbolizer), feature); 181 180 }, 182 181 … … 189 188 * style - {Object} style to create literals for. Will be modified 190 189 * inline. 191 * context - {Object} context to take property values from. Defaults to 192 * feature.attributes (or feature.data, if attributes are not 193 * available) 190 * feature - {Object} 194 191 * 195 192 * Returns: 196 193 * {Object} the modified style 197 194 */ 198 <
