Compare commits

...

1338 Commits

Author SHA1 Message Date
Éric Lemoine 0412410be0 set VERSION_NUMBER to Release 2.12 2012-06-27 22:56:31 +02:00
Éric Lemoine 3b69a3083c set VERSION_NUMBER to 2.12-rc7 2012-06-12 22:35:12 +02:00
Éric Lemoine 8208241e55 fix the kml-pointtrack.html example 2012-06-12 22:03:30 +02:00
Éric Lemoine 1af83576f2 Merge pull request #511 from elemoine/mobilecss
iOS (iPad) map animated dragging tile refresh bug
2012-06-12 12:26:09 -07:00
Éric Lemoine 476556e864 use -webkit-transform: translate3d(0, 0, 0) in style.mobile.css for better performance on iOS, and to prevent tile blinking effects on iOS 5 2012-06-07 09:24:32 +02:00
Éric Lemoine 788d5a645a move the style.mobile.css file from examples to theme/default 2012-06-07 09:21:44 +02:00
Éric Lemoine acb489ad79 set VERSION_NUMBER to 2.12-rc6 2012-06-04 22:02:36 +02:00
Éric Lemoine ed6098fdf4 Merge pull request #505 from jorix/getRenderedDimensions-absolute
Adjustment on "Util.getRenderedDimensions" when "containerElement" is absolutely positioned
2012-06-04 12:54:18 -07:00
Xavier Mamano 4f3252bfe8 Revert "Use "superContainer" to operate well in Android, ."
This reverts commit 2b9ea5007b.
2012-06-04 18:49:43 +02:00
Xavier Mamano 2b9ea5007b Use "superContainer" to operate well in Android, . 2012-06-03 23:54:11 +02:00
Xavier Mamano b7e2222d46 missing semicolons on tests 2012-06-03 22:45:28 +02:00
Xavier Mamano 54a51904e9 Adjustment on "Util.getRenderedDimensions" when "containerElement" is absolutely positioned. 2012-06-03 16:54:20 +02:00
Éric Lemoine f5c43d6506 set VERSION_NUMBER to Release 2.12-rc5 2012-05-25 14:55:14 +02:00
Éric Lemoine ba4a68d0e3 Merge pull request #481 from elemoine/481
2.12-rc4 Tile.js script error (Firefox)
2012-05-25 05:49:16 -07:00
Éric Lemoine d289aa327e Grid.removeExcessTiles removes more tiles than it should, refs #481 2012-05-24 22:55:43 +02:00
Éric Lemoine 65cd2bcb88 Merge pull request #480 from elemoine/googleexamples
Use nightly version of Google Maps API in examples
2012-05-24 06:14:07 -07:00
Éric Lemoine 2cd979d34c use the nightly version of Google Maps API in the examples, and provide some information about Google Maps API versioning in the google-v3 example 2012-05-22 10:07:18 +02:00
Éric Lemoine c34b111b38 Merge pull request #476 from probins/googledoc
Document issues with Google v3 layers
2012-05-21 04:20:54 -07:00
Peter Robins 1193e17266 Google v3 docs amendment 2012-05-21 10:06:27 +01:00
Peter Robins 95164d8cc0 Document issues with Google v3 layers 2012-05-20 14:01:12 +01:00
Tim Schaub ae89452936 Merge pull request #473 from ahocevar/svg-block
Using display:block instead of position:absolute.
2012-05-18 12:29:26 -07:00
ahocevar 120cc0680d Using display:block instead of position:absolute.
This fixes a regression that can be seen e.g. when using the FeatureRenderer in GeoExt, causing an incorrect alignment of the renderer.
2012-05-18 12:38:34 +02:00
ahocevar 92f04a7a42 Merge pull request #472 from probins/goopop
Fix Google terms/poweredby/popup. Thanks @probins for the quick fix.
2012-05-17 11:31:51 -07:00
Peter Robins f435a98a2a Fix Google terms/poweredby/popup 2012-05-17 16:48:43 +01:00
Éric Lemoine 2624ea089e set VERSION_NUMBER to 2.12-rc4 2012-05-16 21:10:08 +02:00
Éric Lemoine 24b1fa1b08 Merge pull request #467 from jorix/392
Add style = "position: absolute;" on the SVG to skip the bug of Chrome 18
2012-05-16 12:04:41 -07:00
Éric Lemoine af3615f1ee Merge pull request #469 from elemoine/indexof
Use Util.indexOf in Layer.Bing
2012-05-16 00:19:42 -07:00
Éric Lemoine 62bd06f465 use Util.indexOf in Layer.Bing, for compatibility with IE < 9 2012-05-16 08:24:55 +02:00
Bart van den Eijnden adcf5bb20a Merge pull request #468 from bartvde/bboxstrategy
Fix visibility and inRange issues with the BBOX strategy (r=@elemoine)
2012-05-15 08:13:55 -07:00
Bart van den Eijnden 44f9b81085 also check for visibility of the layer in the central place: the update function 2012-05-15 12:26:21 +02:00
Bart van den Eijnden bca3e45940 BBOX strategy should not request data if its layer is out of range when changing layer visibility 2012-05-15 12:18:42 +02:00
Éric Lemoine 4e42dec4ab Merge pull request #465 from probins/gpxwrite
Fix GPX write Point transform
2012-05-15 01:03:35 -07:00
Peter Robins 359bd3d598 Merge pull request #16 from elemoine/gpxwrite
use t.geom_eq in GPX read test
2012-05-15 00:45:20 -07:00
Éric Lemoine 114541d0b7 use t.geom_eq in GPX tests 2012-05-15 08:58:23 +02:00
Xavier Mamano 05672deefa Add style = "position: absolute;" on the SVG to skip the bug of Chrome 18 2012-05-14 23:02:53 +02:00
Peter Robins 9ea3c2f121 Fix GPX write Point transform 2012-05-14 14:21:23 +01:00
Tim Schaub 44e526a0e8 Merge pull request #439 from tschaub/439
Changing/fixing the meaning of getServerZoom
2012-05-11 00:16:09 -07:00
ahocevar 72d1b54956 Also taking into account zoomOffset.
Now the meaning of getServerZoom is fully clarified, and we can get rid of some code again as well.
2012-05-11 00:26:09 -06:00
ahocevar 40b4cc49e0 Using OpenLayers.Util.indexOf.
Thanks @jorix for catching this.
2012-05-11 00:26:09 -06:00
ahocevar 9585341d9c Changing/fixing the meaning of getServerZoom.
If a layer is configured with serverResolutions, then getServerZoom should return the zoom level as index of the current resolution in the serverResolutions array.
2012-05-11 00:26:08 -06:00
Éric Lemoine 293ad9b32a Merge pull request #460 from elemoine/460
Fixing issue of calculating maxResolution of layer again
2012-05-10 06:44:14 -07:00
Éric Lemoine 4ad6bacc5d when calculating maxResolution from maxExtent and tileSize we dont want to the actual tile size for single layers 2012-05-10 15:42:59 +02:00
Éric Lemoine 98fb795f97 set VERSION_NUMBER to 2.12-rc3 2012-05-05 14:27:12 +02:00
Éric Lemoine 23d8057222 Merge pull request #449 from elemoine/449
Issues with window resize in IE9 for OL 2.12RC2
2012-05-05 04:49:55 -07:00
Éric Lemoine 2608a0ebe7 fix resize handling in IE 9 and better (refs #449) 2012-05-04 14:28:12 +02:00
Éric Lemoine ac3d361778 Merge pull request #441 from elemoine/gutter
Tiles with gutters are shifted
2012-05-02 02:35:32 -07:00
Éric Lemoine 612401a644 fix bug where tiles with gutters are shifted (refs #441) 2012-04-28 21:23:55 +02:00
Frederic Junod 5f1651a30f Add missing hover option to the SelectFeature control.
Thanks Arnie Shore.
2012-04-25 10:34:40 +02:00
Éric Lemoine 1ace4df160 set OpenLayers.VERSION_NUMBER to Release 2.12-rc2 2012-04-24 21:55:49 +02:00
ahocevar f4a77cad06 Merge pull request #432 from ahocevar/iframe-opacity
Long URLs messing up Opacity. r=@elemoine,@lewinmadrid
2012-04-24 12:32:48 -07:00
ahocevar fc0b15ad45 Overriding onImageLoad to set the opacity on the correct element. 2012-04-24 08:08:41 -04:00
Éric Lemoine 07533fcdcb Merge pull request #426 from elemoine/moveend-bug
pan() triggers moveend event twice
2012-04-24 04:02:36 -07:00
ahocevar 179433da2f For IFrame tiles, we need to set opacity on the IFrame's parent. 2012-04-23 18:46:28 -04:00
ahocevar a57c56ed96 Revert "Merge pull request #432 from ahocevar/iframe-opacity"
This reverts commit af046b9af8, reversing
changes made to f36fd5f0d1. The reason for reverting this is that the change breaks the select-feature-multilayer.html example.
2012-04-23 18:03:39 -04:00
Éric Lemoine c6c1bf1f77 fix movestart, move, moveend sequence on pan with animate:false 2012-04-23 23:57:48 +02:00
ahocevar af046b9af8 Merge pull request #432 from ahocevar/iframe-opacity
Long URLs messing up Opacity. r=@elemoine
2012-04-23 14:14:08 -07:00
ahocevar 11cc960be5 Setting opacity on the IFrame's parent, like we used to do in 2.11. 2012-04-23 10:36:51 -04:00
ahocevar 07114fc894 Setting opacity on the last child.
This is required for IFrame tiles, so we don't set the opacity on the event pane. To make this work with vector layers, the defs node needs to be inserted before the root group element instead of after it.
2012-04-23 10:17:20 -04:00
Éric Lemoine f36fd5f0d1 Merge pull request #393 from elemoine/393
grid layers may be misplaced
2012-04-20 06:27:27 -07:00
ahocevar bd4c092943 Merge pull request #419 from ahocevar/bing-attribution
Incorrect Bing attribution when custom maxResolution is set. r=@elemoine
2012-04-20 06:11:31 -07:00
ahocevar 9ab6d08fb0 Calculate zoom level from serverResolutions.
The previous way of hard-coding an offset of 1 causes an incorrect attribution for layers with a custom maxResolution.
2012-04-20 15:08:45 +02:00
Éric Lemoine e998335718 Merge pull request #399 from elemoine/399
adding an OverviewMap to an OSM map no longer just works
2012-04-20 05:10:34 -07:00
Frédéric Junod 7ec0071823 Merge pull request #403 from fredj/403
Util.html test fail with Chrome and Chromium. r=elemoine
2012-04-17 06:53:43 -07:00
Frederic Junod e14d7d686e Fix Util.html test for Chrome/Chromium browsers. 2012-04-16 10:41:07 +02:00
Éric Lemoine c88a610f21 Merge pull request #406 from elemoine/406
TMS zoomOffset test sets NaN maxResolution values in the map
2012-04-14 05:25:07 -07:00
Éric Lemoine bfd6be634f if maxResolution is "auto" calculate maxResolution based on maxExtent and map size, else calculate maxResolution based on maxExtent and tile size 2012-04-11 17:45:34 +02:00
Éric Lemoine ebfbb354ed fix the TMS zoomOffset test 2012-04-11 17:43:17 +02:00
Bart van den Eijnden 344e2124c9 Merge pull request #400 from bartvde/bing
fix Bing attribution issue caused by reverse axis order (r=@elemoine). Thanks Eric Blasenheim for the detailed report.
2012-04-10 06:02:30 -07:00
Bart van den Eijnden 59cc18d85b fix Bing attribution issue reported by PitneyBowes 2012-04-10 14:31:20 +02:00
Éric Lemoine ae75fdacd7 Revert "Merge pull request #116 from elemoine/redraw"
This reverts commit 7a5b469192, reversing
changes made to a719de7e93.

Conflicts:

	tests/Tile/Image.html
2012-04-07 21:07:03 +02:00
Éric Lemoine 58e86a37f5 Revert "Declare zoomChanged."
This reverts commit b910a5f4d0.
2012-04-07 21:02:24 +02:00
Éric Lemoine 4df1104b7a Revert "Merge pull request #312 from elemoine/redraw"
This reverts commit 7f94945244, reversing
changes made to dfa70fafac.

Conflicts:

	lib/OpenLayers/Layer/Vector.js
2012-04-07 21:01:52 +02:00
Éric Lemoine 685eae7c04 Merge pull request #390 from elemoine/scriptlocation
_getScriptLocation regexp not robust enough
2012-04-04 21:43:08 -07:00
Tim Schaub 0554637c56 Merge pull request #388 from tschaub/offline
Make cache writing work when cross-origin.
2012-04-04 17:49:24 -07:00
Éric Lemoine b1b4736315 make _getScriptLocation RegExp more robust, p=jpfiset, t,r=me 2012-04-04 20:30:50 +02:00
Tim Schaub 2582e762b7 Avoid undefined url. 2012-04-03 16:49:23 -10:00
Éric Lemoine 5c597de900 Merge pull request #384 from elemoine/gridclass
renaming from olLayerGridTile to olLayerGrid
2012-04-03 08:55:49 -07:00
Frederic Junod f2dd130256 update mapbox example.
* use Zoom control instead of ZoomPanel
 * wrap date line
 * attribution control already at the bottom of the map
 * use html entities for the copyright symbol
 * layer has 17 levels, update numZoomLevels
2012-04-02 21:13:42 -10:00
Éric Lemoine f870417a30 class name olLayerGridTile renamed olLayerGrid 2012-04-03 06:28:06 +02:00
Éric Lemoine eb2d62dacb Merge pull request #365 from elemoine/anim2
Display issues with backbuffer delay on single tiled transparent layers
2012-04-02 12:02:05 -07:00
Éric Lemoine 9d23b81dae update 2.12 notes 2012-04-02 21:00:20 +02:00
Éric Lemoine d650ba20d9 Layer.Grid - better docs for transitionEffect, removeBackBufferDelay, and className 2012-04-02 20:59:16 +02:00
Éric Lemoine d8473f9249 make Layer.Grid.prototype.className an API property 2012-04-02 17:57:37 +02:00
Éric Lemoine 8c6466bf2a move transitionEffect to Layer.Grid.prototype, and discourage the use of transitionEffect:"resize" on non-opaque layers 2012-03-31 21:32:49 +02:00
Éric Lemoine d252a6156a add tests for className and removeBackBufferDelay default values 2012-03-31 21:24:45 +02:00
Éric Lemoine 8f20ff8ca0 update 2.12 release notes 2012-03-31 21:24:18 +02:00
Éric Lemoine 5b40ffe474 change CSS accessor for tile transition 2012-03-31 21:24:03 +02:00
Éric Lemoine 1e5f83593c removeBackBufferDelay defaults to 0 for singleTile layers 2012-03-31 21:23:21 +02:00
Éric Lemoine 86cd9c7bf7 add class to Layer.Grid layer div 2012-03-31 21:22:36 +02:00
Frédéric Junod 35333681c1 Merge pull request #377 from probins/rmfc
Remove framedCloud.css. p=probins
2012-03-30 05:53:52 -07:00
Éric Lemoine b876f815fb Merge pull request #376 from probins/rmsvn
Further tidy-up of svn refs
2012-03-30 05:45:06 -07:00
Peter Robins d5adedb708 Remove framedCloud.css 2012-03-30 12:00:52 +01:00
Peter Robins 349fc2f69e Further tidy-up of svn refs 2012-03-30 11:36:40 +01:00
Éric Lemoine e0b93c2e45 The OpenLayers code is published under the 2-clause BSD license 2012-03-30 08:33:55 +02:00
Éric Lemoine 650df2a8f1 change copyright header in every OpenLayers js file 2012-03-29 22:14:56 +02:00
Éric Lemoine 95eb1454f4 change copyright dates in build/license.txt 2012-03-29 22:01:48 +02:00
Éric Lemoine f5cc652685 remove any reference to svn.openlayers.org from license.txt 2012-03-29 22:00:56 +02:00
Éric Lemoine 2cc0090f81 move the licenses dir to the root of the repo 2012-03-29 21:59:58 +02:00
Éric Lemoine 6b04ff1c94 move authors.txt to the root of the repo 2012-03-29 21:58:54 +02:00
Éric Lemoine 5f4519b378 remove doc/customization and doc/readme.txt 2012-03-29 21:57:42 +02:00
Éric Lemoine 3a925d9903 remove release-license.txt and repository-license.txt 2012-03-29 21:56:24 +02:00
Peter Robins 4c0d85ee67 Fusiontables example correction 2012-03-28 23:06:36 -07:00
Peter Robins bb09ff341e Fusion Tables example 2012-03-28 23:06:12 -07:00
Éric Lemoine 801b32a667 Merge pull request #345 from elemoine/flickr
timed out on "examples/strategy-cluster.html"
2012-03-28 21:31:17 -07:00
Éric Lemoine 9a9a5ba452 rely on the Flickr APIs in the strategy-cluster example 2012-03-28 14:20:24 +02:00
Éric Lemoine d574f09e6a rely on the Flickr APIs in the strategy-paging example 2012-03-28 14:13:31 +02:00
Éric Lemoine 74a34ec14b rely on the Flickr APIs in the strategy-bbox example 2012-03-28 14:13:08 +02:00
ahocevar 032293c26f Merge pull request #352 from ahocevar/352
Layer/Grid.html tests fail. r=@elemoine
2012-03-27 16:27:00 -07:00
ahocevar 3eedfce46e Fixing test after 5e9104a2a2. 2012-03-27 13:10:28 -07:00
Éric Lemoine 11395e7e84 Merge pull request #363 from probins/projex2.12
Improve proj4js examples docs 2.12
2012-03-27 08:30:53 -07:00
Peter Robins 1a59ade32a Improve proj4js examples docs 2012-03-27 15:53:01 +01:00
Frédéric Junod 31c2d183f6 Merge pull request #359 from fredj/projdocs
Improvements for projection docs. p=probins
2012-03-27 06:13:12 -07:00
Peter Robins 720a815479 Improvements for projection docs 2012-03-27 14:07:58 +02:00
Antoine Abt eb74d93d48 Merge pull request #355 from tonio/blue
Zoom control, back to blue
2012-03-27 00:03:25 -07:00
Antoine Abt 935c56961b Merge pull request #356 from tonio/transition
Add css transitions to mobile example stylesheet
2012-03-26 23:50:25 -07:00
Antoine Abt 87763af644 add css transition for mobile examples 2012-03-26 22:19:00 +02:00
Antoine Abt 8f3f5d1366 blue’s back — Zoom control refresh 2012-03-26 21:53:11 +02:00
Tim Schaub febf048d9d Merge pull request #351 from elemoine/pinch2
After great sleuthing from @elemoine, we have a solution closer to the heart of the problem.  In a funny twist, the excessive call to `updateSize` ended up hinting at the solution.  Thanks to `git bisect` for making things a bit easier.
2012-03-23 14:19:49 -07:00
Éric Lemoine d680cb45a0 force a reflow after pinch 2012-03-23 22:10:16 +01:00
Éric Lemoine 863011b2b7 set VERSION_NUMBER to Release 2.12-rc1 2012-03-22 18:59:14 +01:00
Éric Lemoine 1febb44376 Merge pull request #342 from mpriour/multiple-builds
Add specific light build example and tag eligible 'light' build examples
2012-03-22 02:13:32 -07:00
Matt Priour a38e4ecc9a Remove light tag from wms-long-url example 2012-03-22 04:01:28 -05:00
Éric Lemoine d563084745 fix the layerLoadMonitoring.html example, refs #342 2012-03-22 07:04:13 +01:00
ahocevar 9db42f6747 Merge pull request #343 from ahocevar/cache-map
Fixing typo which causes CacheRead to fail when CacheWrite is active. r=@tschaub
2012-03-21 23:35:02 +01:00
ahocevar 8d42f33a28 Fixing typo which causes CacheRead to fail when CacheWrite is active 2012-03-21 23:21:24 +01:00
Tim Schaub 97582d637f Merge pull request #341 from tschaub/script
Correcting the callback for the script protocol.
2012-03-21 15:07:31 -07:00
tschaub 609e5f7f09 Taking brackets out of the callback.
The Yahoo API doesn't accept quotes in the callback (e.g. foo['bar']).  Since the callback registry is an object and all identifiers are prefixed with "c" now, we can use dot notation.
2012-03-21 09:18:23 -06:00
ahocevar 5e9104a2a2 Revert "Merge pull request #304 from mpriour/singleTile"
This reverts commit 84fb15e1d2, reversing
changes made to d0d116efdf.
2012-03-21 10:05:22 +01:00
Matt Priour 2ba9c5ffda Remove 'light' tag from some examples it doesn't work for 2012-03-20 23:18:41 -05:00
Matt Priour 6eee5025f2 Add light tag to examples that could use the light build 2012-03-20 22:29:58 -05:00
Matt Priour 386dacffb3 Add a specific example which uses the OpenLayers.light.debug.js library, instead of the normal full multi-file debug version used for most examples 2012-03-20 20:16:03 -05:00
tschaub 127abf8782 Correcting the callback for the script protocol.
In f08119b01e, the default syntax for the script protocol's callback made it so the callbacks looked like `OpenLayers.Protocol.Script.registry[c1]`.  This essentially breaks the script protocol everywhere except where `c1` is defined and equals "c1" (the string).

Tests with this change demonstrate that default callbacks will now look like `OpenLayers.Protocol.Script.registry['c1']` (properly accessing the `c1` property of the registry object).
2012-03-20 17:07:52 -06:00
tschaub 0feefaa4bc Moving attribution from the middle of the map.
I believe this should be the default.  In rare cases where people want it somewhere in the middle of the map, they should provide custom css.
2012-03-20 16:43:33 -06:00
tschaub c02d5a4dbf Correct URL for sencha css and js. 2012-03-20 16:42:56 -06:00
Éric Lemoine 86de06517f Merge pull request #337 from ahocevar/337
controls.html example broken
2012-03-20 02:22:23 -07:00
ahocevar 90c9b525ed Nullifying more properties - previous change did not fix the issue. 2012-03-20 10:13:14 +01:00
ahocevar 8bd6de0fae Merge pull request #337 from ahocevar/337
controls.html example broken. r=@elemoine
2012-03-19 16:06:24 -07:00
ahocevar d31a8da839 Clone needs a fresh backBuffer and tileQueue. 2012-03-19 21:09:43 +01:00
Éric Lemoine acd11005b6 Merge pull request #333 from elemoine/patch-1
Tiles@Home has been discontinued so it should be removed from the doc as well
2012-03-19 09:21:58 -07:00
Antoine Abt f90c3503e2 Merge pull request #336 from tonio/examples
fixes mobile examples which were using ZoomPanel
2012-03-19 06:51:54 -07:00
Antoine Abt ffa71c0d1a update doc in mobile navigation 2012-03-19 14:47:02 +01:00
Antoine Abt d81f0796d4 fixes mobile examples which were using ZoomPanel 2012-03-19 14:42:34 +01:00
ahocevar ed45ab66e3 Merge pull request #331 from ahocevar/331
gutter and maxGetUrlLength broken. r=@elemoine
2012-03-19 03:23:44 -07:00
Frédéric Junod c6374606bc Merge pull request #327 from fredj/jshint
jshint. r=tschaub
2012-03-19 03:07:09 -07:00
Mark Prins 87540d4ef1 Tiles@Home has been discontinued so it should be removed from the example as well. My choice for OpenCycleMap is arbitrary, but since it is currently up on the main OSM slippy map, imo a valid choice.
See also: #330
2012-03-19 10:52:16 +01:00
Bart van den Eijnden 4c02529d00 Merge pull request #332 from bartvde/backbuffer
backBuffer style left and top need to be rounded (original patch by @ahocevar, r=me,elemoine)
2012-03-19 02:43:04 -07:00
Éric Lemoine a0e53931e4 Merge branch '2.12' 2012-03-19 10:32:28 +01:00
Bart van den Eijnden c1944eb6da backBuffer style left and top need to be rounded 2012-03-19 10:15:13 +01:00
ahocevar f32bfa2240 Making backbuffer work again for tiles with frame. 2012-03-19 10:10:40 +01:00
Frederic Junod 1a5d491dae CSS: remove unit when value is 0 2012-03-19 09:49:13 +01:00
Frédéric Junod cd8cd1e6c8 Merge pull request #328 from fredj/multimap-tests
Remove the OpenLayers.Layer.MultiMap class as the MultiMap service was discontinued.
2012-03-19 01:21:34 -07:00
Frederic Junod 5e0c064359 Extra comma. 2012-03-19 09:13:01 +01:00
Frederic Junod 5557693df1 Confusing use of '!'. 2012-03-19 09:13:01 +01:00
Frederic Junod 20e35b19ff Replace tabs with spaces. 2012-03-19 09:13:01 +01:00
Frederic Junod 2de2fe2563 Unnecessary and missing semicolon. 2012-03-19 09:13:01 +01:00
Antoine Abt 2b41c8926b Merge pull request #321 from tonio/zoomdefault
Make Zoom control be default instead of PanZoom.
2012-03-19 00:50:53 -07:00
Frédéric Junod d2a09cbfb1 Merge pull request #4 from elemoine/multimap-tests
add a MultiMap Layer Removal section in the 2.12 release notes
2012-03-18 23:47:53 -07:00
Antoine Abt b10e6707e6 fixes button stay «active» on mobile, in default theme, and mobile example stylesheet 2012-03-18 20:43:33 +01:00
Antoine Abt 457f0285b5 better readability of button with text-shadow 2012-03-18 20:42:25 +01:00
Éric Lemoine 926283fa69 Merge branch '2.12' 2012-03-18 14:09:25 +01:00
ahocevar 472e400078 Adding "mobile" tag to offline storage exmaples. 2012-03-18 13:18:58 +01:00
ahocevar 46c5ac8e55 Merge pull request #322 from ahocevar/loadend
WMS loadend event does not always fire. r=@elemoine
2012-03-18 03:00:47 -07:00
ahocevar 99f116ee98 With tileQueue, we need a different way of handling loadstart/loadend. 2012-03-17 16:10:10 +01:00
Éric Lemoine de9716564f Merge pull request #330 from elemoine/osmarander
remove the osmarander layer in spherical-mercator.html
2012-03-17 07:44:29 -07:00
Éric Lemoine 5834eeed40 add a MultiMap Layer Removal section in the 2.12 release notes 2012-03-17 15:35:16 +01:00
Éric Lemoine 853ad096bb remove the osmarander layer from spherical-mercator.html, as the osmarander tiles (tah.openstreetmap.org) are no longer available 2012-03-17 15:20:31 +01:00
Bart van den Eijnden 1935d6da6d Merge pull request #329 from bartvde/master
merge 2.12 into master
2012-03-16 07:06:53 -07:00
Bart van den Eijnden b6dff22e3b Merge branch '2.12' 2012-03-16 15:02:37 +01:00
Frederic Junod 2ddca7f8cd Remove Layer.MultiMap tests and code.
The API code from http://developer.multimap.com is no longer available.
2012-03-16 14:59:10 +01:00
ahocevar 85b836de23 Merge pull request #322 from ahocevar/322
WMS loadend event does not always fire
2012-03-16 00:48:29 -07:00
tschaub fb631ac0ba Updating zoom style for mobile examples.
Sticking with sans-serif gives a more uniform experience on desktop Webkit, Safari on iOS, and the default Android browser.

Using `-webkit-tap-highlight-color` gets rid of the blue highlight when clicking on the map tiles or zoom control.
2012-03-15 17:59:16 -06:00
Éric Lemoine 8acab59320 Merge pull request #326 from fredj/proj4js-url
Fix proj4js script.src
2012-03-15 15:21:14 -07:00
Éric Lemoine a72403b219 Merge pull request #325 from bartvde/foo
do not cast to LonLat if center is null in Map moveTo
2012-03-15 12:03:32 -07:00
ahocevar 193983b2b0 tileQueue has nothing to do with numLoadingTiles.
The tileQueue might have entries again after zooming when the previous zoom level hasn't finished loading yet. Removing the check for the tileQueue's length makes layers report loadend correctly again.
2012-03-15 17:44:30 +01:00
Frederic Junod 46309b5265 Fix proj4js script.src 2012-03-15 17:13:10 +01:00
Bart van den Eijnden a3874b8f97 do not cast to LonLat if center is null in Map moveTo 2012-03-15 16:53:22 +01:00
Antoine Abt e50c44b63c update doc for control fallback 2012-03-15 10:12:38 +01:00
Éric Lemoine bb6cf0c2d1 provide links to issues/pull requests in 2.12.md 2012-03-15 09:48:37 +01:00
Tim Schaub 9070c2e3dd Cosmetic typo fix thanks @probins. 2012-03-15 01:26:00 -06:00
Marc Jansen 0cc81202a1 Add missing requires directive for OpenLayers.Format.WMSGetFeatureInfo. 2012-03-15 08:20:11 +01:00
Antoine Abt a96c2da6c2 add PanZoom control if Zoom isn’t in build 2012-03-14 22:31:47 +01:00
Antoine Abt ee7efdeb08 trailing spaces 2012-03-14 20:25:07 +01:00
Antoine Abt 23b0971c2f update mobile example to use Zoom control. update build config file 2012-03-14 20:25:07 +01:00
Antoine Abt b2727c88f2 make Zoom default instead of PanZoom 2012-03-14 20:25:07 +01:00
Éric Lemoine 0786a5c532 Merge remote branch 'ahocevar/320' into 2.12 2012-03-14 20:21:25 +01:00
Éric Lemoine 22997b473d Merge remote branch 'upstream/master' into 2.12 2012-03-14 20:20:12 +01:00
ahocevar ef3155d6e6 Fixing test. 2012-03-14 18:27:35 +01:00
Frédéric Junod fe7f7cfc45 Merge pull request #306 from fredj/deprecate-svg2-ng
Deprecate SVG2 renderer, r+p=@ahocevar
2012-03-14 08:23:01 -07:00
Frédéric Junod dbb380b0e1 Merge pull request #3 from ahocevar/deprecate-svg2-ng
Monkey-patching Layer.Vector with deprecated Renderer.NG logic
2012-03-14 04:35:25 -07:00
ahocevar e1fba99c73 Monkey-patching Layer.Vector with deprecated Renderer.NG logic 2012-03-14 10:49:05 +01:00
Frederic Junod 61f01f20e0 Remove Renderer.NG related code 2012-03-14 09:17:42 +01:00
Frederic Junod 42431a4164 Add Renderer.NG and Renderer.SVG2 to the deprecation list in notes/2.12.md 2012-03-14 09:17:42 +01:00
fredj 23380e5d4a Move NG renderer to deprecated.js 2012-03-14 09:17:42 +01:00
fredj 420a6f4dd2 Move SVG2 renderer to deprecated.js 2012-03-14 09:17:42 +01:00
Tim Schaub a462be52a8 Removing unused bind var.
Thanks @jorix for catching this.
2012-03-13 23:08:28 -06:00
Éric Lemoine f018887ac2 fix typo in notes/2.12.md 2012-03-13 15:10:34 +01:00
ahocevar f3fa799a27 Edits to tile related improvements. 2012-03-13 12:39:33 +01:00
ahocevar 0a8db1629d Merge pull request #319 from ahocevar/console-fix
Using OpenLayers.Console if window.console is unavailable.
2012-03-13 04:17:35 -07:00
ahocevar da3a07fbde Using OpenLayers.Console if window.console is unavailable. 2012-03-13 11:38:45 +01:00
Éric Lemoine 7833077039 Merge pull request #317 from mpriour/multiple-builds
Document alternate builds
2012-03-13 00:50:43 -07:00
Antoine Abt bed3edeb46 Merge pull request #281 from ejn/master
Improve iconOn/iconOff class name matching in Panel.js; add unit tests
2012-03-13 00:37:54 -07:00
Matt Priour 8b3b999a64 correct typo in readme 2012-03-13 00:07:18 -05:00
Matt Priour a969f46ed5 add multiple build information in readme 2012-03-12 23:08:44 -05:00
Éric Lemoine f9cda4d9f4 Merge pull request #316 from elemoine/rem-scripts
remove outdated shell scripts
2012-03-12 14:42:46 -07:00
Éric Lemoine fd03c4a8c9 remove outdated shell scripts 2012-03-12 22:23:34 +01:00
ahocevar 6b5dba3f93 Merge pull request #301 from ahocevar/offline
Adding CacheRead and CacheWrite controls. r=@elemoine,@fredj
2012-03-12 08:29:00 -07:00
Éric Lemoine c66371ebf8 Merge pull request #288 from mpriour/multiple-builds
Make the getScriptLocation function work with mobile & light builds
2012-03-12 07:19:42 -07:00
Matt Priour 9e90af914d Merge pull request #2 from elemoine/multiple-builds
Multiple builds
2012-03-12 06:20:28 -07:00
ahocevar 7693c2480d Merge pull request #296 from ajkopinga/canvas-edge-hit2
added hit detection for symbol edges to canvas renderer with unit tests
2012-03-12 06:12:57 -07:00
Éric Lemoine 56e25fc9fe Merge pull request #309 from bartvde/ie8doubleclick
prevent double click from firing click callback in IE
2012-03-12 02:37:38 -07:00
Bart van den Eijnden 1dba227db4 add comment as to why clearTimer is needed here, and change control flow back to what it was before breakage, i.e. do not call clearTimer if it does not pass the tolerance 2012-03-12 09:59:25 +01:00
Éric Lemoine 645e2f4016 add tests for SingleFile._getScriptLocation 2012-03-12 09:06:27 +01:00
Éric Lemoine 1ea71fd030 use two slashes in RegExp strings for escapement (see http://stackoverflow.com/questions/7735749/fix-jslint-bad-escapement-warning-in-regex) 2012-03-12 09:05:54 +01:00
Matt Priour ef0da77e06 Merge branch 'master' into multiple-builds 2012-03-11 20:49:47 -05:00
ahocevar bd262fce41 Addressing @elemoine's review comments.
Now the application no longer needs to care about the tile origin, because the CacheWrite control modifies the url if the CORS image loading is disabled and it is from a different origin. This only requires OpenLayers.ProxyHost to be properly configured. Also local storage keys use the original url instead of the proxied url, to make the CacheRead control work without proxy settings.
No deferred exceptions are thrown any more. Instead, OpenLayers.Console is used to show an error message for security exceptions.
We now check for OpenLayers.Tile.Image, because other tile types (e.g. UTFGrid) are not supported (yet).
To make the same origin handling in the CacheWrite control easier, OpenLayers.Request now exposes the same origin logic from request.issue as a separate function, so it can also be used by other components.
2012-03-11 22:15:34 +01:00
Frédéric Junod f468cbf086 Merge pull request #313 from vmx/patch-1
The `loadcancel` event doesn't really exist. p=@vmx
2012-03-11 11:10:08 -07:00
Volker Mische c02f295836 The loadcancel event doesn't really exist 2012-03-11 17:26:06 +01:00
Éric Lemoine 7f94945244 Merge pull request #312 from elemoine/redraw
Vector.Redraw should set zoomChanged to true in moveTo
2012-03-10 00:55:31 -08:00
ahocevar dfa70fafac Remove other references to unavailable external resources.
For me, several Image.html tests still failed in Firefox without this change (see #311)
2012-03-10 01:55:57 +01:00
ahocevar 84fb15e1d2 Merge pull request #304 from mpriour/singleTile
Modify Grid.js to respect layer's maxExtent in singleTile mode
2012-03-09 16:24:27 -08:00
Éric Lemoine d0d116efdf add missing blank.gif file in tests/Tile 2012-03-10 00:34:39 +01:00
Éric Lemoine 0fa9651ee8 fix Tile/Image tests - we should not rely on external resources like http://labs.metacarta.com/wms/vmap0, refs #311 2012-03-10 00:30:04 +01:00
Matt Priour 9df23e56b1 Merge pull request #1 from ahocevar/singleTile
Do not check for layer.maxExtent.
2012-03-09 15:07:41 -08:00
ahocevar e52c97f741 Don't check based on layer.maxExtent.
layer.maxExtent is always set as soon as the layer is added to a map. Instead, making behavior consistent with tiled layers: don't display outside maxExtent except when displayOutsideMaxExtent is set to true or the layer's extent equals the world bounds for maps with a baseLayer that has wrapDateLine set to true.
2012-03-09 23:50:09 +01:00
Éric Lemoine c693884f5f redraw on vector layers should set zoomChanged to true in the moveTo call (refs #305) 2012-03-09 23:40:34 +01:00
Matt Priour 0ff2f9a457 Simplify maxExtent restriction logic and prevent unneeded calls to `getLayerPxFromLonLat` 2012-03-09 14:26:48 -06:00
Matt Priour f6c8b81f3a Merge branch 'master' into singleTile 2012-03-09 14:04:21 -06:00
ahocevar 3d8a9168f0 Always set the tile url.
This avoids false positives in the url check in CacheWrite::cache when the CacheRead control is also active.
2012-03-09 19:07:54 +01:00
ahocevar 5f48e546bc Simplified example. 2012-03-09 19:07:20 +01:00
ahocevar 51a11e053f Additional simple examples for just CacheRead and CacheWrite.
* Abort seeding immediately when cache is full.
* Abort seeding immediately when CORS image requests are not supported.
2012-03-09 19:06:10 +01:00
Tim Schaub 1a444589e0 Merge pull request #274 from tschaub/utfgrid
UTFGrid Tile, Layer, and Control.  This adds support for responsive handling of interactions with large numbers of features represented by UTFGrids.
2012-03-09 08:49:30 -08:00
Bart van den Eijnden f28c432b34 prevent double click from firing click callback in IE 2012-03-09 14:05:48 +01:00
Tim Schaub 021ad521a8 Tests for the getTileData method.
Tests pass on Chrome 17, Firefox 10, IE 8, and IE 6.
2012-03-08 19:18:32 -06:00
Matt Priour 3e50817623 Correct else code style error 2012-03-08 16:54:50 -06:00
Éric Lemoine 7cd5ad64fa 2.12.md minor updates 2012-03-08 23:44:29 +01:00
Éric Lemoine dcaefe2dd1 more information in 2.12.md 2012-03-08 23:36:52 +01:00
Matt Priour 9fbd3072b7 Merge branch 'master' into singleTile 2012-03-08 16:36:41 -06:00
Matt Priour 176e00e902 correct git errors 2012-03-08 16:32:49 -06:00
Matt Priour 9d0dd67843 Add tests for initSingleTile function, which is where all the important singleTile logic is 2012-03-08 16:26:46 -06:00
Matt Priour 3fd1cecf04 SingleTile WMS layers don't respect maxExtent values set on the layer 2012-03-08 16:20:23 -06:00
Éric Lemoine 16cece25a4 Merge pull request #303 from ZiglioNZ/rule-dependency
Added missing dependency
2012-03-08 13:29:29 -08:00
Emanuele Ziglioli 197c8053fa Added extra dependencies: StyleMap.js and Layer/Vector.js. See:
https://github.com/openlayers/openlayers/pull/303#issuecomment-4401757
2012-03-09 09:51:24 +13:00
Emanuele Ziglioli 46191897cb Added missing dependency 2012-03-09 08:54:51 +13:00
ahocevar e366722375 Note about terms of service. 2012-03-08 18:37:45 +01:00
ahocevar 4434d195ea Merge pull request #295 from probins/mapdocs
Improve docs for bounds/lonlat, Layer and Map
2012-03-08 09:11:30 -08:00
Éric Lemoine 89cf93d994 fix the Grid tests that fail in slow browsers, suggested by @ahocevar (refs #299) 2012-03-08 17:53:09 +01:00
Bart van den Eijnden 05e40e5cf0 Merge pull request #302 from bartvde/graphic
don't output graphic inside of textsymbolizer if graphic is set to false (@r=ahocevar)
2012-03-08 08:10:02 -08:00
ahocevar 636ac640ca Don't test VML if SVG is also supported.
The VML renderer does not work in IE9 standards mode, and SVG takes precedence over VML. So it is safe to skip these tests if both VML and SVG report "supported". See #285
2012-03-08 16:27:51 +01:00
Bart van den Eijnden 9707a388c3 typo 2012-03-08 15:52:03 +01:00
Bart van den Eijnden 5d9791133e do not output graphic inside of textsymbolizer if graphic is set to false 2012-03-08 15:47:43 +01:00
ahocevar f18ac9911b Adding CacheRead and CacheWrite controls.
These controls read from and write to the browser's offline storage. Example with a seeding tool included.
2012-03-08 14:18:44 +01:00
Matt Priour fe2d80973a Merge branch 'master' into singleTile 2012-03-08 00:32:08 -06:00
Matt Priour 9fbadfa79f Modify initSingleTile to respect map or layer maxExtent when set and layer is not the map's baseLayer 2012-03-08 00:31:05 -06:00
Éric Lemoine 877f4b4cc6 make the PanZoom tests pass in IE 9+, by not running tests that rely on document.createEvent in this browser too, no functional change (refs #277) 2012-03-07 22:01:39 +01:00
Frederic Junod 0566b0a5bb Add examples/osm-grayscale.html (see #297)
Thanks to @ahocevar for the help on the firefox issue.
2012-03-07 10:35:06 +01:00
ahocevar 2f4ca63a39 Merge pull request #297 from ahocevar/tileloadstart
tileloadstart event and fixed crossorigin handling. r=@fredj
2012-03-07 01:30:36 -08:00
Marc Jansen d122ebcf4e Merge pull request #286 from marcjansen/imgpath
Declare ImgPath property of OpenLayers in OpenLayers.js (r=@elemoine,@ahocevar)
2012-03-06 23:02:25 -08:00
Tim Schaub 46054b8543 Correctly getting tile data for a location.
The UTFGrid layer's `getTileInfo` method was not correctly handling dateline wrapping (and was a bit more complicated than it needed to be).  Since it would be useful to all grid layers to be able to retrieve a tile and pixel offset for any map location, this functionality deserves to be on the Grid layer.

The WMTS layer currently exposes a `getTileInfo` method that is used within the layer and by the WMTSGetFeatureInfo control.  This method could be renamed to `getRemoteTileInfo` or something to differentiate it from a method that gets locally cached tile info.  Until that change is made, the method on the Grid layer will be called `getGridData`.
2012-03-06 16:06:15 -07:00
ahocevar 81e7913075 Fixing crossorigin attribute handling. 2012-03-06 23:21:25 +01:00
Matt Priour e45d37b386 Merge branch 'master' into multiple-builds 2012-03-06 14:21:14 -06:00
Marc Jansen c9dbebf4aa ImgPath should not be an an APIProperty in SingleFile.js. 2012-03-06 20:34:46 +01:00
Tim Schaub 9e47c02156 Merge pull request #292 from tonio/zoom
cosmetic changes on zoom control
2012-03-06 09:24:18 -08:00
Arjen Kopinga 677659df96 broadening stroke width in symbol edge hit detection test to lessen sensitivity to browser antialiasing differences 2012-03-06 15:27:26 +01:00
ahocevar a05eab29db Adding tileloadstart event to layer.
For this to be useful (i.e. so listeners can see/modify the tile url), a change in Tile.Image is required so we do not fire the loadstart event before we have the url to load.
2012-03-06 14:40:08 +01:00
Arjen Kopinga a836224a14 added hit detection for symbol edges to canvas renderer with unit tests
Added unit tests for hit detection on invisible canvas layer

simplified unit test for hit detection on invisible canvas
2012-03-06 14:12:53 +01:00
ahocevar da3bbbe231 Merge pull request #293 from probins/defnav
Map: default controls should include TouchNavigation if present
2012-03-06 04:18:02 -08:00
Peter Robins 93028bbcf8 Map: defaults controls should include TouchNavigation if present 2012-03-06 11:47:27 +00:00
Peter Robins e8af06e6ae Improve docs for bounds/lonlat as array 2012-03-06 11:30:28 +00:00
Éric Lemoine 81b2b524ec add pl.js to API docs, refs #241 2012-03-06 09:26:12 +01:00
Éric Lemoine 539e2fc4db Merge pull request #241 from argson/master
Added translations for Polish language
2012-03-06 00:24:15 -08:00
Antoine Abt 35a6407820 cosmetic changes on zoom control 2012-03-06 09:16:09 +01:00
Éric Lemoine 3b860ca4d7 Merge pull request #168 from jorix/Docs-issues3
Some problems in the documentation
2012-03-06 00:05:52 -08:00
Marc Jansen e8744edd24 Minor formatting of API doc comments. 2012-03-06 08:39:00 +01:00
Marc Jansen 36886a2bc5 Better documentation for the property ImgPath of OpenLayers. 2012-03-06 08:33:39 +01:00
Tim Schaub 0e4953efdd Simplify. 2012-03-06 00:08:20 -07:00
Marc Jansen 3cee434199 Also add the declaration of ImgPath to SingleFile.js. 2012-03-06 08:08:09 +01:00
Tim Schaub cf30e71b9f Merge branch 'master' of github.com:openlayers/openlayers into utfgrid 2012-03-06 00:06:15 -07:00
Tim Schaub 83fe251ef6 Merge pull request #291 from tschaub/zoom
Zoom Control
2012-03-05 23:02:55 -08:00
Tim Schaub 28687257d6 Use existing methods on XYZ layer. 2012-03-05 23:07:28 -07:00
Tim Schaub 8d6bddf0ac A simple zoom control with zoom in/out links.
The zoom control allows for zoom in/out links that can be styled with CSS.

Note: This change was originally captured in #269.  It involves nice additions thanks @ahocevar.  The changes were unintentionally merged and then reverted with fb3caf1561, so the history of commits is not immediately apparent (though still likely there somewhere due to the magic of git).
2012-03-05 22:11:36 -07:00
Matt Priour 405a2225e8 Make the getScriptLocation function work with mobile & light builds and any other extended OpenLayers script naming convention 2012-03-05 19:53:35 -06:00
Éric Lemoine d5da1130b5 Merge pull request #207 from probins/script
Change Protocol/Script registry to object
2012-03-05 13:52:44 -08:00
Marc Jansen 25bba1c937 Remove not needed document.getElementById in test. 2012-03-05 21:41:39 +01:00
Marc Jansen 8f0280e8bd Add two trivial tests for the presence and default
value of OpenLayers.ImgPath.
2012-03-05 21:23:40 +01:00
Marc Jansen 768ad0108d Move the declaration of OpenLayers.ImgPath from Util.js to OpenLayers.js. 2012-03-05 21:00:05 +01:00
ahocevar fb3caf1561 Revert "Merge branch 'master' of github.com:openlayers/openlayers"
This reverts commit 12f191a690, reversing
changes made to 49b3dc85c2. See #269.
2012-03-05 18:56:50 +01:00
Éric Lemoine c8f0dfd728 Merge pull request #261 from mpriour/multiple-builds
Package OpenLayers with 3 pre-built versions (Full, light, & mobile)
2012-03-05 09:02:52 -08:00
Éric Lemoine 44cb6a404b Merge pull request #254 from mpriour/light-build
Initial light build config file
2012-03-05 09:01:21 -08:00
Matt Priour b8f396f44d Remove GML, KML, & WmsGFI for vector shapes on non-interactive tiles use case 2012-03-05 10:48:49 -06:00
Matt Priour ba5f638120 Merge branch 'master' into light-build 2012-03-05 10:46:04 -06:00
ahocevar abbf679ab6 Fixing typo in docs 2012-03-05 16:46:45 +01:00
ahocevar d6ffd60199 Merge pull request #283 from ahocevar/tileerror
New events: loaderror for Tile, tileerror for Layer.Grid. r=@bartvde
2012-03-05 06:10:22 -08:00
ahocevar fe63d0aa63 New events: loaderror for Tile, tileerror for Layer.Grid. 2012-03-05 14:20:01 +01:00
Éric Lemoine 8c0d6880df Merge pull request #282 from probins/img
OpenLayers.ImgPath should be API property
2012-03-05 05:19:08 -08:00
Peter Robins eb4bf5d438 OpenLayers.ImgPath should be API property 2012-03-05 13:13:51 +00:00
ejn fbc3b5475d Improved regex, added tests 2012-03-05 12:14:56 +01:00
ahocevar d7533096e9 Fixing Renderer/SVG.html tests for IE9 (see #277). 2012-03-05 12:00:18 +01:00
ahocevar 5674d440c8 Fixing IFrame test for IE9 (see #277). 2012-03-05 11:49:07 +01:00
Xavier Mamano bfb379f349 Fix some problems in the documentation. 2012-03-05 11:43:09 +01:00
Bart van den Eijnden d3a4275136 Merge pull request #279 from bartvde/gfi_exceptions
GetFeatureInfo requests should take EXCEPTIONS parameter from the WMS layer (r=@ahocevar)
2012-03-05 01:07:17 -08:00
Bart van den Eijnden 17f7b2feab use separate testcase as suggested by @ahocevar 2012-03-05 10:04:15 +01:00
Bart van den Eijnden 6204fe50c6 GetFeatureInfo requests should take EXCEPTIONS parameter from the WMS layer 2012-03-05 09:56:31 +01:00
Bart van den Eijnden cf9cc27279 fix typo 2012-03-05 09:47:37 +01:00
Éric Lemoine ba7e820adb Merge pull request #278 from elemoine/revert-camelize-removal
Revert camelize removal
2012-03-05 00:37:32 -08:00
Tim Schaub 938cd65116 Merge pull request #275 from probins/newex
New example using YQL for cross-origin xml (thanks @probins).
2012-03-04 20:28:46 -08:00
Tim Schaub 80ab5d5161 Resize on zoom (would that it were the default). 2012-03-04 20:45:42 -07:00
Tim Schaub 6345e87f04 Merge pull request #276 from jorix/remove_unused_code
Remove unused snappingOptions.
2012-03-04 19:10:41 -08:00
Tim Schaub 55d14698aa Reverting the doc menu changes.
While these were legitimate changes, I'm reverting the API doc menu changes to separate concerns.
2012-03-04 20:01:35 -07:00
Éric Lemoine c58f093615 Revert "Removing camelize method."
This reverts commit 43ef0920c2.
2012-03-04 23:22:21 +01:00
Éric Lemoine 55a52008d6 Revert "Moving camelize and its tests to deprecated"
This reverts commit 5875b50a51.
2012-03-04 23:21:54 +01:00
Éric Lemoine 526ff5f6ed Revert "indicate that String.camelize is deprecated in the 2.12 release notes, refs #64, no functional change"
This reverts commit acf6a8a97d.
2012-03-04 23:21:41 +01:00
ahocevar 1072511be7 Fixing tests - popup only needed in Firefox.
See #249.
2012-03-04 22:45:38 +01:00
Éric Lemoine 9f06a17647 fix the Protocol/CSW tests in IE, refs #249 2012-03-04 22:18:07 +01:00
Éric Lemoine dc9dd219fc fix the "too much recursion" exceptions in the Grid.html tests 2012-03-04 21:15:04 +01:00
ahocevar ffac63045e Removing duplicate setCanvasStyle method.
Thanks @jorix for catching this (see #238).
2012-03-04 19:56:41 +01:00
Xavier Mamano af8a483f10 "snappingOptions" option is not used neither in lib examples and evidence. 2012-03-04 17:01:06 +01:00
Éric Lemoine e409b77caa fix deprecated/WMS and deprecated/MapServer tests 2012-03-04 15:56:15 +01:00
Peter Robins e267c3a53d Example for cross-origin xml 2012-03-04 12:52:58 +00:00
ahocevar 1b746a6461 Fixing Tween tests.
Thanks @tschaub for the requestAnimationFrame hint. See #249
2012-03-04 11:36:28 +01:00
ahocevar 12f191a690 Merge branch 'master' of github.com:openlayers/openlayers 2012-03-04 11:25:10 +01:00
Tim Schaub c6aa996d2a UTFGrid geography class example. 2012-03-04 01:58:22 -07:00
Tim Schaub 32db586fba Provide map and pixel location to callback. 2012-03-04 01:56:26 -07:00
Éric Lemoine 49b3dc85c2 Merge pull request #56 from jorix/3576-MeasureImm
#3576 Incorrect geometry passed to measurePartial
2012-03-03 23:59:54 -08:00
Tim Schaub 268b84286b Tests for UTFGrid layer and control. 2012-03-03 17:29:38 -07:00
Tim Schaub dc4df928ed Doc cleanup for UTFGrid layer. 2012-03-03 17:28:55 -07:00
Tim Schaub 36d22bbb15 Single argument constructor for UTFGrid layer. 2012-03-03 16:07:50 -07:00
Tim Schaub 2feb860983 Separating UTFGrid example markup and js source. 2012-03-03 16:07:50 -07:00
Éric Lemoine e576eba862 add missing statement-ending semi-colon, refs #272 2012-03-03 23:57:02 +01:00
Éric Lemoine 9242846954 Merge pull request #272 from elemoine/revert-hasownproperty
do not generalize use of hasOwnProperty
2012-03-03 14:54:48 -08:00
Éric Lemoine d6f8095535 add @tschaub's test_extend_event back 2012-03-03 23:50:28 +01:00
Tim Schaub bb76893abb Merge pull request #273 from tschaub/permalink
Make permalink destruction safe (r: @ahocevar).
2012-03-03 14:07:54 -08:00
Tim Schaub 9a3b723ba4 Making it safe to destroy a permalink.
Previously, a map could not be destroyed if it included a permalink control without an "element".  In addition, a permalink control could not be destroyed if it didn't have a reference to a map.
2012-03-03 14:42:43 -07:00
Tim Schaub ac884a4de7 Merge pull request #270 from probins/argparsercenter
Make options.center compatible with permalink.
2012-03-03 13:37:26 -08:00
Éric Lemoine 9a116b21b9 Revert "protect for in loops with hasOwnProperty"
This reverts commit e3cc96dbfb.
2012-03-03 22:35:39 +01:00
Éric Lemoine 161b54b6f1 Revert "Fixing the extend method to work on IE."
This reverts commit 71276b5323.
2012-03-03 22:35:31 +01:00
Éric Lemoine 6712dd9680 Revert "Collecting tests together."
This reverts commit fb748bae81.
2012-03-03 22:35:17 +01:00
Tim Schaub 935d621113 Testing that the permalink works with map options.
The permalink/argparser combo doesn't properly handle map configurations where layers and a map location are provided (see #270).
2012-03-03 14:30:03 -07:00
ahocevar 221f299650 Using buttonclick event to avoid issues on touch devices. 2012-03-03 22:21:01 +01:00
ahocevar 9860d60518 Merge branch 'zoom' of https://github.com/tschaub/openlayers into zoom 2012-03-03 22:20:49 +01:00
ahocevar 47d0eb1013 Documenting params 2012-03-03 19:14:52 +01:00
Peter Robins bcba6bb0fd Map: make options.center compatible with permalink 2012-03-03 17:06:14 +00:00
Tim Schaub 3b028e0017 Merge pull request #268 from tschaub/has
Fixing the extend method to work on IE.
2012-03-03 07:12:56 -08:00
Tim Schaub fb748bae81 Collecting tests together. 2012-03-03 08:11:42 -07:00
Tim Schaub c6650087cc Update zoom example to demonstrate custom style. 2012-03-02 23:51:39 -07:00
Tim Schaub f45043967b Zoom control tests. 2012-03-02 22:52:18 -07:00
Tim Schaub 45b9c48c43 Accommodations for IE. 2012-03-02 22:11:40 -07:00
Tim Schaub b9b471f57b Merge branch 'master' into zoom 2012-03-02 21:26:58 -07:00
tschaub 66e8fafdf2 Correcting example typo. Thanks @probins. 2012-03-02 18:38:42 -07:00
tschaub 59578931c2 Making testing in IE a tiny bit less painful.
The super handy quick filter that Marc added in 57c16b7345 was causing a bit of trouble in IE.  First, `input` was undefined where it was used as a misspelling for `window`.  After that, IE choked on the nice CSS3 selector when filtering the test list.  It turns out we don't need to be as selective and can treat all anchor elements within the table rows as candidates.
2012-03-02 18:29:25 -07:00
tschaub 71276b5323 Fixing the extend method to work on IE.
In IE, events don't have a `hasOwnProperty` method.  Instead of trusting that the source objects have this method, we call the same on the Object prototype.  If we want to be safer about the `hasOwnProperty` calling done in e3cc96dbfb, we could create an `OpenLayers.Object.has` method that also used the Object prototype.
2012-03-02 16:54:59 -07:00
tschaub 0ce7674be6 Adding a simple zoom control.
This control generates simple zoom in/out links that can be styled with CSS.
2012-03-02 15:45:30 -07:00
Éric Lemoine 9b2e46d9c5 Merge pull request #189 from jorix/popup-bug_onImageLoad
A popup can be destroyed before obtaining the images of `contentDiv`.
2012-03-02 14:34:24 -08:00
Éric Lemoine 26be40a1bd Merge pull request #186 from jorix/Build-monitor-errors
Build: Monitor the errors from the merge process.
2012-03-02 14:33:31 -08:00
Marc Jansen 1ef5cfd9a0 fix link to NaturalDocs 2012-03-02 21:30:05 +01:00
ahocevar 39962a6179 Using v3.6 of the GMaps v3 API everywhere. 2012-03-02 11:02:22 +01:00
Bart van den Eijnden 456a17b61c fix up test in Tile/Image/IFrame see https://github.com/openlayers/openlayers/commit/221d7caf70ace66041c41fc8c62412932e367f4e#commitcomment-1032985 2012-03-02 09:40:58 +01:00
tschaub 9b3a78ed5e Fixing the build by adding missing var.
An undeclared variable snuck in with 930206fb57.  This breaks builds using closure compiler.  Another reason to set up a CI server and a builds@ list.
2012-03-01 17:00:26 -07:00
tschaub 5a355f3760 Attribution update. 2012-03-01 16:33:50 -07:00
Tim Schaub 485317567e Merge pull request #266 from tschaub/permalink
Making map construction work with permalink.
2012-03-01 15:11:10 -08:00
ahocevar 930206fb57 Merge pull request #247 from probins/kmlatts
KML: write attributes; add option for kvp attributes
2012-03-01 14:30:11 -08:00
tschaub 4e9701caa8 Making map construction work with permalink.
If a map is configured with a permalink control and a center, the permalink control tries to work with the map center before setCenter is called.  This sequence assumes that the map center will already be a LonLat.  This fails if the map is constructed with a coordinate array.  Safer move is to convert center to LonLat before controls are added.
2012-03-01 13:47:42 -07:00
tschaub 31219c90f5 Adding XYZ example using MapBox tiles. 2012-03-01 13:13:35 -07:00
Peter Robins eb47d97774 KML: write attributes; add option for kvp attributes 2012-03-01 12:56:38 +00:00
Pierre GIRAUD 6d5544ca96 Merge pull request #264 from pgiraud/osm
Use the 3 available sub-domains for OSM by default
2012-03-01 03:00:07 -08:00
Pierre GIRAUD 45daaf5dd2 Use the 3 available sub-domains for OSM by default 2012-03-01 11:54:07 +01:00
Bart van den Eijnden 726b9dead8 Merge pull request #262 from bartvde/forloops
protect for in loops with hasOwnProperty (r=@elemoine,@marcjansen)
2012-03-01 01:09:19 -08:00
Tim Schaub de68e00a58 Merge pull request #263 from jorix/always_requires
Avoid using the [first] section.  Specify dependencies in the lib.
2012-02-29 19:31:15 -08:00
Bart van den Eijnden e3cc96dbfb protect for in loops with hasOwnProperty 2012-02-29 18:43:55 +01:00
Matt Priour 5c42b2f3ff Remove canvas renderer, as it is redundant with SVG and SVG is better supported and more robust across non-IE browsers 2012-02-29 10:13:57 -06:00
Xavier Mamano fe33e29000 If using OpenLayers namespace must have at least one requirement. 2012-02-29 17:07:41 +01:00
Matt Priour dd11c75625 Merge branch 'master' into light-build 2012-02-29 10:02:22 -06:00
Matt Priour da1a79018a Build full, light & mobile minified & debug versions of OpenLayers during release & dev dir update process 2012-02-29 09:58:23 -06:00
ahocevar d7a3ecac08 Merge pull request #259 from ahocevar/259
Don't overwrite params, and use params in Layer.ArcGISCache. r=@elemoine
2012-02-29 07:55:53 -08:00
ahocevar fa30c1da5c Don't overwrite params, and use params in Layer.ArcGISCache 2012-02-29 16:52:31 +01:00
Bart van den Eijnden 85b997fa0e Merge pull request #258 from bartvde/textplacement
PointPlacement and LinePlacement are choices, so don't output both (r=@ahocevar)
2012-02-29 05:54:00 -08:00
Bart van den Eijnden 2421ed6da3 add comments to the test (suggestion by @ahocevar) 2012-02-29 14:53:20 +01:00
Bart van den Eijnden 0e1a30b3cd PointPlacement and LinePlacement are choices, so don't output both 2012-02-29 14:42:11 +01:00
Éric Lemoine 8273f153dc Merge pull request #223 from camptocamp/access_panelbutton
make it possible to create accessible panel buttons
2012-02-29 04:39:57 -08:00
Éric Lemoine 98ff5473a6 add tests for buttonclick.getPressedButton 2012-02-29 13:36:07 +01:00
Éric Lemoine 6a43fcaefc change buttonclick.getPressedButton depth value from 5 to 3, this allows buttons with grand children (2 levels) 2012-02-29 13:34:47 +01:00
ahocevar 8ea3b1bd3e Merge pull request #255 from ahocevar/255
LayerSwitcher broken when rendered to custom div. r=@elemoine
2012-02-29 04:25:18 -08:00
Éric Lemoine 3f99354d8c Merge pull request #257 from probins/opacity
Make layer opacity api property
2012-02-29 04:00:06 -08:00
Peter Robins 55c18076d3 Make layer opacity api property 2012-02-29 10:40:20 +00:00
Bart van den Eijnden 2955302650 Merge pull request #256 from bartvde/vendoroptions
make vendorOptions an object instead of an array (r=@ahocevar)
2012-02-29 02:11:41 -08:00
Bart van den Eijnden b699afa57f make vendorOptions an object instead of an array, which makes it more convenient to prevent duplicate vendorOptions 2012-02-29 10:57:08 +01:00
ahocevar 557d7ab0d7 Fixing typo. 2012-02-29 10:49:40 +01:00
ahocevar d0c782ca74 Making LayerSwitcher work again outside viewport. 2012-02-29 10:40:45 +01:00
ahocevar b7eba35077 Notes on incorrect maxResolution of 156543.0339 and defaults coupled with projection 2012-02-29 08:11:14 +01:00
Matt Priour cd2a6aaaaf Merge branch 'master' of https://github.com/openlayers/openlayers into light-build 2012-02-28 23:26:29 -06:00
Matt Priour 3667428692 Add LayerSwitcher and remove vector editing 2012-02-28 22:52:40 -06:00
Éric Lemoine 00909404ab [Event.buttonclick] make buttonclick work if target element is a child of the clicked button 2012-02-29 00:56:52 +01:00
Xavier Mamano 9e48825205 Preserve the title and the className if they are set in createControlMarkup. 2012-02-28 22:28:33 +01:00
Éric Lemoine 3b7585be24 avoid useless deref 2012-02-28 22:28:33 +01:00
Éric Lemoine 0f0e60c336 [examples] more docs in the accessible-panel example 2012-02-28 22:28:33 +01:00
Éric Lemoine aedc96f030 [examples] add an accessible-panel example 2012-02-28 22:28:33 +01:00
Éric Lemoine e551fc672c [Event.buttonclick] make buttonclick work on RETURN/SPACE keydown 2012-02-28 22:28:33 +01:00
Éric Lemoine 5539f6e958 [Control.Panel] place code creating the control markup in a separate function 2012-02-28 22:28:33 +01:00
tschaub 396b016220 Mask requestAnimationFrame so tiles load in FF. 2012-02-28 12:03:27 -07:00
Matt Priour d0ccfacb66 Add GetFeature control & FramedCloud popups. Use OSM.js rather than XYZ.js 2012-02-28 11:51:35 -06:00
Éric Lemoine cb71eccb34 Merge pull request #252 from probins/doc
Remove doc/walkthru.html
2012-02-28 09:43:03 -08:00
Matt Priour 62f62510c8 Initial light build config file 2012-02-28 10:52:49 -06:00
Frédéric Junod e14347dbc3 Merge pull request #29 from fredj/map-original-options
Expose map original options. r=@elemoine
2012-02-28 07:07:31 -08:00
ahocevar 2e6fe7d330 Notes about wrapDateLine. 2012-02-28 15:07:03 +01:00
Éric Lemoine 3cc0b8f51c Merge pull request #253 from probins/readme
Fix broken link in readme
2012-02-28 05:03:17 -08:00
Peter Robins f9b64d945a Fix broken link in readme 2012-02-28 12:52:53 +00:00
Tim Schaub 4d31a3ed3a Method for getting both feature id and data.
Having to call two methods to get complete feature information (id and data) is cumbersome.  The `getFeatureInfo` method returns an object with both feature id and data.
2012-02-28 05:37:28 -07:00
Bart van den Eijnden afe2966385 Merge pull request #208 from bartvde/wfs11
implement readers for URL endpoints in WFS 1.1, this meant restructuring the WFS Capabilities format to use the new readers and writers structures (r=@ahocevar)
2012-02-28 04:32:59 -08:00
Marc Jansen 631f6b5d3d Merge pull request #218 from marcjansen/testsuite-fixes
Testsuite fixes
2012-02-28 04:32:36 -08:00
Bart van den Eijnden dd97bed3b4 merge with trunk 2012-02-28 13:31:14 +01:00
Peter Robins 2f3f849597 Remove doc/walkthru.html 2012-02-28 12:14:43 +00:00
Éric Lemoine cb27e9def4 Merge pull request #250 from camptocamp/access_clickexample
Accessible click control example
2012-02-28 03:15:43 -08:00
ahocevar 94e8fff9e6 Fixing test (see #249) 2012-02-28 12:05:13 +01:00
Éric Lemoine 43809ea330 Merge pull request #222 from camptocamp/access_keyboardcontrol
KeyboardDefaults control improvements
2012-02-28 03:02:19 -08:00
Arjen Kopinga 1c6d44e5d5 Moved symbol definitions to Renderer.js 2012-02-28 11:52:46 +01:00
Arkadiusz Grabka 8fcc3c79f8 Added translations for Polish language. 2012-02-28 10:57:17 +01:00
ahocevar 7c72b6dd95 Merge pull request #240 from ajkopinga. 2012-02-28 10:49:54 +01:00
Éric Lemoine 9c2255706c click-keyboard example renamed to accessible-click-control 2012-02-28 10:48:50 +01:00
Éric Lemoine eb700d98e1 add an example for an accessible click control implementation 2012-02-28 10:46:49 +01:00
ahocevar 4ee28dc63e Simplifying logic that returns undefined when root is invisible. 2012-02-28 10:45:18 +01:00
Arjen Kopinga d4a9f60c93 simplified unit test for hit detection on invisible canvas 2012-02-28 10:43:11 +01:00
unknown f8189f2862 Added unit tests for hit detection on invisible canvas layer 2012-02-28 10:43:11 +01:00
Arjen Kopinga bf834e6b8e being a good coder and adding braces around if statement body 2012-02-28 10:43:10 +01:00
Arjen Kopinga 4efa03eb59 Fix for being able to select a feature from an invisible layer that uses the Canvas renderer 2012-02-28 10:43:10 +01:00
fredj f3c48d6963 Store the original map options into 'options' property 2012-02-28 10:07:59 +01:00
Éric Lemoine acf6a8a97d indicate that String.camelize is deprecated in the 2.12 release notes, refs #64, no functional change 2012-02-28 09:53:41 +01:00
ahocevar c55a8b554d Merge pull request #229 from ahocevar/post-blank
Using a blankImageUrl that works for IFrames in IE9. r=@elemoine.
2012-02-28 00:23:51 -08:00
Éric Lemoine 5444fbcfc8 make the Google Closure compiler happier, no functional change 2012-02-28 09:08:13 +01:00
ahocevar c2b8f9cdb5 Merge pull request #64 from tmcw/no-camel
Removing camelize method.
2012-02-28 00:05:58 -08:00
Bart van den Eijnden 6258c89d8c Merge pull request #242 from bartvde/sld2
Add support for LabelPlacement of sld:TextSymbolizer (r=@ahocevar)
2012-02-28 00:00:01 -08:00
tschaub 19a11561e8 Correcting typo. 2012-02-27 17:21:35 -07:00
tschaub 0aa8705299 Test the demo utfgrid file (currently failing). 2012-02-27 16:48:33 -07:00
tschaub fd595e6282 Clearer tile method names. 2012-02-27 16:47:11 -07:00
tschaub 89e8a872a5 Making the default UTFGrid resolution 2.
According to the latest [spec](https://github.com/mapbox/utfgrid-spec/blob/master/1.2/utfgrid.md): "By default, UTFGrid operates on a 2x2 grid."
2012-02-27 08:57:22 -07:00
Tim Schaub 551c582ab1 Layer and tile API update.
The tile now has responsibility for resolving feature ids and fetching feature data given x, y pixel offsets with getFeatureId and getFeatureData methods.  The layer has corresponding getFeatureId and getFeatureData methods that take a map location, lookup the appropriate tile, and delegate to the tile for the rest of the work.
2012-02-26 21:05:12 -07:00
Tim Schaub fc03f57591 Simplify constructor by setting projection. 2012-02-26 19:23:22 -07:00
ahocevar fa656e7ed6 Merge pull request #239 from ahocevar/3625
Removing imageOffset and using getImageSize. r=@elemoine
2012-02-26 09:25:29 -08:00
Éric Lemoine 3113aba7f1 Merge pull request #203 from probins/http
HTTP protocol: enable POST for update/delete
2012-02-26 01:16:49 -08:00
Tim Schaub faeb691f3a Tests for UTFGrid tiles. 2012-02-25 23:07:31 -07:00
Tim Schaub 8c95a90052 The parseData method doesn't need to know of XHR. 2012-02-25 20:51:03 -07:00
Tim Schaub 12fa9b54ef Consistency with tile loading events.
Since loadstart is being fired here, it makes sense to fire loadend as well.  The isLoading flag also needs to be cleared.  Needs tests still.
2012-02-25 20:45:18 -07:00
Tim Schaub c18f6a23be Use JSON format for parsing JSON.
To get IE7 support, the OpenLayers.Format.JSON parser should be used.  This leverages the native JSON.parse method where available.  It does add extra weight to UTFGrid builds.  However, as of this commit date, we lose large portions of US govt agencies when we exclude IE7.
2012-02-25 20:18:23 -07:00
Tim Schaub e6f0aa08e5 Cleanup use of Script protocol.
I would think there would still be an error thrown here.  Will put together a test to determine for sure, but I'd think that the default GeoJSON parser used by the protocol would choke on the UTFGrid json.
2012-02-25 20:09:34 -07:00
Tim Schaub 73e6973ab5 Remove cargo culted image tile bits. 2012-02-25 20:03:40 -07:00
Tim Schaub 65233dd0bc Add dependency on UTFGrid tile. 2012-02-25 20:01:14 -07:00
Tim Schaub 6ffce8cfb6 Remove unused list item. 2012-02-25 20:00:46 -07:00
mperry bd8e4b55ef Merge remote-tracking branch 'tschaub/utfgrid' into utfgrid 2012-02-25 17:58:51 -08:00
mperry ede6da8e6f Merge remote-tracking branch 'upstream/master' into utfgrid 2012-02-25 17:51:56 -08:00
Tim Schaub e1dffacdde Providing a method to get data from the layer.
I think it should be the job of the layer to retrieve data for a given location (instead of the control).  The first part of this change creates a `getData` method on the layer and updates the control to use this method.

The second part of this change removes the assumption that the data returned will be an simple object representing feature attributes.  The UTFGrid specification doesn't say anything about the structure of property values in the optional data member.  The examples given in the spec use string values.  The default callback previously assumed that the data could be rendered in a two column table.  I think it would make more sense not to make this assumption.  With this change, the user must always provide a callback to do anything with returned data.
2012-02-25 17:33:32 -07:00
Tim Schaub 55ffdffd60 Removing debugging method. 2012-02-25 16:42:45 -07:00
Tim Schaub 6284e44d2e Making the UTFGrid examples more like the rest. 2012-02-25 16:18:43 -07:00
Tim Schaub 34a9c46243 Add UTFGrid components to debug loader. 2012-02-25 16:12:19 -07:00
Tim Schaub f4465c516d Merge branch 'master' into utfgrid 2012-02-25 16:08:11 -07:00
ahocevar a2d658f75a Merge pull request #245 from probins/mapdefaults
Map: check default controls are in build
2012-02-25 10:12:20 -08:00
Peter Robins 27e5aaf8f0 Map: check default controls are in build 2012-02-25 17:06:30 +00:00
Bart van den Eijnden 12d8220992 add a testcase for the labelAlign to AnchorPoint translation 2012-02-24 18:35:20 +01:00
Bart van den Eijnden 617ba736a2 if labelAlign is set, translate to AnchorPointX and AnchorPointY 2012-02-24 18:20:41 +01:00
Bart van den Eijnden 3b81b423a5 do not use rotation but use labelRotation instead (thanks @ahocevar for the catch) 2012-02-24 17:48:35 +01:00
Bart van den Eijnden 66d3b81929 remove accidentally commited swap file 2012-02-24 17:03:49 +01:00
ahocevar 284ec6a957 Merge pull request #243 from ahocevar/bing-maxresolution
If maxResolution is not set, we want the serverResolution. r=@bartvde
2012-02-24 07:27:28 -08:00
Bart van den Eijnden 63874e55d3 Merge pull request #237 from bartvde/sld
Add a GeoServer profile of SLD version 1.0.0 (r=@ahocevar)
2012-02-24 07:18:21 -08:00
ahocevar 094bedda9a If maxResolution is not set, we want the serverResolution.
After 2fe882f4d8, no default maxResolution is set. To make the Math.min not return 0, we need a fallback if no maxResolution was configured.
2012-02-24 16:04:07 +01:00
Bart van den Eijnden c7a631c2e5 correct typo 2012-02-24 15:59:14 +01:00
Bart van den Eijnden f05564cdb3 add support for LinePlacement 2012-02-24 15:42:49 +01:00
Bart van den Eijnden 6411a6c0ef implement TextSymbolizer->PointPlacement 2012-02-24 14:58:36 +01:00
Bart van den Eijnden 2e69d68102 map fill-opacity in TextSymbolizer to fontOpacity 2012-02-23 15:55:40 +01:00
Bart van den Eijnden 330777dd82 Merge branch 'master' of github.com:openlayers/openlayers into sld 2012-02-23 15:37:26 +01:00
ahocevar 8ce712adb6 Merge pull request #238 from ajkopinga/master 2012-02-22 17:26:54 +01:00
ahocevar 69660e3530 Minor coding style improvements. 2012-02-22 17:22:30 +01:00
Bart van den Eijnden 7fb62b6933 more complete inheritance of readers and writers 2012-02-22 16:18:41 +01:00
Arjen Kopinga bb3ae99713 forgot to actually used featureId in getFeatureIdFromEvent 2012-02-22 15:57:54 +01:00
Arjen Kopinga 65aeaec284 returned graphic-name.js to its original state 2012-02-22 15:52:01 +01:00
Arjen Kopinga 1119146486 Small fix for hit detection on a canvas layer as an illegal feature id might result at a location where the edge of one feature intersects the interior of another. This is due to antialiasing on the hit context canvas which can't be turned off, unfortunately. 2012-02-22 15:39:31 +01:00
Arjen Kopinga d6e28e5ab9 Added support for named graphics to Canvas renderer 2012-02-22 15:26:21 +01:00
Bart van den Eijnden 941f3c0913 change comment to highlight it's both read and write 2012-02-22 12:23:20 +01:00
Bart van den Eijnden d4e0947f1a even though the parsing and writing is the same for all VendorOption tags, add a more complete list in the test SLD 2012-02-22 12:18:56 +01:00
Bart van den Eijnden f0cb98a9bf a bit of restructuring, also making sure that a Graphic in a TextSymbolizer can be read and written (this is a GeoServer extension to produce e.g. highway shields) 2012-02-22 11:57:42 +01:00
Bart van den Eijnden 82a8602b45 use a more clean way to achieve the same 2012-02-22 11:50:37 +01:00
Bart van den Eijnden b2f95bd537 TextSymbolizer->Fill->CssParameter['fill'] should map to fontColor instead 2012-02-22 11:03:48 +01:00
Bart van den Eijnden 050f72b443 start on a GeoServer profile for SLD 2012-02-22 09:55:45 +01:00
ahocevar 85498cb23f Removing imageOffset and using getImageSize.
This fixes a regression that was introduced with the Tile.Image overhaul. See http://trac.osgeo.org/openlayers/ticket/3625.
2012-02-21 15:06:32 +01:00
Bart van den Eijnden a569873ff1 Merge pull request #235 from bartvde/bbox
add noAbort option to OpenLayers.Strategy.BBOX (r=@ahocevar)
2012-02-21 03:18:15 -08:00
Bart van den Eijnden 990a33662e incorporate @ahocevar's review 2012-02-21 12:09:19 +01:00
Bart van den Eijnden 815cafd900 add an option to OpenLayers.Strategy.BBOX to allow not aborting previous requests 2012-02-21 07:53:43 +01:00
fredj 79b539c1f9 Simplify parent call (don't use intermediate array) 2012-02-20 13:55:12 +01:00
ahocevar 221d7caf70 Using a blankImgUrl that works for IFrames in IE9.
See http://trac.osgeo.org/openlayers/ticket/3624.
2012-02-20 12:01:56 +01:00
fredj 3fefe91580 Remove tabs 2012-02-17 09:12:59 +01:00
ahocevar 69bac049c4 Merge pull request #227 from ahocevar/tileloaded-event
Making loaded tile available to tileloaded listeners. r=@fredj,@elemoine
2012-02-16 14:34:51 -08:00
Marc Jansen 03ba4dac88 Remove superfluous comment closing (*/), thanks @mprins. 2012-02-16 21:43:36 +01:00
tschaub 977c334fa3 Doc cleanup. 2012-02-16 10:41:05 -07:00
tschaub 2b5ade2dde Adding back events documentation.
When the list of event types became unconstrained in 501b42228a, we lost the documentation for events that are triggered.  This change adds the list of events triggered to the API docs for events properties.
2012-02-16 10:36:34 -07:00
ahocevar 93e4d0b94c Making loaded tile available to tileloaded listeners. 2012-02-16 16:29:06 +01:00
ahocevar ed502f6f19 Merge pull request #226 from probins/gpx
GPX read should allow for blank attribute nodes
2012-02-16 07:02:09 -08:00
fredj 17f96f68a2 Preserve numZoomLevels from options. r=@tonio (see #219) 2012-02-16 15:24:33 +01:00
Peter Robins 584d33eaa3 GPX read should allow for blank attribute nodes 2012-02-16 13:32:10 +00:00
fredj 0727f5558a Remove maxExtent, maxResolution and units options. See #219 2012-02-16 13:55:53 +01:00
ahocevar 2fe882f4d8 Merge pull request #219 from ahocevar/proj-defaults
New OpenLayers.Projection.defaults property. r=@tschaub,@fredj
2012-02-16 01:29:29 -08:00
ahocevar 79bab72269 Merge pull request #4 from fredj/proj-defaults
Proj defaults: update examples
2012-02-16 00:53:19 -08:00
fredj b3ad241055 Use jQuery Mobile 1.0.1 Release 2012-02-16 09:42:46 +01:00
fredj 1cc8770476 Use OpenLayers.Projection.defaults values. 2012-02-16 09:20:41 +01:00
ahocevar 94fb14c378 Merge pull request #225 from drnextgis/master
Fix basic ESRI Map Cache Example
2012-02-15 22:39:35 -08:00
_DR_ 30ad3adb9d Fix Basic ESRI Map Cache Example 2012-02-16 08:50:17 +04:00
ahocevar 6b8ba43e20 Adding a scaled layer. 2012-02-15 22:00:54 +01:00
ahocevar 262e2d5bc0 Calculating maxResolution instead of having it in defaults. 2012-02-15 21:09:39 +01:00
Marc Jansen 67ea250cca Fix a Control.OverviewMap test that failed in Firefox 10.0.1 (Linux). 2012-02-15 14:11:54 +01:00
Éric Lemoine c0b02b278a add an observeElement option to Handler.Keyboard and Control.KeyboardDefaults to control the DOM element on which key events are observed 2012-02-15 13:58:48 +01:00
Éric Lemoine 2ecec3ddc3 fix the Handler.Keyboard tests 2012-02-15 13:58:48 +01:00
Éric Lemoine cbebcd0bf6 make the KeyboardDefaults control prevent browser default after handling a key press 2012-02-15 13:58:48 +01:00
Éric Lemoine 81e8b4200d improve the accessible.html example 2012-02-15 13:58:47 +01:00
Éric Lemoine e15dde0561 make the keyboard handler work on the map div as opposed to the document 2012-02-15 13:58:47 +01:00
ahocevar 2e423df3d2 Use the layer's projection.
In setMap, the layer gets the map's projection if it doesn't have its own. And since a layer can have a different SRS code than the map (but a compatible one, i.e. with OpenLayers.Projection.transforms[mapProj][layerProj] being OpenLayer.Projection.nullTransform), the axis order can be different.
2012-02-15 13:41:25 +01:00
Pierre GIRAUD cd41548c01 Merge pull request #221 from pgiraud/gpx
Fixing XML Validation failure
2012-02-15 04:33:18 -08:00
ahocevar 1b57783eb0 Merge pull request #3 from fredj/proj-defaults
Proj defaults
2012-02-15 04:23:47 -08:00
fredj 147b32b7e3 Don't compute limit if it's not needed 2012-02-15 12:33:14 +01:00
fredj cd3ffa2058 Simplify parent call (don't use intermediate array) 2012-02-15 12:32:25 +01:00
fredj a40ae7ef11 If sphericalMercator, use default values from Projection.defaults 2012-02-15 12:30:05 +01:00
Pierre GIRAUD cfaaa352f8 Update lib/OpenLayers/Format/GPX.js 2012-02-15 12:17:39 +01:00
Pierre GIRAUD 6608f5fd94 GPX Format - Adding the mandatory creator attribute 2012-02-15 11:58:52 +01:00
Pierre GIRAUD cb65b69556 The root element shouldn't be prefixed, this is not XML valid. (checked using xmllint --noout --schema http://www.topografix.com/GPX/1/1/gpx.xsd mygpx.gpx) 2012-02-15 11:50:55 +01:00
ahocevar 11966d231f New OpenLayers.Projection.defaults property.
This allows us to simplify the map and layer configuration, because now the projection also defines defaults for maxExtent, maxResolution and units.
This change also adds transforms for SRS aliases for EPSG:4326 and centralizes axis order information in OpenLayers.Projection.defaults.
2012-02-15 11:09:55 +01:00
Marc Jansen 79540f346d Reformatting of testfile prior to fixing failing test in Firefox 10.0.1.
No functional change.
2012-02-15 11:09:45 +01:00
Marc Jansen 436301c9ed Fix Format.XML test where a defined variable wasn't used. This resulted in an
"DOM Exception: INVALID_CHARACTER_ERR (5)" in Chrome 17.
2012-02-15 10:44:34 +01:00
Marc Jansen c776dac2c2 Make precision in test configurable. 2012-02-15 10:02:33 +01:00
Marc Jansen 5faea8e083 Fix Strategy.BBOX test that failed due to mixed precision of coordinates. 2012-02-15 09:54:58 +01:00
Marc Jansen 48a47b993a Fix a Format.WKT test that failed due to rounding / precision of values. 2012-02-15 09:38:57 +01:00
Marc Jansen 52931daf32 Fix spelling in test-function. No functional change. 2012-02-15 09:14:31 +01:00
Matthew Perry df3977e94c Set default mode to click and properly pass is default handler options 2012-02-14 11:17:16 -08:00
Matthew Perry bdf9e1b99e Just call read; don't store variable 2012-02-14 11:16:41 -08:00
ahocevar da3dc76a6d Making the delay for removing the backbuffer configurable.
This helps users who want to avoid having old and new tiles on the screen for transparent single tile layers.
r=@elemoine (closes #216)
2012-02-14 20:12:09 +01:00
ahocevar 5e734f20dc Merge pull request #179 from ahocevar/tile-queue
A tile queue that can be aborted. r=@elemoine,@fredj,@tonio
2012-02-14 10:59:12 -08:00
Éric Lemoine c5f25aa1de Merge pull request #217 from jorix/remove-library_cfg
Remove `library.cfg`
2012-02-14 10:47:09 -08:00
Xavier Mamano ab3325498e A configuration file based on a directive [exclude] is a anti-pattern, so is proposed to remove library.cfg. 2012-02-14 18:56:46 +01:00
ahocevar fe8a00d5c9 Support the culture attribute in the Bing Layer.
p=dcabasson, r=me (closes http://trac.osgeo.org/openlayers/ticket/3598)
2012-02-14 17:23:01 +01:00
Éric Lemoine 745400fa74 Merge pull request #173 from jorix/3505-ignore-space-requires
Build: ignore trailing space in @requires dependencies
2012-02-14 07:57:59 -08:00
Xavier Mamano cd8fa55b0e Build: ignore trailing space in @requires dependencies 2012-02-14 16:43:15 +01:00
fredj add094b284 tileSize property already defined in parent class (Layer.Grid) 2012-02-14 14:49:31 +01:00
fredj 692fe2dd12 Bounds.fromSize: size can be a simple object, update doc. 2012-02-14 14:32:15 +01:00
ahocevar d387add3e2 Note about size limitations. 2012-02-14 12:28:29 +01:00
Matthew Perry 867080a074 Option for loading utfgrid via jsonp 2012-02-13 16:56:35 -08:00
ahocevar fe0bc333ca Improving example documentation. 2012-02-14 00:16:12 +01:00
ahocevar ce71a5a3fd Google Static Maps API. Simple and limited to 1000 views. 2012-02-14 00:07:57 +01:00
Frederic Junod 2dabac734c Revert "Move the popup close box sizing to CSS"
Moving the box size to CSS broke `Popup.setSize()`; the function
expects a width for the padding computation. Because this function is
called before the div is added to the DOM, the size can't be
computed.

This reverts commit 134f24480a.
2012-02-13 19:59:59 +01:00
Éric Lemoine 16c30b8e6d Merge pull request #45 from twpayne/initial-bearing-to
Add OpenLayers.Spherical, including utility functions for calculations on the basis of a spherical earth, patch from @twpayne
2012-02-13 05:35:13 -08:00
Bart van den Eijnden 1f539470bb add box drawing to draw-feature control example so it is easier to find for people 2012-02-13 09:42:09 +01:00
Frédéric Junod d106aabacf Merge pull request #214 from fredj/popup-css
Move the popup close box sizing to CSS. r=ahocevar
2012-02-12 13:10:20 -08:00
Frederic Junod 134f24480a Move the popup close box sizing to CSS 2012-02-12 21:56:41 +01:00
ahocevar 3fae6c0d29 Merge pull request #195 from ahocevar/layerswitcher-simplified
No additional events registered on the LayerSwitcher. r=@fredj.
2012-02-12 03:32:20 -08:00
ahocevar 5586368b73 Merge pull request #212 from oleg-poligon/patch-2
set GMaps API version to 3.6 in allOverlays Layer Example
2012-02-11 15:46:17 -08:00
oleg-poligon 718679a025 set GMaps API version to 3.6 in allOverlays Layer Example 2012-02-12 02:04:03 +04:00
ahocevar 8df3dffa8c Merge pull request #210 from ahocevar/attribution-template
Template for the Attribution control. r=@elemoine
2012-02-11 04:32:00 -08:00
ahocevar 6385be7ffe Template for the Attribution control.
This allows to add map specific copyright, or copyright required for tools like geocoders that are used in the context of the map.
2012-02-11 12:34:40 +01:00
ahocevar ca2c3526b3 Adding notes about the crossOriginKeyword tile option for Layer.OSM and Layer.Bing. 2012-02-11 11:16:21 +01:00
Marc Jansen c6312b613b correct a typo in release notes CSS example 2012-02-10 23:55:51 +01:00
ahocevar 68a6c62f0b Documenting tileOptions defaults. 2012-02-10 18:03:22 +01:00
ahocevar b17c7b69f2 Adding comment about GMaps API version.
Closes http://trac.osgeo.org/openlayers/ticket/2984.
2012-02-10 15:46:45 +01:00
Frédéric Junod ad201f3a80 Merge pull request #160 from fredj/tile-canvas
Tile.Image and canvas. r=ahocevar,tschaub
2012-02-10 06:43:09 -08:00
ahocevar 334f83ff85 Updated tests for cebc7e60de.
See http://trac.osgeo.org/openlayers/ticket/3616.
2012-02-10 14:15:51 +01:00
fredj f8099e9ab1 Unset crossOrigin when setting blankImageUrl to the image.
Tested with FF 10, Chrome 16 and 18.
2012-02-10 13:46:13 +01:00
Frédéric Junod f518e5a538 Merge pull request #2 from ahocevar/tile-canvas
New crossOriginKeyword property
2012-02-10 04:25:35 -08:00
Frédéric Junod 85beb32e85 Merge pull request #209 from fredj/modify-feature-create-vertices
New createVertices option for Control.ModifyFeature. r=bartvde
2012-02-10 04:16:45 -08:00
ahocevar cebc7e60de Don't displayOutsideMaxExtent when wrapDateLine is set.
p=scaddenp, r=me (closes http://trac.osgeo.org/openlayers/ticket/3616)
2012-02-10 13:03:18 +01:00
ahocevar 342d624616 New crossOriginKeyword property.
Set to 'anonymous' for Layer.OSM and Layer.Bing, and not used by default for other layers.
2012-02-10 12:50:13 +01:00
Bart van den Eijnden 6bbcb20fac rewrite WFSCapabilities parser to the new readers structure, and use OWSCommon readers. This will mean that the return structure will differ for WFS 1.0 and WFS 1.1, but I think it's better to adhere to OWSCommon structures here since this will allow similar structures over different OGC Web Services 2012-02-10 10:12:55 +01:00
Tom Payne 8d6c9ef1ee Correct documentation 2012-02-10 09:42:52 +01:00
Tom Payne 3c30929858 Correct spelling 2012-02-10 09:42:08 +01:00
Tom Payne 9c95aaaa26 Merge pull request #1 from elemoine/spherical
make OpenLayers.js autoload Spherical.js, plus doc improvements
2012-02-10 00:41:19 -08:00
Bart van den Eijnden 707e6406d9 Merge branch 'master' of github.com:openlayers/openlayers into wfs11 2012-02-10 08:53:51 +01:00
Éric Lemoine 50629f3e50 add Spherical to the API doc menu 2012-02-09 16:59:20 +01:00
Éric Lemoine 4cc1bf1899 better docs for the Spherical namespace 2012-02-09 16:59:02 +01:00
Peter Robins 21d06b092a Protocol/Script: add test for callbackTemplate 2012-02-09 15:58:41 +00:00
Éric Lemoine b1cc0c1b9d make OpenLayers.js auto-load Spherical.js 2012-02-09 16:58:36 +01:00
fredj b34f272fa7 Optimize the string test 2012-02-09 15:35:35 +01:00
fredj e9097ce066 More APIdoc for OpenLayers.Tile.Image.getCanvasContext 2012-02-09 15:34:08 +01:00
fredj b4ac0af5d8 New OpenLayers.Tile.Image.getCanvasContext function 2012-02-09 15:34:00 +01:00
fredj 57ae02f381 Set image.crossOrigin attribute in OpenLayers.Tile.Image 2012-02-09 15:33:54 +01:00
fredj 14624cb815 New OpenLayers.CANVAS_SUPPORTED constant 2012-02-09 15:33:46 +01:00
Peter Robins f08119b01e Change Protocol/Script registry to object 2012-02-09 14:16:15 +00:00
Bart van den Eijnden 2c0b13957e Merge pull request #206 from bartvde/viewportDiv
create APIMethod for obtaining the view port (r=fredj,ahocevar)
2012-02-09 05:35:17 -08:00
fredj 6daecd677d New createVertices option for Control.ModifyFeature 2012-02-09 14:12:52 +01:00
Bart van den Eijnden 3a23f15041 implement readers for URL endpoints in WFS 1.1 2012-02-09 14:10:49 +01:00
Bart van den Eijnden e9ffef03c7 create APIMethod for obtaining the view port, this is needed by GeoExt to append the map panel items there so that they don't interfere with the zoombox for example 2012-02-09 10:33:24 +01:00
Matthew Perry 5857af5fec Adding multi grid html 2012-02-08 12:04:09 -08:00
Matthew Perry 5d00c76c92 Updated examples with another showing multiple grid support 2012-02-08 11:36:50 -08:00
Matthew Perry b01026bd80 Cleaning up the docs to a marginally acceptable level. 2012-02-08 11:16:50 -08:00
Peter Robins 9732cf77aa HTTP protocol: enable POST for update/delete 2012-02-08 11:20:06 +00:00
Pierre GIRAUD 85b9d5f7f9 Merge pull request #200 from pgiraud/gpx
Adding missing schemalocation, version. Better management of the namespaces.
2012-02-08 02:47:38 -08:00
Pierre GIRAUD 734f150f4f Adding behavior change node 2012-02-08 10:50:38 +01:00
Pierre GIRAUD 92f8040938 More up-to-date way to create or set namespacedj elements or attributes. 2012-02-08 10:39:31 +01:00
Matthew Perry 0cf589b337 Hide bullets 2012-02-07 16:05:31 -08:00
Matthew Perry 47876746a5 Adjust default handler options 2012-02-07 16:05:04 -08:00
Éric Lemoine e7eae00246 Merge pull request #202 from probins/http
ReadWithPOST should pass through options.headers (patch from @probins)
2012-02-07 13:28:05 -08:00
Matthew Perry 0a74cb45f8 Filled out the html example page 2012-02-07 12:21:03 -08:00
Matthew Perry 80656cdfd0 Support specifying grid resolution at the layer level 2012-02-07 12:20:29 -08:00
Matthew Perry 4e84a7113d Fix event handling.. no need to detect lastXY 2012-02-07 11:23:04 -08:00
Matthew Perry 47222a9401 Adding example utfgrid json files 2012-02-07 11:22:29 -08:00
Matthew Perry d46092f717 Fix up the constructor 2012-02-07 10:03:03 -08:00
Matthew Perry 54e9fdb784 Initial example html/js page 2012-02-07 10:02:19 -08:00
Peter Robins 00a00db127 ReadWithPOST should pass through options.headers 2012-02-07 11:57:29 +00:00
Matthew Perry d900028c2a function to reset handler 2012-02-06 19:56:02 -08:00
Matthew Perry 9e3bd972f4 Refactor Control to allow multiple handler types (move, hover, click) 2012-02-06 15:22:28 -08:00
Antoine Abt 4b971a12b2 Merge pull request #201 from tonio/labeldefault
re-add default labelAlign
2012-02-06 13:50:06 -08:00
Antoine Abt 0d27dc82ae re-add default labelAlign, but avoid duplicate declaration accross renderers 2012-02-06 21:45:57 +01:00
Matthew Perry fb791e14fa Update Tile/UTFGrid.js to remove traces of images. 2012-02-06 09:46:57 -08:00
Matthew Perry 8aaaecc9ee Fix a problem determining zoom levels. Updated some docs. 2012-02-06 09:06:49 -08:00
Frédéric Junod e3ab08bca3 Merge pull request #199 from fredj/create-callback
Remove OpenLayers.Protocol.CSW.v2_0_2.createCallback. r=bartvde
2012-02-06 00:56:58 -08:00
Matthew Perry 6ff3b895c9 Some refactoring and cleaning up rounding errors in tile math. Added
debugging mechanism.
2012-02-05 11:17:02 -08:00
Matthew Perry be4db93e9b Preliminary working implementation.. still lots of slop to clean up 2012-02-05 09:33:32 -08:00
Matthew Perry 92cbac468c Merge remote-tracking branch 'upstream/master' into utfgrid 2012-02-04 17:03:25 -08:00
Matthew Perry a6df52ff83 Initial import of UTFGrid support. Needs work. 2012-02-04 12:22:27 -08:00
fredj d72b5b4810 Remove OpenLayers.Protocol.CSW.v2_0_2.createCallback, already defined in OpenLayers.Protocol 2012-02-03 12:37:53 +01:00
Frédéric Junod 63dc27cd3a Merge pull request #197 from fredj/simple-objects
Replace LonLat instances with simple objects
2012-02-02 22:50:37 -08:00
fredj 79a64f4be6 Tile.Image tests: add missing scope params (see #184) 2012-02-02 17:03:35 +01:00
fredj 3a69729074 Update OpenLayers.Bounds.containsLonLat input type
'll' parameter can now be either a OpenLayers.LonLat instance or a
simple javascript object with a 'lon' and 'lat' properties.
2012-02-02 16:35:30 +01:00
fredj 657b47abb0 Update Control.OverviewMap.getOverviewPxFromLonLat input type
'lonlat' parameter can be either a OpenLayers.LonLat instance or a
simple javascript object with a 'lon' and 'lat' properties.
2012-02-02 16:35:30 +01:00
fredj 8558b6ee5c Update OpenLayers.Layer.Grid.calculateGridLayout inputs type.
No need to clone the passed bounds (read only access).
'bounds' can be either a Bounds instance or a simple javascript
object. Same for 'origin': LonLat instance or a simple javascript
object.
2012-02-02 16:35:30 +01:00
Frédéric Junod 2d0714990d Merge pull request #184 from fredj/get-url-async
Change getUrlAsync parameters. r=ahocevar
2012-02-02 05:59:13 -08:00
ahocevar 7de254fecc Merge pull request #196 from ahocevar/baselayer-visibility
Making sure that a new base layer becomes visible. r=@bartvde.
2012-02-02 05:37:51 -08:00
ahocevar abdd3a2e5b Making sure that new base layer becomes visible.
The new base layer may previously have been out of range, in which case setVisibility(true) would do nothing if the layer was visible already. So we check if it was previously out of range, and redraw it if necessary.
2012-02-02 13:53:37 +01:00
Pierre GIRAUD 030f8fdbb9 Adding missing schemalocation, version 2012-02-02 13:13:05 +01:00
Frédéric Junod aba04d7c42 Merge pull request #193 from fredj/event-listeners
New eventListeners APIProperty for OpenLayers.Tile. r=elemoine
2012-02-01 23:52:35 -08:00
ahocevar a278986442 No additional events registered on the LayerSwitcher.
With the buttonclick event, we can also handle clicks on layer names and checkboxes/radiobuttons when they get the olButton class. To make this work on iOS, we have to add a check in buttonclick.js to handle the case where the event occurred on a text element (nodeType === 3).
2012-02-02 00:02:51 +01:00
fredj 263b429c49 Add eventListeners usage example in APIdoc 2012-02-01 15:32:14 +01:00
fredj fc0152ea1e New eventListeners APIProperty for OpenLayers.Tile.
Same behavior as Map.eventListeners or Layer.eventListeners.
New listeners can be registered using the options parameter:

new OpenLayers.Tile.Image(layer, position, bounds, null, size, {
  eventListeners: {
    loadstart: function(evt) {
      // ...
    },
    loadend: function(evt) {
      // ...
    }
  }
});
2012-02-01 11:57:47 +01:00
fredj 742ada16bf Allow testing of specific renderers via '?renderer=<name>' 2012-02-01 11:18:17 +01:00
Frederic Junod 56d22ff9ad coding standards: replace 'new Array()' with '[]' 2012-02-01 11:08:56 +01:00
Éric Lemoine 271e3b61bd Events.buttonclick should be part of the API 2012-01-31 17:07:47 +01:00
ahocevar 99a68b0d20 Clear queue in more appropriate places. 2012-01-31 12:04:03 +01:00
ahocevar cc749a7967 Don't queue tiles multiple times.
This results in a smaller queue that we don't have to unqueue from.
2012-01-31 11:55:19 +01:00
Xavier Mamano fa3d89f572 A popup can be destroyed before obtaining the images of contentDiv. 2012-01-30 19:42:23 +01:00
ahocevar e77b06dbc4 Using stripped down stylesheet in example. 2012-01-30 09:43:25 +01:00
fredj 1f43df33f8 Add a note into notes/2.12.md about getURLasync changes 2012-01-30 09:04:41 +01:00
ahocevar 720c49c040 Re-introducing tileLoadingDelay.
Only use it if no native requestAnimationFrame function is available. This should improve performance on mobile devices.
2012-01-29 18:50:03 +01:00
ahocevar 8efce71271 Fixing a fatal typo. 2012-01-28 23:35:56 +01:00
Xavier Mamano 1996f5cb25 Monitor the errors from the merge process. 2012-01-28 19:13:28 +01:00
ahocevar e64ed565e2 Adding tests fo verify tile queue management. 2012-01-28 16:24:56 +01:00
ahocevar dde45696f7 Simplified tile queue; using the tile's beforedraw listener.
Since draw is the only tile operation that we defer, the tile queue can be an array of tiles and queue handling can be simplified. We now use the beforedraw event to defer drawing, and remove all occurrences of a tile from the tile queue when we draw it.

Instead of layers that want to defer tile drawing having to override the tile's draw method, layers can now abort drawing by returning false from a beforedraw listener, and later call draw(true) to draw the tile directly, without clearing it first.
2012-01-28 16:12:29 +01:00
fredj 0e435b5483 Simplify moveGriddedTiles code.
Saves 3 unnecessary instances creation and 6 parseFloat calls.
2012-01-28 15:30:39 +01:00
ahocevar ef85f43d21 A tile queue that can be aborted.
This saves server requests, and because we use OpenLayers.Animation, setting img.src on a tile should not freeze iOS any more, so we can hopefully get rid of scheduleMoveGriddedTiles.
2012-01-28 15:30:20 +01:00
fredj 40806dbe68 Pass the callback scope to getURLasync 2012-01-27 14:50:34 +01:00
fredj fe202cef14 Change getUrlAsync parameters.
Instead of giving the function a bound, a scope, a property to update
and a callback, only give the bound and a callback.

When the url is retrieved by getUrlAsync, simply call the callback
with the url as argument and let the caller manage this.
2012-01-27 13:23:08 +01:00
Frédéric Junod 9aa1c4450e Merge pull request #183 from fredj/transform-control
Transform control. r=ahocevar
2012-01-27 03:45:08 -08:00
fredj becb7af745 Update the transform-feature example to show how the 'role' attribute can be used 2012-01-27 12:35:26 +01:00
fredj 4e73df0115 Set Control.TransformFeature handle role (rotate) into attributes. 2012-01-27 11:42:24 +01:00
fredj 717e13fb44 transformFeature() already call drawHandles 2012-01-27 11:42:24 +01:00
Pierre GIRAUD a75d8ab235 Merge pull request #180 from pgiraud/xls_typo
Fixing typo
2012-01-26 06:56:59 -08:00
Pierre GIRAUD 359d48f466 Fixing typo 2012-01-26 15:37:13 +01:00
fredj f627071274 Remove unnecessary initialize functions (only calls the parent). 2012-01-26 15:14:10 +01:00
Tom Payne 1a1cb9fe4e Add OpenLayers/Spherical.js 2012-01-25 16:26:28 +01:00
fredj 8062f70e1b Pass unmodified arguments array to the parent class 2012-01-25 14:53:31 +01:00
fredj 586a39ca30 Layer.Zoomify: url already defined in Layer.HTTPRequest 2012-01-25 14:52:18 +01:00
Éric Lemoine c66e5da29a mock map.pan, map.zoomIn and map.zoomOut in the Control.KeyboardDefaults tests, references #176 2012-01-25 13:08:13 +01:00
ahocevar ca8a801ff0 Using t.eq to better show the issue (see #162) 2012-01-25 11:49:21 +01:00
Éric Lemoine 2f66031603 remove multiple variable declarations in Control/KeyboardDefaults.js, non functional change 2012-01-25 10:54:39 +01:00
Éric Lemoine 7652b0e983 change test function name in Handler/Keyboard.html, non-functional change 2012-01-25 10:48:54 +01:00
Frédéric Junod 22cdabe3b1 Merge pull request #175 from fredj/transform-control
Transform control, r=ahocevar
2012-01-24 23:35:30 -08:00
fredj 1d422dbc73 Remove unsetFeature call in Control.TransformFeature.deactivate 2012-01-24 15:13:19 +01:00
fredj d9de788b3b Don't create unneded local variable (box) 2012-01-24 15:13:19 +01:00
fredj eceaf1a319 Add more properties to destroy in destroy() 2012-01-24 15:13:19 +01:00
fredj cea7b3e55c Set Control.TransformFeature handle role (resize) into attributes. 2012-01-24 15:13:18 +01:00
ahocevar dc03537132 Merge pull request #167 from ahocevar/button-controls-improved
Fixing PanZoomBar and Panel issues after #164. r=@elemoine
2012-01-24 05:17:00 -08:00
fredj 2bd9721fd8 remove tabs 2012-01-24 12:13:41 +01:00
fredj ac1eee6ac2 Allow testing of specific renderers via '?renderer=<name>' 2012-01-24 10:57:03 +01:00
ahocevar def2085915 vertexRenderIntent for all sketch modes.
Fixed whitespace from original patch.
p=mosesonline, r=me (closes http://trac.openlayers.org/ticket/3581)
2012-01-23 14:39:06 +01:00
ahocevar ae55f1a70c Adding boxselectionstart and boxselectionend events.
Whitespace fixed from patch, and removed docs for beforefeatureselected and featureselected events because they are fired on the layer, not the control.
p=mosesonline, r=me (closes http://trac.osgeo.org/openlayers/ticket/3538)
2012-01-23 14:30:36 +01:00
Frédéric Junod d579f42539 Merge pull request #170 from fredj/prototype-pollution
Initialize variables in the code to keep the prototype clean.
2012-01-22 22:49:20 -08:00
Éric Lemoine df82e73130 Merge pull request #171 from probins/ignore
Add example-lists to gitignore
2012-01-22 13:53:52 -08:00
Peter Robins 2286b9ac9d Add example-lists to gitignore 2012-01-22 21:40:55 +00:00
ahocevar 5a1378cdab Improved extension example docs and destroy method. 2012-01-22 21:30:41 +01:00
ahocevar ed88941280 Incorporating review comments from @jorix. 2012-01-22 21:30:41 +01:00
ahocevar e7107b96cb Fixing PanZoomBar and Panel issues after #164.
For PanZoomBar, this fixes the slider behavior. Now the buttonclick listener argument also includes a buttonXY property, and PanZoomPanel does not need an Events instance for the zoombarDiv any more.
For Panel, this fixes events for panels outside the map. Just setting the element on the Events instance was no longer enough after e70569b2bb. Events::attachToElement is now used, and it needed to be modified to also work if the Events instance had no element previously.
Finally, I renamed the button property of the buttonclick listener argument to buttonElement, to not confuse it with the browser event button property, and added some more tests and documentation.
2012-01-22 21:30:40 +01:00
Éric Lemoine 469005dead feed .gitignore 2012-01-22 20:31:00 +01:00
ahocevar 1ecc5d6c90 Improving documentation for extensions.
Includes a currently non-functional change to make OpenLayers.Events work with extensions like the one in the code example.
2012-01-22 15:31:57 +01:00
Frederic Junod b797614a17 Initialize variables in the code to keep the prototype clean. 2012-01-22 14:31:27 +01:00
ahocevar 3b96046669 Making GetFeatureInfo work with SLD defined layers.
Closes http://trac.osgeo.org/openlayers/ticket/3609. p=h0nIg, r=me
2012-01-21 13:45:11 +01:00
ahocevar e936ce7f2a Setting SingleFile.js first (see #166) 2012-01-21 13:01:16 +01:00
ahocevar 29a31ad910 extensions can be an APIProperty (see #164). 2012-01-21 10:52:38 +01:00
ahocevar 9f9feabfae Let's not over-engineer things (see #164). 2012-01-21 10:46:44 +01:00
ahocevar c38f4ce7bb Fixing a typo. 2012-01-21 10:45:43 +01:00
ahocevar b90e533552 Documenting the idea of extensions better (see #164). 2012-01-21 10:43:01 +01:00
ahocevar 07dc1b5d84 Merge pull request #164 from ahocevar/button-controls
Don't let button controls interfer with handlers. Closes http://trac.osgeo.org/openlayers/ticket/3363. r=@bartvde
2012-01-20 07:09:34 -08:00
ahocevar d9cc0c08ed Check for outsideViewport - we may not have a parentNode yet. 2012-01-20 16:08:02 +01:00
ahocevar 1d4b68af7b Fixing docs. 2012-01-20 15:48:01 +01:00
ahocevar 67eda3e2ae Re-adding accidently removed "if" block. 2012-01-20 15:44:20 +01:00
Bart van den Eijnden 089ff636f9 fix up broken test in Format/CSWGetRecords/v2_0_2 2012-01-20 15:03:18 +01:00
ahocevar e09ee34f23 Incorporate remaining review comments from @bartvde. 2012-01-20 14:18:15 +01:00
ahocevar e70569b2bb Use event handling of OpenLayers.Event, not the native one.
Also includes some of the fixes suggested by @bartvde.
2012-01-20 14:17:56 +01:00
Bart van den Eijnden 4385efe0c8 Merge pull request #152 from bartvde/pycsw
make GetRecords request work against pyCSW (r=fredj)
2012-01-20 04:53:54 -08:00
ahocevar 05de2b5109 Don't let button controls interfer with handlers.
This change involves removal of the map's eventsDiv and introduces an OpenLayers.Events.buttonclick component that adds a buttonclick event which makes sure that only events that are not related to clicking a button propagate. This allows button controls to be on the map's viewPortDiv again.
2012-01-20 03:37:11 +01:00
Bart van den Eijnden e68acfe91a fix up Layer.Bing tests, fix has been discussed with @ahocevar (closes #163) 2012-01-19 20:05:44 +01:00
Marc Jansen 015f5f95f6 Merge pull request #158 from drnextgis/master
Fix documentation error. Thanks @drnextgis
2012-01-18 23:53:05 -08:00
drnextgis b10e380afd Update lib/OpenLayers/Control/Split.js 2012-01-19 14:48:25 +07:00
ahocevar eda8eb8dbe Merge pull request #157 from mpriour/patch-1
Create the layer's metadata object in the initialize function. r=me
2012-01-18 13:20:08 -08:00
Matt Priour 55b52c6c9f Create the metadata object in the initialize function, otherwise any assignment to an instance of an OpenLayers.Layer class or subclass add/modifies those properties on the OpenLayers.Layer prototype 2012-01-18 14:41:41 -06:00
fredj a34dd40869 Fix APIdoc syntax 2012-01-18 14:25:42 +01:00
Frédéric Junod 1cbd88d230 Merge pull request #137 from fredj/simple-objects
Replace Size and Pixel instances with simple objects. r=elemoine,probins,tschaub
2012-01-18 04:12:02 -08:00
Frédéric Junod 8d838003dd Merge pull request #156 from probins/buildreadme
Suggested addition to build README
2012-01-18 03:22:31 -08:00
Peter Robins 5cca86c233 Suggested addition to build README 2012-01-18 11:10:11 +00:00
Pierre GIRAUD 6c5ed6361f Merge pull request #154 from pgiraud/unselectfeature
unselectFeature should be API
2012-01-18 00:20:52 -08:00
Tim Schaub 560295e78a Update mobile build profile to include OSM.js.
Since 11454cbc1b, the OSM.js script must be included where the OSM layer is used.
2012-01-17 23:55:34 -07:00
Tim Schaub 6aaa9bb749 Fixing undeclared label.
Missing var in be585c5f23 causing closure compiler failure.
2012-01-17 23:41:04 -07:00
Tim Schaub b910a5f4d0 Declare zoomChanged.
The zoomChanged variable has been undeclared since d42eec9775, causing closure compiler to fail.
2012-01-17 23:04:20 -07:00
Éric Lemoine 37d21272b7 Merge pull request #127 from elemoine/tile-fade-in
CSS-based tile animation
2012-01-17 21:06:11 -08:00
Xavier Mamano 7c76b90a2d Test Measure: Correct the text of expected result. 2012-01-17 22:45:25 +01:00
Tim Schaub a5f4daa747 Merge pull request #135 from jorix/3496-Build_force_exclude
Skip files that are listed in the exclude config list even if they are dependencies of other files.  Thanks @jorix for the enhancement.
2012-01-17 12:39:04 -08:00
Tim Schaub d34d8f22a3 Merge pull request #128 from tschaub/animation
Use requestAnimationFrame where available.
2012-01-17 11:56:59 -08:00
Tim Schaub 974ed29de9 Merge pull request #153 from tschaub/proj
Move mercator transforms to Projection.js.
2012-01-17 11:46:36 -08:00
tschaub 9a6827f6b3 Documenting the functionality included in Projection.js.
This adds documentation for projection methods and includes detail in the release notes about build configuration related changes.
2012-01-17 12:38:31 -07:00
tschaub bfa6f06bf3 Removing dependency on SphericalMercator.
The default transforms (b/w EPSG:4326 & EPSG:900913) now come with any layer type.
2012-01-17 12:35:50 -07:00
tschaub 6134ad6d91 Removing redundant dependency.
Projection.js gets pulled in as a transitive dependency of all layers.
2012-01-17 12:34:40 -07:00
tschaub 00975e79cc Merge branch 'master' of github.com:openlayers/openlayers into proj 2012-01-17 08:52:03 -07:00
Antoine Abt 188be77570 Merge pull request #140 from aabt/outline
Add label outline to SVG and Canvas renderers
2012-01-17 04:45:50 -08:00
Éric Lemoine 22bc3e8f62 Merge pull request #155 from probins/kinetic
Suggested addition to Kinetic  documentation
2012-01-17 04:25:58 -08:00
Peter Robins ca6d93712a Suggested addition to Kinetic documentation 2012-01-17 11:41:22 +00:00
Antoine Abt 4c22ceee4a Document default labelAlign 2012-01-17 12:24:02 +01:00
Antoine Abt 58468c2850 don’t set labelAlign twice in example 2012-01-17 11:38:54 +01:00
Éric Lemoine 99ca32540d Merge branch 'master' into tile-fade-in
Conflicts:
	tests/Tile/Image.html
2012-01-17 09:27:55 +01:00
Pierre GIRAUD 059a400ab3 unselectFeature should be API 2012-01-17 09:27:36 +01:00
Éric Lemoine 11454cbc1b Merge pull request #144 from elemoine/osm
move Layer.OSM in its own file
2012-01-17 00:11:55 -08:00
Éric Lemoine 8f57e34376 Merge branch 'master' into osm
Conflicts:
	notes/2.12.md
2012-01-17 09:10:27 +01:00
Pierre GIRAUD 0aaa5265b4 Merge pull request #146 from openlayers/2492
Improving precision in LinearRing::containsPoint
2012-01-16 23:30:58 -08:00
Éric Lemoine 6373cce17e Merge pull request #148 from probins/noqsf
Remove QueryStringFilter requires from Protocol/HTTP
2012-01-16 23:22:57 -08:00
Tim Schaub 32e870bebb Remove SphericalMercator dependency from Bing. 2012-01-16 22:59:23 -07:00
Tim Schaub 4b949176d3 Move mercator transforms to Projection.js.
The SphericalMercator mixin is not required for coordinate transforms.  Default transforms included whenever Projection.js is included.
2012-01-16 22:39:44 -07:00
tschaub 483fe267b0 Update animation tests to run in a popup.
As an optimization, certain browsers (e.g. Firefox) may not execute functions sent to `requestAnimationFrame` while the window is not visible.  Because our tests run in an iframe, the tests fail unless we open a popup to run the animation methods.
2012-01-16 17:44:55 -07:00
tschaub 02aa9bcc36 Tests with a description of the updated method.
The old `containsPoint` method was sensitive to failure when looking for ray crossings with nearly vertical edges.  These added tests demonstrate the simple cases where `containsPoint` succeeds.  The tests also now include a case that covers the failure for polygons with nearly vertical edges.  The previous `getX` method (within the `containsPoint` method) and the new one are mathematically equivalent.  The updated version performs better in cases using coordinates with many significant figures.
2012-01-16 16:59:54 -07:00
Éric Lemoine e160628086 make OSM.js @require SphericalMercator.js, to be consistent with Bing.js 2012-01-16 20:53:09 +01:00
Bart van den Eijnden 33fd43d0ed make GetRecords request work against pyCSW 2012-01-16 14:25:29 +01:00
fredj 0e8b3f2ff8 Popup tests: return false if map.events.listeners.movestart is undefined 2012-01-16 12:30:03 +01:00
fredj 42fcb70347 Coding standards: variable names to camel case 2012-01-16 09:20:05 +01:00
fredj e6ab34bed1 Update OpenLayers.Icon.px type
'px' can be either a Pixel or a simple javascript object.
2012-01-16 09:06:59 +01:00
fredj 27a9ec26b0 Update OpenLayers.Marker.moveTo apidoc
'px' parameter can be either a Pixel or a simple javascript object.
2012-01-16 09:06:13 +01:00
Bart van den Eijnden 8905ef2fa5 Merge pull request #145 from bartvde/cswemptysubject
ignore empty subject tags in CSWGetRecords parser (r=ahocevar)
2012-01-15 23:50:36 -08:00
Frédéric Junod bb94208468 Merge pull request #150 from probins/mobase
Fix typo in examples/mobile-base.js. p=probins, r=me
2012-01-15 09:36:53 -08:00
Peter Robins 92e5018b19 Fix typo in examples/mobile-base.js 2012-01-15 17:26:13 +00:00
Frederic Junod 511784d530 Update OpenLayers.Map.{min,max}Px apidoc
OpenLayers.Pixel to simple javascript object.
2012-01-15 18:22:22 +01:00
Frederic Junod 4e703abc0c Fix OpenLayers.Control.GetFeature.selectBox apidoc 2012-01-15 18:14:31 +01:00
Frederic Junod 098899d165 Fix OpenLayers.Control.OverviewMap.getLonLatFromOverviewPx apidoc 2012-01-15 18:13:27 +01:00
Frederic Junod 5d173c1807 Fix OpenLayers.Icon apidoc
'size' parameter for OpenLayers.Icon.setSize can be either a Size or
a simple javascript object.
2012-01-15 18:09:11 +01:00
Frederic Junod 8f4fcc7f33 Fix OpenLayers.Icon apidoc
'size' can be either an OpenLayers.Size or a simple javascript object,
'offset' can be either an OpenLayers.Pixel or a simple javascript
object.
2012-01-15 18:05:07 +01:00
Frederic Junod 0af2acddb5 Fix OpenLayers.Layer and OpenLayers.Map apidoc
'viewPortPx' parameter for OpenLayers.Layer.getLonLatFromViewPortPx
can be either a Pixel or a simple javascript object. 'lonlat'
parameter for OpenLayers.Layer.getViewPortPxFromLonLat can be either a
LonLat or a simple javascript object.

'px' parameter for OpenLayers.Map.getLonLatFromViewPortPx and
OpenLayers.Map.getLonLatFromPixel can be either a Pixel or a simple
javascript object.
2012-01-15 17:52:36 +01:00
Frederic Junod 4d0a53ab31 Fix OpenLayers.Pixel and OpenLayers.Size apidoc
'px' parameter for OpenLayers.Pixel.offset and OpenLayers.Pixel.equals
can be either a Pixel or a simple javascript object.
'sz' parameter for OpenLayers.Size.equals can be either a Size or a
simple javascript object.
2012-01-15 10:59:08 +01:00
Frederic Junod a9aa6d031e Fix OpenLayers.Util apidoc
'px' and 'sz' parameters for modifyDOMElement, createDiv, createImage,
createAlphaImageDiv and modifyAlphaImageDiv can be either a
OpenLayers.Pixel/OpenLayers.Size or a simple javascript object.
2012-01-15 10:45:27 +01:00
Éric Lemoine acf2c0f373 Merge remote branch 'upstream/master' 2012-01-14 21:54:10 +01:00
Éric Lemoine 99a42b273b OpenLayers.Kinetic is not part of the API 2012-01-14 21:53:16 +01:00
Éric Lemoine a9d919ab95 better docs for Layer.OSM 2012-01-14 21:13:01 +01:00
Peter Robins b9f1b8b4ba Add docs comment on QueryStringFilter 2012-01-14 15:02:53 +00:00
Peter Robins 3eee019fca Remove QueryStringFilter requires from Protocol/HTTP 2012-01-14 14:51:03 +00:00
fredj d3cc8e93ae replace LonLat with simple object (OverviewMap.getLonLatFromOverviewPx, internal function) 2012-01-14 14:11:25 +01:00
fredj 2355f099be remove map.getSize call to avoid creating new instances 2012-01-14 14:11:25 +01:00
fredj b8257aa64c replace Pixel argument with simple object (Util.createDiv) 2012-01-14 14:11:25 +01:00
fredj b900144ce3 remove map.getSize call to avoid creating new instances 2012-01-14 14:11:25 +01:00
fredj 90452311f3 Remove tileSize.clone; not necessary to create a new size instance 2012-01-14 14:11:25 +01:00
fredj c440a2916d replace Size argument with simple object (maker.draw) 2012-01-14 14:11:25 +01:00
fredj 8825b32924 pass simple objects to Icon constructor 2012-01-14 14:11:25 +01:00
fredj 6abed6221f replace Size argument with simple object (icon.setSize) 2012-01-14 14:11:25 +01:00
fredj f199dd471e Icon: use simple ojects for size and offset 2012-01-14 14:11:25 +01:00
fredj 8d11b169d3 OverviewMap.getOverviewPxFromLonLat: return simple object instead of OpenLayers.Pixel 2012-01-14 14:11:25 +01:00
fredj 1e6f56fe82 replace Pixel argument with simple object (OverviewMap.getLonLatFromOverviewPx) 2012-01-14 14:11:25 +01:00
fredj 07e3fa9624 replace Size instances with simple object 2012-01-14 14:11:25 +01:00
fredj 4844baf666 replace Pixel argument with simple object (Pixel.offset) 2012-01-14 14:11:24 +01:00
fredj 3cc62c3fc8 replace Pixel argument with simple object (Map.getMapObjectPixelFromXY) 2012-01-14 14:11:24 +01:00
fredj a111808e06 replace Pixel argument with simple object (Map.getLonLatFromPixel) 2012-01-14 14:11:24 +01:00
fredj 69bc0fc772 replace map.minPx and map.maxPx with simple objects 2012-01-14 14:11:24 +01:00
fredj 8ef0ad8c17 replace Pixel argument with simple object (Map.getLonLatFromViewPortPx) 2012-01-14 14:11:24 +01:00
fredj 1df5cfa158 replace LonLat argument with simple object (Map.getLayerPxFromLonLat) 2012-01-14 14:11:24 +01:00
Éric Lemoine 7a5b469192 Merge pull request #116 from elemoine/redraw
make Layer.redraw not unconditionally set zoomChanged to true when calling Layer.moveTo
2012-01-13 08:37:09 -08:00
Pierre GIRAUD 7a0336a9ef Fixing a wrong calculation in LinearRing::containsPoint 2012-01-13 17:36:23 +01:00
Pierre GIRAUD a719de7e93 Fixing typo and documentation mistakes. No functional changes. 2012-01-13 17:12:14 +01:00
Bart van den Eijnden c667e9a147 ignore empty subject tags in CSWGetRecords parser 2012-01-13 13:05:20 +01:00
Pierre GIRAUD 78714f6de4 Adding some documentation to the locationupdated documentation. No functional change. 2012-01-13 12:12:35 +01:00
Éric Lemoine 2f700bd894 Merge branch 'master' into osm
Conflicts:
	apidoc_config/Menu.txt
2012-01-12 21:27:39 +01:00
Éric Lemoine 3cbd7b4b40 move Layer.OSM in its own script file 2012-01-12 21:22:58 +01:00
Éric Lemoine e1ea3471e0 Merge pull request #143 from jorix/stop-freehand
Handler.Path: Stop freehand using "maxVertices"
2012-01-12 12:08:12 -08:00
Éric Lemoine 9ebb64edef Merge pull request #142 from jorix/doc-links
Docs: Set many links as {<...>}
2012-01-12 11:25:03 -08:00
Xavier Mamano 59dfb7ec11 Add test for stop freehand using "maxVertices" 2012-01-12 20:23:01 +01:00
Xavier Mamano 5cbdd27706 Docs: Set many links as {<...>} 2012-01-12 20:03:40 +01:00
Antoine Abt 71d9d36266 when removeText, remove its outline too 2012-01-12 10:41:34 +01:00
fredj cbfb68f397 Change all 'Parameter:' to 'Parameters:' in documentation. Non functional change 2012-01-12 09:32:49 +01:00
fredj 4fcd28fe08 Change some 'Parameter' to 'Property' in documentation. Non functional change 2012-01-12 09:30:51 +01:00
fredj 04ae5f8db8 Change all 'Return:' to 'Returns:' in documentation. Non functional change 2012-01-12 09:26:49 +01:00
fredj 4769e119a0 Correct spelling in documentation. Non functional change. 2012-01-12 09:12:07 +01:00
Xavier Mamano 70f42b0629 Stop freehand using "maxVertices" 2012-01-12 08:46:15 +01:00
ahocevar f4c951c3ce Merge pull request #132 from jorix/Docs-issues
Docs issues
2012-01-11 13:55:27 -08:00
Bart van den Eijnden 5393532f58 Merge pull request #136 from bartvde/csw
Add CS-W protocol based on the work from pgiraud (http://trac.osgeo.org/openlayers/ticket/2133)
2012-01-11 06:35:04 -08:00
Bart van den Eijnden 9a80c5f30f incorporate ahocevar's review 2012-01-11 15:33:25 +01:00
Éric Lemoine d3db3011a3 in Tile.Image do the opacity filter setting where it was done before, i.e. right after the img creation 2012-01-10 21:24:09 +01:00
Tim Schaub a7374db913 Merge pull request #134 from probins/splitnoml
Removing MultiLineString dependency from the Split control.  Thanks @probins for the contribution.
2012-01-09 22:50:15 -08:00
fredj 9ad899c3a0 doc typo 2012-01-09 13:26:08 +01:00
Peter Robins 1b031bcd26 Control/Split isEligible() should check feature has a geometry 2012-01-09 11:13:36 +00:00
Peter Robins 128791be2c Merge branch 'master' into splitnoml 2012-01-09 10:37:38 +00:00
Bart van den Eijnden 10d3394896 this part does not seem to be used anymore in the patch 2012-01-09 10:39:52 +01:00
Bart van den Eijnden 476d438578 minor doc adjustments and a bit more test coverage 2012-01-09 10:27:44 +01:00
Bart van den Eijnden ab49a195e3 update copyright 2012-01-09 10:07:26 +01:00
Bart van den Eijnden 41370b3eb7 fix up broken test 2012-01-09 09:57:32 +01:00
Bart van den Eijnden 849189d136 Merge branch 'master' of github.com:bartvde/openlayers into csw 2012-01-09 09:41:59 +01:00
Bart van den Eijnden a6be4a4b6c start with the patch from OL Trac ticket 2133 2012-01-09 09:29:15 +01:00
Tim Schaub 0127806ee2 Assert that split control works with no geometry. 2012-01-08 21:14:17 -05:00
Xavier Mamano 6fd4d27700 Change docs to "Valid options:" in Util.createUrlObject 2012-01-09 00:35:54 +01:00
Xavier Mamano f4a6d4c7b2 Set key as property in Bing.js and many links as {<...>} 2012-01-09 00:30:53 +01:00
Peter Robins 9453d0ce7c Revised version for checking geometry splittable 2012-01-08 20:08:36 +00:00
Peter Robins 5f6bd6acee Revised version for checking geometry splittable 2012-01-08 20:04:35 +00:00
Xavier Mamano 6ca10eed52 Merge "3496.1.patch" with current truck in GitHub 2012-01-08 19:47:19 +01:00
Peter Robins 0296a46de8 Control/Split should work w/o MultiLineString 2012-01-08 14:36:30 +00:00
Xavier Mamano f64dea59e8 More details manually observed while reviewing documentation. 2012-01-07 23:33:50 +01:00
Xavier Mamano 107edcf0e5 Some minor documentation adjustments. 2012-01-07 20:07:07 +01:00
Xavier Mamano b7dee9ca6d Some problems in the documentation detected using "closure_verify" 2012-01-07 19:29:41 +01:00
Antoine Abt 241162a4bc update comments for supported renderers 2012-01-06 10:32:28 +01:00
tschaub fc43ea715a Documenting the deprecated.js script. 2012-01-05 10:50:45 -07:00
tschaub 0e6d971ad0 Updating API doc menus.
After the big reshuffle while deprecating stuff, NaturalDocs started over with a new menu so we lost the structure we had set up.
2012-01-05 10:36:45 -07:00
Antoine Abt be585c5f23 Add support for SVG renderer ( Heavily inspired from rdewit’s patch http://trac.osgeo.org/openlayers/ticket/2965 ) 2012-01-05 17:32:00 +01:00
Antoine Abt 5be7e7f844 don’t duplicate defaults in renderers 2012-01-05 10:26:05 +01:00
Éric Lemoine 30c5b11d99 Merge branch 'master' into tile-fade-in
Conflicts:
	examples/fullScreen.js
2012-01-05 09:39:39 +01:00
Éric Lemoine f65bc5e764 correct css accessor for tile animation in style.mobile.css 2012-01-05 09:36:47 +01:00
Frédéric Junod 2d7fa6810a Merge pull request #130 from fredj/tile-class
OpenLayers.Layer.Grid: ability to change the tile types. r=tschaub
2012-01-04 22:47:23 -08:00
Éric Lemoine 77f227ffed more Grid tests, for delayed back buffer removal 2012-01-04 21:01:46 +01:00
fredj 3245836b6d New OpenLayers.Layer.Grid.tileClass option. Defaults to OpenLayers.Tile.Image 2012-01-04 12:37:39 +01:00
fredj 2fabd6954c Fix indentation 2012-01-04 12:16:06 +01:00
Antoine Abt 0ff9d54d5c better alignment 2012-01-04 11:00:29 +01:00
Antoine Abt 6be48e9ef9 Basic support for canvas only (patch from trac #3503) 2012-01-04 10:59:51 +01:00
Éric Lemoine 0cc4dc81ec Merge branch 'master' into redraw 2012-01-04 09:06:29 +01:00
Éric Lemoine eedcaf0ba2 add a test to verify that Layer.HTTPRequest.mergeNewParams set resolution to null prior to calling redraw 2012-01-04 09:02:38 +01:00
Éric Lemoine 0d702609b1 revert changes to layer mergeNewParams tests (ff045172) 2012-01-04 08:59:47 +01:00
Éric Lemoine d64bbe1cfc better doc strings for Layer.resolution 2012-01-04 08:47:55 +01:00
Éric Lemoine 0ef4c8dd5b make redraw return the return value of mergeNewParams 2012-01-04 08:47:28 +01:00
Éric Lemoine aca72e4266 Merge pull request #1 from ahocevar/redraw
No new argument for Layer::redraw
2012-01-03 23:39:25 -08:00
Éric Lemoine 39f2ddccee remove back buffer immediately in applyBackBuffer if back buffer is schedule for removal 2012-01-04 08:20:11 +01:00
Tim Schaub b26efd6beb Merge pull request #126 from tomhughes/url-rewrite
Add an interception point to allow image URLs to be rewritten
2012-01-03 14:13:00 -08:00
tschaub e2834e04e6 Merge branch 'master' into animation 2012-01-03 10:28:40 -07:00
tschaub 519bf9a50a Removing unused minX and maxX. 2012-01-03 10:28:25 -07:00
tschaub 3556af9cb2 Moving animation methods out of Util.js.
Animation methods get their own module, giving methods more sensible names:

 * `OpenLayers.Animation.requestFrame` (was `OpenLayers.Util.requestAnimationFrame`)
 * `OpenLayers.Animation.start` (was `OpenLayers.Util.startAnimation`)
 * `OpenLayers.Animation.stop` (was `OpenLayers.Util.stopAnimation`)
2012-01-03 09:43:50 -07:00
tschaub b844a3b11b Happy New Year!
Updating copyright to 2012.
2012-01-03 09:01:10 -07:00
Éric Lemoine d4249960e3 remove duplications in the 2.12 notes 2012-01-03 08:29:40 +01:00
Éric Lemoine 4f4a7e9c0a Merge branch 'master' into tile-fade-in 2012-01-03 08:27:20 +01:00
Éric Lemoine 9064ba8c6a add release notes for tile animation 2012-01-03 08:24:58 +01:00
Éric Lemoine 5914cb3566 enable kinetic dragging in the full-screen example 2012-01-03 08:24:41 +01:00
Tim Schaub 3f6e0141a4 No animation frames on hidden windows.
As an optimization, Firefox does not execute functions passed to requestAnimationFrame when the window is hidden.  This is the case for the panTo tests here that use a map in a hidden iframe.  Since other browsers may follow suit, we just test the fallback setTimeout method of animating on these tests.
2012-01-02 22:29:23 -07:00
Éric Lemoine a6cbbbde84 Merge pull request #3 from tschaub/fade
increase timeout for backbuffer removal and dispense with extra map property
2012-01-02 21:10:33 -08:00
Tim Schaub bd4278de4a Docs and tests for animation methods. 2012-01-02 21:54:08 -07:00
Tim Schaub 92472ca604 Avoid illegal invocation of native method. 2012-01-02 21:53:21 -07:00
Tim Schaub e363bdb782 Rename to startAnimation for symmetry. 2012-01-02 21:52:31 -07:00
Tim Schaub c151b04257 Use requestAnimationFrame for tweening.
Instead of using an arbitrary interval for tweening, we let the device decide the best animation frame rate.  Where requestAnimationFrame is not available, this will default to 60 fps.
2012-01-02 20:52:46 -07:00
Tim Schaub 5c2af142b6 Use requestAnimationFrame where available.
For kinetic panning, let the device determine the animation frame rate.
2012-01-02 20:40:29 -07:00
Tim Schaub c7c11757ae Allow for infinite animation loop. 2012-01-02 20:39:52 -07:00
Tim Schaub a86151c9e3 Allow callback to cancel animation. 2012-01-02 20:39:38 -07:00
Tim Schaub 709bb7af1b panDuration not used in this example 2012-01-02 20:37:23 -07:00
tschaub bc8a38cf16 Util methods for animation loops. 2012-01-02 17:48:43 -07:00
tschaub f2168d13b7 Increase timeout to avoid flashes.
Without this change, flashes are fairly frequent while zooming around a full screen map.
2012-01-02 16:07:40 -07:00
tschaub 3c910c8801 Removing the tileAnimation map property.
Edit CSS to change the style.
2012-01-02 15:49:55 -07:00
Éric Lemoine 78963a5fa8 correct typo in tests/Tile/Image.html, @tschaub has sharp eyes 2012-01-02 23:34:02 +01:00
Éric Lemoine fcb9a6cd2c remove Tile.Image.onTransitionEnd - it is no longer used 2012-01-02 23:20:15 +01:00
Éric Lemoine eb924c8f77 no longer rely on the transitionend event, unwanted flashes are avoid using a timer 2012-01-02 22:53:53 +01:00
Éric Lemoine aeccee865c Merge pull request #2 from tschaub/fade
tweaks for fade changes
2012-01-02 11:16:57 -08:00
tschaub 3eb34f587e Add test for setOpacity. 2012-01-02 11:52:54 -07:00
tschaub b7b0d6b712 Collecting image tile changes in the Image.js. 2012-01-02 11:40:50 -07:00
ahocevar 485ec033e9 Merge pull request #125 from tomhughes/ticket-2598
Irregular transformation support for TransformFeature Control
2011-12-31 08:04:13 -08:00
Tom Hughes dd103ebf82 Use OpenLayers.Util.DEFAULT_PRECISION for geometry comparisons 2011-12-31 14:00:25 +00:00
Éric Lemoine e11e4358fa add olMapTileAnim rule in style.mobile.css 2011-12-31 14:13:42 +01:00
Éric Lemoine 587650e01b use parseFloat to read opacity style values in tests 2011-12-31 14:09:24 +01:00
Tom Hughes 63fb2d4b04 Add an interception point to allow image URLs to be rewritten
Make all attempts to get a URL for an image go through a single
routine, OpenLayers.Util.getImageLocation, which is given the actual
image name.

This allows users to replace that routine with an enhanced version
which can rewrite the full URL, for example to go through the rails
asset pipeline when using OpenLayers with rails.
2011-12-31 12:19:10 +00:00
Tom Hughes 533ee475ee Improve documentation of regular versus irregular transformation 2011-12-31 12:08:22 +00:00
Tom Hughes 93f2a31253 Add tests for regular and irregular transformations 2011-12-31 12:08:21 +00:00
Tom Hughes 1b6eb38d46 Make irregular transforms work on rotated features
Rework support for irregular transforms to handle features
which have been rotated correctly.
2011-12-31 12:08:21 +00:00
Tom Hughes a46707e727 Add support for irregular transformations to TransformFeature
Give the TransformFeature control an irregular mode where dragging a
handle just extends that side rather than growing the shape symmetrically
about the centre.
2011-12-31 12:08:21 +00:00
Éric Lemoine d2856cd721 remove duplicated setOpacity tests (MapServer/Untiled.html) 2011-12-31 12:25:37 +01:00
Éric Lemoine e7ef3d6c21 remove duplicated setOpacity tests 2011-12-31 12:23:32 +01:00
Éric Lemoine afc0283c06 fix the Layer.WMS setOpacity tests 2011-12-31 00:45:15 +01:00
Éric Lemoine df7ab415d0 add css rule for tile animation 2011-12-31 00:20:06 +01:00
Éric Lemoine 6b918bc9ab make the Layer/Image.html tests pass again 2011-12-31 00:19:44 +01:00
Éric Lemoine 5edd3d3f84 make Tile.Image compatible with CSS-based tile fade animation 2011-12-31 00:19:19 +01:00
Éric Lemoine d417231bb8 add OpenLayers.TRANSITION and OpenLayers.TRANSITION_END private constants 2011-12-31 00:17:36 +01:00
Éric Lemoine 04f72a0e07 tests for the tileAnimation map option 2011-12-30 23:28:21 +01:00
Éric Lemoine afce5be5d6 add a tileAnimation map option 2011-12-30 23:23:07 +01:00
Tim Schaub f5ac1fcd72 Update notes/2.12.md 2011-12-29 15:38:20 -07:00
Tim Schaub 9b7afeb492 Merge pull request #124 from tschaub/norect
Moving Rectangle geometries to deprecated.js (closes #123).
2011-12-29 14:34:04 -08:00
tschaub e5b4e1323b Updated readme. 2011-12-29 14:57:12 -07:00
tschaub 25d907d977 Adding rectangle to deprecated notes. 2011-12-29 14:41:04 -07:00
tschaub 3bddb3af05 Merge branch 'master' of github.com:openlayers/openlayers into norect 2011-12-29 14:40:16 -07:00
tschaub 47368ddfa9 Listing deprecated functionality in the notes. 2011-12-29 14:39:34 -07:00
tschaub 5773ad7ddc Removing duplicate code.
These string prototype methods were unintentionally added twice in 20e19203d5.
2011-12-29 14:29:03 -07:00
tschaub 958221d5f4 Moving Rectangle geometries to deprecated.js.
The VML and SVG renderers still have support for drawing rectangles.  This can be safely removed in 3.0.
2011-12-29 14:14:49 -07:00
tschaub 9075f14856 Ignoring the closure-compiler.jar and pyc. 2011-12-29 14:05:12 -07:00
tschaub d6cb1547ac Merge branch 'master' of github.com:openlayers/openlayers 2011-12-29 14:03:50 -07:00
Tim Schaub 08d951c02f Merge pull request #91 from jorix/3519-CC_SrcLin2
Using the jscompiler.py that ships with Closure to drive the compiler.
2011-12-29 13:03:27 -08:00
tschaub e321bd3d60 Merge branch '3519-CC_SrcLin2' 2011-12-29 13:58:48 -07:00
Tim Schaub d8a34775da Merge pull request #120 from probins/rulerequires
Symbolizer dependencies are only pulled in when serializing as SLD.
2011-12-29 11:43:37 -08:00
Peter Robins 52e7c932f7 Move symbolizer requires 2011-12-29 09:47:22 +00:00
ahocevar d1319eaf90 Merge branch 'vector-ratio' (closes #113) 2011-12-28 20:18:11 +01:00
ahocevar cfe25feecf Making dateline handling work with ratio. 2011-12-28 20:14:39 +01:00
ahocevar 1ce59a207d Don't use clientWidth and clientHeight.
Instead, use map.getSize to make sure this works the same way in all browsers.
2011-12-28 20:10:56 +01:00
Éric Lemoine 5951b22dc7 Merge pull request #117 from jorix/master
Map documentation: "controls" is a APIProperty of Map
2011-12-27 05:11:18 -08:00
ahocevar 22e9fc92b8 Don't change existing behavior for redraw(true) 2011-12-26 19:53:23 +01:00
ahocevar 0b3f9c0ae9 Merge branch 'master' of https://github.com/pjeweb/openlayers-1 into vector-ratio 2011-12-26 11:59:27 +01:00
ahocevar d42eec9775 No new argument for Layer::redraw.
Instead, make _resolution a private property (resolution) which is set to null to make redraw call moveTo with zoomChanged set to true.
2011-12-26 11:09:07 +01:00
Xavier Mamano 52e550ea74 "controls" is a APIProperty of Map 2011-12-26 00:02:02 +01:00
ahocevar 6e39c3e3e0 Moving test for reproject option to deprecated tests.
Also re-adding accidently removed ```reproject: true``` option to test.
2011-12-23 18:32:28 +01:00
ahocevar a6a7d24606 Merge pull request #114 from ahocevar/noframe-fixes
Fixing IFrame tile layers. r=@elemoine
2011-12-22 15:11:34 -08:00
Éric Lemoine ff04517232 HTTPRequest.mergeNewParams should now do redraw(true) 2011-12-22 14:21:07 +01:00
Éric Lemoine 289d9d371d make Layer.redraw not unconditionally set zoomChanged to true in moveTo 2011-12-22 14:19:02 +01:00
ahocevar 7fbae9f345 Fixing IFrame tile layers.
A problem introduced with 5fda8835da can easily be solved by re-adding a check for imgDiv and a strict type check for useIFrame. Thanks @elemoine for pointing out that there could be a problem.
2011-12-22 01:14:04 +01:00
pjeweb 008e8c5ed1 adding ratio to Vector Layer 2011-12-21 12:37:09 +01:00
ahocevar 1284dca5ec adding missing dependency 2011-12-20 14:23:41 +01:00
ahocevar c48bf3a37f One more keyword missing (see #111) 2011-12-16 17:48:51 +01:00
ahocevar 94ef9a6b10 Merge pull request #110 from ahocevar/no-pan-on-invalid-zoom
No pan on invalid zoom. r=@tschaub
2011-12-16 08:43:03 -08:00
fredj ec16a9c0b1 Add missing new keyword in doc. thanks @DaveCausey (closes #111) 2011-12-16 17:14:44 +01:00
ahocevar 701e171081 Adding test to make sure we don't pan. 2011-12-16 11:48:08 +01:00
ahocevar 9c50bb5c01 Don't set the new lonlat if the new zoom is not valid.
This avoids unwanted panning without zooming when using the mousewheel to zoom out on a wrapDateLine map (see #109).
2011-12-16 11:22:31 +01:00
Tim Schaub 0176d052a7 Merge pull request #102 from tschaub/nowkt
Allow for builds without WKT format
2011-12-14 09:51:06 -08:00
Tim Schaub 7950e284fc Merge pull request #3 from probins/nowkt
Nowkt: fix typo in release notes
2011-12-14 09:48:04 -08:00
Peter Robins f05d770d8b Fix typo in release notes 2011-12-14 16:53:51 +00:00
Éric Lemoine 001ad03cbd Merge pull request #108 from elemoine/panel
Fix panel iconOn and iconOff behavior
2011-12-14 07:09:40 -08:00
Éric Lemoine 6b0d61dbd1 remove useless assertion in Panel.html:test_iconOn_iconOff 2011-12-14 16:08:34 +01:00
Éric Lemoine 45a6e24299 Panel iconOn and iconOff do not behave correctly if application-specific classes are set in the control 2011-12-14 15:49:19 +01:00
Bart van den Eijnden 9f9829053a do not wrap DOMElements in CDATA sections for WPS Execute, p=jachym, r=me (closes http://trac.osgeo.org/openlayers/ticket/3517) 2011-12-14 15:20:00 +01:00
Frédéric Junod 55e5220a9e Merge pull request #104 from fredj/tile-position
Only set img.style.position once. r=ahocevar, elemoine
2011-12-13 09:16:46 -08:00
Éric Lemoine 16aded926f Merge pull request #106 from twpayne/ignore-build-artefacts
Ignore build artefacts
2011-12-13 07:46:43 -08:00
Tom Payne 662aa4696d Ignore build artefacts 2011-12-13 16:34:01 +01:00
Tim Schaub c8e3ae73d4 I think it's fair to say we've removed Prototype influence. 2011-12-12 20:01:40 -05:00
Tim Schaub 92ea378729 One license block fewer (see #99). 2011-12-12 19:57:05 -05:00
aabt 2d8904ca16 Merge pull request #105 from fredj/controls-size
move the buttons sizing to CSS
2011-12-12 11:40:27 -08:00
fredj e6a1830da8 move the buttons sizing to CSS 2011-12-12 17:16:04 +01:00
fredj 3cfd21c318 group the img.style changes 2011-12-12 15:05:51 +01:00
fredj ee37617c21 Only set img.style.position once 2011-12-12 13:48:57 +01:00
Frédéric Junod 74812dbf8e Merge pull request #103 from fredj/unused-var
Remove unused variable. r=elemoine
2011-12-12 02:26:06 -08:00
fredj 64b21b4e86 Remove unused variable 2011-12-12 10:42:33 +01:00
tschaub 469842012b Tests for string methods without WKT. 2011-12-10 17:09:18 -07:00
tschaub 4c97f492c6 Describing changes in release notes. 2011-12-10 17:04:26 -07:00
tschaub 66de55ef9b Allowing for WKT free builds.
The WKT format is used for converting geometries to and from string representations.  For builds that do not explicitly include the WKT format, the `OpenLayers.Geometry.fromWKT` returns `undefined`.
2011-12-10 17:00:20 -07:00
tschaub 038a34c4ad Adding release notes to the repo.
Pull requests that change behavior or add specific functionality should include changes to the appropriate release note page.
2011-12-10 16:52:07 -07:00
Tim Schaub 1008ff89e9 Removing broken (or pointless) examples. 2011-12-09 00:14:13 -07:00
Éric Lemoine 00cfe7b226 Merge pull request #99 from elemoine/deprecate-rico
Deprecate Popup.AnchoredBubble and Rico
2011-12-08 22:54:38 -08:00
Éric Lemoine 4abaa7d553 Merge remote branch 'upstream/master' 2011-12-09 00:13:27 +01:00
Éric Lemoine 3deeff74f5 comment noop code and make google compiler happy 2011-12-09 00:12:49 +01:00
Éric Lemoine 2aa0ce6466 minor tweaks to LayerSwitcher css 2011-12-09 00:11:51 +01:00
Éric Lemoine 4f66373ae1 demonstrate how to round layer switcher corners with border-radius 2011-12-09 00:11:16 +01:00
Éric Lemoine 513dd16be3 deprecated LayerSwitcher roundedCorner option 2011-12-09 00:10:29 +01:00
Éric Lemoine a8be54b0fe deprecate Rico itself 2011-12-09 00:09:04 +01:00
Éric Lemoine 46e15b5359 make OpenLayers.Feature create OpenLayers.Popup.Anchored as opposed to OpenLayers.Popup.AnchoredBubble by default 2011-12-09 00:08:28 +01:00
Éric Lemoine 33a1c842d6 remove the old-fashioned popups.html example 2011-12-09 00:04:43 +01:00
Éric Lemoine c454d675b6 remove AnchoredBubble examples from the popupMatrix.html example 2011-12-09 00:03:46 +01:00
Éric Lemoine 519335026f deprecate AnchoredBubble 2011-12-09 00:02:44 +01:00
ahocevar 096fb7398b Merge pull request #98 from towa48/master
Avoid duplicate feature title nodes. r=me
2011-12-08 12:18:40 -08:00
towa48 a1b6644b2a Prevent duplicate node title in SVG renderer. 2011-12-08 12:11:39 +03:00
Frédéric Junod 5fda8835da Merge pull request #82 from fredj/2897
don't create div for image tile when no gutter is used. p=ahocevar,pgiraud,elemoine,fredj
2011-12-07 23:03:26 -08:00
Frédéric Junod c1f2232f74 Merge pull request #1 from ahocevar/2897
Updating the gutter example.
2011-12-07 22:56:05 -08:00
ahocevar 61f076aa5d Updating the gutter example to use a working WMS. 2011-12-08 00:27:45 +01:00
Frédéric Junod e97961321c Merge pull request #96 from fredj/3404
SelectFeature stops selecting features after a right click on the map. r=ahocevar
2011-12-07 08:03:27 -08:00
ahocevar fa1845693b Fixing a typo. 2011-12-07 16:38:07 +01:00
ahocevar 484172ca0c Merge pull request #97 from ahocevar/retile
It turns out we really want to retile sometimes. r=@fredj
2011-12-07 07:33:37 -08:00
ahocevar b6df3d871b It turns out we really want to retile sometimes.
The reason is that we want to avoid moveGriddedTiles to run through hundreds of cycles to shift tiles until we reach the new bounds. But containsBounds does not work if extents that cross the date line start on different worlds, so we use intersectsBounds where we can pass the world bounds to handle this case.
2011-12-07 15:55:22 +01:00
fredj 1c9f785998 remove deleted files from build/library.cfg 2011-12-07 15:35:05 +01:00
Frédéric Junod 6725ee1940 Merge pull request #95 from fredj/2708
getFeatureIdFromEvent return value. r=elemoine
2011-12-07 06:28:49 -08:00
fredj b11b33e3ab SelectFeature stops selecting features after a right click on the map 2011-12-07 15:03:39 +01:00
ahocevar f79520cf9d Don't set zoomOffset - maxResolution and numZoomLevels is enough. r=fredj (closes http://trac.osgeo.org/openlayers/ticket/3550) 2011-12-07 14:53:53 +01:00
fredj ae56952f00 replace pageLoading with {show|hide}PageLoadingMsg 2011-12-07 14:18:09 +01:00
fredj 344d645b29 use jquery mobile version 1.0 2011-12-07 14:04:16 +01:00
fredj 03b8406746 Canvas.getFeatureIdFromEvent: return undefined instead of null 2011-12-07 12:08:04 +01:00
fredj 71fbfff02a return undefined instead of false from getFeatureIdFromEvent 2011-12-07 11:59:53 +01:00
fredj d20802369f code simplification 2011-12-07 11:52:04 +01:00
fredj 315c37a075 getFeatureIdFromEvent returns a feature id or undefined, fix getFeatureIdFromEvent docstring 2011-12-07 11:50:58 +01:00
fredj d715a94b0f remove double declaration
(yes, code duplication sucks)
2011-12-07 11:33:34 +01:00
Frédéric Junod 336d6d06ad Merge pull request #94 from fredj/movestart-updateSize
Don't update the map size on 'movestart'. r=elemoine
2011-12-07 01:11:21 -08:00
fredj 9cfa5f562e Don't update the map size on 'movestart' 2011-12-07 09:40:54 +01:00
Frédéric Junod 63cdcaeaac Merge pull request #86 from fredj/addLayer-exception
Instead of throwing an exception, return false if the layer can't be added to the map. r=bbinet,tschaub
2011-12-07 00:33:26 -08:00
ahocevar beb322fbab Use buffer of 4instead of tileLoadingDelay of 0, to make panning smoother on iOS. 2011-12-06 15:30:52 +01:00
Éric Lemoine 736ebab680 Merge remote branch 'upstream/master' 2011-12-06 08:31:47 +01:00
Éric Lemoine 3b2cdfeee0 remove double declaration 2011-12-06 08:31:12 +01:00
Xavier Mamano 7169eba788 build.py -c closure: Show file name and line number of errors and warnings. 2011-12-05 20:11:00 +01:00
Éric Lemoine acaf67b01c Merge pull request #88 from jorix/3594-CC_no-undefined-vars
build.py -c closure: generate an error of undefined variables
2011-12-05 08:20:22 -08:00
Frédéric Junod 6f2f0c47b0 Merge pull request #90 from fredj/2971
Remove undefined variables, r=elemoine
2011-12-05 01:56:18 -08:00
fredj 8c74e616df Remove undefined variables 2011-12-05 09:39:30 +01:00
Éric Lemoine faee5aead9 Merge pull request #89 from jorix/3593
Fix bug in XMLHttpRequest.js where oRequest is undefined. Fix comes from upstream. Patch from @jorix.
2011-12-03 10:29:44 -08:00
Xavier Mamano 9ed75efad1 don't use errors-pending-to-fix.js 2011-12-03 18:32:26 +01:00
Xavier Mamano fb8a7a5adc Apply the patch:
https://github.com/ilinsky/xmlhttprequest/commit/9f1d0fd49b0583073c1ca19e220dc13fe0f509b4
2011-12-03 18:13:40 +01:00
Xavier Mamano 5aba9061b2 Add ticket #3593 in errors-pending 2011-12-03 17:24:57 +01:00
Xavier Mamano 1a5e57a32f build.py -c closure: generate an error of undefined variables 2011-12-03 17:07:10 +01:00
ahocevar d83a96b169 Merge pull request #87 from ahocevar/retile
getTilesBounds fixes and no unnecessary retiling. r=@bartvde
2011-12-02 16:43:46 -08:00
ahocevar 7aa7b98285 fixing indentation 2011-12-03 01:37:42 +01:00
ahocevar d20e6f7c7a removing console.log 2011-12-03 01:36:11 +01:00
ahocevar 08af94cf84 We never need to retile when the zoom didn't change. 2011-12-03 00:13:44 +01:00
ahocevar b70ea9e8c1 Use valid tile bounds and test grid crossing the dateline. 2011-12-03 00:07:04 +01:00
ahocevar 84b30d3699 Don't rely on the bounds of the top-right tile.
When the grid crosses the dateline, the top-right tile is in a different world than the bottom-left one. Instead, use the grid size and tile width/height to calculate the top-right coordinate.
2011-12-03 00:05:26 +01:00
ahocevar c15631ae3e Remove code that never gets called.
OpenLayers.Map has no wrapDateLine property.
2011-12-02 23:57:39 +01:00
ahocevar 88c203074f whitespace change 2011-12-01 19:10:28 +01:00
ahocevar 0560bfa09a Educational addition to the mobile-wmts-vienna example.
It now explains in the source code how to create the layers directly, without requesting the Capabilities document first.
2011-12-01 18:59:32 +01:00
fredj 1135c771b7 Instead of throwing an exception, return false if the layer can't be added to the map. 2011-12-01 16:13:35 +01:00
Tim Schaub 3844b91cd6 Avoiding closure compiler warnings.
These comments are not parsed by Natural Docs and result in unnecessary warnings from closure compiler.
2011-11-30 22:25:38 -08:00
Bart van den Eijnden 2d5a770ab5 remove startbounds in argiscache_jsonp example 2011-11-30 22:33:27 +01:00
ahocevar 47a02f57bc Merge pull request #84 from ahocevar/wait-move
Default pixel tolerance of 2. r=@bartvde
2011-11-30 12:31:57 -08:00
ahocevar c311aa69ea Default pixel tolerance of 2.
This avoids requests to be aborted during hover due to the cursor change caused in some browsers by applying the olCursorWait class.
2011-11-30 20:36:54 +01:00
ahocevar 92cfa0e4ed use proxy url for openlayers.org 2011-11-30 17:48:07 +01:00
ahocevar d418369e93 Updating WMS url.
And while we're at it, use the nicer single argument map constructor so we can reduce the overall amount of code.
2011-11-30 17:32:20 +01:00
fredj efdd9d0eb2 don't create div for image tile when no gutter is used 2011-11-30 14:19:36 +01:00
aabt 5011fb8b96 Merge pull request #78 from fredj/addEventType
Remove call to deprecated events.addEventType function
2011-11-30 01:48:40 -08:00
fredj 6f78dc4c8f Remove call to deprecated events.addEventType function 2011-11-30 09:29:24 +01:00
ahocevar 09f470fa34 Merge pull request #77 from jorix/docs-bug
Documentation errata in Layer.Vector: before instead of after. r=me
2011-11-29 10:10:47 -08:00
Xavier Mamano ec1a44a9f2 before instead of after 2011-11-29 18:29:47 +01:00
Frédéric Junod e960c1929d Merge pull request #76 from fredj/surface-removal
Remove Geometry.Surface, r=tschaub
2011-11-28 07:50:56 -08:00
ahocevar 1db5ac3cbe Merge pull request #75 from ahocevar/filter-tostring
toString implementation for Filter. r=@fredj
2011-11-28 07:00:47 -08:00
fredj dc991e6f85 Remove Geometry.Surface 2011-11-28 12:41:47 +01:00
ahocevar c3fa0875dc toString implementation for Filter.
If Format.CQL is not included in the build, toString from Object will be used.
2011-11-28 12:25:28 +01:00
ahocevar 6f341b1fb5 Use Navigation control for mousewheel zoom on desktop devices 2011-11-25 20:53:15 +01:00
Frédéric Junod cdd1b756df Merge pull request #73 from fredj/cleanup-kamap
Layer.KaMap cleanup, r=ahocevar
2011-11-25 01:25:45 -08:00
fredj 250e686375 Layer.KaMap cleanup
Remove unused units and resolution properties
Simplify Grid.initialize call
2011-11-24 16:21:49 +01:00
Frédéric Junod c3b7c06118 Merge pull request #72 from fredj/unneeded-initialize
Remove unneeded initialize functions, r=elemoine
2011-11-24 02:28:36 -08:00
fredj 44f1cc465e Add missing google api script include 2011-11-24 11:22:31 +01:00
Frédéric Junod d0fbab5b1d Merge pull request #71 from fredj/unneeded-requires
Remove unneeded requires, r=elemoine
2011-11-24 00:22:09 -08:00
fredj 3252fb134d Remove unneeded initialize functions 2011-11-24 09:17:27 +01:00
fredj 4cab9139f2 Remove unneeded requires 2011-11-24 08:59:55 +01:00
tschaub 598ef62cea Remove requires for missing file (see #66). 2011-11-23 17:17:16 -07:00
tschaub 197dcc5a23 Updating readme format to test website update. 2011-11-23 17:14:24 -07:00
Frédéric Junod 23b94f4eef Merge pull request #66 from fredj/gears
move Protocol.SQL.Gears into deprecated.js. r=tschaub,elemoine
2011-11-21 23:55:10 -08:00
Tom MacWright 5875b50a51 Moving camelize and its tests to deprecated 2011-11-21 15:42:46 -05:00
Frederic Junod 7332775d78 Fix Layer.GML unit tests 2011-11-21 19:14:05 +01:00
Frederic Junod 7f2c06c5b7 move Protocol.SQL into deprecated.js 2011-11-21 19:10:26 +01:00
Frederic Junod 8360ddefe3 Merge branch 'upstream-master' into gears 2011-11-21 18:54:48 +01:00
Frédéric Junod 2f802750a3 Merge pull request #65 from fredj/deprecated.js
move Layer.Yahoo and Layer.GML into deprecated.js r=tschaub
2011-11-21 09:40:31 -08:00
fredj 735f49cca0 move Protocol.SQL.Gears into deprecated.js 2011-11-21 12:23:05 +01:00
fredj 127e433592 Remove osm-layer example. 2011-11-21 10:59:30 +01:00
Frédéric Junod d096a2a8ea Merge pull request #58 from jorix/3580-Docs_ZoomBox
ZoomBox: missing API documentation. p=jorix, r=fredj (closes #3580)
2011-11-20 23:56:25 -08:00
Marc Jansen 0d820bf63f Merge pull request #57 from marcjansen/proj4js-example
Added an example that shows how to use the popular Proj4JS library.
2011-11-20 23:02:27 -08:00
Tom MacWright 43ef0920c2 Removing camelize method. 2011-11-20 23:47:37 -05:00
Xavier Mamano d89819c3f2 #3580 ZoomBox: missing API documentation. 2011-11-20 12:25:01 +01:00
Marc Jansen f8255e61d8 Better textual explanation and fewer typos. 2011-11-19 13:12:05 +01:00
Marc Jansen c0138022fa Added an example that shows how to use the popular Proj4JS library. 2011-11-18 23:48:20 +01:00
Xavier Mamano cc1158488a Merge branch 'master' into 3576-MeasureImm 2011-11-18 18:13:26 +01:00
fredj f0d93d1e85 Merge branch 'upstream-master' into deprecated.js 2011-11-18 13:51:19 +01:00
ahocevar f63e5fe060 Merge pull request #55 from ahocevar/more-deprecated
Removing getBoundsFromBaseLayer method. r=@elemoine,@fredj
2011-11-18 04:49:07 -08:00
ahocevar 4b0e45b369 adding comment that the reproject option is deprecated and getBoundsFromLayer is defined in deprecated.js, as suggested by @elemoine. 2011-11-18 13:48:07 +01:00
ahocevar 4d8cd08b91 removing Lang.js and Tile.js dependencies, as suggested by @fredj. 2011-11-18 13:43:06 +01:00
fredj b630840d83 move Layer.GML into deprecated.js 2011-11-18 13:23:49 +01:00
ahocevar 4f58ff0352 Removing getBoundsFromBaseLayer method.
This method is only needed when the deprecated reproject option is set to true.
2011-11-18 13:06:28 +01:00
fredj c82ccb4781 Merge branch 'upstream-master' into deprecated.js 2011-11-18 12:14:45 +01:00
fredj 8d01fa6fd8 move Layer.Yahoo into deprecated.js 2011-11-18 12:13:41 +01:00
Frédéric Junod f713360c67 Merge pull request #52 from fredj/deprecated.js
Move deprecated code into deprecated.js, r=ahocevar
2011-11-18 03:05:29 -08:00
fredj 7f7f946c29 Stop using deprecated Layer.GML in examples 2011-11-18 11:24:33 +01:00
fredj 9f836cd264 Stop using deprecated Layer.GML in tests 2011-11-18 11:07:47 +01:00
Xavier Mamano eae04c92bc cancelDelay before measureImmediate + changes in tests. 2011-11-16 19:51:28 +01:00
fredj a04df3e359 doc typo 2011-11-16 12:52:55 +01:00
ahocevar c207e785f9 Merge pull request #51 from ahocevar/adjust-zoom
Don't let wrapDateLine maps be wider than one world width. r=@bartvde (closes http://trac.openlayers.org/ticket/3574)
2011-11-16 01:25:31 -08:00
fredj 0307bb481c fix namespace for naturaldocs 2011-11-15 16:38:31 +01:00
fredj dd6b54e622 remove duplicate comment 2011-11-15 16:32:03 +01:00
fredj 6836f4dcdf Remove unneeded requires 2011-11-15 10:11:36 +01:00
fredj b07286b21a Don't use deprecated Layer.Grid.getGridBounds function in tests 2011-11-15 09:11:11 +01:00
fredj cc3c89eb2a Don't use deprecated Layer.Grid.getGridBounds function in tests 2011-11-15 09:09:55 +01:00
fredj 1ed137bd0a move Layer.Grid.getGridBounds function into deprecated.js 2011-11-15 09:06:44 +01:00
ahocevar 0b39d32031 Don't let wrapDateLine maps be wider than one world width. 2011-11-14 17:49:41 +01:00
fredj b056b19bf0 move Event.stop function into deprecated.js 2011-11-14 15:59:24 +01:00
fredj 3d0d2cbc4e move Layer.VirtualEarth function into deprecated.js 2011-11-14 15:52:39 +01:00
fredj 71f1f4701b move Layer.MultiMap function into deprecated.js 2011-11-14 15:34:04 +01:00
fredj 37de9273a7 move OpenLayers.Feature.WFS into deprecated.js. 2011-11-14 15:29:12 +01:00
Frederic Junod 9a3dc98458 Remove unneeded requires 2011-11-14 15:29:08 +01:00
Frederic Junod 4afff74b0d Move deprecated functions from OpenLayers.Util into deprecated.js. 2011-11-14 15:29:03 +01:00
Frederic Junod 2900823eb2 Move deprecated Layer.WFS and Tile.WFS into deprecated.js. 2011-11-14 15:28:57 +01:00
Éric Lemoine 29256bd156 Merge pull request #47 from elemoine/pinchzoom
fix bug where center of fingers is not preserved on pinch zoom
2011-11-14 00:44:22 -08:00
ahocevar b5d41fae25 removing trailing comma 2011-11-14 09:34:44 +01:00
ahocevar 553eeb5a04 Merge pull request #50 from ahocevar/wmscaps-singlepass
Process WMSCapabilities property inheritance and flat layers list in a single pass for increased performance.
2011-11-14 00:14:24 -08:00
ahocevar 754312b20b Support for basic literal/propertyname combinations in SLD. r=elemoine (closes http://trac.osgeo.org/openlayers/ticket/3506) 2011-11-13 22:04:07 +01:00
ahocevar 5e4ee5e3c4 No more looping through attributes and complex attributes; set all in the first pass instead. 2011-11-13 17:48:45 +01:00
ahocevar b563989985 no second pass to handle inheritance and nested layer 2011-11-13 17:14:13 +01:00
ahocevar 53963fabe0 Merge pull request #48 from jorix/3158-CC_WinPy24
closure.py: Use temporary file names but manual deletion.
2011-11-12 13:04:37 -08:00
Xavier Mamano e2c3253108 closure.py: Use temporary file names but manual deletion.
Ok Windows+python 2.4
2011-11-12 16:47:57 +01:00
Éric Lemoine 629e14d3c7 PinchZoom.updateContainerOrigin renamed to updateContainerCenter 2011-11-10 21:40:46 +01:00
Éric Lemoine e6f2b0e294 fix bug where center of fingers is not preserved on pinch zoom 2011-11-10 21:35:38 +01:00
Frederic Junod 18b23e944d Don't use deprecated Layer.WFS in tests. 2011-11-10 08:21:16 +01:00
Tim Schaub ec6c5eb74b Merge pull request #43 from tschaub/undeprecated
Move deprecated methods from main lib.  To use deprecated methods and classes in your application, add the deprecated.js script to your build profile.
2011-11-09 11:58:19 -08:00
tschaub 69ad1b7bbe Add dependencies for deprecated.js.
To use deprecated methods, include the "deprecated.js" script in your build profile.
2011-11-09 12:56:05 -07:00
tschaub caaf911081 Merge branch 'undeprecated' of https://github.com/ahocevar/openlayers into undeprecated 2011-11-09 12:24:53 -07:00
tschaub b9cc3834d6 Merge branch 'master' of github.com:openlayers/openlayers into undeprecated 2011-11-09 12:24:42 -07:00
ahocevar 9f1869df2d Don't use deprecated Element.hide and show methods internally. 2011-11-09 11:28:12 +01:00
ahocevar 4d2fb8861d Don't use transition effect for labels, because backbuffers don't work well for transparent layers 2011-11-09 09:52:14 +01:00
Tim Schaub 9605c08a11 Remove extra MapServer subclass. 2011-11-08 22:57:28 -07:00
Tim Schaub 7b6887c954 Remove extra WMS subclasses. 2011-11-08 22:45:13 -07:00
Tim Schaub ab225e36b9 Remove extra tests. 2011-11-08 22:42:46 -07:00
Tim Schaub 5f2a6d410b Deprecated XML.js method. 2011-11-08 22:07:29 -07:00
tschaub b7c826e796 Remove MouseDefaults and MouseToolbar. 2011-11-08 18:32:55 -07:00
tschaub f90d34fad9 Exclude deprecated methods from full build. 2011-11-08 17:10:31 -07:00
tschaub 20e19203d5 Deprecated methods from BaseTypes.js. 2011-11-08 16:48:58 -07:00
tschaub dd5d7c9f07 Remove deprecated methods from Element.js. 2011-11-08 16:37:31 -07:00
tschaub 5db084afe8 Pull Ajax.js from the loader. 2011-11-08 16:37:01 -07:00
tschaub e4d422e781 Deprecated Class.js methods. 2011-11-08 16:24:33 -07:00
tschaub 95e7de2ab4 Deprecated tests for Ajax.js. 2011-11-08 16:17:52 -07:00
tschaub 368ad02bdb Deprecated methods from Ajax.js. 2011-11-08 16:11:43 -07:00
Tim Schaub bce3aced23 Merge pull request #42 from tschaub/convenience
Adding extent, location, and projection convenience.  Where appropriate, literals can be used instead of creating new OpenLayers objects.
2011-11-08 11:05:46 -08:00
tschaub 76bb0be254 Spell projection with p and separate tests to avoid mock issues. 2011-11-08 11:47:59 -07:00
tschaub 00410cf779 Merge branch 'master' of github.com:openlayers/openlayers into convenience 2011-11-08 08:44:33 -07:00
ahocevar 794440750c New WMTS GetCapabilities & RESTful example.
Uses the WMTS server of the ogdwien open data initiative of the City of Vienna. Shows how to build a fullscreen map that works well on both mobile and desktop clients. With lightweight permalinks and Geolocate control.
2011-11-08 11:59:57 +01:00
ahocevar 8e2ab1c530 Fixing tests after #40 2011-11-08 11:38:33 +01:00
ahocevar 4226e45260 Making closure.py also work with Python 2.5 2011-11-07 23:32:27 +01:00
ahocevar c87a087429 updating update script to use git url for trunk 2011-11-07 23:13:40 +01:00
ahocevar f3a0a73add Merge pull request #40 from elemoine/wmtscaps
Make OWSCommon v1 support constraints in Get and Post nodes, and respect the 1..* cardinality.
2011-11-07 14:01:26 -08:00
Éric Lemoine eac8bb5307 Merge remote branch 'ahocevar/wmtscaps' into wmtscaps
Conflicts:
	lib/OpenLayers/Format/OWSCommon/v1.js
	tests/Format/WMTSCapabilities/v1_0_0.html
2011-11-07 22:53:55 +01:00
Éric Lemoine 5e6fbfdc56 Merge branch 'master' into wmtscaps 2011-11-07 22:50:30 +01:00
ahocevar 97bf974b6b new location of the get url 2011-11-07 22:43:48 +01:00
ahocevar ffafa93168 API change to better accommodate for the 1..* cardinality of HTTPType and addition of Constraint 2011-11-07 22:43:23 +01:00
Éric Lemoine 4076c1af99 make OWSCommon v1 support constraints in Get and Post nodes 2011-11-07 22:42:51 +01:00
Éric Lemoine 6c5c468e91 Merge branch 'master' into wmtscaps 2011-11-07 22:42:30 +01:00
ahocevar 98363370b6 Use map.div as container.
map.layerContainerDiv has a dimension now, but we want a container with the full map viewport. r=elemoine (closes http://trac.osgeo.org/openlayers/ticket/3567)
2011-11-07 22:01:20 +01:00
Éric Lemoine 2555813762 commit ef6770 was incorrect, stopObservingElement is to be called, not stopObserving 2011-11-07 18:08:12 +01:00
Éric Lemoine d1c264eae1 Merge remote branch 'upstream/master' 2011-11-07 17:05:19 +01:00
Éric Lemoine ef6770f8f8 call stopObserving in test_createBackBuffer of Tile/Image.html to prevent side-effects, test only change 2011-11-07 17:01:25 +01:00
ahocevar 3752b0572d use ResourceURL for WMTS layers for REST encoding. p=fredj,me r=elemoine,me (closes http://trac.osgeo.org/openlayers/ticket/3044) 2011-11-07 16:56:10 +01:00
Éric Lemoine 797c479b6e make OWSCommon v1 support constraints in Get and Post nodes 2011-11-07 12:29:16 +01:00
Frederic Junod 8b1f684cbd Remove semicolons from viewport meta tag 2011-11-07 10:48:52 +01:00
Éric Lemoine 0bf1169c16 Merge pull request #16 from elemoine/bigbackbuffer
A Big Back Buffer approach
2011-11-01 22:17:02 -07:00
Éric Lemoine c65471c35b Grid tests - do no test the same thing twice 2011-10-30 23:34:52 +01:00
Éric Lemoine 82bf97381c remove commented line in a test 2011-10-30 23:26:23 +01:00
Éric Lemoine 896c2c0580 fix tests, and add new ones 2011-10-30 23:21:00 +01:00
Éric Lemoine db08102fe4 correct bug where the value stored for the top-left corner of the back buffer may be incorrect, thanks @ahocevar for catching the issue 2011-10-30 23:20:42 +01:00
Éric Lemoine c0d210ef05 just skip tiles that are currently loading when creating the back buffer 2011-10-29 21:11:14 +02:00
Éric Lemoine 8df1ae0e09 comparing backBufferData.resolution and serverResolution to know if backbuffering should be applied is wrong 2011-10-29 21:10:23 +02:00
Éric Lemoine c80746b890 Tile.Image.cloneMarkup renamed Tile.Image.createBackBuffer 2011-10-29 12:22:08 +02:00
tschaub 28cc0bd962 Fewer news. 2011-10-28 15:53:16 -06:00
tschaub 1209a31f5b Merge branch 'master' of github.com:openlayers/openlayers into convenience 2011-10-28 15:52:08 -06:00
tschaub bea1a5b24a Concise config. No init. 2011-10-28 15:51:36 -06:00
tschaub e599881a8e Merge branch 'master' of github.com:openlayers/openlayers into convenience 2011-10-28 15:46:46 -06:00
tschaub 58cc225b9b Syntax updates. 2011-10-28 15:45:56 -06:00
tschaub 423bb39f23 Making this example less outdated. 2011-10-28 15:41:53 -06:00
tschaub eb6279c4d0 Removing oam layer (service not up). 2011-10-28 15:31:10 -06:00
tschaub 80219dc03c Merge branch 'master' of github.com:openlayers/openlayers into convenience 2011-10-28 15:23:41 -06:00
Éric Lemoine f3e0ac9425 remove double variable declarations, and make jslint happier 2011-10-28 23:00:13 +02:00
Éric Lemoine 2f80d52bfd in single tile mode with no transition effect remove the back buffer when zooming 2011-10-28 22:57:10 +02:00
Éric Lemoine 46de595f55 Merge branch 'master' into bigbackbuffer 2011-10-28 21:26:59 +02:00
Tim Schaub 824160ecb0 Merge pull request #30 from fredj/unneeded
remove unneeded activate and deactivate functions
2011-10-27 12:09:20 -07:00
tschaub a606e565d3 Allow transforming geometries, lonlat, and bounds with strings. 2011-10-26 16:23:48 -06:00
tschaub 98d6e74314 Allow testing for projection equality with string. 2011-10-26 16:22:51 -06:00
tschaub fb790424a5 Allow array for min/maxExtent in layers. 2011-10-26 16:02:51 -06:00
tschaub 98ee7167c4 Allow use of array for bounds. 2011-10-26 15:40:40 -06:00
tschaub 75a1a8e119 Allow setting center from array. 2011-10-26 15:22:13 -06:00
tschaub 415c8f9e0c Removing example as the service has been discontinued. 2011-10-25 17:31:25 -06:00
tschaub 3e163910f7 Tweak maxExtent docs to link to restrictedExtent. 2011-10-25 17:20:12 -06:00
Tim Schaub 8ea4c47a13 Merge pull request #23 from tmcw/max-extent-doc
Improve maxExtent documentation.  Thanks @tmcw.
2011-10-25 16:17:28 -07:00
Tom MacWright 9af5126c31 Improve maxExtent documentation 2011-10-25 17:20:15 -04:00
ahocevar 6dc36e90ac Declaring inRange variable. No functional change. 2011-10-25 18:52:00 +02:00
Éric Lemoine f6773d32c9 Merge pull request #21 from elemoine/wmtscaps
read legendURL and Dimension from WMTS capabilities docs
2011-10-25 06:51:16 -07:00
ahocevar eeb5af192c Fixing the example for Android 2.x 2011-10-25 08:54:07 +02:00
Éric Lemoine babbfa20b0 read legendURL and Dimension from WMTS capabilities docs 2011-10-24 16:07:00 +02:00
Tim Schaub daa16c08b1 Merge pull request #20 from drnextgis/feature
Fix unterminated statements
2011-10-23 01:16:20 -07:00
rda 81fd4adb4f Fix unterminated statements 2011-10-23 14:24:30 +07:00
Tim Schaub 5486caf1c2 Merge pull request #18 from drnextgis/feature
Delete last comma in object literal.  Thanks @drnextgis.
2011-10-22 23:00:22 -07:00
Tim Schaub f0f76cc8fd Merge pull request #19 from drnextgis/feature2
Fix CSS errors.  Thanks @drnextgis.
2011-10-22 22:57:03 -07:00
rda b4a42c8446 Fix CSS errrors 2011-10-23 07:53:41 +07:00
rda b97d0b28c1 Fix CSS errors 2011-10-23 00:05:13 +07:00
rda 3ad5db431a Delete last comma in object literal 2011-10-22 23:59:28 +07:00
Bart van den Eijnden 155108f10b OpenLayers.Format.WPSExecute fails with WFS references, p=ahocevar,me r=ahocevar (closes #3448) 2011-10-21 13:52:50 +02:00
Éric Lemoine 7ad7e4d57c better comments for Layer.Grid.getServerResolution, no functional change 2011-10-21 09:35:30 +02:00
Éric Lemoine d33bd6e2db Merge branch 'master' into bigbackbuffer 2011-10-21 00:14:19 +02:00
Éric Lemoine abcc74cbc7 give a class to the back buffer 2011-10-21 00:13:16 +02:00
Éric Lemoine 55c2f0e047 better comments in Image/IFrame.js 2011-10-20 23:08:16 +02:00
Éric Lemoine 667d21137f purely cosmetic change 2011-10-20 23:05:34 +02:00
Éric Lemoine 8aaf9ee775 remove the unnecessary SUPPORTED_TRANSITIONS array 2011-10-20 23:05:08 +02:00
Éric Lemoine dc0867e655 remove the Tile.BackBufferable tests 2011-10-20 23:04:17 +02:00
Éric Lemoine 9bab78cde8 more Layer.Grid tests 2011-10-20 23:03:28 +02:00
Éric Lemoine 17dc9c2b58 fix test_Layer_Grid_addTileMonitoringHooks 2011-10-20 22:02:39 +02:00
Éric Lemoine bed285593f add tests for Layer.Grid 2011-10-20 21:55:30 +02:00
Frédéric Junod e223eef159 Fix comment, no functional change 2011-10-20 11:14:21 +03:00
Frédéric Junod 0944be7b28 Fix comment, no functional change 2011-10-20 10:40:44 +03:00
Éric Lemoine 39eca86083 replace test_insertBackBuffer by test_cloneMarkup in the Tile/Image.html tests 2011-10-19 23:50:43 +02:00
Éric Lemoine 76e8a800da special precautions must be taken in updateBackBufferData 2011-10-19 23:47:25 +02:00
Éric Lemoine 7ffec2e88b Make the IFrame.html tests pass 2011-10-19 23:19:52 +02:00
Éric Lemoine 853bfeaee1 necessary adaptations to the Tile.IFrame mixin - back buffering is disabled when using POST and iframe tiles 2011-10-19 23:19:29 +02:00
Éric Lemoine a37202ac09 remove BackBufferable.js from the js files list in OpenLayers.js 2011-10-19 23:15:17 +02:00
Tim Schaub 3e9015879c Correcting typos in comments, no functional change (closes #15). 2011-10-19 15:05:19 -06:00
Éric Lemoine f9ae12f227 minor refactoring in Layer.Grid - add a removeBackBuffer function 2011-10-19 20:42:34 +02:00
Éric Lemoine b39f4fde1c remove Tile.Image:insertBackBuffer and add API docs for Tile.Image:cloneMarkup 2011-10-18 08:25:46 +02:00
Éric Lemoine 0971124669 Tile.Image inherits from Tile 2011-10-18 08:25:02 +02:00
Éric Lemoine 1bffc4fe28 Tile/Image.js does not require Tile/BackBufferable.js 2011-10-18 08:24:32 +02:00
Éric Lemoine 475f96db96 back buffer is not correctly repositioned 2011-10-18 08:11:43 +02:00
fredj 6c0f11da67 remove unneeded activate and deactivate functions 2011-10-17 15:00:16 +02:00
Éric Lemoine 5ae65d413a the layer may not be in the map anymore when a tile is received 2011-10-16 22:40:11 +02:00
Éric Lemoine 2dbbef8c6f ok, remove Tile.BackBufferable 2011-10-16 22:32:57 +02:00
Éric Lemoine bea037679f better back buffer code, and support for singleTile 2011-10-16 22:31:37 +02:00
Éric Lemoine 8ca9f22cf5 Merge branch 'master' into bigbackbuffer 2011-10-16 15:55:13 +02:00
Éric Lemoine 93ed63e23d a better tile for the OSM example page, no functional change 2011-10-16 15:51:10 +02:00
Éric Lemoine 1d7c74cff9 remove unused local variable in BackBufferable:draw, no functional change 2011-10-16 15:50:16 +02:00
Éric Lemoine 69d3c76254 a "big back buffer" attempt 2011-10-15 23:48:13 +02:00
ahocevar 469350176f Merge pull request #11 from ahocevar/3526
Dateline handling improvements for vector layers. Thanks @tschaub for the great collaboration on this. r=tschaub (closes #3526)
2011-10-12 23:06:47 -07:00
ahocevar 740e3c4d28 Defaults for featureDx and xOffset.
This is mostly done to make SVG and VML tests pass again, but it may also help existing applications that override setExtent or drawFeature without calling the superclass methods properly.
2011-10-12 08:25:20 +02:00
Tim Schaub 6af8178452 Enforcing existing zoomToExtent behavior.
The Map.html and WrapDateLine.html tests that check zoomToExtent were failing with the changes to this method.  These test changes make the expectations more explicit.  It is inconsistent to call wrapDateLine only in zoomToExtent, but this is the minimum change to get the tests passing again.  It would be more consistent to call wrapDateLine in the setCenter sequence.
2011-10-11 21:14:07 -06:00
Tim Schaub ea8404c3bd Fixing up the WFS tile (ack) tests. 2011-10-11 19:56:42 -06:00
tschaub 8a3498bd0f Setup and teardown for WFS tile tests. Still need work. 2011-10-11 15:26:51 -06:00
tschaub b4de402774 Properly set up and tear down for tests. 2011-10-11 15:22:50 -06:00
tschaub d65fde60e2 Avoid test failures due to partial mocking.
Add setup and teardown methods to properly set up test context.
2011-10-11 15:11:03 -06:00
tschaub cb74ede41b Handle features without bounds.
Updates to tests to work with new wrap dateline code.  Canvas renderer needs to handle geometries without bounds as well.
2011-10-11 14:48:10 -06:00
tschaub c2bf717e5c Merge branch 'master' of github.com:openlayers/openlayers into 3526 2011-10-11 09:42:49 -06:00
tschaub fc5a0121e6 The getFeatureFromEvent method now throws (see #7). 2011-10-11 09:36:43 -06:00
tschaub c6e66a3c5c The getFeatureFromEvent now throws.
An error is thrown if getFeatureFromEvent is called on a destroyed layer (see #7).
2011-10-11 09:34:38 -06:00
fredj b1ee9d1f95 fix APIProperty formating, thanks Denis Rykov 2011-10-10 16:26:23 +02:00
Bart van den Eijnden 64f111a308 add infoFormats to WMSCapabilities Format, r=ahocevar (closes #3539) 2011-10-10 08:24:24 +02:00
Marc Jansen 760d5a584c Reverse QUERY_LAYERS order in GetFeatureInfo requests. r=bartvde (closes #3253) 2011-10-09 15:53:12 +02:00
Éric Lemoine c4c4f97334 Merge pull request #10 from elemoine/3061
IE<7 needs a reflow when the tiles are loaded
2011-10-09 01:31:21 -07:00
ahocevar 9670b140cb Tests for calculateFeatureDx 2011-10-09 10:10:21 +02:00
ahocevar 8c43c4537c Merge branch 'master' into 3526 2011-10-09 09:54:45 +02:00
ahocevar b56af5a5cf Tests for setExtent; improved comments. 2011-10-08 14:34:59 -04:00
ahocevar 281ae3dfe7 new calculateFeatureDx method which is used by both Canvas and Elements renderers. 2011-10-08 12:26:19 -04:00
ahocevar f2fcb5a95c Canvas renderer needs to return false from setExtent 2011-10-08 12:21:51 -04:00
ahocevar bb80c893fd Documenting the featureDx, xOffset and rightOfDateLine member variables. 2011-10-08 12:03:16 -04:00
ahocevar 2cfe6f83c2 Cross-dateline rendering fixed for SVG and added for VML renderer. 2011-10-08 11:33:35 -04:00
Éric Lemoine 89388880b7 do not return too early from onImageLoad 2011-10-08 00:22:22 +02:00
Éric Lemoine 1ee40cec02 IE<7 needs a reflow when the tiles are loaded 2011-10-08 00:06:28 +02:00
Éric Lemoine 2c93a90c9b Merge pull request #5 from elemoine/clientzoom
add continuous zooming support for tiled layers
2011-10-07 13:30:50 -07:00
Éric Lemoine 8786504c9f Merge pull request #8 from fredj/unneeded-cast
remove unneeded cast to float
2011-10-07 13:27:40 -07:00
Tim Schaub 4ad80fc6c0 Merge pull request #9 from tschaub/date
Making date parsing a bit more lenient (r=ahocevar closes #3542).
2011-10-07 08:29:13 -07:00
Tim Schaub 6eebcc5be0 Making date parsing a bit more lenient.
RFC 3339 doesn't say what timezone to assume for date strings without time.  Some servers append "Z" to dates (e.g. "2001-02-03Z") and some clients accept this (e.g. Chrome).  The OpenLayers date parser now accepts dates without times and with "Z" at the end.
2011-10-07 10:50:56 -04:00
Éric Lemoine d8283ba602 better text for the clientzoom example 2011-10-07 13:57:24 +02:00
Éric Lemoine fed387804e base-10 parseInt 2011-10-07 13:43:55 +02:00
Éric Lemoine 85d3e8d5e9 Merge branch 'master' into clientzoom 2011-10-07 13:36:58 +02:00
fredj ef1feac748 remove unneeded parseFloat when building Bounds 2011-10-07 09:09:26 +02:00
ahocevar 627f32ff39 Merge branch 'master' into 3526 2011-10-06 18:21:05 -04:00
ahocevar 0afb5207e2 Allow filters in WFST for multiple geometry columns. r=bartvde (closes #3370) 2011-10-06 18:02:27 -04:00
Frederic Junod 6026f60276 remove unneeded parseFloat when building Bounds 2011-10-06 14:37:12 +02:00
Frederic Junod 54e5db90ae remove unneeded parseFloat when building Geometry.Point 2011-10-06 14:32:38 +02:00
Frédéric Junod 00e2e1bd59 Merge pull request #7 from fredj/3320
Replace OpenLayers.Console.error with exceptions. r=elemoine,bbinet (closes #3320)
2011-10-06 02:03:48 -07:00
ahocevar 91cd42bfe6 Removing unused image load error handling code. r=fredj (closes #3420) 2011-10-05 14:51:22 -04:00
aabt 4c610135fd Merge pull request #6 from fredj/master
group identical css rules
2011-10-04 02:46:33 -07:00
fredj dcd6b20070 group identical css rules. No functional change 2011-10-04 11:41:39 +02:00
ahocevar de8425db17 world shifting for renderers 2011-10-02 15:40:44 -06:00
ahocevar 868757501f deal with the dateline in the SVG renderer. Not yet fully functional. 2011-10-02 15:40:13 -06:00
Éric Lemoine ded64c00d4 apply patch-3531-A0.diff from trac ticket #3531 2011-10-01 21:41:35 +02:00
ahocevar 49e4547865 Merge branch '3526' of https://github.com/tschaub/openlayers into 3526 2011-09-30 17:31:45 -06:00
ahocevar b782df0849 Merge branch 'master' into 3526 2011-09-30 17:31:31 -06:00
ahocevar cce8ad4f1b Merge pull request #4 from ahocevar/3533
removing unneeded code. r=tschaub (closes #3533)
2011-09-30 16:27:42 -07:00
tschaub 38e59965f1 Quicker route to contains when wrapping.
Instead of moving one world at a time and testing for containment, we can jump immediately by the number of worlds we are away from the bounds.
2011-09-30 16:53:33 -06:00
ahocevar d4fb441da8 removing unneeded code 2011-09-30 14:57:46 -06:00
tschaub b82a24ef36 Determine how many worlds away we are instead of simply wrapping. 2011-09-30 13:22:29 -06:00
tschaub fe08a843ee Don't cache newRight or newLeft while changing bounds. 2011-09-30 13:20:15 -06:00
ahocevar 449042d567 making renderer configurable 2011-09-30 11:29:35 -06:00
tschaub d8c269c891 Update example to use canvas renderer and start with some features. 2011-09-29 19:51:54 -06:00
tschaub 9ab440e615 Calculate x-offset for features outside the world bounds. 2011-09-29 19:51:20 -06:00
tschaub f5f93ac947 Don't render if feature doesn't intersect renderer extent in a warped sense. 2011-09-29 19:50:11 -06:00
tschaub 2549935a8a Only hide features if they don't intersect in a wrapped sense. 2011-09-29 19:48:20 -06:00
tschaub cc81657907 Always left justify the renderer extent. 2011-09-29 19:46:53 -06:00
tschaub 5925cb12d7 Only shift extents that cross once. 2011-09-29 19:46:00 -06:00
tschaub d291b970a4 Merge branch '3526' of https://github.com/ahocevar/openlayers into 3526 2011-09-29 18:06:38 -06:00
ahocevar 5f367cb8d9 Merge branch 'master' into 3526 2011-09-29 18:06:14 -06:00
ahocevar 9907d11c93 Merge branch '3526' of https://github.com/tschaub/openlayers into 3526 2011-09-29 17:52:35 -06:00
tschaub cb4c9baeb0 Merge branch '3526' of https://github.com/ahocevar/openlayers into 3526 2011-09-29 17:52:17 -06:00
ahocevar db4cbac247 Merge branch 'master' into 3526
Conflicts:
	lib/OpenLayers/Tile.js
2011-09-29 17:51:35 -06:00
Tim Schaub 4c4692a6bd Merge pull request #3 from tschaub/3532
Passing renderer options to the sketch layer (r=ahocevar, closes #3532).
2011-09-29 16:33:00 -07:00
tschaub c743d3e8a5 Passing renderer options to the sketch layer.
The draw feature control should pass preferred render and other renderer options to the sketch handler.
2011-09-29 17:26:23 -06:00
tschaub 275b310bda Coordinates that are easier to visualize. 2011-09-29 16:08:38 -06:00
ahocevar 085c1156c2 simplified the example a bit; improved description 2011-09-29 13:54:05 -06:00
ahocevar 2e6c9bfdc2 Remove action that is now covered by wrapDateLine.
With the changes in wrapDateLine, we don't have to shift the bounds here any more.
2011-09-29 13:53:32 -06:00
ahocevar 23a17fc355 use tolerance for correct tile bounds shifting 2011-09-29 13:39:16 -06:00
ahocevar 0277eb1ed3 worldBounds option for containsLonLat.
This is basically the same enhancement we made for intersectsBounds, and we no longer have to do dateline shifting in other components to get proper containsLonLat results.
2011-09-29 13:38:40 -06:00
ahocevar dc6989b9f0 adding missing comma 2011-09-29 13:35:22 -06:00
ahocevar c2582c1970 use tolerance for crosses right / force left 2011-09-29 13:35:00 -06:00
tschaub 516914c935 Push dateline wrapping to intersectsBounds method.
It should simplify things by pushing the dateline wrapping stuff into the intersectsBounds method.
2011-09-29 12:21:05 -06:00
ahocevar c53374c797 always start the map extent on the right of the dateline 2011-09-29 10:03:02 -06:00
ahocevar cca0bf5e38 Check for map first. No functional change, but fixes tests and does not hurt (see #3521) 2011-09-28 15:07:55 -06:00
ahocevar dd48ea3cbc no need to load the GMaps API. 2011-09-28 14:46:00 -06:00
ahocevar 949a5db60e Improved dateline handling for Grid layers. r=bartvde (closes #3521) 2011-09-28 07:43:58 -06:00
ahocevar dfdcdb8d33 improvements suggested by bartvde 2011-09-28 07:41:00 -06:00
Bart van den Eijnden 8edb26d579 Revert "DragFeature control should trigger afterfeaturemodified, r=crschmidt (closes #3277)"
This reverts commit a46489db1a.
2011-09-28 10:31:32 +02:00
fredj fba7cf86bf use OpenLayers.String.contains instead of the deprecated 'contains' function. No functional change. 2011-09-28 09:35:44 +02:00
fredj 2f4e034ef2 replace VirtualEarth layers with Bing in examples. No functional change. 2011-09-28 09:17:38 +02:00
ahocevar d48b3e7df4 deprecating OpenLayers.Layer.VirtualEarth. No functional change. 2011-09-27 16:25:41 -06:00
ahocevar 99d012f321 only change bounds when wrapDateLine is true; remove unused variable 2011-09-27 07:38:22 -06:00
ahocevar 61a3c2a072 only change bounds when wrapDateLine is true; remove unused variable 2011-09-27 07:37:08 -06:00
ahocevar 6925ac0ab1 use OSM as base layer 2011-09-26 11:24:31 -06:00
fredj 7b410915a0 Merge remote branch 'upstream/master' into 3320 2011-09-23 15:47:49 +02:00
Bart van den Eijnden 6936acd7c7 ArgParser does not deal well with fractionalZoom, r=fredj (closes #3515) 2011-09-23 15:36:18 +02:00
Bart van den Eijnden a46489db1a DragFeature control should trigger afterfeaturemodified, r=crschmidt (closes #3277) 2011-09-23 14:47:07 +02:00
Bart van den Eijnden 807b0eabaa cannot draw a label with value 0, r=fredj (closes #3258) 2011-09-23 14:44:23 +02:00
Marc Jansen 8bcbb069b5 Remove global variable 'headerKey', no functional change. 2011-09-22 04:52:35 +02:00
Marc Jansen 6b30856a07 Give our requests the popular but non-standard X-Requested-With
header (r=crschmidt, closes #3491).
2011-09-22 02:57:39 +02:00
crschmidt 81cfbe2f80 Merge pull request #1 from crschmidt/closurews
Modify build script to support minimizing with jsmin before passing to closure web service (Closes #3422)
2011-09-20 20:15:27 -07:00
Xavier Mamano 4447d3c8db Modify build script to support minimizing with jsmin before passing to closure
webservice for closure_ws. (Closes #3422)
2011-09-20 23:13:57 -04:00
fredj 6e9a3e4c13 don't translate error message and replace console log with exception 2011-09-20 15:21:16 +02:00
Marc Jansen 91f610f19c revert my commit rights test (dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf) 2011-09-20 05:50:45 +02:00
Christopher Schmidt b375c7c473 I *think* we need a rebase in here to stop the silly merge comments. 2011-09-19 21:34:48 -04:00
Christopher Schmidt 59ed969265 Merge branch 'master' of github.com:openlayers/openlayers 2011-09-19 21:33:16 -04:00
Christopher Schmidt 4153162ca7 Merge branch 'master' of github.com:openlayers/openlayers 2011-09-19 21:32:51 -04:00
Christopher Schmidt 9fc1cfc30f Document why this hack is only applied in a limited set of situations;
(Closes #3478)
2011-09-19 21:32:22 -04:00
Example User f5305679ef Merge branch 'master' of github.com:openlayers/openlayers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12401 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-20 01:19:54 +00:00
Example User b2ea600466 testing commit rights
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12400 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-20 01:10:14 +00:00
Bart van den Eijnden 720184e9cd add missing requires, non-functional change 2011-09-19 17:41:24 +02:00
Marc Jansen fef5f899f4 testing commit rights 2011-09-18 18:11:56 +03:00
Example User 290b6c886d Update script
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12399 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-17 23:04:32 +00:00
Christopher Schmidt 4622f3221d Update script 2011-09-17 17:03:46 -06:00
Frédéric Junod aec956aa79 use olImageLoadError class to hide unavailable img. non functional changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-17 19:49:11 +00:00
Frédéric Junod 9264d57a3c remove unneeded destroy and initialize function. r=erilem (closes #3341)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12386 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-17 19:20:40 +00:00
Frédéric Junod 501b42228a remove event type list from Events (lazy listener initialization) p=tschaub,me r=erilem (closes #2555)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-17 19:09:40 +00:00
Frédéric Junod 67a5743d91 remove unneeded requires from OpenLayers/Protocol/HTTP.js r=erilem (closes #3469)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12383 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-17 18:41:53 +00:00
Éric Lemoine 771e69da61 add a git_to_svn.sh script
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12380 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-17 18:01:29 +00:00
Marc Jansen 57c16b7345 Various enhancements to the testsuite:
- split resources of the suite (CSS, HTML, !JavaScript)
  - dedicated files for our changes to the suite
  - CSS enhancements (e.g. hover colors)
  - a simple quicksearch/filter for the list of testfiles (Only for browsers that support querySelectorAll)
  - links to the testfiles to easily bypass browser cache
  - running time info panel
  - detailed total number of testcases that failed/were ok

Non-functional change (closes #3507)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@12378 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-17 17:36:14 +00:00
crschmidt 6cf0dbfc13 Making this box have size... which it doesn't for some reason. weird.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12372 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-15 20:18:33 +00:00
Tim Schaub b08b956894 Enabling kinetic dragging on the mobile draw example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12371 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-15 15:40:50 +00:00
pgiraud f50d1c85d8 Adding support for write in the GPX format, r=marcjansen, (Closes #3495)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12370 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-15 12:27:56 +00:00
ahocevar 2a65d77108 no layer switcher needed for the test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12369 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-14 19:44:29 +00:00
ahocevar aefb89be8b new manual test to see the unexpected tilt on google layers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12368 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-14 19:39:21 +00:00
ahocevar 85025c5c46 better description
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12367 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-14 18:54:02 +00:00
ahocevar 6c01581c53 better title and description
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12366 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-14 18:47:24 +00:00
ahocevar 3787396575 new manual test that shows that Google layer and overlays are not in sync
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12365 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-14 18:42:14 +00:00
ahocevar e8d3108f1e allow renderer switching
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12364 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-14 18:17:49 +00:00
ahocevar 8bf0d74291 reverting accidently committed changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12358 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-12 04:31:16 +00:00
ahocevar 22bd5fa546 also consider the resolutions array if no zoomOffset is provided. r=bartvde (closes #3485)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12357 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-12 04:26:32 +00:00
ahocevar 98be6e313b Making sketch handlers work over the dateline by using layer.getLonLatFromViewPortPx instead of map.getLonLatFromPixel. Thanks bartvde for the unit and acceptance tests. r=bartvde (closes #2787)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12346 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-08 17:53:44 +00:00
bartvde 21423cefe2 fix up tests in IE because of invalid XML fragments in WMS Capabilities 1.1.1 testcase (closes #3449)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12343 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-08 06:24:12 +00:00
Marc Jansen a8e99486b8 Revert my accidental commit [12335].
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12340 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-07 19:26:02 +00:00
Frédéric Junod 80f3c81f11 measure example: add renderer url param. non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12336 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-07 16:00:09 +00:00
Marc Jansen 6006a12720 - switch to 900913
- add google 
- add osm
- fix numerous smaller bugs
- smaller refactorings


git-svn-id: http://svn.openlayers.org/trunk/openlayers@12335 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-07 14:57:05 +00:00
Frédéric Junod 461b4e079f change comment about buffer default value (see #3111)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-07 14:41:58 +00:00
crschmidt 735c5e2402 "Google base layer not showing when switching base layers" -- patch by
bartvde, r=me, (Pullup #3475)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@12318 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-03 15:32:23 +00:00
Tim Schaub 663392b10e Despite our best efforts to comply, we have been told that this layer violates the Google Maps Terms of Service. Without rendering their full map interface, they have no way of controlling the user experience, dropping in ads, and the like. (closes #3481)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-01 19:07:37 +00:00
Bruno Binet b339043a41 remove trailing space in @requires dependencies (no functionnal changes)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12291 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-31 07:31:05 +00:00
ahocevar d75f3552cd unregister load and error handlers after blank image is loaded. r=sbrunner,pgiraud (closes #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12286 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-30 18:37:11 +00:00
Frédéric Junod 228fab098d fix jsdoc tag, makes Closure Compiler happy. no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12278 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-25 08:30:11 +00:00
Frédéric Junod 497f7c9105 fixing error in comments. Non-functional change (see #3163)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12272 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-24 14:23:59 +00:00
bartvde a32b8bab62 update test function docs to match what the test function now does, non-functional change (see #3474)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12270 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-24 06:20:45 +00:00
bartvde 50704395bb make sure the for loop for lods is not messed up by frameworks changing the Array.prototype, p=dzwarg, r=me (closes #3474)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-24 06:18:55 +00:00
bartvde bb41c99524 fix closure build on Windows, p=jorix, r=me, thanks to mprins and scaddenp, I've verified that the build still works on OSX (closes #3158)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12268 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-22 10:10:46 +00:00
Frédéric Junod a31b8e444f Simplify Layer.HTTPRequest initialize function. r=erilem (pullup #3470)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12267 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-22 06:56:28 +00:00
Frédéric Junod 6a66871492 fix api doc typo, no functionnal changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12261 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 14:16:44 +00:00
Frédéric Junod d4a0128ba8 update the arcgiscache_jsonp example to use OpenLayers.Protocol.Script instead of the JSONP from jquery
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12260 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 10:15:44 +00:00
ahocevar 02553ae595 Using dereferenced variable. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12259 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 09:54:42 +00:00
ahocevar c78385aa49 fixing a typo (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12258 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 09:41:14 +00:00
Frédéric Junod 6ba6527ef7 fix jsdoc tag, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12257 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 06:30:39 +00:00
bartvde 85455619ec filter on snapping target does not work for all filter types, r=ahocevar (closes #3468)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-17 13:47:08 +00:00
Tim Schaub 74af61d898 Updating the date tests to work against Firefox 6 (and any other implementations that throw RangeError). closes #3461
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12254 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-17 02:29:09 +00:00
Tim Schaub c517de52f5 Making freehand drawing work on touch devices. Thanks jorix for the excellent patch. r=me (closes #3456)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-17 02:13:06 +00:00
Tim Schaub 98eabd4d89 Adding missing requires (see #3467).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-17 01:07:59 +00:00
ahocevar de1d2cea92 avoid empty image placeholder in webkit browsers (and maybe an extra reflow) by setting initial display to 'none' as well. I take erilem's commit comment as still valid for this follow-up commit. (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-16 18:42:58 +00:00
Tim Schaub 541b3dc7ae Changing the named callback to avoid having the returned script call a function. This allows the protocol to be used with servers that sanitize callback identifiers for security. Great patch from vmische. r=me (closes 3417).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12250 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-15 18:27:55 +00:00
ahocevar 0ebec29df1 Fixing tests after r12247 - img.src is now only available after a delay, because it is set in the load handler after setting a blank image as src. There is no need to check for img.src in layer tests, because this is asserted by Tile.Image tests (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12249 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-15 16:30:43 +00:00
bartvde c587865bb1 deleting a vertex does not set feature.modified, this is a regression since in OL 2.10 a WFS transaction would include all fields, but 2.11 is smarter in the sense that it filters out fields that have not changed in the Transaction XML, which in this case, i.e. deleting a vertex, results in no geometry in the WFS transaction, r=tschaub (pullup #3463)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12248 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-15 16:26:34 +00:00
ahocevar 652f2729cd a bit more code, but this finally fixed the loading image placeholder issue in FF (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12247 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-14 15:56:33 +00:00
ahocevar fdd5e8cb06 reverting again - this time I broke things in Opera (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12246 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-14 15:12:59 +00:00
ahocevar eabde4f74f Fixing the issue with loading image placeholders in FF >= 4 that was discussed during the review. I take erilem's final comment as permission to commit this without an additional review (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12245 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-14 14:33:00 +00:00
ahocevar fd8003464e reverting r12243, because it breaks the loadend event (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12244 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-13 09:17:24 +00:00
ahocevar 0daaa12059 using blank image to avoid the "Loading Image" frames on Firefox that were discussed during the review (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12243 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-13 08:15:36 +00:00
ahocevar 23c9092201 Tile.Image improvements and partial rewrite. Thanks erilem for the excellent collaboration during the review phase. p=me,erilem r=erilem (closes #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12241 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-13 00:59:01 +00:00
ahocevar a8d3d6a5b4 opacity fixes required after reverting r12185. r=mosesonline (closes #3441)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12240 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-12 21:17:22 +00:00
Éric Lemoine fe5b8a7a78 a grid layer may be moved while its grid hasn't been initialized yet, r=ahocevar (references #3458)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-11 13:21:04 +00:00
Éric Lemoine 8647445636 Grid.html tests may fail because http://octo.metacarta.com/cgi-bin/mapserv does not respond, test only change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12235 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-11 11:51:57 +00:00
ahocevar 94c1c7906c reverting r12228 and r12185 (closes #3431)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:35:27 +00:00
ahocevar cc5818d4c7 reverting r12185 (closes #3431)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:29:31 +00:00
ahocevar fecc4d81b0 reverting r12228
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:28:47 +00:00
ahocevar b0e2a0cc56 IE8 specific fix for opacity. r=erilem (closes #3431)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:04:53 +00:00
ahocevar 92546caa9e making 1 the default for layer opacity. p=mosesonline,me r=me (closes #3441)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12227 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-09 17:33:37 +00:00
740 changed files with 27994 additions and 19453 deletions
+7
View File
@@ -0,0 +1,7 @@
/build/OpenLayers.js
/tools/closure-compiler.jar
/tools/*.pyc
/apidoc_config/Data/
/doc/apidocs/
/examples/example-list.js
/examples/example-list.xml
+17 -42
View File
@@ -48,7 +48,6 @@ SubTitle: JavaScript Mapping Library
Group: OpenLayers { Group: OpenLayers {
File: OpenLayers (no auto-title, OpenLayers.js) File: OpenLayers (no auto-title, OpenLayers.js)
File: Ajax (no auto-title, OpenLayers/Ajax.js)
Group: BaseTypes { Group: BaseTypes {
@@ -81,9 +80,7 @@ Group: OpenLayers {
File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js) File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js)
File: Measure (no auto-title, OpenLayers/Control/Measure.js) File: Measure (no auto-title, OpenLayers/Control/Measure.js)
File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js) File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js)
File: MouseDefaults (no auto-title, OpenLayers/Control/MouseDefaults.js)
File: MousePosition (no auto-title, OpenLayers/Control/MousePosition.js) File: MousePosition (no auto-title, OpenLayers/Control/MousePosition.js)
File: MouseToolbar (no auto-title, OpenLayers/Control/MouseToolbar.js)
File: Navigation (no auto-title, OpenLayers/Control/Navigation.js) File: Navigation (no auto-title, OpenLayers/Control/Navigation.js)
File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js) File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js)
File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js) File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js)
@@ -118,7 +115,6 @@ Group: OpenLayers {
File: Feature (no auto-title, OpenLayers/Feature.js) File: Feature (no auto-title, OpenLayers/Feature.js)
File: Vector (no auto-title, OpenLayers/Feature/Vector.js) File: Vector (no auto-title, OpenLayers/Feature/Vector.js)
File: WFS (no auto-title, OpenLayers/Feature/WFS.js)
} # Group: Feature } # Group: Feature
Group: Filter { Group: Filter {
@@ -152,9 +148,6 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/Filter/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/Filter/v1_1_0.js)
} # Group: Filter } # Group: Filter
File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js)
File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js)
Group: GML { Group: GML {
File: GML (no auto-title, OpenLayers/Format/GML.js) File: GML (no auto-title, OpenLayers/Format/GML.js)
@@ -163,15 +156,24 @@ Group: OpenLayers {
File: v3 (no auto-title, OpenLayers/Format/GML/v3.js) File: v3 (no auto-title, OpenLayers/Format/GML/v3.js)
} # Group: GML } # Group: GML
Group: SLD {
File: SLD (no auto-title, OpenLayers/Format/SLD.js)
File: v1 (no auto-title, OpenLayers/Format/SLD/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/SLD/v1_0_0.js)
} # Group: SLD
File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js)
File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js)
File: GPX (no auto-title, OpenLayers/Format/GPX.js) File: GPX (no auto-title, OpenLayers/Format/GPX.js)
File: JSON (no auto-title, OpenLayers/Format/JSON.js) File: JSON (no auto-title, OpenLayers/Format/JSON.js)
File: KML (no auto-title, OpenLayers/Format/KML.js) File: KML (no auto-title, OpenLayers/Format/KML.js)
File: OGCExceptionReport (no auto-title, OpenLayers/Format/OGCExceptionReport.js) File: OGCExceptionReport (no auto-title, OpenLayers/Format/OGCExceptionReport.js)
File: OSM (no auto-title, OpenLayers/Format/OSM.js) File: OSM (no auto-title, OpenLayers/Format/OSM.js)
File: OWSCommon (no auto-title, OpenLayers/Format/OWSCommon.js)
Group: OWSCommon { Group: OWSCommon {
File: OWSCommon (no auto-title, OpenLayers/Format/OWSCommon.js)
File: v1 (no auto-title, OpenLayers/Format/OWSCommon/v1.js) File: v1 (no auto-title, OpenLayers/Format/OWSCommon/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_0_0.js) File: v1_0_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_1_0.js)
@@ -180,19 +182,12 @@ Group: OpenLayers {
File: OWSContext (no auto-title, OpenLayers/Format/OWSContext.js) File: OWSContext (no auto-title, OpenLayers/Format/OWSContext.js)
File: OWSContext.v0_3_1 (no auto-title, OpenLayers/Format/OWSContext/v0_3_1.js) File: OWSContext.v0_3_1 (no auto-title, OpenLayers/Format/OWSContext/v0_3_1.js)
File: QueryStringFilter (no auto-title, OpenLayers/Format/QueryStringFilter.js) File: QueryStringFilter (no auto-title, OpenLayers/Format/QueryStringFilter.js)
Group: SLD {
File: SLD (no auto-title, OpenLayers/Format/SLD.js)
File: v1 (no auto-title, OpenLayers/Format/SLD/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/SLD/v1_0_0.js)
} # Group: SLD
File: SOSCapabilities (no auto-title, OpenLayers/Format/SOSCapabilities.js) File: SOSCapabilities (no auto-title, OpenLayers/Format/SOSCapabilities.js)
File: SOSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/SOSCapabilities/v1_0_0.js) File: SOSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/SOSCapabilities/v1_0_0.js)
File: SOSGetFeatureOfInterest (no auto-title, OpenLayers/Format/SOSGetFeatureOfInterest.js) File: SOSGetFeatureOfInterest (no auto-title, OpenLayers/Format/SOSGetFeatureOfInterest.js)
File: SOSGetObservation (no auto-title, OpenLayers/Format/SOSGetObservation.js) File: SOSGetObservation (no auto-title, OpenLayers/Format/SOSGetObservation.js)
File: Text (no auto-title, OpenLayers/Format/Text.js) File: Text (no auto-title, OpenLayers/Format/Text.js)
File: VersionedOGC (OpenLayers/Format/XML/VersionedOGC.js)
File: WCSGetCoverage version 1.1.0 (no auto-title, OpenLayers/Format/WCSGetCoverage.js) File: WCSGetCoverage version 1.1.0 (no auto-title, OpenLayers/Format/WCSGetCoverage.js)
File: WFS (no auto-title, OpenLayers/Format/WFS.js) File: WFS (no auto-title, OpenLayers/Format/WFS.js)
@@ -204,8 +199,6 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_1_0.js)
} # Group: WFSCapabilities } # Group: WFSCapabilities
File: WFSDescribeFeatureType (no auto-title, OpenLayers/Format/WFSDescribeFeatureType.js)
Group: WFST { Group: WFST {
File: WFST (no auto-title, OpenLayers/Format/WFST.js) File: WFST (no auto-title, OpenLayers/Format/WFST.js)
@@ -214,8 +207,6 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/WFST/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/WFST/v1_1_0.js)
} # Group: WFST } # Group: WFST
File: WKT (no auto-title, OpenLayers/Format/WKT.js)
Group: WMC { Group: WMC {
File: WMC (no auto-title, OpenLayers/Format/WMC.js) File: WMC (no auto-title, OpenLayers/Format/WMC.js)
@@ -242,6 +233,8 @@ Group: OpenLayers {
File: v1_1 (no auto-title, OpenLayers/Format/WMSDescribeLayer/v1_1.js) File: v1_1 (no auto-title, OpenLayers/Format/WMSDescribeLayer/v1_1.js)
} # Group: WMSDescribeLayer } # Group: WMSDescribeLayer
File: WFSDescribeFeatureType (no auto-title, OpenLayers/Format/WFSDescribeFeatureType.js)
File: WKT (no auto-title, OpenLayers/Format/WKT.js)
File: WMSGetFeatureInfo (no auto-title, OpenLayers/Format/WMSGetFeatureInfo.js) File: WMSGetFeatureInfo (no auto-title, OpenLayers/Format/WMSGetFeatureInfo.js)
File: WMTSCapabilities (no auto-title, OpenLayers/Format/WMTSCapabilities.js) File: WMTSCapabilities (no auto-title, OpenLayers/Format/WMTSCapabilities.js)
File: WMTSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/WMTSCapabilities/v1_0_0.js) File: WMTSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/WMTSCapabilities/v1_0_0.js)
@@ -267,7 +260,6 @@ Group: OpenLayers {
File: MultiPolygon (no auto-title, OpenLayers/Geometry/MultiPolygon.js) File: MultiPolygon (no auto-title, OpenLayers/Geometry/MultiPolygon.js)
File: Point (no auto-title, OpenLayers/Geometry/Point.js) File: Point (no auto-title, OpenLayers/Geometry/Point.js)
File: Polygon (no auto-title, OpenLayers/Geometry/Polygon.js) File: Polygon (no auto-title, OpenLayers/Geometry/Polygon.js)
File: Rectangle (no auto-title, OpenLayers/Geometry/Rectangle.js)
} # Group: Geometry } # Group: Geometry
Group: Handler { Group: Handler {
@@ -288,7 +280,6 @@ Group: OpenLayers {
} # Group: Handler } # Group: Handler
File: Icon (no auto-title, OpenLayers/Icon.js) File: Icon (no auto-title, OpenLayers/Icon.js)
File: Kinetic (no auto-title, OpenLayers/Kinetic.js)
Group: Lang { Group: Lang {
@@ -328,6 +319,7 @@ Group: OpenLayers {
File: nn (no auto-title, OpenLayers/Lang/nn.js) File: nn (no auto-title, OpenLayers/Lang/nn.js)
File: oc (no auto-title, OpenLayers/Lang/oc.js) File: oc (no auto-title, OpenLayers/Lang/oc.js)
File: pt (no auto-title, OpenLayers/Lang/pt.js) File: pt (no auto-title, OpenLayers/Lang/pt.js)
File: pl (no auto-title, OpenLayers/Lang/pl.js)
File: pt-BR (no auto-title, OpenLayers/Lang/pt-BR.js) File: pt-BR (no auto-title, OpenLayers/Lang/pt-BR.js)
File: ru (no auto-title, OpenLayers/Lang/ru.js) File: ru (no auto-title, OpenLayers/Lang/ru.js)
File: sk (no auto-title, OpenLayers/Lang/sk.js) File: sk (no auto-title, OpenLayers/Lang/sk.js)
@@ -349,10 +341,8 @@ Group: OpenLayers {
File: EventPane (no auto-title, OpenLayers/Layer/EventPane.js) File: EventPane (no auto-title, OpenLayers/Layer/EventPane.js)
File: FixedZoomLevels (no auto-title, OpenLayers/Layer/FixedZoomLevels.js) File: FixedZoomLevels (no auto-title, OpenLayers/Layer/FixedZoomLevels.js)
File: GeoRSS (no auto-title, OpenLayers/Layer/GeoRSS.js) File: GeoRSS (no auto-title, OpenLayers/Layer/GeoRSS.js)
File: GML (no auto-title, OpenLayers/Layer/GML.js)
File: Google (no auto-title, OpenLayers/Layer/Google.js) File: Google (no auto-title, OpenLayers/Layer/Google.js)
File: Google.v3 (no auto-title, OpenLayers/Layer/Google/v3.js) File: Google.v3 (no auto-title, OpenLayers/Layer/Google/v3.js)
File: GoogleNG (no auto-title, OpenLayers/Layer/GoogleNG.js)
File: Grid (no auto-title, OpenLayers/Layer/Grid.js) File: Grid (no auto-title, OpenLayers/Layer/Grid.js)
File: HTTPRequest (no auto-title, OpenLayers/Layer/HTTPRequest.js) File: HTTPRequest (no auto-title, OpenLayers/Layer/HTTPRequest.js)
File: Image (no auto-title, OpenLayers/Layer/Image.js) File: Image (no auto-title, OpenLayers/Layer/Image.js)
@@ -360,9 +350,8 @@ Group: OpenLayers {
File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js) File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js)
File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js) File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js)
File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js) File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js)
File: MapServer.Untiled (no auto-title, OpenLayers/Layer/MapServer/Untiled.js)
File: Markers (no auto-title, OpenLayers/Layer/Markers.js) File: Markers (no auto-title, OpenLayers/Layer/Markers.js)
File: MultiMap (no auto-title, OpenLayers/Layer/MultiMap.js) File: OSM (no auto-title, OpenLayers/Layer/OSM.js)
File: PointGrid (no auto-title, OpenLayers/Layer/PointGrid.js) File: PointGrid (no auto-title, OpenLayers/Layer/PointGrid.js)
File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js) File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js)
File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js) File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js)
@@ -371,15 +360,10 @@ Group: OpenLayers {
File: TMS (no auto-title, OpenLayers/Layer/TMS.js) File: TMS (no auto-title, OpenLayers/Layer/TMS.js)
File: Vector (no auto-title, OpenLayers/Layer/Vector.js) File: Vector (no auto-title, OpenLayers/Layer/Vector.js)
File: Vector.RootContainer (no auto-title, OpenLayers/Layer/Vector/RootContainer.js) File: Vector.RootContainer (no auto-title, OpenLayers/Layer/Vector/RootContainer.js)
File: VirtualEarth (no auto-title, OpenLayers/Layer/VirtualEarth.js)
File: WFS (no auto-title, OpenLayers/Layer/WFS.js)
File: WMS (no auto-title, OpenLayers/Layer/WMS.js) File: WMS (no auto-title, OpenLayers/Layer/WMS.js)
File: WMS.Untiled (no auto-title, OpenLayers/Layer/WMS/Untiled.js)
File: WMS.Post (no auto-title, OpenLayers/Layer/WMS/Post.js)
File: WMTS (no auto-title, OpenLayers/Layer/WMTS.js) File: WMTS (no auto-title, OpenLayers/Layer/WMTS.js)
File: WorldWind (no auto-title, OpenLayers/Layer/WorldWind.js) File: WorldWind (no auto-title, OpenLayers/Layer/WorldWind.js)
File: XYZ (no auto-title, OpenLayers/Layer/XYZ.js) File: XYZ (no auto-title, OpenLayers/Layer/XYZ.js)
File: Yahoo (no auto-title, OpenLayers/Layer/Yahoo.js)
File: Zoomify (no auto-title, OpenLayers/Layer/Zoomify.js) File: Zoomify (no auto-title, OpenLayers/Layer/Zoomify.js)
} # Group: Layer } # Group: Layer
@@ -407,12 +391,6 @@ Group: OpenLayers {
File: Protocol (no auto-title, OpenLayers/Protocol.js) File: Protocol (no auto-title, OpenLayers/Protocol.js)
File: HTTP (no auto-title, OpenLayers/Protocol/HTTP.js) File: HTTP (no auto-title, OpenLayers/Protocol/HTTP.js)
Group: SQL {
File: SQL (no auto-title, OpenLayers/Protocol/SQL.js)
File: Gears (no auto-title, OpenLayers/Protocol/SQL/Gears.js)
} # Group: SQL
Group: WFS { Group: WFS {
File: WFS (no auto-title, OpenLayers/Protocol/WFS.js) File: WFS (no auto-title, OpenLayers/Protocol/WFS.js)
@@ -431,9 +409,7 @@ Group: OpenLayers {
File: Renderer (no auto-title, OpenLayers/Renderer.js) File: Renderer (no auto-title, OpenLayers/Renderer.js)
File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js) File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js)
File: ElementsIndexer (no auto-title, OpenLayers/Renderer/Elements.js) File: ElementsIndexer (no auto-title, OpenLayers/Renderer/Elements.js)
File: NG (no auto-title, OpenLayers/Renderer/NG.js)
File: SVG (no auto-title, OpenLayers/Renderer/SVG.js) File: SVG (no auto-title, OpenLayers/Renderer/SVG.js)
File: SVG2 (no auto-title, OpenLayers/Renderer/SVG2.js)
File: VML (no auto-title, OpenLayers/Renderer/VML.js) File: VML (no auto-title, OpenLayers/Renderer/VML.js)
} # Group: Renderer } # Group: Renderer
@@ -443,8 +419,8 @@ Group: OpenLayers {
File: XMLHttpRequest (no auto-title, OpenLayers/Request/XMLHttpRequest.js) File: XMLHttpRequest (no auto-title, OpenLayers/Request/XMLHttpRequest.js)
} # Group: Request } # Group: Request
File: SingleFile.js (no auto-title, OpenLayers/SingleFile.js)
File: Rule (no auto-title, OpenLayers/Rule.js) File: Rule (no auto-title, OpenLayers/Rule.js)
File: SingleFile.js (no auto-title, OpenLayers/SingleFile.js)
Group: Strategy { Group: Strategy {
@@ -475,14 +451,13 @@ Group: OpenLayers {
Group: Tile { Group: Tile {
File: Tile (no auto-title, OpenLayers/Tile.js) File: Tile (no auto-title, OpenLayers/Tile.js)
File: Google (no auto-title, OpenLayers/Tile/Google.js)
File: Image (no auto-title, OpenLayers/Tile/Image.js) File: Image (no auto-title, OpenLayers/Tile/Image.js)
File: Image.IFrame (no auto-title, OpenLayers/Tile/Image/IFrame.js) File: Image.IFrame (no auto-title, OpenLayers/Tile/Image/IFrame.js)
File: WFS (no auto-title, OpenLayers/Tile/WFS.js)
} # Group: Tile } # Group: Tile
File: Tween (no auto-title, OpenLayers/Tween.js) File: Tween (no auto-title, OpenLayers/Tween.js)
File: Util (no auto-title, OpenLayers/Util.js) File: Util (no auto-title, OpenLayers/Util.js)
File: Deprecated (no auto-title, deprecated.js)
} # Group: OpenLayers } # Group: OpenLayers
Group: Index { Group: Index {
View File
+3
View File
@@ -41,3 +41,6 @@ The options available for compression are:
* none * none
None will leave the Javascript uncompressed. None will leave the Javascript uncompressed.
For more information on the build script and custom build profiles,
see http://docs.openlayers.org/library/deploying.html
+46 -5
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys import sys
import os
sys.path.append("../tools") sys.path.append("../tools")
import mergejs import mergejs
import optparse import optparse
@@ -13,7 +14,9 @@ def build(config_file = None, output_file = None, options = None):
except ImportError: except ImportError:
print "No jsmin" print "No jsmin"
try: try:
import closure # tools/closure_library_jscompiler.py from:
# http://code.google.com/p/closure-library/source/browse/trunk/closure/bin/build/jscompiler.py
import closure_library_jscompiler as closureCompiler
have_compressor.append("closure") have_compressor.append("closure")
except Exception, E: except Exception, E:
print "No closure (%s)" % E print "No closure (%s)" % E
@@ -48,19 +51,57 @@ def build(config_file = None, output_file = None, options = None):
outputFilename = output_file outputFilename = output_file
print "Merging libraries." print "Merging libraries."
merged = mergejs.run(sourceDirectory, None, configFilename) try:
if use_compressor == "closure":
sourceFiles = mergejs.getNames(sourceDirectory, configFilename)
else:
merged = mergejs.run(sourceDirectory, None, configFilename)
except mergejs.MissingImport, E:
print "\nAbnormal termination."
sys.exit("ERROR: %s" % E)
print "Compressing using %s" % use_compressor print "Compressing using %s" % use_compressor
if use_compressor == "jsmin": if use_compressor == "jsmin":
minimized = jsmin.jsmin(merged) minimized = jsmin.jsmin(merged)
elif use_compressor == "minimize": elif use_compressor == "minimize":
minimized = minimize.minimize(merged) minimized = minimize.minimize(merged)
elif use_compressor == "closure_ws": elif use_compressor == "closure_ws":
minimized = closure_ws.minimize(merged) if len(merged) > 1000000: # The maximum file size for this web service is 1000 KB.
print "\nPre-compressing using jsmin"
merged = jsmin.jsmin(merged)
print "\nIs being compressed using Closure Compiler Service."
try:
minimized = closure_ws.minimize(merged)
except Exception, E:
print "\nAbnormal termination."
sys.exit("ERROR: Closure Compilation using Web service failed!\n%s" % E)
if len(minimized) <= 2:
print "\nAbnormal termination due to compilation errors."
sys.exit("ERROR: Closure Compilation using Web service failed!")
else:
print "Closure Compilation using Web service has completed successfully."
elif use_compressor == "closure": elif use_compressor == "closure":
minimized = closure.minimize(merged) jscompilerJar = "../tools/closure-compiler.jar"
if not os.path.isfile(jscompilerJar):
print "\nNo closure-compiler.jar; read README.txt!"
sys.exit("ERROR: Closure Compiler \"%s\" does not exist! Read README.txt" % jscompilerJar)
minimized = closureCompiler.Compile(
jscompilerJar,
sourceFiles, [
"--externs", "closure-compiler/Externs.js",
"--jscomp_warning", "checkVars", # To enable "undefinedVars"
"--jscomp_error", "checkRegExp", # Also necessary to enable "undefinedVars"
"--jscomp_error", "undefinedVars"
]
)
if minimized is None:
print "\nAbnormal termination due to compilation errors."
sys.exit("ERROR: Closure Compilation failed! See compilation errors.")
print "Closure Compilation has completed successfully."
else: # fallback else: # fallback
minimized = merged minimized = merged
print "Adding license file."
print "\nAdding license file."
minimized = file("license.txt").read() + minimized minimized = file("license.txt").read() + minimized
print "Writing to %s." % outputFilename print "Writing to %s." % outputFilename
+50
View File
@@ -0,0 +1,50 @@
// ********************************************
// This source file serves *ONLY* to avoid some compilation errors when the
// compiler uses the flag:
// --jscomp_error undefinedVars
//
// In this source are declared all variables from other programs that use
// OpenLayers. This avoids the error of undefined variable for these names.
//
// NOTE: The compiler does not include externs files like this in the
// compilation result.
// ********************************************
// Used in lib/Firebug/firebug.js when gecko_dom
var frames;
// Check the console when using Firebug Lite
var console;
// Proj4js
var Proj4js = {Proj: function(){}};
// Check JSON in lib/OpenLayers/Format/JSON.js
var JSON = {};
// Google Maps
var GMap2;
var G_NORMAL_MAP;
var GEvent;
var GLatLngBounds = function(){};
var GSize = function(x, y){};
var GPoint = function(x, y){};
var GLatLng = function(lat, lon){};
// Multimap
var MultimapViewer = function(div){};
var MMLatLon = function(lat, lon){};
var MMPoint = function(x, y){};
//VirtualEarth
var VEMap = function(name){};
var VEPixel = function(x, y){};
var VELatLong = function(lat, lon){};
var Msn = {VE:{}};
// Yahoo
var YMap = function(div, type, size){};
var YGeoPoint = function(lat, lon){};
var YCoordPoint = function(x, y){};
var YSize = function(w, h){};
+1
View File
@@ -11,3 +11,4 @@
Firebug Firebug
OpenLayers.js OpenLayers.js
OpenLayers/Lang OpenLayers/Lang
deprecated.js
-48
View File
@@ -1,48 +0,0 @@
# This file includes the OpenLayers code to create a build for everything that
# does not require vector support.
[first]
[last]
[include]
[exclude]
Firebug
OpenLayers.js
OpenLayers/Format/GeoRSS.js
OpenLayers/Format/GML.js
OpenLayers/Format/WKT.js
OpenLayers/Format/KML.js
OpenLayers/Format/WFS.js
OpenLayers/Format.js
OpenLayers/Handler/Path.js
OpenLayers/Handler/Point.js
OpenLayers/Handler/Polygon.js
OpenLayers/Handler/Select.js
OpenLayers/Geometry/Collection.js
OpenLayers/Geometry/Curve.js
OpenLayers/Geometry/LinearRing.js
OpenLayers/Geometry/LineString.js
OpenLayers/Geometry/MultiLineString.js
OpenLayers/Geometry/MultiPoint.js
OpenLayers/Geometry/MultiPolygon.js
OpenLayers/Geometry/Point.js
OpenLayers/Geometry/Polygon.js
OpenLayers/Geometry/Rectangle.js
OpenLayers/Geometry/Surface.js
OpenLayers/Geometry.js
OpenLayers/Layer/GML.js
OpenLayers/Layer/Vector.js
OpenLayers/Control/DrawFeature.js
OpenLayers/Control/EditingToolbar.js
OpenLayers/Control/SelectFeature.js
OpenLayers/Feature/Vector.js
OpenLayers/Renderer
OpenLayers/Renderer/Elements.js
OpenLayers/Renderer/SVG.js
OpenLayers/Renderer/VML.js
OpenLayers/Renderer.js
OpenLayers/Lang
+5 -73
View File
@@ -2,47 +2,17 @@
OpenLayers.js -- OpenLayers Map Viewer Library OpenLayers.js -- OpenLayers Map Viewer Library
Copyright 2005-2011 OpenLayers Contributors, released under the FreeBSD Copyright (c) 2006-2012 by OpenLayers Contributors
license. Please see http://svn.openlayers.org/trunk/openlayers/license.txt Published under the 2-clause BSD license.
for the full text of the license. See http://openlayers.org/dev/license.txt for the full text of the license, and http://openlayers.org/dev/authors.txt for full list of contributors.
Includes compressed code under the following licenses: Includes compressed code under the following licenses:
(For uncompressed versions of the code used please see the (For uncompressed versions of the code used, please see the
OpenLayers SVN repository: <http://openlayers.org/>) OpenLayers Github repository: <https://github.com/openlayers/openlayers>)
*/ */
/* Contains portions of Prototype.js:
*
* Prototype JavaScript framework, version 1.4.0
* (c) 2005 Sam Stephenson <sam@conio.net>
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://prototype.conio.net/
*
*--------------------------------------------------------------------------*/
/**
*
* Contains portions of Rico <http://openrico.org/>
*
* Copyright 2005 Sabre Airline Solutions
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
**/
/** /**
* Contains XMLHttpRequest.js <http://code.google.com/p/xmlhttprequest/> * Contains XMLHttpRequest.js <http://code.google.com/p/xmlhttprequest/>
* Copyright 2007 Sergey Ilinsky (http://www.ilinsky.com) * Copyright 2007 Sergey Ilinsky (http://www.ilinsky.com)
@@ -53,44 +23,6 @@
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*/ */
/**
* Contains portions of Gears <http://code.google.com/apis/gears/>
*
* Copyright 2007, Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of Google Inc. nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Sets up google.gears.*, which is *the only* supported way to access Gears.
*
* Circumvent this file at your own risk!
*
* In the future, Gears may automatically define google.gears.* without this
* file. Gears may use these objects to transparently fix bugs and compatibility
* issues. Applications that use the code below will continue to work seamlessly
* when that happens.
*/
/** /**
* OpenLayers.Util.pagePosition is based on Yahoo's getXY method, which is * OpenLayers.Util.pagePosition is based on Yahoo's getXY method, which is
* Copyright (c) 2006, Yahoo! Inc. * Copyright (c) 2006, Yahoo! Inc.
+32
View File
@@ -0,0 +1,32 @@
[first]
[last]
[include]
OpenLayers/Map.js
OpenLayers/Kinetic.js
OpenLayers/Projection.js
OpenLayers/Layer/Vector.js
OpenLayers/Layer/OSM.js
OpenLayers/Layer/Bing.js
OpenLayers/Layer/WMS.js
OpenLayers/Layer/Google/v3.js
OpenLayers/Popup/FramedCloud.js
OpenLayers/Control/Navigation.js
OpenLayers/Control/Zoom.js
OpenLayers/Control/Attribution.js
OpenLayers/Control/SelectFeature.js
OpenLayers/Control/Panel.js
OpenLayers/Control/LayerSwitcher.js
OpenLayers/Renderer/SVG.js
OpenLayers/Renderer/VML.js
OpenLayers/Format/GeoJSON.js
OpenLayers/Protocol/HTTP.js
OpenLayers/Strategy/Fixed.js
OpenLayers/Strategy/BBOX.js
OpenLayers/StyleMap.js
OpenLayers/Rule.js
OpenLayers/Filter/Comparison.js
OpenLayers/Filter/Logical.js
[exclude]
+2 -3
View File
@@ -6,13 +6,12 @@
OpenLayers/Map.js OpenLayers/Map.js
OpenLayers/Kinetic.js OpenLayers/Kinetic.js
OpenLayers/Projection.js OpenLayers/Projection.js
OpenLayers/Layer/SphericalMercator.js OpenLayers/Layer/OSM.js
OpenLayers/Layer/XYZ.js
OpenLayers/Layer/Bing.js OpenLayers/Layer/Bing.js
OpenLayers/Layer/WMS.js OpenLayers/Layer/WMS.js
OpenLayers/Control/TouchNavigation.js OpenLayers/Control/TouchNavigation.js
OpenLayers/Control/Geolocate.js OpenLayers/Control/Geolocate.js
OpenLayers/Control/ZoomPanel.js OpenLayers/Control/Zoom.js
OpenLayers/Control/Attribution.js OpenLayers/Control/Attribution.js
OpenLayers/Control/SelectFeature.js OpenLayers/Control/SelectFeature.js
OpenLayers/Control/DrawFeature.js OpenLayers/Control/DrawFeature.js
-49
View File
@@ -1,49 +0,0 @@
Customizing OpenLayers
======================
OpenLayers is designed to fit many needs -- fitting in alongside all kinds of
various applications which are currently in use.
Currently, OpenLayers supports a 'theme' option when creating a map. This
theme option allows you to specify the location of a CSS theme which should
be included.
A default theme is available as an example in the theme/ directory: the setup
is:
* theme/
* theme/default/
* theme/default/style.css
* theme/default/img/
Currently, the OpenLayers code does not support class names, and therefore,
it is not possible to control many aspects of OpenLayers code with CSS
classes. However, with this framework in place, we expect to invest time
to make existing features and new features use the CSS theming framework
where apropriate.
Class Naming
============
Elements should have class names which are descriptive of the Javascript
class from which they come. For example, the main layer switcher element
in the OpenLayers.Control.LayerSwitcher would be classed:
olControlLayerSwitcher
This would allow users to add to their style.css class in their theme,
changing, for example:
::
.olControlLayerSwitcher input {
width:10px;
}
Sub elements of a particular control can add to the class name:
::
.olControlLayerSwitcherBaseLabel {
color: red;
}
-7
View File
@@ -1,7 +0,0 @@
Automatically generated OpenLayers API documentation is online:
http://dev.openlayers.org/apidocs
More information on documentation is available from:
http://trac.openlayers.org/wiki/Documentation
-96
View File
@@ -1,96 +0,0 @@
<html>
<head>
<title>OpenLayers examples walkthrough</title>
<style type="text/css">
a { color:blue; text-decoration: none; }
a:hover { text-decoration: underline; }
</style>
<base href="http://openlayers.org/dev/examples/">
</head>
<body style="font-family: sans-serif">
<h1><pre style="font-size: larger">&lt;ol&gt;</pre></h1>
<p>API documentation: <a href="http://dev.openlayers.org/docs/">http://dev.openlayers.org/docs/</a></p>
<p>Examples: <a href="http://dev.openlayers.org/examples/">http://openlayers.org/dev/examples/</a></p>
<h2>Maps</h2>
<ol>
<li><a href="../examples/lite.html">Basic example</a></li>
<li><a href="../examples/layerswitcher.html">Layer switcher (aka legend)</a></li>
<li><a href="../examples/example.html">Base layers versus overlays</a></li>
<li><a href="../examples/multiserver.html">Multiple WMS mirrors</a></li>
<li><a href="../examples/fullScreen.html">Full screen map</a></li>
<li><a href="../examples/wrapDateLine.html">Wrapping the date line</a></li>
<li><a href="../examples/projected-map.html">Other cartographic projections</a></li>
<li><a href="../examples/layer-opacity.html">Translucent overlays</a></li>
</ol>
<h2>Raster Layers</h2>
<ol>
<li><a href="../examples/wms-untiled.html">Untiled WMS layer</a></li>
<li><a href="../examples/kamap.html">Ka-Map layer</a></li>
<li><a href="../examples/mapserver.html">MapServer layer</a></li>
<li><a href="../examples/worldwind.html">Worldwind layer</a></li>
<li><a href="../examples/tms.html">TMS layer</a></li>
<li><a href="../examples/image-layer.html">Image layer</a></li>
<li><a href="../examples/google.html">Google layer</a></li>
<li><a href="../examples/ve.html">VirtualEarth layer</a></li>
<li><a href="../examples/spherical-mercator.html">Spherical Mercator ("EPSG:900913")</a></li>
<li><a href="http://tilecache.org/">TileCache</a></li>
</ol>
<h2>Marker Layers</h2>
<ol>
<li><a href="../examples/markers.html">Markers</a></li>
<li><a href="../examples/markerResize.html">Changing marker properties dynamically</a></li>
<li><a href="../examples/popups.html">Popups</a></li>
<li><a href="../examples/georss.html">GeoRSS</a> (<a href="georss.xml">example data</a>)</a></li>
<li><a href="../examples/georss-markers.html">GeoRSS with custom markers</a></li>
<li><a href="../examples/wfs.html">Point layer from WFS</a></li>
<li><a href="../examples/getfeatureinfo.html">WFS GetFeatureInfo example</a></li>
</ol>
<h2>Events and Controls</h2>
<ol>
<li><a href="../examples/navtoolbar.html">Navigation tools on the map</a></li>
<li><a href="../examples/navtoolbar-outsidemap.html">Navigation toolbar off the map</a></li>
<li><a href="../examples/mouse-position.html">Tracking the mouse position</a></li>
<li><a href="../examples/overview.html">Overview map</a></li>
<li><a href="../examples/attribution.html">Layer attribution</a></li>
<li><a href="../examples/controls.html">Full range of controls</a></li>
<li><a href="../examples/custom-control.html">Custom controls #1</a></li>
<li><a href="../examples/custom-control.html">Custom controls #2</a></li>
<li><a href="../examples/custom-style.html">Custom control styles</a></li>
<li><a href="../examples/click.html">Trapping click events</a></li>
<li><a href="../examples/layerLoadMonitoring.html">Tracking map events</a></li>
</ol>
<h2>Vector Layers</h2>
<ol>
<li><a href="../examples/vector-features.html">Generating features in JavaScript</a></li>
<li><a href="../examples/gml-layer.html">Loading features from GML</a></li>
<li><a href="../examples/kml-layer.html">Loading features from KML</a></li>
<li><a href="../examples/gml-serialize.html">Serializing features to GML</a></li>
<li><a href="../examples/vector-formats.html">Serializing to other formats</a></li>
<li><a href="../examples/select-feature.html">Selecting features</a></li>
<li><a href="../examples/select-feature-openpopup.html">Attaching popups to features</a></li>
</ol>
<h2>Editing Tools</h2>
<ol>
<li><a href="../examples/draw-feature.html">Drawing features</a></li>
<li><a href="../examples/editingtoolbar.html">Editing toolbar</a> (<a href="editingtoolbar-outside.html">outside the map</a>)</li>
<li><a href="../examples/regular-polygons.html">Creating regular polygons</a></li>
<li><a href="../examples/modify-feature.html">Modifying features</a></li>
<li><a href="../examples/resize-features.html">Resizing features</a></li>
<li><a href="../examples/rotate-features.html">Rotating features</a></li>
<li><a href="../examples/wfs-t.html">Transactional WFS example</a></li>
<li><a href="http://featureserver.org/">FeatureServer</a></li>
</ol>
<h2>Testing</h2>
<ol>
<li><a href="../tests/run-tests.html">Test.AnotherWay suite</a></li>
</ol>
<h1><pre style="font-size: larger">&lt;/ol&gt;</pre></h1>
</body>
</html>
+17 -41
View File
@@ -48,7 +48,6 @@ SubTitle: JavaScript Mapping Library
Group: OpenLayers { Group: OpenLayers {
File: OpenLayers (no auto-title, OpenLayers.js) File: OpenLayers (no auto-title, OpenLayers.js)
File: Ajax (no auto-title, OpenLayers/Ajax.js)
Group: BaseTypes { Group: BaseTypes {
@@ -81,9 +80,7 @@ Group: OpenLayers {
File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js) File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js)
File: Measure (no auto-title, OpenLayers/Control/Measure.js) File: Measure (no auto-title, OpenLayers/Control/Measure.js)
File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js) File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js)
File: MouseDefaults (no auto-title, OpenLayers/Control/MouseDefaults.js)
File: MousePosition (no auto-title, OpenLayers/Control/MousePosition.js) File: MousePosition (no auto-title, OpenLayers/Control/MousePosition.js)
File: MouseToolbar (no auto-title, OpenLayers/Control/MouseToolbar.js)
File: Navigation (no auto-title, OpenLayers/Control/Navigation.js) File: Navigation (no auto-title, OpenLayers/Control/Navigation.js)
File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js) File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js)
File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js) File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js)
@@ -118,7 +115,6 @@ Group: OpenLayers {
File: Feature (no auto-title, OpenLayers/Feature.js) File: Feature (no auto-title, OpenLayers/Feature.js)
File: Vector (no auto-title, OpenLayers/Feature/Vector.js) File: Vector (no auto-title, OpenLayers/Feature/Vector.js)
File: WFS (no auto-title, OpenLayers/Feature/WFS.js)
} # Group: Feature } # Group: Feature
Group: Filter { Group: Filter {
@@ -152,9 +148,6 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/Filter/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/Filter/v1_1_0.js)
} # Group: Filter } # Group: Filter
File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js)
File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js)
Group: GML { Group: GML {
File: GML (no auto-title, OpenLayers/Format/GML.js) File: GML (no auto-title, OpenLayers/Format/GML.js)
@@ -163,15 +156,24 @@ Group: OpenLayers {
File: v3 (no auto-title, OpenLayers/Format/GML/v3.js) File: v3 (no auto-title, OpenLayers/Format/GML/v3.js)
} # Group: GML } # Group: GML
Group: SLD {
File: SLD (no auto-title, OpenLayers/Format/SLD.js)
File: v1 (no auto-title, OpenLayers/Format/SLD/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/SLD/v1_0_0.js)
} # Group: SLD
File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js)
File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js)
File: GPX (no auto-title, OpenLayers/Format/GPX.js) File: GPX (no auto-title, OpenLayers/Format/GPX.js)
File: JSON (no auto-title, OpenLayers/Format/JSON.js) File: JSON (no auto-title, OpenLayers/Format/JSON.js)
File: KML (no auto-title, OpenLayers/Format/KML.js) File: KML (no auto-title, OpenLayers/Format/KML.js)
File: OGCExceptionReport (no auto-title, OpenLayers/Format/OGCExceptionReport.js) File: OGCExceptionReport (no auto-title, OpenLayers/Format/OGCExceptionReport.js)
File: OSM (no auto-title, OpenLayers/Format/OSM.js) File: OSM (no auto-title, OpenLayers/Format/OSM.js)
File: OWSCommon (no auto-title, OpenLayers/Format/OWSCommon.js)
Group: OWSCommon { Group: OWSCommon {
File: OWSCommon (no auto-title, OpenLayers/Format/OWSCommon.js)
File: v1 (no auto-title, OpenLayers/Format/OWSCommon/v1.js) File: v1 (no auto-title, OpenLayers/Format/OWSCommon/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_0_0.js) File: v1_0_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_1_0.js)
@@ -180,19 +182,12 @@ Group: OpenLayers {
File: OWSContext (no auto-title, OpenLayers/Format/OWSContext.js) File: OWSContext (no auto-title, OpenLayers/Format/OWSContext.js)
File: OWSContext.v0_3_1 (no auto-title, OpenLayers/Format/OWSContext/v0_3_1.js) File: OWSContext.v0_3_1 (no auto-title, OpenLayers/Format/OWSContext/v0_3_1.js)
File: QueryStringFilter (no auto-title, OpenLayers/Format/QueryStringFilter.js) File: QueryStringFilter (no auto-title, OpenLayers/Format/QueryStringFilter.js)
Group: SLD {
File: SLD (no auto-title, OpenLayers/Format/SLD.js)
File: v1 (no auto-title, OpenLayers/Format/SLD/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/SLD/v1_0_0.js)
} # Group: SLD
File: SOSCapabilities (no auto-title, OpenLayers/Format/SOSCapabilities.js) File: SOSCapabilities (no auto-title, OpenLayers/Format/SOSCapabilities.js)
File: SOSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/SOSCapabilities/v1_0_0.js) File: SOSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/SOSCapabilities/v1_0_0.js)
File: SOSGetFeatureOfInterest (no auto-title, OpenLayers/Format/SOSGetFeatureOfInterest.js) File: SOSGetFeatureOfInterest (no auto-title, OpenLayers/Format/SOSGetFeatureOfInterest.js)
File: SOSGetObservation (no auto-title, OpenLayers/Format/SOSGetObservation.js) File: SOSGetObservation (no auto-title, OpenLayers/Format/SOSGetObservation.js)
File: Text (no auto-title, OpenLayers/Format/Text.js) File: Text (no auto-title, OpenLayers/Format/Text.js)
File: VersionedOGC (OpenLayers/Format/XML/VersionedOGC.js)
File: WCSGetCoverage version 1.1.0 (no auto-title, OpenLayers/Format/WCSGetCoverage.js) File: WCSGetCoverage version 1.1.0 (no auto-title, OpenLayers/Format/WCSGetCoverage.js)
File: WFS (no auto-title, OpenLayers/Format/WFS.js) File: WFS (no auto-title, OpenLayers/Format/WFS.js)
@@ -204,8 +199,6 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_1_0.js)
} # Group: WFSCapabilities } # Group: WFSCapabilities
File: WFSDescribeFeatureType (no auto-title, OpenLayers/Format/WFSDescribeFeatureType.js)
Group: WFST { Group: WFST {
File: WFST (no auto-title, OpenLayers/Format/WFST.js) File: WFST (no auto-title, OpenLayers/Format/WFST.js)
@@ -214,8 +207,6 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/WFST/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/WFST/v1_1_0.js)
} # Group: WFST } # Group: WFST
File: WKT (no auto-title, OpenLayers/Format/WKT.js)
Group: WMC { Group: WMC {
File: WMC (no auto-title, OpenLayers/Format/WMC.js) File: WMC (no auto-title, OpenLayers/Format/WMC.js)
@@ -242,6 +233,8 @@ Group: OpenLayers {
File: v1_1 (no auto-title, OpenLayers/Format/WMSDescribeLayer/v1_1.js) File: v1_1 (no auto-title, OpenLayers/Format/WMSDescribeLayer/v1_1.js)
} # Group: WMSDescribeLayer } # Group: WMSDescribeLayer
File: WFSDescribeFeatureType (no auto-title, OpenLayers/Format/WFSDescribeFeatureType.js)
File: WKT (no auto-title, OpenLayers/Format/WKT.js)
File: WMSGetFeatureInfo (no auto-title, OpenLayers/Format/WMSGetFeatureInfo.js) File: WMSGetFeatureInfo (no auto-title, OpenLayers/Format/WMSGetFeatureInfo.js)
File: WMTSCapabilities (no auto-title, OpenLayers/Format/WMTSCapabilities.js) File: WMTSCapabilities (no auto-title, OpenLayers/Format/WMTSCapabilities.js)
File: WMTSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/WMTSCapabilities/v1_0_0.js) File: WMTSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/WMTSCapabilities/v1_0_0.js)
@@ -267,7 +260,6 @@ Group: OpenLayers {
File: MultiPolygon (no auto-title, OpenLayers/Geometry/MultiPolygon.js) File: MultiPolygon (no auto-title, OpenLayers/Geometry/MultiPolygon.js)
File: Point (no auto-title, OpenLayers/Geometry/Point.js) File: Point (no auto-title, OpenLayers/Geometry/Point.js)
File: Polygon (no auto-title, OpenLayers/Geometry/Polygon.js) File: Polygon (no auto-title, OpenLayers/Geometry/Polygon.js)
File: Rectangle (no auto-title, OpenLayers/Geometry/Rectangle.js)
} # Group: Geometry } # Group: Geometry
Group: Handler { Group: Handler {
@@ -327,6 +319,7 @@ Group: OpenLayers {
File: nl (no auto-title, OpenLayers/Lang/nl.js) File: nl (no auto-title, OpenLayers/Lang/nl.js)
File: nn (no auto-title, OpenLayers/Lang/nn.js) File: nn (no auto-title, OpenLayers/Lang/nn.js)
File: oc (no auto-title, OpenLayers/Lang/oc.js) File: oc (no auto-title, OpenLayers/Lang/oc.js)
File: pl (no auto-title, OpenLayers/Lang/pl.js)
File: pt (no auto-title, OpenLayers/Lang/pt.js) File: pt (no auto-title, OpenLayers/Lang/pt.js)
File: pt-BR (no auto-title, OpenLayers/Lang/pt-BR.js) File: pt-BR (no auto-title, OpenLayers/Lang/pt-BR.js)
File: ru (no auto-title, OpenLayers/Lang/ru.js) File: ru (no auto-title, OpenLayers/Lang/ru.js)
@@ -349,10 +342,8 @@ Group: OpenLayers {
File: EventPane (no auto-title, OpenLayers/Layer/EventPane.js) File: EventPane (no auto-title, OpenLayers/Layer/EventPane.js)
File: FixedZoomLevels (no auto-title, OpenLayers/Layer/FixedZoomLevels.js) File: FixedZoomLevels (no auto-title, OpenLayers/Layer/FixedZoomLevels.js)
File: GeoRSS (no auto-title, OpenLayers/Layer/GeoRSS.js) File: GeoRSS (no auto-title, OpenLayers/Layer/GeoRSS.js)
File: GML (no auto-title, OpenLayers/Layer/GML.js)
File: Google (no auto-title, OpenLayers/Layer/Google.js) File: Google (no auto-title, OpenLayers/Layer/Google.js)
File: Google.v3 (no auto-title, OpenLayers/Layer/Google/v3.js) File: Google.v3 (no auto-title, OpenLayers/Layer/Google/v3.js)
File: GoogleNG (no auto-title, OpenLayers/Layer/GoogleNG.js)
File: Grid (no auto-title, OpenLayers/Layer/Grid.js) File: Grid (no auto-title, OpenLayers/Layer/Grid.js)
File: HTTPRequest (no auto-title, OpenLayers/Layer/HTTPRequest.js) File: HTTPRequest (no auto-title, OpenLayers/Layer/HTTPRequest.js)
File: Image (no auto-title, OpenLayers/Layer/Image.js) File: Image (no auto-title, OpenLayers/Layer/Image.js)
@@ -360,9 +351,7 @@ Group: OpenLayers {
File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js) File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js)
File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js) File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js)
File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js) File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js)
File: MapServer.Untiled (no auto-title, OpenLayers/Layer/MapServer/Untiled.js)
File: Markers (no auto-title, OpenLayers/Layer/Markers.js) File: Markers (no auto-title, OpenLayers/Layer/Markers.js)
File: MultiMap (no auto-title, OpenLayers/Layer/MultiMap.js)
File: PointGrid (no auto-title, OpenLayers/Layer/PointGrid.js) File: PointGrid (no auto-title, OpenLayers/Layer/PointGrid.js)
File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js) File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js)
File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js) File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js)
@@ -371,15 +360,10 @@ Group: OpenLayers {
File: TMS (no auto-title, OpenLayers/Layer/TMS.js) File: TMS (no auto-title, OpenLayers/Layer/TMS.js)
File: Vector (no auto-title, OpenLayers/Layer/Vector.js) File: Vector (no auto-title, OpenLayers/Layer/Vector.js)
File: Vector.RootContainer (no auto-title, OpenLayers/Layer/Vector/RootContainer.js) File: Vector.RootContainer (no auto-title, OpenLayers/Layer/Vector/RootContainer.js)
File: VirtualEarth (no auto-title, OpenLayers/Layer/VirtualEarth.js)
File: WFS (no auto-title, OpenLayers/Layer/WFS.js)
File: WMS (no auto-title, OpenLayers/Layer/WMS.js) File: WMS (no auto-title, OpenLayers/Layer/WMS.js)
File: WMS.Untiled (no auto-title, OpenLayers/Layer/WMS/Untiled.js)
File: WMS.Post (no auto-title, OpenLayers/Layer/WMS/Post.js)
File: WMTS (no auto-title, OpenLayers/Layer/WMTS.js) File: WMTS (no auto-title, OpenLayers/Layer/WMTS.js)
File: WorldWind (no auto-title, OpenLayers/Layer/WorldWind.js) File: WorldWind (no auto-title, OpenLayers/Layer/WorldWind.js)
File: XYZ (no auto-title, OpenLayers/Layer/XYZ.js) File: XYZ (no auto-title, OpenLayers/Layer/XYZ.js)
File: Yahoo (no auto-title, OpenLayers/Layer/Yahoo.js)
File: Zoomify (no auto-title, OpenLayers/Layer/Zoomify.js) File: Zoomify (no auto-title, OpenLayers/Layer/Zoomify.js)
} # Group: Layer } # Group: Layer
@@ -407,12 +391,6 @@ Group: OpenLayers {
File: Protocol (no auto-title, OpenLayers/Protocol.js) File: Protocol (no auto-title, OpenLayers/Protocol.js)
File: HTTP (no auto-title, OpenLayers/Protocol/HTTP.js) File: HTTP (no auto-title, OpenLayers/Protocol/HTTP.js)
Group: SQL {
File: SQL (no auto-title, OpenLayers/Protocol/SQL.js)
File: Gears (no auto-title, OpenLayers/Protocol/SQL/Gears.js)
} # Group: SQL
Group: WFS { Group: WFS {
File: WFS (no auto-title, OpenLayers/Protocol/WFS.js) File: WFS (no auto-title, OpenLayers/Protocol/WFS.js)
@@ -431,9 +409,7 @@ Group: OpenLayers {
File: Renderer (no auto-title, OpenLayers/Renderer.js) File: Renderer (no auto-title, OpenLayers/Renderer.js)
File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js) File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js)
File: ElementsIndexer (no auto-title, OpenLayers/Renderer/Elements.js) File: ElementsIndexer (no auto-title, OpenLayers/Renderer/Elements.js)
File: NG (no auto-title, OpenLayers/Renderer/NG.js)
File: SVG (no auto-title, OpenLayers/Renderer/SVG.js) File: SVG (no auto-title, OpenLayers/Renderer/SVG.js)
File: SVG2 (no auto-title, OpenLayers/Renderer/SVG2.js)
File: VML (no auto-title, OpenLayers/Renderer/VML.js) File: VML (no auto-title, OpenLayers/Renderer/VML.js)
} # Group: Renderer } # Group: Renderer
@@ -443,8 +419,8 @@ Group: OpenLayers {
File: XMLHttpRequest (no auto-title, OpenLayers/Request/XMLHttpRequest.js) File: XMLHttpRequest (no auto-title, OpenLayers/Request/XMLHttpRequest.js)
} # Group: Request } # Group: Request
File: SingleFile.js (no auto-title, OpenLayers/SingleFile.js)
File: Rule (no auto-title, OpenLayers/Rule.js) File: Rule (no auto-title, OpenLayers/Rule.js)
File: SingleFile.js (no auto-title, OpenLayers/SingleFile.js)
Group: Strategy { Group: Strategy {
@@ -475,14 +451,14 @@ Group: OpenLayers {
Group: Tile { Group: Tile {
File: Tile (no auto-title, OpenLayers/Tile.js) File: Tile (no auto-title, OpenLayers/Tile.js)
File: Google (no auto-title, OpenLayers/Tile/Google.js)
File: Image (no auto-title, OpenLayers/Tile/Image.js) File: Image (no auto-title, OpenLayers/Tile/Image.js)
File: Image.IFrame (no auto-title, OpenLayers/Tile/Image/IFrame.js) File: Image.IFrame (no auto-title, OpenLayers/Tile/Image/IFrame.js)
File: WFS (no auto-title, OpenLayers/Tile/WFS.js)
} # Group: Tile } # Group: Tile
File: Tween (no auto-title, OpenLayers/Tween.js) File: Tween (no auto-title, OpenLayers/Tween.js)
File: Util (no auto-title, OpenLayers/Util.js) File: Util (no auto-title, OpenLayers/Util.js)
File: Spherical (no auto-title, OpenLayers/Spherical.js)
File: Deprecated (no auto-title, deprecated.js)
} # Group: OpenLayers } # Group: OpenLayers
Group: Index { Group: Index {
+2 -2
View File
@@ -10,7 +10,7 @@
<script type="text/javascript"> <script type="text/javascript">
function parseData(req) { function parseData(req) {
g = new OpenLayers.Format.KML({extractStyles: true}); g = new OpenLayers.Format.KML({extractStyles: true});
html = "" html = "";
features = g.read(req.responseText); features = g.read(req.responseText);
for(var feat in features) { for(var feat in features) {
html += "Feature: Geometry: "+ features[feat].geometry+","; html += "Feature: Geometry: "+ features[feat].geometry+",";
@@ -18,7 +18,7 @@
for (var j in features[feat].attributes) { for (var j in features[feat].attributes) {
html += "<li>Attribute "+j+":"+features[feat].attributes[j]+"</li>"; html += "<li>Attribute "+j+":"+features[feat].attributes[j]+"</li>";
} }
html += "</ul>" html += "</ul>";
html += "<ul>"; html += "<ul>";
for (var j in features[feat].style) { for (var j in features[feat].style) {
html += "<li>Style "+j+":"+features[feat].style[j]+"</li>"; html += "<li>Style "+j+":"+features[feat].style[j]+"</li>";
+1 -1
View File
@@ -10,7 +10,7 @@
<script type="text/javascript"> <script type="text/javascript">
function parseData(req) { function parseData(req) {
format = new OpenLayers.Format.WMSDescribeLayer(); format = new OpenLayers.Format.WMSDescribeLayer();
html = "<br>" html = "<br>";
resp = format.read(req.responseText); resp = format.read(req.responseText);
for(var i = 0; i < resp.length; i++) { for(var i = 0; i < resp.length; i++) {
html += "Layer: typeName: "+ resp[i].typeName+","; html += "Layer: typeName: "+ resp[i].typeName+",";
+69
View File
@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>Accessible Custom Click Control</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
<style type="text/css">
a {
text-decoration: none;
font-size: 1.2em;
}
a em {
font-style: normal;
font-weight: normal;
text-decoration: underline;
}
a:hover {
text-decoration: underline;
}
a.api {
font-size:1em;
text-decoration:underline;
}
a.accesskey {
color: white;
}
a.accesskey:focus {
color: #436976;
}
a.zoom {
padding-right: 20px;
}
</style>
<script src="../lib/Firebug/firebug.js"></script>
<script src="../lib/OpenLayers.js"></script>
<script src="accessible-click-control.js"></script>
</head>
<body onload="init()">
<h1 id="title">An accessible click control implementation</h1>
<div id="tags">
click, control, accessibility
</div>
<a class="accesskey"
href=""
accesskey="1"
onclick="document.getElementById('map').focus();return false;">
Jump to map
</a>
<div id="map" class="smallmap" tabindex="0"></div>
<p id="desc">
Demonstrate the KeyboardDefaults control as well as a control that
allows clicking on the map using the keyboard.
First focus the map (using tab key or mouse), then press the 'i'
key to activate the query control. You can then move the point
using arrow keys. Press 'RETURN' to get the coordinate. Press 'i'
again to deactivate the control.
</p>
</body>
</html>
+199
View File
@@ -0,0 +1,199 @@
var map, navigationControl, queryControl;
function init(){
map = new OpenLayers.Map('map', {controls: []});
var layer = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'}
);
map.addLayers([layer]);
navigationControl = new OpenLayers.Control.KeyboardDefaults({
observeElement: 'map'
});
map.addControl(navigationControl);
queryControl = new OpenLayers.Control.KeyboardClick({
observeElement: 'map'
});
map.addControl(queryControl);
map.zoomToMaxExtent();
}
/**
* Class: OpenLayers.Control.KeyboardClick
*
* A custom control that (a) adds a vector point that can be moved using the
* arrow keys of the keyboard, and (b) displays a browser alert window when the
* RETURN key is pressed. The control can be activated/deactivated using the
* "i" key. When activated the control deactivates any KeyboardDefaults control
* in the map so that the map is not moved when the arrow keys are pressed.
*
* This control relies on the OpenLayers.Handler.KeyboardPoint custom handler.
*/
OpenLayers.Control.KeyboardClick = OpenLayers.Class(OpenLayers.Control, {
initialize: function(options) {
OpenLayers.Control.prototype.initialize.apply(this, [options]);
var observeElement = this.observeElement || document;
this.handler = new OpenLayers.Handler.KeyboardPoint(this, {
done: this.onClick,
cancel: this.deactivate
}, {
observeElement: observeElement
});
OpenLayers.Event.observe(
observeElement,
"keydown",
OpenLayers.Function.bindAsEventListener(
function(evt) {
if (evt.keyCode == 73) { // "i"
if (this.active) {
this.deactivate();
} else {
this.activate();
}
}
},
this
)
);
},
onClick: function(geometry) {
alert("You clicked near " + geometry.x + " N, " +
geometry.y + " E");
},
activate: function() {
if(!OpenLayers.Control.prototype.activate.apply(this, arguments)) {
return false;
}
// deactivate any KeyboardDefaults control
var keyboardDefaults = this.map.getControlsByClass(
'OpenLayers.Control.KeyboardDefaults')[0];
if (keyboardDefaults) {
keyboardDefaults.deactivate();
}
return true;
},
deactivate: function() {
if(!OpenLayers.Control.prototype.deactivate.apply(this, arguments)) {
return false;
}
// reactivate any KeyboardDefaults control
var keyboardDefaults = this.map.getControlsByClass(
'OpenLayers.Control.KeyboardDefaults')[0];
if (keyboardDefaults) {
keyboardDefaults.activate();
}
return true;
}
});
/**
* Class: OpenLayers.Handler.KeyboardPoint
*
* A custom handler that displays a vector point that can be moved
* using the arrow keys of the keyboard.
*/
OpenLayers.Handler.KeyboardPoint = OpenLayers.Class(OpenLayers.Handler, {
KEY_EVENTS: ["keydown"],
initialize: function(control, callbacks, options) {
OpenLayers.Handler.prototype.initialize.apply(this, arguments);
// cache the bound event listener method so it can be unobserved later
this.eventListener = OpenLayers.Function.bindAsEventListener(
this.handleKeyEvent, this
);
},
activate: function() {
if(!OpenLayers.Handler.prototype.activate.apply(this, arguments)) {
return false;
}
this.layer = new OpenLayers.Layer.Vector(this.CLASS_NAME);
this.map.addLayer(this.layer);
this.observeElement = this.observeElement || document;
for (var i=0, len=this.KEY_EVENTS.length; i<len; i++) {
OpenLayers.Event.observe(
this.observeElement, this.KEY_EVENTS[i], this.eventListener);
}
if(!this.point) {
this.createFeature();
}
return true;
},
deactivate: function() {
if (!OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {
return false;
}
for (var i=0, len=this.KEY_EVENTS.length; i<len; i++) {
OpenLayers.Event.stopObserving(
this.observeElement, this.KEY_EVENTS[i], this.eventListener);
}
this.map.removeLayer(this.layer);
this.destroyFeature();
return true;
},
handleKeyEvent: function (evt) {
switch(evt.keyCode) {
case OpenLayers.Event.KEY_LEFT:
this.modifyFeature(-3, 0);
break;
case OpenLayers.Event.KEY_RIGHT:
this.modifyFeature(3, 0);
break;
case OpenLayers.Event.KEY_UP:
this.modifyFeature(0, 3);
break;
case OpenLayers.Event.KEY_DOWN:
this.modifyFeature(0, -3);
break;
case OpenLayers.Event.KEY_RETURN:
this.callback('done', [this.point.geometry.clone()]);
break;
case OpenLayers.Event.KEY_ESC:
this.callback('cancel');
break;
}
},
modifyFeature: function(lon, lat) {
if(!this.point) {
this.createFeature();
}
var resolution = this.map.getResolution();
this.point.geometry.x = this.point.geometry.x + lon * resolution;
this.point.geometry.y = this.point.geometry.y + lat * resolution;
this.callback("modify", [this.point.geometry, this.point, false]);
this.point.geometry.clearBounds();
this.drawFeature();
},
createFeature: function() {
var center = this.map.getCenter();
var geometry = new OpenLayers.Geometry.Point(
center.lon, center.lat
);
this.point = new OpenLayers.Feature.Vector(geometry);
this.callback("create", [this.point.geometry, this.point]);
this.point.geometry.clearBounds();
this.layer.addFeatures([this.point], {silent: true});
},
destroyFeature: function() {
this.layer.destroyFeatures([this.point]);
this.point = null;
},
drawFeature: function() {
this.layer.drawFeature(this.point, this.style);
}
});
+130
View File
@@ -0,0 +1,130 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>Custom and accessible panel</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
.olControlPanel button {
position: relative;
display: block;
margin: 2px;
border: 1px solid;
padding: 0 5px;
border-radius: 4px;
height: 35px;
background-color: white;
float: left;
overflow: visible; /* needed to remove padding from buttons in IE */
}
.olControlPanel button span {
padding-left: 25px;
}
.olControlPanel button span:first-child {
padding-left: 0;
display: block;
position: absolute;
left: 2px;
}
.olControlPanel .olControlDrawFeatureItemActive span:first-child {
background-image: url("../theme/default/img/draw_line_on.png");
height: 22px;
width: 24px;
top: 5px;
}
.olControlPanel .olControlDrawFeatureItemInactive span:first-child {
background-image: url("../theme/default/img/draw_line_off.png");
height: 22px;
width: 24px;
top: 5px;
}
.olControlPanel .olControlZoomBoxItemInactive span:first-child {
background-image: url("../img/drag-rectangle-off.png");
height: 29px;
width: 29px;
top: 2px;
}
.olControlPanel .olControlZoomBoxItemActive span:first-child {
background-image: url("../img/drag-rectangle-on.png");
height: 29px;
width: 29px;
top: 2px;
}
.olControlPanel .olControlZoomToMaxExtentItemInactive span:first-child {
background-image: url("../img/zoom-world-mini.png");
height: 18px;
width: 18px;
top: 8px;
}
.olControlPanel .navHistory span:first-child {
background-image: url("../theme/default/img/navigation_history.png");
height: 24px;
width: 24px;
top: 4px;
}
.olControlPanel .navHistoryPreviousItemActive span:first-child {
background-position: 0 0;
}
.olControlPanel .navHistoryPreviousItemInactive span:first-child {
background-position: 0 -24px;
}
.olControlPanel .navHistoryNextItemActive span:first-child {
background-position: -24px 0;
}
.olControlPanel .navHistoryNextItemInactive span:first-child {
background-position: -24px -24px;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script src="accessible-panel.js"></script>
</head>
<body onload="init()">
<h1 id="title">Custom and accessible panel</h1>
<div id="tags">
panels, CSS, style, accessibility, button
</div>
<p id="shortdesc">
Create a custom and accessible panel, styled entirely with
CSS.
</p>
<div id="panel"></div>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>An accessible panel:
<ul>
<li>The buttons are actual HTML buttons. You can therefore
use the TAB key to give the focus to the panel's buttons, and the "ENTER"
key to activate or trigger the corresponding control.</li>
<li>The buttons include text and titles (displayed when a button
is hovered).</li>
<li>If you remove colors from the page (for example using FireFox's <a
href="https://addons.mozilla.org/en-US/firefox/addon/no-color/">No
Color extension</a>) the buttons are still visible, and
accessible using the keyboard.</li>
</ul>
</p>
<p>By default a panel creates buttons as divs. In this example the
<code>createControlMarkup</code> panel function is overridden to create
a more accessible markup for the buttons. See the <a
href="accessible-panel.js" target="_blank"> accessible-panel.js
source</a> to see how this is done.</p>
<p>Note: in IE 8, when a button is pressed its content shifts by 1 pixel.
This is a <a
href="http://labs.findsubstance.com/2009/05/21/ie8-form-button-with-background-image-on-click-css-bug/">known
IE8 bug</a>, with known workarounds. No workaround is applied in this
example though.</p>
</div>
</body>
</html>
+64
View File
@@ -0,0 +1,64 @@
var lon = 5;
var lat = 40;
var zoom = 5;
var map, layer;
function init() {
map = new OpenLayers.Map( 'map', { controls: [] } );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);
vlayer = new OpenLayers.Layer.Vector( "Editable" );
map.addLayer(vlayer);
zb = new OpenLayers.Control.ZoomBox({
title: "Zoom box: zoom clicking and dragging",
text: "Zoom"
});
var panel = new OpenLayers.Control.Panel({
defaultControl: zb,
createControlMarkup: function(control) {
var button = document.createElement('button'),
iconSpan = document.createElement('span'),
textSpan = document.createElement('span');
iconSpan.innerHTML = '&nbsp;';
button.appendChild(iconSpan);
if (control.text) {
textSpan.innerHTML = control.text;
}
button.appendChild(textSpan);
return button;
}
});
panel.addControls([
zb,
new OpenLayers.Control.DrawFeature(vlayer, OpenLayers.Handler.Path,
{title:'Draw a feature', text: 'Draw'}),
new OpenLayers.Control.ZoomToMaxExtent({
title:"Zoom to the max extent",
text: "World"
})
]);
nav = new OpenLayers.Control.NavigationHistory({
previousOptions: {
title: "Go to previous map position",
text: "Prev"
},
nextOptions: {
title: "Go to next map position",
text: "Next"
},
displayClass: "navHistory"
});
// parent control must be added to the map
map.addControl(nav);
panel.addControls([nav.next, nav.previous]);
map.addControl(panel);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}
+43 -20
View File
@@ -31,13 +31,26 @@
font-size:1em; font-size:1em;
text-decoration:underline; text-decoration:underline;
} }
a.accesskey {
color: white;
}
a.accesskey:focus {
color: #436976;
}
a.zoom {
padding-right: 20px;
}
</style> </style>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var map = null; var map = null;
function init(){ function init(){
var options = { var options = {
controls: [new OpenLayers.Control.KeyboardDefaults()] controls: [
new OpenLayers.Control.KeyboardDefaults({
observeElement: 'map'
})
]
}; };
map = new OpenLayers.Map('map', options); map = new OpenLayers.Map('map', options);
var wms = new OpenLayers.Layer.WMS( var wms = new OpenLayers.Layer.WMS(
@@ -57,31 +70,37 @@
keyboard, pan, panning, zoom, zooming, accesskey keyboard, pan, panning, zoom, zooming, accesskey
</div> </div>
<a class="accesskey"
href=""
accesskey="1"
onclick="document.getElementById('map').focus(); return false;">
Go to map
</a>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate how to use the KeyboardDefaults option parameter for layer types. Demonstrate the KeyboardDefaults control and how to use links
with Access Keys to navigate the map with the keyboard.
</p> </p>
<a class="zoom"
href="javascript: void map.zoomIn();"
accesskey="i">
zoom <em>i</em>n</a>
<a class="zoom"
href="javascript: void map.zoomOut();"
accesskey="o">
zoom <em>o</em>ut</a>
<table> <table>
<tbody> <tbody>
<tr> <tr>
<td> <td>&nbsp;</td>
<a href="javascript: void map.zoomOut();"
accesskey="o">
zoom <em>o</em>ut
</a>
</td>
<td> <td>
<a href="javascript: void map.pan(0, -map.getSize().h / 4);" <a href="javascript: void map.pan(0, -map.getSize().h / 4);"
accesskey="n"> accesskey="n">
pan <em>n</em>orth pan <em>n</em>orth
</a> </a>
</td> </td>
<td>
<a href="javascript: void map.zoomIn();"
accesskey="i">
zoom <em>i</em>n
</a>
</td>
</tr> </tr>
<tr> <tr>
<td> <td>
@@ -90,7 +109,7 @@
pan <em>w</em>est pan <em>w</em>est
</a> </a>
</td> </td>
<td id="map" class="smallmap"></td> <td id="map" class="smallmap" tabindex="0"></td>
<td> <td>
<a href="javascript: void map.pan(map.getSize().w / 4, 0);" <a href="javascript: void map.pan(map.getSize().w / 4, 0);"
accesskey="e"> accesskey="e">
@@ -113,9 +132,9 @@
<div id="docs"> <div id="docs">
<p>Navigate the map in one of three ways:</p> <p>Navigate the map in one of three ways:</p>
<ul> <ol>
<li>Click on the named links to zoom and pan</li> <li>Use Access Key "1" (alt + 1) to focus the map element, and
<li>Use following keys to pan and zoom: use following keys to pan and zoom:
<ul> <ul>
<li>+ (zoom in)</li> <li>+ (zoom in)</li>
<li>- (zoom out)</li> <li>- (zoom out)</li>
@@ -124,8 +143,12 @@
<li>left-arrow (pan east)</li> <li>left-arrow (pan east)</li>
<li>right-arrow (pan west)</li> <li>right-arrow (pan west)</li>
</ul> </ul>
See <a href=http://en.wikipedia.org/wiki/Access_key>wikipedia</a> for
more detail about Access Keys.
</li> </li>
<li>If access keys work for links in your browser, use: <li>Navigate to pan and zoom links using the "tab" key, and
press "enter" to pan and zoom</li>
<li>If Access Keys work for links in your browser, use:
<ul> <ul>
<li>i (zoom in)</li> <li>i (zoom in)</li>
<li>o (zoom out)</li> <li>o (zoom out)</li>
@@ -135,7 +158,7 @@
<li>w (pan west)</li> <li>w (pan west)</li>
</ul> </ul>
</li> </li>
</ul> </ol>
<p> <p>
This is an example of using alternate methods to control panning and zooming. This approach uses map.pan() and map.zoom(). You'll note that to pan, additional math is necessary along with map.size() in order to set the distance to pan. This is an example of using alternate methods to control panning and zooming. This approach uses map.pan() and map.zoom(). You'll note that to pan, additional math is necessary along with map.size() in order to set the distance to pan.
+2 -2
View File
@@ -8,14 +8,14 @@
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="../theme/default/google.css" type="text/css"> <link rel="stylesheet" href="../theme/default/google.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<script src="http://maps.google.com/maps/api/js?sensor=false"></script> <script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false"></script>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script src="all-overlays-google.js"></script> <script src="all-overlays-google.js"></script>
</head> </head>
<body onload="init()"> <body onload="init()">
<h1 id="title">All Overlays with Google and OSM</h1> <h1 id="title">All Overlays with Google and OSM</h1>
<div id="tags"> <div id="tags">
overlay, baselayer, google, osm, openstreetmap overlay, baselayer, google, osm, openstreetmap, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Using the Google and OSM layers as overlays. Using the Google and OSM layers as overlays.
+1 -1
View File
@@ -61,7 +61,7 @@
<body onload="init()"> <body onload="init()">
<h1 id="title">OpenLayers Overlays Only Example</h1> <h1 id="title">OpenLayers Overlays Only Example</h1>
<div id="tags"> <div id="tags">
overlay, baselayer overlay, baselayer, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrates a map with overlays only. Demonstrates a map with overlays only.
+20 -20
View File
@@ -131,14 +131,14 @@ Animator.prototype = {
str += ">"; str += ">";
return str; return str;
} }
} };
// merge the properties of two objects // merge the properties of two objects
Animator.applyDefaults = function(defaults, prefs) { Animator.applyDefaults = function(defaults, prefs) {
prefs = prefs || {}; prefs = prefs || {};
var prop, result = {}; var prop, result = {};
for (prop in defaults) result[prop] = prefs[prop] !== undefined ? prefs[prop] : defaults[prop]; for (prop in defaults) result[prop] = prefs[prop] !== undefined ? prefs[prop] : defaults[prop];
return result; return result;
} };
// make an array from any object // make an array from any object
Animator.makeArray = function(o) { Animator.makeArray = function(o) {
if (o == null) return []; if (o == null) return [];
@@ -146,7 +146,7 @@ Animator.makeArray = function(o) {
var result = []; var result = [];
for (var i=0; i<o.length; i++) result[i] = o[i]; for (var i=0; i<o.length; i++) result[i] = o[i];
return result; return result;
} };
// convert a dash-delimited-property to a camelCaseProperty (c/o Prototype, thanks Sam!) // convert a dash-delimited-property to a camelCaseProperty (c/o Prototype, thanks Sam!)
Animator.camelize = function(string) { Animator.camelize = function(string) {
var oStringList = string.split('-'); var oStringList = string.split('-');
@@ -161,27 +161,27 @@ Animator.camelize = function(string) {
camelizedString += s.charAt(0).toUpperCase() + s.substring(1); camelizedString += s.charAt(0).toUpperCase() + s.substring(1);
} }
return camelizedString; return camelizedString;
} };
// syntactic sugar for creating CSSStyleSubjects // syntactic sugar for creating CSSStyleSubjects
Animator.apply = function(el, style, options) { Animator.apply = function(el, style, options) {
if (style instanceof Array) { if (style instanceof Array) {
return new Animator(options).addSubject(new CSSStyleSubject(el, style[0], style[1])); return new Animator(options).addSubject(new CSSStyleSubject(el, style[0], style[1]));
} }
return new Animator(options).addSubject(new CSSStyleSubject(el, style)); return new Animator(options).addSubject(new CSSStyleSubject(el, style));
} };
// make a transition function that gradually accelerates. pass a=1 for smooth // make a transition function that gradually accelerates. pass a=1 for smooth
// gravitational acceleration, higher values for an exaggerated effect // gravitational acceleration, higher values for an exaggerated effect
Animator.makeEaseIn = function(a) { Animator.makeEaseIn = function(a) {
return function(state) { return function(state) {
return Math.pow(state, a*2); return Math.pow(state, a*2);
} }
} };
// as makeEaseIn but for deceleration // as makeEaseIn but for deceleration
Animator.makeEaseOut = function(a) { Animator.makeEaseOut = function(a) {
return function(state) { return function(state) {
return 1 - Math.pow(1 - state, a*2); return 1 - Math.pow(1 - state, a*2);
} }
} };
// make a transition function that, like an object with momentum being attracted to a point, // make a transition function that, like an object with momentum being attracted to a point,
// goes past the target then returns // goes past the target then returns
Animator.makeElastic = function(bounces) { Animator.makeElastic = function(bounces) {
@@ -189,7 +189,7 @@ Animator.makeElastic = function(bounces) {
state = Animator.tx.easeInOut(state); state = Animator.tx.easeInOut(state);
return ((1-Math.cos(state * Math.PI * bounces)) * (1 - state)) + state; return ((1-Math.cos(state * Math.PI * bounces)) * (1 - state)) + state;
} }
} };
// make an Attack Decay Sustain Release envelope that starts and finishes on the same level // make an Attack Decay Sustain Release envelope that starts and finishes on the same level
// //
Animator.makeADSR = function(attackEnd, decayEnd, sustainEnd, sustainLevel) { Animator.makeADSR = function(attackEnd, decayEnd, sustainEnd, sustainLevel) {
@@ -206,7 +206,7 @@ Animator.makeADSR = function(attackEnd, decayEnd, sustainEnd, sustainLevel) {
} }
return sustainLevel * (1 - ((state - sustainEnd) / (1 - sustainEnd))); return sustainLevel * (1 - ((state - sustainEnd) / (1 - sustainEnd)));
} }
} };
// make a transition function that, like a ball falling to floor, reaches the target and/ // make a transition function that, like a ball falling to floor, reaches the target and/
// bounces back again // bounces back again
Animator.makeBounce = function(bounces) { Animator.makeBounce = function(bounces) {
@@ -215,7 +215,7 @@ Animator.makeBounce = function(bounces) {
state = fn(state); state = fn(state);
return state <= 1 ? state : 2-state; return state <= 1 ? state : 2-state;
} }
} };
// pre-made transition functions to use with the 'transition' option // pre-made transition functions to use with the 'transition' option
Animator.tx = { Animator.tx = {
@@ -233,7 +233,7 @@ Animator.tx = {
veryElastic: Animator.makeElastic(3), veryElastic: Animator.makeElastic(3),
bouncy: Animator.makeBounce(1), bouncy: Animator.makeBounce(1),
veryBouncy: Animator.makeBounce(3) veryBouncy: Animator.makeBounce(3)
} };
// animates a pixel-based style property between two integer values // animates a pixel-based style property between two integer values
function NumericalStyleSubject(els, property, from, to, units) { function NumericalStyleSubject(els, property, from, to, units) {
@@ -271,7 +271,7 @@ NumericalStyleSubject.prototype = {
inspect: function() { inspect: function() {
return "\t" + this.property + "(" + this.from + this.units + " to " + this.to + this.units + ")\n"; return "\t" + this.property + "(" + this.from + this.units + " to " + this.to + this.units + ")\n";
} }
} };
// animates a colour based style property between two hex values // animates a colour based style property between two hex values
function ColorStyleSubject(els, property, from, to) { function ColorStyleSubject(els, property, from, to) {
@@ -313,7 +313,7 @@ ColorStyleSubject.prototype = {
inspect: function() { inspect: function() {
return "\t" + this.property + "(" + this.origFrom + " to " + this.origTo + ")\n"; return "\t" + this.property + "(" + this.origFrom + " to " + this.origTo + ")\n";
} }
} };
// return a properly formatted 6-digit hex colour spec, or false // return a properly formatted 6-digit hex colour spec, or false
ColorStyleSubject.parseColor = function(string) { ColorStyleSubject.parseColor = function(string) {
@@ -336,14 +336,14 @@ ColorStyleSubject.parseColor = function(string) {
return '#' + match[1]; return '#' + match[1];
} }
return false; return false;
} };
// convert a number to a 2 digit hex string // convert a number to a 2 digit hex string
ColorStyleSubject.toColorPart = function(number) { ColorStyleSubject.toColorPart = function(number) {
if (number > 255) number = 255; if (number > 255) number = 255;
var digits = number.toString(16); var digits = number.toString(16);
if (number < 16) return '0' + digits; if (number < 16) return '0' + digits;
return digits; return digits;
} };
ColorStyleSubject.parseColor.rgbRe = /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i; ColorStyleSubject.parseColor.rgbRe = /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i;
ColorStyleSubject.parseColor.hexRe = /^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/; ColorStyleSubject.parseColor.hexRe = /^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
@@ -367,7 +367,7 @@ DiscreteStyleSubject.prototype = {
inspect: function() { inspect: function() {
return "\t" + this.property + "(" + this.from + " to " + this.to + " @ " + this.threshold + ")\n"; return "\t" + this.property + "(" + this.from + " to " + this.to + " @ " + this.threshold + ")\n";
} }
} };
// animates between two styles defined using CSS. // animates between two styles defined using CSS.
// if style1 and style2 are present, animate between them, if only style1 // if style1 and style2 are present, animate between them, if only style1
@@ -482,7 +482,7 @@ CSSStyleSubject.prototype = {
} }
return str; return str;
} }
} };
// get the current value of a css property, // get the current value of a css property,
CSSStyleSubject.getStyle = function(el, property){ CSSStyleSubject.getStyle = function(el, property){
var style; var style;
@@ -497,7 +497,7 @@ CSSStyleSubject.getStyle = function(el, property){
style = el.currentStyle[property]; style = el.currentStyle[property];
} }
return style || el.style[property] return style || el.style[property]
} };
CSSStyleSubject.ruleRe = /^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/; CSSStyleSubject.ruleRe = /^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/;
@@ -604,7 +604,7 @@ AnimatorChain.prototype = {
this.animators[this.current].seekTo(1); this.animators[this.current].seekTo(1);
} }
} }
} };
// an Accordion is a class that creates and controls a number of Animators. An array of elements is passed in, // an Accordion is a class that creates and controls a number of Animators. An array of elements is passed in,
// and for each element an Animator and a activator button is created. When an Animator's activator button is // and for each element an Animator and a activator button is created. When an Animator's activator button is
@@ -667,4 +667,4 @@ Accordion.prototype = {
document.location.hash = this.rememberanceTexts[section]; document.location.hash = this.rememberanceTexts[section];
} }
} }
} };
+7 -11
View File
@@ -7,20 +7,17 @@
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script src="../lib/OpenLayers/Layer/ArcGISCache.js" type="text/javascript"></script>
<!-- This is to simplify making the JSONP request for this example -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var map, var map,
layerURL = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"; layerURL = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer";
function init() { function init() {
var jsonp_url = layerURL + '?f=json&pretty=true&callback=?'; var jsonp = new OpenLayers.Protocol.Script();
$.getJSON(jsonp_url, function(data) { jsonp.createRequest(layerURL, {
initMap(data); f: 'json',
}); pretty: 'true'
}, initMap);
} }
function initMap(layerInfo){ function initMap(layerInfo){
@@ -46,8 +43,7 @@
resolutions: baseLayer.resolutions, resolutions: baseLayer.resolutions,
numZoomLevels: baseLayer.numZoomLevels, numZoomLevels: baseLayer.numZoomLevels,
tileSize: baseLayer.tileSize, tileSize: baseLayer.tileSize,
displayProjection: baseLayer.displayProjection, displayProjection: baseLayer.displayProjection
StartBounds: baseLayer.initialExtent
}); });
map.addLayers([baseLayer]); map.addLayers([baseLayer]);
@@ -93,7 +89,7 @@
<p> <p>
This method automatically configures the layer using the capabilities object This method automatically configures the layer using the capabilities object
generated by the server itself. This page shows how to construct the url for the server capabilities object, generated by the server itself. This page shows how to construct the url for the server capabilities object,
retrieve it using JSONP (and jQuery), and pass it in during construction. Note that in this case, retrieve it using JSONP, and pass it in during construction. Note that in this case,
the layer is constructed before the map. This approach greatly simplifies the the layer is constructed before the map. This approach greatly simplifies the
configuration of your map, and works best when all your tiles / overlays are similarly laid out. configuration of your map, and works best when all your tiles / overlays are similarly laid out.
If you are using a live AGS map server for your layer, it can be helpful to check your If you are using a live AGS map server for your layer, it can be helpful to check your
+1 -1
View File
@@ -40,7 +40,7 @@
<h1 id="title">Attribution Example</h1> <h1 id="title">Attribution Example</h1>
<div id="tags"> <div id="tags">
copyright, watermark, logo, attribution copyright, watermark, logo, attribution, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+1 -1
View File
@@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<title>Basic Bing Tiles with a Subset of Resolutions Example</title> <title>Basic Bing Tiles with a Subset of Resolutions Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
+1 -1
View File
@@ -20,7 +20,7 @@
<h1 id="title">Basic Bing Tiles Example</h1> <h1 id="title">Basic Bing Tiles Example</h1>
<div id="tags"> <div id="tags">
bing tiles bing tiles, light
</div> </div>
<div id="shortdesc">Use Bing with direct tile access</div> <div id="shortdesc">Use Bing with direct tile access</div>
+18 -16
View File
@@ -7,35 +7,37 @@
<title>OpenLayers Bing Example</title> <title>OpenLayers Bing Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<script src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&amp;mkt=en-us"></script>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script> <script>
// API key for http://openlayers.org. Please get your own at
// http://bingmapsportal.com/ and use that instead.
var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf";
var map; var map;
function init(){ function init() {
// setting restrictedExtent so that we can use the
// VirtualEarth-layers, see e.g.
// http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/VirtualEarth-js.html
var restrictedExtent = new OpenLayers.Bounds(-180, -90,
180, 90);
map = new OpenLayers.Map("map"); map = new OpenLayers.Map("map");
map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.LayerSwitcher());
var shaded = new OpenLayers.Layer.VirtualEarth("Shaded", { var road = new OpenLayers.Layer.Bing({
type: VEMapStyle.Shaded name: "Road",
key: apiKey,
type: "Road"
}); });
var hybrid = new OpenLayers.Layer.VirtualEarth("Hybrid", { var hybrid = new OpenLayers.Layer.Bing({
type: VEMapStyle.Hybrid name: "Hybrid",
key: apiKey,
type: "AerialWithLabels"
}); });
var aerial = new OpenLayers.Layer.VirtualEarth("Aerial", { var aerial = new OpenLayers.Layer.Bing({
type: VEMapStyle.Aerial name: "Aerial",
key: apiKey,
type: "Aerial"
}); });
map.addLayers([shaded, hybrid, aerial]); map.addLayers([road, hybrid, aerial]);
map.setCenter(new OpenLayers.LonLat(-110, 45), 3); map.setCenter(new OpenLayers.LonLat(-110, 45), 3);
} }
@@ -46,7 +48,7 @@
<h1 id="title">Bing Example</h1> <h1 id="title">Bing Example</h1>
<div id="tags"> <div id="tags">
Bing, Microsoft, Virtual Earth Bing, Microsoft, Virtual Earth, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+1 -1
View File
@@ -45,7 +45,7 @@
<h1 id="title">Boxes Example Vector</h1> <h1 id="title">Boxes Example Vector</h1>
<div id="tags"> <div id="tags">
box, vector, annotation box, vector, annotation, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+3 -3
View File
@@ -28,7 +28,7 @@
"http://vmap0.tiles.osgeo.org/wms/vmap0", "http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'}, {'buffer':4} ); {layers: 'basic'}, {'buffer':4} );
map.addLayer(layer); map.addLayer(layer);
map.addControl(new OpenLayers.Control.LayerSwitcher()) map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
} }
</script> </script>
@@ -37,7 +37,7 @@
<h1 id="title">Buffer Example</h1> <h1 id="title">Buffer Example</h1>
<div id="tags"> <div id="tags">
buffer, performance, tile buffer, performance, tile, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
@@ -48,7 +48,7 @@
<div id="docs"> <div id="docs">
Use the buffer property to control how many tiles are included Use the buffer property to control how many tiles are included
outside the visible map area. Default is 2. outside the visible map area. Default is 0.
</div> </div>
</body> </body>
</html> </html>
+36
View File
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Cache Read Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<script src="../lib/OpenLayers.js"></script>
<script src="cache-read.js"></script>
</head>
<body onload="init()">
<h1 id="title">Cache Read Example</h1>
<div id="tags">
mobile, local storage, persistence, cache, html5
</div>
<div id="shortdesc">Caching viewed tiles</div>
<div id="map" class="smallmap"></div>
<div id="status"></div>
<br>
<div id="docs">
<p>This example shows how to use the CacheRead control to fetch cached
tiles from the browser's Local Storage. As you pan and zoom the map,
you can see how the number of cache hits incrases as you browse regions
that are available in the cache.</p>
<p>To fill the cache with tiles, switch to the
<a href="cache-write.html">cache-write.html</a> example.</p>
<p>See <a href="cache-read.js">cache-read.js</a> for the source
code.</p>
</div>
</body>
</html>
+36
View File
@@ -0,0 +1,36 @@
var map, cacheRead;
function init() {
map = new OpenLayers.Map({
div: "map",
projection: "EPSG:900913",
layers: [
new OpenLayers.Layer.WMS("OSGeo", "http://vmap0.tiles.osgeo.org/wms/vmap0", {
layers: "basic"
}, {
eventListeners: {
tileloaded: updateHits
}
})
],
center: [0, 0],
zoom: 1
});
cacheRead = new OpenLayers.Control.CacheRead();
map.addControl(cacheRead);
// User interface
var status = document.getElementById("status"),
hits = 0;
// update the number of cached tiles and detect local storage support
function updateHits(evt) {
hits += evt.tile.url.substr(0, 5) === "data:";
if (window.localStorage) {
status.innerHTML = hits + " cache hits.";
} else {
status.innerHTML = "Local storage not supported. Try a different browser.";
}
}
}
+37
View File
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Cache Write Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<script src="../lib/OpenLayers.js"></script>
<script>OpenLayers.Console = window.console || OpenLayers.Console;</script>
<script src="cache-write.js"></script>
</head>
<body onload="init()">
<h1 id="title">Cache Write Example</h1>
<div id="tags">
mobile, local storage, persistence, cache, html5
</div>
<div id="shortdesc">Caching viewed tiles</div>
<div id="map" class="smallmap"></div>
<div>Cache status: <span id="status"></span></div>
<div><button id="clear">Clear cache</button></div>
<br>
<div id="docs">
<p>This example shows how to use the CacheWrite control to cache the
tiles. Caching is turned on, and as you pan and zoom the map, every
tile that is loaded is also copied to the browsers Local Storage.</p>
<p>To use the cached tiles, switch to the
<a href="cache-read.html">cache-read.html</a> example.</p>
<p>See <a href="cache-write.js">cache-write.js</a> for the source
code.</p>
</div>
</body>
</html>
+48
View File
@@ -0,0 +1,48 @@
// Use proxy to get same origin URLs for tiles that don't support CORS.
OpenLayers.ProxyHost = "proxy.cgi?url=";
var map, cacheWrite;
function init() {
map = new OpenLayers.Map({
div: "map",
projection: "EPSG:900913",
layers: [
new OpenLayers.Layer.WMS("OSGeo", "http://vmap0.tiles.osgeo.org/wms/vmap0", {
layers: "basic"
}, {
eventListeners: {
tileloaded: updateStatus
}
})
],
center: [0, 0],
zoom: 1
});
cacheWrite = new OpenLayers.Control.CacheWrite({
autoActivate: true,
imageFormat: "image/jpeg",
eventListeners: {
cachefull: function() { status.innerHTML = "Cache full."; }
}
});
map.addControl(cacheWrite);
// User interface
var status = document.getElementById("status");
document.getElementById("clear").onclick = function() {
OpenLayers.Control.CacheWrite.clearCache();
updateStatus();
};
// update the number of cached tiles and detect local storage support
function updateStatus() {
if (window.localStorage) {
status.innerHTML = localStorage.length + " entries in cache.";
} else {
status.innerHTML = "Local storage not supported. Try a different browser.";
}
}
}
+1 -1
View File
@@ -3,7 +3,7 @@
<head> <head>
<title>OpenLayers Canvas Hit Detection Example</title> <title>OpenLayers Canvas Hit Detection Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0;"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
+1 -6
View File
@@ -5,12 +5,7 @@ function init() {
map = new OpenLayers.Map({ map = new OpenLayers.Map({
div: "map", div: "map",
projection: new OpenLayers.Projection("EPSG:900913"), projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326"), displayProjection: new OpenLayers.Projection("EPSG:4326")
units: "m",
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(
-20037508, -20037508, 20037508, 20037508
)
}); });
var g = new OpenLayers.Layer.Google("Google Layer", { var g = new OpenLayers.Layer.Google("Google Layer", {
+1 -1
View File
@@ -70,7 +70,7 @@
<div id="tags"> <div id="tags">
click control, double, doubleclick, double-click, event, events, click control, double, doubleclick, double-click, event, events,
propagation propagation, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+72
View File
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Client Zoom Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"/>
<link rel="stylesheet" href="style.css" type="text/css">
<script src="../lib/Firebug/firebug.js"></script>
<script src="../lib/OpenLayers.js"></script>
<script src="clientzoom.js"></script>
<style>
.olControlAttribution {
bottom: 5px;
}
#map {
width: 600px;
height: 400px;
}
</style>
</head>
<body onload="init();">
<h1 id="title">Client Zoom</h1>
<div id="tags">
client zoom continuous zooming
</div>
<p id="shortdesc">
This example demonstrates the <strong>"client zoom"</strong>
functionality, where OpenLayers stretches the layer div when the
resolution is not supported by that layer's tile service.
</p>
<div id="map"></div>
<div id="docs">
<p>
The map of this example is configured with 22 resolutions, while
the OSM tile server supports the first 19 resolutions only. When
the zoom level is 19, 20 or 21 "client zoom" is applied to the OSM
layer, i.e. the OSM layer div is stretched as necessary. The map's
initial zoom is 18. So if you zoom in using the zoom bar's "+"
button you'll effectively trigger "client zoom".
</p>
<p>
For demonstration purpose the map of this example has
<code>fractionalZoom</code> set to true. So "client zoom" also
applies if you choose arbitrary zoom levels using the slider of the
zoom bar, or shift-drag boxes to zoom to arbitrary extents.
"client zoom" therefore allows continous zooming for tiled layers.
</p>
<p>
Enabling "client zoom" on a layer is done by passing
<code>serverResolutions</code> to the layer constructor.
<code>serverResolutions</code> is the list of resolutions supported
by the tile service. See the <a href="clientzoom.js"
target="_blank"> clientzoom.js source</a>.
</p>
</div>
</body>
</html>
+39
View File
@@ -0,0 +1,39 @@
var map;
function init() {
map = new OpenLayers.Map({
div: "map",
projection: "EPSG:900913",
controls: [],
fractionalZoom: true
});
var osm = new OpenLayers.Layer.OSM(null, null, {
resolutions: [156543.03390625, 78271.516953125, 39135.7584765625,
19567.87923828125, 9783.939619140625, 4891.9698095703125,
2445.9849047851562, 1222.9924523925781, 611.4962261962891,
305.74811309814453, 152.87405654907226, 76.43702827453613,
38.218514137268066, 19.109257068634033, 9.554628534317017,
4.777314267158508, 2.388657133579254, 1.194328566789627,
0.5971642833948135, 0.25, 0.1, 0.05],
serverResolutions: [156543.03390625, 78271.516953125, 39135.7584765625,
19567.87923828125, 9783.939619140625,
4891.9698095703125, 2445.9849047851562,
1222.9924523925781, 611.4962261962891,
305.74811309814453, 152.87405654907226,
76.43702827453613, 38.218514137268066,
19.109257068634033, 9.554628534317017,
4.777314267158508, 2.388657133579254,
1.194328566789627, 0.5971642833948135],
transitionEffect: 'resize'
});
map.addLayers([osm]);
map.addControls([
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.PanZoomBar()
]);
map.setCenter(new OpenLayers.LonLat(659688.852138, 5710701.2962197), 18);
}
+10
View File
@@ -8,6 +8,16 @@
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<style>
/* round corners of layer switcher, and make it transparent */
.olControlLayerSwitcher .layersDiv {
border-radius: 10px 0 0 10px;
opacity: 0.75;
filter: alpha(opacity=75);
}
</style>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var map; var map;
+1 -1
View File
@@ -37,7 +37,7 @@ var map = new OpenLayers.Map({
function loadFeatures(data) { function loadFeatures(data) {
var features = new OpenLayers.Format.GeoJSON().read(data); var features = new OpenLayers.Format.GeoJSON().read(data);
states.addFeatures(features); states.addFeatures(features);
}; }
// update filter and redraw when form is submitted // update filter and redraw when form is submitted
var cql = document.getElementById("cql"); var cql = document.getElementById("cql");
+32
View File
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers Script Protocol XML Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="../lib/OpenLayers.js"></script>
</head>
<body>
<h1 id="title">Script Protocol With XML</h1>
<div id="tags">
protocol, script, cross origin, xml, advanced
</div>
<p id="shortdesc">
Demonstrates how, with a custom parseFeatures method, the script protocol can be used with YQL for cross-origin loading of files in any of the XML formats supported by OpenLayers.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
YQL can wrap a jsonp callback around an XML file, which effectively means Yahoo's servers are acting as a proxy for cross-origin feature loading. This example uses a GPX file, but the same technique can be used for other formats such as KML.
</p>
<p>
View the <a href="cross-origin-xml.js" target="_blank">cross-origin-xml.js</a>
source to see how this is done
</p>
</div>
<script src="cross-origin-xml.js"></script>
</body>
</html>
+25
View File
@@ -0,0 +1,25 @@
var map = new OpenLayers.Map({
div: "map",
layers: [
new OpenLayers.Layer.OSM(),
new OpenLayers.Layer.Vector("Vectors", {
projection: new OpenLayers.Projection("EPSG:4326"),
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.Script({
url: "http://query.yahooapis.com/v1/public/yql",
params: {
q: "select * from xml where url='http://www.topografix.com/fells_loop.gpx'"
},
format: new OpenLayers.Format.GPX(),
parseFeatures: function(data) {
return this.format.read(data.results[0]);
}
}),
eventListeners: {
"featuresadded": function () {
this.map.zoomToExtent(this.getDataExtent());
}
}
})
]
});
+1 -1
View File
@@ -50,7 +50,7 @@
<h1 id="title">Custom Control Example</h1> <h1 id="title">Custom Control Example</h1>
<div id="tags"> <div id="tags">
control, panel, rectangle control, panel, rectangle, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+1 -1
View File
@@ -31,7 +31,7 @@ function updateOutput(event) {
map.layers[1].events.on({ map.layers[1].events.on({
sketchmodified: updateOutput, sketchmodified: updateOutput,
sketchcomplete: updateOutput sketchcomplete: updateOutput
}) });
// add behavior to UI elements // add behavior to UI elements
function toggleControl(element) { function toggleControl(element) {
-38
View File
@@ -1,38 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Double Set Center Example</title>
<script src="../lib/OpenLayers.js"></script>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<h1 id="title">Double Set Center Example</h1>
<div id="tags">
center, centering, cleanup
</div>
<p id="shortdesc">
Demonstrate the behavior of two calls to set the center after instantiating the layer object.
</p>
<div id="map" class="smallmap"></div>
<script defer="defer" type="text/javascript">
var map = new OpenLayers.Map('map');
var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
map.addLayer(wms);
map.setCenter(new OpenLayers.LonLat(100,10));
map.setCenter(new OpenLayers.LonLat(1,1));
</script>
<div id="docs"></div>
</body>
</html>
+21 -6
View File
@@ -33,18 +33,27 @@
var pointLayer = new OpenLayers.Layer.Vector("Point Layer"); var pointLayer = new OpenLayers.Layer.Vector("Point Layer");
var lineLayer = new OpenLayers.Layer.Vector("Line Layer"); var lineLayer = new OpenLayers.Layer.Vector("Line Layer");
var polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer"); var polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer");
var boxLayer = new OpenLayers.Layer.Vector("Box layer");
map.addLayers([wmsLayer, pointLayer, lineLayer, polygonLayer]); map.addLayers([wmsLayer, pointLayer, lineLayer, polygonLayer, boxLayer]);
map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.LayerSwitcher());
map.addControl(new OpenLayers.Control.MousePosition()); map.addControl(new OpenLayers.Control.MousePosition());
drawControls = { drawControls = {
point: new OpenLayers.Control.DrawFeature(pointLayer, point: new OpenLayers.Control.DrawFeature(pointLayer,
OpenLayers.Handler.Point), OpenLayers.Handler.Point),
line: new OpenLayers.Control.DrawFeature(lineLayer, line: new OpenLayers.Control.DrawFeature(lineLayer,
OpenLayers.Handler.Path), OpenLayers.Handler.Path),
polygon: new OpenLayers.Control.DrawFeature(polygonLayer, polygon: new OpenLayers.Control.DrawFeature(polygonLayer,
OpenLayers.Handler.Polygon) OpenLayers.Handler.Polygon),
box: new OpenLayers.Control.DrawFeature(boxLayer,
OpenLayers.Handler.RegularPolygon, {
handlerOptions: {
sides: 4,
irregular: true
}
}
)
}; };
for(var key in drawControls) { for(var key in drawControls) {
@@ -80,11 +89,11 @@
<h1 id="title">OpenLayers Draw Feature Example</h1> <h1 id="title">OpenLayers Draw Feature Example</h1>
<div id="tags"> <div id="tags">
point, line, linestring, polygon, digitizing, geometry, draw, drag point, line, linestring, polygon, box, digitizing, geometry, draw, drag
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate on-screen digitizing tools for point, line, and polygon creation. Demonstrate on-screen digitizing tools for point, line, polygon and box creation.
</p> </p>
<div id="map" class="smallmap"></div> <div id="map" class="smallmap"></div>
@@ -107,6 +116,10 @@
<input type="radio" name="type" value="polygon" id="polygonToggle" onclick="toggleControl(this);" /> <input type="radio" name="type" value="polygon" id="polygonToggle" onclick="toggleControl(this);" />
<label for="polygonToggle">draw polygon</label> <label for="polygonToggle">draw polygon</label>
</li> </li>
<li>
<input type="radio" name="type" value="box" id="boxToggle" onclick="toggleControl(this);" />
<label for="boxToggle">draw box</label>
</li>
<li> <li>
<input type="checkbox" name="allow-pan" value="allow-pan" id="allowPanCheckbox" checked=true onclick="allowPan(this);" /> <input type="checkbox" name="allow-pan" value="allow-pan" id="allowPanCheckbox" checked=true onclick="allowPan(this);" />
<label for="allowPanCheckbox">allow pan while drawing</label> <label for="allowPanCheckbox">allow pan while drawing</label>
@@ -119,6 +132,8 @@
Double-click to finish drawing.</p> Double-click to finish drawing.</p>
<p>With the polygon drawing control active, click on the map to add the points that make up your <p>With the polygon drawing control active, click on the map to add the points that make up your
polygon. Double-click to finish drawing.</p> polygon. Double-click to finish drawing.</p>
<p>With the box drawing control active, click in the map and drag the mouse to get a rectangle. Release
the mouse to finish.</p>
<p>With any drawing control active, paning the map can still be achieved. Drag the map as <p>With any drawing control active, paning the map can still be achieved. Drag the map as
usual for that.</p> usual for that.</p>
<p>Hold down the shift key while drawing to activate freehand mode. While drawing lines or polygons <p>Hold down the shift key while drawing to activate freehand mode. While drawing lines or polygons
+1 -1
View File
@@ -3,7 +3,7 @@
<head> <head>
<title>OpenLayers Undo/Redo Drawing Methods</title> <title>OpenLayers Undo/Redo Drawing Methods</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0;"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
+1 -1
View File
@@ -3,7 +3,7 @@
<head> <head>
<title>OpenLayers Editing Methods</title> <title>OpenLayers Editing Methods</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0;"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
+6 -6
View File
@@ -29,7 +29,7 @@ $("insertXY").onclick = function() {
if (values != null) { if (values != null) {
draw.insertXY(values[0], values[1]); draw.insertXY(values[0], values[1]);
} }
} };
$("insertDeltaXY").onclick = function() { $("insertDeltaXY").onclick = function() {
var values = parseInput( var values = parseInput(
window.prompt( window.prompt(
@@ -39,7 +39,7 @@ $("insertDeltaXY").onclick = function() {
if (values != null) { if (values != null) {
draw.insertDeltaXY(values[0], values[1]); draw.insertDeltaXY(values[0], values[1]);
} }
} };
$("insertDirectionLength").onclick = function() { $("insertDirectionLength").onclick = function() {
var values = parseInput( var values = parseInput(
window.prompt( window.prompt(
@@ -49,7 +49,7 @@ $("insertDirectionLength").onclick = function() {
if (values != null) { if (values != null) {
draw.insertDirectionLength(values[0], values[1]); draw.insertDirectionLength(values[0], values[1]);
} }
} };
$("insertDeflectionLength").onclick = function() { $("insertDeflectionLength").onclick = function() {
var values = parseInput( var values = parseInput(
window.prompt( window.prompt(
@@ -59,13 +59,13 @@ $("insertDeflectionLength").onclick = function() {
if (values != null) { if (values != null) {
draw.insertDeflectionLength(values[0], values[1]); draw.insertDeflectionLength(values[0], values[1]);
} }
} };
$("cancel").onclick = function() { $("cancel").onclick = function() {
draw.cancel(); draw.cancel();
} };
$("finishSketch").onclick = function() { $("finishSketch").onclick = function() {
draw.finishSketch(); draw.finishSketch();
} };
function parseInput(text) { function parseInput(text) {
var values = text.split(","); var values = text.split(",");
+4 -4
View File
@@ -64,7 +64,7 @@
} }
.ex_classes{ .ex_classes{
font-size: .7em; font-size: .7em;
color: grey; color: gray;
display: none; display: none;
} }
#toc { #toc {
@@ -169,7 +169,7 @@
var words = text.split(/\W+/); var words = text.split(/\W+/);
var scores = {}; var scores = {};
for(var i=0; i<words.length; ++i) { for(var i=0; i<words.length; ++i) {
var word = words[i].toLowerCase() var word = words[i].toLowerCase();
var dict = info.index[word]; var dict = info.index[word];
var updateScores = function() { var updateScores = function() {
for(exIndex in dict) { for(exIndex in dict) {
@@ -185,7 +185,7 @@
scores[exIndex][word] = count; scores[exIndex][word] = count;
} }
} }
} };
if(dict) { if(dict) {
updateScores(); updateScores();
} else { } else {
@@ -255,7 +255,7 @@
template = new jugl.Template("template"); template = new jugl.Template("template");
target = document.getElementById("examples"); target = document.getElementById("examples");
listExamples(info.examples); listExamples(info.examples);
document.getElementById("keywords").onkeyup = inputChange document.getElementById("keywords").onkeyup = inputChange;
parseQuery(); parseQuery();
}; };
</script> </script>
+1 -1
View File
@@ -10,7 +10,7 @@
</head> </head>
<body> <body>
<h1 id="title">OpenLayers Example</h1> <h1 id="title">OpenLayers Example</h1>
<div id="tags">simple, basic</div> <div id="tags">simple, basic, light</div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate a simple map with an overlay that includes layer switching controls. Demonstrate a simple map with an overlay that includes layer switching controls.
</p> </p>
+2 -2
View File
@@ -20,11 +20,11 @@ function startAnimation() {
filter.lowerBoundary = currentDate; filter.lowerBoundary = currentDate;
filter.upperBoundary = new Date(currentDate.getTime() + (span * 1000)); filter.upperBoundary = new Date(currentDate.getTime() + (span * 1000));
filterStrategy.setFilter(filter); filterStrategy.setFilter(filter);
currentDate = new Date(currentDate.getTime() + (step * 1000)) currentDate = new Date(currentDate.getTime() + (step * 1000));
} else { } else {
stopAnimation(true); stopAnimation(true);
} }
} };
animationTimer = window.setInterval(next, interval * 1000); animationTimer = window.setInterval(next, interval * 1000);
} }
+3 -3
View File
@@ -25,9 +25,8 @@
} }
</style> </style>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script src="fullScreen.js"></script>
</head> </head>
<body onload="init()"> <body>
<div id="map"></div> <div id="map"></div>
<div id="text"> <div id="text">
@@ -38,7 +37,7 @@
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate a map that fill the entire browser window. Demonstrate a map that fills the entire browser window.
</p> </p>
<div id="docs"> <div id="docs">
@@ -48,6 +47,7 @@
<a href="fullScreen.js" target="_blank">fullScreen.js source</a> <a href="fullScreen.js" target="_blank">fullScreen.js source</a>
to see how this is done.</p> to see how this is done.</p>
</div> </div>
<script src="fullScreen.js"></script>
</div> </div>
</body> </body>
</html> </html>
+28 -13
View File
@@ -1,15 +1,30 @@
var map; var urls = [
function init(){ "http://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
map = new OpenLayers.Map('map'); "http://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
"http://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
];
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", var map = new OpenLayers.Map({
"http://vmap0.tiles.osgeo.org/wms/vmap0", div: "map",
{layers: 'basic'} ); layers: [
var ol_wms_nobuffer = new OpenLayers.Layer.WMS( "OpenLayers WMS (no tile buffer)", new OpenLayers.Layer.XYZ("OSM (with buffer)", urls, {
"http://vmap0.tiles.osgeo.org/wms/vmap0", transitionEffect: "resize", buffer: 2, sphericalMercator: true
{layers: 'basic'}, {buffer: 0}); }),
new OpenLayers.Layer.XYZ("OSM (without buffer)", urls, {
transitionEffect: "resize", buffer: 0, sphericalMercator: true
})
],
controls: [
new OpenLayers.Control.Navigation({
dragPanOptions: {
enableKinetic: true
}
}),
new OpenLayers.Control.PanZoom(),
new OpenLayers.Control.Attribution()
],
center: [0, 0],
zoom: 3
});
map.addLayers([ol_wms, ol_wms_nobuffer]); map.addControl(new OpenLayers.Control.LayerSwitcher());
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(0, 0), 6);
}
+32
View File
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers Example For Reading Features From Google Fusion Tables</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="../lib/OpenLayers.js"></script>
</head>
<body>
<h1 id="title">Reading Features From A Google Fusion Tables Table</h1>
<div id="tags">
protocol, script, fusion tables
</div>
<p id="shortdesc">
Demonstrates how, with a custom read method, the script protocol and GeoJSON format can be used to read features stored in a table on Google Fusion Tables.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
Google Fusion Tables can be used to store features, and access them using SQL-type commands over HTTP. Tables can be made public, in which case no authorization is needed to read them. Geometries can be stored in Location columns in KML format. The default output is a CSV dump of each table row/column selected. Multi-line CSV files are not easy to parse in Javascript, but by adding a jsonCallback parameter to the HTTP command, the output will be a JSON object with the geometry as GeoJSON. With a custom read method, this example parses the geometry for each row, storing the other columns as feature attributes. You can of course add a 'where' clause to the SQL statement or change the column names to limit the data retrieved. Point geometries can also be stored in Latitude/Longitude columns, and the script could easily be modified to use those instead.
</p>
<p>
View the <a href="fusiontables.js" target="_blank">fusiontables.js</a>
source to see how this is done. <a href="https://www.google.com/fusiontables/DataSource?docid=1g5DrXcdotCiO_yffkdW0zhuJk0a1i80SPvERHI8">Table used</a>
</p>
</div>
<script src="fusiontables.js"></script>
</body>
</html>
+46
View File
@@ -0,0 +1,46 @@
var map = new OpenLayers.Map({
div: "map",
layers: [
new OpenLayers.Layer.OSM(),
new OpenLayers.Layer.Vector("Vectors", {
projection: new OpenLayers.Projection("EPSG:4326"),
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.Script({
url: "https://www.google.com/fusiontables/api/query",
params: {sql: "select * from 1g5DrXcdotCiO_yffkdW0zhuJk0a1i80SPvERHI8"},
format: new OpenLayers.Format.GeoJSON({
ignoreExtraDims: true,
read: function(json) {
var row, feature, atts = {}, features = [];
var cols = json.table.cols; // column names
for (var i = 0; i < json.table.rows.length; i++) {
row = json.table.rows[i];
feature = new OpenLayers.Feature.Vector();
atts = {};
for (var j = 0; j < row.length; j++) {
// 'location's are json objects, other types are strings
if (typeof row[j] === "object") {
feature.geometry = this.parseGeometry(row[j]);
} else {
atts[cols[j]] = row[j];
}
}
feature.attributes = atts;
// if no geometry, not much point in continuing with this row
if (feature.geometry) {
features.push(feature);
}
}
return features;
}
}),
callbackKey: "jsonCallback"
}),
eventListeners: {
"featuresadded": function () {
this.map.zoomToExtent(this.getDataExtent());
}
}
})
]
});
+1 -1
View File
@@ -74,7 +74,7 @@
<div id="shortdesc">Simple acceleration demo; roll a vector feature around <div id="shortdesc">Simple acceleration demo; roll a vector feature around
on a map. (Only tested on iOS 4.)</div> on a map. (Only tested on iOS 4.)</div>
<div id="map" width="100%" height="100%" style="background-color: grey"></div> <div id="map" width="100%" height="100%" style="background-color: gray"></div>
<div id="docs"> <div id="docs">
<p>Demo works best when device is locked in portrait mode.</p> <p>Demo works best when device is locked in portrait mode.</p>
</div> </div>
+1 -1
View File
@@ -63,7 +63,7 @@
<h1 id="title">GeoJSON Example</h1> <h1 id="title">GeoJSON Example</h1>
<div id="tags"> <div id="tags">
JSON, GeoJSON JSON, GeoJSON, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+14 -15
View File
@@ -50,21 +50,20 @@
style.addRules([rule, elseRule]); style.addRules([rule, elseRule]);
// Create a GML layer with GeoRSS format and a style map. // Create a Vector layer with GeoRSS format and a style map.
markerLayer = new OpenLayers.Layer.GML("Some images from Flickr", markerLayer = new OpenLayers.Layer.Vector("Some images from Flickr", {
"xml/georss-flickr.xml", { protocol: new OpenLayers.Protocol.HTTP({
format: OpenLayers.Format.GeoRSS, url: "xml/georss-flickr.xml",
formatOptions: { format: new OpenLayers.Format.GeoRSS({
// adds the thumbnail attribute to the feature // adds the thumbnail attribute to the feature
createFeatureFromItem: function(item) { createFeatureFromItem: function(item) {
var feature = OpenLayers.Format.GeoRSS.prototype var feature = OpenLayers.Format.GeoRSS.prototype.createFeatureFromItem.apply(this, arguments);
.createFeatureFromItem.apply(this, arguments); feature.attributes.thumbnail = this.getElementsByTagNameNS(item, "*", "thumbnail")[0].getAttribute("url");
feature.attributes.thumbnail = return feature;
this.getElementsByTagNameNS( }
item, "*", "thumbnail")[0].getAttribute("url"); })
return feature; }),
} strategies: [new OpenLayers.Strategy.Fixed()],
},
// Giving the style map keys for "default" and "select" // Giving the style map keys for "default" and "select"
// rendering intent, to make the image larger when selected // rendering intent, to make the image larger when selected
styleMap: new OpenLayers.StyleMap({ styleMap: new OpenLayers.StyleMap({
+1 -1
View File
@@ -105,7 +105,7 @@
}, },
queryVisible: true queryVisible: true
}) })
} };
map.addLayers([political, roads, cities, water, highlightLayer]); map.addLayers([political, roads, cities, water, highlightLayer]);
for (var i in infoControls) { for (var i in infoControls) {
+7 -1
View File
@@ -20,7 +20,13 @@
"http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} ); "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer); map.addLayer(layer);
map.zoomToExtent(new OpenLayers.Bounds(-3.922119,44.335327,4.866943,49.553833)); map.zoomToExtent(new OpenLayers.Bounds(-3.922119,44.335327,4.866943,49.553833));
map.addLayer(new OpenLayers.Layer.GML("GML", "gml/polygon.xml")); map.addLayer(new OpenLayers.Layer.Vector("GML", {
protocol: new OpenLayers.Protocol.HTTP({
url: "gml/polygon.xml",
format: new OpenLayers.Format.GML()
}),
strategies: [new OpenLayers.Strategy.Fixed()]
}));
} }
</script> </script>
</head> </head>
-45
View File
@@ -1,45 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Google NG Layer Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="../theme/default/google.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
.olControlAttribution {
left: 2px;
right: inherit;
bottom: 3px;
line-height: 11px;
font-family: Arial, sans-serif;
}
</style>
<script src="http://maps.google.com/maps/api/js?v=3.5&amp;sensor=false"></script>
<script src="../lib/OpenLayers.js"></script>
<script src="google-ng.js"></script>
</head>
<body onload="init()">
<h1 id="title">Google NG Layer Example</h1>
<div id="tags">
Google, api key, apikey
</div>
<p id="shortdesc">
Demonstrate use of tiles from the Google Maps v3 API.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
If you use OpenLayers.Layer.GoogleNG, the getTile method of the
GMaps v3 API's MapType is used to load tiles. This allows for
better integration than interacting with a whole map generated
by a google.maps.Map instance, as done with
OpenLayers.Layer.Google. See the
<a href="google-ng.js" target="_blank">google-ng.js source</a>
to see how this is done.
</p>
</div>
</body>
</html>
-28
View File
@@ -1,28 +0,0 @@
var map;
function init() {
map = new OpenLayers.Map('map');
map.addControl(new OpenLayers.Control.LayerSwitcher());
var gphy = new OpenLayers.Layer.GoogleNG(
{type: google.maps.MapTypeId.TERRAIN}
);
var gmap = new OpenLayers.Layer.GoogleNG(
// ROADMAP, the default
);
var ghyb = new OpenLayers.Layer.GoogleNG(
{type: google.maps.MapTypeId.HYBRID}
);
var gsat = new OpenLayers.Layer.GoogleNG(
{type: google.maps.MapTypeId.SATELLITE}
);
map.addLayers([gphy, gmap, ghyb, gsat]);
// GoogleNG uses EPSG:900913 as projection, so we have to
// transform our coordinates
map.setCenter(new OpenLayers.LonLat(10.2, 48.9).transform(
new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject()
), 5);
}
-63
View File
@@ -1,63 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Google with Overlay Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<!-- this gmaps key generated for http://openlayers.org/dev/ -->
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
map = new OpenLayers.Map('map');
var satellite = new OpenLayers.Layer.Google(
"Google Satellite" , {type: G_SATELLITE_MAP}
);
var wms = new OpenLayers.Layer.WMS(
"World Map",
"http://world.freemap.in/cgi-bin/mapserv",
{
map: '/www/freemap.in/world/map/factbooktrans.map',
transparent: 'TRUE',
layers: 'factbook'
},
{'reproject': true}
);
map.addLayers([satellite, wms]);
map.setCenter(new OpenLayers.LonLat(10.205188,48.857593), 5);
map.addControl( new OpenLayers.Control.LayerSwitcher() );
}
</script>
</head>
<body onload="init()">
<h1 id="title">Google with Overlay Example</h1>
<div id="tags">
Google, overlay, mercator, reproject, cleanup
</div>
<p id="shortdesc">
Demonstrate a Google basemap used with boundary overlay layer.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>An overlay in a Geographic projection can be stretched to somewhat
line up with Google tiles (in a Mercator projection). Results get
worse farther from the equator. Use the "reproject" option on a
layer to get this behavior. Use the sphericalMercator option on
a Google layer to get proper overlays (with other layers in
Spherical Mercator).</p>
</div>
</body>
</html>
+39
View File
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Google (Static Maps API) Grid Layer Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<h1 id="title">Google (Static Maps API) Grid Layer Example</h1>
<div id="tags">
Google, grid, static, GMaps, light
</div>
<p id="shortdesc">
Using the Google Static Maps API with a Grid Layer.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>A Grid layer with a custom <code>getURL</code> method can be
used to request static maps for a specific extent and zoom
level. The Google Static Maps API is the most reliable way to
get Google base maps in OpenLayers. Note, however, that the
free version of this is limited to a map size of 640x640 pixels
(1280x1280 if the <code>scale=2</code> url parameter is used)
and 1000 page views per viewer per day. Every map center
or zoom level change increases the page view counter by 1.
</p>
<p>Look at the
<a href="google-static.js" target="_blank">google-static.js
source</a> to see how this is done. See the
<a href="http://code.google.com/apis/maps/documentation/staticmaps/">Static Maps API V2 Developer Guide</a>
for details on the API.
</div>
<script src="../lib/OpenLayers.js"></script>
<script src="google-static.js"></script>
</body>
</html>
+61
View File
@@ -0,0 +1,61 @@
var options = {
singleTile: true,
ratio: 1,
isBaseLayer: true,
wrapDateLine: true,
getURL: function() {
var center = this.map.getCenter().transform("EPSG:3857", "EPSG:4326"),
size = this.map.getSize();
return [
this.url, "&center=", center.lat, ",", center.lon,
"&zoom=", this.map.getZoom(), "&size=", size.w, "x", size.h
].join("");
}
};
var map = new OpenLayers.Map({
div: "map",
projection: "EPSG:3857",
numZoomLevels: 22,
layers: [
new OpenLayers.Layer.Grid(
"Google Physical",
"http://maps.googleapis.com/maps/api/staticmap?sensor=false&maptype=terrain",
null, options
),
new OpenLayers.Layer.Grid(
"Google Streets",
"http://maps.googleapis.com/maps/api/staticmap?sensor=false&maptype=roadmap",
null, options
),
new OpenLayers.Layer.Grid(
"Google Hybrid",
"http://maps.googleapis.com/maps/api/staticmap?sensor=false&maptype=hybrid",
null, options
),
new OpenLayers.Layer.Grid(
"Google Satellite",
"http://maps.googleapis.com/maps/api/staticmap?sensor=false&maptype=satellite",
null, options
),
// the same layer again, but scaled to allow map sizes up to 1280x1280 pixels
new OpenLayers.Layer.Grid(
"Google Satellite (scale=2)",
"http://maps.googleapis.com/maps/api/staticmap?sensor=false&maptype=satellite&scale=2",
null, OpenLayers.Util.applyDefaults({
getURL: function() {
var center = this.map.getCenter().transform("EPSG:3857", "EPSG:4326"),
size = this.map.getSize();
return [
this.url, "&center=", center.lat, ",", center.lon,
"&zoom=", (this.map.getZoom() - 1),
"&size=", Math.floor(size.w / 2), "x", Math.floor(size.h / 2)
].join("");
}
}, options)
)
],
center: new OpenLayers.LonLat(10.2, 48.9).transform("EPSG:4326", "EPSG:3857"),
zoom: 5
});
map.addControl(new OpenLayers.Control.LayerSwitcher());
+2 -2
View File
@@ -8,14 +8,14 @@
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="../theme/default/google.css" type="text/css"> <link rel="stylesheet" href="../theme/default/google.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<script src="http://maps.google.com/maps/api/js?sensor=false"></script> <script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false"></script>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script src="google-v3-alloverlays.js"></script> <script src="google-v3-alloverlays.js"></script>
</head> </head>
<body onload="init()"> <body onload="init()">
<h1 id="title">Google (v3) allOverlays Layer Example</h1> <h1 id="title">Google (v3) allOverlays Layer Example</h1>
<div id="tags"> <div id="tags">
Google, overlay Google, overlay, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate use the Google Maps v3 API with allOverlays set to true on the map. Demonstrate use the Google Maps v3 API with allOverlays set to true on the map.
+13 -2
View File
@@ -8,14 +8,14 @@
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="../theme/default/google.css" type="text/css"> <link rel="stylesheet" href="../theme/default/google.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<script src="http://maps.google.com/maps/api/js?v=3.5&amp;sensor=false"></script> <script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false"></script>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script src="google-v3.js"></script> <script src="google-v3.js"></script>
</head> </head>
<body onload="init()"> <body onload="init()">
<h1 id="title">Google (v3) Layer Example</h1> <h1 id="title">Google (v3) Layer Example</h1>
<div id="tags"> <div id="tags">
Google, api key, apikey Google, api key, apikey, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate use the Google Maps v3 API. Demonstrate use the Google Maps v3 API.
@@ -35,6 +35,17 @@
location, you must include the extra theme/default/google.css location, you must include the extra theme/default/google.css
stylesheet. stylesheet.
</p> </p>
<p>
<strong>Note on Google Maps API versioning:</strong>
This example uses the "nightly" version of Google Maps
API. This is specified by using <code>v=3</code> in the
the Google Maps API URL. Production applications should use the
"release" or "frozen" versions of Google Maps
API. See the <code>OpenLayers.Layer.Google.v3</code> API
docs, and the
<a href="https://developers.google.com/maps/documentation/javascript/basics#Versioning">Versioning Section</a>
of the Google Maps API docs, for more details.
</p>
</div> </div>
</body> </body>
</html> </html>
+1 -1
View File
@@ -14,7 +14,7 @@
<body onload="init();"> <body onload="init();">
<h1 id="title">Named Graphics Example</h1> <h1 id="title">Named Graphics Example</h1>
<div id="tags"> <div id="tags">
vector, named graphic, star, cross, x, square, triangle, circle, style vector, named graphic, star, cross, x, square, triangle, circle, style, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Shows how to use well-known graphic names. Shows how to use well-known graphic names.
+6 -1
View File
@@ -5,6 +5,10 @@ OpenLayers.Renderer.symbol.church = [4, 0, 6, 0, 6, 4, 10, 4, 10, 6, 6, 6, 6, 14
var map; var map;
function init(){ function init(){
// allow testing of specific renderers via "?renderer=Canvas", etc
var renderer = OpenLayers.Util.getParameters(window.location.href).renderer;
renderer = (renderer) ? [renderer] : OpenLayers.Layer.Vector.prototype.renderers;
map = new OpenLayers.Map('map', { map = new OpenLayers.Map('map', {
controls: [] controls: []
}); });
@@ -46,7 +50,8 @@ function init(){
// Create a vector layer and give it your style map. // Create a vector layer and give it your style map.
var layer = new OpenLayers.Layer.Vector("Graphics", { var layer = new OpenLayers.Layer.Vector("Graphics", {
styleMap: styles, styleMap: styles,
isBaseLayer: true isBaseLayer: true,
renderers: renderer
}); });
layer.addFeatures(features); layer.addFeatures(features);
map.addLayer(layer); map.addLayer(layer);
+2 -2
View File
@@ -23,7 +23,7 @@
} }
</style> </style>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script src="http://proj4js.org/lib/proj4js-compressed.js"></script> <script src="http://svn.osgeo.org/metacrs/proj4js/trunk/lib/proj4js-compressed.js"></script>
<script type="text/javascript"> <script type="text/javascript">
Proj4js.defs["EPSG:42304"]="+title=Atlas of Canada, LCC +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs"; Proj4js.defs["EPSG:42304"]="+title=Atlas of Canada, LCC +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs";
@@ -93,7 +93,7 @@
<h1 id="title">Graticule Example</h1> <h1 id="title">Graticule Example</h1>
<div id="tags"> <div id="tags">
graticule, grid graticule, grid, projection, proj4js, reproject, transform
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+22 -27
View File
@@ -13,48 +13,43 @@
} }
</style> </style>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 2;
var map;
window.onload = function() {
options = {maxExtent: new OpenLayers.Bounds(-73.5295, 41.2318,
-69.9097, 42.8883),
maxResolution: 0.0003}
map = new OpenLayers.Map('map', options);
var roads15 = new OpenLayers.Layer.WMS( "Roads (15px gutter)",
"http://boston.freemap.in/cgi-bin/mapserv?map=/www/freemap.in/boston/map/gmaps.map&",
{layers: 'roads_200_40'},
{gutter: 15});
var roads = new OpenLayers.Layer.WMS( "Roads (no gutter)",
"http://boston.freemap.in/cgi-bin/mapserv?map=/www/freemap.in/boston/map/gmaps.map&",
{layers: 'roads_200_40'});
map.addLayers([roads, roads15]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(-71.848, 42.2), 0);
}
</script>
</head> </head>
<body> <body>
<h1 id="title">Gutter Example</h1> <h1 id="title">Gutter Example</h1>
<div id="tags"> <div id="tags">
gutter, quality, tile gutter, quality, tile, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrates map tiling artifacts, and OpenLayer's facility for correcting this distortion. Demonstrates OpenLayer's facility for dealing with tiling artifacts.
</p> </p>
<div id="map" class="smallmap"></div> <div id="map" class="smallmap"></div>
<div id="docs"> <div id="docs">
<p class="caption"> <p class="caption">
When you render tiles with certain types of symbols, there are artifacts When you render tiles with certain types of symbols, some map
at tile edges that make symbology not look continuous. In the center of servers may render artifacts at tile edges that make symbology not
the above map (when it first loads), the large orange road is split look continuous. Look at the state abbreviations, open the layer
vertically by a tile. Open the layer switcher and change to the layer switcher and change to the layer with a 15 pixel gutter to see how
with a 15 pixel gutter to see how the symbology looks nicer. the symbology looks different (the server in this example doesn't
render such artifacts, so the client-side gutter won't make things
look nicer).
</p> </p>
</div> </div>
</body> </body>
<script type="text/javascript">
var map = new OpenLayers.Map('map');
var states15 = new OpenLayers.Layer.WMS( "States (15px gutter)",
"http://suite.opengeo.org/geoserver/wms",
{layers: 'usa:states'},
{gutter: 15, transitionEffect: "resize"});
var states = new OpenLayers.Layer.WMS( "States (no gutter)",
"http://suite.opengeo.org/geoserver/wms",
{layers: 'usa:states'});
map.addLayers([states, states15]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(-71.848, 42.2), 5);
</script>
</html> </html>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 37 KiB

-1
View File
@@ -1,7 +1,6 @@
var map = new OpenLayers.Map({ var map = new OpenLayers.Map({
div: "map", div: "map",
resolutions: [0.087890625, 0.0439453125, 0.02197265625, 0.010986328125], resolutions: [0.087890625, 0.0439453125, 0.02197265625, 0.010986328125],
panDuration: 100,
controls: [ controls: [
new OpenLayers.Control.Navigation( new OpenLayers.Control.Navigation(
{dragPanOptions: {enableKinetic: true}} {dragPanOptions: {enableKinetic: true}}
+4 -3
View File
@@ -29,12 +29,13 @@ function init() {
var fid, points = [], feature; var fid, points = [], feature;
for (var i=0, len=e.features.length; i<len; i++) { for (var i=0, len=e.features.length; i<len; i++) {
feature = e.features[i]; feature = e.features[i];
if (feature.fid !== fid || i === len-1) { if ((fid && feature.fid !== fid) || i === len-1) {
fid = feature.fid;
this.addNodes(points, {silent: true}); this.addNodes(points, {silent: true});
points = []; points = [];
} else {
points.push(feature);
} }
points.push(feature); fid = feature.fid;
} }
return false; return false;
} }
+1 -1
View File
@@ -29,7 +29,7 @@
<h1 id="title">Late Rendering</h1> <h1 id="title">Late Rendering</h1>
<div id="tags"> <div id="tags">
creation, render, div creation, render, div, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+1 -1
View File
@@ -70,7 +70,7 @@
<h1 id="title">Layer Opacity Example</h1> <h1 id="title">Layer Opacity Example</h1>
<div id="tags"> <div id="tags">
opacity, transparent, transparency opacity, transparent, transparency, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+3 -3
View File
@@ -71,7 +71,7 @@
layer.logEvent = function(event) { layer.logEvent = function(event) {
eventsLog.innerHTML += "<br>(" + getTimeStamp() + ") " + eventsLog.innerHTML += "<br>(" + getTimeStamp() + ") " +
this.name + ": " + event; this.name + ": " + event;
} };
layer.events.register("loadstart", layer, function() { layer.events.register("loadstart", layer, function() {
this.logEvent("Load Start"); this.logEvent("Load Start");
@@ -112,14 +112,14 @@
<h1 id="title">Layer Load Monitoring Example</h1> <h1 id="title">Layer Load Monitoring Example</h1>
<div id="tags"> <div id="tags">
monitor, loading monitor, loading, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate a method for monitoring tile loading performance. Demonstrate a method for monitoring tile loading performance.
</p> </p>
<div id="map" style="float:left;"></div> <div id="map" class="smallmap" style="float:left;"></div>
<div id="controls"> <div id="controls">
<div id="eventsLogID"> <div id="eventsLogID">
+1 -1
View File
@@ -42,7 +42,7 @@
<h1 id="title">Layer Switcher Example</h1> <h1 id="title">Layer Switcher Example</h1>
<div id="tags"> <div id="tags">
tree, layerswitcher, reposition tree, layerswitcher, reposition, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+35
View File
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Light - Basic Popups</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<script src="../OpenLayers.light.debug.js"></script>
<script src="light-basic.js"></script>
</head>
<body onload="init()">
<h1 id="title">OpenLayers Light - Basic Popups</h1>
<div id="tags">
light, vector, feature, popup
</div>
<p id="shortdesc">
A basic use case example using the OpenLayers.light version of the library.<br>
Shows popup info bubble when hovering over features on the map
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
This example uses OpenLayers.light.js to display features and show
popup info bubbles when the feature is hovered over.
</p>
See the <a href="light-basic.js" target="_blank">
light-basic.js source</a> to see how this is done.
</p>
</div>
</body>
</html>
+67
View File
@@ -0,0 +1,67 @@
var map;
function init() {
map = new OpenLayers.Map("map",{projection:"EPSG:3857"});
var osm = new OpenLayers.Layer.OSM();
var toMercator = OpenLayers.Projection.transforms['EPSG:4326']['EPSG:3857'];
var center = toMercator({x:-0.05,y:51.5});
/**
* Create 5 random vector features. Your features would typically be fetched
* from the server. The features are given an attribute named "foo".
* The value of this attribute is an integer that ranges from 0 to 100.
*/
var features = [];
for(var i = 0; i < 5; i++) {
features[i] = new OpenLayers.Feature.Vector(
toMercator(new OpenLayers.Geometry.Point(
-0.040 - 0.05*Math.random(),
51.49 + 0.02*Math.random())),
{
foo : 100 * Math.random() | 0
}, {
fillColor : '#008040',
fillOpacity : 0.8,
strokeColor : "#ee9900",
strokeOpacity : 1,
strokeWidth : 1,
pointRadius : 8
});
}
// create the layer with listeners to create and destroy popups
var vector = new OpenLayers.Layer.Vector("Points",{
eventListeners:{
'featureselected':function(evt){
var feature = evt.feature;
var popup = new OpenLayers.Popup.FramedCloud("popup",
OpenLayers.LonLat.fromString(feature.geometry.toShortString()),
null,
"<div style='font-size:.8em'>Feature: " + feature.id +"<br>Foo: " + feature.attributes.foo+"</div>",
null,
true
);
feature.popup = popup;
map.addPopup(popup);
},
'featureunselected':function(evt){
var feature = evt.feature;
map.removePopup(feature.popup);
feature.popup.destroy();
feature.popup = null;
}
}
});
vector.addFeatures(features);
// create the select feature control
var selector = new OpenLayers.Control.SelectFeature(vector,{
hover:true,
autoActivate:true
});
map.addLayers([osm, vector]);
map.addControl(selector);
map.setCenter(new OpenLayers.LonLat(center.x,center.y), 13);
}
+30
View File
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers MapBox Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<h1 id="title">Basic MapBox OSM Example</h1>
<div id="tags">mapbox xyz osm</div>
<div id="shortdesc">Shows how to use MapBox tiles in an OpenLayers map.</div>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This example demonstrates the use of an XYZ layer that accesses tiles from MapBox.</p>
<p>
See the <a href="mapbox.js" target="_blank">mapbox.js</a> source
for details. Make sure to read the <a href="http://mapbox.com/tos/">Terms of Service</a>
before using MapBox tiles in your application.
</p>
</div>
<script src="../lib/OpenLayers.js"></script>
<script src="mapbox.js"></script>
</body>
</html>
+35
View File
@@ -0,0 +1,35 @@
var streets = new OpenLayers.Layer.XYZ(
"MapBox Streets",
[
"http://a.tiles.mapbox.com/v3/mapbox.mapbox-streets/${z}/${x}/${y}.png",
"http://b.tiles.mapbox.com/v3/mapbox.mapbox-streets/${z}/${x}/${y}.png",
"http://c.tiles.mapbox.com/v3/mapbox.mapbox-streets/${z}/${x}/${y}.png",
"http://d.tiles.mapbox.com/v3/mapbox.mapbox-streets/${z}/${x}/${y}.png"
], {
attribution: "Tiles &copy; <a href='http://mapbox.com/'>MapBox</a> | " +
"Data &copy; <a href='http://www.openstreetmap.org/'>OpenStreetMap</a> " +
"and contributors, CC-BY-SA",
sphericalMercator: true,
wrapDateLine: true,
transitionEffect: "resize",
buffer: 1,
numZoomLevels: 17
}
);
var map = new OpenLayers.Map({
div: "map",
layers: [streets],
controls: [
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.Navigation({
dragPanOptions: {
enableKinetic: true
}
}),
new OpenLayers.Control.Zoom(),
new OpenLayers.Control.Permalink({anchor: true})
],
center: [0, 0],
zoom: 1
});
+2 -2
View File
@@ -54,10 +54,10 @@
var params = { var params = {
mapdefinition: 'Library://Samples/Sheboygan/MapsTiled/Sheboygan.MapDefinition', mapdefinition: 'Library://Samples/Sheboygan/MapsTiled/Sheboygan.MapDefinition',
basemaplayergroupname: "Base Layer Group" basemaplayergroupname: "Base Layer Group"
} };
var options = { var options = {
singleTile: false singleTile: false
} };
var layer = new OpenLayers.Layer.MapGuide( "MapGuide OS tiled layer", url, params, options ); var layer = new OpenLayers.Layer.MapGuide( "MapGuide OS tiled layer", url, params, options );
map.addLayer(layer); map.addLayer(layer);
+12 -2
View File
@@ -70,12 +70,19 @@
]); ]);
var styleMap = new OpenLayers.StyleMap({"default": style}); var styleMap = new OpenLayers.StyleMap({"default": style});
// allow testing of specific renderers via "?renderer=Canvas", etc
var renderer = OpenLayers.Util.getParameters(window.location.href).renderer;
renderer = (renderer) ? [renderer] : OpenLayers.Layer.Vector.prototype.renderers;
measureControls = { measureControls = {
line: new OpenLayers.Control.Measure( line: new OpenLayers.Control.Measure(
OpenLayers.Handler.Path, { OpenLayers.Handler.Path, {
persist: true, persist: true,
handlerOptions: { handlerOptions: {
layerOptions: {styleMap: styleMap} layerOptions: {
renderers: renderer,
styleMap: styleMap
}
} }
} }
), ),
@@ -83,7 +90,10 @@
OpenLayers.Handler.Polygon, { OpenLayers.Handler.Polygon, {
persist: true, persist: true,
handlerOptions: { handlerOptions: {
layerOptions: {styleMap: styleMap} layerOptions: {
renderers: renderer,
styleMap: styleMap
}
} }
} }
) )
-68
View File
@@ -1,68 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>MultiMap</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
#map {
width: 100%;
height: 512px;
border: 1px solid black;
}
</style>
<!-- multimap api key for http://(www.)openlayers.org -->
<script type="text/javascript" src="http://developer.multimap.com/API/maps/1.2/OA10072915821139765"></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 5;
var lat = 40;
var zoom = 5;
var map, mmlayer, layer;
function init(){
map = new OpenLayers.Map( 'map' ,
{controls:[new OpenLayers.Control.MouseDefaults()]});
mmlayer = new OpenLayers.Layer.MultiMap( "MultiMap");
map.addLayer(mmlayer);
markers = new OpenLayers.Layer.Markers("markers");
map.addLayer(markers);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
map.addControl( new OpenLayers.Control.LayerSwitcher() );
map.addControl( new OpenLayers.Control.PanZoomBar() );
}
function add() {
marker = new OpenLayers.Marker(new OpenLayers.LonLat(2, 41));
markers.addMarker(marker);
}
function remove() {
markers.removeMarker(marker);
}
</script>
</head>
<body onload="init()">
<h1 id="title">MultiMap Example</h1>
<div id="tags">
MultiMap, basic, cleanup
</div>
<p id="shortdesc">
An example of using the Layer.MultiMap class.
</p>
<div id="map" class="smallmap"></div>
<div style="background-color:green" onclick="add()"> click to add the marker to the map</div>
<div style="background-color:red" onclick="remove()"> click to remove the marker from the map</div>
</body>
</html>
+1 -6
View File
@@ -15,7 +15,7 @@ var init = function (onSelectFeatureFunction) {
styleMap: new OpenLayers.StyleMap({ styleMap: new OpenLayers.StyleMap({
externalGraphic: "img/mobile-loc.png", externalGraphic: "img/mobile-loc.png",
graphicOpacity: 1.0, graphicOpacity: 1.0,
graphicWith: 16, graphicWidth: 16,
graphicHeight: 26, graphicHeight: 26,
graphicYOffset: -26 graphicYOffset: -26
}) })
@@ -41,12 +41,7 @@ var init = function (onSelectFeatureFunction) {
div: "map", div: "map",
theme: null, theme: null,
projection: sm, projection: sm,
units: "m",
numZoomLevels: 18, numZoomLevels: 18,
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(
-20037508.34, -20037508.34, 20037508.34, 20037508.34
),
controls: [ controls: [
new OpenLayers.Control.Attribution(), new OpenLayers.Control.Attribution(),
new OpenLayers.Control.TouchNavigation({ new OpenLayers.Control.TouchNavigation({
+1 -31
View File
@@ -5,7 +5,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="style.mobile.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.mobile.css" type="text/css">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<script src="../lib/OpenLayers.js?mobile"></script> <script src="../lib/OpenLayers.js?mobile"></script>
<script src="mobile-drawing.js"></script> <script src="mobile-drawing.js"></script>
@@ -25,36 +25,6 @@
bottom: 5px; bottom: 5px;
right: 5px; right: 5px;
} }
div.olControlZoomPanel .olControlZoomInItemInactive,
div.olControlZoomPanel .olControlZoomOutItemInactive {
background: rgba(0,0,0,0.2);
position: absolute;
}
div.olControlZoomPanel .olControlZoomInItemInactive {
border-radius: 5px 5px 0 0;
}
div.olControlZoomPanel .olControlZoomOutItemInactive {
border-radius: 0 0 5px 5px ;
top: 37px;
}
div.olControlZoomPanel .olControlZoomOutItemInactive:after,
div.olControlZoomPanel .olControlZoomInItemInactive:after {
font-weight: bold;
content: '+';
font-size: 36px;
padding: 7px;
z-index: 2000;
color: #fff;
line-height: 1em;
}
div.olControlZoomPanel .olControlZoomOutItemInactive:after {
content: '';
line-height: 0.9em;
padding: 0 8px;
}
div.olControlZoomPanel .olControlZoomToMaxExtentItemInactive {
display: none;
}
.olControlEditingToolbar .olControlModifyFeatureItemInactive { .olControlEditingToolbar .olControlModifyFeatureItemInactive {
background-position: -1px -1px; background-position: -1px -1px;
} }
+6 -7
View File
@@ -41,15 +41,14 @@ function init() {
map = new OpenLayers.Map({ map = new OpenLayers.Map({
div: 'map', div: 'map',
projection: 'EPSG:900913', projection: 'EPSG:900913',
units: 'm',
numZoomLevels: 18, numZoomLevels: 18,
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(
-20037508.34, -20037508.34, 20037508.34, 20037508.34
),
controls: [ controls: [
new OpenLayers.Control.TouchNavigation(), new OpenLayers.Control.TouchNavigation({
new OpenLayers.Control.ZoomPanel(), dragPanOptions: {
enableKinetic: true
}
}),
new OpenLayers.Control.Zoom(),
toolbar toolbar
], ],
layers: [osm, vector], layers: [osm, vector],
+4 -4
View File
@@ -5,10 +5,10 @@
<title>OpenLayers with jQuery Mobile</title> <title>OpenLayers with jQuery Mobile</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css">
<script src="http://code.jquery.com/jquery-1.5.min.js"></script> <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script> <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
<link rel="stylesheet" href="style.mobile.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.mobile.css" type="text/css">
<link rel="stylesheet" href="style.mobile-jq.css" type="text/css"> <link rel="stylesheet" href="style.mobile-jq.css" type="text/css">
<script src="../lib/OpenLayers.js?mobile"></script> <script src="../lib/OpenLayers.js?mobile"></script>
<script src="mobile-base.js"></script> <script src="mobile-base.js"></script>
+3 -3
View File
@@ -17,7 +17,7 @@ $(document).ready(function() {
content.height(contentHeight); content.height(contentHeight);
} }
if (window.map) { if (window.map && window.map instanceof OpenLayers.Map) {
map.updateSize(); map.updateSize();
} else { } else {
// initialize map // initialize map
@@ -62,7 +62,7 @@ $(document).ready(function() {
if ($('#query')[0].value === '') { if ($('#query')[0].value === '') {
return; return;
} }
$.mobile.pageLoading(); $.mobile.showPageLoadingMsg();
// Prevent form send // Prevent form send
e.preventDefault(); e.preventDefault();
@@ -89,7 +89,7 @@ $(document).ready(function() {
.show(); .show();
}); });
$('#search_results').listview('refresh'); $('#search_results').listview('refresh');
$.mobile.pageLoading(true); $.mobile.hidePageLoadingMsg();
}); });
}); });
// only listen to the first event triggered // only listen to the first event triggered
+1 -37
View File
@@ -5,7 +5,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="style.mobile.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.mobile.css" type="text/css">
<script src="../lib/OpenLayers.js?mobile"></script> <script src="../lib/OpenLayers.js?mobile"></script>
<script src="mobile-layers.js"></script> <script src="mobile-layers.js"></script>
<style> <style>
@@ -39,42 +39,6 @@
border-radius: 5px 0 0 0; border-radius: 5px 0 0 0;
} }
div.olControlZoomPanel .olControlZoomInItemInactive,
div.olControlZoomPanel .olControlZoomOutItemInactive {
background: rgba(0, 0, 0, 0.2);
position: absolute;
}
div.olControlZoomPanel .olControlZoomInItemInactive {
border-radius: 5px 5px 0 0;
}
div.olControlZoomPanel .olControlZoomOutItemInactive {
border-radius: 0 0 5px 5px;
top: 37px;
}
div.olControlZoomPanel .olControlZoomOutItemInactive:after,
div.olControlZoomPanel .olControlZoomInItemInactive:after {
font-weight: bold;
content: '+';
font-size: 36px;
padding: 7px;
z-index: 2000;
color: #fff;
line-height: 1em;
}
div.olControlZoomPanel .olControlZoomOutItemInactive:after {
content: '';
line-height: 0.9em;
padding: 0 8px;
}
div.olControlZoomPanel .olControlZoomToMaxExtentItemInactive {
display: none;
}
#title, #tags, #shortdesc { #title, #tags, #shortdesc {
display: none; display: none;
} }
+2 -2
View File
@@ -32,7 +32,7 @@ function init() {
enableKinetic: true enableKinetic: true
} }
}), }),
new OpenLayers.Control.ZoomPanel() new OpenLayers.Control.Zoom()
] ]
}); });
@@ -40,7 +40,7 @@ function init() {
"http://vmap0.tiles.osgeo.org/wms/vmap0", "http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'}, {layers: 'basic'},
{isBaseLayer: true, transitionEffect: 'resize'} {isBaseLayer: true, transitionEffect: 'resize'}
) );
var kml = new OpenLayers.Layer.Vector("KML", { var kml = new OpenLayers.Layer.Vector("KML", {
projection: map.displayProjection, projection: map.displayProjection,
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<title>Mobile Navigation Example</title> <title>Mobile Navigation Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.mobile.css" type="text/css" /> <link rel="stylesheet" href="../theme/default/style.mobile.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<script type="text/javascript" src="../lib/OpenLayers.js?mobile"></script> <script type="text/javascript" src="../lib/OpenLayers.js?mobile"></script>
<script type="text/javascript" src="mobile-navigation.js"></script> <script type="text/javascript" src="mobile-navigation.js"></script>
@@ -38,7 +38,7 @@
</p> </p>
<p> <p>
The ZoomPanel control provides + and - buttons for zooming in and The Zoom control provides + and - buttons for zooming in and
out. These buttons should work on any device, and the zoom out out. These buttons should work on any device, and the zoom out
button is especially needed for devices that don't support button is especially needed for devices that don't support
multi-touch. multi-touch.
+1 -6
View File
@@ -5,19 +5,14 @@ function init() {
div: "map", div: "map",
theme: null, theme: null,
projection: new OpenLayers.Projection("EPSG:900913"), projection: new OpenLayers.Projection("EPSG:900913"),
units: "m",
numZoomLevels: 18, numZoomLevels: 18,
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(
-20037508.34, -20037508.34, 20037508.34, 20037508.34
),
controls: [ controls: [
new OpenLayers.Control.TouchNavigation({ new OpenLayers.Control.TouchNavigation({
dragPanOptions: { dragPanOptions: {
enableKinetic: true enableKinetic: true
} }
}), }),
new OpenLayers.Control.ZoomPanel() new OpenLayers.Control.Zoom()
], ],
layers: [ layers: [
new OpenLayers.Layer.OSM("OpenStreetMap", null, { new OpenLayers.Layer.OSM("OpenStreetMap", null, {
+3 -3
View File
@@ -6,9 +6,9 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>OpenLayers with Sencha Touch</title> <title>OpenLayers with Sencha Touch</title>
<script src="../lib/OpenLayers.js?mobile"></script> <script src="../lib/OpenLayers.js?mobile"></script>
<link rel="stylesheet" href="style.mobile.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.mobile.css" type="text/css">
<link rel="stylesheet" href="http://dev.sencha.com/deploy/touch/resources/css/sencha-touch.css"> <link rel="stylesheet" href="http://cdn.sencha.io/touch/1.1.0/resources/css/sencha-touch.css">
<script src="http://dev.sencha.com/deploy/touch/sencha-touch.js"></script> <script src="http://cdn.sencha.io/touch/1.1.0/sencha-touch.js"></script>
<script src="mobile-sencha.js"></script> <script src="mobile-sencha.js"></script>
<script src="mobile-base.js"></script> <script src="mobile-base.js"></script>
<style> <style>
+166
View File
@@ -0,0 +1,166 @@
html, body, #map {
margin: 0;
height: 100%;
width: 100%;
}
#map {
cursor: move;
}
#title, #tags, #shortdesc {
display: none;
}
.olTileImage {
-webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear;
-o-transition: opacity 0.2s linear;
transition: opacity 0.2s linear;
}
div.olControlAttribution {
position: absolute;
font-size: 10px;
text-align: right;
color: #BFEFFF;
bottom: 0;
right: 0;
background: rgba(0,0,100,0.2);
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
padding: 2px 4px;
border-radius: 5px 0 0 0;
}
.olControlAttribution a {
font-weight: bold;
color: #BFEFFF;
text-decoration: none;
}
div.olControlZoomPanel {
height: 108px;
width: 36px;
position: absolute;
top: 20px;
left: inherit;
right: 20px;
}
div.olControlZoomPanel div {
cursor: pointer;
width: 36px;
height: 36px;
left: 0;
background-color: #ccc;
background-image: none;
}
div.olControlZoomPanel .olControlZoomInItemInactive,
div.olControlZoomPanel .olControlZoomOutItemInactive {
top: 0;
background: rgba(0,0,100,0.4);
position: absolute;
}
div.olControlZoomPanel .olControlZoomInItemInactive {
border-radius: 5px 5px 0 0;
}
div.olControlZoomPanel .olControlZoomOutItemInactive {
border-radius: 0 0 5px 5px;
top: 37px;
}
div.olControlZoomPanel .olControlZoomOutItemInactive:after,
div.olControlZoomPanel .olControlZoomInItemInactive:after {
font-weight: bold;
content: '+';
font-size: 36px;
padding: 7px;
z-index: 2000;
color: #BFEFFF;
line-height: 1em;
}
div.olControlZoomPanel .olControlZoomOutItemInactive:after {
content: '';
line-height: 0.9em;
padding: 0 8px;
}
div.olControlZoomPanel .olControlZoomToMaxExtentItemInactive {
display: none;
}
div.olControlZoomPanel div.olControlGeolocateItemInactive,
div.olControlZoomPanel div.olControlGeolocateItemActive {
position: absolute;
right: 20px;
top: 98px;
border-radius: 5px 5px 5px 5px;
background: #ccc url(img/locate.png) center no-repeat;
background-color: rgba(0,0,100,0.4);
}
div.olControlZoomPanel div.olControlGeolocateItemActive {
background-color: rgba(0,0,100,0.2);
}
div.olControlGeolocateItemInactive:after {
font-weight: bold;
font-size: 36px;
padding: 7px;
z-index: 2000;
color: #BFEFFF;
line-height: 1em;
background: none;
}
.layerPanel {
position: absolute;
top: 20px;
right: 82px;
}
div.layerPanel div {
display: inline;
margin-left: 5px;
cursor: pointer;
}
div.layerPanel div:after {
font-weight: bold;
font-size: 18px;
font-family: arial;
padding: 8px;
color: #BFEFFF;
line-height: 36px;
border-radius: 5px 5px 5px 5px;
background-color: #ccc;
background: rgba(0,0,100,0.4);
}
div.layerPanel div.labelButtonItemInactive:after,
div.layerPanel div.labelButtonItemActive:after {
content: 'Labels';
}
:lang(de) div.layerPanel div.labelButtonItemInactive:after,
:lang(de) div.layerPanel div.labelButtonItemActive:after {
content: 'Text';
}
div.layerPanel div.labelButtonItemActive:after {
text-decoration: underline;
background: rgba(0,0,100,0.2);
}
div.layerPanel div.aerialButtonItemInactive:after,
div.layerPanel div.aerialButtonItemActive:after {
content: 'Aerial';
border-radius: 5px 0 0 5px;
}
:lang(de) div.layerPanel div.aerialButtonItemInactive:after,
:lang(de) div.layerPanel div.aerialButtonItemActive:after {
content: 'Luftbild';
}
div.layerPanel div.aerialButtonItemActive:after {
text-decoration: underline;
background: rgba(0,0,100,0.2);
}
div.layerPanel div.mapButtonItemInactive:after,
div.layerPanel div.mapButtonItemActive:after {
content: 'Map';
border-radius: 0 5px 5px 0;
}
:lang(de) div.layerPanel div.mapButtonItemInactive:after,
:lang(de) div.layerPanel div.mapButtonItemActive:after {
content: 'Karte';
}
div.layerPanel div.mapButtonItemActive:after {
text-decoration: underline;
background: rgba(0,0,100,0.2);
}
div.layerPanel div.mapButtonItemInactive,
div.layerPanel div.mapButtonItemActive {
margin-left: 1px;
}

Some files were not shown because too many files have changed in this diff Show More