Compare commits

...

2975 Commits

Author SHA1 Message Date
É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 221d7caf70 (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:
9f1d0fd49b
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
crschmidt
a6b2537074 Update popup image to fix slight sizing issue (See #3413); thx jorix
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12219 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-08 13:57:44 +00:00
ahocevar
850a57182d making reprojection work for all kinds of geometries. Thanks crschmidt for the tests. r=crschmidt (closes #3418)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12218 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-08 13:51:56 +00:00
crschmidt
533f8625d9 Thanks to a patch from greid, fix case where "" is passed into getParameters,
which would previously have weird behavior. (Pullup #3408)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@12217 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-08 13:43:14 +00:00
ahocevar
51efcde523 don't use null geometryName for WFS versions < 1.1. r=elemoine (closes #3415)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12216 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-08 13:22:59 +00:00
Éric Lemoine
c518df57e7 make constructors created by OpenLayers.Class call the parent's initialize method rather the parent constructor, this is to accomodate usage patterns of IGN's GeoPortal API, r=ahocevar (closes #3454)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12215 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-08 12:43:47 +00:00
Éric Lemoine
925e34f968 add a new Class test, to test the inheritance chain, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12214 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-08 12:39:39 +00:00
Frédéric Junod
bd88fec6d0 don't use the deprecated 'reproject' option. no functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12213 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-08 08:19:06 +00:00
Frédéric Junod
d5e1f23b82 fix jsdoc tag, makes closure compiler happy. no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12212 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-08 07:31:06 +00:00
Éric Lemoine
22001a4b54 add Class tests corresponding to IGN GeoPortal's usage patterns, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12211 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-08 04:58:05 +00:00
Éric Lemoine
d79aa2ec3b coding style in WMSCapabilities/v1.js, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12210 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-08 04:50:36 +00:00
Éric Lemoine
61b291ee67 WMSCapabilities format may fail to correctly read BoundingBox of layers, r=fredj (closes #3449)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12209 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-08 04:45:41 +00:00
Frédéric Junod
dd76c74bca remove 'pagePositionFailed' from Lang/*.js (closes #2247). Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12208 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-05 07:58:57 +00:00
Frédéric Junod
77445c368f remove 'sameProjection' from Lang/*.js (not used, see r7864). Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12207 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-05 07:51:20 +00:00
Frédéric Junod
f7ccf9ef4e mark the OpenLayers.loadURL method as deprecated (replaced by OpenLayers.Request.GET). r=erilem,rdewit,ahocevar (closes #3443)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12206 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-03 15:55:14 +00:00
Frédéric Junod
0b8a98d9a6 handle features with null bounds in OpenLayers.Renderer.Canvas.drawFeature. p=arublev,me r=erilem (closes #3442)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12205 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-03 15:47:06 +00:00
Frédéric Junod
d1fe8f8df4 add missing tests/BaseTypes/Date.html (yes, again) (see #3440)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12204 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-03 14:39:55 +00:00
Frédéric Junod
7d285ad244 add missing BaseTypes/Date.js (see #3440)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12203 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-03 14:35:20 +00:00
Frédéric Junod
0123b7bba2 move the OpenLayers.Date.* from BaseTypes.js to BaseTypes/Date.js. r=erilem (closes #3440)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12202 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-03 14:32:10 +00:00
Frédéric Junod
c7eafb53b7 fixed APIdocs. Non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12201 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-29 14:00:39 +00:00
Marc Jansen
0020e79412 API documentation improvement. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12200 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-29 09:45:29 +00:00
Marc Jansen
5c603c0abb Correct spelling in documentation. Non functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12199 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-29 09:38:02 +00:00
Marc Jansen
fde51d90a7 Correct spelling in documentation. Non functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12198 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-29 09:36:35 +00:00
Marc Jansen
aef34f2475 add method OpenLayers.LonLat.fromArray for API-consistency. r=bartvde, p=me (closes #3443)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12197 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-29 09:24:07 +00:00
Frédéric Junod
eba3d3878c fixed APIdocs. Non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12193 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-27 11:36:33 +00:00
Frédéric Junod
7bcf20bd33 remove global variable. Non-functional change. p=geographika (closes #3438)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12191 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-26 09:45:58 +00:00
ahocevar
66d7e36f47 Removing unnecessary handlers introduced in r12183 (closes #3403)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12190 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-26 07:49:00 +00:00
Frédéric Junod
3c076b564b remove unused OpenLayers.Util.getTagText, OpenLayers.Util.getNodes and OpenLayers.Util._getNodes functions. r=bartvde, p=me (closes #3437)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12189 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-25 15:05:50 +00:00
bartvde
8abdd4f016 modified checks for Format.WFST should use not equal to undefined instead of truthy to deal properly with initial null values, r=ahocevar (closes #3436)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12188 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-25 14:01:00 +00:00
bartvde
110acd3f84 getDataExtent should return null when there are no features with a geometry, r=ahocevar (closes #3435)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12187 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-25 13:13:46 +00:00
Frédéric Junod
a6e913d5fb fix typo in build.py. p=jorix, r=me (closes #3423)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12186 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-25 12:22:54 +00:00
ahocevar
fe720b259e Set opacity on layer div, not on tiles and markers. r=fredj (closes #3431)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12185 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-25 11:42:43 +00:00
ahocevar
c3850a9fb9 fixing map height in sundials examples
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12184 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-25 08:52:15 +00:00
ahocevar
e1c08446cb Popups can now be cloused on touch devices. p=jorix (closes #3403)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12183 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-25 08:46:04 +00:00
Marc Jansen
6d968d648d Correct message of unit test. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12182 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-23 21:24:31 +00:00
ahocevar
912c1d5c1b click handling in the DragFeature control only for touch devices. p=jorix, r=me (closes #3428)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12181 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-23 20:12:02 +00:00
ahocevar
4caaebf5bc Simplified the sld example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12173 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-19 10:09:58 +00:00
ahocevar
e6a40e1334 fixing dateline handling of Util.getFormattedLonLat. p=cayenne, r=me (closes #3411)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12172 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-18 12:58:43 +00:00
ahocevar
46a10135d9 reassign writers instead of creating a different geometry instance. r=bartvde (closes #3407)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12171 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-15 14:07:39 +00:00
bartvde
6714640844 add support for handle attribute in Format.WFST, r=ahocevar (closes #3412)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12170 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-15 09:44:08 +00:00
Tim Schaub
4b2f6ea105 Adding 'active' as an API property.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12169 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-14 18:36:48 +00:00
ahocevar
b5ba9db904 giving the WFST format a multi option, which makes sure that Multi geometries are written in transactions. r=bartvde (closes #3407)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12168 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-13 13:48:31 +00:00
Tim Schaub
c0326c66bd Example demonstrating scale dependent labeling.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12167 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-12 16:48:39 +00:00
ahocevar
54726888f0 a nicer fix for android
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12166 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-12 15:48:24 +00:00
ahocevar
a5aba4d4de making the former fix also work in android
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12165 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-12 15:38:46 +00:00
ahocevar
93bf0683c4 fixing the example so it also works with later versions of jquery mobile
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12164 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-12 15:21:14 +00:00
ahocevar
6ef5e395d1 don't waste coordinate space by using a smaller renderer extent and updating it on moveend. r=bartvde (closes #3359)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12163 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-11 17:07:15 +00:00
bartvde
fdd7843a6a WKT parser should still support the old signature of multipoints without separating parens, thanks to ronan for the patch, p=ronan,r=me (pullup #2670)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12160 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-07 16:41:02 +00:00
ahocevar
2809bc30b5 adjusting dx and dy instad of not moving the map at all when we reach the restrictedExtent. p=me,elemoine, r=elemoine (closes #3388)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12158 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-06 07:22:31 +00:00
bartvde
3bdf6ba93e add missing requires
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12157 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-05 16:26:40 +00:00
bartvde
095e2ef233 fix circular dependency, thanks erilem for the report, r=erilem (references #2954)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12156 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-05 12:53:10 +00:00
bartvde
c59e225d8f implement versioned format base class, r=ahocevar (closes #2954)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12155 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-05 09:42:34 +00:00
Marc Jansen
3b70536695 Give OpenLayers.Map a preremovelayer-event. Thanks to mosesonline for the patch. p=mosesonline, r=me (fixes #3306)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12154 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-05 07:48:28 +00:00
Éric Lemoine
19756915d3 Handler.Point has no "drawing" property anymore, trivial change (references #3316)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12153 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-04 20:48:12 +00:00
ahocevar
71a4fdff9b don't use Firebug Lite, as it seems to cause issues in IE9. Thanks jorix for the hint (closes #3374)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12152 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-04 20:37:54 +00:00
Éric Lemoine
89957b8399 the map isn't correctly positioned when dragging with singleTile true, r=bartvde,ahocevar (references #3361)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-04 20:34:47 +00:00
ahocevar
440628e58d nullify the modified object. r=bartvde (see #3400)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12150 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-04 10:18:22 +00:00
ahocevar
2293987d57 adding a feature.modified property, making the ModifyFeature control set it and the WFST format check for it so only modified attributes and a modified geometry need to be included in an Update transaction. r=bartvde (closes #3400)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-04 08:37:55 +00:00
ahocevar
3f2bd6ddc2 using correct units for the map style
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12148 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-03 09:20:47 +00:00
ahocevar
28947e1411 fixing error in comments. Non-functional change (closes #3387)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12147 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-03 07:33:24 +00:00
ahocevar
e4d5fb09f9 return value for style numbers is different in IE than in other browsers, so using parseInt
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12146 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 15:15:28 +00:00
ahocevar
7c01aefba0 some NaturalDocs formatting tweaks
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12145 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 14:55:28 +00:00
ahocevar
92f34a3e83 better documentation for Layer.WMS
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12144 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 14:51:25 +00:00
bartvde
4d761609b5 WPSExecute tests are failing in IE8, the other issue was xsi:schemaLocation values in some of the XML snippets containing a TAB, non-functional change (closes #3393)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12143 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 07:45:55 +00:00
bartvde
7ee7c365c6 remove trailing comma in tests, see #3393 non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12142 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 07:40:55 +00:00
bartvde
5490d6781d fix up SLD tests which broke after r12129, change is similar to that done by ahocevar in tests/Protocol/WFS.html
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12141 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 07:17:29 +00:00
Tim Schaub
c48f2d1ca3 WFS protocol example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12140 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 05:55:56 +00:00
Tim Schaub
652fb3930e Consistent naming in doc menus.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12139 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 05:44:44 +00:00
Tim Schaub
3485c43844 I don't think the addTile method was intentionally set as an API method. Please revert if this was intentional.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12138 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 05:40:18 +00:00
Tim Schaub
5b19e3a00d Doc menu wrangling. Version upgrade for NaturalDocs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12137 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 05:34:00 +00:00
Tim Schaub
b327ede5c6 Correct formatting issues with map example (doc change).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 05:31:41 +00:00
Tim Schaub
e8fa5bd719 Playing along with the class game (for docs' sake).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12135 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 05:22:39 +00:00
Tim Schaub
366fd75d97 Syntax highlighting with (code)blocks(end).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12134 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 05:18:00 +00:00
Tim Schaub
bf42fd5f90 Redundant namespaces (doc change).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12133 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 05:15:02 +00:00
Tim Schaub
ffbb3a942a Clarifying that it is the bottom-left corner of the map.maxExtent property that determines the tileOrigin if not explicitly provided.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12132 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-29 23:30:24 +00:00
Tim Schaub
46899f8ba3 Updating the TMS API docs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12131 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-29 22:56:58 +00:00
ahocevar
eb7cc04254 making Protocol.WFS work with just featureType and featurePrefix configured. r=bartvde (closes #3368)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-29 09:53:37 +00:00
ahocevar
058008864e fixing @requires dependencies
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12128 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-27 18:12:24 +00:00
Tim Schaub
0b26fa9a5e Making it so dictionary keys are the English values for strings displayed in the UI.
By making dictionary keys be sensible strings, we make it so the i18n function returns something legible when there are no dictionaries included in a build.  This means that strings from the Graticule, Permalink, LayerSwitcher, and Scale controls will be displayed in English without having to include the English dictionary (as is the case in our full build).

Note that if you use the OpenLayers.i18n method in your applications, five of the dictionary keys have changed.  Use the following replacements:

 * "permalink" -> "Permalink"
 * "overlays" -> "Overlays"
 * "baseLayer" -> "Base Layer"
 * "scale" -> "Scale = 1 : ${scaleDenom}"
 * "graticule" -> "Graticule"

r=ahocevar (closes #3364)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@12127 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-24 20:12:12 +00:00
bartvde
d7d90b20e3 BBOX Strategy is active for an inactive vector layer, r=pgiraud (pullup #3383)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12126 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-24 18:21:49 +00:00
bartvde
d1009b92ad add Format for writing out Web Coverage Service (WCS) requests, r=ahocevar (closes #3375)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12125 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-22 15:20:01 +00:00
bartvde
1aa76f6de6 add formats for WPS GetCapabilities, WPS DescribeProcess and WPS Execute, thanks ahocevar for the great rework on the patch, r=ahocevar, see #3307)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12124 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-22 09:54:35 +00:00
bartvde
39d9715853 add support for wfs:Native, r=tschaub (closes #3349)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12123 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-22 07:14:15 +00:00
Tim Schaub
1951eb3815 Clarifying that the TouchNavigation control can be used without a standard Navigation control (closes #3350).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12122 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-22 06:30:45 +00:00
ahocevar
336f82b771 don't fire changelayer events without a property, and do a more solid changelayer event check before changing the layer zIndex. r=tschaub (closes #3377)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12121 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-22 06:04:10 +00:00
ahocevar
9b1aca53fa Using the correct superclass. Thanks jorix for investigating and fixing this. p=jorix (closes #3373)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12120 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-21 20:53:53 +00:00
Tim Schaub
1fb626bc8d The bounds.scale method should be part of the API.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12119 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-21 16:50:50 +00:00
ahocevar
f0cfcd12d4 fixing indentation
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12118 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-21 14:45:16 +00:00
pgiraud
0bfb6f53bf geolocation example : don't zoom to and pulsate circle more than once when watching position (ie. listening for locationupdated event), no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12117 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-21 12:47:57 +00:00
ahocevar
5cf73e76fe don't show old backbuffer tiles after loading. p=h0nIg, r=me (see #3376)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12116 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-21 10:28:27 +00:00
ahocevar
a863d9f572 starting with long url overlay in IFrame mode (see #3376)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12115 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-21 10:05:44 +00:00
ahocevar
75be4beadc adding a singleTile overlay (see #3376)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12114 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-21 09:58:04 +00:00
ahocevar
c75523f432 calling the method on the superclass only with the advertised arguments. Thanks bartvde for catching this (see #3367)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12111 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-20 11:08:18 +00:00
ahocevar
30fc6ecd52 auto-configure featureType and featureNS. p=bartvde (closes #3367)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12110 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-20 10:59:28 +00:00
Éric Lemoine
18ad6643b6 GeoJSON strings should not include internal feature ids, r=bbinet (closes #3313)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12109 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-20 07:47:52 +00:00
ahocevar
2aab742ced adding getXMLDoc method that allows creating XML documents with non-HTML compliant nodes (e.g. createCDATASection). r=bartvde (closes #3366)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12108 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-18 19:33:29 +00:00
ahocevar
7d477fb8af removing the restrictedMinZoom property, and allow for restricting zoom levels with maxResolution and numZoomLevels. Thanks tschaub for the doc, test and examples improvements. r=tschaub (see #3338)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12107 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-18 19:27:27 +00:00
ahocevar
a9d3b8b72e removing the restrictedMinZoom property, and allow for restricting zoom levels with maxResolution and numZoomLevels. Thanks tschaub for the doc, test and examples improvements. r=tschaub (see #3338)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12106 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-18 19:25:46 +00:00
ahocevar
6248cdc94d fixing getOLZoomFromMapObjectZoom so it also works when the layer is not the baseLayer. r=bartvde,tschaub (see #3342)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12105 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-18 19:11:54 +00:00
Tim Schaub
1ccf325285 Fix example to work where there is a metaKey but ctrl is used for undo/redo.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12104 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-17 21:10:15 +00:00
Tim Schaub
2cf3f62d1b Methods for programmatically manipulating sketches while digitizing features. r=bartvde (closes #3343)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12103 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-17 18:59:16 +00:00
Tim Schaub
abdb336354 Adding layer for generating dynamic point grids. r=bartvde (closes #3344)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12099 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-17 18:18:40 +00:00
Tim Schaub
6e3879f5b6 Enhance WKT parser to parse multi-line strings. r=erilem (closes #3365)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12098 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-17 17:12:01 +00:00
Tim Schaub
fe4da360ce Demonstrate that instanceof doesn't work for arrays created in another frame.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-17 13:16:53 +00:00
Tim Schaub
995d612caa More robust array type check. p=mwootendev, r=me (closes #2959)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12095 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-16 19:16:25 +00:00
Tim Schaub
54cccc0783 Proxy chasing.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12088 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-15 21:15:59 +00:00
Tim Schaub
a5f0b300f8 Adding example demonstrating the use of a spatial filter with the WFS protocol.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12087 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-15 20:55:08 +00:00
bartvde
cbac5db29a fix typo in comment, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12086 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-15 11:19:45 +00:00
ahocevar
dd5fa7eaab adding a comment to explain r12084 (see #2234)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12085 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-15 10:59:08 +00:00
bartvde
58279bfb71 fix up WFSCapabilities tests, thanks pgiraud for the report (closes #2234)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12084 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-15 07:48:06 +00:00
pgiraud
3d27981146 Persisted features not correctly removed in Handler.Path and freehand mode, p=jorix,me, r=erilem
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12083 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-15 07:21:18 +00:00
Marc Jansen
e8960054a9 Correct the contents of the <meta name="viewport"> attribute content. (p=me,fredj; r=fredj,aabt; fixes #3335)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12082 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-14 06:46:13 +00:00
bartvde
4d0f73e538 better error handling for the WFS Protocol, note this is currently only done for WFS 1.1.0 and not for WFS 1.0.0, thanks tschaub for the reviews this week, r=tschaub (closes #3354)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12080 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-10 17:12:22 +00:00
Tim Schaub
f9c0a1d302 Requires fix.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12079 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-10 16:32:58 +00:00
Tim Schaub
9ae8eff1fc Requires fix.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12078 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-10 16:32:45 +00:00
ahocevar
09d45b925b adding missing @requires
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12077 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-10 03:25:33 +00:00
bartvde
2b04fd6c34 adding a format to parsing OGC service exceptions (WMS 1.1 WMS 1.3 WFS 1.0 and OWSCommon 1.0 and 1.1) and hooking it up into the GetCapabilities parsers, r=tschaub (closes #2234)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12074 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-08 14:39:12 +00:00
crschmidt
9d5ab38fc0 Get rid of unneeded alert = print. If your app needs alert messages, deal with
them in your app. (No functional change; makes OpenLayers functional without
jsdom in node.js.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@12071 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-08 03:05:02 +00:00
ahocevar
576b210657 making attribution as Terms of Service compliant as we possibly can. p=bartvde (closes #3330)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12070 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-07 23:49:35 +00:00
ahocevar
f27073e6d3 fixing href regression introduced with r11978. r=bartvde (see #3351)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12064 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-07 20:44:06 +00:00
ahocevar
e4b9ba187a adding missing requires
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12059 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-07 18:14:59 +00:00
ahocevar
15aab9cbe5 fixing a typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12052 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-06 14:01:54 +00:00
bartvde
ca70bcf928 Box Handler missing start callback, r=pgiraud (closes #3324)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12051 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-06 11:43:50 +00:00
Frédéric Junod
dfa86d3c20 remove unneeded destroy and initialize function. r=ahocevar (pullup #3341)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12050 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-06 11:02:11 +00:00
Éric Lemoine
d62bacfed3 fix GeoRSS test_leading_space test in IE (References #2780)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12049 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-06 08:07:57 +00:00
pgiraud
64dfd49333 Setting the language 'en' to avoid problems with i18n in LayerSwitcher's tests, (Closes #3345)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12048 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-06 07:21:04 +00:00
Éric Lemoine
3ed7d8d1de removing a change in the measure.html example committed by error in [12046], no functional change (References #3327)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12047 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-06 07:18:49 +00:00
Éric Lemoine
9b361ef35d make the drawing handlers create the sketch feature at an appropriate time, when we can actually derive geographic coordinates from a pixel, r=ahocevar (References #3327)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12046 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-06 07:12:52 +00:00
Éric Lemoine
9dcdbac238 better help message for the --compressor option of build.py, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12045 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-06 06:47:46 +00:00
Tim Schaub
7df5e92355 Correcting docs for TMS tileOrigin.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12039 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-03 21:46:44 +00:00
ahocevar
e7d18b972b adding options so we don't use a null api key
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12038 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-03 15:10:18 +00:00
ahocevar
71c12ccb78 appending event pane to the eventsDiv instead of the viewPortDiv. r=fredj (see #3339)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12037 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-03 11:28:49 +00:00
Frédéric Junod
5d8468cf0a ElementsIndexer: call clear in initialize. Non functional change. r=ahocevar (closes #3340)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12036 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-03 07:27:42 +00:00
ahocevar
15be7ff39b use HTML5 in all examples, and some minor example improvements (pullup #3333)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12032 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-31 15:00:51 +00:00
Éric Lemoine
7a51a782bc sensible defaut for dragpan interval, r=crschmidt (#3317)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12031 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-30 12:55:16 +00:00
ahocevar
d6698e3771 fixing a typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12030 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-28 15:52:37 +00:00
ahocevar
090c8bc63a nicer attribution style
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12022 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-28 09:13:20 +00:00
ahocevar
a794eec5cf nicer attribution style
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12021 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-28 09:05:15 +00:00
Éric Lemoine
d0d0fd9295 XYZ.js trips-up JavaScript minify tools, no functional change (#3314)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12016 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-26 14:31:14 +00:00
ahocevar
275889aa1a New GoogleNG layer using tiles from the v3 API's mapType::getTile method. r=bartvde (closes #3312)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12000 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-23 21:42:09 +00:00
ahocevar
0c943fb5e0 adding note about attribution
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11999 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-23 21:27:54 +00:00
crschmidt
5f69105e08 Updated tools for releasing.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11998 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-23 15:45:07 +00:00
crschmidt
7adbed5dc8 Remove out of date and unused news.txt.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11994 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-23 13:47:21 +00:00
ahocevar
9f4c47a282 now using v3.5 of the GMaps API
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11986 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-22 14:00:48 +00:00
Marc Jansen
98f52eadde Adding various trunk commiters to the authors list. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11985 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-20 20:16:01 +00:00
ahocevar
81d6051752 making TRANSPARENT param values all UPPERCASE to conform to the WMS spec. r=bartvde (closes #3304)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11984 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-20 11:24:19 +00:00
Marc Jansen
feed7f2ed3 corrected a typo that went in with [11978], see ticket #3302
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11979 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-20 09:52:53 +00:00
ahocevar
6721110f49 returning Get and Post OnlineResources separately, in addition to the existing href, which is now for get. p=jachym, r=me (closes #3302)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11978 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-19 14:45:08 +00:00
Antoine Abt
6ce9feed03 round coordinates of externalGraphic in Canvas renderer, prevent Gecko to blur images p=pgira,me r=ahocevar (closes #3305)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11977 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-19 14:02:44 +00:00
ahocevar
397a844f87 removing alert
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11976 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-19 12:21:26 +00:00
Tim Schaub
b6b11f560a Switching to the 2-clause BSD license - aka the FreeBSD license.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11971 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-17 15:29:44 +00:00
Éric Lemoine
d45edfb2c0 Allow to pan the map while drawing in some examples, p=jorix, r=me (closes #3271)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11969 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-16 07:12:03 +00:00
Éric Lemoine
c82704905d fix Layer/Vector.html tests in FF4 (closes #3298)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11968 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-13 22:03:55 +00:00
Éric Lemoine
fedcad3cb4 fix Util tests in FF4 (closes #3300)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11967 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-13 21:49:34 +00:00
ahocevar
21daa083e9 fixing APIdoc typos
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11966 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-11 08:02:20 +00:00
Éric Lemoine
0d45c5f148 allow toggling TYPE_TOOL controls in panels, p=jorix, r=me (closes #3294)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11965 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-10 07:13:22 +00:00
Éric Lemoine
e1be8e9dfb the default controls of the editing and navigation toolbars are not activated, p=jorix, r=me (closes #3268)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11964 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-10 07:09:17 +00:00
Éric Lemoine
fef7e4febf fix regression where drawing accurately is not possible anymore, r=jorix,bbinet (closes #3272)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11962 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-09 09:34:19 +00:00
Éric Lemoine
e87e1c0c57 make the Navigation control support pinch-zoom, r=bbinet (closes #3273)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11961 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-09 08:28:35 +00:00
bartvde
00cfa5de55 add Lithuanian L10N file provided by monas (closes #3263)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11960 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-09 08:07:52 +00:00
Éric Lemoine
b61e29d920 CSWGetRecords format additions for parsing GeoNetwork specific fields, p=fvanderbiest, r=bartvde,me (closes #2961)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11959 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-09 07:52:39 +00:00
ahocevar
5e7c501539 do not reuse event objects to avoid incorrect event types. r=bartvde (closes #3280)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11958 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-09 07:36:57 +00:00
Éric Lemoine
491a5c0f62 SWGetRecords format additions for sorting, p=fvanderbiest, r=me,bartvde (closes #2952)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11957 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-09 07:16:39 +00:00
Bruno Binet
c0112c9bc6 fix regression introduced in [11881]: redraw is needed for unrendered features to be properly cleared. r=erilem (closes #3224)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11949 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-04 12:08:25 +00:00
Éric Lemoine
17f2843317 make it so features are not selected if there are multiple touches in the touchstart event, r=bbinet (closes #3279)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-04 10:37:09 +00:00
Frédéric Junod
8f70a140d0 fix api doc typo, no functionnal changes.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11947 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-04 07:48:55 +00:00
Éric Lemoine
53984809ce Handler.Feature may not trigger click when touching a feature, r=sbrunner
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11943 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-03 14:09:09 +00:00
Bruno Binet
e4d13784fa fix api doc typo, no functionnal changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11942 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-03 10:08:42 +00:00
Frédéric Junod
afbec6829f fix broken WMS tests. (see #3261)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11925 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-28 17:38:33 +00:00
bartvde
4e9da707a1 OWSContext/v0_3_1.html tests fail in IE8, r=erilem (closes #3278)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11924 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-28 10:14:11 +00:00
pgiraud
55be96a9dc Don't put the box under the cursor until the mouse moved, prevent errors with the GetFeature and click events. I also removed the no longer valid (and failing) tests. r=elemoine, (Closes #2993)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11923 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-28 07:09:01 +00:00
Éric Lemoine
7ed03671df point handler - remove the ununsed finishTouchGeometry function, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11913 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-27 06:17:18 +00:00
Tim Schaub
a852fc5153 The 'new OpenLayers.Map()' syntax used in this exmaple doesn't work. Correcting that, it is still unclear if the example works. I'm removing it to avoid confusion by others.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11908 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-21 23:04:39 +00:00
Tim Schaub
9ce31ac8ee Giving the restricted extent some width.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11907 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-21 22:44:31 +00:00
Tim Schaub
5f125e0ac2 Pink tiles. I also don't think we want to encourage anybody to use our browser sniffer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11906 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-21 22:15:52 +00:00
Tim Schaub
6adcf2a4df This example is quirky (markers don't show on Google Hybrid or Yahoo layers, MultiMap isn't working) and is potentially more confusing than instructive.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11905 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-21 22:13:10 +00:00
Tim Schaub
3967bbfaa6 This example says it is deprecated (in favor of wms-long-url.html). Removing examples of deprecated code will ease the eventual deprecated code removal.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11904 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-21 22:07:17 +00:00
Tim Schaub
bef047bf31 This example doesn't appear to work. We've got other examples that demonstrate the use of the newer GML parsers.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11903 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-21 22:05:02 +00:00
Tim Schaub
190f13e884 This example doesn't work any longer. And we have others that use the WMSGetFeatureInfo control.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11902 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-21 22:02:48 +00:00
Tim Schaub
582b21a4b1 Use OSM tiles for the wfs-snap-split.html example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11901 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-21 21:59:28 +00:00
Éric Lemoine
81342b4b1f the canvas renderer may mess up when rendering external graphics, r=erilem (closes #3264)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11899 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-21 07:55:19 +00:00
Bruno Binet
2c3a9eca5e add missing </ul> closing tag, no functionnal change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11898 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-21 07:30:30 +00:00
Bruno Binet
5476d307f8 remove duplicated css, no functionnal change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11896 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-20 13:40:54 +00:00
crschmidt
3c775ccc1a Update the website contents.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11895 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-20 03:37:24 +00:00
Tim Schaub
7eab9597cf No longer requesting exceptions as images by default. This makes it less likely to litter a cache with in-image exception reports. r=ahocevar,erilem,bartvde (closes #3261)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11894 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-19 18:57:12 +00:00
Bruno Binet
a7f2311c32 remove trailing comma, no functionnal change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11893 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-19 15:47:11 +00:00
Tim Schaub
d332ac2ef6 Correcting markup in attribution template for Bing layer. p=manchito r=me (closes #3260).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11889 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-14 15:00:12 +00:00
ahocevar
a3655cd66f Only start dragging when we are over a feature. r=tschaub (closes #3252)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11888 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-09 12:22:52 +00:00
Tim Schaub
32f70d06c2 Mobilize the canvas hit detection exmample.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11887 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-07 19:15:45 +00:00
Tim Schaub
13207d4ea1 Casting property values used as symbolizer labels to strings (allowing us to safely split them in the renderers). r=erilem (see #2193, closes #3249)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11886 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-07 18:45:31 +00:00
Tim Schaub
b650d4d89e Less mocking in the createSymbolizer tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11885 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-07 18:37:22 +00:00
Tim Schaub
b95e9dac11 Reworking test so failures are deterministic.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11884 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-07 18:29:18 +00:00
Éric Lemoine
64a611e861 Protocol.HTTP.read should not write params into the protocol's options object, p=etdube,me r=me (closes #3237)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11883 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-07 06:49:38 +00:00
Tim Schaub
4f3a0f1267 Correcting a typo from 11871. Thanks jorix for the catch (see #3236, closes #3250).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11882 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-06 22:06:31 +00:00
Tim Schaub
d711e36ed6 Making it so the Canvas renderer does not draw features with display "none" or those with geometries outside the renderer extent. p=me,ahocevar r=erilem (closes #3224)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11881 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-06 15:35:24 +00:00
Frédéric Junod
89639a12bb WFS protocol commit: send HTTP headers. p=arneke,me r=me (closes #3204)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11880 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-06 06:59:05 +00:00
Éric Lemoine
79b70e6dd4 avoid defining the same variable multiple times, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11879 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-05 19:27:52 +00:00
bartvde
29133b05ab add matchCase attribute for PropertyIsLike, r=tschaub (closes #3247)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11878 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-05 19:23:23 +00:00
Éric Lemoine
fd145c82b1 GeoJSON format output produces invalid CRS, p=hoxworth, r=me (closes #3022)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11876 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-05 07:07:01 +00:00
bartvde
f33c5ef112 WMSGetFeatureInfo control: relate features to url, thanks erilem for the extensive amount of reviews you have done for OL 2.11, r=erilem (closes #2883)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11875 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-05 06:52:42 +00:00
Éric Lemoine
6e3af67dab change Panel to avoid redrawing every control on every activate/deactivate, p=jorix, r=me (closes #2906)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11874 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-05 06:35:49 +00:00
Éric Lemoine
8337674791 the editing toolbar is pushed to the right in the editingtoolbar-outside.html example in IE7 and IE8 in compatibility mode, p=jorix, r=me (closes #2946)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11873 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-05 06:22:12 +00:00
Tim Schaub
0e27cea7f8 Things break when map maxExtent does not match the Google maxExtent and a Google layer is used as the base layer (see #3242).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11872 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-04 21:34:56 +00:00
Tim Schaub
7a5e837c9b Enhancements to the WMC parser for better contact information, SRS, and style support. p=trondmm, r=me (closes #3236)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11871 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-04 17:15:14 +00:00
Tim Schaub
a7d1cc9134 The tileOrigin property is not read or written in WMC docs (see #3245).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11870 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-04 17:11:14 +00:00
Tim Schaub
def3fbece6 Updating wmc.html example to use a currently working service.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11869 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-04 16:48:55 +00:00
ahocevar
5995202f3a working around drawImage issue on Android 2.1 devices. r=erilem (closes #3243)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11868 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-04 15:12:44 +00:00
bartvde
8596bbc779 getFullRequestString fails when layer has no projection, r=ahocevar (closes #3244)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11867 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-04 10:25:34 +00:00
ahocevar
0527f120a8 Removing unused variables and function. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11866 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-04 07:58:13 +00:00
Éric Lemoine
c7a67700ce fix an issue where the user cannot interact with the map when in the area to the left of the editing toolbar, p=jorix (closes #3241)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11865 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-04 07:47:07 +00:00
pgiraud
e140a5d843 Adding wrapDateLine support for XYZ layers. The OSM layer now wraps the date line by default. p=tomh, r=me (Closes #2246)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11864 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-04 07:20:48 +00:00
Éric Lemoine
035a30021d fix test_Handler_Box_draw by using another method to check whether we can get computed dimensions of an element (closes #3240)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11863 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-04 07:19:46 +00:00
Éric Lemoine
779732b63b fix test_Handler_Box_draw in FF3, providing getComputedStyle with the correct number of arguments, this test still fails in IE8, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11862 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-03 19:49:01 +00:00
Éric Lemoine
adbd2405ca mouseout callbacks should check if the mouse leaves map.eventsDiv instead of map.div or map.viewPortDiv, p=jorix, r=me (closes #3239)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11861 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-03 12:47:14 +00:00
Tim Schaub
cf311ee532 Making the canvas renderer keep track of a pending redraw. With this change we properly redraw even if the last feature in a batch has no geometry. p=me,ahocevar r=ahocevar (closes #3225)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11860 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-03 05:04:17 +00:00
Tim Schaub
62dd64c1c9 Simplifying hit detection for external graphics rendered with canvas. With this change, events within the graphic bounds will be considered hits (previously only events over visible pixels in the external graphic were considered hits). This simplification gets around same origin limitations. r=erilem (closes #3238)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11859 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-03 04:58:49 +00:00
Tim Schaub
7e60535fe7 Cleaning up from the canvas tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11856 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-01 21:37:06 +00:00
ahocevar
536a0410ee only add features to the unrendererdFeatures array when they were not drawn due to lack of geometry. r=erilem (closes #3235)"
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11853 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-01 09:26:39 +00:00
bartvde
d3a2e0c5de add missing requires, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11852 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-01 09:11:11 +00:00
Tim Schaub
bb9a11a469 Making it so the canvas renderer returns true after rendering a feature. This saves an extra draw for every moveTo. p=vog,me r=me (closes #3225)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11851 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 22:25:06 +00:00
Tim Schaub
970ff2741f Documentation fixes from jorix (thanks). (closes #3234)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11850 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 22:02:46 +00:00
Tim Schaub
3ef0b05949 Adding in support for hit detection with canvas (and rendering holes in polygons). r=fredj (closes #3207)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11849 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 21:00:03 +00:00
Tim Schaub
66dabae11b Making it so overlays at the top of the draw stack get the moveTo call first (base layer still gets the first moveTo). p=mosesonline, r=me (closes #3230)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11848 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 16:26:42 +00:00
Stéphane Brunner
baf35aeda2 Sencha Touch SelectFeature, p=cmoulet, r=me (closes #3229)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11847 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 14:42:44 +00:00
Éric Lemoine
fba3582b15 make the mobile-layers example rely on the OpenLayers mobile build, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11846 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 14:40:08 +00:00
Frédéric Junod
ae2f36963b drag feature support on mobile. r=erilem (closes #3231)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11845 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 14:34:05 +00:00
Éric Lemoine
44c675c48f add mobile-layers example, demonstrating that data from various layer/format types can be displayed on mobile, p=cmoullet, r=me (closes #3223)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11844 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 14:32:54 +00:00
Stéphane Brunner
0af21e8088 typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11842 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 12:47:41 +00:00
ahocevar
174078bca9 adding support for line breaks to SVG, SVG2 and Canvas renderers. Also adds vertical alignment support to Canvas. p=vog,fredj,me r=me (closes #2193)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11838 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 11:58:28 +00:00
ahocevar
9d04541683 apidoc updates
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11837 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 11:53:46 +00:00
Éric Lemoine
61ed146240 when drawing make sure the point follow the cursor, even after zooming in or out, p=jorix, r=me (closes #3195)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11836 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 11:35:24 +00:00
Éric Lemoine
4a6524fa85 better tests for Measure test_cancel, thanks jorix for reporting this (in #3195)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11835 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 11:35:15 +00:00
Éric Lemoine
aed69fe93a Measure tests - move a comment to its proper location, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11834 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 11:35:08 +00:00
Frédéric Junod
7963fb6a7f add modify feature control to mobile drawing example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11833 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 11:28:11 +00:00
Stéphane Brunner
07f4ad8354 fix Don't let the browser to zoom or select the map on feature selection, r=erilem (closes #3212)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11831 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 09:52:33 +00:00
Stéphane Brunner
04f2b20674 revert mistake [11829]
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11830 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 09:49:41 +00:00
Stéphane Brunner
c9d459c7fe fix Don't let the browser to zoom or select the map on feature selection, r=erilem (closes #3212)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11829 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 09:45:50 +00:00
ahocevar
0628c05fc3 doc fixes: Firefox instead of FireFox. p=vog (closes #2911)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11828 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 09:06:33 +00:00
Stéphane Brunner
36face3f71 Cleanup mouse event on touch devices, r=erilem (closes #3215)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11827 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 09:01:05 +00:00
Frédéric Junod
80ce6e6583 increase pointRadius size
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11824 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 07:59:42 +00:00
Frédéric Junod
4c0935771d add 'renderer' url param.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11822 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 07:01:35 +00:00
Tim Schaub
b8ba064ede Making it so you can remove more points from a linear ring. p=gregers, r=me (closes #2172)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11819 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 23:54:54 +00:00
Tim Schaub
587b2320ab Restore drag handler state in deactivate. r=erilem (closes #3218)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11808 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 20:54:41 +00:00
Tim Schaub
a25f506f20 Restore click handler state in deactivate. r=erilem (closes #3217)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11807 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 20:53:46 +00:00
Tim Schaub
5fc138f69b Making it so the setFilter method on the filter strategy allows notification to listeners of feature add/remove events. p=vog,me r=me (closes #3216)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11804 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 20:19:24 +00:00
Éric Lemoine
b14822c569 RegularPolygon handler - reverting [11770], as calling cancel from out causes issues (#3199)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11802 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 16:47:08 +00:00
Éric Lemoine
0d07893f2a nicer zoom +/- buttons in the mobile-drawing.html example, the same as in mobile.html, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 16:36:19 +00:00
Frédéric Junod
4b9f60f456 fix comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11800 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 16:17:35 +00:00
bartvde
56bca84cfe add support for maxVertices in Hander.Path, p=me,r=erilem, thanks erilem for the updated patch and your great work on this (closes #2779)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11797 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 14:38:32 +00:00
Stéphane Brunner
7a29b2d324 fix Don't let the browser zoom on the page on dbl click, r=erilem (closes #3209)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11795 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 14:29:28 +00:00
Éric Lemoine
a84c6b9302 simplify the code of the path and polygon handlers, removing the finishTouchGeometry function, r=sbrunner (closes #3214)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11793 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 14:26:12 +00:00
Frédéric Junod
7f45ff559a remove tabs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11792 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 14:26:03 +00:00
Frédéric Junod
d5d21b1e71 remove dependency on AnchoredBubble and Marker from Feature. r=marcjansen,bartvde,erilem (closes #1633)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11790 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 14:17:13 +00:00
Éric Lemoine
4d44799cc2 make every mobile example rely on the mobile build, and add files to the build for the mobile-drawing example, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11789 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 14:07:56 +00:00
Frédéric Junod
acc96324c5 update copyright to 2011
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11786 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 13:55:31 +00:00
Stéphane Brunner
9e74908bc6 fix No click on drag handler, r=erilem (closes #3210)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11783 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 13:38:17 +00:00
bartvde
464aed9d75 add support for OpenLS (Location Utility Service), thanks cmoullet for the great example, p=me,r=cmoullet,erilem,fredj (closes #2953)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11781 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 13:27:30 +00:00
Frédéric Junod
76f1987a8b add 'renderer' url param.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11780 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 12:51:01 +00:00
bartvde
a108fb86bb make use of WFS paging backported to WFS 1.1, thanks ahocevar for the improved patch, r=ahocevar (closes #3213)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11779 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 12:47:42 +00:00
Éric Lemoine
147e5bba1a some refactoring in the touch-specific code of draw handlers, r=sbrunner (closes #3208)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11773 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 11:30:07 +00:00
Éric Lemoine
cafe9661c4 click handler fires a "click" event when it should not, r=sbrunner (closes #3202)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11771 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 08:25:40 +00:00
Éric Lemoine
637dddf3b2 when drawing a regular polygon cancel drawing instead of finalizing when the mouse leaves the map, p=jorix, r=me,sbrunner (closes #3199)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11770 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 08:16:47 +00:00
Éric Lemoine
c15ffab9bc better tests for the polygon handler, and minor changes to the path handler tests, tests only change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11769 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 07:09:31 +00:00
Marc Jansen
4918785ca1 Fix spelling in example. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11768 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 06:40:31 +00:00
Éric Lemoine
b176d522c9 better tests for path handler, tests only patch
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11760 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 21:59:24 +00:00
Éric Lemoine
266f4c5843 better tests for the point handler, tests only patch
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11759 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 21:59:08 +00:00
Tim Schaub
fba3a883ac Removing the simpleFilterSerializer method on OpenLayers.Protocol in favor of a format for serializing filters for use with query strings. r=sbrunner (closes #3163)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11758 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 19:22:13 +00:00
Tim Schaub
8b9486a936 Making it so the merge tool supports @require directives in addition to @requires.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11757 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 19:04:40 +00:00
Tim Schaub
3ba8a294ff Extending the filter format and the feature ID filter to support writing of logical filters that contain FID filters. r=bartvde (closes #3012)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11756 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 18:49:27 +00:00
Frédéric Junod
15a7d0d18e align toString and fromString methods. r=erilem (closes #1275)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11755 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 17:07:54 +00:00
Frédéric Junod
d966553cdf fix comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11754 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 15:27:09 +00:00
ahocevar
7dd75fa6ea omit some tests in browsers that don't give us getComputedStyle for elements inside hidden frames (closes #2910)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11753 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 15:15:07 +00:00
Frédéric Junod
1417382f10 fix indent. non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11752 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 14:44:35 +00:00
Éric Lemoine
77c003e9f7 fix DrawFeature tests that changeset [11745] broke, thanks fredj for catching this, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11751 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 14:12:38 +00:00
Éric Lemoine
2f892476ea currently our mobile-drawing example has two navigation controls, change that, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11750 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 14:02:38 +00:00
ahocevar
c5dfe37bd4 fixed box sizing and positioning. r=sbrunner (closes #2910)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11749 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 13:44:04 +00:00
Frédéric Junod
54b58e3faf duplicate function name
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11748 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 13:28:01 +00:00
Éric Lemoine
2ff5aee63e better doc strings for the pixelTolerance option of Handler.Point, plus code styling, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11747 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 13:24:15 +00:00
Stéphane Brunner
e92d872a4a fix Allow to have PanZoomBar without pan icons, r=erilem (closes #3167)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11746 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 12:05:26 +00:00
Éric Lemoine
0276351f50 when zooming out right after drawing a polygon or a line a point appears in the upper left corner, p=jorix, r=me (closes #3196)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11745 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 12:00:58 +00:00
Frédéric Junod
33d330c0db font style support for feature label. r=erilem (closes #3051)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11744 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 09:54:00 +00:00
Frédéric Junod
222162fa98 remove unit if the value is 0. non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11743 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 09:50:33 +00:00
bartvde
46fc3182e4 Not all ESRI WMSGetFeatureInfo formats parsed, p=me, r=cmoullet,erilem (closes #3177)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11741 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 09:44:07 +00:00
Frédéric Junod
af2f3b7a70 remove semicolons after the if closing curly bracket. non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11740 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 09:43:20 +00:00
Éric Lemoine
aec3d44979 new icons for the navigation toolbar, p=jorix, r=me,marcjansen (closes #2946)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11738 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 09:39:42 +00:00
Éric Lemoine
5287e4a38b remove an IE-unfriendly trailing comma in the navtoolbar-alwaysZoom.html example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11737 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 09:32:17 +00:00
ahocevar
a53097e7fe setting cursor property on text labels. r=fredj (closes #3188)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11736 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 09:24:46 +00:00
bartvde
2c9cbab011 transitionEffect does not always work, thanks to Marco Nijdam for identifying the issue and thanks to Marc Pfister for the feedback on the dev list, p=me,r=fredj (closes #2848)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11734 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 08:59:31 +00:00
bartvde
c03b23e6ee maxResolution not correctly set when initializing map from WMC document, p=trondmm,r=me (closes #3191)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11733 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 08:44:18 +00:00
ahocevar
e8f79d95b1 making clearMouseCache work when document.body is not ready, which fixes a regression. r=bartvde (closes #3189)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11730 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-28 13:52:59 +00:00
ahocevar
f88f6cd6ed removing box when deactivating the handler. p=jorix, r=me (closes #3198)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11729 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-27 17:00:38 +00:00
bartvde
52b227958e fix trailing comma in example, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11728 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-25 16:48:15 +00:00
Frédéric Junod
31f3954923 add renderer url param. r=ahocevar (closes #3186)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11726 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-23 16:37:23 +00:00
ahocevar
8f584f2b84 Making Layer.PointTrack play nicely with gx:Track from Format.KML. Thanks bartvde for the updated patch. r=fredj,bartvde (closes #2792)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11722 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-22 13:46:33 +00:00
ahocevar
2d29236fb0 Making Layer.PointTrack play nicely with gx:Track from Format.KML. Thanks bartvde for the updated patch. r=fredj,bartvde (closes #2792)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11721 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-22 13:45:58 +00:00
bartvde
991a7314c3 add srsName to geometry filters written out by OpenLayers.Control.SLDSelect, this fixes the issue on the OpenLayers side, but not yet on the GeoServer side, although this might have been fixed after 2.1RC2 as aaime pointed out on geoserver-users, r=ahocevar (closes #3182)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11720 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-22 12:30:41 +00:00
ahocevar
bb1c61acc2 making it so Strategy.BBOX receives options from layer.refresh(options). Thanks vmische for the tests. r=bartvde (closes #2171)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11719 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-22 08:27:27 +00:00
bartvde
55e345a02b fix up Projection test in IE8, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11718 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-22 08:15:48 +00:00
Éric Lemoine
04ee616947 make it possible to activate a drawing handler before the map is centered, r=ahocevar (closes #3179)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11717 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-21 08:28:58 +00:00
bartvde
96198dee07 WMSGetFeatureInfo Control does not allow for different infoFormats per layer, r=erilem, thanks erilem for the quick review, api docs now have instructions for this (closes 3176)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11716 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-18 12:48:17 +00:00
Stéphane Brunner
78ab33e8f7 Fix wrong slider positions in PanZoomBar (closes #3154, r=erilem)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11714 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-17 16:33:12 +00:00
bartvde
2f71742fc9 fix up whitespace issue, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11713 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-17 15:50:08 +00:00
bartvde
dbd08a10a3 Geoserver filter Functions support in OL filter encoding, p=igrcic,r=me (closes #3053)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11712 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-17 15:47:28 +00:00
ahocevar
2e00e2e442 better support for file:// resources. r=bartvde (closes #3174)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11711 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-17 13:01:37 +00:00
crschmidt
bc28c096a7 When using wrapDateLine, pass both a rightTolerance and a leftTolerance at the
Layer level. This is fix a report from a user: "WMS tiles not loading when map
region crossing international date line(IDL)". All tests continue to pass, and
the lack of this tolerance here seems clear enough given the surrounding code.
Thanks to senthil for the patch, (Closes #2754)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11708 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-16 10:14:27 +00:00
crschmidt
87215daa54 The dynamic text layer uses an onPopupClose which looks to the layer and
first calls unselect on the selectfeaturecontrol. However, this fails if
the feature in question is no longer in the map -- for example, if you zoom
in or otherwise change positions. (The selected feature no longer exists,
so you call close on a feature which no longer has a layer object.) This change
to the examples by Jorix fixes this behavior in the example.

Note that many people use similar functionalities in their code, so this
likely means that what we *should* do is armor unselect() against being
called with a feature with a null layer, but that involves a longer 
discussion -- do we still fire onUnselect? Do we still fire the unselect
events? is there other cleanup we need to do? etc. -- so this is changing
the example to demonstrate one way to armor application code against
the problem.

Thanks to jorix for the suggestion on the example fix.
(See #3046)
(See #2515)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11707 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-16 09:41:37 +00:00
ahocevar
09bcb46a03 fixing scroll position issue on the IPhone by only clearing the mouse cache conditionally. r=erilem (closes #3132)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-16 02:52:43 +00:00
Frédéric Junod
9315972bb0 update copyright to 2011, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11703 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-14 08:42:16 +00:00
bartvde
49bb038692 fix up undefined error in ArcGISCache layer, thanks jorix, non-functional change (closes #3030)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11702 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-12 17:35:01 +00:00
bartvde
318003d399 Point Handler should not create feature if it is not active anymore, p=me,erilem r=ahocevar (closes #3172)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11701 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-12 16:03:57 +00:00
ahocevar
770a0f31f5 duplicating constants from Renderer.SVG and fixing API docs. Thanks jorix for the pointer. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11700 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-12 02:31:39 +00:00
Éric Lemoine
45b54f4a2c the editing toolbar is absolutely positioned in the top right corner of the map, p=jorix,me r=me (closes #2223)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11699 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-11 22:08:31 +00:00
ahocevar
83ade8f9d7 restoring allOverlays behavior as before #3062 when initially centering outside the base layer. r=bartvde (closes #3170)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11698 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-11 20:15:43 +00:00
ahocevar
120d59f0e1 reverting r11645, and fixing the root of the reported problem. r=bartvde (closes #2392)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11697 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-11 19:28:55 +00:00
bartvde
807000c4b7 ArcGISCache layer should not generate x and y values of less than 0, p=dmiddlecamp, r=me (closes #3169)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11696 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-11 18:34:53 +00:00
Tim Schaub
5b7d530461 Reworking click and pinch handling to get better behavior on multi-touch devices. r=ahocevar +testing from others (closes #3133)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11695 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-11 01:53:26 +00:00
bartvde
3ce239208f adding ArcGIS (AGS) Tile Cache Layer, great contribution from Azavea, thanks, p=dmiddlecamp, r=me (closes #3030)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11693 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-11 00:54:25 +00:00
ahocevar
c0ae33e457 documenting the options argument and how to limit the attributes returned by GetFeature
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11692 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-10 22:46:42 +00:00
Tim Schaub
27da366cd0 Adding a protocol for reading features cross-origin from services that support JSON with a callback. r=erilem (closes #2956)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11691 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-10 20:51:03 +00:00
Éric Lemoine
545c001b5e examples index - do not cut off long description texts, thanks Ivan for catching this
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11690 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-10 20:14:49 +00:00
bartvde
046f0a39ed Format.WMSGetFeatureInfo: also parse empty elements, p=me,r=erilem (closes #2867)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11688 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-10 16:36:30 +00:00
bartvde
9af89ff189 MapGuide and Zoomify layers use top-left as the tile origin, p=madair, r=me (closes #3160)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11686 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-09 17:05:49 +00:00
Éric Lemoine
d5848115df the fullScreen example js code was doubled for some reason, example only change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11685 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-09 13:28:10 +00:00
bartvde
e04efa811d incorrect argument type in calculateGridLayout, p=madair (closes #3160)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11681 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-08 22:28:13 +00:00
Frédéric Junod
2cf798c459 remove Control.KeyboardDefaults::destroy method: handler destroy already done in the parent class. r=bartvde (closes #3155)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11678 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-08 16:31:36 +00:00
bartvde
e3a5426789 WFSCapabilities - support for parsing SRS and DefaultSRS nodes, p=adube, r=me (closes #3048)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11677 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-08 16:19:36 +00:00
Tim Schaub
49e96f352f Adding a filterToParams method on the HTTP protocol. This allows you to specify how a filter is serialized in HTTP feature requests (using CQL for example). By default, we use the OpenLayers.Protocol.simpleFilterSerializer method. r=crschmidt (closes #3032)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11673 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-08 15:45:18 +00:00
Tim Schaub
f5769b8097 Setting lastMoveEvt in dragmove so it is accessible in both touch and mouse environments. r=erilem (closes #2936)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11671 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-08 15:21:33 +00:00
bartvde
288641e00d OpenLayers.Protocol.WFS misses a setGeometryName method, p=fvanderbiest, r=me,erilem (closes #3037)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11670 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-08 15:21:14 +00:00
Éric Lemoine
dfd80545ca since [11381] (pan while drawing) the map must have a center when a drawing handler is activated, fixing the example until a better solution is found (closes #3159)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11667 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-08 08:15:07 +00:00
Tim Schaub
d023ffc461 Getting rid of global component in SVG2.js (thanks jorix for the report).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11665 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-08 07:00:11 +00:00
Tim Schaub
14324728ff Getting rid of global yRestriction in Map.js (thanks jorix for the report).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11664 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-08 06:57:52 +00:00
Tim Schaub
2f93c18bd5 Getting rid of global tlViewPort in Grid.js (thanks jorix for the report).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11663 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-08 06:54:48 +00:00
ahocevar
34b4bdd835 removing redundant variable definition
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11662 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-08 06:13:46 +00:00
ahocevar
3f619f8b68 fixing the movestart-move-moveend sequence. r=bartvde (closes #3139)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11661 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-08 06:12:59 +00:00
Stéphane Brunner
91d4efcbe1 rm debug. r=aabt (closes #3143)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11660 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 16:52:01 +00:00
bartvde
23d24518fb need a setFeatureType function on Protocol.WFS, r=erilem (closes #2639)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11659 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 15:40:37 +00:00
Frédéric Junod
86fd4d076b re-add the Constructor API doc removed in r11641 (see #3149)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11656 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 14:48:26 +00:00
Frédéric Junod
dc9f615833 re-add the Constructor API doc removed in r11610 (see #3146)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11653 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 14:33:48 +00:00
Frédéric Junod
415aca4763 re-add the Constructor API doc removed in r11640 (see #3147)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11652 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 14:13:32 +00:00
Stéphane Brunner
7865f4d1f3 Add mobile-drawing example, Close: #3143, r=crschmidt
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11651 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 12:49:51 +00:00
Frédéric Junod
77a214764c Renderer.NG: remove global variables. r=crschmidt (closes #3153)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11650 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 11:48:51 +00:00
Frédéric Junod
7cea45db7f don't crash if OpenLayers.Renderer.NG is not defined. r=crschmidt (closes #3152)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11649 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 11:31:51 +00:00
crschmidt
89ea2f4ee2 Bump up the timeout on layer/gml test timeout for better testing on slower
devices.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11648 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 11:22:44 +00:00
crschmidt
d3f5100327 Add support to Format.OSM to reproject on writing. Initial suggestion from
Arnd Wipperman, turned into a patch by me, r=bartvde (Closes #2988)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11647 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 11:21:32 +00:00
crschmidt
c27af60153 Fix a bug in Rico Color introduced by our original porting by switching to
use our internal OpenLayers function instead of an external function; found
by jorix in his closure work. r=bartvde, (Closes #2976)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11646 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 11:20:12 +00:00
crschmidt
324603612d "Controls misbehave in WebKit browsers when vector layers present and map is
rendered"; this fix was presented by Nick M, and reviewed by erilem. 
(Closes #2392)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11645 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 11:18:45 +00:00
crschmidt
ce4ff521b0 Fix the double-reprojection of components of a collection in KML, and write a
test for it in both GeoJSON and KML to demonstrate that it works. r=bartvde,
(Closes #2040)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11644 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 11:15:20 +00:00
Frédéric Junod
105351995e remove 'empty' initialize method (method that only call the parent class). r=bartvde (closes #3149)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11641 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 09:26:23 +00:00
Frédéric Junod
315bbcdef3 remove 'empty' initialize method (method that only call the parent class). r=bartvde (closes #3147)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11640 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 09:25:17 +00:00
Éric Lemoine
1b3404f1f9 the map may jump on mouseup after dragging, p=me, r=crschmidt (closes #2936)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11635 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 08:21:51 +00:00
Éric Lemoine
1f58346772 SelectFeature control - highlightOnly and toggle don't play well together, p=me, r=bartvde (closes #2812)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11633 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 07:57:14 +00:00
bartvde
e8a3885d27 update copyright to 2011, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11632 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 05:38:51 +00:00
bartvde
e1a32ba630 Control should set this.div to null in destroy, thanks jorix for the updated patch, p=jorix,me r=me,fredj (closes #2850)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11631 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 05:02:51 +00:00
bartvde
987c2ae102 Writing map via OWSContext discards nesting path, p=hbruch, r=me (closes #3064)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11630 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 01:26:56 +00:00
bartvde
57191f5fd2 only write out LegendURL in OWSContext format if present, p=hbruch, r=me (closes #3045)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11629 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 01:14:55 +00:00
bartvde
99e51364e5 Geolocation Examples: JSLINT + IE Fixes, p=cmoullet, r=me (closes #3150)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11622 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-06 10:08:35 +00:00
bartvde
361ca8af95 fix up the case in which a vector layer needs to be reprojected and the map is not yet centered for the BBOX Strategy, thanks tschaub for the catch, p=vmische, r=me (closes #3142)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11617 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-05 23:34:44 +00:00
ahocevar
e3d137754c New SVG2 renderer for increased performance and smaller library size. Not enabled by default. To use, include 'SVG2' in the renderers array of your OpenLayers.Layer.Vector instance. r=crschmidt (closes #2802)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11616 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-05 21:17:02 +00:00
crschmidt
72f2ce5d0e Also listen on touchmove, since apparently evt.touches doesn't get multiple
touches on down?


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11611 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-03 14:40:29 +00:00
Frédéric Junod
7827b26a7d remove 'empty' initialize method (method that only call the parent class). r=bartvde (closes #3146)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11610 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-02 13:23:17 +00:00
Frédéric Junod
010ab7e81f fix typo in doc
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11609 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-02 11:30:38 +00:00
ahocevar
2a12176915 make setOptions work for restrictedExtent change, like it was before #3062. r=bartvde (closes #3144)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11608 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-02 11:09:24 +00:00
ahocevar
fb5f081ea6 fixing restrictedExtent check in moveByPx. r=bartvde (closes #3138)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11607 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-02 09:55:28 +00:00
Frédéric Junod
41ff5b8af8 fix typo in doc
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11606 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-02 08:15:20 +00:00
bartvde
afb80bfe48 Vector layer with BBOX Strategy isn't loaded/requested automatically, p=vmische, r=me (closes #3142)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11598 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-01 14:03:31 +00:00
ahocevar
07d5822995 removing unneeded arguments from extent.clone
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11597 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-01 13:51:07 +00:00
bartvde
55647c3e30 fix typo in APIProperty reported by Denis Rykov
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11591 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-01 09:14:53 +00:00
ahocevar
873fa8aa24 modifier+click no longer opens a new tab on FF when using externalGraphic. r=bartvde,pgiraud (closes #1421)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11584 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-28 18:56:00 +00:00
ahocevar
1f3a64d706 use wgs84 maxExtent when sphericalMercator is not set
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11583 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-28 17:11:08 +00:00
crschmidt
a0d3524994 Prevent "flicker" from Yahoo! when ending a drag by using dragPan object
unless there is no oldCenter, or we are zooming. r=ahocevar (Closes #2213)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11582 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-28 17:00:13 +00:00
ahocevar
f7c96d32c2 fixing issue with maps disappearing on resize. r=crschmidt (closes #2828)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11581 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-28 12:55:40 +00:00
ahocevar
be1adc5d69 use moveTo when dragPanMap object is not available. r=crschmidt (closes #3135)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11580 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-28 12:33:52 +00:00
Frédéric Junod
82a64751af fix Natural Docs comments, no functional change. p=jorix, r=me (closes #2989)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-28 08:19:18 +00:00
Frédéric Junod
1887969a3c move addTile code to the base class (OpenLayers.Layer.Grid). r=crschmidt (closes #2904)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11575 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-28 08:12:05 +00:00
Frédéric Junod
f7d58dc36c GeoRSS <description> is not properly parsed if multiple children. r=crschmidt (closes #2780)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11574 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-28 08:10:10 +00:00
Frédéric Junod
8beb04d2ca deprecate OpenLayers.Element hide() / show(). r=crschmidt (closes #1099)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11573 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-28 08:05:56 +00:00
crschmidt
31f1dd2610 Moving some properties (title, div, type, events, activate, deactivate) to
API Properties. (Closes #2827)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11570 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-28 00:56:20 +00:00
crschmidt
a5c9052b94 Make SVG graphicTitle standards compliant. p=potter000, r=pgiraud (Closes #2924)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11569 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-28 00:46:52 +00:00
Tim Schaub
8569ec2c2f Remove unused testEvent.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11568 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-27 23:22:57 +00:00
Tim Schaub
b750f690d9 Mocking less and (more importantly) making sure all assertions are not made in conditionally run code.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11567 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-27 17:03:57 +00:00
Tim Schaub
7fde5fd248 Refactoring the click handler tests so they are more legible and rely less on long sequences.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11566 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-27 15:29:32 +00:00
ahocevar
5a8260bb87 use correct y-offset for graphic. p=sbrunner, r=me (closes #3134)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11565 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-27 15:21:37 +00:00
Tim Schaub
693c95f999 Correcting click handler comment.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11564 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-27 15:19:32 +00:00
ahocevar
33eef42075 making drawing handler work on touch devices. p=sbrunner, r=me (closes #3072)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11563 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-27 15:00:38 +00:00
Tim Schaub
ba8aed56ef Since r11544, the event xy property is the average of all touch pixel locations. This test should have been updated with that change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11560 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-27 13:57:33 +00:00
Tim Schaub
02d4257544 Using real pixels in tests so we get distanceTo method.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11558 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-27 13:08:51 +00:00
Tim Schaub
b754cc40ac Working WFS.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11555 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-27 11:09:53 +00:00
crschmidt
709863eeae Some node.js test hacking.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11551 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-27 00:39:39 +00:00
crschmidt
7ede83ad75 Fricking differences between os x and linux sed. This fixes the mobile
build for OpenLayers in our live examples.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11550 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-26 22:08:23 +00:00
crschmidt
28ccd43ba4 Simple demo game-like thing showing how to use the accelerometer to control
a vector feature on a map.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11549 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-26 15:21:40 +00:00
crschmidt
b3091002f6 Add a quick test for multitouch. If you can't get the number reported higher
than one, your browser doesn't support multitouch.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11545 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-26 09:56:43 +00:00
Tim Schaub
f785153bca Adding a PinchZoom control for smooth zooming on multi-touch devices. p=bbinet,me r=crschmidt (closes #3105)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11544 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-26 02:22:45 +00:00
Tim Schaub
1425c2b0e6 Making it so the map doesn't show the white void beyond the edge of the world.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11543 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-26 00:33:10 +00:00
crschmidt
6486043716 Update the browser.html example to support further testing. patch by cmoullet,
simple example change, (Closes #3108)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11539 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 19:20:19 +00:00
crschmidt
b0b297bccd Update the dev dir building script to take the '?mobile' flagged .js
files and use the mobile OL build on them.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11538 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 19:06:58 +00:00
Tim Schaub
76a420b278 Making it so the navigation control zooms out on two touch taps. r=erilem (closes #3127)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11537 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 18:35:50 +00:00
ahocevar
5826bf5f3b make tween panning use Map::moveByPx. p=aabt, r=me (closes #3098)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11536 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 18:14:29 +00:00
ahocevar
2d5f29c55e New private movePyPx method to avoid going through all the unnecessary pixel-lonlat conversions. p=elemoine,me (closes #3062)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11535 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 18:02:12 +00:00
Frédéric Junod
4c40f7c11f increase delay for slow browser. (closes #3121)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11531 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 16:44:40 +00:00
Éric Lemoine
7219fd3743 firebugx.js sets window.i, no functional change, p=aabt,me (closes #3116)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11530 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 16:40:19 +00:00
Frédéric Junod
bc509b84e3 fixup my city name
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11527 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 16:22:17 +00:00
Éric Lemoine
fa533001d1 do no declare vars multiple times in functions, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11517 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 15:52:48 +00:00
pgiraud
26d8f31c5d Enhancing the mobile jQuery example, p=pgiraud,igorti,aabt
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11514 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 15:51:32 +00:00
Éric Lemoine
0e487a6d6b call zoomToMaxExtent only if the ArgParser didn't center the map itself, examples only change, thanks cmoullet for catching this
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11513 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 15:25:26 +00:00
Frédéric Junod
a076ce9228 Handler.Feature: fix mobile support. p=fredj,erilem r=erilem (closes #3106)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11510 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 15:18:02 +00:00
crschmidt
a26f8b7e27 Build examples when releasing.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11508 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 15:13:53 +00:00
Tim Schaub
960ef3de18 Don't store touch events. The same event is used between touchstart, touchmove, and touchend. Instead, we store event details on the handler and use those when needed. p=bbinet, r=me (closes #3120)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11507 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 14:52:56 +00:00
Frédéric Junod
b34dbcb903 add missing tags in examples/accelerometer.html. p=cmoullet, r=me (closes #3109)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11506 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 14:35:43 +00:00
Frédéric Junod
979d78f6aa use OLLoader.js for Geolocate unit test. p=cmoullet, r=me (closes #3124)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11505 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 14:33:55 +00:00
Frédéric Junod
0aa0b680a2 fix shortdesc in accelerometer.html
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11504 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 14:28:51 +00:00
ahocevar
d7afd24ac5 documenting that Layer.VirtualEarth requires restrictedExtent to be set, and changing the examples accordingly. p=marcjansen (closes #3123)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11503 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 14:27:54 +00:00
Éric Lemoine
7ec361cda9 100 milliseconds seems to be a good value for drag pan interval on most devices, no functional change (closes #3093)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11501 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 14:19:17 +00:00
Éric Lemoine
0546f974c5 make the mobile-navigation example use an OSM layer, example only change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11499 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 13:51:33 +00:00
pgiraud
1179ffe682 Fixing different things in the mobile aware examples:
- css styling for the zoom panel control,
 - creating a new mobile-base.js file shared by sencha and jq examples,
 - (re-)simplyfing mobile.js


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11496 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 13:45:19 +00:00
crschmidt
97db05e482 Fix error when no closure compiler is around.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11494 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 13:41:40 +00:00
Tim Schaub
b6cc99be8f Adding a distanceTo for pixels. p=bbinet, r=me (closes #3119)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11491 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 13:34:59 +00:00
Frédéric Junod
09c21c6b86 adding closure-compiler.jar to svn:ignore
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11484 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 12:14:35 +00:00
pgiraud
99f0376c8f Enhancing the sencha touch example, p=mjansen,bartvde,fredj,pgiraud, (Closes #3101)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11483 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 12:12:20 +00:00
Éric Lemoine
4a4d9b29cd the grid layer needs to clear its tile loading timeout when it's removed from the map, or moveGriddedTiles can be called with this.map set to null, r=crschmidt (closes #3110)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11482 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 12:02:29 +00:00
crschmidt
339d1ebaef Default the buffer to 0 instead of 2. On small maps (or fullscreen
maps on small devices) this is a huge win: instead of downloading
*42 tiles* on a 500x500 div, we now download just 12, a 3.5x savings
in downloads by default. The buffer of 2 was originally chosen when
most maps were based on slow-loading WMS laeyrs and having an area
to pan into was more important. That default no longer makes sense.

(Closes #3111) r=tschaub


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11481 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 11:50:30 +00:00
Tim Schaub
f7fcb86ee9 Making it so moveTo is only called once when creating a map with center and layers options. r=crschmidt (closes #3114)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11480 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 11:47:41 +00:00
crschmidt
269749ec23 Automatically grab and unpack the closure compiler when building releases.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11478 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 10:28:52 +00:00
crschmidt
be040c6614 Using CSS tidy to compress stylesheets on the dev site always, and to
include tidy-ified stylesheets in the released builds.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11477 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 10:23:42 +00:00
Tim Schaub
3f47ab809c Remove unused google.css.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11472 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 10:02:20 +00:00
crschmidt
a2d1623b80 pngcrush pngs to save another 1k for people who are using the PanZoom +
LayerSwitcher controls (and more for people who are also using
other controls).


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11470 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 09:33:19 +00:00
crschmidt
03cdbd8a02 pngcrush theme images. On the most common images (editing tooolbar,
pan-panel), this saves us an additional 3k of bits to transfer.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11469 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 09:28:33 +00:00
Tim Schaub
7d195697b6 Adding example demonstrating device orientation and accelerometer use. Nice example from cmoullet (closes #3083).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11463 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 08:59:04 +00:00
Frédéric Junod
93da80b0c4 deactivate the Geolocate control on destroy. r=bartvde,elemoine (closes #1185)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11459 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 08:52:28 +00:00
Tim Schaub
9d6d6bdd27 Adding profile for mobile builds (see #3069).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11458 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 08:48:33 +00:00
crschmidt
479d2c28b6 This patch causes the zoomBox to become visible again, after the changes
to add an eventsDiv, and fixes the OverviewMap to work again. r=bartvde,
(Closes #3104)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11455 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 08:30:50 +00:00
crschmidt
4be8f72afe Extending Map.js documentation to include comment regarding destroy from
#2277.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11454 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 07:25:03 +00:00
crschmidt
b22963a2ef Wrap path in abspath
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11450 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-24 23:59:51 +00:00
crschmidt
876e0dfd81 Fix build script on python before 2.6, and update_dev_dir now compiles
with closure instead of jsmin.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11449 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-24 23:48:24 +00:00
crschmidt
d06c66edab Adding support for closure compiler and some documentation
in the README about how to use it.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11448 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-24 23:19:53 +00:00
crschmidt
8d2bbfe28f Add support for the closure compiler webservice, using simple optimizations.
Using this build mode, on a lite build, we save approximately 15% after
gzip. However, this build method can not be used on full builds, as they
exceed the 1000kb limit on the closure compiler webservice. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11443 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-24 22:39:40 +00:00
bartvde
07e34672b5 OpenLayers.Util.getFormattedLonLat does not deal correctly with 60 seconds and 60 minutes, p=mattnott,jorix, r=me,marcjansen (closes #2852)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11405 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-24 11:24:50 +00:00
Tim Schaub
680923319c Adding a pinch handler for multi-touch devices. Great patch from Bruno. p=bbinet, r=me (closes #3077)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-24 10:05:49 +00:00
crschmidt
8da53d8fbd Better mocking of the function calls on handlers so that handlers which
expect an evt object don't get errors when activating. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11387 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-24 09:37:47 +00:00
crschmidt
6b54f9e80a Add an option to build.py to specify a compressor or 'none' for uncompressed.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11382 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-24 09:08:00 +00:00
Éric Lemoine
30aeab365a make it possible to pan the map while drawing geometries, r=tschaub (closes #3052)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11381 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-24 09:00:49 +00:00
crschmidt
f8db509725 Test that getLonLatFromPixel and getPixelFromLonLat are inverses of each
other (within a reasonable tolerance)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11374 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 22:24:35 +00:00
Tim Schaub
fa32a4a645 Arrange elements so we can get mouse events on controls while preventing the default (scroll) behavior on touch devices. r=elemoine (closes #3091)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11365 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 17:59:37 +00:00
Tim Schaub
0961132ab6 Opening popup windows with the same query string from the parent. This allows mode=build for tests in popups.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11341 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 15:54:26 +00:00
Frédéric Junod
5c400dac4f add some fancy move to geolocation accuracy. p=aabt, r=me (closes #1885)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11321 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 14:08:32 +00:00
Tim Schaub
8284c81b3b We register for mousemove, we generate mousemove, and IE gives us event.type 'load'. This is likely the window event property.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11318 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 13:48:49 +00:00
pgiraud
61452e2821 Adding getCurrentLocation API method so that application can get the location anytime, p=aabt, r=elemoine, (Closes #3090)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11315 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 13:33:14 +00:00
Tim Schaub
f55291bd34 Updating the EventPane tests so we always run the same number of tests (except Firefox) and report better failures.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11312 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 13:21:47 +00:00
Éric Lemoine
9ce641bd75 better API doc strings in the Kinetic class, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11309 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 12:13:53 +00:00
Éric Lemoine
e1b9b2b89d change <title> of the mobile-navigation example, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11305 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 11:40:36 +00:00
Tim Schaub
8ef02b39ef Adding detail to the messages for easier failure detection.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11292 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 10:28:27 +00:00
Tim Schaub
9ebdb1e4f7 No floats above map containers without position or clear.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11289 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 10:14:53 +00:00
Tim Schaub
257b96b309 Only invoke the landscape rules if the max width is fewer than 600 px (thanks aabt).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11287 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 10:04:55 +00:00
Tim Schaub
75538b6f42 Getting consistent datestring parsing in Chrome and Firefox. r=crschmidt (closes #2994)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11281 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 09:32:36 +00:00
Éric Lemoine
abb2bb509d The Android browser doesn't allow scrolling in a div, this is a problem for our unit test page. With this patch, we disable scrolling in our test page's divs if noscroll is set in the query string. No functional change. p=aabt (closes #3085)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 09:23:36 +00:00
Éric Lemoine
b469555a79 better display in our examples when orientation is landscape, and enable text size adjust in webkit; no functional change, p=aabt, r=me (closes #3067)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11275 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 09:14:26 +00:00
Frédéric Junod
6e83eb0018 set the language code in tests, tests expects English messages (closes #3084)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11272 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-23 09:06:20 +00:00
Tim Schaub
c55323cf3a More descriptive titles.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11264 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 22:38:31 +00:00
Tim Schaub
7fe4329afe Linking to example source code. Setting watch checkbox to match initial control state.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11263 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 22:00:59 +00:00
Éric Lemoine
8d15d94494 better descriptions for the mobile-navigation example, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11262 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 21:25:35 +00:00
Tim Schaub
d21b7b081f Taking advantage of the nice media query styles. Separating code from markup.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11261 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 21:21:31 +00:00
Tim Schaub
406bca8d70 Adding title and description to mobile examples.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11260 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 20:56:27 +00:00
Tim Schaub
1619f0801b Working with json if available. Fall back to simplejson.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11259 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 20:55:36 +00:00
Éric Lemoine
50c292f176 add a Geolocate control, p=cmoullet,aabt, r=me (closes #1885)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11258 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 16:48:05 +00:00
Tim Schaub
8965a61c75 Making it so the click handler works even if other listeners stop propagation on touchstart. r=elemoine (closes #3089)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 15:28:31 +00:00
Tim Schaub
629720b2d1 Fewer pink tiles.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11248 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 15:08:17 +00:00
Frédéric Junod
d34a9ee035 add tags in browser.html examples (closes #3088)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11245 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 14:54:01 +00:00
Éric Lemoine
dda9139347 add tags to our mobile examples, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11242 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 14:39:49 +00:00
bartvde
418dd126fa two-finger tap zoomout should work on iPhone, non-functional change (closes #3087)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11241 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 14:39:39 +00:00
Éric Lemoine
f299a41340 say hi to the new examples index, which works on mobile devices as well, thanks to our web designer pair, Marc and Antoine
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11238 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 14:22:00 +00:00
Éric Lemoine
b7babb5edf add a ZoomPanel to the mobile example, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11237 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 14:11:57 +00:00
Éric Lemoine
2f42aeb440 mobile example - set interval to 0 in the drag handler, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 14:11:49 +00:00
Éric Lemoine
9e2eef5f47 bigger zoomin/out buttons in the mobile-navigation example, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11233 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 13:45:26 +00:00
Éric Lemoine
b378d28e41 move the examples images in an "img" directory, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 13:06:35 +00:00
Éric Lemoine
ab309197e2 mobile-navigation example - place the JS code in a separate file, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 12:08:30 +00:00
bartvde
36f5232dd6 PanZoomBar doesn't handle forceFixedZoomLevel correct, p=patzi,marcjansen r=me (closes #2725)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 12:06:12 +00:00
bartvde
892d9d7768 fix up JS error in PanZoomBar testcase in IE, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 12:03:55 +00:00
Éric Lemoine
500d351013 test that we set clientX and clientY in the event, test-only patch
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11227 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 11:44:36 +00:00
bartvde
98a6c1754d fix up issue with Sencha Touch example not handling double tap to zoom in, r=elemoine (closes #3079)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11226 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 11:21:20 +00:00
Éric Lemoine
f67bcaa033 add a touch events related test for the drag handler, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11225 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 11:10:35 +00:00
Éric Lemoine
6b5ac685b1 use the touch navigation control in the mobile examples, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11224 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 10:36:38 +00:00
Éric Lemoine
2a59831290 enable kinetic for the mobile-navigation example, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11223 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 10:33:33 +00:00
Frédéric Junod
cd10d36025 add copyright header, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11222 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 10:15:38 +00:00
Éric Lemoine
332208539d remove trailing whitespaces, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11221 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 10:00:42 +00:00
Éric Lemoine
103e620dff kinetic/momemtum dragging support, p=camptocamp, r=me (closes #2999)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11220 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 09:59:21 +00:00
crschmidt
83f9422296 Adding a test page to show mobile browser events; this is useful for when
a new device is available to understand what events are supported by
a given browser.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11219 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 09:49:37 +00:00
ahocevar
bc81882a8e removing unused _bounds member variable. non-functinal change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11215 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 09:06:50 +00:00
Éric Lemoine
c852abad61 let's have a basic mobile-navigation example focusing on navigation-related functionality for mobile, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11212 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 08:54:42 +00:00
Éric Lemoine
c9fe40cc3c add a touch device-specific navigation control, p=bbinet, r=me (closes #3068)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11208 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 17:38:11 +00:00
Tim Schaub
849426f845 Making it so controls that register for mousedown and mouseup work in touch environments. r=crschmidt (closes #3075)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11207 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 17:31:19 +00:00
Tim Schaub
3066b50956 Removing the ie-killer trailing comma to make the mobile.html example work for crschmidt (and debunking the myth that you can't render a map with a script in the body).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11205 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 16:12:55 +00:00
Éric Lemoine
7a8f3917c9 make click handler work with touch events (closes #2996)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11201 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 16:04:34 +00:00
pgiraud
2908fa79e5 Putting the loader code into an self-executed function so that we don't have problems with global scope variables, Closes #3076
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11196 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 15:39:14 +00:00
Éric Lemoine
07160f5385 make drag handler work with touch events, p=lotsofpeople, r=tschaub (closes #2995)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11189 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 15:07:55 +00:00
Frédéric Junod
7a1cb00fe4 Add missing semicolon. Non functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11185 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 14:55:01 +00:00
pgiraud
2fd0eff3c1 The OpenLayersXXXX.html tests shouldn't use the built file
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11177 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 13:02:11 +00:00
Tim Schaub
fa15785c96 Updating the update_dev_dir script to use the tests.cfg profile. This brings in lang and console utilities.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11175 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 12:01:39 +00:00
Tim Schaub
17eaecc4e5 Excuse the bad commit message on r1172. This change and that one add a reusable empty function. r=ahocevar (closes #3073)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11174 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 12:01:17 +00:00
Tim Schaub
174bd431f4 Updating the update_dev_dir script to use the tests.cfg profile. This brings in lang and console utilities.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11172 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 11:54:15 +00:00
Éric Lemoine
7e18475a0b add support for anchor-based permalink, p=sbrunner, r=me (closes #2785)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11170 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 11:53:08 +00:00
Frédéric Junod
3fce968f2a use OpenLayers.Util.getImagesLocation() from default marker location
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11169 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 11:51:21 +00:00
pgiraud
dbf886dad0 Adds a specific config for the build to be used for the unit tests (python build.py tests.cfg). This build is similar to the full one but with Firebug and Lang, r=fredj
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11168 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 11:35:38 +00:00
pgiraud
941ebc78ce Now we rely on relative paths + minor changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11167 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 11:32:37 +00:00
crschmidt
788b05c32f check SVN revision online rather than via 'svn up' and put svn up inside the
revision check loop.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11164 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 10:33:59 +00:00
pgiraud
f84f696e31 Adds the possibility to use a built version of OpenLayers for the tests, users simply have to add '?mode=build' in the run-tests.html url
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11162 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 10:10:25 +00:00
Éric Lemoine
08acb65e0e deferred tile loading, i.e. the Google Maps way, p=pgiraud,ahocevar,me, r=ahocevar,me (closes #2998)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11159 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 09:45:22 +00:00
Éric Lemoine
7f34868fe2 use mobile-specific metas in our examples, and add a media query to remove padding and set map width to page width on small scth on small-screen devices, r=aabt (closes #3067)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11158 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 06:48:33 +00:00
Tim Schaub
d33477d65f A framework-less example that will soon work.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11157 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-20 17:31:46 +00:00
Éric Lemoine
39e9728696 add missing test file for #2947, no functional test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-20 15:25:24 +00:00
Tim Schaub
a736a44955 Reverting before update to avoid conflicts when examples are removed.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11150 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-20 15:24:08 +00:00
Tim Schaub
5e091d46d8 Use OpenLayers.Console.log. Make gg and sm globally available so we can transform position.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-20 15:06:53 +00:00
ahocevar
b30d35c615 making ModifyFeature control in standalone mode trigger the beforefeaturemodified event. r=bartvde (closes #3009
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11146 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-18 15:25:41 +00:00
ahocevar
d6695cff67 fixing error when closing page in IE. Thanks bartvde for the testcase. r=bartvde (closes #3003)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11145 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-18 15:22:12 +00:00
pgiraud
28e5614e98 Avoid tests crashs because of delay problems. Adding more control so that conditions fail without crashing. r=bartvde (Closes #2997)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11144 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-18 13:20:07 +00:00
Frédéric Junod
994c156878 remove tabs, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11143 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-18 08:01:59 +00:00
Frédéric Junod
95d8cd3473 save the resourceUrl elements into the WMTS capabilities object. r=bartvde (closes #2986)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11142 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-18 07:14:27 +00:00
Éric Lemoine
95380a512c allow custom jsfiles array, r=tschaub (closes #2947)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-17 19:54:11 +00:00
Frédéric Junod
1f042af289 initialize the WMTS layer with style.identifier instead of the whole object. r=bartvde (closes #3027)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11135 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-17 15:25:28 +00:00
bartvde
3db27d7832 add missing part for #3055
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11134 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-17 15:08:18 +00:00
bartvde
04acbeeb0e OpenLayers.Request issue method creates URLs such as http://service?&key=value, p=fvanderbiest, r=me (closes #3055)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11133 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-17 15:04:53 +00:00
Tim Schaub
0781655e19 Removing scrolling workaround.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11132 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-17 05:29:11 +00:00
Tim Schaub
0fa37001dc Prevent scrolling from map.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11131 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-17 05:07:50 +00:00
Frédéric Junod
2eee8a3add mark OpenLayers.Layer.MultiMap as deprecated (see #3063)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11125 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-16 13:21:14 +00:00
Tim Schaub
6e13d7f8f3 Adding Sencha Touch example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11124 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-16 08:50:32 +00:00
Tim Schaub
b3ca71d48f Remove unused log element.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11123 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-16 08:47:14 +00:00
Tim Schaub
1be7701c8f Add example using jQuery mobile (limited functionality).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11119 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-16 00:34:16 +00:00
ahocevar
4f3466b005 use the correct maxResolution of 156543.03390625. r=bartvde (closes #3058)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11118 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-14 13:10:39 +00:00
crschmidt
94ddd78df7 Fix doc bug pointed out by vmx.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11117 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-14 12:07:02 +00:00
pgiraud
92849418d8 Use mouse cursors (pointer or move) for the control buttons, p=fvanderbiest, r=me, (Closes #3047)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11105 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-11 15:40:39 +00:00
Tim Schaub
47767fbd0c Adding igrcic to the authors list.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11096 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-10 19:28:39 +00:00
bartvde
5f89ce40ea add a testcase showing that we can now parse the boundedBy tag of a Feature Collection using output: 'object' non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11074 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-10 10:08:15 +00:00
Éric Lemoine
9495c8cb70 add onEnter and onLeave callback functions to the DragFeature control, p=adube, r=me (closes #3034)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11071 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-08 20:47:23 +00:00
ahocevar
198b3a9c7f new slideRatio option for Control.Pan and Control.PanPanel. r=bartvde (closes #3039)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11070 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-02 15:00:57 +00:00
Tim Schaub
5d92c646b6 Correcting link to source.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11066 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-01 16:05:47 +00:00
Tim Schaub
6b0b3375e3 Adding a parser for reading and writing CQL. This can be used to create filters to be used in rules when styling or it can be used to serialize filters when making requests to services that supprot CQL. p=dwinslow, r=me (closes #2522)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11065 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-28 23:15:10 +00:00
ahocevar
b434c02e1d using new restricedMinZoom property to make Layer.Bing code much cleaner. r=bartvde (closes #3025)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11059 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-24 21:45:44 +00:00
ahocevar
a1c80ffb7e new restrictedMinZoom property. r=bartvde (closes #3024)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11058 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-24 21:43:35 +00:00
bartvde
2f7a3e818a forgot to commit these files for ticket:3026
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11057 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-24 12:43:53 +00:00
bartvde
54fe8a5590 add support for parsing WMS-C type capabilities, r=ahocevar (closes #3026)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11056 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-24 12:20:36 +00:00
Éric Lemoine
3ba277f6b7 remove incorrect comment in library.cfg, thanks rodo for reporting the issues (closes #3023)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11053 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-23 14:38:25 +00:00
ahocevar
4a9460b314 give layer an "added" and "removed" event. p=mpriour,me r=me (closes #2983)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11052 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-22 12:04:40 +00:00
ahocevar
f73fb689a8 added examples stylesheet and title.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11049 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-21 12:34:06 +00:00
ahocevar
3a16592b1a giving Layer.Google.v3 an animationEnabled option, like the one we already have for Layer.VirtualEarth. r=bartvde (closes #3020)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11047 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-20 13:31:30 +00:00
bartvde
3913ef1787 WMS GetFeatureInfo control should use integers for X and Y, r=ahocevar (closes #3019)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11046 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-20 13:20:03 +00:00
ahocevar
c8982cb99a give Layer.Vector a vertexremoved event, to be fired e.g. by the ModifyFeature control. r=bartvde (closes #3017)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11043 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-19 16:44:39 +00:00
ahocevar
edfbcb0a5e Fix Google layer to work with the v3.3 api. Update examples from v3.2 to v3.3. r=bartvde (closes #2984)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11042 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-19 12:01:28 +00:00
ahocevar
fcdd918170 check if using a proxy is required, and if so, issue a warning if none is configured. p=fvanderbiest,me r=me (closes #3015)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11038 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-18 00:13:35 +00:00
Éric Lemoine
b5f4eca585 removing lib/OpenLayers.js.orig which was accidently added with [11036], no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11037 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-17 14:39:27 +00:00
Éric Lemoine
7b5718f9ac always use "parser-inserted scripts" for guaranteed execution order, thanks a lot hsivonen for reporting this and the thorough explanations, r=pgiraud (closes #2933)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11036 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-17 14:37:15 +00:00
ahocevar
3795dbf490 Giving fromArray and fromString a reverseAxisOrder option. r=erilem (closes #3014)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11035 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-17 09:18:21 +00:00
Tim Schaub
c8c8a74be7 In r11031 support was added for writing null geometries in an update transaction. This change corrects the syntax for null geometries, omitting the wfs:Value element altogether. r=ahocevar (closes #3010).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11034 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-14 16:13:10 +00:00
Tim Schaub
441a5408cd Adding support for a tileOrigin property to all gridded layers. If working with a cache of tiles that don't align with the bottom left corner of the layer's maxExtent property, set the layer's tileOrigin property. This change also removes the tileExtent property (not in any release), favoring tileOrigin as the way to determine how the grid is aligned. r=ahocevar (closes #3011).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11033 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-14 15:56:07 +00:00
ahocevar
3515d23ce7 made metadata api parameters configurable. p="Jeff Maki",me r=me (closes #3013)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11032 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-14 13:28:45 +00:00
Tim Schaub
f68ee50a8e Allow WFS transactions with null geometry. r=ahocevar (closes #3010)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11031 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-13 19:37:35 +00:00
ahocevar
eaeb2467bf Revert changes that were accidently committed with r10018
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11021 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-09 22:38:40 +00:00
Tim Schaub
1c1bcf86ff Clarifying docs and removing a bit of lint.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11020 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-07 22:28:25 +00:00
Tim Schaub
ece7beff27 I'm assuming that it was a mistake to remove the v3.2 bit in r11018 (this keeps us from getting that annoying popup). Please clarify if it was indeed supposed to be removed. (see #2985)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11019 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-07 22:21:53 +00:00
ahocevar
03fd0056aa Reverted a part of r10976 which removed code that is still needed. Thanks cmoullet for spotting this. r=me (closes #2985)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11018 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-07 18:50:23 +00:00
Tim Schaub
472f0e55fe Not really required here, but taking a shortcut.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11017 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-07 00:13:46 +00:00
Tim Schaub
8c258e9901 Control resolution at which snapping is considered with minResolution and maxResolution per target. r=elemoine (closes #3007).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11016 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-06 21:41:25 +00:00
Tim Schaub
8dd58e484a Optionally include SRS id in serialized BBOX by constructing a HTTP protocol with srsInBBOX true. r=elemoine (closes #3006).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11015 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-06 21:39:14 +00:00
Tim Schaub
6ccbdf330c Updating load order for Util tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11014 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-05 19:34:59 +00:00
Tim Schaub
b6de19074e A critical oversight in r11003. The Class.js script must be loaded first now (see #2992).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11013 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-05 19:33:03 +00:00
Tim Schaub
11c609d3fd Simplifying the build profiles. Build only commit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11008 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-05 17:43:28 +00:00
Tim Schaub
b9b7a68b19 Declaring dependencies in the source. Comments only commit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11007 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-05 17:42:45 +00:00
Tim Schaub
0bc34e48c6 Simplifying the toposort method used for sorting dependencies. The new version imposes an arbitrary sort order for circular dependencies (instead of bombing out). The merge script now uses this new toposort. Tools only commit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11006 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-05 17:39:44 +00:00
Tim Schaub
52a105c3aa Adding the tile extent examples as part of #3002.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11005 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-05 17:37:58 +00:00
Tim Schaub
9e89f4f173 Removing the OpenLayers.Util.extend method to the Class.js file to avoid a circular dependency that cannot be resolved with an arbitrary sort order. r=elemoine (closes #2992)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11003 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-05 17:24:32 +00:00
Tim Schaub
373dc629bb For gridded layers where the tile lattice on the server doesn't align with the maxExtent on the client, set the layer tileExtent property. r=ahocevar (closes #3002)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11002 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-05 17:21:58 +00:00
ahocevar
1efea75029 draw external graphics even if no fill is specified (e.g. for symbolizers from sld). p=gernot,me r=me (closes #3004)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11001 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-05 16:45:10 +00:00
Éric Lemoine
46a382e79f missing var declaration in LineString.js, p=jorix, r=me (closes #3001)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11000 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-05 07:59:46 +00:00
Éric Lemoine
1144b2cd8c small optimization for the toFloat func, r=pgiraud (closes #2875)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10998 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-04 07:43:54 +00:00
ahocevar
d0ab1fd219 fix Bing layer's zoom level management. r=tschaub (closes #2987)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10997 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-03 18:18:43 +00:00
pgiraud
06b32c30a7 Prevent Box handler from cancelling the click event by displaying the box only when the cursor move, p=me, r=elemoine (Closes #2993)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10996 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-03 15:48:37 +00:00
Tim Schaub
ad54169479 Happy New Year.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10995 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-03 15:39:40 +00:00
ahocevar
5587fe7013 also use v3.2 for the osm-google example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10992 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-03 08:40:51 +00:00
ahocevar
1c421576c3 Missing graphic-name.js which should have been committed with r10976 (closes #2985)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10991 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-02 16:59:07 +00:00
Tim Schaub
e7803974b0 A bit of lint removal.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10990 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-01 23:48:08 +00:00
Tim Schaub
7eed099b4e Getting specific about the radix. Trivial change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10989 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-01 23:41:47 +00:00
Tim Schaub
564376c847 Only loading what is strictly required by Util tests (see #2947).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10977 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-01 18:44:59 +00:00
ahocevar
fe6047859f Always copy graphicName symbols, because there were too many issues with use/defs. Ctrl-Click and Shift-Click now works as expected on graphicName symbols. p=marcjansen, r=me (closes #2985)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10976 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-29 12:06:46 +00:00
ahocevar
1b9996d62c Added Bing layer with direct tile access. p=me,tschaub r=tschaub,me (closes #2975)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10975 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-17 23:46:22 +00:00
Tim Schaub
62d91da358 Using the v3.2 api to avoid attribution popup.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10974 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-17 16:04:06 +00:00
ahocevar
24f233fb30 updated the description and documentation of the example. p=marcjansen, r=me (closes #2869)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10973 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-17 10:02:05 +00:00
Tim Schaub
697ee375b8 Making it clearer what WKT read does with a geometry collection.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10972 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-16 19:31:10 +00:00
Tim Schaub
e00a21541d Serializing features with OpenLayers.Geometry.Collection geometries as GEOMETRYCOLLECTION in WKT. p=strk, r=me (closes #2706).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10971 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-16 19:14:44 +00:00
ahocevar
e9e2aec77d Added Douglas-Peucker linestring simplification to OpenLayers.Geometry.LineString. Thanks chrismayer for this excellent patch. p=chrismayer, r=me (closes #2869)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10969 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-15 13:38:52 +00:00
ahocevar
b61cec71a1 Make it possible to exclude Console.js and Lang/en.js for really small builds. r=bartvde (closes #2882)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10967 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-15 09:42:19 +00:00
Éric Lemoine
4c3d4c77c0 make Request rely on standard XMLHttpRequest interfaces, p=jorix, r=me (References #2913)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10966 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-15 07:52:00 +00:00
Éric Lemoine
8084f63cb0 add XMLHttpRequest readyState compliance tests, p=jorix (References #2913)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10965 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-15 07:51:50 +00:00
Éric Lemoine
1ff89a9c40 Give Layer.Vector a method getFeaturesByAttribute, p=marcjansen, r=me (closes #2979)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10960 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-14 08:07:29 +00:00
bartvde
b351734cf6 upgrade the XMLHttpRequest library to version 1.0.5 in order to fix the Request/Abort unit test, thx to jorix and erilem for their hard work on this, r=erilem
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10959 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-13 10:14:06 +00:00
Tim Schaub
4104942bca Manual test for Google v3 resizing issue.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10957 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-08 17:58:41 +00:00
Éric Lemoine
43d9e2e1a4 the drag handler's mouseout func should check if the mouse left the map viewport div as opposed to the map div, r=ahocevar (closes #2941)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10956 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-08 16:06:42 +00:00
ahocevar
9f47e1915d auto-create the GetFeature readFormat for known outputFormats. r=tschaub (closes #2968)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10955 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-07 23:56:32 +00:00
ahocevar
ed7faebbcb fix document dragging which was broken with r10871. Note that this could also have been fixed by creating the Events instance on the element returned by OpenLayers.Util.getViewportElement() instead of document. r=erilem (closes #2941)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10954 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-07 23:48:20 +00:00
Tim Schaub
43dd65d357 Avoiding infinite recursion when getting bounds of geometry collections. r=ahocevar (closes #2967)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10953 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-07 23:37:56 +00:00
ahocevar
92493cc12b Use native JSON if available. p=fredj,me r=bartvde,tschaub,elemoine (closes #1807)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10952 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-07 16:56:49 +00:00
Éric Lemoine
831420aac2 missing var's, p=jorix (thx), r=me (closes #2960)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10951 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-06 20:15:15 +00:00
ahocevar
b125e045d1 Make WMSGetFeature control respect layer projection if it equals the map projection. r=bartvde (closes #2918)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-04 13:51:11 +00:00
ahocevar
492a6d930b Let the read method respect readOptions and pass them to the format's read method. r=bartvde (closes #2957)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10947 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-04 13:44:26 +00:00
ahocevar
da8766d9d6 give ModifyFeature control a vertexRenderIntent property. r=tschaub (closes #2955)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10938 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-01 19:40:17 +00:00
ahocevar
b3f7d25c37 added APIdoc comment for the beforefeatureselected event
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10937 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-01 15:26:18 +00:00
ahocevar
542f8c5a84 fixed API docs. p=patzi, r=me (closes #2948)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10919 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-25 16:46:57 +00:00
Éric Lemoine
0f6c6545f6 do not rely on Function.prototype.startsWith, use OpenLayers.String.startsWith, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10918 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-24 20:03:00 +00:00
ahocevar
e970151067 new "immediate" option to enable live measuring while moving the mouse. p=patzi,me r=me (closes #2935)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10917 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-24 10:44:01 +00:00
ahocevar
30eabe26ad set IS_GECKO to true only for real gecko browsers, not for webkit ones. r=bartvde (closes #2942)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10909 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-23 09:19:25 +00:00
ahocevar
e851d453de reverting r10700 (closes #2870)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10907 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-20 17:43:06 +00:00
ahocevar
57bbf90cab reverting r10905, which included more changes than it should have
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10906 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-20 17:38:23 +00:00
ahocevar
b696581405 reverting r10700 (closes #2870)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10905 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-20 17:36:15 +00:00
Éric Lemoine
3e9253a5cb make Request.html pass again, it passes in Chrome7, IE7 and FF3, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10904 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-18 13:39:08 +00:00
Éric Lemoine
5fe1b76e19 Layer.XYZ: support a subset of server resolutions, p=bbinet, r=me (closes #2909)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10903 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-17 12:51:22 +00:00
bartvde
9a3ca5fa7e several improvement to the SOSGetObservation Format, p=sonxurxo, r=me (closes #2842)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10902 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-17 10:06:07 +00:00
bartvde
7608e867e9 remove deprecated Layer.WMS.Post from SLDSelect control, r=ahocevar (closes #2930)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10898 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-16 15:15:06 +00:00
Frédéric Junod
f5735dabae fix comment, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10897 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-15 09:48:10 +00:00
pgiraud
a56fe160d2 The built library file is now at the root level in the release archives (Closes #2923)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10895 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-12 14:22:10 +00:00
Tim Schaub
8e9087344d Updated single tile example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10883 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-10 18:23:58 +00:00
bartvde
851681cca1 changing an existing testcase to show that Format.WFST will write out srsName correctly on the envelope tag for a BBOX filter, non-functional change (closes #2921)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10880 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-09 13:08:56 +00:00
bartvde
66960d392f Filter strategy constructor should not need filter, r=tschaub,fredj (closes #2841)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10879 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-09 12:57:06 +00:00
ahocevar
c8c9b51e73 Fixed OverviewMap and PanZoomBar controls. The former was broken because the extent rectangle div now has to be added to the viewPortDiv instead of the div, and the latter because it uses pagePosition where it doesn't need to, with an incorrect argument. r=fredj (closes #2247)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10878 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-08 12:26:40 +00:00
Tim Schaub
003312856c Update KML layer example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10875 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-05 21:56:24 +00:00
Éric Lemoine
6763ec26f8 fix minor typo in a comment, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10874 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-05 14:14:28 +00:00
Frédéric Junod
34c52fb5a8 handleBrowserEvent: don't compute mouse position if it's not needed. r=erilem (closes #2880)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10873 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-05 14:07:40 +00:00
Éric Lemoine
5924c75c9b in Popup.html mock BROWSER_NAME instead of Util.getBrowserName, non-functional change (closes #2919)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10872 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-05 14:05:41 +00:00
ahocevar
a59266325b Make it so getMousePosition does not report incorrect position when borders are used in containing elements, by replacing the pagePosition method with a new one and attaching map events to the internal viewport div instead of the user provided map div. r=erilem,tschaub (closes #2247)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10871 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-05 12:44:38 +00:00
ahocevar
e40bb1f10d Support EPSG:3857, EPSG:102113 and EPSG:102100 as additional web mercator aliases. p=tschaub, r=me (closes #2915)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10870 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-05 07:49:12 +00:00
ahocevar
b9517a4cb5 Handle projections with different aliases: smarter Projection.equals and Layer.WMS.getFullRequestString methods. r=tschaub (closes #2914)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10869 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-05 07:33:38 +00:00
Tim Schaub
aa9112c494 Avoiding unnecessary repeated checks of navigator.userAgent. The constants added here should not be used outside the library. In the future, they should be removed from the library. r=ahocevar (closes #2911)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10868 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-03 00:10:00 +00:00
Tim Schaub
89c215bba4 Fixing up the WMS Post tests so they don't override getBrowserName (closes #2912).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10867 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-02 19:35:02 +00:00
Frédéric Junod
532f64f105 Remove the activate, deactivate and setMap functions from the
WMTSGetFeatureInfo control. Not needed because they do the same as the
parent class. r=erilem (closes #2805)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10864 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-28 06:50:31 +00:00
Frédéric Junod
7fd84b613d avoid double redraw when panning/zooming. p=tsauerwein,r=erilem (closes #2801)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10863 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-28 06:44:35 +00:00
Éric Lemoine
8024e58177 do not assume that the browser won't add new script tags to the DOM before it's done with the evaluation of OpenLayers.js, r=fredj,ahocevar (closes #2873)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10862 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-27 10:26:05 +00:00
Frédéric Junod
3c57b6b36c Add missing semicolon and remove 'date' local variable declaration
(already declared at the beginning of the function). Tests still pass
with FF. Non-functional change.



git-svn-id: http://svn.openlayers.org/trunk/openlayers@10861 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-27 10:12:01 +00:00
Éric Lemoine
da9bf7991d remove duplicated code in OpenLayers.html tests, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10860 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-26 14:09:26 +00:00
Frédéric Junod
a5e06e66e2 add '-khtml-user-select: none;' to prevent the selection of the element .r=erilem (closes #2898)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10859 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-26 06:48:35 +00:00
ahocevar
e087e31621 Remove overhead from OpenLayers.Class, using erilem's fancy OpenLayers.inherit function. r=erilem (closes #2899)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10858 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-22 20:34:21 +00:00
ahocevar
1b44b82908 Make sure that the background node is removed when redrawing with a different symbolizer. Thanks ahtih for this excellent debut patch. p=ahtih, r=me (closes #2891)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10851 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-20 14:01:36 +00:00
crschmidt
2bb081255e Mention that layer.display is not designed for external use, and redirect
users to setVisibility. No functional change.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10848 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-18 19:12:13 +00:00
bartvde
e606386b94 Path handler: create APIFunction from dblclick internals (called finishGeometry) so people can programmatically stop the path handler, r=erilem (closes #2889)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10847 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-18 09:46:46 +00:00
Éric Lemoine
107cf7948c remove property Layer.Vector.isVector, it serves no purpose, r=bartvde (closes #2888)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10846 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-18 08:09:56 +00:00
ahocevar
6c56531378 change server for the example, because wfs on demo.opengeo.org appears to be broken.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10843 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-16 21:58:49 +00:00
bartvde
44bba4bc6b dos2unix, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10838 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-15 14:36:48 +00:00
ahocevar
12d3c86eb4 Avoid VML rendering issues with zero area inner rings. We don't actually do an expensive area calculation, but just make sure that we have at least three distinct points. This version is slightly different from Tim's previous patch: it compares the VML path components rathter than the geometry components, which is less expensive and more reliable (because the VML path uses integers). p=tschaub,me r=me (closes #2876)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10837 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-15 13:47:35 +00:00
Frédéric Junod
2176013e24 Use an OSM layer instead of TMS with a custom getURL. Non functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10836 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-15 11:43:53 +00:00
ahocevar
1ce6ce1827 fixed APIdocs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10835 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-14 18:52:19 +00:00
ahocevar
ea3999d755 partially reverted r10732 (because we don't deactivate controls on destrly) and reverted r10810 (because it is not needed any more). r=elemoine (closes #2864)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10834 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-14 10:57:31 +00:00
ahocevar
758a252bd8 reverted r10832 - inclusion of Console.js should be handled elsewhere. Thanks elemoine for mentioning this.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10833 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-14 08:26:12 +00:00
ahocevar
aa49e90a2f added missing @requires. Thanks jorix for spotting this (see #2873)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10832 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-14 08:18:56 +00:00
ahocevar
102f7da67e Also handle the case where the regex does not match in OpenLayers.js::_getScriptLocation, and use a shorter variable name for the match. In addition to the reviewed patch, also added some comments about simplification in 3.0, and to make jorix happy. Finally, moved VERSION_NUMBER to the top to make it easy to see it in a minified build. r=elemoine (closes #2873)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10831 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-14 08:08:54 +00:00
Tim Schaub
1397f816b5 Adding interior ring digitizing for polygons. Thanks jachym for the initial work. r=ahocevar (closes #1894)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10828 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-13 22:12:52 +00:00
Tim Schaub
ba21865e28 Update jugl.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10824 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-13 19:01:00 +00:00
Frédéric Junod
113f87b317 return an empty string if the script don't ends with 'OpenLayers.js', add OpenLayers.VERSION_NUMBER. r=elemoine (closes #2873)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10823 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-13 13:59:31 +00:00
ahocevar
485ebaa316 Made _getScriptLocation smarter, and added it to SingleFile.js also. This means that single file builds no longer need to contain OpenLayers.js. r=eleomine (closes #2873)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10822 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-13 13:02:08 +00:00
Éric Lemoine
8dc19c84c7 Layer/TileCache.js missing @requires to Tile/Image.js, reported by fvanderbiest, no functional change (closes #2861)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10818 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-11 18:40:55 +00:00
Tim Schaub
0bcf869632 Excluding Lang dir in library.cfg (Lang/en.js is pulled in by OpenLayers.js).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10817 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-11 15:57:40 +00:00
Tim Schaub
8047afd909 Adding support for excluding directories when an includes list is not explicitly provided. For our full.cfg example profile, we can exclude the OpenLayers/Lang and Firebug directories instead of having to explicitly list language files to exclude (see #2871).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10816 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-11 15:51:29 +00:00
crschmidt
5ec2f0371d Testing commit emails.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10815 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-09 22:15:20 +00:00
ahocevar
e22a37476d remove unwanted streetview control from the google layer. r=pgiraud (closes #2868)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10813 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-08 16:23:22 +00:00
Éric Lemoine
ee9c3e76af add an Extend Cluster Strategy example, provided by Marc Jansen, no functional change to the library, r=me (closes #2865)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10811 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-07 08:29:06 +00:00
Éric Lemoine
26d20c1fb1 cannot destroy a map with panels, r=fredj (closes #2864)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10810 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-06 09:15:00 +00:00
Éric Lemoine
233ffe6a10 Use div.childNodes instead of div.children, as div.children isn't supported by FireFox 3.0, p=fvanderbiest, r=me (closes #2855)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-30 11:26:29 +00:00
ahocevar
2049b2a8b2 Use new MultiMap API key for the mm example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10800 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-30 09:30:12 +00:00
Tim Schaub
1d1911e28d Fire measurepartial synchronously if in freehand mode. Cancel delayed messages when measure completes, when control is deactivated, or when measure is canceled. p=jorix,me r=me (closes #2820)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10799 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-28 21:57:00 +00:00
Éric Lemoine
059b83a52f we get a js error in the Fixed strategy when the layer is removed from the map right after strategy.load is called, p=fvanderbiest, r=me (closes #2851)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10791 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-27 10:13:00 +00:00
bartvde
0dc5793834 undo fix for #2850
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10790 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-24 08:44:12 +00:00
bartvde
fe16f7b409 Control should set this.div to null in destroy, r=fredj (closes #2850)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10789 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-24 06:39:08 +00:00
pgiraud
ff6a4d44e7 Fixing identation, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10775 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-21 13:20:11 +00:00
ahocevar
f4a99d4052 Fixed viewRequestID regression and mixin issue that caused the mixin to always be applied unless maxGetUrlLength was explicitly set. Includes a regression test for the viewRequestID bit. r=tschaub (closes #2847)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10773 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-17 23:20:55 +00:00
Tim Schaub
b8feb3c22e Making it so OpenLayers.Util.getParameters doesn't fail with improperly encoded query string parameter names or values. We expect parameter names and values to be encoded according to RFC 3986 (http://labs.apache.org/webarch/uri/rfc/rfc3986.html). However, there are cases where browsers will not use utf-8 character encoding in generating a URL. In these cases, the unescape function provides a fallback that tries to use the ISO Latin character set. This may not always be a good second assumption, but it is better than failing to load the library when the first assumption fails. r=ahocevar (closes #2821)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10771 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-17 16:48:11 +00:00
Tim Schaub
bb71632848 Removing null default values from symbolizers. Later, we could consider static setDefaults methods on the constructors. r=ahocevar (closes #2840)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10770 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-17 16:32:07 +00:00
ahocevar
38c3a4d4c5 use Util.getParameters correctly. r=tschaub (closes #2846)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10769 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-17 16:20:54 +00:00
ahocevar
e22389086c removing unused method. Non-functional change, see #2824
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10768 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-17 09:38:46 +00:00
ahocevar
ce90aebfd0 Made Tile.Image.IFrame an addin which will be used only if a layer is configured with the maxGetUrlLength option. This deprecates Layer.WMS.Post. r=tschaub (closes #2824)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10755 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-16 21:54:22 +00:00
Tim Schaub
1284b71bbc Updating basic example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10754 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-16 20:34:49 +00:00
ahocevar
c70a97fb77 Removing redundant redraw. This patch is an excellent example of how things should be done, well done jorix. p=jorix, r=me (closes #2837)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10734 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-14 07:30:28 +00:00
ahocevar
5417057974 Removing redundant line of code that causes problems when placing the div outside the map. Thanks jorix for catching this. p=jorix, r=me (closes #2836)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10733 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-13 21:15:13 +00:00
ahocevar
a1f20ee345 Avoid panel being displayed after deactivate. p=jorix, r=me (closes #2835)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10732 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-13 13:26:07 +00:00
ahocevar
35092e9226 Added keywords and tags to examples. People who want to help clean up our examples collection should look for the cleanup tag. Patch created by marcjansen during the FOSS4G 2009 and 2010 code sprints. Thanks! p=marcjansen, r=me (closes #2830)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10730 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-13 12:26:18 +00:00
crschmidt
4be7614570 Add support for examples list to parse and use tags. Patch from marcjansen
at the code sprint at FOSS4G2010. Woohoo. r=me, (Closes #2829)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10728 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-13 11:27:12 +00:00
ahocevar
581525af98 There is no reason to not create OpenLayers.Filter instances. Non-functional change (see #2818)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10727 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-10 15:10:05 +00:00
crschmidt
a40edf44f7 Testing commit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10726 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-10 14:27:53 +00:00
Tim Schaub
3aeab46132 Putting the script tag at the end of the body (for demonstration purposes).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10725 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-10 13:14:06 +00:00
ahocevar
d879ca8d00 add MultiMap tests without document.write, because this does not work in IE. We also have to do a try-catch in the first test to avoid tests from failing in WebKit browsers when the api key is incorrect. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10724 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-10 12:49:10 +00:00
bartvde
92429bb7c2 add failure handler to SOS example, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10720 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-04 08:27:21 +00:00
bartvde
47173e6b62 protect SOS example against misbehaving SOS
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10719 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-04 08:22:58 +00:00
crschmidt
3471306a2e (Minor spacing, testing commit.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10718 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-03 16:43:33 +00:00
crschmidt
26eccbd049 Add a release tool to SVN.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10717 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-02 21:53:34 +00:00
Tim Schaub
95512dfa5a The cluster strategy originally destroyed all features on the layer because it created them. When the threshold property was introduced, the strategy should have been removing instead of destroying features that it didn't create. This wasn't a problem until r10597 when the destroyMethod method was made to actually work. With this change, the cluster strategy removes instead of destroys features. r=crschmidt (closes #2815).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10714 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-02 18:29:06 +00:00
bartvde
f76f8ded46 fix up SOS client example, non-functional change, the underlying SOS service had changed something in the accepted resultModel values
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10713 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-02 09:35:09 +00:00
crschmidt
cfa3353d42 Change the remaining examples that reference MetaCarta Labs server to
point to the newly set up TileCache service on the OSGeo projects
server.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10709 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-01 19:12:41 +00:00
crschmidt
fb35f555be Change all references to the labs.metacarta.com WMS server to the
OSGeo-hosted vmap0.tiles.osgeo.org server. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10708 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-01 11:36:05 +00:00
crschmidt
e3d36e80e9 Minor changes in languages: "es" and "ca". (Pullup #2751)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10707 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-01 03:45:25 +00:00
crschmidt
f0d474e50b Change license text to point to "OpenLayers contributors", referencing
authors.txt file. In reality, MetaCarta does not own copyright to these files,
they merely have a right to distribute them under the license terms agreed to
by the contributors. At this point, there is no longer any reference to
MetaCarta as a copyright holder in the OpenLayers project, only to its
individual contributors via the authors.txt file.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-01 03:06:31 +00:00
bartvde
dde71c9b3b fix up tests in Control SLDSelect (closes #2814)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10705 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-29 11:06:45 +00:00
bartvde
7f50e32905 fix up tests in Layer.Image as well see #2360
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10704 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-29 08:45:51 +00:00
bartvde
fd083d64d2 no way to pass read options from protocol to format, r=ahocevar,elemoine (closes #2656)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10703 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-29 08:41:13 +00:00
crschmidt
54fd1f561c Fix for Anchored popup does not respect anchor size when relative position is
'tl', (Closes #2651)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10700 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-26 14:35:00 +00:00
crschmidt
acae8a8013 Panel: Adding controls, unnecessarily activations occur followed by
deactivations (closes #2769)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10699 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-26 14:34:30 +00:00
Frédéric Junod
e32372e4b2 replace marker url (closes #2273)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10698 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-25 12:13:57 +00:00
Frédéric Junod
8b0d660b00 add missing semicolon
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10697 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-25 06:27:44 +00:00
Frédéric Junod
a167860818 add missing semicolon
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10696 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-25 06:25:11 +00:00
ahocevar
257cc5576b Give Layer.Vector a getFeatureByFid and a getFeatureBy method. Thanks vog for this very clean patch and the verbose unit tests. r=me (closes #2722)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10691 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-24 11:13:51 +00:00
ahocevar
fce15acc01 better regex for host check (see #1691)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10690 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-24 09:25:46 +00:00
ahocevar
b7f0f27dcd re-added MultiMap test with new API url and API key, but only if running from (www.)openlayers.org. The multimap-mercator.html example was fixed with r10552 already (closes #1691)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10689 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-24 09:19:19 +00:00
Frédéric Junod
cdb4b78136 fix WKT MULIPOINT in tests (see #2670)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10688 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-24 07:12:51 +00:00
Frédéric Junod
5f59b8d72d add missing semicolon
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10687 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-23 14:39:06 +00:00
Frédéric Junod
7295ffc9d4 Element.{show|hide}: check element before setting display. r=elemoine (closes #2652)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10682 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-23 12:43:36 +00:00
Éric Lemoine
6e28a7cafd Layer: add getter method for maxExtent, p=regli_dominik, r=me
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10681 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-23 12:37:39 +00:00
Éric Lemoine
6f73f7059f make Layer.addOptions call initResolutions if necessary, r=bartvde (closes #2360)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10680 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-23 12:28:57 +00:00
ahocevar
ce0ba0b570 New saveState option to restore the active state of controls in a panel after re-activating the panel. r=crschmidt,jorix (closes #2753)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10679 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-23 12:09:42 +00:00
Frédéric Junod
a6319b2974 LonLat.add: cast arguments to float. r=crschmidt (closes #2686)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10678 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-23 11:50:56 +00:00
Éric Lemoine
19af3bb8e7 Fix a localization problem with the XML format's createTextNode method in IE, p=fvanderbiest,me r=fredj (closes #2782)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10676 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-23 08:51:46 +00:00
Frédéric Junod
7832d8dda1 Add a smooth transition for singleTile layer panning only. r=tschaub (closes #2593)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10675 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-23 07:04:39 +00:00
Frédéric Junod
cb3fc7842b Add a new option to Control.OverviewMap to start maximized. r=bartvde (closes #2746)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10674 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-23 06:59:49 +00:00
Frédéric Junod
29dece02a5 Use the graphicOpacity to set canvas.globalAlpha. Move the image source assignment after the onload. r=crschmidt (closes #2608)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10673 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-23 06:52:17 +00:00
bartvde
6b9ee6bb5e WMSGetFeatureInfo: add an event when no queryable layers are found, r=crschmidt (closes #2744)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10670 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-22 18:44:44 +00:00
crschmidt
ed2e943e52 Update MousePositoin control to support activate/deactivate. Patch by jorix,
tests pass, and controls.html example still works the same as before.
(Closes #2520)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10669 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-21 22:45:32 +00:00
crschmidt
c5f233ab8c Extend the maximum size of the FramedCloud popup to 1200px wide, instead of
600. Updated image and patch provided by adrian_gh.popa@romtelecom.ro, 
tested by me. r=me, (Closes #2742)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10668 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-21 17:38:27 +00:00
crschmidt
bf778b21c1 Remove unused events from OpenLayers documentation. doc change
only. (Closes #2553)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10667 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-21 16:20:51 +00:00
crschmidt
69032c0534 ArcIMS layer does not have a proper clone method. patch=bartvde,
r=me, tests pass in Safari and IE, (Closes #2490)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10666 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-21 16:17:12 +00:00
crschmidt
3520c32140 In order to resolve a memory leak in IE, observable via drip, remove elemnts
from panels before calling innerHTML. This resolves the memory error. All
tests pass in FF and IE, and there are no obvious side effects I can imagine;
committing. Patch from aabt, r=me, (Closes #2745)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10665 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-21 16:10:21 +00:00
crschmidt
da14451dbd Fix from tim_abell to make build.py callable from another function,
(Closes #2468)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10664 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-21 16:06:06 +00:00
crschmidt
a785dc1b1f Commit fix for #2670 from fredj, r=me (Closes #2670)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10663 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-21 16:04:50 +00:00
ahocevar
23137091fc Make VML behave when removing previously added stroke symbolizers. r=tschaub (closes #2784)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10659 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 23:56:34 +00:00
Tim Schaub
f37c9f8aef Making it so mergeWithDefaultFilter returns undefined if the protocol defaultFilter is falsey. r=ahocevar,me (closes #2796)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10658 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 23:48:45 +00:00
ahocevar
ee7065c9fa Fixed ScaleLine when geodesic option is set to true and the map center is beyond the poles. Also added geodesic option to the Scale control. r=tschaub (closes #2600)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10657 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 23:29:33 +00:00
Tim Schaub
3f172c501d Adding a WMTSGetFeatureInfo control for querying WMTS layers. r=ahocevar (closes #2678)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10656 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 22:49:08 +00:00
Tim Schaub
25fac24436 Adding a filter strategy for limiting features that are included in a layer's collection. The strategy takes a filter and caches features that don't pass the filter. Call setFilter on the strategy to update the cache and collection on the layer. r=ahocevar (closes #2790)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10655 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 22:41:01 +00:00
Tim Schaub
28558c171c Giving the getCentroid method on geometry collections a 'weighted' argument. If true, the centroid will be calculated based on the weighted average of all component centroids. Thanks for the great patch dzwarg. r=me (closes #2469)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10652 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 20:28:48 +00:00
Tim Schaub
2c7eade60c Demonstrating that the layer.destroyFeatures() issue is already fixed (see #2649).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10651 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 20:01:08 +00:00
Tim Schaub
59953b8eb6 Adding a zoomOffset property to XYZ and TMS layers. This allows you to have a map with a maximum resolution that differs from the maximum cache resolution (if you want to show a subset of OSM for example). r=ahocevar (closes #2616)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10650 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 19:40:53 +00:00
Tim Schaub
5750b5f6e0 Properly setting the hoverRequest so it can be aborted. r=ahocevar (closes #2797)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10649 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 19:30:00 +00:00
bartvde
050eda6670 Layer.WMS should use a supported exception format for WMS 1.3 by default, p=ahocevar, r=me (closes #2478)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10648 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 18:48:55 +00:00
ahocevar
7eaa37856c don't treat strings as array. p=madair, r=me (closes #2563)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10646 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 17:05:23 +00:00
ahocevar
814810f6ed Give ReglarPolygon handler a layerOptions config option. p=zanchin, r=me (closes #2755)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10645 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 16:58:39 +00:00
ahocevar
9450124359 Made transformcomplete listener do as documented - return the transformed feature. p=patzi, r=me (closes #2714)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10644 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 16:56:46 +00:00
Tim Schaub
9d4e91e717 Creating a Type variable that refers to arguments[i]. Including parentheses when calling the constructor. r=elemoine (closes #2791)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10642 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-20 15:50:46 +00:00
ahocevar
0d6658f52d fixed positioning of rotated graphics after zoom change. r=tschaub (closes #2733)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10639 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-19 15:51:19 +00:00
ahocevar
7993fc177b Fixed onselect handling for the first down-move-up-out cycle. r=bartvde (closes #2735)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10637 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-19 14:52:45 +00:00
Tim Schaub
94c29f1d4d Updating example and tests to demonstrate the trackAttributes property for per point attribute parsing (see #2771).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10633 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-18 18:53:43 +00:00
ahocevar
42fedc4d69 Make it safer to extend the Google Layer by not invoking Map.getLayersByClass. Also removed an unused variable. tschaub made one more change to check for other Google layers only if we have a cache already - otherwise the whole logic would not apply anyway. Thanks iacovlev_pavel for bringing this up on IRC. p+r=tschaub,me (closes #2793)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10632 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-18 16:43:45 +00:00
Tim Schaub
415fcbf9f9 Adding gx:Track parsing to the KML format. If extractTracks is true, the parser will extract points from gx:Track elements as features, acquiring attributes from the Placemark plus when, trackId, altitude, heading, tilt, and roll (assuming angles are present). r=ahocevar (closes #2771)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10631 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-18 15:38:09 +00:00
Tim Schaub
fc9e67318e Adding OpenLayers.Date utility functions to parse and serialize dates. The date string format parsed complies with ECMA-262 (v5) section 15.9.1.15, derived from the profile of ISO 8601 for date and time on the Internet (http://tools.ietf.org/html/rfc3339). Where available (and functional) the native date.toISOString and Date.parse methods will be used. r=ahocevar (closes #2778)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10630 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-18 15:11:27 +00:00
ahocevar
9ae54040db Only call dashStyle when strokeDashstyle is set. r=tschaub (closes #2768)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10621 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-15 19:53:14 +00:00
Éric Lemoine
5a8775cd16 the old-but-still-used GML format creates features with geometries of type OpenLayers.Bounds, p=fvanderbiest, r=me (closes #2724)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-11 14:24:51 +00:00
bartvde
602cf46c10 Marking setLayer on SelectFeature Control as API, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10613 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-11 09:37:15 +00:00
ahocevar
68d82edc01 Added note about requirement of serializability of feature attributes. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10609 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-09 14:05:57 +00:00
Tim Schaub
c68e234b71 Slippery proxy! (That 501 gets me all the time.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10605 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-07 00:06:11 +00:00
Tim Schaub
a52cb98622 Example demonstrating the use of a filter with the WFS protocol.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10600 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-05 21:20:56 +00:00
Tim Schaub
33410b0e76 Adding a removeAllFeatures method to the vector layer. This bypasses a few unnecessary steps when removing all features but retains the same behavior as the removeFeatures method otherwise. Optimizing the clear method on elements renderers a bit by avoiding length calculation of the live collection and looking up the first child once per node removal. r=ahocevar (closes #2774)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10597 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-05 15:46:23 +00:00
Tim Schaub
e0c3db1227 Making consistent the evaluate method of filters. The evaluate method accepts vector features, making possible logical filters that combine spatial and comparison filters. r=ahocevar (closes #2773)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10596 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-05 15:38:55 +00:00
Tim Schaub
c15a1a0779 Making it so the clear method on the canvas renderer permanently clears features (as with the other renderers). r=crschmidt (closes #2775)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10595 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-05 15:34:48 +00:00
ahocevar
d965d4a1a0 fixed APIdocs. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10594 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-05 14:30:46 +00:00
crschmidt
c77688a0be Change the OSM example to show how to setCenter (using reprojection), in
part to demonstrate that OSM is in spherical mercator coords.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10583 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-04 18:41:00 +00:00
ahocevar
f0736370f3 Use a loop variable to avoid array lookups and use one if clause instead of two. Non-functional change (see #2764)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10577 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-04 08:10:40 +00:00
ahocevar
ea1290f8d8 Do not change the active state of button controls on a panel when a tool control is activated. p=jorix, r=me (closes #2764)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-04 07:56:25 +00:00
Tim Schaub
9d3c4ecb1c Firing the beforefeaturesremoved event from the vector layer. r=ahocevar (closes #2770)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10575 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-03 23:37:31 +00:00
Tim Schaub
31afaf1fca Fixes for the WMTS layer to properly update matrix related properties. Determining the best matrix in the set based on current map resolution. Properly parsing TopLeftCorner coordinates and providing a way to specify identifiers for backwards CRS. r=ahocevar (closes #2677)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10570 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-03 15:21:06 +00:00
ahocevar
f89fb1f226 make yx property an object rather than an array. r=elemoine,bartvde (closes #2767)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10569 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-03 09:15:26 +00:00
Tim Schaub
0892e61bcb Documenting that OSM extends XYZ and XYZ extends Grid. The buffer property comes from the Grid prototype. (closes #2766)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10561 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-02 19:53:00 +00:00
Tim Schaub
6c0952934f Adding point, line, polygon, text, and raster symbolizer constructors. This paves the way for rendering multiple symbolizers per rule. The SLD parser now successfully round-trips documents with multiple symbolizers and multiple FeatureTypeStyle elements (through the symbolizer zIndex property). The Style2 (yes, ack) constructor is used to represent a collection of rules with multiple symbolizers. Style2 objects are currently only used by the SLD parser if the multipleSymbolizer property is set to true. Future enhancements to the renderers can be made to account for multiple symbolizers. r=ahocevar (closes #2760).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10560 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-02 19:49:52 +00:00
Tim Schaub
9fd7463680 Making it so layers that use the SphericalMercator mixin call getLonLatFromViewPortPx and getViewPortPxFromLonLat on the Layer prototype instead of relying on the underlying map object for pixel to map location translations. This allows the Google (and other SM) layers to be used as a base layer but not be visible (with allOverlays set true on the map). r=ahocevar (closes #2759)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10554 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-29 17:23:10 +00:00
ahocevar
f2247ae079 New api key and overlay for multimap example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10552 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-29 12:44:31 +00:00
ahocevar
e5f0cfe906 Respect setVisibity(false) before layer is fully loaded. r=tschaub (closes #2750)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10551 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-29 07:25:21 +00:00
ahocevar
a5f2ddcfa1 Google layer improvements for maps with allOverlays set to true. r=tschaub (closes #2758)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10550 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-29 07:23:02 +00:00
crschmidt
ca27481c66 The sandbox is now updated here as well, so check the most recent
rev for the whole tree instead of just that particular checkout.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10520 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-27 12:55:25 +00:00
ahocevar
7398216346 Implemented activate, deactivate and destroy methods; use autoActivate option with a default of true. p=jorix,r=me (closes #2567)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10510 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-23 14:38:21 +00:00
ahocevar
b2f810361d Improved clone method for Layer.XYZ; gave Layer.OSM its own clone method. Thanks aratcliffe for bringing this up. r=tschaub (closes #2738)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10507 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-21 07:55:37 +00:00
crschmidt
6adffe5be2 Add updating sandbox to script
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10502 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-20 15:27:13 +00:00
pgiraud
2a30747bd9 add support for the ol:tileSize layer property in WMC, p=fvanderbiest,r=me (Closes #2740)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10491 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-15 15:01:36 +00:00
ahocevar
67b0c7180f Added a note about incompatibility with UI controls provided by the GMaps API. Thanks pwr for pointing this out (see #2736)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10485 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-13 08:28:16 +00:00
Tim Schaub
ee00417729 Making the Google v3 layer work with deferred map rendering. r=ahocevar (closes #2731)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10484 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-12 15:34:41 +00:00
Frédéric Junod
d880d2d2b7 add missing semicolon, remove global and unused variables, remove unreachable code
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10482 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-12 06:45:19 +00:00
Tim Schaub
afa7b9c2bb Making it so the Google layer is not visible if used as an overlay with visibility false. Container is offset to allow proper calculation of size. r=ahocevar (closes #2730)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10480 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-09 21:52:04 +00:00
Tim Schaub
3d0c264198 Moving the OpenLayers.Layer.Google.v2 definition into Google.js so we don't break any custom builds that include just the Google.js script. r=ahocevar (closes #2729)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10479 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-09 21:10:00 +00:00
Tim Schaub
a5ca639c5b As with r10477, this change simplifies the setGMapVisibility tests to make sure that repositionMapElements is getting called. These tests were periodically failing depending upon the order in which they run. This likely indicates we've got to do some more cleaning up in map.destroy or elsewhere (see #2493).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10478 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-09 20:21:30 +00:00
Tim Schaub
1d8773eab6 In practice, this allOverlays example displays the terms of service element. In this test, it appears that the google script is hiding it again after we make it visible - perhaps because it is not actually displayed. And this is not always consistent. I can get this test to pass by making the timeout shorter. In any case, a simpler test is to confirm that repositionMapElements is getting called (see #2493).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10477 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-09 18:05:42 +00:00
Tim Schaub
309d198e04 Removing stuff that was added twice in r10474 (see #2493).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10476 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-09 15:50:45 +00:00
ahocevar
64842fd711 add support for GMaps v3. Thanks tschaub for the big improvements to my original patch. p=tschaub,me, r=tschaub (closes #2493)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10474 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-09 12:01:11 +00:00
Frédéric Junod
4d3a1eebf7 coding style: add braces around test, use {} instead of new Array(), remove unused variable
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10473 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-09 11:53:36 +00:00
Frédéric Junod
74a6f7e895 replace tabs with spaces
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10472 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-09 11:45:31 +00:00
Tim Schaub
e32d63d7b2 Correctly selecting url when an array is provided. Thanks cmoullet for the patch. r=me (closes #2727)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10471 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-08 16:46:06 +00:00
Frédéric Junod
b81b05a9b5 remove tabs, remove unused variable
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10469 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-08 10:29:41 +00:00
Frédéric Junod
1c4afaaded add missing semicolon.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10468 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-08 10:15:37 +00:00
Frédéric Junod
8c2caf91d1 remove wrong svn:mime-type. Non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10467 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-08 09:59:29 +00:00
bartvde
c4eaee5b5c fix comment error in containsBounds non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10465 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-08 08:48:23 +00:00
bartvde
b428e58090 typo in previous commit
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10464 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-08 08:24:41 +00:00
bartvde
28a7776d04 fix wrong comment in Cluster Strategy non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10463 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-08 08:22:19 +00:00
Frédéric Junod
42b003669c add missing semicolon.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10457 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-06 09:37:38 +00:00
Frédéric Junod
509042078e update documentation link. Non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10456 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-06 08:16:09 +00:00
Frédéric Junod
d47944e4b7 remove unused variable and unreachable code, replace tab with space. Non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10452 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-04 19:28:20 +00:00
Frédéric Junod
de462bbe33 remove global and unused variable. Non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10451 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-03 21:14:00 +00:00
Tim Schaub
22aa4281fa Making it more convenient to create WMTS layers from capabilities documents. The format now has a createLayer method that takes a capabilities response object and a layer configuration object. This returns a properly configured WMTS layer based on the layer and matrix definition found in the capabilities. Unless otherwise specified, the layer name will be derived from the advertised title, and the style identifier will be the advertised default. r=ahocevar (closes #2676)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10449 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-02 16:11:37 +00:00
ahocevar
ef9afd22cb change the SLDSelect control's default Polygon symbolizer to produce the same result as before r10430. r=elemoine (closes #2712)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10446 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-01 14:30:57 +00:00
Frédéric Junod
ea183210fe replace the deprecated OpenLayers.Util.getArgs with OpenLayers.Util.getParameters
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10445 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-01 13:22:38 +00:00
Frédéric Junod
72e2280c87 don't use the deprecated bind function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10442 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-01 09:46:32 +00:00
Frédéric Junod
955ee1b1a9 fix token syntax in lang files. Non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10441 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-01 08:18:15 +00:00
Frédéric Junod
a9a9b6387e remove tabs and trailing whitespace. Non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10439 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-07-01 07:33:50 +00:00
Tim Schaub
1f601390dd Documentation tweak for the vector layer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10438 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-30 19:48:29 +00:00
Frédéric Junod
40539ff6d3 remove setMap function from WMSGetFeatureInfo. r=ahocevar (closes #2717)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10437 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-30 13:56:50 +00:00
Frédéric Junod
c8cad59575 remove unnecessary semicolon and unused variable. Non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10436 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-30 11:58:49 +00:00
bartvde
20a4025af0 Renderer: give featureId to eraseGeometry function, r=fredj (closes #2693)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10435 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-30 10:49:06 +00:00
Frédéric Junod
e643531a0a fix OverviewMap regression. r=elemoine (closes #2137)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10434 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-30 09:06:27 +00:00
bartvde
0bc3e3c8b3 Layer.Vector's renderers array should be able to deal with function as well as strings so that people can use their own custom renderer in their own namespace, r=ahocevar,fredj (closes #2669)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10432 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-29 11:53:59 +00:00
Frédéric Junod
08f506176b use array join instead of string concat. r=ahocevar (closes #2713)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10431 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-29 11:05:00 +00:00
ahocevar
2939bad8d0 fixed use of the "fill" and "stroke" symbolizer properties in Renderer and Format.SLD to match the documentation (i.e. false means to not apply a fill or stroke)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10430 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-29 08:21:26 +00:00
Frédéric Junod
0db8f59ae3 add missing semicolon. Non functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10429 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-28 08:41:43 +00:00
Frédéric Junod
d895af91a5 fix SVG tests in webkit
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10428 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-28 08:33:15 +00:00
Frédéric Junod
98941c9952 removed svn:executable property. Non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10427 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-28 07:23:16 +00:00
Éric Lemoine
0b9e0f50ab revert [10347] which causes double requests in certain conditions, discussed in #2065, r=ahocevar
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10426 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-28 07:16:37 +00:00
Éric Lemoine
60e869e295 Add Vincenty direct formula, and make the Vincenty functions part of the API, p=aabt, r=me (closes #2692)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10425 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-24 09:05:36 +00:00
Frédéric Junod
ae472b69a2 syntax error. r=me
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10424 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-22 14:30:45 +00:00
Frédéric Junod
a8af8bceb5 Handler.RegularPolygon.clear: check if this.layer is set. r=bartvde (closes #2701)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10423 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-22 14:10:43 +00:00
Frédéric Junod
5f6a2209ba Handler.Box.destroy: destroy the dragHandler. r=bartvde (closes #2697)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10422 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-22 14:07:32 +00:00
Éric Lemoine
fa1b7d2481 more tests for Format.Filter.v1, all pass in FF3, IE7 and Chromium6, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10421 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-22 07:08:20 +00:00
Éric Lemoine
9a2363d06b Format.Filter.v1 may fail to read LowerBoundary and upperBoundary, r=bartvde
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10420 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-21 08:08:13 +00:00
Tim Schaub
e6b0ec0ee3 Adding an example to the WMTS constructor docs (as with the WMS docs).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10415 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-18 15:15:08 +00:00
Frédéric Junod
4bb7ccaf0a remove redundant OpenLayers.Util.extend. r=elemoine (closes #2137)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10408 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-17 13:04:16 +00:00
Éric Lemoine
c4fbe1c0b3 measure control - wrong measure when moving fast, r=fredj (closes #2691)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10407 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-17 12:55:44 +00:00
Frédéric Junod
cd94a7f17d don't fire measurepartial on first click. r=elemoine (closes #2096)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10406 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-17 11:59:37 +00:00
bartvde
cca1395fc6 Geometry.Collection does not call parent destructor, so bounds are not reset, r=fredj (closes #2688)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10405 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-16 14:25:15 +00:00
bartvde
eb4d5a2447 reverting r10372, leave #2619 for 3.0
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10402 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-16 05:58:08 +00:00
Frédéric Junod
98c7687033 removed svn:executable property. Non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10401 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-15 15:34:32 +00:00
Frédéric Junod
e6de46b9d3 call stop instead of duplicate the code. r=elemoine (closes #2675)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10392 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-14 06:13:35 +00:00
Tim Schaub
f42bbd1dfc Add WMTS capabilities parsing example (see #2637).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10391 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-12 18:46:33 +00:00
Tim Schaub
07ee9991be Adjust attribution position on example (no functional change).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10390 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-12 18:45:27 +00:00
Tim Schaub
fba8a99b9b Additional documentation for the WMTS layer (see #2637).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-12 05:37:43 +00:00
Tim Schaub
d1e24bdcc0 Adding a WMTS layer and capabilities parser to work with OGC WMTS service implementations. Thanks August Town for this nice contribution. p=august,me r=me (closes #2637)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10388 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-12 02:41:51 +00:00
Tim Schaub
f7113df376 Adding namespaces to versioned OWSCommon formats. Adding regExes to OWSCommon v1 prototype. r=bartvde (closes #2671)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10387 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-11 14:38:42 +00:00
Frédéric Junod
35b8350aec remove unneeded parseFloat from OpenLayers.LonLat.fromString. r=bartvde (closes #2674)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10386 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-11 12:35:19 +00:00
Frédéric Junod
7177144816 nullify panTween on destroy. r=bartvde (closes #2673)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10385 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-11 12:08:34 +00:00
Tim Schaub
71482163cf Making it possible to use a custom SRS identifier for spherical mercator layers. r=bartvde (closes #2665)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-08 21:37:33 +00:00
Éric Lemoine
d0a2edbebd correct minor typo in the API docs, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10383 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-08 19:04:16 +00:00
Frédéric Junod
448373eb75 cache the WMSCapabilities format parser. r=bartvde (closes #2666)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10382 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-08 14:57:44 +00:00
Frédéric Junod
1b5add6efe removed svn:executable property. Non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10381 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-08 10:41:42 +00:00
Frédéric Junod
2b8e293d83 set copyright header. Non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10380 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-08 10:38:34 +00:00
Frédéric Junod
fd6c16bb6c Set the olCursorWait class when selecting by box and hover. r=elemoine (closes #2664)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10379 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-08 07:56:32 +00:00
Frédéric Junod
a69a0d2164 make tests pass on FF with the 'file' protocol. r=elemoine (closes #2660)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10378 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-07 14:43:53 +00:00
Frédéric Junod
ae5d20b39f don't clone the size from map.getSize(). r=elemoine (closes #2603)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10377 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-06 07:28:59 +00:00
bartvde
744ee039bd Deprecate the theme map option, p=ahocevar, r=me (closes #2619)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10372 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-04 19:24:10 +00:00
ahocevar
9bd7f02dbb Added degrees symbol to Util.getFormattedLonLat. p=milesjordan, r=me (closes #2654)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10368 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-03 07:08:46 +00:00
Éric Lemoine
88f2922f54 Layer.Vector fires featuresadded event with shapes vetoed by beforefeatureadded, p=timbonicus, r=me (closes #2549)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10362 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-28 12:30:52 +00:00
pgiraud
8b0712bb24 added a single config option to allow several features as a result of a click (or 'zero extent' box), r=elemoine, (Closes #2643)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10361 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-28 08:54:39 +00:00
Frédéric Junod
925b6fa206 add missing semi-colon, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10357 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-25 08:34:43 +00:00
bartvde
f9391dd158 add Raster to the list of SYMBOLIZER_PREFIXES, p=ahocevar, r=me (closes #2642)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10350 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-21 07:35:26 +00:00
ahocevar
d57b603d07 Added parseFloat for quantity and opacity on read, as suggested in bartvde's review. With additional tests to show that everything works as suggested now. See #2642.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10349 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-20 21:57:13 +00:00
Éric Lemoine
5f96b1f914 do not store redundant data in the object created by WFS Capabilities format, r=tschaub (closes #2640)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10348 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-20 20:05:52 +00:00
ahocevar
e4085bbdc6 Using the IE cache fix from XMLHttpRequest.js allows us to send asynchronous requests without a setTimeout handler. r=bartvde (closes #2065)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10347 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-20 18:11:30 +00:00
ahocevar
91bceb273b apply symbolizer defaults earlier. r=tschaub (closes #2584)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10346 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-20 15:35:45 +00:00
bartvde
53b4356219 upgrade to XMLHttpRequest version 1.0.4 since we got permission from the author Sergey Ilinsky to relicense his library under the Apache license, r=elemoine,ahocevar (closes #2625)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10345 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-20 08:53:12 +00:00
ahocevar
f52cd8972a added partial support for RasterSymbolizer to Format.SLD. r=bartvde (closes #2642)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10344 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-20 08:42:55 +00:00
Éric Lemoine
ef87d15cfe fix indent, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10342 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-19 15:39:25 +00:00
bartvde
0f648dedf4 do not send request if abort has been called, r=elemoine (closes #2065)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10341 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-19 12:51:09 +00:00
Éric Lemoine
1c9ba551a7 make WFSCapabilities format retrieve feature type prefix and namespace, r=bartvde (closes #2640)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10340 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-18 14:27:27 +00:00
ahocevar
69b4a84381 replaced Renderer.Elements' minimumSymbolizer and Renderer.Canvas' symbolizer defaults with a new Renderer.defaultSymbolizer. r=elemoine (closes #2584)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10316 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-12 20:58:13 +00:00
ahocevar
c4e779b992 give Style a unique id and a clone method. r=elemoine (closes #2605)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10315 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-12 20:41:30 +00:00
bartvde
f95532ab6f There can be more than one observedProperty per offering in SOS GetCapabilities, p=sonxurxo, r=me (closes #2548)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10314 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-12 14:26:50 +00:00
Éric Lemoine
194c6adc4d Protocol.HTTP - add @requires to XMLHttpRequest.js, reported by pwr in #2633, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10310 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-12 06:59:20 +00:00
ahocevar
489d3c47b6 Fixed tests. p=jorix, r=me (closes #2506)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10309 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-11 21:56:21 +00:00
bartvde
a6cd2d51d5 remove text-transform uppercase css from getfeatureinfo-control example, since attributes are case-sensitive (closes #2630)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10303 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-11 07:35:27 +00:00
bartvde
fd32f2e9dd make Format.ArcXML tests pass in Safari, invalid XML documents are dealt with differently in Safari, r=elemoine (closes #2626)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10302 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-11 07:17:48 +00:00
Éric Lemoine
a1f90c7ac8 fix and rewrite initResolutions, see <http://trac.openlayers.org/ticket/2427#comment:18> for a detailed explanation on the changes brought by this changeset, r=ahocevar (closes #2427)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10301 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-11 07:16:32 +00:00
bartvde
449bc859c4 Create Format for OWSContext, r=ahocevar (closes #2063)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10300 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-11 06:51:21 +00:00
Frédéric Junod
e67c9411b4 add missing semicolons, use the filter variable in createSLD(). r=bartvde (closes #2570)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10296 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-07 05:51:38 +00:00
ahocevar
c19a190905 Merge rules without creating a new rules object. r=tschaub (closes #2622)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10295 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-06 20:56:35 +00:00
ahocevar
baa4e7469b fixed scope inside handler. r=bartvde (closes #2570)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10294 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-06 14:24:30 +00:00
bartvde
2d8981aed5 reducing number of sides for the circle RegularPolygon handler in the SLDSelect example so that the example works against demo.geoserver.org in Firefox as well, otherwise the urls are getting too long for Apache to handle
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10293 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-06 13:40:14 +00:00
bartvde
7c40667ad7 Create control to perform SLD selections on WMS layers, r=ahocevar (closes #2570)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10290 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-06 12:53:43 +00:00
Frédéric Junod
3b0cd09aad remove global variables. r=ahocevar (closes #2620)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10286 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-06 07:58:12 +00:00
Frédéric Junod
57d3f26efc fix loop, remove unneeded semicolon and unused variable. r=ahocevar (closes #2621)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10285 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-06 07:53:23 +00:00
ahocevar
f38d5e0790 removed global variables. r=fredj (closes #2604)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10280 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-04 14:51:10 +00:00
ahocevar
b0e726b988 now don't use getDimensions any more, but use offsetWidth and offsetHeight before like getDimension does if style.display is not none. r=elemoine,quietriver (pullup #2414)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10278 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-04 10:00:38 +00:00
ahocevar
f66607a6e8 reverted r10125, which does not fix the described issue, and store style.display instead (first patch attached to #2414). r=bartvde,elemoine (pullup #2414)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10276 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-04 09:41:25 +00:00
bartvde
c7e840876c WFS 1.1 writer for GetFeature does not support resultType attribute, r=ahocevar (closes #2449)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-03 19:20:40 +00:00
bartvde
4658d32b31 add support for WFS hit count (1.1) in WFST Format, r=ahocevar (closes #2131)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10268 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-03 18:39:42 +00:00
Éric Lemoine
a5093a27fa fix an error in the Layer.Vector docs, non-functional change, caught by pwr (closes #2613)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10267 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-03 15:39:01 +00:00
Éric Lemoine
701896e0c3 Protocol.HTTP - fix a regression where update and delete never take feature.url into account if a url is set in the protocol options, p=pwr,me r=me,bartvde (#2393)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10266 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-03 13:58:08 +00:00
crschmidt
cbfcf40e6a Update copyright year to 2010
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10262 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-30 16:07:15 +00:00
bartvde
dc4d5036e4 Have NavigationHistory control deal with reprojection, r=ahocevar (closes #1997)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10261 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-30 14:52:38 +00:00
bartvde
0bb5ab8191 Have Format.WFST support multiple typenames, r=ahocevar (closes #1839)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10260 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-30 09:25:19 +00:00
bartvde
69cb8fbb5e change APIComment for Fixed Strategy, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10259 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-28 14:40:39 +00:00
ahocevar
5a05b6c142 fixed a regression that caused incorrect positioning of rotated graphics when they are not rendered for the 1st time. r=elemoine (closes #2596)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10258 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-28 06:53:20 +00:00
bartvde
6341e8e2b9 update news.txt
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10250 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-22 15:41:30 +00:00
ahocevar
aa246a1122 Fixed typo. Non-functional change (see #2581)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10216 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-15 14:47:39 +00:00
ahocevar
4f809a9714 Avoid duplicate feature requests for clicks, and make clear that the click handler takes precedence over the box handler. r=bartvde,pgiraud (pullup #2581)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10215 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-15 14:44:50 +00:00
Schuyler Erle
ca3ecfc5b1 New i18n file update from roberthl dated 2010-04-06. Closes #2582.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10208 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-14 19:16:23 +00:00
ahocevar
35aadaf0c8 Fixed regression parsing KML with CDATA blocks. r=bartvde (pullup #2398)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10200 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-12 10:55:07 +00:00
Frédéric Junod
674a414971 Use bracket notation for 'abstract'. r=bartvde (pullup #2569)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10183 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-08 13:24:16 +00:00
Frédéric Junod
be986a0243 Remove unused variable. r=bartvde (pullup #2558)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10182 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-08 13:20:09 +00:00
Tim Schaub
295363fe58 After r10021 we lost the ability to set the opacity of a Google layer. This makes layer.setOpacity work again by setting the opactiy of the shared GMap container. r=bartvde (pullup #2562)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10174 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-07 22:35:59 +00:00
Frédéric Junod
d5daa28fed Renderer.VML: allow one character for labelAlign. p=avlee, r=bartvde,tschaub (pullup #2563)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10172 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-07 06:08:21 +00:00
Tim Schaub
69d8ac892f Updating docs to indicate that the first argument to the map constructor can be a string or a dom element. (closes #2564)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10170 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-06 23:19:02 +00:00
Tim Schaub
7b7c174cc7 Allow center to be provided to map constructor without layers. r=bartvde (closes #2561)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10169 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-04-06 19:20:57 +00:00
Éric Lemoine
da2dffce1a drawing features while the layer is not in the map may cause problem, r=pgiraud (closes #2546)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-29 12:44:16 +00:00
Tim Schaub
20cbb95feb Avoid pink in primary example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10145 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-25 17:07:21 +00:00
Tim Schaub
14ac071f20 Demonstrate the control of z-index in different render intents.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10144 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-25 17:04:26 +00:00
Tim Schaub
e7d3e64908 Adding an example of rule based style.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10143 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-24 18:27:57 +00:00
Tim Schaub
3de62b703a Adding multi property to the DrawFeature control. If true, geometries will be cast to multi-part counterparts before features are added to the target layer. r=ahocevar (closes #2542)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10142 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-23 17:49:13 +00:00
bartvde
ff8b356638 fix up Layer.Vector tests in IE which were broken as of r10039, r=elemoine (closes #2465)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10141 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-23 08:19:11 +00:00
pgiraud
180eb8485f let's remove unrequired tests, r=bartvde, (Closes #2477)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10140 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-22 16:44:16 +00:00
bartvde
48cc4b138b reverting r10112 Spelling of API methods getURL and setUrl of imagelayers is inconsistent and confusing, see ticket:2354
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10139 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-22 07:29:35 +00:00
ahocevar
f4fbc96036 fixed KML parsing for cases where a line break is only before or after a CDATA block. r=bartvde (closes #2398)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10138 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-21 21:10:33 +00:00
Tim Schaub
1f77d278ef Demonstrating that graphicXOffset works the same in IE and FF.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10137 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-21 18:00:33 +00:00
ahocevar
7632e54a4d fixed rotation center for non-square symbols in non-defs mode (Webkit). r=bartvde (closes #2499)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-20 21:50:39 +00:00
ahocevar
35168dc219 fixing rotation so previously rotated geometries will be rotated back if the rotation symbolizer attribute is not set any more. r=bartvde (closes #2500)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10135 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-20 21:33:36 +00:00
Tim Schaub
a5bb2b01b3 Adding tests for encoding & decoding URI components to avoid future regressions.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10134 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-20 03:46:49 +00:00
Tim Schaub
5038090d74 Being liberal in what we accept in query strings. A properly encoded '+' should be '%2B' in a URI component. A properly encoded ' ' (space) should be '%20'. When we encounter a '+', we can safely replace it with ' ' before properly decoding the remainder of the component. This follows the convention that '+' is used widely to represent a space in a URL. r=bartvde (closes #2527)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10133 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-20 03:06:22 +00:00
Tim Schaub
fcfb22920b Reverting r10130 to avoid double decoding (see #1704).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10132 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-20 02:48:55 +00:00
Tim Schaub
d324395de6 Test to demonstrate regression introduced in r10130 (see #1704).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10131 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-20 02:47:32 +00:00
bartvde
a1db2ca642 Malformed URI sequence in Firefox when using special characters in url, p=jaj@gecko.no, r=me (closes #1704)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10130 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 20:57:37 +00:00
Frédéric Junod
1faed26393 extend Protocol.HTTP for MapFish and FeatureServer. p=elemoine, r=bartvde,me (closes #2393)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 15:12:50 +00:00
Frédéric Junod
fe9aa59b91 remove unused mapRect variable, add missing semicolons, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10128 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 13:34:45 +00:00
crschmidt
3304c6cb0e "MousePosition control should support mouseOut event", r=bartvde,
initial patch cmoullet, (Closes #2404)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10127 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 13:34:14 +00:00
Frédéric Junod
cca74e7635 fix semicolons and remove a global var
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10126 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 13:22:56 +00:00
Frédéric Junod
27234b07ff mark Element.getDimensions as deprecated and remove the workaround in Map.getCurrentSize. p=bbinet, r=me (closes #2414)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10125 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 12:38:29 +00:00
bartvde
223547e227 fix up Format/CSWGetRecords/v2_0_2.html tests in IE6, non-functional change (closes #2537)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10124 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 12:30:23 +00:00
bartvde
6ecdf6c1aa fix up Control ScaleLine tests in IE6
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10123 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 11:52:42 +00:00
bartvde
1c51a13903 fix up tests for Google Layer if there is no valid key (closes #2535)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10122 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 11:22:13 +00:00
bartvde
c1409ee57d fix up ArcGIS93Rest Layer tests (closes #2533)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10121 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 10:45:27 +00:00
bartvde
ba91df7f1b fix up tests in Layer.html after clone method was changed, since the clone now represents the original in its current state, and not the state at creation, two tests had to be adapted, non-functional change (closes #2477)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10120 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 10:02:08 +00:00
Frédéric Junod
48ba06b294 remove unneeded layerswitcher div and add a transitionEffect
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10119 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 09:47:30 +00:00
Frédéric Junod
4ab6b7ec24 Layer.MapGuide.getURL: use map.getSize instead of map.getCurrentSize. r=bartvde (closes #2532)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10118 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 09:38:46 +00:00
Éric Lemoine
76983744da changes to WMSGetFeatureInfo so requests can be sent on click,
rightclick, and dblclick, r=bartvde (closes #2528)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10117 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 09:35:53 +00:00
Frédéric Junod
37e0c0b4f5 LinearRing.getCentroid: return null if the geometry has no components. r=pgiraud (closes #2530)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10116 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 09:05:12 +00:00
bartvde
c54dc76d15 when select feature control is destroyed and layers parameter was an array, the root container is not moved correctly, p=jorix, r=ahocevar,me (closes #2502)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10115 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 09:00:41 +00:00
Frédéric Junod
1757d4082e deactivate on clear. r=bartvde (closes #2471)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10114 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 08:46:36 +00:00
bartvde
fc4e05dd83 canvas and textAlign: middle not recognized, I made one change to original patch to not include the default value in LABEL_ALIGN since I did not see the purpose of adding that, p=fredj, r=me (closes #2439)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10113 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 08:14:48 +00:00
bartvde
3e5bd85849 Spelling of API methods getURL and setUrl of imagelayers is inconsistent and confusing, p=marcjansen, r=me (closes #2354)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10112 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 07:54:11 +00:00
Frédéric Junod
dc5fa3c612 add missing semicolon, remove global variables. r=bartvde (closes #2529)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10111 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-18 13:30:33 +00:00
ahocevar
e7b0857e31 Give the ScaleLine control a geodesic option. Setting this to true will provide an accurate scale bar in Spherical Mercator maps. r=bartvde (closes #1890)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10110 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-18 13:26:02 +00:00
bartvde
1dd852ef09 Layer.WFS missing OpenLayers.Util.upperCaseObject(params), p=pdziemiela, r=elemoine,me (closes #2362)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10109 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-18 13:19:42 +00:00
ahocevar
a036ffff1b reverted previous comment change - the comment was correct, we are dealing with kilometers here. non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10108 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 23:12:38 +00:00
bartvde
bc1246877e use layer.filter in Strategy.Fixed, p=pspencer, r=tschaub (closes #2152)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10107 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 21:22:51 +00:00
bartvde
e061da04c9 fix bug in panzoombar slider, p=sowee, r=me (closes #2384)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10106 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 21:16:01 +00:00
bartvde
1d6c1f437e change property zoomBarDiv to zoombarDiv to match the actual code in PanZoomBar, reported by Gerardo, non-functional change (closes #2188)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10105 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 20:46:47 +00:00
bartvde
4e2d70b770 support pointRadius for canvas renderer, p=gregers, r=me (closes #2126)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10104 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 20:31:58 +00:00
bartvde
90c6a020c7 add 2 more resolutions to Bing Maps, p=fredj, r=me (closes #1893)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10103 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 20:21:38 +00:00
ahocevar
891b12160c fixed comment - distVincenty returns meters, not kilometers. Non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10102 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 17:47:18 +00:00
bartvde
bc84b54343 bbox strategy should call loadend when aborting, p=fvanderbiest, r=me (closes #2504)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10100 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-16 15:16:19 +00:00
Frédéric Junod
fd768cf170 fix all examples title. non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10098 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-12 07:44:02 +00:00
bartvde
6fa1a14456 Change domain name in ArcIMS samples, p=dzwarg, non-functional change (closes #2514)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-11 17:15:25 +00:00
ahocevar
94c4837475 Fixed typo in LayerSwitcher. Thanks Pierre for the quick review response. r=pgiraud (closes #2512)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10096 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-09 09:59:09 +00:00
ahocevar
3d4d2de615 added rotation to "select" intent - helps us to find renderer rotation issues
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10087 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-05 06:51:44 +00:00
ahocevar
22f0f933fb Added Layer.Zoomify. This is a late follow-up on the FOSS4G 2009 sprint
in Sydney. Thanks Petr for the hard work on this. p=klokan, r=me (closes 
#1285)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10086 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-04 08:41:18 +00:00
ahocevar
8adcc155fb Added Map::addControls method. Yet another quality patch from Marc, with everything done right plus unit tests. p=marcjansen, r=me (closes #2399)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10085 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-02 21:39:23 +00:00
Tim Schaub
a27c552554 Switching to a proxy that allows POST.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10084 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-01 17:12:00 +00:00
bartvde
ac60e4fcf6 load events not working properly in OpenLayers.Tile.Image.IFrame, r=fvanderbiest (closes #2406)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10082 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-23 17:16:49 +00:00
Tim Schaub
09a858559b Adding clone method to the Google layer. r=ahocevar (closes #2473)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10081 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-20 20:14:53 +00:00
ahocevar
2eb866658a fixed visibility issue with allOverlays:true. r=pgiraud (closes #2328)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10079 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-17 18:12:29 +00:00
Frédéric Junod
876fdebec9 OpenLayers.Util.getParameters: decodeURIComponent the keys, not only the values. r=elemoine (closes #2327)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10071 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-17 06:59:49 +00:00
Frédéric Junod
662564957c Move the control.div styling from the code to style.css. r=elemoine (closes #2476)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10070 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-16 08:21:25 +00:00
ahocevar
e21dc76468 hide Terms Of Use for invisible Google Layers using a negative offset,
because during GMap2 initialization, we don't have control over 
style.display. r=fredj (closes #2328)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10069 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-16 08:05:52 +00:00
pgiraud
b165d015e1 adds a zoomBoxEnabled boolean option in Control.Navigation, r=ahocevar, (Closes #2416)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10067 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-15 13:08:28 +00:00
pgiraud
7a546bf5c5 fixed the unit tests on OpenLayers.js (broken since r9935), patch from Andreas who found a nice and clean way to bypass the cache system on _getScriptLocation for the tests, r=me,fredj (Closes #2389)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10066 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-15 12:41:23 +00:00
bartvde
5c03ebd729 change comment for maxFeatures in OpenLayers.Control.GetFeature
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10065 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-15 10:30:40 +00:00
pgiraud
7179166603 adds a new getVisibility method in the Feature.Vector class, used in the SelectFeature control this method now allows us to tell the select feature box handler wether to select or not the features, r=ahocevar, (Closes #2418)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10064 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-15 09:05:49 +00:00
ahocevar
6b7fd781ee fixed VML renderer so it does not change fillColor on node._style
anymore when rendering externalGraphic. r=fredj (closes #2485)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10063 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-15 08:19:37 +00:00
ahocevar
e17dc78e1d now that we truncate instead of rounding, graphics with odd width are shifted .5 pixels to the left (to the right before that change).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10061 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-13 17:31:13 +00:00
ahocevar
fbc9a6f43a fixed regression with broken polygon fills. r=crschmidt (closes #2465)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10049 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-11 15:57:26 +00:00
ahocevar
50f26e3313 Changing our layers' clone methods so they create a clone of the layer state at the time of clone creation, not at the time the original was created. r=tschaub (closes #2477)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10045 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 21:29:37 +00:00
Tim Schaub
83297678ba Allowing layers, center, and zoom to be set in the layer constructor. r=ahocevar (closes #2480)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10044 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 20:14:02 +00:00
ahocevar
2e47542fbe give map::getResolution a fallback from baseLayer to the 1st layer if in allOverlays mode. r=tschaub (closes #2479)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10043 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 19:05:58 +00:00
Tim Schaub
e5e4d49d33 Destroying what we create.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10042 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 18:43:20 +00:00
ahocevar
5050814fa4 remove acceptance test again, because this can easily be shown in a unit test instead (see #2477)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10041 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 13:01:14 +00:00
ahocevar
15de885540 Acceptance test checking for proper clone() behavior (see #2477)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10040 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 12:53:45 +00:00
ahocevar
6811dc3745 Fix initial offset and visibility issues in VML renderer; also make sure that all floats are converted to integers (previously using toFixed(), now using (num | 0)). p=tschaub,me, r=tschaub,me (closes #2465)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10039 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 07:04:31 +00:00
ahocevar
b19261d417 Update size of invisible Google layer before making it visible. r=tschaub (closes #2475)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10038 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 06:58:21 +00:00
Tim Schaub
74aaf479a5 Making this closer to a positive assertion.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10037 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-09 23:01:47 +00:00
ahocevar
ec8e2146ec manual test showing a regression (see #1797)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10036 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-09 20:24:59 +00:00
ahocevar
0af99e0de7 Give the GetFeature control a beforefeaturesselected and featuresselected event. p=komacke, r=me (closes #2442)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10035 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-09 12:30:02 +00:00
bartvde
777ef007ad Make Format.SLD work against ArcGIS Server, r=tschaub (closes #2166)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10034 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-09 06:38:54 +00:00
bartvde
1b3af5d26d add ability to write out a WFS Transaction without a geometry, r=tschaub (closes #2033)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10033 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-09 06:26:06 +00:00
Éric Lemoine
07437865db change da-DK.js to UTF-8, p=adube, r=me (closes #2472)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10032 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-09 05:46:23 +00:00
Frédéric Junod
2ba1de77f8 add 2 fixed resolutions to the Google layer. r=bartvde (closes #2429)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10031 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-08 15:35:31 +00:00
Frédéric Junod
d14f3c6c31 remove global and unused variable. r=bartvde (closes #2459)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10030 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-06 14:47:19 +00:00
ahocevar
b2a1dee791 changing google.css so our maps are also terms of use compliant in IE. r=tschaub (closes #2466)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10028 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-05 20:19:56 +00:00
Tim Schaub
db153e199a Correctly parse feature attributes when the attribute name matches the feature type name. r=bartvde (closes #2435)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10027 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-05 20:17:59 +00:00
Tim Schaub
2d61186deb Respecting fractional zoom when desired. Allowing string argument to map.zoomTo. r=bartvde (closes #2180)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10026 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-05 19:48:29 +00:00
Tim Schaub
52f34e0baf Improving the PanZoomBar behavior so that when you click on the bar after dragging to the top, the map doesn't re-zoom on mouse up. r=me (closes #1861)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10025 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-05 19:16:51 +00:00
bartvde
8521ebb7c0 Format.WMC: protect against MinScaleDenominator of 0, r=tschaub thanks tschaub for the updated patch, tests still pass in FF 3.5 and Safari 4 (closes #2028)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10024 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-05 18:13:24 +00:00
Tim Schaub
36d96126eb Ensuring that setVisibility is called during setBaseLayer for layers where visibility is true. (With allOverlays true, a layer doesn't have to be visible to beocome the base layer - twisted huh?) r=ahocevar (closes #2290)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10023 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-05 16:38:34 +00:00
Tim Schaub
06d2b4229d Making it so the Map constructor doesn't fail when the provided viewport element isn't displayed. r=ahocevar (closes #2461)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10022 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-04 19:49:10 +00:00
Tim Schaub
929e6b323c Reworking the Google layer so that a shared GMap object is used for all Google layers on a single map. This reduces the DOM overhead and gets rid of map resizing issues. Excellent solution by ahocevar. r=me,ahocevar (closes #1797).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10021 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-04 19:18:53 +00:00
Tim Schaub
77ffdf7248 Give all elements position for IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10020 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-04 17:54:12 +00:00
Tim Schaub
37e881bc54 Making it so OpenLayers.Util.getResolutionFromScale returns undefined resolution when given a falsey scale. r=ahocevar (closes #2464, see #2462)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10019 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-04 17:02:23 +00:00
Tim Schaub
ae73ca0679 Including required stylesheet.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10018 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-04 00:25:19 +00:00
Tim Schaub
78a2289d6a Update to multiple Google acceptance test to demonstrate issue with initially visible layer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10017 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 23:55:04 +00:00
Tim Schaub
e3561c3ceb Adding manual acceptance test for multiple Google layers (see #1797).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10016 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 18:35:38 +00:00
Tim Schaub
5c7d3e5632 Looks as if /proxy no longer supports POST.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10015 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 17:23:12 +00:00
Tim Schaub
a5848fc84d Preserving center and scale when switching base layers. This improves behavior when the map wraps around the domain of the coordinate reference system or when changing between layers in different projections. r=ahocever (closes #2457).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10014 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 17:09:17 +00:00
Tim Schaub
af1e754546 Keeping a reference to the event pane when a layer is removed from the map. The pane is set in initialize and set to null in destroy. r=ahocevar (closes #2456)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10013 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 16:28:29 +00:00
ahocevar
ec455e81e1 fixed typo that broke fontColor rendering in VML.js. Thanks paco for spotting this. r=fredj (closes #2231)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10011 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 14:43:19 +00:00
crschmidt
f927d79977 add 4-line OSM example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 12:22:40 +00:00
Frédéric Junod
c75e16e5f2 Parse the KML LabelStyle and use the color and opacity value. Create a parseKmlColor function to avoid code duplication. r=pgiraud (closes #2413)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10007 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 10:23:19 +00:00
pgiraud
2100d63846 we were missing a break statement in the KML parseStyle method, tests are modified accordingly, r=fredj (Closes #2448)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10006 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 09:35:45 +00:00
Frédéric Junod
6223d7fd82 Add a cumulative mode in MouseWheel handler. r=ahocevar (closes #2450)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10002 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-01 08:42:17 +00:00
ahocevar
9b728d048d fixed encoding issue in the example description (see #2433)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10000 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-31 14:23:47 +00:00
ahocevar
cb0dffc045 Created a TransformFeature control and added a documentDrag option to the DragFeature control. r=elemoine (closes #2433)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9999 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-31 14:08:36 +00:00
Frédéric Junod
7a78237bdd add missing semicolon
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9980 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-28 11:37:58 +00:00
Éric Lemoine
5edcc97240 cannot unselect on clickout when selecting by drawing a box, r=pgiraud (closes #2204)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9979 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-28 08:07:09 +00:00
Frédéric Junod
153cba8147 New fontOpacity option for vector feature style. r=pgiraud (closes #2438)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9978 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-27 15:31:53 +00:00
Frédéric Junod
86eb16a208 Use style.label as placemark name if available. r=pgiraud (closes #2441)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9977 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-27 15:27:04 +00:00
Frédéric Junod
1f481f3d38 Don't create Folder name or description if foldersName or foldersDesc are null. r=pgiraud (closes #2417)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9976 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-27 14:44:35 +00:00
Frédéric Junod
e5aab2453d set a default EPSG:4326 externalProjection to the KML, OSM and GPX formats. r=pgiraud (closes #2424)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9975 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-27 14:36:46 +00:00
Frédéric Junod
c1f9945838 Extract the kml outline attribute. r=pgiraud (closes #2412)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9974 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-27 14:05:37 +00:00
Frédéric Junod
822e8f5485 don't calculateInRange if it's not needed. r=elemoine (closes #2400)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9958 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-22 08:13:11 +00:00
Éric Lemoine
e562626f87 make OverviewMap.destroy more robust, r=fredj (closes #2430)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9957 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-22 07:35:22 +00:00
Frédéric Junod
8cbac47177 Cast zoom level to integer. r=pgiraud (closes #2180)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9955 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-20 11:05:42 +00:00
ahocevar
ca8222a13c Rotate point geometries only. Committed version differs from the patch (=== instead of == for all geometry type checks). r=tschaub (closes #2423)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9954 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-18 12:44:50 +00:00
ahocevar
da664350fe fixed rotation for browsers that don't support defs/use. Committed version modified from patch version as suggested by tschaub. r=tschaub (closes #2402)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9953 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-18 12:34:56 +00:00
Frédéric Junod
65bed91e4e layer argument was undefined
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9950 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-13 13:03:42 +00:00
pgiraud
14749daa74 finally, this is the good version of the unit tests for the #2320 ticket, sorry for the noise
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9949 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-13 11:02:08 +00:00
pgiraud
5c397b8d0c I forgot to ad the unit tests file in the commit for #2320
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-13 10:59:52 +00:00
Frédéric Junod
e8d8aa7d47 don't pass the layer to the feature constructor
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9947 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-13 10:24:06 +00:00
Frédéric Junod
9911bb55ce fix tests for buggy webkit. (see #2402)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9946 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-13 10:00:46 +00:00
pgiraud
cca8894b91 added a slideFactor property in the PanPanel control patches from elemoine and me, r=bartvde (closes #2320)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9945 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-13 08:40:41 +00:00
Frédéric Junod
311f47da78 Missing semicolon.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9944 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-12 10:20:41 +00:00
Frédéric Junod
eda2a80187 comment fix, no functional changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9943 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-11 09:00:44 +00:00
ahocevar
88b05f55a1 Give Layer.Vector a proper clone() method. r=crschmidt (closes #2391)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9942 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-09 12:01:45 +00:00
Tim Schaub
44ba385429 Removing any onImageLoadError class name from images when they successfully load. r=ahocevar (closes #2407)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9940 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-08 21:14:04 +00:00
ahocevar
9066c0e960 workaround for webkit versions that have problems with defs/use. r=crschmidt (closes #2402)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9937 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-08 16:00:56 +00:00
Frédéric Junod
c64c2e4296 Cache the function result if scriptLocation is ''. r=elemoine (closes #2389)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9936 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-07 08:26:29 +00:00
Frédéric Junod
871a790f3f cache the result of the OpenLayers._getScriptLocation function. r=ahocevar (closes #2389)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9935 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-07 07:22:05 +00:00
ahocevar
8a74ad8ed5 longer timeout to avoid failing test on slow machines
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9934 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-06 16:46:53 +00:00
Tim Schaub
bae2fa59ed Document rotation property for point symbolizers.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9932 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-05 22:13:29 +00:00
ahocevar
f6b00d7ced re-added the layer prefix property that got lost with r9883. r=bartvde (closes #2283)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9931 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-04 17:59:24 +00:00
Éric Lemoine
2619586558 add missing semi-colon, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9930 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-27 22:23:28 +00:00
Éric Lemoine
442d760fe5 featuresremoved event is called with zero lenght array if layer.selectedFeature is supplied to layer.removeFeatures, p=igrcic, r,t=me (closes #2379)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9929 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-27 22:16:56 +00:00
Éric Lemoine
be246326ee test that "featuresremoved" listeners are passed the expected features when all the features of the layer are being removed, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9928 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-27 22:05:10 +00:00
Éric Lemoine
52e055294f reorg of test_Layer_Vector_removeFeatures, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9927 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-27 21:44:13 +00:00
bartvde
fcc2057b42 forgot the actual example, should have gone in with r9920
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9921 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-23 11:35:57 +00:00
bartvde
728fcdcda2 adding example for using the Sensor Observation Service client, r=ahocevar (closes #2333)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9920 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-23 11:35:26 +00:00
bartvde
3a6ac9b83f add Protocol for Sensor Observation Service r=ahocevar (closes #2373)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9912 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-21 14:37:08 +00:00
bartvde
2c23d9ff25 add parser for Sensor Observation Service GetFeatureOfInterest method, r=ahocevar (closes #2347)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9911 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-21 14:31:32 +00:00
Tim Schaub
e99979ffe5 Adding a missing verb.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9909 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-19 00:07:25 +00:00
Tim Schaub
e95b023b5e Unconfusing NaturalDocs by putting 'Note:' on a separate line.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9908 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-19 00:06:17 +00:00
Tim Schaub
2ddb4c1927 Doc menu update (futile, I know).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9905 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-17 22:41:02 +00:00
Tim Schaub
7bbacbc7cc Marking events.on and events.un as part of the API. Adding examples for both. If this is not the concensus (that these are part of the API) revert this change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9904 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-17 22:20:49 +00:00
Frédéric Junod
793396a4cb add missing requires (OpenLayers.Format.WMSCapabilities namespace)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9903 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-17 14:18:36 +00:00
Éric Lemoine
321a237d2f overview map control destroys drag handler too late, r=ahocevar (closes #2383)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9902 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-17 08:23:38 +00:00
Tim Schaub
f54fd67504 Adding an Atom parser. Thanks sgillies for the patch (and patience). r=me (closes #1366)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9901 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-17 00:38:13 +00:00
crschmidt
2449b7029c GML v3 is also a dependancy.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9900 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-16 20:48:55 +00:00
crschmidt
3ee6c4663c add missing requires statement.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9899 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-16 20:39:33 +00:00
bartvde
cc4b914fff add format for Sensor Observation Service GetObservation operation, r=ahocevar (closes #2372)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9898 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-16 15:29:41 +00:00
bartvde
b948eb163b adding parser for Sensor Observation Service (SOS) GetCapabilities interface, r=ahocevar (closes #2337)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9897 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-16 14:25:08 +00:00
ahocevar
f5ff990898 removed redundancy (1.0.0 leftover) when parsing srs. r=bartvde (closes #2283)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9896 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-16 12:23:27 +00:00
bartvde
31189f1e45 add WMS 1.3 GetCapabilities parser, r=ahocevar (closes #2294)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9894 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-16 10:24:12 +00:00
bartvde
e9264d89eb rewrite WMS GetCapabilities parser, tests now pass in IE, r=ahocevar (closes #2283)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9883 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-13 15:43:15 +00:00
ahocevar
e6f4a27b93 fixed tests by pulling the geoserver example into the main html.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9882 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-10 22:11:16 +00:00
ahocevar
30b936399a fixed dtd url to avoid failing tests in IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9881 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-10 15:13:42 +00:00
Frédéric Junod
6770cffdac form.method is upper case in chrome and lower case in FF.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9880 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-10 07:38:59 +00:00
bartvde
fdb924ebfb make WMSGetFeatureInfo Control WMS 1.3 compatible, r=ahocevar (closes #2355)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9879 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 19:08:55 +00:00
ahocevar
f28ebc2a02 added required layer url to fix failing test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9878 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 17:38:42 +00:00
ahocevar
fe126f123f fixed failing test by parseFloat'ing the frame styles
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9877 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 17:29:21 +00:00
Tim Schaub
11924d0d0f Only zoom by integer values with changes in the mouse wheel. r=bartvde (closes #2376)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9876 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 15:34:19 +00:00
bartvde
711d412f88 WMSGetFeatureInfo control: add support for mutiple WMS services, r=ahocevar (closes #2091)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9874 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 14:29:48 +00:00
Éric Lemoine
b655b14f01 NavigationHistory - move the code for getting the current state from an anonymous function to a method of the class, r=bartvde (closes #2377)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9867 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 11:51:55 +00:00
Tim Schaub
42f06c259b Separating docs from shortdesc.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9866 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 04:36:22 +00:00
Tim Schaub
03a6de0fb7 Removing this for now. Resurrect it if someone can get this service working with GetFeature requests via POST.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9865 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 04:26:14 +00:00
Tim Schaub
e6c6f93477 Going with one WFS-T example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9864 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 04:13:21 +00:00
Tim Schaub
e0be3f2e65 Updating the wfs-states example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9863 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 04:04:52 +00:00
Tim Schaub
e10e39b19c Putting the canvas renderer bit in its own example. Using the Vector layer for WFS. Extracting the relevant code and providing an easy to open link for viewing the source.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9862 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 03:11:13 +00:00
Tim Schaub
a23f2229cf Taking down the openmnnd.html example since http://prototype.openmnnd.org/ says it is no longer maintained.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9861 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 02:10:47 +00:00
Frédéric Junod
4ff1ece2e4 Use array.indexOf native function when available. p=arno, r=ahocevar
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9859 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-04 08:07:53 +00:00
Frédéric Junod
610c2b9933 method is upper case in code, update test (error reported by chrome)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9858 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-04 07:53:41 +00:00
bartvde
ec3d804af4 make OpenLayers.Layer.WFS and OpenLayers.Layer.GML deprecated and provide instructions on what to do now
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9849 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-30 10:15:16 +00:00
Éric Lemoine
40206dc8cf a change to Util.getParameters, which accidentaly slipped in [9757], makes the tests fail, reverting that change. Please join me in saying thanks to our unit tests for catching this :-) r=ahocevar (closes #2357)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9848 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-29 21:47:16 +00:00
bartvde
e60dee85b9 Feature.destroy does not remove marker from layer, p=gregers, r=me (closes #2181)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9847 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-27 15:54:03 +00:00
bartvde
95055aa457 Bad Encoding in Catalan translation breaks IE6, p=edgemaster, r=me (closes #2161)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9846 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-27 13:44:37 +00:00
bartvde
0038def935 use setVisibility instead of directly setting the visibility property, p=sbenthall (closes #2111)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9845 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-27 13:31:25 +00:00
Éric Lemoine
5018aaa4ba provide full names of loadURL and parseXMLString in the API docs, no functional change, thanks David Potts for spotting this
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9843 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-25 15:08:02 +00:00
pgiraud
7b9de2be30 typo in the doc comments, no functional changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9842 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-24 17:29:59 +00:00
Éric Lemoine
9e81d4d332 the WFS 1.0 standard does not support specifying the SRS name (srsName) in GetFeature requests, but GeoServer has specific support for this, this patch introduces a boolean option (add srsNameInQuery) to force the addition of srsName, initial patch from fvanderbiest, r=bartvde (closes #2228)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9838 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-23 15:56:56 +00:00
Tim Schaub
d9a982f169 Exposing the documentDrag property on the Navigation control. r=ahocevar (closes #39)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9805 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-18 05:42:17 +00:00
bartvde
081ce883fb create an option to cancel adding a layer, r=tschaub (closes #2121)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9802 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-17 07:34:51 +00:00
Tim Schaub
f57e19ae2d Parse gml:boundedBy elements on features as feature.bounds instead of geometry.bounds. This fixes issues when GML comes without a geometry and it is a more correct representation of the element. r=bartvde (closes #2255)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-16 22:25:46 +00:00
bartvde
10920f6f93 add parsing of boundedBy in Format.WMSGetFeatureInfo, r=elemoine (closes #2329)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9800 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-16 10:44:02 +00:00
ahocevar
ebc5d7c021 added option to the MouseWheel handler to trigger up/down events only
when wheel is released. r=elemoine (closes #2345)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9799 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-16 10:38:26 +00:00
bartvde
33e39a205a fix up Graticule test in IE, missing var keyword
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9796 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-12 19:28:11 +00:00
bartvde
12c83b533d adding limited support for reading SimpleData from KML ExtendedData SchemaData, keeping structure the same as current ExtendedData support, patch=joh, r=me (closes #2062)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9795 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-12 15:28:20 +00:00
pgiraud
1b95a25ee1 adds the ability for the user to give map options when reading a WMC document, those options are taken into account with higher priority\n this patch also introduces the new util method isElement, r=me,elemoine, thanks Eric (Closes #2339)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9794 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-12 13:43:40 +00:00
ahocevar
c9df8f4d43 Added documentDrag option to the DragPan control and Drag handler.
When set to true, this allow pan-dragging while outside the map. 
Thanks vmx for the initial patches. r=vmx, bartvde (closes #39)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9791 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-10 11:14:28 +00:00
bartvde
01debb1c53 Create a possibility to refresh a layer every N seconds: OpenLayers.Strategy.Refresh, excellent patch by krisgeus, r=me (closes #2317)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9790 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-09 14:43:58 +00:00
bartvde
e77a804559 add setLayer function to SelectFeature control so that we can change the layer attached to the control on the fly, r=ahocevar (closes #2340)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9789 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-08 16:58:33 +00:00
crschmidt
5fd5085eba forgot to make a variable global.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9779 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-03 15:28:33 +00:00
crschmidt
7907a81ae5 Add dynamic text layer example, with BBOX strategy, SelectFeatureControl,
and popups.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9778 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-03 15:26:49 +00:00
bartvde
e003972959 Have Layer.WMS support WMS version 1.3 with the axis order sequence, r=elemoine,crschmidt,ahocevar (closes #2284)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9775 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-03 14:01:51 +00:00
Éric Lemoine
1e87b26029 provide slideFactor default value in the doc, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9774 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-02 16:15:14 +00:00
Éric Lemoine
4ca45ced61 the broken.img is no longer used by the library, remove it, thanks rdewit for catching that (closes #2318)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9773 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-02 13:54:54 +00:00
pgiraud
6f17fa1c9a give the radio buttons for the baselayers in the layer switcher control a name depending on the layerswitcher, this avoids problems with several maps and several layer switchers in the same page, r=bartvde (Closes #2331)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9772 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-02 12:24:03 +00:00
Éric Lemoine
6568eb4d8a do not change the src of broken images, as this prevents from being able to right-click on the image and see the server error, p=rdewit, r=me (closes #2318)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9771 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-02 09:55:18 +00:00
bartvde
d9fd39d547 make spatial filter configurable for OpenLayers.Control.GetFeature, p=rdewit, r=me (closes #2325)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9770 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-02 07:12:53 +00:00
bartvde
cf4c14a1e4 clean up duplicate code block from the fix for ticket 2256
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9769 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-30 17:23:47 +00:00
bartvde
5119ffa50e GetFeature doesn't handle Handler.Box case when result of user interaction is a pixel, patch by bjornharrtell, r=me (closes #2256)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9768 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-30 14:28:54 +00:00
Éric Lemoine
6839605b0f theme LayerSwitcher with CSS, r=ahocevar, p=tmcw,me (closes #1632)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9767 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-29 15:45:27 +00:00
Éric Lemoine
ab42111aac code cleanup - remove unused variables and declare local variables, p=avlee, r=me (closes #2326)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9766 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-27 12:15:22 +00:00
Éric Lemoine
316136b346 [9732] broke CSW GetRecords tests, this commit fixes them, patch from bbinet
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9765 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-27 11:04:04 +00:00
ahocevar
4e6c3b1f3e reverted change from r9754 because it breaks applications that register an event before the marker is drawn (see #2258)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9764 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-26 20:41:56 +00:00
ahocevar
dbcab22339 fixed memory leak in the PanZoom control. Thanks rcoup for the patch and the test. p=rcoup, r=me (closes #2323)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9763 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-25 17:36:10 +00:00
ahocevar
56382e8e49 Manual memory leak tests that should have been committed with r9759 and r9760. Thanks rcoup for setting them up. (see #2170)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9761 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-25 01:41:12 +00:00
ahocevar
c67d1f5952 2170_tileEvents.html: fixed memory leak with tile events. p=rcoup, r=me (see #2170)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9760 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 09:27:14 +00:00
ahocevar
ee737577f7 2170_anonfuncs.diff: created functions returning true and false instead of using anonymous functions all over. p=rcoup, r=me (see #2170)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9759 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 09:23:24 +00:00
ahocevar
f000057659 making pink tiles a css matter. p=rdewit, r=me (closes #2318)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9758 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 05:57:41 +00:00
ahocevar
6d43a28da6 added Graticule control and Util.getFormattedLonLat function. Thanks madair for this excellent patch. p=madair, r=me (closes #1083)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9757 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 05:36:34 +00:00
ahocevar
a864838e96 call layer.getImageSize with the tile bounds to support layer implementations
with different tile sizes at the extent edges. p=klokan, r=me (closes #2324)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9756 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 05:11:51 +00:00
ahocevar
839348a3b2 added labelXOffset and labelYOffset symbolizer properties. Thanks madair for the original patch, and thanks jlacroix for turning it into symbolizer properties so nicely. p=jlacroix, r=me (fixes #2312)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9755 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 04:41:36 +00:00
ahocevar
fd514e8435 fixed memory leak in Marker.js. With manual test. p=rcoup, r=me (closes #2258)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9754 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 04:21:02 +00:00
ahocevar
6c213ba86b removed empty file
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9753 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 03:30:30 +00:00
Éric Lemoine
6e508f5cd6 Save strategy should preserve feature.url when transforming, p=pwr,me, r=me (closes #2215)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9752 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 01:55:55 +00:00
bartvde
caff5d5261 give PanZoomBar control an option to force fixed zoomlevels even if the map has fractionalZoom, patch by marcjansen, r=me, (closes #2288)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9751 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-23 23:31:15 +00:00
Schuyler Erle
4031b304a6 Merge r9745 through r9748. i18n updates from translatewiki.net. Closes #2310.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9750 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-20 23:43:26 +00:00
pgiraud
5b3f6f68d3 added some css to actually show how to customize the panPanel and zoomPanel example look and feel
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9737 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-09 14:02:47 +00:00
bartvde
13c5f5ac4c clean up unused code in Format.WMC.v1, correct minor spelling mistake, non functional change, see ticket:2251 for details
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9736 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-09 09:55:04 +00:00
Éric Lemoine
9711381289 remove an inrelevant comment, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9735 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 20:59:04 +00:00
ahocevar
e264e8c6c4 added Layer.WMS.Post for WMS request params exceeding the maximum url length for GET requests. Thanks ingo for this excellent work! It is an honor to commit such a high quality patch. p=ingo, r=elemoine,me (closes #2224)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9734 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 18:13:55 +00:00
Tim Schaub
6dabe0646e Adding some serious enhancements to the WMC format. With this, OL map and layer objects can be created from WMC context objects and vice versa. Thanks for the great patch bbinet. r=me (closes #2251)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9733 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 17:24:54 +00:00
Tim Schaub
039618366f Reading and writing the 'escapeChar' attribute for Filter Encoding 1.1.0. r=ahocevar (closes #2301)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9732 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 17:02:54 +00:00
Tim Schaub
bff91d251c The attribution control no longer shows duplicate attribution text. r=crschmidt (closes #2300)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9731 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 17:00:40 +00:00
ahocevar
ab2b2356f1 "Create an urlAppend function that appends strings to urls and handles ? and & appropriately". r=crschmidt (closes #2297)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9730 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 16:48:50 +00:00
crschmidt
3e0b053009 Fix for Missing @requires directive in Layer/XYZ.js results in broken custom
singlefile-builds, (closes #2299), thx marcjansen. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9729 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 14:29:18 +00:00
crschmidt
0cced02fec add requirement for format/text (Closes #2298), thx marcjansen.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9728 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 14:04:53 +00:00
ahocevar
e13078b64a removed duplicate definition of unselectAll. Thanks fredj for finding this one. r=tschaub (closes #2229)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9727 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 12:58:15 +00:00
ahocevar
fa324ec7f3 fixed regression with style missing in graphicRotate method. r=tschaub (closes #2198)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9726 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 12:49:27 +00:00
bartvde
5a9e1fe0b4 allow WFS protocol to use a different outputFormat, for instance json, patch by rdewit, r=me (closes #2107)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9725 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-07 18:21:59 +00:00
ahocevar
7919d2a314 removed duplicate inclusion of OpenLayers/Format/SLD/v1.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9723 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-07 13:54:50 +00:00
Éric Lemoine
b2056fd141 fix documentation, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9721 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-06 19:41:20 +00:00
Tim Schaub
d1cecf3be1 Adding an option to avoid duplicate attribution.
Thanks Marc Jansen for this nice contribution.  Without wanting
to gush, I think this should be a model contribution because:

 1. it is a simple change
 2. with a nice example that clearly demonstrates the benefit
 3. it includes tests!
 4. and Marc wrote a note to the dev list with links to the ticket

r = me (closes #2266)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@9720 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-06 18:46:06 +00:00
bartvde
11b38e5419 Format.WFST.v1: Query writer can be removed, r=tschaub (closes #2249)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9719 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-06 17:15:19 +00:00
bartvde
10398c5865 GetFeatureInfo control does not send required FORMAT parameter, r=tschaub (closes #2201)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9718 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-06 17:10:32 +00:00
ahocevar
2c2bf63c3f removed trailing commas to fix example for IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9708 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-06 08:12:04 +00:00
Tim Schaub
f7143f7e02 Deal with dash arrays that come in with extra spaces at the end. r=ahocevar (closes #2271)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9707 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 22:36:51 +00:00
Tim Schaub
7e821da0b5 Write out stroke dash style and linecap in SLD. r=ahocevar (closes #2270)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 22:34:16 +00:00
Tim Schaub
a84e06a075 WMSCapabilities format should call initialize on the XML format. r=crschmidt (closes #2269)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9705 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 22:32:25 +00:00
Tim Schaub
8c094a8977 Use a unique id for the map viewport. r=crshmidt (closes #2259)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9704 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 22:29:01 +00:00
bartvde
79aad5a1b4 When writing a WMC, bounds should not be rounded to a predefined precision, original patch by bbinet, r=me (closes #2242)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9703 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 14:30:00 +00:00
Éric Lemoine
86bd389152 allow protocols to be configured with a default filter, p=aabt, r=me (closes #2292)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9702 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 12:14:37 +00:00
Éric Lemoine
2633f9ba88 GeoJSON input should accept 3D coords, p=sgillies, r=me (closes #2070)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9700 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 09:21:07 +00:00
Éric Lemoine
5fad952e8a add formats for CSW GetRecords and GetDomain requests, p=bbinet, r=me (closes #2132)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9699 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 08:15:48 +00:00
ahocevar
3fa2971816 some love for the ve example: removed non-existent WMS layer, show animationEnabled option, fixed marker addition/removal.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9698 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-01 20:08:11 +00:00
ahocevar
d7a37c67b7 make selectors for Save button more specific so they also work in a Panel with displayClass set to olControlEditingToolbar. Non-functional change (fixes #2287)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9697 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-01 19:54:18 +00:00
ahocevar
449ea29086 added option to turn of animation. r=crschmidt,tschaub (closes #2286)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9696 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-01 19:47:31 +00:00
Frédéric Junod
8c3562e3ad onMapResize takes no parameters, no functionnal changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9695 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-01 09:39:23 +00:00
Frédéric Junod
e0167bdeec Update the VirtualEarth layer size when the map is resized. r=ahocevar, p=Matthew D. Diez (closes #2285)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9694 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-01 09:37:27 +00:00
crschmidt
7a9e54afdc change docs slightly. report by jeff adams. (Closes #2276)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9686 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-21 18:22:40 +00:00
Tim Schaub
6c4556666e WMSCapabilities inherits from and requires XML (no functional change).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9681 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-18 18:29:20 +00:00
Tim Schaub
8c3b6cc4b5 As with Google and VE, we should pull in SphericalMercator here. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9679 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-18 16:47:52 +00:00
Paul Spencer
6088de516c (Closes #2146) enhance createLiterals to merge context, attributes and pass attribute name through to context functions
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9676 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-17 17:17:11 +00:00
ahocevar
507fd0b86d change getDateExtent() so it does not break when the layer has features without geometry. p=fvanderbiest, r=me (closes #2267)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9674 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-17 13:08:52 +00:00
Paul Spencer
3fcda4df56 (Closes #2148) enable vector features to be selectable from their text node. r=ahocevar
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9671 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-17 12:05:38 +00:00
Tim Schaub
21b680868f Spelling correction in Google example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9670 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-16 02:13:15 +00:00
Tim Schaub
4102871392 As we do for the other proprietary providers, let's pull in SphericalMercator with VE. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9668 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-16 00:15:39 +00:00
ahocevar
93eccfc003 Fix for rendering custom symbols with aspect ratio differnt than 1.
r=pgiraud (closes #1836)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9665 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-14 10:25:54 +00:00
Tim Schaub
7f240d3ba9 Adding more complete WMS capabilities parsing. Thanks trondmm for the comprehensive patch. Some minor changes by me - including leaving the srs member value an object. r=me (closes #2164)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9664 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-11 22:48:56 +00:00
Tim Schaub
912a12c0b8 Typos that IE doesn't like (no functional change).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9660 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-11 20:23:48 +00:00
Tim Schaub
361f6065a7 Adding a runner for WMS capabilities parsing benchmarks.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9659 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-11 20:02:21 +00:00
Tim Schaub
f8c2889947 Adding more extensive parsing of WFS capabilities documents. Thanks fvanderbiest for the great patch. r=me (closes #2245)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9658 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-11 19:17:10 +00:00
Frédéric Junod
bdabaa86f9 fix comment, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9656 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-11 08:12:24 +00:00
Éric Lemoine
e6a2c4c7de tests on GetFeature control fail, thanks fvanderbiest for the initial
patch, non-functional change (closes #2261)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9650 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-10 06:50:45 +00:00
Tim Schaub
9945381043 Making invisible the factbook-overlay as it is not working.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9646 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-08 17:09:04 +00:00
crschmidt
9970eaff16 add events to strategy.save: start, success, fail. r=elemoine, (Closes #1902)
(It is possible Save may need extension for additional events; this should be
a new ticket.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9645 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-08 13:06:15 +00:00
ahocevar
19057eedd8 Replaced the no longer existent Boston Freemap with the tiger-ny demo that ships with GeoServer. Thanks to Billy Thoen for making us aware of this issue.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9641 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-03 14:28:27 +00:00
Éric Lemoine
ef1952e953 make WFS protocol and format more robust, r=ahocevar (closes #2237)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9636 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-02 06:17:19 +00:00
Tim Schaub
f3f6974eb6 Adding back the WMS overlay. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9631 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-25 20:05:18 +00:00
Tim Schaub
8e73b3f8db Avoid pink tiles on example.html.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9630 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-24 20:22:28 +00:00
Frédéric Junod
b9bcc0b7f8 use OpenLayers.Protocol.Response.success function, r=elemoine (closes #2227)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9623 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-19 06:34:54 +00:00
Éric Lemoine
f587b05d35 in OpenLayers.Request call the "complete", "success" and "failure" callbacks from within a separate method, this allows executing the callbacks from outside and at the time it lmakes the most sense to the application, p=fvanderbiest, r=me (closes #2218)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9621 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-13 19:47:08 +00:00
Éric Lemoine
d83376de64 add changelayer event to mergeNewParams function, r=bartvde (closes #2179)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9618 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-13 06:31:47 +00:00
Frédéric Junod
2b9bd25530 trigger an event when the layer's opacity change. r=elemoine (closes #2112)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9616 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-10 06:10:29 +00:00
Tim Schaub
c1a0d405e4 Proper handling of null and undefined attribute values in WFS transactions. r=ahocevar (closes #2222)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9615 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-07 22:35:55 +00:00
bartvde
5964a8db60 fix up sequence of elements in Web Map Context 1.1 Format when writing, thanks trondmm for the catch and initial patch, r=tschaub (closes #2174)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-07 15:59:43 +00:00
ahocevar
01d4330c81 In standalone mode, allow only dragging of sketch vertices or the point
selected for modification. Thanks tschaub for the improved patch. 
r=tschaub (closes #2219)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9613 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-05 23:33:26 +00:00
Éric Lemoine
868f886cad make the point1 and point2 variables local to the getSortedSegments method, no functional change, p=igrcic (closes #2217)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9612 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-05 07:28:08 +00:00
Schuyler Erle
0f35a3a434 Applying bobkare's patches to Norwegian language support from #2212. Closes #2212.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9605 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-31 18:38:15 +00:00
Schuyler Erle
ed6790e652 Merged from roberthl's branch again. This time all tests pass. ;)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9604 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-31 16:34:04 +00:00
ahocevar
77ea74cc2c added getBounds() to mockup geometry. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9601 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-30 22:27:23 +00:00
crschmidt
e5a577b062 larger, not smaller
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9597 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-30 14:43:31 +00:00
crschmidt
f0c5e94403 Add better documentation for the 'ratio' property of WFS layers.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9596 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-30 14:36:44 +00:00
Éric Lemoine
6012498ae8 in the select-feature.html example, when checkboxes are changes, reactivate the select control only if the "box" property changes, we do not need to reactivate the control when the "clickout" property changes, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9595 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-29 06:31:35 +00:00
Tim Schaub
6f18a6abd0 Stopping double clicks on the panel control. Thanks for the patch sbenthall. r=me (closes #2069)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9594 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-29 04:20:57 +00:00
ahocevar
1f3d495a12 fixed docs for clickTolerance, which also affects hover requests. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9593 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-28 14:39:58 +00:00
ahocevar
8fdd423104 provide a standalone mode for the ModifyFeature control. Thanks tschaub
for the fix in deactivate() and the tests. r=tschaub (closes #2199)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9591 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-27 18:00:36 +00:00
Tim Schaub
7b90863198 Instead of storing the geometry on all nodes (increasing memory drain) we only store what the indexer needs. The bounds bottom is only used in the compare method when checking for z and y ordering. r=ahocevar (closes #2198)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9590 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-27 16:50:33 +00:00
Tim Schaub
8b741bc666 Adding an autoActivate property for controls. If this is set to true, the control will be activated when it is added to a map. This is true for the Navigation, NavigationHistory, KeyboardDefaults, and Panel controls. False for others. r=elemoine (closes #2200)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9589 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-24 21:58:39 +00:00
Tim Schaub
1afb016408 Unmixing tabs and spaces. Non-functional change. Four spaces for tabs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9588 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-24 19:50:45 +00:00
Éric Lemoine
f7a2efe2bf make updateSize not call setCenter if map has no center, and remove unused code, r=tschaub (closes #2105) (closes #2114)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9587 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-24 12:49:13 +00:00
Éric Lemoine
1faae2a2a2 allow proxy host function, r=tschaub (closes #2128)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9586 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-24 12:44:33 +00:00
Tim Schaub
f838aa3a03 Ensure that sld elements are written in the sld namespace. r=bartvde (closes #2087)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9584 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-23 20:53:14 +00:00
crschmidt
2564da4403 Revert r9582, which breaks OpeNLayers trunk. Tickets 2158 and 2159 need to
be reopened.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9583 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-23 16:08:33 +00:00
Schuyler Erle
547371f107 Merge r9410 and r9520 from
source:/sandbox/roberthl/openlayers/lib/OpenLayers/Lang. These patches import
the latest work from the MediaWiki translation team, and only impact the
language files. This closes #2158 and #2159. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9582 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-23 15:29:19 +00:00
ahocevar
82cbb8c7cb fixed getParameterString to handle null/undefined values correctly. r=elemoine (closes #2157)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9573 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-20 21:11:03 +00:00
bartvde
2c8ec98643 correctly parse ScaleHint values from WMS GetCapabilities response, thanks elemoine for the testcase, r=elemoine (closes #2150)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9571 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-20 12:32:31 +00:00
bartvde
f4d60b89a8 add parsing of layer name in WMS DescribeLayer format, r=elemoine (closes #2027)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9570 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-20 12:18:02 +00:00
Éric Lemoine
feb29516b3 WMSGetFeatureInfo: add beforegetfeatureinfo event, p=fvanderbiest, r=me (closes #2127)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9569 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-20 09:07:37 +00:00
Éric Lemoine
4e77c9648a add missing semi-colons, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9568 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-20 08:53:00 +00:00
Éric Lemoine
7c4f85ffd5 Undocumented property 'filter' in Layer.Vector assumed in BBOX Strategy, initial patch from rdewit, no functional change (closes #2061)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9567 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-20 08:42:42 +00:00
Tim Schaub
cb71201350 Different layer order.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9551 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-14 16:18:47 +00:00
Tim Schaub
1b4d654ff8 Demonstrating the use of the rebranded Virtual Earth API.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9550 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-14 16:03:07 +00:00
Tim Schaub
ca23e49707 Add an example that demonstrates the use of a popup with the WMSGetFeatureInfo control.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9549 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-10 17:43:37 +00:00
Tim Schaub
d6d824b389 Typo in docs. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9528 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-26 15:15:28 +00:00
Tim Schaub
1e35173c2b If the pan tween is playing when the map is destroyed, stop the tween. r=pspencer (closes #2156)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9526 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-26 01:01:00 +00:00
ahocevar
9d74c087ce added parsing of Attribution, KeywordList and MetadataURL to
WMSCapabilities. Thanks tschaub for the improvements to my original 
patch. r=tschaub (closes #2145)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9499 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-23 20:34:27 +00:00
ahocevar
253a8bbaf7 added extractStyles:true for KML input
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9480 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-16 14:17:00 +00:00
ahocevar
ef739e42c3 Support for IE8 standards mode. Thanks ahayes, crschmidt, pspencer and madair, who all provided patches and valuable research to make this happen. r=crschmidt,ngerber999,Quelbs,ksgeograf (pullup #1910)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9476 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-13 08:55:44 +00:00
crschmidt
3fd553cdf4 Fix two missing semicolons. Thanks to ksgeograf for the catch. No functional
change. (Pullup #2134)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9475 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-12 20:06:12 +00:00
crschmidt
8765b0199f Commit bug for missing 'exact' in ArcXML format parser, from dzwarg. Includes
manual test. Thanks! (Pullup #2117) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9474 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-12 20:03:12 +00:00
ahocevar
be1d375bf7 How and where do I create tickets for IE7 bugs? No idea, so we are fixing it here. r=crschmidt (pullup #2135)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9473 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-12 15:45:49 +00:00
ahocevar
a20a209f0e changed wfs url to a working one
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9468 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-12 09:02:41 +00:00
ahocevar
cad1839201 Updated server url. Thanks akrherz for making us aware of the new url (closes #2129)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9467 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-12 06:54:25 +00:00
ahocevar
81ea635430 satisfy Opera 9.27 by escaping curly braces in regular expression. r=crschmidt (pullup #2103)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9466 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-11 17:24:48 +00:00
ahocevar
d6a3c508a1 Fixed the scope of onSelect, onUnselect,... when scope is not specified.
r=crschmidt (pullup #2115)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9419 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-01 16:27:02 +00:00
ahocevar
553f05d293 Another fix for the problem with resized Google layers that were previously invisible. Has the GMaps API changed in the meantime? At least this fix (listening for the "load" event) feels like it makes more sense than the previous one (listening for the "tilesloaded" event). r=pgiraud (closes #1797)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9418 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-29 07:59:10 +00:00
Tim Schaub
94437d3e5f Making createUrlObject more reliable. Tests demonstrate what to expect. r=elemoine (pullup #2060)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9413 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-27 17:49:05 +00:00
crschmidt
ebaa5066fc Fix a broken aspect of my change to the ArcXML code when cleaning it up:
missed an 'arcxml' -> 'response' change. Caught by dzwarg, r=me, (Pullup #2110) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9412 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-26 16:59:40 +00:00
ahocevar
2bf02bda35 Better fix for SVG rendering issues when redrawing complex graphics. Thanks tschaub for the investigation and the original patch which pointed me into the right direction. r=tschaub (pullup #2101)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9405 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-21 22:02:05 +00:00
Tim Schaub
52a4d4f8cc Making it so createUrlObject casts all urls to absolute ones first. r=crschmidt (pullup #2060)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9404 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-21 18:27:26 +00:00
Tim Schaub
d178a7675b Using util method for array indexOf in TMS layer. r=crschmidt (pullup #2100)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9403 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-21 14:52:38 +00:00
Tim Schaub
16715f41f6 Using the cross-browser util method for array indexOf in the TileCache layer. r=crschmidt (closes #2099)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9402 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-21 14:50:43 +00:00
Tim Schaub
e946b0a7eb Store a reference to the bound mouse cache clearer so we can unregister it as a listener later. This solves an issue with slider events on the PanZoomBar. r=crschmidt (pullup #2054)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9401 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-21 00:20:36 +00:00
Tim Schaub
6b6ca2a125 Take care not to clobber any previously set window.$ value. IE, in its mysterious ways, sets $ to undefined if we have a conditional 'var $ = somefunc;' expression - even if the condition evaluates to false. Problem does not occur if expression is 'window.$ = somefunc;'. This makes OL play nicely with jQuery (among others) in IE. r=crschmidt (pullup #1391)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9400 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-21 00:17:20 +00:00
Tim Schaub
5f0d573ff5 Trivial change. Removing string concatenation. Reportedly changes things in minified build in IE6. (pullup #2093)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9386 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-18 19:49:10 +00:00
crschmidt
51b5095d48 Committing an updated fix for #1906. This fixes a 2.7->2.8 regression in
particular behavior with regard to determining the size of a popup. thanks
to the absolutely tireless work of gregers on this issue! Also, in case 
anyone was wondering? Browsers suck. (Pullup #1906)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-15 15:36:21 +00:00
Éric Lemoine
b768574d72 when allOverlays is true a hidden layer can cause a WFS request, testsed by bartvde, r=tschaub (closes #2072)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9370 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-12 06:18:00 +00:00
ahocevar
0ec407ca04 use event-based checkResize not only for invisible layers, but also for layers that have not finished loading. r=pgiraud (pullup #2075)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9362 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-07 07:49:38 +00:00
Tim Schaub
5a8b116d10 To abort loading of any previous image when we destroy the image tile, we set the src to the location of blank.gif. r=crschmidt (pullup #1978)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-30 22:07:26 +00:00
ahocevar
b98dba227e Fix GMap initialization sequence when resizing previously invisible
layers. r=tschaub (pullup #1797)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-30 21:52:08 +00:00
crschmidt
6785e06150 Fix broken comma (Pullup #2066)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9328 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-29 11:41:00 +00:00
ahocevar
51b1937aa6 fix for urls with same host in createUrlObject in IE. r=tschaub (pullup
#2060)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9320 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-27 20:57:14 +00:00
crschmidt
0811578965 Accidentlaly added reference to nonexistant ArcGISCache layer in r9240;
back out. (no functional change) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9309 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-20 15:24:35 +00:00
crschmidt
b34325588c Roll back r9115, which breaks things, until we have time to not make it break
things. This whis was committed with the intention of supporting things like 
#1285, which also didn't get into 2.8, I don't think this will be a problem.
All tests still pass, and now the gutter example works. (Closes #2052) 
(See #1496)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@9308 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-20 12:00:35 +00:00
ahocevar
cf0ca6d2fc Changed ordering example to show the effect of zIndexing without
yOrdering.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9307 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-19 08:53:25 +00:00
ahocevar
608ef2730f Fixed regression with drawing order because of checking for the wrong
parent node. r=tschaub (closes #1066)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9306 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-18 22:00:36 +00:00
Tim Schaub
6570f44d7c Removing the wait cursor if no request is sent by the control. In the case of hover, this tries to remove what doesn't exist (which causes no harm) - but the same is done when hover actually results in a request. r=bartvde (closes #2051)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9305 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-17 16:35:17 +00:00
Tim Schaub
57600b2c81 proxy chasing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9302 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-16 23:20:15 +00:00
ahocevar
fd299eb552 Fixed refreshing of features in VML renderers when moving renderer roots
(e.g. by deactivating the SelectFeature control). Thanks Kris Geusebroek 
for reporting this. r=elemoine (closes #2048)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9301 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-16 06:59:19 +00:00
Tim Schaub
d54440b0e9 Touching up WMSGetFeatureInfo. Requests are now sent out with correct case on request parameter. Requests are only sent out if there are layers to query. The control has a single format with configurable options. Requests can be made in cases where layer url differs from control url. The control url property is optional. In cases where it is not provided, the url of the first eligible layer will be used. Tests pass and example works (for the first time) in IE as well.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9300 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-15 23:44:29 +00:00
Tim Schaub
cd815bc2a2 The tests for WMSGetFeatureInfo were duplicated, though not exactly the same, in r9159. The first batch did not pass and the second did, so I'm removing the first. (see #2007)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9297 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-15 08:43:57 +00:00
Tim Schaub
2bb58ebb24 Documenting the default projection for the map.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9296 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-14 19:28:39 +00:00
Éric Lemoine
d1ab118f91 a typo in the ND comments of Format/WMSCapabilities/v_1_1_1.js, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9288 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-14 12:13:23 +00:00
Éric Lemoine
625766b492 type in the version string of WMSCapabilities
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9287 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-14 11:15:46 +00:00
ahocevar
1c319bc4a7 Fixed a regression introduced by r9271. Now Format.Text works as
described in #1844. r=tschaub (closes #2043)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9286 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-14 07:22:55 +00:00
Tim Schaub
4b9393c809 Giving the openmnnd example a title header and correcting a typo. Thanks for the report tmtisfree. (closes #2045)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9285 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 22:50:21 +00:00
ahocevar
946969c356 added ND comments for the new fill, stroke and graphic symbolizer
properties. Non-functional change.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9284 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 20:30:36 +00:00
crschmidt
99559b51f7 add an example of accessing an ESRI 9.3 tiled map cache using the XYZ layer
in spherical mercator mode.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9283 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 15:18:29 +00:00
crschmidt
491e9e45a5 mike adair, for mapguide layer and some other work
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9282 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 13:40:17 +00:00
crschmidt
af18408539 Adding David Zwarg, for #213
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9281 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 13:38:54 +00:00
crschmidt
49d10d37c8 Tim Coulter for #1901 and several others
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9280 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 13:38:04 +00:00
crschmidt
74522391a0 add bartvde for dozens of fixes over the past several months
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9279 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 13:36:45 +00:00
ahocevar
2aa7f22926 * added stroke, fill and graphic symbolizer properties (all boolean) to
control whether or not to render a stroke, fill and graphic.
 * added a defaultsPerSymbolizer property to OpenLayers.Style to allow 
for extending incomplete symbolizers with defaults for stroke, fill or 
graphic. This also makes Format.SLD read/write round trips possible 
without modifying empty or incomplete <Stroke/>, <Fill/> and <Graphic/> 
constructs. r=tschaub (closes #1876)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9278 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 13:35:13 +00:00
crschmidt
13e42ec59b Adding robert coup, re: r9262 / #1895
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 13:34:25 +00:00
Tim Schaub
a247995670 Giving the examples a title makes them searchable. Consistent style makes things look less like a total hack job. The title header and shortdesc make our little example index thing work.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9276 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 08:22:55 +00:00
ahocevar
4664edacc8 better backwards compatibility -- only create the root container if
Control.SelectFeature constructor was called with an array of layers. 
r=crschmidt (closes #1666)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9275 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 21:14:22 +00:00
ahocevar
976b4703b5 mocking up map in a different way so tests won't break with the new
class-based cursors.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9273 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 18:39:06 +00:00
crschmidt
da3a4b272a Fix for "OL is breaking Google API Terms", patch by pwr, r=me, (Closes #1858)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9272 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 16:05:19 +00:00
crschmidt
29a23731ab FIx style support in format.text to allow a set of style defaults.
Also, add an extractStyles option that can be configured to false to allow
th use of stylemaps. r=ahocevar (Closes #1844)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9271 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 15:40:46 +00:00
Tim Schaub
29ba60eb59 Snap immediately on starting a sketch. r=ahocevar (closes #2039)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9270 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 15:38:41 +00:00
Tim Schaub
dfcf68007e Adding a 'sketchstarted' event on the vector layer. This event is triggered at the start of each new sketch. r=ahocevar (closes #1945)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 15:36:15 +00:00
crschmidt
70c3fd077d Fix for typo in geoesic measurement thingy. (Closes #2042)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9268 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 15:24:56 +00:00
Tim Schaub
e0faaf59d9 Activating strategies after adding the layer to the map. r=elemoine (closes #1920)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9266 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-10 21:59:57 +00:00
Tim Schaub
ddbf4b5222 Taking care to create a copy of the array sent to removeFeatures in the event that the layer.features array is provided. Thanks for the patch bbinet. r=me (closes #2038)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9265 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-10 19:22:14 +00:00
Tim Schaub
119f9bc635 Whitespace change only.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9264 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-10 16:34:09 +00:00
Tim Schaub
06a27dc36f Make it so the measurepartial event is triggered only if measure isn't coming soon. This keeps you from having to do a quadruple click to finish in IE when a reflow is triggered by the measurepartial listener. r=crschmidt (closes #2037)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9263 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-10 16:09:00 +00:00
ahocevar
cc2e19d789 added support for text labels. This also adds getCentroid methods to all
geometries. Thanks crschmidt for the great help with this patch, and 
thanks to camptocamp for the initial work on this and rcoup for creating 
the first patches. r=crschmidt (closes #1895)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9262 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-10 16:05:26 +00:00
Tim Schaub
dd556be0be Correct spelling for sketch.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9261 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-10 15:27:08 +00:00
Tim Schaub
736b3ff08c Since we now can have delayed map rendering, take care to only apply attributes to the map viewport element (map.div may change). Some deprecated controls still modify style properties of map.div. If you use a combination of deprecated controls and delayed rendering, you may get unexpected results. r=ahocevar (closes #1901)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9259 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 22:03:41 +00:00
Tim Schaub
1fd32e0ff8 Allowing users to better customize cursors for controls. Thanks to bartvde for the original patch and inspiration to get it done. Thanks ahocevar for the IE fix. r=ahocevar (closes #1484)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9258 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 21:59:53 +00:00
Tim Schaub
cf81c29d31 Making OpenLayers.String.trim work for multiline strings. Thanks etdube for the patch. r=me (closes #2034)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 19:26:42 +00:00
Tim Schaub
b296b083be Updating the meaninglessly named sundials example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9254 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 19:12:52 +00:00
Tim Schaub
0c49c8faa0 Marking the save method on the Save strategy as an API method. This was a clear oversight (not making it an API method).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 19:03:07 +00:00
Tim Schaub
d51ea434ca Removing stray console call.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 19:01:22 +00:00
crschmidt
2e3f22809d fix for insufficient mocking which resulted in an error being thrown on
teardown by IE; add a .destroy() to the mocked renderer. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 16:18:30 +00:00
ahocevar
3222fd3618 Updated example to use a simpler dataset with data from a maintained
demo server. Thanks dwins for putting this together.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9250 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 12:57:31 +00:00
crschmidt
2b7e8f5198 Add support for ArcIMS/ArcXML to OpenLayers.
Thanks for the killer effort from David Zwarg from Avencia in building this, 
and for Tim Schaub from OpenGeo for his excellent review. r=me,tschaub
(Closes #213)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9249 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 00:15:48 +00:00
Tim Schaub
08077f0f42 Adding methods for getting geodesic measures from geometries. Assuming geometries can be transformed into Geographic/WGS84, getGeodesicLength and getGeodesicArea should return reasonable 'on the ground' metrics. Use getLength and getArea for the planar metrics. r=crschmidt (closes #1819)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9248 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-08 23:12:24 +00:00
crschmidt
5f335f4207 patch had added these two files twice. FIx that. (no real change.) Thanks
edgemaster for pointing it out.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9247 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-08 20:11:20 +00:00
Tim Schaub
0e858fa4af Sending a response object along to the user callback after a commit that issues multiple requests. Thanks for the collaborative patch work crschmidt. r=crschmidt,elemoine (closes #1973)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9246 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-08 17:52:55 +00:00
crschmidt
861a9c10f5 adding XYZ layer (and OSM laayer) to OpenLayers. r=fredj, (Closes #1950)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9240 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-08 06:54:16 +00:00
Tim Schaub
87a2f0d47e adding newline to style.css - no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9237 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 21:26:03 +00:00
Tim Schaub
194474999c And replacing it with use of supported controls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 20:48:08 +00:00
Tim Schaub
f2f118ad90 Reverting unintentional changes in r9234. Meant to just change the controls example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9235 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 20:43:27 +00:00
Tim Schaub
e72da4f74e Removing use of deprecated control.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9234 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 20:38:11 +00:00
crschmidt
0e05f90932 Remove Icon-specific code from Markers Layer, patch by meek,me,
r=euzuro.  (Closes #818)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9233 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 15:21:39 +00:00
Tim Schaub
c1f9d60985 Vector tests broke with r9164. Fixing tests by mocking up calculateInRange instead of just inRange. (closes #1939)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9232 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 14:11:19 +00:00
Tim Schaub
ed5420b678 Adding a persist option to the measure control. This passes the same to the sketch handler. The cancel method on the control calls the same on the handler. Patch from dwins. Tests from me. r=me (closes #2029)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9225 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 02:03:57 +00:00
Tim Schaub
d3d80a02a9 As a result of the changes in #1634, the symbolizer for the temporary rendering intent was exposed. This was a bit uncharacteristic for OL symbolizers given its 4px stroke width and eye melting yellow hue. After some agreement on the mailing list that this should be changed, I'm changing it. The temporary symbolizer is now a 2px cyan thing. Would be nice to have a more involved design process, but I'm feeling a bit desperate about this one not knowing when the release candidate will go out - and not wanting to be embarassed by the garish yellow. Reopen if this is objectionable. r=ahocevar (closes #2032)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9224 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 23:12:40 +00:00
ahocevar
f59eceef71 create UserStyle in a way that propertyNames cache will be generated.
Thanks sonicx for catching this. r=tschaub (closes #2000)
r=tschaub


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9223 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 23:08:08 +00:00
euzuro
a685884a4f remove stray console.log() from test. breaks in all non-FF browsers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9222 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 22:31:37 +00:00
euzuro
143f72a8e5 Allowing the popup-panning FF hack to be disabled as it causes bad effects when a popup contains flash content. not thrilled with the property name but can't really think of anything better myself. patch by gregers r=me (Closes #1941)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9221 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 22:29:27 +00:00
ahocevar
f52c7c955e forgot to add WFSCapabilities.js and test in my previous commit. Thanks
tschaub for spotting this (see #1988)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9220 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 22:13:05 +00:00
ahocevar
e3103362ee added WFSCapabilities format. Original patch by tschaub, r=tschaub,me
(closes #1988)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9219 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 21:32:46 +00:00
Tim Schaub
043bbab2ca Documenting events that are not fired.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9218 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 21:32:14 +00:00
ahocevar
3841155621 fixed aspect ratio rendering in IE to not break rotation any more.
r=pgiraud (closes #1836)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9217 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 21:21:18 +00:00
Tim Schaub
85974d11a0 Take care not to change layer visibility when changing layer draw order (allOverlays only). r=ahocevar (closes #2004)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9216 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 21:15:39 +00:00
Tim Schaub
ebb7a08325 Adding a format for parsing WMS capabilities docs. r=ahocevar (closes #1176)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9212 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 18:55:20 +00:00
Tim Schaub
64b4752592 Not that it needs to be this way, but because it is generally safer, set non-default resolution related properties on the map instead of on the layer. (closes #2031)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9211 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 18:29:48 +00:00
Éric Lemoine
f5269f8acd BBOX strategy register for layer visibilitychanged, r=tschaub (closes #1835)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9195 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 11:50:30 +00:00
Éric Lemoine
bcf29b8a65 SelectFeature should allow panning the map when over features, without activating click method at the end of drag, r=tschaub (closes #1824)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9194 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 11:46:15 +00:00
Tim Schaub
f372bd3fd1 Wrapping json.write in a try/catch to guard against possible failures reported in one case on IE. If anybody cares to get to the bottom of this properly, see the test case attached to the ticket. r=me (closes #1826)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9182 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 23:58:16 +00:00
crschmidt
b0f71c2702 Fix for GeoJSON + Reprojection problems for GeometryCollections. Original
patch/ diagnosis by ibolmo, refactored by me. Includes manual test. 
(Closes #2024)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9181 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 20:26:35 +00:00
Tim Schaub
d1898d1a7d Making it so format.getChildValue concatenates all simple content (except for GeoRSS format). Use getChildValue instead of concatChildValues. Adding a number of other format methods for those who do manual dom traversal. Original patch from dparker. r=me (see #1846)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9180 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 19:17:49 +00:00
ahocevar
e1b1c814de create attributes with null value for empty attribute nodes.
Original patch by milovanderlinden, simplified by tschaub. r=me
(closes #1556)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9179 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 16:52:26 +00:00
ahocevar
467dff424c Added geometry parsing for Mapserver output. Thanks bartvde for the
patch. r=elemoine,me (closes #1976)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9178 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 16:42:26 +00:00
ahocevar
8b0208ae44 Fixed ElementsIndexer to not stop at elements that are not currently
rendered. Thanks Adam Borrows for catching and describing this and the 
patch which does exactly the right thing. r=me (closes #1986)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9177 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 16:29:00 +00:00
pgiraud
49774f6ab5 SelectFeature now takes a hilightOnly config options, that way user can hover features without actually selecting
them, combining two differents controls will allow to separate hover and click events, patches from ahocevar, 
elemoine and 
pgiraud, reviewers are ahocevar, elemoine and pgiraud


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9176 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 10:28:41 +00:00
euzuro
b625337018 clear timer for rightclicks so that we don't fire single right click event after double rightclick event. thanks for the excellent find and fix, itbeyond. r=me (Closes #1995)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9175 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 01:34:58 +00:00
euzuro
1bf80712a6 fixing improper api name.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9174 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 01:19:10 +00:00
Tim Schaub
b2258606dc To have a functioning map with all overlays, set the map.allOverlays property to true. With all overlays, the map derives projection, resolution, and max extent information from the lowest layer in the draw order (map.layers[0]). To change the layer order, use map.setLayerIndex or map.raiseLayer. r=ahocevar,elemoine (closes #2004)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9171 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-02 16:40:52 +00:00
Frédéric Junod
3c863c8c2f mergejs: Remove white space around filename. No functional change. (closes #2026)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9170 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-02 10:35:21 +00:00
Éric Lemoine
4254d1efdf Control.GetFeature should abort requests with protocol.abort() instead of response.priv.abort(), r=ahocevar (closes #1999)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9165 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 16:25:35 +00:00
crschmidt
339f5bf8f6 Strategy.Fixed should listen to refresh event, (Closes #1939), r=tschaub
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9164 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 16:20:23 +00:00
ahocevar
5b61fdafd1 fixed ProxyHost path
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9163 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 16:00:54 +00:00
ahocevar
f37ee550f4 Changed example to follow our well known structure. Now it also works in IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9162 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 15:59:52 +00:00
ahocevar
bfc17248e9 Fixed styleNames creation for layers with mixed strings and arrays.
Thanks dwins for spotting this and the quick patch, which, btw, was 
perfect (i.e. with unit tests that show the problem). r=me (closes #2025)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9161 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 15:39:58 +00:00
ahocevar
b1c11b9814 changed the renderer's getRenderLayer method to getRenderLayerId, which
always works even if the layer is not added to a map. Also removed an 
unneeded map.events.unregister from Control.SelectFeature. r=elemoine
(closes #2022)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9160 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 13:43:53 +00:00
ahocevar
59c49eb98e Added WMSGetFeatureInfo control. Thanks dwins for the patch. I made the
following modifications:
 * WMSGetFeatureInfo class was contained twice in WMSGetFeatureInfo.js. 
Removed one.
 * Fixed @requires
 * Added vendorParams option (with test) to allow for e.g. adding custom 
params like RADIUS
 * Changed the clickPosition key in the getfeatureinfo event parameter 
to xy to comply with other event parameters in OpenLayers
 * Modified concatenation of layerNames and styleNames as proposed in my 
previous comment
 * Made a separate handleResponse function from the previously closured 
callback function and added xy to the scope
 * Fixed some ND comments, especially removed links (<..>) from object 
types that cannot be linked (e.g. {String})
 * Inserted line breaks where lines exceeded 80 chars
 * Fixed test for format option, because this is now formats and has a 
different type
 * Fixed tests in the example (this is no US census data)
 * added ProxyHost and absolute WMS url to the example
 * removed custom format from the click handler in the example so users 
can also see the simpler instantiation with the default formats
r=me (closes #2007)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9159 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 09:13:23 +00:00
Tim Schaub
85888788ea Consistent list type for layer events.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9158 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 22:16:05 +00:00
Tim Schaub
8b58d97206 Consistent list style for vector event types.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9157 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 22:11:21 +00:00
Tim Schaub
fe0ddf9f21 Various other ndoc tweaks for controls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9156 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 22:05:30 +00:00
Tim Schaub
deaa52477b Fixing up ndocs for ZoomPanel.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9155 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:59:41 +00:00
Tim Schaub
8ba31e4a91 Consistent event type listing for controls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9154 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:57:08 +00:00
Tim Schaub
ffe3f90ffb NaturalDoc menu updates.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9153 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:52:53 +00:00
Tim Schaub
a8c1973d27 Making example header like others.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9152 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:42:15 +00:00
Tim Schaub
a6e84ae192 Adding an events instance to the OpenLayers.Request object. Register listeners for complete, success, or failure events. These events are triggered after every request is issued. Original patch from tcoulter. Changes from ahocevar, elemoine, and me. r=me (closes #1933)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:41:16 +00:00
Tim Schaub
2ab6c404e1 Adding the ability to change the aspect ratio of features while resizing with the modify feature control. Thanks for the patch rdewit! r=me (closes #1975)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9150 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:36:11 +00:00
Tim Schaub
ef23accd13 Allowing for multiple feature types in a GML doc. Thanks bartvde for the patch and tests. r=me (closes #1838)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:22:48 +00:00
ahocevar
0c1fe31b0a added missing semicolons; while at it also introduced some array length caching and simplified var assignments. Non-functional change. Thanks rot for spotting this. (closes #2019)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9147 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 16:39:28 +00:00
ahocevar
61b5293692 Added WMSDescribeLayer format. Thanks bartvde and sbenthall for the patch. I made some minor modifications:
* changed file structure to match other formats (i.e. put version 1.1 parser in a WMSDescribeLayer subfolder)
 * fixed a type in the example which showed owsURL instead of owsType
r=me (closes #1201)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9146 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 15:06:02 +00:00
Éric Lemoine
cf5aa98cce minimize triggerEvent code path when no listeners, r=tschaub (closes #2014)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9142 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-28 16:17:54 +00:00
Tim Schaub
8bac39243f Removing an unnecessary var and adding a semicolon. Just running jslint on some random files.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9141 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-28 02:07:57 +00:00
ahocevar
44ab482e89 addad namedLayersAsArray option to Format.SLD.v1. Patch by tschaub and
me, r=tschaub,me (closes #2005)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9140 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-27 08:39:15 +00:00
Tim Schaub
a9e087b5b9 Writing sld:Mark fill and stroke in cases where graphicName is not provided. r=ahocevar (closes #2008)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9139 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-27 02:02:58 +00:00
Tim Schaub
84fa9dd1ae Adding gml namespace to SLD format for writing spatial filters. r=ahocevar (closes #2006)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9138 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-27 02:00:15 +00:00
Tim Schaub
cd899ab11e Changing the draw feature example to use the default drawing behavior. To enable freehand drawing, use the shift key.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9135 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-26 15:35:11 +00:00
crschmidt
05658f1231 Add a panDuration property to the map. This allows for a workaround for
VirtualEarth panning with markers which causes drift, using the 'novibrate'
example. Tests continue to pass. r=me (Closes #1947)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9130 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-24 21:38:57 +00:00
Tim Schaub
807706219b Adding a slideRatio property to the PanZoom control. Setting this will cause the pan buttons to pan the map by a ratio of the map dimensions. A slideRatio of 0.5 will cause pan up to pan by half the map height. Thanks for the patch and tests sbenthall. r=me (closes #1998)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-24 20:27:51 +00:00
Tim Schaub
273c7ab5d2 r9113 came with one minor typo in the PanZoom tests. Tests now pass. (see #1949)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9128 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-24 20:17:32 +00:00
pgiraud
2ee964ba55 Added missing requirement, no functional change, patch from aabt (Closes #2003)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9127 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-24 09:52:17 +00:00
ahocevar
3be75cc8d9 Improvements to the WMSGetFeatureInfo format which was not able to parse
some Mapserver responses. Thanks adube for the patch. r=me
(closes #2002)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9123 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-23 20:20:47 +00:00
Tim Schaub
3e55ef6aa3 Adding a threshold property to the cluster strategy. If a threshold set, clusters will only be created if the number of features in a group meets or exceeds the threshold number. r=elemoine,crschmidt (closes #1815)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9119 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-23 17:34:28 +00:00
ahocevar
85dc3a9880 made global variable features in parseData local. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9117 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-22 20:35:12 +00:00
ahocevar
2b1e8641f9 SelectFeature control can now select across multiple vector
layers when passed an array of layers instead of a single layer with 
the constructor. This changeset also introduces a new layer type, 
Layer.Vector.RootContainer, which will be set as the topmost layer by 
the SelectFeature control and collect the svg/vml/canvas roots of 
multiple vector layers. r=crschmidt (closes #1666)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9116 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-22 14:25:18 +00:00
crschmidt
5c26d578ca In order to make subclasses of Layer which support edge tiles which are of a
size which is not the same size as all the tiles on the layer (as is the case
in Zoomify layers), change Tile.Image to use the size passed in on construction
instead of this.layer.tileSize. All tests still pass, should have no functional
change for all existing layers. patch by pascalou, r=me (Closes #1496)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9115 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-22 00:11:45 +00:00
ahocevar
fdb267987b Fixed rendering issues in (vector) layers when map div has dir="rtl"
set. 
r=crschmidt (closes #1778)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9114 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-21 21:38:42 +00:00
ahocevar
7130992b16 better cleanup for ZoomBar and PanZoomBar. Fixes a memory leak.
r=crschmidt (closes #1949)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9113 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-21 20:13:26 +00:00
crschmidt
65e4ce3e47 add logic in Layer.WFS to prevent sending a BBOX when a 'filter' parameter is
active. This behavior is unsupportd in WFS, given an error message, so this
is a way to protct people aganst that. However, users should be aware that the
best way to do this probably to use Protocols and Strategies right now; 
this is a fix for those getting caught out by this issue until they can
switch. Originla patch by Jachym, r=me (Closes #1734)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9112 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-21 13:24:40 +00:00
Tim Schaub
f06b11d878 Deciding that setCenter deserves a bit of docs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9107 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-20 17:47:20 +00:00
ahocevar
0a6ea3125d always include field type in DescribeFeatureType fields. With
modifications from tschaub. r=tschaub (closes #1202)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9106 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-20 17:26:40 +00:00
Tim Schaub
7e35022dff Updating the sundials spherical mercator example a bit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9101 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-19 23:34:56 +00:00
ahocevar
567d32f35f Suport for tooltips on externalGraphics using the graphicTitle
symbolizer property. Only supported in IE and FF. Patch by zspitzer, 
modified by me (added some docs, moved code that sets the title tag so 
it gets executed for externalGraphics. p=zspitzer, r=me (closes #1946)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-19 18:53:15 +00:00
crschmidt
e49f1435bc Fix for autoSize popups too big when panMapIntoView is false, r=euzuro,
(Closes #1957)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9092 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-19 17:33:27 +00:00
Éric Lemoine
22af9d6412 permit abstract classes (an abstract class being a class without an "initialize" method) as parent classes, final patch from tschaub, r=tschaub (closes #1987)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9091 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-19 14:29:12 +00:00
Tim Schaub
66b4cd65f6 Don't remove the drag control's reference to the feature on up. This is intended to solve issues with fast dragging. Thanks for the patch bjornharrtell. r=me (closes #1196)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9090 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 21:56:53 +00:00
crschmidt
c6a7dd235d Add ExtendedData support to KML. r=tschaub, patch mine + his comments,
thx to rdewit for initial help/pointers, (Closes #1955)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9089 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 18:15:47 +00:00
Tim Schaub
baf260c6f1 Adding an option to make the bbox strategy more agressive. Thanks for completing the tests crschmidt. r=crschmidt,igrcic (closes #1830)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9087 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 17:42:14 +00:00
Tim Schaub
eb03ccc02d Modifying the loader script to check more carefully for the location of OpenLayers.js - allowing folks to have scripts called things like foo-OpenLayers.js. r=crschmidt (closes #1888)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9086 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 15:57:41 +00:00
crschmidt
6708f691e2 in situations where a framed popup has a minSize set which isn't big enough
to hold all the blocks, it is possible that the popup will throw an error.
Though this is a configuration error, it is unlikely to be run across in
typical development, so we'll be nice to the user and protect them from
this mistake. (Closes #1891)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9085 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 15:47:37 +00:00
crschmidt
2c177fc85c Adding a ruler, contributed by smcmurray. Not used anywhere, but if someon
wants it, they can have it. (Closes #1913)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9084 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 15:43:25 +00:00
crschmidt
5e387191d5 make zoomWorldIcon an APIProperty. (Closes #1985)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9083 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 15:34:38 +00:00
Tim Schaub
5497e3a272 Additional ndocs for geometry.equals.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9074 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-17 18:31:46 +00:00
Tim Schaub
b505822fd1 Additional ndocs for geometry.move.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9072 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-17 18:26:15 +00:00
Tim Schaub
576e931dac Adding support for cloning rules and filters. r=ahocevar (closes #1919)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9071 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-17 16:08:12 +00:00
ahocevar
7fa74f1b0b examples for #1901
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9069 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-17 12:34:41 +00:00
ahocevar
082107b2a0 Added alternatvie way to initialize the map object, without passing a
div to the constructor. Original patch by tcoulter, modifications by
me and tschaub. r=tschaub (closes #1901)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9068 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-17 10:56:54 +00:00
Tim Schaub
7af042ac7f Adding more support for sld:TextSymbolizer parsing. Reading TextSymbolizer, Label, Font, Halo, and Radius. Writing symbolizer fontWeight and fontStyle as sld:CssParameters. Writing sld:Halo and sld:Radius. r=ahocevar (closes #1984)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9064 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-17 00:14:26 +00:00
pgiraud
291d2e27f6 mapnik layer declared twice, removing the first one
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9057 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-16 08:59:04 +00:00
Frédéric Junod
cea2bdd3a1 set Protocol read, create, update, delete and commit APIMethod. r=tschaub (closes #1660)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9054 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-16 07:05:56 +00:00
Tim Schaub
483c6ea4e6 Rolling back the parts of r9051 that were not really part of #1987. These changes will come with a review of #1556. Thanks to elemoine for catching this. (see #1987, #1556)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9053 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-16 04:23:41 +00:00
Tim Schaub
f9e9eb61ae Modifying bounds.intersectsBounds to it catches bounds intersections where corners of one bounds are not contains in the other bounds. Thanks for the review. r=sderle (closes #1951)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9052 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-15 03:44:22 +00:00
Tim Schaub
49d6463f4e r8455 introduced good changes to Class.js that gave us useful instanceof results. This change also made is so that people using the Class function to extend from non-OL constructors were unwittingly modifying their prototypes (by giving them an initialize property whose value was undefined). By ensuring that the parent prototype has an initialize property already, we don't add anything unexpected. r=crschmidt (closes #1987)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9051 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-15 01:31:11 +00:00
crschmidt
8df8106a51 fix for Layer.GML has some problems with load events r=tschaub (Closes #1747)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9050 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-14 17:06:46 +00:00
crschmidt
2a8015775b Add support for georss:box parsing, and parsing of summary as fallback for
'content'.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9049 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-14 17:05:38 +00:00
Tim Schaub
13833e0a67 Unmixing line endings. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9038 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-12 20:04:34 +00:00
ahocevar
086506b926 use String(boolean) instead of encodeURIComponent(boolean) to convert boolean to string. r=tschaub,crschmidt (closes #1982)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9035 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-12 18:42:13 +00:00
Tim Schaub
4975ed8fd1 Adding missing semicolon.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9031 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-12 16:48:27 +00:00
crschmidt
ece39fb1b5 Fix missing semi-colon in Geometry.js, pointed out by rod in trac.
(No functional change.) (Closes #1981)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9030 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-12 14:27:53 +00:00
crschmidt
458461c779 Give the WMS Layer an option to turn off the 'magic' of changing format and
baseLayer state, since that magic can sometimes be problematic. Patch by
part, cleaned up a bit by me, r=me, (Closes #1980)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9029 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-12 14:19:11 +00:00
ahocevar
d2c0182fd9 Preserve aspect ratio for custom symbols in the vml renderer. Original
patch by fredj, refactored by me, r=pgiraud. (closes #1836)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9026 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-12 13:19:06 +00:00
Schuyler Erle
e89774d568 Fix #1951 by rounding all floats passed to Bounds.initialize() and
LonLat.initialize() to 14 significant figures.

Added an OpenLayers.Util.toFloat() function, and changed the LonLat constructor
and the Bounds constructor to truncate all float parameters to 14 significant
figures to avoid numeric comparison errors caused by floating point precision
loss. See the comments around the definition of
OpenLayers.Util.DEFAULT_PRECISION for how it works.

Also refactored Bounds.intersectBounds() for readability, and added a
Bounds.touchesBounds() in the process. After tweaking the tests for
Layer.SphericalMercator and Format.WKT (because they were expecting too many
significant figures), all tests pass.



git-svn-id: http://svn.openlayers.org/trunk/openlayers@9022 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 22:45:32 +00:00
Tim Schaub
9afcb939be Add docs to clarify that distanceTo measures distance on x-y plane only.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9015 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 19:24:56 +00:00
crschmidt
b682f76f95 Mark calculateInRange as an API property. (comment only)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9014 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 17:31:52 +00:00
Tim Schaub
f65e76db2d That yellow was melting my eyeballs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9013 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 14:57:00 +00:00
Tim Schaub
713cfb600b updating wms url for imagery
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9011 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 14:17:07 +00:00
Tim Schaub
47a66ceff5 Working imagery.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 14:14:28 +00:00
Tim Schaub
f80fc57b8d proxy chasing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9009 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 13:51:10 +00:00
Tim Schaub
b00989cbd8 Adding tooltips.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9008 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 13:48:40 +00:00
Tim Schaub
be06680e85 proxy chasing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9007 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 13:38:19 +00:00
crschmidt
8586e460a0 update mapguide layer example and tests to use a more stable server. No
functional change. (Closes #1757)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9006 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 06:22:24 +00:00
crschmidt
a058555c62 remove synchronous behaviour for MapGuide overlay layers with newer MapGuide.
Patch by madair, reviewed by kseograf with comments, r=me (Closes #1756)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9005 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 06:19:41 +00:00
crschmidt
718495bcec Add Mapguide Layer http served tile support. Patch from madair, positive
comments on usage from community members, r=me. (Closes #1622) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9004 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 06:15:30 +00:00
ahocevar
612e95793c Added GetFeature control to get features based on spatial filters
created by clicking or dragging boxes on the map. Thanks tschaub for the 
review and the final patch with valuable improvements. r=tschaub
(closes #1936)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9003 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 23:31:53 +00:00
Tim Schaub
9e3bf16b0d Marking the api.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9001 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 22:36:37 +00:00
Tim Schaub
8c0d034516 Add a control that acts as a split agent. The control can be configured to listen for edits on any source layer or can create a temporary sketch layer for creating a split source. Source features will be used to split targets on a target layer. The deferDelete option tells the control to modify feature state instead of destroying split features (for use with a save strategy and a protocol that persists changes). r=ahocevar (closes #1972)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8998 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 22:06:19 +00:00
ahocevar
7db0265495 added fromWMSLayer convenience function to Protocol.WFS. Thanks tschaub
for the improved patch. r=tschaub (closes #1937)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8993 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 20:11:07 +00:00
crschmidt
c1315bbb0c "Unsetting tile.src causes browsers to stop loading tiles more reliably",
r=tschaub, (Closes #1978)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8991 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 18:09:27 +00:00
crschmidt
10bc8f5726 "Switching between google layers after map resize", after map size change, as
is used by mapfish and others, the google map can get confused as to its size
and not resize correctly. This patch changes that so that the check happens on
moveTo, so we know if the map has resized. The checkResize is a cheap call in
the default case. r=me, patch by gregers, (Closes #1797)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8990 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 18:07:53 +00:00
Éric Lemoine
4a4cc13e86 "hanlerOptions" should be "handlerOptions" in the options passed to the Haldler.Click ctor, thanks to Erwin Poeze for catching this, no funtional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8986 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 15:31:46 +00:00
crschmidt
5b4746aca6 fix duplicated tests in WMSGetFeatureInfo.html (double-patch applied)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8985 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 13:23:55 +00:00
euzuro
04dfe9c552 Make the derivation of the '_contentDivPadding' value safe in the case where the popup is already added to the map's containerDiv. (Closes #1938)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8980 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 05:14:01 +00:00
crschmidt
fe20406714 Add patch to build tools to allow comments in build profiles. patch from
jwpage, r=me (Closes #1541)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8979 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 04:09:30 +00:00
crschmidt
861ef81552 fix for WFS-T delete and update have improper typeName. Includes tests.
Vague +1 from tschaub. WFS format now matches the more modern WFS-T v1 format
as confirmed by cargo culting the WFS-T tests. (Closes #1787, #1471) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8978 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 04:04:59 +00:00
crschmidt
676475d902 "Always zoom in/out while drawing the zoom box." Patch from jachym, tested
and example added by vdeparday. r=me. (Closes #1771)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8977 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 03:50:01 +00:00
Tim Schaub
1ed1584320 Style constructor accepts a rules array. These rules will be added to the style. r=ahocevar (closes #1964)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8975 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-09 22:26:05 +00:00
Tim Schaub
a10b319413 Add split method for linestring and multilinestring geometries. Use for splitting one geometry with another. Optionally performs a mutual split. r=ahocevar (closes #1929)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8974 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-09 22:19:07 +00:00
Tim Schaub
837efd0b9c Loading strategies now trigger loadstart and loadend events. r=crschmidt (closes #1840)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8973 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-09 22:17:23 +00:00
crschmidt
97f4ad54a3 tileOrigin is gone, remove it from tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8972 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-09 15:55:34 +00:00
Tim Schaub
f64d554a38 Removing dash that ndoc misinterprets.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8967 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 22:24:31 +00:00
crschmidt
e4b161efd1 kill extra comma in example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8963 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 19:24:09 +00:00
Tim Schaub
4d1d172be0 The style:'default' hack is no longer needed here.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8960 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 18:28:59 +00:00
Tim Schaub
7ed1aaea29 Add logging for vertexmodified and sketchmodified to modify example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8958 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 17:58:00 +00:00
crschmidt
fff6be4920 Add a string format speed test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8957 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 17:42:41 +00:00
Tim Schaub
c2d47cf46f Making it so features with DELETE state get drawn with the 'delete' rendering intent. The default symbolizer used for the delete intent has display property set to 'none'. This means features with DELETE state will be erased (if already drawn) the next time layer.drawFeature is called. If you want to have features with DELETE state drawn in a partially opaque gray (for example), create a custom style map or change the default delete symbolizer. r=crschmidt (closes #1953)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8956 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 17:20:34 +00:00
crschmidt
d2656e002a Fix for "WFS.setOpacity() doen't work properly". (Closes #1868) r=elemoine
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8952 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 13:14:34 +00:00
Tim Schaub
9b6894644b Adding a snapping agent for snapping geometry components to existing components while editing. r=ahocevar (closes #954)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8951 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-05 23:04:07 +00:00
crschmidt
930adf45c0 Fix to display only one unit on scaleline in IE. Previously, this worked in
most browsers, but not IE. Includes a test, tested on IE6 and IE7. Patch
by zspitzer, r=me, (Closes #1478)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8950 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-05 13:46:58 +00:00
crschmidt
b72748e2c6 Fix silly typo in @requires statements.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8949 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-05 13:23:23 +00:00
crschmidt
2f367f6b8c OpenLayers.Console is used throughout the code, but not added as a dependancy.
Add @requires statements to pull it in everywhere it is needed. Since Console
is so small -- 634 bytes -- this should have a limited impact on anyone with a
custom build profile. (Closes #1549)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-05 13:07:42 +00:00
Tim Schaub
0379e028ba Adding support for backgroundWidth and backgroundHeight properties on symbolizers. If not provided, background graphics are rendered with graphicWidth and graphicHeight values (or pointRadius if not provided). r=ahocevar (closes #1968)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8947 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 23:56:09 +00:00
Tim Schaub
a8c6c2c159 Documents for a few more symbolizer properties.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8946 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 23:40:55 +00:00
Tim Schaub
9e73bd82d7 The getVertices method now returns all points, endpoints only, or all except endpoints. r=crschmidt (closes #1966)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8945 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 15:46:00 +00:00
Éric Lemoine
95206bdeae enable programmatically calling the clickFeature metod of the select feature control, r=crschmidt (closes #1449)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8944 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 12:45:24 +00:00
crschmidt
1b370297d4 change url for shrinksafe service. (Closes #1568)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8943 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 12:41:35 +00:00
crschmidt
95c178adf2 A brilliant patch adding better documentation to all of our controls from an
unnamed contributor on OpenLayers trac. (Closes #1751)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8942 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 06:30:15 +00:00
crschmidt
92fe77f25c removing untriggered popupopen, popupclose events from the map docs.
These events were never fired. (Closes #1746) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8941 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 06:28:25 +00:00
ahocevar
47bcb9bd8d Possible fix for an issue in IE6 that causes this.element.scrolls to be
nullified while being created in getMousePosition. This behavior seems 
to be due to a bug in IE6 (it appears that two event handlers are 
running in separate threads, which should never happen). The 
proposed patch does nothing but improve the coding style of setting 
scrolls and lefttop, and it seems to fix the issue. p=rdewit, r=me 
(closes #1952)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8936 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-02 15:27:39 +00:00
Éric Lemoine
15efd8db2f add abort method to wfs protocol, r=tschaub (closes #1943)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8933 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-02 11:13:22 +00:00
Frédéric Junod
a0678fa739 Layer.TileCache, Layer.TMS: support a subset of server resolutions. r=tschaub (closes #1944)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8932 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-02 08:21:01 +00:00
crschmidt
4dc36e4d80 "Remove unused 'tileOrigin' code from TileCache layer", (Closes #1076). Though
the idea behind this is good, having the code here and unused is not the right
thing to do. (See #1302) for a better attempt at what this should actually be.
The reason this code exists is almost certainly a carggocult from Layer.TMS,
which *does* have a tileOrigin, and I'm pretty sure tschaub started by copying
from that. r=me, though it's mostly just docs. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8930 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-02 02:32:11 +00:00
crschmidt
05887ecf50 fix for WFS Layer getDataExtent always pulls from markers subclass, r=tschaub
(Closes #1725)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8929 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-02 02:06:01 +00:00
Tim Schaub
0a62e921b2 Adding support for writing wfs:Query with limited property names. Patch from bartvde, tests and mods from me. r=me,ahocevar. (closes #1827)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8928 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 23:04:16 +00:00
ahocevar
a80e1e52c2 Cast values containing numbers into Number objects in Filter and SLD
format to ensure correct comparison of scale denominators against map 
scale  and filters against features. Introduces a new 
OpenLayers.String.numericIf function. r=fredj,tschaub (closes #1874)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8927 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 22:19:17 +00:00
crschmidt
e58d820685 tiny update to natural docs based on patch from anonymous submitter.
(Closes #1963) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8926 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 20:50:30 +00:00
Tim Schaub
80fa2b789b Correcting what was the result of a patch applied twice - thanks for the catch elemoine. r8920 added the WMSGetFeatureInfo format with the class definition repeated (and slightly different). (see #1812)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8925 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 20:35:05 +00:00
Tim Schaub
fecda8f089 Adding a keepData option to formats. If true, formats will be given a reference to the parsed data (named data) after a read. Use this when you need to access part of the structure that was not extracted in creating features (for example). Note that for versioned parsers, the data property is available on format.parser.data. Thanks for the patch sky. r=me (closes #1753)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8924 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 16:37:07 +00:00
Tim Schaub
c7afe8e134 Triggering loadstart and loadend events for the Image layer. Thanks for the excellent patch sky. r=me (closes #1700)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8923 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 16:07:50 +00:00
Tim Schaub
654291ecff Adding layerParams property to WMC options. This lets WMC users set params to be used on WMS layers that are different from the WMS layer defaults and not present in the WMC doc. Thanks for the patch bartvde. r=me (closes #1513)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8922 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 15:32:47 +00:00
Tim Schaub
97e55039ea Adding support for reading and writing spatial filters with Within, Contains, and Intersects elements. Thanks pvalsecc for the original patch. r=ahocevar (closes #1959)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8921 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 05:40:21 +00:00
ahocevar
9359cf0dc1 WMSGetFeatureInfo class with tests. Should have gone in with my previous
commit, but forgot to svn a. (see #1812)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8920 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 00:19:17 +00:00
ahocevar
f7deb57384 Added WMS GetFeatureInfo format. This new format can read GML, Mapserver
and Arc* style feature info results. Thanks crschmidt and 
tschaub for testing and improvements. p=bartvde, r=tschaub,me (closes 
#1812)
r=tschaub,me.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8919 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 00:16:17 +00:00
crschmidt
2733d8d6a3 Fix to ArcGIS tests in Safari; copy params for each test, so they're not
contaminated by other tests. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8918 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 22:20:41 +00:00
crschmidt
dd393122aa Create a Layer class to access the ArcGIS 9.3 Map Export service. Patch by
Jeff Adams, from Avencia. r=me. Tested with the default service, and several
other example map services from ESRI (like
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/export).

Note that I don't believe this takes advantage of map caches; if we create a
seperate layer for that, we should probably create a Layer.ArcGIS. namespace.

(Closes #1749)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8917 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 21:53:22 +00:00
Tim Schaub
4d2d90ca51 Filter formats inherit from GML formats. WFST formats inherit from Filter formats. This lets you do things like set xy on the filter format if you specify an srsName for which wy is false. r=crschmidt (closes #1962)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8916 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 21:45:01 +00:00
Tim Schaub
a55bef1cba Symbolizer property docs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8913 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 21:00:34 +00:00
Tim Schaub
2d8489f6f2 Updated gmap key.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8910 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 19:50:22 +00:00
crschmidt
932d579447 Change ordering of termsOfUse/copyright removal, so we get the right CSS class
names. Patch from #1858. (See #1958). r=me 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8907 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 18:14:12 +00:00
crschmidt
d9e466f645 Fix from gregers, patch cleaned up by Erik for, "Util.getRenderedSize does not
calculate with inherited style". Includes manual regression test. r=me, (Closes
#1906). CLA on file.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8906 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 18:00:10 +00:00
crschmidt
1f39c4dbd1 Per discussion a month ago with erik, he agreed with pgiraud that
framedCloud.css was unneccesary. Combining this into theme/default/style.css,
and removing from examples. Only changes examples and theme, so committing
without review. (Closes #1750)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8905 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 17:44:27 +00:00
crschmidt
bfaf22f22d Fix broken positionBlocks, which cuased overlaps. This is neccesary to easily
handle semi-transparent alternatives to the main framedcloud image.

r=me, (Closes #1737) 



git-svn-id: http://svn.openlayers.org/trunk/openlayers@8904 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 14:06:31 +00:00
Éric Lemoine
5a68638971 remove unused variables, no functional change, thanks to pvalsecc for catching those as part of #1959
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8902 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-27 15:15:30 +00:00
crschmidt
b625e9f12f Fix for "BaseTypes.String.Format does not support sub-elements", patch + tests
from rdewit, r=me, (Closes #1956)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8900 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-27 00:44:20 +00:00
Éric Lemoine
f04f203499 ghost features stay displayed with select feature control, r=pgiraud (closes #1865)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8899 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-26 15:19:43 +00:00
Tim Schaub
218ab8c9c6 Updating the WFS protocol demo.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8895 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-25 22:02:50 +00:00
Tim Schaub
3eddc6cc44 Passing the temporary rendering intent to the temporary sketch layer. Related Point.js changes in r8831. r=elemoine (closes #1634)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8890 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-25 14:38:26 +00:00
crschmidt
31dd2e65bd Followup to r8519; fix styleurl parsing as well. Includes new KML modifications
to examples to show styleurls in action. r=me (Closes #1796)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8882 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-21 13:43:21 +00:00
Tim Schaub
d4c94eb1e6 Adding copyright notice.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8879 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-21 04:30:28 +00:00
crschmidt
dd27c501d8 make panMethod an API property. Since this is the only way to turn off animated
panning, it makes sense to support users who want to change this.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8871 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-19 19:54:37 +00:00
Éric Lemoine
dbc6e54403 OpenLayers.Class is not a constructor, trivial, non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8870 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-18 06:31:01 +00:00
Éric Lemoine
d8a8526cde add missing semi-colon, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8869 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-18 06:26:35 +00:00
Tim Schaub
55f40e224a Adding a WFS protocol. This allows for creating, reading, updating, and deleting features via WFS. Huge thanks to ahocevar for the test writing and review. r=ahocevar (closes #1648)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8868 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-18 00:07:43 +00:00
crschmidt
8274b648e8 Yahoo! Maps API supports more zoom levels. Use them by default. (Closes #1384)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8864 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-17 12:05:39 +00:00
ahocevar
8e7c7d5528 Add WFSDescribeFeatureType format. This work is based on bartvde's owsformats sandbox. The unit tests were directly taken from that sandbox and only modified to reflect the slightly modified output format of this rewrite. Thanks to Bart for his initial work and the good discussion on the dev list. r=elemoine (closes #1202)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8858 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-15 21:58:20 +00:00
Tim Schaub
df920a88d5 Adding getVertices method to all geometries. Call with nodesOnly true if you only want endpoints (of lines and multilines). r=crschmidt (closes #1192)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8842 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-05 22:49:03 +00:00
Tim Schaub
dd70dceef9 Correcting what was a mistake in r8805. Original patch was good. The autoPan property should default to false. Apologies for the failing tests. r=crschmidt (closes #1770)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8841 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-05 22:45:52 +00:00
crschmidt
5cc2445a6a geometry.resize returns obj for chaining. r=tschaub, (Closes #1931)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8840 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-05 22:28:22 +00:00
Tim Schaub
3274491b95 Adding distanceTo method to all geometry types. This calculates the shortest distance between any two geometries. For geometries that are entirely contained within polygons, the distance returned will be the distance to the nearest edge. Set the edge option to false to return 0 in cases where one geometry contains another. Details about the distance calculation can be returned by setting the details option true. Details include information about endpoints of the shortest segment between the two geometries. r=ahocevar (closes #1907)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8836 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-05 17:43:34 +00:00
Tim Schaub
41670499b1 Adding vertexmodified, sketchmodified, and sketchcomplete events to the vector layer. These are triggered by the DrawFeature and ModifyFeature controls and let listeners know about newly drawn features and modified features. r=ahocevar (closes #1904)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8835 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-05 17:38:20 +00:00
Tim Schaub
f4bae0a011 Adding support for a modify callback in the sketch handlers. This lets controls know about each sketch modification as a sketch is being drawn. Also a bit of a refactor of the sketch handlers to share sketch geometry parts. r=ahocevar (closes #1903)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8831 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-04 22:45:16 +00:00
crschmidt
112debe5f5 resetBackBuffer should hide the backBufferTile as pat of resetting it.
Patch from ksgeograf, r=me,pagameba. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8827 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-04 20:55:11 +00:00
Tim Schaub
6f38974fc3 Parsing emtpy attributes in GML as empty strings. Thanks for the patch bartvde. r=bartvde,me (closes #1927)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8824 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-04 18:33:13 +00:00
Tim Schaub
a84a9c1144 Adding a strategy for saving newly added or modified features. Setting the auto property to true gives you auto-saves with every addition/modification. Setting auto to a time (in seconds) gives periodic auto-save of all new/modified features. By default, the save method must be called to trigger save. r=ahocevar (closes #1924)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8818 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-04 00:57:26 +00:00
Tim Schaub
7582cc076e Refactor SLD format a bit to use methods from XML format. The SLD format (v1.0) now inherits from the filter format (v1.0.0). r=ahocevar (closes #1843)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8817 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-04 00:53:58 +00:00
ahocevar
85a59b21ac fixed a caching issue with asynchronous requests in IE. r=igrcic, tschaub (closes #1896)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8816 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 23:09:39 +00:00
Tim Schaub
f9939f1cfe Filter enhancements. Adding support for serializing filters with Filter Encoding 1.1. Adding matchCase attribute to filters with binary operators. Refactoring filter formats to use methods from base XML format. r=ahocevar,adube (closes #1790)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8812 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 22:28:48 +00:00
ahocevar
ebed733327 Create Fill and Stroke nodes only for PolygonSymbolizers that actually have fill and stroke symbolizer properties. r=tschaub (closes #1879)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8811 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 22:25:37 +00:00
Tim Schaub
64f2c94c29 Adding a test to confirm that reading of boundedBy works for GML 2 as well (see #1918, #1613)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8809 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 21:01:32 +00:00
Tim Schaub
9ecfc61fb5 Changes to GML 2 and 3. GML 3 now supports gml:Curve, gml:Surface, and the multis - with options to write the deprecated elements. Now reading boundedBy on features as geometry.bounds. Corrected lowerCorner and upperCorner elements. Added ability to build without the old gml parser. r=ahocevar,adube (closes #1918)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8808 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 19:49:06 +00:00
Tim Schaub
742b066aa7 Add an autoPan property to the overview map. Set this to true if you want the extent marker to return to the center of the overview map after you drag it. Thanks for the patch jachym. r=me (closes #1770)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8805 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 00:52:07 +00:00
Tim Schaub
3edb925487 Strategies that request data (fixed and bbox currently) should transform geometries when the layer projection is different than the map projection. This adds reprojection support to the Fixed and BBOX strategies. Given more strategies that request data, we will likely want to extract out the common parts. r=elemoine (closes #1841)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8804 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 00:12:27 +00:00
Tim Schaub
0a5204533d Restoring order to the universe.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-30 22:51:35 +00:00
Éric Lemoine
a107ab04e4 Add the "readWithPOST" boolean option to OpenLayers.HTTP. If "readWithPOST" is true then read operations are done using POST requests instead of GET. This is useful when one needs to send lots of data as part of the request. p=aabt, r=crschmidt,me (closes #1917)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8797 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-30 16:24:38 +00:00
crschmidt
f4c0923bf5 Fix broken documentation.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8796 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-30 11:59:40 +00:00
ahocevar
8f77f9e511 boolean values of xml nodes need special treatment in IE. r=crschmidt (closes #1883)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8779 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-29 16:01:12 +00:00
Éric Lemoine
88fd0519ea make it easier to change the delay passed to the delay_call func, test only, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8778 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-29 12:39:37 +00:00
crschmidt
32ca128b18 Simple fix to KML style parsing (from Edgemaster). This change makes getStyle
return clones. Since the results of getStyle are extended later in the code
by the inlineStyle, this fixes a case where kml.styleUrl symbolizers can 
be changed by <Style> blocks attached to features which share a style.
r=me. (Closes #1578)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8776 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-28 02:07:09 +00:00
crschmidt
256f027c7c Commit a change to the Strategy/Fixed to behave more like GeoRSS/Text/GML
layers, and not load by default if the layer is not visible. Includes tests.
Default Behavior can be changed with 
'OpenLayers.Strategy.Fixed.prototype.preload=true;'. With review from elemoine,
comments from tschaub, review from me. Patch by Edgemaster. (Closes #1852) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8775 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-28 01:43:04 +00:00
pgiraud
be82c1ef6e don't re-append the geometry node if it is already there, a regression is fixed with this patch, r=ahocevar (Closes
#1066)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8766 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-26 14:54:16 +00:00
euzuro
e6b48e3dd8 Seems odd to not expose the 'markers' property on this layer. I have buyin from cr5. If anyone has vehement opinions on this, yell and i'll roll back
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8764 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-24 18:12:21 +00:00
Tim Schaub
fc40bbaa05 These too, right? Unimplemented property docs (see r8752).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8761 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-23 19:06:38 +00:00
crschmidt
12096ace6b Remove hover* properties from documentation. Leaving in code for now, but so
far as I can tell, these would depend on support from some specification, and
the only code on the web which mentions them are duplicate copies of OpenLayers
documentation.

We should probably remove these from the corresponding style blocks as well. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8752 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-23 12:03:32 +00:00
Tim Schaub
e20f0f8cb9 Updating docs for bbox ratio.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8737 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-22 15:48:58 +00:00
Tim Schaub
66ae243890 A bit of docs for the removeFeatures method.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8725 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-21 16:33:30 +00:00
crschmidt
dd47a376aa change website build script to ix typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8724 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-21 12:54:31 +00:00
Tim Schaub
89431424fb Adding a convenience method for creating a WKT format and creating geometries with WKT strings. r=crschmidt (closes #1908)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8696 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-17 01:32:17 +00:00
crschmidt
cb62d883dc Add comments about drawFeature being only for redrawing, not for initial
isualization.  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8685 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-16 15:20:47 +00:00
Éric Lemoine
1f6b239c80 fix Handler.Feature API doc, the handler received a single OpenLayers.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8684 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-16 07:17:05 +00:00
Tim Schaub
37cca38958 Reverting changes from r8664 that were inadvertently committed to the trunk. This gets the SelectFeature control tests passing again. (see #1666)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8675 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-15 21:30:39 +00:00
ahocevar
34599e7f50 updated sandbox with singleroot.3.patch from #1666
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8664 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-14 23:16:53 +00:00
pgiraud
94203ec0f8 decrease numZoomLevels to 2 to ensure that people will not zoom too much, and feel disturbed
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8639 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-13 14:09:15 +00:00
ahocevar
8b08f79898 no longer overwrite "display" symbolizer properties set by the user in
Style objects. r=elemoine (closes #1898)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8620 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 16:22:56 +00:00
crschmidt
e1d294193a test commit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8619 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 13:51:50 +00:00
Frédéric Junod
ebe73eff3d len variable was defined but not used. r=elemoine (closes #1897)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8618 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 13:03:52 +00:00
ahocevar
54cd400e9a added limited support for OGC expressions for SLD Opacity, Size and Rotation. r=tschaub,crschmidt (closes #1875)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8617 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 12:27:27 +00:00
Éric Lemoine
68ad14a047 Handler.RegularPolygon doesn't always call the "done" callback, r=tschaub (closes #1857)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8616 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 09:12:37 +00:00
Tim Schaub
6724cefe5f Adding Danish translation strings from ksgeograf. Thanks for the contribution. r=me (closes #1801)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8615 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 06:27:18 +00:00
Tim Schaub
fe0f4f9060 Adding support for scale calculations for all units supported by the PROJ.4 and CS-MAP libraries. Thanks for the patch madair. r=me (closes #1821)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 06:14:17 +00:00
Tim Schaub
438418c5bb Using the extent provided to the image layer constructor as the default maxExtent. To set a custom maxExtent (as always), use the maxExtent property of the options argument. r=me (closes #1867)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8613 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 05:35:07 +00:00
Éric Lemoine
27e9f855e9 Add support for GeoJSON Bounding Box/Envelope, r=crschmidt (closes #1878)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8582 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-05 14:23:01 +00:00
Tim Schaub
850d69a02f Take care not to handle features without a layer. These are typically destroyed features - but could be some other sort of miscreants. Thanks for the report igrcic. r=crschmidt (closes #1806).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8581 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-05 04:46:34 +00:00
crschmidt
20907c7fa5 Iceweasel doesn't fall into the Firefox bin, but should.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8573 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-27 17:20:57 +00:00
crschmidt
63fe95f519 turn off launching windows when running tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8572 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-27 17:17:53 +00:00
crschmidt
1399653947 Since opening window is the bane of our auto-testing existence -- browsers not
configured to allow popups, and so on -- add an option to turn off opening new
windows. Patch the tests to check for open_window before using it, and bail out
of tests early if they can't find it. By default, the auto-tests.html file will
not allow any window opening. This gives us *slightly* smaller test coverage,
with fewer false positives on test failures. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8571 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-27 17:16:35 +00:00
crschmidt
850d96ae72 update config to match test_ol.py
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8570 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-27 17:01:49 +00:00
crschmidt
1bdce44f92 Capture KeyboardInterrupt, and stop all tests.
And configurability of max test timeout


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8569 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-27 16:53:53 +00:00
crschmidt
8624b3f7fb add server/url to config.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8568 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-27 11:49:48 +00:00
crschmidt
e4257b5d0f add timeouts for tests; if nothing has changed in MAX_TEST_LENGTH, then
give up, because the browser probably crashed doing something. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8566 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-26 23:48:36 +00:00
crschmidt
ec295698b6 fix bugs in writing out failures
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8565 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-26 22:57:55 +00:00
crschmidt
9eda04e31c update; now supports configuration
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8564 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-26 21:30:52 +00:00
crschmidt
40e5c856b6 First step towards automating running of tests via selenium-RC. (Still need
to set up some selenium-RC servers before this is a 'real' thing.)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8563 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-26 17:41:17 +00:00
crschmidt
70f04dcf62 Fix for #1837: IE7 fails to reset tile's backgroundcolor after failure to load
tile image. r=me, patch by eirik.wahl, (Closes #1837) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8562 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-26 16:20:18 +00:00
crschmidt
315b8c2d30 more comments on sources for terms.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8559 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-26 14:23:23 +00:00
Tim Schaub
dfe1282442 Allowing zero fill opacity to be written in SLD docs. The SLD format deserves a bit more of an overhaul (given changes to OL.Format.XML), and we've got decent changes sitting around in various sandboxes, but this is a simple fix for a small problem. r=ahocevar (closes #1884)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8549 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-24 00:10:16 +00:00
crschmidt
1161049ed5 Roll back changes from r8530: As Tim points out (See #1880), this breaks many
tests and other aspects of OpenLayers. This patch should not have been 
committed. For now, revert the change, and then we can discuss a better
solution. (Rolling back change without review.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8548 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-23 23:20:59 +00:00
Tim Schaub
40fb641a52 The createElementNSPlus method should append non-null values to the newly created node. Thanks for the quick review. r=crschmidt (closes #1883)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8545 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-23 20:58:28 +00:00
crschmidt
4a4e7b7e07 fix for KML element "fill" is unsupported, patch by rdewit, r=me, tests by me,
(Closes #1724)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8532 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-21 15:01:11 +00:00
crschmidt
e2319ffa12 parse waypoints last, so that they're on top. patch by Edgemaster, r=elemoine,
(Closes #1763) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8531 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-21 14:43:58 +00:00
crschmidt
34959835fb Map should deactivate removed controls, removal of pythonic lack of ';' caught
by elemoine in his review. (Closes #1880)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8530 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-21 14:42:41 +00:00
crschmidt
998d03770b Build profiles have recursion now, so we remove the extra classes that are
already handled by dependancies.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8527 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-20 15:50:08 +00:00
crschmidt
bc82e37fcf make the map bigger to show the toolbar.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8526 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-20 15:16:31 +00:00
Éric Lemoine
a587ef353e make my picky editing happy and add missing semi-colons, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8520 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-19 14:56:48 +00:00
crschmidt
e7bbf3d6f9 NetworkLinks were not parsed, even is maxdepth was set. Fix that and add a
test to make sure it doesn't regress.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8519 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-19 13:01:11 +00:00
Tim Schaub
10d55cb523 Correcting getResolutionForZoom and getZoomForResolution in the fractional zoom case. Thanks Bart for catching the backwards logic, for the careful debugging, and for the great patch with tests. r=me (closes #1863)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8516 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-18 17:03:44 +00:00
Éric Lemoine
f4e616342c minor doc error & enhancement in Control.MousePostion, p=aabt, r=me (closes #1872)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8494 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-12 08:37:48 +00:00
Éric Lemoine
67f51ad972 it was reported on the mailing list that the hover handler doc isn't sufficient, fix that, thanks for reporting this Mika, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8484 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-10 20:04:29 +00:00
Tim Schaub
304b2cf3ea Cluster strategy should register for moveend on the layer instead of zoomend on the map. p=elemoine,me r=me (closes #1834)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8460 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-06 20:54:51 +00:00
Tim Schaub
f9c814a34a Named mark definitions need to be stored on each renderer root. This change gives each defs node a unique id based on the renderer id. r=ahocevar (closes #1849)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8459 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-06 20:50:50 +00:00
Tim Schaub
da07d0df2f Correct copy/past error.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8447 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-05 15:36:44 +00:00
ahocevar
6c64cb20d9 removing accidently added folders. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8446 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-05 11:33:32 +00:00
ahocevar
68c2cbcebd Made instanceof reflection work for class hierarchies. r=elemoine,pvalsecc (closes #1802)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8445 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-05 11:31:29 +00:00
ahocevar
59bf4105bd added ND comments, removed unused arguments from getBoxCharacteristics. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8444 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-04 21:28:57 +00:00
Éric Lemoine
887ad9677c PanZoomBar: slider can still get out of panzoombar area, all unit tests pass, p=bartvde, r=me (closes #1864)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8424 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-03 08:27:01 +00:00
Éric Lemoine
8c06729f6b #1774 Ability to cancel a Protocol request, r=fredj (closes #1774)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8420 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-28 16:09:40 +00:00
Frédéric Junod
274afe0a5f Keep the Util.alphaHack function result in a cache. r=pgiraud (closes #1825)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8419 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-27 14:23:11 +00:00
Éric Lemoine
b694095a89 moveend never triggered for base layers, p=tschaub,me r=tschaub (closes #1831)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8416 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-25 09:37:21 +00:00
Éric Lemoine
8b2f674ec9 change method name from "downFeature" to "down" in the ND of the "down" method, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8415 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-25 08:04:51 +00:00
crschmidt
04831a0c99 Add more zoom levels to Google example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8414 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-25 03:57:01 +00:00
ahocevar
fb9d8e912a modified logic to determine when a multipart geometry is fully rendered. Thanks to elemoine for the suggestion how to resolve the issue, thanks to igrcic for testing and turning it into a patch, and thanks to tcoulter for additional testing. r=me (closes #1782)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8411 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-24 17:03:24 +00:00
crschmidt
ca30d3df62 map.getCenter() should return a cloned center, so that (for example)
transforming the center doesn't break the map. patch by edgemaster,
r=me, (Closes #1853)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8410 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-23 22:31:12 +00:00
crschmidt
ccbbcd5759 update plan
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8409 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-23 21:31:31 +00:00
crschmidt
6a3db477f0 remove doubled up test_map_center.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8408 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-23 21:25:37 +00:00
Frédéric Junod
d695c29269 Fix a memory leak in Tile.Image when using AlphaHack. r=crschmidt (closes #1848)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8407 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-21 15:04:52 +00:00
crschmidt
d64cec2db2 tabs -> spaces: whitespace only, no functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8406 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-21 14:55:21 +00:00
crschmidt
bdf6aad1bb tabs -> spaces (whitespace only: no functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8405 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-21 14:54:32 +00:00
crschmidt
a000a3d545 rtept and trksegs should be ignored in parsing GPX. Patch from Edgemaster,
r=me. (Closes #1842)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8404 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-21 14:49:44 +00:00
Tim Schaub
40ddec54a3 Remove redundant features.length check. r=fredj (closes #1847)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8398 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-20 11:25:07 +00:00
euzuro
05cd192ba3 give popups a 'closeOnMove' option. if set to true, the popup will close itself as soon as the map is pan/zoom (move)ed. patch by jrf, euzuro review by elemoine, cr5. (Closes #1726)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8397 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-19 15:51:18 +00:00
Tim Schaub
d5950d4b29 Draw and modify controls now set feature state. No longer do we need to check feature state in app code in cases where features are created or modified with these controls. r=elemoine,ahocevar (closes #1833)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8382 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-16 18:26:39 +00:00
Tim Schaub
1566fc252e r7682 removed hover element, update should not assume it exists
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8376 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-15 21:31:56 +00:00
crschmidt
cc4446af86 add docs to build script
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8365 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-14 21:52:23 +00:00
Tim Schaub
0841822725 Please do not set delays under 1 second when testing rendering in a new window.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8356 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-14 16:20:01 +00:00
Frédéric Junod
b415cbbccb fix comment typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8351 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-14 10:23:25 +00:00
crschmidt
07ff407da5 Fix getDataExtent() (vector) manipulates feature: patch from vmx, tests by me,
r=me.  (Closes #1822) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8349 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-13 12:12:58 +00:00
Frédéric Junod
e547d61472 fix comment block. no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8338 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-12 10:17:25 +00:00
Tim Schaub
ea3443c6bc Requiring the base class for WMC.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-11 20:54:22 +00:00
Tim Schaub
f877eb4bd4 Typo in comment.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-11 20:52:10 +00:00
Tim Schaub
e444a05a18 Updating build requirements for SLD format.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8332 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-11 20:51:01 +00:00
Tim Schaub
2153c9e51b Adding more explicit requires directives.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8331 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-11 20:48:26 +00:00
crschmidt
782b052590 Don't run eventpane setMap test in FF, since FF2 and FF3 return different
results.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8326 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-11 15:18:32 +00:00
crschmidt
93d8fa3a9a Add more comments to NavToolbar.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8321 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-11 12:12:15 +00:00
Tim Schaub
c4609c6dea The cluster strategy should check the map resolution instead of trying to get resolution from the layer. There are many cases where the values differ. r=crschmidt (closes #1820)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-10 22:25:33 +00:00
Tim Schaub
e520aea515 Adding a check to make sure features have a geometry before entering the cluster algorithm. r=crschmidt (closes #1816)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8316 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-10 22:23:17 +00:00
Éric Lemoine
7c0fadd14a ModifyFeature makes SelectFeature control behave/become like ModifyFeature, patch=bjornharrtell,tschaub, r=tschaub,me (closes #1741)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8302 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-07 08:46:02 +00:00
Tim Schaub
d82f73e9e7 Excuse me for the hastily modified patch (in r8286). It was centerLonLat that I meant to nullify in a different location. The original patch was good - and the review by elemoine was solid. I just tweaked the patch upon reading his comment and failed to pay attention to what I was doing. So, bounds center is cached and all is well. Thanks for catching this crschmidt. (closes #1814)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8288 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-06 00:42:37 +00:00
Tim Schaub
b9dac66274 Caching bounds center location. r=elemoine (closes #1814)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8286 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-05 22:23:26 +00:00
crschmidt
d9adcf5a4e Support changing the modification key used to draw the zoomBox, from Jachym
with minor modifications. (Closes #1769)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8285 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-05 21:53:34 +00:00
Tim Schaub
b916be5489 The feature handler should not handle destroyed features. Or any features without a layer for that matter. r=elemoine (closes #1806)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8284 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-05 21:23:55 +00:00
Tim Schaub
0d2760831d Adding a test to show that we can stop feature modification from an event listener.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8282 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-05 17:44:51 +00:00
crschmidt
ea9643c56e Update auto-tests from run-tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-04 23:19:34 +00:00
Tim Schaub
b020e0279a Adding requires directive for SLD v1. No functional change. Thanks for the catch Bart. (closes #1810)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-04 16:22:02 +00:00
Tim Schaub
9573f18756 Slightly more realistic mock features. Still no functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8256 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-04 05:28:47 +00:00
Tim Schaub
b9874cdff9 Fewer chars to read. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-04 05:23:43 +00:00
Tim Schaub
f4f5414800 Updated request docs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8254 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-04 01:10:17 +00:00
crschmidt
c1fefd942d use correct layer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-03 23:03:15 +00:00
crschmidt
03101401b9 Change the sundials example to also hae a google layer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-03 22:12:57 +00:00
Tim Schaub
de272ebf28 Adding titles to title-less examples for googlebot.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-03 19:14:55 +00:00
Tim Schaub
a006d6446c Adding Catalan language dictionary from Oscar Fonts. Thanks for the contribution! r=me (closes #1799)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8239 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-30 17:02:48 +00:00
Tim Schaub
ab427cdca5 Adding Spanish language dictionary from Miguel Montesinos and Oscar Fonts. Thanks for the contribution! r=me (closes #1798)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8238 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-30 16:58:39 +00:00
Frédéric Junod
3b2bebd5fa set the CLASS_NAME to the complete class name (add OpenLayers.Layer.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8237 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-30 12:52:11 +00:00
crschmidt
3e89e524a1 FixedZoomLevels CLASS_NAME was wrong (included .js): correct it. (No functional
change, since everyone uses subclasses and the Class itself isnt actually 
wrong.) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-30 10:47:19 +00:00
Tim Schaub
ecd2556783 Marker icons should be moved when the map zoom changes. Thanks to avlee for providing a simple fix for this. r=euzuro (see #1759, closes #1766)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-28 23:51:05 +00:00
Tim Schaub
221ace9d90 Fewer characters to read. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8227 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-28 23:03:54 +00:00
Tim Schaub
6924534f47 Making sure the word 'style' appears in the style examples. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8213 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-28 03:03:19 +00:00
euzuro
84b65e5f8f fix propogate/propagate typo in click handler. thanks to chris r. for finding this, elemoine for the review. (Closes #1359)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8207 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-27 19:00:08 +00:00
euzuro
ad8201bed1 add updates to news.txt for 2.6 and 2.7 releases
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8203 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-27 16:58:29 +00:00
crschmidt
7c7809466a Fix a typo in documentation pointed out by MonkZ on IRC.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8194 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-24 22:17:46 +00:00
pgiraud
33e5bd7d7d the test to check if layer is drawn before we draw feature is moved to drawFeature method so that it doesn't fail when called directly at the application level r=elemoine,crschmidt (Closes #1785)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8189 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-24 08:29:01 +00:00
crschmidt
58fc08d574 Mark loadURL as an API function, since we treat it as one.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8178 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-23 14:49:33 +00:00
Tim Schaub
bc503a4e55 More short test names, still no functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8169 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-22 22:13:48 +00:00
Tim Schaub
e3716d940d Shortening test names. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8168 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-22 22:12:41 +00:00
euzuro
a9a88f4200 bad spellings. no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8154 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-21 01:42:14 +00:00
crschmidt
cb1150ca88 add 'deprecated' comment to docs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-20 17:06:50 +00:00
Frédéric Junod
ad6d0bd997 Add missing semi-colons. (closes #1762)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8130 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-17 08:06:59 +00:00
Frédéric Junod
c7a7edce97 Separating jsdoc declarations. (See #1229)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8102 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-10 12:36:31 +00:00
Frédéric Junod
ac65d44d1b remove unneeded layer declaration. r=elemoine (closes #1772)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8101 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-09 07:48:08 +00:00
Frédéric Junod
d37c42bcb5 Add missing semi-colons. r=pagameba (closes #1762)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8099 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-08 12:50:42 +00:00
Tim Schaub
ed719a9570 adding filter example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8092 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-05 05:05:50 +00:00
euzuro
8e3178984f getting rid of unnecessary, undocumented 'drawn' property on marker. replacing it with accessor function isDrawn(), and putting an isDrawn() in icon as well. all tests pass r=elemoine (Closes #1759)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8091 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-04 20:13:28 +00:00
Tim Schaub
2e4faa3861 Only load gears_init.js if you need it. r=many (closes #1758)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8089 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-04 13:17:00 +00:00
euzuro
fa5499beed correct the function name
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8088 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-04 12:58:40 +00:00
Frédéric Junod
6b6f207ae7 Add copyright headers and 'Inherits from'. Comments only modification.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8037 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-19 06:00:17 +00:00
crschmidt
9a4b0a11f1 "GML v2 fails in single file build in trunk", add dependancy on Format.GML
to prevent GML.v2 from getting blown away by later Format/GML.js inclusion
in single file build. r=tschaub (Pullup #1740)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8033 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-18 17:15:33 +00:00
Frédéric Junod
032c6c22ad fix typo in comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8032 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-18 13:25:36 +00:00
Tim Schaub
1a32d17112 We were breaking the firebug console in Firefox 3. This change makes things less efficient for browsers without Firebug (we loop through every script checking for firebug lite), but it fixes the console with OL and Firefox 3. If you open up the console in Firefox 3 and type 'window.console' you get an error about too much recursion (nothing to do with OL). So, we avoid touching window.console unless firebug lite has defined it. r=euzuro (see #1594)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8031 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-17 23:39:24 +00:00
Tim Schaub
9dd35b03b8 Strategy and protocol ndoc cleanup. (see #1738)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8026 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-17 17:30:01 +00:00
Tim Schaub
babc2a0410 Natural Doc menu changes. (see #1738)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8025 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-17 17:15:54 +00:00
Frédéric Junod
2111cb568f Fix incorrect function name in warning message.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8024 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-17 12:53:12 +00:00
euzuro
01682a6da7 Fixing erroneously set default for right-click handlers. Thanks to senior schmidt for pointing out this oversight on my part, and for the quick reviw. (Pullup #1735)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8021 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-16 16:23:43 +00:00
ahocevar
658953b130 Fixed fatal typo that broke getComponentString when working with two-point geometries. Added tests to check that everything works as expected now. r=pagameba (pullup #1730)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8016 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-15 11:51:50 +00:00
Tim Schaub
508ebc58c1 No functional change. Adding docs for list of default map controls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8011 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 17:15:55 +00:00
euzuro
6dae5eb770 Fix misspelling
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 17:07:20 +00:00
euzuro
d8cafb1ad7 fix broken HTTP Protocol test. Need to re-assign overridden values. This was not breaking in FF because (for whatever reason) tests are executed in backwards order. When they are executed in forwards order (IE), we have a problem. No functional change. See #1652
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8009 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 16:32:52 +00:00
Éric Lemoine
8d8ee2087f these two files were erroneously not committed as part of [8005], thanks Erik for catching this (See #1699)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8008 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 16:06:55 +00:00
euzuro
7a5b401604 Added versioned GML Parser, on behalf of mr. tschaub. review=ahocevar. (Pullup #1639)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8007 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 15:16:13 +00:00
Éric Lemoine
44ac8154c7 add Protocol.SQL.Gears, and go do editing while being offline! r=crschmidt (closes #1699)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8005 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 14:57:05 +00:00
ahocevar
523029f91d use a local coordinate system starting at (0,0) instead of coordinates just derived from the geometries, resetting it every time the resolution changes. r=tschaub (Pullup #1732)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8004 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 14:44:40 +00:00
Tim Schaub
4ad8f2118c Adding paging and cluster strategies. The paging strategy intercepts a batch of features bound for the layer and caches them, giving the layer one page at a time. The cluster strategy intercepts a batch of features and groups proximate features as clusters - giving the clusters to the layer instead. Thanks for the careful review Erik. r=euzuro (see #1606).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8003 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 08:58:23 +00:00
ahocevar
3ad82c119a fixed ND comment typo (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8002 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 07:54:43 +00:00
Tim Schaub
33fbc1d22f Adding a BBOX strategy. This triggers requests for data within a bounding box. When the map bounds invalidate previous data bounds, another request is issued. Reads are triggered with a spatial filter, and protocols that understand how to deal with filters may serialize the filter to request a subset of the data collection. The HTTP protocol understands one filter - the bbox filter. So the BBOX strategy can be used in conjunction with the HTTP protocol to request data via http in a bounding box. Thanks for the collaboration and tests Eric. r=elemoine,crschmidt (#1731)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8000 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-11 17:39:41 +00:00
Frédéric Junod
1662f2adba Add missing @requires OpenLayers/Tile/Image.js. r=crschmidt (Pullup #1733)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7999 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-11 15:11:43 +00:00
ahocevar
48221f6d26 give the element a backgroundGraphic so we know that we need to remove the background element
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7997 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-11 13:11:09 +00:00
ahocevar
f130df8ee7 Make sure that backgroundGraphic icon is deleted on feature destroy, even if no indexer is being used. r=crschmidt (Pullup #1718)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7996 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-11 12:58:35 +00:00
Tim Schaub
3295500c5c 80 is proxied to 8080 on the server
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7993 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-10 18:43:35 +00:00
crschmidt
8affa99d12 missing comma in list, pointed out by brentp
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7992 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-10 17:19:43 +00:00
Tim Schaub
bb26ddb2bb Print out denied host.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7990 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-10 15:00:25 +00:00
crschmidt
a0491afc61 Fix broken OSM layers.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7988 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-09 19:51:08 +00:00
Tim Schaub
715c4001a9 Making the xml_eq test method ignore whitespace only nodes by default. This can be configured by setting the ignoreWhiteSpace option. (see #1639)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7987 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-09 17:50:41 +00:00
euzuro
0fbc6c2500 Fix for Permalink's override-able createParams() function, which was designed to allow for input parameter values for center, zoom, and layers... but was actually only using the center value... zoom and layers were being taken from the map and the input parameters ignored. Big thanks to our anonymous poster for spotting this. r=ahocevar (Pullup #1489)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7986 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-09 15:53:09 +00:00
Éric Lemoine
4cf8b53027 Fix for "extra '?' is added to the URL by the LoadURL method", review and final patch from tschaub (closes #1616)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7984 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-09 06:55:19 +00:00
Tim Schaub
30ab46f265 Adding a geom_eq method for Test.AnotherWay. This can be used to test two geometries for equivalence. (see #1639)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7983 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-09 00:10:59 +00:00
Tim Schaub
a5687716b7 Adding readers and writers properties to xml formats. These will contain public functions used in serializing and deserializing various formats. Shorthand methods for calling these readers & writers are writeNode and readNode. r=ahocever (closes #1722)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7982 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-08 21:31:39 +00:00
Paul Spencer
8114c092b7 apply missing semicolons from r7975 (in 2.7 branch) to trunk
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7979 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-08 17:43:34 +00:00
ahocevar
622e33cc16 moved handling of unrenderedFeatures from moveTo to drawFeature. r=elemoine (pullup #1723)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7976 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-08 06:52:57 +00:00
Tim Schaub
846a48245f Updating comments in example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7974 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-06 19:03:45 +00:00
Tim Schaub
d0ffc2b022 Comment only. A bit of documentation for distVincenty.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7973 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-06 18:53:42 +00:00
Tim Schaub
29cdbe686d Adding a bit of explanation about this calcVincenty function, since distVinventy is not documented otherwise.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7972 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-06 18:49:54 +00:00
Tim Schaub
30050825b5 Missing change that should have been in r7965. r=me (see #1241)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7971 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-06 18:25:38 +00:00
crschmidt
e301cc2ab0 Measure includes a great circle distance, to emonstrate the ability to use
the geometry attached to the event to generate your own length measurement.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7970 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-06 16:09:13 +00:00
1109 changed files with 139876 additions and 22562 deletions

7
.gitignore vendored Normal file
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

View File

@@ -1,4 +1,4 @@
Format: Development Release 12-07-2007 (1.35 base)
Format: 1.52
# This is the Natural Docs languages file for this project. If you change
# anything here, it will apply to THIS PROJECT ONLY. If you'd like to change

View File

@@ -1,4 +1,4 @@
Format: Development Release 12-07-2007 (1.35 base)
Format: 1.52
Title: OpenLayers
@@ -45,17 +45,16 @@ SubTitle: JavaScript Mapping Library
# --------------------------------------------------------------------------
File: OpenLayers (OpenLayers.js)
Group: OpenLayers {
File: Ajax (no auto-title, OpenLayers/Ajax.js)
File: OpenLayers (no auto-title, OpenLayers.js)
Group: BaseTypes {
File: Base Types (no auto-title, OpenLayers/BaseTypes.js)
File: Bounds (no auto-title, OpenLayers/BaseTypes/Bounds.js)
File: Class (no auto-title, OpenLayers/BaseTypes/Class.js)
File: Date (no auto-title, OpenLayers/BaseTypes/Date.js)
File: Element (no auto-title, OpenLayers/BaseTypes/Element.js)
File: LonLat (no auto-title, OpenLayers/BaseTypes/LonLat.js)
File: Pixel (no auto-title, OpenLayers/BaseTypes/Pixel.js)
@@ -74,24 +73,39 @@ Group: OpenLayers {
File: DragPan (no auto-title, OpenLayers/Control/DragPan.js)
File: DrawFeature (no auto-title, OpenLayers/Control/DrawFeature.js)
File: EditingToolbar (no auto-title, OpenLayers/Control/EditingToolbar.js)
File: Geolocate (no auto-title, OpenLayers/Control/Geolocate.js)
File: GetFeature (no auto-title, OpenLayers/Control/GetFeature.js)
File: Graticule (no auto-title, OpenLayers/Control/Graticule.js)
File: KeyboardDefaults (no auto-title, OpenLayers/Control/KeyboardDefaults.js)
File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js)
File: Measure (no auto-title, OpenLayers/Control/Measure.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: MouseToolbar (no auto-title, OpenLayers/Control/MouseToolbar.js)
File: Navigation (no auto-title, OpenLayers/Control/Navigation.js)
File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js)
File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js)
File: OverviewMap (no auto-title, OpenLayers/Control/OverviewMap.js)
File: Pan (no auto-title, OpenLayers/Control/Pan.js)
File: Panel (no auto-title, OpenLayers/Control/Panel.js)
File: PanPanel (no auto-title, OpenLayers/Control/PanPanel.js)
File: PanZoom (no auto-title, OpenLayers/Control/PanZoom.js)
File: PanZoomBar (no auto-title, OpenLayers/Control/PanZoomBar.js)
File: Permalink (no auto-title, OpenLayers/Control/Permalink.js)
File: PinchZoom (no auto-title, OpenLayers/Control/PinchZoom.js)
File: Scale (no auto-title, OpenLayers/Control/Scale.js)
File: ScaleLine (no auto-title, OpenLayers/Control/ScaleLine.js)
File: SelectFeature (no auto-title, OpenLayers/Control/SelectFeature.js)
File: SLDSelect (no auto-title, OpenLayers/Control/SLDSelect.js)
File: Snapping (no auto-title, OpenLayers/Control/Snapping.js)
File: Split (no auto-title, OpenLayers/Control/Split.js)
File: TouchNavigation (no auto-title, OpenLayers/Control/TouchNavigation.js)
File: TransformFeature (no auto-title, OpenLayers/Control/TransformFeature.js)
File: WMSGetFeatureInfo (no auto-title, OpenLayers/Control/WMSGetFeatureInfo.js)
File: WMTSGetFeatureInfo (no auto-title, OpenLayers/Control/WMTSGetFeatureInfo.js)
File: ZoomBox (no auto-title, OpenLayers/Control/ZoomBox.js)
File: ZoomIn (no auto-title, OpenLayers/Control/ZoomIn.js)
File: ZoomOut (no auto-title, OpenLayers/Control/ZoomOut.js)
File: ZoomPanel (no auto-title, OpenLayers/Control/ZoomPanel.js)
File: ZoomToMaxExtent (no auto-title, OpenLayers/Control/ZoomToMaxExtent.js)
} # Group: Control
@@ -101,7 +115,6 @@ Group: OpenLayers {
File: Feature (no auto-title, OpenLayers/Feature.js)
File: Vector (no auto-title, OpenLayers/Feature/Vector.js)
File: WFS (no auto-title, OpenLayers/Feature/WFS.js)
} # Group: Feature
Group: Filter {
@@ -109,18 +122,39 @@ Group: OpenLayers {
File: Filter (no auto-title, OpenLayers/Filter.js)
File: Comparison (no auto-title, OpenLayers/Filter/Comparison.js)
File: FeatureId (no auto-title, OpenLayers/Filter/FeatureId.js)
File: Function (no auto-title, OpenLayers/Filter/Function.js)
File: Logical (no auto-title, OpenLayers/Filter/Logical.js)
File: Spatial (no auto-title, OpenLayers/Filter/Spatial.js)
} # Group: Filter
Group: Format {
File: Format (no auto-title, OpenLayers/Format.js)
File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js)
File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js)
File: ArcXML (no auto-title, OpenLayers/Format/ArcXML.js)
File: ArcXML.Features (no auto-title, OpenLayers/Format/ArcXML/Features.js)
File: Atom (no auto-title, OpenLayers/Format/Atom.js)
File: Context (no auto-title, OpenLayers/Format/Context.js)
File: CQL (no auto-title, OpenLayers/Format/CQL.js)
File: CSWGetDomain (no auto-title, OpenLayers/Format/CSWGetDomain.js)
File: CSWGetDomain.v2_0_2 (no auto-title, OpenLayers/Format/CSWGetDomain/v2_0_2.js)
File: CSWGetRecords (no auto-title, OpenLayers/Format/CSWGetRecords.js)
File: CSWGetRecords.v2_0_2 (no auto-title, OpenLayers/Format/CSWGetRecords/v2_0_2.js)
Group: Filter {
File: Filter (no auto-title, OpenLayers/Format/Filter.js)
File: v1 (no auto-title, OpenLayers/Format/Filter/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/Filter/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/Filter/v1_1_0.js)
} # Group: Filter
Group: GML {
File: GML (no auto-title, OpenLayers/Format/GML.js)
File: JSON (no auto-title, OpenLayers/Format/JSON.js)
File: KML (no auto-title, OpenLayers/Format/KML.js)
File: OSM (no auto-title, OpenLayers/Format/OSM.js)
File: Base (no auto-title, OpenLayers/Format/GML/Base.js)
File: v2 (no auto-title, OpenLayers/Format/GML/v2.js)
File: v3 (no auto-title, OpenLayers/Format/GML/v3.js)
} # Group: GML
Group: SLD {
@@ -129,10 +163,49 @@ Group: OpenLayers {
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: JSON (no auto-title, OpenLayers/Format/JSON.js)
File: KML (no auto-title, OpenLayers/Format/KML.js)
File: OGCExceptionReport (no auto-title, OpenLayers/Format/OGCExceptionReport.js)
File: OSM (no auto-title, OpenLayers/Format/OSM.js)
Group: OWSCommon {
File: OWSCommon (no auto-title, OpenLayers/Format/OWSCommon.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_1_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_1_0.js)
} # Group: OWSCommon
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: QueryStringFilter (no auto-title, OpenLayers/Format/QueryStringFilter.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: SOSGetFeatureOfInterest (no auto-title, OpenLayers/Format/SOSGetFeatureOfInterest.js)
File: SOSGetObservation (no auto-title, OpenLayers/Format/SOSGetObservation.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: WFS (no auto-title, OpenLayers/Format/WFS.js)
File: WKT (no auto-title, OpenLayers/Format/WKT.js)
File: XML (no auto-title, OpenLayers/Format/XML.js)
Group: WFSCapabilities {
File: WFSCapabilities (no auto-title, OpenLayers/Format/WFSCapabilities.js)
File: v1 (no auto-title, OpenLayers/Format/WFSCapabilities/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_1_0.js)
} # Group: WFSCapabilities
Group: WFST {
File: WFST (no auto-title, OpenLayers/Format/WFST.js)
File: v1 (no auto-title, OpenLayers/Format/WFST/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/WFST/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/WFST/v1_1_0.js)
} # Group: WFST
Group: WMC {
@@ -142,6 +215,37 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/WMC/v1_1_0.js)
} # Group: WMC
Group: WMSCapabilities {
File: WMSCapabilities (no auto-title, OpenLayers/Format/WMSCapabilities.js)
File: v1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1.js)
File: v1_1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1_0.js)
File: v1_1_1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1_1.js)
File: v1_3 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_3.js)
File: v1_3_0 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_3_0.js)
File: WMSCapabilities/v1_1_1_WMSC (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1_1_WMSC.js)
} # Group: WMSCapabilities
Group: WMSDescribeLayer {
File: WMSDescribeLayer (no auto-title, OpenLayers/Format/WMSDescribeLayer.js)
File: v1_1 (no auto-title, OpenLayers/Format/WMSDescribeLayer/v1_1.js)
} # 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: WMTSCapabilities (no auto-title, OpenLayers/Format/WMTSCapabilities.js)
File: WMTSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/WMTSCapabilities/v1_0_0.js)
File: WPSCapabilities (no auto-title, OpenLayers/Format/WPSCapabilities.js)
File: WPSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/WPSCapabilities/v1_0_0.js)
File: WPSDescribeProcess (no auto-title, OpenLayers/Format/WPSDescribeProcess.js)
File: WPSExecute version 1.0.0 (no auto-title, OpenLayers/Format/WPSExecute.js)
File: XLS (no auto-title, OpenLayers/Format/XLS.js)
File: XLS.v1 (no auto-title, OpenLayers/Format/XLS/v1.js)
File: XLS.v1_1_0 (no auto-title, OpenLayers/Format/XLS/v1_1_0.js)
File: XML (no auto-title, OpenLayers/Format/XML.js)
} # Group: Format
Group: Geometry {
@@ -156,7 +260,6 @@ Group: OpenLayers {
File: MultiPolygon (no auto-title, OpenLayers/Geometry/MultiPolygon.js)
File: Point (no auto-title, OpenLayers/Geometry/Point.js)
File: Polygon (no auto-title, OpenLayers/Geometry/Polygon.js)
File: Rectangle (no auto-title, OpenLayers/Geometry/Rectangle.js)
} # Group: Geometry
Group: Handler {
@@ -170,6 +273,7 @@ Group: OpenLayers {
File: Keyboard (no auto-title, OpenLayers/Handler/Keyboard.js)
File: MouseWheel (no auto-title, OpenLayers/Handler/MouseWheel.js)
File: Path (no auto-title, OpenLayers/Handler/Path.js)
File: Pinch (no auto-title, OpenLayers/Handler/Pinch.js)
File: Point (no auto-title, OpenLayers/Handler/Point.js)
File: Polygon (no auto-title, OpenLayers/Handler/Polygon.js)
File: RegularPolygon (no auto-title, OpenLayers/Handler/RegularPolygon.js)
@@ -180,43 +284,87 @@ Group: OpenLayers {
Group: Lang {
File: Lang (no auto-title, OpenLayers/Lang.js)
File: Lang["cs-CZ"] (OpenLayers/Lang/cs-CZ.js)
File: Lang["de"] (no auto-title, OpenLayers/Lang/de.js)
File: Lang["en"] (no auto-title, OpenLayers/Lang/en.js)
File: Lang["en-CA"] (no auto-title, OpenLayers/Lang/en-CA.js)
File: Lang["fr"] (no auto-title, OpenLayers/Lang/fr.js)
File: ar (no auto-title, OpenLayers/Lang/ar.js)
File: be-tarask (no auto-title, OpenLayers/Lang/be-tarask.js)
File: bg (no auto-title, OpenLayers/Lang/bg.js)
File: br (no auto-title, OpenLayers/Lang/br.js)
File: ca (no auto-title, OpenLayers/Lang/ca.js)
File: cs-CZ (no auto-title, OpenLayers/Lang/cs-CZ.js)
File: da-DK (no auto-title, OpenLayers/Lang/da-DK.js)
File: de (no auto-title, OpenLayers/Lang/de.js)
File: en (no auto-title, OpenLayers/Lang/en.js)
File: en-CA (no auto-title, OpenLayers/Lang/en-CA.js)
File: es (no auto-title, OpenLayers/Lang/es.js)
File: el (no auto-title, OpenLayers/Lang/el.js)
File: fi (no auto-title, OpenLayers/Lang/fi.js)
File: fr (no auto-title, OpenLayers/Lang/fr.js)
File: fur (no auto-title, OpenLayers/Lang/fur.js)
File: gl (no auto-title, OpenLayers/Lang/gl.js)
File: gsw (no auto-title, OpenLayers/Lang/gsw.js)
File: hr (no auto-title, OpenLayers/Lang/hr.js)
File: hsb (no auto-title, OpenLayers/Lang/hsb.js)
File: hu (no auto-title, OpenLayers/Lang/hu.js)
File: ia (no auto-title, OpenLayers/Lang/ia.js)
File: id (no auto-title, OpenLayers/Lang/id.js)
File: io (no auto-title, OpenLayers/Lang/io.js)
File: is (no auto-title, OpenLayers/Lang/is.js)
File: it (no auto-title, OpenLayers/Lang/it.js)
File: ja (no auto-title, OpenLayers/Lang/ja.js)
File: km (no auto-title, OpenLayers/Lang/km.js)
File: ksh (no auto-title, OpenLayers/Lang/ksh.js)
File: lt (no auto-title, OpenLayers/Lang/lt.js)
File: nds (no auto-title, OpenLayers/Lang/nds.js)
File: nb (no auto-title, OpenLayers/Lang/nb.js)
File: nl (no auto-title, OpenLayers/Lang/nl.js)
File: nn (no auto-title, OpenLayers/Lang/nn.js)
File: oc (no auto-title, OpenLayers/Lang/oc.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: ru (no auto-title, OpenLayers/Lang/ru.js)
File: sk (no auto-title, OpenLayers/Lang/sk.js)
File: sv-SE (no auto-title, OpenLayers/Lang/sv-SE.js)
File: te (no auto-title, OpenLayers/Lang/te.js)
File: vi (no auto-title, OpenLayers/Lang/vi.js)
File: zh-CN (no auto-title, OpenLayers/Lang/zh-CN.js)
File: zh-TW (no auto-title, OpenLayers/Lang/zh-TW.js)
} # Group: Lang
Group: Layer {
File: Layer (no auto-title, OpenLayers/Layer.js)
File: ArcGISCache.js (no auto-title, OpenLayers/Layer/ArcGISCache.js)
File: ArcGIS93Rest (no auto-title, OpenLayers/Layer/ArcGIS93Rest.js)
File: ArcIMS (no auto-title, OpenLayers/Layer/ArcIMS.js)
File: Bing (no auto-title, OpenLayers/Layer/Bing.js)
File: Boxes (no auto-title, OpenLayers/Layer/Boxes.js)
File: EventPane (no auto-title, OpenLayers/Layer/EventPane.js)
File: FixedZoomLevels (no auto-title, OpenLayers/Layer/FixedZoomLevels.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.v3 (no auto-title, OpenLayers/Layer/Google/v3.js)
File: Grid (no auto-title, OpenLayers/Layer/Grid.js)
File: HTTPRequest (no auto-title, OpenLayers/Layer/HTTPRequest.js)
File: Image (no auto-title, OpenLayers/Layer/Image.js)
File: KaMap (no auto-title, OpenLayers/Layer/KaMap.js)
File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js)
File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.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: 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: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js)
File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js)
File: Text (no auto-title, OpenLayers/Layer/Text.js)
File: TileCache (no auto-title, OpenLayers/Layer/TileCache.js)
File: TMS (no auto-title, OpenLayers/Layer/TMS.js)
File: Vector (no auto-title, OpenLayers/Layer/Vector.js)
File: VirtualEarth (no auto-title, OpenLayers/Layer/VirtualEarth.js)
File: WFS (no auto-title, OpenLayers/Layer/WFS.js)
File: Vector.RootContainer (no auto-title, OpenLayers/Layer/Vector/RootContainer.js)
File: WMS (no auto-title, OpenLayers/Layer/WMS.js)
File: WMS.Untiled (no auto-title, OpenLayers/Layer/WMS/Untiled.js)
File: WMTS (no auto-title, OpenLayers/Layer/WMTS.js)
File: WorldWind (no auto-title, OpenLayers/Layer/WorldWind.js)
File: Yahoo (no auto-title, OpenLayers/Layer/Yahoo.js)
File: XYZ (no auto-title, OpenLayers/Layer/XYZ.js)
File: Zoomify (no auto-title, OpenLayers/Layer/Zoomify.js)
} # Group: Layer
File: Map (no auto-title, OpenLayers/Map.js)
@@ -232,33 +380,84 @@ Group: OpenLayers {
File: Popup (no auto-title, OpenLayers/Popup.js)
File: Anchored (no auto-title, OpenLayers/Popup/Anchored.js)
File: AnchoredBubble (no auto-title, OpenLayers/Popup/AnchoredBubble.js)
File: Framed (OpenLayers/Popup/Framed.js)
File: FramedCloud (OpenLayers/Popup/FramedCloud.js)
File: Framed (no auto-title, OpenLayers/Popup/Framed.js)
File: FramedCloud (no auto-title, OpenLayers/Popup/FramedCloud.js)
} # Group: Popup
File: Projection (no auto-title, OpenLayers/Projection.js)
Group: Protocol {
File: Protocol (no auto-title, OpenLayers/Protocol.js)
File: HTTP (no auto-title, OpenLayers/Protocol/HTTP.js)
Group: WFS {
File: WFS (no auto-title, OpenLayers/Protocol/WFS.js)
File: v1 (no auto-title, OpenLayers/Protocol/WFS/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Protocol/WFS/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Protocol/WFS/v1_1_0.js)
} # Group: WFS
File: Script (no auto-title, OpenLayers/Protocol/Script.js)
File: SOS.DEFAULTS (no auto-title, OpenLayers/Protocol/SOS.js)
File: SOS.v1_0_0 (no auto-title, OpenLayers/Protocol/SOS/v1_0_0.js)
} # Group: Protocol
Group: Renderer {
File: Renderer (no auto-title, OpenLayers/Renderer.js)
File: Elements (no auto-title, OpenLayers/Renderer/Elements.js)
File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js)
File: ElementsIndexer (no auto-title, OpenLayers/Renderer/Elements.js)
File: SVG (no auto-title, OpenLayers/Renderer/SVG.js)
File: VML (no auto-title, OpenLayers/Renderer/VML.js)
} # Group: Renderer
Group: Request {
File: Request (no auto-title, OpenLayers/Request.js)
File: XMLHttpRequest (no auto-title, OpenLayers/Request/XMLHttpRequest.js)
} # Group: Request
File: Rule (no auto-title, OpenLayers/Rule.js)
File: SingleFile.js (no auto-title, OpenLayers/SingleFile.js)
Group: Strategy {
File: Strategy (no auto-title, OpenLayers/Strategy.js)
File: BBOX (no auto-title, OpenLayers/Strategy/BBOX.js)
File: Cluster (no auto-title, OpenLayers/Strategy/Cluster.js)
File: Filter (no auto-title, OpenLayers/Strategy/Filter.js)
File: Fixed (no auto-title, OpenLayers/Strategy/Fixed.js)
File: Paging (no auto-title, OpenLayers/Strategy/Paging.js)
File: Refresh (no auto-title, OpenLayers/Strategy/Refresh.js)
File: Save (no auto-title, OpenLayers/Strategy/Save.js)
} # Group: Strategy
File: Style (no auto-title, OpenLayers/Style.js)
File: Style2 (no auto-title, OpenLayers/Style2.js)
File: StyleMap (no auto-title, OpenLayers/StyleMap.js)
Group: Symbolizer {
File: Symbolizer (no auto-title, OpenLayers/Symbolizer.js)
File: Line (no auto-title, OpenLayers/Symbolizer/Line.js)
File: Point (no auto-title, OpenLayers/Symbolizer/Point.js)
File: Polygon (no auto-title, OpenLayers/Symbolizer/Polygon.js)
File: Raster (no auto-title, OpenLayers/Symbolizer/Raster.js)
File: Text (no auto-title, OpenLayers/Symbolizer/Text.js)
} # Group: Symbolizer
Group: Tile {
File: Tile (no auto-title, OpenLayers/Tile.js)
File: Image (no auto-title, OpenLayers/Tile/Image.js)
File: WFS (no auto-title, OpenLayers/Tile/WFS.js)
File: Image.IFrame (no auto-title, OpenLayers/Tile/Image/IFrame.js)
} # Group: Tile
File: Tween (no auto-title, OpenLayers/Tween.js)
File: Util (no auto-title, OpenLayers/Util.js)
File: Deprecated (no auto-title, deprecated.js)
} # Group: OpenLayers
Group: Index {

View File

@@ -1,4 +1,4 @@
Format: Development Release 12-07-2007 (1.35 base)
Format: 1.52
# This is the Natural Docs topics file for this project. If you change anything
# here, it will apply to THIS PROJECT ONLY. If you'd like to change something

View File

@@ -1,9 +1,16 @@
OpenLayers contributors:
Antoine Abt
Mike Adair
Jeff Adams
Seb Benthall
Bruno Binet
Stéphane Brunner
Howard Butler
Bertil Chaupis
John Cole
Tim Coulter
Robert Coup
Jeff Dege
Roald de Wit
Schuyler Erle
@@ -11,13 +18,17 @@ Christian López Espínola
John Frank
Sean Gilles
Pierre Giraud
Ivan Grcic
Andreas Hocevar
Marc Jansen
Ian Johnson
Frédéric Junod
Eric Lemoine
Philip Lindsay
Martijn van Oosterhout
David Overstrom
Corey Puffault
Peter William Robins
Gregers Rygg
Tim Schaub
Christopher Schmidt
@@ -28,10 +39,12 @@ Paul Smith
Glen Stampoultzis
James Stembridge
Erik Uzureau
Bart van den Eijnden
Ivan Willig
Thomas Wood
Bill Woodall
Steve Woodbridge
David Zwarg
Some portions of OpenLayers are used under the Apache 2.0 license, available
in doc/licenses/APACHE-2.0.txt.

View File

@@ -1,14 +1,46 @@
The OpenLayers build tool supports several different
forms of compressing your javascript code, and a method
of describing build profiles to create customized
OpenLayers builds with only the components you need.
## HowTo: Build & deploy "Shrunk" Single File Library version of OpenLayers ##
When building a file, you can choose to build with several
different compression options to the Python-based build.py
script. The following is an example script:
* Build:
python build.py -c closure full OpenLayers-closure.js
cd build
./build.py
cd ..
This script selects the 'closure' compression mechanism,
uses a config file called 'full.cfg', and writes the output
to OpenLayers-closure.js.
* Upload the result to the server: e.g.
The options available for compression are:
scp build/OpenLayers.js openlayers@openlayers.org:openlayers.org/htdocs/code/
* closure
This requires you to have a closure-compiler.jar in your
tools directory. You can do this by fetching the compiler
from:
http://closure-compiler.googlecode.com/files/compiler-latest.zip
Then unzipping that file, and placing compiler.jar into tools
and renaming it closure-compiler.jar.
* closure_ws
This uses the closure compiler webservice. This will only work
for files source Javascript files which are under 1MB. (Note that
the default OpenLayers full build is not under 1MB.)
* jsmin
jsmin is the default compiler, and uses the Python-based
jsmin script to compress the Javascript.
* minimize
This is a simple whitespace removing Python script, designed
to fill in when other tools are unavailable.
* none
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

View File

@@ -1,50 +1,123 @@
#!/usr/bin/env python
import sys
import os
sys.path.append("../tools")
import mergejs
import optparse
have_compressor = None
try:
def build(config_file = None, output_file = None, options = None):
have_compressor = []
try:
import jsmin
have_compressor = "jsmin"
except ImportError:
have_compressor.append("jsmin")
except ImportError:
print "No jsmin"
try:
# 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")
except Exception, E:
print "No closure (%s)" % E
try:
import closure_ws
have_compressor.append("closure_ws")
except ImportError:
print "No closure_ws"
try:
import minimize
have_compressor = "minimize"
except Exception, E:
print E
pass
have_compressor.append("minimize")
except ImportError:
print "No minimize"
sourceDirectory = "../lib"
configFilename = "full.cfg"
outputFilename = "OpenLayers.js"
use_compressor = None
if options.compressor and options.compressor in have_compressor:
use_compressor = options.compressor
if len(sys.argv) > 1:
configFilename = sys.argv[1]
sourceDirectory = "../lib"
configFilename = "full.cfg"
outputFilename = "OpenLayers.js"
if config_file:
configFilename = config_file
extension = configFilename[-4:]
if extension != ".cfg":
configFilename = sys.argv[1] + ".cfg"
configFilename = config_file + ".cfg"
if len(sys.argv) > 2:
outputFilename = sys.argv[2]
if output_file:
outputFilename = output_file
print "Merging libraries."
merged = mergejs.run(sourceDirectory, None, configFilename)
if have_compressor == "jsmin":
print "Compressing using jsmin."
print "Merging libraries."
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
if use_compressor == "jsmin":
minimized = jsmin.jsmin(merged)
elif have_compressor == "minimize":
print "Compressing using minimize."
elif use_compressor == "minimize":
minimized = minimize.minimize(merged)
else: # fallback
print "Not compressing."
elif use_compressor == "closure_ws":
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":
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
minimized = merged
print "Adding license file."
minimized = file("license.txt").read() + minimized
print "Writing to %s." % outputFilename
file(outputFilename, "w").write(minimized)
print "\nAdding license file."
minimized = file("license.txt").read() + minimized
print "Done."
print "Writing to %s." % outputFilename
file(outputFilename, "w").write(minimized)
print "Done."
if __name__ == '__main__':
opt = optparse.OptionParser(usage="%s [options] [config_file] [output_file]\n Default config_file is 'full.cfg', Default output_file is 'OpenLayers.js'")
opt.add_option("-c", "--compressor", dest="compressor", help="compression method: one of 'jsmin', 'minimize', 'closure_ws', 'closure', or 'none'", default="jsmin")
(options, args) = opt.parse_args()
if not len(args):
build(options=options)
elif len(args) == 1:
build(args[0], options=options)
elif len(args) == 2:
build(args[0], args[1], options=options)
else:
print "Wrong number of arguments"

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){};

View File

@@ -1,26 +1,14 @@
# This is the full build with all files: this includes the vector-related files
# like Renderers and Formats.
[first]
OpenLayers/SingleFile.js
OpenLayers.js
OpenLayers/BaseTypes.js
OpenLayers/BaseTypes/Class.js
OpenLayers/Util.js
Rico/Corner.js
[last]
[include]
[exclude]
Firebug/firebug.js
Firebug/firebugx.js
OpenLayers/Lang/cs-CZ.js
OpenLayers/Lang/de.js
OpenLayers/Lang/en-CA.js
OpenLayers/Lang/fr.js
OpenLayers/Lang/it.js
OpenLayers/Lang/nb.js
OpenLayers/Lang/nl.js
OpenLayers/Lang/pt-BR.js
OpenLayers/Lang/sv-SE.js
OpenLayers/Lang/zh-TW.js
OpenLayers/Lang/zh-CN.js
Firebug
OpenLayers.js
OpenLayers/Lang
deprecated.js

View File

@@ -1,61 +0,0 @@
[first]
OpenLayers/SingleFile.js
OpenLayers.js
OpenLayers/BaseTypes.js
OpenLayers/BaseTypes/Class.js
OpenLayers/Util.js
Rico/Corner.js
[last]
[include]
[exclude]
Firebug/firebug.js
Firebug/firebugx.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/cs-CZ.js
OpenLayers/Lang/de.js
OpenLayers/Lang/en-CA.js
OpenLayers/Lang/fr.js
OpenLayers/Lang/it.js
OpenLayers/Lang/nb.js
OpenLayers/Lang/nl.js
OpenLayers/Lang/pt-BR.js
OpenLayers/Lang/sv-SE.js
OpenLayers/Lang/zh-TW.js
OpenLayers/Lang/zh-CN.js

View File

@@ -2,47 +2,17 @@
OpenLayers.js -- OpenLayers Map Viewer Library
Copyright 2005-2008 MetaCarta, Inc., released under the Clear BSD license.
Please see http://svn.openlayers.org/trunk/openlayers/license.txt
for the full text of the license.
Copyright (c) 2006-2012 by OpenLayers Contributors
Published under the 2-clause BSD 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:
(For uncompressed versions of the code used please see the
OpenLayers SVN repository: <http://openlayers.org/>)
(For uncompressed versions of the code used, please see the
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/>
* Copyright 2007 Sergey Ilinsky (http://www.ilinsky.com)
@@ -52,3 +22,36 @@
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*/
/**
* OpenLayers.Util.pagePosition is based on Yahoo's getXY method, which is
* Copyright (c) 2006, Yahoo! Inc.
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms, with or
* without modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * 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.
*
* * Neither the name of Yahoo! Inc. nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission of Yahoo! Inc.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT OWNER OR CONTRIBUTORS 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.
*/

32
build/light.cfg Normal file
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]

View File

@@ -1,22 +1,16 @@
# This file includes a small subset of OpenLayers code, designed to be
# integrated into another application. It includes only the Layer types
# neccesary to create tiled or untiled WMS, and does not include any Controls.
# This is the result of what was at the time called "Webmap.js" at the FOSS4G
# Web Mapping BOF.
[first]
OpenLayers/SingleFile.js
OpenLayers.js
OpenLayers/BaseTypes.js
OpenLayers/BaseTypes/Class.js
OpenLayers/Util.js
[last]
[include]
OpenLayers/Events.js
OpenLayers/Map.js
OpenLayers/Layer.js
OpenLayers/Layer/Grid.js
OpenLayers/Layer/HTTPRequest.js
OpenLayers/Layer/WMS.js
OpenLayers/Layer/WMS/Untiled.js
OpenLayers/Tile.js
OpenLayers/Tile/Image.js
[exclude]

35
build/mobile.cfg Normal file
View File

@@ -0,0 +1,35 @@
[first]
[last]
[include]
OpenLayers/Map.js
OpenLayers/Kinetic.js
OpenLayers/Projection.js
OpenLayers/Layer/OSM.js
OpenLayers/Layer/Bing.js
OpenLayers/Layer/WMS.js
OpenLayers/Control/TouchNavigation.js
OpenLayers/Control/Geolocate.js
OpenLayers/Control/Zoom.js
OpenLayers/Control/Attribution.js
OpenLayers/Control/SelectFeature.js
OpenLayers/Control/DrawFeature.js
OpenLayers/Control/ModifyFeature.js
OpenLayers/Control/Panel.js
OpenLayers/Handler/Point.js
OpenLayers/Handler/Path.js
OpenLayers/Handler/Polygon.js
OpenLayers/Layer/Vector.js
OpenLayers/Renderer/SVG.js
OpenLayers/Renderer/Canvas.js
OpenLayers/Format/GeoJSON.js
OpenLayers/Format/KML.js
OpenLayers/Protocol/HTTP.js
OpenLayers/Protocol/WFS.js
OpenLayers/Protocol/WFS/v1_0_0.js
OpenLayers/Strategy/Fixed.js
[exclude]

10
build/tests.cfg Normal file
View File

@@ -0,0 +1,10 @@
# This build config is supposed to be used for the units tests with "mode=build"
[first]
[last]
[include]
[exclude]
OpenLayers.js

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;
}

View File

@@ -1,3 +0,0 @@
Automatically generated OpenLayers API documentation is online:
http://dev.openlayers.org/apidocs

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>

View File

@@ -1,4 +1,4 @@
Format: Development Release 12-07-2007 (1.35 base)
Format: 1.52
# This is the Natural Docs languages file for this project. If you change
# anything here, it will apply to THIS PROJECT ONLY. If you'd like to change

View File

@@ -1,4 +1,4 @@
Format: Development Release 12-07-2007 (1.35 base)
Format: 1.52
Title: OpenLayers
@@ -45,17 +45,16 @@ SubTitle: JavaScript Mapping Library
# --------------------------------------------------------------------------
File: OpenLayers (OpenLayers.js)
Group: OpenLayers {
File: Ajax (no auto-title, OpenLayers/Ajax.js)
File: OpenLayers (no auto-title, OpenLayers.js)
Group: BaseTypes {
File: Base Types (no auto-title, OpenLayers/BaseTypes.js)
File: Bounds (no auto-title, OpenLayers/BaseTypes/Bounds.js)
File: Class (no auto-title, OpenLayers/BaseTypes/Class.js)
File: Date (no auto-title, OpenLayers/BaseTypes/Date.js)
File: Element (no auto-title, OpenLayers/BaseTypes/Element.js)
File: LonLat (no auto-title, OpenLayers/BaseTypes/LonLat.js)
File: Pixel (no auto-title, OpenLayers/BaseTypes/Pixel.js)
@@ -74,24 +73,39 @@ Group: OpenLayers {
File: DragPan (no auto-title, OpenLayers/Control/DragPan.js)
File: DrawFeature (no auto-title, OpenLayers/Control/DrawFeature.js)
File: EditingToolbar (no auto-title, OpenLayers/Control/EditingToolbar.js)
File: Geolocate (no auto-title, OpenLayers/Control/Geolocate.js)
File: GetFeature (no auto-title, OpenLayers/Control/GetFeature.js)
File: Graticule (no auto-title, OpenLayers/Control/Graticule.js)
File: KeyboardDefaults (no auto-title, OpenLayers/Control/KeyboardDefaults.js)
File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js)
File: Measure (no auto-title, OpenLayers/Control/Measure.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: MouseToolbar (no auto-title, OpenLayers/Control/MouseToolbar.js)
File: Navigation (no auto-title, OpenLayers/Control/Navigation.js)
File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js)
File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js)
File: OverviewMap (no auto-title, OpenLayers/Control/OverviewMap.js)
File: Pan (no auto-title, OpenLayers/Control/Pan.js)
File: Panel (no auto-title, OpenLayers/Control/Panel.js)
File: PanPanel (no auto-title, OpenLayers/Control/PanPanel.js)
File: PanZoom (no auto-title, OpenLayers/Control/PanZoom.js)
File: PanZoomBar (no auto-title, OpenLayers/Control/PanZoomBar.js)
File: Permalink (no auto-title, OpenLayers/Control/Permalink.js)
File: PinchZoom (no auto-title, OpenLayers/Control/PinchZoom.js)
File: Scale (no auto-title, OpenLayers/Control/Scale.js)
File: ScaleLine (no auto-title, OpenLayers/Control/ScaleLine.js)
File: SelectFeature (no auto-title, OpenLayers/Control/SelectFeature.js)
File: SLDSelect (no auto-title, OpenLayers/Control/SLDSelect.js)
File: Snapping (no auto-title, OpenLayers/Control/Snapping.js)
File: Split (no auto-title, OpenLayers/Control/Split.js)
File: TouchNavigation (no auto-title, OpenLayers/Control/TouchNavigation.js)
File: TransformFeature (no auto-title, OpenLayers/Control/TransformFeature.js)
File: WMSGetFeatureInfo (no auto-title, OpenLayers/Control/WMSGetFeatureInfo.js)
File: WMTSGetFeatureInfo (no auto-title, OpenLayers/Control/WMTSGetFeatureInfo.js)
File: ZoomBox (no auto-title, OpenLayers/Control/ZoomBox.js)
File: ZoomIn (no auto-title, OpenLayers/Control/ZoomIn.js)
File: ZoomOut (no auto-title, OpenLayers/Control/ZoomOut.js)
File: ZoomPanel (no auto-title, OpenLayers/Control/ZoomPanel.js)
File: ZoomToMaxExtent (no auto-title, OpenLayers/Control/ZoomToMaxExtent.js)
} # Group: Control
@@ -101,7 +115,6 @@ Group: OpenLayers {
File: Feature (no auto-title, OpenLayers/Feature.js)
File: Vector (no auto-title, OpenLayers/Feature/Vector.js)
File: WFS (no auto-title, OpenLayers/Feature/WFS.js)
} # Group: Feature
Group: Filter {
@@ -109,18 +122,39 @@ Group: OpenLayers {
File: Filter (no auto-title, OpenLayers/Filter.js)
File: Comparison (no auto-title, OpenLayers/Filter/Comparison.js)
File: FeatureId (no auto-title, OpenLayers/Filter/FeatureId.js)
File: Function (no auto-title, OpenLayers/Filter/Function.js)
File: Logical (no auto-title, OpenLayers/Filter/Logical.js)
File: Spatial (no auto-title, OpenLayers/Filter/Spatial.js)
} # Group: Filter
Group: Format {
File: Format (no auto-title, OpenLayers/Format.js)
File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js)
File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js)
File: ArcXML (no auto-title, OpenLayers/Format/ArcXML.js)
File: ArcXML.Features (no auto-title, OpenLayers/Format/ArcXML/Features.js)
File: Atom (no auto-title, OpenLayers/Format/Atom.js)
File: Context (no auto-title, OpenLayers/Format/Context.js)
File: CQL (no auto-title, OpenLayers/Format/CQL.js)
File: CSWGetDomain (no auto-title, OpenLayers/Format/CSWGetDomain.js)
File: CSWGetDomain.v2_0_2 (no auto-title, OpenLayers/Format/CSWGetDomain/v2_0_2.js)
File: CSWGetRecords (no auto-title, OpenLayers/Format/CSWGetRecords.js)
File: CSWGetRecords.v2_0_2 (no auto-title, OpenLayers/Format/CSWGetRecords/v2_0_2.js)
Group: Filter {
File: Filter (no auto-title, OpenLayers/Format/Filter.js)
File: v1 (no auto-title, OpenLayers/Format/Filter/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/Filter/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/Filter/v1_1_0.js)
} # Group: Filter
Group: GML {
File: GML (no auto-title, OpenLayers/Format/GML.js)
File: JSON (no auto-title, OpenLayers/Format/JSON.js)
File: KML (no auto-title, OpenLayers/Format/KML.js)
File: OSM (no auto-title, OpenLayers/Format/OSM.js)
File: Base (no auto-title, OpenLayers/Format/GML/Base.js)
File: v2 (no auto-title, OpenLayers/Format/GML/v2.js)
File: v3 (no auto-title, OpenLayers/Format/GML/v3.js)
} # Group: GML
Group: SLD {
@@ -129,10 +163,49 @@ Group: OpenLayers {
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: JSON (no auto-title, OpenLayers/Format/JSON.js)
File: KML (no auto-title, OpenLayers/Format/KML.js)
File: OGCExceptionReport (no auto-title, OpenLayers/Format/OGCExceptionReport.js)
File: OSM (no auto-title, OpenLayers/Format/OSM.js)
Group: OWSCommon {
File: OWSCommon (no auto-title, OpenLayers/Format/OWSCommon.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_1_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_1_0.js)
} # Group: OWSCommon
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: QueryStringFilter (no auto-title, OpenLayers/Format/QueryStringFilter.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: SOSGetFeatureOfInterest (no auto-title, OpenLayers/Format/SOSGetFeatureOfInterest.js)
File: SOSGetObservation (no auto-title, OpenLayers/Format/SOSGetObservation.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: WFS (no auto-title, OpenLayers/Format/WFS.js)
File: WKT (no auto-title, OpenLayers/Format/WKT.js)
File: XML (no auto-title, OpenLayers/Format/XML.js)
Group: WFSCapabilities {
File: WFSCapabilities (no auto-title, OpenLayers/Format/WFSCapabilities.js)
File: v1 (no auto-title, OpenLayers/Format/WFSCapabilities/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_1_0.js)
} # Group: WFSCapabilities
Group: WFST {
File: WFST (no auto-title, OpenLayers/Format/WFST.js)
File: v1 (no auto-title, OpenLayers/Format/WFST/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/WFST/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/WFST/v1_1_0.js)
} # Group: WFST
Group: WMC {
@@ -142,6 +215,37 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/WMC/v1_1_0.js)
} # Group: WMC
Group: WMSCapabilities {
File: WMSCapabilities (no auto-title, OpenLayers/Format/WMSCapabilities.js)
File: v1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1.js)
File: v1_1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1_0.js)
File: v1_1_1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1_1.js)
File: v1_3 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_3.js)
File: v1_3_0 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_3_0.js)
File: WMSCapabilities/v1_1_1_WMSC (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1_1_WMSC.js)
} # Group: WMSCapabilities
Group: WMSDescribeLayer {
File: WMSDescribeLayer (no auto-title, OpenLayers/Format/WMSDescribeLayer.js)
File: v1_1 (no auto-title, OpenLayers/Format/WMSDescribeLayer/v1_1.js)
} # 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: WMTSCapabilities (no auto-title, OpenLayers/Format/WMTSCapabilities.js)
File: WMTSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/WMTSCapabilities/v1_0_0.js)
File: WPSCapabilities (no auto-title, OpenLayers/Format/WPSCapabilities.js)
File: WPSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/WPSCapabilities/v1_0_0.js)
File: WPSDescribeProcess (no auto-title, OpenLayers/Format/WPSDescribeProcess.js)
File: WPSExecute version 1.0.0 (no auto-title, OpenLayers/Format/WPSExecute.js)
File: XLS (no auto-title, OpenLayers/Format/XLS.js)
File: XLS.v1 (no auto-title, OpenLayers/Format/XLS/v1.js)
File: XLS.v1_1_0 (no auto-title, OpenLayers/Format/XLS/v1_1_0.js)
File: XML (no auto-title, OpenLayers/Format/XML.js)
} # Group: Format
Group: Geometry {
@@ -156,7 +260,6 @@ Group: OpenLayers {
File: MultiPolygon (no auto-title, OpenLayers/Geometry/MultiPolygon.js)
File: Point (no auto-title, OpenLayers/Geometry/Point.js)
File: Polygon (no auto-title, OpenLayers/Geometry/Polygon.js)
File: Rectangle (no auto-title, OpenLayers/Geometry/Rectangle.js)
} # Group: Geometry
Group: Handler {
@@ -170,53 +273,98 @@ Group: OpenLayers {
File: Keyboard (no auto-title, OpenLayers/Handler/Keyboard.js)
File: MouseWheel (no auto-title, OpenLayers/Handler/MouseWheel.js)
File: Path (no auto-title, OpenLayers/Handler/Path.js)
File: Pinch (no auto-title, OpenLayers/Handler/Pinch.js)
File: Point (no auto-title, OpenLayers/Handler/Point.js)
File: Polygon (no auto-title, OpenLayers/Handler/Polygon.js)
File: RegularPolygon (no auto-title, OpenLayers/Handler/RegularPolygon.js)
} # Group: Handler
File: Icon (no auto-title, OpenLayers/Icon.js)
File: Kinetic (no auto-title, OpenLayers/Kinetic.js)
Group: Lang {
File: Lang (no auto-title, OpenLayers/Lang.js)
File: Lang["cs-CZ"] (OpenLayers/Lang/cs-CZ.js)
File: Lang["de"] (no auto-title, OpenLayers/Lang/de.js)
File: Lang["en"] (no auto-title, OpenLayers/Lang/en.js)
File: Lang["en-CA"] (no auto-title, OpenLayers/Lang/en-CA.js)
File: Lang["fr"] (no auto-title, OpenLayers/Lang/fr.js)
File: ar (no auto-title, OpenLayers/Lang/ar.js)
File: be-tarask (no auto-title, OpenLayers/Lang/be-tarask.js)
File: bg (no auto-title, OpenLayers/Lang/bg.js)
File: br (no auto-title, OpenLayers/Lang/br.js)
File: ca (no auto-title, OpenLayers/Lang/ca.js)
File: cs-CZ (no auto-title, OpenLayers/Lang/cs-CZ.js)
File: da-DK (no auto-title, OpenLayers/Lang/da-DK.js)
File: de (no auto-title, OpenLayers/Lang/de.js)
File: en (no auto-title, OpenLayers/Lang/en.js)
File: en-CA (no auto-title, OpenLayers/Lang/en-CA.js)
File: es (no auto-title, OpenLayers/Lang/es.js)
File: el (no auto-title, OpenLayers/Lang/el.js)
File: fi (no auto-title, OpenLayers/Lang/fi.js)
File: fr (no auto-title, OpenLayers/Lang/fr.js)
File: fur (no auto-title, OpenLayers/Lang/fur.js)
File: gl (no auto-title, OpenLayers/Lang/gl.js)
File: gsw (no auto-title, OpenLayers/Lang/gsw.js)
File: hr (no auto-title, OpenLayers/Lang/hr.js)
File: hsb (no auto-title, OpenLayers/Lang/hsb.js)
File: hu (no auto-title, OpenLayers/Lang/hu.js)
File: ia (no auto-title, OpenLayers/Lang/ia.js)
File: id (no auto-title, OpenLayers/Lang/id.js)
File: io (no auto-title, OpenLayers/Lang/io.js)
File: is (no auto-title, OpenLayers/Lang/is.js)
File: it (no auto-title, OpenLayers/Lang/it.js)
File: ja (no auto-title, OpenLayers/Lang/ja.js)
File: km (no auto-title, OpenLayers/Lang/km.js)
File: ksh (no auto-title, OpenLayers/Lang/ksh.js)
File: lt (no auto-title, OpenLayers/Lang/lt.js)
File: nds (no auto-title, OpenLayers/Lang/nds.js)
File: nb (no auto-title, OpenLayers/Lang/nb.js)
File: nl (no auto-title, OpenLayers/Lang/nl.js)
File: nn (no auto-title, OpenLayers/Lang/nn.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-BR (no auto-title, OpenLayers/Lang/pt-BR.js)
File: ru (no auto-title, OpenLayers/Lang/ru.js)
File: sk (no auto-title, OpenLayers/Lang/sk.js)
File: sv-SE (no auto-title, OpenLayers/Lang/sv-SE.js)
File: te (no auto-title, OpenLayers/Lang/te.js)
File: vi (no auto-title, OpenLayers/Lang/vi.js)
File: zh-CN (no auto-title, OpenLayers/Lang/zh-CN.js)
File: zh-TW (no auto-title, OpenLayers/Lang/zh-TW.js)
} # Group: Lang
Group: Layer {
File: Layer (no auto-title, OpenLayers/Layer.js)
File: ArcGISCache.js (no auto-title, OpenLayers/Layer/ArcGISCache.js)
File: ArcGIS93Rest (no auto-title, OpenLayers/Layer/ArcGIS93Rest.js)
File: ArcIMS (no auto-title, OpenLayers/Layer/ArcIMS.js)
File: Bing (no auto-title, OpenLayers/Layer/Bing.js)
File: Boxes (no auto-title, OpenLayers/Layer/Boxes.js)
File: EventPane (no auto-title, OpenLayers/Layer/EventPane.js)
File: FixedZoomLevels (no auto-title, OpenLayers/Layer/FixedZoomLevels.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.v3 (no auto-title, OpenLayers/Layer/Google/v3.js)
File: Grid (no auto-title, OpenLayers/Layer/Grid.js)
File: HTTPRequest (no auto-title, OpenLayers/Layer/HTTPRequest.js)
File: Image (no auto-title, OpenLayers/Layer/Image.js)
File: KaMap (no auto-title, OpenLayers/Layer/KaMap.js)
File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js)
File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.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: MultiMap (no auto-title, OpenLayers/Layer/MultiMap.js)
File: PointGrid (no auto-title, OpenLayers/Layer/PointGrid.js)
File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js)
File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js)
File: Text (no auto-title, OpenLayers/Layer/Text.js)
File: TileCache (no auto-title, OpenLayers/Layer/TileCache.js)
File: TMS (no auto-title, OpenLayers/Layer/TMS.js)
File: Vector (no auto-title, OpenLayers/Layer/Vector.js)
File: VirtualEarth (no auto-title, OpenLayers/Layer/VirtualEarth.js)
File: WFS (no auto-title, OpenLayers/Layer/WFS.js)
File: Vector.RootContainer (no auto-title, OpenLayers/Layer/Vector/RootContainer.js)
File: WMS (no auto-title, OpenLayers/Layer/WMS.js)
File: WMS.Untiled (no auto-title, OpenLayers/Layer/WMS/Untiled.js)
File: WMTS (no auto-title, OpenLayers/Layer/WMTS.js)
File: WorldWind (no auto-title, OpenLayers/Layer/WorldWind.js)
File: Yahoo (no auto-title, OpenLayers/Layer/Yahoo.js)
File: XYZ (no auto-title, OpenLayers/Layer/XYZ.js)
File: Zoomify (no auto-title, OpenLayers/Layer/Zoomify.js)
} # Group: Layer
File: Map (no auto-title, OpenLayers/Map.js)
@@ -232,33 +380,85 @@ Group: OpenLayers {
File: Popup (no auto-title, OpenLayers/Popup.js)
File: Anchored (no auto-title, OpenLayers/Popup/Anchored.js)
File: AnchoredBubble (no auto-title, OpenLayers/Popup/AnchoredBubble.js)
File: Framed (OpenLayers/Popup/Framed.js)
File: FramedCloud (OpenLayers/Popup/FramedCloud.js)
File: Framed (no auto-title, OpenLayers/Popup/Framed.js)
File: FramedCloud (no auto-title, OpenLayers/Popup/FramedCloud.js)
} # Group: Popup
File: Projection (no auto-title, OpenLayers/Projection.js)
Group: Protocol {
File: Protocol (no auto-title, OpenLayers/Protocol.js)
File: HTTP (no auto-title, OpenLayers/Protocol/HTTP.js)
Group: WFS {
File: WFS (no auto-title, OpenLayers/Protocol/WFS.js)
File: v1 (no auto-title, OpenLayers/Protocol/WFS/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Protocol/WFS/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Protocol/WFS/v1_1_0.js)
} # Group: WFS
File: Script (no auto-title, OpenLayers/Protocol/Script.js)
File: SOS.DEFAULTS (no auto-title, OpenLayers/Protocol/SOS.js)
File: SOS.v1_0_0 (no auto-title, OpenLayers/Protocol/SOS/v1_0_0.js)
} # Group: Protocol
Group: Renderer {
File: Renderer (no auto-title, OpenLayers/Renderer.js)
File: Elements (no auto-title, OpenLayers/Renderer/Elements.js)
File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js)
File: ElementsIndexer (no auto-title, OpenLayers/Renderer/Elements.js)
File: SVG (no auto-title, OpenLayers/Renderer/SVG.js)
File: VML (no auto-title, OpenLayers/Renderer/VML.js)
} # Group: Renderer
Group: Request {
File: Request (no auto-title, OpenLayers/Request.js)
File: XMLHttpRequest (no auto-title, OpenLayers/Request/XMLHttpRequest.js)
} # Group: Request
File: Rule (no auto-title, OpenLayers/Rule.js)
File: SingleFile.js (no auto-title, OpenLayers/SingleFile.js)
Group: Strategy {
File: Strategy (no auto-title, OpenLayers/Strategy.js)
File: BBOX (no auto-title, OpenLayers/Strategy/BBOX.js)
File: Cluster (no auto-title, OpenLayers/Strategy/Cluster.js)
File: Filter (no auto-title, OpenLayers/Strategy/Filter.js)
File: Fixed (no auto-title, OpenLayers/Strategy/Fixed.js)
File: Paging (no auto-title, OpenLayers/Strategy/Paging.js)
File: Refresh (no auto-title, OpenLayers/Strategy/Refresh.js)
File: Save (no auto-title, OpenLayers/Strategy/Save.js)
} # Group: Strategy
File: Style (no auto-title, OpenLayers/Style.js)
File: Style2 (no auto-title, OpenLayers/Style2.js)
File: StyleMap (no auto-title, OpenLayers/StyleMap.js)
Group: Symbolizer {
File: Symbolizer (no auto-title, OpenLayers/Symbolizer.js)
File: Line (no auto-title, OpenLayers/Symbolizer/Line.js)
File: Point (no auto-title, OpenLayers/Symbolizer/Point.js)
File: Polygon (no auto-title, OpenLayers/Symbolizer/Polygon.js)
File: Raster (no auto-title, OpenLayers/Symbolizer/Raster.js)
File: Text (no auto-title, OpenLayers/Symbolizer/Text.js)
} # Group: Symbolizer
Group: Tile {
File: Tile (no auto-title, OpenLayers/Tile.js)
File: Image (no auto-title, OpenLayers/Tile/Image.js)
File: WFS (no auto-title, OpenLayers/Tile/WFS.js)
File: Image.IFrame (no auto-title, OpenLayers/Tile/Image/IFrame.js)
} # Group: Tile
File: Tween (no auto-title, OpenLayers/Tween.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: Index {

View File

@@ -1,4 +1,4 @@
Format: Development Release 12-07-2007 (1.35 base)
Format: 1.52
# This is the Natural Docs topics file for this project. If you change anything
# here, it will apply to THIS PROJECT ONLY. If you'd like to change something

View File

@@ -1,43 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers GML Parser</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 type="text/javascript">
function parseData(req) {
g = new OpenLayers.Format.GML();
html = ""
features = g.read(req.responseText);
for(var feat in features) {
html += "Feature: Geometry: "+ features[feat].geometry+",";
html += "<ul>";
for (var j in features[feat].attributes) {
html += "<li>"+j+":"+features[feat].attributes[j]+"</li>";
}
html += "</ul>"
}
document.getElementById('output').innerHTML = html;
}
function load() {
OpenLayers.loadURL("gml/owls.xml", "", null, parseData);
}
</script>
</head>
<body onload="load()">
<h1 id="title">GML Parser Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate the operation of the GML parser.
</p>
<div id="output"></div>
<div id="docs">
This script reads data from a GML file and parses out the coordinates, appending them to a HTML string with markup tags.
This markup is dumped to an element in the page.
</div>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@@ -1,12 +1,16 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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 KML Parser Example</title>
<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 type="text/javascript">
function parseData(req) {
g = new OpenLayers.Format.KML({extractStyles: true});
html = ""
html = "";
features = g.read(req.responseText);
for(var feat in features) {
html += "Feature: Geometry: "+ features[feat].geometry+",";
@@ -14,7 +18,7 @@
for (var j in features[feat].attributes) {
html += "<li>Attribute "+j+":"+features[feat].attributes[j]+"</li>";
}
html += "</ul>"
html += "</ul>";
html += "<ul>";
for (var j in features[feat].style) {
html += "<li>Style "+j+":"+features[feat].style[j]+"</li>";
@@ -24,14 +28,19 @@
document.getElementById('output').innerHTML = html;
}
function load() {
OpenLayers.loadURL("kml/lines.kml", "", null, parseData);
OpenLayers.Request.GET({
url: "kml/lines.kml",
success: parseData
});
}
</script>
</head>
<body onload="load()">
<h1 id="title">KML Parser Example</h1>
<div id="tags"></div>
<div id="tags">
KML, parsing, format
</div>
<p id="shortdesc">
Demonstrate the operation of the KML parser.
@@ -40,8 +49,9 @@
<div id="output"></div>
<div id="docs">
This script reads data from a KML file and parses out the coordinates, appending them to a HTML string with markup tags.
This markup is dumped to an element in the page.
<p>This script reads data from a KML file and parses out the
coordinates, appending them to a HTML string with markup tags.
This markup is dumped to an element in the page.</p>
</div>
</body>
</html>

202
examples/SLDSelect.html Normal file
View File

@@ -0,0 +1,202 @@
<!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 SLD based selection 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">
.olControlSLDSelectBoxActive {
cursor: crosshair;
}
.olControlSLDSelectPolygonActive {
cursor: crosshair;
}
.olControlSLDSelectLineActive {
cursor: crosshair;
}
.olControlSLDSelectPointActive {
cursor: pointer;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, controls, layers;
function init(){
OpenLayers.ProxyHost= "proxy.cgi?url=";
map = new OpenLayers.Map('map', {allOverlays: true, controls: []});
var url = "http://demo.opengeo.org/geoserver/wms";
layers = {
states: new OpenLayers.Layer.WMS("State boundary", url,
{layers: 'topp:tasmania_state_boundaries', format: 'image/gif', transparent: 'TRUE'},
{singleTile: true}),
roads: new OpenLayers.Layer.WMS("Roads", url,
{layers: 'topp:tasmania_roads', format: 'image/gif', transparent: 'TRUE'},
{singleTile: true}),
waterbodies: new OpenLayers.Layer.WMS("Water bodies", url,
{layers: 'topp:tasmania_water_bodies', format: 'image/gif', transparent: 'TRUE'},
{singleTile: true}),
cities: new OpenLayers.Layer.WMS("Cities", url,
{layers: 'topp:tasmania_cities', format: 'image/gif', transparent: 'TRUE'},
{singleTile: true})
};
for (var key in layers) {
map.addLayer(layers[key]);
}
map.setCenter(new OpenLayers.LonLat(146.65748632815,-42.230763671875), 7);
map.addControl(new OpenLayers.Control.LayerSwitcher());
controls = {
navigation: new OpenLayers.Control.Navigation(),
box: new OpenLayers.Control.SLDSelect(
OpenLayers.Handler.RegularPolygon,
{
displayClass: 'olControlSLDSelectBox',
layers: [layers['waterbodies']],
handlerOptions: {irregular: true}
}
),
polygon: new OpenLayers.Control.SLDSelect(
OpenLayers.Handler.Polygon,
{
displayClass: 'olControlSLDSelectPolygon',
layers: [layers['waterbodies']]
}
),
line: new OpenLayers.Control.SLDSelect(
OpenLayers.Handler.Path,
{
displayClass: 'olControlSLDSelectLine',
layers: [layers['waterbodies']]
}
),
point: new OpenLayers.Control.SLDSelect(
OpenLayers.Handler.Click,
{
displayClass: 'olControlSLDSelectPoint',
layers: [layers['waterbodies']]
}
),
circle: new OpenLayers.Control.SLDSelect(
OpenLayers.Handler.RegularPolygon,
{
displayClass: 'olControlSLDSelectBox',
layers: [layers['waterbodies']],
handlerOptions: {sides: 30}
}
)
};
for(var key in controls) {
map.addControl(controls[key]);
}
}
function toggleControl(element) {
for(var key in controls) {
var control = controls[key];
if(element.value == key && element.checked) {
control.activate();
} else {
control.deactivate();
}
}
}
function toggleSelectionLayer(element) {
var selectLayers = [];
var elements = element.value.split("_");
for (var key in layers) {
var layer = layers[key];
for (var i=0, len=elements.length; i<len; i++) {
var value = elements[i];
if (value == key && element.checked) {
selectLayers.push(layer);
}
}
}
for (var i=0, len=this.map.controls.length; i<len; i++) {
var control = this.map.controls[i];
if (control instanceof OpenLayers.Control.SLDSelect) {
control.setLayers(selectLayers);
}
}
}
</script>
</head>
<body onload="init()">
<h1 id="title">SLD based selection on WMS layers</h1>
<div id="tags">
sld, sldselect, styling, style
</div>
<div id="shortdesc">Using Styled Layer Descriptors to make a selection on WMS layers</div>
<div id="map" style="width: 512px; height: 256px; border: 1px solid red;"></div>
<div id="docs">
This example uses the OpenLayers.Control.SLDSelect to select features in a WMS
layer. The features are highlighted using Styled Layer Descriptors (SLD). The
control supports point, box, line and polygon selection modes by configuring the
appriopriate handler.
</div>
<div id="controls">
<ul id="controlToggle"><b>Map Controls</b>
<li>
<input type="radio" name="control" value="navigation" id="noneToggle" onclick="toggleControl(this);" CHECKED>
<label for="noneToggle">navigate</label>
</li>
<li>
<input type="radio" name="control" value="box" id="boxToggle" onclick="toggleControl(this);">
<label for="boxToggle">SLD select with box</label>
</li>
<li>
<input type="radio" name="control" value="polygon" id="polygonToggle" onclick="toggleControl(this);">
<label for="polygonToggle">SLD select with polygon</label>
</li>
<li>
<input type="radio" name="control" value="line" id="lineToggle" onclick="toggleControl(this);">
<label for="lineToggle">SLD select with line</label>
</li>
<li>
<input type="radio" name="control" value="point" id="pointToggle" onclick="toggleControl(this);">
<label for="pointToggle">SLD select with point</label>
</li>
<li>
<input type="radio" name="control" value="circle" id="circleToggle" onclick="toggleControl(this);">
<label for="circleToggle">SLD select with circle</label>
</li>
</ul>
</div>
<div id="layers">
<ul id="layerToggle"><b>Selection layer</b>
<li>
<input type="radio" name="layer" value="waterbodies" id="waterbodiesToggle" onclick="toggleSelectionLayer(this);" CHECKED>
<label for="noneToggle">Water bodies</label>
</li>
<li>
<input type="radio" name="layer" value="cities" id="citiesToggle" onclick="toggleSelectionLayer(this);">
<label for="citiesToggle">Cities</label>
</li>
<li>
<input type="radio" name="layer" value="roads" id="roadsToggle" onclick="toggleSelectionLayer(this);">
<label for="roadsToggle">Roads</label>
</li>
<li>
<input type="radio" name="layer" value="roads_cities" id="roadsCitiesToggle" onclick="toggleSelectionLayer(this);">
<label for="roadsCitiesToggle">Roads and cities</label>
</li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,51 @@
<!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 WMSDescribeLayer Parser Example</title>
<link rel="stylesheet" href="style.css" type="text/css">
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
function parseData(req) {
format = new OpenLayers.Format.WMSDescribeLayer();
html = "<br>";
resp = format.read(req.responseText);
for(var i = 0; i < resp.length; i++) {
html += "Layer: typeName: "+ resp[i].typeName+",";
html += "<ul>";
html += "<li>owsURL: "+resp[i].owsURL+"</li>";
html += "<li>owsType: "+resp[i].owsType+"</li>";
html += "</ul>"
}
document.getElementById('output').innerHTML = html;
}
function load() {
OpenLayers.Request.GET({
url: "xml/wmsdescribelayer.xml",
success: parseData
});
}
</script>
</head>
<body onload="load()">
<h1 id="title">WMSDescribeLayer Parser Example</h1>
<div id="tags">
wmsdescribelayer, parser, cleanup
</div>
<p id="shortdesc">
Demonstrate the operation of the WMSDescribeLayer parser.
</p>
<div id="output"></div>
<div id="docs">
<p>This script reads data from a file and parses out the coordinates,
appending them to a HTML string with markup tags. This markup is
dumped to an element in the page.</p>
</div>
</body>
</html>

100
examples/accelerometer.html Normal file
View File

@@ -0,0 +1,100 @@
<!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 Accelerometer Usage</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<script type="text/javascript" src="browser.js"></script>
<style type="text/css">
.olControlAttribution {
bottom: 5px;
}
</style>
<script type="text/javascript">
function init() {
if (isEventSupported('deviceorientation', window) || isEventSupported('mozorientation', window) || isEventSupported('devicemotion', window)) {
if (window.DeviceOrientationEvent) {
window.addEventListener("deviceorientation", function (event) {
document.getElementById('resultDeviceOrientation').innerHTML = '';
if (typeof(event.alpha) != 'undefined') {
document.getElementById('resultDeviceOrientation').innerHTML = document.getElementById('resultDeviceOrientation').innerHTML + "Alpha: " + event.alpha + "<br>";
document.getElementById('resultDeviceOrientation').innerHTML = document.getElementById('resultDeviceOrientation').innerHTML + "Beta: " + event.beta + "<br>";
document.getElementById('resultDeviceOrientation').innerHTML = document.getElementById('resultDeviceOrientation').innerHTML + "Gamma: " + event.gamma + "<br>";
}
if (typeof(event.absolute) != 'undefined') {
document.getElementById('resultDeviceOrientation').innerHTML = document.getElementById('resultDeviceOrientation').innerHTML + "Gamma: " + event.absolute + "<br>";
}
if (typeof(event.compassCalibrate) != 'undefined') {
document.getElementById('resultDeviceOrientation').innerHTML = document.getElementById('resultDeviceOrientation').innerHTML + "Gamma: " + event.compassCalibrated + "<br>";
}
}, true);
}
if (window.DeviceMotionEvent) {
window.addEventListener('devicemotion', function (event) {
document.getElementById('resultDeviceMotion').innerHTML = '';
if (typeof(event.accelerationIncludingGravity) != 'undefined') {
document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "accelerationIncludingGravity.x: " + event.accelerationIncludingGravity.x + "<br>";
document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "accelerationIncludingGravity.y: " + event.accelerationIncludingGravity.y + "<br>";
document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "accelerationIncludingGravity.z: " + event.accelerationIncludingGravity.z + "<br>";
}
if (typeof(event.acceleration) != 'undefined') {
document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "acceleration.x: " + event.acceleration.x + "<br>";
document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "acceleration.y: " + event.acceleration.y + "<br>";
document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "acceleration.z: " + event.acceleration.z + "<br>";
}
if (typeof(event.rotationRate) != 'undefined') {
document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "rotationRate.alpha: " + event.rotationRate.alpha + "<br>";
document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "rotationRate.beta: " + event.rotationRate.beta + "<br>";
document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "rotationRate.gamma: " + event.rotationRate.gamma + "<br>";
}
}, true);
}
if (window.MozOrientation) {
window.addEventListener("MozOrientation", function (orientation) {
document.getElementById('resultMozOrientation').innerHTML = "orientation.x: " + orientation.x + "<br>";
document.getElementById('resultMozOrientation').innerHTML = document.getElementById('resultMozOrientation').innerHTML + "orientation.y: " + orientation.y + "<br>";
document.getElementById('resultMozOrientation').innerHTML = document.getElementById('resultMozOrientation').innerHTML + "orientation.z: " + orientation.z + "<br>";
}, true);
}
} else {
alert("Unfortunately, your brower doesn't support the orientation usage");
}
}
</script>
</head>
<body onload="init()">
<h1 id="title">Accelerometer</h1>
<p id="shortdesc">
The goal of this script is to demonstrate the usage of accelerometer.
</p>
<p>
The orientation specification can be found <a href="http://dev.w3.org/geo/api/spec-source-orientation.html">here</a>.
</p>
<div id="tags">
browser, vendor, mobile, orientation
</div>
<h1>Device motion</h1>
<div id="resultDeviceMotion">
</div>
<h1>Device orientation</h1>
<div id="resultDeviceOrientation">
</div>
<h1>MOZ orientation</h1>
<div id="resultMozOrientation">
</div>
</body>
</html>

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>

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);
}
});

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>

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);
}

View File

@@ -1,8 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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 Accessible Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="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">
<style type="text/css">
table {
border: 1 px solid white;
@@ -27,18 +31,31 @@
font-size:1em;
text-decoration:underline;
}
a.accesskey {
color: white;
}
a.accesskey:focus {
color: #436976;
}
a.zoom {
padding-right: 20px;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map = null;
function init(){
var options = {
controls: [new OpenLayers.Control.KeyboardDefaults()]
controls: [
new OpenLayers.Control.KeyboardDefaults({
observeElement: 'map'
})
]
};
map = new OpenLayers.Map('map', options);
var wms = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?",
"http://vmap0.tiles.osgeo.org/wms/vmap0?",
{layers: 'basic'}
);
map.addLayer(wms);
@@ -50,33 +67,40 @@
<h1 id="title">Accessible Example</h1>
<div id="tags">
keyboard, pan, panning, zoom, zooming, accesskey
</div>
<a class="accesskey"
href=""
accesskey="1"
onclick="document.getElementById('map').focus(); return false;">
Go to map
</a>
<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>
<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>
<tbody>
<tr>
<td>
<a href="javascript: void map.zoomOut();"
accesskey="o">
zoom <em>o</em>ut
</a>
</td>
<td>&nbsp;</td>
<td>
<a href="javascript: void map.pan(0, -map.getSize().h / 4);"
accesskey="n">
pan <em>n</em>orth
</a>
</td>
<td>
<a href="javascript: void map.zoomIn();"
accesskey="i">
zoom <em>i</em>n
</a>
</td>
</tr>
<tr>
<td>
@@ -85,7 +109,7 @@
pan <em>w</em>est
</a>
</td>
<td id="map" class="smallmap"></td>
<td id="map" class="smallmap" tabindex="0"></td>
<td>
<a href="javascript: void map.pan(map.getSize().w / 4, 0);"
accesskey="e">
@@ -107,10 +131,10 @@
</table>
<div id="docs">
<p>Navigate the map in one of three ways:
<ul>
<li>Click on the named links to zoom and pan</li>
<li>Use following keys to pan and zoom:
<p>Navigate the map in one of three ways:</p>
<ol>
<li>Use Access Key "1" (alt + 1) to focus the map element, and
use following keys to pan and zoom:
<ul>
<li>+ (zoom in)</li>
<li>- (zoom out)</li>
@@ -119,8 +143,12 @@
<li>left-arrow (pan east)</li>
<li>right-arrow (pan west)</li>
</ul>
See <a href=http://en.wikipedia.org/wiki/Access_key>wikipedia</a> for
more detail about Access Keys.
</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>
<li>i (zoom in)</li>
<li>o (zoom out)</li>
@@ -130,8 +158,8 @@
<li>w (pan west)</li>
</ul>
</li>
</ul>
</p>
</ol>
<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.
</div>

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 All Overlays with Google and OSM</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">
<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false"></script>
<script src="../lib/OpenLayers.js"></script>
<script src="all-overlays-google.js"></script>
</head>
<body onload="init()">
<h1 id="title">All Overlays with Google and OSM</h1>
<div id="tags">
overlay, baselayer, google, osm, openstreetmap, light
</div>
<p id="shortdesc">
Using the Google and OSM layers as overlays.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
Using the allOverlays property on the map, the first layer added
must initially be visible. This example demonstrates the use of
a Google layer and an OSM layer treated as overlays.
</p><p>
See the <a href="all-overlays-google.js" target="_blank">
all-overlays-google.js source</a> to see how this is done.
</p>
</div>
</body>
</html>

View File

@@ -0,0 +1,19 @@
var map;
function init() {
map = new OpenLayers.Map({
div: "map",
allOverlays: true
});
var osm = new OpenLayers.Layer.OSM();
var gmap = new OpenLayers.Layer.Google("Google Streets", {visibility: false});
// note that first layer must be visible
map.addLayers([osm, gmap]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.zoomToMaxExtent();
}

View File

@@ -0,0 +1,76 @@
<!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>All Overlays 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 type="text/javascript">
var map;
function init() {
map = new OpenLayers.Map({
div: "map",
allOverlays: true,
maxExtent: new OpenLayers.Bounds(
1549471.9221, 6403610.94, 1550001.32545, 6404015.8
)
});
// give the features some style
var styles = new OpenLayers.StyleMap({
"default": {
strokeWidth: 2
},
"select": {
strokeColor: "#0099cc",
strokeWidth: 4
}
});
// add rules from the above lookup table
styles.addUniqueValueRules("default", "RP_TYPE", {
10: {strokeColor: "#000000", strokeWidth: 2},
12: {strokeColor: "#222222", strokeWidth: 2},
14: {strokeColor: "#444444", strokeWidth: 2},
16: {strokeColor: "#666666", strokeWidth: 2},
18: {strokeColor: "#888888", strokeWidth: 2},
19: {strokeColor: "#666666", strokeWidth: 1}
});
var vectors = new OpenLayers.Layer.Vector("Lines", {
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "data/roads.json",
format: new OpenLayers.Format.GeoJSON()
}),
styleMap: styles
});
map.addLayer(vectors);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.zoomToMaxExtent();
}
</script>
</head>
<body onload="init()">
<h1 id="title">OpenLayers Overlays Only Example</h1>
<div id="tags">
overlay, baselayer, light
</div>
<p id="shortdesc">
Demonstrates a map with overlays only.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
To create a map that allows any draw order with all layer types
and lets you set the visibility of any layer independently, set
the allOverlays property on the map to true.
</div>
</body>
</html>

View File

@@ -0,0 +1,29 @@
<!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">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<title>AnchorPermalink Example</title>
<script src="../lib/OpenLayers.js"></script>
<script src="anchor-permalink.js"></script>
</head>
<body onload="init()">
<h1 id="title">AnchorPermalink Example</h1>
<div id="tags">
anchor, permalink
</div>
<p id="shortdesc">
Place a permalink in the anchor of the url.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
See the <a href="anchor-permalink.js" target="_blank">anchor-permalink.js
source</a> to see how this is done.
</p>
</div>
</body>
</html>

View File

@@ -0,0 +1,13 @@
function init() {
var map = new OpenLayers.Map({
div: "map",
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326"),
layers: [
new OpenLayers.Layer.OSM()
]
});
if (!map.getCenter()) map.zoomToMaxExtent();
map.addControl(new OpenLayers.Control.Permalink({anchor: true}));
}

View File

@@ -1,8 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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>Animated Panning of the Map via map.panTo</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="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">
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, layer, running = false;
@@ -34,9 +38,9 @@
});
function init(){
map = new OpenLayers.Map('map');
map = new OpenLayers.Map('map', {numZoomLevels: 2});
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
"http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);
map.zoomToMaxExtent();
@@ -45,9 +49,9 @@
click.activate();
map.addControl(new OpenLayers.Control.OverviewMap());
map2 = new OpenLayers.Map('map2', {'panMethod': null} );
map2 = new OpenLayers.Map('map2', {'panMethod': null, numZoomLevels: 2} );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
"http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
map2.addLayer(layer);
map2.zoomToMaxExtent();
@@ -73,11 +77,13 @@
</head>
<body onload="init()">
<h1 id="title">map.panTo Example</h1>
<div id="tags">map.panTo</div>
<div id="tags">
panning, animation, effect, smooth, panMethod
</div>
<div id="shortdesc">Show animated panning effects in the map</div>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This is an example of transition effects. If the new random center is in the current extent, the map will pan smoothly. <br />
<p>This is an example of transition effects. If the new random center is in the current extent, the map will pan smoothly. <br>
The random selection will continue until you press it again. Additionally, you can single click in the map to pan smoothly
to that area, or use the pan control to pan smoothly.
</p>

670
examples/animator.js Normal file
View File

@@ -0,0 +1,670 @@
/*
Animator.js 1.1.9
This library is released under the BSD license:
Copyright (c) 2006, Bernard Sumption. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer. 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. Neither the name BernieCode 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 COPYRIGHT HOLDERS AND CONTRIBUTORS "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 REGENTS OR CONTRIBUTORS 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.
*/
// Applies a sequence of numbers between 0 and 1 to a number of subjects
// construct - see setOptions for parameters
function Animator(options) {
this.setOptions(options);
var _this = this;
this.timerDelegate = function(){_this.onTimerEvent()};
this.subjects = [];
this.target = 0;
this.state = 0;
this.lastTime = null;
};
Animator.prototype = {
// apply defaults
setOptions: function(options) {
this.options = Animator.applyDefaults({
interval: 20, // time between animation frames
duration: 400, // length of animation
onComplete: function(){},
onStep: function(){},
transition: Animator.tx.easeInOut
}, options);
},
// animate from the current state to provided value
seekTo: function(to) {
this.seekFromTo(this.state, to);
},
// animate from the current state to provided value
seekFromTo: function(from, to) {
this.target = Math.max(0, Math.min(1, to));
this.state = Math.max(0, Math.min(1, from));
this.lastTime = new Date().getTime();
if (!this.intervalId) {
this.intervalId = window.setInterval(this.timerDelegate, this.options.interval);
}
},
// animate from the current state to provided value
jumpTo: function(to) {
this.target = this.state = Math.max(0, Math.min(1, to));
this.propagate();
},
// seek to the opposite of the current target
toggle: function() {
this.seekTo(1 - this.target);
},
// add a function or an object with a method setState(state) that will be called with a number
// between 0 and 1 on each frame of the animation
addSubject: function(subject) {
this.subjects[this.subjects.length] = subject;
return this;
},
// remove all subjects
clearSubjects: function() {
this.subjects = [];
},
// forward the current state to the animation subjects
propagate: function() {
var value = this.options.transition(this.state);
for (var i=0; i<this.subjects.length; i++) {
if (this.subjects[i].setState) {
this.subjects[i].setState(value);
} else {
this.subjects[i](value);
}
}
},
// called once per frame to update the current state
onTimerEvent: function() {
var now = new Date().getTime();
var timePassed = now - this.lastTime;
this.lastTime = now;
var movement = (timePassed / this.options.duration) * (this.state < this.target ? 1 : -1);
if (Math.abs(movement) >= Math.abs(this.state - this.target)) {
this.state = this.target;
} else {
this.state += movement;
}
try {
this.propagate();
} finally {
this.options.onStep.call(this);
if (this.target == this.state) {
window.clearInterval(this.intervalId);
this.intervalId = null;
this.options.onComplete.call(this);
}
}
},
// shortcuts
play: function() {this.seekFromTo(0, 1)},
reverse: function() {this.seekFromTo(1, 0)},
// return a string describing this Animator, for debugging
inspect: function() {
var str = "#<Animator:\n";
for (var i=0; i<this.subjects.length; i++) {
str += this.subjects[i].inspect();
}
str += ">";
return str;
}
};
// merge the properties of two objects
Animator.applyDefaults = function(defaults, prefs) {
prefs = prefs || {};
var prop, result = {};
for (prop in defaults) result[prop] = prefs[prop] !== undefined ? prefs[prop] : defaults[prop];
return result;
};
// make an array from any object
Animator.makeArray = function(o) {
if (o == null) return [];
if (!o.length) return [o];
var result = [];
for (var i=0; i<o.length; i++) result[i] = o[i];
return result;
};
// convert a dash-delimited-property to a camelCaseProperty (c/o Prototype, thanks Sam!)
Animator.camelize = function(string) {
var oStringList = string.split('-');
if (oStringList.length == 1) return oStringList[0];
var camelizedString = string.indexOf('-') == 0
? oStringList[0].charAt(0).toUpperCase() + oStringList[0].substring(1)
: oStringList[0];
for (var i = 1, len = oStringList.length; i < len; i++) {
var s = oStringList[i];
camelizedString += s.charAt(0).toUpperCase() + s.substring(1);
}
return camelizedString;
};
// syntactic sugar for creating CSSStyleSubjects
Animator.apply = function(el, style, options) {
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));
};
// make a transition function that gradually accelerates. pass a=1 for smooth
// gravitational acceleration, higher values for an exaggerated effect
Animator.makeEaseIn = function(a) {
return function(state) {
return Math.pow(state, a*2);
}
};
// as makeEaseIn but for deceleration
Animator.makeEaseOut = function(a) {
return function(state) {
return 1 - Math.pow(1 - state, a*2);
}
};
// make a transition function that, like an object with momentum being attracted to a point,
// goes past the target then returns
Animator.makeElastic = function(bounces) {
return function(state) {
state = Animator.tx.easeInOut(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
//
Animator.makeADSR = function(attackEnd, decayEnd, sustainEnd, sustainLevel) {
if (sustainLevel == null) sustainLevel = 0.5;
return function(state) {
if (state < attackEnd) {
return state / attackEnd;
}
if (state < decayEnd) {
return 1 - ((state - attackEnd) / (decayEnd - attackEnd) * (1 - sustainLevel));
}
if (state < sustainEnd) {
return sustainLevel;
}
return sustainLevel * (1 - ((state - sustainEnd) / (1 - sustainEnd)));
}
};
// make a transition function that, like a ball falling to floor, reaches the target and/
// bounces back again
Animator.makeBounce = function(bounces) {
var fn = Animator.makeElastic(bounces);
return function(state) {
state = fn(state);
return state <= 1 ? state : 2-state;
}
};
// pre-made transition functions to use with the 'transition' option
Animator.tx = {
easeInOut: function(pos){
return ((-Math.cos(pos*Math.PI)/2) + 0.5);
},
linear: function(x) {
return x;
},
easeIn: Animator.makeEaseIn(1.5),
easeOut: Animator.makeEaseOut(1.5),
strongEaseIn: Animator.makeEaseIn(2.5),
strongEaseOut: Animator.makeEaseOut(2.5),
elastic: Animator.makeElastic(1),
veryElastic: Animator.makeElastic(3),
bouncy: Animator.makeBounce(1),
veryBouncy: Animator.makeBounce(3)
};
// animates a pixel-based style property between two integer values
function NumericalStyleSubject(els, property, from, to, units) {
this.els = Animator.makeArray(els);
if (property == 'opacity' && window.ActiveXObject) {
this.property = 'filter';
} else {
this.property = Animator.camelize(property);
}
this.from = parseFloat(from);
this.to = parseFloat(to);
this.units = units != null ? units : 'px';
}
NumericalStyleSubject.prototype = {
setState: function(state) {
var style = this.getStyle(state);
var visibility = (this.property == 'opacity' && state == 0) ? 'hidden' : '';
var j=0;
for (var i=0; i<this.els.length; i++) {
try {
this.els[i].style[this.property] = style;
} catch (e) {
// ignore fontWeight - intermediate numerical values cause exeptions in firefox
if (this.property != 'fontWeight') throw e;
}
if (j++ > 20) return;
}
},
getStyle: function(state) {
state = this.from + ((this.to - this.from) * state);
if (this.property == 'filter') return "alpha(opacity=" + Math.round(state*100) + ")";
if (this.property == 'opacity') return state;
return Math.round(state) + this.units;
},
inspect: function() {
return "\t" + this.property + "(" + this.from + this.units + " to " + this.to + this.units + ")\n";
}
};
// animates a colour based style property between two hex values
function ColorStyleSubject(els, property, from, to) {
this.els = Animator.makeArray(els);
this.property = Animator.camelize(property);
this.to = this.expandColor(to);
this.from = this.expandColor(from);
this.origFrom = from;
this.origTo = to;
}
ColorStyleSubject.prototype = {
// parse "#FFFF00" to [256, 256, 0]
expandColor: function(color) {
var hexColor, red, green, blue;
hexColor = ColorStyleSubject.parseColor(color);
if (hexColor) {
red = parseInt(hexColor.slice(1, 3), 16);
green = parseInt(hexColor.slice(3, 5), 16);
blue = parseInt(hexColor.slice(5, 7), 16);
return [red,green,blue]
}
if (window.DEBUG) {
alert("Invalid colour: '" + color + "'");
}
},
getValueForState: function(color, state) {
return Math.round(this.from[color] + ((this.to[color] - this.from[color]) * state));
},
setState: function(state) {
var color = '#'
+ ColorStyleSubject.toColorPart(this.getValueForState(0, state))
+ ColorStyleSubject.toColorPart(this.getValueForState(1, state))
+ ColorStyleSubject.toColorPart(this.getValueForState(2, state));
for (var i=0; i<this.els.length; i++) {
this.els[i].style[this.property] = color;
}
},
inspect: function() {
return "\t" + this.property + "(" + this.origFrom + " to " + this.origTo + ")\n";
}
};
// return a properly formatted 6-digit hex colour spec, or false
ColorStyleSubject.parseColor = function(string) {
var color = '#', match;
if(match = ColorStyleSubject.parseColor.rgbRe.exec(string)) {
var part;
for (var i=1; i<=3; i++) {
part = Math.max(0, Math.min(255, parseInt(match[i])));
color += ColorStyleSubject.toColorPart(part);
}
return color;
}
if (match = ColorStyleSubject.parseColor.hexRe.exec(string)) {
if(match[1].length == 3) {
for (var i=0; i<3; i++) {
color += match[1].charAt(i) + match[1].charAt(i);
}
return color;
}
return '#' + match[1];
}
return false;
};
// convert a number to a 2 digit hex string
ColorStyleSubject.toColorPart = function(number) {
if (number > 255) number = 255;
var digits = number.toString(16);
if (number < 16) return '0' + digits;
return digits;
};
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})$/;
// Animates discrete styles, i.e. ones that do not scale but have discrete values
// that can't be interpolated
function DiscreteStyleSubject(els, property, from, to, threshold) {
this.els = Animator.makeArray(els);
this.property = Animator.camelize(property);
this.from = from;
this.to = to;
this.threshold = threshold || 0.5;
}
DiscreteStyleSubject.prototype = {
setState: function(state) {
var j=0;
for (var i=0; i<this.els.length; i++) {
this.els[i].style[this.property] = state <= this.threshold ? this.from : this.to;
}
},
inspect: function() {
return "\t" + this.property + "(" + this.from + " to " + this.to + " @ " + this.threshold + ")\n";
}
};
// animates between two styles defined using CSS.
// if style1 and style2 are present, animate between them, if only style1
// is present, animate between the element's current style and style1
function CSSStyleSubject(els, style1, style2) {
els = Animator.makeArray(els);
this.subjects = [];
if (els.length == 0) return;
var prop, toStyle, fromStyle;
if (style2) {
fromStyle = this.parseStyle(style1, els[0]);
toStyle = this.parseStyle(style2, els[0]);
} else {
toStyle = this.parseStyle(style1, els[0]);
fromStyle = {};
for (prop in toStyle) {
fromStyle[prop] = CSSStyleSubject.getStyle(els[0], prop);
}
}
// remove unchanging properties
var prop;
for (prop in fromStyle) {
if (fromStyle[prop] == toStyle[prop]) {
delete fromStyle[prop];
delete toStyle[prop];
}
}
// discover the type (numerical or colour) of each style
var prop, units, match, type, from, to;
for (prop in fromStyle) {
var fromProp = String(fromStyle[prop]);
var toProp = String(toStyle[prop]);
if (toStyle[prop] == null) {
if (window.DEBUG) alert("No to style provided for '" + prop + '"');
continue;
}
if (from = ColorStyleSubject.parseColor(fromProp)) {
to = ColorStyleSubject.parseColor(toProp);
type = ColorStyleSubject;
} else if (fromProp.match(CSSStyleSubject.numericalRe)
&& toProp.match(CSSStyleSubject.numericalRe)) {
from = parseFloat(fromProp);
to = parseFloat(toProp);
type = NumericalStyleSubject;
match = CSSStyleSubject.numericalRe.exec(fromProp);
var reResult = CSSStyleSubject.numericalRe.exec(toProp);
if (match[1] != null) {
units = match[1];
} else if (reResult[1] != null) {
units = reResult[1];
} else {
units = reResult;
}
} else if (fromProp.match(CSSStyleSubject.discreteRe)
&& toProp.match(CSSStyleSubject.discreteRe)) {
from = fromProp;
to = toProp;
type = DiscreteStyleSubject;
units = 0; // hack - how to get an animator option down to here
} else {
if (window.DEBUG) {
alert("Unrecognised format for value of "
+ prop + ": '" + fromStyle[prop] + "'");
}
continue;
}
this.subjects[this.subjects.length] = new type(els, prop, from, to, units);
}
}
CSSStyleSubject.prototype = {
// parses "width: 400px; color: #FFBB2E" to {width: "400px", color: "#FFBB2E"}
parseStyle: function(style, el) {
var rtn = {};
// if style is a rule set
if (style.indexOf(":") != -1) {
var styles = style.split(";");
for (var i=0; i<styles.length; i++) {
var parts = CSSStyleSubject.ruleRe.exec(styles[i]);
if (parts) {
rtn[parts[1]] = parts[2];
}
}
}
// else assume style is a class name
else {
var prop, value, oldClass;
oldClass = el.className;
el.className = style;
for (var i=0; i<CSSStyleSubject.cssProperties.length; i++) {
prop = CSSStyleSubject.cssProperties[i];
value = CSSStyleSubject.getStyle(el, prop);
if (value != null) {
rtn[prop] = value;
}
}
el.className = oldClass;
}
return rtn;
},
setState: function(state) {
for (var i=0; i<this.subjects.length; i++) {
this.subjects[i].setState(state);
}
},
inspect: function() {
var str = "";
for (var i=0; i<this.subjects.length; i++) {
str += this.subjects[i].inspect();
}
return str;
}
};
// get the current value of a css property,
CSSStyleSubject.getStyle = function(el, property){
var style;
if(document.defaultView && document.defaultView.getComputedStyle){
style = document.defaultView.getComputedStyle(el, "").getPropertyValue(property);
if (style) {
return style;
}
}
property = Animator.camelize(property);
if(el.currentStyle){
style = el.currentStyle[property];
}
return style || el.style[property]
};
CSSStyleSubject.ruleRe = /^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/;
CSSStyleSubject.numericalRe = /^-?\d+(?:\.\d+)?(%|[a-zA-Z]{2})?$/;
CSSStyleSubject.discreteRe = /^\w+$/;
// required because the style object of elements isn't enumerable in Safari
/*
CSSStyleSubject.cssProperties = ['background-color','border','border-color','border-spacing',
'border-style','border-top','border-right','border-bottom','border-left','border-top-color',
'border-right-color','border-bottom-color','border-left-color','border-top-width','border-right-width',
'border-bottom-width','border-left-width','border-width','bottom','color','font-size','font-size-adjust',
'font-stretch','font-style','height','left','letter-spacing','line-height','margin','margin-top',
'margin-right','margin-bottom','margin-left','marker-offset','max-height','max-width','min-height',
'min-width','orphans','outline','outline-color','outline-style','outline-width','overflow','padding',
'padding-top','padding-right','padding-bottom','padding-left','quotes','right','size','text-indent',
'top','width','word-spacing','z-index','opacity','outline-offset'];*/
CSSStyleSubject.cssProperties = ['azimuth','background','background-attachment','background-color','background-image','background-position','background-repeat','border-collapse','border-color','border-spacing','border-style','border-top','border-top-color','border-right-color','border-bottom-color','border-left-color','border-top-style','border-right-style','border-bottom-style','border-left-style','border-top-width','border-right-width','border-bottom-width','border-left-width','border-width','bottom','clear','clip','color','content','cursor','direction','display','elevation','empty-cells','css-float','font','font-family','font-size','font-size-adjust','font-stretch','font-style','font-variant','font-weight','height','left','letter-spacing','line-height','list-style','list-style-image','list-style-position','list-style-type','margin','margin-top','margin-right','margin-bottom','margin-left','max-height','max-width','min-height','min-width','orphans','outline','outline-color','outline-style','outline-width','overflow','padding','padding-top','padding-right','padding-bottom','padding-left','pause','position','right','size','table-layout','text-align','text-decoration','text-indent','text-shadow','text-transform','top','vertical-align','visibility','white-space','width','word-spacing','z-index','opacity','outline-offset','overflow-x','overflow-y'];
// chains several Animator objects together
function AnimatorChain(animators, options) {
this.animators = animators;
this.setOptions(options);
for (var i=0; i<this.animators.length; i++) {
this.listenTo(this.animators[i]);
}
this.forwards = false;
this.current = 0;
}
AnimatorChain.prototype = {
// apply defaults
setOptions: function(options) {
this.options = Animator.applyDefaults({
// by default, each call to AnimatorChain.play() calls jumpTo(0) of each animator
// before playing, which can cause flickering if you have multiple animators all
// targeting the same element. Set this to false to avoid this.
resetOnPlay: true
}, options);
},
// play each animator in turn
play: function() {
this.forwards = true;
this.current = -1;
if (this.options.resetOnPlay) {
for (var i=0; i<this.animators.length; i++) {
this.animators[i].jumpTo(0);
}
}
this.advance();
},
// play all animators backwards
reverse: function() {
this.forwards = false;
this.current = this.animators.length;
if (this.options.resetOnPlay) {
for (var i=0; i<this.animators.length; i++) {
this.animators[i].jumpTo(1);
}
}
this.advance();
},
// if we have just play()'d, then call reverse(), and vice versa
toggle: function() {
if (this.forwards) {
this.seekTo(0);
} else {
this.seekTo(1);
}
},
// internal: install an event listener on an animator's onComplete option
// to trigger the next animator
listenTo: function(animator) {
var oldOnComplete = animator.options.onComplete;
var _this = this;
animator.options.onComplete = function() {
if (oldOnComplete) oldOnComplete.call(animator);
_this.advance();
}
},
// play the next animator
advance: function() {
if (this.forwards) {
if (this.animators[this.current + 1] == null) return;
this.current++;
this.animators[this.current].play();
} else {
if (this.animators[this.current - 1] == null) return;
this.current--;
this.animators[this.current].reverse();
}
},
// this function is provided for drop-in compatibility with Animator objects,
// but only accepts 0 and 1 as target values
seekTo: function(target) {
if (target <= 0) {
this.forwards = false;
this.animators[this.current].seekTo(0);
} else {
this.forwards = true;
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,
// and for each element an Animator and a activator button is created. When an Animator's activator button is
// clicked, the Animator and all before it seek to 0, and all Animators after it seek to 1. This can be used to
// create the classic Accordion effect, hence the name.
// see setOptions for arguments
function Accordion(options) {
this.setOptions(options);
var selected = this.options.initialSection, current;
if (this.options.rememberance) {
current = document.location.hash.substring(1);
}
this.rememberanceTexts = [];
this.ans = [];
var _this = this;
for (var i=0; i<this.options.sections.length; i++) {
var el = this.options.sections[i];
var an = new Animator(this.options.animatorOptions);
var from = this.options.from + (this.options.shift * i);
var to = this.options.to + (this.options.shift * i);
an.addSubject(new NumericalStyleSubject(el, this.options.property, from, to, this.options.units));
an.jumpTo(0);
var activator = this.options.getActivator(el);
activator.index = i;
activator.onclick = function(){_this.show(this.index)};
this.ans[this.ans.length] = an;
this.rememberanceTexts[i] = activator.innerHTML.replace(/\s/g, "");
if (this.rememberanceTexts[i] === current) {
selected = i;
}
}
this.show(selected);
}
Accordion.prototype = {
// apply defaults
setOptions: function(options) {
this.options = Object.extend({
// REQUIRED: an array of elements to use as the accordion sections
sections: null,
// a function that locates an activator button element given a section element.
// by default it takes a button id from the section's "activator" attibute
getActivator: function(el) {return document.getElementById(el.getAttribute("activator"))},
// shifts each animator's range, for example with options {from:0,to:100,shift:20}
// the animators' ranges will be 0-100, 20-120, 40-140 etc.
shift: 0,
// the first page to show
initialSection: 0,
// if set to true, document.location.hash will be used to preserve the open section across page reloads
rememberance: true,
// constructor arguments to the Animator objects
animatorOptions: {}
}, options || {});
},
show: function(section) {
for (var i=0; i<this.ans.length; i++) {
this.ans[i].seekTo(i > section ? 1 : 0);
}
if (this.options.rememberance) {
document.location.hash = this.rememberanceTexts[section];
}
}
};

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">
<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 type="text/javascript">
var map;
var layer;
function init(){
var mapOptions = {
maxExtent: new OpenLayers.Bounds(-174,18.4,-63.5,71),
maxResolution: 0.25,
projection: "EPSG:4326"};
map = new OpenLayers.Map( 'map', mapOptions );
layer = new OpenLayers.Layer.ArcGIS93Rest( "ArcGIS Server Layer",
"http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/export",
{layers: "show:0,2"});
map.addLayer(layer);
map.addControl( new OpenLayers.Control.MousePosition() );
map.setCenter(new OpenLayers.LonLat(-115, 45), 0);
}
function enableFilter() {
layer.setLayerFilter(2, "STATE_NAME LIKE '%" + document.getElementById('filterValueField').value + "%'");
layer.redraw();
}
function disableFilter() {
layer.setLayerFilter(2, null);
layer.redraw();
}
function updateButton() {
document.getElementById('filterButton').value = "Show '" +
document.getElementById('filterValueField').value + "' States";
}
</script>
</head>
<body onload="init()">
<h1 id="title">ArcGIS Server 9.3 Rest API Example</h1>
<div id="tags">
ESRI, ArcGIS, REST, filter
</div>
<p id="shortdesc">
Shows the basic use of openlayers using an ArcGIS Server 9.3 Rest API layer
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
This is an example of how to add an ArcGIS Server 9.3 Rest API layer to the OpenLayers window.
</div>
<input id="filterValueField" type="textfield" value="A"/>
<input id="filterButton" type="button" onclick="enableFilter();" value="Filter States"/>
<input type="button" onclick="disableFilter();" value="Show All States"/>
<br>
(Filter is case sensitive.)
</body>
</html>

View File

@@ -0,0 +1,221 @@
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers ArcGIS Cache Example (MapServer Access)</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">
<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 src="../lib/OpenLayers/Layer/ArcGISCache.js" type="text/javascript"></script>
<script type="text/javascript">
var map,
cacheLayer,
testLayer,
//This layer requires meta data about the ArcGIS service. Typically you should use a
//JSONP call to get this dynamically. For this example, we are just going to hard-code
//an example that we got from here (yes, it's very big):
// http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?f=json&pretty=true
layerInfo = {
"currentVersion" : 10.01,
"serviceDescription" : "This worldwide street map presents highway-level data for the world and street-level data for the United States, Canada, Japan, Southern Africa, and a number of countries in Europe and elsewhere. This comprehensive street map includes highways, major roads, minor roads, railways, water features, administrative boundaries, cities, parks, and landmarks, overlaid on shaded relief imagery for added context. The street map was developed by ESRI using ESRI basemap data, AND road data, USGS elevation data, and UNEP-WCMC parks and protected areas for the world, and Tele Atlas Dynamap<61> and Multinet<65> street data for North America and Europe. Coverage for street-level data in Europe includes Andorra, Austria, Belgium, Czech Republic, Denmark, France, Germany, Great Britain, Greece, Hungary, Ireland, Italy, Luxembourg, Netherlands, Northern Ireland (Belfast only), Norway, Poland, Portugal, San Marino, Slovakia, Spain, Sweden, and Switzerland. Coverage for street-level data elsewhere in the world includes China (Hong Kong only), Colombia, Egypt (Cairo only), Indonesia (Jakarta only), Japan, Mexico (Mexico City only), Russia (Moscow and St. Petersburg only), South Africa, Thailand, and Turkey (Istanbul and Ankara only). For more information on this map, visit us \u003ca href=\"http://goto.arcgisonline.com/maps/World_Street_Map \" target=\"_new\"\u003eonline\u003c/a\u003e.",
"mapName" : "Layers",
"description" : "This worldwide street map presents highway-level data for the world and street-level data for the United States, Canada, Japan, Southern Africa, most countries in Europe, and several other countries. This comprehensive street map includes highways, major roads, minor roads, one-way arrow indicators, railways, water features, administrative boundaries, cities, parks, and landmarks, overlaid on shaded relief imagery for added context. The map also includes building footprints for selected areas in the United States and Europe and parcel boundaries for much of the lower 48 states.\n\nThe street map was developed by ESRI using ESRI basemap data, DeLorme base map layers, AND road data, USGS elevation data, UNEP-WCMC parks and protected areas for the world, Tele Atlas Dynamap<61> and Multinet<65> street data for North America and Europe, and First American parcel data for the United States. Coverage for street-level data in Europe includes Andorra, Austria, Belgium, Czech Republic, Denmark, France, Germany, Great Britain, Greece, Hungary, Ireland, Italy, Luxembourg, Netherlands, Norway, Poland, Portugal, San Marino, Slovakia, Spain, Sweden, and Switzerland. Coverage for street-level data elsewhere in the world includes China (Hong Kong only), Colombia, Egypt (Cairo only), Indonesia (Jakarta only), Japan, Mexico, Russia, South Africa, Thailand, and Turkey (Istanbul and Ankara only). For more information on this map, visit us online at http://goto.arcgisonline.com/maps/World_Street_Map\n",
"copyrightText" : "Sources: ESRI, DeLorme, AND, Tele Atlas, First American, ESRI Japan, UNEP-WCMC, USGS, METI, ESRI Hong Kong, ESRI Thailand, Procalculo Prosis",
"layers" : [
{
"id" : 0,
"name" : "World Street Map",
"parentLayerId" : -1,
"defaultVisibility" : true,
"subLayerIds" : null,
"minScale" : 0,
"maxScale" : 0
}
],
"tables" : [
],
"spatialReference" : {
"wkid" : 102100
},
"singleFusedMapCache" : true,
"tileInfo" : {
"rows" : 256,
"cols" : 256,
"dpi" : 96,
"format" : "JPEG",
"compressionQuality" : 90,
"origin" : {
"x" : -20037508.342787,
"y" : 20037508.342787
},
"spatialReference" : {
"wkid" : 102100
},
"lods" : [
{"level" : 0, "resolution" : 156543.033928, "scale" : 591657527.591555},
{"level" : 1, "resolution" : 78271.5169639999, "scale" : 295828763.795777},
{"level" : 2, "resolution" : 39135.7584820001, "scale" : 147914381.897889},
{"level" : 3, "resolution" : 19567.8792409999, "scale" : 73957190.948944},
{"level" : 4, "resolution" : 9783.93962049996, "scale" : 36978595.474472},
{"level" : 5, "resolution" : 4891.96981024998, "scale" : 18489297.737236},
{"level" : 6, "resolution" : 2445.98490512499, "scale" : 9244648.868618},
{"level" : 7, "resolution" : 1222.99245256249, "scale" : 4622324.434309},
{"level" : 8, "resolution" : 611.49622628138, "scale" : 2311162.217155},
{"level" : 9, "resolution" : 305.748113140558, "scale" : 1155581.108577},
{"level" : 10, "resolution" : 152.874056570411, "scale" : 577790.554289},
{"level" : 11, "resolution" : 76.4370282850732, "scale" : 288895.277144},
{"level" : 12, "resolution" : 38.2185141425366, "scale" : 144447.638572},
{"level" : 13, "resolution" : 19.1092570712683, "scale" : 72223.819286},
{"level" : 14, "resolution" : 9.55462853563415, "scale" : 36111.909643},
{"level" : 15, "resolution" : 4.77731426794937, "scale" : 18055.954822},
{"level" : 16, "resolution" : 2.38865713397468, "scale" : 9027.977411},
{"level" : 17, "resolution" : 1.19432856685505, "scale" : 4513.988705}
]
},
"initialExtent" : {
"xmin" : -20037507.0671618,
"ymin" : -20037507.0671618,
"xmax" : 20037507.0671618,
"ymax" : 20037507.0671619,
"spatialReference" : {
"wkid" : 102100
}
},
"fullExtent" : {
"xmin" : -20037507.0671618,
"ymin" : -19971868.8804086,
"xmax" : 20037507.0671618,
"ymax" : 19971868.8804086,
"spatialReference" : {
"wkid" : 102100
}
},
"units" : "esriMeters",
"supportedImageFormatTypes" : "PNG24,PNG,JPG,DIB,TIFF,EMF,PS,PDF,GIF,SVG,SVGZ,AI,BMP",
"documentInfo" : {
"Title" : "World Street Map",
"Author" : "ESRI",
"Comments" : "",
"Subject" : "streets, highways, major roads, railways, water features, administrative boundaries, cities, parks, protected areas, landmarks ",
"Category" : "transportation(Transportation Networks) ",
"Keywords" : "World, Global, 2009, Japan, UNEP-WCMC",
"Credits" : ""
},
"capabilities" : "Map"
};
function init(){
//The max extent for spherical mercator
var maxExtent = new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34);
//Max extent from layerInfo above
var layerMaxExtent = new OpenLayers.Bounds(
layerInfo.fullExtent.xmin,
layerInfo.fullExtent.ymin,
layerInfo.fullExtent.xmax,
layerInfo.fullExtent.ymax
);
var resolutions = [];
for (var i=0; i<layerInfo.tileInfo.lods.length; i++) {
resolutions.push(layerInfo.tileInfo.lods[i].resolution);
}
map = new OpenLayers.Map('map', {
maxExtent: maxExtent,
StartBounds: layerMaxExtent,
units: (layerInfo.units == "esriFeet") ? 'ft' : 'm',
resolutions: resolutions,
tileSize: new OpenLayers.Size(layerInfo.tileInfo.width, layerInfo.tileInfo.height),
projection: 'EPSG:' + layerInfo.spatialReference.wkid
});
cacheLayer = new OpenLayers.Layer.ArcGISCache( "AGSCache",
"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer", {
isBaseLayer: true,
//From layerInfo above
resolutions: resolutions,
tileSize: new OpenLayers.Size(layerInfo.tileInfo.cols, layerInfo.tileInfo.rows),
tileOrigin: new OpenLayers.LonLat(layerInfo.tileInfo.origin.x , layerInfo.tileInfo.origin.y),
maxExtent: layerMaxExtent,
projection: 'EPSG:' + layerInfo.spatialReference.wkid
});
// create Google Mercator layers
testLayer = new OpenLayers.Layer.Google(
"Google Streets",
{'sphericalMercator': true}
);
map.addLayers([testLayer, cacheLayer]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.addControl( new OpenLayers.Control.MousePosition() );
map.zoomToExtent(new OpenLayers.Bounds(-8341644, 4711236, -8339198, 4712459));
}
</script>
</head>
<body onload="init()">
<h1 id="title">OpenLayers ArcGIS Cache Example (MapServer Access)</h1>
<div id="tags">
arcgis, arcgiscache, cache, tms
</div>
<p id="shortdesc">
Demonstrates the basic initialization of the ArcGIS Cache layer using a prebuilt configuration, and standard tile access.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This example demonstrates using the ArcGISCache layer for
accessing ESRI's ArcGIS Server (AGS) Map Cache tiles through
an AGS MapServer. Toggle the visibility of the AGS layer to
demonstrate how the two maps are lined up correctly.</p>
<h2>Notes on this layer</h2>
<p>A few attempts have been made at this kind of layer before. See
<a href="http://trac.osgeo.org/openlayers/ticket/1967">here</a> and
<a href="http://trac.osgeo.org/openlayers/browser/sandbox/tschaub/arcgiscache/lib/OpenLayers/Layer/ArcGISCache.js">here</a>.
A problem the users encounter is that the tiles seem to "jump around".
This is due to the fact that the max extent for the cached layer actually
changes at each zoom level due to the way these caches are constructed.
We have attempted to use the resolutions, tile size, and tile origin
from the cache meta data to make the appropriate changes to the max extent
of the tile to compensate for this behavior.</p>
You will need to know:
<ul>
<li>Max Extent: The max extent of the layer</li>
<li>Resolutions: An array of resolutions, one for each zoom level</li>
<li>Tile Origin: The location of the tile origin for the cache in the upper left.</li>
<li>Tile Size: The size of each tile in the cache. Commonly 256 x 256</li>
</ul>
<p>It's important that you set the correct values in your layer, and these
values will differ from layer to layer. You can find these values for your
layer in a metadata page in ArcGIS Server.
(ie. <a href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer">http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer</a>)</p>
<ul>
<li>Max Extent: Full Extent</li>
<li>Resolutions: Tile Info -> Levels of Detail -> Resolution</li>
<li>Tile Origin: Origin -> X,Y</li>
<li>Tile Size: Tile Info -> Height,Width</li>
</ul>
<h2> Other Examples </h2>
<p>This is one of three examples for this layer. You can also configure this
layer to use <a href="arcgiscache_direct.html">prebuilt tiles in a file store
(not a live server).</a> It is also possible to let this
<a href="arcgiscache_jsonp.html">layer 'auto-configure' itself using the
capabilities json object from the server itself when using a live ArcGIS server.</a>
</p>
</div>
</body>
</html>

View File

@@ -0,0 +1,108 @@
<!DOCTYPE html>
<html>
<head>
<title>ArcGIS Server Map Cache Example (Direct Access)</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">
<script src="../lib/OpenLayers.js" type="text/javascript"></script>
<script src="../lib/OpenLayers/Layer/ArcGISCache.js" type="text/javascript"></script>
<script type="text/javascript">
/* First 4 variables extracted from conf.xml file */
/* Tile layers & map MUST have same projection */
var proj='EPSG:26915';
/* Layer can also accept serverResolutions array
* to deal with situation in which layer resolution array & map resolution
* array are out of sync*/
var mapResolutions = [33.0729828126323,16.9333672000677,8.46668360003387,4.23334180001693,2.11667090000847,1.05833545000423];
/* For this example this next line is not really needed, 256x256 is default.
* However, you would need to change this if your layer had different tile sizes */
var tileSize = new OpenLayers.Size(256,256);
/* Tile Origin is required unless it is the same as the implicit map origin
* which can be affected by several variables including maxExtent for map or base layer */
var agsTileOrigin = new OpenLayers.LonLat(-5120900,9998100);
/* This can really be any valid bounds that the map would reasonably be within */
/* var mapExtent = new OpenLayers.Bounds(293449.454286,4307691.661132,314827.830376,4323381.484178); */
var mapExtent = new OpenLayers.Bounds(289310.8204,4300021.937,314710.8712,4325421.988);
var aerialsUrl = 'http://serverx.esri.com/arcgiscache/dgaerials/Layers/_alllayers';
var roadsUrl = 'http://serverx.esri.com/arcgiscache/DG_County_roads_yesA_backgroundDark/Layers/_alllayers';
var map;
function init(){
map = new OpenLayers.Map('map', {
maxExtent:mapExtent,
controls: [
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.LayerSwitcher(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.MousePosition()]
});
var baseLayer = new OpenLayers.Layer.ArcGISCache('Aerials', aerialsUrl, {
tileOrigin: agsTileOrigin,
resolutions: mapResolutions,
sphericalMercator: true,
maxExtent: mapExtent,
useArcGISServer: false,
isBaseLayer: true,
type: 'jpg',
projection: proj
});
var overlayLayer = new OpenLayers.Layer.ArcGISCache('Roads', roadsUrl, {
tileOrigin: agsTileOrigin,
resolutions: mapResolutions,
sphericalMercator: true,
maxExtent: mapExtent,
useArcGISServer: false,
isBaseLayer: false,
projection: proj
});
map.addLayers([baseLayer, overlayLayer]);
//map.zoomToExtent(new OpenLayers.Bounds(295892.34, 4308521.69, 312825.71, 4316988.37));
map.zoomToExtent(new OpenLayers.Bounds(-8341644, 4711236, -8339198, 4712459));
}
</script>
</head>
<body onload="init()">
<h1 id="title">ArcGIS Server Map Cache Example (Direct Access)</h1>
<div id="tags">
</div>
<p id="shortdesc">
Demonstrates the basic initialization of the ArcGIS Cache layer using a prebuilt configuration, and direct tile access from a file store.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This example demonstrates using the ArcGISCache layer for
accessing ESRI's ArcGIS Server (AGS) Map Cache tiles directly
via the folder structure and HTTP. Toggle the visibility of the AGS layer to
demonstrate how the two maps are lined up correctly.</p>
<h2>Notes on this Layer</h2>
<p>It's important that you set the correct values in your layer, and these
values will differ between tile sets. You can find these values for your
layer in conf.xml at the root of your cache.
(ie. <a href="http://serverx.esri.com/arcgiscache/dgaerials/Layers/conf.xml">http://serverx.esri.com/arcgiscache/dgaerials/Layers/conf.xml</a>)</p>
<p>For fused map caches this is often http:<i>ServerName</i>/arcgiscache/<i>MapServiceName</i>/Layers <br>
For individual layer caches this is often http:<i>ServerName</i>/arcgiscache/<i>LayerName</i>/Layers </p>
<h2> Other Examples </h2>
<p>This is one of three examples for this layer. You can also configure this
layer to use <a href="arcgiscache_ags.html">prebuilt tiles from a live server.</a> It is also
possible to let this <a href="arcgiscache_jsonp.html">layer 'auto-configure' itself using the capabilities json object from the server itself when using a live ArcGIS server.</a>
</p>
</div>
</body>
</html>

View File

@@ -0,0 +1,106 @@
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers ArcGIS Cache Example (Autoconfigure with JSONP)</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">
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map,
layerURL = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer";
function init() {
var jsonp = new OpenLayers.Protocol.Script();
jsonp.createRequest(layerURL, {
f: 'json',
pretty: 'true'
}, initMap);
}
function initMap(layerInfo){
/*
* The initialize function in this layer has the ability to automatically configure
* itself if given the JSON capabilities object from the ArcGIS map server.
* This hugely simplifies setting up a new layer, and switching basemaps when using this technique.
*
* see the 'initialize' function in ArcGISCache.js, or
* see the other two ArcGISCache.js examples for direct manual configuration options
*
*/
var baseLayer = new OpenLayers.Layer.ArcGISCache("AGSCache", layerURL, {
layerInfo: layerInfo
});
/*
* Make sure our baselayer and our map are synced up
*/
map = new OpenLayers.Map('map', {
maxExtent: baseLayer.maxExtent,
units: baseLayer.units,
resolutions: baseLayer.resolutions,
numZoomLevels: baseLayer.numZoomLevels,
tileSize: baseLayer.tileSize,
displayProjection: baseLayer.displayProjection
});
map.addLayers([baseLayer]);
//overlay test layer
//http://openlayers.org/dev/examples/web-mercator.html
var wms = new OpenLayers.Layer.WMS("Highways",
"http://sampleserver1.arcgisonline.com/arcgis/services/Specialty/ESRI_StateCityHighway_USA/MapServer/WMSServer",
{layers: "2", format: "image/gif", transparent: "true"},
{ isBaseLayer: false, wrapDateLine: false }
);
map.addLayers([wms]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.addControl(new OpenLayers.Control.MousePosition() );
//map.zoomToExtent(new OpenLayers.Bounds(-8341644, 4711236, -8339198, 4712459));
map.zoomToExtent(new OpenLayers.Bounds(-8725663.6225564, 4683718.6735907, -8099491.4868444, 4996804.7414467));
}
</script>
</head>
<body onload="init()">
<h1 id="title">OpenLayers ArcGIS Cache Example (Autoconfigure with JSONP)</h1>
<div id="tags">
arcgis, arcgiscache, cache, tms, jsonp
</div>
<p id="shortdesc">
Demonstrates the basic initialization of the ArcGIS Cache layer by using the server capabilities object.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This example demonstrates using the ArcGISCache layer for
accessing ESRI's ArcGIS Server (AGS) Map Cache tiles normally through
a live AGS MapServer. Toggle the visibility of the overlay to
demonstrate how the two layers are lined up correctly.</p>
<h2>Notes on this Layer</h2>
<p>
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,
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
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
server configuration using this technique before trying one of the other examples for this layer.
</p>
<h2> Other Examples </h2>
<p>This is one of three examples for this layer. You can also configure this
layer to use <a href="arcgiscache_direct.html">prebuilt tiles in a file store (not a live server).</a>
As well a retrieve <a href="arcgiscache_ags.html">tiles from a live server.</a>
</p>
</div>
</body>
</html>

View File

@@ -0,0 +1,82 @@
<!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>ArcIMS Thematic 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 type="text/javascript">
var lon = 0;
var lat = 0;
var zoom = 1;
var map, layer;
var query, renderer;
function init() {
OpenLayers.ProxyHost = "proxy.cgi?url=";
map = new OpenLayers.Map('map');
query = {where: "FIPS_ID>100 AND FIPS_ID<200"};
renderer = {
type: 'valuemap',
lookupfield: 'FIPS_ID',
ranges: [
{ lower: 100, upper: 120, symbol: { type: 'simplepolygon', fillcolor: '255,0,0' } },
{ lower: 120, upper: 140, symbol: { type: 'simplepolygon', fillcolor: '255,255,0' } },
{ lower: 140, upper: 160, symbol: { type: 'simplepolygon', fillcolor: '0,255,0' } },
{ lower: 160, upper: 180, symbol: { type: 'simplepolygon', fillcolor: '0,255,255' } },
{ lower: 180, upper: 200, symbol: { type: 'simplepolygon', fillcolor: '0,0,255' } }
]
};
var options = {
layers: [{
id: "1",
visible: true,
query: query,
renderer: renderer
}],
serviceName: "OpenLayers_Sample",
singleTile: true,
async: true
};
layer = new OpenLayers.Layer.ArcIMS(
"Global Sample Map",
"http://sample.azavea.com/servlet/com.esri.esrimap.Esrimap",
options
);
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
map.addControl(new OpenLayers.Control.LayerSwitcher());
}
</script>
</head>
<body onload="init()">
<h1 id="title">ArcIMS Thematic Example</h1>
<div id="tags">
ESRI, ArcIMS, ArcXML, style, thematic, chloropleth, representation
</div>
<p id="shortdesc">
Shows the advanced use of OpenLayers using a thematic ArcIMS layer
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This is an example of how to add an ArcIMS layer to an OpenLayers map.</p>
<p>Following the ArcXML convention to create a thematic (or chloropleth) map,
a layer definition is created with a query and a renderer to select portions
of the map data, and change their representation in the generated map tiles.</p>
</div>
</body>
</html>

57
examples/arcims.html Normal file
View File

@@ -0,0 +1,57 @@
<!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>ArcIMS 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 type="text/javascript">
var lon = 0;
var lat = 0;
var zoom = 1;
var map, layer;
function init(){
OpenLayers.ProxyHost = "proxy.cgi?url=";
map = new OpenLayers.Map( 'map' );
var options = {
serviceName: "OpenLayers_Sample",
async: true
};
layer = new OpenLayers.Layer.ArcIMS( "Global Sample Map",
"http://sample.azavea.com/servlet/com.esri.esrimap.Esrimap", options );
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
map.addControl( new OpenLayers.Control.LayerSwitcher() );
}
</script>
</head>
<body onload="init()">
<h1 id="title">ArcIMS Example</h1>
<div id="tags">
ESRI, ArcIMS
</div>
<p id="shortdesc">
Shows the basic use of OpenLayers using an ArcIMS layer
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
This is an example of how to add an ArcIMS layer to the OpenLayers window.
</div>
</body>
</html>

View File

@@ -1,8 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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 Attribution Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="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">
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
@@ -11,8 +15,8 @@
map = new OpenLayers.Map('map');
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'},
{'attribution': 'Provided by <a href="http://labs.metacarta.com/">MetaCarta</a>'});
"http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'},
{'attribution': 'Provided by OSGeo'});
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
@@ -24,8 +28,10 @@
map.addLayers([ol_wms, jpl_wms, vector]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.addControl(new OpenLayers.Control.Attribution());
// map.setCenter(new OpenLayers.LonLat(0, 0), 0);
// OpenLayers.Control.Attribution is one of the default
// controls - only needs to be added when the map instance is
// created with the controls option
//map.addControl(new OpenLayers.Control.Attribution());
map.zoomToMaxExtent();
}
</script>
@@ -34,7 +40,7 @@
<h1 id="title">Attribution Example</h1>
<div id="tags">
copyright watermark logo attribution
copyright, watermark, logo, attribution, light
</div>
<p id="shortdesc">
@@ -44,11 +50,11 @@
<div id="map" class="smallmap"></div>
<div id="docs">
This is an example of how to add an attribution block to the OpenLayers window. In order to use an
<p>This is an example of how to add an attribution block to the OpenLayers window. In order to use an
attribution block, an attribution parameter must be set in each layer that requires attribution. In
addition, an attribution control must be added to the map, though one is added to all OpenLayers Maps by default.
Be aware that this is a layer *option*: the options hash goes in
different places depending on the layer type you are using.
Be aware that this is a layer <strong>option</strong>: the options hash goes in
different places depending on the layer type you are using.</p>
</div>
</body>
</html>

View File

@@ -1,96 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Base Layers Example</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">
#controls
{
width: 512px;
}
</style>
<!-- this gmaps key generated for http://openlayers.org/dev/ -->
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA9XNhd8q0UdwNC7YSO4YZghSPUCi5aRYVveCcVYxzezM4iaj_gxQ9t-UajFL70jfcpquH5l1IJ-Zyyw'></script>
<!-- Localhost key -->
<!-- <script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTS6gjckBmeABOGXIUiOiZObZESPg'></script>-->
<script type="text/javascript" src="http://clients.multimap.com/API/maps/1.1/metacarta_04"></script>
<script src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script>
<script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=euzuro-openlayers"></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 5;
var lat = 40;
var zoom = 5;
var map, markers;
var barcelona = new OpenLayers.LonLat(2.13134765625,
41.37062534198901);
var madrid = new OpenLayers.LonLat(-3.6968994140625,
40.428314208984375);
function init(){
map = new OpenLayers.Map( 'map' );
var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'} );
var google = new OpenLayers.Layer.Google( "Google Hybrid" , {type: G_HYBRID_MAP });
var ve = new OpenLayers.Layer.VirtualEarth( "VE");
var yahoo = new OpenLayers.Layer.Yahoo( "Yahoo");
var mm = new OpenLayers.Layer.MultiMap( "MultiMap");
map.addLayers([wms, google, ve, yahoo, mm]);
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.MousePosition() );
}
function add() {
var url = 'http://boston.openguides.org/markers/AQUA.png';
var sz = new OpenLayers.Size(10, 17);
var calculateOffset = function(size) {
return new OpenLayers.Pixel(-(size.w/2), -size.h);
};
var icon = new OpenLayers.Icon(url, sz, null, calculateOffset);
marker = new OpenLayers.Marker(barcelona, icon);
markers.addMarker(marker);
marker = new OpenLayers.Marker(madrid, icon.clone());
markers.addMarker(marker);
}
function remove() {
markers.removeMarker(marker);
}
</script>
</head>
<body onload="init()">
<h1 id="title">Base Layers Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
This example shows the use base layers from multiple commercial map image providers.
</p>
<div id="controls">
<div id="map" class="smallmap"></div>
<div style="background-color:green" onclick="add()"> click to add a marker to the map</div>
<div style="background-color:red" onclick="remove()"> click to remove the marker from the map</div>
</div>
<div id="docs">
</div>
</body>
</html>

View File

@@ -1,8 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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 Vector Behavior Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="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">
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
@@ -10,7 +14,7 @@
function init(){
map = new OpenLayers.Map('map');
var wms = new OpenLayers.Layer.WMS(
"OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0",
"OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'}
);
@@ -19,7 +23,7 @@
protocol: new OpenLayers.Protocol.HTTP({
url: "gml/polygon.xml",
format: new OpenLayers.Format.GML()
}),
})
});
map.addLayers([wms, layer]);
@@ -31,19 +35,22 @@
</head>
<body onload="init()">
<h1 id="title">Vector Behavior Example (Fixed/HTTP/GML)</h1>
<div id="tags">
vector, strategy, strategies, protocoll, advanced, gml, http, fixed
</div>
<p id="shortdesc">
Vector layer with a Fixed strategy, HTTP protocol, and GML format.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
The vector layer shown uses the Fixed strategy, the HTTP protocol,
<p>The vector layer shown uses the Fixed strategy, the HTTP protocol,
and the GML format.
The Fixed strategy is a simple strategy that fetches features once
and never re-requests new data.
The HTTP protocol makes requests using HTTP verbs. It should be
constructed with a url that corresponds to a collection of features
(a resource on some server).
The GML format is used to serialize features.
The GML format is used to serialize features.</p>
</div>
</body>
</html>

View File

@@ -0,0 +1,43 @@
<!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>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="style.css" type="text/css">
<style type="text/css">
.olControlAttribution {
left: 2px;
right: inherit;
bottom: 3px;
line-height: 11px;
}
</style>
</head>
<body>
<h1 id="title">Bing Tiles with a Subset of Resolutions Example</h1>
<div id="tags">
bing tiles restrictedMinZoom numZoomLevels
</div>
<div id="shortdesc">Use Bing with direct tile access</div>
<div id="map" class="smallmap" style="height: 350px;"></div>
<div id="docs">
<p>
This example shows how to use the <code>maxResolution</code> and
<code>numZoomLevels</code> layer properties to restrict
the number of zoom levels displayed on the Bing layer.
</p><p>
See <a target="_blank" href="bing-tiles-restrictedzoom.js">bing-tiles-restrictedzoom.js</a>
for the source code.
</p>
</div>
<script src="../lib/OpenLayers.js"></script>
<script src="bing-tiles-restrictedzoom.js"></script>
</body>
</html>

View File

@@ -0,0 +1,37 @@
// API key for http://openlayers.org. Please get your own at
// http://bingmapsportal.com/ and use that instead.
var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf";
var map = new OpenLayers.Map('map', {
controls: [
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.LayerSwitcher()
]
});
var road3 = new OpenLayers.Layer.Bing({
name: "Road tiles with 3 zoom levels",
type: "Road",
key: apiKey,
maxResolution: 76.43702827453613,
numZoomLevels: 3
});
var road5 = new OpenLayers.Layer.Bing({
name: "Road tiles with 5 zoom levels",
type: "Road",
key: apiKey,
numZoomLevels: 5
});
var road = new OpenLayers.Layer.Bing({
name: "Road tiles with all zoom levels",
type: "Road",
key: apiKey
});
map.addLayers([road3, road5, road]);
map.setCenter(new OpenLayers.LonLat(-71.147, 42.472).transform(
new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject()
), 1);

39
examples/bing-tiles.html Normal file
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 Bing Tiles Example</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">
.olControlAttribution {
left: 2px;
right: inherit;
bottom: 3px;
line-height: 11px;
}
</style>
</head>
<body>
<h1 id="title">Basic Bing Tiles Example</h1>
<div id="tags">
bing tiles, light
</div>
<div id="shortdesc">Use Bing with direct tile access</div>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This example shows a very simple map with Bing layers that use
direct tile access through Bing Maps REST Services.</p><p>See
<a target="_blank" href="bing-tiles.js">bing-tiles.js</a> for the
source code.</p>
</div>
<script src="../lib/OpenLayers.js"></script>
<script src="bing-tiles.js"></script>
</body>
</html>

29
examples/bing-tiles.js Normal file
View File

@@ -0,0 +1,29 @@
// API key for http://openlayers.org. Please get your own at
// http://bingmapsportal.com/ and use that instead.
var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf";
var map = new OpenLayers.Map( 'map');
var road = new OpenLayers.Layer.Bing({
key: apiKey,
type: "Road",
// custom metadata parameter to request the new map style - only useful
// before May 1st, 2011
metadataParams: {mapVersion: "v1"}
});
var aerial = new OpenLayers.Layer.Bing({
key: apiKey,
type: "Aerial"
});
var hybrid = new OpenLayers.Layer.Bing({
key: apiKey,
type: "AerialWithLabels",
name: "Bing Aerial With Labels"
});
map.addLayers([road, aerial, hybrid]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(-71.147, 42.472).transform(
new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject()
), 11);

64
examples/bing.html Normal file
View File

@@ -0,0 +1,64 @@
<!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 Bing 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>
// API key for http://openlayers.org. Please get your own at
// http://bingmapsportal.com/ and use that instead.
var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf";
var map;
function init() {
map = new OpenLayers.Map("map");
map.addControl(new OpenLayers.Control.LayerSwitcher());
var road = new OpenLayers.Layer.Bing({
name: "Road",
key: apiKey,
type: "Road"
});
var hybrid = new OpenLayers.Layer.Bing({
name: "Hybrid",
key: apiKey,
type: "AerialWithLabels"
});
var aerial = new OpenLayers.Layer.Bing({
name: "Aerial",
key: apiKey,
type: "Aerial"
});
map.addLayers([road, hybrid, aerial]);
map.setCenter(new OpenLayers.LonLat(-110, 45), 3);
}
</script>
</head>
<body onload="init()">
<h1 id="title">Bing Example</h1>
<div id="tags">
Bing, Microsoft, Virtual Earth, light
</div>
<p id="shortdesc">
Demonstrates the use of Bing layers.
</p>
<div id="map" class="smallmap"></div>
<div id="docs"><p>This example demonstrates the ability to create layers
using tiles from Bing maps.</p></div>
</body>
</html>

View File

@@ -1,8 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers Boxes Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<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 Boxes Vector 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 type="text/javascript">
var box_extents = [
@@ -16,13 +20,13 @@
map = new OpenLayers.Map('map');
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} );
"http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'} );
var boxes = new OpenLayers.Layer.Vector( "Boxes" );
for (var i = 0; i < box_extents.length; i++) {
ext = box_extents[i];
bounds = new OpenLayers.Bounds(ext[0], ext[1], ext[2], ext[3]);
bounds = OpenLayers.Bounds.fromArray(ext);
box = new OpenLayers.Feature.Vector(bounds.toGeometry());
boxes.addFeatures(box);
@@ -38,9 +42,10 @@
</script>
</head>
<body onload="init()">
<h1 id="title">Boxes Example</h1>
<h1 id="title">Boxes Example Vector</h1>
<div id="tags">
box, vector, annotation, light
</div>
<p id="shortdesc">

View File

@@ -1,8 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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 Boxes Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="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">
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var box_extents = [
@@ -16,13 +20,13 @@
map = new OpenLayers.Map('map');
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} );
"http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'} );
var boxes = new OpenLayers.Layer.Boxes( "Boxes" );
for (var i = 0; i < box_extents.length; i++) {
ext = box_extents[i];
bounds = new OpenLayers.Bounds(ext[0], ext[1], ext[2], ext[3]);
bounds = OpenLayers.Bounds.fromArray(ext);
box = new OpenLayers.Marker.Box(bounds);
box.events.register("click", box, function (e) {
this.setBorder("yellow");
@@ -40,6 +44,7 @@
<h1 id="title">Boxes Example</h1>
<div id="tags">
box, annotation
</div>
<p id="shortdesc">

View File

@@ -1,89 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers 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 type="text/javascript">
// making this a global variable so that it is accessible for
// debugging/inspecting in Firebug
var map = null;
function init(){
//set title name to include Browser Detection
// this is the only way to test the functionality
// of the getBrowserName() function
//
var header = OpenLayers.Util.getElement("browserHeader");
header.innerHTML = "(browser: ";
var browserCode = OpenLayers.Util.getBrowserName();
switch (browserCode) {
case "opera":
browserName = "Opera";
break;
case "msie":
browserName = "Internet Explorer";
break;
case "safari":
browserName = "Safari";
break;
case "firefox":
browserName = "FireFox";
break;
case "mozilla":
browserName = "Mozilla";
break;
default:
browserName = "detection error"
break;
}
header.innerHTML += browserName + ")";
map = new OpenLayers.Map('map');
var options = {
resolutions: [1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.00137329101]
};
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'},
options);
var options2 = {
resolutions: [0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.00137329101]
};
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
{layers: "landsat7"}, options2);
var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
{layers: "bathymetry,land_fn,park,drain_fn,drainage," +
"prov_bound,fedlimit,rail,road,popplace",
transparent: "true", format: "image/png"},
{minResolution: 0.17578125,
maxResolution: 0.703125});
map.addLayers([ol_wms, jpl_wms, dm_wms]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
// map.setCenter(new OpenLayers.LonLat(0, 0), 0);
map.zoomToMaxExtent();
}
</script>
</head>
<body onload="init()">
<h1 id="title" style="display:inline;">Example Showing Browser Name</h1>
<h3 id="browserHeader" style="display:inline;"></h3>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate a simple map that shows the browser name.
</p>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

152
examples/browser.html Normal file
View File

@@ -0,0 +1,152 @@
<!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 Browser Detection</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<script type="text/javascript" src="browser.js"></script>
<style type="text/css">
.olControlAttribution {
bottom: 5px;
}
.tester {
margin: 3px;
}
</style>
<script type="text/javascript">
function init() {
var result = document.getElementById('result');
result.innerHTML = result.innerHTML + "Browser CodeName: " + navigator.appCodeName + '<br>';
result.innerHTML = result.innerHTML + "Browser Name: " + navigator.appName + '<br>';
result.innerHTML = result.innerHTML + "Browser Version: " + navigator.appVersion + '<br>';
result.innerHTML = result.innerHTML + "Cookies Enabled: " + navigator.cookieEnabled + '<br>';
result.innerHTML = result.innerHTML + "Platform: " + navigator.platform + '<br>';
result.innerHTML = result.innerHTML + 'User agent: ' + navigator.userAgent + '<br>';
divResult('mouse', 'click', null, result);
divResult('mouse', 'dblclick', null, result);
divResult('mouse', 'mousedown', null, result);
divResult('mouse', 'mouseup', null, result);
divResult('mouse', 'mouseover', null, result);
divResult('mouse', 'mousemove', null, result);
divResult('mouse', 'mouseout', null, result);
divResult('key', 'keypress', null, result);
divResult('key', 'keydown', null, result);
divResult('key', 'keyup', null, result);
divResult('HTML', 'load', null, result);
divResult('HTML', 'unload', window, result);
divResult('HTML', 'abort', null, result);
divResult('HTML', 'error', null, result);
divResult('view', 'resize', window, result);
divResult('view', 'scroll', null, result);
divResult('form', 'submit', null, result);
divResult('form', 'reset', null, result);
divResult('form control', 'select', null, result);
divResult('form control', 'change', null, result);
divResult('activation', 'focus', null, result);
divResult('activation', 'blur', null, result);
divResult('touch', 'touchstart', null, result);
divResult('touch', 'touchend', null, result);
divResult('touch', 'touchmove', null, result);
divResult('touch', 'touchcancel', null, result);
divResult('gesture', 'gesturestart', null, result);
divResult('gesture', 'gesturechange', null, result);
divResult('gesture', 'gestureend', null, result);
divResult('HTML5', 'hashchange', document.body, result);
divResult('HTML5', 'online', document.body, result);
divResult('HTML5', 'offline', document.body, result);
divResult('HTML5', 'message', window, result);
divResult('HTML5', 'undo', document.body, result);
divResult('HTML5', 'redo', document.body, result);
divResult('HTML5', 'storage', window, result);
divResult('HTML5', 'popstate', window, result);
divResult('HTML5', 'canplay', document.createElement('video'), result);
divResult('HTML5', 'seeking', document.createElement('video'), result);
divResult('HTML5', 'seekend', document.createElement('video'), result);
divResult('orientation', 'deviceorientation', window, result);
divResult('orientation', 'mozorientation', window, result);
divResult('orientation', 'devicemotion', window, result);
}
</script>
</head>
<body onload="init()">
<h1 id="title">Browser detection</h1>
<div id="tags">
browser, vendor, mobile, events, HTML5, gesture, touch
</div>
<p id="shortdesc">
The goal of this script is to inform about the capacity of the browser used by the user.
</p>
<div id="docs">
<p>
See the <a href="browser.js" target="_blank">
browser.js source</a> to see how this is done.
</p>
</div>
<h1>Your browser information</h1>
<div id="result">
</div>
<h1>Click or touch the red square to get information about the selected events</h1>
<div>
<div class="tester">
<INPUT TYPE=CHECKBOX ID="clickID" checked>click<BR>
<INPUT TYPE=CHECKBOX ID="dblclickID">dblclick<BR>
<INPUT TYPE=CHECKBOX ID="mousedownID">mousedown<BR>
<INPUT TYPE=CHECKBOX ID="mouseupID">mouseup<BR>
<INPUT TYPE=CHECKBOX ID="mouseoverID">mouseover<BR>
<INPUT TYPE=CHECKBOX ID="mousemoveID">mousemove<BR>
<INPUT TYPE=CHECKBOX ID="mouseoutID">mouseout<BR>
<INPUT TYPE=CHECKBOX ID="touchstartID">touchstart<BR>
<INPUT TYPE=CHECKBOX ID="touchendID">touchend<BR>
<INPUT TYPE=CHECKBOX ID="touchmoveID">touchmove<BR>
<INPUT TYPE=CHECKBOX ID="touchcancelID">touchcancel<BR>
<INPUT TYPE=CHECKBOX ID="gesturestartID">gesturestart<BR>
<INPUT TYPE=CHECKBOX ID="gesturechangeID">gesturechange<BR>
<INPUT TYPE=CHECKBOX ID="gestureendID">gestureend<BR>
</div>
<div style="height: 200px;width: 200px;" class="tester">
<div id="box" style="height: 200px; width: 200px; background: none repeat scroll 0% 0% red; "
onclick="click(event)"
ondblclick="dblclick(event)"
onmousedown="mousedown(event)"
onmouseup="mouseup(event)"
onmouseover="mouseover(event)"
onmousemove="mousemove(event)"
onmouseout="mouseout(event)"
ontouchstart="touchstart(event)"
ontouchend="touchend(event)"
ontouchmove="touchmove(event)"
ontouchcancel="touchcancel(event)"
ongesturestart="gesturestart(event)"
ongesturechange="gesturechange(event)"
ongestureend="gestureend(event)">
</div>
</div>
<div id="log" class="tester"></div>
</div>
</body>
</html>

241
examples/browser.js Normal file
View File

@@ -0,0 +1,241 @@
var isEventSupported = (function(undef) {
var TAGNAMES = {
'select':'input',
'change':'input',
'submit':'form',
'reset':'form',
'error':'img',
'load':'img',
'abort':'img'
};
function isEventSupported(eventName, element) {
element = element || document.createElement(TAGNAMES[eventName] || 'div');
eventName = 'on' + eventName;
var isSupported = (eventName in element);
if (!isSupported) {
// if it has no `setAttribute` (i.e. doesn't implement Node interface), try generic element
if (!element.setAttribute) {
element = document.createElement('div');
}
if (element.setAttribute && element.removeAttribute) {
element.setAttribute(eventName, '');
isSupported = typeof element[eventName] == 'function';
// if property was created, "remove it" (by setting value to `undefined`)
if (typeof element[eventName] != 'undefined') {
element[eventName] = undef;
}
element.removeAttribute(eventName);
}
}
element = null;
return isSupported;
}
return isEventSupported;
})();
function divResult(category, name, element, div) {
div.innerHTML = div.innerHTML + category + " " + name + ": ";
div.innerHTML = div.innerHTML + (
isEventSupported(name, element)
? '<span style="background-color:green;color:white;">true</span></td>'
: '<span style="background-color:red;color:white;">false</span></td>'
);
div.innerHTML = div.innerHTML + "<br>";
}
var counter = 1;
function log(title, detail) {
var logDiv = document.getElementById("log");
idString = "'id" + counter + "'";
var newlink = document.createElement('a');
newlink.setAttribute('href', "javascript:toggle_visibility(" + idString + ")");
newlink.innerHTML = counter + ". " + title;
var br1 = document.createElement('br');
logDiv.appendChild(newlink);
logDiv.appendChild(br1);
var childDiv = document.createElement('div');
childDiv.setAttribute("id", idString.replace("'", "").replace("'", ""));
childDiv.setAttribute("style", 'display: none; margin-left : 5px;');
childDiv.innerHTML = detail;
var br2 = document.createElement('br');
logDiv.appendChild(childDiv);
counter = counter + 1;
}
function inspect(obj) {
if (typeof obj === "undefined") {
return "undefined";
}
var _props = [];
for (var i in obj) {
_props.push(i + " : " + obj[i]);
}
return " {" + _props.join(",<br>") + "} ";
}
function click(e) {
if (document.getElementById("clickID").checked) {
var box = document.getElementById("box");
log(e.type, inspect(e));
if (e.preventDefault) e.preventDefault();
}
return false;
}
function dblclick(e) {
if (document.getElementById("dblclickID").checked) {
var box = document.getElementById("box");
log(e.type, inspect(e));
if (e.preventDefault) e.preventDefault();
}
return false;
}
function mousedown(e) {
if (document.getElementById("mousedownID").checked) {
var box = document.getElementById("box");
log(e.type, inspect(e));
if (e.preventDefault) e.preventDefault();
}
return false;
}
function mouseup(e) {
if (document.getElementById("mouseupID").checked) {
var box = document.getElementById("box");
log(e.type, inspect(e));
if (e.preventDefault) e.preventDefault();
}
return false;
}
function mouseover(e) {
if (document.getElementById("mouseoverID").checked) {
var box = document.getElementById("box");
log(e.type, inspect(e));
if (e.preventDefault) e.preventDefault();
}
return false;
}
function mousemove(e) {
if (document.getElementById("mousemoveID").checked) {
var box = document.getElementById("box");
log(e.type, inspect(e));
if (e.preventDefault) e.preventDefault();
}
return false;
}
function mouseout(e) {
if (document.getElementById("mouseoutID").checked) {
var box = document.getElementById("box");
log(e.type, inspect(e));
if (e.preventDefault) e.preventDefault();
}
return false;
}
function touchstart(e) {
if (document.getElementById("touchstartID").checked) {
var box = document.getElementById("box");
var result = inspect(e);
for (var i = 0; i < e.touches.length; i++) {
result = result + "<br> Touches nr." + i + " <br>" + inspect(e.touches[i]);
}
log(e.type, result);
if (e.preventDefault) e.preventDefault();
}
return false;
}
function touchend(e) {
if (document.getElementById("touchendID").checked) {
var box = document.getElementById("box");
var result = inspect(e);
for (var i = 0; i < e.touches.length; i++) {
result = result + "<br> Touches nr." + i + " <br>" + inspect(e.touches[i]);
}
log(e.type, result);
if (e.preventDefault) e.preventDefault();
}
return false;
}
function touchmove(e) {
if (document.getElementById("touchmoveID").checked) {
var targetEvent = e.touches.item(0);
var box = document.getElementById("box");
box.style.left = targetEvent.clientX + "px";
box.style.top = targetEvent.clientY + "px";
var result = inspect(e);
for (var i = 0; i < e.touches.length; i++) {
result = result + "<br> Touches nr." + i + " <br>" + inspect(e.touches[i]);
}
log(e.type, result);
if (e.preventDefault) e.preventDefault();
}
return false;
}
function touchcancel(e) {
if (document.getElementById("touchcancelID").checked) {
var box = document.getElementById("box");
var result = inspect(e);
for (var i = 0; i < e.touches.length; i++) {
result = result + "<br> Touches nr." + i + " <br>" + inspect(e.touches[i]);
}
log(e.type, result);
if (e.preventDefault) e.preventDefault();
}
return false;
}
function gesturestart(e) {
if (document.getElementById("gesturestartID").checked) {
var box = document.getElementById("box");
log(e.type, inspect(e));
if (e.preventDefault) e.preventDefault();
}
return false;
}
function gesturechange(e) {
if (document.getElementById("gesturechangeID").checked) {
var box = document.getElementById("box");
log(e.type, inspect(e));
if (e.preventDefault) e.preventDefault();
}
return false;
}
function gestureend(e) {
if (document.getElementById("gestureendID").checked) {
var box = document.getElementById("box");
log(e.type, inspect(e));
if (e.preventDefault) e.preventDefault();
}
return false;
}
function toggle_visibility(id) {
var e = document.getElementById(id);
if (e.style.display == 'block') {
e.style.display = 'none';
} else {
e.style.display = 'block';
}
}

View File

@@ -1,8 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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 Buffer Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="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">
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 0;
@@ -13,18 +17,18 @@
function init(){
map = new OpenLayers.Map( 'map' );
layer = new OpenLayers.Layer.WMS( "0 buffer: OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
"http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'}, {'buffer':0} );
map.addLayer(layer);
layer = new OpenLayers.Layer.WMS( "1 buffer: OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
"http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'}, {'buffer':1} );
map.addLayer(layer);
layer = new OpenLayers.Layer.WMS( "4 buffer: OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
"http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'}, {'buffer':4} );
map.addLayer(layer);
map.addControl(new OpenLayers.Control.LayerSwitcher())
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}
</script>
@@ -33,6 +37,7 @@
<h1 id="title">Buffer Example</h1>
<div id="tags">
buffer, performance, tile, light
</div>
<p id="shortdesc">
@@ -43,7 +48,7 @@
<div id="docs">
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>
</body>
</html>

36
examples/cache-read.html Normal file
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
examples/cache-read.js Normal file
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
examples/cache-write.html Normal file
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
examples/cache-write.js Normal file
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.";
}
}
}

View File

@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers Canvas Hit Detection Example</title>
<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="apple-mobile-web-app-capable" content="yes">
<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>
</head>
<body>
<h1 id="title">Feature Hit Detection with Canvas</h1>
<p id="shortdesc">
Demonstrates detection of feature hits with the canvas renderer.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
Click on the features above to see them selected. This example
uses the Canvas renderer so it only works on browsers where
canvas is supported.
</p>
<p>
View the <a href="canvas-hit-detection.js" target="_blank">canvas-hit-detection.js</a>
source to see how this is done.
</p>
</div>
<script src="canvas-hit-detection.js"></script>
</body>
</html>

View File

@@ -0,0 +1,88 @@
// create some sample features
var Feature = OpenLayers.Feature.Vector;
var Geometry = OpenLayers.Geometry;
var features = [
new Feature(new Geometry.Point(-90, 45)),
new Feature(
new Geometry.Point(0, 45),
{cls: "one"}
),
new Feature(
new Geometry.Point(90, 45),
{cls: "two"}
),
new Feature(
Geometry.fromWKT("LINESTRING(-110 -60, -80 -40, -50 -60, -20 -40)")
),
new Feature(
Geometry.fromWKT("POLYGON((20 -20, 110 -20, 110 -80, 20 -80, 20 -20), (40 -40, 90 -40, 90 -60, 40 -60, 40 -40))")
)
];
// create rule based styles
var Rule = OpenLayers.Rule;
var Filter = OpenLayers.Filter;
var style = new OpenLayers.Style({
pointRadius: 10,
strokeWidth: 3,
strokeOpacity: 0.7,
strokeColor: "navy",
fillColor: "#ffcc66",
fillOpacity: 1
}, {
rules: [
new Rule({
filter: new Filter.Comparison({
type: "==",
property: "cls",
value: "one"
}),
symbolizer: {
externalGraphic: "../img/marker-blue.png"
}
}),
new Rule({
filter: new Filter.Comparison({
type: "==",
property: "cls",
value: "two"
}),
symbolizer: {
externalGraphic: "../img/marker-green.png"
}
}),
new Rule({
elseFilter: true,
symbolizer: {
graphicName: "circle"
}
})
]
});
var layer = new OpenLayers.Layer.Vector(null, {
styleMap: new OpenLayers.StyleMap({
"default": style,
select: {
fillColor: "red",
pointRadius: 13,
strokeColor: "yellow",
strokeWidth: 3
}
}),
isBaseLayer: true,
renderers: ["Canvas"]
});
layer.addFeatures(features);
var map = new OpenLayers.Map({
div: "map",
layers: [layer],
center: new OpenLayers.LonLat(0, 0),
zoom: 0
});
var select = new OpenLayers.Control.SelectFeature(layer);
map.addControl(select);
select.activate();

View File

@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers Canvas Inspector</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="../theme/default/google.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<script src="../lib/OpenLayers.js"></script>
<script src="Jugl.js"></script>
<style>
#template {
display: none;
}
#inspector table {
border-right: 1px solid #666;
border-bottom: 1px solid #666;
}
#inspector table td {
font-size: 9px;
text-align: center;
width: 60px;
height: 60px;
border-top: 1px solid #666;
border-left: 1px solid #666;
}
</style>
</head>
<body>
<h1 id="title">Canvas Inspector</h1>
<p id="shortdesc">
Displays pixel values for canvas context.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
View the <a href="canvas-inspector.js" target="_blank">canvas-inspector.js</a>
source to see how this is done.
</p>
</div>
<div id="inspector">
</div>
<table id="template">
<tr jugl:repeat="row new Array(rows)">
<td jugl:repeat="col new Array(cols)"
jugl:attributes="id 'c' + repeat.col.index + 'r' + repeat.row.index">
&nbsp;
</td>
</tr>
</table>
<script src="canvas-inspector.js"></script>
</body>
</html>

View File

@@ -0,0 +1,91 @@
var features = [
new OpenLayers.Feature.Vector(
OpenLayers.Geometry.fromWKT(
"LINESTRING(-90 90, 90 -90)"
),
{color: "#0f0000"}
),
new OpenLayers.Feature.Vector(
OpenLayers.Geometry.fromWKT(
"LINESTRING(100 50, -100 -50)"
),
{color: "#00ff00"}
)
];
var layer = new OpenLayers.Layer.Vector(null, {
styleMap: new OpenLayers.StyleMap({
strokeWidth: 3,
strokeColor: "${color}"
}),
isBaseLayer: true,
renderers: ["Canvas"],
rendererOptions: {hitDetection: true}
});
layer.addFeatures(features);
var map = new OpenLayers.Map({
div: "map",
layers: [layer],
center: new OpenLayers.LonLat(0, 0),
zoom: 0
});
var xOff = 2, yOff = 2;
var rows = 1 + (2 * yOff);
var cols = 1 + (2 * xOff);
var template = new jugl.Template("template");
template.process({
clone: true,
parent: "inspector",
context: {
rows: rows,
cols: cols
}
});
function isDark(r, g, b, a) {
a = a / 255;
var da = 1 - a;
// convert color values to decimal (assume white background)
r = (a * r / 255) + da;
g = (a * g / 255) + da;
b = (a * b / 255) + da;
// use w3C brightness measure
var brightness = (r * 0.299) + (g * 0.587) + (b * 0.144);
return brightness < 0.5;
}
var context = layer.renderer.canvas; //layer.renderer.hitContext;
var size = map.getSize();
map.events.on({
mousemove: function(event) {
var x = event.xy.x - 1; // TODO: fix this elsewhere
var y = event.xy.y;
if ((x >= xOff) && (x < size.w - xOff) && (y >= yOff) && (y < size.h - yOff)) {
var data = context.getImageData(x - xOff, y - yOff, rows, cols).data;
var offset, red, green, blue, alpha, cell;
for (var i=0; i<cols; ++i) {
for (var j=0; j<rows; ++j) {
offset = (i * 4) + (j * 4 * cols);
red = data[offset];
green = data[offset + 1];
blue = data[offset + 2];
alpha = data[offset + 3];
cell = document.getElementById("c" + i + "r" + j);
cell.innerHTML = "R: " + red + "<br>G: " + green + "<br>B: " + blue + "<br>A: " + alpha;
cell.style.backgroundColor = "rgba(" + red + ", " + green + ", " + blue + ", " + (alpha / 255) + ")";
cell.style.color = isDark(red, green, blue, alpha) ? "#ffffff" : "#000000";
}
}
}
}
});

35
examples/canvas.html Normal file
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>Canvas Renderer 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='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'></script>
<script src="canvas.js"></script>
</head>
<body onload="init()">
<h1 id="title">Canvas Renderer Example</h1>
<div id="tags">
canvas, renderer, advanced,
</div>
<p id="shortdesc">
Demonstrates the use of the canvas renderer with a vector layer.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
This example shows a vector layer that uses the Canvas renderer
where available. The order of the renderers given in the layer
options is used to locate the first available renderer.
</p>
<p>
See the <a href="canvas.js" target="_blank">canvas.js source</a>
to see how this is done.
</p>
</div>
</body>
</html>

57
examples/canvas.js Normal file
View File

@@ -0,0 +1,57 @@
var map, layer, styleMap;
OpenLayers.ProxyHost = "proxy.cgi?url=";
function init() {
map = new OpenLayers.Map({
div: "map",
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326")
});
var g = new OpenLayers.Layer.Google("Google Layer", {
sphericalMercator: true
});
map.addLayers([g]);
// prepare to style the data
styleMap = new OpenLayers.StyleMap({
strokeColor: "black",
strokeWidth: 2,
strokeOpacity: 0.5,
fillOpacity: 0.2
});
// create a color table for state FIPS code
var colors = ["red", "orange", "yellow", "green", "blue", "purple"];
var code, fips = {};
for(var i=1; i<=66; ++i) {
code = "0" + i;
code = code.substring(code.length - 2);
fips[code] = {fillColor: colors[i % colors.length]};
}
// add unique value rules with your color lookup
styleMap.addUniqueValueRules("default", "STATE_FIPS", fips);
// create a vector layer using the canvas renderer (where available)
var wfs = new OpenLayers.Layer.Vector("States", {
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
version: "1.1.0",
srsName: "EPSG:900913",
url: "http://v2.suite.opengeo.org/geoserver/wfs",
featureType: "states",
featureNS: "http://usa.opengeo.org"
}),
styleMap: styleMap,
renderers: ["Canvas", "SVG", "VML"]
});
map.addLayer(wfs);
// if you want to use Geographic coords, transform to ESPG:900913
var ddBounds = new OpenLayers.Bounds(
-73.839111,40.287907,-68.214111,44.441624
);
map.zoomToExtent(
ddBounds.transform(map.displayProjection, map.getProjectionObject())
);
}

View File

@@ -1,9 +1,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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 Click Handler Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="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">
<style type="text/css">
#map {
width: 340px;
@@ -16,7 +20,7 @@
#east {
position: absolute;
left: 370px;
top: 3em;
top: 4em;
}
table td {
@@ -81,14 +85,14 @@
map = new OpenLayers.Map('map');
var layer = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
"http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'}
);
map.addLayers([layer]);
controls = {
"single": new OpenLayers.Control.Click({
hanlerOptions: {
handlerOptions: {
"single": true
}
}),
@@ -156,6 +160,7 @@
<div id="west">
<div id="tags">
event, events, propagation, advanced
</div>
<p id="shortdesc">

View File

@@ -1,9 +1,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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 Click Event Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="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">
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
@@ -41,7 +45,7 @@
map = new OpenLayers.Map('map');
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} );
"http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'} );
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
@@ -65,17 +69,23 @@
<h1 id="title">Click Event Example</h1>
<div id="tags">
click control, double, doubleclick, double-click, event, events,
propagation, light
</div>
<p id="shortdesc">
This example shows the use of the click handler and getLonLatFromViewPortPx functions to trigger events on mouse click.
This example shows the use of the click handler and
getLonLatFromViewPortPx functions to trigger events on mouse click.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
Using the Click handler allows you to (for example) catch clicks without catching double clicks, something that standard browser events don't do for you. (Try double clicking: you'll zoom in, whereas using the browser click event, you would just get two alerts.) This example click control shows you how to use it.
<p>Using the Click handler allows you to (for example) catch clicks
without catching double clicks, something that standard browser
events don't do for you. (Try double clicking: you'll zoom in,
whereas using the browser click event, you would just get two
alerts.) This example click control shows you how to use it.</p>
</div>
</body>
</html>

72
examples/clientzoom.html Normal file
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
examples/clientzoom.js Normal file
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);
}

View File

@@ -1,17 +1,31 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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 Map Controls Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="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">
<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 type="text/javascript">
var map;
function init(){
map = new OpenLayers.Map('map', {
controls: [
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.MouseToolbar(),
new OpenLayers.Control.LayerSwitcher({'ascending':false}),
new OpenLayers.Control.Permalink(),
new OpenLayers.Control.ScaleLine(),
@@ -24,24 +38,32 @@
});
var ol_wms = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'}
);
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'} );
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
{layers: "landsat7"});
var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
var gwc = new OpenLayers.Layer.WMS(
"Global Imagery",
"http://maps.opengeo.org/geowebcache/service/wms",
{layers: "bluemarble"},
{tileOrigin: new OpenLayers.LonLat(-180, -90)}
);
var dm_wms = new OpenLayers.Layer.WMS(
"DM Solutions Demo",
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
{layers: "bathymetry,land_fn,park,drain_fn,drainage," +
"prov_bound,fedlimit,rail,road,popplace",
transparent: "true", format: "image/png" });
transparent: "true", format: "image/png"},
{visibility: false}
);
jpl_wms.setVisibility(false);
dm_wms.setVisibility(false);
map.addLayers([ol_wms, gwc, dm_wms]);
map.addLayers([ol_wms, jpl_wms, dm_wms]);
if (!map.getCenter()) map.zoomToMaxExtent();
if (!map.getCenter()) {
map.zoomToMaxExtent();
}
}
</script>
</head>
@@ -49,14 +71,15 @@
<h1 id="title">Map Controls Example</h1>
<div id="tags">
control, basic
</div>
<p id="shortdesc">
Attach zooming, panning, layer switcher, overview map, and permalink map controls to an OpenLayers window.
</p>
<a style="float:right" href="" id="permalink">Permalink</a>
<div id="map" class="smallmap"></div>
<a href="#" id="permalink">Permalink</a>
<div id="docs"></div>
</body>

54
examples/cql-format.html Normal file
View File

@@ -0,0 +1,54 @@
<!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 CQL Example
</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<style>
#cql {
width: 400px;
}
#output {
padding-top: 1em;
width: 512px;
height: 60px;
border: none;
color: #ff3333;
}
</style>
<script src="../lib/OpenLayers.js"></script>
</head>
<body>
<h1 id="title">CQL Filter Example</h1>
<div id="tags">
CQL, filter
</div>
<p id="shortdesc">
Demonstrate use the CQL filter.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
Enter text for a CQL filter to update the features displayed.
<br>
<form name="cql_form" id="cql_form">
<label for="cql">CQL</label>
<input id="cql" type="text" value="STATE_ABBR >= 'B' AND STATE_ABBR <= 'O'">
<input type="submit" value="update">
<input type="reset" value="reset">
</form>
<textarea id="output"></textarea>
</p><p>
View the <a href="cql-format.js" target="_blank">cql-format.js source</a>
to see how this is done.
</p>
</div>
<script src="cql-format.js"></script>
<script src="http://demo.opengeo.org/geoserver/wfs?service=WFS&amp;version=1.0.0&amp;request=GetFeature&amp;typename=topp:states&amp;outputFormat=json&amp;format_options=callback:loadFeatures" type="text/javascript"></script>
</body>
</html>

61
examples/cql-format.js Normal file
View File

@@ -0,0 +1,61 @@
// use a CQL parser for easy filter creation
var format = new OpenLayers.Format.CQL();
// this rule will get a filter from the CQL text in the form
var rule = new OpenLayers.Rule({
// We could also set a filter here. E.g.
// filter: format.read("STATE_ABBR >= 'B' AND STATE_ABBR <= 'O'"),
symbolizer: {
fillColor: "#ff0000",
strokeColor: "#ffcccc",
fillOpacity: "0.5"
}
});
var states = new OpenLayers.Layer.Vector("States", {
styleMap: new OpenLayers.StyleMap({
"default": new OpenLayers.Style(null, {rules: [rule]})
})
});
var map = new OpenLayers.Map({
div: "map",
layers: [
new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://maps.opengeo.org/geowebcache/service/wms",
{layers: "openstreetmap", format: "image/png"}
),
states
],
center: new OpenLayers.LonLat(-101, 39),
zoom: 3
});
// called when features are fetched
function loadFeatures(data) {
var features = new OpenLayers.Format.GeoJSON().read(data);
states.addFeatures(features);
}
// update filter and redraw when form is submitted
var cql = document.getElementById("cql");
var output = document.getElementById("output");
function updateFilter() {
var filter;
try {
filter = format.read(cql.value);
} catch (err) {
output.value = err.message;
}
if (filter) {
output.value = "";
rule.filter = filter;
states.redraw();
}
return false;
}
updateFilter();
var form = document.getElementById("cql_form");
form.onsubmit = updateFilter;

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>

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());
}
}
})
]
});

View File

@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers Script Protocol 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</h1>
<div id="tags">
protocol, script, cross origin, advanced
</div>
<p id="shortdesc">
Demonstrates the use of a script protocol for making feature requests
cross origin.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
In cases where a service returns serialized features and accepts
a named callback (e.g. http://example.com/features.json?callback=foo),
the script protocol can be used to read features without being
restricted by the same origin policy.
</p>
<p>
View the <a href="cross-origin.js" target="_blank">cross-origin.js</a>
source to see how this is done
</p>
</div>
<script src="cross-origin.js"></script>
</body>
</html>

39
examples/cross-origin.js Normal file
View File

@@ -0,0 +1,39 @@
var map = new OpenLayers.Map({
div: "map",
layers: [
new OpenLayers.Layer.WMS(
"World Map",
"http://maps.opengeo.org/geowebcache/service/wms",
{layers: "bluemarble"}
),
new OpenLayers.Layer.Vector("States", {
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.Script({
url: "http://suite.opengeo.org/geoserver/wfs",
callbackKey: "format_options",
callbackPrefix: "callback:",
params: {
service: "WFS",
version: "1.1.0",
srsName: "EPSG:4326",
request: "GetFeature",
typeName: "world:cities",
outputFormat: "json"
},
filterToParams: function(filter, params) {
// example to demonstrate BBOX serialization
if (filter.type === OpenLayers.Filter.Spatial.BBOX) {
params.bbox = filter.value.toArray();
if (filter.projection) {
params.bbox.push(filter.projection.getCode());
}
}
return params;
}
})
})
],
center: new OpenLayers.LonLat(0, 0),
zoom: 1
});

View File

@@ -1,56 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Custom Control Point Examle</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 type="text/javascript">
var lon = 5;
var lat = 40;
var zoom = 5;
var map, layer;
function init(){
map = new OpenLayers.Map( $('map') );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
var control = new OpenLayers.Control();
OpenLayers.Util.extend(control, {
draw: function () {
// this Handler.Point will intercept the shift-mousedown
// before Control.MouseDefault gets to see it
this.point = new OpenLayers.Handler.Point( control,
{"done": this.notice},
{keyMask: OpenLayers.Handler.MOD_SHIFT});
this.point.activate();
},
notice: function (bounds) {
document.getElementById('bounds').innerHTML = bounds;
}
});
map.addLayer(layer);
map.addControl(control);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}
</script>
</head>
<body onload="init()">
<h1 id="title">Custom Control Point Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Demonstrate the addition of a point reporting control to the OpenLayers window.
</p>
<div id="map" class="smallmap"></div>
<div id="bounds"></div>
<div id="docs"></div>
</body>
</html>

View File

@@ -1,8 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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 Control Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="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">
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 5;
@@ -13,7 +17,7 @@
function init(){
map = new OpenLayers.Map('map');
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
"http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
var control = new OpenLayers.Control();
OpenLayers.Util.extend(control, {
@@ -46,14 +50,19 @@
<h1 id="title">Custom Control Example</h1>
<div id="tags">
control, panel, rectangle, light
</div>
<p id="shortdesc">
Demonstrate the addition of a draggable rectangle to the OpenLayers window.
Demonstrate the addition of a rectangle to the OpenLayers window.
</p>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
<div id="docs">
<p>The control allows you to draw a rectangle, that reports its coordinates
after creation. Hold down the shift key on your keyboard and draw a
rectangle with the mouse.</p>
</div>
</body>
</html>

View File

@@ -1,16 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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 Style Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="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">
<style type="text/css">
p {
width: 500px;
}
div.olControlMousePosition {
font-family: Verdana;
font-size: 0.5em;
font-size: 2em;
color: red;
}
</style>
@@ -25,7 +29,7 @@
var options = {theme: null};
map = new OpenLayers.Map('map', options);
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
"http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
map.addControl(new OpenLayers.Control.MousePosition());
map.addLayer(layer);
@@ -37,6 +41,7 @@
<h1 id="title">Custom Style Example</h1>
<div id="tags">
styling, css, stylesheet, theming, theme
</div>
<p id="shortdesc">

10
examples/data/line.json Normal file
View File

@@ -0,0 +1,10 @@
{
"type": "FeatureCollection",
"features": [
{"type":"Feature", "id":"OpenLayers.Feature.Vector_458", "properties":{}, "geometry":{"type":"LineString", "coordinates":[[-121.640625, 24.2578125], [-78.046875, 27.7734375], [-45.703125, 24.9609375], [-13.359375, 16.5234375], [12.65625, 6.6796875], [39.375, 1.0546875], [76.640625, 1.0546875], [108.28125, 1.7578125], [156.09375, 15.8203125]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1111", "properties":{}, "geometry":{"type":"LineString", "coordinates":[[-122.34375, -35.5078125], [-48.515625, -33.3984375], [-5.625, -37.6171875], [20.390625, -32.6953125], [69.609375, -34.1015625], [121.640625, -38.3203125], [150.46875, -33.3984375]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_634", "properties":{}, "geometry":{"type":"LineString", "coordinates":[[-54.84375, 69.9609375], [-56.953125, 31.9921875], [-56.953125, 5.2734375], [-65.390625, -34.8046875], [-66.09375, -61.5234375]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_820", "properties":{}, "geometry":{"type":"LineString", "coordinates":[[39.375, 58.0078125], [42.890625, 25.6640625], [42.1875, -1.0546875], [37.96875, -50.2734375], [37.265625, -64.3359375]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1280", "properties":{}, "geometry":{"type":"LineString", "coordinates":[[101.25, 42.5390625], [106.875, 13.7109375], [106.171875, -17.9296875], [104.765625, -49.5703125], [102.65625, -67.1484375]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}}
]
}

8
examples/data/point.json Normal file
View File

@@ -0,0 +1,8 @@
{
"type": "FeatureCollection",
"features": [
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1721", "properties":{}, "geometry":{"type":"Point", "coordinates":[-89.296875, -14.4140625]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1715", "properties":{}, "geometry":{"type":"Point", "coordinates":[-25.3125, -54.4921875]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1709", "properties":{}, "geometry":{"type":"Point", "coordinates":[73.828125, -23.5546875]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}}
]
}

9
examples/data/poly.json Normal file
View File

@@ -0,0 +1,9 @@
{
"type": "FeatureCollection",
"features": [
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1489", "properties":{}, "geometry":{"type":"Polygon", "coordinates":[[[-109.6875, 63.6328125], [-112.5, 35.5078125], [-85.078125, 34.8046875], [-68.90625, 39.7265625], [-68.203125, 67.1484375], [-109.6875, 63.6328125]]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1668", "properties":{}, "geometry":{"type":"Polygon", "coordinates":[[[-40.78125, 65.0390625], [-40.078125, 34.8046875], [-12.65625, 25.6640625], [21.09375, 17.2265625], [22.5, 58.0078125], [-40.78125, 65.0390625]]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}}
]
}

349
examples/data/roads.json Normal file
View File

@@ -0,0 +1,349 @@
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "LINK_ID": 30760460.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "KVARNGATAN", "L_REFADDR": "24", "L_NREFADDR": "22", "R_REFADDR": "27", "R_NREFADDR": "23", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 41.871700 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549555.330250, 6403958.170400 ], [ 1549594.439950, 6403973.130400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730499.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 46.382600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549497.669850, 6403707.960000 ], [ 1549491.100000, 6403710.100000 ], [ 1549488.039950, 6403716.750400 ], [ 1549488.540100, 6403724.550400 ], [ 1549494.379850, 6403733.540000 ], [ 1549499.679900, 6403738.050400 ], [ 1549506.220000, 6403739.250400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760556.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "24", "L_NREFADDR": "16", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 70.310600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549754.276900, 6403854.802400 ], [ 1549728.459850, 6403920.200000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760712.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "9", "R_NREFADDR": "9", "SPEED_CAT": "6", "ZIPCODE": "59332", "SHAPE_LEN": 40.068900 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549571.899950, 6403675.450400 ], [ 1549592.674200, 6403684.530400 ], [ 1549608.619850, 6403691.500000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30837043.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BREDGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 78.203400 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549741.089950, 6403765.520000 ], [ 1549730.790150, 6403779.880000 ], [ 1549703.919950, 6403834.130400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80545558.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "NORRA VARVSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 20.687400 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549909.400050, 6403973.670400 ], [ 1549900.829950, 6403992.491200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760549.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "38", "L_NREFADDR": "36", "R_REFADDR": "33", "R_NREFADDR": "31", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 32.788800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549878.029900, 6403861.890400 ], [ 1549867.520100, 6403892.960000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547479.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BREDGATAN", "L_REFADDR": "18", "L_NREFADDR": "14", "R_REFADDR": "15", "R_NREFADDR": "13", "SPEED_CAT": "8", "ZIPCODE": "59330", "SHAPE_LEN": 15.654700 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549645.069900, 6403971.520000 ], [ 1549638.940000, 6403985.930400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760575.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BREDGATAN", "L_REFADDR": "24", "L_NREFADDR": "14", "R_REFADDR": "19", "R_NREFADDR": "13", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 118.385000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549703.919950, 6403834.130400 ], [ 1549656.739950, 6403942.710400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760608.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "32", "L_NREFADDR": "32", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 74.462800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549566.450100, 6403780.090400 ], [ 1549635.170150, 6403808.780000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547481.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "KVARNGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 13.834500 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549625.900050, 6403981.310400 ], [ 1549638.940000, 6403985.930400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730495.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 63.537000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549535.370100, 6403692.830400 ], [ 1549549.530050, 6403703.030400 ], [ 1549570.300100, 6403708.850400 ], [ 1549570.600050, 6403733.360000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80545560.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 20.545100 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549927.119850, 6403985.020000 ], [ 1549944.182350, 6403996.455200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760664.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "3", "R_NREFADDR": "1", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 59.030600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549679.130150, 6403720.210400 ], [ 1549717.099900, 6403730.700000 ], [ 1549726.590150, 6403734.160000 ], [ 1549734.260050, 6403739.820000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547480.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "KVARNGATAN", "L_REFADDR": "20", "L_NREFADDR": "20", "R_REFADDR": "21", "R_NREFADDR": "21", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 12.375300 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549614.030150, 6403977.820000 ], [ 1549621.149850, 6403980.140000 ], [ 1549625.900050, 6403981.310400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760739.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "13", "R_NREFADDR": "11", "SPEED_CAT": "6", "ZIPCODE": "59332", "SHAPE_LEN": 57.793000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549522.250000, 6403645.880000 ], [ 1549571.899950, 6403675.450400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80545557.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "NORRA VARVSGATAN", "L_REFADDR": "26", "L_NREFADDR": "20", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 62.216100 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549929.770050, 6403914.890400 ], [ 1549909.400050, 6403973.670400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760610.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "SLOTTSHOLMSV<53>GEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 60.324700 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549921.910100, 6403780.010400 ], [ 1549931.136800, 6403785.640000 ], [ 1549946.150050, 6403794.800000 ], [ 1549960.880150, 6403807.230400 ], [ 1549962.209450, 6403808.998400 ], [ 1549968.489850, 6403817.350400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760475.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "SP<53>TORGET", "L_REFADDR": "9", "L_NREFADDR": "1", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "8", "ZIPCODE": "59330", "SHAPE_LEN": 70.301600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549656.739950, 6403942.710400 ], [ 1549631.800000, 6403936.830400 ], [ 1549614.030150, 6403977.820000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547460.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "KVARNGATAN", "L_REFADDR": "30", "L_NREFADDR": "26", "R_REFADDR": "31", "R_NREFADDR": "29", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 62.288000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549496.649950, 6403937.400000 ], [ 1549525.699950, 6403946.670400 ], [ 1549555.330250, 6403958.170400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547482.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 22.019100 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549645.069900, 6403971.520000 ], [ 1549637.249850, 6403978.110400 ], [ 1549633.070150, 6403979.170400 ], [ 1549625.900050, 6403981.310400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730502.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 26.440100 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549535.370100, 6403692.830400 ], [ 1549528.510100, 6403718.360000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730491.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "48", "L_NREFADDR": "48", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 53.485400 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549608.619850, 6403691.500000 ], [ 1549600.079850, 6403708.100000 ], [ 1549584.219950, 6403739.090400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760461.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "R<>DHUSGATAN", "L_REFADDR": "52", "L_NREFADDR": "50", "R_REFADDR": "43", "R_NREFADDR": "41", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 62.397200 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549555.330250, 6403958.170400 ], [ 1549531.400050, 6404015.800000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760674.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 13.834500 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549666.080050, 6403715.590400 ], [ 1549679.130150, 6403720.210400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80545555.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "SLOTTSHOLMSV<53>GEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 185.679000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549968.489850, 6403817.350400 ], [ 1549977.779900, 6403836.400000 ], [ 1549983.460050, 6403858.740000 ], [ 1549982.539900, 6403884.350400 ], [ 1549978.140050, 6403903.230400 ], [ 1549947.139850, 6403954.090400 ], [ 1549927.119850, 6403985.020000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760515.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "NORRA VARVSGATAN", "L_REFADDR": "30", "L_NREFADDR": "28", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 22.968600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549938.960000, 6403893.840000 ], [ 1549929.770050, 6403914.890400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760497.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "KVARNGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 24.829800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549488.599950, 6403913.910400 ], [ 1549496.649950, 6403937.400000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30837044.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 146.769000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549776.080150, 6403777.100000 ], [ 1549785.590000, 6403778.330400 ], [ 1549886.280100, 6403772.890400 ], [ 1549908.484450, 6403777.327200 ], [ 1549921.910100, 6403780.010400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760477.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "14", "L_NREFADDR": "12", "R_REFADDR": "19", "R_NREFADDR": "11", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 78.700300 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549723.519950, 6403934.620000 ], [ 1549697.600000, 6404008.930400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760542.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "22", "L_NREFADDR": "18", "R_REFADDR": "29", "R_NREFADDR": "21", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 34.587000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549798.179850, 6403867.590400 ], [ 1549830.790050, 6403879.130400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760457.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "NYGATAN", "L_REFADDR": "8", "L_NREFADDR": "6", "R_REFADDR": "15", "R_NREFADDR": "7", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 45.468000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549796.459950, 6403958.910400 ], [ 1549839.739900, 6403972.810400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573703846.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 8.208130 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549734.260050, 6403739.820000 ], [ 1549738.939900, 6403746.560000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760631.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 46.824600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549741.290150, 6403748.820000 ], [ 1549753.539450, 6403766.201600 ], [ 1549754.750100, 6403767.920000 ], [ 1549761.249950, 6403772.460000 ], [ 1549776.080150, 6403777.100000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760491.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 15.240700 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549728.459850, 6403920.200000 ], [ 1549723.519950, 6403934.620000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760566.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "NORRA VARVSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 54.648300 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549960.410100, 6403843.980000 ], [ 1549959.139950, 6403850.640000 ], [ 1549952.470000, 6403860.580000 ], [ 1549938.960000, 6403893.840000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547447.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 13.369300 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549927.421200, 6403767.822400 ], [ 1549921.910100, 6403780.010400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730503.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 44.681900 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549528.510100, 6403718.360000 ], [ 1549570.600050, 6403733.360000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80545559.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 21.047100 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549909.400050, 6403973.670400 ], [ 1549927.119850, 6403985.020000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547444.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 46.504800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549967.599100, 6403744.932000 ], [ 1549943.650000, 6403755.770400 ], [ 1549927.421200, 6403767.822400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730492.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 44.681800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549584.219950, 6403739.090400 ], [ 1549566.450100, 6403780.090400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760700.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "7", "R_NREFADDR": "5", "SPEED_CAT": "6", "ZIPCODE": "59332", "SHAPE_LEN": 62.310700 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549608.619850, 6403691.500000 ], [ 1549666.080050, 6403715.590400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760611.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 51.110800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549921.910100, 6403780.010400 ], [ 1549913.480000, 6403787.710400 ], [ 1549891.640000, 6403820.850400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547478.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BREDGATAN", "L_REFADDR": "24", "L_NREFADDR": "20", "R_REFADDR": "19", "R_NREFADDR": "17", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 31.088600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549656.739950, 6403942.710400 ], [ 1549645.069900, 6403971.520000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760451.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "KVARNGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 20.146600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549594.439950, 6403973.130400 ], [ 1549614.030150, 6403977.820000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760525.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "16", "L_NREFADDR": "14", "R_REFADDR": "19", "R_NREFADDR": "15", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 39.254300 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549830.790050, 6403879.130400 ], [ 1549867.520100, 6403892.960000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760497.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 24.829800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549488.599950, 6403913.910400 ], [ 1549496.649950, 6403937.400000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573703847.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 3.259030 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549738.939900, 6403746.560000 ], [ 1549741.290150, 6403748.820000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730500.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 31.544900 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549528.510100, 6403718.360000 ], [ 1549511.590050, 6403738.200000 ], [ 1549506.220000, 6403739.250400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730504.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 32.542600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549497.669850, 6403707.960000 ], [ 1549528.510100, 6403718.360000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760589.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "23", "R_NREFADDR": "21", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 47.569300 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549771.489900, 6403810.460000 ], [ 1549754.276900, 6403854.802400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270836", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 34.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549967.599100, 6403744.932000 ], [ 1549999.352500, 6403730.830400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270839", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 9.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549967.599100, 6403744.932000 ], [ 1549975.575600, 6403750.824800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270840", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 18.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549975.575600, 6403750.824800 ], [ 1549992.301750, 6403743.152800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 22, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270840", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 16.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1550001.325450, 6403756.464000 ], [ 1549992.301750, 6403743.152800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270842", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 12.300000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549927.421200, 6403767.822400 ], [ 1549936.717550, 6403775.876000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270842", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 46.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549936.717550, 6403775.876000 ], [ 1549958.789600, 6403758.524000 ], [ 1549975.575600, 6403750.824800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547691.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808270844", "USERID": "LO-JKP", "ST_NAME": "NORRA BANGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 209.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549937.660100, 6403662.140000 ], [ 1549881.800100, 6403701.550400 ], [ 1549764.730000, 6403731.290400 ], [ 1549745.501350, 6403736.423200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547691.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808270844", "USERID": "LO-JKP", "ST_NAME": "NORRA BANGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 11.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549745.501350, 6403736.423200 ], [ 1549734.260050, 6403739.820000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270847", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 32.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549927.421200, 6403767.822400 ], [ 1549930.803600, 6403753.404000 ], [ 1549928.832400, 6403735.662400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270847", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 53.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549928.832400, 6403735.662400 ], [ 1549962.732350, 6403727.381600 ], [ 1549967.599100, 6403744.932000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270848", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 44.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549928.832400, 6403735.662400 ], [ 1549886.025300, 6403747.621600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270848", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 11.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549886.025300, 6403747.621600 ], [ 1549875.211350, 6403750.643200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270848", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 19.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549888.409150, 6403767.056000 ], [ 1549886.025300, 6403747.621600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270922", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 20.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549745.501350, 6403736.423200 ], [ 1549760.669300, 6403722.331200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270923", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 126.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549760.669300, 6403722.331200 ], [ 1549771.919700, 6403716.340800 ], [ 1549815.248650, 6403610.940000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547535.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 1, "LOGKOD": "R", "CHANGED": "0808270933", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "5", "R_NREFADDR": "1", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 5.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549681.045700, 6403715.598400 ], [ 1549679.130150, 6403720.210400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270933", "USERID": "LO-JKP", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 68.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549745.501350, 6403736.423200 ], [ 1549740.387150, 6403731.321600 ], [ 1549681.045700, 6403715.598400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760732.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808270934", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "2", "L_NREFADDR": "2", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59332", "SHAPE_LEN": 56.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549683.510050, 6403654.550400 ], [ 1549667.935400, 6403709.100000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760732.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808270934", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "2", "L_NREFADDR": "2", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59332", "SHAPE_LEN": 6.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549667.935400, 6403709.100000 ], [ 1549666.080050, 6403715.590400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270934", "USERID": "LO-JKP", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 14.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549681.045700, 6403715.598400 ], [ 1549667.935400, 6403709.100000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270935", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 40.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549763.755600, 6403714.004800 ], [ 1549738.019750, 6403704.509600 ], [ 1549731.660600, 6403715.640800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547428.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270936", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "10", "L_NREFADDR": "2", "R_REFADDR": "1", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59331", "SHAPE_LEN": 15.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549766.018350, 6403708.067200 ], [ 1549763.755600, 6403714.004800 ], [ 1549760.669300, 6403722.331200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270936", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 48.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549766.018350, 6403708.067200 ], [ 1549736.048550, 6403696.628800 ], [ 1549743.183300, 6403681.558400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547428.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270936", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "10", "L_NREFADDR": "2", "R_REFADDR": "1", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59331", "SHAPE_LEN": 22.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549774.118750, 6403686.709600 ], [ 1549766.018350, 6403708.067200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270936", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 36.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549774.118750, 6403686.709600 ], [ 1549747.876450, 6403676.916800 ], [ 1549751.868550, 6403670.136800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547428.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270937", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "10", "L_NREFADDR": "2", "R_REFADDR": "1", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59331", "SHAPE_LEN": 25.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549783.651700, 6403662.588800 ], [ 1549778.530150, 6403674.660000 ], [ 1549774.118750, 6403686.709600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547535.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 1, "LOGKOD": "R", "CHANGED": "0808270938", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "5", "R_NREFADDR": "1", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 18.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549703.060000, 6403662.590400 ], [ 1549695.854900, 6403679.940000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547535.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 1, "LOGKOD": "R", "CHANGED": "0808270938", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "5", "R_NREFADDR": "1", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 38.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549695.854900, 6403679.940000 ], [ 1549681.045700, 6403715.598400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270938", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 27.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549695.854900, 6403679.940000 ], [ 1549710.817400, 6403684.797600 ], [ 1549716.384850, 6403674.867200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270939", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 18.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549704.982200, 6403658.172000 ], [ 1549717.515000, 6403662.725600 ], [ 1549719.527500, 6403657.506400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271124", "USERID": "LO-JKP", "ST_NAME": "F<>NGELSETORGET", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 192.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549908.200950, 6403637.271200 ], [ 1549910.100750, 6403648.924800 ], [ 1549887.237000, 6403693.868800 ], [ 1549878.956000, 6403699.779200 ], [ 1549807.205300, 6403714.370400 ], [ 1549760.669300, 6403722.331200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 1900112527.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808271126", "USERID": "LO-JKP", "ST_NAME": "F<>NGELSETORGET", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 100.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549809.770450, 6403695.048800 ], [ 1549792.424450, 6403687.958400 ], [ 1549824.218800, 6403612.351200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271126", "USERID": "LO-JKP", "ST_NAME": "F<>NGELSETOGET", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 17.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549817.102950, 6403710.910400 ], [ 1549809.770450, 6403695.048800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547449.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271128", "USERID": "LO-JKP", "ST_NAME": "S<>DRA VARVSGATAN", "L_REFADDR": "40", "L_NREFADDR": "32", "R_REFADDR": "21", "R_NREFADDR": "15", "SPEED_CAT": "6", "ZIPCODE": "59350", "SHAPE_LEN": 23.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549989.554600, 6403806.848000 ], [ 1549976.880050, 6403812.990400 ], [ 1549968.489850, 6403817.350400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730501.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271500", "USERID": "LO-JKP", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 9.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549570.600050, 6403733.360000 ], [ 1549579.722100, 6403737.201600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730501.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271500", "USERID": "LO-JKP", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 4.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549579.722100, 6403737.201600 ], [ 1549584.219950, 6403739.090400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730505.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271504", "USERID": "LO-JKP", "ST_NAME": "L<>ROVERKSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59333", "SHAPE_LEN": 79.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549471.922100, 6403800.288000 ], [ 1549539.838900, 6403825.187200 ], [ 1549546.809850, 6403827.740000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271508", "USERID": "LO-JKP", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59332", "SHAPE_LEN": 23.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549574.529850, 6403669.305600 ], [ 1549580.125650, 6403672.576800 ], [ 1549595.345750, 6403678.918400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271508", "USERID": "LO-JKP", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59332", "SHAPE_LEN": 80.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549595.345750, 6403678.918400 ], [ 1549617.976400, 6403688.348000 ], [ 1549648.329450, 6403702.939200 ], [ 1549654.639250, 6403704.509600 ], [ 1549660.157350, 6403703.329600 ], [ 1549667.935400, 6403709.100000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271508", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59333", "SHAPE_LEN": 68.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549579.722100, 6403737.201600 ], [ 1549586.633550, 6403729.352000 ], [ 1549598.065250, 6403704.509600 ], [ 1549595.698200, 6403698.599200 ], [ 1549588.604750, 6403693.078400 ], [ 1549592.674200, 6403684.530400 ], [ 1549595.345750, 6403678.918400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271508", "USERID": "LO-JKP", "ST_NAME": "KVARNGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59333", "SHAPE_LEN": 185.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549495.671350, 6403901.486400 ], [ 1549498.716350, 6403900.056000 ], [ 1549509.356700, 6403886.655200 ], [ 1549520.005100, 6403865.753600 ], [ 1549533.012150, 6403839.740800 ], [ 1549539.838900, 6403825.187200 ], [ 1549547.990750, 6403807.808000 ], [ 1549557.459650, 6403786.516800 ], [ 1549566.128450, 6403765.624800 ], [ 1549574.805650, 6403746.692800 ], [ 1549579.722100, 6403737.201600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547462.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271508", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "44", "L_NREFADDR": "38", "R_REFADDR": "61", "R_NREFADDR": "53", "SPEED_CAT": "7", "ZIPCODE": "59333", "SHAPE_LEN": 14.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549501.325600, 6403908.552800 ], [ 1549497.550150, 6403911.790400 ], [ 1549488.599950, 6403913.910400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271508", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59333", "SHAPE_LEN": 9.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549495.671350, 6403901.486400 ], [ 1549501.325600, 6403908.552800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271509", "USERID": "LO-JKP", "ST_NAME": "SLOTTHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 29.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549745.501350, 6403736.423200 ], [ 1549760.487650, 6403761.674400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271509", "USERID": "LO-JKP", "ST_NAME": "SLOTTHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 130.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549760.487650, 6403761.674400 ], [ 1549773.107600, 6403768.775200 ], [ 1549794.000150, 6403771.925600 ], [ 1549806.223900, 6403771.925600 ], [ 1549847.621200, 6403768.775200 ], [ 1549874.427700, 6403767.595200 ], [ 1549888.409150, 6403767.056000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760574.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271509", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "26", "L_NREFADDR": "24", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 5.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549703.919950, 6403834.130400 ], [ 1549709.114300, 6403836.262400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760574.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271509", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "26", "L_NREFADDR": "24", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 48.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549709.114300, 6403836.262400 ], [ 1549754.276900, 6403854.802400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760590.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271510", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "30", "L_NREFADDR": "28", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 37.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549635.170150, 6403808.780000 ], [ 1549670.099800, 6403821.660000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271510", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 45.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549670.099800, 6403821.660000 ], [ 1549661.138750, 6403843.681600 ], [ 1549652.074100, 6403839.340800 ], [ 1549647.702600, 6403850.082400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760590.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271511", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "30", "L_NREFADDR": "28", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 4.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549670.099800, 6403821.660000 ], [ 1549674.526600, 6403823.292000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760590.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271511", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "30", "L_NREFADDR": "28", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 31.300000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549674.526600, 6403823.292000 ], [ 1549703.919950, 6403834.130400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271511", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 23.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549674.526600, 6403823.292000 ], [ 1549664.644350, 6403844.952000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271512", "USERID": "LO-JKP", "ST_NAME": "BREDGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 47.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549760.487650, 6403761.674400 ], [ 1549753.539450, 6403766.201600 ], [ 1549734.473200, 6403778.625600 ], [ 1549728.022350, 6403793.287200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271513", "USERID": "LO-JKP", "ST_NAME": "BREDGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 9.300000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549728.022350, 6403793.287200 ], [ 1549724.270700, 6403801.813600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271513", "USERID": "LO-JKP", "ST_NAME": "BREDGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 37.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549724.270700, 6403801.813600 ], [ 1549709.114300, 6403836.262400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271514", "USERID": "LO-JKP", "ST_NAME": "BREDGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 51.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549754.276900, 6403854.802400 ], [ 1549737.228050, 6403806.618400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271514", "USERID": "LO-JKP", "ST_NAME": "BREDGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 13.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549737.228050, 6403806.618400 ], [ 1549724.270700, 6403801.813600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547503.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271514", "USERID": "LO-JKP", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "25", "R_NREFADDR": "25", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 17.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549774.889100, 6403793.607200 ], [ 1549771.489900, 6403810.460000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271514", "USERID": "LO-JKP", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 40.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549737.228050, 6403806.618400 ], [ 1549769.560700, 6403793.607200 ], [ 1549774.889100, 6403793.607200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547503.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271515", "USERID": "LO-JKP", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "25", "R_NREFADDR": "25", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 14.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549776.080150, 6403777.100000 ], [ 1549775.301400, 6403791.567200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547503.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271515", "USERID": "LO-JKP", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "25", "R_NREFADDR": "25", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 2.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549775.301400, 6403791.567200 ], [ 1549774.889100, 6403793.607200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271516", "USERID": "LO-JKP", "ST_NAME": "SLOTTHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 23.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549888.409150, 6403767.056000 ], [ 1549894.924400, 6403766.804800 ], [ 1549911.882600, 6403767.984800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271516", "USERID": "LO-JKP", "ST_NAME": "SLOTTHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 15.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549911.882600, 6403767.984800 ], [ 1549927.421200, 6403767.822400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760596.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271516", "USERID": "LO-JKP", "ST_NAME": "NORRA J<>RNV<4E>GSGATAN", "L_REFADDR": "12", "L_NREFADDR": "6", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 68.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549818.068600, 6403799.888800 ], [ 1549884.091550, 6403818.700000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760596.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271516", "USERID": "LO-JKP", "ST_NAME": "NORRA J<>RNV<4E>GSGATAN", "L_REFADDR": "12", "L_NREFADDR": "6", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 7.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549884.091550, 6403818.700000 ], [ 1549891.640000, 6403820.850400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271516", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 58.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549911.882600, 6403767.984800 ], [ 1549908.484450, 6403777.327200 ], [ 1549905.284050, 6403786.126400 ], [ 1549884.091550, 6403818.700000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760579.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271517", "USERID": "LO-JKP", "ST_NAME": "NORRA J<>RNV<4E>GSGATAN", "L_REFADDR": "4", "L_NREFADDR": "2", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 6.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549891.640000, 6403820.850400 ], [ 1549897.839200, 6403822.604000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271517", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 61.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549936.717550, 6403775.876000 ], [ 1549931.136800, 6403785.640000 ], [ 1549927.257050, 6403792.427200 ], [ 1549897.839200, 6403822.604000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271517", "USERID": "LO-JKP", "ST_NAME": "SLOTTSHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 7.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549982.841250, 6403805.048000 ], [ 1549989.554600, 6403806.848000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271518", "USERID": "LO-JKP", "ST_NAME": "SLOTTSHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 14.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549775.301400, 6403791.567200 ], [ 1549789.273750, 6403792.036800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271518", "USERID": "LO-JKP", "ST_NAME": "SLOTTSHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 116.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549789.273750, 6403792.036800 ], [ 1549820.418850, 6403786.116800 ], [ 1549862.599800, 6403784.936000 ], [ 1549905.284050, 6403786.126400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271518", "USERID": "LO-JKP", "ST_NAME": "NORRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 29.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549818.068600, 6403799.888800 ], [ 1549789.273750, 6403792.036800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547461.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280759", "USERID": "LO-JKP", "ST_NAME": "V<>RDTR<54>DSPLAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "7", "R_NREFADDR": "3", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 93.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549635.170150, 6403808.780000 ], [ 1549633.900000, 6403814.330400 ], [ 1549618.609900, 6403847.560000 ], [ 1549614.980050, 6403851.970400 ], [ 1549605.460050, 6403851.850400 ], [ 1549590.180100, 6403883.960800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547461.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280759", "USERID": "LO-JKP", "ST_NAME": "V<>RDTR<54>DSPLAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "7", "R_NREFADDR": "3", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 51.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549590.180100, 6403883.960800 ], [ 1549568.259950, 6403874.780000 ], [ 1549542.790100, 6403864.450400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280759", "USERID": "LO-JKP", "ST_NAME": "V<>RDTR<54>DSPLAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 99.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549555.330250, 6403958.170400 ], [ 1549562.119900, 6403948.800800 ], [ 1549569.040100, 6403929.018400 ], [ 1549576.364550, 6403927.638400 ], [ 1549583.482500, 6403925.468800 ], [ 1549590.600800, 6403917.357600 ], [ 1549593.767950, 6403909.047200 ], [ 1549596.737350, 6403902.126400 ], [ 1549585.857950, 6403894.605600 ], [ 1549590.180100, 6403883.960800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760476.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280801", "USERID": "LO-JKP", "ST_NAME": "NYGATAN", "L_REFADDR": "12", "L_NREFADDR": "10", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 62.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549723.519950, 6403934.620000 ], [ 1549782.972000, 6403954.418400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760476.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280801", "USERID": "LO-JKP", "ST_NAME": "NYGATAN", "L_REFADDR": "12", "L_NREFADDR": "10", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 14.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549782.972000, 6403954.418400 ], [ 1549796.459950, 6403958.910400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760555.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280803", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "33", "R_NREFADDR": "31", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 37.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549754.276900, 6403854.802400 ], [ 1549789.877500, 6403865.172000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760555.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280803", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "33", "R_NREFADDR": "31", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 8.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549789.877500, 6403865.172000 ], [ 1549798.179850, 6403867.590400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280803", "USERID": "LO-JKP", "ST_NAME": "G<>STA BERNARDS GATA", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 44.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549763.127350, 6403899.236800 ], [ 1549769.602000, 6403885.904800 ], [ 1549772.571400, 6403880.964800 ], [ 1549789.877500, 6403865.172000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280805", "USERID": "LO-JKP", "ST_NAME": "GR<47>NA GR<47>ND", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 42.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549782.972000, 6403954.418400 ], [ 1549793.934000, 6403923.878400 ], [ 1549786.164350, 6403917.663200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280805", "USERID": "LO-JKP", "ST_NAME": "GR<47>NA GR<47>ND", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 29.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549786.164350, 6403917.663200 ], [ 1549763.127350, 6403899.236800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760512.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808280806", "USERID": "LO-JKP", "ST_NAME": "TR<54>DG<44>RDSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "3", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 16.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549763.127350, 6403899.236800 ], [ 1549754.840050, 6403906.050400 ], [ 1549749.691200, 6403908.812000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760512.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808280806", "USERID": "LO-JKP", "ST_NAME": "TR<54>DG<44>RDSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "3", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 24.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549749.691200, 6403908.812000 ], [ 1549728.459850, 6403920.200000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280806", "USERID": "LO-JKP", "ST_NAME": "G<>STA BERNARDS GATA", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 49.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549786.477600, 6403917.288000 ], [ 1549786.164350, 6403917.663200 ], [ 1549781.471200, 6403923.288000 ], [ 1549778.501800, 6403931.988800 ], [ 1549753.386150, 6403924.078400 ], [ 1549757.605750, 6403919.492000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280806", "USERID": "LO-JKP", "ST_NAME": "G<>STA BERNARDS GATA", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 7.300000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549757.605750, 6403919.492000 ], [ 1549762.549850, 6403914.117600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280806", "USERID": "LO-JKP", "ST_NAME": "G<>STA BERNARDS GATA", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 13.300000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549749.691200, 6403908.812000 ], [ 1549757.605750, 6403919.492000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760580.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280807", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "42", "L_NREFADDR": "40", "R_REFADDR": "37", "R_NREFADDR": "35", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 25.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549891.640000, 6403820.850400 ], [ 1549883.651250, 6403844.940000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760580.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280807", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "42", "L_NREFADDR": "40", "R_REFADDR": "37", "R_NREFADDR": "35", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 17.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549883.651250, 6403844.940000 ], [ 1549878.029900, 6403861.890400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280807", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 19.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549883.651250, 6403844.940000 ], [ 1549902.215600, 6403851.322400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760588.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "R", "CHANGED": "0808280808", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "24", "L_NREFADDR": "14", "R_REFADDR": "23", "R_NREFADDR": "15", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 85.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549771.489900, 6403810.460000 ], [ 1549848.872800, 6403847.815200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760588.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "R", "CHANGED": "0808280808", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "24", "L_NREFADDR": "14", "R_REFADDR": "23", "R_NREFADDR": "15", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 32.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549848.872800, 6403847.815200 ], [ 1549878.029900, 6403861.890400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280808", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 16.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549848.872800, 6403847.815200 ], [ 1549858.013750, 6403836.851200 ], [ 1549859.956250, 6403835.057600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280808", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 8.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549859.956250, 6403835.057600 ], [ 1549865.800200, 6403829.660800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280808", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 7.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549859.956250, 6403835.057600 ], [ 1549866.996150, 6403838.471200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760516.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280809", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "12", "L_NREFADDR": "2", "R_REFADDR": "13", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 39.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549867.520100, 6403892.960000 ], [ 1549904.353050, 6403905.936000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760516.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280809", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "12", "L_NREFADDR": "2", "R_REFADDR": "13", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 26.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549904.353050, 6403905.936000 ], [ 1549929.770050, 6403914.890400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760548.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280809", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "12", "L_NREFADDR": "2", "R_REFADDR": "13", "R_NREFADDR": "13", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 43.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549878.029900, 6403861.890400 ], [ 1549916.095200, 6403881.850400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760548.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280809", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "12", "L_NREFADDR": "2", "R_REFADDR": "13", "R_NREFADDR": "13", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 25.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549916.095200, 6403881.850400 ], [ 1549938.960000, 6403893.840000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280809", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 26.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549904.353050, 6403905.936000 ], [ 1549912.608150, 6403888.475200 ], [ 1549916.095200, 6403881.850400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760517.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280811", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "34", "L_NREFADDR": "24", "R_REFADDR": "29", "R_NREFADDR": "19", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 23.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549848.114000, 6403950.774400 ], [ 1549839.739900, 6403972.810400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280811", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 30.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549848.114000, 6403950.774400 ], [ 1549869.289000, 6403957.700800 ], [ 1549866.484800, 6403965.702400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760517.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280812", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "34", "L_NREFADDR": "24", "R_REFADDR": "29", "R_NREFADDR": "19", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 36.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549867.520100, 6403892.960000 ], [ 1549856.605700, 6403927.937600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760517.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280812", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "34", "L_NREFADDR": "24", "R_REFADDR": "29", "R_NREFADDR": "19", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 24.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549856.605700, 6403927.937600 ], [ 1549855.749950, 6403930.680000 ], [ 1549848.114000, 6403950.774400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280812", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 22.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549856.605700, 6403927.937600 ], [ 1549842.391850, 6403922.888000 ], [ 1549839.991550, 6403930.109600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760453.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280813", "USERID": "LO-JKP", "ST_NAME": "NYGATAN", "L_REFADDR": "4", "L_NREFADDR": "2", "R_REFADDR": "5", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 44.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549839.739900, 6403972.810400 ], [ 1549882.122450, 6403986.464000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760453.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280814", "USERID": "LO-JKP", "ST_NAME": "NYGATAN", "L_REFADDR": "4", "L_NREFADDR": "2", "R_REFADDR": "5", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 4.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549882.122450, 6403986.464000 ], [ 1549885.859750, 6403988.054400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760453.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280814", "USERID": "LO-JKP", "ST_NAME": "NYGATAN", "L_REFADDR": "4", "L_NREFADDR": "2", "R_REFADDR": "5", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 15.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549885.859750, 6403988.054400 ], [ 1549900.829950, 6403992.491200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280814", "USERID": "LO-JKP", "ST_NAME": "NYGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 30.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549885.859750, 6403988.054400 ], [ 1549892.433450, 6403972.732800 ], [ 1549900.598950, 6403962.172000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808281227", "USERID": "LO-JKP", "ST_NAME": "S<>DRA VARVSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 43.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549936.717550, 6403775.876000 ], [ 1549969.438000, 6403803.858400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808281227", "USERID": "LO-JKP", "ST_NAME": "S<>DRA VARVSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 13.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549969.438000, 6403803.858400 ], [ 1549982.841250, 6403805.048000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760579.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808281227", "USERID": "LO-JKP", "ST_NAME": "NORRA J<>RNV<4E>GSGATAN", "L_REFADDR": "4", "L_NREFADDR": "2", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 37.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549897.839200, 6403822.604000 ], [ 1549934.253900, 6403832.906400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760579.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808281227", "USERID": "LO-JKP", "ST_NAME": "NORRA J<>RNV<4E>GSGATAN", "L_REFADDR": "4", "L_NREFADDR": "2", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 29.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549934.253900, 6403832.906400 ], [ 1549957.490050, 6403839.480000 ], [ 1549960.410100, 6403843.980000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808281227", "USERID": "LO-JKP", "ST_NAME": "SLOTTSHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 45.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549969.438000, 6403803.858400 ], [ 1549962.209450, 6403808.998400 ], [ 1549954.459400, 6403814.508800 ], [ 1549934.253900, 6403832.906400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547462.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808290805", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "44", "L_NREFADDR": "38", "R_REFADDR": "61", "R_NREFADDR": "53", "SPEED_CAT": "7", "ZIPCODE": "59333", "SHAPE_LEN": 23.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549546.809850, 6403827.740000 ], [ 1549537.632500, 6403849.605600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547462.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808290805", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "44", "L_NREFADDR": "38", "R_REFADDR": "61", "R_NREFADDR": "53", "SPEED_CAT": "7", "ZIPCODE": "59333", "SHAPE_LEN": 70.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549537.632500, 6403849.605600 ], [ 1549533.320150, 6403859.880000 ], [ 1549518.660050, 6403889.780000 ], [ 1549507.790100, 6403903.010400 ], [ 1549501.325600, 6403908.552800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808290805", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59333", "SHAPE_LEN": 46.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549537.632500, 6403849.605600 ], [ 1549561.402400, 6403858.662400 ], [ 1549569.328850, 6403839.652000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760609.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808290829", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "46", "L_NREFADDR": "46", "R_REFADDR": "65", "R_NREFADDR": "63", "SPEED_CAT": "7", "ZIPCODE": "59333", "SHAPE_LEN": 26.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549566.450100, 6403780.090400 ], [ 1549555.974950, 6403804.818400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760609.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808290829", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "46", "L_NREFADDR": "46", "R_REFADDR": "65", "R_NREFADDR": "63", "SPEED_CAT": "7", "ZIPCODE": "59333", "SHAPE_LEN": 24.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549555.974950, 6403804.818400 ], [ 1549546.809850, 6403827.740000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808290829", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59333", "SHAPE_LEN": 37.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549555.974950, 6403804.818400 ], [ 1549577.560500, 6403813.319200 ], [ 1549572.603450, 6403826.820800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760474.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "R", "CHANGED": "0808290830", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "36", "L_NREFADDR": "32", "R_REFADDR": "51", "R_NREFADDR": "49", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 58.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549496.649950, 6403937.400000 ], [ 1549483.100050, 6403973.990400 ], [ 1549475.242550, 6403991.259200 ] ] } }
]
}

View File

@@ -1,9 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!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 Debug Example</title>
<link rel="stylesheet" href="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 type="text/javascript">
@@ -27,7 +29,9 @@
<body>
<h1 id="title">Debug Example</h1>
<div id="tags"></div>
<div id="tags">
debugging, error, fix, fixing, console, firebug, developers, advanced
</div>
<p id="shortdesc">
Demonstrate console calls to a Firebug console. Requires Firefox. Mostly for developers.
@@ -35,16 +39,16 @@
<div id="docs">
<p>To run OpenLayers in debug mode, include the following script
tag <b>before</b> the tag that loads OpenLayers:
tag <b>before</b> the tag that loads OpenLayers:</p>
<pre> &lt;script src="../lib/Firebug/firebug.js"&gt;&lt;/script&gt;</pre>
The path to firebug.js must be relative to your
<p>The path to firebug.js must be relative to your
html file. With this script included calls to OpenLayers.Console
will be displayed in the Firebug console. For browsers without
the Firebug extension, the script creates a Firebug Lite console.
This console can be opened by hitting <b>F12</b> or <b>Ctrl+Shift+L</b>
(<b>?+Shift+L</b> on a Mac). If you want the Firebug Lite console
(<b>Command+Shift+L</b> on a Mac). If you want the Firebug Lite console
to be open when the page loads, add <b>debug="true"</b> to the opening
html tag of your page. Open the console and click on the links below
to see console calls.</p>

View File

@@ -0,0 +1,43 @@
<!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 Document Drag 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 type="text/javascript">
var map, layer;
function init(){
map = new OpenLayers.Map( 'map', {controls: [
new OpenLayers.Control.Navigation({documentDrag: true}),
new OpenLayers.Control.PanZoom(),
new OpenLayers.Control.ArgParser(),
new OpenLayers.Control.Attribution()
]} );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'} );
map.addLayer(layer);
map.zoomToMaxExtent();
}
</script>
</head>
<body onload="init()">
<h1 id="title">OpenLayers Document Drag Example</h1>
<div id="tags">
drag
</div>
<div id="shortdesc">Keep on dragging even when the mouse cursor moves outside of the map</div>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This example shows how to make a map draggable outside of the map itself.</p>
</div>
</body>
</html>

62
examples/donut.html Normal file
View File

@@ -0,0 +1,62 @@
<!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 Polygon Hole Digitizing</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<style>
#controlToggle li {
list-style: none;
}
.olControlAttribution {
font-size: 9px;
bottom: 2px;
}
#output {
margin: 1em;
font-size: 0.9em;
}
</style>
</head>
<body>
<h1 id="title">Drawing Holes in Polygons</h1>
<div id="tags">
draw polygon hole
</div>
<p id="shortdesc">
The DrawFeature control can be used to digitize donut polygons.
</p>
<div id="map" class="smallmap"></div>
<ul id="controlToggle">
<li>
<input type="radio" name="type" value="none" id="noneToggle"
onclick="toggleControl(this);" checked="checked">
<label for="noneToggle">navigate</label>
</li>
<li>
<input type="radio" name="type" value="polygon" id="polygonToggle" onclick="toggleControl(this);">
<label for="polygonToggle">draw polygon</label>
</li>
</ul>
<div id="output"></div>
<div id="docs">
<p>
To digitize holes in polygons, hold down the <code>Alt</code>
key and draw over an existing polygon. By default, the
<code>Shift</code> key triggers freehand drawing. Use a
combination of the <code>Shift</code> and <code>Alt</code> keys
to digitize holes in freehand mode.
</p>
<p>
See the <a href="donut.js" target="_blank">
donut.js source</a> for details on how this is done.
</p>
</div>
<script src="../lib/OpenLayers.js"></script>
<script src="donut.js"></script>
</body>
</html>

44
examples/donut.js Normal file
View File

@@ -0,0 +1,44 @@
// 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;
var map = new OpenLayers.Map({
div: "map",
layers: [
new OpenLayers.Layer.OSM(),
new OpenLayers.Layer.Vector("Vector Layer", {
renderers: renderer
})
],
center: new OpenLayers.LonLat(0, 0),
zoom: 1
});
var draw = new OpenLayers.Control.DrawFeature(
map.layers[1],
OpenLayers.Handler.Polygon,
{handlerOptions: {holeModifier: "altKey"}}
);
map.addControl(draw);
// optionally listen for sketch events on the layer
var output = document.getElementById("output");
function updateOutput(event) {
window.setTimeout(function() {
output.innerHTML = event.type + " " + event.feature.id;
}, 100);
}
map.layers[1].events.on({
sketchmodified: updateOutput,
sketchcomplete: updateOutput
});
// add behavior to UI elements
function toggleControl(element) {
if (element.value === "polygon" && element.checked) {
draw.activate();
} else {
draw.deactivate();
}
}
document.getElementById("noneToggle").checked = true;

View File

@@ -1,32 +0,0 @@
<html>
<head>
<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"></div>
<p id="shortdesc">
Demonstrate the behavior of two calls to set the center after instatiating 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://labs.metacarta.com/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>

View File

@@ -1,9 +1,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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>Drag Feature Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="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">
<style type="text/css">
#controls {
width: 512px;
@@ -21,9 +25,15 @@
function init(){
map = new OpenLayers.Map('map');
var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'});
"http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'});
vectors = new OpenLayers.Layer.Vector("Vector Layer");
// 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;
vectors = new OpenLayers.Layer.Vector("Vector Layer", {
renderers: renderer
});
map.addLayers([wms, vectors]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
@@ -62,7 +72,9 @@
<body onload="init()">
<h1 id="title">Drag Feature Example</h1>
<div id="tags"></div>
<div id="tags">
point, line, linestring, polygon, digitizing, geometry, draw, drag
</div>
<p id="shortdesc">
Demonstrates point, line and polygon creation and editing.

View File

@@ -1,9 +1,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!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>Draw Feature Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="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">
<style type="text/css">
#controlToggle li {
list-style: none;
@@ -11,33 +15,45 @@
p {
width: 512px;
}
/* avoid pink tiles */
.olImageLoadError {
background-color: transparent !important;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, drawControls;
OpenLayers.Util.onImageLoadErrorColor = "transparent";
function init(){
map = new OpenLayers.Map('map');
var wmsLayer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'});
"http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'});
var pointLayer = new OpenLayers.Layer.Vector("Point Layer");
var lineLayer = new OpenLayers.Layer.Vector("Line 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.MousePosition());
var options = {handlerOptions: {freehand: true}};
drawControls = {
point: new OpenLayers.Control.DrawFeature(pointLayer,
OpenLayers.Handler.Point),
line: new OpenLayers.Control.DrawFeature(lineLayer,
OpenLayers.Handler.Path, options),
OpenLayers.Handler.Path),
polygon: new OpenLayers.Control.DrawFeature(polygonLayer,
OpenLayers.Handler.Polygon, options)
OpenLayers.Handler.Polygon),
box: new OpenLayers.Control.DrawFeature(boxLayer,
OpenLayers.Handler.RegularPolygon, {
handlerOptions: {
sides: 4,
irregular: true
}
}
)
};
for(var key in drawControls) {
@@ -59,15 +75,25 @@
}
}
}
function allowPan(element) {
var stop = !element.checked;
for(var key in drawControls) {
drawControls[key].handler.stopDown = stop;
drawControls[key].handler.stopUp = stop;
}
}
</script>
</head>
<body onload="init()">
<h1 id="title">OpenLayers Draw Feature Example</h1>
<div id="tags"></div>
<div id="tags">
point, line, linestring, polygon, box, digitizing, geometry, draw, drag
</div>
<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>
<div id="map" class="smallmap"></div>
@@ -90,14 +116,28 @@
<input type="radio" name="type" value="polygon" id="polygonToggle" onclick="toggleControl(this);" />
<label for="polygonToggle">draw polygon</label>
</li>
<li>
<input type="radio" name="type" value="box" id="boxToggle" onclick="toggleControl(this);" />
<label for="boxToggle">draw box</label>
</li>
<li>
<input type="checkbox" name="allow-pan" value="allow-pan" id="allowPanCheckbox" checked=true onclick="allowPan(this);" />
<label for="allowPanCheckbox">allow pan while drawing</label>
</li>
</ul>
<div id="docs">
<p>Feature digitizing is in freehand mode by default. In freehand mode, the mouse is treated as a pen.
Drawing begins on mouse down, continues with every mouse move, and ends with mouse up.</p>
<p>To turn freehand mode off, hold down the shift key while digitizing. With freehand mode off, one
vertex is added with each click and double-clicks finish drawing. Freehand mode can be toggled on and off
at any time while drawing.</p>
<p>With the point drawing control active, click on the map to add a point.</p>
<p>With the line drawing control active, click on the map to add the points that make up your line.
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
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
usual for that.</p>
<p>Hold down the shift key while drawing to activate freehand mode. While drawing lines or polygons
in freehand mode, hold the mouse down and a point will be added with every mouse movement.<p>
</div>
</body>
</html>

View File

@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers Undo/Redo Drawing Methods</title>
<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="apple-mobile-web-app-capable" content="yes">
<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>
</head>
<body>
<h1 id="title">Undo/Redo Drawing</h1>
<p id="shortdesc">
Demonstrates the use of undo &amp; redo methods while drawing.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
Use <code>Ctrl-Z</code> or <code>⌘-Z</code> to undo while drawing.
Use <code>Ctrl-Y</code> or <code>⌘-Y</code> to redo what you have
undone. Use <code>Esc</code> to cancel the current sketch.
<p>
The <code>control.undo</code> method works on the current
sketch, removing the most recently added point.
The <code>control.redo</code> method adds back items that were
removed from an undo. To fully erase a sketch, call the
<code>control.cancel</code> method.
</p><p>
View the <a href="draw-undo-redo.js" target="_blank">draw-undo-redo.js</a>
source to see how this is done.
</p>
</div>
<script src="draw-undo-redo.js"></script>
</body>
</html>

View File

@@ -0,0 +1,45 @@
var map = new OpenLayers.Map({
div: "map",
layers: [
new OpenLayers.Layer.WMS(
"Global Imagery",
"http://maps.opengeo.org/geowebcache/service/wms",
{layers: "bluemarble"},
{tileOrigin: new OpenLayers.LonLat(-180, -90)}
),
new OpenLayers.Layer.Vector()
],
center: new OpenLayers.LonLat(0, 0),
zoom: 1
});
var draw = new OpenLayers.Control.DrawFeature(
map.layers[1], OpenLayers.Handler.Path
);
map.addControl(draw);
draw.activate();
OpenLayers.Event.observe(document, "keydown", function(evt) {
var handled = false;
switch (evt.keyCode) {
case 90: // z
if (evt.metaKey || evt.ctrlKey) {
draw.undo();
handled = true;
}
break;
case 89: // y
if (evt.metaKey || evt.ctrlKey) {
draw.redo();
handled = true;
}
break;
case 27: // esc
draw.cancel();
handled = true;
break;
}
if (handled) {
OpenLayers.Event.stop(evt);
}
});

View File

@@ -0,0 +1,101 @@
<!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 Vector Behavior 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 type="text/javascript">
var map;
function init(){
map = new OpenLayers.Map('map');
var wms = new OpenLayers.Layer.WMS(
"OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'}
);
var layer = new OpenLayers.Layer.Vector("POIs", {
strategies: [new OpenLayers.Strategy.BBOX({resFactor: 1.1})],
protocol: new OpenLayers.Protocol.HTTP({
url: "textfile.txt",
format: new OpenLayers.Format.Text()
})
});
map.addLayers([wms, layer]);
map.zoomToMaxExtent();
// Interaction; not needed for initial display.
selectControl = new OpenLayers.Control.SelectFeature(layer);
map.addControl(selectControl);
selectControl.activate();
layer.events.on({
'featureselected': onFeatureSelect,
'featureunselected': onFeatureUnselect
});
}
// Needed only for interaction, not for the display.
function onPopupClose(evt) {
// 'this' is the popup.
var feature = this.feature;
if (feature.layer) { // The feature is not destroyed
selectControl.unselect(feature);
} else { // After "moveend" or "refresh" events on POIs layer all
// features have been destroyed by the Strategy.BBOX
this.destroy();
}
}
function onFeatureSelect(evt) {
feature = evt.feature;
popup = new OpenLayers.Popup.FramedCloud("featurePopup",
feature.geometry.getBounds().getCenterLonLat(),
new OpenLayers.Size(100,100),
"<h2>"+feature.attributes.title + "</h2>" +
feature.attributes.description,
null, true, onPopupClose);
feature.popup = popup;
popup.feature = feature;
map.addPopup(popup, true);
}
function onFeatureUnselect(evt) {
feature = evt.feature;
if (feature.popup) {
popup.feature = null;
map.removePopup(feature.popup);
feature.popup.destroy();
feature.popup = null;
}
}
</script>
</head>
<body onload="init()">
<h1 id="title">Dynamic POIs via a Text Layer</h1>
<div id="tags">
poi, dynamic data, text, format, strategy, popup, select, selection
</div>
<p id="shortdesc">
Loading dynamic data from a text file.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>The vector layer shown uses the BBOX strategy, the HTTP protocol,
and the Text format.
This setup appends "?bbox=west,south,east,north" to every
request. This allows you to configure the location as something
like 'textfile.php', and take the '?bbox=' parameter to select
data from a database or the like.</p>
<p>There is nothing about this example that limits it to text files;
you can do the same thing with KML, GeoJSON, etc.</p>
<p>This is an alternative to something like the <a href="http://wiki.openstreetmap.org/index.php/OpenLayers_Dynamic_POI">OpenStreetMap "Dynamic POI"</a> example. The Layer is a standard vector layer, and interaction can be
configured via the SelectFeature control, as you can see in the
latter half of the code, which allows you to open a popup when
a feature is selected.</p>
</div>
</body>
</html>

View File

@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers Editing Methods</title>
<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="apple-mobile-web-app-capable" content="yes">
<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>
</head>
<body>
<h1 id="title">Editing Methods</h1>
<p id="shortdesc">
Demonstrates the use of editing methods for manipulating geometries
while drawing.
</p>
<div id="map" class="smallmap"></div>
<ul id="methods">
<li><a href="#" id="insertXY">insert x,y</a></li>
<li><a href="#" id="insertDeltaXY">insert dx,dy</a></li>
<li><a href="#" id="insertDirectionLength">insert direction/length</a></li>
<li><a href="#" id="insertDeflectionLength">insert deflection/length</a></li>
<li><a href="#" id="finishSketch">finish sketch</a></li>
<li><a href="#" id="cancel">cancel sketch</a></li>
</ul>
<div id="docs">
<p>
The <code>control.insertXY</code> method inserts a point at the given
map coordinates (x, y) immediately prior to the most recent point
(under the mouse).
The <code>control.insertDeltaXY</code> method inserts a point at
the given offset values (dx, dy) from the previously added point.
The <code>control.insertDirectionLength</code> method inserts a
point at offset direction and length from the previously added point.
Direction is measured counter-clockwise from the positive x-axis.
The <code>control.insertDeflectionLength</code> method inserts a
point at offset deflection and length from the previously added point.
Deflection is measured counter-clockwise from the previous line
segment.
The <code>control.finishSketch</code> method completes the current
sketch without adding the point under the user's mouse. This
allows a sketch to be finished without a double-click.
The <code>control.cancel</code> method discards the current
sketch and leaves the control active.
The <code>control.insertXY</code> method may be called before
any points are digitized manually. The other methods have no
effect until at least one point has been added to the sketch.
</p><p>
View the <a href="editing-methods.js" target="_blank">editing-methods.js</a>
source to see how this is done.
</p>
</div>
<script src="editing-methods.js"></script>
</body>
</html>

View File

@@ -0,0 +1,83 @@
var map = new OpenLayers.Map({
div: "map",
layers: [
new OpenLayers.Layer.WMS(
"Global Imagery",
"http://maps.opengeo.org/geowebcache/service/wms",
{layers: "bluemarble"},
{tileOrigin: new OpenLayers.LonLat(-180, -90)}
),
new OpenLayers.Layer.Vector()
],
center: new OpenLayers.LonLat(0, 0),
zoom: 1
});
var draw = new OpenLayers.Control.DrawFeature(
map.layers[1], OpenLayers.Handler.Path
);
map.addControl(draw);
draw.activate();
// handle clicks on method links
$("insertXY").onclick = function() {
var values = parseInput(
window.prompt(
"Enter map coordinates for new point (e.g. '-111, 46')", "x, y"
)
);
if (values != null) {
draw.insertXY(values[0], values[1]);
}
};
$("insertDeltaXY").onclick = function() {
var values = parseInput(
window.prompt(
"Enter offset values for new point (e.g. '15, -10')", "dx, dy"
)
);
if (values != null) {
draw.insertDeltaXY(values[0], values[1]);
}
};
$("insertDirectionLength").onclick = function() {
var values = parseInput(
window.prompt(
"Enter direction and length offset values for new point (e.g. '-45, 10')", "direction, length"
)
);
if (values != null) {
draw.insertDirectionLength(values[0], values[1]);
}
};
$("insertDeflectionLength").onclick = function() {
var values = parseInput(
window.prompt(
"Enter deflection and length offset values for new point (e.g. '15, 20')", "deflection, length"
)
);
if (values != null) {
draw.insertDeflectionLength(values[0], values[1]);
}
};
$("cancel").onclick = function() {
draw.cancel();
};
$("finishSketch").onclick = function() {
draw.finishSketch();
};
function parseInput(text) {
var values = text.split(",");
if (values.length !== 2) {
values = null;
} else {
values[0] = parseFloat(values[0]);
values[1] = parseFloat(values[1]);
if (isNaN(values[0]) || isNaN(values[1])) {
window.alert("The two values must be numeric.");
values = null;
}
}
return values;
}

View File

@@ -1,14 +1,16 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<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: Custom Editing Toolbar</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">
.olControlEditingToolbar {
float:left;
right: 0px;
height: 30px;
width: 150px;
width: 116px;
}
</style>
<script src="../lib/Firebug/firebug.js"></script>
@@ -23,7 +25,7 @@
map = new OpenLayers.Map('map', {theme: null});
layer = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
"http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: "basic"}
);
map.addLayer(layer);
@@ -42,6 +44,9 @@
</head>
<body onload="init()">
<h1 id="title">OpenLayers EditingToolbar Outside Viewport</h1>
<div id="tags">
digitizing, point, line, linestring, polygon, editing, positioning, style
</div>
<p id="shortdesc">
Display an editing toolbar panel outside the map viewport.
</p>

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