Compare commits

..

2247 Commits

Author SHA1 Message Date
Bart van den Eijnden c8d4105d23 set VERSION_NUMBER to 2.13 final 2013-06-17 14:03:59 +02:00
Bart van den Eijnden d60d1e5789 update version number to rc7 2013-06-07 10:53:30 +02:00
Bart van den Eijnden afaee6880d Merge pull request #1003 from openlayers/notilemgrtest
Whenever we run tests *with* the tileManager, we cannot inspect any grid...(r=@ahocevar)
2013-06-07 10:51:48 +02:00
ahocevar cc69b73dcf Revert "Merge pull request #708 from mpriour/displayEvent"
This reverts commit 0b3f582e10, reversing
changes made to 74103ec3e0.

The reason for reverting this is a regression. See #997.
2013-06-07 10:51:13 +02:00
ahocevar fe0ffbf56e Fixing dependencies
This avoids undefined this.tileManager.addMap, and re-adds the TileManager
to the mobile build profile.
2013-06-07 09:08:54 +02:00
ahocevar f4f72d5eeb TileManager dependency management
If the build does not contain TileManager.js, do not create a TileManager
instance for the map. If the build does not contain Layer/Grid.js, do not
try to add Grid layer instances to the list of layers managed by the
TileManager.
2013-06-07 09:08:30 +02:00
Bart van den Eijnden 1c21d9cc15 Merge pull request #998 from bartvde/tilemgrdefault
enable TileManager by default as suggested by @marcjansen and @bartvde ... (r=@ahocevar)
2013-06-06 14:18:18 +02:00
ahocevar 4d52d4aeb5 Drag interval of 0 (i.e. no separate cycle) seems appropriate now
The reason for setting this to 1 was ancient IPhones with ancient iOS
versions. On all other devices, 0 seems to work better, and it removes the
overhead of spawning a separate cycle for each drag.
2013-06-06 13:38:13 +02:00
Bart van den Eijnden 1e94821042 set VERSION_NUMBER to 2.13-rc6 2013-06-06 09:19:42 +02:00
ahocevar 8cccbfb189 Protect ZoomBox from division by zero
When the map is at the highest zoom level, the old and the current
resolution will be the same. This would cause a division by zero, which
the JavaScript engine does not recognize as such. So we have to protect
zoomOriginPx from becoming {x: Infinity, y: Infinity}.
2013-06-06 09:18:35 +02:00
Bart van den Eijnden 1cf69634cf update VERSION_NUMBER to 2.13-rc5 2013-05-30 15:41:00 +02:00
ahocevar c2b7e8b327 Merge pull request #987 from ahocevar/google-orphaned
Vector layer duplicates when changeing to google base layer. r=@bartvde
2013-05-30 15:37:35 +02:00
ahocevar fe0620dc7f Merge pull request #174 from ahocevar/feature-events
Turning @tschaub's FeatureAgent into an event extension. r=@bartvde
2013-05-30 15:33:24 +02:00
Bart van den Eijnden 8778b746b3 update VERSION_NUMBER to 2.13-rc4 2013-05-24 12:09:53 +02:00
ahocevar a5ea8d7fcf Fixing tests
Selecting the same feature again should not do anything, which was ensured
in the old implementation by a check in the SelectFeature control. This
means that the previous commit causes a change in behavior in standalone
mode, which I would consider a bugfix. I documented this change in the
release notes.
2013-05-24 12:07:49 +02:00
ahocevar b103d3b428 We don't want to re-select an already selected feature 2013-05-24 12:07:35 +02:00
ahocevar 8562582dd2 Avoiding duplicate events 2013-05-24 12:07:22 +02:00
ahocevar cd5ae45273 Do not manage cache when cached tile is on target layer's backbuffer 2013-05-24 12:06:58 +02:00
Tobias Bieniek d1b00824fc Format/EncodedPolyline: Change default factor to 1e5
This matches the factors in the other methods and the default of the
original algorithm. Having this set at 1 before can be considered
as a bug.
2013-05-24 12:06:39 +02:00
Tobias Bieniek 4399ebcb04 Format/EncodedPolyline: Added opt_factor parameter to encode/decode() 2013-05-24 12:06:25 +02:00
Tobias Bieniek 0bb804c9e7 tests/EncodedPolyline: Fixed indent 2013-05-24 12:06:12 +02:00
Bart van den Eijnden 572d78fb4d set version number to 2.13-rc3 2013-05-17 13:16:49 +02:00
ahocevar 1d948fc914 Make sure that drawTilesFromQueue gets executed
For events other than move, the tile queue may not be populated yet when
updateTimeout is called. So instead of checking for the queue's length,
we register the timer unconditionally in these cases.
2013-05-17 13:15:01 +02:00
ahocevar 449b85966e .olTileReplacing is on the parent of .olTileImage when using frame 2013-05-17 13:14:36 +02:00
ahocevar 1223ea339d Use getTile() instead of imgDiv to get the correct element
The correct way to get the markup of a tile is to use getTile() - the
imgDiv will only be available if the tile does not use a frame.
2013-05-17 13:14:16 +02:00
Bart van den Eijnden d0f8fa3ecf set version number to RC2 2013-05-13 13:25:03 +02:00
Éric Lemoine e9a349e4f1 Make feature handler propagate touch events
This commit is a follow-up on issue #294 (commit a6119f6) and #861 (commit c7a4045). The feature handler should not stop the bubbling up of browser events. In this particular case, when the feature handler is activate, Sencha Touch will trigger longpress events when panning the map because the feature handler stops touchmove.
2013-05-13 13:17:02 +02:00
ahocevar 8b4592e71a We are dealing with strings for comparison
Because OpenLayers.Util.getParameters turns comma delimited values into
arrays, comparing e.g. bbox values in urls will return false. By
introducing a splitArgs option, we can use getParameters in a way that
leaves such values as strings and makes them comparable in
OpenLayers.Util.isEquivalentUrl.
2013-05-13 13:01:21 +02:00
iacovlev-pavel 7c5afe1acf Add OpenLayers/Control.js to "requires"
Fix issue #969
2013-05-13 13:01:21 +02:00
Bart van den Eijnden c0ccf6a8f0 set VERSION_NUMBER 2013-05-06 17:11:59 +02:00
ahocevar 80482acdad Merge pull request #962 from ahocevar/tilequeue-throttling
Bring back throttling for tile loading. r=@bartvde
2013-05-06 07:31:24 -07:00
Tim Schaub 90535134d4 Spelling
See https://github.com/openlayers/openlayers/commit/44a2b50455b55949b14f756035a82a575bd3dd1a#commitcomment-3123666
2013-05-01 09:26:55 -06:00
Marc Jansen 989464cd93 Minor formatting changes. 2013-05-01 17:51:27 +03:00
ahocevar 1aabcde0a6 Merge pull request #827 from geops/fixed-strategy
Improved Fixed Strategy
2013-04-30 09:21:27 -07:00
ahocevar 70bfba3011 Fixing typo 2013-04-30 15:45:26 +03:00
friedjoff 54655c7fca Merge branch 'master' into fixed-strategy 2013-04-30 12:44:17 +02:00
ahocevar 779c97f43e Using no buffer by default, because it makes no sense with TileManager
And while we're at it, simplify the example to use the OSM layer and the
new default for transitionEffect.
2013-04-29 14:50:43 +02:00
ahocevar 48efd43250 Bring back throttling for tile loading
In OpenLayers 2.12, only one tile was loaded per animation frame. This
change brings back something similar as part of the tile manager. But we
do not use requestAnimationFrame anymore, because @elemoine pointed out
that browsers may give requestAnimationFrame invoked functions a higher
priority than setTimeout invoked functions.

The reason for this change is
http://lists.osgeo.org/pipermail/openlayers-users/2013-April/028063.html.
2013-04-29 14:20:18 +02:00
ahocevar 142546c6d5 Merge pull request #961 from ahocevar/modifyfeature-layerorder
Regression: ModifyFeature control  not act if layer is not on top. r=@jorix
2013-04-29 04:25:59 -07:00
ahocevar 9d6ce21109 Raise layer that's being modified 2013-04-27 21:46:22 +02:00
Marc Jansen f3c0348567 Merge pull request #543 from jorix/no-manual-tests2
Can test some manual tests as normal tests.
2013-04-26 00:32:48 -07:00
Bart van den Eijnden ec4d3a48d7 Merge pull request #224 from jorix/3402-touch_logic_to_superclass
Move some touch logic to the `handler` base class
2013-04-25 07:42:39 -07:00
Xavier Mamano 5ecc54a689 Take into account the comments of bartvde 2013-04-25 16:25:56 +02:00
Frédéric Junod 7beb33f99e Merge pull request #357 from fredj/deprecated
mv AnchoredBubble to deprecated.js, rm LayerSwitcher.roundedCorner. r=bartvde
2013-04-25 01:41:08 -07:00
Frederic Junod 96fc2d71e3 Remove Rico/*.js from debug loader. 2013-04-25 10:26:58 +02:00
Frederic Junod 5ed18a9708 Remove deprecated roundedCorner option from LayerSwitcher control. 2013-04-25 10:26:58 +02:00
Frederic Junod 5a3c06aa7e Move OpenLayers.Popup.AnchoredBubble to deprecated.js 2013-04-25 10:25:03 +02:00
ahocevar 27ccd3cbaa Completing mock for 2D transforms (see #950) 2013-04-24 22:03:37 +02:00
Xavier Mamano 43a8821ce6 Can test some manual tests as normal tests. 2013-04-24 17:21:25 +02:00
ahocevar 6af9f5f3d3 Merge pull request #954 from ahocevar/url-compare
URL comparison fails in IE8. r=@bartvde
2013-04-24 07:36:44 -07:00
ahocevar 2782fa47c8 URL comparison fails in IE8
The W3C standard says that setAttribute/getAttribute on any DOM element is
a simple setter/getter thing. IE8 tries to be smarter and returns the full
URL when calling getAttribute('src') on an image instead of the one that
was set with setAttribute('src').

This change makes sure that urls are compared properly, also in IE8.
2013-04-24 15:41:04 +02:00
ahocevar 11977f57a3 Making pagePosition test work in IE8 2013-04-24 14:31:33 +02:00
ahocevar 9f53506754 Tile bounds changed with #517 to remove white lines between tiles 2013-04-24 14:15:12 +02:00
ahocevar acc497bf3c Making TouchNavigation tests work in Firefox 2013-04-24 01:01:56 +02:00
Marc Jansen 3ef69b967d Merge pull request #631 from jorix/format_undefined
Avoid breaking the "OpenLayers.String.format" execution
2013-04-23 13:54:15 -07:00
ahocevar 11a187ffaf Merge pull request #849 from luizvital/master
Change language code from 'pt-br' to 'pt-BR'
2013-04-23 12:59:26 -07:00
ahocevar e0f0744500 Merge pull request #946 from Turbo87/uglify
build: Added "uglify-js" as optional compressor
2013-04-23 12:55:15 -07:00
Bart van den Eijnden 872502311f remove trailing comma from cluster strategy tests (see #950) 2013-04-23 15:36:52 +02:00
Bart van den Eijnden d63055f28c remove trailing comma from PanZoomBar tests (see #950) 2013-04-23 15:25:06 +02:00
ahocevar 60a966714d Hack for making page position calculations work
Many browsers do very limited rendering/reflow on hidden IFrames. By making
the test IFrame visible, we get everything rendered like a real page. This
is a partial fix for #947.
2013-04-23 14:22:59 +02:00
Bart van den Eijnden 415265db40 protect 2 Google test cases for validkey 2013-04-23 13:28:39 +02:00
Bart van den Eijnden 2613ccb504 fix WMSDescribeLayer format exception test case in IE9 and IE10 (see #948) 2013-04-23 13:17:53 +02:00
Bart van den Eijnden 7cb99834e3 fix opacity tests in IE10 (see #948) 2013-04-23 13:02:29 +02:00
ahocevar 2e88ca6905 Use other edge and outside coordinates
This avoids a failing test due to anti-aliasing artifacts in Safari.
2013-04-23 12:40:15 +02:00
ahocevar 7cb38f69d5 Merge pull request #780 from ahocevar/ms-pointer-events
Touch Navigation doesn't work in Internet Explorer 10. r=@bartvde,@gregersrygg,@mpriour
2013-04-23 01:46:10 -07:00
ahocevar aa2345693a Addressing @bartvde's review comments 2013-04-23 10:45:08 +02:00
Tobias Bieniek 444d9a06ae build: Added "uglify-js" as optional compressor 2013-04-22 23:11:57 +02:00
ahocevar 1bdfb492d5 Merge pull request #944 from Karamell/labelOutlineOpacity2
added a labelOutlineOpacity attribute to SVG and Canvas Renderers.
2013-04-22 00:53:30 -07:00
Karamell 76efa60888 added a labelOutlineOpacity attribute to SVG and Canvas Renderers. 2013-04-21 11:04:06 +02:00
ahocevar 87d8b6003d Merge pull request #927 from adv-isu/HandlerPathUndoTouchFix2
Improved touch support for Handler.Path.undo
2013-04-20 02:32:31 -07:00
ahocevar f4725c48ce Merge pull request #937 from Turbo87/layer-switcher
LayerSwitcher: Simplified checkRedraw() method
2013-04-20 02:20:26 -07:00
ahocevar 6fb10d6e0a Re-ordering topics in the release notes 2013-04-20 11:08:43 +02:00
ahocevar 44a2b50455 Release notes for GPU, animated zoom and ModifyFeature control 2013-04-20 11:03:46 +02:00
ahocevar 010035e047 New example showing how to switch projections 2013-04-18 16:54:37 +02:00
Tobias Bieniek ae8a04c601 LayerSwitcher: Simplified checkRedraw() method 2013-04-17 00:00:36 +02:00
ahocevar 111821e86d Making buttons work
Thanks @gregersrygg for testing. With this change, zoom and other buttons
(e.g. editing toolbar) work in touch mode.
2013-04-16 16:44:02 +02:00
ahocevar 9cdc991b8c Attempt to handle IE >= 10 pointer events
Using the same technique as Leaflet, this relays MSPointer events to touch
events. Using the simulator, I can verify that even pinch-zoom works with
this change, but the visual experience is a bit jumpy. Would be great if
people could test this on physical touch devices and see how it looks/feels
there.
2013-04-16 11:18:17 +02:00
ahocevar 80a6185947 Yet another documentation improvement for #932.
Now it should be clear that the map's changelayer event is triggered
whenever the layer's actual visibility (i.e. visible to the user) changes.
2013-04-10 10:21:28 +02:00
ahocevar 92ac9680d8 Another documentation improvement for #932. 2013-04-10 10:21:28 +02:00
ahocevar f22937b2ae Documentation improvement (fixes #932) 2013-04-10 10:21:28 +02:00
ahocevar 5deb2c6280 Merge pull request #931 from ahocevar/beforefeaturemodified
Also trigger beforefeaturemodified event in non-standalone mode. r=@bartvde
2013-04-10 01:12:29 -07:00
ahocevar e5dc583d52 Also trigger beforefeaturemodified event in non-standalone mode
d2a32d5 accidently changed the number of assertions in the
test_selectFeature function, so the change in behavior that no
beforefeaturemodified event is called any more in non-standalone mode got
unnoticed: Before unhacking ModifyFeature, the SelectFeature control
called the beforeSelectFeature method directly. Now, without a built-in
SelectFeature control, we need to call it from the selectFeature method in
both standalone and non-standalone mode.
2013-04-09 23:16:30 +02:00
Tim Schaub e1dea2d8e1 Merge pull request #532 from adv-isu/WKTrequires
Format/WKT.js: add @requires for geometry types
2013-04-04 10:13:25 -07:00
Andrew Vardeman 62cb6d62f6 Explicitly require the various Geometry types, as in GML.js, so listing OpenLayers/Format/WKT.js in a build config file is sufficient to build in these types. 2013-04-04 11:37:19 -05:00
Andrew Vardeman 7ff0247b00 Account for the fact that touch devices have no mouse and therefore no last mouse position. When "undo" is invoked in a mobile app, sync the meaningless last-mouse-position point to the last point in the digitized linestring so there is visible feedback that something has been undone. Otherwise the last-mouse-position point is left at the point of the last tap on the map, which is unfortunately the location of the vertex that has just been undone, incorrectly implying that the vertex is still there. 2013-04-04 11:03:13 -05:00
ahocevar d3f32c4dea Merge pull request #925 from ahocevar/google-container
Google Maps rendering bug on fresh reload. r=@kevbradwick (fix #925)
2013-04-04 03:36:58 -07:00
ahocevar f0ef4728d8 Simplifying layer visibility handling
Instead of adding and removing the Google container, we just toggle
style.display. This also removes the unused rendered and displayed
properties of the cache.
2013-04-04 11:40:21 +02:00
Marc Jansen aaabdbc803 Merge pull request #461 from tschaub/ie9-leaks
OpenLayers-2.12-rc2 + jQuery-1.7.2 Memory leak in Internet Explorer 9 (p=@tschaub,r=@marcjansen,@elemoine)
2013-04-03 02:43:48 -07:00
Marc Jansen 93e800a9bd Merge pull request #919 from IJMacD/patch-1
Fix imageryProviders Bug (p=@IJMacD,r=@marcjansen)
2013-03-28 10:26:56 -07:00
Pierre GIRAUD 27233df5c7 Merge pull request #908 from pgiraud/GPX
Remove prefix 'gpx:' to node tags. Most of the GPX tools don't support it.
2013-03-28 06:04:51 -07:00
Pierre GIRAUD f562b2a02c Adding a note for 2.13 about changes made to GPX format 2013-03-28 13:55:37 +01:00
Pierre GIRAUD 9f6b803afa Don't add prefix 'gpx:' to node tags. Most of the GPX tools don't support it. 2013-03-28 13:55:37 +01:00
ahocevar c62ffb29b8 Merge pull request #922 from ahocevar/backbuffer-zindex
Configurable backbuffer order. r=@bartvde
2013-03-27 13:13:36 -07:00
ahocevar bc5054399c Typo in API docs; use "map-resize" option in example 2013-03-27 21:11:15 +01:00
ahocevar 434178ef49 Making backbuffer order configurable
In OpenLayers 2.12, the backbuffer for each layer was placed right below
the layer itself. With animated zooming, that was changed so backbuffers
are all placed below the base layer. As it turned out, this is only good
for certain kinds of layers (e.g. street labels), so the default now is
to place the backbuffer right below its layer again. But the
transitionEffect option can now have a new value, 'map-resize', which will
cause the backbuffer to be placed below the base layer.
2013-03-27 17:46:36 +01:00
Frédéric Junod 30a4069e8a Merge pull request #921 from gravitystorm/patch-5
Fix UTFGrid isBaseLayer documentation
2013-03-27 08:23:51 -07:00
ahocevar fe172ccf6e Backbuffer needs z-index
Since we don't rely on the DOM order for layers, we also cannot rely on it
for backbuffers. This change simply adds a sensible z-index to the
backbuffer container.
2013-03-27 16:19:58 +01:00
Andy Allan c23b09d72a Fix isBaseLayer documentation
Ensure the documentation matches the code with regards to the default value, and make the explanation slightly clearer as to why it defaults to false.
2013-03-27 14:58:34 +00:00
ahocevar 246d2d99d3 Merge pull request #920 from ahocevar/backbuffer-conditional
Backbuffer and transitionend only when there are tiles. r=@bartvde
2013-03-27 07:14:51 -07:00
ahocevar 316c1888d2 Use the last child of the container only if loading was aborted
Otherwise we may pick a tile that is already half way through the
transition, which will cause the backbuffer to go away too early.
2013-03-26 14:48:23 +01:00
Bart van den Eijnden e6dafa5d01 add default value for ratio to the api docs 2013-03-26 13:13:35 +01:00
ahocevar 7f18a7b3df Backbuffer and transitionend only when there are tiles
When an application zooms the map programmatically right after
initialization, there will be an empty backbuffer. This should be avoided,
because it adds an unnecessary DOM element.

The tile.onLoadEnd handler registers a transitionend listener on the image
of the last loaded tile. But if loading was aborted, there will be no
image. The new logic registers the transitionend event on the last child
of the layer div, which is not necessarily the tile we're handling loadend
for. When the backbuffer is empty (i.e. no tile was loaded at the time the
backbuffer was created), it will be removed immediately.
2013-03-26 11:53:27 +01:00
ahocevar 63ea10a916 Merge pull request #917 from Turbo87/segment-distance
Geometry: Added distanceSquaredToSegment() function
2013-03-25 12:30:05 -07:00
Tobias Bieniek 6b79391b5e Geometry: Added "along" to the API documentation 2013-03-25 19:10:50 +01:00
Iain MacDonald 847584bbbd Fix imageryProviders Bug
Sometimes imageryProviders is null so accessing providers.length on
line 255 causes a TypeError.
2013-03-25 16:16:55 +00:00
ahocevar cae4df3ce7 Merge pull request #916 from Turbo87/bounds
Added extendXY() method to Bounds class
2013-03-25 05:17:49 -07:00
Tobias Bieniek 29976ba98a Geometry: Added distanceSquaredToSegment() function 2013-03-23 16:56:32 +01:00
Tobias Bieniek 04d3c6ce53 Geometry: Added along attribute to distanceToSegment() function 2013-03-23 16:49:30 +01:00
Tobias Bieniek 467bf66163 Bounds: Simplified extend() method
.. by using the new extendXY() method if the given object is LonLat or a
Point.
2013-03-23 11:49:17 +01:00
Tobias Bieniek b3ce8d556a Bounds: Added extendXY() method
This is a simpler variant of the extend() method, but with less overhead.
2013-03-23 11:41:58 +01:00
Tobias Bieniek afd0388f87 Bounds: Fixed comment location 2013-03-23 11:33:21 +01:00
Tobias Bieniek d65f604b25 tests/Bounds: Fixed indentation and whitespace 2013-03-23 11:33:17 +01:00
Tobias Bieniek 03735b74ab tests/Bounds: Fixed typos 2013-03-23 11:29:11 +01:00
ahocevar 9a06ec47f6 Merge pull request #914 from Turbo87/encoded-polyline
EncodedPolyline: Backported ol3 polyline parser library
2013-03-22 06:12:52 -07:00
Tobias Bieniek 17e972de3d EncodedPolyline: Backported ol3 polyline parser library
The ol3 version of the library is more advanced and complete. It can also
parse into flat array. It can handle unsigned integers, signed integers
and floats.
2013-03-20 20:56:47 +01:00
ahocevar 410a88c674 Thicker strokes make it easier to select line segments 2013-03-20 10:30:05 +01:00
ahocevar b0bc72fa7f Merge pull request #913 from ahocevar/modify-feature
Simplifying and unhacking the ModifyFeature control. r=@bartvde
2013-03-20 02:23:42 -07:00
ahocevar 6fca6aef60 Addressing @bartvde's review comments 2013-03-20 10:23:00 +01:00
Pierre GIRAUD 15800c01ad Merge pull request #730 from pgiraud/wmts
don't try to update the matrix in setMap since it's too early and done l...
2013-03-20 00:48:41 -07:00
ahocevar bed011514f Increasing point radius for easier touch selection 2013-03-20 05:12:35 +01:00
ahocevar d2a32d5421 Simplifying and unhacking the ModifyFeature control
With two nested controls (DragFeature, SelectFeature), which - among
others - activated two OpenLayers.Handler.Feature instances, the
ModifyFeature control was fragile and hard to debug.

The issue that @iwillig, @bartvde and myself tried to track down was
that the two Feature handlers interfered with each other, making it hard
to select features on mobile devices, and causing points to jump during
dragging because of not updated last pixel positions.

With this refactoring, there are no more nested controls. All that's left
is a Drag handler. All tests pass. I had to remove one test that checked
for dragging of an unselected point while another was selected, because
now (and partially even before this change, thanks to the ugly drag
handler hack that is now removed) dragging a point will also select it,
saving the user an extra click.
2013-03-19 23:00:10 +01:00
ahocevar 7002ec49e7 Merge pull request #903 from ahocevar/903
Google Maps and WMS layer Backbuffer error. r=@mosesonline
2013-03-19 14:38:46 -07:00
ahocevar 3dea8dacb4 Using the correct parent node
When we have a Google base layer, the parent node of the base layer's div
will be a different one.
2013-03-13 08:06:41 +01:00
ahocevar 5b98769234 Merge pull request #896 from mosesonline/refresh-bugfix
Refresh bugfix
2013-03-01 07:02:35 -08:00
mosesonline 05227d32d0 [New] Tests for deactivation of refresh strategy 2013-03-01 12:52:18 +01:00
mosesonline e1e11ab9c6 [BugFix] visibilitychanged listener is not unregistered on deactivation of Strategy/Refresh. 2013-03-01 12:44:29 +01:00
Tim Schaub a1bf41a4de Merge pull request #886 from rauldobrota/patch-1
Create ro.js
2013-02-26 10:37:18 -08:00
Tim Schaub 7c10331a92 Merge pull request #890 from tschaub/utfgrid-backbuffer
Override createBackBuffer in UTFGrid layer.
2013-02-21 14:50:27 -08:00
Tim Schaub 7c4df5186f Test clean up 2013-02-21 12:19:34 -07:00
Tim Schaub 461c5c4328 Test that createBackBuffer doesn't fail 2013-02-21 12:17:55 -07:00
Tim Schaub 8e555dee56 Overriding createBackBuffer in UTFGrid layer
This layer doesn't need to create a backbuffer.
2013-02-21 12:12:12 -07:00
Tim Schaub f1a79135b4 Chasing tiles 2013-02-21 11:31:41 -07:00
Tim Schaub 22db2a9f61 Update MapQuest tile URL templates 2013-02-20 13:33:04 -07:00
rauldobrota 007368fce5 Create ro.js
Language support for romanian users.
2013-02-18 23:39:56 -08:00
ahocevar 2f85ca99bf Remove osm layer when back in Vienna
Thanks @tschaub for this suggestion.
2013-02-17 12:53:59 +01:00
ahocevar 419cb272c7 Adding ZoomBox and OSM fallback layer
Using the new defaults, we don't need to pass options to the Navigation
control anymore. As a side effect, we get ZoomBox, but need to add css for
it to work properly. For users outside Vienna, an OSM fallback layer was
added which gets activated when the viewport does not intersect Vienna.
2013-02-16 10:32:35 +01:00
Tim Schaub efdba65e0a Merge pull request #883 from tschaub/nicer-defaults
Setting `transitionEffect: "resize"` by default for `OpenLayers.Layer.Grid`.  Setting `enableKinetic: true` for `OpenLayers.Control.DragPan`.
2013-02-15 13:34:48 -08:00
Tim Schaub fdb954100e Merge pull request #882 from tschaub/zoom-box
Restored zoom box behavior (thanks @ahocevar for the review).
2013-02-14 14:48:27 -08:00
Tim Schaub a2896beafd As the comments mention, this assumes null transitionEffect 2013-02-14 15:26:05 -07:00
Tim Schaub 0cf9833362 Resize transitions by default 2013-02-14 15:18:07 -07:00
Tim Schaub 891cd35f60 Kinetic dragging by default 2013-02-14 15:17:55 -07:00
Tim Schaub 399c8ff643 Correct calculation of anchor for zooming
Quick explanation:

Let targetCenterPx be described by PX and PY.  Let oldRes and newRes be R0 and R1 respectively.  Let centerPx (center after zoom) be described by CX and CY.  And assume there is some anchored pixel point out there that represents the same map location before and after zoom.  Let this be the origin OX and OY.

We want to recenter the map on the provided box.  This means the map distance between the origin and box center at R0 is the same as the map distance between the origin and the map center at R1.

That is,

    R0 * (OX - PX) = R1 * (OX - CX), and
    R1 * (OY - PY) = R1 * (OY - CY)

Or, solving for OX and OY:

    OX = (R0 * PX - R1 * CX) / (R0 - R1), and
    OY = (R0 * PY - R1 * CY) / (R0 - R1)
2013-02-14 14:38:35 -07:00
Tim Schaub 1ac16835f2 If we are getting flipped top/bottom, let's correct it at the source 2013-02-14 14:27:00 -07:00
Tim Schaub 30c82bad45 For pixel bounds, the bottom is a larger value than the top
This still doesn't address the broken ZoomBox test (see #800), it fails in the same way with or without this change.
2013-02-14 14:25:01 -07:00
Tim Schaub d32ab41292 Correcting misinformation 2013-02-14 14:25:01 -07:00
ahocevar ba0ba64c74 Updating PinchZoom tests (see #800)
With the map's applyTransform method, the control does not need and have
its own applyTransform and center management any more.
2013-02-14 22:13:07 +01:00
Tim Schaub e9eefc7a33 Fewer failing tests
There are still tests failing, but this change addresses some of the new failures after 4b163e0482 (which is an awesome improvement despite the test failures :).
2013-02-14 12:29:03 -07:00
Marc Jansen 4d7eaf4939 Merge pull request #866 from marcjansen/866
LayerSwitcher generate bad ID when layername has spaces in it. (r=@ahocevar)
2013-02-14 07:01:32 -08:00
ahocevar e9b65691c4 Updating example to match @ahocevar's mobile-wmts-vienna branch 2013-02-14 10:44:41 +01:00
ahocevar 4b163e0482 Merge pull request #800 from ahocevar/transform
Use GPU where available; animated zooming. r=@elemoine
2013-02-14 01:15:18 -08:00
ahocevar 18b0c5fc7d Merge pull request #812 from ahocevar/mousewheel
Better mousewheel/touchpad behavior for zooming. r=@elemoine
2013-02-14 01:13:56 -08:00
ahocevar d0249643b3 Incorporating @elemoine's review comments 2013-02-14 10:11:48 +01:00
Marc Jansen 465498b83a Use blank.gif as WMS-mockup URL in test. 2013-02-14 09:13:01 +01:00
Marc Jansen 73c5dbd8dc Only valid characters in generated ids. 2013-02-14 07:14:13 +01:00
ahocevar f46ed44131 Merge pull request #857 from faegi/featureClickPatch
Clear cached mousedown/up positions used for distinguishing between (fix #856).
2013-02-12 01:46:30 -08:00
ahocevar 982302ff03 Merge pull request #877 from finn-no/panzoombar-fix
Fix click on PanZoomBar when page is scrolled (fix #798).
2013-02-11 23:58:41 -08:00
Gregers Gram Rygg 97c793281f Subtract page scroll from button position, since clientX/Y is relative to the viewport not page 2013-02-11 16:32:38 +01:00
Bart van den Eijnden 14bc72bcac Merge pull request #876 from bartvde/tilemgr-changelayer
the tileQueue is not always cleared, for instance when adding a layer in... (r=@ahocevar)
2013-02-08 06:17:12 -08:00
Bart van den Eijnden 09d1b9e8ca the tileQueue is not always cleared, for instance when adding a layer in GeoExplorer and then switching base layers, so make sure we also clear the tileQueue when the visibility of a layer changes 2013-02-08 14:02:20 +01:00
ahocevar 47d60a6ab8 Merge pull request #874 from ahocevar/tilemanager-backbuffer-id
Tile images should not have an id. r=@bartvde
2013-02-07 08:17:35 -08:00
ahocevar 7936f0345f Tile images should not have an id
When the TileManager adds an image to its cache, it might be a backbuffer
image. Backbuffer images have an id with a '_bb' postfix. Regular images
do not have an id at all. In OpenLayers.Layer.Grid, in
addTileMonitoringHooks, a loadend listener is created for each tile. This
listener checks for tie image id, and will remove it from its parent node.
This will cause images to be removed from the layerDiv if the image comes
from the TileManager's tileCache and was on a backbuffer by the time it was
added to the cache.

Simply removing the image's id before assigning it to a tile resolves the
issue.
2013-02-07 16:44:16 +01:00
Marc Jansen 661df3593d Merge pull request #873 from marcjansen/dangling-license-space
Remove dangling space in license header.
2013-02-07 06:44:49 -08:00
Marc Jansen 2a5e113126 Merge pull request #872 from marcjansen/wmsgfi-api
WMSGetFeatureInfo API enhancements
2013-02-07 02:16:39 -08:00
Marc Jansen d417ba7c25 Adjust license header of WPSProcess.js. 2013-02-07 11:13:08 +01:00
Marc Jansen 716d85594c Adjust license header of WPSClient.js. 2013-02-07 11:13:01 +01:00
Marc Jansen 6c5ffb6930 Adjust license header of Animation.js. 2013-02-07 11:08:30 +01:00
Marc Jansen 0dc531794d Adjust license header of vendorPrefix.js. 2013-02-07 11:05:37 +01:00
Marc Jansen 5bfc4db4fb Give ArcGISCache layer a license header. 2013-02-07 11:05:37 +01:00
Marc Jansen 39a5aed5a6 Remove trailing whitespace. 2013-02-07 10:42:18 +01:00
Marc Jansen a34e627b75 Remove dangling space in license header. 2013-02-07 10:33:20 +01:00
Marc Jansen c5dbaf7cab Remove end-of-line whitespace.
The license header is left untouched, to keep it the same in all files.
A seperate commit will probably deal with this
2013-02-07 10:23:16 +01:00
Marc Jansen d141ed60da Merge pull request #871 from marcjansen/measure-api
Measure API enhancements
2013-02-07 01:20:08 -08:00
Marc Jansen 70ea8f6588 Readd dangling space in header.
This allows for easier search and replace operations. The space will
eventually be removed in all files in a seperate commit.
2013-02-07 10:17:06 +01:00
Marc Jansen a8d7d246e5 Reformat documentation to match surrounding doc. 2013-02-07 10:12:14 +01:00
Marc Jansen 14a3afb6cf Promote several properties to public API.
The properties

  * layers
  * queryVisible
  * url
  * layerUrls
  * infoFormat
  * vendorParams
  * format
  * formatOptions

should all be visible in the public API since they are essentially very
convenient to use when customizing the control.
2013-02-07 10:06:19 +01:00
Marc Jansen 9f7a0ed448 Remove end-of-line whitespace. 2013-02-07 09:52:26 +01:00
Marc Jansen cbc705bdf7 Adjust method documentation. 2013-02-07 09:52:26 +01:00
Marc Jansen 23355abb42 Make 'geodesic' & 'displaySystem' API properties.
The geodesic-property is used inside of our examples, yet isn't officially
part of the public API.

The displaySystem-property provides a very useful way of configuring the
output of the measurements and should be promoted as well.
2013-02-07 09:52:12 +01:00
Tim Schaub 84e36dd573 Avoid touching the geolocation object until needed
IE9 leaks when `navigator.geolocation` is accessed (see #461).  The goal of this change is to avoid that leak in builds that include the Geolocate control but do not use it.
2013-02-04 15:46:45 -07:00
ahocevar 47e7c300a8 Merge pull request #863 from ahocevar/uncache
Uncache images that are no longer valid. r=@bartvde
2013-02-01 06:01:40 -08:00
ahocevar 378a0e97b5 Uncache images that are no longer valid
When a layer sets a cached image's className to something else than
.olTileImage (e.g. by setting .olTileReplacing), we should not keep the
image in the cache any more, because it may no longer be valid.
2013-02-01 00:58:40 +01:00
Éric Lemoine 69061d3f3d Merge pull request #861 from elemoine/stopevent
Make click handler propagate touchend
2013-01-30 06:58:39 -08:00
Éric Lemoine c7a4045e88 Make click handler propagate touchend
This commit is a follow-up on issue #294 and commit a6119f6. Our handlers should not prevent the bubbling up of browser events. This, for example, prevents Sencha Touch's longpress events from working properly.
2013-01-30 15:25:34 +01:00
ejn 364d371f10 Add unit test for cleared cache, and adjust existing unit test which
assumed cached position
2013-01-28 16:16:16 +01:00
ejn dea7438850 Clear cached mousedown/up positions used for distinguishing between
drag and click in feature handler after a click event.

Fixes #856
2013-01-28 10:14:51 +01:00
Bart van den Eijnden 4dd76e0c74 Merge pull request #852 from mpriour/agsCacheZoom
Don't hex encode zoom level in AGSCache layer (r=@bartvde)
2013-01-26 07:51:32 -08:00
Matt Priour 17930432c7 Don't hex encode zoom level in AGSCache layer 2013-01-22 10:06:28 -06:00
ahocevar 40f9296372 Merge pull request #850 from eykamp/irregular_character
Irregular character
2013-01-22 06:56:25 -08:00
Christopher Eykamp c179c8493b Simplify pull request 2013-01-22 15:50:19 +01:00
Christopher Eykamp da62be0137 Fix irregular character that Ruby/Rails objects to 2013-01-22 15:44:19 +01:00
Luiz Fernando Barbosa Vital 549c97063b Adjust language code from 'pt-br' to 'pt-BR'
Portuguese Brazilian translations were not loaded due to this.
2013-01-22 12:22:54 -02:00
Christopher Eykamp 5bb5530fd7 Added tests 2013-01-18 15:58:49 +01:00
Christopher Eykamp 459e38c2d6 Update tests 2013-01-18 15:54:38 +01:00
Christopher Eykamp 36fd417095 Merge remote-tracking branch 'upstream/master' 2013-01-18 15:40:25 +01:00
ahocevar 32d7e02ec0 Merge pull request #843 from ahocevar/early-loadend
Safeguard against listeners that recreate the grid. r=@bartvde
2013-01-17 07:30:22 -08:00
ahocevar c742c14a52 Safeguard against listeners that recreate the grid
We need to handle the backbuffer before we fire the loadend event.
Otherwise listeners that call e.g. mergeNewParams() will cause the
backbuffer removal code to fail, because tile.imgDiv (and hence
this._transitionElement) will be null.
2013-01-17 16:24:15 +01:00
Christopher Eykamp 3bc16555a0 Merge branch 'master' of https://github.com/openlayers/openlayers 2013-01-16 18:40:27 +01:00
Bart van den Eijnden 0f9010cfb8 Merge pull request #840 from bartvde/clone
when cloning a layer that is loading, make sure numLoadingTiles is reset...
2013-01-16 07:29:06 -08:00
Bart van den Eijnden d7f013ddbd when cloning a layer that is loading, make sure numLoadingTiles is reset to 0 on the clone 2013-01-16 16:26:51 +01:00
ahocevar 86c425774a Merge pull request #839 from ahocevar/tilemanager-changelayer
Process queue immediately when params change. r=@bartvde
2013-01-16 04:14:50 -08:00
ahocevar e23c18a09c Process queue immediately when params change
This fixes an issue where the queue would never be processed when a layer
is updated using mergeNewParams.
2013-01-16 12:09:37 +01:00
ahocevar 2a7547c36c Merge pull request #836 from ahocevar/replacing
No .olTileReplacing class for singleTile layers. r=@bartvde
2013-01-16 02:48:26 -08:00
ahocevar fde7c5cc76 After #829 fallThrough needs to be true for this test 2013-01-15 13:41:26 +01:00
ahocevar 2cd14dfbfd No .olTileReplacing class for singleTile layers
This fixes a regression for singleTile layers with transitionEffect set to
'resize', where the .olTileReplacing class was not removed from the tile.
2013-01-15 13:08:48 +01:00
Tim Schaub e6c264286a Merge pull request #832 from perrygeo/2.12-perrygeo
guard against null tileInfo
2013-01-11 09:42:24 -08:00
ahocevar 3107751fb7 Clarifications on fallThorugh (see #829) 2013-01-10 22:12:35 +01:00
ahocevar 158185e9a2 Merge pull request #829 from bjornharrtell/fallThough
Default fallThrough to false
2013-01-10 13:08:21 -08:00
Björn Harrtell 58e33601ba Update notes/2.13.md 2013-01-10 22:00:48 +01:00
Björn Harrtell aa6c5b8a35 Default fallThrough to false
Default behaviour in OpenLayers 2.12 is to swallow events, even though the documentation says otherwise.
2013-01-10 21:30:09 +01:00
Matthew Perry b54faf222c guard against null tileInfo 2013-01-10 10:45:02 -08:00
ahocevar 774e983631 Turning on GPU for the tiles only turns out to be faster
Especially on iOS 6, this gives way better performance. And it does not
seem to cause any additional flicker.
2013-01-09 14:38:18 +01:00
ahocevar 9b7e35d1dd Merge branch 'master' of github.com:openlayers/openlayers into transform
Conflicts:
	theme/default/style.css
2013-01-09 14:31:52 +01:00
Bart van den Eijnden 443c715f51 Merge pull request #626 from mpriour/zeropad
Consolidate numeric zero padding functions (r=@bartvde)
2013-01-09 00:26:17 -08:00
Matt Priour 3b56053849 Use BaseTypes zeropad function in ArcGISCache tests 2013-01-08 14:00:35 -06:00
friedjoff b92887e76d Remove unnecessary success check 2013-01-08 17:58:34 +01:00
friedjoff b442f85bf4 Restore layer alias variable 2013-01-08 17:48:59 +01:00
friedjoff 83be3ff7e8 Restore layer alias variable 2013-01-08 17:41:59 +01:00
friedjoff c1015d31e4 Restore arguments parameter to make function future-proof 2013-01-08 15:40:00 +01:00
friedjoff 77eefdbd55 Fix copyright date 2013-01-08 14:55:22 +01:00
friedjoff 88e184e7e5 Move detection of map procjection to merge function, check for successful response and fix tests. 2013-01-08 14:49:42 +01:00
ahocevar 6ce72e9185 Adding TileManager to mobile build profile, and note in Map.js
As suggested by @probins; see #702.
2013-01-08 14:26:18 +01:00
Tim Schaub bbc73a21d8 Update copyright date 2013-01-07 22:01:16 -05:00
ahocevar 8b501eb051 Merge pull request #811 from ahocevar/mergenewparams
When the resolution does not change, remove backbuffer tile by tile. r=@bartvde
2013-01-07 13:45:53 -08:00
ahocevar f0db21f9c9 Fixing tests 2013-01-07 18:16:23 +01:00
ahocevar c8564838bc When the resolution does not change, remove backbuffer tile by tile
This change introduces a new 'replace' mode for tile transitions: when the
resolution does not change, which happens when mergeNewParams is called,
the tile will be marked with the .olTileReplace class. If this class sets
the tile's imgDiv display to 'none', the backbuffer for the tile will
immediately be removed when the tile is loaded.
2013-01-07 15:42:34 +01:00
ahocevar 18d548f979 Merge pull request #702 from ahocevar/smart-queue
New tile image cache and tile queue improvements. r=@bartvde,@elemoine
2013-01-07 06:38:07 -08:00
ahocevar 4a3651b7da Release notes and additional in-line comment
As suggested by @bartvde.
2013-01-07 15:30:05 +01:00
ahocevar 80f13188a3 Addressing @bartvde's review comments 2013-01-07 14:26:41 +01:00
Bart van den Eijnden 9adbf431ca clear the grid when we change from singleTile mode true to false or vice versa, discussed change with @ahocevar see #821 for the details 2013-01-07 13:25:15 +01:00
ahocevar 1eeda5d9f7 Merge pull request #823 from probins/maxextent
Overview map should use map.getMaxExtent
2013-01-07 00:56:05 -08:00
ahocevar 94020f0fb1 Merge pull request #822 from probins/mapmax
Map: correct docs for maxExtent
2013-01-07 00:55:22 -08:00
Peter Robins dcaefea3cc Map: correct docs for maxExtent 2013-01-06 13:45:36 +00:00
Peter Robins e8421fa923 Overview map should use map.getMaxExtent 2013-01-06 11:41:21 +00:00
Bart van den Eijnden 9dfc5870fb Merge pull request #821 from bartvde/singletile
ability to switch between singleTile true and false on the fly (r=@ahocevar)
2013-01-04 08:15:26 -08:00
Bart van den Eijnden 5b5415d6b7 fix indentation 2013-01-04 17:09:38 +01:00
Bart van den Eijnden de4b995616 incorporate @ahocevar's review 2013-01-04 17:05:03 +01:00
Bart van den Eijnden 1e1ce54e5b add tests and finish off the functionality for switching between singleTile true and false 2013-01-04 15:10:48 +01:00
Bart van den Eijnden 5114ecbaee ability to switch between singleTile true and false 2013-01-04 14:29:07 +01:00
Bart van den Eijnden 193e2696ad fix undefined variable that breaks Closure (closes #819) 2013-01-04 11:11:40 +01:00
Bart van den Eijnden bec34f2d3d Merge pull request #814 from eykamp/wcsdev
Add WCS GetCapabilities parsing for WCS 1.0.0 and 1.1.0 (r=@bartvde)
2013-01-02 08:40:34 -08:00
Christopher Eykamp adba74b735 Remove blank line and trailing comma 2013-01-02 17:29:50 +01:00
Christopher Eykamp fe799ddfff Add notes 2013-01-02 17:15:40 +01:00
Christopher Eykamp f9bb64505b Add final LF 2013-01-02 17:12:51 +01:00
Christopher Eykamp 9c7f6e1de7 Add final LF 2013-01-02 17:10:02 +01:00
Christopher Eykamp 54c5656df5 Add final LF 2013-01-02 17:08:57 +01:00
Christopher Eykamp 0a93154f32 Remove trailing commas 2013-01-02 17:05:54 +01:00
Christopher Eykamp 91bf459ab2 Tactical retreat from dot notation 2013-01-02 17:04:16 +01:00
Christopher Eykamp ed6a32cea7 Fix @requires 2013-01-02 16:52:17 +01:00
Christopher Eykamp 730415aa74 Update @requires 2013-01-02 16:49:53 +01:00
Christopher Eykamp 951da38e80 Add @requires 2013-01-02 16:48:32 +01:00
Christopher Eykamp d0af8726d3 Remove this file properly 2013-01-02 16:26:55 +01:00
Christopher Eykamp ff4e6fc8d7 git acting strangely 2013-01-02 16:26:24 +01:00
Christopher Eykamp d720090310 Reduce vertical whitespace 2013-01-02 16:05:06 +01:00
ahocevar f71976b487 Merge pull request #818 from Turbo87/encoded-polyline
examples/vector-formats: Added "Encoded Polyline" format
2013-01-02 07:03:12 -08:00
Christopher Eykamp a215f362cc Remove call to applyDefaults 2013-01-02 15:46:35 +01:00
Christopher Eykamp 76aa10c52c Add trailing LF 2013-01-02 15:42:46 +01:00
Christopher Eykamp c8e0ba5544 Reduce vertical whitespace 2013-01-02 15:42:03 +01:00
Christopher Eykamp 3f9461e91c Update terminology 2013-01-02 15:39:55 +01:00
Christopher Eykamp c9dbc33649 Remove all traces of Protocol/WCS 2013-01-02 15:38:27 +01:00
eykamp 9788133b03 Update notes/2.13.md 2013-01-02 15:36:17 +01:00
Christopher Eykamp 673f0d9a99 Remove unused commented code 2013-01-02 15:35:00 +01:00
Christopher Eykamp 8193f309dc Update comment/documentation 2013-01-02 15:28:31 +01:00
Christopher Eykamp ddc6bd817d Prefer dot notation 2013-01-02 14:36:04 +01:00
Christopher Eykamp f06931b1b7 Update source of sample XML 2013-01-02 14:32:02 +01:00
Christopher Eykamp b15c751808 Reuse GML pos reader -- something looks not quite right here, but it does work 2013-01-02 14:21:30 +01:00
Christopher Eykamp 37fd98bb03 Move WCS_Capabilities reader into v_1_0_0 class 2013-01-02 13:41:34 +01:00
Christopher Eykamp eb4bbff8f4 Reinstate deleted comment block 2013-01-02 13:25:15 +01:00
Christopher Eykamp abd733865b Reference OWS 1.1.0 readers 2013-01-02 13:21:43 +01:00
Christopher Eykamp a8ae30079e Forgot this somehow... the missing WCS.js file 2013-01-02 13:01:45 +01:00
Christopher Eykamp 008c7d582e Update test to reflect changes in last commit 2013-01-02 12:51:52 +01:00
Christopher Eykamp 15138605c3 Rename contents to contentMetadata to maintain some sort of continuity between WCS 1.0.0 and 1.1.0 2013-01-02 12:48:55 +01:00
Christopher Eykamp f7605dcb66 Reformat to 80 cols 2013-01-02 12:44:57 +01:00
Christopher Eykamp d3345a58b1 Whitespace 2013-01-02 12:42:56 +01:00
Christopher Eykamp 5f2c3803f4 Correct comment about inheritance 2013-01-02 12:42:28 +01:00
Christopher Eykamp 57e833d71f Move comment to shorten line 2013-01-02 12:26:51 +01:00
Christopher Eykamp 0a639404c4 Convert APIProperty to Property 2013-01-02 12:26:13 +01:00
Christopher Eykamp b076dd8041 Remove comment block referring to constructor -- not needed for abstract class 2013-01-02 12:14:19 +01:00
Christopher Eykamp e40034521b Comments 2013-01-02 12:12:04 +01:00
Christopher Eykamp 543a5f6881 Remove line break 2013-01-02 12:10:54 +01:00
Christopher Eykamp 700b036c1b Remove unneeded WCS protocol lines 2013-01-02 12:09:45 +01:00
Tobias Bieniek f92f0ad02e examples/vector-formats: Added "Encoded Polyline" format 2013-01-01 20:01:10 +01:00
Stéphane Brunner fa14b94570 Merge pull request #817 from sbrunner/wmts-restful
Add RESTful compatibility support, r=@marcjansen
2012-12-31 06:38:20 -08:00
Stéphane Brunner 0915fb72a2 Add RESTful compatibility support 2012-12-31 15:35:38 +01:00
ahocevar b57540ecfc Merge pull request #813 from Turbo87/encoded-polyline
Format: Added EncodedPolyline class. Merging this as a first step towards
support for alternative geometry encodings. See #813 for TBDs.
2012-12-28 11:55:12 -08:00
Tim Schaub 75423660d8 Merge pull request #815 from Turbo87/wkt
Small Format.WKT code cleanup
2012-12-28 11:38:01 -08:00
Tobias Bieniek 06bd07ff8d EncodedPolyline: Added write() method 2012-12-28 20:24:57 +01:00
Tobias Bieniek 69d759635f WKT: Removed unused variables from write() method 2012-12-28 19:30:50 +01:00
Tobias Bieniek 60a02e343b WKT: Added APIMethod keywords to documentation 2012-12-28 19:30:47 +01:00
Tobias Bieniek 06409da72e EncodedPolyline: Added APIMethod keywords to documentation 2012-12-28 19:14:30 +01:00
Tobias Bieniek 510d42b12f EncodedPolyline: Added encode() method
The write() method will follow in the next commit.
2012-12-28 01:31:24 +01:00
Tobias Bieniek 8651e05e75 EncodedPolyline: Allow setting geometryType to "point 2012-12-27 23:19:44 +01:00
Tobias Bieniek c118d9884d EncodedPolyline: Extracted universal decode(encoded, dims) method 2012-12-27 23:09:08 +01:00
Tobias Bieniek 2c5d4c75d4 EncodedPolyline: Merged duplicate code in read() method
This patch also prepares the code for making it possible to read encoded
strings with multi-dimensional points.
2012-12-27 23:09:08 +01:00
Tobias Bieniek aedafc0336 EncodedPolyline: Added geometryType attribute
This makes it possible to read polygons or multipoints too. Since the
encoded format is just a list of points the reader needs to be told what
Feature to create from the encoded list.

The example code is edited to reflect that API extension.
2012-12-27 23:09:08 +01:00
Tobias Bieniek 88a3091a90 examples: Added example for the EncodedPolyline Format class 2012-12-27 19:49:49 +01:00
Christopher Eykamp 49ff1b44ea Whitespace 2012-12-27 15:43:33 +01:00
Christopher Eykamp 16981a8afa Remove unneeded files 2012-12-27 15:38:01 +01:00
Christopher Eykamp 0e9691c628 Remove unused readers 2012-12-27 14:40:28 +01:00
Christopher Eykamp be7c55f432 Added full suite of wcs 1.1.0 tests, all are passing 2012-12-27 14:28:46 +01:00
Christopher Eykamp a8f1c76811 Whitespace 2012-12-27 13:48:38 +01:00
Christopher Eykamp 5a19c74604 Whitespace 2012-12-27 13:47:37 +01:00
Christopher Eykamp 809ecb1155 Remove uneeded readers from WCS 1.0.0 2012-12-27 13:47:16 +01:00
Christopher Eykamp b6c2c26580 WCS parsing working properly, but needs more tests; moved errorProperty down to parser, where it arguably belongs, and where it has to live to work with WCS. Also removed null error property on versionedOGC. 2012-12-27 13:29:02 +01:00
Tobias Bieniek 63a9567858 Format: Added EncodedPolyline class
This class is able to convert an encoded polyline string into a LineString embedded in a Vector Feature.

See https://developers.google.com/maps/documentation/utilities/polylinealgorithm for more information.
2012-12-26 18:25:04 +01:00
Christopher Eykamp 8ff05cdeac WCS 1.1.0 parsing correctlyy; error property still not correctly set so parsing reports errors. 2012-12-24 18:19:42 +01:00
ahocevar 4b2e80fa36 Merge pull request #805 from mosesonline/unselectAllFix
unselectAll on removing layer fix
2012-12-24 06:17:04 -08:00
ahocevar 07e039b566 Merge pull request #803 from ahocevar/tween-framerate
Tween: skip frames when minimum frame rate is not reached. r=@bartvde
2012-12-24 06:11:11 -08:00
Bart van den Eijnden 2dfc23e217 Merge pull request #806 from eykamp/master
Identify and fix bug with WFS 1.1.0 (r=@bartvde,@ahocevar)
2012-12-24 05:35:14 -08:00
ahocevar 1b2003a2b4 Recovering from merge conflicts 2012-12-23 19:18:26 +01:00
ahocevar 21448d2fd5 Adding animated zooming 2012-12-23 18:47:03 +01:00
ahocevar d2b3bded72 Better way to get GPU support, and avoid flicker
These declarations were suggested on
http://blog.teamtreehouse.com/increase-your-sites-performance-with-hardware-accelerated-css
2012-12-23 18:34:55 +01:00
ahocevar afe53aba7d Put backbuffer below all layers, except when panning 2012-12-23 18:34:55 +01:00
ahocevar 0b8deb11a2 Revert "No backbuffer removal delay needed with 3d enabled"
This reverts commit 7e8271525ed52288092a135b1c65eed4849c8e49.
2012-12-23 18:34:55 +01:00
ahocevar aa5bab250a 3d transforms in svg content are bad in other browsers as well 2012-12-23 18:34:54 +01:00
ahocevar a309b24053 Only use 3d transforms when stylesheet has transform on layerContainerDiv
This allows users to control whether 3d acceleration should be used or not:
Just like with plain web pages, having a stylesheet that sets a transform
on the map's layerContainerDiv will make OpenLayers use translate3d and
scale3d. When no such transform is set in the stylesheet, style.left and
style.top will be used, except for e.g. pinch zoom, where scaling is
needed.
2012-12-23 18:34:54 +01:00
ahocevar 13b4ca6560 Do not set translate3d on svg children
In current Webkit browsers, having translate3d on svg child elements
causes the positioning from the layer not to be inherited by the vector
layer content.
2012-12-23 18:34:54 +01:00
ahocevar b89d3f1ee8 Going one element up with GPU support, adding it to mobile css also 2012-12-23 18:34:54 +01:00
ahocevar c03f1dc9bf Own applyTransform method is no longer needed 2012-12-23 18:34:53 +01:00
ahocevar 25c8b0ceaf Adding transforms to turn on GPU 2012-12-23 18:34:53 +01:00
ahocevar 980792e190 GPU needs to be turned on for all elements we move 2012-12-23 18:34:53 +01:00
ahocevar 3d79001a92 Updating and adding tests 2012-12-23 18:34:53 +01:00
ahocevar 3ab9a1f63b No closure, to make testing easier 2012-12-23 18:34:52 +01:00
ahocevar f51211e93f No magic for loadend delay
This change reintroduces the removeBackBufferDelay, and documents exactly
what it does and when it may be useful.
2012-12-23 18:34:52 +01:00
ahocevar 1764bbdd18 Giving the last tile time to render
The loadend event of an image is fired before the image is rendered. For
standard 256x256 tiles, this does not matter. But for singleTile layers on
large screens, rendering time needs to be considered. So we add a delay
that depends on the tile size. TODO: make the denominator configurable.
2012-12-23 18:34:52 +01:00
ahocevar a02163f01d No backbuffer removal delay needed with 3d enabled 2012-12-23 18:34:52 +01:00
ahocevar eb65336fa9 Adding docs, removing console.log 2012-12-23 18:32:27 +01:00
ahocevar 64d291ea20 Turn on GPU support for all children of the layerContainerDiv
This seems to remove all kinds of flicker and jumpiness, and to me it feels
also like it makes panning on slow mobile devices smoother.
2012-12-23 18:32:26 +01:00
ahocevar 44f28f8791 Use translate3d and translate where available. 2012-12-23 18:32:26 +01:00
ahocevar 1081fc4b54 Better mousewheel/touchpad behavior for zooming
The navigation control gets better defaults, and the MouseWheel handler
gets a new maxDelta option, which can be used to avoid huge zoom level
jumps on heavy wheel/pad movements.
2012-12-23 18:01:17 +01:00
ahocevar efd2de870a Recovering from merge conflicts 2012-12-23 17:24:20 +01:00
ahocevar 64177a52ec Enable fade-in for tiles from cache when we have a backbuffer 2012-12-23 17:00:47 +01:00
ahocevar a02e08ad2a New beforeload event and slightly changed loading sequence
Having the TileManager remove an image from the DOM, then setting the
cached image, and then having to position it felt a bit awkward. With the
new beforeload event, the setImage method and putting renderTile before
positionTile, providing the cached image feels way more natural.
2012-12-23 17:00:46 +01:00
ahocevar 64df7e3d04 Remove images from dom when replacing them with cached images 2012-12-23 17:00:46 +01:00
ahocevar faa0e60b99 512 tiles is too much for some mobile browsers 2012-12-23 17:00:46 +01:00
ahocevar c0913668d3 moveTimerId is no longer used 2012-12-23 17:00:45 +01:00
ahocevar ecbedf5536 Updating tests 2012-12-23 17:00:45 +01:00
ahocevar 273657a6ab Adding API docs for the tileManager property 2012-12-23 17:00:45 +01:00
ahocevar 781f2ac73d Configure maps with TileManger instances (and not the other way around)
This resolves issues with destroying caches on window unload, and makes
cache sharing among maps less confusing to configure.
2012-12-23 17:00:45 +01:00
ahocevar 9609bb1449 Adding destroy method, as suggested by @bartvde 2012-12-23 17:00:45 +01:00
ahocevar 80fa251649 New TileManager
This removes all tile queueing/loading specific code from Layer.Grid
and creates a new class that manages tile loading and caching.
2012-12-23 17:00:45 +01:00
ahocevar 2ee362a79b New tile image cache and tile queue improvements
We now reuse tile images by maintaining a cache of image elements with a
simplified LRU expiry policy (by order, not by timestamp). The tile queue
is bypassed for images that are available in the cache, so they can be
rendered immediately. And the tile queue itself loads more than just one
image at a time now (2 per layer url).
2012-12-23 16:57:24 +01:00
ahocevar 9759902dac Fixing API; addressing @mpriour's doc comment
Previously, minFrameRate could not be set as option with the start method.
The tests failed to catch this flaw. Now both the start method and the
tests are fixed.
2012-12-21 21:24:04 +01:00
Christopher Eykamp d0986de775 WCS 1.0.0 parsing now passing all tests 2012-12-21 18:51:39 +01:00
Christopher Eykamp 5c07ae47bb WCS testing more-or-less working, many tests failing, as expected 2012-12-21 13:15:01 +01:00
ahocevar 810d9ea95d Fixing line breaks. 2012-12-21 13:10:26 +01:00
ahocevar c6aa104462 Merge pull request #810 from ahocevar/transitionend
Use transitionend listeners where available. r=@bartvde
2012-12-21 04:08:29 -08:00
ahocevar fcd8586883 Using an array for the transitionend event names 2012-12-21 13:07:36 +01:00
ahocevar 43c646b6da Use new Opera event name as well
As pointed out by @bartvde, according to
http://stackoverflow.com/questions/5819912/webkit-transition-end-in-mozilla-and-opera,
Opera uses otransitionend or oTransitionEnd, depending on the version.
2012-12-21 13:01:15 +01:00
ahocevar dd244e6988 Use transitionend listeners where available
In addition to relying on removeBackBufferDelay, we can remove the
backbuffer earlier without flicker in an ontransitionend listener on the
last loaded tile.
2012-12-21 12:33:28 +01:00
ahocevar 86db8fabc6 Merge pull request #807 from ahocevar/units
WMTS Example misaligning with OSM base layer. r=@sbrunner
2012-12-20 14:35:57 -08:00
ahocevar fc64b2c5f8 Fixing tests properly, as suggested by @sbrunner 2012-12-20 16:30:58 +01:00
mosesonline ef028b1e91 Update lib/OpenLayers/Control/SelectFeature.js
indentation fixed and added comment to explain null case
2012-12-20 08:55:21 +01:00
ahocevar f5d7f794c9 Some tweaks to make tests pass again 2012-12-19 23:13:11 +01:00
ahocevar 893966dfae 'm' and 'Meters' in OpenLayers.INCHES_PER_UNIT are not the same
OpenLayers.INCHES_PER_UNIT.m should equal
OpenLayers.INCHES_PER_UNIT.Meters, just like OpenLayers.INCHES_PER_UNIT.km
should equal OpenLayers.Inches_PER_UNIT.Kilometers. This confusion probably
comes from mixing International inches with US Survey inches when compiling
the unit conversion list (1 meter is 39.37007874 International inches, but
39.37 US Survey inches. It may not be obvious, but 'inches'/'Inch' in
OpenLayers means US Survey inch, and 'IInch' means International inch).

This change also fixes offsets caused by incorrect resolution calculations in
OpenLayers.Format.WMTSCapabilities.
2012-12-19 22:23:45 +01:00
Christopher Eykamp 6c5119455d Basic WCS testing in place. Tests are basically meaningless at this point. 2012-12-19 18:11:14 +01:00
Christopher Eykamp 2a21d61400 Change errorProperty to fix bug; now passes all tests 2012-12-19 11:19:56 +01:00
Christopher Eykamp 2c6b8aefcf Improve added error tests 2012-12-19 10:49:16 +01:00
Christopher Eykamp a2c161be08 Revert error message change 2012-12-19 10:45:25 +01:00
Christopher Eykamp 428335fd0d Even more sensible error message 2012-12-19 10:32:19 +01:00
Christopher Eykamp 7790a0a9b6 More sensible error message 2012-12-19 10:31:42 +01:00
mosesonline 0263b2b5e1 [Change] renamed test and added print of error 2012-12-18 09:47:33 +01:00
mosesonline 7aed43185b [BugFix] Added tests for handle destroyed layer in SelectFeature. 2012-12-18 09:43:22 +01:00
mosesonline 0cdb3aeb52 [BugFix] Fix selectFeatures is null exception when layer is destroyed. Since you can listen only to preremovelayer to handle removing layer with SelectFeature. But preremovelayer is triggered after selectFeatures is set to null. 2012-12-18 09:34:48 +01:00
Pierre GIRAUD b404ca0a7a Merge pull request #802 from pgiraud/pinch_preserve_center_
Pinch preserve center
2012-12-18 00:20:18 -08:00
Christopher Eykamp 2478e2311f Update number of tests, add comment 2012-12-17 18:33:19 +01:00
Christopher Eykamp f4be1d138c Add test that demonstrates bug in WFS 1.1.0 parsing 2012-12-17 18:08:23 +01:00
ahocevar f0f1ea0867 Skip frames when minimum frame rate is not reached
The new minFrameRate option is used to make sure that an animation does not
run longer than the time calculated from that frame rate. Time is made up
by skipping frames, i.e. skipping execution of the eachStep callback.
2012-12-17 14:54:08 +01:00
Pierre GIRAUD c9fa5aabad Merge pull request #801 from pgiraud/map_movestart_zoomchanged
Send zoomChanged value when triggering movestart event
2012-12-17 04:56:32 -08:00
Pierre GIRAUD 6c21c2043f Completing the doc strings 2012-12-17 13:55:32 +01:00
Pierre GIRAUD d0c85850f5 More detailed documentation 2012-12-17 13:43:16 +01:00
Pierre GIRAUD 06597f1897 Missing var 2012-12-17 13:23:10 +01:00
Pierre GIRAUD 69580cd698 Don't change the example 2012-12-17 12:56:09 +01:00
Pierre GIRAUD 00c3ca47c0 Adding test for new preserveCenter option 2012-12-17 11:56:33 +01:00
Pierre GIRAUD 0a131f380a Adding preserveCenter config option 2012-12-17 11:56:18 +01:00
Pierre GIRAUD ee5796cb78 Send zoomChanged value when triggering movestart event 2012-12-17 11:45:10 +01:00
ahocevar 257b249b9d Updating notes after 84cf468 2012-12-14 09:35:15 +01:00
ahocevar 84cf468a22 Use http protocol for non-http (i.e. file) URIs (see #700) 2012-12-14 09:30:13 +01:00
ahocevar 083fcca882 Fixing tests (see #700) 2012-12-14 09:07:26 +01:00
ahocevar ab5035ba05 Note about Bing protocol change (see #700) 2012-12-14 01:28:21 +01:00
ahocevar bb788fdd0b Merge pull request #700 from rjmackay/bing-maps-ssl-699
Make Bing maps use SSL (if current document does)
2012-12-13 16:23:54 -08:00
Robbie Mackay ec5df48d01 Add unit test for OpenLayers.Layer.Bing.protocol
* Test that attribution logo uses correct protocol
* Test that tile urls use correct protocol
2012-12-14 12:34:26 +13:00
Robbie Mackay 3189a473fb Fetch Bing map tiles and logo over HTTPS if document uses https
The Bing REST api still returns HTTP urls in meta data even if
we hit the API over SSL. This replaces http:// with // to
avoid any SSL browser errors.

Default to replacing with // but can force http: or https: with the
protocol parameter
2012-12-14 12:13:24 +13:00
mosesonline 9ea9b85988 Revert "[New] raise feature function to move features in layer."
This reverts commit cb1c3a834a.

the drawing order is controlled by Renderer not the Layer classes
2012-12-11 07:27:09 +01:00
ahocevar 7061cbf0fa Merge pull request #787 from ahocevar/mousewheel-event
Wheel handler does not work on IE when interval is set. r=@bartvde
2012-12-10 14:02:58 -08:00
Tim Schaub 0d78dda8c4 Additional test for filter parsing
This confirms that literals are properly parsed when they have text node siblings (see #794).
2012-12-10 08:59:03 -07:00
ahocevar e295e3b70f Merge pull request #788 from ahocevar/no-opacity
Rework of Google layer leads to map div transparency. r=@bartvde
2012-12-10 00:49:54 -08:00
ahocevar e2dcfb7965 Merge pull request #791 from ahocevar/google-tilesloaded
Do not add viewport to GMaps object before it is fully rendered. r=@bartvde
2012-12-10 00:48:30 -08:00
Tim Schaub 3d777cd263 Merge pull request #790 from justb4/master
Atom.js: typo in Polygon parsing causes empty GeoRSS Polygon geometry (closes #789)
2012-12-08 12:02:18 -08:00
ahocevar 6724098f5b Notes about Google.v3 layers (see #484) 2012-12-08 20:10:52 +01:00
ahocevar ab53f7c311 Do not add viewport to GMaps object before it is fully rendered
This avoids issues with Elements renderers, where the nodeFactory method
cannot find nodes while the map viewport is transitioning from the mapDiv
to the googleControl.
2012-12-08 14:53:48 +01:00
Just van den Broecke 1225c817b4 Fix typo causing empty Polygon geometry
See OpenLayers issue 789, var 'points' needs to be passed, not 'components' at line 649.
2012-12-08 14:44:45 +01:00
ahocevar 64508c741e Avoid transparent OpenLayers content on top of Google layer 2012-12-08 01:53:44 +01:00
ahocevar c36b897878 Removing unused code
Because this method is called by OpenLayers.Function.bindAsEventListener,
which conditionally assigns window.event already, e cannot be null or
undefined here.
2012-12-07 21:10:20 +01:00
ahocevar 8701a54603 Cloning event for use in delayed function
In IE, where window.event is used, the event can change during the delay.
To avoid this, we store the event properties in a new object.
2012-12-07 21:09:09 +01:00
mosesonline 5bffb3dea3 Update lib/OpenLayers/Handler/Feature.js
simplify code a little
2012-12-07 12:46:28 +01:00
ahocevar 1b1e90c268 Merge pull request #484 from ahocevar/484
Rework Google layer. r=@bartvde
2012-12-06 02:48:55 -08:00
ahocevar 978cb4be9f Only create Google control once
The control div is now an empty container that we can always append to and
remove from without having to worry about GMaps changing styles on it. It
also makes sure that the control is appended before Google's own
attribution control, so the "Report a map error" link will always be
clickable.
2012-12-06 11:44:49 +01:00
ahocevar d75e3ecac9 Removing google.css from other examples and tests 2012-12-06 10:35:03 +01:00
ahocevar 00d9664b95 No longer touching internal GMaps DOM elements.
Simple and effective: As soon as a map has a Google layer, the whole map viewport is added as control to the GMap. As soon as no Google layer is visible on the map any more, the map viewport is appended to the map container again. With this change, OpenLayers strictly limits its GMaps integration to the GMaps API.

Also note that there are no css overrides for the attribution any more. Instead, controls can now be conditionally positioned differently for Google layer by using the .olForeignContainer selector.
2012-12-06 10:35:03 +01:00
Frédéric Junod 6075b599f3 Merge pull request #786 from probins/xyztypo
XYZ: fix typo
2012-12-05 05:59:05 -08:00
Peter Robins 8a4bf871f1 XYZ: fix typo 2012-12-05 13:54:43 +00:00
Éric Lemoine b5364727a2 Merge pull request #785 from finn-no/pinch-zoom-fix-issue778
Fix for Issue #778 as suggested by elemoine
2012-12-04 08:09:12 -08:00
Gregers Gram Rygg 262153eecc Fix for Issue #778 as suggested by elemoine 2012-12-04 16:58:40 +01:00
ahocevar df6e0a0846 Easier workaround for border image squeezing issue 2012-12-04 14:10:33 +01:00
ahocevar 470cce73ab Merge pull request #775 from ahocevar/wmts-resolutions
Fix regression introduced by #732. r=@sbrunner
2012-11-28 05:50:22 -08:00
ahocevar 1cc07232a7 Fixing regression introduced by #732
Now that serverResolutions are set for all layers, we need to generate
resolutions also for non-baselayers.
2012-11-28 07:12:29 -06:00
Antoine Abt 9ddd3d3ed9 Merge pull request #769 from tonio/noimportant
Avoid !important when not needed. img.olTileImage is precise enough to override boostrap’s rule.
2012-11-26 00:02:26 -08:00
Antoine Abt 862a53ddaf Avoid !important when not needed.
This css selector is sufficient to override bootstrap’s one.
2012-11-26 08:54:02 +01:00
Bart van den Eijnden eef879c152 Merge pull request #767 from bartvde/projdefaults
make sure we do not fail if OpenLayers.Projection.defaults has not been set (r=@ahocevar) thanks @pvgenuchten for the report
2012-11-23 06:08:32 -08:00
Bart van den Eijnden 663ba16b59 make sure we do not fail if OpenLayers.Projection.defaults has not been set for a custom projection 2012-11-23 13:26:26 +01:00
Bart van den Eijnden 1d3eb0e60c Merge pull request #763 from bartvde/insertresult
WFST 1.0.0 InsertResult not read correctly (r=@pgiraud) thanks Pierre for the quick review and thanks to @fgravin for the detailed bug report
2012-11-23 03:39:48 -08:00
Bart van den Eijnden 195352c403 make sure we can have multiple feature ids in InsertResults 2012-11-21 13:08:37 +01:00
Bart van den Eijnden ec294af55a Merge pull request #762 from bartvde/schema
parse annotation from WFS DescribeFeatureType schemas (r=@ahocevar)
2012-11-20 08:07:29 -08:00
ahocevar c48458faa5 Merge pull request #760 from ahocevar/wmscaps-scalehint
Correct handling of 0 and Infinity ScaleHint. r=@marcjansen
2012-11-20 08:01:48 -08:00
ahocevar 5273d63f3a Documenting ScaleHint parsing, as suggested by @marcjansen 2012-11-20 17:01:08 +01:00
Bart van den Eijnden 52d69ecfda documentation is also an array, and lang is optional thanks @ahocevar for the catch 2012-11-20 16:48:50 +01:00
Bart van den Eijnden cbd9a90477 appinfo can be specified multiple times, so use an array instead thanks @ahocevar 2012-11-20 16:42:06 +01:00
Bart van den Eijnden f410cd7e41 remove JSON parsing from format, applications should handle this, as suggested by @ahocevar 2012-11-20 16:36:12 +01:00
Bart van den Eijnden 14f009e2f7 parse annotation from WFS DescribeFeatureType schemas 2012-11-20 15:48:48 +01:00
Marc Jansen 5febfbc8ff Merge pull request #761 from marcjansen/owsc-inlinegeometry
Fix exporting empty vector layers to OWSContext (p=me,@chrismayer;r=@bartvde).
2012-11-20 04:42:30 -08:00
Marc Jansen 13584d7319 Reuse variable, thanks @bartvde. 2012-11-20 13:39:27 +01:00
Marc Jansen 798d2b2cb7 Fix exporting empty vector layers to OWSContext.
When a vector layer is exported to an OWSContext document, we throw an
exception when the layer contains no features, and the geometries are to be
exported inside of an InlineGeometry-element.

This commit fixes this behaviour by exporting sth. like this in such cases:

<Layer name="vector" hidden="0">i
  <ows:Title xmlns:ows="http://www.opengis.net/ows"/>
  <InlineGeometry/>
</Layer>
2012-11-20 10:38:25 +01:00
ahocevar cbc4f4e422 Correct handling of 0 and Infinity ScaleHint
minScale and maxScale values of 0 and Infinity do not make sense in
OpenLayers, but they are used in WMS GetCapabilities 1.1.1 to indicate
that there is no minScale or maxScale restriction. Assuming that the
capability values for minScale and maxScale are passed as config options
to a WMS layer, it is better to not set minScale and maxScale when 0 or
Infinity are found in the ScaleHint.
2012-11-16 17:31:45 +01:00
Tim Schaub 12046503ca Merge pull request #435 from tschaub/kind-transform
Stay on the world when transforming coords.
2012-11-14 11:26:11 -08:00
Bart van den Eijnden 1f229ba275 Merge pull request #757 from bartvde/ajax
make sure config.headers does not overwrite DEFAULT_CONFIG.headers in OpenLayers.Request.issue (r=@ahocevar)
2012-11-13 07:15:12 -08:00
Bart van den Eijnden 3265b0e73f Make sure config.headers does not overwrite DEFAULT_CONFIG.headers in OpenLayers.Request.issue 2012-11-13 16:12:14 +01:00
Tim Schaub 57e22ef491 Merge pull request #755 from tschaub/bootstrap-css
Making OpenLayers play well with Bootstrap
2012-11-09 16:51:55 -08:00
Tim Schaub fa740a42a9 Making OpenLayers play well with Bootstrap
Bootstrap CSS sets the max-width for images to 100%.  This makes it so
OpenLayers maps don't render (the layer container has 0 width, so all images
are given the same).  Even if our layer container had a more sensible width
(e.g. 100% of the viewport), we would still have issues with tiles that are
larger than the viewport.

Since the OpenLayers stylesheet may be loaded before or after bootstrap.css,
we should use !important when setting the max-width to none for images we
control.
2012-11-09 15:05:18 -07:00
ahocevar 7530751d98 Merge pull request #747 from ahocevar/wpsexecute-mixin
Filter.v1 methods need to be available when using Filter writers. r=@bartvde
2012-11-07 09:51:07 -08:00
ahocevar a2fe036e2c Filter.v1 methods need to be available when using Filter writers
Format classes that define member methods need to be mixed into other
format classes that use their writers. In this case, methods from
Filter.v1 were missing so a test for Format.WPSExecute failed.
2012-11-07 18:14:56 +01:00
ahocevar d431b504bd Missing change that should have gone in with #705 2012-11-07 16:54:26 +01:00
ahocevar 4f5bcdbe76 Fixing mock 2012-11-07 16:25:34 +01:00
Bart van den Eijnden 575301ad32 Merge pull request #746 from bartvde/loadend
when using BBOX or Fixed strategies, pass on the filter used in the request to the loadstart event (r=@ahocevar,@elemoine)
2012-11-07 02:57:26 -08:00
Bart van den Eijnden 8cc0cdc6a1 incorporate suggestions by @ahocevar and @elemoine 2012-11-07 11:56:04 +01:00
Bart van den Eijnden a4df9a871b when using BBOX or Fixed strategies, pass on the filter used in the request to the loadstart event. This is mostly important in the case of BBOX, since there is no other way to get the filter used in the request. An example use case is doing a hitCount request using the same filter to find out the true number of features matched on the server-side 2012-11-07 11:43:18 +01:00
Bart van den Eijnden c420fc6aad fix up Strategy.BBOX tests 2012-11-06 15:14:22 +01:00
Éric Lemoine 7ecbce28aa Merge pull request #742 from finn-no/scroll-touch-fix
Fixed problems with touch events on a scrollable page
2012-11-06 06:04:07 -08:00
Gregers Gram Rygg 7b1bc2a675 Removed Event from doc, since it's not being used 2012-11-05 23:15:53 +01:00
Gregers Gram Rygg 6e18d0e254 Added comment about olMochWin 2012-11-05 23:08:42 +01:00
Gregers Gram Rygg 4842c9e572 Renamed _mochWin to olMochWin 2012-11-05 23:04:32 +01:00
Gregers Gram Rygg 0fbe28a348 Removed debugger statement 2012-11-05 22:31:15 +01:00
ahocevar a54ecca32b Merge pull request #705 from ahocevar/animation
Remove complexity from the image loading sequence. r=@elemoine,@tschaub
2012-11-05 10:33:59 -08:00
ahocevar 5a3bcc716b Not using requestAnimationFrame
Using the Timeline tab of the Chrome Developer Tools, no significant
difference of Paint events can be observed when requestAnimationFrame is
used. So I agree with @elemoine that there is no need to introduce
asynchronous behavior here.
2012-11-05 17:28:10 +01:00
Bart van den Eijnden b45f903198 Merge pull request #744 from bartvde/cqlnull
add support for OpenLayers.Filter.Comparison.IS_NULL in CQL format (thanks @elemoine for the review)
2012-11-05 06:42:38 -08:00
Bart van den Eijnden 703e0a2ca1 make it clear with docs that maxFeatures can be specified on Protocol.WFS (non-functional change) 2012-11-05 15:31:08 +01:00
Bart van den Eijnden 31b4c39b5b Merge branch 'master' of github.com:openlayers/openlayers 2012-11-05 15:27:55 +01:00
Bart van den Eijnden 41ac2dea08 add support for OpenLayers.Filter.Comparison.IS_NULL in OpenLayers.Format.CQL 2012-11-05 13:21:51 +01:00
ahocevar 65fa1aaa2d Make sure we do not make abandoned tiles visible 2012-11-05 10:43:05 +01:00
ahocevar 796a349c61 Synchronous image loading for opacity and backbuffer tests 2012-11-05 10:40:50 +01:00
ahocevar ebeb49b5e7 blankImageUrl is no longer needed for image tiles 2012-11-05 10:40:05 +01:00
Éric Lemoine 8bb58e453b Merge pull request #576 from probins/cors
CORS support in Request: remove console warning if not same origin
2012-11-05 01:36:56 -08:00
Peter Robins 99906c8b98 CORS support in Request: remove console warning if not same origin 2012-11-05 09:32:20 +00:00
Bart van den Eijnden fcb45d9c41 Merge branch 'cql-quoted' of git://github.com/tschaub/openlayers 2012-11-05 09:44:34 +01:00
Éric Lemoine 41ba4d0d51 Merge pull request #740 from probins/gftex
Update Fusion Tables example for latest API version
2012-11-04 13:00:26 -08:00
tschaub 47ef7e87f7 Handle whitespace and escaped quotes in CQL values
See #743.
2012-11-02 11:44:41 -06:00
Gregers Gram Rygg 9ac758ae86 Removed mobile-scroll example, as it's not an example but a page to reproduce the bugs 2012-11-02 15:38:33 +01:00
Gregers Gram Rygg a2a391d3b5 Fixed problems with touch events on a scrollable page 2012-11-02 14:22:46 +01:00
Peter Robins 8d36a1d7f7 Update Fusion Tables example for latest API version 2012-10-31 10:24:32 +00:00
Tim Schaub 8d0da09454 Merge pull request #733 from tschaub/filter-tweaks
Allow writer functions to use document fragments when they need to append more than a single child to the parent.
2012-10-26 09:45:53 -07:00
Tim Schaub 8d8a9f3105 Merge pull request #729 from tschaub/date
WFS date filter literal not sent as ISO format
2012-10-26 09:01:54 -07:00
tschaub 4cf7f99de0 Work with formats that copy filter writers 2012-10-25 12:31:20 -06:00
tschaub 9e21911ca3 Unnecessary call to appendChild
The writeNode function already calls appendChild on the parent.
2012-10-25 12:11:25 -06:00
tschaub e6399a265d Use document fragments to write multiple nodes
For writer functions that need to generate multiple nodes, the
createDocumentFragment method can be used.
2012-10-25 11:56:48 -06:00
tschaub 81d3584e09 Test custom encodeLiteral function 2012-10-25 11:24:55 -06:00
tschaub 993add338d Allow user to customize literal encoding
As suggested by @mpriour, it would be nice if the user could determine how
date values are encoded in literal elements.  Extending this beyond date
values, we can provide an `encodeLiteral` method that can be overridden to
provide application specific behavior.
2012-10-25 10:52:54 -06:00
ahocevar 7f2ce74dd7 Merge pull request #732 from ahocevar/wmts-serverresolutions
WMTS layers created from capabilities have no serverResolutions. r=@sbrunner
2012-10-25 08:06:05 -07:00
ahocevar ca532c5db6 WMTS layers created from capabilities have no serverResolutions
By adding serverResolutions to the WMTS configuration, it is possible to
use WMTS layers as overlays, even if the map or the base layer is
configured with different resolutions than the WMTS.
2012-10-25 14:40:26 +02:00
Tim Schaub ed66271be3 Use ISO 8601 formatting for dates in filters 2012-10-24 11:16:29 -06:00
Tim Schaub 1c39820eb1 Merge pull request #728 from tschaub/kml-track
Properly parse track attributes
2012-10-24 09:11:04 -07:00
Pierre GIRAUD 6efcab3d2d don't try to update the matrix in setMap since it's too early and done later in moveTo 2012-10-24 13:31:06 +02:00
tschaub edb4798518 Testing multiple track attributes 2012-10-23 14:24:48 -06:00
tschaub 596ac680da Use correct track attribute
Previously, the last track attribute name would be used as the
feature attribute name.  For tracks with multiple attributes, this
doesn't work.
2012-10-23 14:15:22 -06:00
Tim Schaub 8a8b3076c8 Adding an example that reprojects GeoJSON. 2012-10-19 14:16:13 -04:00
ahocevar 4b7a0b43b1 Merge pull request #709 from jorix/ghostClusters
Bug: Ghost clusters
2012-10-17 10:33:30 -07:00
Xavier Mamano ee34448844 Add test remove features and zoom on Strategy/Cluster.html 2012-10-17 19:06:53 +02:00
Stéphane Brunner 788d49a3bb Merge pull request #666 from sbrunner/Prevent.KeyboardDefaults-ie
Prevent KeyboardDefaults.js from triggering keyboard events when user is...
2012-10-17 03:01:58 -07:00
Xavier Mamano 3c416a4d60 Clear the cache on Strategy.Cluster when features are removed.
This prevents reappearing the removed features after zooming.
2012-10-16 18:43:53 +02:00
Bart van den Eijnden 0b46f19ba6 Merge pull request #722 from tomhughes/bbox-fail
Clear the bounds in Protocol.BBOX when a load fails (r=bartvde)
2012-10-16 06:18:02 -07:00
Tom Hughes 628978f894 Clear the bounds in Protocol.BBOX when a load fails
If a load fails then we won't have any features, but we also won't
try and load them again for any part of that area because the bounds
tell us we have already loaded them. So clear the bounds in order
that reloads will be triggered.
2012-10-16 14:16:37 +01:00
Bart van den Eijnden d098897c79 Merge pull request #717 from walkermatt/master
Support for PropertyIsNull Filter
2012-10-16 00:24:23 -07:00
Matt Walker a65a231da3 Updated IS_NULL filter to check for strict null.
The IS_NULL filter evaluates to true only when the
property is null. Updated tests to reflect this
change.
2012-10-16 08:11:59 +01:00
Matt Walker ea5a510d45 Moved node var declaration to the top of the function 2012-10-15 11:16:00 +01:00
Matt Walker a9494394da Comparing the filter XML written using t.xml_eq.
The PropertyIsNull test now used the t.xml_eq method
to verify the XML output when the filter is written.

Tided up variable names to be consistent with other
tests.
2012-10-15 11:09:52 +01:00
Matt Walker 41dac08cfa Resolved redefinition of filter variable in test 2012-10-15 09:51:56 +01:00
Matt Walker bccd0824b9 Removed duplicate line that gets the filter value 2012-10-15 09:47:10 +01:00
ahocevar c3b13b5df3 Using radix parameter to make linter happy 2012-10-15 08:27:01 +02:00
Matt Walker 8f860e516e Removed stray console.log in PropertyIsNull test 2012-10-13 20:05:43 +01:00
Matt Walker 0707bb49bd Merge remote-tracking branch 'upstream/master' 2012-10-13 19:59:41 +01:00
Matt Walker f08c562955 Added IS_NULL evaluate feature tests 2012-10-13 09:47:23 +01:00
ahocevar e38ab01752 Fixing image-layer example 2012-10-13 09:26:45 +02:00
Matt Walker 6a37e72ae3 Added some comments to Format/Filter tests. 2012-10-12 22:49:30 +01:00
Matt Walker d5013d6df5 Added support for PropertyIsNull filter.
Added a simple comparison and read/write for PropertyIsNull
encoded as XML including tests for each.
2012-10-12 22:40:56 +01:00
ahocevar 583dc15700 Merge pull request #587 from ahocevar/587
Layer.WMS: BBOX precision errors in URLs. r=@bartvde
2012-10-12 08:53:23 -07:00
ahocevar a0acf1e550 Calculating rowSign only once 2012-10-12 16:16:44 +02:00
ahocevar 0eb8949ad2 Updating and fixing API docs 2012-10-12 16:11:10 +02:00
ahocevar f757580ed4 Merge pull request #634 from ahocevar/634
CacheWrite caches an empty image if the tile is unloaded before the image is loaded. r=@bartvde
2012-10-12 06:41:24 -07:00
ahocevar e5feda7ad7 Camel casing method name 2012-10-12 15:03:38 +02:00
ahocevar 157dd9e1c2 Fixing typo 2012-10-12 14:44:48 +02:00
ahocevar 6607bcc0bb Do not cache data from aborted tile loads
This also results in a simplified cache method that can more easily be
overridden for use with other storage providers.
2012-10-12 14:06:08 +02:00
ahocevar cf3ea0c7db Register application listener after the control's 2012-10-12 13:41:54 +02:00
ahocevar ff4a1b2468 Optimizing positions for rendering
Calculating pixel positions from origin and grid index causes alignment
issues in the grid. By going back to incremental positioning, we get a
result without blank spaces between tiles again.
2012-10-12 03:23:56 +02:00
ahocevar 66455600c7 Better precision for right and top corners 2012-10-12 03:10:42 +02:00
ahocevar f78d127b1c Removing console.log line 2012-10-11 23:59:17 +02:00
ahocevar 7df5e3ca8e Fixing KaMap layer
This also fixes an issue that has gone unnoticed for a while: the grid did
not cover the bottom of the map viewport, but instead covered an invisible
area above the top of the map viewport.
2012-10-11 23:54:04 +02:00
ahocevar e7292ecbe2 Fixing ArcGISCache layer
This is done by caching the tileOrigin at grid creation time.
2012-10-11 22:26:59 +02:00
ahocevar c5bb52d93f No deltas for tile bounds/position calculation
Now we also do not use deltas for shiftRow and shiftColumn. Some
refactoring was done so we do not need different calculateGridLayout
methods for layers with top-left and bottom-left tile origin.

TODO: With this commit, ArcGisCache and KaMap layers are broken.
2012-10-11 21:22:52 +02:00
ahocevar d4f011d00c Absolute calculation of tile bounds
This avoids cumulated tile bounds errors for layer types that do not use a
tile row/column index in requests (e.g. WMS).
2012-10-10 12:22:57 +02:00
Stéphane Brunner f1e7425821 use OpenLayers.Event.element 2012-10-10 11:28:18 +02:00
Stéphane Brunner 2e44aff5f0 Prevent KeyboardDefaults.js from triggering keyboard events when user is typing into the form elements for IE 2012-10-10 11:28:18 +02:00
ahocevar 0b3f582e10 Merge pull request #708 from mpriour/displayEvent
Fire the 'changelayer:visibility' event from layer's display method
2012-10-09 14:23:28 -07:00
Matt Priour e8cc0deeb5 Remove extra event firing logic from Layer::setVisibility 2012-10-09 12:21:25 -05:00
Matt Priour f17a3c70e4 Fire the 'changelayer:visibility' event from layer's display method
Move the changelayer event firing logic for in / out of resolution range
from the Map class to the Layer class. Tests have been also been created
to specifically test that the display method works correctly and fires
events only when needed.
2012-10-09 11:10:55 -05:00
Bart van den Eijnden 74103ec3e0 Merge pull request #706 from bartvde/wmsc
allow versioned profiled parsers to fallback to the non-profiled parser (r=@ahocevar)
2012-10-08 23:41:57 -07:00
Bart van den Eijnden ec8fa47a39 remove duplicate line in comment 2012-10-08 16:34:12 +02:00
Bart van den Eijnden fd6e7ebe03 allow versioned profiled parsers to fallback to the non-profiled parser, this will help deal with situations in which a WMSC parser is created, the server is requested for WMS 1.1.1, but returns 1.1.0 2012-10-08 16:28:19 +02:00
ahocevar 7e5e221c8d Image loading performance improvements
Performance improvements are achieved by using requestAnimationFrame when
a tile's visibility changes, and by not starting with a blank image when
creating a new tile image. It seems that even Firefox does not show a
loading placeholder when the tile is made visible in an animation.
2012-10-05 09:24:53 +02:00
Tim Schaub e3a5091ebd Merge pull request #699 from tschaub/schemeless
Bing Layers should fetch metadata over HTTPS when the document is server over HTTPS.  Rewriting image URLs to use HTTPS will be handled separately (see #700).
2012-10-04 07:50:54 -07:00
Tim Schaub c0bff1c3ff Use protocol-relative URL for Bing metadata.
The [URI standard](http://tools.ietf.org/html/rfc3986#section-4.2) allows for URI without a scheme.  Where http is used to load the app, using a schemeless URL for the Bing metadata loads a script using http - and the same goes for https.
2012-10-03 21:44:48 -06:00
ahocevar 8317744d31 Merge pull request #697 from ahocevar/describelayer
Applying VersionedOGC pattern to WMSDescribeLayer format. r=@bartvde
2012-10-03 05:44:54 -07:00
ahocevar 47379ff7a2 Do not provide an 1.1 parser 2012-10-02 16:28:59 +02:00
ahocevar 88a7b7d3e2 Testing backwards compatibility 2012-10-02 16:11:27 +02:00
ahocevar 3d1b0f0bd9 Less intrusive version fallback 2012-10-02 16:07:35 +02:00
ahocevar e326a9ea2f Adding TODO, as suggested by @bartvde 2012-10-02 14:40:37 +02:00
ahocevar 84a8d8d1f6 Applying VersionedOGC pattern to WMSDescribeLayer format
The WMSDescribeLayer format currently differs from other formats that
inhreit from VersionedOGC by having an array instead of an object as return
type. This especially bad since the VersionedOGC superclass sets a version
property on the array. With this change, the WMSDescribeLayer format will
also be compatible with GeoServer's new JSON response type for
DescribeLayer - see
http://sourceforge.net/mailarchive/message.php?msg_id=29912776.

Another change included here is the removal of the WMSDescribeLayer
format's getVersion hack, which was replaced by a generic fallback to less
generic parsers, e.g. from a v1_1_1 parser to a v1_1 parser if v1_1_1 is
not implemented.
2012-10-02 14:35:05 +02:00
ahocevar 95839728a1 Declaring undeclared variable 2012-10-02 13:30:47 +02:00
ahocevar 9113bc4004 Merge pull request #695 from ahocevar/wmts
Support for multiple resource urls for WMTS. r=@sbrunner
2012-10-02 01:58:00 -07:00
ahocevar ea86afec16 Addressing @sbrunner's review comment 2012-10-02 10:56:41 +02:00
ahocevar f055f13a3a Fixing typo
Thanks @sbrunner for catching this. That's what I got from making
last-minute changes before committing without testing again.
2012-10-02 10:56:06 +02:00
ahocevar 363306bcd1 Multiple URLs also for unconstrained GetTile resources 2012-10-02 08:58:47 +02:00
ahocevar 22c5e76b0b Support for multiple resource urls
With this change, createLayer generates url arrays for both KVP and REST
encoding if multiple resource urls are provided. To make this work, the
WMTSCapabilities format got a new resourceUrls property, because
previously only the first resourceUrl for a format was stored.
2012-10-01 15:28:30 +02:00
Pierre GIRAUD b63ce9af18 Merge pull request #690 from pgiraud/client_zoom
call stopObserving before setting img.src to blank image as well
2012-10-01 00:36:15 -07:00
ahocevar 51ae75a54f Merge pull request #660 from m-click/fix-setAttributeNS
Fix DOM API call to setAttributeNS()
2012-09-28 03:56:58 -07:00
Pierre GIRAUD 8d8abac32a call stopObserving before setting img.src to blank image as well 2012-09-21 11:32:48 +02:00
Stéphane Brunner 9a93e58080 Merge pull request #683 from sbrunner/wmtscapabilities-right-url
Gets the right url (#608 / 3)
2012-09-19 04:20:06 -07:00
Slawomir Messner cb1c3a834a [New] raise feature function to move features in layer. 2012-09-18 08:14:54 +02:00
Stéphane Brunner e8987c0683 Gets the right url (#608 / 3) 2012-09-14 15:39:12 +02:00
ahocevar 503fff32b6 Merge pull request #455 from ahocevar/455
Support Subdomains in Openlayers WMTS. r=@sbrunner
2012-09-13 07:07:11 -07:00
Stéphane Brunner 4b91b9c304 Merge pull request #615 from sbrunner/wmts-first-matrix-set
gets the first matrix set instance of only the unique one
2012-09-13 06:06:04 -07:00
Tim Schaub 877d81cffa Merge pull request #676 from tschaub/osm-copyright
Updating attribution for OSM layer.
2012-09-12 20:39:23 -07:00
Tim Schaub 9607ee480a Using the entity reference for copyright symbol. 2012-09-12 21:38:30 -06:00
tschaub 499055e247 Updating attribution for OSM layer.
See http://www.openstreetmap.org/copyright for details.
2012-09-12 09:15:46 -06:00
Marc Jansen 2a48759bc9 Merge pull request #675 from marcjansen/no-tabs
Replace tabs with spaces where appropriate.
2012-09-11 12:55:43 -07:00
Marc Jansen 1348f97546 Replace tabs with spaces where appropriate. 2012-09-11 21:51:18 +02:00
Stéphane Brunner f7ca64b1aa Merge pull request #671 from sbrunner/add-missing-requires
Add missing requires on Request for UTFGrid Tile
2012-09-11 10:58:24 -07:00
Stéphane Brunner 341c08adee Add missing requires on Request for UTFGrid 2012-09-11 11:38:24 +02:00
ahocevar c88ad36600 Comment about side effect.
I wonder why isFixed is advertised as APIProperty for Vector layers.
2012-09-07 12:18:12 +02:00
Marc Jansen 6b2836b455 Merge pull request #665 from marcjansen/selected-evt
SLDSelect: Make it possible to change the filter in handlers
2012-09-06 05:23:39 -07:00
Marc Jansen 1063a4cd19 Make it possible to change the filter in handlers
Trigger the 'select'-event earlier, this way any handlers for the event can
change both the filter and the resulting SLD inside the callback.
2012-09-06 13:29:59 +02:00
Marc Jansen 97b75578ba Update lib/OpenLayers/Control/SLDSelect.js
Correct API docs. Non-functional change.
2012-09-06 10:40:13 +03:00
ahocevar 2197f1656a Updating row/col sizes in tests (see #639) 2012-08-31 11:11:34 +02:00
Volker Grabsch e8051ca1ec Fix DOM API call to setAttributeNS() 2012-08-30 16:54:49 +02:00
Marc Jansen 60cc590bf2 Another API-docs spelling error. 2012-08-30 00:46:57 +03:00
Marc Jansen a4bc3f33e6 Fix API-docs spelling error.
This fixes #654. Thanks to @dandv for catching this.
2012-08-30 00:40:43 +03:00
ahocevar ec26dd6564 Merge pull request #644 from fastrde/ModifyFeatureDocumentDrag
Adds documentDrag to ModifyFeature
2012-08-27 02:53:39 -07:00
fastr e8716847f8 Adding DocumentDrag to ModifyFeature 2012-08-25 23:37:39 +02:00
fastr 053dba59a1 Inserted documentDrag in ModifyFeature so that you can drag vertices over the viewport of the map in analogy to the DragFeature-Control. documentDrag is internaly passed to the DragFreature that's used by ModifyFeature. 2012-08-25 23:30:27 +02:00
Marc Jansen 1d670fcddb Merge pull request #642 from marcjansen/api-docs
Better documentation. Non-functional change.
2012-08-22 15:11:53 -07:00
Marc Jansen 287e9caf46 Code docs for the Bounds-class. 2012-08-22 23:59:11 +02:00
Marc Jansen 04e271570b Document the VERSION_NUMBER "constant". 2012-08-22 23:52:12 +02:00
ahocevar ddd4c4c022 Merge pull request #517 from ahocevar/no-percent
No more percentage based positioning. r=@bartvde,@elemoine,@rdewit
2012-08-21 05:02:11 -07:00
ahocevar 75f2e1f847 Addressing @bartdve's review comments. 2012-08-21 14:00:48 +02:00
ahocevar a3ec0f77e0 Using integer pixel space to avoid whitespace between tiles. 2012-08-21 13:57:11 +02:00
ahocevar 475cd7cd60 Fixing test (backBufferLonLat should not be OpenLayers.Bounds).
Thanks @rdewit for the IE7 test report - this fixes one of the reported issues.
2012-08-21 13:57:11 +02:00
ahocevar b2210d00a9 Removing no longer needed code.
Thanks @elemoine for catching the IE6 reflow in Tile/Image.js.
2012-08-21 13:57:11 +02:00
ahocevar f0ad48597f No more percentage based positioning.
Client zoom now supports both over- and undersampling.
2012-08-21 13:57:11 +02:00
ahocevar 405cebd482 Merge pull request #639 from ahocevar/grid-align
When using a buffer, the grid lacks rows/columns at the top/left. r=@bartvde
2012-08-21 04:47:10 -07:00
ahocevar 26d4fe3ce8 Making row and column size consistent, as suggested by @bartvde. 2012-08-21 13:37:48 +02:00
ahocevar 0f58868830 When using a buffer, the grid lacks rows/columns at the top/left.
This is because the threshold used for deciding when a column or row is shifted is too far to the bottom right. A tiny fix, but effective. A new test makes sure that we don't shift columns more than necessary when the layer is dragged.
2012-08-20 18:52:17 +02:00
ahocevar 87e7cfe29c Merge pull request #632 from ahocevar/wps-client
WPS Client. r=@bartvde,@tschaub
2012-08-18 10:01:01 -07:00
ahocevar e04d7cd627 Addressing final review comments. 2012-08-18 18:56:36 +02:00
Marc Jansen 470dde0e38 Documentation enhancements. No functional change. 2012-08-17 23:41:19 +02:00
Marc Jansen b7063b364c Enhancements to the MouseCoordinates example.
Non-functional change.
2012-08-17 23:40:18 +02:00
Marc Jansen df19317c95 Merge branch 'master' of https://github.com/openlayers/openlayers
Conflicts:
	tests/list-tests.html
2012-08-17 22:46:06 +02:00
Bart van den Eijnden f6adcd2651 Merge pull request #637 from bartvde/resizecleanup
cleanup and always use window resize as suggested by @tonio (r=@tonio)
2012-08-17 03:50:47 -07:00
Bart van den Eijnden 7b4cb8e3f5 cleanup and always use window resize as suggested by @tonio 2012-08-17 11:36:03 +02:00
Bart van den Eijnden 5e4aea58f1 Merge pull request #636 from bartvde/autoresize
introduce new property on the Map called autoUpdateSize (r=@ahocevar)
2012-08-17 01:22:23 -07:00
Bart van den Eijnden 3b9ce4ca2d introduce new property on the Map called autoUpdateSize which lets applications take control of window resizing / device orientation changes if they want to 2012-08-17 10:13:04 +02:00
Bart van den Eijnden 2843a18602 Revert "fix issue with orientation changes on mobile devices (tested on Motorola Xoom 2 with Android 3.2.2 in the stock browser)"
This reverts commit 39a6d7d8ef.
2012-08-16 16:35:21 +02:00
Bart van den Eijnden e4e06a877f Merge pull request #635 from bartvde/resize
fix issue with orientation changes on mobile devices (r=@ahocevar and thanks to @ahocevar for coming up with this idea in the first place)
2012-08-16 05:28:07 -07:00
Bart van den Eijnden 39a6d7d8ef fix issue with orientation changes on mobile devices (tested on Motorola Xoom 2 with Android 3.2.2 in the stock browser) 2012-08-16 14:21:36 +02:00
tschaub 5cf260f38a Add missing requires (closes #633). 2012-08-14 11:01:58 -06:00
ahocevar 88572303fb Addressing @tschaub's review comment. 2012-08-14 13:31:41 +02:00
ahocevar 5fff368a2d Addressing review suggestions and fixing asynchronous function calls.
This commit addresses @bartvde's review comments, adds more documentation, and fixes asynchronous function calls. Previously, when creating multiple processes with the same identifier, the describe callback would only have been called for the first process. This was fixed to move DescribeProcess handling from WPSProcess to WPSClient.
2012-08-14 13:17:07 +02:00
ahocevar 006d98151f Use the correct name of the result, not just hard-coded 'result'. 2012-08-13 13:29:34 +02:00
ahocevar 94f3ab393f Giving the test code more time to execute. 2012-08-12 22:08:43 +02:00
ahocevar 4e3f3e2080 Adding dependencies. 2012-08-12 21:39:15 +02:00
ahocevar 96db01006c Making Firefox happy. 2012-08-11 19:32:17 +02:00
ahocevar e2acbc56d0 More docs and unit tests. 2012-08-11 19:32:17 +02:00
ahocevar ebc71b492e Making sure that the process description is not loaded. 2012-08-11 19:32:17 +02:00
ahocevar ec9ab8129e Adding support for chaining processes. 2012-08-11 19:32:17 +02:00
ahocevar c64621f510 Adding unit tests. 2012-08-11 19:32:17 +02:00
ahocevar b61120d3b5 Cache of DescribeProcess responses on the client. 2012-08-11 19:32:17 +02:00
ahocevar 9bc7bb8115 Using proxy and demo server. 2012-08-11 19:32:17 +02:00
ahocevar 0108250ed9 WPSClient and WPSProcess for convenient WPS interaction. 2012-08-11 19:32:17 +02:00
Xavier Mamano 79ca3cfd69 Avoid breaking the "OpenLayers.String.format" execution when searching for an attribute in an undefined object. 2012-08-11 17:28:59 +02:00
Matt Priour a83ab56f97 Modify classes which contained an internal numeric zero padding function to use the one in BaseTypes instead 2012-08-08 22:36:39 -05:00
Matt Priour dc93478e6b Move zeroPad function to BaseTypes and add tests for it 2012-08-08 22:34:26 -05:00
tschaub 970448effc Tests for response property on loadend event.
This confirms that the loadend event includes a response property when it results from a call to the strategy merge method (see #624).
2012-08-08 11:41:51 -06:00
tschaub 7e326f97e2 Doc fix for merge method. 2012-08-08 11:41:33 -06:00
tschaub 4ae9f6878d Making events easier to test.
This should make it more straightforward to test the new event properties being sent with loadend on BBOX and Fixed strategies (see #624).
2012-08-08 11:23:02 -06:00
ahocevar 49227967bc Merge pull request #624 from milkypostman/master
return response object on "loadend" event for Fixed strategy. Also closes #85.
2012-08-08 07:51:56 -07:00
Donald Curtis 2696494443 return response object on "loadend" event for Fixed and BBOX strategies 2012-08-08 09:46:58 -05:00
Bart van den Eijnden bab1858bfc slightly modify the wfs-states example to show how to switch between a WMS and a vector layer at a certain scale (non-functional change) 2012-08-08 09:20:14 +02:00
Stéphane Brunner 65cacaa756 Merge pull request #614 from sbrunner/wmts-fix
correct units in WMTS capabilities
2012-08-03 02:35:26 -07:00
ahocevar 159ee7c7b4 Merge pull request #612 from ahocevar/612
Touch events do not trigger the default action in attribution links. r=@marcjansen
2012-08-01 04:16:38 -07:00
ahocevar aef5517bfa Adding unit tests. 2012-08-01 13:15:59 +02:00
ahocevar 98569203a6 Check whether an event target should be considered for handling. 2012-08-01 10:20:25 +02:00
Stéphane Brunner 093bb529d2 gets the first matrix set instance of only the unique one 2012-07-30 23:26:45 +02:00
Stéphane Brunner 9d31c57e2a correct units in WMTS capabilities 2012-07-30 23:17:11 +02:00
Pierre GIRAUD 940c0e8ca2 Adding missing attribution for OSM 2012-07-20 16:18:28 +02:00
Stéphane Brunner 584749b524 Merge pull request #601 from temporaryaccount/temporaryopenlayers
Prevent KeyboardDefaults.js from triggering keyboard events when user is...
2012-07-20 04:37:25 -07:00
ahocevar 7249510553 Using the safe unicode representation of the minus sign.
No functional change; see #588.
2012-07-20 09:41:42 +02:00
ahocevar c786952219 Fixing tests. 2012-07-20 09:19:20 +02:00
temporaryaccount 950904f59a Prevent KeyboardDefaults.js from triggering keyboard events when user is typing into the form elements 2012-07-19 18:08:30 +04:00
Pierre GIRAUD 99553d0ae5 Fixing doc. No functional change. 2012-07-17 16:15:03 +03:00
Stéphane Brunner f9cf3a0c95 Merge pull request #588 from sbrunner/minus
use minus sign
2012-07-13 02:58:09 -07:00
Stéphane Brunner a45cbfdb07 use minus sign 2012-07-12 18:32:30 +02:00
ahocevar af70240191 Merge pull request #580 from jorix/_onImgLoad
Fix typo "_onImageLoad" is "_onImgLoad"
2012-07-08 23:37:18 -07:00
Xavier Mamano 9be8bb2416 Fix typo "_onImageLoad" is "_onImgLoad" 2012-07-08 23:50:52 +02:00
Éric Lemoine 14d5525ced Merge pull request #528 from probins/build
Add AMD and version options to build.py
2012-07-03 08:02:27 -07:00
Éric Lemoine 679111fa88 release.sh script - do not remove the build/closure-compiler folder 2012-07-03 08:57:05 +02:00
Éric Lemoine 90d3c2d9a9 WMTS capabilities format - make JSLint happier 2012-07-03 08:45:19 +02:00
Éric Lemoine f7860a329c WMTS capabilities format - make the mid var local to the createLayer function 2012-07-03 08:45:19 +02:00
Frédéric Junod f5aae88a31 Merge pull request #294 from fredj/stopped-map-events
can't listen to mousedown/touchstart on map div
2012-07-02 13:44:06 -07:00
Éric Lemoine 0144a9473e Set VERSION_NUMBER to Release 2.13 dev 2012-07-02 16:33:40 +02:00
Éric Lemoine 37ebc3b991 Merge pull request #567 from rdewit/master
Fix for typo in OL 2.12 release notes
2012-07-01 23:46:29 -07:00
rdewit b837d9bdf4 Fixed typo in CSS code for overriding default tile animation. 2012-07-02 15:00:50 +10:00
ahocevar f3b0c2ec9d Merge pull request #558 from dregade/zoomify
fix size initialization and resolution/zoom usage. Thanks @dregade - this change makes fractional zoom work with Layer.Zoomify.
2012-06-29 05:27:08 -07:00
dregade 74f9a943cc fix serverResolutions if not provided 2012-06-29 09:22:54 +02:00
dregade 7b91c9c26f fix size initialization and resolution/zoom usage 2012-06-28 17:16:22 +02:00
ahocevar f686589d1e Merge pull request #551 from finn-no/projection-test-fix
Fixed broken test
2012-06-27 23:59:56 -07:00
ahocevar 0d8b76d2b2 Merge pull request #546 from finn-no/vendor-prefixes
Vendor prefix detection. Thanks @gregersrygg for this excellent contribution.
2012-06-27 23:29:15 -07:00
Éric Lemoine 0834593f9f Merge branch '2.12' 2012-06-27 22:59:12 +02:00
Éric Lemoine 0412410be0 set VERSION_NUMBER to Release 2.12 2012-06-27 22:56:31 +02:00
Éric Lemoine 301ed5c3ce 2.12 notes - explain how to disable hw accelerated animations (refs #542) 2012-06-27 21:55:37 +02:00
Gregers Gram Rygg 5e0050cc9a Fixed broken test 2012-06-27 18:32:48 +02:00
Gregers Gram Rygg 2bd8b5c4ba Merge branch 'master' of https://github.com/openlayers/openlayers into vendor-prefixes 2012-06-27 16:52:06 +02:00
Gregers Gram Rygg d71e7a7beb Mock div.style through document.createElement hack instead of exposing method in vendorPrefix.js 2012-06-27 16:49:59 +02:00
Gregers Gram Rygg 1ba6aa75d7 Removed Prefix from method names, since now it's part of the module name 2012-06-27 13:33:47 +02:00
Gregers Gram Rygg 7f32342ec3 Moved OpenLayers.Vendor to OpenLayers.Util.vendorPrefix 2012-06-27 13:28:43 +02:00
Gregers Gram Rygg 36451db928 Expose caches instead of _clearCache method 2012-06-27 12:39:47 +02:00
Gregers Gram Rygg d1ed8bb952 Removed duplicate declarations of i and l 2012-06-27 11:57:04 +02:00
Gregers Gram Rygg f40d677164 Removed declaration of OpenLayers if it's not defined (already requires SingleFile.js) 2012-06-27 11:07:41 +02:00
Stéphane Brunner d42f5ee993 Merge pull request #271 from sbrunner/wmts-capabilities
Create Layer from WMTS capabilities in rest mode
2012-06-27 01:34:02 -07:00
Stéphane Brunner 484eda2ee5 add alternate projection parsing 2012-06-26 16:20:36 +02:00
Stéphane Brunner 419ead9191 fix projection syntax 2012-06-26 16:09:38 +02:00
Frédéric Junod 34750774d7 Merge pull request #547 from fredj/wmts-vienna
mobile-wmts-vienna example: requestEncoding already set in defaults
2012-06-25 09:20:10 -07:00
ahocevar 293d173079 Simple example with an OSM map, a marker and a popup. 2012-06-25 17:19:53 +02:00
Stéphane Brunner 81dffce4f4 remove unworking example in wmts-capabilities 2012-06-25 14:58:14 +02:00
Frederic Junod 8058a800ed mobile-wmts-vienna example: requestEncoding already set in defaults 2012-06-25 14:56:40 +02:00
Frederic Junod 0e78d40da2 Update WMS base layer in strategy-cluster-threshold.html 2012-06-25 14:19:26 +02:00
Gregers Gram Rygg 93211a31bc Merge branch 'master' of https://github.com/openlayers/openlayers into vendor-prefixes 2012-06-25 14:17:19 +02:00
Gregers Gram Rygg ab6b2ef008 Use vendor detection for requestAnimationFrame 2012-06-25 13:45:33 +02:00
Gregers Gram Rygg 58a83b0d17 Refactored vendor methods to it's own module 2012-06-25 13:44:35 +02:00
Gregers Gram Rygg b394b93723 Removed unrelated changes 2012-06-25 09:38:23 +02:00
Gregers Gram Rygg fb3acbdbc2 Renamed char (reserved word in ES3) 2012-06-24 23:48:24 +02:00
Éric Lemoine 533e5f4242 Merge pull request #538 from probins/proj
Change Projection so Proj4js no longer has to be global
2012-06-24 02:16:52 -07:00
Gregers Gram Rygg da3495beac Merge branch 'master' of https://github.com/openlayers/openlayers into vendor-prefixes 2012-06-24 02:38:05 +02:00
Gregers Gram Rygg 6d5f5c37df Style vendor prefixes should start with first char uppercase, js properties should be lower 2012-06-23 22:46:43 +02:00
Gregers Gram Rygg b9670a292b Added support to detect vendor-prefixes for non-style objects 2012-06-23 21:48:44 +02:00
ahocevar 78d07c8d8a Merge pull request #524 from ahocevar/panzoombar
Zoom level restriction improvements. r=@bartvde
2012-06-22 16:59:13 -07:00
Marc Jansen b86394b79b Merge branch 'control-inheritance' of https://github.com/marcjansen/openlayers 2012-06-20 18:08:01 +02:00
Stéphane Brunner e976f4f627 Merge pull request #539 from jarofgreen/master
Credits on an example map are wrong.
2012-06-20 06:23:40 -07:00
James dfb1c1e234 According to
http://developer.mapquest.com/web/products/open/map#openlayers (Terms of Use Section)
this is how MapQuest Open Aerial Tiles should be credited.
2012-06-20 12:50:59 +01:00
James a74fa3d52c According to http://wiki.openstreetmap.org/wiki/Mapquest#MapQuest-hosted_map_tiles the attributtion
for Open Street Map derived Map Quest tiles was wrong. Fixed.
2012-06-20 12:10:36 +01:00
Peter Robins b6296a40b6 Change Projection so Proj4js no longer has to be global 2012-06-20 08:43:36 +01:00
Bart van den Eijnden 69c8a8e161 Merge pull request #378 from bartvde/wfsdft
error handling in WFSDescribeFeatureType format (r=@ahocevar,elemoine)
2012-06-19 08:31:57 -07:00
Peter Robins 4e956dc80d Add AMD and version options to build.py 2012-06-18 17:31:35 +01:00
Bart van den Eijnden 62f3f70910 Merge pull request #523 from jachym/master
Modifications for OpenLayers.Format.WPS* (p=@jachym,r=@bartvde)
2012-06-18 06:35:49 -07:00
Jachym Cepicky 43de5e9e0c minor cosmetic changes 2012-06-17 22:04:27 +02:00
ahocevar c8161ed4ee Updating note about the "dimension" attribute. 2012-06-15 11:49:14 +02:00
Éric Lemoine 69214d11b1 improvements to the release.sh script (refs #525) 2012-06-15 11:10:51 +02:00
ahocevar 96dcf6063e Merge pull request #530 from ahocevar/srs-dimension
Respect the srsDimension attribute. r=@bartvde
2012-06-14 06:42:44 -07:00
ahocevar 6052d19c2f Note about mysterious "dimension" attribute. 2012-06-14 15:27:22 +02:00
ahocevar 88982e043f Moving SRSReferenceGroup parser from Base to v3. 2012-06-14 15:18:26 +02:00
ahocevar fa90a42806 Respect the srsDimension attribute.
This also fixes http://trac.osgeo.org/openlayers/ticket/2762. Note: it seems there is no "dimension" attribute for posList in the spec. This attribute name is only used in some examples of the GML 3.1 specification, but it is not mentioned in any of the XSDs.
2012-06-14 12:44:20 +02:00
ahocevar fe31af5c80 Adding unit tests. 2012-06-13 23:14:34 +02:00
ahocevar 032df4b90a Adding a getMinZoom API method.
This can be used by zoom slider controls, e.g. the GeoExt.ZoomSlider. Note that adjustZoom now also respects the map's fractionalZoom setting.
2012-06-13 21:37:59 +02:00
ahocevar 7141d237d9 Create a new reliable updatesize event.
The resize event is not fired in all browsers. What we actually need is an event that is called every time the updateSize method is called.
2012-06-13 21:36:17 +02:00
Tim Schaub 704f36639b Merge pull request #529 from adv-isu/ControlSplitDeactivateFix
OpenLayers.Control.Split.deactivate event unregistration fix.
2012-06-13 09:11:45 -07:00
Jachym Cepicky 42b0172ab2 removed debugging text 2012-06-13 08:58:09 +02:00
Bart van den Eijnden a7c202231f Merge branch '2.12' of github.com:openlayers/openlayers 2012-06-13 07:18:53 +02:00
ahocevar 1d680df6d0 Respect zoom level restriction. 2012-06-12 23:39:29 +02:00
Jachym Cepicky ff06ab64c6 Added changes to Format/WPS*: BoundingBox for DescribeProcess, multiple outputs for Execute as well as Format.WPS.readers 2012-06-12 22:48:48 +02:00
Éric Lemoine 3b69a3083c set VERSION_NUMBER to 2.12-rc7 2012-06-12 22:35:12 +02:00
Éric Lemoine 8208241e55 fix the kml-pointtrack.html example 2012-06-12 22:03:30 +02:00
Éric Lemoine 1af83576f2 Merge pull request #511 from elemoine/mobilecss
iOS (iPad) map animated dragging tile refresh bug
2012-06-12 12:26:09 -07:00
ahocevar 3a5abf552a Merge pull request #519 from ahocevar/zoom-click
New zoomOnClick option for ZoomBox control. r=@bartvde
2012-06-11 10:24:06 -07:00
ahocevar 8ad7ad326a Review comments from @bartvde. 2012-06-11 19:22:05 +02:00
ahocevar 958544f2a7 New zoomOnClick option for ZoomBox control.
This change also finally adds tests for the ZoomBox control.
2012-06-11 19:07:17 +02:00
ahocevar 96359fbc99 Fixing test that broke in FF with ff1f99a03f. 2012-06-11 13:38:42 +02:00
Stéphane Brunner 8d1d08b0c2 add tests to create a REST WMTS Layer 2012-06-11 13:21:35 +02:00
Stéphane Brunner a662f82a1b improve createLayer from WMTS Capabilities 2012-06-11 13:21:35 +02:00
Marc Jansen 4c07332c8a Merge pull request #515 from gravitystorm/patch-4
fix typo
2012-06-09 03:07:24 -07:00
Andy Allan baabbc3658 fix typo 2012-06-09 11:39:00 +02:00
Marc Jansen 0c87de44b4 Merge branch 'control-inheritance' of https://github.com/marcjansen/openlayers into control-inheritance
Conflicts:
	tests/Control/ZoomOut.html
	tests/Control/ZoomToMaxExtent.html
2012-06-08 09:44:36 +02:00
Éric Lemoine 476556e864 use -webkit-transform: translate3d(0, 0, 0) in style.mobile.css for better performance on iOS, and to prevent tile blinking effects on iOS 5 2012-06-07 09:24:32 +02:00
Éric Lemoine 788d5a645a move the style.mobile.css file from examples to theme/default 2012-06-07 09:21:44 +02:00
Antoine Abt 052be82288 Doc fixes for Event.triggerEvent - no functional change. 2012-06-06 12:17:24 +03:00
Andrew Vardeman f64912c09d use two different layers for Split tool's layer and the source layer so as to properly check for event unregistration 2012-06-04 17:25:54 -05:00
Andrew Vardeman cbba98279b unsubscribe from events on the proper layer 2012-06-04 15:47:43 -05:00
Éric Lemoine acb489ad79 set VERSION_NUMBER to 2.12-rc6 2012-06-04 22:02:36 +02:00
Éric Lemoine ed6098fdf4 Merge pull request #505 from jorix/getRenderedDimensions-absolute
Adjustment on "Util.getRenderedDimensions" when "containerElement" is absolutely positioned
2012-06-04 12:54:18 -07:00
Xavier Mamano 4f3252bfe8 Revert "Use "superContainer" to operate well in Android, ."
This reverts commit 2b9ea5007b.
2012-06-04 18:49:43 +02:00
Xavier Mamano 2b9ea5007b Use "superContainer" to operate well in Android, . 2012-06-03 23:54:11 +02:00
Xavier Mamano b7e2222d46 missing semicolons on tests 2012-06-03 22:45:28 +02:00
Xavier Mamano 54a51904e9 Adjustment on "Util.getRenderedDimensions" when "containerElement" is absolutely positioned. 2012-06-03 16:54:20 +02:00
ahocevar 8b2bab9d51 Improvements for Android: no buggy tile transitions, no flicker when tapping. 2012-06-02 22:18:49 +02:00
ahocevar df64798bbb Updating tests after #487. 2012-06-02 14:41:44 +02:00
ahocevar d455d3a62f Merge pull request #487 from ahocevar/better-cache
Don't reuse tile images unless we have a new url to load
2012-06-02 05:23:39 -07:00
ahocevar 99dd0bbcb2 URL switching for all REST encoded WMTS layers. 2012-06-02 01:48:20 +02:00
ahocevar a29009be91 Revert "URL switching for all REST encoded WMTS layers."
This was accidentally committed to master.

This reverts commit df44a79e1b.
2012-06-02 01:43:31 +02:00
Éric Lemoine 066859b806 Merge pull request #486 from elemoine/486
OpenLayers.Control.SelectFeature - unselectAll is unsafe
2012-05-31 23:59:19 -07:00
Éric Lemoine e3d1d3ea62 more tests for SelectControl.unselectAll 2012-05-31 18:27:55 +02:00
Éric Lemoine 976554fc82 make SelectControl.unselectAll safer, use @ahocevar's implementation 2012-05-31 18:27:55 +02:00
Éric Lemoine e603b06715 make SelectControl.unselectAll safer 2012-05-31 18:27:54 +02:00
Frederic Junod bd27f6a2ae Remove deprecated reproject property in Tile.Image tests 2012-05-31 11:47:40 +02:00
Frédéric Junod 1c4253f465 Merge pull request #500 from fredj/scrollable
Handler.MouseWheel: don't always block the handler
2012-05-31 02:08:23 -07:00
Frédéric Junod 4c788c156b Merge pull request #474 from fredj/2685
Remove Handler.MouseWheel mozilla workaround.
2012-05-31 01:05:17 -07:00
Frederic Junod 0e24164da3 Remove mouse wheel work-around in tests for Opera < 9.2 (see #498) 2012-05-31 09:39:28 +02:00
Frederic Junod b0377b54b0 Call the callbacks if the cursor is over a div with an 'olScrollable' css class 2012-05-31 09:36:28 +02:00
ahocevar 2ff5a7b599 Merge pull request #498 from gregersrygg/remove-old-opera-mouse-wheel-fix 2012-05-30 23:12:14 +02:00
ahocevar 1d957c7f5c Merge branch 'master' of github.com:openlayers/openlayers into upstream/master 2012-05-30 23:08:06 +02:00
ahocevar c1690b26c4 Merge pull request #483 from gregersrygg/master
Improve analog mouse wheel zooming
2012-05-30 14:03:51 -07:00
Frédéric Junod 2bb9385b53 Merge pull request #499 from fredj/global-var
Remove global variable 'overflow', no functional change.
2012-05-30 07:55:45 -07:00
Frederic Junod 792e6d6a2c Remove global variable 'overflow', no functional change. 2012-05-30 16:42:30 +02:00
Gregers Gram Rygg 845e612b68 Merge branch 'master' of https://github.com/openlayers/openlayers into remove-old-opera-mouse-wheel-fix 2012-05-30 15:37:16 +02:00
Gregers Gram Rygg 5c7b99373e Merged with upstream master 2012-05-30 15:31:37 +02:00
Gregers Gram Rygg aa0ec38b20 Removed fix for Opera < 9.2 2012-05-30 15:17:54 +02:00
Gregers Gram Rygg dc69749e3b Reverted Safari hack for MouseWheel test 2012-05-30 15:05:27 +02:00
Gregers Gram Rygg 09058e2457 Reverted deletion of fix for Opera < 9.2 2012-05-30 15:02:29 +02:00
Gregers Gram Rygg 2725cd93f6 Reverted chrome added to BROWSER_NAME 2012-05-30 15:01:25 +02:00
Gregers Gram Rygg f7f763d1d3 Removed analog wheel detection and simplified code 2012-05-30 14:37:43 +02:00
Frédéric Junod debbba6454 Merge pull request #497 from fredj/coding-style
coding style: declare new arrays using []
2012-05-30 02:59:37 -07:00
Frederic Junod 99f6e65e7b coding style: declare new arrays using [] 2012-05-30 09:56:06 +02:00
Frederic Junod 74dd106082 Use OpenLayers.Event.preventDefault, deprecate OpenLayers.Renderer.SVG.preventDefault. 2012-05-30 09:07:49 +02:00
Frederic Junod a6119f6a75 Prevent the default browser behavior without stopping the event propagation. 2012-05-30 09:07:49 +02:00
Frederic Junod cf92ced1c8 Add tests/manual/map-events.html test file 2012-05-30 09:07:49 +02:00
Marc Jansen 5794502f98 Replace tabs in example with spaces. No functional change. 2012-05-29 22:03:25 +02:00
Marc Jansen 366faf6871 Merge pull request #423 from marcjansen/no-$
Remove the aliasing of OpenLayers.Util.getElement to window.$
2012-05-29 12:52:27 -07:00
Marc Jansen acb9f950df Use document.getElementById in examples.
Previously examples would either use the now deprecated `window.$` or the
non-API-method `OpenLayers.Util.getElement`. This was well caught by @probins
and @elemoine.
2012-05-29 21:47:22 +02:00
Gregers Gram Rygg 51c7f12486 Avoid logic change from existing code 2012-05-29 18:18:24 +02:00
Gregers Gram Rygg 2da16a0b69 Removed caching of the analog wheel detection for users switching between mouse/touchpad 2012-05-29 17:54:02 +02:00
Gregers Gram Rygg dd410dcd7e Fixed indentation 2012-05-29 17:08:01 +02:00
Gregers Gram Rygg dc082c3442 Added note that chrome was added to the BROWSER_NAME test 2012-05-29 17:03:33 +02:00
Gregers Gram Rygg f5a9b4446a Added analog scroll wheel improvements to 2.13 changelog 2012-05-29 16:11:30 +02:00
Gregers Gram Rygg 8f38ba5bd0 Chagned APIProperty to Property for isAnalogScrollWheel 2012-05-29 16:08:15 +02:00
Gregers Gram Rygg 1a25a0704f Changed to test for WebKit instead of safari because chrome was added to the OpenLayers.BROWSER_NAME test 2012-05-29 14:21:49 +02:00
Gregers Gram Rygg 50d24d7756 Improve analog mouse wheel detection and normalize event.wheelDelta for Safari 2012-05-29 13:26:27 +02:00
Gregers Gram Rygg a1dff8ad9b Changed OpenLayers.BROWSER_NAME to be 'chrome' for Google Chrome instead of 'safari'. Added OpenLayers.IS_WEBKIT and changed tests where necessary. 2012-05-29 13:23:40 +02:00
Frédéric Junod 989259c87f Merge pull request #477 from fredj/overviewmap-title
Add new maximizeDivTitle and minimizeDivTitle options to Control.OverviewMap
2012-05-29 00:16:02 -07:00
Frederic Junod c696b34a84 Add new maximizeTitle and minimizeTitle options to Control.OverviewMap 2012-05-29 09:04:00 +02:00
ahocevar 5c42aa6fce Merge pull request #491 from probins/kmlname
KML createPlacemark should use attributes.name
2012-05-28 04:58:58 -07:00
Peter Robins 082a1f38f4 KML createPlacemark should use attributes.name 2012-05-27 14:26:15 +01:00
Éric Lemoine 0accbb77a7 Merge pull request #489 from probins/kmlstyle
Format/KML: correct parseStyles docs
2012-05-26 11:46:43 -07:00
Éric Lemoine 12b8166743 Merge pull request #410 from probins/fixzoom
Fix Map so zoomChanged when zoom is constructor option
2012-05-26 09:32:26 -07:00
Peter Robins 9a7b4bd06e Format/KML: correct parseStyles docs 2012-05-26 16:34:01 +01:00
ahocevar ff1f99a03f Don't reuse tile images unless we have a new url to load.
Without this change, some browsers don't cache the images. See #454 for a discussion about this issue.
2012-05-25 18:47:57 +02:00
ahocevar 88fd8038c8 Simplifying configuration. 2012-05-25 18:37:12 +02:00
ahocevar 440b9fb6d3 Using updated URLs. 2012-05-25 17:30:27 +02:00
Éric Lemoine 2141cb9c0a Merge branch '2.12' 2012-05-25 15:08:58 +02:00
Éric Lemoine f5c43d6506 set VERSION_NUMBER to Release 2.12-rc5 2012-05-25 14:55:14 +02:00
ahocevar df44a79e1b URL switching for all REST encoded WMTS layers. 2012-05-25 14:54:06 +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
ahocevar 5879a71f9c Don't use fade effect on labels. 2012-05-25 13:54:31 +02:00
tschaub 1108433465 Clarifying names. 2012-05-24 16:42:54 -06:00
tschaub f5e49fa82e One fewer use of rsync. 2012-05-24 16:40:56 -06:00
tschaub f7e0edca12 Fewer uses of rsync. 2012-05-24 16:34:15 -06: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
Frederic Junod 05162a7f9d Use map.getLonLatFromPixel instead of map.getLonLatFromViewPortPx
The former is the API method.
2012-05-24 14:00:25 +02:00
Tim Schaub 97983db785 Adding dependencies where they are used. 2012-05-22 22:28:51 -06:00
Gregers Gram Rygg 12931612ea Don't affect digital mouse wheels (a.k.a. step-scroll) 2012-05-22 17:43:52 +02:00
Gregers Gram Rygg f377d0387f Adjusted delta in MouseWheel test 2012-05-22 17:29:12 +02:00
Gregers Gram Rygg 2b8b8807ff Merge branch 'master' of https://github.com/openlayers/openlayers 2012-05-22 17:11:40 +02:00
Gregers Gram Rygg a18ce5adf6 Rewrite PinchZoom to detect vendor-prefix, so it works in more browsers 2012-05-22 17:06:03 +02:00
Gregers Gram Rygg 875a2b98ff API description should inform that the method only tests for DOM style properties. Not object properties. 2012-05-22 17:05:13 +02:00
Antoine Abt dc3414d6dd Merge pull request #482 from nachouve/master
Just a small spelling corrections in the documentation.
2012-05-22 05:05:51 -07:00
Nacho Uve 57f4d42de0 Small spelling corrections in the documentation. 2012-05-22 13:36:08 +02: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
Gregers Gram Rygg f27002b565 Tests for vendor prefix detection 2012-05-21 16:41:55 +02:00
Gregers Gram Rygg e3a32f29a8 Util methods to detect vendor prefix for DOM properties and CSS 2012-05-21 16:40:36 +02:00
Gregers Gram Rygg 95bc51ce3d Make analog mouse wheel adjustments configurable and reduce sensitivity 2012-05-21 15:11:05 +02:00
Gregers Gram Rygg 7bc54e1517 Don't round wheel change zoom for maps with fractional zoom 2012-05-21 15:08:31 +02:00
Pierre GIRAUD 88d927a827 Merge pull request #478 from pgiraud/metaKey
Adding support support for metaKey (Mac Cmd key)
2012-05-21 04:33:48 -07: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
Pierre GIRAUD a997334816 Adding support support for metaKey (Mac Cmd key) 2012-05-21 11:13:48 +02: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
tschaub 348dffcda6 Merge branch '2.12' of git://github.com/openlayers/openlayers 2012-05-18 13:30:37 -06: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
fredj 2bcd904df6 Remove Handler.MouseWheel mozilla workaround.
This workaround was created because of a mozilla bug [1] with
clientX, clientY on wheel events (DOMMouseScroll).

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=352179
2012-05-18 14:55:31 +02: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
root c673dbf9f2 Merge branch '2.12' of git://github.com/openlayers/openlayers 2012-05-17 20:39:48 +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
tschaub a612302a11 Demonstrating the use of MapQuest tiles in OL. 2012-05-17 11:06:21 -06: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 985233c2dd Merge branch '2.12' 2012-05-16 21:05:47 +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
ahocevar e2c9662fa1 Merge pull request #451 from ahocevar/more-title
There is no reason to restrict graphicTitle to externalGraphic symbols.
2012-05-15 07:46:33 -07:00
ahocevar 7cabcb10c1 Merge pull request #7 from fredj/more-title
Rename style.graphicTitle to style.title
2012-05-15 06:28:49 -07:00
Frederic Junod 8268616ec8 Rename style.graphicTitle to style.title (the former is now deprecated) 2012-05-15 12:49:39 +02: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
Marc Jansen ea76d24f4c Merge pull request #450 from fbuchinger/patch-2
simplified jquery mobile example
2012-05-14 23:50:49 -07:00
Marc Jansen a87f5ac16a Merge branch 'master' of https://github.com/openlayers/openlayers into control-inheritance 2012-05-15 08:34:53 +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
Éric Lemoine f7d4657c14 fix typo in Request.js (refs #462) 2012-05-12 08:56:21 +02:00
Éric Lemoine 9933271b2a Merge pull request #462 from tschaub/circular
all examples are broken
2012-05-11 23:53:57 -07:00
Tim Schaub cb7cf5e18e Allow for circular dependency in XMLHttpRequest.js
To make custom builds easier, it's convenient to have a OpenLayers.Request depend on OpenLayers.Request.XMLHttpRequest (see 18b4d6808d).  This makes it so we don't know which is going to be included first.  To get around this, we can be careful about when we define OpenLayers.Request.
2012-05-11 17:41:24 -06:00
Tim Schaub 866fa443fe Merge branch '2.12' of github.com:openlayers/openlayers 2012-05-11 01:20:37 -06: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
Tim Schaub a2c556f5c7 Updating release script to work with new structure
After the website infrastructure changes (cadb20c18a), the release script now puts stuff in /osgeo/openlayers/sites/openlayers.org (instead of /osgeo/openlayers/docs).
2012-05-10 16:03:38 -06:00
Éric Lemoine be6c90ed49 Merge branch '2.12' 2012-05-10 15:54:54 +02: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
Tim Schaub cadb20c18a Use clones of git repos for site building.
The svn interface to our repos on git is not behaving well.  This is resulting in the website, examples, and api docs not being updated when they should (`svn up` is not doing what it should).

Instead of using svn checkouts, we should use clones of the git repos.  At the same time, it makes sense to organize things a bit.  These changes depend on a new structure on the openlayers.org machine:

    /osgeo/openlayers/repos - clones of our openlayers, docs, and website repos
    /osgeo/openlayers/sites - sources for openlayers.org, dev.openlayers.org, and docs.openlayers.org

Where things are "built" (e.g. minifying js and modifying example markup to point to that js), changes are now made outside of the repo cleans.  Having dirty repos was another source of build failures.

Changes still need to be made to the release process/script.
2012-05-10 01:03:54 -06:00
Tim Schaub 8dabefebb2 Remove unused urllib2 2012-05-10 01:02:40 -06:00
Tim Schaub f115c7a943 Use commit hash instead of (mock) svn rev.
When we upgraded to git, we didn't fully change over the way the website and examples are built.  The cron job that runs the update script only built the website & examples if the revision returned by the svn interface to the GitHub repo was different than the previously stored revision.  At some point, using `svn info` on the repo stopped being reliable.  For example, this is what I get when running this today (in 2012):

    svn info https://github.com/openlayers/openlayers/

    Path: openlayers
    URL: https://github.com/openlayers/openlayers
    Repository Root: https://github.com/openlayers/openlayers
    Repository UUID: d631b94f-4ba7-6298-eb8f-ce57b7db7bff
    Revision: 5488
    Node Kind: directory
    Last Changed Author: schuyler.erle
    Last Changed Rev: 5488
    Last Changed Date: 2006-05-12 12:35:22 -0700 (Fri, 12 May 2006)

(Last change looks like it was 6 years ago.)

We should be using a proper clone of the git repo and building the website and examples out of this.  Until then, we can at least use `git-ls-remote` to check what the latest HEAD from the canonical repo looks like.  This should get the website and examples building again (they stopped being updated a few weeks ago).
2012-05-09 19:48:51 -06:00
ahocevar 18b4d6808d Adding missing dependency. Non-functional change. 2012-05-09 11:03:57 +02:00
Frederic Junod 6e34b048ff examples/cartodb-geojson.html: kill long lines, use local OpenLayers.js 2012-05-07 13:06:14 +02:00
Javier de la Torre 81ee9524c7 Added example to retrieve and display data from CartoDB using the SQL API 2012-05-07 12:59:50 +02:00
Éric Lemoine 98fb795f97 set VERSION_NUMBER to 2.12-rc3 2012-05-05 14:27:12 +02:00
Éric Lemoine e060b2ee4d Merge branch '2.12' 2012-05-05 14:25:51 +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
ahocevar d01f57d3e6 There is no reason to restrict graphicTitle to externalGraphic symbols. 2012-05-05 12:49:25 +02:00
Éric Lemoine 2608a0ebe7 fix resize handling in IE 9 and better (refs #449) 2012-05-04 14:28:12 +02:00
Éric Lemoine b61cfdb054 remove the editing toolbar from the highlight-feature.html, it does not make sense in this example and it prevents selection from working when activating navigation again 2012-05-04 00:12:26 +02:00
fbuchinger 678bf86337 simplyfied jquery mobile example 2012-05-03 17:47:54 +03:00
Éric Lemoine 743dc9a738 Merge branch '2.12' 2012-05-02 17:11:37 +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 bab9b0fa66 Merge pull request #443 from jorix/no-firebug
Remove "firebug" on the tests.cfg
2012-05-01 07:19:54 -07:00
Éric Lemoine 612401a644 fix bug where tiles with gutters are shifted (refs #441) 2012-04-28 21:23:55 +02:00
Xavier Mamano 9c0503a99f Remove "firebug" on the tests.cfg 2012-04-28 18:33:22 +02:00
Stéphane Brunner da67953c61 add a REST example in wmts-capabilities 2012-04-27 18:22:37 +02:00
Frederic Junod 5f1651a30f Add missing hover option to the SelectFeature control.
Thanks Arnie Shore.
2012-04-25 10:34:40 +02:00
Marc Jansen 042ad8d711 Minors in the notes file. 2012-04-25 09:37:37 +02:00
Marc Jansen 9bbc1d4318 Update notes for 2.13 about deprecation of window.$ 2012-04-25 09:31:22 +02:00
Marc Jansen a0d0180e03 Readd tests for the now deprecated window.$ 2012-04-25 09:29:52 +02:00
Marc Jansen de97975144 Readd the window.$ mapping in the deprecated.js file 2012-04-25 09:28:43 +02:00
Marc Jansen c56a861ec7 Merge branch 'master' of https://github.com/openlayers/openlayers into no-$ 2012-04-25 09:16:27 +02:00
Marc Jansen c4a087d4dd Merge pull request #436 from mpriour/cql_deps
Add required OpenLayers.Filter deps to OpenLayers.Format.CQL
2012-04-24 23:47:58 -07:00
Matt Priour 77cf56a4b6 Add required OpenLayers.Filter deps to OpenLayers.Format.CQL 2012-04-24 22:52:19 -05: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
Tim Schaub 2b5b59bea5 Merge pull request #416 from tschaub/dotless
Use dotless identifiers.
2012-04-23 16:27:11 -07:00
Tim Schaub 9a7b8b1cca Add a bit to the release notes about dotless identifiers. 2012-04-23 19:25:39 -04:00
Tim Schaub ec7b12257b Stay on the world when transforming coords.
Instead of a transform that results in +/- Infinity northing, we can constrain the results to be within the world bounds.
2012-04-23 18:49:55 -04: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
crschmidt 305c6ef064 Merge pull request #433 from bjornharrtell/patch-1
Mark context property as part of API
2012-04-23 04:08:36 -07:00
Björn Harrtell 3b91e41690 Mark context property as part of API. It's very useful and is used in examples (at least strategy-cluster-threshold) 2012-04-23 12:01:55 +03:00
crschmidt 43126239ff Merge pull request #429 from flamandro/permalink
Fix Trac #3381. Applied patch from ticket #3381 to Permalink tests and updated Permalink.js to pass the tests by maintaining anchors in links.
2012-04-22 12:58:17 -07:00
John Lien ab87c33670 Applied patch from ticket #3381 to Permalink tests and updated Permalink
control to pass tests by maintaining anchors.

All tests continue to pass.
2012-04-22 14:48:12 -04:00
Marc Jansen e70ee09a4d Merge branch 'master' of https://github.com/openlayers/openlayers into no-$ 2012-04-20 23:45:37 +02:00
Marc Jansen 1691d4a71f Minor API doc enhancement 2012-04-21 00:23:41 +03:00
Marc Jansen e690f28517 replace tab with spaces 2012-04-21 00:14:24 +03:00
Éric Lemoine a57738e817 Merge branch '2.12' 2012-04-20 15:29:46 +02: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
ahocevar a73d9e3804 Merge pull request #407 from ahocevar/alwaysInRange
alwaysInRange not updated when using addOptions. r=@elemoine,@bartvde
2012-04-19 09:00:26 -07:00
ahocevar 70161c5628 Merge pull request #421 from ahocevar/bing-overlay
Make sure tiles are loaded for Bing overlays. r=@bartvde
2012-04-19 07:03:56 -07:00
ahocevar 551f509b49 Make sure tiles are loaded for Bing overlays.
Previously, Bing overlays that were added to an existing map had empty tiles, because tiles are added before the layer url is set in initLayer. This change makes sure tiles are only rendered when the layer url is available, by not processing the tile queue before the layer url is set.
2012-04-19 16:02:23 +02:00
ahocevar 363f837acb Using resolution instead of zoom level for initial center (see #418). 2012-04-19 13:29:56 +02:00
ahocevar ef33f01504 Respect alwaysInRange from prototype, but allow changes in addOptions. 2012-04-19 12:02:18 +02:00
Tim Schaub faaa2cec1f Using compiled regexp to replace dots.
Though split and join appear to be more efficient in Chrome, a compiled regexp looks to be a safer bet across the board.  See http://jsperf.com/dotless (and http://jsperf.com/dotless-nop for the NOP).
2012-04-18 09:46:24 -04:00
Tim Schaub 163caf0e8d Underscore in canvas hit detection. 2012-04-18 09:40:27 -04:00
Tim Schaub 8533edd19b Toward dotless identifiers. 2012-04-18 09:39:58 -04:00
Marc Jansen 4cd34bc851 Added tests for OpenLayers.Control.Pan. 2012-04-17 21:31:12 +02:00
Marc Jansen d86c1b6c9c Changed Pan control to inherit from OpenLayers.Control.Button. 2012-04-17 21:29:32 +02:00
Marc Jansen 56d7cee8cf Protect the trigger action of pan control by checking whether
we were added to a map prior to calling this.map.pan().
2012-04-17 21:25:56 +02:00
Marc Jansen 53ed973eec Added tests for OpenLayers.Control.Pan. 2012-04-17 21:24:54 +02:00
Marc Jansen d08fb575b1 The changed controls should also check whether they have correctly
inherited the property 'type' of the new parent class.
2012-04-17 20:21:06 +02:00
Marc Jansen d5bdadc18e Removed erroneously commited alert-statements in tests. 2012-04-17 20:06:40 +02:00
Marc Jansen 292da06150 Changed ZoomIn control to inherit from OpenLayers.Control.Button. 2012-04-17 20:05:47 +02:00
Marc Jansen 4af41b41f5 Added tests for ZoomIn control. 2012-04-17 20:04:49 +02:00
Tim Schaub bce40d9e42 Merge branch 'master' of github.com:openlayers/openlayers 2012-04-17 12:12:38 -04:00
Tim Schaub f70b500aac Merge branch '2.12' of github.com:openlayers/openlayers 2012-04-17 12:11:38 -04:00
Bart van den Eijnden ce18994664 Merge pull request #413 from bartvde/extendeddate
allow the regex for date parsing to be specified, so that applications can potentially deal with dates before BC in ISO-8601 (r=@ahocevar)
2012-04-17 08:41:11 -07:00
Bart van den Eijnden a96d32d284 rename to dateRegEx and provide default value in api docs 2012-04-17 17:39:37 +02:00
Bart van den Eijnden f07660e8c5 implement @ahocevar's suggestion instead 2012-04-17 15:57:51 +02: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
Bart van den Eijnden 90a8ac9c71 allow for negative years in dates 2012-04-17 14:23:56 +02:00
Marc Jansen a5c5fd8d3e Added tests for the 'type' property which is now inherited from the
parent class.
2012-04-17 08:20:09 +02:00
Marc Jansen 3dfa3fd157 Changed ZoomOut control to inherit from OpenLayers.Control.Button. 2012-04-17 08:11:48 +02:00
Marc Jansen c40bdc90e9 Added tests for ZoomOut control. 2012-04-17 08:11:08 +02:00
Frederic Junod e14d7d686e Fix Util.html test for Chrome/Chromium browsers. 2012-04-16 10:41:07 +02:00
ahocevar b683c9bae1 No csstidy, because it changes the css and breaks the zoom buttons. 2012-04-14 18:35:51 +02:00
Éric Lemoine 342f647135 Merge branch '2.12' 2012-04-14 15:00:14 +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
Peter Robins b672a58c35 Fix Map so zoomChanged when zoom is constructor option 2012-04-13 10:29:34 +01:00
Marc Jansen 029bdaccde The ZoomToMaxExtent control should extend the OpenLayers.Control.Button
and not OpenLayers.Control.
2012-04-13 09:59:44 +02:00
Marc Jansen 84e5c47caa Add tests for the ZoomToMaxExtent control. 2012-04-13 09:58:59 +02: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
Frédéric Junod 6adac12fab Merge pull request #405 from fredj/handler-options
Move handlerOptions to the Control prototype.
2012-04-11 05:08:54 -07:00
Éric Lemoine 6a039fd700 Merge branch '2.12' 2012-04-11 12:58:06 +02:00
Frederic Junod 1a59e47737 Move handlerOptions to the Control prototype. 2012-04-11 12:46:20 +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 24d421a449 Merge branch '2.12' of git://github.com/openlayers/openlayers 2012-04-04 14:50:53 -10: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
Marc Jansen 326598a75c Merge pull request #361 from sdikiy/patch-1
accurate calculation of the centroid for small objects with large coordinates (p=sdikiy,r=marcjansen,sbrunner)
2012-04-03 11:58:57 -07:00
Éric Lemoine 5c597de900 Merge pull request #384 from elemoine/gridclass
renaming from olLayerGridTile to olLayerGrid
2012-04-03 08:55:49 -07:00
ahocevar 96e5241507 Vector layer should not be a base layer any more. 2012-04-03 17:16:20 +02:00
ahocevar fef8b98f32 Merge branch 'master' of github.com:openlayers/openlayers 2012-04-03 17:16:06 +02:00
ahocevar 530952551f Merge pull request #382 from ahocevar/wps
WPS example and improvements. r=@marcjansen,@bartvde
2012-04-03 06:30:15 -07:00
ahocevar f21678f55b Addressing review comments from @bartvde and @marcjansen. 2012-04-03 15:28:44 +02: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 160ccef8d3 Merge branch '2.12' 2012-04-02 21:10:19 +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
ahocevar 3385c2b5b1 Code cleanup. 2012-04-02 16:42:33 +02:00
ahocevar 6ce9a36715 Use demo.opengeo.org 2012-04-02 16:42:14 +02:00
Antoine Abt 99da137be0 Merge pull request #381 from gravitystorm/patch-1
Fix typo
2012-04-02 06:16:31 -07:00
Andy Allan c2f517ba18 Fix typo. 2012-04-02 15:08:45 +02:00
Frederic Junod 8c7263f16e 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 09:30:57 +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
ahocevar 46ba55d886 Allow for SLD input. 2012-03-30 19:57:54 -07:00
ahocevar e4247472f9 Adding a margin for nicer display of the docs. 2012-03-30 19:57:20 -07:00
David Winslow 337afdfe8f Move descriptive text for WPS demo to the right 2012-03-30 22:15:42 -04:00
David Winslow 09b459619b Merge branch 'wps' of git://github.com/ahocevar/openlayers into wps 2012-03-30 21:50:00 -04:00
David Winslow 2789c29c98 Add NODATA header to process sample TIFF 2012-03-30 21:48:53 -04:00
ahocevar 8bc307b5a1 Allowing copies of literal text fields. 2012-03-30 18:45:52 -07:00
ahocevar c3fe359fa6 WPS example; support for BoundingBox in WPS format 2012-03-30 18:02:24 -07:00
Bart van den Eijnden a00b565fcc Merge pull request #372 from bartvde/graphictext
setting graphic to false by default when reading a TextSymbolizer (r=@ahocevar)
2012-03-30 17:00:27 -07:00
Bart van den Eijnden 4b22a1e2d2 move logic into GeoServer profile as suggested by @ahocevar 2012-03-31 01:26:37 +02:00
Bart van den Eijnden e773ec32d1 incorporate @ahocevar's suggestion 2012-03-30 23:33:10 +02:00
Bart van den Eijnden 2e83863e90 error handling in WFSDescribeFeatureType format 2012-03-30 23:04:03 +02:00
sdikiy 0460bd2ae8 change getCentroid 2012-03-30 23:20:21 +03:00
Bart van den Eijnden 9a5364f309 add missing requires 2012-03-30 20:37:15 +02:00
sdikiy 23301e10ea add new test for getCentroid 2012-03-30 16:52:29 +03: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
Paul Spencer 943efd66b0 Merge pull request #370 from pagameba/overviewmap
OverviewMap custom div bug.
2012-03-30 05:18:05 -07:00
Paul Spencer 30af95d034 a working test thanks to Marc. 2012-03-30 07:59:22 -04: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
unknown ecbf9966ba Merge branch 'master' into patch-1 2012-03-30 12:25:12 +03:00
Éric Lemoine e35dfe1a5a Merge branch '2.12' 2012-03-30 08:44:59 +02:00
Éric Lemoine e0b93c2e45 The OpenLayers code is published under the 2-clause BSD license 2012-03-30 08:33:55 +02:00
Bart van den Eijnden cc68be49bf Merge pull request #373 from bartvde/describelayer
add exception handling to WMSDescribeLayer Format (r=@tschaub)
2012-03-29 15:14:20 -07:00
Bart van den Eijnden 33f8fa0aff add exception handling to WMSDescribeLayer Format 2012-03-29 23:22:31 +02:00
Éric Lemoine 650df2a8f1 change copyright header in every OpenLayers js file 2012-03-29 22:14:56 +02:00
Bart van den Eijnden 75c187d5a3 setting graphic to false by default when reading a TextSymbolizer, just like is done on other symbolizers 2012-03-29 22:13:24 +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
Paul Spencer d4e6253447 indent 4. 2012-03-29 07:32:25 -04: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
Paul Spencer 9e31fb6e9a Update OverviewMap to test if calling minimizeControl or maximizeControl causes an exception. 2012-03-28 14:06:51 -04:00
Paul Spencer 175423b3ba In the case of an overview map rendered into a user-provided div, the minimize and maximize divs are not created so we need to test for existence of them in the showToggle method. 2012-03-28 11:40:14 -04: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
ahocevar 48a2d023f5 Merge branch '2.12' of github.com:openlayers/openlayers 2012-03-27 12:47:46 -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
sdikiy 8c93d477ba accurate calculation of the centroid for small objects with large coordinates 2012-03-27 16:12:31 +03:00
Peter Robins 720a815479 Improvements for projection docs 2012-03-27 14:07:58 +02:00
Frederic Junod d1d5ab9930 Merge branch '2.12' 2012-03-27 09:31:53 +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
Éric Lemoine fb1a49e87e Merge pull request #349 from elemoine/releasesh
release.sh updates
2012-03-23 14:28:49 -07: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
Bart van den Eijnden 0dce0b9a5b Merge pull request #348 from bartvde/getcentroid
getCentroid should just return the first point if a linear ring only has less than three components (r=@tschaub)
2012-03-23 04:41:12 -07:00
Éric Lemoine fda512f904 minor changes to the release.sh script 2012-03-22 22:16:35 +01:00
Éric Lemoine 863011b2b7 set VERSION_NUMBER to Release 2.12-rc1 2012-03-22 18:59:14 +01:00
Bart van den Eijnden 955c83baa9 getCentroid should just return the first point if a linear ring only has less than three components 2012-03-22 12:59:55 +01:00
Bart van den Eijnden 965e269cfd minor change to Protocol.CSW to deal with the situation where the GeoExt ProtocolProxy is configured with setParamsAsOptions true 2012-03-22 11:09:38 +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 067a11f1d9 Merge branch '2.12' 2012-03-22 07:05:02 +01:00
Éric Lemoine d563084745 fix the layerLoadMonitoring.html example, refs #342 2012-03-22 07:04:13 +01:00
ahocevar f84a2d0bc9 Merge branch '2.12' 2012-03-21 23:35:51 +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
tschaub a28a9d2121 Merge branch '2.12' of github.com:openlayers/openlayers 2012-03-21 16:11:30 -06: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
Bart van den Eijnden 6b8c7a8ca5 Merge pull request #334 from bartvde/sldwhitespace
ignore whitespace in filter values (r=@marcjansen,@ahocevar)
2012-03-21 05:16:45 -07:00
Bart van den Eijnden 221292436a add expectWithTrim to all test cases and protect numericIf against failure 2012-03-21 13:15:16 +01:00
Bart van den Eijnden 430d09eb55 incorporate review by @marcjansen 2012-03-21 12:17:44 +01: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
Bart van den Eijnden 94bd37031d instead, add a trimWhitespace option to OpenLayers.String.numericIf as discussed with @ahocevar 2012-03-19 13:07:49 +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
Bart van den Eijnden 7a769830fe ignore whitespace in filter values 2012-03-19 11:13:27 +01: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
ahocevar 81b67db101 Patch from http://trac.osgeo.org/openlayers/ticket/3307.
Uses a remote GeoServer now, which is added to the allowed hosts for proxy.cgi.
2012-03-14 17:12:06 +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 0cd3b6553e Be consistent when aliasing OpenLayers.Util.getElement in examples. 2012-03-05 22:36:28 +01:00
Marc Jansen 5af323dc51 No need to mockup a custom $-method in test anymore. 2012-03-05 22:34:17 +01:00
Marc Jansen 5c2c39c9dd Fix the examples that used our '$' method. 2012-03-05 22:27:43 +01:00
Marc Jansen de2eeaab0b Fix up a test that used our $(). 2012-03-05 22:26:11 +01:00
Marc Jansen ece872b81a Remove our aliasing of OpenLayers.Util.getElement to window.$. 2012-03-05 22:23:57 +01:00
Marc Jansen 25bba1c937 Remove not needed document.getElementById in test. 2012-03-05 21:41:39 +01:00
Marc Jansen 8f0280e8bd Add two trivial tests for the presence and default
value of OpenLayers.ImgPath.
2012-03-05 21:23:40 +01:00
Marc Jansen 768ad0108d Move the declaration of OpenLayers.ImgPath from Util.js to OpenLayers.js. 2012-03-05 21:00:05 +01:00
ahocevar fb3caf1561 Revert "Merge branch 'master' of github.com:openlayers/openlayers"
This reverts commit 12f191a690, reversing
changes made to 49b3dc85c2. See #269.
2012-03-05 18:56:50 +01:00
Éric Lemoine c8f0dfd728 Merge pull request #261 from mpriour/multiple-builds
Package OpenLayers with 3 pre-built versions (Full, light, & mobile)
2012-03-05 09:02:52 -08:00
Éric Lemoine 44cb6a404b Merge pull request #254 from mpriour/light-build
Initial light build config file
2012-03-05 09:01:21 -08:00
Matt Priour b8f396f44d Remove GML, KML, & WmsGFI for vector shapes on non-interactive tiles use case 2012-03-05 10:48:49 -06:00
Matt Priour ba5f638120 Merge branch 'master' into light-build 2012-03-05 10:46:04 -06:00
ahocevar abbf679ab6 Fixing typo in docs 2012-03-05 16:46:45 +01:00
ahocevar d6ffd60199 Merge pull request #283 from ahocevar/tileerror
New events: loaderror for Tile, tileerror for Layer.Grid. r=@bartvde
2012-03-05 06:10:22 -08:00
ahocevar fe63d0aa63 New events: loaderror for Tile, tileerror for Layer.Grid. 2012-03-05 14:20:01 +01:00
Éric Lemoine 8c0d6880df Merge pull request #282 from probins/img
OpenLayers.ImgPath should be API property
2012-03-05 05:19:08 -08:00
Peter Robins eb4bf5d438 OpenLayers.ImgPath should be API property 2012-03-05 13:13:51 +00:00
ejn fbc3b5475d Improved regex, added tests 2012-03-05 12:14:56 +01:00
ahocevar d7533096e9 Fixing Renderer/SVG.html tests for IE9 (see #277). 2012-03-05 12:00:18 +01:00
ahocevar 5674d440c8 Fixing IFrame test for IE9 (see #277). 2012-03-05 11:49:07 +01:00
Xavier Mamano bfb379f349 Fix some problems in the documentation. 2012-03-05 11:43:09 +01:00
Bart van den Eijnden d3a4275136 Merge pull request #279 from bartvde/gfi_exceptions
GetFeatureInfo requests should take EXCEPTIONS parameter from the WMS layer (r=@ahocevar)
2012-03-05 01:07:17 -08:00
Bart van den Eijnden 17f7b2feab use separate testcase as suggested by @ahocevar 2012-03-05 10:04:15 +01:00
Bart van den Eijnden 6204fe50c6 GetFeatureInfo requests should take EXCEPTIONS parameter from the WMS layer 2012-03-05 09:56:31 +01:00
Bart van den Eijnden cf9cc27279 fix typo 2012-03-05 09:47:37 +01:00
Éric Lemoine ba7e820adb Merge pull request #278 from elemoine/revert-camelize-removal
Revert camelize removal
2012-03-05 00:37:32 -08:00
Tim Schaub 938cd65116 Merge pull request #275 from probins/newex
New example using YQL for cross-origin xml (thanks @probins).
2012-03-04 20:28:46 -08:00
Tim Schaub 80ab5d5161 Resize on zoom (would that it were the default). 2012-03-04 20:45:42 -07:00
Tim Schaub 6345e87f04 Merge pull request #276 from jorix/remove_unused_code
Remove unused snappingOptions.
2012-03-04 19:10:41 -08:00
Tim Schaub 55d14698aa Reverting the doc menu changes.
While these were legitimate changes, I'm reverting the API doc menu changes to separate concerns.
2012-03-04 20:01:35 -07:00
Éric Lemoine c58f093615 Revert "Removing camelize method."
This reverts commit 43ef0920c2.
2012-03-04 23:22:21 +01:00
Éric Lemoine 55a52008d6 Revert "Moving camelize and its tests to deprecated"
This reverts commit 5875b50a51.
2012-03-04 23:21:54 +01:00
Éric Lemoine 526ff5f6ed Revert "indicate that String.camelize is deprecated in the 2.12 release notes, refs #64, no functional change"
This reverts commit acf6a8a97d.
2012-03-04 23:21:41 +01:00
ahocevar 1072511be7 Fixing tests - popup only needed in Firefox.
See #249.
2012-03-04 22:45:38 +01:00
Éric Lemoine 9f06a17647 fix the Protocol/CSW tests in IE, refs #249 2012-03-04 22:18:07 +01:00
Éric Lemoine dc9dd219fc fix the "too much recursion" exceptions in the Grid.html tests 2012-03-04 21:15:04 +01:00
ahocevar ffac63045e Removing duplicate setCanvasStyle method.
Thanks @jorix for catching this (see #238).
2012-03-04 19:56:41 +01:00
Xavier Mamano af8a483f10 "snappingOptions" option is not used neither in lib examples and evidence. 2012-03-04 17:01:06 +01:00
Éric Lemoine e409b77caa fix deprecated/WMS and deprecated/MapServer tests 2012-03-04 15:56:15 +01:00
Peter Robins e267c3a53d Example for cross-origin xml 2012-03-04 12:52:58 +00:00
ahocevar 1b746a6461 Fixing Tween tests.
Thanks @tschaub for the requestAnimationFrame hint. See #249
2012-03-04 11:36:28 +01:00
ahocevar 12f191a690 Merge branch 'master' of github.com:openlayers/openlayers 2012-03-04 11:25:10 +01:00
Tim Schaub c6aa996d2a UTFGrid geography class example. 2012-03-04 01:58:22 -07:00
Tim Schaub 32db586fba Provide map and pixel location to callback. 2012-03-04 01:56:26 -07:00
Éric Lemoine 49b3dc85c2 Merge pull request #56 from jorix/3576-MeasureImm
#3576 Incorrect geometry passed to measurePartial
2012-03-03 23:59:54 -08:00
Tim Schaub 268b84286b Tests for UTFGrid layer and control. 2012-03-03 17:29:38 -07:00
Tim Schaub dc4df928ed Doc cleanup for UTFGrid layer. 2012-03-03 17:28:55 -07:00
Tim Schaub 36d22bbb15 Single argument constructor for UTFGrid layer. 2012-03-03 16:07:50 -07:00
Tim Schaub 2feb860983 Separating UTFGrid example markup and js source. 2012-03-03 16:07:50 -07:00
Éric Lemoine e576eba862 add missing statement-ending semi-colon, refs #272 2012-03-03 23:57:02 +01:00
Éric Lemoine 9242846954 Merge pull request #272 from elemoine/revert-hasownproperty
do not generalize use of hasOwnProperty
2012-03-03 14:54:48 -08:00
Éric Lemoine d6f8095535 add @tschaub's test_extend_event back 2012-03-03 23:50:28 +01:00
Tim Schaub bb76893abb Merge pull request #273 from tschaub/permalink
Make permalink destruction safe (r: @ahocevar).
2012-03-03 14:07:54 -08:00
Tim Schaub 9a3b723ba4 Making it safe to destroy a permalink.
Previously, a map could not be destroyed if it included a permalink control without an "element".  In addition, a permalink control could not be destroyed if it didn't have a reference to a map.
2012-03-03 14:42:43 -07:00
Tim Schaub ac884a4de7 Merge pull request #270 from probins/argparsercenter
Make options.center compatible with permalink.
2012-03-03 13:37:26 -08:00
Éric Lemoine 9a116b21b9 Revert "protect for in loops with hasOwnProperty"
This reverts commit e3cc96dbfb.
2012-03-03 22:35:39 +01:00
Éric Lemoine 161b54b6f1 Revert "Fixing the extend method to work on IE."
This reverts commit 71276b5323.
2012-03-03 22:35:31 +01:00
Éric Lemoine 6712dd9680 Revert "Collecting tests together."
This reverts commit fb748bae81.
2012-03-03 22:35:17 +01:00
Tim Schaub 935d621113 Testing that the permalink works with map options.
The permalink/argparser combo doesn't properly handle map configurations where layers and a map location are provided (see #270).
2012-03-03 14:30:03 -07:00
ahocevar 221f299650 Using buttonclick event to avoid issues on touch devices. 2012-03-03 22:21:01 +01:00
ahocevar 9860d60518 Merge branch 'zoom' of https://github.com/tschaub/openlayers into zoom 2012-03-03 22:20:49 +01:00
ahocevar 47d0eb1013 Documenting params 2012-03-03 19:14:52 +01:00
Peter Robins bcba6bb0fd Map: make options.center compatible with permalink 2012-03-03 17:06:14 +00:00
Tim Schaub 3b028e0017 Merge pull request #268 from tschaub/has
Fixing the extend method to work on IE.
2012-03-03 07:12:56 -08:00
Tim Schaub fb748bae81 Collecting tests together. 2012-03-03 08:11:42 -07:00
Tim Schaub c6650087cc Update zoom example to demonstrate custom style. 2012-03-02 23:51:39 -07:00
Tim Schaub f45043967b Zoom control tests. 2012-03-02 22:52:18 -07:00
Tim Schaub 45b9c48c43 Accommodations for IE. 2012-03-02 22:11:40 -07:00
Tim Schaub b9b471f57b Merge branch 'master' into zoom 2012-03-02 21:26:58 -07:00
tschaub 66e8fafdf2 Correcting example typo. Thanks @probins. 2012-03-02 18:38:42 -07:00
tschaub 59578931c2 Making testing in IE a tiny bit less painful.
The super handy quick filter that Marc added in 57c16b7345 was causing a bit of trouble in IE.  First, `input` was undefined where it was used as a misspelling for `window`.  After that, IE choked on the nice CSS3 selector when filtering the test list.  It turns out we don't need to be as selective and can treat all anchor elements within the table rows as candidates.
2012-03-02 18:29:25 -07:00
tschaub 71276b5323 Fixing the extend method to work on IE.
In IE, events don't have a `hasOwnProperty` method.  Instead of trusting that the source objects have this method, we call the same on the Object prototype.  If we want to be safer about the `hasOwnProperty` calling done in e3cc96dbfb, we could create an `OpenLayers.Object.has` method that also used the Object prototype.
2012-03-02 16:54:59 -07:00
tschaub 0ce7674be6 Adding a simple zoom control.
This control generates simple zoom in/out links that can be styled with CSS.
2012-03-02 15:45:30 -07:00
Éric Lemoine 9b2e46d9c5 Merge pull request #189 from jorix/popup-bug_onImageLoad
A popup can be destroyed before obtaining the images of `contentDiv`.
2012-03-02 14:34:24 -08:00
Éric Lemoine 26be40a1bd Merge pull request #186 from jorix/Build-monitor-errors
Build: Monitor the errors from the merge process.
2012-03-02 14:33:31 -08:00
Marc Jansen 1ef5cfd9a0 fix link to NaturalDocs 2012-03-02 21:30:05 +01:00
ahocevar 39962a6179 Using v3.6 of the GMaps v3 API everywhere. 2012-03-02 11:02:22 +01:00
Bart van den Eijnden 456a17b61c fix up test in Tile/Image/IFrame see https://github.com/openlayers/openlayers/commit/221d7caf70ace66041c41fc8c62412932e367f4e#commitcomment-1032985 2012-03-02 09:40:58 +01:00
tschaub 9b3a78ed5e Fixing the build by adding missing var.
An undeclared variable snuck in with 930206fb57.  This breaks builds using closure compiler.  Another reason to set up a CI server and a builds@ list.
2012-03-01 17:00:26 -07:00
tschaub 5a355f3760 Attribution update. 2012-03-01 16:33:50 -07:00
Tim Schaub 485317567e Merge pull request #266 from tschaub/permalink
Making map construction work with permalink.
2012-03-01 15:11:10 -08:00
ahocevar 930206fb57 Merge pull request #247 from probins/kmlatts
KML: write attributes; add option for kvp attributes
2012-03-01 14:30:11 -08:00
tschaub 4e9701caa8 Making map construction work with permalink.
If a map is configured with a permalink control and a center, the permalink control tries to work with the map center before setCenter is called.  This sequence assumes that the map center will already be a LonLat.  This fails if the map is constructed with a coordinate array.  Safer move is to convert center to LonLat before controls are added.
2012-03-01 13:47:42 -07:00
tschaub 31219c90f5 Adding XYZ example using MapBox tiles. 2012-03-01 13:13:35 -07:00
Peter Robins eb47d97774 KML: write attributes; add option for kvp attributes 2012-03-01 12:56:38 +00:00
Pierre GIRAUD 6d5544ca96 Merge pull request #264 from pgiraud/osm
Use the 3 available sub-domains for OSM by default
2012-03-01 03:00:07 -08:00
Pierre GIRAUD 45daaf5dd2 Use the 3 available sub-domains for OSM by default 2012-03-01 11:54:07 +01:00
Bart van den Eijnden 726b9dead8 Merge pull request #262 from bartvde/forloops
protect for in loops with hasOwnProperty (r=@elemoine,@marcjansen)
2012-03-01 01:09:19 -08:00
Tim Schaub de68e00a58 Merge pull request #263 from jorix/always_requires
Avoid using the [first] section.  Specify dependencies in the lib.
2012-02-29 19:31:15 -08:00
Bart van den Eijnden e3cc96dbfb protect for in loops with hasOwnProperty 2012-02-29 18:43:55 +01:00
Matt Priour 5c42b2f3ff Remove canvas renderer, as it is redundant with SVG and SVG is better supported and more robust across non-IE browsers 2012-02-29 10:13:57 -06:00
Xavier Mamano fe33e29000 If using OpenLayers namespace must have at least one requirement. 2012-02-29 17:07:41 +01:00
Matt Priour dd11c75625 Merge branch 'master' into light-build 2012-02-29 10:02:22 -06:00
Matt Priour da1a79018a Build full, light & mobile minified & debug versions of OpenLayers during release & dev dir update process 2012-02-29 09:58:23 -06:00
ahocevar d7a3ecac08 Merge pull request #259 from ahocevar/259
Don't overwrite params, and use params in Layer.ArcGISCache. r=@elemoine
2012-02-29 07:55:53 -08:00
ahocevar fa30c1da5c Don't overwrite params, and use params in Layer.ArcGISCache 2012-02-29 16:52:31 +01:00
Bart van den Eijnden 85b997fa0e Merge pull request #258 from bartvde/textplacement
PointPlacement and LinePlacement are choices, so don't output both (r=@ahocevar)
2012-02-29 05:54:00 -08:00
Bart van den Eijnden 2421ed6da3 add comments to the test (suggestion by @ahocevar) 2012-02-29 14:53:20 +01:00
Bart van den Eijnden 0e1a30b3cd PointPlacement and LinePlacement are choices, so don't output both 2012-02-29 14:42:11 +01:00
Éric Lemoine 8273f153dc Merge pull request #223 from camptocamp/access_panelbutton
make it possible to create accessible panel buttons
2012-02-29 04:39:57 -08:00
Éric Lemoine 98ff5473a6 add tests for buttonclick.getPressedButton 2012-02-29 13:36:07 +01:00
Éric Lemoine 6a43fcaefc change buttonclick.getPressedButton depth value from 5 to 3, this allows buttons with grand children (2 levels) 2012-02-29 13:34:47 +01:00
ahocevar 8ea3b1bd3e Merge pull request #255 from ahocevar/255
LayerSwitcher broken when rendered to custom div. r=@elemoine
2012-02-29 04:25:18 -08:00
Éric Lemoine 3f99354d8c Merge pull request #257 from probins/opacity
Make layer opacity api property
2012-02-29 04:00:06 -08:00
Peter Robins 55c18076d3 Make layer opacity api property 2012-02-29 10:40:20 +00:00
Bart van den Eijnden 2955302650 Merge pull request #256 from bartvde/vendoroptions
make vendorOptions an object instead of an array (r=@ahocevar)
2012-02-29 02:11:41 -08:00
Bart van den Eijnden b699afa57f make vendorOptions an object instead of an array, which makes it more convenient to prevent duplicate vendorOptions 2012-02-29 10:57:08 +01:00
ahocevar 557d7ab0d7 Fixing typo. 2012-02-29 10:49:40 +01:00
ahocevar d0c782ca74 Making LayerSwitcher work again outside viewport. 2012-02-29 10:40:45 +01:00
ahocevar b7eba35077 Notes on incorrect maxResolution of 156543.0339 and defaults coupled with projection 2012-02-29 08:11:14 +01:00
Matt Priour cd2a6aaaaf Merge branch 'master' of https://github.com/openlayers/openlayers into light-build 2012-02-28 23:26:29 -06:00
Matt Priour 3667428692 Add LayerSwitcher and remove vector editing 2012-02-28 22:52:40 -06:00
Éric Lemoine 00909404ab [Event.buttonclick] make buttonclick work if target element is a child of the clicked button 2012-02-29 00:56:52 +01:00
Xavier Mamano 9e48825205 Preserve the title and the className if they are set in createControlMarkup. 2012-02-28 22:28:33 +01:00
Éric Lemoine 3b7585be24 avoid useless deref 2012-02-28 22:28:33 +01:00
Éric Lemoine 0f0e60c336 [examples] more docs in the accessible-panel example 2012-02-28 22:28:33 +01:00
Éric Lemoine aedc96f030 [examples] add an accessible-panel example 2012-02-28 22:28:33 +01:00
Éric Lemoine e551fc672c [Event.buttonclick] make buttonclick work on RETURN/SPACE keydown 2012-02-28 22:28:33 +01:00
Éric Lemoine 5539f6e958 [Control.Panel] place code creating the control markup in a separate function 2012-02-28 22:28:33 +01:00
tschaub 396b016220 Mask requestAnimationFrame so tiles load in FF. 2012-02-28 12:03:27 -07:00
Matt Priour d0ccfacb66 Add GetFeature control & FramedCloud popups. Use OSM.js rather than XYZ.js 2012-02-28 11:51:35 -06:00
Éric Lemoine cb71eccb34 Merge pull request #252 from probins/doc
Remove doc/walkthru.html
2012-02-28 09:43:03 -08:00
Matt Priour 62f62510c8 Initial light build config file 2012-02-28 10:52:49 -06:00
Frédéric Junod e14347dbc3 Merge pull request #29 from fredj/map-original-options
Expose map original options. r=@elemoine
2012-02-28 07:07:31 -08:00
ahocevar 2e6fe7d330 Notes about wrapDateLine. 2012-02-28 15:07:03 +01:00
Éric Lemoine 3cc0b8f51c Merge pull request #253 from probins/readme
Fix broken link in readme
2012-02-28 05:03:17 -08:00
Peter Robins f9b64d945a Fix broken link in readme 2012-02-28 12:52:53 +00:00
Tim Schaub 4d31a3ed3a Method for getting both feature id and data.
Having to call two methods to get complete feature information (id and data) is cumbersome.  The `getFeatureInfo` method returns an object with both feature id and data.
2012-02-28 05:37:28 -07:00
Bart van den Eijnden afe2966385 Merge pull request #208 from bartvde/wfs11
implement readers for URL endpoints in WFS 1.1, this meant restructuring the WFS Capabilities format to use the new readers and writers structures (r=@ahocevar)
2012-02-28 04:32:59 -08:00
Marc Jansen 631f6b5d3d Merge pull request #218 from marcjansen/testsuite-fixes
Testsuite fixes
2012-02-28 04:32:36 -08:00
Bart van den Eijnden dd97bed3b4 merge with trunk 2012-02-28 13:31:14 +01:00
Peter Robins 2f3f849597 Remove doc/walkthru.html 2012-02-28 12:14:43 +00:00
Éric Lemoine cb27e9def4 Merge pull request #250 from camptocamp/access_clickexample
Accessible click control example
2012-02-28 03:15:43 -08:00
ahocevar 94e8fff9e6 Fixing test (see #249) 2012-02-28 12:05:13 +01:00
Éric Lemoine 43809ea330 Merge pull request #222 from camptocamp/access_keyboardcontrol
KeyboardDefaults control improvements
2012-02-28 03:02:19 -08:00
Arjen Kopinga 1c6d44e5d5 Moved symbol definitions to Renderer.js 2012-02-28 11:52:46 +01:00
Arkadiusz Grabka 8fcc3c79f8 Added translations for Polish language. 2012-02-28 10:57:17 +01:00
ahocevar 7c72b6dd95 Merge pull request #240 from ajkopinga. 2012-02-28 10:49:54 +01:00
Éric Lemoine 9c2255706c click-keyboard example renamed to accessible-click-control 2012-02-28 10:48:50 +01:00
Éric Lemoine eb700d98e1 add an example for an accessible click control implementation 2012-02-28 10:46:49 +01:00
ahocevar 4ee28dc63e Simplifying logic that returns undefined when root is invisible. 2012-02-28 10:45:18 +01:00
Arjen Kopinga d4a9f60c93 simplified unit test for hit detection on invisible canvas 2012-02-28 10:43:11 +01:00
unknown f8189f2862 Added unit tests for hit detection on invisible canvas layer 2012-02-28 10:43:11 +01:00
Arjen Kopinga bf834e6b8e being a good coder and adding braces around if statement body 2012-02-28 10:43:10 +01:00
Arjen Kopinga 4efa03eb59 Fix for being able to select a feature from an invisible layer that uses the Canvas renderer 2012-02-28 10:43:10 +01:00
fredj f3c48d6963 Store the original map options into 'options' property 2012-02-28 10:07:59 +01:00
Éric Lemoine acf6a8a97d indicate that String.camelize is deprecated in the 2.12 release notes, refs #64, no functional change 2012-02-28 09:53:41 +01:00
ahocevar c55a8b554d Merge pull request #229 from ahocevar/post-blank
Using a blankImageUrl that works for IFrames in IE9. r=@elemoine.
2012-02-28 00:23:51 -08:00
Éric Lemoine 5444fbcfc8 make the Google Closure compiler happier, no functional change 2012-02-28 09:08:13 +01:00
ahocevar c2b8f9cdb5 Merge pull request #64 from tmcw/no-camel
Removing camelize method.
2012-02-28 00:05:58 -08:00
Bart van den Eijnden 6258c89d8c Merge pull request #242 from bartvde/sld2
Add support for LabelPlacement of sld:TextSymbolizer (r=@ahocevar)
2012-02-28 00:00:01 -08:00
tschaub 19a11561e8 Correcting typo. 2012-02-27 17:21:35 -07:00
tschaub 0aa8705299 Test the demo utfgrid file (currently failing). 2012-02-27 16:48:33 -07:00
tschaub fd595e6282 Clearer tile method names. 2012-02-27 16:47:11 -07:00
tschaub 89e8a872a5 Making the default UTFGrid resolution 2.
According to the latest [spec](https://github.com/mapbox/utfgrid-spec/blob/master/1.2/utfgrid.md): "By default, UTFGrid operates on a 2x2 grid."
2012-02-27 08:57:22 -07:00
Tim Schaub 551c582ab1 Layer and tile API update.
The tile now has responsibility for resolving feature ids and fetching feature data given x, y pixel offsets with getFeatureId and getFeatureData methods.  The layer has corresponding getFeatureId and getFeatureData methods that take a map location, lookup the appropriate tile, and delegate to the tile for the rest of the work.
2012-02-26 21:05:12 -07:00
Tim Schaub fc03f57591 Simplify constructor by setting projection. 2012-02-26 19:23:22 -07:00
ahocevar fa656e7ed6 Merge pull request #239 from ahocevar/3625
Removing imageOffset and using getImageSize. r=@elemoine
2012-02-26 09:25:29 -08:00
Éric Lemoine 3113aba7f1 Merge pull request #203 from probins/http
HTTP protocol: enable POST for update/delete
2012-02-26 01:16:49 -08:00
Tim Schaub faeb691f3a Tests for UTFGrid tiles. 2012-02-25 23:07:31 -07:00
Tim Schaub 8c95a90052 The parseData method doesn't need to know of XHR. 2012-02-25 20:51:03 -07:00
Tim Schaub 12fa9b54ef Consistency with tile loading events.
Since loadstart is being fired here, it makes sense to fire loadend as well.  The isLoading flag also needs to be cleared.  Needs tests still.
2012-02-25 20:45:18 -07:00
Tim Schaub c18f6a23be Use JSON format for parsing JSON.
To get IE7 support, the OpenLayers.Format.JSON parser should be used.  This leverages the native JSON.parse method where available.  It does add extra weight to UTFGrid builds.  However, as of this commit date, we lose large portions of US govt agencies when we exclude IE7.
2012-02-25 20:18:23 -07:00
Tim Schaub e6f0aa08e5 Cleanup use of Script protocol.
I would think there would still be an error thrown here.  Will put together a test to determine for sure, but I'd think that the default GeoJSON parser used by the protocol would choke on the UTFGrid json.
2012-02-25 20:09:34 -07:00
Tim Schaub 73e6973ab5 Remove cargo culted image tile bits. 2012-02-25 20:03:40 -07:00
Tim Schaub 65233dd0bc Add dependency on UTFGrid tile. 2012-02-25 20:01:14 -07:00
Tim Schaub 6ffce8cfb6 Remove unused list item. 2012-02-25 20:00:46 -07:00
mperry bd8e4b55ef Merge remote-tracking branch 'tschaub/utfgrid' into utfgrid 2012-02-25 17:58:51 -08:00
mperry ede6da8e6f Merge remote-tracking branch 'upstream/master' into utfgrid 2012-02-25 17:51:56 -08:00
Tim Schaub e1dffacdde Providing a method to get data from the layer.
I think it should be the job of the layer to retrieve data for a given location (instead of the control).  The first part of this change creates a `getData` method on the layer and updates the control to use this method.

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

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

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

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

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

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

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

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

Non-functional change (closes #3507)

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


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


git-svn-id: http://svn.openlayers.org/trunk/openlayers@12318 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-03 15:32:23 +00:00
Tim Schaub 663392b10e Despite our best efforts to comply, we have been told that this layer violates the Google Maps Terms of Service. Without rendering their full map interface, they have no way of controlling the user experience, dropping in ads, and the like. (closes #3481)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-01 19:07:37 +00:00
Bruno Binet b339043a41 remove trailing space in @requires dependencies (no functionnal changes)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12291 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-31 07:31:05 +00:00
ahocevar d75f3552cd unregister load and error handlers after blank image is loaded. r=sbrunner,pgiraud (closes #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12286 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-30 18:37:11 +00:00
Frédéric Junod 228fab098d fix jsdoc tag, makes Closure Compiler happy. no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12278 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-25 08:30:11 +00:00
Frédéric Junod 497f7c9105 fixing error in comments. Non-functional change (see #3163)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12272 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-24 14:23:59 +00:00
bartvde a32b8bab62 update test function docs to match what the test function now does, non-functional change (see #3474)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12270 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-24 06:20:45 +00:00
bartvde 50704395bb make sure the for loop for lods is not messed up by frameworks changing the Array.prototype, p=dzwarg, r=me (closes #3474)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-24 06:18:55 +00:00
bartvde bb41c99524 fix closure build on Windows, p=jorix, r=me, thanks to mprins and scaddenp, I've verified that the build still works on OSX (closes #3158)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12268 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-22 10:10:46 +00:00
Frédéric Junod a31b8e444f Simplify Layer.HTTPRequest initialize function. r=erilem (pullup #3470)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12267 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-22 06:56:28 +00:00
Frédéric Junod 6a66871492 fix api doc typo, no functionnal changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12261 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 14:16:44 +00:00
Frédéric Junod d4a0128ba8 update the arcgiscache_jsonp example to use OpenLayers.Protocol.Script instead of the JSONP from jquery
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12260 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 10:15:44 +00:00
ahocevar 02553ae595 Using dereferenced variable. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12259 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 09:54:42 +00:00
ahocevar c78385aa49 fixing a typo (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12258 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 09:41:14 +00:00
Frédéric Junod 6ba6527ef7 fix jsdoc tag, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12257 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 06:30:39 +00:00
bartvde 85455619ec filter on snapping target does not work for all filter types, r=ahocevar (closes #3468)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-17 13:47:08 +00:00
Tim Schaub 74af61d898 Updating the date tests to work against Firefox 6 (and any other implementations that throw RangeError). closes #3461
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12254 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-17 02:29:09 +00:00
Tim Schaub c517de52f5 Making freehand drawing work on touch devices. Thanks jorix for the excellent patch. r=me (closes #3456)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-17 02:13:06 +00:00
Tim Schaub 98eabd4d89 Adding missing requires (see #3467).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-17 01:07:59 +00:00
ahocevar de1d2cea92 avoid empty image placeholder in webkit browsers (and maybe an extra reflow) by setting initial display to 'none' as well. I take erilem's commit comment as still valid for this follow-up commit. (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-16 18:42:58 +00:00
Tim Schaub 541b3dc7ae Changing the named callback to avoid having the returned script call a function. This allows the protocol to be used with servers that sanitize callback identifiers for security. Great patch from vmische. r=me (closes 3417).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12250 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-15 18:27:55 +00:00
ahocevar 0ebec29df1 Fixing tests after r12247 - img.src is now only available after a delay, because it is set in the load handler after setting a blank image as src. There is no need to check for img.src in layer tests, because this is asserted by Tile.Image tests (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12249 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-15 16:30:43 +00:00
bartvde c587865bb1 deleting a vertex does not set feature.modified, this is a regression since in OL 2.10 a WFS transaction would include all fields, but 2.11 is smarter in the sense that it filters out fields that have not changed in the Transaction XML, which in this case, i.e. deleting a vertex, results in no geometry in the WFS transaction, r=tschaub (pullup #3463)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12248 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-15 16:26:34 +00:00
ahocevar 652f2729cd a bit more code, but this finally fixed the loading image placeholder issue in FF (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12247 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-14 15:56:33 +00:00
ahocevar fdd5e8cb06 reverting again - this time I broke things in Opera (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12246 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-14 15:12:59 +00:00
ahocevar eabde4f74f Fixing the issue with loading image placeholders in FF >= 4 that was discussed during the review. I take erilem's final comment as permission to commit this without an additional review (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12245 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-14 14:33:00 +00:00
ahocevar fd8003464e reverting r12243, because it breaks the loadend event (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12244 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-13 09:17:24 +00:00
ahocevar 0daaa12059 using blank image to avoid the "Loading Image" frames on Firefox that were discussed during the review (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12243 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-13 08:15:36 +00:00
ahocevar 23c9092201 Tile.Image improvements and partial rewrite. Thanks erilem for the excellent collaboration during the review phase. p=me,erilem r=erilem (closes #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12241 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-13 00:59:01 +00:00
ahocevar a8d3d6a5b4 opacity fixes required after reverting r12185. r=mosesonline (closes #3441)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12240 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-12 21:17:22 +00:00
Éric Lemoine fe5b8a7a78 a grid layer may be moved while its grid hasn't been initialized yet, r=ahocevar (references #3458)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-11 13:21:04 +00:00
Éric Lemoine 8647445636 Grid.html tests may fail because http://octo.metacarta.com/cgi-bin/mapserv does not respond, test only change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12235 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-11 11:51:57 +00:00
ahocevar 94c1c7906c reverting r12228 and r12185 (closes #3431)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:35:27 +00:00
ahocevar cc5818d4c7 reverting r12185 (closes #3431)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:29:31 +00:00
ahocevar fecc4d81b0 reverting r12228
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:28:47 +00:00
ahocevar b0e2a0cc56 IE8 specific fix for opacity. r=erilem (closes #3431)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:04:53 +00:00
ahocevar 92546caa9e making 1 the default for layer opacity. p=mosesonline,me r=me (closes #3441)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12227 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-09 17:33:37 +00:00
839 changed files with 40222 additions and 22344 deletions
+7
View File
@@ -0,0 +1,7 @@
/build/OpenLayers.js
/tools/closure-compiler.jar
/tools/*.pyc
/apidoc_config/Data/
/doc/apidocs/
/examples/example-list.js
/examples/example-list.xml
+17 -43
View File
@@ -48,7 +48,6 @@ SubTitle: JavaScript Mapping Library
Group: OpenLayers { Group: OpenLayers {
File: OpenLayers (no auto-title, OpenLayers.js) File: OpenLayers (no auto-title, OpenLayers.js)
File: Ajax (no auto-title, OpenLayers/Ajax.js)
Group: BaseTypes { Group: BaseTypes {
@@ -81,9 +80,7 @@ Group: OpenLayers {
File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js) File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js)
File: Measure (no auto-title, OpenLayers/Control/Measure.js) File: Measure (no auto-title, OpenLayers/Control/Measure.js)
File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js) File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js)
File: MouseDefaults (no auto-title, OpenLayers/Control/MouseDefaults.js)
File: MousePosition (no auto-title, OpenLayers/Control/MousePosition.js) File: MousePosition (no auto-title, OpenLayers/Control/MousePosition.js)
File: MouseToolbar (no auto-title, OpenLayers/Control/MouseToolbar.js)
File: Navigation (no auto-title, OpenLayers/Control/Navigation.js) File: Navigation (no auto-title, OpenLayers/Control/Navigation.js)
File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js) File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js)
File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js) File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js)
@@ -118,7 +115,6 @@ Group: OpenLayers {
File: Feature (no auto-title, OpenLayers/Feature.js) File: Feature (no auto-title, OpenLayers/Feature.js)
File: Vector (no auto-title, OpenLayers/Feature/Vector.js) File: Vector (no auto-title, OpenLayers/Feature/Vector.js)
File: WFS (no auto-title, OpenLayers/Feature/WFS.js)
} # Group: Feature } # Group: Feature
Group: Filter { Group: Filter {
@@ -152,9 +148,6 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/Filter/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/Filter/v1_1_0.js)
} # Group: Filter } # Group: Filter
File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js)
File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js)
Group: GML { Group: GML {
File: GML (no auto-title, OpenLayers/Format/GML.js) File: GML (no auto-title, OpenLayers/Format/GML.js)
@@ -163,15 +156,24 @@ Group: OpenLayers {
File: v3 (no auto-title, OpenLayers/Format/GML/v3.js) File: v3 (no auto-title, OpenLayers/Format/GML/v3.js)
} # Group: GML } # Group: GML
Group: SLD {
File: SLD (no auto-title, OpenLayers/Format/SLD.js)
File: v1 (no auto-title, OpenLayers/Format/SLD/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/SLD/v1_0_0.js)
} # Group: SLD
File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js)
File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js)
File: GPX (no auto-title, OpenLayers/Format/GPX.js) File: GPX (no auto-title, OpenLayers/Format/GPX.js)
File: JSON (no auto-title, OpenLayers/Format/JSON.js) File: JSON (no auto-title, OpenLayers/Format/JSON.js)
File: KML (no auto-title, OpenLayers/Format/KML.js) File: KML (no auto-title, OpenLayers/Format/KML.js)
File: OGCExceptionReport (no auto-title, OpenLayers/Format/OGCExceptionReport.js) File: OGCExceptionReport (no auto-title, OpenLayers/Format/OGCExceptionReport.js)
File: OSM (no auto-title, OpenLayers/Format/OSM.js) File: OSM (no auto-title, OpenLayers/Format/OSM.js)
File: OWSCommon (no auto-title, OpenLayers/Format/OWSCommon.js)
Group: OWSCommon { Group: OWSCommon {
File: OWSCommon (no auto-title, OpenLayers/Format/OWSCommon.js)
File: v1 (no auto-title, OpenLayers/Format/OWSCommon/v1.js) File: v1 (no auto-title, OpenLayers/Format/OWSCommon/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_0_0.js) File: v1_0_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_1_0.js)
@@ -180,19 +182,12 @@ Group: OpenLayers {
File: OWSContext (no auto-title, OpenLayers/Format/OWSContext.js) File: OWSContext (no auto-title, OpenLayers/Format/OWSContext.js)
File: OWSContext.v0_3_1 (no auto-title, OpenLayers/Format/OWSContext/v0_3_1.js) File: OWSContext.v0_3_1 (no auto-title, OpenLayers/Format/OWSContext/v0_3_1.js)
File: QueryStringFilter (no auto-title, OpenLayers/Format/QueryStringFilter.js) File: QueryStringFilter (no auto-title, OpenLayers/Format/QueryStringFilter.js)
Group: SLD {
File: SLD (no auto-title, OpenLayers/Format/SLD.js)
File: v1 (no auto-title, OpenLayers/Format/SLD/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/SLD/v1_0_0.js)
} # Group: SLD
File: SOSCapabilities (no auto-title, OpenLayers/Format/SOSCapabilities.js) File: SOSCapabilities (no auto-title, OpenLayers/Format/SOSCapabilities.js)
File: SOSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/SOSCapabilities/v1_0_0.js) File: SOSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/SOSCapabilities/v1_0_0.js)
File: SOSGetFeatureOfInterest (no auto-title, OpenLayers/Format/SOSGetFeatureOfInterest.js) File: SOSGetFeatureOfInterest (no auto-title, OpenLayers/Format/SOSGetFeatureOfInterest.js)
File: SOSGetObservation (no auto-title, OpenLayers/Format/SOSGetObservation.js) File: SOSGetObservation (no auto-title, OpenLayers/Format/SOSGetObservation.js)
File: Text (no auto-title, OpenLayers/Format/Text.js) File: Text (no auto-title, OpenLayers/Format/Text.js)
File: VersionedOGC (OpenLayers/Format/XML/VersionedOGC.js)
File: WCSGetCoverage version 1.1.0 (no auto-title, OpenLayers/Format/WCSGetCoverage.js) File: WCSGetCoverage version 1.1.0 (no auto-title, OpenLayers/Format/WCSGetCoverage.js)
File: WFS (no auto-title, OpenLayers/Format/WFS.js) File: WFS (no auto-title, OpenLayers/Format/WFS.js)
@@ -204,8 +199,6 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_1_0.js)
} # Group: WFSCapabilities } # Group: WFSCapabilities
File: WFSDescribeFeatureType (no auto-title, OpenLayers/Format/WFSDescribeFeatureType.js)
Group: WFST { Group: WFST {
File: WFST (no auto-title, OpenLayers/Format/WFST.js) File: WFST (no auto-title, OpenLayers/Format/WFST.js)
@@ -214,8 +207,6 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/WFST/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/WFST/v1_1_0.js)
} # Group: WFST } # Group: WFST
File: WKT (no auto-title, OpenLayers/Format/WKT.js)
Group: WMC { Group: WMC {
File: WMC (no auto-title, OpenLayers/Format/WMC.js) File: WMC (no auto-title, OpenLayers/Format/WMC.js)
@@ -242,6 +233,8 @@ Group: OpenLayers {
File: v1_1 (no auto-title, OpenLayers/Format/WMSDescribeLayer/v1_1.js) File: v1_1 (no auto-title, OpenLayers/Format/WMSDescribeLayer/v1_1.js)
} # Group: WMSDescribeLayer } # Group: WMSDescribeLayer
File: WFSDescribeFeatureType (no auto-title, OpenLayers/Format/WFSDescribeFeatureType.js)
File: WKT (no auto-title, OpenLayers/Format/WKT.js)
File: WMSGetFeatureInfo (no auto-title, OpenLayers/Format/WMSGetFeatureInfo.js) File: WMSGetFeatureInfo (no auto-title, OpenLayers/Format/WMSGetFeatureInfo.js)
File: WMTSCapabilities (no auto-title, OpenLayers/Format/WMTSCapabilities.js) File: WMTSCapabilities (no auto-title, OpenLayers/Format/WMTSCapabilities.js)
File: WMTSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/WMTSCapabilities/v1_0_0.js) File: WMTSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/WMTSCapabilities/v1_0_0.js)
@@ -267,7 +260,6 @@ Group: OpenLayers {
File: MultiPolygon (no auto-title, OpenLayers/Geometry/MultiPolygon.js) File: MultiPolygon (no auto-title, OpenLayers/Geometry/MultiPolygon.js)
File: Point (no auto-title, OpenLayers/Geometry/Point.js) File: Point (no auto-title, OpenLayers/Geometry/Point.js)
File: Polygon (no auto-title, OpenLayers/Geometry/Polygon.js) File: Polygon (no auto-title, OpenLayers/Geometry/Polygon.js)
File: Rectangle (no auto-title, OpenLayers/Geometry/Rectangle.js)
} # Group: Geometry } # Group: Geometry
Group: Handler { Group: Handler {
@@ -288,7 +280,6 @@ Group: OpenLayers {
} # Group: Handler } # Group: Handler
File: Icon (no auto-title, OpenLayers/Icon.js) File: Icon (no auto-title, OpenLayers/Icon.js)
File: Kinetic (no auto-title, OpenLayers/Kinetic.js)
Group: Lang { Group: Lang {
@@ -328,6 +319,7 @@ Group: OpenLayers {
File: nn (no auto-title, OpenLayers/Lang/nn.js) File: nn (no auto-title, OpenLayers/Lang/nn.js)
File: oc (no auto-title, OpenLayers/Lang/oc.js) File: oc (no auto-title, OpenLayers/Lang/oc.js)
File: pt (no auto-title, OpenLayers/Lang/pt.js) File: pt (no auto-title, OpenLayers/Lang/pt.js)
File: pl (no auto-title, OpenLayers/Lang/pl.js)
File: pt-BR (no auto-title, OpenLayers/Lang/pt-BR.js) File: pt-BR (no auto-title, OpenLayers/Lang/pt-BR.js)
File: ru (no auto-title, OpenLayers/Lang/ru.js) File: ru (no auto-title, OpenLayers/Lang/ru.js)
File: sk (no auto-title, OpenLayers/Lang/sk.js) File: sk (no auto-title, OpenLayers/Lang/sk.js)
@@ -349,10 +341,8 @@ Group: OpenLayers {
File: EventPane (no auto-title, OpenLayers/Layer/EventPane.js) File: EventPane (no auto-title, OpenLayers/Layer/EventPane.js)
File: FixedZoomLevels (no auto-title, OpenLayers/Layer/FixedZoomLevels.js) File: FixedZoomLevels (no auto-title, OpenLayers/Layer/FixedZoomLevels.js)
File: GeoRSS (no auto-title, OpenLayers/Layer/GeoRSS.js) File: GeoRSS (no auto-title, OpenLayers/Layer/GeoRSS.js)
File: GML (no auto-title, OpenLayers/Layer/GML.js)
File: Google (no auto-title, OpenLayers/Layer/Google.js) File: Google (no auto-title, OpenLayers/Layer/Google.js)
File: Google.v3 (no auto-title, OpenLayers/Layer/Google/v3.js) File: Google.v3 (no auto-title, OpenLayers/Layer/Google/v3.js)
File: GoogleNG (no auto-title, OpenLayers/Layer/GoogleNG.js)
File: Grid (no auto-title, OpenLayers/Layer/Grid.js) File: Grid (no auto-title, OpenLayers/Layer/Grid.js)
File: HTTPRequest (no auto-title, OpenLayers/Layer/HTTPRequest.js) File: HTTPRequest (no auto-title, OpenLayers/Layer/HTTPRequest.js)
File: Image (no auto-title, OpenLayers/Layer/Image.js) File: Image (no auto-title, OpenLayers/Layer/Image.js)
@@ -360,9 +350,8 @@ Group: OpenLayers {
File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js) File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js)
File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js) File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js)
File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js) File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js)
File: MapServer.Untiled (no auto-title, OpenLayers/Layer/MapServer/Untiled.js)
File: Markers (no auto-title, OpenLayers/Layer/Markers.js) File: Markers (no auto-title, OpenLayers/Layer/Markers.js)
File: MultiMap (no auto-title, OpenLayers/Layer/MultiMap.js) File: OSM (no auto-title, OpenLayers/Layer/OSM.js)
File: PointGrid (no auto-title, OpenLayers/Layer/PointGrid.js) File: PointGrid (no auto-title, OpenLayers/Layer/PointGrid.js)
File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js) File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js)
File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js) File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js)
@@ -371,15 +360,10 @@ Group: OpenLayers {
File: TMS (no auto-title, OpenLayers/Layer/TMS.js) File: TMS (no auto-title, OpenLayers/Layer/TMS.js)
File: Vector (no auto-title, OpenLayers/Layer/Vector.js) File: Vector (no auto-title, OpenLayers/Layer/Vector.js)
File: Vector.RootContainer (no auto-title, OpenLayers/Layer/Vector/RootContainer.js) File: Vector.RootContainer (no auto-title, OpenLayers/Layer/Vector/RootContainer.js)
File: VirtualEarth (no auto-title, OpenLayers/Layer/VirtualEarth.js)
File: WFS (no auto-title, OpenLayers/Layer/WFS.js)
File: WMS (no auto-title, OpenLayers/Layer/WMS.js) File: WMS (no auto-title, OpenLayers/Layer/WMS.js)
File: WMS.Untiled (no auto-title, OpenLayers/Layer/WMS/Untiled.js)
File: WMS.Post (no auto-title, OpenLayers/Layer/WMS/Post.js)
File: WMTS (no auto-title, OpenLayers/Layer/WMTS.js) File: WMTS (no auto-title, OpenLayers/Layer/WMTS.js)
File: WorldWind (no auto-title, OpenLayers/Layer/WorldWind.js) File: WorldWind (no auto-title, OpenLayers/Layer/WorldWind.js)
File: XYZ (no auto-title, OpenLayers/Layer/XYZ.js) File: XYZ (no auto-title, OpenLayers/Layer/XYZ.js)
File: Yahoo (no auto-title, OpenLayers/Layer/Yahoo.js)
File: Zoomify (no auto-title, OpenLayers/Layer/Zoomify.js) File: Zoomify (no auto-title, OpenLayers/Layer/Zoomify.js)
} # Group: Layer } # Group: Layer
@@ -395,7 +379,6 @@ Group: OpenLayers {
File: Popup (no auto-title, OpenLayers/Popup.js) File: Popup (no auto-title, OpenLayers/Popup.js)
File: Anchored (no auto-title, OpenLayers/Popup/Anchored.js) File: Anchored (no auto-title, OpenLayers/Popup/Anchored.js)
File: AnchoredBubble (no auto-title, OpenLayers/Popup/AnchoredBubble.js)
File: Framed (no auto-title, OpenLayers/Popup/Framed.js) File: Framed (no auto-title, OpenLayers/Popup/Framed.js)
File: FramedCloud (no auto-title, OpenLayers/Popup/FramedCloud.js) File: FramedCloud (no auto-title, OpenLayers/Popup/FramedCloud.js)
} # Group: Popup } # Group: Popup
@@ -407,12 +390,6 @@ Group: OpenLayers {
File: Protocol (no auto-title, OpenLayers/Protocol.js) File: Protocol (no auto-title, OpenLayers/Protocol.js)
File: HTTP (no auto-title, OpenLayers/Protocol/HTTP.js) File: HTTP (no auto-title, OpenLayers/Protocol/HTTP.js)
Group: SQL {
File: SQL (no auto-title, OpenLayers/Protocol/SQL.js)
File: Gears (no auto-title, OpenLayers/Protocol/SQL/Gears.js)
} # Group: SQL
Group: WFS { Group: WFS {
File: WFS (no auto-title, OpenLayers/Protocol/WFS.js) File: WFS (no auto-title, OpenLayers/Protocol/WFS.js)
@@ -431,9 +408,7 @@ Group: OpenLayers {
File: Renderer (no auto-title, OpenLayers/Renderer.js) File: Renderer (no auto-title, OpenLayers/Renderer.js)
File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js) File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js)
File: ElementsIndexer (no auto-title, OpenLayers/Renderer/Elements.js) File: ElementsIndexer (no auto-title, OpenLayers/Renderer/Elements.js)
File: NG (no auto-title, OpenLayers/Renderer/NG.js)
File: SVG (no auto-title, OpenLayers/Renderer/SVG.js) File: SVG (no auto-title, OpenLayers/Renderer/SVG.js)
File: SVG2 (no auto-title, OpenLayers/Renderer/SVG2.js)
File: VML (no auto-title, OpenLayers/Renderer/VML.js) File: VML (no auto-title, OpenLayers/Renderer/VML.js)
} # Group: Renderer } # Group: Renderer
@@ -443,8 +418,8 @@ Group: OpenLayers {
File: XMLHttpRequest (no auto-title, OpenLayers/Request/XMLHttpRequest.js) File: XMLHttpRequest (no auto-title, OpenLayers/Request/XMLHttpRequest.js)
} # Group: Request } # Group: Request
File: SingleFile.js (no auto-title, OpenLayers/SingleFile.js)
File: Rule (no auto-title, OpenLayers/Rule.js) File: Rule (no auto-title, OpenLayers/Rule.js)
File: SingleFile.js (no auto-title, OpenLayers/SingleFile.js)
Group: Strategy { Group: Strategy {
@@ -475,14 +450,13 @@ Group: OpenLayers {
Group: Tile { Group: Tile {
File: Tile (no auto-title, OpenLayers/Tile.js) File: Tile (no auto-title, OpenLayers/Tile.js)
File: Google (no auto-title, OpenLayers/Tile/Google.js)
File: Image (no auto-title, OpenLayers/Tile/Image.js) File: Image (no auto-title, OpenLayers/Tile/Image.js)
File: Image.IFrame (no auto-title, OpenLayers/Tile/Image/IFrame.js) File: Image.IFrame (no auto-title, OpenLayers/Tile/Image/IFrame.js)
File: WFS (no auto-title, OpenLayers/Tile/WFS.js)
} # Group: Tile } # Group: Tile
File: Tween (no auto-title, OpenLayers/Tween.js) File: Tween (no auto-title, OpenLayers/Tween.js)
File: Util (no auto-title, OpenLayers/Util.js) File: Util (no auto-title, OpenLayers/Util.js)
File: Deprecated (no auto-title, deprecated.js)
} # Group: OpenLayers } # Group: OpenLayers
Group: Index { Group: Index {
View File
+3
View File
@@ -41,3 +41,6 @@ The options available for compression are:
* none * none
None will leave the Javascript uncompressed. None will leave the Javascript uncompressed.
For more information on the build script and custom build profiles,
see http://docs.openlayers.org/library/deploying.html
+83 -7
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys import sys
import os
sys.path.append("../tools") sys.path.append("../tools")
import mergejs import mergejs
import optparse import optparse
@@ -13,7 +14,9 @@ def build(config_file = None, output_file = None, options = None):
except ImportError: except ImportError:
print "No jsmin" print "No jsmin"
try: try:
import closure # tools/closure_library_jscompiler.py from:
# http://code.google.com/p/closure-library/source/browse/trunk/closure/bin/build/jscompiler.py
import closure_library_jscompiler as closureCompiler
have_compressor.append("closure") have_compressor.append("closure")
except Exception, E: except Exception, E:
print "No closure (%s)" % E print "No closure (%s)" % E
@@ -29,6 +32,13 @@ def build(config_file = None, output_file = None, options = None):
except ImportError: except ImportError:
print "No minimize" print "No minimize"
try:
import uglify_js
uglify_js.check_available()
have_compressor.append("uglify-js")
except Exception, E:
print "No uglify-js (%s)" % E
use_compressor = None use_compressor = None
if options.compressor and options.compressor in have_compressor: if options.compressor and options.compressor in have_compressor:
use_compressor = options.compressor use_compressor = options.compressor
@@ -48,19 +58,82 @@ def build(config_file = None, output_file = None, options = None):
outputFilename = output_file outputFilename = output_file
print "Merging libraries." print "Merging libraries."
merged = mergejs.run(sourceDirectory, None, configFilename) try:
if use_compressor == "closure" or use_compressor == 'uglify-js':
sourceFiles = mergejs.getNames(sourceDirectory, configFilename)
else:
merged = mergejs.run(sourceDirectory, None, configFilename)
except mergejs.MissingImport, E:
print "\nAbnormal termination."
sys.exit("ERROR: %s" % E)
if options.amdname:
options.amdname = "'" + options.amdname + "',"
else:
options.amdname = ""
if options.amd == 'pre':
print "\nAdding AMD function."
merged = "define(%sfunction(){%sreturn OpenLayers;});" % (options.amdname, merged)
print "Compressing using %s" % use_compressor print "Compressing using %s" % use_compressor
if use_compressor == "jsmin": if use_compressor == "jsmin":
minimized = jsmin.jsmin(merged) minimized = jsmin.jsmin(merged)
elif use_compressor == "minimize": elif use_compressor == "minimize":
minimized = minimize.minimize(merged) minimized = minimize.minimize(merged)
elif use_compressor == "closure_ws": elif use_compressor == "closure_ws":
minimized = closure_ws.minimize(merged) if len(merged) > 1000000: # The maximum file size for this web service is 1000 KB.
print "\nPre-compressing using jsmin"
merged = jsmin.jsmin(merged)
print "\nIs being compressed using Closure Compiler Service."
try:
minimized = closure_ws.minimize(merged)
except Exception, E:
print "\nAbnormal termination."
sys.exit("ERROR: Closure Compilation using Web service failed!\n%s" % E)
if len(minimized) <= 2:
print "\nAbnormal termination due to compilation errors."
sys.exit("ERROR: Closure Compilation using Web service failed!")
else:
print "Closure Compilation using Web service has completed successfully."
elif use_compressor == "closure": elif use_compressor == "closure":
minimized = closure.minimize(merged) jscompilerJar = "../tools/closure-compiler.jar"
if not os.path.isfile(jscompilerJar):
print "\nNo closure-compiler.jar; read README.txt!"
sys.exit("ERROR: Closure Compiler \"%s\" does not exist! Read README.txt" % jscompilerJar)
minimized = closureCompiler.Compile(
jscompilerJar,
sourceFiles, [
"--externs", "closure-compiler/Externs.js",
"--jscomp_warning", "checkVars", # To enable "undefinedVars"
"--jscomp_error", "checkRegExp", # Also necessary to enable "undefinedVars"
"--jscomp_error", "undefinedVars"
]
)
if minimized is None:
print "\nAbnormal termination due to compilation errors."
sys.exit("ERROR: Closure Compilation failed! See compilation errors.")
print "Closure Compilation has completed successfully."
elif use_compressor == "uglify-js":
minimized = uglify_js.compile(sourceFiles)
if minimized is None:
print "\nAbnormal termination due to compilation errors."
sys.exit("ERROR: Uglify JS compilation failed! See compilation errors.")
print "Uglify JS compilation has completed successfully."
else: # fallback else: # fallback
minimized = merged minimized = merged
print "Adding license file."
if options.amd == 'post':
print "\nAdding AMD function."
minimized = "define(%sfunction(){%sreturn OpenLayers;});" % (options.amdname, minimized)
if options.status:
print "\nAdding status file."
minimized = "// status: " + file(options.status).read() + minimized
print "\nAdding license file."
minimized = file("license.txt").read() + minimized minimized = file("license.txt").read() + minimized
print "Writing to %s." % outputFilename print "Writing to %s." % outputFilename
@@ -70,7 +143,10 @@ def build(config_file = None, output_file = None, options = None):
if __name__ == '__main__': 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 = 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") opt.add_option("-c", "--compressor", dest="compressor", help="compression method: one of 'jsmin' (default), 'minimize', 'closure_ws', 'closure', or 'none'", default="jsmin")
opt.add_option("-s", "--status", dest="status", help="name of a file whose contents will be added as a comment at the front of the output file. For example, when building from a git repo, you can save the output of 'git describe --tags' in this file. Default is no file.", default=False)
opt.add_option("--amd", dest="amd", help="output should be AMD module; wrap merged files in define function; can be either 'pre' (before compilation) or 'post' (after compilation). Wrapping the OpenLayers var in a function means the filesize can be reduced by the closure compiler using 'pre', but be aware that a few functions depend on the OpenLayers variable being present. Either option can be used with jsmin or minimize compression. Default false, not AMD.", default=False)
opt.add_option("--amdname", dest="amdname", help="only useful with amd option. Name of AMD module. Default no name, anonymous module.", default=False)
(options, args) = opt.parse_args() (options, args) = opt.parse_args()
if not len(args): if not len(args):
build(options=options) build(options=options)
@@ -79,4 +155,4 @@ if __name__ == '__main__':
elif len(args) == 2: elif len(args) == 2:
build(args[0], args[1], options=options) build(args[0], args[1], options=options)
else: else:
print "Wrong number of arguments" print "Wrong number of arguments"
+50
View File
@@ -0,0 +1,50 @@
// ********************************************
// This source file serves *ONLY* to avoid some compilation errors when the
// compiler uses the flag:
// --jscomp_error undefinedVars
//
// In this source are declared all variables from other programs that use
// OpenLayers. This avoids the error of undefined variable for these names.
//
// NOTE: The compiler does not include externs files like this in the
// compilation result.
// ********************************************
// Used in lib/Firebug/firebug.js when gecko_dom
var frames;
// Check the console when using Firebug Lite
var console;
// Proj4js
var Proj4js = {Proj: function(){}};
// Check JSON in lib/OpenLayers/Format/JSON.js
var JSON = {};
// Google Maps
var GMap2;
var G_NORMAL_MAP;
var GEvent;
var GLatLngBounds = function(){};
var GSize = function(x, y){};
var GPoint = function(x, y){};
var GLatLng = function(lat, lon){};
// Multimap
var MultimapViewer = function(div){};
var MMLatLon = function(lat, lon){};
var MMPoint = function(x, y){};
//VirtualEarth
var VEMap = function(name){};
var VEPixel = function(x, y){};
var VELatLong = function(lat, lon){};
var Msn = {VE:{}};
// Yahoo
var YMap = function(div, type, size){};
var YGeoPoint = function(lat, lon){};
var YCoordPoint = function(x, y){};
var YSize = function(w, h){};
+1
View File
@@ -11,3 +11,4 @@
Firebug Firebug
OpenLayers.js OpenLayers.js
OpenLayers/Lang OpenLayers/Lang
deprecated.js
-48
View File
@@ -1,48 +0,0 @@
# This file includes the OpenLayers code to create a build for everything that
# does not require vector support.
[first]
[last]
[include]
[exclude]
Firebug
OpenLayers.js
OpenLayers/Format/GeoRSS.js
OpenLayers/Format/GML.js
OpenLayers/Format/WKT.js
OpenLayers/Format/KML.js
OpenLayers/Format/WFS.js
OpenLayers/Format.js
OpenLayers/Handler/Path.js
OpenLayers/Handler/Point.js
OpenLayers/Handler/Polygon.js
OpenLayers/Handler/Select.js
OpenLayers/Geometry/Collection.js
OpenLayers/Geometry/Curve.js
OpenLayers/Geometry/LinearRing.js
OpenLayers/Geometry/LineString.js
OpenLayers/Geometry/MultiLineString.js
OpenLayers/Geometry/MultiPoint.js
OpenLayers/Geometry/MultiPolygon.js
OpenLayers/Geometry/Point.js
OpenLayers/Geometry/Polygon.js
OpenLayers/Geometry/Rectangle.js
OpenLayers/Geometry/Surface.js
OpenLayers/Geometry.js
OpenLayers/Layer/GML.js
OpenLayers/Layer/Vector.js
OpenLayers/Control/DrawFeature.js
OpenLayers/Control/EditingToolbar.js
OpenLayers/Control/SelectFeature.js
OpenLayers/Feature/Vector.js
OpenLayers/Renderer
OpenLayers/Renderer/Elements.js
OpenLayers/Renderer/SVG.js
OpenLayers/Renderer/VML.js
OpenLayers/Renderer.js
OpenLayers/Lang
+6 -74
View File
@@ -2,47 +2,17 @@
OpenLayers.js -- OpenLayers Map Viewer Library OpenLayers.js -- OpenLayers Map Viewer Library
Copyright 2005-2011 OpenLayers Contributors, released under the FreeBSD Copyright (c) 2006-2013 by OpenLayers Contributors
license. Please see http://svn.openlayers.org/trunk/openlayers/license.txt Published under the 2-clause BSD license.
for the full text of the license. See http://openlayers.org/dev/license.txt for the full text of the license, and http://openlayers.org/dev/authors.txt for full list of contributors.
Includes compressed code under the following licenses: Includes compressed code under the following licenses:
(For uncompressed versions of the code used please see the (For uncompressed versions of the code used, please see the
OpenLayers SVN repository: <http://openlayers.org/>) OpenLayers Github repository: <https://github.com/openlayers/openlayers>)
*/ */
/* Contains portions of Prototype.js:
*
* Prototype JavaScript framework, version 1.4.0
* (c) 2005 Sam Stephenson <sam@conio.net>
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://prototype.conio.net/
*
*--------------------------------------------------------------------------*/
/**
*
* Contains portions of Rico <http://openrico.org/>
*
* Copyright 2005 Sabre Airline Solutions
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
**/
/** /**
* Contains XMLHttpRequest.js <http://code.google.com/p/xmlhttprequest/> * Contains XMLHttpRequest.js <http://code.google.com/p/xmlhttprequest/>
* Copyright 2007 Sergey Ilinsky (http://www.ilinsky.com) * Copyright 2007 Sergey Ilinsky (http://www.ilinsky.com)
@@ -53,44 +23,6 @@
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*/ */
/**
* Contains portions of Gears <http://code.google.com/apis/gears/>
*
* Copyright 2007, Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of Google Inc. nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Sets up google.gears.*, which is *the only* supported way to access Gears.
*
* Circumvent this file at your own risk!
*
* In the future, Gears may automatically define google.gears.* without this
* file. Gears may use these objects to transparently fix bugs and compatibility
* issues. Applications that use the code below will continue to work seamlessly
* when that happens.
*/
/** /**
* OpenLayers.Util.pagePosition is based on Yahoo's getXY method, which is * OpenLayers.Util.pagePosition is based on Yahoo's getXY method, which is
* Copyright (c) 2006, Yahoo! Inc. * Copyright (c) 2006, Yahoo! Inc.
@@ -122,4 +54,4 @@
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * 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 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
+32
View File
@@ -0,0 +1,32 @@
[first]
[last]
[include]
OpenLayers/Map.js
OpenLayers/Kinetic.js
OpenLayers/Projection.js
OpenLayers/Layer/Vector.js
OpenLayers/Layer/OSM.js
OpenLayers/Layer/Bing.js
OpenLayers/Layer/WMS.js
OpenLayers/Layer/Google/v3.js
OpenLayers/Popup/FramedCloud.js
OpenLayers/Control/Navigation.js
OpenLayers/Control/Zoom.js
OpenLayers/Control/Attribution.js
OpenLayers/Control/SelectFeature.js
OpenLayers/Control/Panel.js
OpenLayers/Control/LayerSwitcher.js
OpenLayers/Renderer/SVG.js
OpenLayers/Renderer/VML.js
OpenLayers/Format/GeoJSON.js
OpenLayers/Protocol/HTTP.js
OpenLayers/Strategy/Fixed.js
OpenLayers/Strategy/BBOX.js
OpenLayers/StyleMap.js
OpenLayers/Rule.js
OpenLayers/Filter/Comparison.js
OpenLayers/Filter/Logical.js
[exclude]
+3 -3
View File
@@ -6,13 +6,12 @@
OpenLayers/Map.js OpenLayers/Map.js
OpenLayers/Kinetic.js OpenLayers/Kinetic.js
OpenLayers/Projection.js OpenLayers/Projection.js
OpenLayers/Layer/SphericalMercator.js OpenLayers/Layer/OSM.js
OpenLayers/Layer/XYZ.js
OpenLayers/Layer/Bing.js OpenLayers/Layer/Bing.js
OpenLayers/Layer/WMS.js OpenLayers/Layer/WMS.js
OpenLayers/Control/TouchNavigation.js OpenLayers/Control/TouchNavigation.js
OpenLayers/Control/Geolocate.js OpenLayers/Control/Geolocate.js
OpenLayers/Control/ZoomPanel.js OpenLayers/Control/Zoom.js
OpenLayers/Control/Attribution.js OpenLayers/Control/Attribution.js
OpenLayers/Control/SelectFeature.js OpenLayers/Control/SelectFeature.js
OpenLayers/Control/DrawFeature.js OpenLayers/Control/DrawFeature.js
@@ -30,6 +29,7 @@ OpenLayers/Protocol/HTTP.js
OpenLayers/Protocol/WFS.js OpenLayers/Protocol/WFS.js
OpenLayers/Protocol/WFS/v1_0_0.js OpenLayers/Protocol/WFS/v1_0_0.js
OpenLayers/Strategy/Fixed.js OpenLayers/Strategy/Fixed.js
OpenLayers/TileManager.js
[exclude] [exclude]
+1
View File
@@ -7,4 +7,5 @@
[include] [include]
[exclude] [exclude]
Firebug
OpenLayers.js OpenLayers.js
-49
View File
@@ -1,49 +0,0 @@
Customizing OpenLayers
======================
OpenLayers is designed to fit many needs -- fitting in alongside all kinds of
various applications which are currently in use.
Currently, OpenLayers supports a 'theme' option when creating a map. This
theme option allows you to specify the location of a CSS theme which should
be included.
A default theme is available as an example in the theme/ directory: the setup
is:
* theme/
* theme/default/
* theme/default/style.css
* theme/default/img/
Currently, the OpenLayers code does not support class names, and therefore,
it is not possible to control many aspects of OpenLayers code with CSS
classes. However, with this framework in place, we expect to invest time
to make existing features and new features use the CSS theming framework
where apropriate.
Class Naming
============
Elements should have class names which are descriptive of the Javascript
class from which they come. For example, the main layer switcher element
in the OpenLayers.Control.LayerSwitcher would be classed:
olControlLayerSwitcher
This would allow users to add to their style.css class in their theme,
changing, for example:
::
.olControlLayerSwitcher input {
width:10px;
}
Sub elements of a particular control can add to the class name:
::
.olControlLayerSwitcherBaseLabel {
color: red;
}
-7
View File
@@ -1,7 +0,0 @@
Automatically generated OpenLayers API documentation is online:
http://dev.openlayers.org/apidocs
More information on documentation is available from:
http://trac.openlayers.org/wiki/Documentation
-96
View File
@@ -1,96 +0,0 @@
<html>
<head>
<title>OpenLayers examples walkthrough</title>
<style type="text/css">
a { color:blue; text-decoration: none; }
a:hover { text-decoration: underline; }
</style>
<base href="http://openlayers.org/dev/examples/">
</head>
<body style="font-family: sans-serif">
<h1><pre style="font-size: larger">&lt;ol&gt;</pre></h1>
<p>API documentation: <a href="http://dev.openlayers.org/docs/">http://dev.openlayers.org/docs/</a></p>
<p>Examples: <a href="http://dev.openlayers.org/examples/">http://openlayers.org/dev/examples/</a></p>
<h2>Maps</h2>
<ol>
<li><a href="../examples/lite.html">Basic example</a></li>
<li><a href="../examples/layerswitcher.html">Layer switcher (aka legend)</a></li>
<li><a href="../examples/example.html">Base layers versus overlays</a></li>
<li><a href="../examples/multiserver.html">Multiple WMS mirrors</a></li>
<li><a href="../examples/fullScreen.html">Full screen map</a></li>
<li><a href="../examples/wrapDateLine.html">Wrapping the date line</a></li>
<li><a href="../examples/projected-map.html">Other cartographic projections</a></li>
<li><a href="../examples/layer-opacity.html">Translucent overlays</a></li>
</ol>
<h2>Raster Layers</h2>
<ol>
<li><a href="../examples/wms-untiled.html">Untiled WMS layer</a></li>
<li><a href="../examples/kamap.html">Ka-Map layer</a></li>
<li><a href="../examples/mapserver.html">MapServer layer</a></li>
<li><a href="../examples/worldwind.html">Worldwind layer</a></li>
<li><a href="../examples/tms.html">TMS layer</a></li>
<li><a href="../examples/image-layer.html">Image layer</a></li>
<li><a href="../examples/google.html">Google layer</a></li>
<li><a href="../examples/ve.html">VirtualEarth layer</a></li>
<li><a href="../examples/spherical-mercator.html">Spherical Mercator ("EPSG:900913")</a></li>
<li><a href="http://tilecache.org/">TileCache</a></li>
</ol>
<h2>Marker Layers</h2>
<ol>
<li><a href="../examples/markers.html">Markers</a></li>
<li><a href="../examples/markerResize.html">Changing marker properties dynamically</a></li>
<li><a href="../examples/popups.html">Popups</a></li>
<li><a href="../examples/georss.html">GeoRSS</a> (<a href="georss.xml">example data</a>)</a></li>
<li><a href="../examples/georss-markers.html">GeoRSS with custom markers</a></li>
<li><a href="../examples/wfs.html">Point layer from WFS</a></li>
<li><a href="../examples/getfeatureinfo.html">WFS GetFeatureInfo example</a></li>
</ol>
<h2>Events and Controls</h2>
<ol>
<li><a href="../examples/navtoolbar.html">Navigation tools on the map</a></li>
<li><a href="../examples/navtoolbar-outsidemap.html">Navigation toolbar off the map</a></li>
<li><a href="../examples/mouse-position.html">Tracking the mouse position</a></li>
<li><a href="../examples/overview.html">Overview map</a></li>
<li><a href="../examples/attribution.html">Layer attribution</a></li>
<li><a href="../examples/controls.html">Full range of controls</a></li>
<li><a href="../examples/custom-control.html">Custom controls #1</a></li>
<li><a href="../examples/custom-control.html">Custom controls #2</a></li>
<li><a href="../examples/custom-style.html">Custom control styles</a></li>
<li><a href="../examples/click.html">Trapping click events</a></li>
<li><a href="../examples/layerLoadMonitoring.html">Tracking map events</a></li>
</ol>
<h2>Vector Layers</h2>
<ol>
<li><a href="../examples/vector-features.html">Generating features in JavaScript</a></li>
<li><a href="../examples/gml-layer.html">Loading features from GML</a></li>
<li><a href="../examples/kml-layer.html">Loading features from KML</a></li>
<li><a href="../examples/gml-serialize.html">Serializing features to GML</a></li>
<li><a href="../examples/vector-formats.html">Serializing to other formats</a></li>
<li><a href="../examples/select-feature.html">Selecting features</a></li>
<li><a href="../examples/select-feature-openpopup.html">Attaching popups to features</a></li>
</ol>
<h2>Editing Tools</h2>
<ol>
<li><a href="../examples/draw-feature.html">Drawing features</a></li>
<li><a href="../examples/editingtoolbar.html">Editing toolbar</a> (<a href="editingtoolbar-outside.html">outside the map</a>)</li>
<li><a href="../examples/regular-polygons.html">Creating regular polygons</a></li>
<li><a href="../examples/modify-feature.html">Modifying features</a></li>
<li><a href="../examples/resize-features.html">Resizing features</a></li>
<li><a href="../examples/rotate-features.html">Rotating features</a></li>
<li><a href="../examples/wfs-t.html">Transactional WFS example</a></li>
<li><a href="http://featureserver.org/">FeatureServer</a></li>
</ol>
<h2>Testing</h2>
<ol>
<li><a href="../tests/run-tests.html">Test.AnotherWay suite</a></li>
</ol>
<h1><pre style="font-size: larger">&lt;/ol&gt;</pre></h1>
</body>
</html>
+17 -42
View File
@@ -48,7 +48,6 @@ SubTitle: JavaScript Mapping Library
Group: OpenLayers { Group: OpenLayers {
File: OpenLayers (no auto-title, OpenLayers.js) File: OpenLayers (no auto-title, OpenLayers.js)
File: Ajax (no auto-title, OpenLayers/Ajax.js)
Group: BaseTypes { Group: BaseTypes {
@@ -81,9 +80,7 @@ Group: OpenLayers {
File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js) File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js)
File: Measure (no auto-title, OpenLayers/Control/Measure.js) File: Measure (no auto-title, OpenLayers/Control/Measure.js)
File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js) File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js)
File: MouseDefaults (no auto-title, OpenLayers/Control/MouseDefaults.js)
File: MousePosition (no auto-title, OpenLayers/Control/MousePosition.js) File: MousePosition (no auto-title, OpenLayers/Control/MousePosition.js)
File: MouseToolbar (no auto-title, OpenLayers/Control/MouseToolbar.js)
File: Navigation (no auto-title, OpenLayers/Control/Navigation.js) File: Navigation (no auto-title, OpenLayers/Control/Navigation.js)
File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js) File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js)
File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js) File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js)
@@ -118,7 +115,6 @@ Group: OpenLayers {
File: Feature (no auto-title, OpenLayers/Feature.js) File: Feature (no auto-title, OpenLayers/Feature.js)
File: Vector (no auto-title, OpenLayers/Feature/Vector.js) File: Vector (no auto-title, OpenLayers/Feature/Vector.js)
File: WFS (no auto-title, OpenLayers/Feature/WFS.js)
} # Group: Feature } # Group: Feature
Group: Filter { Group: Filter {
@@ -152,9 +148,6 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/Filter/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/Filter/v1_1_0.js)
} # Group: Filter } # Group: Filter
File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js)
File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js)
Group: GML { Group: GML {
File: GML (no auto-title, OpenLayers/Format/GML.js) File: GML (no auto-title, OpenLayers/Format/GML.js)
@@ -163,15 +156,24 @@ Group: OpenLayers {
File: v3 (no auto-title, OpenLayers/Format/GML/v3.js) File: v3 (no auto-title, OpenLayers/Format/GML/v3.js)
} # Group: GML } # Group: GML
Group: SLD {
File: SLD (no auto-title, OpenLayers/Format/SLD.js)
File: v1 (no auto-title, OpenLayers/Format/SLD/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/SLD/v1_0_0.js)
} # Group: SLD
File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js)
File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js)
File: GPX (no auto-title, OpenLayers/Format/GPX.js) File: GPX (no auto-title, OpenLayers/Format/GPX.js)
File: JSON (no auto-title, OpenLayers/Format/JSON.js) File: JSON (no auto-title, OpenLayers/Format/JSON.js)
File: KML (no auto-title, OpenLayers/Format/KML.js) File: KML (no auto-title, OpenLayers/Format/KML.js)
File: OGCExceptionReport (no auto-title, OpenLayers/Format/OGCExceptionReport.js) File: OGCExceptionReport (no auto-title, OpenLayers/Format/OGCExceptionReport.js)
File: OSM (no auto-title, OpenLayers/Format/OSM.js) File: OSM (no auto-title, OpenLayers/Format/OSM.js)
File: OWSCommon (no auto-title, OpenLayers/Format/OWSCommon.js)
Group: OWSCommon { Group: OWSCommon {
File: OWSCommon (no auto-title, OpenLayers/Format/OWSCommon.js)
File: v1 (no auto-title, OpenLayers/Format/OWSCommon/v1.js) File: v1 (no auto-title, OpenLayers/Format/OWSCommon/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_0_0.js) File: v1_0_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/OWSCommon/v1_1_0.js)
@@ -180,19 +182,12 @@ Group: OpenLayers {
File: OWSContext (no auto-title, OpenLayers/Format/OWSContext.js) File: OWSContext (no auto-title, OpenLayers/Format/OWSContext.js)
File: OWSContext.v0_3_1 (no auto-title, OpenLayers/Format/OWSContext/v0_3_1.js) File: OWSContext.v0_3_1 (no auto-title, OpenLayers/Format/OWSContext/v0_3_1.js)
File: QueryStringFilter (no auto-title, OpenLayers/Format/QueryStringFilter.js) File: QueryStringFilter (no auto-title, OpenLayers/Format/QueryStringFilter.js)
Group: SLD {
File: SLD (no auto-title, OpenLayers/Format/SLD.js)
File: v1 (no auto-title, OpenLayers/Format/SLD/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/SLD/v1_0_0.js)
} # Group: SLD
File: SOSCapabilities (no auto-title, OpenLayers/Format/SOSCapabilities.js) File: SOSCapabilities (no auto-title, OpenLayers/Format/SOSCapabilities.js)
File: SOSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/SOSCapabilities/v1_0_0.js) File: SOSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/SOSCapabilities/v1_0_0.js)
File: SOSGetFeatureOfInterest (no auto-title, OpenLayers/Format/SOSGetFeatureOfInterest.js) File: SOSGetFeatureOfInterest (no auto-title, OpenLayers/Format/SOSGetFeatureOfInterest.js)
File: SOSGetObservation (no auto-title, OpenLayers/Format/SOSGetObservation.js) File: SOSGetObservation (no auto-title, OpenLayers/Format/SOSGetObservation.js)
File: Text (no auto-title, OpenLayers/Format/Text.js) File: Text (no auto-title, OpenLayers/Format/Text.js)
File: VersionedOGC (OpenLayers/Format/XML/VersionedOGC.js)
File: WCSGetCoverage version 1.1.0 (no auto-title, OpenLayers/Format/WCSGetCoverage.js) File: WCSGetCoverage version 1.1.0 (no auto-title, OpenLayers/Format/WCSGetCoverage.js)
File: WFS (no auto-title, OpenLayers/Format/WFS.js) File: WFS (no auto-title, OpenLayers/Format/WFS.js)
@@ -204,8 +199,6 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_1_0.js)
} # Group: WFSCapabilities } # Group: WFSCapabilities
File: WFSDescribeFeatureType (no auto-title, OpenLayers/Format/WFSDescribeFeatureType.js)
Group: WFST { Group: WFST {
File: WFST (no auto-title, OpenLayers/Format/WFST.js) File: WFST (no auto-title, OpenLayers/Format/WFST.js)
@@ -214,8 +207,6 @@ Group: OpenLayers {
File: v1_1_0 (no auto-title, OpenLayers/Format/WFST/v1_1_0.js) File: v1_1_0 (no auto-title, OpenLayers/Format/WFST/v1_1_0.js)
} # Group: WFST } # Group: WFST
File: WKT (no auto-title, OpenLayers/Format/WKT.js)
Group: WMC { Group: WMC {
File: WMC (no auto-title, OpenLayers/Format/WMC.js) File: WMC (no auto-title, OpenLayers/Format/WMC.js)
@@ -242,6 +233,8 @@ Group: OpenLayers {
File: v1_1 (no auto-title, OpenLayers/Format/WMSDescribeLayer/v1_1.js) File: v1_1 (no auto-title, OpenLayers/Format/WMSDescribeLayer/v1_1.js)
} # Group: WMSDescribeLayer } # Group: WMSDescribeLayer
File: WFSDescribeFeatureType (no auto-title, OpenLayers/Format/WFSDescribeFeatureType.js)
File: WKT (no auto-title, OpenLayers/Format/WKT.js)
File: WMSGetFeatureInfo (no auto-title, OpenLayers/Format/WMSGetFeatureInfo.js) File: WMSGetFeatureInfo (no auto-title, OpenLayers/Format/WMSGetFeatureInfo.js)
File: WMTSCapabilities (no auto-title, OpenLayers/Format/WMTSCapabilities.js) File: WMTSCapabilities (no auto-title, OpenLayers/Format/WMTSCapabilities.js)
File: WMTSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/WMTSCapabilities/v1_0_0.js) File: WMTSCapabilities.v1_0_0 (no auto-title, OpenLayers/Format/WMTSCapabilities/v1_0_0.js)
@@ -267,7 +260,6 @@ Group: OpenLayers {
File: MultiPolygon (no auto-title, OpenLayers/Geometry/MultiPolygon.js) File: MultiPolygon (no auto-title, OpenLayers/Geometry/MultiPolygon.js)
File: Point (no auto-title, OpenLayers/Geometry/Point.js) File: Point (no auto-title, OpenLayers/Geometry/Point.js)
File: Polygon (no auto-title, OpenLayers/Geometry/Polygon.js) File: Polygon (no auto-title, OpenLayers/Geometry/Polygon.js)
File: Rectangle (no auto-title, OpenLayers/Geometry/Rectangle.js)
} # Group: Geometry } # Group: Geometry
Group: Handler { Group: Handler {
@@ -327,6 +319,7 @@ Group: OpenLayers {
File: nl (no auto-title, OpenLayers/Lang/nl.js) File: nl (no auto-title, OpenLayers/Lang/nl.js)
File: nn (no auto-title, OpenLayers/Lang/nn.js) File: nn (no auto-title, OpenLayers/Lang/nn.js)
File: oc (no auto-title, OpenLayers/Lang/oc.js) File: oc (no auto-title, OpenLayers/Lang/oc.js)
File: pl (no auto-title, OpenLayers/Lang/pl.js)
File: pt (no auto-title, OpenLayers/Lang/pt.js) File: pt (no auto-title, OpenLayers/Lang/pt.js)
File: pt-BR (no auto-title, OpenLayers/Lang/pt-BR.js) File: pt-BR (no auto-title, OpenLayers/Lang/pt-BR.js)
File: ru (no auto-title, OpenLayers/Lang/ru.js) File: ru (no auto-title, OpenLayers/Lang/ru.js)
@@ -349,10 +342,8 @@ Group: OpenLayers {
File: EventPane (no auto-title, OpenLayers/Layer/EventPane.js) File: EventPane (no auto-title, OpenLayers/Layer/EventPane.js)
File: FixedZoomLevels (no auto-title, OpenLayers/Layer/FixedZoomLevels.js) File: FixedZoomLevels (no auto-title, OpenLayers/Layer/FixedZoomLevels.js)
File: GeoRSS (no auto-title, OpenLayers/Layer/GeoRSS.js) File: GeoRSS (no auto-title, OpenLayers/Layer/GeoRSS.js)
File: GML (no auto-title, OpenLayers/Layer/GML.js)
File: Google (no auto-title, OpenLayers/Layer/Google.js) File: Google (no auto-title, OpenLayers/Layer/Google.js)
File: Google.v3 (no auto-title, OpenLayers/Layer/Google/v3.js) File: Google.v3 (no auto-title, OpenLayers/Layer/Google/v3.js)
File: GoogleNG (no auto-title, OpenLayers/Layer/GoogleNG.js)
File: Grid (no auto-title, OpenLayers/Layer/Grid.js) File: Grid (no auto-title, OpenLayers/Layer/Grid.js)
File: HTTPRequest (no auto-title, OpenLayers/Layer/HTTPRequest.js) File: HTTPRequest (no auto-title, OpenLayers/Layer/HTTPRequest.js)
File: Image (no auto-title, OpenLayers/Layer/Image.js) File: Image (no auto-title, OpenLayers/Layer/Image.js)
@@ -360,9 +351,7 @@ Group: OpenLayers {
File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js) File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js)
File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js) File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js)
File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js) File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js)
File: MapServer.Untiled (no auto-title, OpenLayers/Layer/MapServer/Untiled.js)
File: Markers (no auto-title, OpenLayers/Layer/Markers.js) File: Markers (no auto-title, OpenLayers/Layer/Markers.js)
File: MultiMap (no auto-title, OpenLayers/Layer/MultiMap.js)
File: PointGrid (no auto-title, OpenLayers/Layer/PointGrid.js) File: PointGrid (no auto-title, OpenLayers/Layer/PointGrid.js)
File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js) File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js)
File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js) File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js)
@@ -371,15 +360,10 @@ Group: OpenLayers {
File: TMS (no auto-title, OpenLayers/Layer/TMS.js) File: TMS (no auto-title, OpenLayers/Layer/TMS.js)
File: Vector (no auto-title, OpenLayers/Layer/Vector.js) File: Vector (no auto-title, OpenLayers/Layer/Vector.js)
File: Vector.RootContainer (no auto-title, OpenLayers/Layer/Vector/RootContainer.js) File: Vector.RootContainer (no auto-title, OpenLayers/Layer/Vector/RootContainer.js)
File: VirtualEarth (no auto-title, OpenLayers/Layer/VirtualEarth.js)
File: WFS (no auto-title, OpenLayers/Layer/WFS.js)
File: WMS (no auto-title, OpenLayers/Layer/WMS.js) File: WMS (no auto-title, OpenLayers/Layer/WMS.js)
File: WMS.Untiled (no auto-title, OpenLayers/Layer/WMS/Untiled.js)
File: WMS.Post (no auto-title, OpenLayers/Layer/WMS/Post.js)
File: WMTS (no auto-title, OpenLayers/Layer/WMTS.js) File: WMTS (no auto-title, OpenLayers/Layer/WMTS.js)
File: WorldWind (no auto-title, OpenLayers/Layer/WorldWind.js) File: WorldWind (no auto-title, OpenLayers/Layer/WorldWind.js)
File: XYZ (no auto-title, OpenLayers/Layer/XYZ.js) File: XYZ (no auto-title, OpenLayers/Layer/XYZ.js)
File: Yahoo (no auto-title, OpenLayers/Layer/Yahoo.js)
File: Zoomify (no auto-title, OpenLayers/Layer/Zoomify.js) File: Zoomify (no auto-title, OpenLayers/Layer/Zoomify.js)
} # Group: Layer } # Group: Layer
@@ -395,7 +379,6 @@ Group: OpenLayers {
File: Popup (no auto-title, OpenLayers/Popup.js) File: Popup (no auto-title, OpenLayers/Popup.js)
File: Anchored (no auto-title, OpenLayers/Popup/Anchored.js) File: Anchored (no auto-title, OpenLayers/Popup/Anchored.js)
File: AnchoredBubble (no auto-title, OpenLayers/Popup/AnchoredBubble.js)
File: Framed (no auto-title, OpenLayers/Popup/Framed.js) File: Framed (no auto-title, OpenLayers/Popup/Framed.js)
File: FramedCloud (no auto-title, OpenLayers/Popup/FramedCloud.js) File: FramedCloud (no auto-title, OpenLayers/Popup/FramedCloud.js)
} # Group: Popup } # Group: Popup
@@ -407,12 +390,6 @@ Group: OpenLayers {
File: Protocol (no auto-title, OpenLayers/Protocol.js) File: Protocol (no auto-title, OpenLayers/Protocol.js)
File: HTTP (no auto-title, OpenLayers/Protocol/HTTP.js) File: HTTP (no auto-title, OpenLayers/Protocol/HTTP.js)
Group: SQL {
File: SQL (no auto-title, OpenLayers/Protocol/SQL.js)
File: Gears (no auto-title, OpenLayers/Protocol/SQL/Gears.js)
} # Group: SQL
Group: WFS { Group: WFS {
File: WFS (no auto-title, OpenLayers/Protocol/WFS.js) File: WFS (no auto-title, OpenLayers/Protocol/WFS.js)
@@ -431,9 +408,7 @@ Group: OpenLayers {
File: Renderer (no auto-title, OpenLayers/Renderer.js) File: Renderer (no auto-title, OpenLayers/Renderer.js)
File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js) File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js)
File: ElementsIndexer (no auto-title, OpenLayers/Renderer/Elements.js) File: ElementsIndexer (no auto-title, OpenLayers/Renderer/Elements.js)
File: NG (no auto-title, OpenLayers/Renderer/NG.js)
File: SVG (no auto-title, OpenLayers/Renderer/SVG.js) File: SVG (no auto-title, OpenLayers/Renderer/SVG.js)
File: SVG2 (no auto-title, OpenLayers/Renderer/SVG2.js)
File: VML (no auto-title, OpenLayers/Renderer/VML.js) File: VML (no auto-title, OpenLayers/Renderer/VML.js)
} # Group: Renderer } # Group: Renderer
@@ -443,8 +418,8 @@ Group: OpenLayers {
File: XMLHttpRequest (no auto-title, OpenLayers/Request/XMLHttpRequest.js) File: XMLHttpRequest (no auto-title, OpenLayers/Request/XMLHttpRequest.js)
} # Group: Request } # Group: Request
File: SingleFile.js (no auto-title, OpenLayers/SingleFile.js)
File: Rule (no auto-title, OpenLayers/Rule.js) File: Rule (no auto-title, OpenLayers/Rule.js)
File: SingleFile.js (no auto-title, OpenLayers/SingleFile.js)
Group: Strategy { Group: Strategy {
@@ -475,14 +450,14 @@ Group: OpenLayers {
Group: Tile { Group: Tile {
File: Tile (no auto-title, OpenLayers/Tile.js) File: Tile (no auto-title, OpenLayers/Tile.js)
File: Google (no auto-title, OpenLayers/Tile/Google.js)
File: Image (no auto-title, OpenLayers/Tile/Image.js) File: Image (no auto-title, OpenLayers/Tile/Image.js)
File: Image.IFrame (no auto-title, OpenLayers/Tile/Image/IFrame.js) File: Image.IFrame (no auto-title, OpenLayers/Tile/Image/IFrame.js)
File: WFS (no auto-title, OpenLayers/Tile/WFS.js)
} # Group: Tile } # Group: Tile
File: Tween (no auto-title, OpenLayers/Tween.js) File: Tween (no auto-title, OpenLayers/Tween.js)
File: Util (no auto-title, OpenLayers/Util.js) File: Util (no auto-title, OpenLayers/Util.js)
File: Spherical (no auto-title, OpenLayers/Spherical.js)
File: Deprecated (no auto-title, deprecated.js)
} # Group: OpenLayers } # Group: OpenLayers
Group: Index { Group: Index {
+2 -2
View File
@@ -10,7 +10,7 @@
<script type="text/javascript"> <script type="text/javascript">
function parseData(req) { function parseData(req) {
g = new OpenLayers.Format.KML({extractStyles: true}); g = new OpenLayers.Format.KML({extractStyles: true});
html = "" html = "";
features = g.read(req.responseText); features = g.read(req.responseText);
for(var feat in features) { for(var feat in features) {
html += "Feature: Geometry: "+ features[feat].geometry+","; html += "Feature: Geometry: "+ features[feat].geometry+",";
@@ -18,7 +18,7 @@
for (var j in features[feat].attributes) { for (var j in features[feat].attributes) {
html += "<li>Attribute "+j+":"+features[feat].attributes[j]+"</li>"; html += "<li>Attribute "+j+":"+features[feat].attributes[j]+"</li>";
} }
html += "</ul>" html += "</ul>";
html += "<ul>"; html += "<ul>";
for (var j in features[feat].style) { for (var j in features[feat].style) {
html += "<li>Style "+j+":"+features[feat].style[j]+"</li>"; html += "<li>Style "+j+":"+features[feat].style[j]+"</li>";
+6 -5
View File
@@ -10,13 +10,14 @@
<script type="text/javascript"> <script type="text/javascript">
function parseData(req) { function parseData(req) {
format = new OpenLayers.Format.WMSDescribeLayer(); format = new OpenLayers.Format.WMSDescribeLayer();
html = "<br>" html = "<br>";
resp = format.read(req.responseText); resp = format.read(req.responseText);
for(var i = 0; i < resp.length; i++) { var layerDescriptions = resp.layerDescriptions;
html += "Layer: typeName: "+ resp[i].typeName+","; for(var i = 0; i < layerDescriptions.length; i++) {
html += "Layer: typeName: "+layerDescriptions[i].typeName+",";
html += "<ul>"; html += "<ul>";
html += "<li>owsURL: "+resp[i].owsURL+"</li>"; html += "<li>owsURL: "+layerDescriptions[i].owsURL+"</li>";
html += "<li>owsType: "+resp[i].owsType+"</li>"; html += "<li>owsType: "+layerDescriptions[i].owsType+"</li>";
html += "</ul>" html += "</ul>"
} }
document.getElementById('output').innerHTML = html; document.getElementById('output').innerHTML = html;
+69
View File
@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>Accessible Custom Click Control</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
<style type="text/css">
a {
text-decoration: none;
font-size: 1.2em;
}
a em {
font-style: normal;
font-weight: normal;
text-decoration: underline;
}
a:hover {
text-decoration: underline;
}
a.api {
font-size:1em;
text-decoration:underline;
}
a.accesskey {
color: white;
}
a.accesskey:focus {
color: #436976;
}
a.zoom {
padding-right: 20px;
}
</style>
<script src="../lib/Firebug/firebug.js"></script>
<script src="../lib/OpenLayers.js"></script>
<script src="accessible-click-control.js"></script>
</head>
<body onload="init()">
<h1 id="title">An accessible click control implementation</h1>
<div id="tags">
click, control, accessibility
</div>
<a class="accesskey"
href=""
accesskey="1"
onclick="document.getElementById('map').focus();return false;">
Jump to map
</a>
<div id="map" class="smallmap" tabindex="0"></div>
<p id="desc">
Demonstrate the KeyboardDefaults control as well as a control that
allows clicking on the map using the keyboard.
First focus the map (using tab key or mouse), then press the 'i'
key to activate the query control. You can then move the point
using arrow keys. Press 'RETURN' to get the coordinate. Press 'i'
again to deactivate the control.
</p>
</body>
</html>
+199
View File
@@ -0,0 +1,199 @@
var map, navigationControl, queryControl;
function init(){
map = new OpenLayers.Map('map', {controls: []});
var layer = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'}
);
map.addLayers([layer]);
navigationControl = new OpenLayers.Control.KeyboardDefaults({
observeElement: 'map'
});
map.addControl(navigationControl);
queryControl = new OpenLayers.Control.KeyboardClick({
observeElement: 'map'
});
map.addControl(queryControl);
map.zoomToMaxExtent();
}
/**
* Class: OpenLayers.Control.KeyboardClick
*
* A custom control that (a) adds a vector point that can be moved using the
* arrow keys of the keyboard, and (b) displays a browser alert window when the
* RETURN key is pressed. The control can be activated/deactivated using the
* "i" key. When activated the control deactivates any KeyboardDefaults control
* in the map so that the map is not moved when the arrow keys are pressed.
*
* This control relies on the OpenLayers.Handler.KeyboardPoint custom handler.
*/
OpenLayers.Control.KeyboardClick = OpenLayers.Class(OpenLayers.Control, {
initialize: function(options) {
OpenLayers.Control.prototype.initialize.apply(this, [options]);
var observeElement = this.observeElement || document;
this.handler = new OpenLayers.Handler.KeyboardPoint(this, {
done: this.onClick,
cancel: this.deactivate
}, {
observeElement: observeElement
});
OpenLayers.Event.observe(
observeElement,
"keydown",
OpenLayers.Function.bindAsEventListener(
function(evt) {
if (evt.keyCode == 73) { // "i"
if (this.active) {
this.deactivate();
} else {
this.activate();
}
}
},
this
)
);
},
onClick: function(geometry) {
alert("You clicked near " + geometry.x + " N, " +
geometry.y + " E");
},
activate: function() {
if(!OpenLayers.Control.prototype.activate.apply(this, arguments)) {
return false;
}
// deactivate any KeyboardDefaults control
var keyboardDefaults = this.map.getControlsByClass(
'OpenLayers.Control.KeyboardDefaults')[0];
if (keyboardDefaults) {
keyboardDefaults.deactivate();
}
return true;
},
deactivate: function() {
if(!OpenLayers.Control.prototype.deactivate.apply(this, arguments)) {
return false;
}
// reactivate any KeyboardDefaults control
var keyboardDefaults = this.map.getControlsByClass(
'OpenLayers.Control.KeyboardDefaults')[0];
if (keyboardDefaults) {
keyboardDefaults.activate();
}
return true;
}
});
/**
* Class: OpenLayers.Handler.KeyboardPoint
*
* A custom handler that displays a vector point that can be moved
* using the arrow keys of the keyboard.
*/
OpenLayers.Handler.KeyboardPoint = OpenLayers.Class(OpenLayers.Handler, {
KEY_EVENTS: ["keydown"],
initialize: function(control, callbacks, options) {
OpenLayers.Handler.prototype.initialize.apply(this, arguments);
// cache the bound event listener method so it can be unobserved later
this.eventListener = OpenLayers.Function.bindAsEventListener(
this.handleKeyEvent, this
);
},
activate: function() {
if(!OpenLayers.Handler.prototype.activate.apply(this, arguments)) {
return false;
}
this.layer = new OpenLayers.Layer.Vector(this.CLASS_NAME);
this.map.addLayer(this.layer);
this.observeElement = this.observeElement || document;
for (var i=0, len=this.KEY_EVENTS.length; i<len; i++) {
OpenLayers.Event.observe(
this.observeElement, this.KEY_EVENTS[i], this.eventListener);
}
if(!this.point) {
this.createFeature();
}
return true;
},
deactivate: function() {
if (!OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {
return false;
}
for (var i=0, len=this.KEY_EVENTS.length; i<len; i++) {
OpenLayers.Event.stopObserving(
this.observeElement, this.KEY_EVENTS[i], this.eventListener);
}
this.map.removeLayer(this.layer);
this.destroyFeature();
return true;
},
handleKeyEvent: function (evt) {
switch(evt.keyCode) {
case OpenLayers.Event.KEY_LEFT:
this.modifyFeature(-3, 0);
break;
case OpenLayers.Event.KEY_RIGHT:
this.modifyFeature(3, 0);
break;
case OpenLayers.Event.KEY_UP:
this.modifyFeature(0, 3);
break;
case OpenLayers.Event.KEY_DOWN:
this.modifyFeature(0, -3);
break;
case OpenLayers.Event.KEY_RETURN:
this.callback('done', [this.point.geometry.clone()]);
break;
case OpenLayers.Event.KEY_ESC:
this.callback('cancel');
break;
}
},
modifyFeature: function(lon, lat) {
if(!this.point) {
this.createFeature();
}
var resolution = this.map.getResolution();
this.point.geometry.x = this.point.geometry.x + lon * resolution;
this.point.geometry.y = this.point.geometry.y + lat * resolution;
this.callback("modify", [this.point.geometry, this.point, false]);
this.point.geometry.clearBounds();
this.drawFeature();
},
createFeature: function() {
var center = this.map.getCenter();
var geometry = new OpenLayers.Geometry.Point(
center.lon, center.lat
);
this.point = new OpenLayers.Feature.Vector(geometry);
this.callback("create", [this.point.geometry, this.point]);
this.point.geometry.clearBounds();
this.layer.addFeatures([this.point], {silent: true});
},
destroyFeature: function() {
this.layer.destroyFeatures([this.point]);
this.point = null;
},
drawFeature: function() {
this.layer.drawFeature(this.point, this.style);
}
});
+130
View File
@@ -0,0 +1,130 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>Custom and accessible panel</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
.olControlPanel button {
position: relative;
display: block;
margin: 2px;
border: 1px solid;
padding: 0 5px;
border-radius: 4px;
height: 35px;
background-color: white;
float: left;
overflow: visible; /* needed to remove padding from buttons in IE */
}
.olControlPanel button span {
padding-left: 25px;
}
.olControlPanel button span:first-child {
padding-left: 0;
display: block;
position: absolute;
left: 2px;
}
.olControlPanel .olControlDrawFeatureItemActive span:first-child {
background-image: url("../theme/default/img/draw_line_on.png");
height: 22px;
width: 24px;
top: 5px;
}
.olControlPanel .olControlDrawFeatureItemInactive span:first-child {
background-image: url("../theme/default/img/draw_line_off.png");
height: 22px;
width: 24px;
top: 5px;
}
.olControlPanel .olControlZoomBoxItemInactive span:first-child {
background-image: url("../img/drag-rectangle-off.png");
height: 29px;
width: 29px;
top: 2px;
}
.olControlPanel .olControlZoomBoxItemActive span:first-child {
background-image: url("../img/drag-rectangle-on.png");
height: 29px;
width: 29px;
top: 2px;
}
.olControlPanel .olControlZoomToMaxExtentItemInactive span:first-child {
background-image: url("../img/zoom-world-mini.png");
height: 18px;
width: 18px;
top: 8px;
}
.olControlPanel .navHistory span:first-child {
background-image: url("../theme/default/img/navigation_history.png");
height: 24px;
width: 24px;
top: 4px;
}
.olControlPanel .navHistoryPreviousItemActive span:first-child {
background-position: 0 0;
}
.olControlPanel .navHistoryPreviousItemInactive span:first-child {
background-position: 0 -24px;
}
.olControlPanel .navHistoryNextItemActive span:first-child {
background-position: -24px 0;
}
.olControlPanel .navHistoryNextItemInactive span:first-child {
background-position: -24px -24px;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script src="accessible-panel.js"></script>
</head>
<body onload="init()">
<h1 id="title">Custom and accessible panel</h1>
<div id="tags">
panels, CSS, style, accessibility, button
</div>
<p id="shortdesc">
Create a custom and accessible panel, styled entirely with
CSS.
</p>
<div id="panel"></div>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>An accessible panel:
<ul>
<li>The buttons are actual HTML buttons. You can therefore
use the TAB key to give the focus to the panel's buttons, and the "ENTER"
key to activate or trigger the corresponding control.</li>
<li>The buttons include text and titles (displayed when a button
is hovered).</li>
<li>If you remove colors from the page (for example using FireFox's <a
href="https://addons.mozilla.org/en-US/firefox/addon/no-color/">No
Color extension</a>) the buttons are still visible, and
accessible using the keyboard.</li>
</ul>
</p>
<p>By default a panel creates buttons as divs. In this example the
<code>createControlMarkup</code> panel function is overridden to create
a more accessible markup for the buttons. See the <a
href="accessible-panel.js" target="_blank"> accessible-panel.js
source</a> to see how this is done.</p>
<p>Note: in IE 8, when a button is pressed its content shifts by 1 pixel.
This is a <a
href="http://labs.findsubstance.com/2009/05/21/ie8-form-button-with-background-image-on-click-css-bug/">known
IE8 bug</a>, with known workarounds. No workaround is applied in this
example though.</p>
</div>
</body>
</html>
+64
View File
@@ -0,0 +1,64 @@
var lon = 5;
var lat = 40;
var zoom = 5;
var map, layer;
function init() {
map = new OpenLayers.Map( 'map', { controls: [] } );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);
vlayer = new OpenLayers.Layer.Vector( "Editable" );
map.addLayer(vlayer);
zb = new OpenLayers.Control.ZoomBox({
title: "Zoom box: zoom clicking and dragging",
text: "Zoom"
});
var panel = new OpenLayers.Control.Panel({
defaultControl: zb,
createControlMarkup: function(control) {
var button = document.createElement('button'),
iconSpan = document.createElement('span'),
textSpan = document.createElement('span');
iconSpan.innerHTML = '&nbsp;';
button.appendChild(iconSpan);
if (control.text) {
textSpan.innerHTML = control.text;
}
button.appendChild(textSpan);
return button;
}
});
panel.addControls([
zb,
new OpenLayers.Control.DrawFeature(vlayer, OpenLayers.Handler.Path,
{title:'Draw a feature', text: 'Draw'}),
new OpenLayers.Control.ZoomToMaxExtent({
title:"Zoom to the max extent",
text: "World"
})
]);
nav = new OpenLayers.Control.NavigationHistory({
previousOptions: {
title: "Go to previous map position",
text: "Prev"
},
nextOptions: {
title: "Go to next map position",
text: "Next"
},
displayClass: "navHistory"
});
// parent control must be added to the map
map.addControl(nav);
panel.addControls([nav.next, nav.previous]);
map.addControl(panel);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}
+43 -20
View File
@@ -31,13 +31,26 @@
font-size:1em; font-size:1em;
text-decoration:underline; text-decoration:underline;
} }
a.accesskey {
color: white;
}
a.accesskey:focus {
color: #436976;
}
a.zoom {
padding-right: 20px;
}
</style> </style>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var map = null; var map = null;
function init(){ function init(){
var options = { var options = {
controls: [new OpenLayers.Control.KeyboardDefaults()] controls: [
new OpenLayers.Control.KeyboardDefaults({
observeElement: 'map'
})
]
}; };
map = new OpenLayers.Map('map', options); map = new OpenLayers.Map('map', options);
var wms = new OpenLayers.Layer.WMS( var wms = new OpenLayers.Layer.WMS(
@@ -57,31 +70,37 @@
keyboard, pan, panning, zoom, zooming, accesskey keyboard, pan, panning, zoom, zooming, accesskey
</div> </div>
<a class="accesskey"
href=""
accesskey="1"
onclick="document.getElementById('map').focus(); return false;">
Go to map
</a>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate how to use the KeyboardDefaults option parameter for layer types. Demonstrate the KeyboardDefaults control and how to use links
with Access Keys to navigate the map with the keyboard.
</p> </p>
<a class="zoom"
href="javascript: void map.zoomIn();"
accesskey="i">
zoom <em>i</em>n</a>
<a class="zoom"
href="javascript: void map.zoomOut();"
accesskey="o">
zoom <em>o</em>ut</a>
<table> <table>
<tbody> <tbody>
<tr> <tr>
<td> <td>&nbsp;</td>
<a href="javascript: void map.zoomOut();"
accesskey="o">
zoom <em>o</em>ut
</a>
</td>
<td> <td>
<a href="javascript: void map.pan(0, -map.getSize().h / 4);" <a href="javascript: void map.pan(0, -map.getSize().h / 4);"
accesskey="n"> accesskey="n">
pan <em>n</em>orth pan <em>n</em>orth
</a> </a>
</td> </td>
<td>
<a href="javascript: void map.zoomIn();"
accesskey="i">
zoom <em>i</em>n
</a>
</td>
</tr> </tr>
<tr> <tr>
<td> <td>
@@ -90,7 +109,7 @@
pan <em>w</em>est pan <em>w</em>est
</a> </a>
</td> </td>
<td id="map" class="smallmap"></td> <td id="map" class="smallmap" tabindex="0"></td>
<td> <td>
<a href="javascript: void map.pan(map.getSize().w / 4, 0);" <a href="javascript: void map.pan(map.getSize().w / 4, 0);"
accesskey="e"> accesskey="e">
@@ -113,9 +132,9 @@
<div id="docs"> <div id="docs">
<p>Navigate the map in one of three ways:</p> <p>Navigate the map in one of three ways:</p>
<ul> <ol>
<li>Click on the named links to zoom and pan</li> <li>Use Access Key "1" (alt + 1) to focus the map element, and
<li>Use following keys to pan and zoom: use following keys to pan and zoom:
<ul> <ul>
<li>+ (zoom in)</li> <li>+ (zoom in)</li>
<li>- (zoom out)</li> <li>- (zoom out)</li>
@@ -124,8 +143,12 @@
<li>left-arrow (pan east)</li> <li>left-arrow (pan east)</li>
<li>right-arrow (pan west)</li> <li>right-arrow (pan west)</li>
</ul> </ul>
See <a href=http://en.wikipedia.org/wiki/Access_key>wikipedia</a> for
more detail about Access Keys.
</li> </li>
<li>If access keys work for links in your browser, use: <li>Navigate to pan and zoom links using the "tab" key, and
press "enter" to pan and zoom</li>
<li>If Access Keys work for links in your browser, use:
<ul> <ul>
<li>i (zoom in)</li> <li>i (zoom in)</li>
<li>o (zoom out)</li> <li>o (zoom out)</li>
@@ -135,7 +158,7 @@
<li>w (pan west)</li> <li>w (pan west)</li>
</ul> </ul>
</li> </li>
</ul> </ol>
<p> <p>
This is an example of using alternate methods to control panning and zooming. This approach uses map.pan() and map.zoom(). You'll note that to pan, additional math is necessary along with map.size() in order to set the distance to pan. This is an example of using alternate methods to control panning and zooming. This approach uses map.pan() and map.zoom(). You'll note that to pan, additional math is necessary along with map.size() in order to set the distance to pan.
+2 -3
View File
@@ -6,16 +6,15 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers All Overlays with Google and OSM</title> <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/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"> <link rel="stylesheet" href="style.css" type="text/css">
<script src="http://maps.google.com/maps/api/js?sensor=false"></script> <script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false"></script>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script src="all-overlays-google.js"></script> <script src="all-overlays-google.js"></script>
</head> </head>
<body onload="init()"> <body onload="init()">
<h1 id="title">All Overlays with Google and OSM</h1> <h1 id="title">All Overlays with Google and OSM</h1>
<div id="tags"> <div id="tags">
overlay, baselayer, google, osm, openstreetmap overlay, baselayer, google, osm, openstreetmap, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Using the Google and OSM layers as overlays. Using the Google and OSM layers as overlays.
+1 -1
View File
@@ -61,7 +61,7 @@
<body onload="init()"> <body onload="init()">
<h1 id="title">OpenLayers Overlays Only Example</h1> <h1 id="title">OpenLayers Overlays Only Example</h1>
<div id="tags"> <div id="tags">
overlay, baselayer overlay, baselayer, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrates a map with overlays only. Demonstrates a map with overlays only.
+20 -20
View File
@@ -131,14 +131,14 @@ Animator.prototype = {
str += ">"; str += ">";
return str; return str;
} }
} };
// merge the properties of two objects // merge the properties of two objects
Animator.applyDefaults = function(defaults, prefs) { Animator.applyDefaults = function(defaults, prefs) {
prefs = prefs || {}; prefs = prefs || {};
var prop, result = {}; var prop, result = {};
for (prop in defaults) result[prop] = prefs[prop] !== undefined ? prefs[prop] : defaults[prop]; for (prop in defaults) result[prop] = prefs[prop] !== undefined ? prefs[prop] : defaults[prop];
return result; return result;
} };
// make an array from any object // make an array from any object
Animator.makeArray = function(o) { Animator.makeArray = function(o) {
if (o == null) return []; if (o == null) return [];
@@ -146,7 +146,7 @@ Animator.makeArray = function(o) {
var result = []; var result = [];
for (var i=0; i<o.length; i++) result[i] = o[i]; for (var i=0; i<o.length; i++) result[i] = o[i];
return result; return result;
} };
// convert a dash-delimited-property to a camelCaseProperty (c/o Prototype, thanks Sam!) // convert a dash-delimited-property to a camelCaseProperty (c/o Prototype, thanks Sam!)
Animator.camelize = function(string) { Animator.camelize = function(string) {
var oStringList = string.split('-'); var oStringList = string.split('-');
@@ -161,27 +161,27 @@ Animator.camelize = function(string) {
camelizedString += s.charAt(0).toUpperCase() + s.substring(1); camelizedString += s.charAt(0).toUpperCase() + s.substring(1);
} }
return camelizedString; return camelizedString;
} };
// syntactic sugar for creating CSSStyleSubjects // syntactic sugar for creating CSSStyleSubjects
Animator.apply = function(el, style, options) { Animator.apply = function(el, style, options) {
if (style instanceof Array) { if (style instanceof Array) {
return new Animator(options).addSubject(new CSSStyleSubject(el, style[0], style[1])); return new Animator(options).addSubject(new CSSStyleSubject(el, style[0], style[1]));
} }
return new Animator(options).addSubject(new CSSStyleSubject(el, style)); return new Animator(options).addSubject(new CSSStyleSubject(el, style));
} };
// make a transition function that gradually accelerates. pass a=1 for smooth // make a transition function that gradually accelerates. pass a=1 for smooth
// gravitational acceleration, higher values for an exaggerated effect // gravitational acceleration, higher values for an exaggerated effect
Animator.makeEaseIn = function(a) { Animator.makeEaseIn = function(a) {
return function(state) { return function(state) {
return Math.pow(state, a*2); return Math.pow(state, a*2);
} }
} };
// as makeEaseIn but for deceleration // as makeEaseIn but for deceleration
Animator.makeEaseOut = function(a) { Animator.makeEaseOut = function(a) {
return function(state) { return function(state) {
return 1 - Math.pow(1 - state, a*2); return 1 - Math.pow(1 - state, a*2);
} }
} };
// make a transition function that, like an object with momentum being attracted to a point, // make a transition function that, like an object with momentum being attracted to a point,
// goes past the target then returns // goes past the target then returns
Animator.makeElastic = function(bounces) { Animator.makeElastic = function(bounces) {
@@ -189,7 +189,7 @@ Animator.makeElastic = function(bounces) {
state = Animator.tx.easeInOut(state); state = Animator.tx.easeInOut(state);
return ((1-Math.cos(state * Math.PI * bounces)) * (1 - state)) + state; return ((1-Math.cos(state * Math.PI * bounces)) * (1 - state)) + state;
} }
} };
// make an Attack Decay Sustain Release envelope that starts and finishes on the same level // make an Attack Decay Sustain Release envelope that starts and finishes on the same level
// //
Animator.makeADSR = function(attackEnd, decayEnd, sustainEnd, sustainLevel) { Animator.makeADSR = function(attackEnd, decayEnd, sustainEnd, sustainLevel) {
@@ -206,7 +206,7 @@ Animator.makeADSR = function(attackEnd, decayEnd, sustainEnd, sustainLevel) {
} }
return sustainLevel * (1 - ((state - sustainEnd) / (1 - sustainEnd))); return sustainLevel * (1 - ((state - sustainEnd) / (1 - sustainEnd)));
} }
} };
// make a transition function that, like a ball falling to floor, reaches the target and/ // make a transition function that, like a ball falling to floor, reaches the target and/
// bounces back again // bounces back again
Animator.makeBounce = function(bounces) { Animator.makeBounce = function(bounces) {
@@ -215,7 +215,7 @@ Animator.makeBounce = function(bounces) {
state = fn(state); state = fn(state);
return state <= 1 ? state : 2-state; return state <= 1 ? state : 2-state;
} }
} };
// pre-made transition functions to use with the 'transition' option // pre-made transition functions to use with the 'transition' option
Animator.tx = { Animator.tx = {
@@ -233,7 +233,7 @@ Animator.tx = {
veryElastic: Animator.makeElastic(3), veryElastic: Animator.makeElastic(3),
bouncy: Animator.makeBounce(1), bouncy: Animator.makeBounce(1),
veryBouncy: Animator.makeBounce(3) veryBouncy: Animator.makeBounce(3)
} };
// animates a pixel-based style property between two integer values // animates a pixel-based style property between two integer values
function NumericalStyleSubject(els, property, from, to, units) { function NumericalStyleSubject(els, property, from, to, units) {
@@ -271,7 +271,7 @@ NumericalStyleSubject.prototype = {
inspect: function() { inspect: function() {
return "\t" + this.property + "(" + this.from + this.units + " to " + this.to + this.units + ")\n"; return "\t" + this.property + "(" + this.from + this.units + " to " + this.to + this.units + ")\n";
} }
} };
// animates a colour based style property between two hex values // animates a colour based style property between two hex values
function ColorStyleSubject(els, property, from, to) { function ColorStyleSubject(els, property, from, to) {
@@ -313,7 +313,7 @@ ColorStyleSubject.prototype = {
inspect: function() { inspect: function() {
return "\t" + this.property + "(" + this.origFrom + " to " + this.origTo + ")\n"; return "\t" + this.property + "(" + this.origFrom + " to " + this.origTo + ")\n";
} }
} };
// return a properly formatted 6-digit hex colour spec, or false // return a properly formatted 6-digit hex colour spec, or false
ColorStyleSubject.parseColor = function(string) { ColorStyleSubject.parseColor = function(string) {
@@ -336,14 +336,14 @@ ColorStyleSubject.parseColor = function(string) {
return '#' + match[1]; return '#' + match[1];
} }
return false; return false;
} };
// convert a number to a 2 digit hex string // convert a number to a 2 digit hex string
ColorStyleSubject.toColorPart = function(number) { ColorStyleSubject.toColorPart = function(number) {
if (number > 255) number = 255; if (number > 255) number = 255;
var digits = number.toString(16); var digits = number.toString(16);
if (number < 16) return '0' + digits; if (number < 16) return '0' + digits;
return digits; return digits;
} };
ColorStyleSubject.parseColor.rgbRe = /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i; ColorStyleSubject.parseColor.rgbRe = /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i;
ColorStyleSubject.parseColor.hexRe = /^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/; ColorStyleSubject.parseColor.hexRe = /^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
@@ -367,7 +367,7 @@ DiscreteStyleSubject.prototype = {
inspect: function() { inspect: function() {
return "\t" + this.property + "(" + this.from + " to " + this.to + " @ " + this.threshold + ")\n"; return "\t" + this.property + "(" + this.from + " to " + this.to + " @ " + this.threshold + ")\n";
} }
} };
// animates between two styles defined using CSS. // animates between two styles defined using CSS.
// if style1 and style2 are present, animate between them, if only style1 // if style1 and style2 are present, animate between them, if only style1
@@ -482,7 +482,7 @@ CSSStyleSubject.prototype = {
} }
return str; return str;
} }
} };
// get the current value of a css property, // get the current value of a css property,
CSSStyleSubject.getStyle = function(el, property){ CSSStyleSubject.getStyle = function(el, property){
var style; var style;
@@ -497,7 +497,7 @@ CSSStyleSubject.getStyle = function(el, property){
style = el.currentStyle[property]; style = el.currentStyle[property];
} }
return style || el.style[property] return style || el.style[property]
} };
CSSStyleSubject.ruleRe = /^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/; CSSStyleSubject.ruleRe = /^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/;
@@ -604,7 +604,7 @@ AnimatorChain.prototype = {
this.animators[this.current].seekTo(1); this.animators[this.current].seekTo(1);
} }
} }
} };
// an Accordion is a class that creates and controls a number of Animators. An array of elements is passed in, // an Accordion is a class that creates and controls a number of Animators. An array of elements is passed in,
// and for each element an Animator and a activator button is created. When an Animator's activator button is // and for each element an Animator and a activator button is created. When an Animator's activator button is
@@ -667,4 +667,4 @@ Accordion.prototype = {
document.location.hash = this.rememberanceTexts[section]; document.location.hash = this.rememberanceTexts[section];
} }
} }
} };
+7 -11
View File
@@ -7,20 +7,17 @@
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script src="../lib/OpenLayers/Layer/ArcGISCache.js" type="text/javascript"></script>
<!-- This is to simplify making the JSONP request for this example -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var map, var map,
layerURL = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"; layerURL = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer";
function init() { function init() {
var jsonp_url = layerURL + '?f=json&pretty=true&callback=?'; var jsonp = new OpenLayers.Protocol.Script();
$.getJSON(jsonp_url, function(data) { jsonp.createRequest(layerURL, {
initMap(data); f: 'json',
}); pretty: 'true'
}, initMap);
} }
function initMap(layerInfo){ function initMap(layerInfo){
@@ -46,8 +43,7 @@
resolutions: baseLayer.resolutions, resolutions: baseLayer.resolutions,
numZoomLevels: baseLayer.numZoomLevels, numZoomLevels: baseLayer.numZoomLevels,
tileSize: baseLayer.tileSize, tileSize: baseLayer.tileSize,
displayProjection: baseLayer.displayProjection, displayProjection: baseLayer.displayProjection
StartBounds: baseLayer.initialExtent
}); });
map.addLayers([baseLayer]); map.addLayers([baseLayer]);
@@ -93,7 +89,7 @@
<p> <p>
This method automatically configures the layer using the capabilities object This method automatically configures the layer using the capabilities object
generated by the server itself. This page shows how to construct the url for the server capabilities object, generated by the server itself. This page shows how to construct the url for the server capabilities object,
retrieve it using JSONP (and jQuery), and pass it in during construction. Note that in this case, retrieve it using JSONP, and pass it in during construction. Note that in this case,
the layer is constructed before the map. This approach greatly simplifies the the layer is constructed before the map. This approach greatly simplifies the
configuration of your map, and works best when all your tiles / overlays are similarly laid out. configuration of your map, and works best when all your tiles / overlays are similarly laid out.
If you are using a live AGS map server for your layer, it can be helpful to check your If you are using a live AGS map server for your layer, it can be helpful to check your
+1 -1
View File
@@ -40,7 +40,7 @@
<h1 id="title">Attribution Example</h1> <h1 id="title">Attribution Example</h1>
<div id="tags"> <div id="tags">
copyright, watermark, logo, attribution copyright, watermark, logo, attribution, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+1 -1
View File
@@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<title>Basic Bing Tiles with a Subset of Resolutions Example</title> <title>Basic Bing Tiles with a Subset of Resolutions Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
+1 -1
View File
@@ -20,7 +20,7 @@
<h1 id="title">Basic Bing Tiles Example</h1> <h1 id="title">Basic Bing Tiles Example</h1>
<div id="tags"> <div id="tags">
bing tiles bing tiles, light
</div> </div>
<div id="shortdesc">Use Bing with direct tile access</div> <div id="shortdesc">Use Bing with direct tile access</div>
+3 -1
View File
@@ -23,7 +23,9 @@ var hybrid = new OpenLayers.Layer.Bing({
map.addLayers([road, aerial, hybrid]); map.addLayers([road, aerial, hybrid]);
map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.LayerSwitcher());
// Zoom level numbering depends on metadata from Bing, which is not yet loaded.
var zoom = map.getZoomForResolution(76.43702827453613);
map.setCenter(new OpenLayers.LonLat(-71.147, 42.472).transform( map.setCenter(new OpenLayers.LonLat(-71.147, 42.472).transform(
new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject() map.getProjectionObject()
), 11); ), zoom);
+19 -17
View File
@@ -7,35 +7,37 @@
<title>OpenLayers Bing Example</title> <title>OpenLayers Bing Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<script src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&amp;mkt=en-us"></script>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script> <script>
// API key for http://openlayers.org. Please get your own at
// http://bingmapsportal.com/ and use that instead.
var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf";
var map; var map;
function init(){ function init() {
// setting restrictedExtent so that we can use the
// VirtualEarth-layers, see e.g.
// http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/VirtualEarth-js.html
var restrictedExtent = new OpenLayers.Bounds(-180, -90,
180, 90);
map = new OpenLayers.Map("map"); map = new OpenLayers.Map("map");
map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.LayerSwitcher());
var shaded = new OpenLayers.Layer.VirtualEarth("Shaded", { var road = new OpenLayers.Layer.Bing({
type: VEMapStyle.Shaded name: "Road",
key: apiKey,
type: "Road"
}); });
var hybrid = new OpenLayers.Layer.VirtualEarth("Hybrid", { var hybrid = new OpenLayers.Layer.Bing({
type: VEMapStyle.Hybrid name: "Hybrid",
key: apiKey,
type: "AerialWithLabels"
}); });
var aerial = new OpenLayers.Layer.VirtualEarth("Aerial", { var aerial = new OpenLayers.Layer.Bing({
type: VEMapStyle.Aerial name: "Aerial",
key: apiKey,
type: "Aerial"
}); });
map.addLayers([shaded, hybrid, aerial]); map.addLayers([road, hybrid, aerial]);
map.setCenter(new OpenLayers.LonLat(-110, 45), 3); map.setCenter(new OpenLayers.LonLat(-110, 45), 3);
} }
@@ -46,7 +48,7 @@
<h1 id="title">Bing Example</h1> <h1 id="title">Bing Example</h1>
<div id="tags"> <div id="tags">
Bing, Microsoft, Virtual Earth Bing, Microsoft, Virtual Earth, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+81
View File
@@ -0,0 +1,81 @@
<!DOCTYPE html>
<html>
<head>
<title>Bootstraped OpenLayers</title>
<link rel="stylesheet" href="../theme/default/style.css">
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
padding-top: 60px;
padding-bottom: 40px;
}
#map {
height: 350px;
background-color: #eee;
}
.olControlAttribution {
bottom: 3px;
left: 10px;
line-height: 9px;
font-size: 9px;
color: #ccc;
}
</style>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-responsive.min.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="/">openlayers.org</a>
<ul class="nav">
<li>
<a href="./">
<i class="icon-globe icon-white"></i> examples
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="container-fluid" ng-controller="AlertsCtrl">
<div class="row-fluid">
<div class="span7">
<div id="map"></div>
</div>
<div class="span5">
<h4>OpenLayers and Bootstrap</h4>
<p>
This example demonstrates an OpenLayers map in a fluid
layout using Bootstrap CSS.
</p>
<p>
Note that the OpenLayers stylesheet is loaded before
Bootstrap. The Bootstrap CSS sets the maximum width for
images to be 100% (of their containing element).
</p>
<pre><code>img {
max-width: 100%;
}
</code></pre>
<p>
This causes problems for images that you might want to be
bigger than their containing element (e.g. big tile in small
map viewport). To overcome this, the OpenLayers CSS
overrides this <code>max-width</code> setting. If you are
not loading the OpenLayers default CSS or are having trouble
with tile sizing and Bootstrap, add the following to your
markup:
</p>
<pre><code>&lt;style>
img.olTileImage {
max-width: none;
}
&lt;/style></code></pre>
</div>
</div>
</div>
<script src="../lib/OpenLayers.js"></script>
<script src="bootstrap.js"></script>
</body>
</html>
+31
View File
@@ -0,0 +1,31 @@
var map = new OpenLayers.Map({
div: "map",
projection: "EPSG:900913",
layers: [
new OpenLayers.Layer.XYZ(
"Imagery",
[
"http://oatile1.mqcdn.com/naip/${z}/${x}/${y}.png",
"http://oatile2.mqcdn.com/naip/${z}/${x}/${y}.png",
"http://oatile3.mqcdn.com/naip/${z}/${x}/${y}.png",
"http://oatile4.mqcdn.com/naip/${z}/${x}/${y}.png"
],
{
attribution: "Tiles Courtesy of <a href='http://open.mapquest.co.uk/' target='_blank'>MapQuest</a>. Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency. <img src='http://developer.mapquest.com/content/osm/mq_logo.png' border='0'>",
transitionEffect: "resize",
wrapDateLine: true
}
)
],
controls: [
new OpenLayers.Control.Navigation({
dragPanOptions: {
enableKinetic: true
}
}),
new OpenLayers.Control.Zoom(),
new OpenLayers.Control.Attribution()
],
center: [0, 0],
zoom: 1
});
+1 -1
View File
@@ -45,7 +45,7 @@
<h1 id="title">Boxes Example Vector</h1> <h1 id="title">Boxes Example Vector</h1>
<div id="tags"> <div id="tags">
box, vector, annotation box, vector, annotation, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+3 -3
View File
@@ -28,7 +28,7 @@
"http://vmap0.tiles.osgeo.org/wms/vmap0", "http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'}, {'buffer':4} ); {layers: 'basic'}, {'buffer':4} );
map.addLayer(layer); map.addLayer(layer);
map.addControl(new OpenLayers.Control.LayerSwitcher()) map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
} }
</script> </script>
@@ -37,7 +37,7 @@
<h1 id="title">Buffer Example</h1> <h1 id="title">Buffer Example</h1>
<div id="tags"> <div id="tags">
buffer, performance, tile buffer, performance, tile, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
@@ -48,7 +48,7 @@
<div id="docs"> <div id="docs">
Use the buffer property to control how many tiles are included Use the buffer property to control how many tiles are included
outside the visible map area. Default is 2. outside the visible map area. Default is 0.
</div> </div>
</body> </body>
</html> </html>
+36
View File
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Cache Read Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<script src="../lib/OpenLayers.js"></script>
<script src="cache-read.js"></script>
</head>
<body onload="init()">
<h1 id="title">Cache Read Example</h1>
<div id="tags">
mobile, local storage, persistence, cache, html5
</div>
<div id="shortdesc">Caching viewed tiles</div>
<div id="map" class="smallmap"></div>
<div id="status"></div>
<br>
<div id="docs">
<p>This example shows how to use the CacheRead control to fetch cached
tiles from the browser's Local Storage. As you pan and zoom the map,
you can see how the number of cache hits incrases as you browse regions
that are available in the cache.</p>
<p>To fill the cache with tiles, switch to the
<a href="cache-write.html">cache-write.html</a> example.</p>
<p>See <a href="cache-read.js">cache-read.js</a> for the source
code.</p>
</div>
</body>
</html>
+36
View File
@@ -0,0 +1,36 @@
var map, cacheRead;
function init() {
map = new OpenLayers.Map({
div: "map",
projection: "EPSG:900913",
layers: [
new OpenLayers.Layer.WMS("OSGeo", "http://vmap0.tiles.osgeo.org/wms/vmap0", {
layers: "basic"
}, {
eventListeners: {
tileloaded: updateHits
}
})
],
center: [0, 0],
zoom: 1
});
cacheRead = new OpenLayers.Control.CacheRead();
map.addControl(cacheRead);
// User interface
var status = document.getElementById("status"),
hits = 0;
// update the number of cached tiles and detect local storage support
function updateHits(evt) {
hits += evt.tile.url.substr(0, 5) === "data:";
if (window.localStorage) {
status.innerHTML = hits + " cache hits.";
} else {
status.innerHTML = "Local storage not supported. Try a different browser.";
}
}
}
+37
View File
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Cache Write Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<script src="../lib/OpenLayers.js"></script>
<script>OpenLayers.Console = window.console || OpenLayers.Console;</script>
<script src="cache-write.js"></script>
</head>
<body onload="init()">
<h1 id="title">Cache Write Example</h1>
<div id="tags">
mobile, local storage, persistence, cache, html5
</div>
<div id="shortdesc">Caching viewed tiles</div>
<div id="map" class="smallmap"></div>
<div>Cache status: <span id="status"></span></div>
<div><button id="clear">Clear cache</button></div>
<br>
<div id="docs">
<p>This example shows how to use the CacheWrite control to cache the
tiles. Caching is turned on, and as you pan and zoom the map, every
tile that is loaded is also copied to the browsers Local Storage.</p>
<p>To use the cached tiles, switch to the
<a href="cache-read.html">cache-read.html</a> example.</p>
<p>See <a href="cache-write.js">cache-write.js</a> for the source
code.</p>
</div>
</body>
</html>
+46
View File
@@ -0,0 +1,46 @@
// 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"}
)
],
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
map.layers[0].events.on({'tileloaded': updateStatus});
function updateStatus() {
if (window.localStorage) {
status.innerHTML = localStorage.length + " entries in cache.";
} else {
status.innerHTML = "Local storage not supported. Try a different browser.";
}
}
}
+1 -1
View File
@@ -3,7 +3,7 @@
<head> <head>
<title>OpenLayers Canvas Hit Detection Example</title> <title>OpenLayers Canvas Hit Detection Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0;"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
+1 -6
View File
@@ -5,12 +5,7 @@ function init() {
map = new OpenLayers.Map({ map = new OpenLayers.Map({
div: "map", div: "map",
projection: new OpenLayers.Projection("EPSG:900913"), projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326"), displayProjection: new OpenLayers.Projection("EPSG:4326")
units: "m",
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(
-20037508, -20037508, 20037508, 20037508
)
}); });
var g = new OpenLayers.Layer.Google("Google Layer", { var g = new OpenLayers.Layer.Google("Google Layer", {
+71
View File
@@ -0,0 +1,71 @@
<!DOCTYPE html>
<html>
<head>
<title>Reading Features From CartoDB using GeoJSON</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="../lib/OpenLayers.js"></script>
</head>
<body>
<h1 id="title">Reading Features From CartoDB using GeoJSON</h1>
<div id="tags">
protocol, script, cartodb
</div>
<p id="shortdesc">
Demonstrates how to load features on OpenLayers using CartoDB SQL API.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
<a href="http://cartodb.com/">CartoDB</a> is an Open Source
Geopatial Database on the cloud. It allows you to import your
data in shapefiles, KML, OpenStreeMap files, CSV, etc. and
then analyze and visualize it. Internally CartoDB uses PostGIS
2.0 so all functionality in PostGIS can be used straight
away. CartoDB exposes two APIS. One
to <a href="http://developers.cartodb.com/documentation/cartodb-apis.html#maps_api">generate maps</a>
as tiles with interactivity, and another <a href="http://developers.cartodb.com/documentation/cartodb-apis.html#sql_api">SQL API</a>
to retrieve vector data using among other formats, GeoJSON. In
this example we do a very simple query to obtain all protected
areas in Costa Rica from a public table. You can adapt the SQL
to include where clauses or complicate geospatial queries.
</p>
<p>
View the source code of this page to see how this is done. And
check the table on CartoDB
for <a href="https://examples.cartodb.com/tables/costa_rica_pa/public#/map">Protected Areas in Costa Rica</a>
</p>
</div>
<script>
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://examples.cartodb.com/api/v2/sql",
params: {
q: "select * from costa_rica_pa LIMIT 50",
format: "geojson"
},
format: new OpenLayers.Format.GeoJSON({
ignoreExtraDims: true
}),
callbackKey: "callback"
}),
eventListeners: {
"featuresadded": function() {
this.map.zoomToExtent(this.getDataExtent());
}
}
})
]
});
</script>
</body>
</html>
+3 -3
View File
@@ -34,7 +34,7 @@
}, },
trigger: function(e) { trigger: function(e) {
var lonlat = map.getLonLatFromViewPortPx(e.xy); var lonlat = map.getLonLatFromPixel(e.xy);
alert("You clicked near " + lonlat.lat + " N, " + alert("You clicked near " + lonlat.lat + " N, " +
+ lonlat.lon + " E"); + lonlat.lon + " E");
} }
@@ -70,12 +70,12 @@
<div id="tags"> <div id="tags">
click control, double, doubleclick, double-click, event, events, click control, double, doubleclick, double-click, event, events,
propagation propagation, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
This example shows the use of the click handler and This example shows the use of the click handler and
getLonLatFromViewPortPx functions to trigger events on mouse click. getLonLatFromPixel functions to trigger events on mouse click.
</p> </p>
<div id="map" class="smallmap"></div> <div id="map" class="smallmap"></div>
+72
View File
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Client Zoom Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"/>
<link rel="stylesheet" href="style.css" type="text/css">
<script src="../lib/Firebug/firebug.js"></script>
<script src="../lib/OpenLayers.js"></script>
<script src="clientzoom.js"></script>
<style>
.olControlAttribution {
bottom: 5px;
}
#map {
width: 600px;
height: 400px;
}
</style>
</head>
<body onload="init();">
<h1 id="title">Client Zoom</h1>
<div id="tags">
client zoom continuous zooming
</div>
<p id="shortdesc">
This example demonstrates the <strong>"client zoom"</strong>
functionality, where OpenLayers stretches the layer div when the
resolution is not supported by that layer's tile service.
</p>
<div id="map"></div>
<div id="docs">
<p>
The map of this example is configured with 22 resolutions, while
the OSM tile server supports the first 19 resolutions only. When
the zoom level is 19, 20 or 21 "client zoom" is applied to the OSM
layer, i.e. the OSM layer div is stretched as necessary. The map's
initial zoom is 18. So if you zoom in using the zoom bar's "+"
button you'll effectively trigger "client zoom".
</p>
<p>
For demonstration purpose the map of this example has
<code>fractionalZoom</code> set to true. So "client zoom" also
applies if you choose arbitrary zoom levels using the slider of the
zoom bar, or shift-drag boxes to zoom to arbitrary extents.
"client zoom" therefore allows continous zooming for tiled layers.
</p>
<p>
Enabling "client zoom" on a layer is done by passing
<code>serverResolutions</code> to the layer constructor.
<code>serverResolutions</code> is the list of resolutions supported
by the tile service. See the <a href="clientzoom.js"
target="_blank"> clientzoom.js source</a>.
</p>
</div>
</body>
</html>
+39
View File
@@ -0,0 +1,39 @@
var map;
function init() {
map = new OpenLayers.Map({
div: "map",
projection: "EPSG:900913",
controls: [],
fractionalZoom: true
});
var osm = new OpenLayers.Layer.OSM(null, null, {
resolutions: [156543.03390625, 78271.516953125, 39135.7584765625,
19567.87923828125, 9783.939619140625, 4891.9698095703125,
2445.9849047851562, 1222.9924523925781, 611.4962261962891,
305.74811309814453, 152.87405654907226, 76.43702827453613,
38.218514137268066, 19.109257068634033, 9.554628534317017,
4.777314267158508, 2.388657133579254, 1.194328566789627,
0.5971642833948135, 0.25, 0.1, 0.05],
serverResolutions: [156543.03390625, 78271.516953125, 39135.7584765625,
19567.87923828125, 9783.939619140625,
4891.9698095703125, 2445.9849047851562,
1222.9924523925781, 611.4962261962891,
305.74811309814453, 152.87405654907226,
76.43702827453613, 38.218514137268066,
19.109257068634033, 9.554628534317017,
4.777314267158508, 2.388657133579254,
1.194328566789627, 0.5971642833948135],
transitionEffect: 'resize'
});
map.addLayers([osm]);
map.addControls([
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.PanZoomBar()
]);
map.setCenter(new OpenLayers.LonLat(659688.852138, 5710701.2962197), 18);
}
+10
View File
@@ -8,6 +8,16 @@
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<style>
/* round corners of layer switcher, and make it transparent */
.olControlLayerSwitcher .layersDiv {
border-radius: 10px 0 0 10px;
opacity: 0.75;
filter: alpha(opacity=75);
}
</style>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var map; var map;
+1 -1
View File
@@ -37,7 +37,7 @@ var map = new OpenLayers.Map({
function loadFeatures(data) { function loadFeatures(data) {
var features = new OpenLayers.Format.GeoJSON().read(data); var features = new OpenLayers.Format.GeoJSON().read(data);
states.addFeatures(features); states.addFeatures(features);
}; }
// update filter and redraw when form is submitted // update filter and redraw when form is submitted
var cql = document.getElementById("cql"); var cql = document.getElementById("cql");
+32
View File
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers Script Protocol XML Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="../lib/OpenLayers.js"></script>
</head>
<body>
<h1 id="title">Script Protocol With XML</h1>
<div id="tags">
protocol, script, cross origin, xml, advanced
</div>
<p id="shortdesc">
Demonstrates how, with a custom parseFeatures method, the script protocol can be used with YQL for cross-origin loading of files in any of the XML formats supported by OpenLayers.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
YQL can wrap a jsonp callback around an XML file, which effectively means Yahoo's servers are acting as a proxy for cross-origin feature loading. This example uses a GPX file, but the same technique can be used for other formats such as KML.
</p>
<p>
View the <a href="cross-origin-xml.js" target="_blank">cross-origin-xml.js</a>
source to see how this is done
</p>
</div>
<script src="cross-origin-xml.js"></script>
</body>
</html>
+25
View File
@@ -0,0 +1,25 @@
var map = new OpenLayers.Map({
div: "map",
layers: [
new OpenLayers.Layer.OSM(),
new OpenLayers.Layer.Vector("Vectors", {
projection: new OpenLayers.Projection("EPSG:4326"),
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.Script({
url: "http://query.yahooapis.com/v1/public/yql",
params: {
q: "select * from xml where url='http://www.topografix.com/fells_loop.gpx'"
},
format: new OpenLayers.Format.GPX(),
parseFeatures: function(data) {
return this.format.read(data.results[0]);
}
}),
eventListeners: {
"featuresadded": function () {
this.map.zoomToExtent(this.getDataExtent());
}
}
})
]
});
+1 -1
View File
@@ -50,7 +50,7 @@
<h1 id="title">Custom Control Example</h1> <h1 id="title">Custom Control Example</h1>
<div id="tags"> <div id="tags">
control, panel, rectangle control, panel, rectangle, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.
+1 -1
View File
@@ -31,7 +31,7 @@ function updateOutput(event) {
map.layers[1].events.on({ map.layers[1].events.on({
sketchmodified: updateOutput, sketchmodified: updateOutput,
sketchcomplete: updateOutput sketchcomplete: updateOutput
}) });
// add behavior to UI elements // add behavior to UI elements
function toggleControl(element) { function toggleControl(element) {
-38
View File
@@ -1,38 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Double Set Center Example</title>
<script src="../lib/OpenLayers.js"></script>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<h1 id="title">Double Set Center Example</h1>
<div id="tags">
center, centering, cleanup
</div>
<p id="shortdesc">
Demonstrate the behavior of two calls to set the center after instantiating the layer object.
</p>
<div id="map" class="smallmap"></div>
<script defer="defer" type="text/javascript">
var map = new OpenLayers.Map('map');
var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
map.addLayer(wms);
map.setCenter(new OpenLayers.LonLat(100,10));
map.setCenter(new OpenLayers.LonLat(1,1));
</script>
<div id="docs"></div>
</body>
</html>
+21 -6
View File
@@ -33,18 +33,27 @@
var pointLayer = new OpenLayers.Layer.Vector("Point Layer"); var pointLayer = new OpenLayers.Layer.Vector("Point Layer");
var lineLayer = new OpenLayers.Layer.Vector("Line Layer"); var lineLayer = new OpenLayers.Layer.Vector("Line Layer");
var polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer"); var polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer");
var boxLayer = new OpenLayers.Layer.Vector("Box layer");
map.addLayers([wmsLayer, pointLayer, lineLayer, polygonLayer]); map.addLayers([wmsLayer, pointLayer, lineLayer, polygonLayer, boxLayer]);
map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.LayerSwitcher());
map.addControl(new OpenLayers.Control.MousePosition()); map.addControl(new OpenLayers.Control.MousePosition());
drawControls = { drawControls = {
point: new OpenLayers.Control.DrawFeature(pointLayer, point: new OpenLayers.Control.DrawFeature(pointLayer,
OpenLayers.Handler.Point), OpenLayers.Handler.Point),
line: new OpenLayers.Control.DrawFeature(lineLayer, line: new OpenLayers.Control.DrawFeature(lineLayer,
OpenLayers.Handler.Path), OpenLayers.Handler.Path),
polygon: new OpenLayers.Control.DrawFeature(polygonLayer, polygon: new OpenLayers.Control.DrawFeature(polygonLayer,
OpenLayers.Handler.Polygon) OpenLayers.Handler.Polygon),
box: new OpenLayers.Control.DrawFeature(boxLayer,
OpenLayers.Handler.RegularPolygon, {
handlerOptions: {
sides: 4,
irregular: true
}
}
)
}; };
for(var key in drawControls) { for(var key in drawControls) {
@@ -80,11 +89,11 @@
<h1 id="title">OpenLayers Draw Feature Example</h1> <h1 id="title">OpenLayers Draw Feature Example</h1>
<div id="tags"> <div id="tags">
point, line, linestring, polygon, digitizing, geometry, draw, drag point, line, linestring, polygon, box, digitizing, geometry, draw, drag
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate on-screen digitizing tools for point, line, and polygon creation. Demonstrate on-screen digitizing tools for point, line, polygon and box creation.
</p> </p>
<div id="map" class="smallmap"></div> <div id="map" class="smallmap"></div>
@@ -107,6 +116,10 @@
<input type="radio" name="type" value="polygon" id="polygonToggle" onclick="toggleControl(this);" /> <input type="radio" name="type" value="polygon" id="polygonToggle" onclick="toggleControl(this);" />
<label for="polygonToggle">draw polygon</label> <label for="polygonToggle">draw polygon</label>
</li> </li>
<li>
<input type="radio" name="type" value="box" id="boxToggle" onclick="toggleControl(this);" />
<label for="boxToggle">draw box</label>
</li>
<li> <li>
<input type="checkbox" name="allow-pan" value="allow-pan" id="allowPanCheckbox" checked=true onclick="allowPan(this);" /> <input type="checkbox" name="allow-pan" value="allow-pan" id="allowPanCheckbox" checked=true onclick="allowPan(this);" />
<label for="allowPanCheckbox">allow pan while drawing</label> <label for="allowPanCheckbox">allow pan while drawing</label>
@@ -119,6 +132,8 @@
Double-click to finish drawing.</p> Double-click to finish drawing.</p>
<p>With the polygon drawing control active, click on the map to add the points that make up your <p>With the polygon drawing control active, click on the map to add the points that make up your
polygon. Double-click to finish drawing.</p> polygon. Double-click to finish drawing.</p>
<p>With the box drawing control active, click in the map and drag the mouse to get a rectangle. Release
the mouse to finish.</p>
<p>With any drawing control active, paning the map can still be achieved. Drag the map as <p>With any drawing control active, paning the map can still be achieved. Drag the map as
usual for that.</p> usual for that.</p>
<p>Hold down the shift key while drawing to activate freehand mode. While drawing lines or polygons <p>Hold down the shift key while drawing to activate freehand mode. While drawing lines or polygons
+1 -1
View File
@@ -3,7 +3,7 @@
<head> <head>
<title>OpenLayers Undo/Redo Drawing Methods</title> <title>OpenLayers Undo/Redo Drawing Methods</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0;"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
+1 -1
View File
@@ -3,7 +3,7 @@
<head> <head>
<title>OpenLayers Editing Methods</title> <title>OpenLayers Editing Methods</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0;"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
+13 -13
View File
@@ -20,7 +20,7 @@ map.addControl(draw);
draw.activate(); draw.activate();
// handle clicks on method links // handle clicks on method links
$("insertXY").onclick = function() { document.getElementById("insertXY").onclick = function() {
var values = parseInput( var values = parseInput(
window.prompt( window.prompt(
"Enter map coordinates for new point (e.g. '-111, 46')", "x, y" "Enter map coordinates for new point (e.g. '-111, 46')", "x, y"
@@ -29,8 +29,8 @@ $("insertXY").onclick = function() {
if (values != null) { if (values != null) {
draw.insertXY(values[0], values[1]); draw.insertXY(values[0], values[1]);
} }
} };
$("insertDeltaXY").onclick = function() { document.getElementById("insertDeltaXY").onclick = function() {
var values = parseInput( var values = parseInput(
window.prompt( window.prompt(
"Enter offset values for new point (e.g. '15, -10')", "dx, dy" "Enter offset values for new point (e.g. '15, -10')", "dx, dy"
@@ -39,8 +39,8 @@ $("insertDeltaXY").onclick = function() {
if (values != null) { if (values != null) {
draw.insertDeltaXY(values[0], values[1]); draw.insertDeltaXY(values[0], values[1]);
} }
} };
$("insertDirectionLength").onclick = function() { document.getElementById("insertDirectionLength").onclick = function() {
var values = parseInput( var values = parseInput(
window.prompt( window.prompt(
"Enter direction and length offset values for new point (e.g. '-45, 10')", "direction, length" "Enter direction and length offset values for new point (e.g. '-45, 10')", "direction, length"
@@ -49,8 +49,8 @@ $("insertDirectionLength").onclick = function() {
if (values != null) { if (values != null) {
draw.insertDirectionLength(values[0], values[1]); draw.insertDirectionLength(values[0], values[1]);
} }
} };
$("insertDeflectionLength").onclick = function() { document.getElementById("insertDeflectionLength").onclick = function() {
var values = parseInput( var values = parseInput(
window.prompt( window.prompt(
"Enter deflection and length offset values for new point (e.g. '15, 20')", "deflection, length" "Enter deflection and length offset values for new point (e.g. '15, 20')", "deflection, length"
@@ -59,13 +59,13 @@ $("insertDeflectionLength").onclick = function() {
if (values != null) { if (values != null) {
draw.insertDeflectionLength(values[0], values[1]); draw.insertDeflectionLength(values[0], values[1]);
} }
} };
$("cancel").onclick = function() { document.getElementById("cancel").onclick = function() {
draw.cancel(); draw.cancel();
} };
$("finishSketch").onclick = function() { document.getElementById("finishSketch").onclick = function() {
draw.finishSketch(); draw.finishSketch();
} };
function parseInput(text) { function parseInput(text) {
var values = text.split(","); var values = text.split(",");
@@ -80,4 +80,4 @@ function parseInput(text) {
} }
} }
return values; return values;
} }
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -64,7 +64,7 @@
} }
.ex_classes{ .ex_classes{
font-size: .7em; font-size: .7em;
color: grey; color: gray;
display: none; display: none;
} }
#toc { #toc {
@@ -169,7 +169,7 @@
var words = text.split(/\W+/); var words = text.split(/\W+/);
var scores = {}; var scores = {};
for(var i=0; i<words.length; ++i) { for(var i=0; i<words.length; ++i) {
var word = words[i].toLowerCase() var word = words[i].toLowerCase();
var dict = info.index[word]; var dict = info.index[word];
var updateScores = function() { var updateScores = function() {
for(exIndex in dict) { for(exIndex in dict) {
@@ -185,7 +185,7 @@
scores[exIndex][word] = count; scores[exIndex][word] = count;
} }
} }
} };
if(dict) { if(dict) {
updateScores(); updateScores();
} else { } else {
@@ -255,7 +255,7 @@
template = new jugl.Template("template"); template = new jugl.Template("template");
target = document.getElementById("examples"); target = document.getElementById("examples");
listExamples(info.examples); listExamples(info.examples);
document.getElementById("keywords").onkeyup = inputChange document.getElementById("keywords").onkeyup = inputChange;
parseQuery(); parseQuery();
}; };
</script> </script>
+1 -1
View File
@@ -10,7 +10,7 @@
</head> </head>
<body> <body>
<h1 id="title">OpenLayers Example</h1> <h1 id="title">OpenLayers Example</h1>
<div id="tags">simple, basic</div> <div id="tags">simple, basic, light</div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate a simple map with an overlay that includes layer switching controls. Demonstrate a simple map with an overlay that includes layer switching controls.
</p> </p>
+46
View File
@@ -0,0 +1,46 @@
<!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 Feature Events 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">
#result {
height: 60px;
width: 514px;
font-size: smaller;
overflow: auto;
margin-top: 5px;
}
</style>
</head>
<body>
<h1 id="title">Feature Events Example</h1>
<div id="tags">
feature, select, hover
</div>
<div id="shortdesc">Feature hover and click events</div>
<div id="map" class="smallmap"></div>
<div id="docs">
<p id="result">Hover over or click features on the map.</p>
<p>This example shows how to use the 'featureclick', 'nofeatureclick',
'featureover' and 'featureout' events to make features interactive.
Look at the <a href="feature-events.js">feature-events.js</a> source
code to see how this is done.</p>
<p>Note that these events can be registered both on the map and on
individual layers. If many layers need to be observed, it is
recommended to register listeners once on the map for performance
reasons.</p>
</div>
<script src="../lib/OpenLayers.js"></script>
<script src="feature-events.js"></script>
</body>
</html>
+67
View File
@@ -0,0 +1,67 @@
var layerListeners = {
featureclick: function(e) {
log(e.object.name + " says: " + e.feature.id + " clicked.");
return false;
},
nofeatureclick: function(e) {
log(e.object.name + " says: No feature clicked.");
}
};
var style = new OpenLayers.StyleMap({
'default': OpenLayers.Util.applyDefaults(
{label: "${l}", pointRadius: 10},
OpenLayers.Feature.Vector.style["default"]
),
'select': OpenLayers.Util.applyDefaults(
{pointRadius: 10},
OpenLayers.Feature.Vector.style.select
)
});
var layer1 = new OpenLayers.Layer.Vector("Layer 1", {
styleMap: style,
eventListeners: layerListeners
});
layer1.addFeatures([
new OpenLayers.Feature.Vector(OpenLayers.Geometry.fromWKT("POINT(-1 -1)"), {l:1}),
new OpenLayers.Feature.Vector(OpenLayers.Geometry.fromWKT("POINT(1 1)"), {l:1})
]);
var layer2 = new OpenLayers.Layer.Vector("Layer 2", {
styleMap: style,
eventListeners: layerListeners
});
layer2.addFeatures([
new OpenLayers.Feature.Vector(OpenLayers.Geometry.fromWKT("POINT(-1 1)"), {l:2}),
new OpenLayers.Feature.Vector(OpenLayers.Geometry.fromWKT("POINT(1 -1)"), {l:2})
]);
var map = new OpenLayers.Map({
div: "map",
allOverlays: true,
layers: [layer1, layer2],
zoom: 6,
center: [0, 0],
eventListeners: {
featureover: function(e) {
e.feature.renderIntent = "select";
e.feature.layer.drawFeature(e.feature);
log("Map says: Pointer entered " + e.feature.id + " on " + e.feature.layer.name);
},
featureout: function(e) {
e.feature.renderIntent = "default";
e.feature.layer.drawFeature(e.feature);
log("Map says: Pointer left " + e.feature.id + " on " + e.feature.layer.name);
},
featureclick: function(e) {
log("Map says: " + e.feature.id + " clicked on " + e.feature.layer.name);
}
}
});
function log(msg) {
if (!log.timer) {
result.innerHTML = "";
log.timer = window.setTimeout(function() {delete log.timer;}, 100);
}
result.innerHTML += msg + "<br>";
}
+2 -2
View File
@@ -20,11 +20,11 @@ function startAnimation() {
filter.lowerBoundary = currentDate; filter.lowerBoundary = currentDate;
filter.upperBoundary = new Date(currentDate.getTime() + (span * 1000)); filter.upperBoundary = new Date(currentDate.getTime() + (span * 1000));
filterStrategy.setFilter(filter); filterStrategy.setFilter(filter);
currentDate = new Date(currentDate.getTime() + (step * 1000)) currentDate = new Date(currentDate.getTime() + (step * 1000));
} else { } else {
stopAnimation(true); stopAnimation(true);
} }
} };
animationTimer = window.setInterval(next, interval * 1000); animationTimer = window.setInterval(next, interval * 1000);
} }
+3 -3
View File
@@ -25,9 +25,8 @@
} }
</style> </style>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script src="fullScreen.js"></script>
</head> </head>
<body onload="init()"> <body>
<div id="map"></div> <div id="map"></div>
<div id="text"> <div id="text">
@@ -38,7 +37,7 @@
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate a map that fill the entire browser window. Demonstrate a map that fills the entire browser window.
</p> </p>
<div id="docs"> <div id="docs">
@@ -48,6 +47,7 @@
<a href="fullScreen.js" target="_blank">fullScreen.js source</a> <a href="fullScreen.js" target="_blank">fullScreen.js source</a>
to see how this is done.</p> to see how this is done.</p>
</div> </div>
<script src="fullScreen.js"></script>
</div> </div>
</body> </body>
</html> </html>
+19 -14
View File
@@ -1,15 +1,20 @@
var map; var map = new OpenLayers.Map({
function init(){ div: "map",
map = new OpenLayers.Map('map'); layers: [
new OpenLayers.Layer.OSM("OSM (without buffer)"),
new OpenLayers.Layer.OSM("OSM (with buffer)", null, {buffer: 2})
],
controls: [
new OpenLayers.Control.Navigation({
dragPanOptions: {
enableKinetic: true
}
}),
new OpenLayers.Control.PanZoom(),
new OpenLayers.Control.Attribution()
],
center: [0, 0],
zoom: 3
});
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", map.addControl(new OpenLayers.Control.LayerSwitcher());
"http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'} );
var ol_wms_nobuffer = new OpenLayers.Layer.WMS( "OpenLayers WMS (no tile buffer)",
"http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: 'basic'}, {buffer: 0});
map.addLayers([ol_wms, ol_wms_nobuffer]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(0, 0), 6);
}
+35
View File
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers Example For Reading Features From Google Fusion Tables</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="../lib/OpenLayers.js"></script>
</head>
<body>
<h1 id="title">Reading Features From A Google Fusion Tables Table</h1>
<div id="tags">
protocol, script, fusion tables
</div>
<p id="shortdesc">
Demonstrates how, with a custom read method, the script protocol and GeoJSON format can be used to read features stored in a table on Google Fusion Tables.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
Google Fusion Tables can be used to store features, and access them using SQL-type commands over HTTP. Tables are accessed using an authorization key; create/update/delete of tables requires an OAuth2 token, but tables can be public, in which case a simple apikey is all that's needed to read them. Geometries can be stored in Location columns in KML format, but the default output is a JSON object with the geometry as GeoJSON. With a custom read method, this example parses the geometry for each row, storing the other columns as feature attributes. You can of course add a 'where' clause to the SQL statement or change the column names to limit the data retrieved. Point geometries can also be stored in Latitude/Longitude columns, and the script could easily be modified to use those instead.
</p>
<p>
View the <a href="fusiontables.js" target="_blank">fusiontables.js</a>
source to see how this is done. You will need to get your own apikey from <a href="https://code.google.com/apis/console">Google's API Console</a> for this to function on your domain.
</p>
<p>
<a href="https://www.google.com/fusiontables/DataSource?docid=1g5DrXcdotCiO_yffkdW0zhuJk0a1i80SPvERHI8">Table used</a>. <a href="https://developers.google.com/fusiontables/docs/v1/using">Fusion Tables Developers Guide</a>
</p>
</div>
<script src="fusiontables.js"></script>
</body>
</html>
+51
View File
@@ -0,0 +1,51 @@
// change this to your api key
var apikey = "AIzaSyD_1zzMAoZjuP-m4LyhieuYmqiVJTEajyI";
var map = new OpenLayers.Map({
div: "map",
layers: [
new OpenLayers.Layer.OSM(),
new OpenLayers.Layer.Vector("Vectors", {
projection: new OpenLayers.Projection("EPSG:4326"),
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.Script({
url: "https://www.googleapis.com/fusiontables/v1/query",
params: {
sql: "select * from 1g5DrXcdotCiO_yffkdW0zhuJk0a1i80SPvERHI8",
key: apikey
},
format: new OpenLayers.Format.GeoJSON({
ignoreExtraDims: true,
read: function(json) {
var row, feature, atts = {}, features = [];
var cols = json.columns; // column names
for (var i = 0; i < json.rows.length; i++) {
row = json.rows[i];
feature = new OpenLayers.Feature.Vector();
atts = {};
for (var j = 0; j < row.length; j++) {
// 'location's are json objects, other types are strings
if (typeof row[j] === "object") {
feature.geometry = this.parseGeometry(row[j].geometry);
} else {
atts[cols[j]] = row[j];
}
}
feature.attributes = atts;
// if no geometry, not much point in continuing with this row
if (feature.geometry) {
features.push(feature);
}
}
return features;
}
})
}),
eventListeners: {
"featuresadded": function () {
this.map.zoomToExtent(this.getDataExtent());
}
}
})
]
});
+2 -2
View File
@@ -35,7 +35,7 @@
function init() { function init() {
map = new OpenLayers.Map( 'map', map = new OpenLayers.Map( 'map',
{ {
'maxExtent': new OpenLayers.Bounds(0, 0, $("map").clientWidth, $("map").clientHeight), 'maxExtent': new OpenLayers.Bounds(0, 0, document.getElementById("map").clientWidth, document.getElementById("map").clientHeight),
controls: [], controls: [],
maxResolution: 'auto'} maxResolution: 'auto'}
); );
@@ -74,7 +74,7 @@
<div id="shortdesc">Simple acceleration demo; roll a vector feature around <div id="shortdesc">Simple acceleration demo; roll a vector feature around
on a map. (Only tested on iOS 4.)</div> on a map. (Only tested on iOS 4.)</div>
<div id="map" width="100%" height="100%" style="background-color: grey"></div> <div id="map" width="100%" height="100%" style="background-color: gray"></div>
<div id="docs"> <div id="docs">
<p>Demo works best when device is locked in portrait mode.</p> <p>Demo works best when device is locked in portrait mode.</p>
</div> </div>
+46
View File
@@ -0,0 +1,46 @@
<!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 GeoJSON Reprojected 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">GeoJSON Reprojected</h1>
<div id="tags">
geojson, bing, projection
</div>
<div id="shortdesc">Display GeoJSON data over Bing tiles</div>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This example demonstrates the use of GeoJSON over Bing tiles. The
GeoJSON vector data is in geographic coordinates (EPSG:4326). The Bing
tiles are in a spherical mercator projection (EPSG:900913). By setting
the <code>projection</code> property of the GeoJSON layer to the source
projection (EPSG:4326), the features are properly displayed over the
base layer. In general, the map projection determines how raster or
vector data is displayed. The layer projection corresponds to the
projection of the data source.
<p>See the
<a target="_blank" href="geojson-reprojected.js">geojson-reprojected.js</a>
source for details on how this is done.</p>
</div>
<script src="../lib/OpenLayers.js"></script>
<script src="geojson-reprojected.js"></script>
</body>
</html>
+27
View File
@@ -0,0 +1,27 @@
// API key for http://openlayers.org. Please get your own at
// http://bingmapsportal.com/ and use that instead.
var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf";
var hybrid = new OpenLayers.Layer.Bing({
key: apiKey,
type: "AerialWithLabels",
name: "Bing Aerial With Labels"
});
var vector = new OpenLayers.Layer.Vector("GeoJSON", {
projection: "EPSG:4326",
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "geojson-reprojected.json",
format: new OpenLayers.Format.GeoJSON()
})
});
var center = new OpenLayers.LonLat(-109.6, 46.7).transform("EPSG:4326", "EPSG:900913");
var map = new OpenLayers.Map({
div: "map",
layers: [hybrid, vector],
center: center,
zoom: 4
});
+1
View File
@@ -0,0 +1 @@
{"type":"FeatureCollection","features":[{"type":"Feature","id":"USA-MT","properties":{"fips":"30","name":"Montana"},"geometry":{"type":"Polygon","coordinates":[[[-104.047534,49.000239],[-104.042057,47.861036],[-104.047534,45.944106],[-104.042057,44.996596],[-104.058488,44.996596],[-105.91517,45.002073],[-109.080842,45.002073],[-111.05254,45.002073],[-111.047063,44.476286],[-111.227803,44.580348],[-111.386634,44.75561],[-111.616665,44.547487],[-111.819312,44.509148],[-111.868605,44.563917],[-112.104113,44.520102],[-112.241036,44.569394],[-112.471068,44.481763],[-112.783254,44.48724],[-112.887315,44.394132],[-113.002331,44.448902],[-113.133778,44.772041],[-113.341901,44.782995],[-113.456917,44.865149],[-113.45144,45.056842],[-113.571933,45.128042],[-113.736241,45.330689],[-113.834826,45.522382],[-113.807441,45.604536],[-113.98818,45.703121],[-114.086765,45.593582],[-114.333228,45.456659],[-114.546828,45.560721],[-114.497536,45.670259],[-114.568736,45.774321],[-114.387997,45.88386],[-114.492059,46.037214],[-114.464674,46.272723],[-114.322274,46.645155],[-114.612552,46.639678],[-114.623506,46.705401],[-114.886399,46.809463],[-114.930214,46.919002],[-115.302646,47.187372],[-115.324554,47.258572],[-115.527201,47.302388],[-115.718894,47.42288],[-115.724371,47.696727],[-116.04751,47.976051],[-116.04751,49.000239],[-111.50165,48.994762],[-109.453274,49.000239],[-104.047534,49.000239]]]}}]}
+1 -1
View File
@@ -63,7 +63,7 @@
<h1 id="title">GeoJSON Example</h1> <h1 id="title">GeoJSON Example</h1>
<div id="tags"> <div id="tags">
JSON, GeoJSON JSON, GeoJSON, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+4 -5
View File
@@ -92,16 +92,15 @@ geolocate.events.register("locationupdated",geolocate,function(e) {
geolocate.events.register("locationfailed",this,function() { geolocate.events.register("locationfailed",this,function() {
OpenLayers.Console.log('Location detection failed'); OpenLayers.Console.log('Location detection failed');
}); });
document.getElementById('locate').onclick = function() {
$('locate').onclick = function() {
vector.removeAllFeatures(); vector.removeAllFeatures();
geolocate.deactivate(); geolocate.deactivate();
$('track').checked = false; document.getElementById('track').checked = false;
geolocate.watch = false; geolocate.watch = false;
firstGeolocation = true; firstGeolocation = true;
geolocate.activate(); geolocate.activate();
}; };
$('track').onclick = function() { document.getElementById('track').onclick = function() {
vector.removeAllFeatures(); vector.removeAllFeatures();
geolocate.deactivate(); geolocate.deactivate();
if (this.checked) { if (this.checked) {
@@ -110,4 +109,4 @@ $('track').onclick = function() {
geolocate.activate(); geolocate.activate();
} }
}; };
$('track').checked = false; document.getElementById('track').checked = false;
+14 -15
View File
@@ -50,21 +50,20 @@
style.addRules([rule, elseRule]); style.addRules([rule, elseRule]);
// Create a GML layer with GeoRSS format and a style map. // Create a Vector layer with GeoRSS format and a style map.
markerLayer = new OpenLayers.Layer.GML("Some images from Flickr", markerLayer = new OpenLayers.Layer.Vector("Some images from Flickr", {
"xml/georss-flickr.xml", { protocol: new OpenLayers.Protocol.HTTP({
format: OpenLayers.Format.GeoRSS, url: "xml/georss-flickr.xml",
formatOptions: { format: new OpenLayers.Format.GeoRSS({
// adds the thumbnail attribute to the feature // adds the thumbnail attribute to the feature
createFeatureFromItem: function(item) { createFeatureFromItem: function(item) {
var feature = OpenLayers.Format.GeoRSS.prototype var feature = OpenLayers.Format.GeoRSS.prototype.createFeatureFromItem.apply(this, arguments);
.createFeatureFromItem.apply(this, arguments); feature.attributes.thumbnail = this.getElementsByTagNameNS(item, "*", "thumbnail")[0].getAttribute("url");
feature.attributes.thumbnail = return feature;
this.getElementsByTagNameNS( }
item, "*", "thumbnail")[0].getAttribute("url"); })
return feature; }),
} strategies: [new OpenLayers.Strategy.Fixed()],
},
// Giving the style map keys for "default" and "select" // Giving the style map keys for "default" and "select"
// rendering intent, to make the image larger when selected // rendering intent, to make the image larger when selected
styleMap: new OpenLayers.StyleMap({ styleMap: new OpenLayers.StyleMap({
+2 -3
View File
@@ -48,7 +48,6 @@
</style> </style>
<script defer="defer" type="text/javascript"> <script defer="defer" type="text/javascript">
OpenLayers.ProxyHost = "proxy.cgi?url="; OpenLayers.ProxyHost = "proxy.cgi?url=";
var map, infocontrols, water, highlightlayer; var map, infocontrols, water, highlightlayer;
function load() { function load() {
@@ -105,7 +104,7 @@
}, },
queryVisible: true queryVisible: true
}) })
} };
map.addLayers([political, roads, cities, water, highlightLayer]); map.addLayers([political, roads, cities, water, highlightLayer]);
for (var i in infoControls) { for (var i in infoControls) {
@@ -125,7 +124,7 @@
highlightLayer.addFeatures(evt.features); highlightLayer.addFeatures(evt.features);
highlightLayer.redraw(); highlightLayer.redraw();
} else { } else {
$('responseText').innerHTML = evt.text; document.getElementById('responseText').innerHTML = evt.text;
} }
} }
+7 -1
View File
@@ -20,7 +20,13 @@
"http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} ); "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer); map.addLayer(layer);
map.zoomToExtent(new OpenLayers.Bounds(-3.922119,44.335327,4.866943,49.553833)); map.zoomToExtent(new OpenLayers.Bounds(-3.922119,44.335327,4.866943,49.553833));
map.addLayer(new OpenLayers.Layer.GML("GML", "gml/polygon.xml")); map.addLayer(new OpenLayers.Layer.Vector("GML", {
protocol: new OpenLayers.Protocol.HTTP({
url: "gml/polygon.xml",
format: new OpenLayers.Format.GML()
}),
strategies: [new OpenLayers.Strategy.Fixed()]
}));
} }
</script> </script>
</head> </head>
-45
View File
@@ -1,45 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Google NG Layer Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="../theme/default/google.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
.olControlAttribution {
left: 2px;
right: inherit;
bottom: 3px;
line-height: 11px;
font-family: Arial, sans-serif;
}
</style>
<script src="http://maps.google.com/maps/api/js?v=3.5&amp;sensor=false"></script>
<script src="../lib/OpenLayers.js"></script>
<script src="google-ng.js"></script>
</head>
<body onload="init()">
<h1 id="title">Google NG Layer Example</h1>
<div id="tags">
Google, api key, apikey
</div>
<p id="shortdesc">
Demonstrate use of tiles from the Google Maps v3 API.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
If you use OpenLayers.Layer.GoogleNG, the getTile method of the
GMaps v3 API's MapType is used to load tiles. This allows for
better integration than interacting with a whole map generated
by a google.maps.Map instance, as done with
OpenLayers.Layer.Google. See the
<a href="google-ng.js" target="_blank">google-ng.js source</a>
to see how this is done.
</p>
</div>
</body>
</html>
-28
View File
@@ -1,28 +0,0 @@
var map;
function init() {
map = new OpenLayers.Map('map');
map.addControl(new OpenLayers.Control.LayerSwitcher());
var gphy = new OpenLayers.Layer.GoogleNG(
{type: google.maps.MapTypeId.TERRAIN}
);
var gmap = new OpenLayers.Layer.GoogleNG(
// ROADMAP, the default
);
var ghyb = new OpenLayers.Layer.GoogleNG(
{type: google.maps.MapTypeId.HYBRID}
);
var gsat = new OpenLayers.Layer.GoogleNG(
{type: google.maps.MapTypeId.SATELLITE}
);
map.addLayers([gphy, gmap, ghyb, gsat]);
// GoogleNG uses EPSG:900913 as projection, so we have to
// transform our coordinates
map.setCenter(new OpenLayers.LonLat(10.2, 48.9).transform(
new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject()
), 5);
}
-63
View File
@@ -1,63 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Google with Overlay Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<!-- this gmaps key generated for http://openlayers.org/dev/ -->
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
map = new OpenLayers.Map('map');
var satellite = new OpenLayers.Layer.Google(
"Google Satellite" , {type: G_SATELLITE_MAP}
);
var wms = new OpenLayers.Layer.WMS(
"World Map",
"http://world.freemap.in/cgi-bin/mapserv",
{
map: '/www/freemap.in/world/map/factbooktrans.map',
transparent: 'TRUE',
layers: 'factbook'
},
{'reproject': true}
);
map.addLayers([satellite, wms]);
map.setCenter(new OpenLayers.LonLat(10.205188,48.857593), 5);
map.addControl( new OpenLayers.Control.LayerSwitcher() );
}
</script>
</head>
<body onload="init()">
<h1 id="title">Google with Overlay Example</h1>
<div id="tags">
Google, overlay, mercator, reproject, cleanup
</div>
<p id="shortdesc">
Demonstrate a Google basemap used with boundary overlay layer.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>An overlay in a Geographic projection can be stretched to somewhat
line up with Google tiles (in a Mercator projection). Results get
worse farther from the equator. Use the "reproject" option on a
layer to get this behavior. Use the sphericalMercator option on
a Google layer to get proper overlays (with other layers in
Spherical Mercator).</p>
</div>
</body>
</html>
+39
View File
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Google (Static Maps API) Grid Layer Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<h1 id="title">Google (Static Maps API) Grid Layer Example</h1>
<div id="tags">
Google, grid, static, GMaps, light
</div>
<p id="shortdesc">
Using the Google Static Maps API with a Grid Layer.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>A Grid layer with a custom <code>getURL</code> method can be
used to request static maps for a specific extent and zoom
level. The Google Static Maps API is the most reliable way to
get Google base maps in OpenLayers. Note, however, that the
free version of this is limited to a map size of 640x640 pixels
(1280x1280 if the <code>scale=2</code> url parameter is used)
and 1000 page views per viewer per day. Every map center
or zoom level change increases the page view counter by 1.
</p>
<p>Look at the
<a href="google-static.js" target="_blank">google-static.js
source</a> to see how this is done. See the
<a href="http://code.google.com/apis/maps/documentation/staticmaps/">Static Maps API V2 Developer Guide</a>
for details on the API.
</div>
<script src="../lib/OpenLayers.js"></script>
<script src="google-static.js"></script>
</body>
</html>
+61
View File
@@ -0,0 +1,61 @@
var options = {
singleTile: true,
ratio: 1,
isBaseLayer: true,
wrapDateLine: true,
getURL: function() {
var center = this.map.getCenter().transform("EPSG:3857", "EPSG:4326"),
size = this.map.getSize();
return [
this.url, "&center=", center.lat, ",", center.lon,
"&zoom=", this.map.getZoom(), "&size=", size.w, "x", size.h
].join("");
}
};
var map = new OpenLayers.Map({
div: "map",
projection: "EPSG:3857",
numZoomLevels: 22,
layers: [
new OpenLayers.Layer.Grid(
"Google Physical",
"http://maps.googleapis.com/maps/api/staticmap?sensor=false&maptype=terrain",
null, options
),
new OpenLayers.Layer.Grid(
"Google Streets",
"http://maps.googleapis.com/maps/api/staticmap?sensor=false&maptype=roadmap",
null, options
),
new OpenLayers.Layer.Grid(
"Google Hybrid",
"http://maps.googleapis.com/maps/api/staticmap?sensor=false&maptype=hybrid",
null, options
),
new OpenLayers.Layer.Grid(
"Google Satellite",
"http://maps.googleapis.com/maps/api/staticmap?sensor=false&maptype=satellite",
null, options
),
// the same layer again, but scaled to allow map sizes up to 1280x1280 pixels
new OpenLayers.Layer.Grid(
"Google Satellite (scale=2)",
"http://maps.googleapis.com/maps/api/staticmap?sensor=false&maptype=satellite&scale=2",
null, OpenLayers.Util.applyDefaults({
getURL: function() {
var center = this.map.getCenter().transform("EPSG:3857", "EPSG:4326"),
size = this.map.getSize();
return [
this.url, "&center=", center.lat, ",", center.lon,
"&zoom=", (this.map.getZoom() - 1),
"&size=", Math.floor(size.w / 2), "x", Math.floor(size.h / 2)
].join("");
}
}, options)
)
],
center: new OpenLayers.LonLat(10.2, 48.9).transform("EPSG:4326", "EPSG:3857"),
zoom: 5
});
map.addControl(new OpenLayers.Control.LayerSwitcher());
+2 -3
View File
@@ -6,16 +6,15 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Google (v3) Layer Example</title> <title>OpenLayers Google (v3) Layer Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="../theme/default/google.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<script src="http://maps.google.com/maps/api/js?sensor=false"></script> <script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false"></script>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script src="google-v3-alloverlays.js"></script> <script src="google-v3-alloverlays.js"></script>
</head> </head>
<body onload="init()"> <body onload="init()">
<h1 id="title">Google (v3) allOverlays Layer Example</h1> <h1 id="title">Google (v3) allOverlays Layer Example</h1>
<div id="tags"> <div id="tags">
Google, overlay Google, overlay, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate use the Google Maps v3 API with allOverlays set to true on the map. Demonstrate use the Google Maps v3 API with allOverlays set to true on the map.
+2 -7
View File
@@ -6,16 +6,15 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Google (v3) Layer Example</title> <title>OpenLayers Google (v3) Layer Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="../theme/default/google.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<script src="http://maps.google.com/maps/api/js?v=3.5&amp;sensor=false"></script> <script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false"></script>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script src="google-v3.js"></script> <script src="google-v3.js"></script>
</head> </head>
<body onload="init()"> <body onload="init()">
<h1 id="title">Google (v3) Layer Example</h1> <h1 id="title">Google (v3) Layer Example</h1>
<div id="tags"> <div id="tags">
Google, api key, apikey Google, api key, apikey, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate use the Google Maps v3 API. Demonstrate use the Google Maps v3 API.
@@ -30,10 +29,6 @@
spherical mercator projection. See the spherical mercator projection. See the
<a href="google-v3.js" target="_blank">google-v3.js source</a> <a href="google-v3.js" target="_blank">google-v3.js source</a>
to see how this is done. to see how this is done.
<p>
In order to position the Google attribution div in the default
location, you must include the extra theme/default/google.css
stylesheet.
</p> </p>
</div> </div>
</body> </body>
+26 -27
View File
@@ -1,35 +1,34 @@
var map; var map;
function init() { function init() {
map = new OpenLayers.Map('map'); map = new OpenLayers.Map('map', {
projection: 'EPSG:3857',
layers: [
new OpenLayers.Layer.Google(
"Google Physical",
{type: google.maps.MapTypeId.TERRAIN}
),
new OpenLayers.Layer.Google(
"Google Streets", // the default
{numZoomLevels: 20}
),
new OpenLayers.Layer.Google(
"Google Hybrid",
{type: google.maps.MapTypeId.HYBRID, numZoomLevels: 20}
),
new OpenLayers.Layer.Google(
"Google Satellite",
{type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 22}
)
],
center: new OpenLayers.LonLat(10.2, 48.9)
// Google.v3 uses web mercator as projection, so we have to
// transform our coordinates
.transform('EPSG:4326', 'EPSG:3857'),
zoom: 5
});
map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.LayerSwitcher());
var gphy = new OpenLayers.Layer.Google(
"Google Physical",
{type: google.maps.MapTypeId.TERRAIN}
);
var gmap = new OpenLayers.Layer.Google(
"Google Streets", // the default
{numZoomLevels: 20}
);
var ghyb = new OpenLayers.Layer.Google(
"Google Hybrid",
{type: google.maps.MapTypeId.HYBRID, numZoomLevels: 20}
);
var gsat = new OpenLayers.Layer.Google(
"Google Satellite",
{type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 22}
);
map.addLayers([gphy, gmap, ghyb, gsat]);
// Google.v3 uses EPSG:900913 as projection, so we have to
// transform our coordinates
map.setCenter(new OpenLayers.LonLat(10.2, 48.9).transform(
new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject()
), 5);
// add behavior to html // add behavior to html
var animate = document.getElementById("animate"); var animate = document.getElementById("animate");
animate.onclick = function() { animate.onclick = function() {
+1 -1
View File
@@ -14,7 +14,7 @@
<body onload="init();"> <body onload="init();">
<h1 id="title">Named Graphics Example</h1> <h1 id="title">Named Graphics Example</h1>
<div id="tags"> <div id="tags">
vector, named graphic, star, cross, x, square, triangle, circle, style vector, named graphic, star, cross, x, square, triangle, circle, style, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Shows how to use well-known graphic names. Shows how to use well-known graphic names.
+6 -1
View File
@@ -5,6 +5,10 @@ OpenLayers.Renderer.symbol.church = [4, 0, 6, 0, 6, 4, 10, 4, 10, 6, 6, 6, 6, 14
var map; var map;
function init(){ function init(){
// allow testing of specific renderers via "?renderer=Canvas", etc
var renderer = OpenLayers.Util.getParameters(window.location.href).renderer;
renderer = (renderer) ? [renderer] : OpenLayers.Layer.Vector.prototype.renderers;
map = new OpenLayers.Map('map', { map = new OpenLayers.Map('map', {
controls: [] controls: []
}); });
@@ -46,7 +50,8 @@ function init(){
// Create a vector layer and give it your style map. // Create a vector layer and give it your style map.
var layer = new OpenLayers.Layer.Vector("Graphics", { var layer = new OpenLayers.Layer.Vector("Graphics", {
styleMap: styles, styleMap: styles,
isBaseLayer: true isBaseLayer: true,
renderers: renderer
}); });
layer.addFeatures(features); layer.addFeatures(features);
map.addLayer(layer); map.addLayer(layer);
+2 -2
View File
@@ -23,7 +23,7 @@
} }
</style> </style>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script src="http://proj4js.org/lib/proj4js-compressed.js"></script> <script src="http://svn.osgeo.org/metacrs/proj4js/trunk/lib/proj4js-compressed.js"></script>
<script type="text/javascript"> <script type="text/javascript">
Proj4js.defs["EPSG:42304"]="+title=Atlas of Canada, LCC +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs"; Proj4js.defs["EPSG:42304"]="+title=Atlas of Canada, LCC +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs";
@@ -93,7 +93,7 @@
<h1 id="title">Graticule Example</h1> <h1 id="title">Graticule Example</h1>
<div id="tags"> <div id="tags">
graticule, grid graticule, grid, projection, proj4js, reproject, transform
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+22 -27
View File
@@ -13,48 +13,43 @@
} }
</style> </style>
<script src="../lib/OpenLayers.js"></script> <script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 2;
var map;
window.onload = function() {
options = {maxExtent: new OpenLayers.Bounds(-73.5295, 41.2318,
-69.9097, 42.8883),
maxResolution: 0.0003}
map = new OpenLayers.Map('map', options);
var roads15 = new OpenLayers.Layer.WMS( "Roads (15px gutter)",
"http://boston.freemap.in/cgi-bin/mapserv?map=/www/freemap.in/boston/map/gmaps.map&",
{layers: 'roads_200_40'},
{gutter: 15});
var roads = new OpenLayers.Layer.WMS( "Roads (no gutter)",
"http://boston.freemap.in/cgi-bin/mapserv?map=/www/freemap.in/boston/map/gmaps.map&",
{layers: 'roads_200_40'});
map.addLayers([roads, roads15]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(-71.848, 42.2), 0);
}
</script>
</head> </head>
<body> <body>
<h1 id="title">Gutter Example</h1> <h1 id="title">Gutter Example</h1>
<div id="tags"> <div id="tags">
gutter, quality, tile gutter, quality, tile, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrates map tiling artifacts, and OpenLayer's facility for correcting this distortion. Demonstrates OpenLayer's facility for dealing with tiling artifacts.
</p> </p>
<div id="map" class="smallmap"></div> <div id="map" class="smallmap"></div>
<div id="docs"> <div id="docs">
<p class="caption"> <p class="caption">
When you render tiles with certain types of symbols, there are artifacts When you render tiles with certain types of symbols, some map
at tile edges that make symbology not look continuous. In the center of servers may render artifacts at tile edges that make symbology not
the above map (when it first loads), the large orange road is split look continuous. Look at the state abbreviations, open the layer
vertically by a tile. Open the layer switcher and change to the layer switcher and change to the layer with a 15 pixel gutter to see how
with a 15 pixel gutter to see how the symbology looks nicer. the symbology looks different (the server in this example doesn't
render such artifacts, so the client-side gutter won't make things
look nicer).
</p> </p>
</div> </div>
</body> </body>
<script type="text/javascript">
var map = new OpenLayers.Map('map');
var states15 = new OpenLayers.Layer.WMS( "States (15px gutter)",
"http://suite.opengeo.org/geoserver/wms",
{layers: 'usa:states'},
{gutter: 15, transitionEffect: "resize"});
var states = new OpenLayers.Layer.WMS( "States (no gutter)",
"http://suite.opengeo.org/geoserver/wms",
{layers: 'usa:states'});
map.addLayers([states, states15]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(-71.848, 42.2), 5);
</script>
</html> </html>
-2
View File
@@ -68,8 +68,6 @@
highlightCtrl.activate(); highlightCtrl.activate();
selectCtrl.activate(); selectCtrl.activate();
map.addControl(new OpenLayers.Control.EditingToolbar(vectors));
map.setCenter(new OpenLayers.LonLat(0, 0), 1); map.setCenter(new OpenLayers.LonLat(0, 0), 1);
} }
+8 -7
View File
@@ -19,14 +19,12 @@
function init(){ function init(){
map = new OpenLayers.Map('map'); map = new OpenLayers.Map('map');
var options = {numZoomLevels: 3};
var graphic = new OpenLayers.Layer.Image( var graphic = new OpenLayers.Layer.Image(
'City Lights', 'City Lights',
'http://earthtrends.wri.org/images/maps/4_m_citylights_lg.gif', 'data/4_m_citylights_lg.gif',
new OpenLayers.Bounds(-180, -88.759, 180, 88.759), new OpenLayers.Bounds(-180, -88.759, 180, 88.759),
new OpenLayers.Size(580, 288), new OpenLayers.Size(580, 288),
options {numZoomLevels: 3}
); );
graphic.events.on({ graphic.events.on({
@@ -38,9 +36,12 @@
} }
}); });
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic", var jpl_wms = new OpenLayers.Layer.WMS(
"http://t1.hypercube.telascience.org/cgi-bin/landsat7", "Global Imagery",
{layers: "landsat7"}, options); "http://demo.opengeo.org/geoserver/wms",
{layers: "bluemarble"},
{maxExtent: [-160, -88.759, 160, 88.759], numZoomLevels: 3}
);
map.addLayers([graphic, jpl_wms]); map.addLayers([graphic, jpl_wms]);
map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.LayerSwitcher());
Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 37 KiB

-1
View File
@@ -1,7 +1,6 @@
var map = new OpenLayers.Map({ var map = new OpenLayers.Map({
div: "map", div: "map",
resolutions: [0.087890625, 0.0439453125, 0.02197265625, 0.010986328125], resolutions: [0.087890625, 0.0439453125, 0.02197265625, 0.010986328125],
panDuration: 100,
controls: [ controls: [
new OpenLayers.Control.Navigation( new OpenLayers.Control.Navigation(
{dragPanOptions: {enableKinetic: true}} {dragPanOptions: {enableKinetic: true}}
+4 -3
View File
@@ -29,12 +29,13 @@ function init() {
var fid, points = [], feature; var fid, points = [], feature;
for (var i=0, len=e.features.length; i<len; i++) { for (var i=0, len=e.features.length; i<len; i++) {
feature = e.features[i]; feature = e.features[i];
if (feature.fid !== fid || i === len-1) { if ((fid && feature.fid !== fid) || i === len-1) {
fid = feature.fid;
this.addNodes(points, {silent: true}); this.addNodes(points, {silent: true});
points = []; points = [];
} else {
points.push(feature);
} }
points.push(feature); fid = feature.fid;
} }
return false; return false;
} }
+1 -1
View File
@@ -29,7 +29,7 @@
<h1 id="title">Late Rendering</h1> <h1 id="title">Late Rendering</h1>
<div id="tags"> <div id="tags">
creation, render, div creation, render, div, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+1 -1
View File
@@ -70,7 +70,7 @@
<h1 id="title">Layer Opacity Example</h1> <h1 id="title">Layer Opacity Example</h1>
<div id="tags"> <div id="tags">
opacity, transparent, transparency opacity, transparent, transparency, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+3 -3
View File
@@ -71,7 +71,7 @@
layer.logEvent = function(event) { layer.logEvent = function(event) {
eventsLog.innerHTML += "<br>(" + getTimeStamp() + ") " + eventsLog.innerHTML += "<br>(" + getTimeStamp() + ") " +
this.name + ": " + event; this.name + ": " + event;
} };
layer.events.register("loadstart", layer, function() { layer.events.register("loadstart", layer, function() {
this.logEvent("Load Start"); this.logEvent("Load Start");
@@ -112,14 +112,14 @@
<h1 id="title">Layer Load Monitoring Example</h1> <h1 id="title">Layer Load Monitoring Example</h1>
<div id="tags"> <div id="tags">
monitor, loading monitor, loading, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
Demonstrate a method for monitoring tile loading performance. Demonstrate a method for monitoring tile loading performance.
</p> </p>
<div id="map" style="float:left;"></div> <div id="map" class="smallmap" style="float:left;"></div>
<div id="controls"> <div id="controls">
<div id="eventsLogID"> <div id="eventsLogID">
+1 -1
View File
@@ -42,7 +42,7 @@
<h1 id="title">Layer Switcher Example</h1> <h1 id="title">Layer Switcher Example</h1>
<div id="tags"> <div id="tags">
tree, layerswitcher, reposition tree, layerswitcher, reposition, light
</div> </div>
<p id="shortdesc"> <p id="shortdesc">
+35
View File
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers Light - Basic Popups</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<script src="../OpenLayers.light.debug.js"></script>
<script src="light-basic.js"></script>
</head>
<body onload="init()">
<h1 id="title">OpenLayers Light - Basic Popups</h1>
<div id="tags">
light, vector, feature, popup
</div>
<p id="shortdesc">
A basic use case example using the OpenLayers.light version of the library.<br>
Shows popup info bubble when hovering over features on the map
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
This example uses OpenLayers.light.js to display features and show
popup info bubbles when the feature is hovered over.
</p>
See the <a href="light-basic.js" target="_blank">
light-basic.js source</a> to see how this is done.
</p>
</div>
</body>
</html>

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