postrunner 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/lib/postrunner/ActivitiesDB.rb +8 -9
- data/lib/postrunner/Activity.rb +7 -1
- data/lib/postrunner/ActivityView.rb +10 -2
- data/lib/postrunner/DataSources.rb +100 -0
- data/lib/postrunner/DeviceList.rb +40 -17
- data/lib/postrunner/Log.rb +25 -0
- data/lib/postrunner/Main.rb +9 -8
- data/lib/postrunner/RuntimeConfig.rb +1 -0
- data/lib/postrunner/TrackView.rb +39 -62
- data/lib/postrunner/version.rb +1 -1
- data/misc/openlayers/ol.css +1 -0
- data/misc/openlayers/ol.js +948 -0
- data/postrunner.gemspec +2 -2
- data/spec/PostRunner_spec.rb +22 -23
- data/spec/spec_helper.rb +34 -4
- metadata +11 -1214
- data/misc/openlayers/.gitignore +0 -7
- data/misc/openlayers/OpenLayers.debug.js +0 -85622
- data/misc/openlayers/OpenLayers.js +0 -1443
- data/misc/openlayers/OpenLayers.light.debug.js +0 -37230
- data/misc/openlayers/OpenLayers.light.js +0 -592
- data/misc/openlayers/OpenLayers.mobile.debug.js +0 -41831
- data/misc/openlayers/OpenLayers.mobile.js +0 -681
- data/misc/openlayers/apidoc_config/Languages.txt +0 -113
- data/misc/openlayers/apidoc_config/Menu.txt +0 -520
- data/misc/openlayers/apidoc_config/OL.css +0 -20
- data/misc/openlayers/apidoc_config/Topics.txt +0 -105
- data/misc/openlayers/art/arrows.svg +0 -127
- data/misc/openlayers/art/layer-switcher-maximize.svg +0 -128
- data/misc/openlayers/art/layer-switcher-minimize.svg +0 -142
- data/misc/openlayers/art/marker.svg +0 -25
- data/misc/openlayers/art/measuring-stick-off.svg +0 -36
- data/misc/openlayers/art/measuring-stick-on.svg +0 -36
- data/misc/openlayers/art/panning-hand-off.svg +0 -44
- data/misc/openlayers/art/panning-hand-on.svg +0 -44
- data/misc/openlayers/art/slider.svg +0 -71
- data/misc/openlayers/art/zoom-world.svg +0 -193
- data/misc/openlayers/art/zoombar.svg +0 -73
- data/misc/openlayers/authors.txt +0 -56
- data/misc/openlayers/build/README.txt +0 -46
- data/misc/openlayers/build/build.py +0 -158
- data/misc/openlayers/build/buildUncompressed.py +0 -25
- data/misc/openlayers/build/closure-compiler/Externs.js +0 -50
- data/misc/openlayers/build/full.cfg +0 -14
- data/misc/openlayers/build/license.txt +0 -57
- data/misc/openlayers/build/light.cfg +0 -32
- data/misc/openlayers/build/lite.cfg +0 -17
- data/misc/openlayers/build/mobile.cfg +0 -36
- data/misc/openlayers/build/tests.cfg +0 -11
- data/misc/openlayers/doc_config/Data/ClassHierarchy.nd +0 -0
- data/misc/openlayers/doc_config/Data/ConfigFileInfo.nd +0 -0
- data/misc/openlayers/doc_config/Data/FileInfo.nd +0 -323
- data/misc/openlayers/doc_config/Data/ImageFileInfo.nd +0 -0
- data/misc/openlayers/doc_config/Data/ImageReferenceTable.nd +0 -0
- data/misc/openlayers/doc_config/Data/IndexInfo.nd +0 -0
- data/misc/openlayers/doc_config/Data/PreviousMenuState.nd +0 -0
- data/misc/openlayers/doc_config/Data/PreviousSettings.nd +0 -0
- data/misc/openlayers/doc_config/Data/SymbolTable.nd +0 -0
- data/misc/openlayers/doc_config/Languages.txt +0 -113
- data/misc/openlayers/doc_config/Menu.txt +0 -520
- data/misc/openlayers/doc_config/OL.css +0 -20
- data/misc/openlayers/doc_config/Topics.txt +0 -102
- data/misc/openlayers/examples/Jugl.js +0 -8
- data/misc/openlayers/examples/KMLParser.html +0 -57
- data/misc/openlayers/examples/SLDSelect.html +0 -202
- data/misc/openlayers/examples/WMSDescribeLayerParser.html +0 -52
- data/misc/openlayers/examples/accelerometer.html +0 -100
- data/misc/openlayers/examples/accessible-click-control.html +0 -69
- data/misc/openlayers/examples/accessible-click-control.js +0 -199
- data/misc/openlayers/examples/accessible-panel.html +0 -130
- data/misc/openlayers/examples/accessible-panel.js +0 -64
- data/misc/openlayers/examples/accessible.html +0 -167
- data/misc/openlayers/examples/all-overlays-google.html +0 -34
- data/misc/openlayers/examples/all-overlays-google.js +0 -19
- data/misc/openlayers/examples/all-overlays.html +0 -76
- data/misc/openlayers/examples/anchor-permalink.html +0 -29
- data/misc/openlayers/examples/anchor-permalink.js +0 -13
- data/misc/openlayers/examples/animated_panning.html +0 -98
- data/misc/openlayers/examples/animator.js +0 -670
- data/misc/openlayers/examples/arcgis93rest.html +0 -69
- data/misc/openlayers/examples/arcgiscache_ags.html +0 -221
- data/misc/openlayers/examples/arcgiscache_direct.html +0 -108
- data/misc/openlayers/examples/arcgiscache_jsonp.html +0 -106
- data/misc/openlayers/examples/arcims-thematic.html +0 -82
- data/misc/openlayers/examples/arcims.html +0 -57
- data/misc/openlayers/examples/attribution.html +0 -60
- data/misc/openlayers/examples/behavior-fixed-http-gml.html +0 -56
- data/misc/openlayers/examples/bing-tiles-restrictedzoom.html +0 -43
- data/misc/openlayers/examples/bing-tiles-restrictedzoom.js +0 -37
- data/misc/openlayers/examples/bing-tiles.html +0 -39
- data/misc/openlayers/examples/bing-tiles.js +0 -31
- data/misc/openlayers/examples/bing.html +0 -64
- data/misc/openlayers/examples/bootstrap.html +0 -81
- data/misc/openlayers/examples/bootstrap.js +0 -31
- data/misc/openlayers/examples/boxes-vector.html +0 -59
- data/misc/openlayers/examples/boxes.html +0 -58
- data/misc/openlayers/examples/browser.html +0 -152
- data/misc/openlayers/examples/browser.js +0 -241
- data/misc/openlayers/examples/buffer.html +0 -54
- data/misc/openlayers/examples/cache-read.html +0 -36
- data/misc/openlayers/examples/cache-read.js +0 -36
- data/misc/openlayers/examples/cache-write.html +0 -37
- data/misc/openlayers/examples/cache-write.js +0 -46
- data/misc/openlayers/examples/canvas-hit-detection.html +0 -31
- data/misc/openlayers/examples/canvas-hit-detection.js +0 -88
- data/misc/openlayers/examples/canvas-inspector.html +0 -53
- data/misc/openlayers/examples/canvas-inspector.js +0 -91
- data/misc/openlayers/examples/canvas.html +0 -35
- data/misc/openlayers/examples/canvas.js +0 -57
- data/misc/openlayers/examples/cartodb-geojson.html +0 -71
- data/misc/openlayers/examples/click-handler.html +0 -232
- data/misc/openlayers/examples/click.html +0 -91
- data/misc/openlayers/examples/clientzoom.html +0 -72
- data/misc/openlayers/examples/clientzoom.js +0 -39
- data/misc/openlayers/examples/controls.html +0 -86
- data/misc/openlayers/examples/cql-format.html +0 -54
- data/misc/openlayers/examples/cql-format.js +0 -61
- data/misc/openlayers/examples/cross-origin-xml.html +0 -32
- data/misc/openlayers/examples/cross-origin-xml.js +0 -25
- data/misc/openlayers/examples/cross-origin.html +0 -36
- data/misc/openlayers/examples/cross-origin.js +0 -39
- data/misc/openlayers/examples/custom-control.html +0 -68
- data/misc/openlayers/examples/custom-style.html +0 -66
- data/misc/openlayers/examples/data/4_m_citylights_lg.gif +0 -0
- data/misc/openlayers/examples/data/line.json +0 -10
- data/misc/openlayers/examples/data/point.json +0 -8
- data/misc/openlayers/examples/data/poly.json +0 -9
- data/misc/openlayers/examples/data/roads.json +0 -349
- data/misc/openlayers/examples/data/tazdem.tiff +0 -0
- data/misc/openlayers/examples/debug.html +0 -77
- data/misc/openlayers/examples/document-drag.html +0 -43
- data/misc/openlayers/examples/donut.html +0 -62
- data/misc/openlayers/examples/donut.js +0 -44
- data/misc/openlayers/examples/drag-feature.html +0 -114
- data/misc/openlayers/examples/draw-feature.html +0 -143
- data/misc/openlayers/examples/draw-undo-redo.html +0 -38
- data/misc/openlayers/examples/draw-undo-redo.js +0 -45
- data/misc/openlayers/examples/dynamic-text-layer.html +0 -101
- data/misc/openlayers/examples/editing-methods.html +0 -58
- data/misc/openlayers/examples/editing-methods.js +0 -83
- data/misc/openlayers/examples/editingtoolbar-outside.html +0 -56
- data/misc/openlayers/examples/editingtoolbar.html +0 -55
- data/misc/openlayers/examples/encoded-polyline.html +0 -47
- data/misc/openlayers/examples/events.html +0 -155
- data/misc/openlayers/examples/example-list.html +0 -302
- data/misc/openlayers/examples/example.html +0 -25
- data/misc/openlayers/examples/example.js +0 -23
- data/misc/openlayers/examples/feature-events.html +0 -46
- data/misc/openlayers/examples/feature-events.js +0 -67
- data/misc/openlayers/examples/filter-strategy.html +0 -54
- data/misc/openlayers/examples/filter-strategy.js +0 -84
- data/misc/openlayers/examples/filter.html +0 -107
- data/misc/openlayers/examples/fractional-zoom.html +0 -72
- data/misc/openlayers/examples/fullScreen.html +0 -53
- data/misc/openlayers/examples/fullScreen.js +0 -20
- data/misc/openlayers/examples/fusiontables.html +0 -35
- data/misc/openlayers/examples/fusiontables.js +0 -51
- data/misc/openlayers/examples/game-accel-ball.html +0 -82
- data/misc/openlayers/examples/geojson-reprojected.html +0 -46
- data/misc/openlayers/examples/geojson-reprojected.js +0 -27
- data/misc/openlayers/examples/geojson-reprojected.json +0 -1
- data/misc/openlayers/examples/geojson.html +0 -77
- data/misc/openlayers/examples/geolocation.html +0 -41
- data/misc/openlayers/examples/geolocation.js +0 -112
- data/misc/openlayers/examples/georss-flickr.html +0 -119
- data/misc/openlayers/examples/georss-markers.html +0 -45
- data/misc/openlayers/examples/georss.html +0 -63
- data/misc/openlayers/examples/georss.xml +0 -378
- data/misc/openlayers/examples/getfeature-wfs.html +0 -84
- data/misc/openlayers/examples/getfeatureinfo-control.html +0 -221
- data/misc/openlayers/examples/getfeatureinfo-popup.html +0 -96
- data/misc/openlayers/examples/gml-layer.html +0 -48
- data/misc/openlayers/examples/gml/line.xml +0 -42
- data/misc/openlayers/examples/gml/multipoint.xml +0 -70
- data/misc/openlayers/examples/gml/multipolygon.xml +0 -106
- data/misc/openlayers/examples/gml/owls.xml +0 -156
- data/misc/openlayers/examples/gml/point.xml +0 -42
- data/misc/openlayers/examples/gml/polygon.xml +0 -89
- data/misc/openlayers/examples/google-static.html +0 -39
- data/misc/openlayers/examples/google-static.js +0 -61
- data/misc/openlayers/examples/google-v3-alloverlays.html +0 -33
- data/misc/openlayers/examples/google-v3-alloverlays.js +0 -35
- data/misc/openlayers/examples/google-v3.html +0 -35
- data/misc/openlayers/examples/google-v3.js +0 -39
- data/misc/openlayers/examples/google.html +0 -69
- data/misc/openlayers/examples/graphic-name.html +0 -42
- data/misc/openlayers/examples/graphic-name.js +0 -67
- data/misc/openlayers/examples/graticule.html +0 -116
- data/misc/openlayers/examples/gutter.html +0 -55
- data/misc/openlayers/examples/highlight-feature.html +0 -88
- data/misc/openlayers/examples/hover-handler.html +0 -216
- data/misc/openlayers/examples/image-layer.html +0 -76
- data/misc/openlayers/examples/img/check-round-green.png +0 -0
- data/misc/openlayers/examples/img/check-round-grey.png +0 -0
- data/misc/openlayers/examples/img/list.png +0 -0
- data/misc/openlayers/examples/img/locate.png +0 -0
- data/misc/openlayers/examples/img/marker_shadow.png +0 -0
- data/misc/openlayers/examples/img/minus1.png +0 -0
- data/misc/openlayers/examples/img/mobile-layers.png +0 -0
- data/misc/openlayers/examples/img/mobile-loc.png +0 -0
- data/misc/openlayers/examples/img/mobile-zoombar.png +0 -0
- data/misc/openlayers/examples/img/openlayers.png +0 -0
- data/misc/openlayers/examples/img/popupMatrix.jpg +0 -0
- data/misc/openlayers/examples/img/small.jpg +0 -0
- data/misc/openlayers/examples/img/thinlong.jpg +0 -0
- data/misc/openlayers/examples/img/widelong.jpg +0 -0
- data/misc/openlayers/examples/img/wideshort.jpg +0 -0
- data/misc/openlayers/examples/intersects.html +0 -193
- data/misc/openlayers/examples/kamap.html +0 -45
- data/misc/openlayers/examples/kamap.txt +0 -508
- data/misc/openlayers/examples/kinetic.html +0 -44
- data/misc/openlayers/examples/kinetic.js +0 -27
- data/misc/openlayers/examples/kml-layer.html +0 -36
- data/misc/openlayers/examples/kml-layer.js +0 -22
- data/misc/openlayers/examples/kml-pointtrack.html +0 -40
- data/misc/openlayers/examples/kml-pointtrack.js +0 -52
- data/misc/openlayers/examples/kml-track.html +0 -42
- data/misc/openlayers/examples/kml-track.js +0 -40
- data/misc/openlayers/examples/kml-track.kml +0 -3359
- data/misc/openlayers/examples/kml/lines.kml +0 -275
- data/misc/openlayers/examples/kml/styles.kml +0 -21
- data/misc/openlayers/examples/kml/sundials.kml +0 -2273
- data/misc/openlayers/examples/label-scale.html +0 -34
- data/misc/openlayers/examples/label-scale.js +0 -72
- data/misc/openlayers/examples/late-render.html +0 -48
- data/misc/openlayers/examples/layer-opacity.html +0 -95
- data/misc/openlayers/examples/layerLoadMonitoring.html +0 -135
- data/misc/openlayers/examples/layerswitcher.html +0 -60
- data/misc/openlayers/examples/light-basic.html +0 -35
- data/misc/openlayers/examples/light-basic.js +0 -67
- data/misc/openlayers/examples/lite.html +0 -39
- data/misc/openlayers/examples/mapbox.html +0 -30
- data/misc/openlayers/examples/mapbox.js +0 -21
- data/misc/openlayers/examples/mapguide.html +0 -155
- data/misc/openlayers/examples/mapquest.html +0 -28
- data/misc/openlayers/examples/mapquest.js +0 -36
- data/misc/openlayers/examples/mapserver.html +0 -41
- data/misc/openlayers/examples/mapserver_untiled.html +0 -43
- data/misc/openlayers/examples/marker-shadow.html +0 -152
- data/misc/openlayers/examples/markerResize.html +0 -60
- data/misc/openlayers/examples/markers.html +0 -59
- data/misc/openlayers/examples/markersTextLayer.html +0 -41
- data/misc/openlayers/examples/measure.html +0 -203
- data/misc/openlayers/examples/mobile-base.js +0 -167
- data/misc/openlayers/examples/mobile-drawing.html +0 -52
- data/misc/openlayers/examples/mobile-drawing.js +0 -71
- data/misc/openlayers/examples/mobile-jq.html +0 -76
- data/misc/openlayers/examples/mobile-jq.js +0 -159
- data/misc/openlayers/examples/mobile-layers.html +0 -62
- data/misc/openlayers/examples/mobile-layers.js +0 -71
- data/misc/openlayers/examples/mobile-navigation.html +0 -52
- data/misc/openlayers/examples/mobile-navigation.js +0 -24
- data/misc/openlayers/examples/mobile-sencha.html +0 -184
- data/misc/openlayers/examples/mobile-sencha.js +0 -198
- data/misc/openlayers/examples/mobile-wmts-vienna.css +0 -205
- data/misc/openlayers/examples/mobile-wmts-vienna.html +0 -27
- data/misc/openlayers/examples/mobile-wmts-vienna.js +0 -281
- data/misc/openlayers/examples/mobile.html +0 -56
- data/misc/openlayers/examples/mobile.js +0 -39
- data/misc/openlayers/examples/modify-feature.html +0 -193
- data/misc/openlayers/examples/mouse-position.html +0 -67
- data/misc/openlayers/examples/mousewheel-interval.html +0 -63
- data/misc/openlayers/examples/multiserver.html +0 -52
- data/misc/openlayers/examples/multitouch.html +0 -28
- data/misc/openlayers/examples/mvs.html +0 -129
- data/misc/openlayers/examples/navigation-control.html +0 -44
- data/misc/openlayers/examples/navigation-history.html +0 -62
- data/misc/openlayers/examples/navtoolbar-alwaysZoom.html +0 -85
- data/misc/openlayers/examples/navtoolbar-outsidemap.html +0 -47
- data/misc/openlayers/examples/navtoolbar.html +0 -46
- data/misc/openlayers/examples/offline-storage.html +0 -44
- data/misc/openlayers/examples/offline-storage.js +0 -199
- data/misc/openlayers/examples/openls.html +0 -88
- data/misc/openlayers/examples/ordering.html +0 -221
- data/misc/openlayers/examples/osm-google.html +0 -32
- data/misc/openlayers/examples/osm-google.js +0 -23
- data/misc/openlayers/examples/osm-grayscale.html +0 -77
- data/misc/openlayers/examples/osm-marker-popup.html +0 -32
- data/misc/openlayers/examples/osm-marker-popup.js +0 -39
- data/misc/openlayers/examples/osm.html +0 -41
- data/misc/openlayers/examples/osm/sutton_coldfield.osm +0 -662
- data/misc/openlayers/examples/overviewmap.html +0 -120
- data/misc/openlayers/examples/pan-zoom-panels.html +0 -97
- data/misc/openlayers/examples/panel.html +0 -99
- data/misc/openlayers/examples/point-grid.html +0 -75
- data/misc/openlayers/examples/point-grid.js +0 -33
- data/misc/openlayers/examples/point-track-markers.html +0 -72
- data/misc/openlayers/examples/polar-projections.html +0 -41
- data/misc/openlayers/examples/polar-projections.js +0 -84
- data/misc/openlayers/examples/popupMatrix.html +0 -652
- data/misc/openlayers/examples/proxy.cgi +0 -81
- data/misc/openlayers/examples/regular-polygons.html +0 -177
- data/misc/openlayers/examples/resize-features.html +0 -101
- data/misc/openlayers/examples/restricted-extent.html +0 -77
- data/misc/openlayers/examples/rotate-features.html +0 -113
- data/misc/openlayers/examples/select-feature-multilayer.html +0 -129
- data/misc/openlayers/examples/select-feature-openpopup.html +0 -106
- data/misc/openlayers/examples/select-feature.html +0 -170
- data/misc/openlayers/examples/setextent.html +0 -39
- data/misc/openlayers/examples/simplify-linestring.html +0 -103
- data/misc/openlayers/examples/simplify-linestring.js +0 -599
- data/misc/openlayers/examples/single-tile.html +0 -33
- data/misc/openlayers/examples/single-tile.js +0 -20
- data/misc/openlayers/examples/sld-parser.html +0 -70
- data/misc/openlayers/examples/sld.html +0 -31
- data/misc/openlayers/examples/sld.js +0 -102
- data/misc/openlayers/examples/snap-grid.html +0 -78
- data/misc/openlayers/examples/snap-grid.js +0 -81
- data/misc/openlayers/examples/snap-split.html +0 -281
- data/misc/openlayers/examples/snapping.html +0 -324
- data/misc/openlayers/examples/sos.html +0 -189
- data/misc/openlayers/examples/spherical-mercator.html +0 -120
- data/misc/openlayers/examples/split-feature.html +0 -116
- data/misc/openlayers/examples/strategy-bbox.html +0 -106
- data/misc/openlayers/examples/strategy-cluster-extended.html +0 -125
- data/misc/openlayers/examples/strategy-cluster-extended.js +0 -247
- data/misc/openlayers/examples/strategy-cluster-threshold.html +0 -149
- data/misc/openlayers/examples/strategy-cluster.html +0 -238
- data/misc/openlayers/examples/strategy-paging.html +0 -115
- data/misc/openlayers/examples/style-rules.html +0 -49
- data/misc/openlayers/examples/style-rules.js +0 -99
- data/misc/openlayers/examples/style.css +0 -143
- data/misc/openlayers/examples/style.mobile-jq.css +0 -62
- data/misc/openlayers/examples/stylemap.html +0 -100
- data/misc/openlayers/examples/styles-context.html +0 -117
- data/misc/openlayers/examples/styles-rotation.html +0 -93
- data/misc/openlayers/examples/styles-unique.html +0 -109
- data/misc/openlayers/examples/sundials-spherical-mercator.html +0 -111
- data/misc/openlayers/examples/sundials.html +0 -107
- data/misc/openlayers/examples/symbolizers-fill-stroke-graphic.html +0 -141
- data/misc/openlayers/examples/tasmania/TasmaniaCities.xml +0 -40
- data/misc/openlayers/examples/tasmania/TasmaniaRoads.xml +0 -204
- data/misc/openlayers/examples/tasmania/TasmaniaStateBoundaries.xml +0 -92
- data/misc/openlayers/examples/tasmania/TasmaniaWaterBodies.xml +0 -162
- data/misc/openlayers/examples/tasmania/sld-tasmania.xml +0 -594
- data/misc/openlayers/examples/teleportation.html +0 -76
- data/misc/openlayers/examples/textfile.txt +0 -4
- data/misc/openlayers/examples/tile-origin.html +0 -38
- data/misc/openlayers/examples/tile-origin.js +0 -16
- data/misc/openlayers/examples/tilecache.html +0 -58
- data/misc/openlayers/examples/tms.html +0 -62
- data/misc/openlayers/examples/transform-feature.html +0 -123
- data/misc/openlayers/examples/transition.html +0 -70
- data/misc/openlayers/examples/using-proj4js.html +0 -109
- data/misc/openlayers/examples/using-proj4js.js +0 -132
- data/misc/openlayers/examples/utfgrid-geography-class.html +0 -51
- data/misc/openlayers/examples/utfgrid-geography-class.js +0 -62
- data/misc/openlayers/examples/utfgrid.html +0 -64
- data/misc/openlayers/examples/utfgrid.js +0 -61
- data/misc/openlayers/examples/utfgrid/bio_utfgrid/1/0/0.json +0 -1
- data/misc/openlayers/examples/utfgrid/bio_utfgrid/1/0/1.json +0 -1
- data/misc/openlayers/examples/utfgrid/bio_utfgrid/1/0/2.json +0 -1
- data/misc/openlayers/examples/utfgrid/bio_utfgrid/1/1/0.json +0 -1
- data/misc/openlayers/examples/utfgrid/bio_utfgrid/1/1/1.json +0 -1
- data/misc/openlayers/examples/utfgrid/bio_utfgrid/1/1/2.json +0 -1
- data/misc/openlayers/examples/utfgrid/bio_utfgrid/1/2/0.json +0 -1
- data/misc/openlayers/examples/utfgrid/bio_utfgrid/1/2/1.json +0 -1
- data/misc/openlayers/examples/utfgrid/bio_utfgrid/1/2/2.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/0/0/0.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/1/0/0.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/1/0/1.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/1/1/0.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/1/1/1.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/0/0.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/0/1.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/0/2.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/0/3.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/1/0.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/1/1.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/1/2.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/1/3.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/2/0.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/2/1.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/2/2.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/2/3.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/3/0.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/3/1.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/3/2.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/geography-class/2/3/3.grid.json +0 -1
- data/misc/openlayers/examples/utfgrid/world_utfgrid/1/0/0.json +0 -1
- data/misc/openlayers/examples/utfgrid/world_utfgrid/1/0/1.json +0 -1
- data/misc/openlayers/examples/utfgrid/world_utfgrid/1/0/2.json +0 -1
- data/misc/openlayers/examples/utfgrid/world_utfgrid/1/1/0.json +0 -1
- data/misc/openlayers/examples/utfgrid/world_utfgrid/1/1/1.json +0 -1
- data/misc/openlayers/examples/utfgrid/world_utfgrid/1/1/2.json +0 -1
- data/misc/openlayers/examples/utfgrid/world_utfgrid/1/2/0.json +0 -1
- data/misc/openlayers/examples/utfgrid/world_utfgrid/1/2/1.json +0 -1
- data/misc/openlayers/examples/utfgrid/world_utfgrid/1/2/2.json +0 -1
- data/misc/openlayers/examples/utfgrid_twogrids.html +0 -51
- data/misc/openlayers/examples/utfgrid_twogrids.js +0 -70
- data/misc/openlayers/examples/vector-features-with-text.html +0 -138
- data/misc/openlayers/examples/vector-features.html +0 -149
- data/misc/openlayers/examples/vector-formats.html +0 -240
- data/misc/openlayers/examples/web-mercator.html +0 -50
- data/misc/openlayers/examples/web-mercator.js +0 -37
- data/misc/openlayers/examples/wfs-filter.html +0 -35
- data/misc/openlayers/examples/wfs-filter.js +0 -48
- data/misc/openlayers/examples/wfs-protocol-transactions.html +0 -104
- data/misc/openlayers/examples/wfs-protocol-transactions.js +0 -106
- data/misc/openlayers/examples/wfs-protocol.html +0 -55
- data/misc/openlayers/examples/wfs-reprojection.html +0 -42
- data/misc/openlayers/examples/wfs-reprojection.js +0 -60
- data/misc/openlayers/examples/wfs-snap-split.html +0 -292
- data/misc/openlayers/examples/wfs-spatial-filter.html +0 -37
- data/misc/openlayers/examples/wfs-spatial-filter.js +0 -36
- data/misc/openlayers/examples/wfs-states.html +0 -34
- data/misc/openlayers/examples/wfs-states.js +0 -35
- data/misc/openlayers/examples/wmc.html +0 -150
- data/misc/openlayers/examples/wms-long-url.html +0 -44
- data/misc/openlayers/examples/wms-long-url.js +0 -26
- data/misc/openlayers/examples/wms-untiled.html +0 -48
- data/misc/openlayers/examples/wms-v13.html +0 -57
- data/misc/openlayers/examples/wms.html +0 -49
- data/misc/openlayers/examples/wmst.html +0 -63
- data/misc/openlayers/examples/wmts-capabilities.html +0 -43
- data/misc/openlayers/examples/wmts-capabilities.js +0 -58
- data/misc/openlayers/examples/wmts-getfeatureinfo.html +0 -74
- data/misc/openlayers/examples/wmts-getfeatureinfo.js +0 -94
- data/misc/openlayers/examples/wmts.html +0 -41
- data/misc/openlayers/examples/wmts.js +0 -35
- data/misc/openlayers/examples/wps-client.html +0 -31
- data/misc/openlayers/examples/wps-client.js +0 -75
- data/misc/openlayers/examples/wps.html +0 -89
- data/misc/openlayers/examples/wps.js +0 -353
- data/misc/openlayers/examples/wrapDateLine.html +0 -73
- data/misc/openlayers/examples/xhtml.html +0 -42
- data/misc/openlayers/examples/xml.html +0 -161
- data/misc/openlayers/examples/xml/features.xml +0 -2
- data/misc/openlayers/examples/xml/georss-flickr.xml +0 -730
- data/misc/openlayers/examples/xml/track1.xml +0 -98
- data/misc/openlayers/examples/xml/wmsdescribelayer.xml +0 -5
- data/misc/openlayers/examples/xyz-esri.html +0 -45
- data/misc/openlayers/examples/yelp-georss.xml +0 -147
- data/misc/openlayers/examples/zoom.html +0 -68
- data/misc/openlayers/examples/zoom.js +0 -34
- data/misc/openlayers/examples/zoomLevels.html +0 -81
- data/misc/openlayers/examples/zoomify.html +0 -70
- data/misc/openlayers/img/blank.gif +0 -0
- data/misc/openlayers/img/cloud-popup-relative.png +0 -0
- data/misc/openlayers/img/drag-rectangle-off.png +0 -0
- data/misc/openlayers/img/drag-rectangle-on.png +0 -0
- data/misc/openlayers/img/east-mini.png +0 -0
- data/misc/openlayers/img/layer-switcher-maximize.png +0 -0
- data/misc/openlayers/img/layer-switcher-minimize.png +0 -0
- data/misc/openlayers/img/marker-blue.png +0 -0
- data/misc/openlayers/img/marker-gold.png +0 -0
- data/misc/openlayers/img/marker-green.png +0 -0
- data/misc/openlayers/img/marker.png +0 -0
- data/misc/openlayers/img/measuring-stick-off.png +0 -0
- data/misc/openlayers/img/measuring-stick-on.png +0 -0
- data/misc/openlayers/img/north-mini.png +0 -0
- data/misc/openlayers/img/panning-hand-off.png +0 -0
- data/misc/openlayers/img/panning-hand-on.png +0 -0
- data/misc/openlayers/img/slider.png +0 -0
- data/misc/openlayers/img/south-mini.png +0 -0
- data/misc/openlayers/img/west-mini.png +0 -0
- data/misc/openlayers/img/zoom-minus-mini.png +0 -0
- data/misc/openlayers/img/zoom-plus-mini.png +0 -0
- data/misc/openlayers/img/zoom-world-mini.png +0 -0
- data/misc/openlayers/img/zoombar.png +0 -0
- data/misc/openlayers/lib/Firebug/errorIcon.png +0 -0
- data/misc/openlayers/lib/Firebug/firebug.css +0 -209
- data/misc/openlayers/lib/Firebug/firebug.html +0 -23
- data/misc/openlayers/lib/Firebug/firebug.js +0 -674
- data/misc/openlayers/lib/Firebug/firebugx.js +0 -10
- data/misc/openlayers/lib/Firebug/infoIcon.png +0 -0
- data/misc/openlayers/lib/Firebug/license.txt +0 -30
- data/misc/openlayers/lib/Firebug/readme.txt +0 -13
- data/misc/openlayers/lib/Firebug/warningIcon.png +0 -0
- data/misc/openlayers/lib/OpenLayers.js +0 -429
- data/misc/openlayers/lib/OpenLayers/Animation.js +0 -102
- data/misc/openlayers/lib/OpenLayers/BaseTypes.js +0 -463
- data/misc/openlayers/lib/OpenLayers/BaseTypes/Bounds.js +0 -837
- data/misc/openlayers/lib/OpenLayers/BaseTypes/Class.js +0 -121
- data/misc/openlayers/lib/OpenLayers/BaseTypes/Date.js +0 -123
- data/misc/openlayers/lib/OpenLayers/BaseTypes/Element.js +0 -189
- data/misc/openlayers/lib/OpenLayers/BaseTypes/LonLat.js +0 -215
- data/misc/openlayers/lib/OpenLayers/BaseTypes/Pixel.js +0 -143
- data/misc/openlayers/lib/OpenLayers/BaseTypes/Size.js +0 -89
- data/misc/openlayers/lib/OpenLayers/Console.js +0 -250
- data/misc/openlayers/lib/OpenLayers/Control.js +0 -371
- data/misc/openlayers/lib/OpenLayers/Control/ArgParser.js +0 -182
- data/misc/openlayers/lib/OpenLayers/Control/Attribution.js +0 -104
- data/misc/openlayers/lib/OpenLayers/Control/Button.js +0 -44
- data/misc/openlayers/lib/OpenLayers/Control/CacheRead.js +0 -156
- data/misc/openlayers/lib/OpenLayers/Control/CacheWrite.js +0 -257
- data/misc/openlayers/lib/OpenLayers/Control/DragFeature.js +0 -366
- data/misc/openlayers/lib/OpenLayers/Control/DragPan.js +0 -156
- data/misc/openlayers/lib/OpenLayers/Control/DrawFeature.js +0 -229
- data/misc/openlayers/lib/OpenLayers/Control/EditingToolbar.js +0 -81
- data/misc/openlayers/lib/OpenLayers/Control/Geolocate.js +0 -192
- data/misc/openlayers/lib/OpenLayers/Control/GetFeature.js +0 -597
- data/misc/openlayers/lib/OpenLayers/Control/Graticule.js +0 -377
- data/misc/openlayers/lib/OpenLayers/Control/KeyboardDefaults.js +0 -142
- data/misc/openlayers/lib/OpenLayers/Control/LayerSwitcher.js +0 -521
- data/misc/openlayers/lib/OpenLayers/Control/Measure.js +0 -379
- data/misc/openlayers/lib/OpenLayers/Control/ModifyFeature.js +0 -835
- data/misc/openlayers/lib/OpenLayers/Control/MousePosition.js +0 -227
- data/misc/openlayers/lib/OpenLayers/Control/NavToolbar.js +0 -57
- data/misc/openlayers/lib/OpenLayers/Control/Navigation.js +0 -345
- data/misc/openlayers/lib/OpenLayers/Control/NavigationHistory.js +0 -423
- data/misc/openlayers/lib/OpenLayers/Control/OverviewMap.js +0 -750
- data/misc/openlayers/lib/OpenLayers/Control/Pan.js +0 -95
- data/misc/openlayers/lib/OpenLayers/Control/PanPanel.js +0 -73
- data/misc/openlayers/lib/OpenLayers/Control/PanZoom.js +0 -233
- data/misc/openlayers/lib/OpenLayers/Control/PanZoomBar.js +0 -408
- data/misc/openlayers/lib/OpenLayers/Control/Panel.js +0 -431
- data/misc/openlayers/lib/OpenLayers/Control/Permalink.js +0 -257
- data/misc/openlayers/lib/OpenLayers/Control/PinchZoom.js +0 -157
- data/misc/openlayers/lib/OpenLayers/Control/SLDSelect.js +0 -567
- data/misc/openlayers/lib/OpenLayers/Control/Scale.js +0 -100
- data/misc/openlayers/lib/OpenLayers/Control/ScaleLine.js +0 -220
- data/misc/openlayers/lib/OpenLayers/Control/SelectFeature.js +0 -643
- data/misc/openlayers/lib/OpenLayers/Control/Snapping.js +0 -560
- data/misc/openlayers/lib/OpenLayers/Control/Split.js +0 -494
- data/misc/openlayers/lib/OpenLayers/Control/TouchNavigation.js +0 -182
- data/misc/openlayers/lib/OpenLayers/Control/TransformFeature.js +0 -624
- data/misc/openlayers/lib/OpenLayers/Control/UTFGrid.js +0 -240
- data/misc/openlayers/lib/OpenLayers/Control/WMSGetFeatureInfo.js +0 -532
- data/misc/openlayers/lib/OpenLayers/Control/WMTSGetFeatureInfo.js +0 -400
- data/misc/openlayers/lib/OpenLayers/Control/Zoom.js +0 -138
- data/misc/openlayers/lib/OpenLayers/Control/ZoomBox.js +0 -129
- data/misc/openlayers/lib/OpenLayers/Control/ZoomIn.js +0 -29
- data/misc/openlayers/lib/OpenLayers/Control/ZoomOut.js +0 -29
- data/misc/openlayers/lib/OpenLayers/Control/ZoomPanel.js +0 -54
- data/misc/openlayers/lib/OpenLayers/Control/ZoomToMaxExtent.js +0 -35
- data/misc/openlayers/lib/OpenLayers/Events.js +0 -1170
- data/misc/openlayers/lib/OpenLayers/Events/buttonclick.js +0 -206
- data/misc/openlayers/lib/OpenLayers/Events/featureclick.js +0 -321
- data/misc/openlayers/lib/OpenLayers/Feature.js +0 -225
- data/misc/openlayers/lib/OpenLayers/Feature/Vector.js +0 -510
- data/misc/openlayers/lib/OpenLayers/Filter.js +0 -87
- data/misc/openlayers/lib/OpenLayers/Filter/Comparison.js +0 -267
- data/misc/openlayers/lib/OpenLayers/Filter/FeatureId.js +0 -87
- data/misc/openlayers/lib/OpenLayers/Filter/Function.js +0 -49
- data/misc/openlayers/lib/OpenLayers/Filter/Logical.js +0 -121
- data/misc/openlayers/lib/OpenLayers/Filter/Spatial.js +0 -122
- data/misc/openlayers/lib/OpenLayers/Format.js +0 -123
- data/misc/openlayers/lib/OpenLayers/Format/ArcXML.js +0 -1028
- data/misc/openlayers/lib/OpenLayers/Format/ArcXML/Features.js +0 -46
- data/misc/openlayers/lib/OpenLayers/Format/Atom.js +0 -712
- data/misc/openlayers/lib/OpenLayers/Format/CQL.js +0 -452
- data/misc/openlayers/lib/OpenLayers/Format/CSWGetDomain.js +0 -34
- data/misc/openlayers/lib/OpenLayers/Format/CSWGetDomain/v2_0_2.js +0 -240
- data/misc/openlayers/lib/OpenLayers/Format/CSWGetRecords.js +0 -34
- data/misc/openlayers/lib/OpenLayers/Format/CSWGetRecords/v2_0_2.js +0 -457
- data/misc/openlayers/lib/OpenLayers/Format/Context.js +0 -334
- data/misc/openlayers/lib/OpenLayers/Format/EncodedPolyline.js +0 -557
- data/misc/openlayers/lib/OpenLayers/Format/Filter.js +0 -53
- data/misc/openlayers/lib/OpenLayers/Format/Filter/v1.js +0 -504
- data/misc/openlayers/lib/OpenLayers/Format/Filter/v1_0_0.js +0 -184
- data/misc/openlayers/lib/OpenLayers/Format/Filter/v1_1_0.js +0 -222
- data/misc/openlayers/lib/OpenLayers/Format/GML.js +0 -923
- data/misc/openlayers/lib/OpenLayers/Format/GML/Base.js +0 -645
- data/misc/openlayers/lib/OpenLayers/Format/GML/v2.js +0 -193
- data/misc/openlayers/lib/OpenLayers/Format/GML/v3.js +0 -477
- data/misc/openlayers/lib/OpenLayers/Format/GPX.js +0 -385
- data/misc/openlayers/lib/OpenLayers/Format/GeoJSON.js +0 -716
- data/misc/openlayers/lib/OpenLayers/Format/GeoRSS.js +0 -409
- data/misc/openlayers/lib/OpenLayers/Format/JSON.js +0 -398
- data/misc/openlayers/lib/OpenLayers/Format/KML.js +0 -1517
- data/misc/openlayers/lib/OpenLayers/Format/OGCExceptionReport.js +0 -108
- data/misc/openlayers/lib/OpenLayers/Format/OSM.js +0 -465
- data/misc/openlayers/lib/OpenLayers/Format/OWSCommon.js +0 -78
- data/misc/openlayers/lib/OpenLayers/Format/OWSCommon/v1.js +0 -318
- data/misc/openlayers/lib/OpenLayers/Format/OWSCommon/v1_0_0.js +0 -62
- data/misc/openlayers/lib/OpenLayers/Format/OWSCommon/v1_1_0.js +0 -116
- data/misc/openlayers/lib/OpenLayers/Format/OWSContext.js +0 -86
- data/misc/openlayers/lib/OpenLayers/Format/OWSContext/v0_3_1.js +0 -595
- data/misc/openlayers/lib/OpenLayers/Format/QueryStringFilter.js +0 -183
- data/misc/openlayers/lib/OpenLayers/Format/SLD.js +0 -81
- data/misc/openlayers/lib/OpenLayers/Format/SLD/v1.js +0 -1309
- data/misc/openlayers/lib/OpenLayers/Format/SLD/v1_0_0.js +0 -46
- data/misc/openlayers/lib/OpenLayers/Format/SLD/v1_0_0_GeoServer.js +0 -149
- data/misc/openlayers/lib/OpenLayers/Format/SOSCapabilities.js +0 -48
- data/misc/openlayers/lib/OpenLayers/Format/SOSCapabilities/v1_0_0.js +0 -158
- data/misc/openlayers/lib/OpenLayers/Format/SOSGetFeatureOfInterest.js +0 -190
- data/misc/openlayers/lib/OpenLayers/Format/SOSGetObservation.js +0 -302
- data/misc/openlayers/lib/OpenLayers/Format/Text.js +0 -151
- data/misc/openlayers/lib/OpenLayers/Format/WCSCapabilities.js +0 -47
- data/misc/openlayers/lib/OpenLayers/Format/WCSCapabilities/v1.js +0 -55
- data/misc/openlayers/lib/OpenLayers/Format/WCSCapabilities/v1_0_0.js +0 -170
- data/misc/openlayers/lib/OpenLayers/Format/WCSCapabilities/v1_1_0.js +0 -109
- data/misc/openlayers/lib/OpenLayers/Format/WCSGetCoverage.js +0 -199
- data/misc/openlayers/lib/OpenLayers/Format/WFS.js +0 -223
- data/misc/openlayers/lib/OpenLayers/Format/WFSCapabilities.js +0 -47
- data/misc/openlayers/lib/OpenLayers/Format/WFSCapabilities/v1.js +0 -129
- data/misc/openlayers/lib/OpenLayers/Format/WFSCapabilities/v1_0_0.js +0 -115
- data/misc/openlayers/lib/OpenLayers/Format/WFSCapabilities/v1_1_0.js +0 -63
- data/misc/openlayers/lib/OpenLayers/Format/WFSDescribeFeatureType.js +0 -234
- data/misc/openlayers/lib/OpenLayers/Format/WFST.js +0 -34
- data/misc/openlayers/lib/OpenLayers/Format/WFST/v1.js +0 -446
- data/misc/openlayers/lib/OpenLayers/Format/WFST/v1_0_0.js +0 -174
- data/misc/openlayers/lib/OpenLayers/Format/WFST/v1_1_0.js +0 -189
- data/misc/openlayers/lib/OpenLayers/Format/WKT.js +0 -392
- data/misc/openlayers/lib/OpenLayers/Format/WMC.js +0 -182
- data/misc/openlayers/lib/OpenLayers/Format/WMC/v1.js +0 -1267
- data/misc/openlayers/lib/OpenLayers/Format/WMC/v1_0_0.js +0 -104
- data/misc/openlayers/lib/OpenLayers/Format/WMC/v1_1_0.js +0 -149
- data/misc/openlayers/lib/OpenLayers/Format/WMSCapabilities.js +0 -56
- data/misc/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1.js +0 -368
- data/misc/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1_1.js +0 -122
- data/misc/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1_1_0.js +0 -57
- data/misc/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1_1_1.js +0 -60
- data/misc/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1_1_1_WMSC.js +0 -85
- data/misc/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1_3.js +0 -128
- data/misc/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1_3_0.js +0 -30
- data/misc/openlayers/lib/OpenLayers/Format/WMSDescribeLayer.js +0 -53
- data/misc/openlayers/lib/OpenLayers/Format/WMSDescribeLayer/v1_1.js +0 -122
- data/misc/openlayers/lib/OpenLayers/Format/WMSGetFeatureInfo.js +0 -296
- data/misc/openlayers/lib/OpenLayers/Format/WMTSCapabilities.js +0 -230
- data/misc/openlayers/lib/OpenLayers/Format/WMTSCapabilities/v1_0_0.js +0 -251
- data/misc/openlayers/lib/OpenLayers/Format/WPSCapabilities.js +0 -48
- data/misc/openlayers/lib/OpenLayers/Format/WPSCapabilities/v1_0_0.js +0 -119
- data/misc/openlayers/lib/OpenLayers/Format/WPSDescribeProcess.js +0 -185
- data/misc/openlayers/lib/OpenLayers/Format/WPSExecute.js +0 -395
- data/misc/openlayers/lib/OpenLayers/Format/XLS.js +0 -68
- data/misc/openlayers/lib/OpenLayers/Format/XLS/v1.js +0 -304
- data/misc/openlayers/lib/OpenLayers/Format/XLS/v1_1_0.js +0 -48
- data/misc/openlayers/lib/OpenLayers/Format/XML.js +0 -897
- data/misc/openlayers/lib/OpenLayers/Format/XML/VersionedOGC.js +0 -212
- data/misc/openlayers/lib/OpenLayers/Geometry.js +0 -500
- data/misc/openlayers/lib/OpenLayers/Geometry/Collection.js +0 -563
- data/misc/openlayers/lib/OpenLayers/Geometry/Curve.js +0 -89
- data/misc/openlayers/lib/OpenLayers/Geometry/LineString.js +0 -646
- data/misc/openlayers/lib/OpenLayers/Geometry/LinearRing.js +0 -433
- data/misc/openlayers/lib/OpenLayers/Geometry/MultiLineString.js +0 -258
- data/misc/openlayers/lib/OpenLayers/Geometry/MultiPoint.js +0 -66
- data/misc/openlayers/lib/OpenLayers/Geometry/MultiPolygon.js +0 -42
- data/misc/openlayers/lib/OpenLayers/Geometry/Point.js +0 -283
- data/misc/openlayers/lib/OpenLayers/Geometry/Polygon.js +0 -255
- data/misc/openlayers/lib/OpenLayers/Handler.js +0 -325
- data/misc/openlayers/lib/OpenLayers/Handler/Box.js +0 -244
- data/misc/openlayers/lib/OpenLayers/Handler/Click.js +0 -505
- data/misc/openlayers/lib/OpenLayers/Handler/Drag.js +0 -547
- data/misc/openlayers/lib/OpenLayers/Handler/Feature.js +0 -434
- data/misc/openlayers/lib/OpenLayers/Handler/Hover.js +0 -180
- data/misc/openlayers/lib/OpenLayers/Handler/Keyboard.js +0 -117
- data/misc/openlayers/lib/OpenLayers/Handler/MouseWheel.js +0 -264
- data/misc/openlayers/lib/OpenLayers/Handler/Path.js +0 -543
- data/misc/openlayers/lib/OpenLayers/Handler/Pinch.js +0 -239
- data/misc/openlayers/lib/OpenLayers/Handler/Point.js +0 -556
- data/misc/openlayers/lib/OpenLayers/Handler/Polygon.js +0 -305
- data/misc/openlayers/lib/OpenLayers/Handler/RegularPolygon.js +0 -429
- data/misc/openlayers/lib/OpenLayers/Icon.js +0 -243
- data/misc/openlayers/lib/OpenLayers/Kinetic.js +0 -178
- data/misc/openlayers/lib/OpenLayers/Lang.js +0 -134
- data/misc/openlayers/lib/OpenLayers/Lang/ar.js +0 -32
- data/misc/openlayers/lib/OpenLayers/Lang/be-tarask.js +0 -54
- data/misc/openlayers/lib/OpenLayers/Lang/bg.js +0 -25
- data/misc/openlayers/lib/OpenLayers/Lang/br.js +0 -53
- data/misc/openlayers/lib/OpenLayers/Lang/ca.js +0 -89
- data/misc/openlayers/lib/OpenLayers/Lang/cs-CZ.js +0 -45
- data/misc/openlayers/lib/OpenLayers/Lang/da-DK.js +0 -80
- data/misc/openlayers/lib/OpenLayers/Lang/de.js +0 -55
- data/misc/openlayers/lib/OpenLayers/Lang/el.js +0 -19
- data/misc/openlayers/lib/OpenLayers/Lang/en-CA.js +0 -21
- data/misc/openlayers/lib/OpenLayers/Lang/en.js +0 -89
- data/misc/openlayers/lib/OpenLayers/Lang/es.js +0 -90
- data/misc/openlayers/lib/OpenLayers/Lang/fi.js +0 -32
- data/misc/openlayers/lib/OpenLayers/Lang/fr.js +0 -53
- data/misc/openlayers/lib/OpenLayers/Lang/fur.js +0 -35
- data/misc/openlayers/lib/OpenLayers/Lang/gl.js +0 -53
- data/misc/openlayers/lib/OpenLayers/Lang/gsw.js +0 -53
- data/misc/openlayers/lib/OpenLayers/Lang/hr.js +0 -37
- data/misc/openlayers/lib/OpenLayers/Lang/hsb.js +0 -53
- data/misc/openlayers/lib/OpenLayers/Lang/hu.js +0 -54
- data/misc/openlayers/lib/OpenLayers/Lang/ia.js +0 -53
- data/misc/openlayers/lib/OpenLayers/Lang/id.js +0 -54
- data/misc/openlayers/lib/OpenLayers/Lang/io.js +0 -19
- data/misc/openlayers/lib/OpenLayers/Lang/is.js +0 -27
- data/misc/openlayers/lib/OpenLayers/Lang/it.js +0 -80
- data/misc/openlayers/lib/OpenLayers/Lang/ja.js +0 -54
- data/misc/openlayers/lib/OpenLayers/Lang/km.js +0 -23
- data/misc/openlayers/lib/OpenLayers/Lang/ksh.js +0 -53
- data/misc/openlayers/lib/OpenLayers/Lang/lt.js +0 -47
- data/misc/openlayers/lib/OpenLayers/Lang/nb.js +0 -82
- data/misc/openlayers/lib/OpenLayers/Lang/nds.js +0 -37
- data/misc/openlayers/lib/OpenLayers/Lang/nl.js +0 -53
- data/misc/openlayers/lib/OpenLayers/Lang/nn.js +0 -19
- data/misc/openlayers/lib/OpenLayers/Lang/oc.js +0 -53
- data/misc/openlayers/lib/OpenLayers/Lang/pl.js +0 -89
- data/misc/openlayers/lib/OpenLayers/Lang/pt-BR.js +0 -54
- data/misc/openlayers/lib/OpenLayers/Lang/pt.js +0 -55
- data/misc/openlayers/lib/OpenLayers/Lang/ro.js +0 -69
- data/misc/openlayers/lib/OpenLayers/Lang/ru.js +0 -56
- data/misc/openlayers/lib/OpenLayers/Lang/sk.js +0 -44
- data/misc/openlayers/lib/OpenLayers/Lang/sv-SE.js +0 -45
- data/misc/openlayers/lib/OpenLayers/Lang/te.js +0 -27
- data/misc/openlayers/lib/OpenLayers/Lang/vi.js +0 -53
- data/misc/openlayers/lib/OpenLayers/Lang/zh-CN.js +0 -80
- data/misc/openlayers/lib/OpenLayers/Lang/zh-TW.js +0 -81
- data/misc/openlayers/lib/OpenLayers/Layer.js +0 -1377
- data/misc/openlayers/lib/OpenLayers/Layer/ArcGIS93Rest.js +0 -225
- data/misc/openlayers/lib/OpenLayers/Layer/ArcGISCache.js +0 -480
- data/misc/openlayers/lib/OpenLayers/Layer/ArcIMS.js +0 -425
- data/misc/openlayers/lib/OpenLayers/Layer/Bing.js +0 -333
- data/misc/openlayers/lib/OpenLayers/Layer/Boxes.js +0 -76
- data/misc/openlayers/lib/OpenLayers/Layer/EventPane.js +0 -441
- data/misc/openlayers/lib/OpenLayers/Layer/FixedZoomLevels.js +0 -319
- data/misc/openlayers/lib/OpenLayers/Layer/GeoRSS.js +0 -265
- data/misc/openlayers/lib/OpenLayers/Layer/Google.js +0 -809
- data/misc/openlayers/lib/OpenLayers/Layer/Google/v3.js +0 -351
- data/misc/openlayers/lib/OpenLayers/Layer/Grid.js +0 -1343
- data/misc/openlayers/lib/OpenLayers/Layer/HTTPRequest.js +0 -230
- data/misc/openlayers/lib/OpenLayers/Layer/Image.js +0 -259
- data/misc/openlayers/lib/OpenLayers/Layer/KaMap.js +0 -192
- data/misc/openlayers/lib/OpenLayers/Layer/KaMapCache.js +0 -143
- data/misc/openlayers/lib/OpenLayers/Layer/MapGuide.js +0 -443
- data/misc/openlayers/lib/OpenLayers/Layer/MapServer.js +0 -181
- data/misc/openlayers/lib/OpenLayers/Layer/Markers.js +0 -187
- data/misc/openlayers/lib/OpenLayers/Layer/OSM.js +0 -123
- data/misc/openlayers/lib/OpenLayers/Layer/PointGrid.js +0 -299
- data/misc/openlayers/lib/OpenLayers/Layer/PointTrack.js +0 -125
- data/misc/openlayers/lib/OpenLayers/Layer/SphericalMercator.js +0 -146
- data/misc/openlayers/lib/OpenLayers/Layer/TMS.js +0 -202
- data/misc/openlayers/lib/OpenLayers/Layer/Text.js +0 -267
- data/misc/openlayers/lib/OpenLayers/Layer/TileCache.js +0 -140
- data/misc/openlayers/lib/OpenLayers/Layer/UTFGrid.js +0 -184
- data/misc/openlayers/lib/OpenLayers/Layer/Vector.js +0 -1007
- data/misc/openlayers/lib/OpenLayers/Layer/Vector/RootContainer.js +0 -154
- data/misc/openlayers/lib/OpenLayers/Layer/WMS.js +0 -267
- data/misc/openlayers/lib/OpenLayers/Layer/WMTS.js +0 -510
- data/misc/openlayers/lib/OpenLayers/Layer/WorldWind.js +0 -105
- data/misc/openlayers/lib/OpenLayers/Layer/XYZ.js +0 -172
- data/misc/openlayers/lib/OpenLayers/Layer/Zoomify.js +0 -260
- data/misc/openlayers/lib/OpenLayers/Map.js +0 -2867
- data/misc/openlayers/lib/OpenLayers/Marker.js +0 -241
- data/misc/openlayers/lib/OpenLayers/Marker/Box.js +0 -120
- data/misc/openlayers/lib/OpenLayers/Popup.js +0 -1065
- data/misc/openlayers/lib/OpenLayers/Popup/Anchored.js +0 -195
- data/misc/openlayers/lib/OpenLayers/Popup/Framed.js +0 -343
- data/misc/openlayers/lib/OpenLayers/Popup/FramedCloud.js +0 -227
- data/misc/openlayers/lib/OpenLayers/Projection.js +0 -322
- data/misc/openlayers/lib/OpenLayers/Protocol.js +0 -291
- data/misc/openlayers/lib/OpenLayers/Protocol/CSW.js +0 -30
- data/misc/openlayers/lib/OpenLayers/Protocol/CSW/v2_0_2.js +0 -127
- data/misc/openlayers/lib/OpenLayers/Protocol/HTTP.js +0 -580
- data/misc/openlayers/lib/OpenLayers/Protocol/SOS.js +0 -33
- data/misc/openlayers/lib/OpenLayers/Protocol/SOS/v1_0_0.js +0 -133
- data/misc/openlayers/lib/OpenLayers/Protocol/Script.js +0 -377
- data/misc/openlayers/lib/OpenLayers/Protocol/WFS.js +0 -86
- data/misc/openlayers/lib/OpenLayers/Protocol/WFS/v1.js +0 -453
- data/misc/openlayers/lib/OpenLayers/Protocol/WFS/v1_0_0.js +0 -44
- data/misc/openlayers/lib/OpenLayers/Protocol/WFS/v1_1_0.js +0 -68
- data/misc/openlayers/lib/OpenLayers/Renderer.js +0 -432
- data/misc/openlayers/lib/OpenLayers/Renderer/Canvas.js +0 -906
- data/misc/openlayers/lib/OpenLayers/Renderer/Elements.js +0 -1053
- data/misc/openlayers/lib/OpenLayers/Renderer/SVG.js +0 -1012
- data/misc/openlayers/lib/OpenLayers/Renderer/VML.js +0 -985
- data/misc/openlayers/lib/OpenLayers/Request.js +0 -429
- data/misc/openlayers/lib/OpenLayers/Request/XMLHttpRequest.js +0 -458
- data/misc/openlayers/lib/OpenLayers/Rule.js +0 -236
- data/misc/openlayers/lib/OpenLayers/SingleFile.js +0 -78
- data/misc/openlayers/lib/OpenLayers/Spherical.js +0 -67
- data/misc/openlayers/lib/OpenLayers/Strategy.js +0 -121
- data/misc/openlayers/lib/OpenLayers/Strategy/BBOX.js +0 -290
- data/misc/openlayers/lib/OpenLayers/Strategy/Cluster.js +0 -283
- data/misc/openlayers/lib/OpenLayers/Strategy/Filter.js +0 -159
- data/misc/openlayers/lib/OpenLayers/Strategy/Fixed.js +0 -135
- data/misc/openlayers/lib/OpenLayers/Strategy/Paging.js +0 -233
- data/misc/openlayers/lib/OpenLayers/Strategy/Refresh.js +0 -141
- data/misc/openlayers/lib/OpenLayers/Strategy/Save.js +0 -231
- data/misc/openlayers/lib/OpenLayers/Style.js +0 -448
- data/misc/openlayers/lib/OpenLayers/Style2.js +0 -112
- data/misc/openlayers/lib/OpenLayers/StyleMap.js +0 -161
- data/misc/openlayers/lib/OpenLayers/Symbolizer.js +0 -55
- data/misc/openlayers/lib/OpenLayers/Symbolizer/Line.js +0 -74
- data/misc/openlayers/lib/OpenLayers/Symbolizer/Point.js +0 -157
- data/misc/openlayers/lib/OpenLayers/Symbolizer/Polygon.js +0 -88
- data/misc/openlayers/lib/OpenLayers/Symbolizer/Raster.js +0 -34
- data/misc/openlayers/lib/OpenLayers/Symbolizer/Text.js +0 -70
- data/misc/openlayers/lib/OpenLayers/Tile.js +0 -292
- data/misc/openlayers/lib/OpenLayers/Tile/Image.js +0 -510
- data/misc/openlayers/lib/OpenLayers/Tile/Image/IFrame.js +0 -233
- data/misc/openlayers/lib/OpenLayers/Tile/UTFGrid.js +0 -252
- data/misc/openlayers/lib/OpenLayers/TileManager.js +0 -462
- data/misc/openlayers/lib/OpenLayers/Tween.js +0 -361
- data/misc/openlayers/lib/OpenLayers/Util.js +0 -1773
- data/misc/openlayers/lib/OpenLayers/Util/vendorPrefix.js +0 -131
- data/misc/openlayers/lib/OpenLayers/WPSClient.js +0 -223
- data/misc/openlayers/lib/OpenLayers/WPSProcess.js +0 -501
- data/misc/openlayers/lib/Rico/Color.js +0 -253
- data/misc/openlayers/lib/Rico/Corner.js +0 -339
- data/misc/openlayers/lib/Rico/license.js +0 -19
- data/misc/openlayers/lib/deprecated.js +0 -5842
- data/misc/openlayers/license.txt +0 -27
- data/misc/openlayers/licenses/APACHE-2.0.txt +0 -202
- data/misc/openlayers/licenses/BSD-LICENSE.txt +0 -28
- data/misc/openlayers/licenses/MIT-LICENSE.txt +0 -18
- data/misc/openlayers/notes/2.12.md +0 -391
- data/misc/openlayers/notes/2.13.md +0 -159
- data/misc/openlayers/readme.md +0 -79
- data/misc/openlayers/tests/Animation.html +0 -96
- data/misc/openlayers/tests/BaseTypes.html +0 -387
- data/misc/openlayers/tests/BaseTypes/Bounds.html +0 -738
- data/misc/openlayers/tests/BaseTypes/Class.html +0 -350
- data/misc/openlayers/tests/BaseTypes/Date.html +0 -191
- data/misc/openlayers/tests/BaseTypes/Element.html +0 -195
- data/misc/openlayers/tests/BaseTypes/LonLat.html +0 -241
- data/misc/openlayers/tests/BaseTypes/Pixel.html +0 -123
- data/misc/openlayers/tests/BaseTypes/Size.html +0 -67
- data/misc/openlayers/tests/Console.html +0 -39
- data/misc/openlayers/tests/Control.html +0 -107
- data/misc/openlayers/tests/Control/ArgParser.html +0 -26
- data/misc/openlayers/tests/Control/Attribution.html +0 -60
- data/misc/openlayers/tests/Control/Button.html +0 -17
- data/misc/openlayers/tests/Control/CacheRead.html +0 -108
- data/misc/openlayers/tests/Control/CacheWrite.html +0 -90
- data/misc/openlayers/tests/Control/DragFeature.html +0 -383
- data/misc/openlayers/tests/Control/DragPan.html +0 -104
- data/misc/openlayers/tests/Control/DrawFeature.html +0 -160
- data/misc/openlayers/tests/Control/EditingToolbar.html +0 -33
- data/misc/openlayers/tests/Control/Geolocate.html +0 -129
- data/misc/openlayers/tests/Control/GetFeature.html +0 -177
- data/misc/openlayers/tests/Control/Graticule.html +0 -66
- data/misc/openlayers/tests/Control/KeyboardDefaults.html +0 -173
- data/misc/openlayers/tests/Control/LayerSwitcher.html +0 -249
- data/misc/openlayers/tests/Control/Measure.html +0 -386
- data/misc/openlayers/tests/Control/ModifyFeature.html +0 -828
- data/misc/openlayers/tests/Control/MousePosition.html +0 -109
- data/misc/openlayers/tests/Control/NavToolbar.html +0 -45
- data/misc/openlayers/tests/Control/Navigation.html +0 -200
- data/misc/openlayers/tests/Control/NavigationHistory.html +0 -245
- data/misc/openlayers/tests/Control/OverviewMap.html +0 -266
- data/misc/openlayers/tests/Control/Pan.html +0 -201
- data/misc/openlayers/tests/Control/PanPanel.html +0 -61
- data/misc/openlayers/tests/Control/PanZoom.html +0 -244
- data/misc/openlayers/tests/Control/PanZoomBar.html +0 -245
- data/misc/openlayers/tests/Control/Panel.html +0 -382
- data/misc/openlayers/tests/Control/Permalink.html +0 -453
- data/misc/openlayers/tests/Control/PinchZoom.html +0 -134
- data/misc/openlayers/tests/Control/SLDSelect.html +0 -239
- data/misc/openlayers/tests/Control/Scale.html +0 -54
- data/misc/openlayers/tests/Control/ScaleLine.html +0 -187
- data/misc/openlayers/tests/Control/SelectFeature.html +0 -632
- data/misc/openlayers/tests/Control/Snapping.html +0 -448
- data/misc/openlayers/tests/Control/Split.html +0 -319
- data/misc/openlayers/tests/Control/TouchNavigation.html +0 -155
- data/misc/openlayers/tests/Control/TransformFeature.html +0 -129
- data/misc/openlayers/tests/Control/UTFGrid.html +0 -120
- data/misc/openlayers/tests/Control/WMSGetFeatureInfo.html +0 -644
- data/misc/openlayers/tests/Control/WMTSGetFeatureInfo.html +0 -334
- data/misc/openlayers/tests/Control/Zoom.html +0 -83
- data/misc/openlayers/tests/Control/ZoomBox.html +0 -54
- data/misc/openlayers/tests/Control/ZoomIn.html +0 -101
- data/misc/openlayers/tests/Control/ZoomOut.html +0 -100
- data/misc/openlayers/tests/Control/ZoomToMaxExtent.html +0 -102
- data/misc/openlayers/tests/Events.html +0 -487
- data/misc/openlayers/tests/Events/buttonclick.html +0 -214
- data/misc/openlayers/tests/Events/featureclick.html +0 -91
- data/misc/openlayers/tests/Extras.html +0 -21
- data/misc/openlayers/tests/Feature.html +0 -205
- data/misc/openlayers/tests/Feature/Vector.html +0 -170
- data/misc/openlayers/tests/Filter.html +0 -31
- data/misc/openlayers/tests/Filter/Comparison.html +0 -373
- data/misc/openlayers/tests/Filter/FeatureId.html +0 -67
- data/misc/openlayers/tests/Filter/Logical.html +0 -144
- data/misc/openlayers/tests/Filter/Spatial.html +0 -112
- data/misc/openlayers/tests/Format.html +0 -23
- data/misc/openlayers/tests/Format/ArcXML.html +0 -277
- data/misc/openlayers/tests/Format/ArcXML/Features.html +0 -69
- data/misc/openlayers/tests/Format/Atom.html +0 -450
- data/misc/openlayers/tests/Format/CQL.html +0 -364
- data/misc/openlayers/tests/Format/CSWGetDomain.html +0 -23
- data/misc/openlayers/tests/Format/CSWGetDomain/v2_0_2.html +0 -56
- data/misc/openlayers/tests/Format/CSWGetDomain/v2_0_2.js +0 -18
- data/misc/openlayers/tests/Format/CSWGetRecords.html +0 -23
- data/misc/openlayers/tests/Format/CSWGetRecords/v2_0_2.html +0 -88
- data/misc/openlayers/tests/Format/CSWGetRecords/v2_0_2.js +0 -50
- data/misc/openlayers/tests/Format/EncodedPolyline.html +0 -372
- data/misc/openlayers/tests/Format/Filter.html +0 -21
- data/misc/openlayers/tests/Format/Filter/v1.html +0 -404
- data/misc/openlayers/tests/Format/Filter/v1_0_0.html +0 -295
- data/misc/openlayers/tests/Format/Filter/v1_1_0.html +0 -402
- data/misc/openlayers/tests/Format/GML.html +0 -462
- data/misc/openlayers/tests/Format/GML/cases.js +0 -232
- data/misc/openlayers/tests/Format/GML/v2.html +0 -684
- data/misc/openlayers/tests/Format/GML/v3.html +0 -828
- data/misc/openlayers/tests/Format/GPX.html +0 -179
- data/misc/openlayers/tests/Format/GeoJSON.html +0 -468
- data/misc/openlayers/tests/Format/GeoRSS.html +0 -122
- data/misc/openlayers/tests/Format/JSON.html +0 -53
- data/misc/openlayers/tests/Format/KML.html +0 -1437
- data/misc/openlayers/tests/Format/OGCExceptionReport.html +0 -100
- data/misc/openlayers/tests/Format/OSM.html +0 -115
- data/misc/openlayers/tests/Format/OWSCommon/v1_0_0.html +0 -34
- data/misc/openlayers/tests/Format/OWSCommon/v1_1_0.html +0 -34
- data/misc/openlayers/tests/Format/OWSContext/v0_3_1.html +0 -278
- data/misc/openlayers/tests/Format/QueryStringFilter.html +0 -306
- data/misc/openlayers/tests/Format/SLD.html +0 -36
- data/misc/openlayers/tests/Format/SLD/v1_0_0.html +0 -1028
- data/misc/openlayers/tests/Format/SLD/v1_0_0_GeoServer.html +0 -228
- data/misc/openlayers/tests/Format/SOSCapabilities/v1_0_0.html +0 -80
- data/misc/openlayers/tests/Format/SOSCapabilities/v1_0_0.js +0 -484
- data/misc/openlayers/tests/Format/SOSGetFeatureOfInterest.html +0 -80
- data/misc/openlayers/tests/Format/SOSGetObservation.html +0 -183
- data/misc/openlayers/tests/Format/Text.html +0 -49
- data/misc/openlayers/tests/Format/WCSCapabilities.html +0 -43
- data/misc/openlayers/tests/Format/WCSCapabilities/v1.html +0 -87
- data/misc/openlayers/tests/Format/WCSGetCoverage.html +0 -80
- data/misc/openlayers/tests/Format/WFS.html +0 -81
- data/misc/openlayers/tests/Format/WFSCapabilities.html +0 -43
- data/misc/openlayers/tests/Format/WFSCapabilities/v1.html +0 -179
- data/misc/openlayers/tests/Format/WFSDescribeFeatureType.html +0 -436
- data/misc/openlayers/tests/Format/WFST.html +0 -23
- data/misc/openlayers/tests/Format/WFST/v1.html +0 -455
- data/misc/openlayers/tests/Format/WFST/v1_0_0.html +0 -135
- data/misc/openlayers/tests/Format/WFST/v1_1_0.html +0 -236
- data/misc/openlayers/tests/Format/WKT.html +0 -297
- data/misc/openlayers/tests/Format/WMC.html +0 -315
- data/misc/openlayers/tests/Format/WMC/v1.html +0 -266
- data/misc/openlayers/tests/Format/WMC/v1_1_0.html +0 -86
- data/misc/openlayers/tests/Format/WMSCapabilities.html +0 -20
- data/misc/openlayers/tests/Format/WMSCapabilities/v1_1_1.html +0 -5209
- data/misc/openlayers/tests/Format/WMSCapabilities/v1_1_1_WMSC.html +0 -348
- data/misc/openlayers/tests/Format/WMSCapabilities/v1_3_0.html +0 -614
- data/misc/openlayers/tests/Format/WMSDescribeLayer.html +0 -65
- data/misc/openlayers/tests/Format/WMSGetFeatureInfo.html +0 -319
- data/misc/openlayers/tests/Format/WMTSCapabilities.html +0 -20
- data/misc/openlayers/tests/Format/WMTSCapabilities/v1_0_0.html +0 -1042
- data/misc/openlayers/tests/Format/WPSCapabilities/v1_0_0.html +0 -30
- data/misc/openlayers/tests/Format/WPSCapabilities/v1_0_0.js +0 -112
- data/misc/openlayers/tests/Format/WPSDescribeProcess.html +0 -206
- data/misc/openlayers/tests/Format/WPSExecute.html +0 -549
- data/misc/openlayers/tests/Format/XLS/v1_1_0.html +0 -98
- data/misc/openlayers/tests/Format/XML.html +0 -900
- data/misc/openlayers/tests/Format/XML/VersionedOGC.html +0 -51
- data/misc/openlayers/tests/Geometry.html +0 -356
- data/misc/openlayers/tests/Geometry/Collection.html +0 -431
- data/misc/openlayers/tests/Geometry/Curve.html +0 -157
- data/misc/openlayers/tests/Geometry/LineString.html +0 -443
- data/misc/openlayers/tests/Geometry/LinearRing.html +0 -362
- data/misc/openlayers/tests/Geometry/MultiLineString.html +0 -267
- data/misc/openlayers/tests/Geometry/MultiPoint.html +0 -130
- data/misc/openlayers/tests/Geometry/MultiPolygon.html +0 -34
- data/misc/openlayers/tests/Geometry/Point.html +0 -244
- data/misc/openlayers/tests/Geometry/Polygon.html +0 -420
- data/misc/openlayers/tests/Handler.html +0 -265
- data/misc/openlayers/tests/Handler/Box.html +0 -106
- data/misc/openlayers/tests/Handler/Click.html +0 -735
- data/misc/openlayers/tests/Handler/Drag.html +0 -603
- data/misc/openlayers/tests/Handler/Feature.html +0 -698
- data/misc/openlayers/tests/Handler/Hover.html +0 -136
- data/misc/openlayers/tests/Handler/Keyboard.html +0 -150
- data/misc/openlayers/tests/Handler/MouseWheel.html +0 -182
- data/misc/openlayers/tests/Handler/Path.html +0 -1464
- data/misc/openlayers/tests/Handler/Pinch.html +0 -285
- data/misc/openlayers/tests/Handler/Point.html +0 -600
- data/misc/openlayers/tests/Handler/Polygon.html +0 -1161
- data/misc/openlayers/tests/Handler/RegularPolygon.html +0 -235
- data/misc/openlayers/tests/Icon.html +0 -68
- data/misc/openlayers/tests/Kinetic.html +0 -132
- data/misc/openlayers/tests/Lang.html +0 -106
- data/misc/openlayers/tests/Layer.html +0 -910
- data/misc/openlayers/tests/Layer/ArcGIS93Rest.html +0 -324
- data/misc/openlayers/tests/Layer/ArcGISCache.html +0 -256
- data/misc/openlayers/tests/Layer/ArcGISCache.json +0 -334
- data/misc/openlayers/tests/Layer/ArcIMS.html +0 -123
- data/misc/openlayers/tests/Layer/Bing.html +0 -200
- data/misc/openlayers/tests/Layer/EventPane.html +0 -172
- data/misc/openlayers/tests/Layer/FixedZoomLevels.html +0 -137
- data/misc/openlayers/tests/Layer/GeoRSS.html +0 -210
- data/misc/openlayers/tests/Layer/Google.html +0 -369
- data/misc/openlayers/tests/Layer/Google/v3.html +0 -337
- data/misc/openlayers/tests/Layer/Grid.html +0 -1593
- data/misc/openlayers/tests/Layer/HTTPRequest.html +0 -229
- data/misc/openlayers/tests/Layer/Image.html +0 -164
- data/misc/openlayers/tests/Layer/KaMap.html +0 -287
- data/misc/openlayers/tests/Layer/MapGuide.html +0 -177
- data/misc/openlayers/tests/Layer/MapServer.html +0 -238
- data/misc/openlayers/tests/Layer/Markers.html +0 -156
- data/misc/openlayers/tests/Layer/OSM.html +0 -16
- data/misc/openlayers/tests/Layer/PointGrid.html +0 -232
- data/misc/openlayers/tests/Layer/PointTrack.html +0 -79
- data/misc/openlayers/tests/Layer/SphericalMercator.html +0 -126
- data/misc/openlayers/tests/Layer/TMS.html +0 -262
- data/misc/openlayers/tests/Layer/Text.html +0 -211
- data/misc/openlayers/tests/Layer/TileCache.html +0 -203
- data/misc/openlayers/tests/Layer/UTFGrid.html +0 -131
- data/misc/openlayers/tests/Layer/Vector.html +0 -879
- data/misc/openlayers/tests/Layer/Vector/RootContainer.html +0 -63
- data/misc/openlayers/tests/Layer/WMS.html +0 -583
- data/misc/openlayers/tests/Layer/WMTS.html +0 -1491
- data/misc/openlayers/tests/Layer/WrapDateLine.html +0 -188
- data/misc/openlayers/tests/Layer/XYZ.html +0 -266
- data/misc/openlayers/tests/Layer/atom-1.0.xml +0 -34
- data/misc/openlayers/tests/Layer/data_Layer_Text_textfile.txt +0 -3
- data/misc/openlayers/tests/Layer/data_Layer_Text_textfile_2.txt +0 -3
- data/misc/openlayers/tests/Layer/data_Layer_Text_textfile_overflow.txt +0 -3
- data/misc/openlayers/tests/Layer/georss.txt +0 -378
- data/misc/openlayers/tests/Map.html +0 -2255
- data/misc/openlayers/tests/Marker.html +0 -163
- data/misc/openlayers/tests/Marker/Box.html +0 -183
- data/misc/openlayers/tests/OLLoader.js +0 -26
- data/misc/openlayers/tests/OpenLayers1.html +0 -18
- data/misc/openlayers/tests/OpenLayers2.html +0 -19
- data/misc/openlayers/tests/OpenLayers3.html +0 -19
- data/misc/openlayers/tests/OpenLayers4.html +0 -18
- data/misc/openlayers/tests/OpenLayersJsFiles.html +0 -27
- data/misc/openlayers/tests/Popup.html +0 -219
- data/misc/openlayers/tests/Popup/Anchored.html +0 -37
- data/misc/openlayers/tests/Popup/FramedCloud.html +0 -18
- data/misc/openlayers/tests/Projection.html +0 -87
- data/misc/openlayers/tests/Protocol.html +0 -63
- data/misc/openlayers/tests/Protocol/CSW.html +0 -90
- data/misc/openlayers/tests/Protocol/HTTP.html +0 -842
- data/misc/openlayers/tests/Protocol/SOS.html +0 -57
- data/misc/openlayers/tests/Protocol/Script.html +0 -282
- data/misc/openlayers/tests/Protocol/WFS.html +0 -471
- data/misc/openlayers/tests/README.txt +0 -16
- data/misc/openlayers/tests/Renderer.html +0 -96
- data/misc/openlayers/tests/Renderer/Canvas.html +0 -501
- data/misc/openlayers/tests/Renderer/Elements.html +0 -651
- data/misc/openlayers/tests/Renderer/SVG.html +0 -441
- data/misc/openlayers/tests/Renderer/VML.html +0 -454
- data/misc/openlayers/tests/Request.html +0 -524
- data/misc/openlayers/tests/Request/XMLHttpRequest.html +0 -59
- data/misc/openlayers/tests/Rule.html +0 -123
- data/misc/openlayers/tests/SingleFile1.html +0 -15
- data/misc/openlayers/tests/SingleFile2.html +0 -15
- data/misc/openlayers/tests/SingleFile3.html +0 -15
- data/misc/openlayers/tests/Strategy.html +0 -94
- data/misc/openlayers/tests/Strategy/BBOX.html +0 -361
- data/misc/openlayers/tests/Strategy/Cluster.html +0 -148
- data/misc/openlayers/tests/Strategy/Filter.html +0 -135
- data/misc/openlayers/tests/Strategy/Fixed.html +0 -253
- data/misc/openlayers/tests/Strategy/Paging.html +0 -113
- data/misc/openlayers/tests/Strategy/Refresh.html +0 -177
- data/misc/openlayers/tests/Strategy/Save.html +0 -127
- data/misc/openlayers/tests/Style.html +0 -426
- data/misc/openlayers/tests/Style2.html +0 -56
- data/misc/openlayers/tests/StyleMap.html +0 -44
- data/misc/openlayers/tests/Symbolizer.html +0 -31
- data/misc/openlayers/tests/Symbolizer/Line.html +0 -42
- data/misc/openlayers/tests/Symbolizer/Point.html +0 -52
- data/misc/openlayers/tests/Symbolizer/Polygon.html +0 -44
- data/misc/openlayers/tests/Symbolizer/Raster.html +0 -32
- data/misc/openlayers/tests/Symbolizer/Text.html +0 -42
- data/misc/openlayers/tests/Test.AnotherWay.baseadditions.js +0 -191
- data/misc/openlayers/tests/Test.AnotherWay.css +0 -243
- data/misc/openlayers/tests/Test.AnotherWay.geom_eq.js +0 -139
- data/misc/openlayers/tests/Test.AnotherWay.js +0 -2498
- data/misc/openlayers/tests/Test.AnotherWay.xml_eq.js +0 -311
- data/misc/openlayers/tests/Tile.html +0 -130
- data/misc/openlayers/tests/Tile/Image.html +0 -490
- data/misc/openlayers/tests/Tile/Image/IFrame.html +0 -183
- data/misc/openlayers/tests/Tile/UTFGrid.html +0 -306
- data/misc/openlayers/tests/TileManager.html +0 -137
- data/misc/openlayers/tests/Tween.html +0 -116
- data/misc/openlayers/tests/Util.html +0 -1180
- data/misc/openlayers/tests/Util/vendorPrefix.html +0 -117
- data/misc/openlayers/tests/Util_common.js +0 -64
- data/misc/openlayers/tests/Util_w3c.html +0 -35
- data/misc/openlayers/tests/WPSClient.html +0 -108
- data/misc/openlayers/tests/WPSProcess.html +0 -188
- data/misc/openlayers/tests/atom-1.0.xml +0 -34
- data/misc/openlayers/tests/auto-tests.html +0 -2447
- data/misc/openlayers/tests/data/geos_wkt_intersects.js +0 -495
- data/misc/openlayers/tests/data/osm.js +0 -14
- data/misc/openlayers/tests/data/utfgrid/bio_utfgrid/1/0/0.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/bio_utfgrid/1/0/1.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/bio_utfgrid/1/0/2.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/bio_utfgrid/1/1/0.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/bio_utfgrid/1/1/1.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/bio_utfgrid/1/1/2.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/bio_utfgrid/1/2/0.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/bio_utfgrid/1/2/1.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/bio_utfgrid/1/2/2.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/demo-1.1.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/world_utfgrid/1/0/0.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/world_utfgrid/1/0/1.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/world_utfgrid/1/0/2.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/world_utfgrid/1/1/0.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/world_utfgrid/1/1/1.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/world_utfgrid/1/1/2.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/world_utfgrid/1/2/0.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/world_utfgrid/1/2/1.json +0 -1
- data/misc/openlayers/tests/data/utfgrid/world_utfgrid/1/2/2.json +0 -1
- data/misc/openlayers/tests/data_Layer_Text_textfile.txt +0 -3
- data/misc/openlayers/tests/data_Layer_Text_textfile_2.txt +0 -3
- data/misc/openlayers/tests/data_Layer_Text_textfile_overflow.txt +0 -3
- data/misc/openlayers/tests/deprecated/Ajax.html +0 -28
- data/misc/openlayers/tests/deprecated/BaseTypes/Class.html +0 -142
- data/misc/openlayers/tests/deprecated/BaseTypes/Element.html +0 -56
- data/misc/openlayers/tests/deprecated/Control/MouseToolbar.html +0 -60
- data/misc/openlayers/tests/deprecated/Geometry/Rectangle.html +0 -77
- data/misc/openlayers/tests/deprecated/Layer/GML.html +0 -61
- data/misc/openlayers/tests/deprecated/Layer/MapServer.html +0 -59
- data/misc/openlayers/tests/deprecated/Layer/MapServer/Untiled.html +0 -158
- data/misc/openlayers/tests/deprecated/Layer/WFS.html +0 -178
- data/misc/openlayers/tests/deprecated/Layer/WMS.html +0 -60
- data/misc/openlayers/tests/deprecated/Layer/WMS/Post.html +0 -89
- data/misc/openlayers/tests/deprecated/Layer/Yahoo.html +0 -121
- data/misc/openlayers/tests/deprecated/Layer/mice.xml +0 -156
- data/misc/openlayers/tests/deprecated/Layer/owls.xml +0 -156
- data/misc/openlayers/tests/deprecated/Popup/AnchoredBubble.html +0 -61
- data/misc/openlayers/tests/deprecated/Protocol/SQL.html +0 -24
- data/misc/openlayers/tests/deprecated/Protocol/SQL/Gears.html +0 -474
- data/misc/openlayers/tests/deprecated/Renderer/SVG2.html +0 -399
- data/misc/openlayers/tests/deprecated/Tile/WFS.html +0 -215
- data/misc/openlayers/tests/deprecated/Util.html +0 -20
- data/misc/openlayers/tests/georss.txt +0 -378
- data/misc/openlayers/tests/grid_inittiles.html +0 -30
- data/misc/openlayers/tests/index.html +0 -6
- data/misc/openlayers/tests/list-tests.html +0 -260
- data/misc/openlayers/tests/manual/ajax.html +0 -49
- data/misc/openlayers/tests/manual/ajax.txt +0 -1
- data/misc/openlayers/tests/manual/alloverlays-mixed.html +0 -55
- data/misc/openlayers/tests/manual/arcims-2117.html +0 -103
- data/misc/openlayers/tests/manual/arkansas.rss +0 -9
- data/misc/openlayers/tests/manual/big-georss.html +0 -33
- data/misc/openlayers/tests/manual/box-quirks.html +0 -52
- data/misc/openlayers/tests/manual/box-strict.html +0 -46
- data/misc/openlayers/tests/manual/clip-features-svg.html +0 -128
- data/misc/openlayers/tests/manual/dateline-sketch.html +0 -66
- data/misc/openlayers/tests/manual/dateline-smallextent.html +0 -61
- data/misc/openlayers/tests/manual/draw-feature.html +0 -73
- data/misc/openlayers/tests/manual/feature-handler.html +0 -126
- data/misc/openlayers/tests/manual/geodesic.html +0 -160
- data/misc/openlayers/tests/manual/geojson-geomcoll-reprojection.html +0 -74
- data/misc/openlayers/tests/manual/google-fullscreen-overlay.html +0 -54
- data/misc/openlayers/tests/manual/google-panning.html +0 -122
- data/misc/openlayers/tests/manual/google-resize.html +0 -55
- data/misc/openlayers/tests/manual/google-tilt.html +0 -37
- data/misc/openlayers/tests/manual/google-v3-resize.html +0 -54
- data/misc/openlayers/tests/manual/loadend.html +0 -73
- data/misc/openlayers/tests/manual/map-events.html +0 -38
- data/misc/openlayers/tests/manual/memory/Marker-2258.html +0 -60
- data/misc/openlayers/tests/manual/memory/PanZoom-2323.html +0 -41
- data/misc/openlayers/tests/manual/memory/RemoveChild-2170.html +0 -56
- data/misc/openlayers/tests/manual/memory/VML-2170.html +0 -49
- data/misc/openlayers/tests/manual/multiple-google-layers.html +0 -135
- data/misc/openlayers/tests/manual/overviewmap-projection.html +0 -70
- data/misc/openlayers/tests/manual/page-position.html +0 -103
- data/misc/openlayers/tests/manual/pan-redraw-svg.html +0 -58
- data/misc/openlayers/tests/manual/popup-keepInMap.html +0 -100
- data/misc/openlayers/tests/manual/reflow.html +0 -59
- data/misc/openlayers/tests/manual/renderedDimensions.html +0 -113
- data/misc/openlayers/tests/manual/select-feature-right-click.html +0 -86
- data/misc/openlayers/tests/manual/select-feature.html +0 -75
- data/misc/openlayers/tests/manual/tiles-loading.html +0 -122
- data/misc/openlayers/tests/manual/tween.html +0 -82
- data/misc/openlayers/tests/manual/vector-features-performance.html +0 -149
- data/misc/openlayers/tests/manual/vector-layer-zindex.html +0 -143
- data/misc/openlayers/tests/mice.xml +0 -156
- data/misc/openlayers/tests/node.js/mockdom.js +0 -104
- data/misc/openlayers/tests/node.js/node-tests.cfg +0 -12
- data/misc/openlayers/tests/node.js/node.js +0 -1
- data/misc/openlayers/tests/node.js/run-test.js +0 -26
- data/misc/openlayers/tests/node.js/run.sh +0 -10
- data/misc/openlayers/tests/owls.xml +0 -156
- data/misc/openlayers/tests/run-tests.html +0 -155
- data/misc/openlayers/tests/selenium/remotecontrol/config.cfg +0 -48
- data/misc/openlayers/tests/selenium/remotecontrol/selenium.py +0 -1846
- data/misc/openlayers/tests/selenium/remotecontrol/setup.txt +0 -8
- data/misc/openlayers/tests/selenium/remotecontrol/test_ol.py +0 -95
- data/misc/openlayers/tests/speed/geometry.html +0 -43
- data/misc/openlayers/tests/speed/string_format.html +0 -29
- data/misc/openlayers/tests/speed/vector-renderers.html +0 -25
- data/misc/openlayers/tests/speed/vector-renderers.js +0 -70
- data/misc/openlayers/tests/speed/wmc_speed.html +0 -30
- data/misc/openlayers/tests/speed/wmscaps.html +0 -52
- data/misc/openlayers/tests/speed/wmscaps.js +0 -4956
- data/misc/openlayers/tests/speed/wmscaps.xml +0 -4954
- data/misc/openlayers/tests/throws.js +0 -82
- data/misc/openlayers/theme/default/google.css +0 -9
- data/misc/openlayers/theme/default/google.tidy.css +0 -1
- data/misc/openlayers/theme/default/ie6-style.css +0 -10
- data/misc/openlayers/theme/default/ie6-style.tidy.css +0 -1
- data/misc/openlayers/theme/default/img/add_point_off.png +0 -0
- data/misc/openlayers/theme/default/img/add_point_on.png +0 -0
- data/misc/openlayers/theme/default/img/blank.gif +0 -0
- data/misc/openlayers/theme/default/img/close.gif +0 -0
- data/misc/openlayers/theme/default/img/drag-rectangle-off.png +0 -0
- data/misc/openlayers/theme/default/img/drag-rectangle-on.png +0 -0
- data/misc/openlayers/theme/default/img/draw_line_off.png +0 -0
- data/misc/openlayers/theme/default/img/draw_line_on.png +0 -0
- data/misc/openlayers/theme/default/img/draw_point_off.png +0 -0
- data/misc/openlayers/theme/default/img/draw_point_on.png +0 -0
- data/misc/openlayers/theme/default/img/draw_polygon_off.png +0 -0
- data/misc/openlayers/theme/default/img/draw_polygon_on.png +0 -0
- data/misc/openlayers/theme/default/img/editing_tool_bar.png +0 -0
- data/misc/openlayers/theme/default/img/move_feature_off.png +0 -0
- data/misc/openlayers/theme/default/img/move_feature_on.png +0 -0
- data/misc/openlayers/theme/default/img/navigation_history.png +0 -0
- data/misc/openlayers/theme/default/img/overview_replacement.gif +0 -0
- data/misc/openlayers/theme/default/img/pan-panel-NOALPHA.png +0 -0
- data/misc/openlayers/theme/default/img/pan-panel.png +0 -0
- data/misc/openlayers/theme/default/img/pan_off.png +0 -0
- data/misc/openlayers/theme/default/img/pan_on.png +0 -0
- data/misc/openlayers/theme/default/img/panning-hand-off.png +0 -0
- data/misc/openlayers/theme/default/img/panning-hand-on.png +0 -0
- data/misc/openlayers/theme/default/img/remove_point_off.png +0 -0
- data/misc/openlayers/theme/default/img/remove_point_on.png +0 -0
- data/misc/openlayers/theme/default/img/ruler.png +0 -0
- data/misc/openlayers/theme/default/img/save_features_off.png +0 -0
- data/misc/openlayers/theme/default/img/save_features_on.png +0 -0
- data/misc/openlayers/theme/default/img/view_next_off.png +0 -0
- data/misc/openlayers/theme/default/img/view_next_on.png +0 -0
- data/misc/openlayers/theme/default/img/view_previous_off.png +0 -0
- data/misc/openlayers/theme/default/img/view_previous_on.png +0 -0
- data/misc/openlayers/theme/default/img/zoom-panel-NOALPHA.png +0 -0
- data/misc/openlayers/theme/default/img/zoom-panel.png +0 -0
- data/misc/openlayers/theme/default/style.css +0 -516
- data/misc/openlayers/theme/default/style.mobile.css +0 -70
- data/misc/openlayers/theme/default/style.mobile.tidy.css +0 -1
- data/misc/openlayers/theme/default/style.tidy.css +0 -1
- data/misc/openlayers/tools/BeautifulSoup.py +0 -1767
- data/misc/openlayers/tools/README.txt +0 -14
- data/misc/openlayers/tools/closure_library_jscompiler.py +0 -71
- data/misc/openlayers/tools/closure_ws.py +0 -28
- data/misc/openlayers/tools/exampleparser.py +0 -251
- data/misc/openlayers/tools/jsmin.c +0 -272
- data/misc/openlayers/tools/jsmin.py +0 -216
- data/misc/openlayers/tools/mergejs.py +0 -287
- data/misc/openlayers/tools/minimize.py +0 -47
- data/misc/openlayers/tools/oldot.py +0 -43
- data/misc/openlayers/tools/release.sh +0 -71
- data/misc/openlayers/tools/shrinksafe.py +0 -54
- data/misc/openlayers/tools/toposort.py +0 -35
- data/misc/openlayers/tools/uglify_js.py +0 -35
- data/misc/openlayers/tools/update_dev_dir.sh +0 -103
@@ -1,137 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<script src="OLLoader.js"></script>
|
4
|
-
<script type="text/javascript">
|
5
|
-
|
6
|
-
function test_initialize(t) {
|
7
|
-
t.plan(4);
|
8
|
-
|
9
|
-
var tileManager = new OpenLayers.TileManager();
|
10
|
-
var map = new OpenLayers.Map('map', {
|
11
|
-
zoomMethod: null,
|
12
|
-
tileManager: tileManager
|
13
|
-
});
|
14
|
-
var layer = new OpenLayers.Layer.WMS('WMS1', '../img/blank.gif');
|
15
|
-
map.addLayer(layer);
|
16
|
-
map.setCenter([16, 48], 9);
|
17
|
-
t.ok(tileManager.tileQueue[map.id].length, "Tiles queued from layer");
|
18
|
-
map.removeLayer(layer);
|
19
|
-
t.eq(tileManager.tileQueue[map.id].length, 0, "Tiles unqueued when layer is removed");
|
20
|
-
map.addLayer(new OpenLayers.Layer.WMS('WMS2', '../img/blank.gif'));
|
21
|
-
map.zoomIn();
|
22
|
-
t.ok(tileManager.tileQueue[map.id].length, "Tiles queued from added layer");
|
23
|
-
map.destroy();
|
24
|
-
t.eq(tileManager.tileQueue[map.id], undefined, "Tile queue removed when map was destroyed");
|
25
|
-
}
|
26
|
-
|
27
|
-
function test_destroy(t) {
|
28
|
-
t.plan(3);
|
29
|
-
|
30
|
-
var tileManager = new OpenLayers.TileManager();
|
31
|
-
var map = new OpenLayers.Map('map', {tileManager: tileManager});
|
32
|
-
var layer = new OpenLayers.Layer.WMS('WMS', '../img/blank.gif');
|
33
|
-
map.addLayer(layer);
|
34
|
-
map.setCenter([16, 48], 9);
|
35
|
-
var numTileListeners = layer.grid[0][0].events.listeners.beforeload.length;
|
36
|
-
var numLayerListeners = layer.events.listeners.retile.length;
|
37
|
-
var numMapListeners = map.events.listeners.preremovelayer.length;
|
38
|
-
tileManager.destroy();
|
39
|
-
t.eq(layer.grid[0][0].events.listeners.beforeload.length, numTileListeners - 1, "no listener on tile after destroy");
|
40
|
-
t.eq(layer.events.listeners.retile.length, numLayerListeners - 1, "no listeners on layer after destroy");
|
41
|
-
t.eq(map.events.listeners.preremovelayer.length, numMapListeners - 1, "no listeners on map after destroy");
|
42
|
-
map.destroy();
|
43
|
-
}
|
44
|
-
|
45
|
-
function test_manageTileCache(t) {
|
46
|
-
t.plan(10);
|
47
|
-
|
48
|
-
var tileManager = new OpenLayers.TileManager({
|
49
|
-
cacheSize: 12
|
50
|
-
});
|
51
|
-
var map = new OpenLayers.Map('map', {tileManager: tileManager});
|
52
|
-
layer = new OpenLayers.Layer.WMS('WMS', '../img/blank.gif');
|
53
|
-
map.addLayer(layer);
|
54
|
-
map.setCenter([16, 48], 9);
|
55
|
-
var gridSize;
|
56
|
-
|
57
|
-
var firstInCache, sharedTile;
|
58
|
-
t.delay_call(2, function() {
|
59
|
-
t.eq(tileManager.tileCacheIndex.length, 12, "tiles cached");
|
60
|
-
t.ok(~OpenLayers.Util.indexOf(tileManager.tileCacheIndex, layer.grid[1][2].url), "tile found in cache");
|
61
|
-
t.ok(tileManager.tileCache[layer.grid[1][2].url] === layer.grid[1][2].imgDiv, "correct object cached");
|
62
|
-
firstInCache = tileManager.tileCache[tileManager.tileCacheIndex[0]];
|
63
|
-
sharedTile = tileManager.tileCache[tileManager.tileCacheIndex[11]];
|
64
|
-
gridSize = layer.div.childNodes.length;
|
65
|
-
map.setCenter([17, 47]);
|
66
|
-
});
|
67
|
-
|
68
|
-
function inCache(img) {
|
69
|
-
var search = img.src.split('?')[1];
|
70
|
-
for (var s in tileManager.tileCache) {
|
71
|
-
if (s.split('?')[1] == search) {
|
72
|
-
return true;
|
73
|
-
}
|
74
|
-
}
|
75
|
-
return false;
|
76
|
-
}
|
77
|
-
|
78
|
-
t.delay_call(4, function() {
|
79
|
-
t.eq(tileManager.tileCacheIndex.length, 12, "tiles cached");
|
80
|
-
t.ok(tileManager.tileCache[layer.grid[1][2].url] === layer.grid[1][2].imgDiv, "correct object cached");
|
81
|
-
t.ok(!inCache(firstInCache), "old tile discarded");
|
82
|
-
t.ok(inCache(sharedTile), "shared tile still in cache");
|
83
|
-
firstInCache = tileManager.tileCache[tileManager.tileCacheIndex[0]];
|
84
|
-
map.setCenter([16, 48]);
|
85
|
-
});
|
86
|
-
t.delay_call(6, function() {
|
87
|
-
t.ok(!inCache(firstInCache), "old tile discarded");
|
88
|
-
t.ok(inCache(sharedTile), "shared tile still in cache");
|
89
|
-
t.eq(layer.div.childNodes.length, gridSize, 'no unused images left in dom');
|
90
|
-
map.destroy();
|
91
|
-
});
|
92
|
-
}
|
93
|
-
|
94
|
-
function test_queueTileDraw(t) {
|
95
|
-
t.plan(3);
|
96
|
-
|
97
|
-
var tileManager = new OpenLayers.TileManager();
|
98
|
-
var map = new OpenLayers.Map('map', {tileManager: tileManager});
|
99
|
-
layer = new OpenLayers.Layer.WMS('WMS', '../img/blank.gif');
|
100
|
-
map.addLayer(layer);
|
101
|
-
map.setCenter([0, 0], 3);
|
102
|
-
var queued = tileManager.tileQueue[map.id].length;
|
103
|
-
t.ok(tileManager.tileQueue[map.id].length, "Tiles queued for drawing");
|
104
|
-
map.zoomIn();
|
105
|
-
t.eq(tileManager.tileQueue[map.id].length, queued, "Tile queue has same length after immediate zoom change");
|
106
|
-
t.delay_call(1, function() {
|
107
|
-
t.eq(tileManager.tileQueue[map.id].length, 0, "Tiles from queue processed");
|
108
|
-
map.destroy();
|
109
|
-
});
|
110
|
-
}
|
111
|
-
|
112
|
-
function test_deferTileDraw(t) {
|
113
|
-
|
114
|
-
t.plan(3);
|
115
|
-
|
116
|
-
var tileManager = new OpenLayers.TileManager();
|
117
|
-
var map = new OpenLayers.Map('map', {tileManager: tileManager});
|
118
|
-
layer = new OpenLayers.Layer.WMS('WMS', '../img/blank.gif');
|
119
|
-
layer.destroy = function() {}; //we're going to do funky things with the grid
|
120
|
-
layer.applyBackBuffer = function() {}; // backbuffering isn't under test here
|
121
|
-
map.addLayer(layer);
|
122
|
-
map.setCenter([-10, 0], 5);
|
123
|
-
|
124
|
-
map.moveTo([5, 0]);
|
125
|
-
t.ok(tileManager.tileQueue[map.id].length, "tile loading deferred after moveTo");
|
126
|
-
map.moveTo([0, 0]);
|
127
|
-
t.ok(tileManager.tileQueue[map.id].length, "deferred again after another moveTo");
|
128
|
-
t.delay_call(1, function() {
|
129
|
-
t.eq(tileManager.tileQueue[map.id].length, 0, "tiles loaded after moveDelay");
|
130
|
-
});
|
131
|
-
}
|
132
|
-
</script>
|
133
|
-
</head>
|
134
|
-
<body>
|
135
|
-
<div id="map" style="width:499px;height:549px;display:none"></div>
|
136
|
-
</body>
|
137
|
-
</html>
|
@@ -1,116 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<script>
|
4
|
-
/**
|
5
|
-
* Because browsers that implement requestAnimationFrame may not execute
|
6
|
-
* animation functions while a window is not displayed (e.g. in a hidden
|
7
|
-
* iframe as in these tests), we mask the native implementations here. The
|
8
|
-
* native requestAnimationFrame functionality is tested in Util.html and
|
9
|
-
* in PanZoom.html (where a popup is opened before panning). The panTo tests
|
10
|
-
* here will test the fallback setTimeout implementation for animation.
|
11
|
-
*/
|
12
|
-
window.requestAnimationFrame =
|
13
|
-
window.webkitRequestAnimationFrame =
|
14
|
-
window.mozRequestAnimationFrame =
|
15
|
-
window.oRequestAnimationFrame =
|
16
|
-
window.msRequestAnimationFrame = null;
|
17
|
-
</script>
|
18
|
-
<script src="OLLoader.js"></script>
|
19
|
-
<script type="text/javascript">
|
20
|
-
|
21
|
-
function test_Tween_constructor(t) {
|
22
|
-
t.plan(3);
|
23
|
-
|
24
|
-
var tween = new OpenLayers.Tween();
|
25
|
-
t.ok(tween instanceof OpenLayers.Tween,
|
26
|
-
"new OpenLayers.Tween returns object" );
|
27
|
-
t.eq(typeof tween.easing, "function",
|
28
|
-
"constructor sets easing correctly");
|
29
|
-
t.eq(typeof tween.start, "function", "tween has a start function");
|
30
|
-
}
|
31
|
-
|
32
|
-
function test_Tween_start(t) {
|
33
|
-
t.plan(5);
|
34
|
-
|
35
|
-
var tween = new OpenLayers.Tween();
|
36
|
-
|
37
|
-
var start = {foo: 0, bar: 10};
|
38
|
-
var finish = {foo: 10, bar: 0};
|
39
|
-
var _start = false;
|
40
|
-
var _done = false;
|
41
|
-
var _eachStep = false;
|
42
|
-
var callbacks = {
|
43
|
-
start: function() {
|
44
|
-
_start = true;
|
45
|
-
},
|
46
|
-
done: function() {
|
47
|
-
_done = true;
|
48
|
-
},
|
49
|
-
eachStep: function() {
|
50
|
-
_eachStep = true;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
tween.start(start, finish, 10, {callbacks: callbacks});
|
54
|
-
t.ok(tween.animationId != null, "animationId correctly set");
|
55
|
-
t.delay_call(0.8, function() {
|
56
|
-
t.eq(_start, true, "start callback called");
|
57
|
-
t.eq(_done, true, "finish callback called");
|
58
|
-
t.eq(_eachStep, true, "eachStep callback called");
|
59
|
-
t.eq(tween.time, 11, "Number of steps reached is correct");
|
60
|
-
});
|
61
|
-
}
|
62
|
-
|
63
|
-
function test_Tween_stop(t) {
|
64
|
-
t.plan(2);
|
65
|
-
|
66
|
-
var tween = new OpenLayers.Tween();
|
67
|
-
tween.animationId = OpenLayers.Animation.start(function() {});
|
68
|
-
tween.playing = true;
|
69
|
-
tween.stop();
|
70
|
-
t.eq(tween.animationId, null, "tween correctly stopped");
|
71
|
-
|
72
|
-
tween.animationId = OpenLayers.Animation.start(function() {});
|
73
|
-
tween.playing = false;
|
74
|
-
tween.stop();
|
75
|
-
t.ok(tween.animationId != null, "stop method doesn't do anything if tween isn't running");
|
76
|
-
}
|
77
|
-
|
78
|
-
function test_Tween_skip(t) {
|
79
|
-
t.plan(2);
|
80
|
-
|
81
|
-
var tween = new OpenLayers.Tween();
|
82
|
-
var log = 0;
|
83
|
-
tween.start({count: 0}, {count: 10}, 10, {
|
84
|
-
callbacks: {
|
85
|
-
eachStep: function() {
|
86
|
-
log++;
|
87
|
-
}
|
88
|
-
},
|
89
|
-
minFrameRate: 10000
|
90
|
-
});
|
91
|
-
|
92
|
-
t.delay_call(0.8, function() {
|
93
|
-
t.eq(log, 0, 'all frames skipped at a frame rate of 10000');
|
94
|
-
|
95
|
-
log = 0;
|
96
|
-
tween.start({count: 0}, {count: 10}, 10, {
|
97
|
-
callbacks: {
|
98
|
-
eachStep: function() {
|
99
|
-
log++;
|
100
|
-
}
|
101
|
-
},
|
102
|
-
minFrameRate: 1
|
103
|
-
});
|
104
|
-
});
|
105
|
-
|
106
|
-
t.delay_call(1.6, function() {
|
107
|
-
t.eq(log, 11, 'no frames skipped at a frame rate of 1');
|
108
|
-
});
|
109
|
-
}
|
110
|
-
|
111
|
-
</script>
|
112
|
-
</head>
|
113
|
-
<body>
|
114
|
-
<div id="map" style="width:500px;height:500px"></div>
|
115
|
-
</body>
|
116
|
-
</html>
|
@@ -1,1180 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
4
|
-
<style>
|
5
|
-
body {
|
6
|
-
margin: 0;
|
7
|
-
padding: 0;
|
8
|
-
}
|
9
|
-
#map {
|
10
|
-
position: absolute;
|
11
|
-
top: 1234px;
|
12
|
-
left: 123px;
|
13
|
-
}
|
14
|
-
.test_getRenderedDimensions p{
|
15
|
-
padding: 20px;
|
16
|
-
}
|
17
|
-
</style>
|
18
|
-
<script>
|
19
|
-
var OpenLayers = [
|
20
|
-
"OpenLayers/BaseTypes/Class.js",
|
21
|
-
"OpenLayers/Util.js",
|
22
|
-
"OpenLayers/BaseTypes.js",
|
23
|
-
"OpenLayers/BaseTypes/Element.js",
|
24
|
-
"OpenLayers/BaseTypes/LonLat.js",
|
25
|
-
"OpenLayers/BaseTypes/Pixel.js",
|
26
|
-
"OpenLayers/BaseTypes/Size.js",
|
27
|
-
"OpenLayers/Lang.js",
|
28
|
-
"OpenLayers/Console.js"
|
29
|
-
];
|
30
|
-
</script>
|
31
|
-
<script src="OLLoader.js"></script>
|
32
|
-
<script src="Util_common.js"></script>
|
33
|
-
<script type="text/javascript">
|
34
|
-
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
|
35
|
-
var map;
|
36
|
-
|
37
|
-
function test_isElement(t) {
|
38
|
-
t.plan(3);
|
39
|
-
|
40
|
-
// set up
|
41
|
-
var o;
|
42
|
-
|
43
|
-
// tests
|
44
|
-
o = {};
|
45
|
-
t.eq(OpenLayers.Util.isElement(o), false,
|
46
|
-
"isElement reports that {} isn't an Element");
|
47
|
-
o = document.createElement("div");
|
48
|
-
t.eq(OpenLayers.Util.isElement(o), true,
|
49
|
-
"isElement reports that object returned by createElement is an Element");
|
50
|
-
o = OpenLayers.Util.getElement("map");
|
51
|
-
t.eq(OpenLayers.Util.isElement(o), true,
|
52
|
-
"isElement reports that object returned by getElement is an Element");
|
53
|
-
}
|
54
|
-
|
55
|
-
function test_isArray(t) {
|
56
|
-
t.plan(5);
|
57
|
-
|
58
|
-
var a;
|
59
|
-
|
60
|
-
a = null;
|
61
|
-
t.eq(OpenLayers.Util.isArray(a), false,
|
62
|
-
"isArray reports 'null' isn't an Array");
|
63
|
-
a = "Array";
|
64
|
-
t.eq(OpenLayers.Util.isArray(a), false,
|
65
|
-
"isArray reports \"Array\" isn't an Array");
|
66
|
-
a = {};
|
67
|
-
t.eq(OpenLayers.Util.isArray(a), false,
|
68
|
-
"isArray reports {} isn't an Array");
|
69
|
-
a = [];
|
70
|
-
t.eq(OpenLayers.Util.isArray(a), true,
|
71
|
-
"isArray reports [] is an Array");
|
72
|
-
a = new Array();
|
73
|
-
t.eq(OpenLayers.Util.isArray(a), true,
|
74
|
-
"isArray reports new Array() is an Array");
|
75
|
-
}
|
76
|
-
|
77
|
-
function test_iframe_isArray(t) {
|
78
|
-
t.plan(3);
|
79
|
-
// create an array in an iframe
|
80
|
-
var iframe = document.createElement("iframe");
|
81
|
-
document.body.appendChild(iframe);
|
82
|
-
frames[frames.length-1].document.write(
|
83
|
-
"<script>parent.testArray = [];<\/script>"
|
84
|
-
);
|
85
|
-
|
86
|
-
t.ok(!!testArray, "testArray created");
|
87
|
-
t.ok(!(testArray instanceof Array), "instanceof check doesn't work");
|
88
|
-
t.eq(OpenLayers.Util.isArray(testArray), true, "isArray works");
|
89
|
-
}
|
90
|
-
|
91
|
-
function test_Util_getImagesLocation (t) {
|
92
|
-
t.plan( 1 );
|
93
|
-
t.ok( OpenLayers.Util.getImagesLocation(), "../img/",
|
94
|
-
"getImagesLocation()" );
|
95
|
-
}
|
96
|
-
|
97
|
-
function test_Util_IndexOf(t) {
|
98
|
-
t.plan( 3 );
|
99
|
-
var array = new Array(1, "bar");
|
100
|
-
t.eq(OpenLayers.Util.indexOf(array, 1), 0);
|
101
|
-
t.eq(OpenLayers.Util.indexOf(array, "bar"), 1);
|
102
|
-
t.eq(OpenLayers.Util.indexOf(array, "foo"), -1);
|
103
|
-
}
|
104
|
-
|
105
|
-
function test_Util_Array(t) {
|
106
|
-
t.plan( 2 );
|
107
|
-
|
108
|
-
var array = new Array(1,2,3,4,4,5);
|
109
|
-
|
110
|
-
OpenLayers.Util.removeItem(array, 3);
|
111
|
-
t.eq( array.toString(), "1,2,4,4,5", "Util.removeItem works on one element");
|
112
|
-
OpenLayers.Util.removeItem(array, 4);
|
113
|
-
t.eq( array.toString(), "1,2,5", "Util.removeItem works on more than one element ");
|
114
|
-
}
|
115
|
-
|
116
|
-
function test_Util_pagePosition(t) {
|
117
|
-
t.plan( 2 );
|
118
|
-
|
119
|
-
// making sure that the test iframe is visible
|
120
|
-
var origDisplay;
|
121
|
-
var parents = window.parent.document.getElementsByTagName('iframe');
|
122
|
-
if (parents.length) {
|
123
|
-
origDisplay = parents[1].parentNode.style.display;
|
124
|
-
// span containing the test iframe is the invisible element
|
125
|
-
parents[1].parentNode.style.display = "";
|
126
|
-
}
|
127
|
-
|
128
|
-
var pp = OpenLayers.Util.pagePosition(window);
|
129
|
-
t.eq( pp.toString(), "0,0", "Page position doesn't bail if passed 'window'");
|
130
|
-
|
131
|
-
var mapDiv = document.getElementById("map");
|
132
|
-
var beforeScrollPp = OpenLayers.Util.pagePosition(mapDiv);
|
133
|
-
window.scrollTo(100, 1200);
|
134
|
-
pp = OpenLayers.Util.pagePosition(mapDiv);
|
135
|
-
t.eq(pp, beforeScrollPp, "Page position should work after page has been scrolled");
|
136
|
-
|
137
|
-
// reset test iframe visibility
|
138
|
-
if (parents.length) {
|
139
|
-
parents[1].parentNode.style.display = origDisplay;
|
140
|
-
}
|
141
|
-
}
|
142
|
-
|
143
|
-
function test_Util_createDiv(t) {
|
144
|
-
t.plan( 24 );
|
145
|
-
|
146
|
-
var id = "boo";
|
147
|
-
var px = new OpenLayers.Pixel(5,5);
|
148
|
-
var sz = new OpenLayers.Size(10,10);
|
149
|
-
var img = "http://www.openlayers.org/images/OpenLayers.trac.png";
|
150
|
-
var position = "absolute";
|
151
|
-
var border = "13px solid";
|
152
|
-
var overflow = "hidden";
|
153
|
-
var opacity = 0.5;
|
154
|
-
|
155
|
-
var div = OpenLayers.Util.createDiv(id, px, sz, img, position, border, overflow, opacity);
|
156
|
-
|
157
|
-
if (!isMozilla)
|
158
|
-
t.ok( true, "skipping element test outside of Mozilla");
|
159
|
-
else
|
160
|
-
t.ok( div instanceof HTMLDivElement, "createDiv creates a valid HTMLDivElement" );
|
161
|
-
t.eq( div.id, id, "div.id set correctly");
|
162
|
-
t.eq( div.style.left, px.x + "px", "div.style.left set correctly");
|
163
|
-
t.eq( div.style.top, px.y + "px", "div.style.top set correctly");
|
164
|
-
|
165
|
-
t.eq( div.style.width, sz.w + "px", "div.style.width set correctly");
|
166
|
-
t.eq( div.style.height, sz.h + "px", "div.style.height set correctly");
|
167
|
-
|
168
|
-
bImg = div.style.backgroundImage;
|
169
|
-
imgCorrect = ( (bImg == "url(" + img + ")") ||
|
170
|
-
(bImg == "url(\"" + img + "\")") );
|
171
|
-
t.ok(imgCorrect, "div.style.backgroundImage correctly");
|
172
|
-
|
173
|
-
t.eq( div.style.position, position, "div.style.positionset correctly");
|
174
|
-
//Safari 3 separates the border style into separate entities when reading it
|
175
|
-
if (OpenLayers.BROWSER_NAME == 'safari') {
|
176
|
-
var s = border.split(' ');
|
177
|
-
t.ok(div.style.borderTopWidth == s[0] && div.style.borderTopStyle == s[1], "good default popup.border")
|
178
|
-
} else {
|
179
|
-
t.ok( (div.style.border.indexOf(border) != -1), "div.style.border set correctly");
|
180
|
-
}
|
181
|
-
|
182
|
-
//Safari 3 separates style overflow into overflow-x and overflow-y
|
183
|
-
var prop = (OpenLayers.BROWSER_NAME == 'safari') ? 'overflowX' : 'overflow';
|
184
|
-
t.eq( div.style[prop], overflow, "div.style.overflow set correctly");
|
185
|
-
t.eq( parseFloat(div.style.opacity), opacity, "element.style.opacity set correctly");
|
186
|
-
//Some non-IE browsers don't return the alpha string for this value, which is okay
|
187
|
-
var filterString = div.style.filter.match(/^alpha/) != null ?
|
188
|
-
'alpha(opacity=' + (opacity * 100) + ')' : div.style.filter;
|
189
|
-
t.eq( div.style.filter, filterString, "element.style.filter set correctly");
|
190
|
-
|
191
|
-
//test defaults
|
192
|
-
var div = OpenLayers.Util.createDiv();
|
193
|
-
|
194
|
-
if (!isMozilla)
|
195
|
-
t.ok( true, "skipping element test outside of Mozilla");
|
196
|
-
else
|
197
|
-
t.ok( div instanceof HTMLDivElement, "createDiv creates a valid HTMLDivElement" );
|
198
|
-
t.ok( (div.id != ""), "div.id set correctly");
|
199
|
-
t.eq(div.style.left, "", "div.style.left set correctly");
|
200
|
-
t.eq(div.style.top, "", "div.style.top set correctly");
|
201
|
-
|
202
|
-
t.eq( div.style.width, "", "div.style.width set correctly");
|
203
|
-
t.eq( div.style.height, "", "div.style.height set correctly");
|
204
|
-
|
205
|
-
t.eq(div.style.backgroundImage, "", "div.style.backgroundImage correctly");
|
206
|
-
|
207
|
-
t.eq( div.style.position, "absolute", "div.style.positionset correctly");
|
208
|
-
//Safari 3 separates the border style into separate entities when reading it
|
209
|
-
if (OpenLayers.BROWSER_NAME == 'safari') {
|
210
|
-
t.ok(div.style.borderTopWidth == '' && div.style.borderTopStyle == '', "good default popup.border")
|
211
|
-
} else {
|
212
|
-
t.eq( div.style.border, "", "div.style.border set correctly");
|
213
|
-
}
|
214
|
-
//Safari 3 separates style overflow into overflow-x and overflow-y
|
215
|
-
var prop = (OpenLayers.BROWSER_NAME == 'safari') ? 'overflowX' : 'overflow';
|
216
|
-
t.eq(div.style[prop], "", "div.style.overflow set correctly");
|
217
|
-
t.ok( !div.style.opacity, "element.style.opacity set correctly");
|
218
|
-
t.ok( !div.style.filter, "element.style.filter set correctly");
|
219
|
-
|
220
|
-
}
|
221
|
-
|
222
|
-
function test_Util_createImage(t) {
|
223
|
-
t.plan( 22 );
|
224
|
-
|
225
|
-
var img = "http://www.openlayers.org/images/OpenLayers.trac.png";
|
226
|
-
var sz = new OpenLayers.Size(10,10);
|
227
|
-
var xy = new OpenLayers.Pixel(5,5);
|
228
|
-
var position = "absolute";
|
229
|
-
var id = "boo";
|
230
|
-
var border = "1px solid";
|
231
|
-
var opacity = 0.5;
|
232
|
-
|
233
|
-
var image = OpenLayers.Util.createImage(id, xy, sz, img, position, border, opacity);
|
234
|
-
|
235
|
-
if (!isMozilla)
|
236
|
-
t.ok( true, "skipping element test outside of Mozilla");
|
237
|
-
else
|
238
|
-
t.ok( image.nodeName == "IMG", "createImage creates a valid HTMLImageElement" );
|
239
|
-
t.eq( image.id, id, "image.id set correctly");
|
240
|
-
t.eq( image.style.left, xy.x + "px", "image.style.left set correctly");
|
241
|
-
t.eq( image.style.top, xy.y + "px", "image.style.top set correctly");
|
242
|
-
|
243
|
-
t.eq( image.style.width, sz.w + "px", "image.style.width set correctly");
|
244
|
-
t.eq( image.style.height, sz.h + "px", "image.style.height set correctly");
|
245
|
-
|
246
|
-
//Safari 3 separates the border style into separate entities when reading it
|
247
|
-
if (OpenLayers.BROWSER_NAME == 'safari') {
|
248
|
-
var s = border.split(' ');
|
249
|
-
t.ok(image.style.borderTopWidth == s[0] && image.style.borderTopStyle == s[1], "good default popup.border")
|
250
|
-
} else {
|
251
|
-
t.ok( (image.style.border.indexOf(border) != -1), "image.style.border set correctly");
|
252
|
-
}
|
253
|
-
t.eq( image.src, img, "image.style.backgroundImage correctly");
|
254
|
-
t.eq( image.style.position, position, "image.style.position set correctly");
|
255
|
-
t.eq( parseFloat(image.style.opacity), opacity, "image.style.opacity set correctly");
|
256
|
-
//Some non-IE browsers don't return the alpha string for this value, which is okay
|
257
|
-
var filterString = image.style.filter.match(/^alpha/) != null ?
|
258
|
-
'alpha(opacity=' + (opacity * 100) + ')' : image.style.filter;
|
259
|
-
t.eq( image.style.filter, filterString, "element.style.filter set correctly");
|
260
|
-
|
261
|
-
//test defaults
|
262
|
-
var image = OpenLayers.Util.createImage();
|
263
|
-
|
264
|
-
if (!isMozilla)
|
265
|
-
t.ok( true, "skipping element test outside of Mozilla");
|
266
|
-
else
|
267
|
-
t.ok( image.nodeName == "IMG", "createDiv creates a valid HTMLDivElement" );
|
268
|
-
t.ok( (image.id != ""), "image.id set to something");
|
269
|
-
t.eq( image.style.left, "", "image.style.left set correctly");
|
270
|
-
t.eq( image.style.top, "", "image.style.top set correctly");
|
271
|
-
|
272
|
-
t.eq( image.style.width, "", "image.style.width set correctly");
|
273
|
-
t.eq( image.style.height, "", "image.style.height set correctly");
|
274
|
-
|
275
|
-
t.ok((image.style.border == ""), "image.style.border set correctly");
|
276
|
-
t.eq(image.src, "", "image.style.backgroundImage correctly");
|
277
|
-
t.eq( image.style.position, "relative", "image.style.positionset correctly");
|
278
|
-
t.ok( !image.style.opacity, "element.style.opacity default unset");
|
279
|
-
t.ok( !image.style.filter, "element.style.filter default unset");
|
280
|
-
|
281
|
-
}
|
282
|
-
|
283
|
-
function test_Util_applyDefaults(t) {
|
284
|
-
|
285
|
-
t.plan(12);
|
286
|
-
|
287
|
-
var to = {
|
288
|
-
'a': "abra",
|
289
|
-
'b': "blorg",
|
290
|
-
'n': null
|
291
|
-
};
|
292
|
-
|
293
|
-
var from = {
|
294
|
-
'b': "zoink",
|
295
|
-
'c': "press",
|
296
|
-
'toString': function() {return 'works'},
|
297
|
-
'n': "broken"
|
298
|
-
};
|
299
|
-
|
300
|
-
OpenLayers.Util.applyDefaults(to, from);
|
301
|
-
|
302
|
-
t.ok( to instanceof Object, " applyDefaults returns an object");
|
303
|
-
t.eq( to["a"], "abra", "key present in to but not from maintained");
|
304
|
-
t.eq( to["b"], "blorg", "key present in to and from, maintained in to");
|
305
|
-
t.eq( to["c"], "press", "key present in from and not to successfully copied to to");
|
306
|
-
|
307
|
-
var ret = OpenLayers.Util.applyDefaults({'a': "abra",'b': "blorg"}, from);
|
308
|
-
t.ok( ret instanceof Object, " applyDefaults returns an object");
|
309
|
-
t.eq( ret["a"], "abra", "key present in ret but not from maintained");
|
310
|
-
t.eq( ret["b"], "blorg", "key present in ret and from, maintained in ret");
|
311
|
-
t.eq( ret["c"], "press", "key present in from and not ret successfully copied to ret");
|
312
|
-
t.eq(to.toString(), "works", "correctly applies custom toString");
|
313
|
-
t.eq(to.n, null, "correctly preserves null");
|
314
|
-
|
315
|
-
var to;
|
316
|
-
var from = {rand: Math.random()};
|
317
|
-
|
318
|
-
var ret = OpenLayers.Util.applyDefaults(to, from);
|
319
|
-
t.eq(ret.rand, from.rand, "works with undefined to");
|
320
|
-
|
321
|
-
//regression test for #1716 -- allow undefined from
|
322
|
-
try {
|
323
|
-
OpenLayers.Util.applyDefaults({}, undefined);
|
324
|
-
t.ok(true, "no exception thrown when from is undefined");
|
325
|
-
} catch(err) {
|
326
|
-
t.fail("exception thrown when from is undefined:" + err);
|
327
|
-
}
|
328
|
-
|
329
|
-
}
|
330
|
-
|
331
|
-
function test_Util_getParameterString(t) {
|
332
|
-
t.plan(6);
|
333
|
-
|
334
|
-
var params = {
|
335
|
-
'foo': "bar",
|
336
|
-
'chicken': 1.5
|
337
|
-
};
|
338
|
-
|
339
|
-
t.eq( OpenLayers.Util.getParameterString(params), "foo=bar&chicken=1.5", "getParameterString returns correctly");
|
340
|
-
t.eq( OpenLayers.Util.getParameterString({'a:':'b='}), "a%3A=b%3D", "getParameterString returns correctly with non-ascii keys/values");
|
341
|
-
|
342
|
-
t.eq(OpenLayers.Util.getParameterString({chars: "~!*()'"}), "chars=~!*()'", "~!*()' are unreserved or have no reserved purpose in a URI component");
|
343
|
-
|
344
|
-
|
345
|
-
// Parameters which are a list should end up being a comma-seperated
|
346
|
-
// list of the URL encoded strings
|
347
|
-
var params = { foo: ["bar,baz"] };
|
348
|
-
t.eq( OpenLayers.Util.getParameterString(params), "foo=bar%2Cbaz", "getParameterString encodes , correctly in arrays");
|
349
|
-
|
350
|
-
var params = { foo: ["bar","baz,"] };
|
351
|
-
t.eq( OpenLayers.Util.getParameterString(params), "foo=bar,baz%2C", "getParameterString returns with list of CSVs when given a list. ");
|
352
|
-
|
353
|
-
var params = { foo: [null, undefined, 0, "", "bar"] }
|
354
|
-
t.eq( OpenLayers.Util.getParameterString(params), "foo=,,0,,bar", "getParameterString works fine with null values in array.");
|
355
|
-
}
|
356
|
-
|
357
|
-
function test_Util_urlAppend(t) {
|
358
|
-
|
359
|
-
var params = "foo=bar";
|
360
|
-
|
361
|
-
t.plan( 7 );
|
362
|
-
|
363
|
-
// without ?
|
364
|
-
var url = "http://octo.metacarta.com/cgi-bin/mapserv";
|
365
|
-
var str = OpenLayers.Util.urlAppend(url, params);
|
366
|
-
t.eq(str, url + '?' + params, "urlAppend() works for url sans ?");
|
367
|
-
|
368
|
-
|
369
|
-
// with ?
|
370
|
-
url = "http://octo.metacarta.com/cgi-bin/mapserv?";
|
371
|
-
str = OpenLayers.Util.urlAppend(url, params);
|
372
|
-
t.eq(str, url + params, "urlAppend() works for url with ?");
|
373
|
-
|
374
|
-
// with ?param1=5
|
375
|
-
url = "http://octo.metacarta.com/cgi-bin/mapserv?param1=5";
|
376
|
-
str = OpenLayers.Util.urlAppend(url, params);
|
377
|
-
t.eq(str, url + '&' + params, "urlAppend() works for url with ?param1=5");
|
378
|
-
|
379
|
-
// with ?param1=5&
|
380
|
-
url = "http://octo.metacarta.com/cgi-bin/mapserv?param1=5&";
|
381
|
-
str = OpenLayers.Util.urlAppend(url, params);
|
382
|
-
t.eq(str, url + params, "urlAppend() works for url with ?param1=5&");
|
383
|
-
|
384
|
-
// with ?param1=5¶m2=6
|
385
|
-
url = "http://octo.metacarta.com/cgi-bin/mapserv?param1=5¶m2=6";
|
386
|
-
str = OpenLayers.Util.urlAppend(url, params);
|
387
|
-
t.eq(str, url + "&" + params, "urlAppend() works for url with ?param1=5¶m2=6");
|
388
|
-
|
389
|
-
// with empty paramStr
|
390
|
-
url = "http://octo.metacarta.com/cgi-bin/mapserv?param1=5"
|
391
|
-
str = OpenLayers.Util.urlAppend(url, "");
|
392
|
-
t.eq(str, url, "urlAppend() works with empty paramStr")
|
393
|
-
|
394
|
-
// with null paramStr
|
395
|
-
url = "http://octo.metacarta.com/cgi-bin/mapserv?param1=5"
|
396
|
-
str = OpenLayers.Util.urlAppend(url, null);
|
397
|
-
t.eq(str, url, "urlAppend() works with null paramStr")
|
398
|
-
}
|
399
|
-
|
400
|
-
function test_Util_createAlphaImageDiv(t) {
|
401
|
-
t.plan( 19 );
|
402
|
-
|
403
|
-
var img = "http://www.openlayers.org/images/OpenLayers.trac.png";
|
404
|
-
var sz = new OpenLayers.Size(10,10);
|
405
|
-
var xy = new OpenLayers.Pixel(5,5);
|
406
|
-
var position = "absolute";
|
407
|
-
var id = "boo";
|
408
|
-
var border = "1px solid";
|
409
|
-
var sizing = "crop";
|
410
|
-
var opacity = 0.5;
|
411
|
-
|
412
|
-
var imageDiv = OpenLayers.Util.createAlphaImageDiv(id, xy, sz, img, position, border, sizing, opacity);
|
413
|
-
|
414
|
-
if (!isMozilla)
|
415
|
-
t.ok( true, "skipping element test outside of Mozilla");
|
416
|
-
else
|
417
|
-
t.ok( imageDiv instanceof HTMLDivElement, "createDiv creates a valid HTMLDivElement" );
|
418
|
-
|
419
|
-
t.eq( imageDiv.id, id, "image.id set correctly");
|
420
|
-
t.eq( imageDiv.style.left, xy.x + "px", "image.style.left set correctly");
|
421
|
-
t.eq( imageDiv.style.top, xy.y + "px", "image.style.top set correctly");
|
422
|
-
|
423
|
-
t.eq( imageDiv.style.width, sz.w + "px", "image.style.width set correctly");
|
424
|
-
t.eq( imageDiv.style.height, sz.h + "px", "image.style.height set correctly");
|
425
|
-
|
426
|
-
t.eq( imageDiv.style.position, position, "image.style.positionset correctly");
|
427
|
-
t.eq( parseFloat(imageDiv.style.opacity), opacity, "element.style.opacity set correctly");
|
428
|
-
|
429
|
-
var filterString;
|
430
|
-
if (OpenLayers.Util.alphaHack()) {
|
431
|
-
filterString = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.openlayers.org/images/OpenLayers.trac.png', sizingMethod='crop') alpha(opacity=50)";
|
432
|
-
} else {
|
433
|
-
//Some non-IE browsers don't return the alpha string for this value, which is okay
|
434
|
-
var filterString = imageDiv.style.filter.match(/^alpha/) != null ?
|
435
|
-
'alpha(opacity=' + (opacity * 100) + ')' : imageDiv.style.filter;
|
436
|
-
}
|
437
|
-
t.eq( imageDiv.style.filter, filterString, "element.style.filter set correctly");
|
438
|
-
|
439
|
-
|
440
|
-
image = imageDiv.firstChild;
|
441
|
-
if (!isMozilla)
|
442
|
-
t.ok( true, "skipping element test outside of Mozilla");
|
443
|
-
else
|
444
|
-
t.ok( image.nodeName == "IMG", "createImage creates a valid HTMLImageElement" );
|
445
|
-
t.eq( image.id, id + "_innerImage", "image.id set correctly");
|
446
|
-
|
447
|
-
t.eq( image.style.width, sz.w + "px", "image.style.width set correctly");
|
448
|
-
t.eq( image.style.height, sz.h + "px", "image.style.height set correctly");
|
449
|
-
|
450
|
-
//Safari 3 separates the border style into separate entities when reading it
|
451
|
-
if (OpenLayers.BROWSER_NAME == 'safari') {
|
452
|
-
var s = border.split(' ');
|
453
|
-
t.ok(image.style.borderTopWidth == s[0] && image.style.borderTopStyle == s[1], "good default popup.border")
|
454
|
-
} else {
|
455
|
-
t.ok( (image.style.border.indexOf(border) != -1), "image.style.border set correctly");
|
456
|
-
}
|
457
|
-
|
458
|
-
t.eq( image.style.position, "relative", "image.style.positionset correctly");
|
459
|
-
|
460
|
-
if (OpenLayers.Util.alphaHack()) {
|
461
|
-
|
462
|
-
t.eq(imageDiv.style.display, "inline-block", "imageDiv.style.display set correctly");
|
463
|
-
|
464
|
-
var filter = "progid:DXImageTransform.Microsoft" +
|
465
|
-
".AlphaImageLoader(src='" + img + "', " +
|
466
|
-
"sizingMethod='" + sizing + "') alpha(opacity=50)";
|
467
|
-
t.eq(imageDiv.style.filter, filter, "div filter value correctly set");
|
468
|
-
|
469
|
-
filter = "alpha(opacity=0)";
|
470
|
-
t.eq(image.style.filter, filter, "image filter set correctly");
|
471
|
-
|
472
|
-
} else {
|
473
|
-
t.eq( image.src, img, "image.style.backgroundImage correctly");
|
474
|
-
t.ok(true, "div filter value not set (not in IE)");
|
475
|
-
t.ok(true, "image filter value not set (not in IE)");
|
476
|
-
}
|
477
|
-
|
478
|
-
var imageDiv = OpenLayers.Util.createAlphaImageDiv(id, xy, sz, img, position, border);
|
479
|
-
if (OpenLayers.Util.alphaHack()) {
|
480
|
-
var filter = "progid:DXImageTransform.Microsoft" +
|
481
|
-
".AlphaImageLoader(src='" + img + "', " +
|
482
|
-
"sizingMethod='scale')";
|
483
|
-
t.eq(imageDiv.style.filter, filter, "sizingMethod default correctly set to scale");
|
484
|
-
} else {
|
485
|
-
t.ok(true);
|
486
|
-
}
|
487
|
-
|
488
|
-
}
|
489
|
-
|
490
|
-
function test_Util_modifyDOMElement_opacity(t) {
|
491
|
-
t.plan(8);
|
492
|
-
|
493
|
-
var opacity = 0.2;
|
494
|
-
|
495
|
-
var element = document.createElement("div");
|
496
|
-
|
497
|
-
OpenLayers.Util.modifyDOMElement(element, null, null, null, null,
|
498
|
-
null, null, opacity);
|
499
|
-
|
500
|
-
t.eq(parseFloat(element.style.opacity), opacity,
|
501
|
-
"element.style.opacity set correctly when opacity = " + opacity);
|
502
|
-
//Some non-IE browsers don't return the alpha string for this value, which is okay
|
503
|
-
var filterString = element.style.filter.match(/^alpha/) != null ?
|
504
|
-
'alpha(opacity=' + (opacity * 100) + ')' : element.style.filter;
|
505
|
-
t.eq(element.style.filter, filterString,
|
506
|
-
"element.style.filter set correctly when opacity = " + opacity);
|
507
|
-
|
508
|
-
OpenLayers.Util.modifyDOMElement(element, null, null, null, null,
|
509
|
-
null, null, "5");
|
510
|
-
|
511
|
-
t.eq(parseFloat(element.style.opacity), opacity,
|
512
|
-
"element.style.opacity not changed if the value is incorrect");
|
513
|
-
//Some non-IE browsers don't return the alpha string for this value, which is okay
|
514
|
-
var filterString = element.style.filter.match(/^alpha/) != null ?
|
515
|
-
'alpha(opacity=' + (opacity * 100) + ')' : element.style.filter;
|
516
|
-
t.eq(element.style.filter, filterString,
|
517
|
-
"element.style.filter not changed if the value is incorrect");
|
518
|
-
|
519
|
-
OpenLayers.Util.modifyDOMElement(element, null, null, null, null,
|
520
|
-
null, null, "hello");
|
521
|
-
|
522
|
-
t.eq(parseFloat(element.style.opacity), opacity,
|
523
|
-
"element.style.opacity not changed if the value is incorrect");
|
524
|
-
//Some non-IE browsers don't return the alpha string for this value, which is okay
|
525
|
-
var filterString = element.style.filter.match(/^alpha/) != null ?
|
526
|
-
'alpha(opacity=' + (opacity * 100) + ')' : element.style.filter;
|
527
|
-
t.eq(element.style.filter, filterString,
|
528
|
-
"element.style.filter not changed if the value is incorrect");
|
529
|
-
|
530
|
-
opacity = 1.00;
|
531
|
-
OpenLayers.Util.modifyDOMElement(element, null, null, null, null,
|
532
|
-
null, null, opacity);
|
533
|
-
|
534
|
-
t.eq(element.style.opacity, '',
|
535
|
-
"element.style.opacity is removed when opacity = " + opacity);
|
536
|
-
// Some browser returns null instead of '', which is okay
|
537
|
-
t.ok(element.style.filter == '' || element.style.filter == null,
|
538
|
-
"element.style.filter is removed when opacity = " + opacity);
|
539
|
-
}
|
540
|
-
|
541
|
-
function test_Util_modifyDOMElement(t) {
|
542
|
-
t.plan( 10 );
|
543
|
-
|
544
|
-
var id = "boo";
|
545
|
-
var px = new OpenLayers.Pixel(5,5);
|
546
|
-
var sz = new OpenLayers.Size(10,10);
|
547
|
-
var position = "absolute";
|
548
|
-
var border = "1px solid";
|
549
|
-
var overflow = "hidden";
|
550
|
-
var opacity = 1/2;
|
551
|
-
|
552
|
-
var element = document.createElement("div");
|
553
|
-
|
554
|
-
OpenLayers.Util.modifyDOMElement(element, id, px, sz, position,
|
555
|
-
border, overflow, opacity);
|
556
|
-
|
557
|
-
t.eq( element.id, id, "element.id set correctly");
|
558
|
-
t.eq( element.style.left, px.x + "px", "element.style.left set correctly");
|
559
|
-
t.eq( element.style.top, px.y + "px", "element.style.top set correctly");
|
560
|
-
|
561
|
-
t.eq( element.style.width, sz.w + "px", "element.style.width set correctly");
|
562
|
-
t.eq( element.style.height, sz.h + "px", "element.style.height set correctly");
|
563
|
-
|
564
|
-
t.eq( element.style.position, position, "element.style.position set correctly");
|
565
|
-
//Safari 3 separates the border style into separate entities when reading it
|
566
|
-
if (OpenLayers.BROWSER_NAME == 'safari') {
|
567
|
-
var s = border.split(' ');
|
568
|
-
t.ok(element.style.borderTopWidth == s[0] && element.style.borderTopStyle == s[1], "good default popup.border")
|
569
|
-
} else {
|
570
|
-
t.ok( (element.style.border.indexOf(border) != -1), "element.style.border set correctly");
|
571
|
-
}
|
572
|
-
//Safari 3 separates style overflow into overflow-x and overflow-y
|
573
|
-
var prop = (OpenLayers.BROWSER_NAME == 'safari') ? 'overflowX' : 'overflow';
|
574
|
-
t.eq( element.style[prop], overflow, "element.style.overflow set correctly");
|
575
|
-
t.eq( parseFloat(element.style.opacity), opacity, "element.style.opacity set correctly");
|
576
|
-
//Some non-IE browsers don't return the alpha string for this value, which is okay
|
577
|
-
var filterString = element.style.filter.match(/^alpha/) != null ?
|
578
|
-
'alpha(opacity=' + (opacity * 100) + ')' : element.style.filter;
|
579
|
-
t.eq( element.style.filter, filterString, "element.style.filter set correctly");
|
580
|
-
}
|
581
|
-
|
582
|
-
function test_Util_modifyAlphaImageDiv(t) {
|
583
|
-
t.plan( 21 );
|
584
|
-
|
585
|
-
var imageDiv = OpenLayers.Util.createAlphaImageDiv();
|
586
|
-
|
587
|
-
var img = "http://www.openlayers.org/images/OpenLayers.trac.png";
|
588
|
-
var sz = new OpenLayers.Size(10,10);
|
589
|
-
var xy = new OpenLayers.Pixel(5,5);
|
590
|
-
var position = "absolute";
|
591
|
-
var id = "boo";
|
592
|
-
var border = "1px solid";
|
593
|
-
var sizing = "crop";
|
594
|
-
var opacity = 0.5;
|
595
|
-
|
596
|
-
OpenLayers.Util.modifyAlphaImageDiv(imageDiv, id, xy, sz, img, position, border, sizing, opacity);
|
597
|
-
if (OpenLayers.Util.alphaHack())
|
598
|
-
t.ok( true, "skipping element test outside of Mozilla");
|
599
|
-
else
|
600
|
-
t.ok( imageDiv.nodeName == "DIV", "createDiv creates a valid HTMLDivElement" );
|
601
|
-
|
602
|
-
t.eq( imageDiv.id, id, "image.id set correctly");
|
603
|
-
t.eq( imageDiv.style.left, xy.x + "px", "image.style.left set correctly");
|
604
|
-
t.eq( imageDiv.style.top, xy.y + "px", "image.style.top set correctly");
|
605
|
-
|
606
|
-
t.eq( imageDiv.style.width, sz.w + "px", "image.style.width set correctly");
|
607
|
-
t.eq( imageDiv.style.height, sz.h + "px", "image.style.height set correctly");
|
608
|
-
|
609
|
-
t.eq( imageDiv.style.position, position, "image.style.position set correctly");
|
610
|
-
t.eq( parseFloat(imageDiv.style.opacity), opacity, "element.style.opacity set correctly");
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
image = imageDiv.firstChild;
|
615
|
-
|
616
|
-
var filterString;
|
617
|
-
if (OpenLayers.Util.alphaHack()) {
|
618
|
-
filterString = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.openlayers.org/images/OpenLayers.trac.png', sizingMethod='crop') alpha(opacity=50)";
|
619
|
-
t.ok( true, "skipping element test outside of Mozilla");
|
620
|
-
} else {
|
621
|
-
//Some non-IE browsers don't return the alpha string for this value, which is okay
|
622
|
-
var filterString = imageDiv.style.filter.match(/^alpha/) != null ?
|
623
|
-
'alpha(opacity=' + (opacity * 100) + ')' : imageDiv.style.filter;
|
624
|
-
t.ok( image.nodeName == "IMG", "createImage creates a valid HTMLImageElement" );
|
625
|
-
}
|
626
|
-
t.eq( imageDiv.style.filter, filterString, "element.style.filter set correctly");
|
627
|
-
t.eq( image.id, id + "_innerImage", "image.id set correctly");
|
628
|
-
|
629
|
-
t.eq( image.style.width, sz.w + "px", "image.style.width set correctly");
|
630
|
-
t.eq( image.style.height, sz.h + "px", "image.style.height set correctly");
|
631
|
-
|
632
|
-
//Safari 3 separates the border style into separate entities when reading it
|
633
|
-
if (OpenLayers.BROWSER_NAME == 'safari') {
|
634
|
-
var s = border.split(' ');
|
635
|
-
t.ok(image.style.borderTopWidth == s[0] && image.style.borderTopStyle == s[1], "good default popup.border")
|
636
|
-
} else {
|
637
|
-
t.ok( (image.style.border.indexOf(border) != -1), "image.style.border set correctly");
|
638
|
-
}
|
639
|
-
|
640
|
-
t.eq( image.style.position, "relative", "image.style.positionset correctly");
|
641
|
-
t.eq( image.src, img, "image.style.backgroundImage correctly");
|
642
|
-
|
643
|
-
if (OpenLayers.Util.alphaHack()) {
|
644
|
-
|
645
|
-
var filter = "progid:DXImageTransform.Microsoft" +
|
646
|
-
".AlphaImageLoader(src='" + img + "', " +
|
647
|
-
"sizingMethod='" + sizing + "') alpha(opacity=" + opacity *100 + ")";
|
648
|
-
t.eq(imageDiv.style.filter, filter, "div filter value correctly set");
|
649
|
-
|
650
|
-
filter = "alpha(opacity=0)";
|
651
|
-
t.eq(image.style.filter, filter, "image filter set correctly");
|
652
|
-
|
653
|
-
} else {
|
654
|
-
t.ok(true, "div filter value not set (not in IE)");
|
655
|
-
t.ok(true, "image filter value not set (not in IE)");
|
656
|
-
}
|
657
|
-
|
658
|
-
var imageDiv = OpenLayers.Util.createAlphaImageDiv();
|
659
|
-
var display = "none";
|
660
|
-
imageDiv.style.display = display;
|
661
|
-
OpenLayers.Util.modifyAlphaImageDiv(imageDiv, id, xy, sz, img, position, border, sizing, opacity);
|
662
|
-
t.eq(imageDiv.style.display, display, "imageDiv.style.display set correctly, if 'none'");
|
663
|
-
|
664
|
-
var imageDiv = OpenLayers.Util.createAlphaImageDiv();
|
665
|
-
var display = "block";
|
666
|
-
imageDiv.style.display = display;
|
667
|
-
OpenLayers.Util.modifyAlphaImageDiv(imageDiv, id, xy, sz, img, position, border, sizing, opacity);
|
668
|
-
if(OpenLayers.Util.alphaHack()) {
|
669
|
-
t.eq(imageDiv.style.display, "inline-block", "imageDiv.style.display set correctly, if not 'none'");
|
670
|
-
} else {
|
671
|
-
t.ok(true, "inline-block is not part of CSS2 and is not supported by Firefox 2");
|
672
|
-
}
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
var imageDiv = OpenLayers.Util.createAlphaImageDiv(id, xy, sz, img, position, border, "scale", opacity);
|
677
|
-
if (OpenLayers.Util.alphaHack()) {
|
678
|
-
var filter = "progid:DXImageTransform.Microsoft" +
|
679
|
-
".AlphaImageLoader(src='" + img + "', " +
|
680
|
-
"sizingMethod='scale') alpha(opacity=" + opacity *100 + ")";
|
681
|
-
t.eq(imageDiv.style.filter, filter, "sizingMethod default correctly set to scale");
|
682
|
-
} else {
|
683
|
-
t.ok(true);
|
684
|
-
}
|
685
|
-
|
686
|
-
}
|
687
|
-
|
688
|
-
function test_Util_upperCaseObject(t) {
|
689
|
-
t.plan(8);
|
690
|
-
|
691
|
-
var aKey = "chicken";
|
692
|
-
var aValue = "pot pie";
|
693
|
-
|
694
|
-
var bKey = "blorg";
|
695
|
-
var bValue = "us maximus";
|
696
|
-
|
697
|
-
var obj = {};
|
698
|
-
obj[aKey] = aValue;
|
699
|
-
obj[bKey] = bValue;
|
700
|
-
|
701
|
-
var uObj = OpenLayers.Util.upperCaseObject(obj);
|
702
|
-
|
703
|
-
//make sure old object not modified
|
704
|
-
t.eq(obj[aKey], aValue, "old lowercase value still present in old obj");
|
705
|
-
t.eq(obj[bKey], bValue, "old lowercase value still present in old obj");
|
706
|
-
|
707
|
-
t.eq(obj[aKey.toUpperCase()], null, "new uppercase value not present in old obj");
|
708
|
-
t.eq(obj[bKey.toUpperCase()], null, "new uppercase value not present in old obj");
|
709
|
-
|
710
|
-
//make sure new object modified
|
711
|
-
t.eq(uObj[aKey], null, "old lowercase value not present");
|
712
|
-
t.eq(uObj[bKey], null, "old lowercase value not present");
|
713
|
-
|
714
|
-
t.eq(uObj[aKey.toUpperCase()], aValue, "new uppercase value present");
|
715
|
-
t.eq(uObj[bKey.toUpperCase()], bValue, "new uppercase value present");
|
716
|
-
}
|
717
|
-
|
718
|
-
function test_Util_createUniqueID(t) {
|
719
|
-
t.plan(2);
|
720
|
-
|
721
|
-
var id = OpenLayers.Util.createUniqueID();
|
722
|
-
t.ok(OpenLayers.String.startsWith(id, "id_"),
|
723
|
-
"default OpenLayers.Util.createUniqueID starts id correctly");
|
724
|
-
|
725
|
-
var id = OpenLayers.Util.createUniqueID("chicken");
|
726
|
-
t.ok(OpenLayers.String.startsWith(id, "chicken"),
|
727
|
-
"OpenLayers.Util.createUniqueID starts id correctly");
|
728
|
-
}
|
729
|
-
|
730
|
-
function test_units(t) {
|
731
|
-
t.plan(2);
|
732
|
-
t.eq(OpenLayers.INCHES_PER_UNIT.m, OpenLayers.INCHES_PER_UNIT.Meter, 'Same inches per m and Meters');
|
733
|
-
t.eq(OpenLayers.INCHES_PER_UNIT.km, OpenLayers.INCHES_PER_UNIT.Kilometer, 'Same inches per km and Kilometers');
|
734
|
-
}
|
735
|
-
|
736
|
-
function test_Util_normalizeScale(t) {
|
737
|
-
t.plan(2);
|
738
|
-
|
739
|
-
//normal scale
|
740
|
-
var scale = 1/5;
|
741
|
-
t.eq( OpenLayers.Util.normalizeScale(scale), scale, "normalizing a normal scale does nothing");
|
742
|
-
|
743
|
-
//funky scale
|
744
|
-
var scale = 5;
|
745
|
-
t.eq( OpenLayers.Util.normalizeScale(scale), 1/5, "normalizing a wrong scale works!");
|
746
|
-
}
|
747
|
-
|
748
|
-
function test_Util_getScaleResolutionTranslation(t) {
|
749
|
-
t.plan(5);
|
750
|
-
|
751
|
-
var scale = 1/150000000;
|
752
|
-
var resolution = OpenLayers.Util.getResolutionFromScale(scale);
|
753
|
-
t.eq(resolution.toFixed(6), "0.476217", "Calculated correct resolution for " + scale);
|
754
|
-
|
755
|
-
var scale = 1/150000000;
|
756
|
-
var resolution = OpenLayers.Util.getResolutionFromScale(scale, 'm');
|
757
|
-
t.eq(resolution.toFixed(6), "52916.772500", "Calculated correct resolution for " + scale);
|
758
|
-
|
759
|
-
scale = 150000000;
|
760
|
-
resolution = OpenLayers.Util.getResolutionFromScale(scale);
|
761
|
-
t.eq(resolution.toFixed(6), "0.476217", "Calculated correct resolution for " + scale);
|
762
|
-
|
763
|
-
scale = 150000000;
|
764
|
-
resolution = OpenLayers.Util.getResolutionFromScale(scale);
|
765
|
-
t.eq(OpenLayers.Util.getScaleFromResolution(resolution), scale, "scale->resolution->scale works");
|
766
|
-
|
767
|
-
scale = null;
|
768
|
-
resolution = OpenLayers.Util.getResolutionFromScale(scale);
|
769
|
-
t.eq(resolution, undefined, "falsey scale results in undefined resolution");
|
770
|
-
|
771
|
-
}
|
772
|
-
|
773
|
-
function test_Util_getImgLocation(t) {
|
774
|
-
t.plan(3);
|
775
|
-
|
776
|
-
OpenLayers.ImgPath = "foo/";
|
777
|
-
t.eq(OpenLayers.Util.getImagesLocation(), "foo/", "ImgPath works as expected.");
|
778
|
-
OpenLayers.ImgPath = null;
|
779
|
-
t.eq(OpenLayers.Util.getImagesLocation().substr(OpenLayers.Util.getImagesLocation().length-4,4), "img/", "ImgPath works as expected when not set.");
|
780
|
-
|
781
|
-
OpenLayers.ImgPath = '';
|
782
|
-
t.eq(OpenLayers.Util.getImagesLocation().substr(OpenLayers.Util.getImagesLocation().length-4,4), "img/", "ImgPath works as expected when set to ''.");
|
783
|
-
}
|
784
|
-
|
785
|
-
function test_Util_isEquivalentUrl(t) {
|
786
|
-
t.plan(10);
|
787
|
-
|
788
|
-
var url1, url2, options;
|
789
|
-
|
790
|
-
//CASE
|
791
|
-
|
792
|
-
url1 = "http://www.openlayers.org";
|
793
|
-
url2 = "HTTP://WWW.OPENLAYERS.ORG";
|
794
|
-
|
795
|
-
t.ok(OpenLayers.Util.isEquivalentUrl(url1, url2), "default ignoreCase works");
|
796
|
-
|
797
|
-
//ARGS
|
798
|
-
|
799
|
-
url1 = "http://www.openlayers.org?foo=5;bar=6";
|
800
|
-
url2 = "http://www.openlayers.org?bar=6;foo=5";
|
801
|
-
|
802
|
-
t.ok(OpenLayers.Util.isEquivalentUrl(url1, url2), "shuffled arguments works");
|
803
|
-
|
804
|
-
//PORT
|
805
|
-
|
806
|
-
url1 = "http://www.openlayers.org:80";
|
807
|
-
url2 = "http://www.openlayers.org";
|
808
|
-
|
809
|
-
t.ok(OpenLayers.Util.isEquivalentUrl(url1, url2), "default ignorePort80 works");
|
810
|
-
|
811
|
-
options = {
|
812
|
-
'ignorePort80': false
|
813
|
-
}
|
814
|
-
url1 = "http://www.openlayers.org:80";
|
815
|
-
url2 = "http://www.openlayers.org:50";
|
816
|
-
|
817
|
-
t.ok(!OpenLayers.Util.isEquivalentUrl(url1, url2, options), "port check works");
|
818
|
-
|
819
|
-
|
820
|
-
//HASH
|
821
|
-
|
822
|
-
url1 = "http://www.openlayers.org#barf";
|
823
|
-
url2 = "http://www.openlayers.org";
|
824
|
-
|
825
|
-
t.ok(OpenLayers.Util.isEquivalentUrl(url1, url2), "default ignoreHash works");
|
826
|
-
options = {
|
827
|
-
'ignoreHash': false
|
828
|
-
}
|
829
|
-
t.ok(!OpenLayers.Util.isEquivalentUrl(url1, url2, options), "ignoreHash FALSE works");
|
830
|
-
|
831
|
-
//PROTOCOL
|
832
|
-
|
833
|
-
url1 = "http://www.openlayers.org";
|
834
|
-
url2 = "ftp://www.openlayers.org";
|
835
|
-
|
836
|
-
t.ok(!OpenLayers.Util.isEquivalentUrl(url1, url2), "default ignoreHash works");
|
837
|
-
|
838
|
-
|
839
|
-
//PATHNAME
|
840
|
-
url1 = "foo.html?bar=now#go";
|
841
|
-
url2 = "../tests/../tests/foo.html?bar=now#go";
|
842
|
-
|
843
|
-
t.ok(OpenLayers.Util.isEquivalentUrl(url1, url2), "relative vs. absolute paths works");
|
844
|
-
|
845
|
-
url1 = "/foo/bar";
|
846
|
-
url2 = new Array(window.location.pathname.split("/").length-1).join("../")+"foo/bar";
|
847
|
-
|
848
|
-
t.ok(OpenLayers.Util.isEquivalentUrl(url1, url2), "absolute and relative path without host works for "+url2)
|
849
|
-
|
850
|
-
//ARGS
|
851
|
-
url1 = "foo.html?bbox=1,2,3,4",
|
852
|
-
url2 = url1;
|
853
|
-
t.ok(OpenLayers.Util.isEquivalentUrl(url1, url2), "equal urls with comma delimited params are equal");
|
854
|
-
}
|
855
|
-
|
856
|
-
function test_createUrlObject(t) {
|
857
|
-
|
858
|
-
var cases = [{
|
859
|
-
url: "http://example.com/",
|
860
|
-
exp: {
|
861
|
-
protocol: "http:",
|
862
|
-
host: "example.com",
|
863
|
-
port: "80",
|
864
|
-
pathname: "/",
|
865
|
-
args: {},
|
866
|
-
hash: ""
|
867
|
-
}
|
868
|
-
}, {
|
869
|
-
url: "http://example.com:80/",
|
870
|
-
opt: {ignorePort80: true},
|
871
|
-
exp: {
|
872
|
-
protocol: "http:",
|
873
|
-
host: "example.com",
|
874
|
-
port: "",
|
875
|
-
pathname: "/",
|
876
|
-
args: {},
|
877
|
-
hash: ""
|
878
|
-
}
|
879
|
-
}, {
|
880
|
-
url: "http://example.com/",
|
881
|
-
opt: {ignorePort80: true},
|
882
|
-
exp: {
|
883
|
-
protocol: "http:",
|
884
|
-
host: "example.com",
|
885
|
-
port: "",
|
886
|
-
pathname: "/",
|
887
|
-
args: {},
|
888
|
-
hash: ""
|
889
|
-
}
|
890
|
-
}, {
|
891
|
-
url: "http://example.com:88/",
|
892
|
-
exp: {
|
893
|
-
protocol: "http:",
|
894
|
-
host: "example.com",
|
895
|
-
port: "88",
|
896
|
-
pathname: "/",
|
897
|
-
args: {},
|
898
|
-
hash: ""
|
899
|
-
}
|
900
|
-
}, {
|
901
|
-
url: "http://example.com:88/foo#bar",
|
902
|
-
exp: {
|
903
|
-
protocol: "http:",
|
904
|
-
host: "example.com",
|
905
|
-
port: "88",
|
906
|
-
pathname: "/foo",
|
907
|
-
args: {},
|
908
|
-
hash: "#bar"
|
909
|
-
}
|
910
|
-
}, {
|
911
|
-
url: "http://example.com:88/?foo=bar",
|
912
|
-
exp: {
|
913
|
-
protocol: "http:",
|
914
|
-
host: "example.com",
|
915
|
-
port: "88",
|
916
|
-
pathname: "/",
|
917
|
-
args: {foo: "bar"},
|
918
|
-
hash: ""
|
919
|
-
}
|
920
|
-
}, {
|
921
|
-
url: "http://example.com/bogus/../bogus/../path",
|
922
|
-
exp: {
|
923
|
-
protocol: "http:",
|
924
|
-
host: "example.com",
|
925
|
-
port: "80",
|
926
|
-
pathname: "/path",
|
927
|
-
args: {},
|
928
|
-
hash: ""
|
929
|
-
}
|
930
|
-
}, {
|
931
|
-
url: "/relative#foo",
|
932
|
-
exp: {
|
933
|
-
protocol: window.location.protocol,
|
934
|
-
host: window.location.hostname,
|
935
|
-
port: window.location.port || "80",
|
936
|
-
pathname: "/relative",
|
937
|
-
args: {},
|
938
|
-
hash: "#foo"
|
939
|
-
}
|
940
|
-
}, {
|
941
|
-
url: "../foo",
|
942
|
-
exp: {
|
943
|
-
protocol: window.location.protocol,
|
944
|
-
host: window.location.hostname,
|
945
|
-
port: window.location.port || "80",
|
946
|
-
pathname: (function() {
|
947
|
-
var parts = window.location.pathname.split("/");
|
948
|
-
return parts.slice(0, parts.length -2).join("/") + "/foo";
|
949
|
-
})(),
|
950
|
-
args: {},
|
951
|
-
hash: ""
|
952
|
-
}
|
953
|
-
}];
|
954
|
-
|
955
|
-
t.plan(cases.length);
|
956
|
-
|
957
|
-
var c, obj;
|
958
|
-
for(var i=0; i<cases.length; ++i) {
|
959
|
-
c = cases[i];
|
960
|
-
obj = OpenLayers.Util.createUrlObject(c.url, c.opt);
|
961
|
-
t.eq(obj, c.exp, i + ": '" + c.url + "'");
|
962
|
-
}
|
963
|
-
|
964
|
-
}
|
965
|
-
|
966
|
-
function test_Util_createUniqueIDSeq(t) {
|
967
|
-
t.plan(1);
|
968
|
-
|
969
|
-
OpenLayers.Util.lastSeqID = 0;
|
970
|
-
OpenLayers.Util.createDiv();
|
971
|
-
OpenLayers.Util.createDiv();
|
972
|
-
t.eq(OpenLayers.Util.createDiv().id, "OpenLayersDiv3", "Div created is sequential, starting at lastSeqID in Util.");
|
973
|
-
}
|
974
|
-
|
975
|
-
function test_Util_getParameters(t) {
|
976
|
-
t.plan(20);
|
977
|
-
|
978
|
-
t.eq(OpenLayers.Util.getParameters(''), {},
|
979
|
-
"getParameters works when the given argument is empty string");
|
980
|
-
|
981
|
-
t.eq(OpenLayers.Util.getParameters(), {},
|
982
|
-
"getParameters works with optional argument");
|
983
|
-
|
984
|
-
t.eq(OpenLayers.Util.getParameters(null), {},
|
985
|
-
"getParameters works with optional argument");
|
986
|
-
|
987
|
-
t.eq(OpenLayers.Util.getParameters('http://www.example.com'), {},
|
988
|
-
"getParameters works when args = ''");
|
989
|
-
t.eq(OpenLayers.Util.getParameters('http://www.example.com?'), {},
|
990
|
-
"getParameters works when args = '?'");
|
991
|
-
t.eq(OpenLayers.Util.getParameters('http://www.example.com?hello=world&foo=bar'),
|
992
|
-
{'hello' : 'world', 'foo': 'bar'},
|
993
|
-
"getParameters works when args = '?hello=world&foo=bar'");
|
994
|
-
t.eq(OpenLayers.Util.getParameters('http://www.example.com?hello=&foo=bar'),
|
995
|
-
{'hello' : '', 'foo': 'bar'},
|
996
|
-
"getParameters works when args = '?hello=&foo=bar'");
|
997
|
-
t.eq(OpenLayers.Util.getParameters('http://www.example.com?foo=bar#bugssucks'),
|
998
|
-
{'foo': 'bar'},
|
999
|
-
"getParameters works when using a fragment identifier");
|
1000
|
-
t.eq(OpenLayers.Util.getParameters('http://www.example.com?foo=bar%3Aone'),
|
1001
|
-
{'foo': 'bar:one'},
|
1002
|
-
"getParameters works with percent encoded values");
|
1003
|
-
t.eq(OpenLayers.Util.getParameters('http://www.example.com?foo=bar:one,pub,disco'),
|
1004
|
-
{'foo': ['bar:one', 'pub', 'disco']},
|
1005
|
-
"getParameters works with a comma-separated value (parses into array)");
|
1006
|
-
t.eq(OpenLayers.Util.getParameters('http://www.example.com?foo=bar%3Aone%2Cpub%2Cdisco'),
|
1007
|
-
{'foo': ['bar:one', 'pub', 'disco']},
|
1008
|
-
"getParameters works with a URL encoded comma-separated values (parses into array)");
|
1009
|
-
|
1010
|
-
var value = "%20"; // say you wanted to have a query string parameter value be literal "%20"
|
1011
|
-
var encoded = encodeURIComponent(value); // this is the proper URI component encoding
|
1012
|
-
var url = "http://example.com/path?key=" + encoded; // this is a properly encoded URL
|
1013
|
-
var params = OpenLayers.Util.getParameters(url);
|
1014
|
-
t.eq(params.key, value, "a properly encoded value of '%20' is properly decoded");
|
1015
|
-
|
1016
|
-
/**
|
1017
|
-
* IETF RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt) says spaces
|
1018
|
-
* should be encoded as "%20". However, the "+" is used widely to
|
1019
|
-
* indicate a space in a URL.
|
1020
|
-
*/
|
1021
|
-
t.eq(OpenLayers.Util.getParameters('http://www.example.com?foo=bar+one'),
|
1022
|
-
{'foo': 'bar one'},
|
1023
|
-
"getParameters works with + instead of %20 in values");
|
1024
|
-
t.eq(OpenLayers.Util.getParameters('http://www.example.com?foo=bar%20one'),
|
1025
|
-
{'foo': 'bar one'},
|
1026
|
-
"getParameters works with properly encoded space character");
|
1027
|
-
t.eq(OpenLayers.Util.getParameters('http://www.example.com?foo=bar%2Bone'),
|
1028
|
-
{'foo': 'bar+one'},
|
1029
|
-
"getParameters works with properly encoded + character");
|
1030
|
-
|
1031
|
-
// Let's do some round tripping to make it harder to introduce regressions
|
1032
|
-
var obj = {
|
1033
|
-
"a key": "a value with spaces (and +)",
|
1034
|
-
"see%2B%2B": "C++",
|
1035
|
-
"C++": "see%2B%2B",
|
1036
|
-
"~%257E": "+%252B",
|
1037
|
-
"who?": "me?",
|
1038
|
-
"#yes": "#you",
|
1039
|
-
"url": "http://example.com:80/?question=%3F&hash=%23&=&26#id"
|
1040
|
-
};
|
1041
|
-
var str = OpenLayers.Util.getParameterString(obj);
|
1042
|
-
t.eq(OpenLayers.Util.getParameters("?" + str), obj, "round tripped parameters");
|
1043
|
-
|
1044
|
-
// try some oddly encoded strings
|
1045
|
-
var url = "http://example.com/?C%E9sar=C%E9sar+Ch%E1vez";
|
1046
|
-
var obj = OpenLayers.Util.getParameters(url);
|
1047
|
-
t.ok("César" in obj, "got proper key from C%E9sar");
|
1048
|
-
t.eq(obj["César"], "César Chávez", "got proper value from C%E9sar+Ch%E1vez");
|
1049
|
-
|
1050
|
-
// try some properly encoded strings
|
1051
|
-
var url = "http://example.com/?C%C3%A9sar=C%C3%A9sar+Ch%C3%A1vez";
|
1052
|
-
var obj = OpenLayers.Util.getParameters(url);
|
1053
|
-
t.ok("César" in obj, "got proper key from C%C3%A9sar");
|
1054
|
-
t.eq(obj["César"], "César Chávez", "got proper value from C%E9sar+Ch%E1vez");
|
1055
|
-
|
1056
|
-
}
|
1057
|
-
|
1058
|
-
function tests_Util_extend(t) {
|
1059
|
-
t.plan(7);
|
1060
|
-
|
1061
|
-
var source = {
|
1062
|
-
num: Math.random(),
|
1063
|
-
obj: {
|
1064
|
-
foo: "bar"
|
1065
|
-
},
|
1066
|
-
method: function() {
|
1067
|
-
return "method";
|
1068
|
-
},
|
1069
|
-
toString: function() {
|
1070
|
-
return "source";
|
1071
|
-
},
|
1072
|
-
nada: undefined
|
1073
|
-
};
|
1074
|
-
var destination = OpenLayers.Util.extend({nada: "untouched"}, source);
|
1075
|
-
t.eq(destination.num, source.num,
|
1076
|
-
"extend properly sets primitive property on destination");
|
1077
|
-
t.eq(destination.obj, source.obj,
|
1078
|
-
"extend properly sets object property on destination");
|
1079
|
-
t.eq(destination.method(), "method",
|
1080
|
-
"extend properly sets function property on destination");
|
1081
|
-
t.eq(destination.toString(), "source",
|
1082
|
-
"extend properly sets custom toString method");
|
1083
|
-
t.eq(destination.nada, "untouched",
|
1084
|
-
"undefined source properties don't clobber existing properties");
|
1085
|
-
t.eq(window.property, undefined, "Property variable not clobbered.");
|
1086
|
-
|
1087
|
-
var destination;
|
1088
|
-
var source = {rand: Math.random()};
|
1089
|
-
var ret = OpenLayers.Util.extend(destination, source);
|
1090
|
-
t.eq(destination.rand, source.rand, "works with undefined destination");
|
1091
|
-
|
1092
|
-
}
|
1093
|
-
|
1094
|
-
function test_XX_Util_Try(t) {
|
1095
|
-
t.plan(7);
|
1096
|
-
|
1097
|
-
var func1 = function() {
|
1098
|
-
t.ok(true, "func1 executed");
|
1099
|
-
throw "error";
|
1100
|
-
};
|
1101
|
-
|
1102
|
-
var func2 = function() {
|
1103
|
-
t.ok(true, "func2 executed");
|
1104
|
-
throw "error";
|
1105
|
-
};
|
1106
|
-
|
1107
|
-
g_TestVal3 = {};
|
1108
|
-
var func3 = function() {
|
1109
|
-
t.ok(true, "func3 executed");
|
1110
|
-
return g_TestVal3;
|
1111
|
-
};
|
1112
|
-
|
1113
|
-
g_TestVal4 = {};
|
1114
|
-
var func4 = function() {
|
1115
|
-
t.fail("func4 should *not* be executed");
|
1116
|
-
return g_TestVal4;
|
1117
|
-
};
|
1118
|
-
|
1119
|
-
var ret = OpenLayers.Util.Try(func1, func2);
|
1120
|
-
t.ok(ret == null, "if all functions throw exceptions, null returned");
|
1121
|
-
|
1122
|
-
var ret = OpenLayers.Util.Try(func1, func2, func3, func4);
|
1123
|
-
t.ok(ret == g_TestVal3, "try returns first sucessfully executed function's return");
|
1124
|
-
|
1125
|
-
}
|
1126
|
-
|
1127
|
-
function test_getRenderedDimensions(t) {
|
1128
|
-
// from <script src="Util_common.js"> and shared by Util_w3c.html
|
1129
|
-
com_test_getRenderedDimensions(t);
|
1130
|
-
}
|
1131
|
-
|
1132
|
-
function test_toFloat(t) {
|
1133
|
-
t.plan(2);
|
1134
|
-
// actual possible computed Mercator tile coordinates, more or less
|
1135
|
-
var a1=40075016.67999999, b1=-20037508.33999999,
|
1136
|
-
a2=40075016.68, b2=-20037508.34;
|
1137
|
-
t.eq(OpenLayers.Util.toFloat(a1), OpenLayers.Util.toFloat(a2),
|
1138
|
-
"toFloat rounds large floats correctly #1");
|
1139
|
-
t.eq(OpenLayers.Util.toFloat(b1), OpenLayers.Util.toFloat(b2),
|
1140
|
-
"toFloat rounds large floats correctly #2");
|
1141
|
-
}
|
1142
|
-
function test_getFormattedLonLat(t) {
|
1143
|
-
t.plan(3);
|
1144
|
-
var z = 2 + (4/60) - 0.000002 ;
|
1145
|
-
t.eq(OpenLayers.Util.getFormattedLonLat(z,"lon"), "02°04'00\"E",
|
1146
|
-
"LonLat does not show 60 seconds.");
|
1147
|
-
t.eq(OpenLayers.Util.getFormattedLonLat(-181, "lon"), "179°00'00\"E", "crossing dateline from the west results in correct east coordinate");
|
1148
|
-
t.eq(OpenLayers.Util.getFormattedLonLat(181, "lon"), "179°00'00\"W", "crossing dateline from the east results in correct west coordinate");
|
1149
|
-
}
|
1150
|
-
|
1151
|
-
/**
|
1152
|
-
* To test that we can safely call OpenLayers.Util.extend with an Event
|
1153
|
-
* instance, we need to capture a real event.
|
1154
|
-
*/
|
1155
|
-
var loadEvent;
|
1156
|
-
window.onload = function(evt) {
|
1157
|
-
loadEvent = evt || window.event;
|
1158
|
-
}
|
1159
|
-
function test_extend_event(t) {
|
1160
|
-
t.plan(2);
|
1161
|
-
t.ok(loadEvent, "loadEvent recorded");
|
1162
|
-
var extended, err;
|
1163
|
-
try {
|
1164
|
-
extended = OpenLayers.Util.extend({foo: "bar"}, loadEvent);
|
1165
|
-
} catch (e) {
|
1166
|
-
err = e;
|
1167
|
-
}
|
1168
|
-
if (err) {
|
1169
|
-
t.fail("Failed to extend with an event: " + err.message);
|
1170
|
-
} else {
|
1171
|
-
t.eq(extended && extended.foo, "bar", "extended with event");
|
1172
|
-
}
|
1173
|
-
}
|
1174
|
-
|
1175
|
-
</script>
|
1176
|
-
</head>
|
1177
|
-
<body>
|
1178
|
-
<div id="map" style="width: 1024px; height: 512px;"/>
|
1179
|
-
</body>
|
1180
|
-
</html>
|