Compare commits

..

7595 Commits

Author SHA1 Message Date
Tom Payne
669d47e8d2 Merge pull request #568 from twpayne/fix-dom-layer-visibility
Fix DOM layer visibility
2013-04-18 10:52:45 -07:00
Tom Payne
8831d25929 Remove DOM layer in render, not in dispose 2013-04-18 19:25:49 +02:00
Tom Payne
f7c0c26bed Update layer visibility in DOM renderer 2013-04-18 19:21:06 +02:00
Tom Payne
87358296f4 Merge pull request #564 from twpayne/frame-index
Frame index
2013-04-18 06:16:30 -07:00
Tom Payne
bc9f702d84 Merge pull request #563 from twpayne/single-image-load-render
Render instead of requestRenderFrame when single image loads
2013-04-18 06:05:44 -07:00
Tom Payne
75bc61c0e0 Use index instead of time as frame marker 2013-04-18 14:47:27 +02:00
Tom Payne
8fef7b9edd Add index to frame state 2013-04-18 14:47:27 +02:00
Tom Payne
1c4d2956ac Merge pull request #562 from twpayne/renderer-fixes
Renderer fixes
2013-04-18 05:09:58 -07:00
Tom Payne
302e65e140 Render instead of requestRenderFrame when single image loads 2013-04-18 13:24:25 +02:00
Tom Payne
2f5797bc16 Always create layer renderer, even when layer is invisible or not ready
This is necessary because it is the layer renderer that is responsible
for triggering a render when a layer loads or becomes visible.
2013-04-18 12:52:45 +02:00
Tom Payne
77841bb8eb Merge pull request #542 from twpayne/simplify-renderer-events
Create and remove layer renderers in renderFrame
2013-04-18 02:14:39 -07:00
Frédéric Junod
a0ed2afa88 Merge pull request #561 from fredj/bingkey
Update Bing Maps key, see #554
2013-04-18 01:55:02 -07:00
Frederic Junod
51d14e95d7 Update Bing Maps key, see #554 2013-04-18 10:10:31 +02:00
Éric Lemoine
5d86674b32 Merge pull request #553 from elemoine/fix-zoomslider
ZoomSlider example is broken
2013-04-17 11:41:36 -07:00
Éric Lemoine
f476726aff Merge pull request #554 from elemoine/bing-maps-key
Bing Maps key has expired
2013-04-17 04:47:38 -07:00
Éric Lemoine
6d282e939d Update Bing Maps key (Expiration Date: 07/16/2013) 2013-04-17 13:23:16 +02:00
Éric Lemoine
6f34595312 ZoomSlider uses non-existing View2D functions 2013-04-17 10:53:23 +02:00
Tom Payne
a07e70ea32 Handle obscure edge case where deferred post render function receives a null frame state 2013-04-16 23:40:48 +02:00
Tom Payne
328a1bcda5 Merge pull request #556 from twpayne/consistent-and-unique-filenames
Consistent and unique filenames
2013-04-16 11:12:30 -07:00
Tom Payne
f174ffc2ad Rename projection files for consistency 2013-04-16 19:59:54 +02:00
Tom Payne
9f0004e17d Rename test files to match source files 2013-04-16 19:59:53 +02:00
Tom Payne
b19b753c1b Give wgs84.js files unique filenames 2013-04-16 19:20:19 +02:00
Tom Payne
3867d0cd28 Give defaults.{js,exports} unique filenames 2013-04-16 19:18:14 +02:00
Tom Payne
a68656ad33 Rename wms.js to wmssource.js 2013-04-16 19:15:00 +02:00
Tom Payne
bc10446b0e Track changes to layers in the map 2013-04-16 18:31:59 +02:00
Tom Payne
07fe17924b Remove layer renderers in post render function 2013-04-16 18:16:08 +02:00
Frédéric Junod
4e911fc34b Merge pull request #550 from fredj/keyboard
Add a condition param to the KeyboardPan and KeyboardZoom interactions.
2013-04-15 22:48:03 -07:00
Frédéric Junod
52b4a8f71f Merge pull request #551 from fredj/ol.interaction.Keyboard
Remove ol.interaction.Keyboard
2013-04-15 22:47:28 -07:00
Éric Lemoine
96690845eb Merge pull request #548 from elemoine/zoom-css
Bigger + and - zoom buttons on touch devices
2013-04-15 03:44:47 -07:00
Éric Lemoine
7351ef038f Merge pull request #549 from elemoine/pan-interaction-fix
Pan interaction fix
2013-04-15 03:44:20 -07:00
Frederic Junod
a5e0f06a8e Remove ol.interaction.Keyboard 2013-04-15 12:33:09 +02:00
Frederic Junod
fd6f4a0622 Add a condition param to the KeyboardPan and KeyboardZoom interactions.
By default, the action is ignored if a modifier key is pressed.
2013-04-15 11:04:09 +02:00
Éric Lemoine
49bf204c13 pan interactions call requestRenderFrame on dragend 2013-04-15 10:46:55 +02:00
Éric Lemoine
61204d10d8 setHint returns new hint value 2013-04-15 10:46:30 +02:00
Éric Lemoine
ca8d033fb0 Merge pull request #547 from elemoine/touch-anchor
Anchors are incorrect in touch interactions
2013-04-14 14:54:10 -07:00
Éric Lemoine
b501230164 Bigger + and - zoom buttons on touch devices 2013-04-14 23:28:45 +02:00
Éric Lemoine
71fb6087fe Merge pull request #546 from elemoine/view2d
View2D - more consistency and configuration flexibility
2013-04-14 13:50:10 -07:00
Éric Lemoine
74feabb4c4 Fix rotation anchor for touch rotate interation 2013-04-14 22:47:52 +02:00
Éric Lemoine
4b395c72fa Fix zoom anchor for touch zoom interaction 2013-04-14 22:47:05 +02:00
Éric Lemoine
78b2983fdf maxZoom 18 in localized-openstreetmap example 2013-04-14 22:14:05 +02:00
Éric Lemoine
48f0e7e2ec More View2D configuration flexibility 2013-04-14 22:12:12 +02:00
Éric Lemoine
778aec45d8 View2D option "numZoomLevels" changed to "maxZoom"
This is to be consistent with ol.source.XYZ and ol.tilegrid.XYZ.
2013-04-14 22:00:09 +02:00
ahocevar
aee6b8333b Merge pull request #545 from ahocevar/no-container
Docs align better with examples when not using a container
2013-04-14 00:20:39 -07:00
ahocevar
f9281ac619 Docs align better with examples when not using a container 2013-04-14 09:19:40 +02:00
ahocevar
605ee491c4 Merge pull request #544 from ahocevar/no-timestamp
Removing the timestamp
2013-04-13 09:24:11 -07:00
ahocevar
6440ce5ea0 Removing the timestamp
When auto-generating the website using grunt in the
openlayers.github.io repo, we do not need to publish new docs
every time grunt is run, just because the timestamp is updated.
2013-04-13 18:23:31 +02:00
ahocevar
4a1f13ad0a Merge pull request #543 from ahocevar/jsdoc-typo
container-fluid is a class, not an id
2013-04-12 11:56:51 -07:00
ahocevar
bbc20f505b container-fluid is a class, not an id 2013-04-12 20:55:57 +02:00
Tom Payne
4e69b2bb8b Create and remove layer renderers in renderFrame
Previously, the map renderer would listen for layers being added and
removed from the layers collection, and would create and remove layer
renderers in response to these events.

With this change, layer renderers are only created or removed when
renderFrame is called, which leads to somewhat simpler code.

We still need to listen to changes to the layers collection, but now
these only trigger a new render.

This new approach also has an advantage when layers change order.
Swapping the order of two layers involves removing one and re-inserting
it elsewhere.  With the old approach, this would cause the deletion and
re-creation of the layer renderer.  With this new approach, the layer
renderer is preserved.
2013-04-12 17:50:38 +02:00
Éric Lemoine
cd5d2c7144 Merge pull request #541 from elemoine/canvas-comments
Fix bug in canvas.TileLayer comments
2013-04-12 08:44:21 -07:00
Éric Lemoine
1fe3091f43 Fix bug in canvas.TileLayer comments 2013-04-12 17:40:28 +02:00
Éric Lemoine
6e3b8d2f40 Merge pull request #540 from elemoine/canvas-comments
Add comments to ol.renderer.canvas.TileLayer
2013-04-12 08:31:19 -07:00
Éric Lemoine
6cc019c031 Add comments to ol.renderer.canvas.TileLayer 2013-04-12 17:27:40 +02:00
Bart van den Eijnden
aa69b4bae8 Merge pull request #539 from bartvde/wmscapstests
Use afterLoadXml in WMSCapabilities parser tests (r=@twpayne)
2013-04-12 04:03:14 -07:00
Tom Payne
7c9a1acc2a Merge pull request #535 from twpayne/renderer-clean-ups
Renderer clean-ups
2013-04-12 02:49:56 -07:00
Bart van den Eijnden
8fafe63553 Use afterLoadXml in WMSCapabilities parser tests
The WMS Capabilities parser tests were created before the afterLoadXml
utility functions were created. This is now corrected.
2013-04-12 11:25:08 +02:00
Bart van den Eijnden
d1d18ad325 Merge pull request #517 from bartvde/kmlfresh3
Add a parser for reading and writing KML (r=@tschaub,@fredj,@twpayne)
2013-04-11 23:50:44 -07:00
Tom Payne
be629a7ed8 Sort jsdoc comments alphabetically 2013-04-12 00:48:55 +02:00
Tom Payne
0371b891a6 Tighten up permission on layer renderers 2013-04-12 00:48:35 +02:00
Tom Payne
d855a35446 Make renderer layer management private 2013-04-12 00:33:37 +02:00
Tom Payne
f0106f391a Make ol.renderer.Map.map property private 2013-04-12 00:33:37 +02:00
Tom Payne
ee817ba4a2 Clean up ol.renderer.webgl.Map.createLayerRenderer 2013-04-12 00:33:37 +02:00
Tom Payne
df6e13bdc0 Clean up ol.renderer.dom.Map.createLayerRenderer 2013-04-12 00:33:33 +02:00
Tom Payne
db15c53f95 Merge pull request #521 from openlayers/full-screen-control
Full screen control
2013-04-11 10:12:12 -07:00
Frederic Junod
7b0e036b83 Hide the control if the Fullscreen API is not supported 2013-04-11 18:25:31 +02:00
Frederic Junod
8206cf111f Fix full screen button state 2013-04-11 18:25:31 +02:00
Tim Schaub
93041becbe Toggle css class and use css content for anchor 2013-04-11 18:25:31 +02:00
Tom Payne
0bd11d0a70 Use full screen control in full screen example 2013-04-11 18:25:31 +02:00
Tom Payne
cef6fe4930 Add full screen control 2013-04-11 18:25:31 +02:00
Éric Lemoine
055a4da761 Merge pull request #518 from elemoine/canvas
Canvas tile layer renderer occasionally glitches when panning fast
2013-04-11 08:14:04 -07:00
Tom Payne
ac40769155 Clear tiles that are not fully covered 2013-04-11 15:50:32 +02:00
Éric Lemoine
d1021b6ee0 Refactor and fix canvas tile layer renderer 2013-04-11 09:26:57 +02:00
Éric Lemoine
a344e4af8c Merge pull request #528 from elemoine/touch
Touch interactions should use requestRenderFrame
2013-04-10 22:44:27 -07:00
ahocevar
37ca407e50 Merge pull request #529 from ahocevar/global
Don't use window and document
2013-04-10 13:56:05 -07:00
Tim Schaub
d71da50fb9 Merge pull request #532 from tschaub/update-size
Add an updateSize method.  Application code should call this when the map viewport size changes by some method other than a window resize.
2013-04-10 13:40:58 -07:00
Tim Schaub
b499f71d97 Add an updateSize method
We need a non-private/protected method to call when the map viewport size changes.
2013-04-10 12:47:06 -06:00
ahocevar
a437bea61f Use no browser globals at all 2013-04-10 16:53:45 +02:00
Éric Lemoine
b6a6ba95cc Touch zoom interaction requests render frames 2013-04-10 16:15:58 +02:00
Éric Lemoine
703842a021 Touch rotate interaction requests render frames 2013-04-10 16:15:58 +02:00
Éric Lemoine
1e3e7fb0c1 Touch pan interaction request render frames 2013-04-10 16:15:58 +02:00
Éric Lemoine
ce985ba272 Remove extra /** 2013-04-10 16:15:58 +02:00
Éric Lemoine
38914bc95b addPreRenderFunction calls requestRenderFrame
So there's no need to call requestRenderFrame prior to calling addPreRenderFunction.
2013-04-10 16:15:58 +02:00
ahocevar
dc1d7a1aba Don't use window and document
With this change, our JavaScript can also be executed by
non-brower engines.
2013-04-10 15:48:17 +02:00
ahocevar
ae5d1cee1e Merge pull request #527 from ahocevar/jsdoc-filtered
Only document the exported API, not every symbol. r=@elemoint
2013-04-10 06:28:25 -07:00
Éric Lemoine
3bb476e752 Merge pull request #526 from elemoine/OSM
OpenStreetMap to OSM renaming
2013-04-10 06:27:04 -07:00
ahocevar
12cd3672bc Remove "Inherited from" for non-API parents 2013-04-10 15:06:12 +02:00
Éric Lemoine
091cc10f08 Merge pull request #520 from elemoine/view2d
The view does not know about the map
2013-04-10 05:12:36 -07:00
Éric Lemoine
7a488be89e Merge pull request #524 from elemoine/check
Compile entire code base on build check
2013-04-10 05:08:46 -07:00
ahocevar
71c32d3554 Don't use the undocumented property before it is set
This actually avoids addition of params of symbols that are not
part of the API.
2013-04-10 13:59:32 +02:00
ahocevar
7a50295c49 Making @elemoine and GitHub happy
Reminder to self: everyone wants a new line at the end of a
file.
2013-04-10 13:18:22 +02:00
ahocevar
1e0e30a9ed Use a public return type for a public function 2013-04-10 11:34:03 +02:00
ahocevar
8acfa08766 Making the linter happy
Although *.jsdoc files are none of the linter's business...
2013-04-10 11:24:27 +02:00
ahocevar
9cb85ea9a9 Adding the projection namespace 2013-04-10 11:18:23 +02:00
ahocevar
423ba5c0e4 A few lines explaining what the exports.js plugin does 2013-04-10 11:04:39 +02:00
ahocevar
6f94ec6fe7 Adding params of API symbols to the API
This makes the API docs complete. What still needs to be
documented is API events, but this deserves a separate pull
request.
2013-04-10 10:57:36 +02:00
Bart van den Eijnden
8cc70f35d9 use goog.global, restructure to have ol.parser.KML instead of ol.parser.ogc.KML 2013-04-10 10:17:28 +02:00
Éric Lemoine
a694661793 OpenStreetMap to OSM renaming
OSM is a well-known name, and is shorter than OpenStreetMap.
2013-04-10 10:07:49 +02:00
Éric Lemoine
4e4d22b4e2 Target "check" depends on ol-all.js 2013-04-10 09:15:15 +02:00
Éric Lemoine
14e066ac78 Add exports.js as an input to ol-all 2013-04-10 09:14:51 +02:00
Éric Lemoine
2d5381ae41 Move zoom from View2D to Interaction 2013-04-10 08:52:07 +02:00
Éric Lemoine
dbca68650c Move rotate from View2D to Interaction 2013-04-10 08:52:06 +02:00
Éric Lemoine
51094139a8 Move pan function from View2D to Interaction 2013-04-10 08:27:47 +02:00
ahocevar
551a5f06ff Nicer way to fix @inheritDoc 2013-04-10 01:45:21 +02:00
ahocevar
2fd185c966 Only document the exported API, not every symbol
There is more work to be done, because this filters out more
than desired, and we don't have events documented yet.
2013-04-10 01:44:40 +02:00
Tom Payne
ee987bc951 Merge pull request #438 from twpayne/boost-tile-limits
Tile limits are too low
2013-04-09 13:16:09 -07:00
Tom Payne
5a2483e224 Increase default tile cache size 2013-04-09 22:14:54 +02:00
Tom Payne
29b78a32e8 Merge pull request #519 from twpayne/tile-garbage-clean-ups
Tile garbage clean-ups
2013-04-09 13:12:01 -07:00
Éric Lemoine
32560e8699 Merge pull request #516 from elemoine/no-getview2d-in-examples
Do not use getView2D in the examples
2013-04-09 11:13:40 -07:00
Tom Payne
680b31c5e0 Eliminate an ol.TileCoord allocation 2013-04-09 19:54:15 +02:00
Tom Payne
fe03ebe99c Re-use ol.Extent objects 2013-04-09 19:19:45 +02:00
Tom Payne
ee8e565be2 Enable ol.Extent re-use 2013-04-09 19:19:45 +02:00
Tom Payne
e08d19ac55 Add ol.Extent.createOrUpdate 2013-04-09 19:19:44 +02:00
Tom Payne
e556c87a7c Re-use ol.TileRange objects 2013-04-09 19:19:20 +02:00
Tom Payne
e30109913e Enable ol.TileRange re-use 2013-04-09 19:19:20 +02:00
Tom Payne
7a4672d429 Add ol.TileRange.createOrUpdate 2013-04-09 19:19:19 +02:00
Tom Payne
5bd67e1325 Re-use ol.TileCoord objects 2013-04-09 19:19:11 +02:00
Tom Payne
5a4033db7a Enable ol.TileCoord re-use 2013-04-09 19:19:11 +02:00
Tom Payne
7b58685462 Add ol.TileCoord.createOrUpdate 2013-04-09 19:19:11 +02:00
Tim Schaub
2ecaf2bc69 Merge pull request #501 from tschaub/logical
Logical filter touch-ups
2013-04-09 09:21:13 -07:00
Éric Lemoine
396ee5ce3d Add constrainResolution|Rotation to ol.View2D 2013-04-09 17:06:18 +02:00
Éric Lemoine
6bb36452cb Add calculateCenterZoom|Rotation to ol.View2D 2013-04-09 16:50:48 +02:00
Bart van den Eijnden
577ebd6abe move examples/kml to examples/data/kml 2013-04-09 16:17:36 +02:00
Tom Payne
aa12232ec3 Merge pull request #509 from twpayne/use-high-resolution-tiles
Use high resolution tiles
2013-04-09 06:34:45 -07:00
Bart van den Eijnden
ed9861317f Add a parser for reading and writing KML.
This adds ol.parser.ogc.KML which can be used to read and write KML documents.
NetworkLinks are retrieved asynchronously.
Current caveats of the implementation are:

* LabelStyle not yet implemented. Missing support in renderers.
* When using shared structures the parser needs to be configured with
  dimension 2.
* We need a better way to disable fill, currently we use opacity as a
  workaround.
* We cannot really roundtrip documents, since some of the info is not
  preserved in the ol structures. But we can write out most of the important
  info.
2013-04-09 15:34:03 +02:00
Éric Lemoine
572055127c Do not use getView2D in the examples 2013-04-09 15:28:20 +02:00
ahocevar
38b1a59574 Merge pull request #511 from ahocevar/examples-data
Copying data folder to hosted examples directory. r=@elemoine
2013-04-09 05:07:31 -07:00
ahocevar
97f7eb3db3 Re-adding accidently removed line
This brings back the previous way to copy the data directory,
as suggested by @elemoine.
2013-04-09 13:22:04 +02:00
ahocevar
cdb90a79ee Merge pull request #512 from ahocevar/export-getpixel
Export the pixel location of the MapBrowserEvent. r=@fredj,@twpayne
2013-04-09 04:16:09 -07:00
Tom Payne
e732a67382 Propagate return value 2013-04-09 13:15:16 +02:00
Tom Payne
cdc67a141a Remove preload from examples that don't need it 2013-04-09 13:15:16 +02:00
Tom Payne
66f0e0d8e8 Add optimized version of getTileCoordChildTileRange for ol.tilegrid.XYZ 2013-04-09 13:15:16 +02:00
Tom Payne
c5748f1fd7 Store maxZoom in ol.tilegrid.XYZ 2013-04-09 13:15:16 +02:00
Tom Payne
1b7ee36680 Use high resolution tiles in DOM renderer 2013-04-09 13:15:16 +02:00
Tom Payne
8da1f3400b Use high resolution tiles in Canvas renderer 2013-04-09 13:15:16 +02:00
Tom Payne
4d6e060052 Use high resolution tiles in WebGL renderer 2013-04-09 13:15:16 +02:00
Tom Payne
7a7ea8a072 Add ol.tilegrid.TileGrid.getTileCoordChildTileRange 2013-04-09 13:15:16 +02:00
Tom Payne
e39aae6662 Merge pull request #514 from twpayne/remove-stray-comment
Remove stray comment
2013-04-09 04:14:34 -07:00
Tom Payne
52893f1ba2 Remove stray comment 2013-04-09 13:07:02 +02:00
Tom Payne
e68f744ad1 Merge pull request #513 from twpayne/fix-tilequeue-assert
Remove incorrect assert, thanks @elemoine
2013-04-09 03:41:49 -07:00
Tom Payne
e12b30ba91 Remove incorrect assert, thanks @elemoine 2013-04-09 12:18:04 +02:00
ahocevar
964ae5b58b Export the pixel location of the MapBrowserEvent
This is useful for getting the pixel coordinate relative to the
map viewport, which is used e.g. for WMS GetFeatureInfo.
2013-04-09 11:08:04 +02:00
ahocevar
696fc8c4f7 Copying data folder to hosted examples directory
We need to copy all of the examples directory, because we need
the data subdirectory.
2013-04-09 10:52:21 +02:00
Tom Payne
eee24870b5 Merge pull request #506 from twpayne/refactor-webgl-shaders
Refactor WebGL shaders
2013-04-08 11:11:47 -07:00
Tom Payne
1f679bbd1c Merge pull request #508 from twpayne/remove-matrix-filter
Remove references to Matrix Filter
2013-04-08 11:10:28 -07:00
Tom Payne
60a33a86bb Remove references to Matrix Filter 2013-04-08 19:43:41 +02:00
Tom Payne
ba3746a8d9 Merge pull request #507 from twpayne/asserts
Clean up use of goog.asserts
2013-04-08 10:39:55 -07:00
Tom Payne
a6a60149f1 Merge pull request #494 from twpayne/use-goog-base
Use Closure type identification functions
2013-04-08 10:16:52 -07:00
Tom Payne
e132943eef Use goog.asserts.fail 2013-04-08 19:14:16 +02:00
Tom Payne
098bddb72f Use goog.asserts.assertInstanceof 2013-04-08 19:03:49 +02:00
Tom Payne
667f3de6d9 Remove unused constants 2013-04-08 16:40:53 +02:00
Tom Payne
ee54aaaea4 Use simpler, faster shader when brightness, contrast, hue and saturation are unchanged 2013-04-08 16:40:53 +02:00
Tom Payne
f7f799be27 Use automatically generated locations in WebGL tile layer renderer 2013-04-08 16:40:53 +02:00
Tom Payne
aa5ce41cb5 Automatically generate uniform and attribute locations 2013-04-08 16:40:49 +02:00
Tom Payne
c6cd3e0227 Refactor glsl-unit templates
This abuses the template system to allow both a single anonymous shader
and multiple named shaders to be defined in a namespace.
2013-04-08 15:57:26 +02:00
Tom Payne
24cfd8a9be Merge pull request #496 from twpayne/check-whitespace
Check whitespace
2013-04-08 06:06:15 -07:00
Éric Lemoine
879ea4f488 Merge pull request #473 from elemoine/value-resolution
Exponential scaling to ZoomSlider
2013-04-08 05:22:38 -07:00
Tom Payne
9d38b21831 Check for whitespace errors in jsdoc files 2013-04-08 13:40:13 +02:00
Tom Payne
a103b5acd7 Fix whitespace errors in jsdoc 2013-04-08 13:25:01 +02:00
Tom Payne
7b2c2369ae Check for whitespace errors in lint 2013-04-08 13:25:01 +02:00
Tom Payne
f1cc5b87da Fix whitespace errors in JavaScript source 2013-04-08 13:25:01 +02:00
Tom Payne
a4763e0b69 Fix whitespace errors in exports 2013-04-08 13:25:01 +02:00
Tom Payne
81712a28a3 Fix whitespace errors in examples 2013-04-08 13:24:10 +02:00
ahocevar
8117b1650b Merge pull request #504 from ahocevar/shuffle-jsdoc
Shuffling jsdoc files, as suggested by @elemoine
2013-04-08 04:16:49 -07:00
ahocevar
0a540578a2 Moving ol.jsdoc and layer.jsdoc 2013-04-08 13:09:05 +02:00
Tom Payne
220dc2eab6 Merge pull request #499 from twpayne/fix-openstreetmap-licenses
OpenStreetMap licenses are inconsistent
2013-04-08 03:59:44 -07:00
Éric Lemoine
fb5ca531d0 Do not assume map.getView returns an ol.View2D 2013-04-08 12:55:00 +02:00
Tom Payne
75c1642c82 Merge pull request #498 from twpayne/boost-tile-loading
Boost tile loading
2013-04-08 03:54:53 -07:00
Éric Lemoine
8c9153ffca ZoomSlider animates to final resolution 2013-04-08 12:51:29 +02:00
Éric Lemoine
516f21eb17 Make ZoomSlider use View2D value/resolution funcs 2013-04-08 12:51:14 +02:00
Éric Lemoine
6163f05b2b ZoomSlider setMap deals with undefined resolution 2013-04-08 12:50:12 +02:00
Tom Payne
0221998120 Fix OpenStreetMap attributions 2013-04-08 12:32:03 +02:00
Éric Lemoine
631afb07ab Add value/resolution functions to View2D 2013-04-08 12:28:37 +02:00
Tom Payne
01440b484b Only manage the tile queue if it is not empty and improve comment 2013-04-08 12:14:33 +02:00
Tom Payne
6f49cb8abe Assert that loadMoreTiles is only called when more tiles will be loaded 2013-04-08 12:12:25 +02:00
ahocevar
949a4a59fa Shuffling jsdoc files, as suggested by @elemoine 2013-04-08 11:16:08 +02:00
Frédéric Junod
123e84de17 Merge pull request #502 from fredj/misc
Fix bootstrap.min.js path in overlay example
2013-04-08 01:10:48 -07:00
Frederic Junod
abf3896a71 Fix bootstrap.min.js path in overlay example 2013-04-08 10:01:38 +02:00
Tim Schaub
f0c62294f9 Doc fixes 2013-04-07 17:42:52 -06:00
Tim Schaub
27e23cce9c Convenient factories for logical filters 2013-04-07 17:37:31 -06:00
Tim Schaub
ceb9541031 Correcting or and adding not
Previously, OR filters always returned true (fixes #500).
2013-04-07 17:36:54 -06:00
Tom Payne
09110098ae Merge pull request #497 from openlayers/doc-objectliterals
Documentation for exported object literals
2013-04-07 13:03:26 -07:00
Tom Payne
60a913aef3 Compute number of new tiles to load exactly 2013-04-07 19:12:40 +02:00
Tom Payne
5b133d40d9 Only reprioritize tile queue when more tiles will be loaded 2013-04-07 18:31:56 +02:00
Tom Payne
b93283e8f3 Boost number of loading tiles when not animating or interacting 2013-04-07 18:25:19 +02:00
Tom Payne
da6f4cc764 Make maximum number of tiles loading a parameter to loadMoreTiles 2013-04-07 18:10:19 +02:00
Tom Payne
1d5431226e Use objectliterals.jsdoc instead of objectliterals.exports 2013-04-07 18:00:11 +02:00
Tom Payne
b83352549e Correct typos in objectliterals.jsdoc 2013-04-07 18:00:11 +02:00
ahocevar
c832a47575 Documentation for exported object literals
This adds the infrastructure that we need for documenting
exported object literals. This is best done by using *.jsdoc
files, which are parsed by JSDoc but not the Closure Compiler.
In addition to adding the documentation of the objects literal
properties, the respective namespaces must also be annotated.

Restricting the API docs to the exported API will be added as a
separate pull request.
2013-04-07 18:00:10 +02:00
Tom Payne
5f817476c2 Merge pull request #495 from twpayne/logo-control-exports
Add ol.control.Logo exports
2013-04-07 04:18:05 -07:00
Tom Payne
f724e40179 Add ol.control.Logo exports 2013-04-07 12:53:52 +02:00
Tom Payne
7a2ad8c506 Use Closure type identification functions 2013-04-07 12:31:54 +02:00
Tom Payne
a90797852e Merge pull request #489 from twpayne/consistent-options
Consistent options
2013-04-07 03:13:07 -07:00
Tom Payne
b74ebcdae5 Be more consistent with view options 2013-04-07 11:44:59 +02:00
Tom Payne
5b104635cf Be more consistent with tilegrid options 2013-04-07 11:44:59 +02:00
Tom Payne
dfc4dcc5f9 Be more consistent with style options 2013-04-07 11:44:58 +02:00
Tom Payne
3f637ec2c4 Be more consistent with overlay options 2013-04-07 11:44:58 +02:00
Tom Payne
f1c6ea4bab Be more consistent with map options 2013-04-07 11:44:58 +02:00
Tom Payne
a537632199 Be more consistent with source options 2013-04-07 11:44:58 +02:00
Tom Payne
042cf9b7a9 Merge pull request #493 from twpayne/correct-example
Update use of ol.Coordinate in example
2013-04-07 02:40:48 -07:00
Tom Payne
99caf9a6fe Update use of ol.Coordinate in example 2013-04-07 11:40:16 +02:00
Tom Payne
81486c261d Merge pull request #491 from twpayne/openstreetmap-options
OpenStreetMap options
2013-04-07 02:09:29 -07:00
Tom Payne
fe6b418cbd Use common attribution for OpenStreetMap 2013-04-07 10:43:04 +02:00
Tom Payne
910ee493e5 Add localized OpenStreetMap example 2013-04-07 10:24:44 +02:00
Tom Payne
93e9b4524b Add OpenStreetMap options 2013-04-06 21:41:01 +02:00
Tom Payne
ac8762b493 Be more consistent with projection options 2013-04-06 20:44:23 +02:00
Tom Payne
ec77455c14 Be more consistent with parser options 2013-04-06 20:44:23 +02:00
Tom Payne
3197e278f8 Be more consistent with layer options 2013-04-06 20:44:23 +02:00
Tom Payne
42c029be84 Be more consistent with interaction options 2013-04-06 20:44:23 +02:00
Tom Payne
85af2bf912 Be more consistent with geolocation options 2013-04-06 20:44:23 +02:00
Tom Payne
ea22f0f8cc Be more consistent with control options 2013-04-06 20:44:23 +02:00
Tom Payne
7e8db559fe Be more consistent with animation options 2013-04-06 19:12:39 +02:00
Tom Payne
027806d114 Merge pull request #488 from twpayne/remove-logger
Remove (mostly unused) logger
2013-04-06 09:11:45 -07:00
Tom Payne
4d1ec1ff90 Remove (mostly unused) logger 2013-04-06 17:32:41 +02:00
Éric Lemoine
f3415f3631 Merge pull request #477 from elemoine/slow-start
Tile loading is slow to start
2013-04-06 06:14:07 -07:00
Tom Payne
d90c871ebb Merge pull request #484 from twpayne/check-goog-requires
Check requires from Closure Library
2013-04-06 05:52:58 -07:00
Éric Lemoine
928906bd17 Do not always limit num of tile loads per frame 2013-04-06 14:43:10 +02:00
Tom Payne
5d36f1de83 Merge pull request #485 from twpayne/no-social-widgets-when-debugging
Remove social widgets when debugging
2013-04-06 05:32:49 -07:00
Tom Payne
1e8a47be13 Speed up requirements checking 2013-04-06 14:28:12 +02:00
Tom Payne
4be8c991f7 Add missing Closure Library requires 2013-04-06 14:28:12 +02:00
Tom Payne
12a6d6b43f Read provides from Closure Library 2013-04-06 14:23:56 +02:00
Tom Payne
f8ea6fefd3 Merge pull request #486 from twpayne/build-py-pep8
Make build.py PEP8 compliant again
2013-04-06 05:22:43 -07:00
Tom Payne
a2bae2d893 Merge pull request #487 from twpayne/update-url
Update examples URL to openlayers.github.io
2013-04-06 05:21:57 -07:00
Tom Payne
8073be7f3a Update examples URL to openlayers.github.io 2013-04-06 14:21:16 +02:00
Tom Payne
764872d619 Remove social widgets when debugging
Social widgets increase load times, add uncontrolled JavaScript code,
and open potential security holes.  None of these are desirable,
especially when debugging.  This commit removes the Twitter and Google
Plus widgets, at least when the window location has a query string
(e.g. "?mode=RAW").
2013-04-06 14:12:03 +02:00
Tom Payne
622ac870fd Merge pull request #482 from twpayne/control-clean-ups
Control clean-ups
2013-04-06 05:10:22 -07:00
Tom Payne
8bf14f8f98 Make build.py PEP8 compliant again 2013-04-06 14:08:56 +02:00
Tom Payne
d3f6691cf1 Merge pull request #483 from twpayne/sort-objectliterals-exports
Sort src/objectliterals.exports
2013-04-05 12:05:45 -07:00
Tom Payne
e068135a66 Sort src/objectliterals.exports 2013-04-05 21:00:40 +02:00
Tom Payne
25eb18d2c8 Handle unlistening in base class 2013-04-05 20:59:16 +02:00
Tom Payne
06bcab8374 Move postrender event listening into base class 2013-04-05 20:59:16 +02:00
Tom Payne
da1e5aadd3 Factor out css.js and fix requires 2013-04-05 20:59:16 +02:00
Tom Payne
4520d81153 Don't lint examples/loader.js 2013-04-05 20:20:13 +02:00
Tom Payne
6cd7acfb8e Merge pull request #480 from twpayne/logo-control
Add logo control
2013-04-05 10:47:49 -07:00
Éric Lemoine
dd68afca5b Merge pull request #449 from elemoine/no-kinetic
Undesired pans after pinching
2013-04-05 10:04:41 -07:00
Tom Payne
2ec13c45f5 Merge pull request #481 from twpayne/attribution-control-clean-ups
Minor attribution control clean-ups
2013-04-05 09:46:35 -07:00
ahocevar
d61b70f696 Merge pull request #444 from ahocevar/jsdoc
Enabling Markdown and other JSDoc improvements. r=@marcjansen,@Turbo87
2013-04-05 09:41:27 -07:00
Tom Payne
cfe5234104 Add logo control by default 2013-04-05 18:38:52 +02:00
Tom Payne
dfed88a8c2 Add ol.control.Logo 2013-04-05 18:38:52 +02:00
Tom Payne
5680b89c48 Update logos in renderers 2013-04-05 18:27:51 +02:00
Tom Payne
cca770097b Add logos to frame state 2013-04-05 18:27:51 +02:00
Tom Payne
0caf5efef6 Configure logo for MapQuest sources 2013-04-05 18:27:45 +02:00
Tom Payne
78abd1b103 Minor attribution control clean-ups 2013-04-05 18:19:20 +02:00
Tom Payne
5b2cbe76f2 Configure logo for Bing Maps source 2013-04-05 18:12:45 +02:00
Tom Payne
a876332f0e Add logo option to ol.source.Source subclasses 2013-04-05 18:12:12 +02:00
Tom Payne
6c90bcc5cd Add logo option to ol.source.Source 2013-04-05 18:11:22 +02:00
Tom Payne
5a2f7f44d4 Merge pull request #448 from kalbermattenm/windows_paths
Windows installation support
2013-04-05 08:57:28 -07:00
Michael Kalbermatten
b9c804d3b3 Windows tests and checkdeps function 2013-04-05 17:25:32 +02:00
Tom Payne
bcdff5a011 Merge pull request #437 from twpayne/throttle-image-loads
Throttle image requests
2013-04-05 07:24:13 -07:00
Tom Payne
3b416c485b Merge pull request #465 from twpayne/coordinate-as-array
Replace ol.Coordinate with Array.<number>
2013-04-05 06:58:20 -07:00
Tom Payne
58a512b52c Remove unused constant 2013-04-05 12:30:38 +02:00
Tom Payne
a8295ba113 Use ol.vec.Mat4.multVec2 2013-04-05 12:30:38 +02:00
Tom Payne
c7ed933c9d Add ol.vec.Mat4.multVec2 2013-04-05 12:30:38 +02:00
Tom Payne
d892ef2b6a Use slice to extract sub-arrays 2013-04-05 12:30:38 +02:00
Tom Payne
02196c94b5 Redefine ol.Coordinate to be Array.<number> 2013-04-05 12:30:37 +02:00
Frédéric Junod
6fc86b81c7 Merge pull request #474 from fredj/misc
Remove unused local variable
2013-04-05 03:19:38 -07:00
Frederic Junod
cade8eaf7e Remove unused local variable 2013-04-05 11:59:07 +02:00
Frédéric Junod
4a5ed629cc Merge pull request #466 from fredj/popover
Use popover from Bootstrap
2013-04-05 01:16:04 -07:00
Éric Lemoine
5f47ee9a9c Disable kinetic when multiple touches on screen 2013-04-05 09:23:05 +02:00
Frederic Junod
73791040c1 Quote object keys to prevent renaming in ADVANCED_OPTIMIZATIONS mode 2013-04-05 09:13:33 +02:00
Frederic Junod
ea97c8687c Update overlay example tags and doc 2013-04-05 08:59:56 +02:00
Tim Schaub
2f829b4aba Merge pull request #471 from tschaub/example-typo
Correct link to example source
2013-04-04 20:42:06 -07:00
Tim Schaub
613b9d7592 Correct link to example source 2013-04-04 21:40:35 -06:00
Tom Payne
0a1b1751f1 Merge pull request #470 from szymonc/error-fix
Add goog.base(this) to the MapBrowserEventHandler's constructor
2013-04-04 15:28:24 -07:00
Tom Payne
4cb9685271 Merge pull request #469 from twpayne/webgl-context-lost
Abort rendering when WebGL context is lost
2013-04-04 15:16:14 -07:00
Tom Payne
b32a2e101c Abort rendering when WebGL context is lost 2013-04-05 00:14:10 +02:00
szymonc
569fb81572 Add goog.base(this) to the MapBrowserEventHandler's constructor 2013-04-05 00:01:16 +02:00
Tom Payne
0e12d16c37 Move configuration of maximum tiles loading into map.js 2013-04-04 23:49:21 +02:00
Tom Payne
71d1207201 Start a maximum of two new tile downloads per frame 2013-04-04 23:33:18 +02:00
Frederic Junod
f806ac5807 Use map.on instead of map.addEventListener 2013-04-04 16:08:45 +02:00
ahocevar
6c5377eebe Creating a resources folder for use by examples and API docs 2013-04-04 15:18:15 +02:00
Frederic Junod
1311464ea6 Use popover from Bootstrap 2013-04-04 14:48:42 +02:00
Frédéric Junod
9f689a0809 Merge pull request #464 from fredj/externs-bootstrap
Lowercase type in externs/bootstrap.js
2013-04-04 05:48:21 -07:00
Frederic Junod
20b8e1e311 Lowercase type in externs/bootstrap.js 2013-04-04 14:26:13 +02:00
ahocevar
b4ce430bfb Making social links work 2013-04-04 14:25:24 +02:00
ahocevar
9f2ff48444 Use bootstrap layout and css from examples
I'm sure this can be made much prettier still, but at least we
have a common theme with the examples now.
2013-04-04 11:53:12 +02:00
ahocevar
e042c5701a Enabling Markdown and other JSDoc improvements
This change enables GitHub flavored markdown for APIdoc
comments. The code example in map.js shows how to use markdown
for code snippets. doc/index.md is now included again as start
page for the docs. Everything in the doc/tutorials directory
will also be added to the docs as tutorial. As an example, I
moved the ol3.md file with the architecture to the tutorials
directory.

Currently properties and methods annotated with @inheritDoc
or @override won't be documented at all. This is a known issue,
so I added a custom JSDoc plugin with a hack to avoid this.
2013-04-04 11:53:12 +02:00
Marc Jansen
19e6569b69 Merge pull request #462 from marcjansen/same-name
Rename *.exports to match their *.js counterparts.
2013-04-04 02:02:21 -07:00
Marc Jansen
6ca21b32a9 More renames as suggested by @elemoine. 2013-04-04 10:25:11 +02:00
Marc Jansen
636a189330 Merge pull request #461 from marcjansen/istanbul
Fix typo in example.
2013-04-03 23:28:03 -07:00
Marc Jansen
523506ef86 Rename *.exports to match their *.js counterparts. 2013-04-04 07:40:16 +02:00
Marc Jansen
66c03f4178 Fix typo in example. 2013-04-04 07:27:53 +02:00
Frédéric Junod
3395319018 Merge pull request #440 from fredj/css-print
css cleanups
2013-04-03 05:41:02 -07:00
Frederic Junod
56afdb31c0 Remove unused ol-renderer-webgl-canvas css class 2013-04-03 14:09:42 +02:00
Frederic Junod
ffa879dad7 Hide the zoom buttons on print 2013-04-03 14:09:42 +02:00
Tom Payne
382caa36b8 Merge pull request #455 from twpayne/update-pake
Update to latest version of pake
2013-04-03 04:05:46 -07:00
Tom Payne
33db796141 Update to latest version of pake 2013-04-03 13:04:37 +02:00
Éric Lemoine
dc67ddc700 Merge pull request #450 from elemoine/projection-null
Do not pass tile grid to getTile and tileUrlFunc
2013-04-03 00:59:05 -07:00
Tom Payne
d8ae60ab85 Merge pull request #454 from twpayne/download-plovr-into-build-dir
Download plovr into build dir
2013-04-02 07:59:04 -07:00
Tom Payne
fe78b49e28 Add logging messages for downloading proj4js 2013-04-02 16:29:11 +02:00
Tom Payne
15b7bb1cdb Add logging messages to indicate when a download is in progress 2013-04-02 16:28:42 +02:00
Tom Payne
69d42f0f94 Download Plovr into build directory
This means that all build artefacts except for the examples are in
build.
2013-04-02 16:16:45 +02:00
Tom Payne
d1c91b9663 Merge pull request #452 from twpayne/limit-post-renderer-set-timeout
Don't schedule a new post render delay if one is already active
2013-04-02 05:49:04 -07:00
Frédéric Junod
6d5cc38265 Merge pull request #453 from fredj/dev
Store kinetic coordinates and time as numbers instead of objects
2013-04-02 05:24:03 -07:00
Frederic Junod
98e3a2b56e Store kinetic coordinates and time as numbers instead of objects 2013-04-02 13:43:01 +02:00
Frédéric Junod
a370a7910b Merge pull request #451 from fredj/dev
Don't recompute delay every loop
2013-04-02 04:30:34 -07:00
Tom Payne
8278b2641b Don't schedule a new post render delay if one is already active 2013-04-02 12:58:11 +02:00
Frederic Junod
5906168bc0 Don't recompute delay every loop 2013-04-02 11:51:59 +02:00
Éric Lemoine
e128bab625 Do not pass tile grid to getTile and tileUrlFunc
getTile and the tileUrlFunc are functions of the source, so they do need to be passed the tile grid. The tile source knows its tile grid, and can get the projection's tile grid if it doesn't have a tile grid.
2013-04-02 11:12:43 +02:00
Éric Lemoine
676bcc6cc7 Merge pull request #445 from elemoine/events
Add on and un methods to ol.Object
2013-03-31 06:40:17 -07:00
Éric Lemoine
ce0836e403 Add on and un methods to ol.Object 2013-03-31 14:14:19 +02:00
Éric Lemoine
660537ed2b Merge pull request #446 from elemoine/build
Put all build artifacts in a single directory
2013-03-29 08:34:20 -07:00
Éric Lemoine
7f85dfbf1c Git can now ignore the entire build dir 2013-03-29 16:32:43 +01:00
Éric Lemoine
dac2a5ad5a Merge pull request #447 from elemoine/wms-test-ns
Correct ns for ol.source.wms tests
2013-03-29 08:23:22 -07:00
Éric Lemoine
b87fcbb4c4 Move hosted examples loader our of build dir
The build dir is now empty, and therefore unexisting for Git.
2013-03-29 16:17:38 +01:00
Éric Lemoine
35fc2882b4 .gitignore clean-up 2013-03-29 16:09:38 +01:00
Éric Lemoine
b40aafc696 Tests requireall.js generated in build dir 2013-03-29 16:05:56 +01:00
Éric Lemoine
5019f9378c Move Plovr json files in specific dir 2013-03-29 16:00:13 +01:00
Éric Lemoine
dbf9ce8844 Correct ns for ol.source.wms tests 2013-03-29 15:58:01 +01:00
Éric Lemoine
15ae6832d4 Remove unneeded test in build.py 2013-03-29 11:34:39 +01:00
Éric Lemoine
4428fe0f5a Examples json and combined.js files in build dir 2013-03-29 11:33:28 +01:00
Tom Payne
dfe30f9feb Merge pull request #423 from twpayne/preemptive-webgl-texture-uploads
White flash occurs when zooming out from initially zoomed in view with WebGL renderer
2013-03-27 16:00:56 -07:00
Tom Payne
7fc3784a0b Merge pull request #443 from twpayne/only-use-glsl-unit-if-available
Only use glsl-unit if it is available
2013-03-27 10:05:23 -07:00
Tom Payne
c13c7a7208 Only use glsl-unit if it is available 2013-03-27 17:53:25 +01:00
Tom Payne
a32c69c8ff Merge pull request #442 from twpayne/fix-types-js-dependency
Fix build/src/external/src/types.js dependency
2013-03-27 09:35:46 -07:00
Tom Payne
13a2848665 Fix build/src/external/src/types.js dependency
The dependencies for build/src/external/src/types.js were wrong, which
meant that build/src/external/src/types.js would always be rebuilt,
which meant that almost everything else would be rebuilt too.
2013-03-27 17:17:04 +01:00
Tom Payne
cbe4d7bd84 Merge pull request #441 from twpayne/dont-install-phantomjs-on-windows
Do not install PhamtomJS on Windows
2013-03-27 08:56:13 -07:00
Tom Payne
8c5b778595 Don't attempt to install PhantomJS on Windows
Instead, assume that phantomjs.exe is already in the user's path. It can
also be overridden on the build.py command line:

  build.py PHANTOMJS=path/to/phantomjs

or with an environment variable:

  set PHANTOMJS=path/to/phantomjs
  build.py
2013-03-27 16:44:44 +01:00
Tom Payne
6b01ff9327 Correct preload example tags, thanks @fredj 2013-03-27 15:10:34 +01:00
Tom Payne
66c6a8a3e0 Make preload a number of levels instead of a boolean 2013-03-27 14:34:29 +01:00
Tom Payne
421135b3e7 Set preload appropriately in examples 2013-03-27 14:34:29 +01:00
Tom Payne
5077413c34 Add preload example 2013-03-27 14:34:29 +01:00
Tom Payne
494d61250e Make tile pre-loading a per-layer option 2013-03-27 14:34:29 +01:00
Tom Payne
1d22d2fdde Tune tile priority functions 2013-03-27 14:34:29 +01:00
Tom Payne
5e8b0de66d Use tile texture queue 2013-03-27 14:34:29 +01:00
Tom Payne
6221680b0b Add tile texture queue 2013-03-27 14:34:29 +01:00
Tom Payne
00b862de10 Store focus in frame state 2013-03-27 14:34:29 +01:00
Tom Payne
96912c271d Add optional per-tile callback to manageTilePyramid 2013-03-27 14:34:28 +01:00
Tom Payne
3e4f1773bc Replace isHeap with assertValid 2013-03-27 14:34:28 +01:00
Tom Payne
27f9e83780 Refactor ol.TileQueue to extend ol.structs.PriorityQueue 2013-03-27 14:34:28 +01:00
Tom Payne
f12f5ccc67 Factor out core elements of ol.TileQueue into ol.structs.PriorityQueue 2013-03-27 14:34:28 +01:00
Éric Lemoine
f62b8a1bfe Merge pull request #383 from elemoine/pinch-direction
One direction pinch zoom
2013-03-27 06:14:42 -07:00
Éric Lemoine
3c03c8beab Increase touch zoom anim duration 2013-03-27 11:52:42 +01:00
Éric Lemoine
de1575e457 One direction pinch zoom 2013-03-27 11:52:42 +01:00
Éric Lemoine
b753e6b6c2 Merge pull request #435 from elemoine/coordinate-z
Use @expose for Coordinate.z
2013-03-26 10:18:55 -07:00
Éric Lemoine
0b62c92cb3 Use @expose for Coordinate.z
By annotating the z property with @expose the compiler does not try to optimize that property in any way. See https://developers.google.com/closure/compiler/docs/js-for-compiler. The doc says that @expose should never be used in library code, but that's the only way I found for our case.
2013-03-26 17:05:54 +01:00
Tom Payne
588e0c1cdc Merge pull request #434 from twpayne/build-clean-ups
Build clean-ups
2013-03-25 05:01:04 -07:00
Tom Payne
c22b971b45 Sort .gitignore 2013-03-25 12:33:27 +01:00
Tom Payne
116370f7f1 Only shallow clone jsdoc
glsl-unit is not shallow cloned because code.google.com returns a 500
Internal Server Error.
2013-03-25 12:33:27 +01:00
Tom Payne
e196a9e68e Clone jsdoc into build/jsdoc 2013-03-25 12:28:04 +01:00
Tom Payne
59f5484cde Rename hostexamples to host-examples 2013-03-25 12:25:37 +01:00
Tom Payne
5a4acc1262 Merge pull request #429 from twpayne/dont-shrink-canvas
Don't shrink canvas
2013-03-25 04:11:35 -07:00
Tom Payne
4e7591394d Merge pull request #433 from twpayne/clean-up-xyz-tests
Move ol.tilegrid.XYZ tests to their proper place
2013-03-25 04:04:48 -07:00
Tom Payne
7a243b310f Move ol.tilegrid.XYZ tests to their proper place 2013-03-25 12:03:13 +01:00
Tom Payne
62877fdf02 Reuse ol.Size object 2013-03-25 11:54:50 +01:00
Tom Payne
4e883b7099 Don't shrink canvas 2013-03-25 11:54:50 +01:00
Tom Payne
b396673932 Fix typo in ol.TileRange.containsTileRange 2013-03-25 11:54:50 +01:00
Tom Payne
6cfe918501 Merge pull request #428 from twpayne/gc-optimizations
GC optimizations
2013-03-25 03:54:15 -07:00
Frédéric Junod
5c7905178c Merge pull request #432 from fredj/uri-url
Rename TileJSONOptions.uri to TileJSONOptions.url
2013-03-25 03:46:26 -07:00
Tom Payne
9906c518a7 Rename useTileZXY to useTile 2013-03-25 11:45:20 +01:00
Tom Payne
658b919d20 Merge pull request #425 from twpayne/glsl-unit
Use glsl-unit for WebGL shaders
2013-03-25 03:42:27 -07:00
Tom Payne
c72fc4476c Merge pull request #431 from twpayne/rename-anchoredelement-to-overlay
Rename AnchoredElement to Overlay
2013-03-25 03:36:57 -07:00
Tom Payne
f7cc8fa738 Remove ol.TileRange.clone 2013-03-25 11:33:06 +01:00
Frederic Junod
415e7a6dd4 Rename TileJSONOptions.uri to TileJSONOptions.url 2013-03-25 10:17:37 +01:00
Tom Payne
65e6ed3485 Rename getTileZXY to getTile 2013-03-25 10:10:03 +01:00
ahocevar
560f645384 Merge pull request #420 from ahocevar/icon-defer
Don't create tile if rendering needs to be deferred. r=@bartvde
2013-03-25 02:04:50 -07:00
Tom Payne
69d06a6e18 Add comment about automatically generated files 2013-03-25 10:04:32 +01:00
Tom Payne
096d48b4e8 Rename AnchoredElement to Overlay 2013-03-24 20:30:12 +01:00
Tom Payne
25e1211621 Merge pull request #430 from twpayne/fix-bing-maps-scope
Fix use of this in ol.source.BingMaps
2013-03-24 11:52:50 -07:00
Tom Payne
e62178759c Fix use of this in ol.source.BingMaps 2013-03-24 19:26:34 +01:00
Tom Payne
685f2b6f5f Make time-sensitive test less sensitive 2013-03-24 16:14:04 +01:00
Tom Payne
3a4ef83e79 Tidy up ol.webgl namespace 2013-03-24 15:51:09 +01:00
Tom Payne
dfb631a08f Replace getTile with getTileZXY
This massively reduces the number of temporary ol.TileCoord objects.

Previously an ol.TileCoord object was generated for every potentially
visible tile at the current zoom level and lower, every frame.  This
commit eliminates all of those.  Now new ol.TileCoord objects are only
allocated when a new tile is created.
2013-03-24 15:24:49 +01:00
Tom Payne
247fc8f031 Make reverseIntersection argument mandatory 2013-03-24 13:59:35 +01:00
Tom Payne
aeeaa79393 Avoid creating ol.Coordinate objects to call getTileCoordForCoordAndResolution_ 2013-03-24 13:56:23 +01:00
Tom Payne
e023e6fa2f Avoid creating extra ol.Size object in getPixelBoundsForTileCoordAndResolution 2013-03-24 13:49:47 +01:00
Tom Payne
5771057ae1 Reuse ol.TileRange object in forEachTileCoordParentTileRange 2013-03-24 13:46:23 +01:00
Tom Payne
731fcd3d17 Move shader support code into ol.webgl 2013-03-23 18:29:26 +01:00
Tom Payne
4ec8bf2360 Configure Travis to build shaders with glsl-unit 2013-03-23 18:20:34 +01:00
Tom Payne
711e4be19e Use glsl-unit in WebGL tile layer renderer 2013-03-23 17:47:02 +01:00
Tom Payne
7300051b69 Use glsl-unit in WebGL map renderer 2013-03-23 17:46:38 +01:00
Tom Payne
c48df12a33 Add infrastructure for glsl-unit 2013-03-23 17:45:44 +01:00
Tom Payne
3fbf7b8c20 Merge pull request #357 from twpayne/load-low-resolution-tiles
Load low resolution tiles
2013-03-23 06:00:45 -07:00
Tom Payne
cb1b1b8883 Merge pull request #418 from twpayne/webgl-core-improvements
WebGL core improvements
2013-03-23 05:55:23 -07:00
Tim Schaub
e2d200882a Merge pull request #422 from tschaub/stop-ignoring-global-leaks
Stop ignoring global leaks
2013-03-23 05:34:20 -07:00
Tim Schaub
d9ab545985 Stop ignoring global leaks
The `goog.dom.ViewportSizeMonitor` (used in map.js) creates a global leak by setting `goog.UID_PROPERTY_` on the monitored window.  In order to test that we don't have other global leaks, we preemptively set the property so Mocha can compare the global before and after our tests.
2013-03-23 05:50:54 -06:00
Tim Schaub
53fc6f3989 Merge pull request #421 from tschaub/global-leak
Fix global leak in WebGL image layer test
2013-03-23 03:59:45 -07:00
Tim Schaub
ff28c0b793 Fix global leak in WebGL image layer test 2013-03-23 04:38:12 -06:00
ahocevar
28f29e9d40 Don't create tile if rendering needs to be deferred
Rendering vector tiles with mixed geometry types does not work
as expected, because the tile is created without the geometries
that need another rendering pass because of missing icons. This
was discovered by @bartvde when working on the KML parser, where
mixed geometry types are common.

This change fixes the issue by breaking out from rendering
entirely when renderFeaturesByGeometryType returns a deferred
state. In addition, there was a related bug because icons are
added to the cache regardless of its loaded state. This is also
fixed now.
2013-03-23 11:34:38 +01:00
Tom Payne
80df629319 Premptively load low resolution tiles 2013-03-22 21:02:09 +01:00
Tom Payne
e3abe376f1 Remove ol.source.TileSource.useLowResolutionTiles 2013-03-22 21:02:06 +01:00
Tom Payne
24452b0bcb Use operators instead of Math.max/min 2013-03-22 19:27:52 +01:00
Tom Payne
876fea2fb7 Rename shader variables to match CSS specification 2013-03-22 18:02:31 +01:00
Tom Payne
b7184641b0 Use shorter module name and clean up requires 2013-03-22 17:58:15 +01:00
Tom Payne
72437ff57b Use more compact constants 2013-03-22 17:33:19 +01:00
Tom Payne
69370ce629 Use ol.structs.Buffer.getUsage 2013-03-22 17:33:19 +01:00
Tom Payne
35df0693e0 Add usage to ol.structs.Buffer 2013-03-22 17:33:19 +01:00
Tom Payne
705b71ae2a Track buffer dirty state by map 2013-03-22 17:33:19 +01:00
Tom Payne
ba0e7ae89c Allow a ol.structs.Buffer to update multiple dirty sets 2013-03-22 17:33:19 +01:00
Tom Payne
4ee73bc02f Add ol.structs.IntegerSet.intersectsRange 2013-03-22 17:33:13 +01:00
Tom Payne
35ee45cefc Use local variable for texCoordMatrix 2013-03-22 17:25:58 +01:00
Tom Payne
66efba8824 Promote projectionMatrix and texCoordMatrix into base class 2013-03-22 17:25:53 +01:00
Tom Payne
cc41d720fa Manage buffers in WebGL map renderer 2013-03-22 17:25:47 +01:00
Tom Payne
ecd5158012 Add ol.renderer.webgl.Layer.getWebGLMapRenderer
This improves the type checking.
2013-03-22 17:25:42 +01:00
Tom Payne
f770be297d Use ol.math.roundUpToPowerOfTwo 2013-03-22 17:25:36 +01:00
Tom Payne
57abbddf50 Add ol.math.roundUpToPowerOfTwo 2013-03-22 17:25:31 +01:00
Tom Payne
6c32170a08 Promote texture and framebuffer management into base class 2013-03-22 17:25:27 +01:00
Tom Payne
657f58005e Remove unused function 2013-03-22 17:24:26 +01:00
Tom Payne
69f92615b1 Add missing variable declaration 2013-03-22 17:24:03 +01:00
Tom Payne
c04e9c8870 Add ol.Rectangle.extendXY 2013-03-22 17:23:58 +01:00
Tom Payne
483375ca42 Add ol.Extent.createEmptyExtent 2013-03-22 17:23:50 +01:00
Tom Payne
5186fa44f5 Add ol.Rectangle.isEmpty 2013-03-22 17:23:44 +01:00
Tom Payne
0488612449 Allow rectangles to be empty 2013-03-22 17:23:38 +01:00
Tom Payne
5192c5e64a Reverse order of arguments to set and s/index/offset/ 2013-03-22 17:23:30 +01:00
Tom Payne
713ad2cfb7 Replace unused entries with NaNs 2013-03-22 17:23:25 +01:00
Tom Payne
5169161d93 Extend equalArray to consider NaNs to be equal 2013-03-22 17:23:20 +01:00
Tom Payne
6ab5cfae8c Add ol.structs.IntegerSet.toString 2013-03-22 17:23:15 +01:00
Tom Payne
9047e98889 Add initial ol.structs.Buffer 2013-03-22 17:23:08 +01:00
Tom Payne
1833ec15e2 Refactor ol.structs.IntegerSet to use a packed array 2013-03-22 17:23:03 +01:00
Tom Payne
070b80c28d Add ol.structs.IntegerSet 2013-03-22 17:22:57 +01:00
Éric Lemoine
a12d10e912 Merge pull request #409 from elemoine/tilequeue
Tile renderers needn't listen for tile change
2013-03-22 09:17:46 -07:00
Tom Payne
f4dea053af Merge pull request #417 from twpayne/clean-up-side-by-side-example
Clean up side-by-side example
2013-03-22 07:04:43 -07:00
Tom Payne
422ed4bd43 Clean up side-by-side example 2013-03-22 14:39:17 +01:00
Tom Payne
b0989af9d1 Merge pull request #416 from twpayne/numeric-constant-clean-ups
Use Infinity instead of Number.POSITIVE_INFINITY
2013-03-22 05:05:22 -07:00
Tom Payne
8b5367c947 Use Infinity instead of Number.POSITIVE_INFINITY 2013-03-22 11:34:44 +01:00
ahocevar
9e1b37ada3 Merge pull request #415 from ahocevar/jsdoc-pegged
Use JSDoc master again. r=@elemoine
2013-03-22 03:14:13 -07:00
Éric Lemoine
6d1fff688e Update README and CONTRIBUTING
[ci skip]
2013-03-22 10:59:09 +01:00
ahocevar
77efd352ad Use JSDoc master again
... so we're able to always give the JSDoc project instant
feedback on how it works with code that uses the Closure
library.
2013-03-22 10:50:15 +01:00
Bruno Binet
3d87ecd858 Merge pull request #354 from bbinet/fix-wmts-from-cap-example
wmts-from-capabilities example doesn't work because of referer check
2013-03-22 01:51:46 -07:00
ahocevar
5736765cb7 Merge pull request #414 from hegemonic/master
Remove descriptions from JSDoc/Closure Compiler type tags
2013-03-21 15:32:35 -07:00
Jeff Williams
97879a3572 remove descriptions from JSDoc type tags 2013-03-21 09:54:52 -07:00
Bruno Binet
e9583617f7 Merge pull request #413 from bbinet/pep8-work
Pep8ify build.py (Closes #371)
2013-03-21 09:14:43 -07:00
Bruno Binet
f395064721 Pep8ify build.py
Thanks a lot autopep8!
2013-03-21 16:38:48 +01:00
Marc Jansen
2678c07caf Merge pull request #412 from marcjansen/submittable
Keep the search-filter on submit in example index.
2013-03-21 07:37:59 -07:00
Marc Jansen
10ef5eff8b Keep the search-filter on submit in example index.
When one would hit `ENTER` after filtering the list of examples, the form would
be submitted and the filter would be gone after the page reload. By giving the
main search field the appropriate `name`-attribute, this is being solved.
2013-03-21 15:32:06 +01:00
Bruno Binet
c11193f71d Use Vienna wmts in wmts-from-capabilities example
vienna wmts capabilities url is:
http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml
2013-03-21 14:03:09 +01:00
Bruno Binet
7fec1f5208 ArcGis use camelcase 'Style', not lowercase 'style'
The OGC documentation is not so clear if we should use style or Style.
2013-03-21 11:15:35 +01:00
Bruno Binet
932c284a2e ArcGis use RESTful
The OGC documentation is not clear if we should use REST or RESTful.
2013-03-21 11:15:35 +01:00
Éric Lemoine
ef42daedd4 Merge pull request #407 from elemoine/crossorigin
crossOrigin defaults to null
2013-03-21 02:59:05 -07:00
Éric Lemoine
7949cdaa82 crossOrigin defaults to null 2013-03-21 10:37:31 +01:00
Éric Lemoine
1d575309da Tile renderers needn't listen for tile change 2013-03-21 10:29:01 +01:00
Bruno Binet
7038ac0c81 Merge pull request #356 from bbinet/issue-356
Can't parse http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml
2013-03-21 02:10:56 -07:00
Frédéric Junod
92a34824e6 Merge pull request #411 from fredj/apidoc
Minor jsdoc fix
2013-03-21 01:27:27 -07:00
Frédéric Junod
c418beb350 Merge pull request #403 from fredj/export-map
Add png output
2013-03-21 01:24:11 -07:00
Frederic Junod
8296a1f134 Minor jsdoc fix 2013-03-21 09:19:23 +01:00
Éric Lemoine
01b97208d8 Merge pull request #408 from elemoine/jsdoc311
Use jsdoc v3.1.1
2013-03-20 15:52:57 -07:00
Tim Schaub
f74940fe2b Using a server that is not down (closes #406) 2013-03-20 16:00:26 -06:00
Éric Lemoine
a3d10e4234 Use jsdoc v3.1.1 2013-03-20 22:36:13 +01:00
Éric Lemoine
0ae47403ee Merge pull request #398 from elemoine/nestedoptions
Support nested options objects
2013-03-20 10:45:37 -07:00
Éric Lemoine
0b403c767a Fix goog.provide for object literals 2013-03-20 18:43:02 +01:00
Éric Lemoine
02d8d9e0bc Support nested options objects
This commit extends the generated Export constructors to support nested options objects. For example, this is now supported:

@exportObjectLiteralProperty ol.MapOptions.view ol.View|ol.View2DOptions|undefined

This specifies that the "view" property in the map options can reference an ol.View instance, an ol.View2DOptions literal object, or undefined. If the "view" property references an ol.View2DOptions literal object the ol.MapExport constructor will create an ol.View2DExport instance, and pass it to the parent constructor, ol.Map. In this way, extern types never cross the external/internal boundary. In other words, translations from non-renamed to renamed objects remain confined to the generated Export constructors.
2013-03-20 18:43:02 +01:00
Frederic Junod
f2b69a2a13 Add png output 2013-03-20 17:00:49 +01:00
Bruno Binet
641e492c95 Update social links in wmts-capabilities example 2013-03-20 15:25:45 +01:00
Bruno Binet
b0c4977811 Add exportSymbol for ol.projection.addCommonProjections 2013-03-20 14:39:14 +01:00
Bruno Binet
30a2b4187c The same projection can be added more than once
So that addCommonProjections can be safely called in our examples.
2013-03-20 14:39:14 +01:00
Bruno Binet
48e142d3f0 Fix wmts-capabilities example
the parsing of the wmts getCapabilities document require proj4js.

Also initialize common ol3 projections with ol.projection.addCommonProjections
so that it won't try to get EPSG:3857 from proj4js.
2013-03-20 14:39:14 +01:00
Bruno Binet
e6450dc313 Add new equivalent projections
for both EPSG:4326 and EPSG:3857.
2013-03-20 14:39:14 +01:00
Bruno Binet
c1db1cd491 Use correct namespaceURI for WGS84BoundingBox reader
(closes #356)
2013-03-20 14:39:14 +01:00
Frederic Junod
2eb5454ac4 Add wmts-capabilities example 2013-03-20 14:39:13 +01:00
ahocevar
baa5500843 Merge pull request #402 from ahocevar/more-context
More convenient url functions for WMS. r=@elemoine,@twpayne
2013-03-20 06:22:36 -07:00
ahocevar
5719160155 Less context
This change removes all changes that were anticipated here for
WMS GetFeatureInfo handling, including the IWMS interface and
the goog.provide for 'ol.tilegrid'. I'll create a separate pull
request for WMS GetFeatureInfo eventually, taking into account
the suggestions from the discussion in #402.
2013-03-20 13:41:36 +01:00
Tom Payne
514d513ca9 Merge pull request #401 from twpayne/coordinate-3d
Optionally extend ol.Coordinate to the third dimension
2013-03-20 05:05:14 -07:00
Tom Payne
7755555cc3 Use NaN as default value for Z 2013-03-20 12:02:40 +01:00
ahocevar
57fdd78a19 Fixing requires 2013-03-20 10:55:58 +01:00
ahocevar
46ca98e484 More context for url functions
With this change, url functions are called in the scope of the
source they are configured for. This allows us to simplify the
url function generation for WMS, using a more generic
createFromParamsFunction factory, and the source's new params
member.

Note that there is also a new url member for WMS sources. This
is the WMS base url (the first one in case there is an array of
urls for faster tile access). This can be used for accessing
other WMS services (especially GetFeatureInfo).
2013-03-20 10:45:54 +01:00
Tom Payne
d3ea5236ef Optionally extend ol.Coordinate to the third dimension
We continue to inherit from goog.math.Vec2 instead of goog.math.Vec3
because goog.math.Vec2 better represents a position in space, with
appropriate functionality, whereas goog.math.Vec3 represents a direction
and magnitude.
2013-03-19 22:10:21 +01:00
Tom Payne
4fe67f09c0 Merge pull request #399 from twpayne/test-typos
Fix some trivial typos
2013-03-19 13:35:25 -07:00
Tom Payne
a1a2ab415f Fix some trivial typos 2013-03-19 21:34:31 +01:00
Tim Schaub
26aefc1f63 The _blank target is an antipattern
The examples all have links back to the index page.  People know how to open links in new tabs/windows when they want to.
2013-03-19 12:18:08 -06:00
Tim Schaub
462659a9fc Use index.html instead of example-list.html
The original decision to avoid index.html was because it only works with a build step.  Since we've all accepted a build step, the more sensible name is index.html.  Without this change, every hosted example has a link to http://openlayers.github.com/ol3/master/examples/example-list.html which 404s.
2013-03-19 12:17:00 -06:00
Tim Schaub
374e436872 Picking a color that shows up more clearly on bluemarble 2013-03-19 11:54:50 -06:00
Tim Schaub
86eb65cc13 Merge pull request #395 from tschaub/no-test-markup
Create test specific markup in the individual tests as needed instead of relying on a common dom structure for all tests.
2013-03-19 09:18:41 -07:00
Tim Schaub
c07be93d25 Merge pull request #325 from tschaub/dirty-animation
Render new vector tiles after animation completes.  This was previously happening during an animated zoom, but not an animated pan.
2013-03-19 09:17:05 -07:00
Tim Schaub
825a6d65e8 Properly maintain dirty state during animation
The previous logic assumed that if there were any tiles to render, the dirty state should be false.  The correct logic is to say that if we don't render during animation, dirty is true.
2013-03-19 07:27:59 -06:00
Tim Schaub
251d6fc488 Example touch-ups
The strokeStyle property is now spelled strokeColor.  There is no sense in setting opacity to 1.5.  Moving map initialization up.
2013-03-19 06:38:50 -06:00
Tom Payne
d48a9407f2 Merge pull request #382 from twpayne/move-files
Use more consistent directory structure
2013-03-19 04:52:36 -07:00
Tom Payne
6cc4cb33d0 Use more consistent directory structure 2013-03-19 12:03:31 +01:00
Tim Schaub
956c31b59d Lint in build.py 2013-03-18 23:40:40 -06:00
Tim Schaub
d9380d0260 Copy social links script for hosted examples 2013-03-18 23:35:26 -06:00
Tim Schaub
27ccd13e48 Create test specific markup in tests
Instead of relying on a shared dom structure, the tests should create (and destroy) elements as needed.
2013-03-18 22:53:04 -06:00
Tim Schaub
fad57a0fe5 Clarifying which var is accesed
This test creates its own zoomslider and doesn't access the one from the closure.
2013-03-18 21:52:01 -06:00
Tim Schaub
928457e174 Correcting test semantics
Despite what the test comment says, the orientation of this slider is horizontal.
2013-03-18 21:50:00 -06:00
Tim Schaub
0fc7ba5bfb Merge pull request #393 from tschaub/social
Make social links more social
2013-03-18 17:17:54 -07:00
Tim Schaub
6b5e251279 Fix global leak
A bit curious that the linter didn't catch this.  My test runner fails with it.
2013-03-18 17:54:36 -06:00
Tom Payne
41eedfaa06 Merge pull request #394 from Turbo87/test-improvements
Mocha improvements
2013-03-18 14:11:04 -07:00
Tobias Bieniek
1d5389a45d test: Deactivate mocha bail option
We don't want mocha to quit on the first failing test. It should continue
and see what other tests are failing.
2013-03-18 20:50:04 +01:00
Tim Schaub
1ac77b1a6f Make social links more social 2013-03-18 13:27:47 -06:00
Tim Schaub
4cec0546c8 Range from -π to π in rotation inputs (see #392) 2013-03-18 12:10:44 -06:00
ahocevar
114d4c6f92 Merge pull request #388 from ahocevar/dblclick
Do not recenter map and zoom on repeated clicks on +/-. r=@elemoine
2013-03-18 11:03:26 -07:00
Frédéric Junod
b5461f8b6b Merge pull request #389 from fredj/dom-object
Add ol.dom.Input
2013-03-18 09:04:33 -07:00
Frederic Junod
7ee9a4c8a3 Add ol.dom.Input 2013-03-18 16:24:31 +01:00
Bruno Binet
07fb27db2c Merge pull request #370 from bbinet/fix-missing-requires
Fix check for missing goog.require directives
2013-03-18 08:16:43 -07:00
ahocevar
f765982654 Do not recenter map and zoom on repeated clicks on +/-
Multiple fast clicks get interpreted as DBLCLICK by the browser,
so it makes sense to stop propagation of DBLCLICK events when
they happen on elements on the overlay container. This is also
a good change because DBLCLICK might have a meaning on other map
overlays as well.
2013-03-18 09:19:10 +01:00
Éric Lemoine
40f2dc6322 Merge pull request #385 from elemoine/385
Rule-based styling does not work in hosted style-rules example
2013-03-17 22:23:15 -07:00
Éric Lemoine
39d55bcf45 Merge pull request #387 from elemoine/expressionexports
Move expression.exports to proper place
2013-03-17 22:22:29 -07:00
Éric Lemoine
0949cb29aa Move expression.exports to proper place 2013-03-17 23:12:43 +01:00
Éric Lemoine
b7fa22c4d4 Add type VectorLayerOptions 2013-03-17 22:33:02 +01:00
Éric Lemoine
b381b28169 Merge pull request #381 from elemoine/countriesjson
The vector-layer example does not work when hosted
2013-03-17 01:36:35 -07:00
Éric Lemoine
392735c823 Merge pull request #384 from elemoine/optional
Exports fixes
2013-03-15 14:26:05 -07:00
Éric Lemoine
1f641c5933 Make the generated Export classes accept undefined
We have constructors, like ol.View2D and ol.control.Attribution, whose "options" argument is optional (opt_options). But currently, we cannot do "new ol.View2D()" in uncompiled code that uses an ol3 build compiled in advanced mode. This commit fixes that by changing the generated Export constructors.
2013-03-15 18:01:53 +01:00
Éric Lemoine
6eaad6a837 Source option "projection" is a ProjectionLike 2013-03-15 17:58:54 +01:00
Éric Lemoine
f86dfc3212 Remove ol.source.SourceOptions typedef
The ol.source.SourceOptions type is already declared in objectliteral.exports, so it should not be declared in the ol/source/source.js file.
2013-03-15 17:56:14 +01:00
Tom Payne
0a9cf1230e Merge pull request #374 from twpayne/functionality-not-form
You can't extend expect.js outside expect.js
2013-03-15 07:55:45 -07:00
Éric Lemoine
51625b8008 Make vector-layer example ignore XHR errors
This is a workaround for our check-example.js PhantomJS script to work with this example. Without this check-example.js fails because xhr.status is 0. I tried to give the explicit file:/// scheme as indicated in https://groups.google.com/d/msg/phantomjs/wFGme0pE-Tk/WUjU5s-27NwJ, but that didn't work for me.
2013-03-15 15:46:40 +01:00
Tom Payne
af6de5582a Add comment to highlight use of modified expect.js
Hat tip @marcjansen
2013-03-15 15:29:16 +01:00
Éric Lemoine
a34adc6f62 Add countries.json to examples data dir
The examples cannot use files located in the test dir, or they won't work when hosted as GitHub pages.
2013-03-15 14:25:05 +01:00
Marc Jansen
6068895a44 Merge pull request #379 from marcjansen/progressbar
Restrict width of progressbar in example-screenshot.js
2013-03-15 04:12:51 -07:00
Marc Jansen
a8457cb736 Merge pull request #378 from marcjansen/examples-file-protocol
Add fallback host when examples are accessed through file:-protocol.
2013-03-15 03:50:48 -07:00
Marc Jansen
92a358967f Restrict progressbar to fixed width.
As more and more examples will be processed with this script, the
progresbar would grow way too long. This commit makes the width of
the bar fixed. Every character in the bar now equals 5% progress,
regardless of the number of examples.
2013-03-15 11:43:50 +01:00
Marc Jansen
24d3c903fe Reformatted and gjslinted example-screenshot.js. 2013-03-15 11:40:55 +01:00
Marc Jansen
3860f806d1 Merge pull request #377 from marcjansen/use-css-constant
Use CSS class constant in zoomslider.
2013-03-15 03:06:43 -07:00
Marc Jansen
2641a1135f Add fallback when examples are opened w/ file://.
When opening an example through the `file:`-protocol, e.g.
`file:///ol3/examples/full-screen.html` our `loader.js` would inject
a `<script>` tag with a `src` pointing to an illegal URL
`http://:9810/compile?mode=ADVANCED&id=full-screen`.

This changes the respective logic, so that in the case that we are accessed
through the `file:`-protocol, we fallback to using `localhost` as hostname
for the plovr-compiler.

The examples that do not use XHR (like e.g. `wms-capabilities.html`) now
work as expected when accessed through `file:`-protocol.
2013-03-15 10:29:01 +01:00
Marc Jansen
8692c42318 Merge pull request #376 from marcjansen/singular-plural
Use correct singular/plural of noun.
2013-03-15 02:03:49 -07:00
Marc Jansen
250e17561a Use CSS class constant in zoomslider. 2013-03-15 10:02:12 +01:00
Marc Jansen
b43f25971b Use correct singular/plural of noun. 2013-03-15 09:35:33 +01:00
Tom Payne
c9f43b4da7 Move equalArray into expect.js 2013-03-15 01:39:11 +01:00
Tom Payne
79c77a6369 Move intersect into expect.js 2013-03-15 01:39:11 +01:00
Tom Payne
7c7c4df3fc Move called into expect.js 2013-03-15 01:17:28 +01:00
Tom Payne
62011dab28 Move roughlyEqual into expect.js 2013-03-15 01:17:28 +01:00
Tom Payne
bddaecbe69 Make it clear that ol3's expect.js is different 2013-03-14 23:33:58 +01:00
ahocevar
31e59d3a8b Merge pull request #373 from ahocevar/origin
Fixing origin for default tile grid. r=@twpayne,@elemoine
2013-03-14 11:47:06 -07:00
ahocevar
e9d86fdfdc Fixing origin for default tile grid
We count tiles from bottom to top, so we want the origin in the
bottom left corner, not the top left corner.
2013-03-14 18:27:18 +01:00
Frédéric Junod
b4317a8f9c Merge pull request #372 from fredj/typecast
Fix typecast
2013-03-14 09:42:46 -07:00
Frederic Junod
bce9e9d0de Fix typecast
Fix JSC_MISPLACED_TYPE_ANNOTATION warnings with the plovr 2013 release
candidate (http://plovr.com/plovr-2013-rc.jar)
2013-03-14 15:59:21 +01:00
Tom Payne
1d002dd4ae Merge pull request #368 from twpayne/equalarray
Add array value equality test
2013-03-14 07:42:40 -07:00
Bruno Binet
28155a4147 Fix check for missing goog.require directives
Take this example:
```
goog.require('ol.projection.addCommonProjections');

ol.projection.addCommonProjections();
```

Without this patch, the build_check_requires_timestamp target would report
that ``ol.projection`` is missing.
This is because ``ol.projection.addCommonProjections();`` would match both
``ol.projection.addCommonProjections and ``ol.projection`` provide
directives.
2013-03-14 15:22:00 +01:00
Bruno Binet
68714e73c3 Merge pull request #369 from bbinet/fix-unusedrequires
Remove unused goog.require directives
2013-03-14 07:21:28 -07:00
Bruno Binet
6cf20ef82f Remove unused goog.require directives
See #367.
2013-03-14 14:57:21 +01:00
Tom Payne
7222464426 Don't use goog.array in ol.Collection tests 2013-03-14 14:50:23 +01:00
Tom Payne
d7b13ab09f Add test for array equality
Hilariously, expect.js does not have one.
2013-03-14 14:49:43 +01:00
Éric Lemoine
4b18d3d89a Merge pull request #367 from elemoine/ratio
Make ratio configurable in WMS single image
2013-03-14 06:37:49 -07:00
Cédric Moullet
8532bc5a4d Make ratio configurable in WMS single image 2013-03-14 14:29:51 +01:00
Éric Lemoine
8ca763cdbd Merge pull request #330 from cedricmoullet/wmscustom
Add single image WMS with custom projection example
2013-03-14 06:21:42 -07:00
Éric Lemoine
453877455f Update CONTRIBUTING.md 2013-03-14 14:20:47 +01:00
Éric Lemoine
a924103335 Update CONTRIBUTING.md 2013-03-14 14:20:30 +01:00
Éric Lemoine
38f1af6204 Merge pull request #366 from elemoine/347
Add ScaleLine control to wms-custom-proj example
2013-03-14 06:15:50 -07:00
Cédric Moullet
d66e67966d Add ScaleLine control to wms-custom-proj example
This requires using Proj4js, and configuring it with an extent.
2013-03-14 14:01:29 +01:00
Bruno Binet
81089b2199 Remove unused goog.require directives 2013-03-14 12:39:51 +01:00
Bruno Binet
15ce80f42e Merge pull request #364 from bbinet/fix-check-requires
Fix check for unused goog.require directives
2013-03-14 04:29:41 -07:00
Marc Jansen
88dd98af8b Merge pull request #345 from marcjansen/zoomslider-own-ui-2
Add a zoomslider control. (r=@twpayne,@elemoine,@fredj)
2013-03-14 04:06:56 -07:00
Bruno Binet
9b1c389c80 Remove unused goog.require directives 2013-03-14 11:39:43 +01:00
Marc Jansen
5059fe0be7 Adjust test syntax. 2013-03-14 11:31:58 +01:00
Bruno Binet
1eabd7f4e6 Fix check for unused goog.require directives 2013-03-14 11:30:05 +01:00
Marc Jansen
1040a082c1 Remove CSS workarounds as suggested by @fredj. 2013-03-14 09:37:36 +01:00
Marc Jansen
9798eb5fa8 Don't use non-exported method in example. 2013-03-14 09:37:36 +01:00
Marc Jansen
e872a49beb Use getContentBoxSize() for slider initialisation.
Initial note to revisit this came from @twpayne; thanks.
2013-03-14 09:37:36 +01:00
Marc Jansen
94d7379ba3 Correct API documentation. 2013-03-14 09:37:35 +01:00
Marc Jansen
220c7bd6f8 More specific argument type of callback method. 2013-03-14 09:37:35 +01:00
Marc Jansen
bc07722816 Unregister previous event listeners, if any.
Thanks for spotting this, @twpayne.
2013-03-14 09:37:35 +01:00
Marc Jansen
d77a8b0a1d Add an assertion to the dragchange handler.
This ensures that the result of resolution calculation stays inside of the
allowed bounds.
2013-03-14 09:37:35 +01:00
Marc Jansen
ce67625b20 Use OSM resolutions as fallback resolutions.
Hat tip to @twpayne for suggesting this change in the defaults.
2013-03-14 09:37:35 +01:00
Marc Jansen
f496471273 Simplify example and let it use real resolutions.
Thanks to @twpayne for the suggestion.
2013-03-14 09:37:35 +01:00
Marc Jansen
8bf71ebb3a Add a zoomslider control. 2013-03-14 09:37:35 +01:00
Éric Lemoine
ac86cc1058 Merge pull request #362 from Turbo87/test-improvements
Test improvements
2013-03-13 10:18:00 -07:00
Bruno Binet
7d675b73b4 Merge pull request #361 from bbinet/factorize-expandurl-code
Factorize code that expand a template url into multiples urls
2013-03-13 09:47:17 -07:00
Tobias Bieniek
47261124fc test: Added expect(spy).to.be.called() syntactic sugar 2013-03-13 17:18:23 +01:00
Tobias Bieniek
93577bd335 test: Moved intersectsWith() testing function into test-extensions.js 2013-03-13 17:11:21 +01:00
Marc Jansen
e1bfc0c9dd Merge pull request #355 from marcjansen/screenshot
Add a screenshot script for our examples. (r=@twpayne,@elemoine)
2013-03-13 08:56:32 -07:00
Bruno Binet
317676a68f Homogenize wmts tileUrlFunction relative to other sources 2013-03-13 16:52:54 +01:00
Bruno Binet
5eaf4baaa4 Try to expand single url for TiledWMS source 2013-03-13 16:52:54 +01:00
Bruno Binet
875ead58ab Remove expandUrl duplicated code from createFromTemplate
and make use of expandUrl function instead.
2013-03-13 16:52:54 +01:00
Bruno Binet
54dfca3419 Move factorizable code in ol.TileUrlFunction.expandUrl 2013-03-13 16:48:22 +01:00
Marc Jansen
2b4545e221 Ignore fewer files and clip correctly. 2013-03-13 16:09:05 +01:00
Marc Jansen
3a863ddf3e Add a screenshot script for our examples.
This script is supposed to be executed via phantomjs. It will generate
screenshots of the html files in the directory specified by a commandline
option when these files are served through a webserver which can also be
specified. The screenshots will be saved in the passed directory.

Example usage:

    user@host:~/ol3/bin $ phantomjs example-screenshot.js \
                          http://localhost:8000/ol3/examples/ \
                          ../examples/

The above command will generate `*html.png` files in `tools/` for all html files
that are served through `http://localhost:8000/ol3/examples/`.

So if there is a file `my-humpty-example.html` inside of the relative folder
`../examples/` which is being served through the webserver so that
`http://localhost:8000/ol3/examples/my-humpty-example.html` is a valid and
reachable URL, this script will generate a screenshot and store it as
`../examples/my-humpty-example.html.png`.

The query string `?mode=raw` will be appended to the generated URL.

Known limitations:

As phantomjs doesn't support WebGL (see e.g.
https://github.com/ariya/phantomjs/wiki/Supported-Web-Standards and
http://code.google.com/p/phantomjs/issues/detail?id=273) This won't render
OpenLayers maps rendered through the webglrenderer.

In parts based upon this gist: https://gist.github.com/crazy4groovy/3160121
2013-03-13 15:50:55 +01:00
Frédéric Junod
c4ab34e4a7 Merge pull request #349 from fredj/bing-getStyle
Add ol.source.BingMaps.getStyle function
2013-03-13 06:16:11 -07:00
Frederic Junod
02e6937db3 Add a basic layer selector in bing-maps example 2013-03-13 13:36:49 +01:00
Éric Lemoine
edc1bd513b Merge pull request #358 from Turbo87/mocha
Replaced jasmine testing framework by mocha, expect.js and sinon
2013-03-13 04:04:17 -07:00
ahocevar
6d8d21b2d5 Merge pull request #360 from ahocevar/demo_dot_opengeo_dot_org
Using a server that is not down. r=@elemoine
2013-03-13 02:01:38 -07:00
ahocevar
14d9ff3b81 Using a server that is not down
fix #353
2013-03-13 09:59:25 +01:00
Bruno Binet
19acefc6d9 Merge pull request #359 from bbinet/useTile-consistent
Be more consistent with useTile parent method
2013-03-13 01:50:54 -07:00
Tobias Bieniek
01f9037782 test: Fixed linter errors 2013-03-13 04:59:20 +01:00
Tobias Bieniek
2245396bda test: Updated README file 2013-03-13 04:55:30 +01:00
Tobias Bieniek
d5d8afc858 Converted "vector" branch unit tests to mocha, expect.js and sinon 2013-03-13 04:48:08 +01:00
Tobias Bieniek
8273d880d5 Merge remote-tracking branch 'origin/master' into mocha
Conflicts:
	test/jasmine-extensions.js
2013-03-13 04:46:16 +01:00
Tobias Bieniek
89ab68cde7 Replaced jasmine testing framework by mocha, expect.js and sinon
as discussed in #319
2013-03-13 04:32:43 +01:00
Bruno Binet
86c05b4d21 Be more consistent with useTile abstract method 2013-03-12 17:58:29 +01:00
ahocevar
76d1a0c30e Merge pull request #218 from openlayers/vector
Vector work. p=@tschaub,@ahocevar; r=@twpayne,@marcjansen,@bartvde
2013-03-12 09:26:46 -07:00
ahocevar
84154d7bb2 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-12 13:27:41 +01:00
Tom Payne
f75d3abf7d Merge pull request #297 from twpayne/fix-297
Canvas map is not immediately updated when layers are added or removed
2013-03-12 05:26:25 -07:00
Tom Payne
427c376fc6 Always render map when layers are added or removed 2013-03-12 12:57:22 +01:00
Marc Jansen
06f8d1356d Merge pull request #352 from marcjansen/unselectable-css-const
Use constant for CSS class 'ol-unselectable'.
2013-03-12 03:30:38 -07:00
Marc Jansen
5e5e4d110a Use constant for CSS class 'ol-unselectable'. 2013-03-12 10:34:49 +01:00
ahocevar
acd4f50f15 Making the linter happy 2013-03-12 10:23:38 +01:00
ahocevar
eeecd424bf Moving vector rendering to ol.renderer.canvas.VectorRenderer 2013-03-12 10:05:47 +01:00
ahocevar
bb8755eb68 Recovering from bad merge 2013-03-12 08:48:22 +01:00
ahocevar
15375df7ab Line was too long after previous change 2013-03-12 08:41:41 +01:00
ahocevar
fad036aa53 Merge branch 'master' of github.com:openlayers/ol3 into vector
Conflicts:
	src/objectliterals.exports
2013-03-12 08:39:16 +01:00
ahocevar
b20a2bae94 Moving RTreeNode_ into ol.structs package 2013-03-12 08:35:57 +01:00
ahocevar
f5b53740e6 Define map at the top 2013-03-12 08:28:24 +01:00
ahocevar
47e5b0475b Since #274 we don't need to create an ol.Collection explicitly 2013-03-12 08:24:31 +01:00
Tom Payne
a0b1d74bb5 Merge pull request #337 from Turbo87/polyline
Added ol.parser.polyline module
2013-03-11 13:55:04 -07:00
Tobias Bieniek
1172e58a50 polyline: Replaced "new Array()" by "[]" 2013-03-11 21:41:32 +01:00
Tobias Bieniek
0df5b4cad2 polyline: Improved decoding loops to be more robust 2013-03-11 20:32:25 +01:00
Tobias Bieniek
8330586ee2 test/polyline: Reset testing data manually in encodeFloats test 2013-03-11 20:32:22 +01:00
Tobias Bieniek
8b45637e72 test/polyline: Added missing brackets 2013-03-11 20:32:18 +01:00
Cédric Moullet
d9e1fdf13c Change the way the projection is managed and use ol.projection.configureProj4jsProjection 2013-03-11 20:25:29 +01:00
Tom Payne
f9c080a67d Merge pull request #346 from twpayne/single-map-in-canvas-tiles-example
Use a single map in the canvas tiles example
2013-03-11 09:29:32 -07:00
Tom Payne
2a5d07d929 Use a single map in the canvas tiles example 2013-03-11 17:07:27 +01:00
Tom Payne
8b5194da38 Merge pull request #338 from twpayne/snap-center-to-pixel2
Snap center to pixel
2013-03-11 08:41:28 -07:00
Bruno Binet
837aa7512b Merge pull request #342 from bbinet/wmts
Add WMTS support.
2013-03-11 08:05:25 -07:00
Bruno Binet
61603dacce WMTS from swisstopo now supports CORS headers 2013-03-11 15:47:42 +01:00
ahocevar
a66f26f839 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-11 15:21:01 +01:00
Bruno Binet
d14b1c57a9 Remove ImageLayer from wmts-from-capabilities example 2013-03-11 15:15:53 +01:00
Bruno Binet
8638f6d502 s/meters_per_unit/metersPerUnit/ 2013-03-11 15:05:53 +01:00
Tom Payne
a6395cd2f5 Merge pull request #312 from twpayne/speed-up-precommit
precommit target is too slow
2013-03-11 06:47:16 -07:00
Frédéric Junod
a441d9777d Merge pull request #315 from fredj/geolocation-example
Add Geolocation example
2013-03-11 06:44:44 -07:00
Tom Payne
58f1c929ac Merge pull request #324 from twpayne/fix-canvas-renderer-clear
Canvas renderer is not properly cleared
2013-03-11 05:08:54 -07:00
Tom Payne
f4a7d9386b Merge pull request #344 from twpayne/semi-transparent-example
Add semi-transparent layer example
2013-03-11 05:08:12 -07:00
Frederic Junod
de066e10a4 Add geolocation example 2013-03-11 12:54:26 +01:00
Frederic Junod
6d90a9987d Add (incomplete) bootstrap.js externs 2013-03-11 12:54:13 +01:00
Bruno Binet
9e370bf6af Implement ol.source.WMTS.optionsFromCapabilities
and remove related ol.source.WMTS.createFromCapabilities function.
2013-03-11 12:42:14 +01:00
Tom Payne
df6af7cafa Replace precommit with separate check and integration-test targets 2013-03-11 12:21:13 +01:00
Frédéric Junod
7be0203cbe Merge pull request #341 from fredj/jquery-examples
Add jquery 1.7.2 and adapt examples externs
2013-03-11 04:09:42 -07:00
Frédéric Junod
5a70221e4b Merge pull request #306 from fredj/geolocation
Activate / deactivate geolocation
2013-03-11 04:04:04 -07:00
Tom Payne
34803cf78b Add semi-transparent layer example 2013-03-11 12:00:58 +01:00
Tom Payne
2c6d20306f Merge pull request #343 from twpayne/clean-up-fixme-target
Clean up fixme target
2013-03-11 03:54:46 -07:00
Bruno Binet
6f83e50332 Load EPSG:21781 definition from cdnjs. 2013-03-11 11:48:06 +01:00
Bruno Binet
c67e67ee12 Single tileUrlFunction in createFromTileUrlFunctions
In that case, simply return the single tileUrlFunction.
2013-03-11 11:29:40 +01:00
Tom Payne
47f04f9e8b Merge pull request #334 from twpayne/rotation-example
Rotation example
2013-03-11 03:29:14 -07:00
Tom Payne
3934dbbcaf Clean up fixme target
Correct regular expression
Use single quotes consistently
Use format strings
Correct grammar
2013-03-11 10:48:32 +01:00
Bruno Binet
b4cbe0609a Add missing exports
so that wmts-from-capabilities example works.
2013-03-11 10:42:38 +01:00
Bruno Binet
14d5916e67 Add wmts-from-capabilities example
it demonstrates how to create a wmts source by retrieving its configuration
from a wmts getCapabilities.
2013-03-11 10:42:38 +01:00
Bruno Binet
13d0b36a08 Add a ol.source.WMTS.createFromCapabilities function
so that we can create a wmts source directly from a getCapabilities response
(parsed by the wmts parser)
2013-03-11 10:42:37 +01:00
Bruno Binet
dc440a6604 Ensure supportedCRS property won't be renamed
this property was renamed when using wmts parser when built with
ADVANCED_OPTIMIZATIONS
2013-03-11 10:42:37 +01:00
Bruno Binet
0f9f5a25ae Export methods methods for ol.Extent
so that wmts example work (it makes use of extent.getTopLeft() method)
2013-03-11 10:42:37 +01:00
Bruno Binet
56ffb6146d Add example for WMTS source 2013-03-11 10:42:37 +01:00
Bruno Binet
877ce3adcf Add a WMTS source 2013-03-11 10:42:37 +01:00
Bruno Binet
6d78a8340a Add a WMTS tilegrid 2013-03-11 10:42:37 +01:00
Frederic Junod
35ef1c82e6 Add jquery 1.7.2 and adapt examples externs
Add jquery and update the externs for the examples (code from @bartvde).
The lib is saved into the repository to be able to run the examples
and the check-examples target offline.
2013-03-11 09:56:02 +01:00
Frederic Junod
97867738f8 Add new tracking and tracking_options property 2013-03-11 09:02:52 +01:00
Éric Lemoine
5afd61cce6 Merge pull request #339 from elemoine/exports
Export fixes
2013-03-11 00:32:39 -07:00
Éric Lemoine
56f86ae512 Fix SingleImageWMS exports/externs 2013-03-11 08:31:32 +01:00
Éric Lemoine
cee2725afd Fix Stamen exports/externs 2013-03-11 08:31:32 +01:00
Éric Lemoine
0459733883 Fix StaticImage exports/externs 2013-03-11 08:31:32 +01:00
Éric Lemoine
f1949191b1 Fix TiledWMS exports/externs 2013-03-11 08:31:31 +01:00
Éric Lemoine
8121fda6fb Fix TileJSON exports/externs 2013-03-11 08:31:03 +01:00
Éric Lemoine
5ad6ca3aa1 Fix BingMaps exports/externs 2013-03-11 08:31:03 +01:00
Tobias Bieniek
5d492a22fa test/polyline: Fixed linter problems 2013-03-10 21:13:48 +01:00
Tobias Bieniek
5333d00173 test/polyline: Added encodedFlatPoints to testing data variables
DRY...
2013-03-10 21:07:23 +01:00
Tobias Bieniek
f793b69602 test/polyline: Reset testing data before each test
.. instead of using slice()
2013-03-10 21:05:32 +01:00
Tobias Bieniek
4b8a9aaa8f test/polyline: Renamed flat_points variable to flatPoints 2013-03-10 20:59:15 +01:00
Tobias Bieniek
8a34eaa4a4 polyline: Removed extra space in encodeFloats() function 2013-03-10 20:46:29 +01:00
Tobias Bieniek
6f08122398 polyline: Used new *Deltas() functions in *FlatCoordinates() 2013-03-10 20:45:12 +01:00
Tobias Bieniek
aef15947c8 polyline: Added encode/decodeDeltas() functions 2013-03-10 20:44:34 +01:00
Tobias Bieniek
02707401a3 polyline: Added encode/decodeFloats() functions 2013-03-10 20:04:54 +01:00
Tobias Bieniek
cbdaf1035d polyline: Added encode/decodeSignedIntegers() functions 2013-03-10 19:05:14 +01:00
Tobias Bieniek
78278798bb polyline: Added encode/decodeUnsignedIntegers() functions 2013-03-10 18:48:49 +01:00
Tobias Bieniek
ce619871c2 test/polyline: Added two more test cases for unsigned integers
Again taken from the official documentation at Google.
2013-03-10 17:00:37 +01:00
Tobias Bieniek
680f3386ce test/polyline: Added more test cases from official documentation
.. and marked those tests as such. URL of the "Encoded Polyline Algorithm Format" page is https://developers.google.com/maps/documentation/utilities/polylinealgorithm
2013-03-10 16:42:51 +01:00
Tobias Bieniek
395942fe8c polyline: Only declare i variable once
Javascript only has function-wide scoping...
2013-03-10 16:33:44 +01:00
Tobias Bieniek
8bf6627354 polyline: Renamed variables to camelCase convention 2013-03-10 16:28:29 +01:00
Tobias Bieniek
76fc372a14 polyline: Added missing parenthesis for one-line statements 2013-03-10 16:24:30 +01:00
Tom Payne
505c607ccb Use snapCenterToPixel in DOM renderer 2013-03-10 16:14:15 +01:00
Tom Payne
bceb27f4bb Use snapCenterToPixel in WebGL renderer 2013-03-10 16:14:15 +01:00
Tom Payne
c01068642b Use snapCenterToPixel in Canvas renderer 2013-03-10 16:14:01 +01:00
Tom Payne
06463471e1 Add ol.renderer.Layer.snapCenterToPixel 2013-03-10 15:51:08 +01:00
Tom Payne
3a1fcdae0f Optimize ol.Extent.getForView2DAndSize 2013-03-10 15:51:08 +01:00
Tom Payne
08d3120f08 Use ol.Extent.getForView2DAndSize 2013-03-10 15:51:08 +01:00
Tom Payne
ed787ba79c Add ol.Extent.getForView2DAndSize 2013-03-10 15:51:08 +01:00
Tom Payne
e8b4a29254 Fix typo in canvas tiles example 2013-03-10 15:49:46 +01:00
Tobias Bieniek
ea227419a3 polyline: Added encode/decodeFlatCoordinates() functions 2013-03-10 01:25:59 +01:00
Tobias Bieniek
04d764f4f3 polyline: Added encode/decodeFloat() functions 2013-03-09 23:17:29 +01:00
Tobias Bieniek
e802cc3d56 polyline: Added decodeSigned/UnsignedInteger() functions 2013-03-09 22:40:07 +01:00
Tobias Bieniek
36923d6688 Added basic ol.parser.polyline module
This module will contain the low-level functions for Google's "Encoded
Polyline" algorithm.
2013-03-09 22:19:59 +01:00
Tom Payne
65907a6005 Add rotation example 2013-03-09 21:51:09 +01:00
Tom Payne
3910ec0dbb Fix typo in WebGL map renderer 2013-03-09 21:50:10 +01:00
Éric Lemoine
a138b5a5a3 Merge pull request #332 from Turbo87/uppercase
Renamed authors.txt, license.txt and readme.md to uppercase variants
2013-03-09 12:07:16 -08:00
Tobias Bieniek
4f8ffbf2ce Added notes that "./build.py test" requires plovr to be running 2013-03-09 20:05:31 +01:00
Tobias Bieniek
65397eb732 test/README: Updated "make test" to "./build.py test" 2013-03-09 20:00:18 +01:00
Tobias Bieniek
f35e4cd319 test: Renamed readme.md to README.md
.. and updated link in main README.md

(Github supports relative links now AFAIK)
2013-03-09 19:04:58 +01:00
Tobias Bieniek
34ec58a8ad LICENSE: Fixed reference to AUTHORS file 2013-03-09 19:02:05 +01:00
Tobias Bieniek
d708a32094 Converted AUTHORS and LICENSE files to Markdown
.txt files are rendered by Github as plain monospace text. Markdown files
however are rendered with a more readable font and formatting.
2013-03-09 19:00:25 +01:00
Tobias Bieniek
ed9c2eebad Renamed authors.txt, license.txt and readme.md to uppercase variants
This sets the text files apart from the rest of the code files and seems
to be the standard for most projects
2013-03-09 18:47:53 +01:00
Cédric Moullet
0bf9f9a0a7 Fix reference and title according to @erilem comments. 2013-03-09 13:16:56 +01:00
Tom Payne
25fd391edd Merge pull request #329 from twpayne/animation-clean-ups
Animation clean ups
2013-03-09 04:02:29 -08:00
Cédric Moullet
eb6630c3f7 Add single image WMS with custom projection example 2013-03-09 07:50:56 +01:00
Tom Payne
4a7a5fe220 Sort properties alphabetically 2013-03-09 02:38:52 +01:00
Tom Payne
194edc7f26 Sort functions alphabetically 2013-03-09 02:19:35 +01:00
Tom Payne
9d950525bb Default to easing inAndOut for all animations 2013-03-09 02:15:32 +01:00
Tom Payne
77bd279160 Use ol.easing instead of goog.fx.easing 2013-03-09 02:03:59 +01:00
Tom Payne
e12458b32e Expose all goog.fx.easing functions in the ol.easing namespace 2013-03-09 02:02:19 +01:00
Tom Payne
2d7f848223 Merge pull request #321 from twpayne/prettier-hue-saturation-example
Make hue/saturation example prettier
2013-03-08 16:46:24 -08:00
Tom Payne
3981141999 Merge pull request #134 from twpayne/keyboard-interactions
Keyboard Pan interaction should animate
2013-03-08 16:32:34 -08:00
Tom Payne
fe3b8d862d Correct center setting, thanks @elemoine 2013-03-09 01:31:14 +01:00
ahocevar
06de786b98 Adding information about jsdoc3 dependency 2013-03-08 19:19:14 +01:00
ahocevar
b971fc1aae Bringing back the style-rules example
Features are now created programmatically as
GeoJSONFeatureCollection.
2013-03-08 16:26:18 +01:00
ahocevar
389b8d14d7 Support GeoJSON as parsed object
With this change, we can programmatically create
GeoJSONFeatureCollection objects programmatically, without
reading a GeoJSON file.
2013-03-08 16:25:23 +01:00
Tom Payne
2354207b47 Make hue/saturation example prettier 2013-03-08 15:13:26 +01:00
Tom Payne
b729f969a7 Add EMPTY tile state instead of using null for empty tiles 2013-03-08 14:41:14 +01:00
Tom Payne
0a13344668 Merge pull request #320 from twpayne/follow-mouse-position
Prioritize tile loading around mouse position
2013-03-08 04:15:49 -08:00
Tim Schaub
7f62b26c80 New example style 2013-03-07 23:48:23 -07:00
Tim Schaub
ee75c4b90e Use new projection getter 2013-03-07 23:48:10 -07:00
Tim Schaub
895bc4e76c The addFeatures method will be added back later
This needs to be made to take advantage of the shared vertices.
2013-03-07 23:47:41 -07:00
Tim Schaub
85a1599a1a Removing the style rules example for now
The addFeatures method on layer is going to go away temporarily (so all feature adding will take advantage of shared vertices structures).  Later we can accept feature arrays in parseFeatures and rename the method back to addFeatures.
2013-03-07 23:32:56 -07:00
Tim Schaub
4422e3e73b Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-07 23:10:06 -07:00
Tim Schaub
4918106a22 Make shared vertices structures accessible 2013-03-07 23:09:23 -07:00
Tim Schaub
faee18bae1 Use fillColor and strokeColor instead of fillStyle and strokeStyle
The color names are more intuitive.  And if we want to support pattern strokes or fills, we'll need additional proerties to represent other pattern properties.
2013-03-07 22:51:14 -07:00
Tim Schaub
5ce114c1b6 Style in example 2013-03-07 22:29:00 -07:00
Tim Schaub
77355ca634 Optional polygon stroke or fill 2013-03-07 22:28:39 -07:00
Tim Schaub
f93bf2ad77 Avoid filling/stroking parts of multi-polygons twice 2013-03-07 21:39:34 -07:00
Tom Payne
d571ef5804 Prioritize tile loading around mouse position 2013-03-08 01:04:35 +01:00
Tom Payne
47f1b8cb0a Cope with rotation in keyboard pan 2013-03-07 20:13:38 +01:00
Tom Payne
cd37031456 Animate keyboard pan 2013-03-07 20:00:31 +01:00
Tom Payne
3d37ba7666 Add ol.View2D.pan 2013-03-07 20:00:31 +01:00
Tom Payne
d4a5bfa015 Avoid creating an unecessary object 2013-03-07 19:39:24 +01:00
Tom Payne
af0bf21e8d Configure keyboard pan with an options object 2013-03-07 19:32:51 +01:00
Tom Payne
c46f1425a0 Make keyboard zoom delta configurable 2013-03-07 19:24:00 +01:00
Tim Schaub
db4e62477d Nicer caps and joins
As mentioned in the TODOs, caps and joins should be user configurable on the symbolizers.
2013-03-07 10:37:48 -07:00
Tim Schaub
b28a1efec6 Export GeoJSON parser 2013-03-07 10:26:15 -07:00
ahocevar
5af71a488a No need to continue rendering when we need to defer 2013-03-07 18:13:22 +01:00
Tim Schaub
5752a69d6b Adding addFeatures back as an API method temporarily
Eventually, parseFeatures and addFeatures should be collapsed.
2013-03-07 10:09:19 -07:00
ahocevar
f4a16e7f57 Collect features before rendering to the sketch canvas
This avoids features being rendered multiple times when they
cross tile borders. Currently this makes the style-rules.html
example extremely slow. Fix for that to come in my next commit.
2013-03-07 16:57:22 +01:00
ahocevar
f0039ee460 Additional index dimension for RTree; use RTree again
The RTree can easily maintain an additional index dimension,
by passing a type with each added item. Now instead of
maintaining an RTree for each geometry type, we have a single
RTree with a type filter. With this change, using the RTree
finally speeds up rendering as expected.
2013-03-07 14:36:09 +01:00
Bart van den Eijnden
1f510d893f Merge pull request #282 from bartvde/wms1_0_0
add WMS GetCapabilities 1.0.0 parser (=r@elemoine)
2013-03-07 05:06:13 -08:00
Tom Payne
1deeaa437c Merge pull request #272 from twpayne/projection-get
allow people to specify projection as a string
2013-03-07 04:59:00 -08:00
Bart van den Eijnden
d56f2bc7aa make Travis happy by adding comment to the constant in the test 2013-03-07 13:57:51 +01:00
Bart van den Eijnden
0dab671072 add WMS 1.0.0 parsing to false by default 2013-03-07 13:53:26 +01:00
Éric Lemoine
abf4d6bf09 Merge pull request #310 from elemoine/wms
NumberFormatException with GeoServer WMS
2013-03-07 04:46:06 -08:00
Tom Payne
21d34f1cc8 Rename projection functions for a friendlier API
The following functions are renamed:

getTransform -> getTransformForProjections
getTransformFromCodes -> getTransform
transform -> transformWithProjections
transformWithCodes -> transform

With this change, the faster functions that avoid projection look-up
have longer names and are used internally, whereas the slower but
friendlier short name functions are available for users.
2013-03-07 13:39:40 +01:00
Éric Lemoine
b487275d5b Round image height and width for WMS 2013-03-07 13:37:48 +01:00
Tom Payne
874583656e Use strings rather than ol.projection.get in examples 2013-03-07 13:31:11 +01:00
Tom Payne
eaa17758bd Allow strings to be used wherever projections are needed 2013-03-07 13:29:40 +01:00
Tom Payne
afcbec469a Rename ol.projection.getFromCode to ol.projection.get 2013-03-07 13:29:39 +01:00
Éric Lemoine
d81d9d7411 Merge pull request #309 from elemoine/attributions
Fix js error when image source has no attributions
2013-03-07 04:28:22 -08:00
Tom Payne
6bcbd25e2f Merge pull request #295 from openlayers/refactor-examples
Refactor examples
2013-03-07 04:27:18 -08:00
Éric Lemoine
251e9a09fa Fix js error when image source has no attributions 2013-03-07 12:41:15 +01:00
Éric Lemoine
3c37e6da56 Make custom proj example use tile layers only 2013-03-07 12:36:09 +01:00
Éric Lemoine
02cbdde333 Add a single image WMS example 2013-03-07 12:29:13 +01:00
Éric Lemoine
d31fb7a0fd Merge pull request #303 from elemoine/tile
Tile loading stops after a while when there are multiple maps
2013-03-07 03:15:37 -08:00
Éric Lemoine
73d06442ec Merge pull request #302 from elemoine/debug
Hosted examples in debug mode
2013-03-07 03:15:09 -08:00
Éric Lemoine
71f06320f6 WMS example renamed to wms-tiled 2013-03-07 12:03:28 +01:00
Bruno Binet
35b6d805df Merge pull request #307 from bbinet/null-extent
Check for not null extent
2013-03-07 02:06:18 -08:00
Éric Lemoine
f55423d575 Register change listeners for loading tiles only
With this commit we register a change listener at a time when we are guaranteed that the listener will be called. In this was we don't need to remove listeners when the tile is dropped from the tile queue. And to avoid busy-polling between IDLE and LOADING we rely on the map to call requestRenderFrame when new tiles change to LOADING from IDLE.
2013-03-07 11:03:20 +01:00
Bruno Binet
41408c0909 Extent cannot be undefined here but it can be null
so we now use !goog.isNull(extent) instead of goog.isDef(extent)
2013-03-07 10:54:06 +01:00
Bruno Binet
129f2bbcb0 Merge pull request #305 from bbinet/check-isglobal
Do not wrap dateline if projection.isGlobal() is false
2013-03-07 01:42:18 -08:00
Éric Lemoine
7fabff5ffa Revert "Remove listeners when dropping tiles"
This reverts commit fd6aaff2f5.
2013-03-07 10:41:23 +01:00
Éric Lemoine
bbc8249e28 Check the examples in raw mode as well 2013-03-07 10:33:40 +01:00
Éric Lemoine
306447fac7 Update readme.md 2013-03-07 10:30:47 +01:00
Éric Lemoine
757401313b Extent hosted loader to support debug mode 2013-03-07 10:30:47 +01:00
Frederic Junod
feb03b8cda Change opacity step value in side-by-side example
Avoid rounding issue (0.1 in binary format). fixes #299
2013-03-07 10:14:39 +01:00
Tim Schaub
f961930823 Render countries from GeoJSON
This reveals a number of issues that still need to be addressed.
2013-03-06 19:24:53 -07:00
Tom Payne
d4b58d489f Correct description in side-by-side example 2013-03-07 03:15:19 +01:00
Tim Schaub
84527c4b56 Disable bbox filtering for now
The RTree doesn't appear to be performing properly
2013-03-06 19:07:26 -07:00
Tim Schaub
2e4dc430e9 Render multi-part geometries
As noted in the comment, filtering/rendering once per geometry type will be replaced by rendering once per symbolizer type.
2013-03-06 19:06:41 -07:00
Tim Schaub
00fa7ff3a9 Listen for layer changes and expire tiles
We need a more flexible event system.  We could have a VectorLayerEvent type and dispatch 'featuresadded' here.  But listeners want features typically and perhaps extent.  This won't be true for all vector layer events (suggesting a more specific VectorFeatureEvent type or something).
2013-03-06 19:05:35 -07:00
Tim Schaub
d7c547f736 Method for parsing features
Shared structures are still per geometry type.  Need to be made per symbolizer type.
2013-03-06 19:02:21 -07:00
Tim Schaub
7c4c3c547c Draw multi-part geometries
Polygons still need holes.
2013-03-06 19:01:16 -07:00
Tom Payne
3c701067b3 Remove animations from side-by-side example 2013-03-07 02:58:00 +01:00
Tom Payne
674eb9b396 Add animation example 2013-03-07 02:56:28 +01:00
Bruno Binet
48c84aaf69 Do not wrap dateline if projection.isGlobal() is false 2013-03-07 02:07:00 +01:00
Tom Payne
50cb6294ee Remove brightness/contrast from side-by-side example 2013-03-07 01:56:41 +01:00
Tom Payne
bea6b644af Add brightness/contrast example 2013-03-07 01:56:41 +01:00
Tom Payne
8ab00689b2 Remove hue/saturation from side-by-side example 2013-03-07 01:56:41 +01:00
Tom Payne
f0466ef9c7 Add hue/saturation example 2013-03-07 01:56:41 +01:00
Bruno Binet
7f9e327a65 Merge pull request #304 from bbinet/projection-improvements
Some projection improvements
2013-03-06 16:53:14 -08:00
Bruno Binet
1e050fe25f Add global=true for both EPSG:4326 and EPSG:3857 2013-03-07 01:36:42 +01:00
Bruno Binet
4415f8ac74 Add test for ol.projection.configureProj4jsProjection 2013-03-07 01:36:41 +01:00
Bruno Binet
b6d57894b4 Add configureProj4jsProjection function
so that we can add extent and global parameter to proj4js projections.
And remove setExtent method which is not relevant.
2013-03-07 01:36:41 +01:00
Bruno Binet
0e53a3f3c9 ol.Proj4jsProjection_ now takes a single argument 2013-03-07 01:36:40 +01:00
Bruno Binet
9d88273161 ol.Projection now takes a single argument
which is called ol.ProjectionOptions.
2013-03-07 01:36:39 +01:00
Bruno Binet
8dd3093f4c Add information on wether the projection is global
so that we know if we can wrap the dateline.
2013-03-07 01:36:39 +01:00
Tom Payne
f942333f48 Add MapQuest example 2013-03-07 01:18:32 +01:00
Tom Payne
31b1f8b5b0 Add missing export 2013-03-06 21:34:18 +01:00
Tom Payne
a686a0a893 Remove two-layers example 2013-03-06 21:29:23 +01:00
Tom Payne
58323bb8fc Add export JPEG example 2013-03-06 21:28:59 +01:00
Tim Schaub
6cddd47d54 Correcting title for example list (see #296) 2013-03-06 15:24:50 -05:00
Tom Payne
479e7fc8dd Make Stamen example prettier 2013-03-06 21:08:06 +01:00
ahocevar
100c8a1cf4 Adding gutter when requesting features for a tile
By doing so, we avoid features being cut off when the symbolizer
causes it to be rendered across tile borders.
2013-03-06 21:06:21 +01:00
ahocevar
2af82abcda Adding missing export 2013-03-06 21:03:57 +01:00
Tom Payne
b07c1cce1f Add mouse position example 2013-03-06 20:57:48 +01:00
Tom Payne
fe7f112c41 Remove mouse position control from side-by-side example 2013-03-06 20:57:48 +01:00
Tom Payne
05c21e6f1c Add scale line example 2013-03-06 20:46:53 +01:00
Tom Payne
09b75f8044 Don't include scale line in default controls 2013-03-06 20:46:52 +01:00
Tom Payne
6dab2cd466 Remove scale line from full screen example 2013-03-06 20:46:52 +01:00
Tom Payne
99870acd19 Add TileJSON example 2013-03-06 20:46:52 +01:00
Tom Payne
3e7cd5fffb Add Bing Maps example 2013-03-06 20:46:52 +01:00
Éric Lemoine
74b8fea679 Extent hostexamples target to copy ol and closure 2013-03-06 20:32:06 +01:00
Tom Payne
818b4a9d5e Remove Bing Maps from two-layers example 2013-03-06 20:21:40 +01:00
Tom Payne
d60a6e943b Don't use ol.Collection in simple example 2013-03-06 20:21:39 +01:00
Tom Payne
65e003db50 Merge pull request #274 from twpayne/map-layers-api
ol.Collection versus array
2013-03-06 10:48:48 -08:00
Éric Lemoine
8ce86ac2c9 Add depswriter scripts
Copied from http://closure-library.googlecode.com/git/closure/bin/build/
2013-03-06 19:16:03 +01:00
Bruno Binet
a10cae6117 Merge pull request #301 from bbinet/projection-setextent
Add a setExtent method to ol.Projection
2013-03-06 09:46:07 -08:00
Tom Payne
6c58da95e6 Merge pull request #300 from twpayne/stamen-unique-attribution
Use a single, shared attribution for Stamen sources
2013-03-06 09:27:44 -08:00
Tom Payne
ad6cb91b73 Merge pull request #296 from fredj/bootstrap
Port example list to Bootstrap
2013-03-06 08:56:43 -08:00
Bruno Binet
93ae4256eb Add a setExtent method to ol.Projection 2013-03-06 17:53:51 +01:00
Tom Payne
e027f9771e Use a single, shared attribution for Stamen sources
This ensures that the attribution only appears once, even if multiple
Stamen layers are used in the same map.
2013-03-06 17:53:33 +01:00
Bruno Binet
d1762a06f8 Merge pull request #290 from bbinet/projection_stuff
Add a getMetersPerUnit instance method to ol.Projection class
2013-03-06 08:50:47 -08:00
Frederic Junod
4c50b8ff31 Add tags in full screen example
Used to generate example-list.html
2013-03-06 17:31:48 +01:00
Frederic Junod
11f338f9fe Fit map to projection extent in full screen example
see: 5b0af9152a
2013-03-06 17:25:59 +01:00
Tom Payne
c48e281c68 Add ol.Map.removeLayer 2013-03-06 17:17:32 +01:00
Frederic Junod
aacee357c0 Port example list to Bootstrap 2013-03-06 17:08:34 +01:00
Tom Payne
fcbd758f48 Add ol.Map.addLayer 2013-03-06 17:00:17 +01:00
Tom Payne
441092dad6 Don't use ol.Collection in examples 2013-03-06 17:00:16 +01:00
Tom Payne
61982646ba Allow layers to be passed as an array when creating a map 2013-03-06 16:59:09 +01:00
Tom Payne
388eac3838 Merge pull request #293 from twpayne/fix-293
Build error
2013-03-06 07:56:23 -08:00
Tom Payne
61552e6664 Merge pull request #294 from twpayne/collection
Collection improvements
2013-03-06 07:49:53 -08:00
Frédéric Junod
d60491093b Merge pull request #291 from openlayers/bootstrap
Use Bootstrap for examples
2013-03-06 07:28:17 -08:00
Tom Payne
220beb5177 Simple and whitespace builds use internal, not external, source 2013-03-06 16:00:15 +01:00
Tom Payne
3e7c913c44 Add ol.Collection.remove 2013-03-06 15:53:11 +01:00
Tom Payne
0a38f2f7a7 Don't export ol.Collection.getArray 2013-03-06 15:50:07 +01:00
Tom Payne
905a0059db Remove unused insert_at, set_at, and remove_at events 2013-03-06 15:50:03 +01:00
Frederic Junod
eab160de67 Add github and twitter links in examples 2013-03-06 15:20:25 +01:00
Frederic Junod
2b238c68c7 Add Font Awesome 3.0.2 2013-03-06 15:20:25 +01:00
Frederic Junod
e4863f3ce8 Add missing div close tag 2013-03-06 15:20:24 +01:00
Frederic Junod
6113ca2c59 Port full-screen example to Bootstrap 2013-03-06 15:20:24 +01:00
Frederic Junod
a8ec0c95a0 Fix hostexamples target
Add missing bootstrap dir and examples.css
2013-03-06 15:19:47 +01:00
Frederic Junod
0007ec95de Port stamen example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne
d8a73d12ed Fix navbar link, thanks @fredj 2013-03-06 15:19:47 +01:00
Tom Payne
3b9d500818 Don't store templates in map div 2013-03-06 15:19:47 +01:00
Tom Payne
3491b55fb2 Add missing closing tag 2013-03-06 15:19:47 +01:00
Tom Payne
bcea43dcd6 Don't lint Bootstrap JavaScript 2013-03-06 15:19:47 +01:00
Tom Payne
fa448951d9 Add simple example 2013-03-06 15:19:47 +01:00
Tom Payne
c87aaa3eb1 Port WMS example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne
80da379d60 Port WMS custom projection example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne
ca3f6e0fdf Port WMS capabilities example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne
6af6e355f9 Port two layers example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne
2ca53da9f2 Port side-by-side example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne
f1af80189f Port EPSG:4326 example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne
34c6652ed6 Port canvas tiles example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne
d20aa69f5f Port anchored elements example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne
2d454c429a Add examples.css 2013-03-06 15:19:47 +01:00
Tom Payne
a96fa30e97 Add Bootstrap 2.3.1 2013-03-06 15:19:47 +01:00
Tom Payne
3a7c4bd3bc Merge pull request #273 from twpayne/controls-api
reconsider the way we specify controls on the map
2013-03-06 05:59:31 -08:00
Tom Payne
38eaa9cfb2 Use an array to specify additional interactions 2013-03-06 13:19:50 +01:00
Tom Payne
363cb87e1a Use an array to specify additional controls 2013-03-06 13:19:34 +01:00
Tom Payne
23f0097517 Add ol.Collection.extend 2013-03-06 13:18:34 +01:00
Tom Payne
c9cce57895 Add comment about ugly typecast 2013-03-06 13:06:35 +01:00
Frédéric Junod
c54f38f4c0 Merge pull request #287 from fredj/mapsize
Use goog.style.getSize to compute the map size.
2013-03-06 03:59:51 -08:00
ahocevar
2147674e2f Adding exports for icon and feature 2013-03-06 12:49:06 +01:00
Tom Payne
671ee79c74 Add ol.interaction.defaults 2013-03-06 12:36:49 +01:00
Tom Payne
a94eadf402 Port examples to ol.control.defaults 2013-03-06 12:36:49 +01:00
Tom Payne
8ae009d401 Add ol.control.defaults 2013-03-06 12:36:48 +01:00
ahocevar
345bb55f98 Respect width and height from symbolizer 2013-03-06 12:29:20 +01:00
Bruno Binet
1ff3c79ff6 Use correct value to convert from foot to meters
(was using value for converting to inches).
Thanks @twpayne
2013-03-06 12:26:30 +01:00
Bruno Binet
f4aa08ee90 Use ol.sphere.NORMAL.radius instead of 6378000
to be consistent.
2013-03-06 12:18:37 +01:00
Tom Payne
48852aa3ea Merge pull request #284 from twpayne/full-screen-fit-projection-extent
Fit map to projection extent in full screen example
2013-03-06 02:50:46 -08:00
ahocevar
6ee754abb6 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-06 11:20:40 +01:00
Bruno Binet
097d59c41a Add test for ol.Projection getMetersPerUnit method 2013-03-06 10:33:03 +01:00
Bruno Binet
1803e7b28d Add getMetersPerUnit instance method to ol.Projection 2013-03-06 10:32:45 +01:00
Bruno Binet
1f30f693b6 Merge pull request #288 from bbinet/projection_stuff
Find proj4js projection even if code is different than srs.
2013-03-06 01:06:38 -08:00
Bruno Binet
bb1cf45c0a Add Proj4js.Proj.srsCode property to Proj4js externs 2013-03-06 02:38:03 +01:00
Tim Schaub
060edb2070 Merge branch 'vector' of github.com:openlayers/ol3 into vector
Conflicts:
	src/ol/style/shape.js
2013-03-06 02:28:33 +01:00
Tim Schaub
ac10bb6ca5 Enforce that either stroke or fill is provided 2013-03-06 02:20:11 +01:00
Tim Schaub
c0c8faaf9f Allow literal from symbolizer without feature 2013-03-06 02:20:11 +01:00
ahocevar
95f3fe535a No projection configuration needed on the layer 2013-03-06 02:20:11 +01:00
Éric Lemoine
5d99ead2b7 View2D NoConstraint methods renamed 2013-03-06 02:20:10 +01:00
Tom Payne
ba78812796 Improve comment parsing when checking for requires 2013-03-06 02:20:10 +01:00
Éric Lemoine
a0ba80bcbb Check the examples against whitespace build first
This is to produce stack traces that are easier to understand when an example fails to load.
2013-03-06 02:20:10 +01:00
Bruno Binet
382022bdb5 Add defaultNamespaceURI and errorProperty properties for WMTS.
Thanks @bartvde.
2013-03-06 02:20:10 +01:00
Éric Lemoine
221c8077e0 Make hostexamples target more robust 2013-03-06 02:20:10 +01:00
ahocevar
2ee19f699a Moving VERSION into params 2013-03-06 02:20:10 +01:00
ahocevar
c1f3a6cc54 WMS GetMap request parameters shall be params
To avoid surprises, we configure everything that is a WMS GetMap
request parameter in the params object, and not as direct
configuration option. This affects the VERSION and TRANSPARENT
params.
2013-03-06 02:20:09 +01:00
ahocevar
a912d48b59 Do not use tiledWMSOptions in closure function
See #269.
2013-03-06 02:20:09 +01:00
Éric Lemoine
5644c27d9e Animate double click/tap zoom 2013-03-06 02:20:09 +01:00
Éric Lemoine
066a81a88a Animate zoom after pinch 2013-03-06 02:20:09 +01:00
Éric Lemoine
a4c47edd9d 2DView refactoring
This refactoring makes animating zoom, as opposed to zoomByDelta, possible.
2013-03-06 02:20:09 +01:00
Éric Lemoine
b9a286fb7a Animate rotation when releasing mouse or fingers 2013-03-06 02:20:08 +01:00
Éric Lemoine
33eb13d73b Make animating rotation possible 2013-03-06 02:20:08 +01:00
Éric Lemoine
de8db176ab Do not apply rotation constraint while rotating
This is on par to what the TouchRotate interaction does.
2013-03-06 02:20:08 +01:00
Éric Lemoine
f20cf83c94 Add a snapToZero rotation constraint 2013-03-06 02:20:08 +01:00
Tom Payne
83225916c1 Add Stamen example 2013-03-06 02:20:07 +01:00
Tom Payne
78780fa095 Correct Stamen source 2013-03-06 02:20:07 +01:00
Éric Lemoine
cae2340343 Make TouchRotate interaction use rotateNoConstraint 2013-03-06 02:20:07 +01:00
Éric Lemoine
303520a5e0 Add a rotateNoConstraint View2D method 2013-03-06 02:20:06 +01:00
Éric Lemoine
2c551b0445 Change View2D function names
Also make the TouchZoom interaction no longer use a private View2D function.
2013-03-06 02:20:06 +01:00
Éric Lemoine
ca31cf590c Debounce mousewheel zoom events 2013-03-06 02:20:06 +01:00
Éric Lemoine
673ea079f8 MouseWheelZoom interaction animates zoom 2013-03-06 02:20:06 +01:00
Éric Lemoine
be5967a948 View2D zoom may animate pan 2013-03-06 02:20:06 +01:00
Éric Lemoine
29d3878ea3 zoomFactor defaults to 2 2013-03-06 02:20:06 +01:00
Bruno Binet
f1b72a10bc Tests for cached proj4js projections. 2013-03-06 01:59:35 +01:00
ahocevar
ab19d255c7 Rendering icons from external graphic urls 2013-03-06 01:57:08 +01:00
Bruno Binet
7d1db48836 Find proj4js projection even if code is different than srs. 2013-03-06 01:57:06 +01:00
Tom Payne
1ae20641ef Make mouse position control options argument optional 2013-03-05 18:58:29 +01:00
Tom Payne
f581390655 Make zoom control options argument optional 2013-03-05 18:56:41 +01:00
Tom Payne
c521f92408 Make attribution control options argument optional 2013-03-05 18:56:34 +01:00
Frederic Junod
de168e0fb0 Use goog.style.getSize to compute the map size.
This allows to initialize hidden map (display: none).
Otherwise the size is 0 (clientWidth == clientHeight == 0)
2013-03-05 18:48:02 +01:00
Éric Lemoine
59271ae2d8 Fix typo (thanks @bbinet) 2013-03-05 18:35:21 +01:00
Tim Schaub
4f2523fcf2 Vector related exports 2013-03-05 18:25:07 +01:00
Tim Schaub
9a0e7a96fe Moving the feature management to the layer
The source will be responsible for fetching vector data.
2013-03-05 18:25:07 +01:00
Tim Schaub
e1c3faa53e Vector related exports 2013-03-05 18:13:10 +01:00
Éric Lemoine
2924bf088d Merge pull request #286 from elemoine/droppedtile
Fix tile change event handling
2013-03-05 09:07:53 -08:00
Éric Lemoine
a4afcd533f Add FIXME 2013-03-05 18:06:57 +01:00
Tom Payne
8a66095a4a Export some ol.View2D functions 2013-03-05 17:03:33 +01:00
Éric Lemoine
4e758f87ae Do not register multiple listeners on same tile 2013-03-05 17:01:34 +01:00
Éric Lemoine
fd6aaff2f5 Remove listeners when dropping tiles 2013-03-05 17:01:34 +01:00
Tom Payne
5b0af9152a Fit map to projection extent in full screen example 2013-03-05 16:49:36 +01:00
Marc Jansen
5b258ca23f Merge pull request #283 from marcjansen/test-output
Nicer test output for headless tests
2013-03-05 07:07:25 -08:00
Marc Jansen
aed6e4c1e3 JSHintified, thanks @elemoine. 2013-03-05 16:05:07 +01:00
ahocevar
d8b6d17105 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-05 15:48:57 +01:00
Marc Jansen
2c1fa61078 Nicer output of console runner. 2013-03-05 15:30:01 +01:00
Marc Jansen
6600435378 Remove dangling whitespace. 2013-03-05 15:29:47 +01:00
ahocevar
df4f2c4c0a No projection configuration needed on the layer 2013-03-05 15:25:47 +01:00
Bart van den Eijnden
aa4c4ddc48 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-05 14:20:32 +01:00
Bart van den Eijnden
dfcdf75449 add WMS 1.0.0 parser 2013-03-05 13:26:04 +01:00
Éric Lemoine
98f9f44877 Merge pull request #261 from elemoine/zoomfactor
Change default zoom delta and animate mousewheel zoom
2013-03-05 03:52:38 -08:00
Éric Lemoine
b884f2f25d View2D NoConstraint methods renamed 2013-03-05 12:51:03 +01:00
Tim Schaub
12bee3178e Moving the feature management to the layer
The source will be responsible for fetching vector data.
2013-03-05 12:46:55 +01:00
Tom Payne
3b29ec610b Merge pull request #280 from twpayne/check-requires-in-comments-fixes
Improve comment parsing when checking for requires
2013-03-05 03:05:52 -08:00
Tom Payne
254a96e036 Improve comment parsing when checking for requires 2013-03-05 11:51:53 +01:00
Tim Schaub
a968a5ca66 The shared vertices structure now works with integer arrays only
Previously, a lookup object containing start indexes was also used.  This allowed us to remove arrays of vertices and properly update the start indexes for remaining coordinate values.  In order to provide callers with stable identifiers and to work with arrays of integers alone, we cannot support a remove method.  I think this is worth revisiting.  Even if the array length cannot be changed in WebGL, we don't need to also impose the restriction outside.  Instead, the WebGL renderer could be notified when array sizes change and update itself accordingly.  I think there is more value in providing geometries with stable identifiers.

This common structure is used to store vertices for all geometry types.  A slight optimization could be made by creating yet another structure to store point vertices - since these don't need to have a counts array (always 1).  Creating a new structure would mean saving memory at the expense of more lib code to transport.  The coordinate value lookups are not negatively impacted by using the same structure for points and higher order geometries.  Since the first change above goes against my instincts, I'm not making this second change (to add another structure for shared point vertices).
2013-03-05 11:47:42 +01:00
Éric Lemoine
403666d875 Merge pull request #279 from elemoine/check-examples
Check the examples against whitespace build first
2013-03-05 02:39:58 -08:00
Éric Lemoine
82c2fc19a1 Check the examples against whitespace build first
This is to produce stack traces that are easier to understand when an example fails to load.
2013-03-05 11:37:30 +01:00
Éric Lemoine
9a64435a65 Merge pull request #275 from elemoine/275
Files in gh-pages examples
2013-03-05 02:31:39 -08:00
Bruno Binet
ade4213dd8 Merge pull request #277 from bbinet/fix-wmts-parser
Add defaultNamespaceURI and errorProperty properties for WMTS.
2013-03-05 02:29:23 -08:00
Bruno Binet
8b3cfda963 Add defaultNamespaceURI and errorProperty properties for WMTS.
Thanks @bartvde.
2013-03-05 11:26:46 +01:00
Éric Lemoine
aa9275b57f Make hostexamples target more robust 2013-03-05 11:26:22 +01:00
Tom Payne
68919b5ee3 Merge pull request #267 from twpayne/stamen-fixes
Stamen fixes
2013-03-05 02:14:21 -08:00
ahocevar
8fd25749c0 Merge pull request #276 from ahocevar/wms-params
WMS GetMap request parameters shall be params. r=@elemoine
2013-03-05 02:13:37 -08:00
ahocevar
19f8692672 Moving VERSION into params 2013-03-05 11:11:41 +01:00
Tim Schaub
54d8d45fc9 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-05 10:58:27 +01:00
ahocevar
4bb521db65 WMS GetMap request parameters shall be params
To avoid surprises, we configure everything that is a WMS GetMap
request parameter in the params object, and not as direct
configuration option. This affects the VERSION and TRANSPARENT
params.
2013-03-05 10:54:33 +01:00
ahocevar
2676050d54 Do not use tiledWMSOptions in closure function
See #269.
2013-03-05 10:50:46 +01:00
Tom Payne
985b4f57c1 Merge pull request #260 from twpayne/projections-in-feet
Projections in feet
2013-03-05 01:17:56 -08:00
Frédéric Junod
5c78fff519 Merge pull request #270 from fredj/pretty-print-build
Pretty print the whitespace build
2013-03-05 01:08:16 -08:00
Éric Lemoine
29e610b9f3 Animate double click/tap zoom 2013-03-05 10:08:01 +01:00
Éric Lemoine
e598e4b9b2 Animate zoom after pinch 2013-03-05 10:08:01 +01:00
Éric Lemoine
43b1e11e7a 2DView refactoring
This refactoring makes animating zoom, as opposed to zoomByDelta, possible.
2013-03-05 10:08:01 +01:00
Éric Lemoine
d42d88c198 Animate rotation when releasing mouse or fingers 2013-03-05 10:08:00 +01:00
Éric Lemoine
c431acacca Make animating rotation possible 2013-03-05 10:08:00 +01:00
Éric Lemoine
2f611529dd Do not apply rotation constraint while rotating
This is on par to what the TouchRotate interaction does.
2013-03-05 10:08:00 +01:00
Éric Lemoine
1776d80cb9 Add a snapToZero rotation constraint 2013-03-05 10:08:00 +01:00
Tom Payne
6f2d15bb5f Add Stamen example 2013-03-05 10:05:22 +01:00
Tom Payne
6d6188ea79 Correct Stamen source 2013-03-05 10:05:22 +01:00
Bart van den Eijnden
d587d45a09 Merge pull request #271 from bartvde/epsg4326example
remove unused code from epsg-4326 example
2013-03-05 01:00:00 -08:00
Éric Lemoine
7d6d82519b Make TouchRotate interaction use rotateNoConstraint 2013-03-05 09:59:31 +01:00
Éric Lemoine
178c68868b Add a rotateNoConstraint View2D method 2013-03-05 09:59:31 +01:00
Éric Lemoine
03ae41a68c Change View2D function names
Also make the TouchZoom interaction no longer use a private View2D function.
2013-03-05 09:59:31 +01:00
Éric Lemoine
faef495cfd Debounce mousewheel zoom events 2013-03-05 09:59:31 +01:00
Éric Lemoine
4d486601f9 MouseWheelZoom interaction animates zoom 2013-03-05 09:59:31 +01:00
Éric Lemoine
3ba9a4afd4 View2D zoom may animate pan 2013-03-05 09:59:30 +01:00
Éric Lemoine
57a86353cd zoomFactor defaults to 2 2013-03-05 09:59:30 +01:00
Bart van den Eijnden
68c1651cc5 remove unused code from epsg-4326 example 2013-03-05 09:54:35 +01:00
ahocevar
3803275a1e Merge pull request #269 from ahocevar/wms-extent
Fixing extent check for undefined extents. r=@elemoine
2013-03-05 00:54:12 -08:00
Frederic Junod
9d1d59d54a Pretty print the whitespace build 2013-03-05 09:53:05 +01:00
ahocevar
19aeb04141 Fixing extent check for undefined extents.
Thanks @marcjansen for spotting this. To make the epsg-4326
example work, I also had to change the WMS version to 1.1.1.
2013-03-05 09:47:52 +01:00
ahocevar
3526244e0c Merge pull request #268 from ahocevar/wms-improvements
Support tile sources without configured projection. r=@twpayne
2013-03-04 16:48:09 -08:00
ahocevar
23c09abd3a Calling getTileSize with z argument
Thanks for catching this @twpayne.
2013-03-05 01:47:28 +01:00
ahocevar
66b790294d Merge branch 'master' of github.com:openlayers/ol3 into wms-improvements
Conflicts:
	src/ol/source/tiledwmssource.js
	test/spec/ol/tileurlfunction.test.js
2013-03-05 00:55:52 +01:00
ahocevar
586f393492 Support tile sources without configured projection
This change adds a lot of flexibility to working with tile
layers: Sources where the server projection or tile grid do not
matter can now be constructed without specifying a projection or
tile grid.

The tileUrlFunction/imageUrlFunction now also creates updated
URLs when the params of the layer change, so things like
mergeNewParams in ol2 will be possible.

A nice side effect of this whole change is that there is no more
duplicated code between tiled and single image WMS layers.

While I was at it, I also fixed a WMS 1.1.1 axis order issue
and incorrect STYLES params (STYLES=& instead of STYLES&).
2013-03-05 00:46:58 +01:00
Tom Payne
1bac674eca Merge pull request #263 from twpayne/canvas-renderer-optimizations
Canvas renderer optimizations
2013-03-04 15:21:38 -08:00
Tim Schaub
1d6cd1bd1b Lint-free tests 2013-03-04 21:30:23 +01:00
Tim Schaub
dc19948a85 Get tile size for zoom level (see #258) 2013-03-04 21:30:01 +01:00
Tom Payne
61acce98e3 Merge pull request #266 from twpayne/lint-cleanups
Lint cleanups
2013-03-04 12:07:52 -08:00
Tom Payne
a937083d10 Don't redraw already rendered tiles 2013-03-04 21:07:17 +01:00
Tom Payne
fb668a7fc6 Add opaque flag to ol.source.TileSource 2013-03-04 21:07:17 +01:00
Tim Schaub
c29fabebef Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-04 21:06:13 +01:00
Tim Schaub
cae925ad1f Correct spelling (thanks @fredj) 2013-03-04 21:04:59 +01:00
Tom Payne
4eebe5aaf2 Merge spec and src lint targets 2013-03-04 20:51:27 +01:00
Tom Payne
f6fe7bd36c Make spec indentation pass strict mode 2013-03-04 20:47:20 +01:00
Tom Payne
9b122815ce Lint specs with strict mode 2013-03-04 20:46:39 +01:00
Tom Payne
2741daa977 Merge pull request #265 from twpayne/check-requires-in-specs
Check requires in specs
2013-03-04 11:31:37 -08:00
Tim Schaub
8c8ddce290 GeoJSON parser implements StringFeatureParser 2013-03-04 20:31:01 +01:00
Tim Schaub
9c8ec42713 Feature parser interfaces
Parsers that read features from strings, objects, or dom elements should implement the right interface.  Among the read options is a callback that gets called after feature construction and before geometry construction.  This callback is called with the feature and the geometry type and returns a shared vertices structure.  The geometry is then constructed with this shared vertices structure before being added to the feature.
2013-03-04 20:29:42 +01:00
Tim Schaub
9edf63fdb8 Proper bounds 2013-03-04 20:25:18 +01:00
Tom Payne
3f933e01bd Merge pull request #264 from twpayne/webgl-underscores
Rename WebGL variables to match CSS shaders specification
2013-03-04 11:03:21 -08:00
Tom Payne
df5f74b3c0 Add missing requires to specs 2013-03-04 20:02:55 +01:00
Tom Payne
e776371f54 Check for requires in specs 2013-03-04 20:02:28 +01:00
Tom Payne
14e76b3a11 Don't assume that goog.requires are always first 2013-03-04 20:02:16 +01:00
Tom Payne
08dbeed23f Rename WebGL variables to match CSS shaders specification
See https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.htm
2013-03-04 19:45:43 +01:00
Tim Schaub
978527f880 Accept missing properties in symbolizer constructors
Still need to have some discussion about when to apply defaults.
2013-03-04 19:31:11 +01:00
Frédéric Junod
ad17c2ba90 Merge pull request #250 from fredj/BingMapsStyle
Invalid ol.BingMapsStyle
2013-03-04 10:04:29 -08:00
Tim Schaub
fae79dbc0f Fewer function calls during bounds calculation 2013-03-04 18:55:20 +01:00
Tom Payne
44e3e228eb Add canvas map to two layers demo 2013-03-04 18:45:24 +01:00
Tim Schaub
0b05432faa Vector source isn't a tile source 2013-03-04 18:43:46 +01:00
Tim Schaub
0558cfa3ac Add externs for GeoJSON support 2013-03-04 18:41:04 +01:00
Bruno Binet
874481cae5 Merge pull request #262 from bbinet/wmtsparser-resourceurl
Rework the structure of the WMTS resourceUrls property
2013-03-04 08:34:10 -08:00
Bruno Binet
80509a6a62 Fix tests relative to the WMTS resourceUrl(s) object 2013-03-04 17:16:49 +01:00
Bruno Binet
4baf397f77 Rework the structure of the resourceUrls object
and remove duplicated resourceUrl object.
2013-03-04 17:14:16 +01:00
Frederic Junod
eec1aec0e6 Remove ol.BingMapsStyle 2013-03-04 15:14:22 +01:00
Tom Payne
b9a9e84c1b Handle projections in feet in scale line control 2013-03-04 10:40:01 +01:00
Tom Payne
87d6208403 Add international feet to projection units 2013-03-04 10:39:52 +01:00
Tom Payne
06bb6e19f1 Merge pull request #215 from twpayne/scaleline-control
ScaleLine control
2013-03-04 01:27:33 -08:00
Éric Lemoine
2238c9bd6a Update readme.md 2013-03-04 10:15:31 +01:00
Éric Lemoine
b31d5cdb4a Update readme.md 2013-03-04 10:07:00 +01:00
Tom Payne
c35d07d481 Rename minimumWidth to minWidth 2013-03-04 09:58:09 +01:00
Frédéric Junod
cad215e0cc Merge pull request #230 from fredj/touch-navigation
Touch navigation issues
2013-03-04 00:42:59 -08:00
Bruno Binet
cedba8cd60 Merge pull request #258 from bbinet/tilegrid-tilesizes
Add support for multiple tileSizes in the tilegrid
2013-03-03 22:31:33 -08:00
Bruno Binet
07e0fc3a20 Fix tileSize in the canvastilelayerrenderer. 2013-03-04 07:30:33 +01:00
Tom Payne
fd1d2f6aeb Merge pull request #259 from twpayne/more-in-place-transforms
Use more in-place transforms where possible
2013-03-03 15:47:58 -08:00
Tom Payne
f3d01dcbd3 Add scale line to examples 2013-03-04 00:43:38 +01:00
Tom Payne
b663fd69f1 Add scale line control options to map options 2013-03-04 00:43:37 +01:00
Tom Payne
8c2b01948b Add ScaleLine control 2013-03-04 00:43:37 +01:00
Tom Payne
10f1755ad4 Merge pull request #252 from twpayne/point-resolution
Point resolution
2013-03-03 15:36:08 -08:00
Tom Payne
5c6821ce71 Use more in-place transforms where possible 2013-03-04 00:31:36 +01:00
Tom Payne
a8760108d4 Estimate point resolution for Proj4js projections 2013-03-04 00:25:42 +01:00
Tom Payne
343768df6a Implement getPointResolution for EPSG:4326 2013-03-04 00:12:51 +01:00
Tom Payne
98d7391024 Implement getPointResolution for EPSG:3587 2013-03-04 00:12:51 +01:00
Tom Payne
d3e49d0a19 Add ol.Projection.getPointResolution 2013-03-04 00:12:51 +01:00
Tom Payne
e6f08df72c Add the normal sphere 2013-03-04 00:12:51 +01:00
Tom Payne
684ea35673 Add sphere with radius equal to the semi-major axis of the WGS84 ellipsoid 2013-03-04 00:12:51 +01:00
Éric Lemoine
85db5273be Merge pull request #257 from elemoine/verify-examples
Verify hosted examples at precommit time
2013-03-03 15:06:11 -08:00
Tim Schaub
303f2df9e1 Merge pull request #256 from tschaub/transform-arrays
Updating ol.TransformFunction instances so they work with arrays instead of coordinates.
2013-03-03 14:46:22 -08:00
Frédéric Junod
d783df0840 Merge pull request #223 from fredj/touch-click
Click handling broken
2013-03-03 12:43:01 -08:00
Tim Schaub
e9fa08fccb Use in-place transforms where possible 2013-03-03 20:53:13 +01:00
Bruno Binet
93131d6105 Add some tests for the multiple tileSizes in tilegrid. 2013-03-03 20:43:47 +01:00
Bruno Binet
bf325c38b4 Fix tests related to createBboxParam. 2013-03-03 20:43:46 +01:00
Bruno Binet
2816e3256c Add support for multiple tileSizes in the tilegrid.
This is needed by WMTS.
2013-03-03 20:43:46 +01:00
Bruno Binet
7c440d087f Ensure we cannot set both origin and origins in the tilegrid 2013-03-03 20:43:46 +01:00
Bruno Binet
f7a895a823 Remove unused tileGrid.getTileSize() call. 2013-03-03 20:43:45 +01:00
Tim Schaub
40bde4056b Accept a destination array for transforms
This allows in-place transforms.
2013-03-03 20:24:14 +01:00
Éric Lemoine
26cf882d68 Make createLayerRenderer always return a renderer 2013-03-03 19:46:09 +01:00
Éric Lemoine
5202281ce8 Remove references to goog in epsg-4326 example 2013-03-03 19:46:09 +01:00
Éric Lemoine
337fd11a05 Load the examples using PhantomJS
This commit adds a check-examples target to check that the hosted examples load without errors.
2013-03-03 19:46:09 +01:00
Tim Schaub
7a5e6a06d8 Make transform functions work with arrays
Instead of working with ol.Coordinate instances, transform functions work with arrays.  This is in anticipation of using transform functions to transform large arrays of vertex coordinate values.  The ol.projection.transform and ol.projection.transformWithCodes are slightly more convenient functions for dealing with ol.Coordinate instances.  Whether we make this more consistent with the use of functions returned by ol.projection.getTransform is up for discussion.
2013-03-03 19:27:57 +01:00
Bruno Binet
6407b7c1c1 Merge pull request #254 from bbinet/indent-wmscap-example
Better indentation for wms capabilities example
2013-03-03 09:58:16 -08:00
Bruno Binet
d754c34a04 Better indentation for wms capabilities example 2013-03-03 18:57:53 +01:00
ahocevar
f1120287c3 Features can now have symbolizers
If specified, feature symbolizers take precedence over rule
based styling.
2013-03-03 18:55:52 +01:00
ahocevar
44ca6c9ff6 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-03 18:37:02 +01:00
Tom Payne
f897c743b1 Merge pull request #255 from twpayne/dont-check-requires-in-comments
Don't check for requires in comments
2013-03-03 09:36:29 -08:00
Tom Payne
b75298e957 Don't check for requires in comments 2013-03-03 18:29:16 +01:00
Bruno Binet
7454314578 Merge pull request #253 from bbinet/gitignore
Ignore ol-simple.js and ol-whitespace.js generated files
2013-03-03 08:59:26 -08:00
Tim Schaub
0df692e159 Lint in the tests 2013-03-03 17:58:03 +01:00
Bruno Binet
88335da8de Ignore ol-simple.js and ol-whitespace.js generated files 2013-03-03 17:55:53 +01:00
Éric Lemoine
bf50828a0d Merge pull request #251 from elemoine/remove-goog-references
Clean up examples
2013-03-03 08:12:57 -08:00
Éric Lemoine
bbc9785b81 IE9 supports addEventListener (thanks @fredj) 2013-03-03 17:10:50 +01:00
Éric Lemoine
d0c0231d98 Add exports for the canvas export feature 2013-03-03 17:10:50 +01:00
Éric Lemoine
bd67a14389 Make wms-capabilities example work when hosted 2013-03-03 17:10:50 +01:00
Tim Schaub
022917e719 Lint free externs 2013-03-03 17:06:15 +01:00
Éric Lemoine
01d49ef9c9 Remove references to goog in examples 2013-03-03 17:01:37 +01:00
ahocevar
d4ecf53801 Adding example for rule based styling
For the first time in the history of OpenLayers, we can render
features with multiple symbolizers now, which is also shown in
this new example.
2013-03-03 17:00:20 +01:00
Tim Schaub
d3c4869917 Work with new ol.projection package 2013-03-03 16:09:00 +01:00
Éric Lemoine
e6a42168d8 Merge pull request #249 from elemoine/playwithbuild
SIMPLE and WHITESPACE builds
2013-03-03 06:53:26 -08:00
Tim Schaub
5a73529da5 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-03 15:52:40 +01:00
Tim Schaub
b247031fe2 Test reading with shared vertices 2013-03-03 15:51:24 +01:00
Tim Schaub
4af32560ce Removing abstract methods for now
Later we'll discuss having more specific FeatureParser and readFeatures type methods.
2013-03-03 15:50:33 +01:00
Tom Payne
7126d63db5 Merge pull request #247 from twpayne/hyperbolic-functions
Add hyperbolic functions
2013-03-03 06:47:32 -08:00
Tom Payne
1c5e29f5a7 Merge pull request #246 from twpayne/xyztilegrid-tests
Add ol.tilegrid.XYZ tests
2013-03-03 06:47:16 -08:00
Tom Payne
183df560ad Merge pull request #245 from twpayne/projection-refactoring
Projection refactoring
2013-03-03 06:46:38 -08:00
ahocevar
5535a26d4a Adding unit tests for rule based styling 2013-03-03 15:25:20 +01:00
ahocevar
63c048edb2 Use the actual value, not just the index in the array. 2013-03-03 15:22:52 +01:00
ahocevar
db52ff926e Return an empty array for features without geometry
This ensures that the static applyDefaultStyle() method works
exactly the same way as the instance's apply() method.
2013-03-03 15:22:33 +01:00
Bruno Binet
302ba3a8e1 Merge pull request #248 from bbinet/prefer-canvas
Prefer the canvas renderer over dom.
2013-03-03 06:19:12 -08:00
Bruno Binet
0a462f1254 Prefer the canvas renderer over dom. 2013-03-03 15:11:27 +01:00
Éric Lemoine
6b9e79171b SIMPLE and WHITESPACE builds 2013-03-03 15:05:02 +01:00
Tom Payne
a94418edab Add ol.tilegrid.XYZ tests 2013-03-03 14:48:37 +01:00
Tom Payne
00ce5c6a78 Add hyperbolic functions 2013-03-03 14:47:25 +01:00
Frederic Junod
0a80feccfc Allow touch event (touchstart) to fire click events 2013-03-03 14:45:12 +01:00
Frederic Junod
c72877b33b Listen to both click and touchend events 2013-03-03 14:45:12 +01:00
ahocevar
9d1f737bce ol.Filter is now a (base) class, not an interface any more
ol.Filter can now also be used to provide a simple filter that
just evaluates a user provided filter function against a
feature.
2013-03-03 14:38:04 +01:00
Tim Schaub
5d917ebed6 Helper functions for running tests after xhr 2013-03-03 14:29:22 +01:00
Frédéric Junod
b14912567b Merge pull request #244 from fredj/zoom-control
Zoom control
2013-03-03 04:37:44 -08:00
Tom Payne
bf944e158a Make Proj4js classes and functions private 2013-03-03 13:14:08 +01:00
Tom Payne
fcc620af7d Separate ol.projection module from ol.Projection class 2013-03-03 13:09:13 +01:00
Tom Payne
3e420313a2 Only require things that start with a capital letter 2013-03-03 13:08:34 +01:00
Frederic Junod
0fcc06b8ae Set ol-zoom content in css using :before pseudo class 2013-03-03 12:23:29 +01:00
Tom Payne
f6575f3195 Add EPSG:4326 example 2013-03-03 12:22:24 +01:00
Tom Payne
17bd715495 Cope with axis orientation in single image WMS sources 2013-03-03 12:22:24 +01:00
Tom Payne
66e5b1d736 Cope with axis orientation for tiled WMS sources 2013-03-03 12:22:24 +01:00
Tom Payne
6b26cbfb38 Refactor projection architecture 2013-03-03 12:22:24 +01:00
Frederic Junod
7d79a77052 Remove css size dependent rule (hover color) 2013-03-03 12:10:12 +01:00
Tim Schaub
69b6fae744 Parser base class
GeoJSON is now a parser.  The idea is that we'll want to pass parsers to sources or protocols and want a known type.
2013-03-03 11:50:51 +01:00
Bruno Binet
9053e1dfc8 Merge pull request #237 from bbinet/tilegrid_extent_cleanup
Remove extent property from ol.tilegrid.TileGridOptions
2013-03-03 02:20:52 -08:00
Frederic Junod
66d4c44159 Rename ol.ViewHint.PANNING to ol.ViewHint.INTERACTING 2013-03-03 10:44:58 +01:00
Tim Schaub
93ab45432b Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-03 09:46:11 +01:00
Tim Schaub
b52d283641 Allow geometries to use a shared vertex array
The ol.geom.SharedVertices structure represents a flattened array of vertex coordinates.  This is intended to support optimal WebGL rendering.
2013-03-02 18:39:24 +01:00
ahocevar
bdfa2cc88c Fixing return type to make Closure compiler happy 2013-03-02 17:44:15 +01:00
ahocevar
f4a4522eb4 Giving vector layers the style they deserve
Now vector layers can have a style. ol.Style instances have an
apply method to get the symbolizer literals for a feature. If the
layer does not have a style defined, there is also a static
applyDefaultStyle function on ol.Style to get the default
symbolizer literals for a feature. The vector layer also got a
groupFeaturesBySymbolizerLiteral method, which returns an array
with features grouped by symbolizer, as needed by the canvas
renderer.
2013-03-02 17:38:01 +01:00
ahocevar
fcd5804d2d Symbolizer and SymbolizerLiteral as base class, not interface 2013-03-02 14:08:52 +01:00
ahocevar
da7820121f Renaming the 'evaluate' method to 'applies' 2013-03-02 12:50:53 +01:00
Bruno Binet
4bdf59bc6b Remove extent property from ol.tilegrid.TileGridOptions
This follows tilegrid extent_ property removal from #216.
2013-03-02 10:36:11 +01:00
Frédéric Junod
8a66d69d3b Merge pull request #235 from fredj/tilejson-externs
Fix 'grids' type declaration.
2013-03-01 01:17:59 -08:00
Tim Schaub
ff27fd33a1 Merge pull request #232 from tschaub/projection-tests
Projection tests
2013-02-27 21:06:54 -08:00
Frédéric Junod
709b5f2e73 Merge pull request #236 from fredj/exports
Add some missing exports and fix side-by-side example
2013-02-27 12:51:43 -08:00
Frederic Junod
5ccf94a395 Do not use goog.now() in the examples (see #229) 2013-02-27 13:58:30 +01:00
Frederic Junod
90cb0e8fcb Export ol.easing.* 2013-02-27 13:52:39 +01:00
Frederic Junod
dda4060d84 Export ol.animation.zoom 2013-02-27 13:35:32 +01:00
Frederic Junod
7a8b331213 Fix 'grids' type declaration.
grids property is optional.
see: https://github.com/mapbox/tilejson-spec/blob/master/2.0.0/README.md
2013-02-27 10:18:19 +01:00
Frederic Junod
3b74f72c56 Add optional kinetic parameter. 2013-02-26 10:54:15 +01:00
Frederic Junod
20e8eab142 Add missing 'protected' comment for targetTouches prop. 2013-02-26 09:46:24 +01:00
Frederic Junod
585c397a0f Reset position on touch end 2013-02-26 08:58:47 +01:00
Frederic Junod
c0aa50abfc Split TouchRotateAndZoom interaction.
Split TouchRotateAndZoom interaction into two new interaction:
TouchRotate and TouchZoom.
2013-02-26 08:58:47 +01:00
Tim Schaub
52da64564c Tests for getting transforms
These are regression tests for #231.
2013-02-25 11:40:55 -07:00
Tim Schaub
ca85c26537 Method for removing cached transforms 2013-02-25 11:28:14 -07:00
Tim Schaub
940ba8afa7 Stray debugger 2013-02-25 11:26:04 -07:00
Tim Schaub
72ba8c4cbd Smoke test for ol.Projection.getTransformFromCodes 2013-02-25 10:36:21 -07:00
Tim Schaub
48e69f7559 Unused var 2013-02-25 10:36:21 -07:00
Tim Schaub
86262bf17e Space for linter 2013-02-25 10:36:21 -07:00
Tim Schaub
6ceae978bf Merge pull request #231 from probins/projfix
Fix bug/typo in projection.getTransform
2013-02-25 09:33:10 -08:00
Peter Robins
343d52cff1 Fix bug/typo in projection.getTransform
Destination projection is currently using the source projection code
2013-02-25 15:18:51 +00:00
Éric Lemoine
d716a2dec1 Merge pull request #228 from elemoine/fixcomments
Update comments in hosted examples loader
2013-02-22 14:24:20 -08:00
Éric Lemoine
31bcd2832e Update comments in hosted examples loader 2013-02-22 23:23:04 +01:00
Éric Lemoine
a8bb782e99 Merge pull request #227 from elemoine/removestandalone
Remove examples/standalone dir
2013-02-22 14:22:08 -08:00
Éric Lemoine
981c1dcbd7 Remove examples/standalone dir 2013-02-22 23:16:36 +01:00
Tom Payne
6ce3ebba5b Merge pull request #226 from twpayne/preserve-low-resolution-tiles
Preserve low resolution tiles
2013-02-22 02:14:41 -08:00
Tom Payne
c36de098bd Avoid creating a TileCoord object when marking used tiles 2013-02-21 16:52:52 +01:00
Tom Payne
4c9b70fa5c Move useLowResolutionTiles from layer renderer to tile source 2013-02-21 16:47:10 +01:00
Tom Payne
b139757987 Merge pull request #224 from twpayne/jslint-clean-ups
Satisfy JSLint
2013-02-21 07:23:56 -08:00
Tom Payne
47e799ced0 Mark all low resolution tiles as used to prevent cache expiration 2013-02-21 16:19:38 +01:00
Tom Payne
57b446fa0a Implement useTile for image tile sources with caches 2013-02-21 16:14:15 +01:00
Tom Payne
e68c1adbae Add ol.source.TileSource.useTile 2013-02-21 16:13:34 +01:00
Tom Payne
e513b8cc39 Make it explicit that functions operate on tile sources 2013-02-21 16:12:45 +01:00
Frédéric Junod
03e502fba1 Merge pull request #225 from fredj/css-cleanup
Remove CSS color workarounds.
2013-02-21 06:35:29 -08:00
Frederic Junod
9eeea82338 Remove CSS color workarounds. 2013-02-21 15:21:17 +01:00
Tom Payne
fabcb313f1 Satisfy JSLint
JSLint complains about functions being declared in blocks.
2013-02-21 15:13:33 +01:00
Frédéric Junod
60f0bdb113 Merge pull request #168 from fredj/touch-events
Touch events support
2013-02-21 03:29:51 -08:00
Éric Lemoine
a11a98ac1d Merge pull request #221 from elemoine/imagelayer
wms-custom-proj example broken when hosted
2013-02-20 23:06:11 -08:00
Tim Schaub
e23ca1655c Confirm that arbitrary attribute names can be used 2013-02-20 10:34:10 -07:00
Tim Schaub
7ce89f1fbe Proper getAttributes method
With a59aa9bb37 we can now provide an object with user set attributes.
2013-02-20 10:33:42 -07:00
Tim Schaub
0f2f26969d Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-02-20 10:18:09 -07:00
Tim Schaub
a59aa9bb37 Merge pull request #217 from tschaub/safer-object
Allow ol.Object to be used with arbitrary keys.  Add a getKeys method.
2013-02-20 07:56:07 -08:00
Éric Lemoine
367ea0083c Windows users should run build serve 2013-02-20 14:26:55 +01:00
Éric Lemoine
da825c27da Update Run examples locally readme section 2013-02-20 14:22:13 +01:00
Éric Lemoine
528caa08c2 Merge pull request #220 from elemoine/readme
Update readme Add examples section
2013-02-20 03:56:48 -08:00
Éric Lemoine
2bc8e1a570 Example uses exported properties 2013-02-20 11:55:28 +01:00
Éric Lemoine
cf6a27fca3 Export ol.Extent.prototype.getHeight and getWidth 2013-02-20 11:54:35 +01:00
Éric Lemoine
68844007b8 Add missing goog.require's 2013-02-20 11:53:54 +01:00
Tim Schaub
689f8c9d9d Merge pull request #206 from tschaub/interim-tiles
Share common code to find loaded tiles
2013-02-20 00:52:49 -08:00
Bart van den Eijnden
efefb2554a Merge pull request #204 from bartvde/wmscapsfixes
fixes for the WMS capabilities parser (r=@elemoine)
2013-02-20 00:48:30 -08:00
Frederic Junod
8d24311bc8 Take the resolution constraint into account.
But only at the end of the pinch zoom action.
2013-02-20 09:40:19 +01:00
Éric Lemoine
f24b277dde Update readme Add examples section 2013-02-20 09:39:15 +01:00
Frederic Junod
3e4ae0d79d Stop ongoing kinetic animation 2013-02-20 09:33:04 +01:00
Frederic Junod
48ff4a95e0 Remove unused variable, coding style 2013-02-20 09:33:04 +01:00
Frederic Junod
8c1d42a318 Listen to both mouse and touch events 2013-02-20 09:33:04 +01:00
Frederic Junod
735e534095 Add ol.interaction.TouchRotateAndZoom 2013-02-20 09:33:04 +01:00
Frederic Junod
d9a1c18300 Add ol.interaction.TouchPan 2013-02-20 09:32:34 +01:00
Frederic Junod
ccd568ca3b Remove unused goog.require 2013-02-20 09:31:40 +01:00
Frederic Junod
a066b323f2 Move dblclick handling into touch handlers 2013-02-20 09:31:40 +01:00
Frederic Junod
942255e177 Listen to IE pointer events 2013-02-20 09:31:40 +01:00
Frederic Junod
0d42e08785 Add listeners for touchstart, touchmove and touchend events 2013-02-20 09:31:40 +01:00
Frederic Junod
dc40ac6831 Remove touch events handling in handleMouse* handlers 2013-02-20 09:31:39 +01:00
Frederic Junod
0296380807 Rename MapBrowserEventHandler internal handlers name 2013-02-20 09:31:39 +01:00
Tim Schaub
8f578b88b1 Removing the typed arrays
Its not clear that we will be able to leverage the Float64Array.  It may also be that the overhead of constructing these small arrays negates any benefit of faster access.  And for all coordinate arrays, we'll need arrays that grow/shrink.
2013-02-20 01:15:39 -07:00
Tim Schaub
176f18c937 Merge branch 'master' of github.com:openlayers/ol3 into vector
Resolved conflicts:
  src/ol/renderer/canvas/canvasrenderer.js
2013-02-20 00:38:07 -07:00
Tim Schaub
d642628545 Example syntax 2013-02-20 00:21:08 -07:00
Tim Schaub
9cac8ec2f6 Moving GeoJSON into parser package
Need to discuss whether we want all to require constructing a new parser.  I liked the simple `ol.io.geojson.read` function.
2013-02-20 00:09:38 -07:00
Tim Schaub
735f490f56 Treating geometry as just another attribute
The first set geometry is considered the default.  As an added bonus, we're back to a single argument constructor.  Later, we could allow a schema to be set.  This would be done before setting values (calling constructor with no args).
2013-02-20 00:02:50 -07:00
Tim Schaub
0015e466dc Allow instanceof checks for geometries 2013-02-19 23:21:05 -07:00
Tim Schaub
083404bd58 Provides for tests 2013-02-19 23:15:45 -07:00
Tim Schaub
438664a190 Renaming literals 2013-02-19 22:35:29 -07:00
Tim Schaub
7141721bb1 Symbolizers with method for creating literals 2013-02-19 22:24:21 -07:00
Tim Schaub
1faa6214f1 Expression literal 2013-02-19 21:38:10 -07:00
Tim Schaub
360e37146c Rule is filter and symbolizer, style is collection of rules 2013-02-19 21:37:40 -07:00
Tim Schaub
2919906ba6 Add method for getting keys 2013-02-19 14:47:49 -07:00
Tim Schaub
d6ff58305d Using a dedicated object for value storage
Without this, we are limited in the key names that we can accept from users.  And because of compiler renaming, we don't know ahead of time what the limitations are (e.g. the key 'a' may clobber the 'set' method).
2013-02-19 14:35:11 -07:00
Tim Schaub
0707deb465 Properties set with set should not be accessed with bracket 2013-02-19 14:28:59 -07:00
Tim Schaub
052e995f2e Key in obj check not appropriate for user supplied keys 2013-02-19 14:19:40 -07:00
Tim Schaub
6cfc36d8cc Using hasOwnProperty is better for user keys on objects we control 2013-02-19 14:17:58 -07:00
Tim Schaub
b9507de3ea Removing unnecessary overhead 2013-02-19 14:14:36 -07:00
Tim Schaub
3698049543 View needs to call constructor on super 2013-02-19 14:03:48 -07:00
Tim Schaub
eef683fcdb Indentation for linter 2013-02-19 13:58:43 -07:00
Tim Schaub
80dc7b5bf7 Accept custom isLoaded method in findLoadedTiles method 2013-02-19 12:13:58 -07:00
Bruno Binet
6e08f5ef1b Merge pull request #216 from bbinet/remove_tilegrid_extent
Remove tilegrid extent_ property
2013-02-19 08:59:06 -08:00
Tim Schaub
1b984ac06c Fewer tiles to be considered fully loaded
With 797dba2cdb we no longer have to load excess tiles to consider an extent fully loaded.
2013-02-19 09:54:41 -07:00
Frédéric Junod
cb0fb64dd9 Merge pull request #214 from fredj/supported-const
Rename *.isSupported functions to *.SUPPORTED constants
2013-02-19 08:35:59 -08:00
Bruno Binet
0835fd6b0a Remove tile grid extent_ property
This is never used in ol3.
2013-02-19 17:22:24 +01:00
Bart van den Eijnden
793a956211 Several fixes to the WMS Capabilities parser
Make sure the object structure returned is not mangled by Closure

Do not use closure XHR or JSON in the example

Use Jasmine's async support in the test cases

Get rid of some backwards compatibility now that we have a fresh start
2013-02-19 17:12:02 +01:00
Tim Schaub
b061e23606 Merge branch 'master' of github.com:openlayers/ol3 into interim-tiles 2013-02-19 08:59:23 -07:00
Frederic Junod
c117fbbf7c Rename ol.Geolocation.isSupported to ol.Geolocation.SUPPORTED.
And add the 'const' JSDoc Tags.
2013-02-19 16:51:59 +01:00
Éric Lemoine
a04774cd96 Merge pull request #210 from elemoine/imageattribution
Image layer support to attribution control
2013-02-19 07:49:43 -08:00
Bart van den Eijnden
a2bcf51272 Merge pull request #213 from bartvde/wmtsclean
Implement WMTS GetCapabilities parser.
2013-02-19 07:45:08 -08:00
Tim Schaub
1f4b34cdb8 Merge pull request #207 from tschaub/tilerange
Make tile range calculation consistent.  Tile ranges are always inclusive in their min/max values.
2013-02-19 07:43:27 -08:00
Bart van den Eijnden
5e29830462 Add WMTS GetCapabilities parser
Implements WMTS GetCapabilities parser, which depends partly on
an OWSCommon parser.

Integration with the layer source will be done at a later stage.
2013-02-19 16:32:56 +01:00
Frederic Junod
7e3dcf36a0 Rename ol.*.isSupported function to ol.*.SUPPORTED const 2013-02-19 16:14:37 +01:00
Tim Schaub
5148ad038c Sharing code with rectangle
We cannot use the rectangle constructor here because a rectangle makes an assertion about min being less than max and a range may have equal min/max.
2013-02-19 07:30:54 -07:00
Tim Schaub
797dba2cdb Correct range for extent and resolution
Tile ranges are inclusive.  When getting the tile range for an extent, the top-right corner of the extent should be considered with a different intersection policy than the bottom-left corner.
2013-02-19 07:21:42 -07:00
Éric Lemoine
82aa44fdd1 Attribution control reads attribs from frame state 2013-02-19 15:19:44 +01:00
Éric Lemoine
f540dd8689 Image layer renderers add attributions to frame state 2013-02-19 15:19:44 +01:00
Tim Schaub
184e1e782c Spare space 2013-02-19 07:19:31 -07:00
Tim Schaub
a55a6bda3b Merge pull request #208 from tschaub/shift-with-care
Calculating resolution by left shifting tile sizes, we're unnecessarily restricted in the number of zoom levels we can have.
2013-02-19 06:00:39 -08:00
Tim Schaub
c7569026db Merge branch 'vector' of github.com:openlayers/ol3 into vector 2013-02-19 06:58:23 -07:00
ahocevar
f6c93d85b0 Making linter happy 2013-02-19 14:12:38 +01:00
ahocevar
f15c2951d0 Adding RTree tests 2013-02-19 14:07:47 +01:00
Tom Payne
6e8f5ef0fd Merge pull request #202 from twpayne/proj4js-non-global
Proj4js should not have to be global
2013-02-19 03:25:05 -08:00
Tom Payne
f27c749e49 Allow Proj4js to be non-global and cache test result 2013-02-19 09:12:40 +01:00
Tim Schaub
46e31f9f9a Lint and names 2013-02-18 22:20:50 -07:00
Tim Schaub
0a5dae9ed0 Avoid left shift in resolution calculations 2013-02-18 18:37:27 -07:00
Tim Schaub
ce4b95f960 Decoupling canvas tile grid from vector source grid
If we have a gridded vector source, the grid should have something to do with the source data (e.g. the vector data is available in a regular grid).  The vector layer renderer's internal grid is for rendering canvas tiles and doesn't have anything to do with the source.
2013-02-18 17:54:13 -07:00
Tim Schaub
8b19751264 Making it explicit that this is a range of tiles
With tile range extending rectangle, a tile range that represented a single tile was not allowed.
2013-02-18 17:07:31 -07:00
Tim Schaub
0d6c54847b Removing logic that assumes occasionally stretched tiles
When the dom renderer included logic to stretch tiles so that gaps were properly filled for fractional zoom levels, we needed to take this into account when getting a tile coordinate for a given coordinate and resolution.  This was never the proper logic for a renderer that wasn't stretching occassional tiles (e.g. the WebGL renderer, the Canvas renderer, or the new DOM renderer).
2013-02-18 15:55:27 -07:00
Tim Schaub
e8c50c7290 Passing tests 2013-02-18 15:11:53 -07:00
Tim Schaub
6aa4e99fe5 Fix return from findLoadedTiles
Previously, the findInterimTiles method was returning undefined if the min x/y coord for a tile range was already in the lookup.  The return says it indicates whether all tiles for the given z are loaded.  This change corrects the return.

This change also reveals a misunderstanding of the tile range returned by `getTileRangeForExtentAndZ`.  The previous findInterimTiles method was treating max values as inclusive.  This is intuitive.  It looks like the method returns a range where max values are exclusive.
2013-02-18 14:51:39 -07:00
Tim Schaub
ddf993f0c9 Factor out common code and test
The findInterimTiles method was used in three renderers.  This change makes it available on the tile source and adds some basic tests.
2013-02-18 14:18:08 -07:00
Tim Schaub
e9fb83d4ee Use post render frame for tile pruning
We should discuss whether post render functions must be run after each render frame or not.  If these can be run after multiple render frames, it would make sense to increase the timeout.  As it is, it looks like post render functions are run for every render.  Hard to see what the benefit is in this case.
2013-02-18 11:58:43 -07:00
Tim Schaub
8defe3a3a1 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-02-18 11:51:51 -07:00
Tom Payne
4c2463dd91 Merge pull request #203 from twpayne/work-around-python-extract-all-bug
Work around extractall bug in older versions of Python
2013-02-18 10:32:04 -08:00
Tom Payne
8c2eb55f64 Work around extractall bug in older versions of Python
Python bug: http://bugs.python.org/issue4710
Refs #200
2013-02-18 19:15:31 +01:00
Tim Schaub
e30b0959e0 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-02-18 10:11:00 -07:00
Frédéric Junod
4dd78719cf Merge pull request #201 from fredj/kinetic-begin
Remove x,y params from ol.Kinetic.begin
2013-02-18 08:01:27 -08:00
Frederic Junod
e4a5744e06 Remove x,y params from ol.Kinetic.begin 2013-02-18 16:43:20 +01:00
Tom Payne
a455473a28 Merge pull request #200 from twpayne/proj4js-tests
Proj4js tests
2013-02-18 06:28:39 -08:00
Tom Payne
3a20eaed32 Merge pull request #198 from twpayne/ellipsoid
Add ellipsoid geometry functions
2013-02-18 06:27:36 -08:00
Tom Payne
7b42b62033 Add Proj4js integration tests 2013-02-18 14:44:44 +01:00
Tom Payne
cb9fbc3dec Add Proj4js to test framework 2013-02-18 14:44:35 +01:00
Tom Payne
be48a30d6a Add target to download and install Proj4js 2013-02-18 14:44:14 +01:00
Tom Payne
281f01889e Merge pull request #196 from twpayne/sphere
Add spherical geometry functions
2013-02-18 03:35:44 -08:00
Tom Payne
36a3d02816 Add ellipsoid geometry functions 2013-02-18 12:32:43 +01:00
Tom Payne
684a336dd4 Merge pull request #197 from twpayne/geolocation-all-properties
Add remaining geolocation properties
2013-02-18 01:53:04 -08:00
Tom Payne
fc9f323f83 Store heading in radians, thanks @fredj 2013-02-17 23:53:37 +01:00
Éric Lemoine
7d5ea5928c Merge pull request #149 from elemoine/singleimage
Add support for single image WMS
2013-02-17 14:19:29 -08:00
Éric Lemoine
d713c9b8ed Deal with null images 2013-02-17 23:07:58 +01:00
Éric Lemoine
be6c1a1a27 Test the image layer renderer's transform matrix 2013-02-17 22:47:19 +01:00
Éric Lemoine
85eec4e9b8 Avoid busy-waiting while images load
This is to be in conformance with the work done with #184.
2013-02-17 22:47:19 +01:00
Tom Payne
7de6cb4fd4 Add remaining geolocation properties 2013-02-16 20:19:38 +01:00
ahocevar
266111e5f1 Adding goog.provide and goog.requires 2013-02-15 23:46:32 +01:00
ahocevar
d2a22016e2 Adding extent filter tests 2013-02-15 23:43:10 +01:00
ahocevar
77b8688eae Regrouping tests 2013-02-15 23:42:22 +01:00
Tom Payne
544f399e04 Add spherical geometry functions 2013-02-15 18:07:19 +01:00
Éric Lemoine
a3c65978d1 Make ol.Image emit change events 2013-02-15 17:57:05 +01:00
Éric Lemoine
1e4229497d Do not sort resolutions array
We assert that the resolutions array is sorted instead of sorting it ourselves. This is to consistent with ol.TileGrid.
2013-02-15 17:52:06 +01:00
ahocevar
59fe714fa6 Making the linter happy 2013-02-15 17:44:09 +01:00
Éric Lemoine
e1505abe0d Rename ol.Rectangle scale to scaleFromCenter 2013-02-15 17:43:27 +01:00
ahocevar
8c03abdaa2 Adding ol.source.Vector unit tests 2013-02-15 16:25:47 +01:00
ahocevar
8cc65756bc Only attempt fast lane for AND filters 2013-02-15 16:25:29 +01:00
Tom Payne
ea6bf83c61 Merge pull request #195 from twpayne/tmp-fix-phantomjs
Temporarily work around pake's eager evaluation of variables in target names
2013-02-15 04:40:17 -08:00
Tim Schaub
be255ed6c7 Adding ol.Expression
This simple expression constructor will be used for symbolizer properties and the layer will generate symbolizer literals for rendering by evaluating any expressions with a feature as the this argument and feature attributes as the scope.  This allows generating labels that concatenate multiple attribute values together or displaying point symbols that are sized according to a population attribute divided by an area attribute, for example.

This implementation will not work in environments where the content security policy disallows the use of the Function constructor.  This is the case on browser extensions.  A more content-security-policy-friendly implementation would be to come up with a restricted grammar and write a lex/parser.  This is the road I started down, but this verison is far less code, and I think the security policy limitations are minor at this point.  This version will always be faster/lighter than a parser, so one is written in the future, it should only be pulled in where content security policy mandates it.
2013-02-14 17:19:15 -07:00
Tim Schaub
59a203b2b7 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-02-14 17:18:00 -07:00
Tom Payne
e6ed1c1a89 Temporarily work around pake's eager evaluation of variables in target names 2013-02-15 00:45:13 +01:00
Tom Payne
012cb501df Don't re-lint files that have already passed after a lint failure 2013-02-15 00:33:05 +01:00
Éric Lemoine
3d0682a4d4 Use an ImageLayer in wms-custom-proj example 2013-02-14 23:36:36 +01:00
Éric Lemoine
02843939e3 Add ol.renderer.webgl.ImageLayer 2013-02-14 23:36:36 +01:00
Éric Lemoine
17a17b01b6 Add ol.renderer.dom.ImageLayer 2013-02-14 23:36:36 +01:00
Éric Lemoine
238c695265 Add FIXME to ol.control.Attribution 2013-02-14 23:36:36 +01:00
Éric Lemoine
8ae25684f9 Add ol.source.StaticImage 2013-02-14 23:36:36 +01:00
Éric Lemoine
62b10cf878 Add ol.source.SingleImageWMS 2013-02-14 23:36:36 +01:00
Éric Lemoine
aa9f820723 Add scale to ol.Rectangle 2013-02-14 23:36:36 +01:00
Éric Lemoine
35a6cac37f Add containsExtent to ol.Extent 2013-02-14 23:36:36 +01:00
Tom Payne
f581040b0f Add ol.renderer.canvas.ImageLayer 2013-02-14 23:36:36 +01:00
Tom Payne
5a0adf2345 Add ol.source.ImageSource 2013-02-14 23:36:36 +01:00
Tom Payne
27125640ef Add ol.layer.ImageLayer 2013-02-14 23:36:36 +01:00
Éric Lemoine
cf206a103d Add ol.Image class 2013-02-14 23:36:36 +01:00
Éric Lemoine
49696390fc Add ol.ImageUrlFunction 2013-02-14 23:36:36 +01:00
Éric Lemoine
8b83345bd2 Add equals to Rectangle 2013-02-14 23:36:35 +01:00
Bart van den Eijnden
234f6bc411 Merge pull request #180 from bartvde/wmscapsclean
add WMS GetCapabilities parser for WMS 1.1.0, 1.1.1, 1.1.1 WMS-C profile
2013-02-14 05:02:39 -08:00
Frédéric Junod
b305d7fdfa Merge pull request #192 from fredj/rotation
Change view.rotate params: rotation and optional anchor.
2013-02-14 04:48:42 -08:00
Frederic Junod
34975428c4 Change view.rotate params: rotation and optional anchor. 2013-02-14 12:17:26 +01:00
Éric Lemoine
daaff1611c Merge pull request #193 from elemoine/shaders
Apply transform matrix to text coords
2013-02-14 03:01:18 -08:00
Éric Lemoine
b6b493c198 Use vec2 for vTexCoord 2013-02-14 11:54:01 +01:00
Éric Lemoine
de7a1d8f81 Apply transform matrix to text coords
With this commit the transform matrix is applied to each texture coordinate, as opposed to each fragment. This leads to less calculation on the GPU.
2013-02-14 09:56:45 +01:00
Tim Schaub
2082ba7637 Fewer, bigger tiles 2013-02-13 15:51:06 -07:00
Tim Schaub
f5c627ab51 Only listen once for tile events
Assuming browser garbage collection cannot happen while we have listeners in the global registry, we need to listenOnce to avoid memory leaks with the tile queue.
2013-02-13 15:37:33 -07:00
Bart van den Eijnden
13d95b90a3 use namespace URI instead of prefix as suggested by @tschaub and discussed with @ahocevar 2013-02-13 20:58:48 +01:00
ahocevar
6b43435262 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-02-13 12:30:16 +01:00
ahocevar
e155f870cd Fixing RTree, and using it for retrieving geometries 2013-02-13 12:29:14 +01:00
Tom Payne
83a00c13fa Don't use problematic glob function 2013-02-12 23:03:15 +01:00
Tom Payne
110720d7d3 Merge pull request #191 from twpayne/windows-build
Windows build
2013-02-12 07:24:39 -08:00
Tom Payne
9a3e090c2b Run tests on Windows 2013-02-12 16:07:34 +01:00
Frédéric Junod
b4bd1a5569 Merge pull request #190 from fredj/rotation
view.getRotation default value already set to 0.
2013-02-12 06:55:34 -08:00
Tom Payne
357ca379db Update build instructions for Windows 2013-02-12 15:47:55 +01:00
Tom Payne
3d34360070 Add build.cmd for Windows developers 2013-02-12 15:47:55 +01:00
Tom Payne
d828fee582 Set path to gjslint on Windows 2013-02-12 15:47:54 +01:00
Frederic Junod
f4e9dd5c37 view.getRotation default value already set to 0. 2013-02-12 15:37:08 +01:00
Tom Payne
169555f2be Use ifind rather than glob to work around Windows path separator nonsense 2013-02-12 15:31:30 +01:00
Tom Payne
a3e7528841 Guess paths to Windows binaries using environment variables 2013-02-12 15:30:36 +01:00
Tom Payne
4481bb011f Update to latest version of pake 2013-02-12 15:30:08 +01:00
Tom Payne
0c09083eb8 Add missing whitespace to satisfy pep8 2013-02-12 15:28:20 +01:00
Marc Jansen
192f29513e Merge pull request #189 from marcjansen/travis-tests
Fix the serve-precommit target. (r=@elemoine/@twpayne)
2013-02-12 06:10:26 -08:00
Marc Jansen
d851cac891 Fix the serve-precommit target.
When the plovr-jar is being invoked in the serve-precommit target, it needs
the JSON files in `test/` as well to have all requirements for headless testing.

This should also reenable running the testsuite on our continuous integration
server.
2013-02-12 14:28:58 +01:00
Marc Jansen
a0932c6cba Merge pull request #177 from marcjansen/build-clean
(Re)add a reallyclean target to the build. (r=@elemoine)
2013-02-12 01:57:01 -08:00
Marc Jansen
6de649f6c6 (Re)add a reallylean target to the build.
Previously we had both a `clean` and `reallyclean` in our Makefile; both
got lost when we switched to a python build.

A clean 'target' can be invoked by calling the build script with the '-c' flag:
  ./build.py -c

This commit readds the `reallyclean` target and lets it clean up a little more
than the Makefiles `clean` or `reallyclean` did. More files are deleted,
but only if these are being ignored inside of the repository (e.g. through
.gitignore files).
2013-02-12 10:11:14 +01:00
Frédéric Junod
03b10204a4 Merge pull request #173 from fredj/geolocation
Add ol.Geolocation
2013-02-08 21:57:11 -08:00
Éric Lemoine
5f5e14f253 Merge pull request #175 from elemoine/control
Simplify control architecture
2013-02-08 14:56:19 -08:00
Tim Schaub
652b7dd696 Merge pull request #184 from tschaub/less-animation
Avoid unnecessary animation loop while tiles load
2013-02-07 15:48:28 -08:00
Tim Schaub
440ea038fe Merge pull request #183 from tschaub/natural-names
More natural names for animations
2013-02-07 13:44:13 -08:00
Tim Schaub
3c4d218ec5 Only listen for first event 2013-02-07 14:06:05 -07:00
Frederic Junod
a36145fc1f Check if the Geolocation API is supported 2013-02-07 16:20:15 +01:00
Frederic Junod
44a5eca437 Add ol.Geolocation.isSupported property 2013-02-07 15:59:12 +01:00
Tom Payne
c884a916bf Merge pull request #178 from twpayne/clean-example-list-xml
Ensure ./build.py -c cleans examples/example-list.xml
2013-02-07 05:27:20 -08:00
Tom Payne
218bf2c78b Improve LRUCache containsKey test, thanks @tschaub 2013-02-07 12:21:12 +01:00
Bart van den Eijnden
f16664cb87 add an example 2013-02-07 10:45:35 +01:00
Frédéric Junod
f7ba03f4dd Merge pull request #179 from fredj/kinetic-update-arg
Change ol.Kinetic.update and begin arguments.
2013-02-07 00:08:01 -08:00
Tim Schaub
5bbd8fd9f3 Using ol.TileCache for managing canvas tiles 2013-02-06 18:23:39 -07:00
Tim Schaub
11b8c0ff47 Don't generate new tiles while animating 2013-02-06 17:47:03 -07:00
Tim Schaub
e079c19413 Don't repeatedly render while waiting for tiles to load
Instead of going into an unnecessary animation loop, we can simply wait to be notified when tiles load.

The WebGL renderer still sets frameState.animate true, but I think this too should be unnecessary (full page example works without it, side-by-side example shows it cannot yet be removed).
2013-02-06 16:10:46 -07:00
Tim Schaub
2bd29ff60e Only track tiles that are actually wanted
Instead of keeping track of wanted tile ranges, we can instead track wanted tiles individually.  This provides enough for the map to know how to prioritize tiles and should be more efficient (no extra calls to extend tile ranges or check for tile containment within a range).
2013-02-06 16:08:24 -07:00
Tim Schaub
e335b7b74a Make frame state available before rendering frame
Without this change, tiles that are enqueued on the first rendering will always get priority `ol.TileQueue.DROP` because `map.frameState_` is not yet defined (meaning a single render call doesn't result in any tiles loading).
2013-02-06 16:02:26 -07:00
Tim Schaub
a2bbdf7ccc More natural names for animations 2013-02-06 13:43:54 -07:00
Tom Payne
0b6aeb5b05 Remove unused and erroneous function, thanks @tschaub 2013-02-06 21:43:48 +01:00
Frédéric Junod
9c9fe4a9b1 Merge pull request #181 from fredj/rotation-anim
Replace ol.animation.createSpin with ol.animation.createRotateFrom
2013-02-06 08:39:22 -08:00
Frederic Junod
3355f9345d Replace ol.animation.createSpin with ol.animation.createRotateFrom 2013-02-06 17:10:21 +01:00
ahocevar
4e971b6041 Faster extent + geometry type queries
By maintaining separate R-Trees for each geometry type, we cover
the most critical query from the canvas renderer at higher
speeds. Using the filter's own evaluate method, we can now also
serve arbitrary queries, but they won't be fast.

Still needs unit tests.
2013-02-06 16:42:55 +01:00
ahocevar
619803cdeb More goog.requires fixes 2013-02-06 16:36:42 +01:00
ahocevar
a13e6bdfda Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-02-06 16:27:45 +01:00
ahocevar
61e4452c83 Adding missing and removing unused goog.requires 2013-02-06 16:26:24 +01:00
Bart van den Eijnden
6484760507 make Travis build pass again 2013-02-06 14:35:43 +01:00
Bart van den Eijnden
360c426f14 add WMS GetCapabilities parser for WMS 1.1.0, 1.1.1, 1.1.1 WMS-C profile and WMS 1.3.0 2013-02-06 14:25:57 +01:00
Frederic Junod
2fea469037 Change ol.Kinetic.update arguments.
Instead of goog.events.BrowserEvent, accept a x,y pair.
2013-02-06 12:55:15 +01:00
Tom Payne
3692918ed7 Remove unnecessary undercores, thanks @fredj 2013-02-06 12:50:34 +01:00
Tom Payne
91141f5c01 Build precommit target by default so precommit dependencies get cleaned by default 2013-02-06 11:25:15 +01:00
Tom Payne
90730e40a3 Ensure ./build.py -c cleans examples/example-list.xml 2013-02-06 11:23:04 +01:00
Frederic Junod
753b37ad47 Add 'undefined' return type for all get* functions 2013-02-06 11:00:55 +01:00
Frederic Junod
a679bb7bef Set handleProjectionChanged from protected to private 2013-02-06 10:59:18 +01:00
Tom Payne
0c205da290 Merge pull request #176 from twpayne/lru-cache
LRU Cache
2013-02-06 01:15:04 -08:00
Tom Payne
b1df0cac65 Rename object properties so compiler can rename them 2013-02-06 10:08:03 +01:00
Tom Payne
c37837ba34 Use an object literal rather than a class for LRUCache entries 2013-02-06 10:08:03 +01:00
Tim Schaub
0c48fbd188 Check sooner and only assert if duration hasn't passed 2013-02-05 10:50:18 -07:00
ahocevar
089b7013c2 Merge branch 'master' of github.com:openlayers/ol3 into vector
Conflicts:
	src/ol/renderer/canvas/canvasrenderer.js
	test/ol.html
2013-02-05 17:28:36 +01:00
ahocevar
386b97cf9a Merge branch 'master' of github.com:openlayers/ol3 into vector
Conflicts:
	src/ol/renderer/canvas/canvasrenderer.js
	test/ol.html
2013-02-05 17:17:09 +01:00
ahocevar
dafa48da2e Using spatial index and combined filters
This should significantly speed up feature access. Needs unit
tests.
2013-02-04 22:51:58 +01:00
ahocevar
c58f0afcc3 New R-Tree struct for spatial indexing.
This needs unit tests.
2013-02-04 22:50:59 +01:00
ahocevar
428793cd7c New filters for extent and logical filtering
These need unit tests.
2013-02-04 22:50:21 +01:00
Tom Payne
c34fe519c0 Remove ol.structs.LinkedMap 2013-02-04 18:37:12 +01:00
Tom Payne
1f460975bb Port WebGL texture cache to ol.structs.LRUCache 2013-02-04 18:37:12 +01:00
Tom Payne
06eb3040af Port ol.TileCache to ol.structs.LRUCache 2013-02-04 18:37:12 +01:00
Tom Payne
c99ec2d834 Add ol.structs.LRUCache 2013-02-04 18:37:12 +01:00
Frederic Junod
114280e60e Add a marker at the device position 2013-02-04 12:29:20 +01:00
Éric Lemoine
bde61a0b4b Simplify control architecture 2013-02-04 10:18:33 +01:00
Frederic Junod
6675de437f Handle projection change in ol.Geolocation 2013-02-04 09:46:31 +01:00
ahocevar
43dd9ca68c Don't use unshift 2013-02-02 12:29:08 +01:00
Frederic Junod
38f245c5c8 Add projection property to ol.Geolocation 2013-02-01 13:53:55 +01:00
Frederic Junod
37e172f043 Add missing export file for ol.Geolocation 2013-02-01 13:50:43 +01:00
Frederic Junod
035f487dc5 Add ol.Geolocation 2013-02-01 11:10:17 +01:00
Éric Lemoine
f735a597fe Merge pull request #171 from elemoine/testdeps2
Use namespaces for tests
2013-01-31 02:02:33 -08:00
Éric Lemoine
bd2ab93e9e Merge pull request #172 from elemoine/missingvar
Missing var's in a test file
2013-01-31 02:01:55 -08:00
Éric Lemoine
bfb6d0ca87 Missing var's in a test file 2013-01-31 11:01:06 +01:00
Tom Payne
4f1d3c5201 Merge pull request #169 from twpayne/check-requires
Fix use of goog.requires
2013-01-31 01:36:32 -08:00
Éric Lemoine
b6ed5f2164 Use namespaces for tests
With this commit test files provide namespaces (using goog.provide). This fixes the issue reported by @bartvde where goog objects cannot be used in Jasmine "describe" functions. It also frees us from having to add script tags for the test files in test/ol.html.
2013-01-31 10:18:21 +01:00
Tom Payne
93976a5d9f Fix requires relating to recent commits 2013-01-30 23:47:13 +01:00
Tom Payne
f9eb7dc477 Add missing requires to examples 2013-01-30 23:47:13 +01:00
Tom Payne
e6eb401e36 Add missing goog.requires 2013-01-30 23:47:13 +01:00
Tom Payne
c9e8a92265 Detect missing goog.requires 2013-01-30 22:48:04 +01:00
Tom Payne
6e247d9331 Rename modules for support detection 2013-01-30 22:48:03 +01:00
Tom Payne
b6f856f962 Remove unused goog.requires 2013-01-30 22:48:03 +01:00
Tom Payne
7d5cc39555 Detect unused goog.requires 2013-01-30 22:48:03 +01:00
ahocevar
9a0f509a94 Use objects instead of arrays for geometry type cache
Also trying to reference features directly here instead of
storing feature ids in the index. We'll see if this is good when
we have an index for tile coords as well and want to filter
with multiple filters, accessing multiple indices.
2013-01-30 18:03:27 +01:00
ahocevar
e61c26830e Manage tile cache
This change implements a LRU policy for tile cachint, and keeps
128 tiles in the cache by default.
2013-01-30 17:09:43 +01:00
ahocevar
1ecbc36a39 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-01-30 15:54:24 +01:00
Bruno Binet
a64e4ae579 Merge pull request #164 from bbinet/kinetic
Add support for kinetic effect while dragging
2013-01-30 06:26:01 -08:00
Bruno Binet
d2f30986db Set kinetic getDuration instance method to @private 2013-01-30 14:46:49 +01:00
Bruno Binet
dff8c2b2b2 Renaming to be more consistent with ol3 style
s/v_0/initialVelocity/
s/v_min/minVelocity/
2013-01-30 14:46:49 +01:00
Bruno Binet
d91e1d30d4 Get rid of binarySelect to find the first point. 2013-01-30 14:46:49 +01:00
Bruno Binet
79849888db Kinetic now returns directly the pre-render function
instead of returning the kinetic easing function only.

(thanks @fredj)
2013-01-29 15:34:11 +01:00
Bruno Binet
2bb8a5cfd9 Stop current kinetic animation on DOWN events 2013-01-29 14:32:38 +01:00
Éric Lemoine
773e34d736 Merge pull request #165 from elemoine/classname
Change class names in DOM renderer
2013-01-29 04:02:18 -08:00
Bruno Binet
39cbba3eb7 Add a frameState property to ol.MapBrowserEvent
so that we will be able to retrieve the current center of the view2d from the
framestate in the dragpan interaction.
2013-01-29 13:00:02 +01:00
Bruno Binet
d54864695d Add a removePreRenderFunction method to ol.Map
This will remove the pre-render function from preRenderFunctions_ array if
found.
2013-01-29 12:56:15 +01:00
Bruno Binet
7d0b4c757e Activate kinetic effect by default 2013-01-29 12:39:52 +01:00
Bruno Binet
8a9738d755 Add support for kinetic effect while dragging.
Only dragpan interaction is supported for now.

The kinetic effect use the maths below (thx @twpayne):

Rate of decay (number, must be negative) = α
Minimum velocity (pixels/millisecond) = v_min
Initial velocity (pixels/millisecond) = v₀

Velocity at time t (pixels/millisecond) =
    α⋅t
v₀⋅ℯ

Distance travelled at time t (pixels) =
   ⎛ α⋅t    ⎞
v₀⋅⎝ℯ    - 1⎠
─────────────
      α

Duration of animation (milliseconds) =
   ⎛v_min⎞
log⎜─────⎟
   ⎝  v₀ ⎠
──────────
    α

Total distance travelled (pixels) =
-v₀ + v_min
───────────
     α

Easing function =
   ⎛ α⋅duration⋅t    ⎞
v₀⋅⎝ℯ             - 1⎠
──────────────────────
     -v₀ + v_min
2013-01-29 12:39:52 +01:00
Frédéric Junod
47fbdb53e2 Merge pull request #167 from fredj/mapbrowserevent-listen
Listen to all ol.MapBrowserEvent events
2013-01-29 03:15:19 -08:00
Frederic Junod
a980de7830 Listen to all ol.MapBrowserEvent events 2013-01-29 11:29:27 +01:00
Tom Payne
bef1b9aea5 Merge pull request #163 from twpayne/attribution-control-clean-ups
Attribution control clean ups
2013-01-29 02:22:30 -08:00
Tom Payne
2e401b43f4 Make attribution control unselectable 2013-01-29 11:21:57 +01:00
Tom Payne
c2c87a80a1 Remove duplicate CSS rule 2013-01-29 11:21:57 +01:00
Tom Payne
d22c441795 Merge pull request #162 from twpayne/canvas-visibility-and-opacity
Canvas visibility and opacity
2013-01-29 02:20:39 -08:00
Éric Lemoine
0c25aa95ea Merge pull request #166 from elemoine/extracomma
Change a comma to a semi-colon (thanks @bbinet)
2013-01-29 01:34:23 -08:00
Éric Lemoine
713828d953 Change a comma to a semi-colon (thanks @bbinet) 2013-01-29 10:33:35 +01:00
Éric Lemoine
8713e84821 Change class names in DOM renderer 2013-01-29 10:24:25 +01:00
Tom Payne
3bd1b92b05 Promote renderFrame from ol.renderer.*.LayerRender to ol.renderer.LayerRenderer 2013-01-28 19:56:57 +01:00
Tom Payne
5558d6108c Promote handleLayerRendererChange from ol.renderer.webgl.Map to ol.renderer.Map 2013-01-28 19:56:56 +01:00
Tom Payne
49734de240 Promote dispatchChangeEvent from ol.renderer.webgl.Layer to ol.renderer.Layer 2013-01-28 19:56:56 +01:00
Tom Payne
4701d117f7 Always dispatch change events on load/opacity/visible changes 2013-01-28 19:56:56 +01:00
Bart van den Eijnden
c51b2b3fef add info about install Jasmine and the precommit hook from build.py 2013-01-28 15:18:15 +01:00
Frédéric Junod
eb103d3bd1 Merge pull request #160 from fredj/dblclick-unlisten
Remove event listener cleanups
2013-01-28 04:19:24 -08:00
Éric Lemoine
faee272fac Merge pull request #161 from elemoine/nullimage
Do not draw image if image is null
2013-01-28 03:51:17 -08:00
Éric Lemoine
1d2551dbcb Do not draw image if image is null 2013-01-28 12:41:46 +01:00
Frederic Junod
f8646394ae Remove event listener with goog.events.unlistenByKey 2013-01-28 10:37:32 +01:00
Frederic Junod
9e030854b2 Don't remove event listener for this.handleUp_ twice.
The listener key is in this.dragListenerKeys_
2013-01-28 10:31:24 +01:00
Frederic Junod
01098c4d8c Remove event listener with goog.events.unlistenByKey 2013-01-28 10:26:09 +01:00
Frederic Junod
f208e99c64 Add missing goog.events.EventType.DBLCLICK argument to unlisten 2013-01-28 09:54:41 +01:00
Frederic Junod
43fe004917 Add a comment about msTouchAction css on viewport 2013-01-25 17:37:04 +01:00
Frédéric Junod
36500682c3 Merge pull request #157 from fredj/ms-touch
Direct all pointer events to js code (IE pointer events)
see: http://msdn.microsoft.com/en-us/library/ie/hh673557(v=vs.85).aspx
2013-01-25 08:16:05 -08:00
ahocevar
65b3bb70a1 Some optimizations
* Tiles are now cut out of the sketch renderer in a separate
  pass. This ensures that point features at tile borders appear
  at both sides of the border. However, if such features get
  added in a later tileRange rendering pass, tiles from a
  previous rendering pass will still not have that feature.
* The tile canvas is only created once, and cloneNode(false) is
  used to get a canvas for a new tile.
2013-01-25 16:46:12 +01:00
Frederic Junod
9c794d8b00 Direct all pointer events to js code (IE pointer events).
see: http://msdn.microsoft.com/en-us/library/ie/hh673557(v=vs.85).aspx
2013-01-25 16:38:45 +01:00
Frederic Junod
bf63ddfebe Test if browser supports Windows Pointer events 2013-01-25 16:38:45 +01:00
Marc Jansen
a6f987049e Merge pull request #154 from marcjansen/todo
Add fixme/todo target to build.py.
2013-01-24 23:47:52 -08:00
Tim Schaub
a7737150fe Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-01-24 22:21:25 -07:00
Tim Schaub
4e3f984796 Properly rendering features to canvas tiles
It looks like this approach will work well for panning (as anticipated).  For animated zooming, it is not going to work as is.  It looks like the canvas tile generation is too much for this type of animation loop.  Though there are clearly still areas for optimization:

 * Don't create new tiles while animating between zoom levels.  Using existing tiles only while animating should bring a significant performance gain.
 * Simple spatial index for tiles - each tile coord in the matrix could have a feature lookup object (keyed by id).  This needs to account for rendered dimension (as witnessed by the point being cut by a tile).  Given that the current example uses only three features, adding the spatial index should only be a minor improvement.
 * Reuse a fixed set of canvas tiles that are generated at construction (and increased/decreased with view size changes).
 * If a fixed set of tiles is not used, at least new ones could be cloned from existing ones (minor).
 * Do some profiling to look for more ideas.

In addition, world-wrapping needs addressed.  I don't think this renderer is the right (or at least the only) place to address this.  And the cache of tiles needs to be managed for real.  But hey, at least we've got a working tiled vector renderer now.
2013-01-24 21:57:12 -07:00
Tim Schaub
f2b325b430 Adding convenient tile labels for debugging
This will be removed when behavior is right.
2013-01-24 17:16:54 -07:00
Tim Schaub
033daa425b Reverting b0a7badc8f
I think it's complicating things at this point to deal with this.  Unfortunately, it's not proper dateline wrapping as is (only arbitrary tile range extent wrapping).
2013-01-24 17:15:32 -07:00
Tim Schaub
8d5a45d827 Set up example for debugging 2013-01-24 16:51:10 -07:00
Éric Lemoine
fc9bfe8460 Merge pull request #159 from elemoine/renderpath
Simplify map renderer
2013-01-24 14:23:22 -08:00
Éric Lemoine
98b264e8ce Add comment 2013-01-24 22:31:57 +01:00
Éric Lemoine
80b38e608b No more need for listener keys array 2013-01-24 22:31:53 +01:00
Éric Lemoine
4a64837ba1 Make map handle background color changes 2013-01-24 22:31:08 +01:00
Éric Lemoine
2a28b7c699 Add comment 2013-01-24 22:31:08 +01:00
Éric Lemoine
15898b559b Make map handle size changes 2013-01-24 22:31:08 +01:00
Éric Lemoine
71a462cd54 Make map handle view changes
With the frameState stuff the map renderer need not listen to view changes. The map renderer receives orders from the map. These orders are renderFrame_ calls with frameState objects representing the current state.
2013-01-24 22:31:06 +01:00
Tom Payne
0bb31150b0 Merge pull request #148 from twpayne/anchored-elements
Replace ol.overlay.Overlay with ol.AnchoredElement
2013-01-24 09:36:40 -08:00
ahocevar
b0a7badc8f Started on proper date line wrapping
What we want in the end is vector tiles repeated just as raster
tiles. This change only avoids repeated tiles with the same
content being rendered and stored in the cache.
2013-01-24 17:29:21 +01:00
Tom Payne
309ddad4fe Merge pull request #152 from twpayne/texture-cache-expiry
Texture cache expiry
2013-01-24 07:36:06 -08:00
Tom Payne
8cac270234 Use + rather than Number for string to number conversion 2013-01-24 16:31:56 +01:00
Tom Payne
ace0728e8a Merge pull request #151 from twpayne/tile-cache-expiry
Tile cache expiry
2013-01-24 07:24:33 -08:00
ahocevar
fe605ceebb Better, but still not all the way there 2013-01-24 16:21:30 +01:00
Éric Lemoine
197ef89964 Merge pull request #156 from elemoine/examplefix
Remove ref to userProjection
2013-01-24 01:35:14 -08:00
Éric Lemoine
dc9fb06185 Remove ref to userProjection
The wms-custom-proj example sets a userProjection in the map while userProjection is gone for now. It was removed in 927cffb2.
2013-01-24 10:32:32 +01:00
Éric Lemoine
0945f19620 Merge pull request #155 from elemoine/typo
Fix typo in a typedef
2013-01-24 01:29:43 -08:00
Éric Lemoine
d04b2bb2bd Fix typo 2013-01-24 10:28:28 +01:00
Tim Schaub
9bd1ab99d1 Toward tiled vector rendering 2013-01-24 02:06:40 -07:00
Marc Jansen
69b915620d Add fixme/todo target to build.py.
Will show a list of lines in sourcefiles that either contains the string TODO
or FIXME.

Example output:

    user@host:~/src/ol3 $ ./build.py fixme
      src/ol/source/xyzsource.js has 4 matches:
        #1         // FIXME add minZoom support
        #46        // FIXME use goog.nullFunction ?
        #59        // FIXME factor out common code
        #76        // FIXME we shouldn't need a typecast here

      src/ol/interaction/dragpaninteraction.js has 2 matches:
        #1         // FIXME works for View2D only
        #39        // FIXME works for View2D only
2013-01-24 10:04:36 +01:00
Tim Schaub
483e309216 Merge pull request #153 from tschaub/extent
Care with transform
2013-01-24 00:56:18 -08:00
Tim Schaub
3ccfaebcfc Punctuated 2013-01-23 22:18:00 -07:00
Tim Schaub
afb9add911 Checked with third-party tool 2013-01-23 22:12:17 -07:00
Tim Schaub
0845dea366 Care with transform
Since the transform method takes an arbitrary transform function, new coordinates may not be ordered in the same way as the originals.
2013-01-23 22:03:08 -07:00
ahocevar
4a54cc69ce Tiled vector rendering
This needs more work still - see inline TODOs. It also has a
major bug - rendered vector features do not scale and do not
change their offset during panning. So only the initial view is
correct.
2013-01-23 21:37:06 +01:00
Tom Payne
b0eb7a4b9b Port ol.TileCache to ol.structs.LinkedMap 2013-01-23 19:59:03 +01:00
Tom Payne
0d7196c098 Expire old textures from texture cache 2013-01-23 19:59:02 +01:00
Tom Payne
3f6ef77a5a Add ol.structs.LinkedMap.prototype.peekLastKey 2013-01-23 19:59:02 +01:00
Tom Payne
c7d0712480 Rename goog.structs.LinkedMap to ol.structs.LinkedMap 2013-01-23 19:59:02 +01:00
Shawn Brenneman
140f8c8683 Add goog.structs.LinkedMap from Closure Library 2013-01-23 19:58:50 +01:00
Frédéric Junod
d6c96c058f Merge pull request #133 from fredj/options-obj
ol.animation.create* functions should use options objects rather than positional arguments
2013-01-23 08:50:22 -08:00
Tom Payne
0f3d708525 Use ol.TileCache in ol.source.DebugTileSource 2013-01-23 17:22:01 +01:00
Tom Payne
09ec444958 Use ol.TileCache in ol.source.ImageTileSource 2013-01-23 17:22:01 +01:00
Tom Payne
b034299158 Add ol.TileCache 2013-01-23 17:22:00 +01:00
Frederic Junod
7568688301 Use option object rather than positional arguments for ol.animation.create* functions 2013-01-23 17:07:55 +01:00
Tom Payne
b770aaa2f5 Add tile cache expiry infrastructure 2013-01-23 14:31:24 +01:00
Marc Jansen
6d3e0778e1 Merge pull request #150 from marcjansen/zoombtn-radius
Adjust border-radius of zoom buttons.
2013-01-22 23:56:28 -08:00
Marc Jansen
9af78dd2fe Adjust border-radius of zoom buttons. 2013-01-23 08:14:55 +01:00
Tim Schaub
07a56bfe3f Parsing GeoJSON FeatureCollection 2013-01-22 17:41:22 -07:00
Tim Schaub
35f6984e69 Unused var and some notes 2013-01-22 11:21:35 -07:00
Tom Payne
dda51ecec2 Replace ol.overlay.Overlay with ol.AnchoredElement
This commit adds several features:
- rename of class to better reflect its behaviour
- full ol.Object support
- integration with postrender event for integration with animations and
  render loop
- minimised DOM modifications
- more precise positioning
- element placed in DIV to avoid modifications to user-supplied element
- correctly handle changes to the positioning property
2013-01-22 15:12:25 +01:00
Tom Payne
4ab09d6df2 Merge pull request #140 from twpayne/array-clean-ups
Array clean ups
2013-01-22 06:00:04 -08:00
ahocevar
4e6b864e27 Making default symbolizers compiler safe 2013-01-22 14:09:04 +01:00
ahocevar
16865fc1fa Removing no longer needed Tiled Vector Source. 2013-01-22 13:24:37 +01:00
Tom Payne
f2164e5028 Export map.getLayers 2013-01-22 13:08:40 +01:00
Marc Jansen
577fc86684 Merge pull request #147 from marcjansen/goog.now
Use goog.now() instead of Date.now().
2013-01-22 03:13:15 -08:00
Marc Jansen
8d979127fc Use goog.now() instead of Date.now().
Date.now() is not supported in Internet Explorer up to IE 9. The goog.now()
method can be used as a replacement.
2013-01-22 12:01:44 +01:00
Tim Schaub
c50fcecf42 Vector rendering example
There is a ton of room for optimization here.  The vector layer renderer should only render dirty areas and could maintain a cache of rendered canvas tiles.  The vector source could have a simple spatial index for features (by tile coord).  Need to also discuss how to work with this animation framework (to avoid the excess work while waiting for tiles to load on every other layer).
2013-01-22 01:46:27 -07:00
Tim Schaub
1dd17fc88f Rendering vector layers 2013-01-22 01:36:32 -07:00
Éric Lemoine
a1ff01e7a5 Merge pull request #145 from elemoine/readme
Update readme.md
2013-01-21 23:42:01 -08:00
Éric Lemoine
8d56b5f261 Update readme.md 2013-01-22 08:39:37 +01:00
Tim Schaub
92c8c9c5df Shape extends point 2013-01-21 23:20:52 -07:00
Tim Schaub
45af404f4b Initial tests for filter 2013-01-21 18:06:29 -07:00
Tim Schaub
e4132813af Shorter name 2013-01-21 18:06:14 -07:00
Tim Schaub
f80f4fab36 Symbolizer literals will be cached by the renderer 2013-01-21 18:03:25 -07:00
Tim Schaub
0f33561af2 Skeleton canvas renderer for vector layer 2013-01-21 18:02:28 -07:00
Tim Schaub
1a63bf078f Basic vector source and layer
The vector source maintains a cache of features.  These are indexed by geometry type in anticipation of the renderer's needs.
2013-01-21 17:59:09 -07:00
Tim Schaub
9543ce4d4a Initial filter package, geometry type filtering only for now 2013-01-21 17:57:12 -07:00
Tim Schaub
89bc69ccc1 Types for rings and mixed collections 2013-01-21 17:56:12 -07:00
Tim Schaub
6ef2184c83 Geometry type enumeration 2013-01-21 17:46:41 -07:00
Tim Schaub
0fad23970c Disallowing mixed geometry collections for now 2013-01-21 14:46:45 -07:00
Tim Schaub
7ef127cfac Shorter name for ol.Feature 2013-01-21 14:46:02 -07:00
Tim Schaub
b4d44f815f Add getBounds to geometry 2013-01-21 12:59:04 -07:00
Tim Schaub
216d30ddc1 Getting the nanometer precision we deserve with web mercator 2013-01-21 10:52:17 -07:00
Tim Schaub
3cf3ef629c Lint
Caught by `build.py precommit` not `build.py lint`.
2013-01-21 10:51:38 -07:00
Frederic Junod
be64408728 Export map as jpeg instead of png 2013-01-21 16:13:19 +01:00
Frédéric Junod
9969a64d81 Merge pull request #143 from fredj/get-renderer-canvas
Get renderer canvas
2013-01-21 07:09:18 -08:00
Frederic Junod
8cbe0fbbbb Export canvas map as jpeg image 2013-01-21 16:08:33 +01:00
Tom Payne
c0ef84fd5d Remove stale dependencies 2013-01-21 16:07:06 +01:00
ahocevar
300c1048bd Cache and bucket fixes 2013-01-21 15:56:35 +01:00
Frederic Junod
2f2ea373ca Add ol.renderer.Map.getCanvas function. Only valid with the canvas and webgl renderers 2013-01-21 15:18:18 +01:00
Frederic Junod
c836c8d9c4 Add ol.Map.getRenderer function 2013-01-21 15:08:15 +01:00
Tom Payne
f1b11866fd Remove dependency on goog.array 2013-01-21 14:20:12 +01:00
Tom Payne
3967e17366 Use in-place filtering for pre-render functions 2013-01-21 14:20:12 +01:00
Tom Payne
d76db2005f Use for loop for iterating over layers 2013-01-21 14:20:12 +01:00
Tom Payne
7229428741 Use in-place filtering for post-render functions 2013-01-21 14:20:11 +01:00
Tom Payne
386bb636bb Add missing dependencies on goog.array 2013-01-21 14:20:11 +01:00
ahocevar
e060498fad Fixing compiler errors (mostly caused by typos) 2013-01-21 13:41:18 +01:00
Frédéric Junod
a51cd3b9bd Merge pull request #139 from fredj/easing
Add new ol.easing.elastic and ol.easing.bounce easing functions.
2013-01-21 04:36:45 -08:00
Éric Lemoine
2f539bf3be Merge pull request #126 from openlayers/tilequeue
Tile queue requires optimizing
2013-01-21 03:41:18 -08:00
Éric Lemoine
c6a8e5ef72 Remove unused Jasmine matchers 2013-01-21 12:29:31 +01:00
ahocevar
d3e63bc98a Basic feature implementation 2013-01-21 12:16:04 +01:00
Frederic Junod
8825251c42 Add new ol.easing.elastic and ol.easing.bounce easing functions. 2013-01-21 09:48:56 +01:00
ahocevar
d0d397f98f Tiled vector source
This source has features and provides tiles with the feature
geometries rendered, using the feature symbolizers. Needs more
work because it is still very unefficient, because it renders
all feature geometries to all tiles, and uses a collection of
features, which we do not have yet.
2013-01-20 21:23:19 +01:00
Tom Payne
202df34e71 Merge pull request #137 from twpayne/alt-shift-rotate
Use Alt+Shift to rotate by default, fixes #21
2013-01-20 10:38:24 -08:00
Éric Lemoine
7f38c1683e Remove unused TileQueue clear method 2013-01-20 15:15:13 +01:00
Tim Schaub
4c2ad60619 Add geojson module in io package 2013-01-20 00:28:07 -07:00
Tim Schaub
497eac82c2 Polygon rendering (no holes yet) 2013-01-19 17:50:04 -07:00
Tom Payne
9ef5f0b060 Ensure dropped tiles are properly removed from tile queue 2013-01-19 21:58:01 +01:00
Tom Payne
3383c426b3 Use shifts rather than floor 2013-01-19 18:35:24 +01:00
Tom Payne
d43abba154 Use stricter types in private methods, operate on array directly 2013-01-19 15:52:55 +01:00
Tom Payne
6507e71dd7 Clear queued tile keys when queue is cleared 2013-01-19 15:44:01 +01:00
Tom Payne
2bdfd3765b Remove stale FIXME 2013-01-19 15:38:15 +01:00
Tom Payne
4b971b5f32 Optimize tile dropping in reprioritize 2013-01-19 15:24:50 +01:00
Tom Payne
a8dc810696 Use Infinity rather than undefined to drop tiles 2013-01-19 15:24:02 +01:00
Tom Payne
4846a6a7b3 Only update wanted tiles if not all tiles are loaded 2013-01-19 15:03:01 +01:00
Tom Payne
3ec2014ad1 Rename tileUsage to usedTiles 2013-01-19 15:03:01 +01:00
Tom Payne
1c524caae6 Discard unwanted tiles from tile queue 2013-01-19 15:03:01 +01:00
Tom Payne
111b4585a8 Fix key usage 2013-01-19 14:50:25 +01:00
Tom Payne
7babfebef9 Set frame state immediately after rendering 2013-01-19 14:50:18 +01:00
Tom Payne
9cf314fd64 Sort object properties 2013-01-19 14:50:14 +01:00
Tim Schaub
0414e337b3 Render lines 2013-01-18 17:57:32 -07:00
Tim Schaub
140e9ba355 General purpose canvas renderer
Currently only renders points as circles.  Eventually will have methods for other geometry types and other symbolizer types.  Also provides static methods to render point symbolizers (returning a canvas that can be drawn on another).
2013-01-18 17:42:12 -07:00
Tim Schaub
b92fdaf911 Going with point, line, and polygon symbolizers
Separate fill and stroke symbolizers make a nicer API, but less efficient rendering
2013-01-18 17:20:10 -07:00
Tim Schaub
fd0a5f3622 Point, linestring, and linearring coordinates as Float32Array 2013-01-18 15:57:48 -07:00
Tim Schaub
278d32061f To be reworked for rendering like geoms with same symbolizer 2013-01-18 15:55:24 -07:00
Tim Schaub
3ac437393a To be reworked as ol.renderer.canvas.VectorLayer 2013-01-18 15:54:48 -07:00
Éric Lemoine
c0c9cdef15 New tile queue implementation (heapify-powered) 2013-01-18 21:02:09 +01:00
Tom Payne
f3978d200f Use Alt+Shift to rotate by default, refs #21 2013-01-18 14:09:32 +01:00
Tom Payne
2b8aefbabf Add ol.condition.altShiftKeysOnly 2013-01-18 14:03:37 +01:00
Peter Robins
11938d2264 Add missing dependencies, refs #116 2013-01-18 13:01:10 +01:00
Tim Schaub
74281d2b00 Merge from master 2013-01-17 18:12:06 -07:00
Tom Payne
f377a70dc5 Export ol.Map.addPreRenderFunction* 2013-01-18 01:59:59 +01:00
Tom Payne
1c2a1a2a2f Sort object literal exports alphabetically 2013-01-18 01:19:51 +01:00
Tom Payne
bff8a2bb1e Add DebugTileSource exports 2013-01-18 01:16:14 +01:00
Tom Payne
bb51709945 Use OpenStreetMap tiles in canvas tiles example
Stamen exports aren't quite right yet.
2013-01-18 00:34:44 +01:00
Tom Payne
6542f2037b Merge pull request #127 from twpayne/animated-zoom
Animated zoom
2013-01-17 15:23:39 -08:00
Tom Payne
37d29fb82b Merge pull request #131 from twpayne/add-missing-exports
Add missing exports
2013-01-17 15:21:28 -08:00
Tom Payne
e3c85dec8e Export ol.View2D 2013-01-18 00:19:45 +01:00
Tom Payne
d34a71e453 Export ol.RendererHints.createFromQueryData 2013-01-18 00:19:22 +01:00
Tom Payne
76e600d5f6 Fix Stamen exports 2013-01-18 00:19:06 +01:00
Tom Payne
4f2c657cf2 Export ol.tilegrid.XYZOptions 2013-01-18 00:17:50 +01:00
Tom Payne
0122c6cc0c Export ol.tilegrid.TileGridOptions 2013-01-18 00:17:09 +01:00
Tim Schaub
fe56b15c52 Clear canvas with opacity 1 2013-01-17 15:30:16 -07:00
Tom Payne
7c660f6ac0 Export animation functions, thanks @elemoine 2013-01-17 22:58:05 +01:00
Tim Schaub
d6de79b2bd Merge pull request #129 from tschaub/color
Going with CSS norms for r/g/b/a values.
2013-01-17 13:28:51 -08:00
Tim Schaub
f39b6a1be3 Errant require 2013-01-17 14:23:35 -07:00
Tim Schaub
10672ad303 Standardizing color ranges (see #129) 2013-01-17 14:19:50 -07:00
Tim Schaub
b36eab1dfa Properly set transform before filling background (closes #128)
Order of args is m11, m12, m21, m22, dx, dy
2013-01-17 13:40:00 -07:00
Tim Schaub
141e5aa9fc Trim search string before use
The `window.location.search` string includes the "?" symbol.  Without this change, `createFromQueryData` only works if the "renderer" parameter is not in first position (see 4037bafc45).
2013-01-17 13:05:47 -07:00
Tom Payne
9428a94968 Add animated zoom to keyboard zoom interaction 2013-01-17 16:21:53 +01:00
Tom Payne
90b7cfb330 Add animated zoom to zoom control 2013-01-17 16:21:53 +01:00
Tom Payne
965d5e2cc8 Add animation duration to ol.View2D.zoom 2013-01-17 15:50:28 +01:00
Tom Payne
0257db05df Add zoom from animation 2013-01-17 15:38:11 +01:00
Tom Payne
95b48bdec4 Add ol.easing.linear 2013-01-17 15:38:11 +01:00
Tom Payne
8d9ac88db7 Merge pull request #123 from twpayne/canvas-renderer
Canvas renderer
2013-01-17 06:22:20 -08:00
Tom Payne
5eeec41877 Add canvas renderer to two layers demo 2013-01-17 13:54:52 +01:00
Tom Payne
aeef260101 Add canvas renderer to side-by-side demo 2013-01-17 13:54:52 +01:00
Tom Payne
54327fb750 Add canvas renderer 2013-01-17 13:54:52 +01:00
Tom Payne
7e7356dfd6 Add canvas checks 2013-01-17 13:54:52 +01:00
Tom Payne
1468a04f8b Merge pull request #122 from twpayne/default-tile-size
Add default tile @define, refs #114, fixes #120
2013-01-17 04:49:38 -08:00
Tom Payne
04b18a8a83 Merge pull request #121 from twpayne/attribution-control-refactoring
Attribution control refactoring
2013-01-17 04:46:57 -08:00
Tom Payne
c23e02eb71 Merge pull request #124 from twpayne/dom-renderer-layer-remove
Ensure DOM element is removed when layer is removed
2013-01-17 04:35:44 -08:00
Tom Payne
c961e77e9e Merge pull request #125 from twpayne/build-clean-ups
Build clean ups
2013-01-17 03:52:15 -08:00
Tom Payne
4657b7ca97 Remove removeLayer, thanks @fredj 2013-01-17 12:40:54 +01:00
Tom Payne
1ebea904ab Only run gjslint on modified files 2013-01-17 12:33:10 +01:00
Tom Payne
d8e980a9dd Upgrade to latest version of pake 2013-01-17 12:32:51 +01:00
Tom Payne
c56e1f8b92 Ensure DOM element is removed when layer is removed 2013-01-17 12:12:09 +01:00
Tom Payne
b880ab80ee Factor out updateTileUsage 2013-01-17 11:51:38 +01:00
Tom Payne
1278ccb942 Add default tile size @define, refs #114, fixes #120 2013-01-16 17:49:51 +01:00
ahocevar
8a38f9aa9d Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-01-16 16:34:59 +01:00
Tom Payne
9fbabc3696 Refactor attribution control 2013-01-16 16:34:31 +01:00
ahocevar
7c05587aed Merge pull request #114 from ahocevar/resolutions
Use validity extent to generate default resolutions. r=@twpayne,@elemoine
2013-01-16 07:17:10 -08:00
Tom Payne
41ccb4dfcd Add ol.Rectangle.extend 2013-01-16 13:53:38 +01:00
Éric Lemoine
0d87c2c14c Merge pull request #91 from elemoine/bingkey
Bing maps key will expire on 15 Jan 2013
2013-01-16 03:32:27 -08:00
Éric Lemoine
0c1116fe95 Update Bing maps key 2013-01-16 12:31:25 +01:00
Tom Payne
17bb31281b Merge pull request #118 from twpayne/mouse-position-control-refactoring
Mouse position control refactoring
2013-01-16 02:30:33 -08:00
Tom Payne
06628a88e6 Update mouse position on each frame 2013-01-16 11:26:09 +01:00
Tom Payne
11ec1de89b Refactor mouse position control to use postrender event 2013-01-16 11:25:59 +01:00
Tom Payne
5d43aa22d4 Merge pull request #117 from twpayne/postrender-event
Fire postrender events
2013-01-16 02:08:16 -08:00
Tom Payne
505987869e Fire postrender events 2013-01-15 18:38:12 +01:00
Tom Payne
f7982fc2de Merge pull request #115 from twpayne/renderer-clean-ups
Renderer clean ups
2013-01-15 08:41:06 -08:00
Tom Payne
936132cd46 Update examples to read renderer from query string 2013-01-15 10:26:43 +01:00
Tom Payne
4037bafc45 Add function to chose renderer from query string 2013-01-15 10:26:16 +01:00
Tom Payne
859af576d5 Move var outside loop 2013-01-14 20:53:00 +01:00
Tom Payne
c679bccbb9 Join short lines 2013-01-14 20:53:00 +01:00
Tom Payne
183aac90fa Remove unused requires 2013-01-14 20:52:47 +01:00
Tom Payne
8966e17b89 Structure DOM renderer code to be more similar to WebGL renderer code 2013-01-14 16:33:15 +01:00
Tom Payne
af88fb415b Remove forEachTileCoord 2013-01-14 16:21:58 +01:00
Tom Payne
8ced15ce2e Move closure out of loop, and use loop rather than forEachTileCoord 2013-01-14 16:21:58 +01:00
Tom Payne
0916f14536 Use a loop rather than tileRange.forEachTileCoord 2013-01-14 16:21:58 +01:00
ahocevar
87ce763ccb Use validity extent to generate default resolutions
Previously, the TiledWMS source generated a resolutions array
derived from the world extent in meters, to match the default
Web Mercator resolutions of the map. This wouldn't work for
projections with distance units different than meters. It is
better to commit to a default resolutions array where zoom level
0 is the validity extent of the projection (not the Web Mercator
world extent!) at a 256 pixel tile size.
2013-01-14 16:10:55 +01:00
Tom Payne
57b25693af Merge pull request #113 from twpayne/frame-state
More frame state-related fixes and improvements
2013-01-14 04:13:22 -08:00
Tom Payne
eff96ca16c DOM renderer should re-render when layers are added or removed 2013-01-14 12:46:40 +01:00
Tom Payne
be04053ef1 Move common event handlers into base class 2013-01-14 12:46:39 +01:00
Tom Payne
9764e76975 Move pixel/coordinate matrices into frame state, remove canRotate 2013-01-14 12:46:39 +01:00
Tom Payne
a927385e72 Merge pull request #110 from twpayne/interaction-hints
Interaction hints
2013-01-14 03:44:47 -08:00
Tom Payne
3febb24529 Don't remove tiles when animating 2013-01-14 12:35:54 +01:00
Tom Payne
bafb53f2e1 Make animations set animating hint 2013-01-14 12:35:54 +01:00
Tom Payne
969553cede Clone hints array so that pre-render functions can modify it 2013-01-14 12:35:54 +01:00
Tom Payne
c48bb6142e Add animating hint 2013-01-14 12:35:54 +01:00
Tom Payne
2ea6f0903c Don't remove tiles while panning 2013-01-14 12:35:54 +01:00
Tom Payne
e837a74e00 Set panning hint in DragPanInteraction 2013-01-14 12:35:53 +01:00
Tom Payne
5d31a44c12 Implement view hints architecture 2013-01-14 12:35:53 +01:00
Tom Payne
2a08e7add2 Merge pull request #112 from twpayne/dom-renderer-clean-ups
DOM renderer clean ups
2013-01-14 03:33:23 -08:00
Tom Payne
fafba39c32 Merge pull request #111 from twpayne/webgl-renderer-clean-ups
WebGL renderer clean ups
2013-01-14 03:33:04 -08:00
Tom Payne
78e8e34fe6 Add missing instance variable declaration, thanks @elemoine 2013-01-14 11:13:34 +01:00
Tom Payne
be3849d1b8 Use dequeue rather than remove, thanks @elemoine 2013-01-13 22:28:37 +01:00
Tom Payne
8b39e8f7f0 Relax type slightly 2013-01-12 23:13:34 +01:00
Tom Payne
0f8e3ddedc Remove incorrect use of @override 2013-01-12 23:12:15 +01:00
Tom Payne
deeb7b3294 Fix typecast 2013-01-12 22:52:44 +01:00
Tom Payne
3f6e6169af Hide canvas when map is not defined 2013-01-12 19:24:20 +01:00
Tom Payne
0443ebc3fa Remove stale FIXMEs 2013-01-12 19:23:54 +01:00
Tom Payne
de7699d644 Hide layers pane when map is undefined 2013-01-12 19:08:27 +01:00
Tom Payne
a0180f2131 Remove stale FIXME 2013-01-12 19:06:00 +01:00
Tom Payne
97207e5723 Remove rarely-used logger 2013-01-12 19:01:09 +01:00
Tom Payne
be28fb4ccc Don't try to overload method return type 2013-01-12 18:58:36 +01:00
Tom Payne
655b6a1b00 Always free WebGL resources in post render 2013-01-12 18:57:50 +01:00
Tom Payne
a26deb62bf Remove unused variable 2013-01-12 18:54:09 +01:00
Tom Payne
b803aad5a8 Don't enqueue tiles which are not idle 2013-01-12 16:55:36 +01:00
Tom Payne
3d5c76c346 Add empty descriptions for jsdoc 2013-01-12 13:32:57 +01:00
Tom Payne
513787147c Merge pull request #106 from twpayne/re-enable-jsdoc
Re-enable jsdoc
2013-01-12 03:28:19 -08:00
Tom Payne
92d3d001c0 Merge pull request #108 from twpayne/texture-uploads
Prioritize and throttle texture uploads
2013-01-12 03:27:37 -08:00
Tom Payne
150dae4a63 Merge pull request #104 from twpayne/debug-tile-source-fixes
Don't attempt to share canvases between renderers, fixes #101
2013-01-12 03:27:17 -08:00
Tom Payne
c5a0205cf8 Merge pull request #103 from twpayne/tile-queue
Tile queue
2013-01-12 03:26:43 -08:00
Tom Payne
05d681e7ea Merge pull request #107 from twpayne/dom-renderer-clean-ups
Clean up DOM renderer code for untested minor performance advantages
2013-01-12 03:25:12 -08:00
Tom Payne
6d44736e2f Prioritize and throttle texture uploads 2013-01-12 02:32:53 +01:00
Tom Payne
82fc5c6c9d Clean up DOM renderer code for untested minor performance advantages 2013-01-12 01:12:27 +01:00
Tom Payne
60c0ca9e49 Re-add doc to precommit target, fixes #94 2013-01-12 00:52:27 +01:00
Tom Payne
48ee9e75a4 Add empty descriptions to work around jsdoc 2013-01-12 00:51:36 +01:00
Tom Payne
fca7472506 Update copyright year 2013-01-11 23:50:29 +01:00
Tom Payne
45a3b70ec0 Merge pull request #105 from twpayne/build-cleanups
Minor clean-ups to build.py
2013-01-11 14:40:54 -08:00
Tom Payne
6bba086aca Use from/import for brevity 2013-01-11 18:25:58 +01:00
Éric Lemoine
25be29099f Improved reprioritization 2013-01-11 18:13:36 +01:00
Tom Payne
b4da378a33 Don't attempt to share canvases between renderers, fixes #101 2013-01-11 17:43:31 +01:00
Tom Payne
43caea7ed2 Merge pull request #102 from twpayne/frame-state
Frame state
2013-01-11 07:19:31 -08:00
Tom Payne
52df441cf8 Add tile queue 2013-01-11 16:18:07 +01:00
Tom Payne
2a6cc1ae70 Flag 2D-specific code, thanks @elemoine 2013-01-11 16:06:30 +01:00
Tom Payne
f00e299039 Register post-render functions instead of using an event 2013-01-11 15:49:21 +01:00
Tom Payne
434dd84c04 Add animation examples to side-by-side demo 2013-01-11 15:49:15 +01:00
Tom Payne
f3cace499c Implement frame state and animation architecture 2013-01-11 15:48:24 +01:00
Tom Payne
4ee411ebe2 Merge pull request #99 from twpayne/beyond-image-tiles
Beyond image tiles
2013-01-11 06:11:38 -08:00
Tom Payne
5c5a58acfc Merge pull request #98 from twpayne/pure-transform-dom-renderer
Pure transform DOM renderer
2013-01-11 06:02:18 -08:00
Tom Payne
878122828b Add canvas tiles example 2013-01-11 01:18:58 +01:00
Tom Payne
6984fbb9b9 Add ol.source.DebugTileSource 2013-01-11 01:18:57 +01:00
Tom Payne
97d83666a6 Factor out ImageTile and ImageTileSource 2013-01-11 01:18:57 +01:00
Tom Payne
9194a4b4eb Round transformation values to six decimal places 2013-01-10 16:43:42 +01:00
Tom Payne
8a4125281d Add option to round transformation matrix values 2013-01-10 16:43:42 +01:00
Tom Payne
0d1e6ea766 Move forEachReadyVisibleLayer into WebGL renderer 2013-01-10 16:43:42 +01:00
Tom Payne
aba686d22d Refactor DOM renderer to use only CSS transforms 2013-01-10 16:43:42 +01:00
Tom Payne
032aa8b7c8 Add 2D transform abstraction 2013-01-10 16:43:41 +01:00
Éric Lemoine
171d10f2d4 Merge pull request #97 from elemoine/view
Add view abstraction
2013-01-10 06:37:37 -08:00
Tom Payne
e05e0c2f91 Add ol.Color.equals 2013-01-09 18:49:06 +01:00
Éric Lemoine
927cffb2b7 Add view abstraction 2013-01-09 14:03:16 +01:00
Tom Payne
21331d1065 Dispatch generic changed events when any ol.Object property changes 2013-01-08 17:26:22 +01:00
Tom Payne
20e0557a4d No need to ignore /bin/*.pyc, refs #95 2013-01-07 15:41:26 +01:00
Tom Payne
b40085ca41 Fix non-view-related typecasts in ol.renderer.webgl.TileLayer 2013-01-07 13:19:00 +01:00
Tom Payne
b12711fa9d Fix non-view-related typecasts in ol.renderer.Map 2013-01-07 13:19:00 +01:00
Tom Payne
ddee13d6eb Fix non-view-related typecasts in ol.renderer.dom.TileLayer 2013-01-07 13:19:00 +01:00
Tom Payne
80e4c46805 Fix non-view-related typecasts in ol.Map 2013-01-07 13:19:00 +01:00
Tom Payne
e52ec0f7a2 Fix non-view-related typecasts in interactions 2013-01-07 13:18:59 +01:00
Tom Payne
0653546e44 Fix non-view-related typecasts in ol.control.Attribution 2013-01-07 13:18:59 +01:00
Tom Payne
6b7a3bb3bf Fix typecast in ol.Tile 2013-01-07 13:18:59 +01:00
Tom Payne
06bb56eff2 Fix typecasts in ol.layer.TileLayer 2013-01-07 13:18:59 +01:00
Tom Payne
3ef85a3651 Fix typecasts in ol.layer.Layer 2013-01-07 13:18:59 +01:00
Tom Payne
e05591f6ab Fix typecast in ol.renderer.webgl.Layer 2013-01-07 13:18:59 +01:00
Tom Payne
cadeb209cd Fix typecast in ol.renderer.dom.Layer 2013-01-07 13:18:59 +01:00
Tom Payne
5cfae7b3bc Fix typecast in ol.Proj4jsProjection 2013-01-07 13:18:59 +01:00
Tom Payne
3f08995cfb Fix typecast in ol.Collection 2013-01-07 13:18:59 +01:00
Tom Payne
0e93217396 Correctly dispose of layer renderers when layers property changes 2013-01-07 13:18:59 +01:00
Tom Payne
196c3ca15e Merge pull request #95 from marcjansen/ignore-pyc
Ignore *.pyc files in root directory.
2013-01-07 03:09:34 -08:00
Frederic Junod
4de5adf32d make replaced with build.py 2013-01-07 09:16:25 +01:00
Marc Jansen
1670972a9e Ignore all *.pyc files. 2013-01-07 09:08:14 +01:00
Tim Schaub
7971ec1b3b Render geometries to a canvas 2013-01-07 01:42:31 -05:00
Tim Schaub
7cca691b9f Start of style package
These literals will be used internally only - created when evaluating
non-literal symbolizers (with properties that are expressions).
2013-01-07 01:41:02 -05:00
Tim Schaub
997c7145ab Bare bones geom package 2013-01-07 01:34:33 -05:00
Tim Schaub
464be78a16 Satisfying compiler 2013-01-06 10:59:21 -07:00
Tim Schaub
39af56ecb3 Satisfying gjslint 2013-01-06 10:07:29 -07:00
Tim Schaub
6f929efeb3 Merge branch 'master' into vector 2013-01-06 09:37:34 -07:00
Marc Jansen
dd566ba595 Ignore pake.pyc file. 2013-01-06 16:08:21 +01:00
Tom Payne
7ad273082a Correct Stamen source options 2013-01-05 18:35:14 +01:00
Tom Payne
cd6c5ee6ed Disable document generation in precommit target, refs #94
Revert this commit when issue #94 is fixed.
2013-01-05 18:34:35 +01:00
Tom Payne
d1615db925 Merge pull request #93 from twpayne/webgl-renderer-cleanups
WebGL renderer cleanups
2013-01-05 03:46:43 -08:00
Tom Payne
cfaee15c9f Factor out color matrix generation, move color matrix into layer renderer 2013-01-05 12:30:18 +01:00
Tom Payne
8404142cec Avoid getting map twice 2013-01-05 12:18:42 +01:00
Tom Payne
d3a0f87438 Remove inadvertent double render 2013-01-05 12:18:35 +01:00
Tom Payne
118b233457 More strict matrix type 2013-01-05 12:17:37 +01:00
ahocevar
3c305db4a4 Canvas tile renderer - first cut
Untested and no styling
2013-01-04 18:47:33 +01:00
Tom Payne
30ee23d69d Merge pull request #92 from twpayne/request-render-frame
Request render frame
2013-01-04 05:02:25 -08:00
Tom Payne
b2bb08eb81 Clarify comment 2013-01-03 18:16:16 +01:00
Tom Payne
7a36793776 Port DOM renderer to request render frame architecture 2013-01-03 14:51:15 +01:00
Éric Lemoine
b386c38111 Demonstrating user-controlled animation
Inspired from 840ffb6
2013-01-03 12:23:50 +01:00
Éric Lemoine
51636ea0d1 Only appending tiles to the dom after load
A port of f46cdb4 and 4242ef40 from animation-frame branch.
2013-01-03 12:23:50 +01:00
Tom Payne
934c75bc8c Use requestRenderFrame API in interactions 2013-01-03 12:23:50 +01:00
Tom Payne
8c44dcf83a Add some WebGL renderer FIXMEs 2013-01-03 12:23:50 +01:00
Tom Payne
756792b8db Pass time to render functions and rename them to renderFrame_ 2013-01-03 12:23:50 +01:00
Tom Payne
783dfe0618 Port WebGL renderer to requestRenderFrame 2013-01-03 12:23:49 +01:00
Tom Payne
12099bab56 Implement @elemoine's requestRenderFrame architecture 2013-01-03 12:23:49 +01:00
Tom Payne
18fdb66437 Update jsdoc template to be compatible with latest version of jsdoc3 2013-01-03 12:15:30 +01:00
Tom Payne
ad983a5e68 Add missing semicolon from exampleparser output 2013-01-03 11:52:26 +01:00
Tom Payne
7f63e3b8e7 Propagate query string to example links 2013-01-03 11:50:44 +01:00
Tom Payne
874a311de2 Fix bug where all examples were assumed to be under version control 2013-01-03 11:31:31 +01:00
Éric Lemoine
7b24c5b54a Merge pull request #90 from elemoine/webglcolorfilter
WebGL color filter
2012-12-12 07:33:17 -08:00
Éric Lemoine
21f3f90ca6 Adjust hue, sat, and constrast in webgl renderer 2012-12-12 15:53:56 +01:00
tschaub
9622395c86 Use radians for hue rotation
This commit is a cherry-pick from 7f578f0.

Conflicts:

	src/ol/renderer/dom/domlayerrenderer.js
2012-12-12 15:22:01 +01:00
tschaub
4d97b583c6 Match the current Filter Effects spec
This commit is a cherry-pick of 19f7778.

The current draft of the [filter spec](https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html)
describes brightness, contrast, hue-rotate, and saturate functions that
roughly match our layer's setBrightness, setContrast, setHue, and
setSaturation methods.  These changes make the range of our methods match
the corresponding functions in the spec.  The one exception is the
brightness function.  The spec says it has a range of 0 to positive infinity.
The WebKit implementation accepts a range of -1 to 1 (as of
https://github.com/WebKit/webkit/commit/8f4765e569).  There's an open
(ticket)[https://www.w3.org/Bugs/Public/show_bug.cgi?id=15647] recommending
that the spec be changed to match.

I'm not stuck on having our methods match those of the filter spec, but the
parity would be nice.

These changes leave the WebGL map renderer "broken" (whacky colors).  It would
be straightforward to update the current fragment shader to handle the new
range of hue, but the brightness, contrast, and saturation handling will
need to be reworked.

For inspiration, here are the color transformation
matrix calculations the WebKit filters:
8f4765e569/Source/WebCore/platform/graphics/chromium/cc/CCRenderSurfaceFilters.cpp (L64-80)

Conflicts:

	src/ol/renderer/dom/domlayerrenderer.js
2012-12-12 15:18:34 +01:00
Éric Lemoine
570defe940 Merge pull request #86 from geops/api-docs-comments
Some comments (no changes to code)
2012-12-03 14:02:20 -08:00
Augustus Kling
a73c15c988 Discard documentation for attributioncontrol.js and map.js to make refactoring easier due to @elemoine's request 2012-12-03 22:47:33 +01:00
Frederic Junod
14f7b9a41e git-update-ghpages removed, bin/readme.md no longer necessary 2012-11-14 12:50:13 +01:00
Frédéric Junod
12d5626288 make replaced with build.py 2012-11-14 12:45:07 +01:00
Éric Lemoine
bccfccbf9d Merge pull request #84 from elemoine/84
DOM renderer tile artifacts on FF
2012-11-13 13:47:00 -08:00
Tom Payne
72b7a136c1 Update to latest version of pake, fixes #87, thanks @cedricmoullet and @AugustusKling 2012-11-12 00:01:29 +01:00
Éric Lemoine
7b88f44a41 Keep track of tiles we're already listening on 2012-11-11 21:31:12 +01:00
augustus
f253c1bcf8 Some comments (no changes to code) 2012-11-09 16:26:59 +01:00
Tom Payne
4dde0ac2b1 Remove tile change listeners when they have fired, thanks @fredj 2012-11-09 14:33:58 +01:00
Tom Payne
3d560a08e3 Remove Makefile 2012-11-09 14:05:13 +01:00
Tom Payne
5fb39ff30d Merge pull request #76 from twpayne/pure-python-build
Building on Windows still has a few problems, mainly thanks to Windows. However, this patch does eliminate as many build dependencies as possible (make, wget, sh, find, ruby).
2012-11-09 02:53:33 -08:00
Tom Payne
df8685638c Detect corrupt downloads 2012-11-09 11:45:58 +01:00
Tom Payne
bf4e7bcb70 Work around broken operating systems 2012-11-09 11:45:58 +01:00
Tom Payne
05f3ab3290 Remove unused import 2012-11-09 11:45:31 +01:00
Éric Lemoine
826505c6d4 Register a CHANGE listener even if tile is loading
This fixes an issue easily reproducible in the side-by-side example where the DOM renderer is not notified when tiles loaded by the WebGL renderer have been received.
2012-11-08 21:20:26 +01:00
Éric Lemoine
90e379782c Only appending tiles to the dom after load
A port of f46cdb4 to the current master. The tilelayer renderer can be simplified a bit by waiting to append tiles to the dom until they have loaded. Refs #84 and #33.
2012-11-08 20:03:07 +01:00
Frederic Junod
6eb505eb2b Remove question mark from wms urls (see #85) 2012-11-08 09:02:03 +01:00
Tom Payne
bf231d0c41 Fold gh-update-pages into build.py
This also fixes a bug in gh-update-pages: gh-update-pages does not
handle file deletition, meaning that stale files are never removed.
2012-11-04 19:08:56 +01:00
Tom Payne
d30be0fb93 Merge bin/generate-requireall into build.py 2012-11-04 19:08:55 +01:00
Tom Payne
f082cddb6b Use build.py for Travis 2012-11-04 19:08:55 +01:00
Tom Payne
157c0978be Update CONTRIBUTING.md for build.py 2012-11-04 19:08:55 +01:00
Tom Payne
d16bc89be3 Update readme.md for build.py 2012-11-04 19:08:26 +01:00
Tom Payne
f78afc8d66 Add pake.py
See https://github.com/twpayne/pake
2012-11-04 19:08:26 +01:00
Tom Payne
81b4213fd7 Add build.py
This removes the dependencies on make, sh and curl for building ol3.
2012-11-04 19:08:26 +01:00
Éric Lemoine
c9f4454399 Merge pull request #85 from elemoine/tilefunction
Add ol.TileUrlFunction.createBboxParam
2012-11-04 09:52:09 -08:00
Éric Lemoine
dd014a3b79 Avoid unneeded parameter concatenations (thanks @twpayne, refs #85) 2012-11-04 19:31:20 +01:00
Éric Lemoine
529c3e8b6a Add ol.TileUrlFunction.createBboxParam 2012-11-03 22:55:54 +01:00
ahocevar
3d84571043 Use WebGL now that server sends CORS headers (see #75) 2012-11-03 10:33:20 +01:00
Éric Lemoine
b2c71ed269 Add tests showing more usages of createFromTemplate 2012-11-03 00:43:46 +01:00
Tom Payne
7ee5c5777a Fix use of goog.nullFunction and goog.functions.NULL, thanks @elemoine (again) 2012-11-02 18:28:27 +01:00
Tom Payne
9062a9cf54 Merge pull request #83 from twpayne/fix-82
Make ol.renderer.Map behave like a null renderer, fixes #82
2012-11-02 10:22:01 -07:00
Tom Payne
4d3726d183 Use goog.functions.NULL instead of goog.nullFunction, thanks @elemoine 2012-11-02 18:20:52 +01:00
Tom Payne
dfd495153d Make ol.renderer.Map behave like a null renderer, fixes #82
With this patch, creating a new ol.renderer.Map will return a map
renderer that does nothing.  Previously, it could cause assertion
failures.
2012-11-02 17:10:45 +01:00
Frédéric Junod
1de8821739 Merge pull request #81 from fredj/wms-format
Use jpeg tiles for background layer
2012-11-02 07:58:52 -07:00
Frederic Junod
127c00e1ea Use jpeg tiles for background layer 2012-11-02 15:52:34 +01:00
Éric Lemoine
2f29224691 Merge pull request #80 from elemoine/wms-custom-proj-fix
wms-custom-proj example does not work with the ol build
2012-11-02 05:38:38 -07:00
Éric Lemoine
4a604940a2 The wms-custom-proj example requires more exports 2012-11-02 12:06:24 +01:00
Tim Schaub
e57f8b45a6 Merge pull request #78 from geops/api-docs-jsdoc
Taking over new template from jsdoc but keep modifications by OpenLayers as much as possible
2012-10-31 13:38:24 -07:00
ahocevar
13e48787a3 Merge pull request #79 from ahocevar/projection
Projection handling improvements. r=@twpayne, @elemoine
2012-10-31 10:13:17 -07:00
ahocevar
eb4a8683e2 Projection handling improvements
* The Map's private createProjection_ method is now a public
  method of the Projection. It is also used by TiledWMSSource
  to calculate the appropriate projection from the user
  configuration.
* ol.Projection.addProjection now adds the transformation for
  the source == target case. This makes it easy for the user
  to create custom projection maps without including proj4js and
  without adding a custom transformation, as long as the
  userProjection equals the projection.
* The TiledWMSSource now uses the same default resolutions as
  the map (i.e. the OSM resolutions)
* The modulo calculation for wrapping extents now works for all
  grid configurations, by not calculating the number of columns
  based on an assumption about the way the zoom levels relate to
  resolutions.
* The wms-custom-proj example now shows how to properly
  configure a custom resolution, i.e. by using the validity
  extent of the projection as its extent.
2012-10-31 13:17:58 +01:00
augustus
64a252093c Taking over new template from jsdoc but keep modifications by OpenLayers as much as possible 2012-10-31 09:39:55 +01:00
Tom Payne
7af152cc49 Update Plovr version 2012-10-29 14:09:37 +01:00
ahocevar
f4139f208a Merge pull request #74 from ahocevar/tiled-wms
Adding tiled WMS source. r=@twpayne,@elemoine
2012-10-29 01:47:20 -07:00
ahocevar
e157d17ab7 Addressing review comments regarding typeDef 2012-10-29 09:44:25 +01:00
ahocevar
393bb36784 Removing standalone example 2012-10-29 09:36:08 +01:00
ahocevar
b170fa3d16 Using DOM renderer; no custom extent for layers
The server does not send CORS headers, so we cannot use the
WebGL renderer. Since the layers use the projection's extent,
it is not necessary to specify the extent.
2012-10-29 09:34:53 +01:00
ahocevar
0c77aacf33 proj4js externs are not necessary 2012-10-29 09:33:00 +01:00
ahocevar
e672083027 Indentation and line break fixes 2012-10-28 23:59:36 +01:00
Cédric Moullet
bb957a1149 Add new layer national park, attributions and layer extent to the Tiled WMS with custom projection example 2012-10-28 23:43:53 +01:00
Cédric Moullet
b907befd68 Add title to WMS tiled custom projection example 2012-10-28 23:42:58 +01:00
Cédric Moullet
dd93c24a07 Add tiled wms with custom projection 2012-10-28 07:26:05 +01:00
ahocevar
e5308fec40 No extent magic
Setting the extent on a tile source now only means that tiles
won't be drawn outside that extent. Now the only way to specify
the origin of the tile grid is to provide a custom tileGrid. By
default, the grid origin is the top left corner of the
projection's extent.
2012-10-27 17:28:08 +02:00
ahocevar
b872b5a74f Cross origin handling to make example work in Firefox
The WMS used in the example does not send CORS headers (I think
not many WMS services do). It seems that the WebGL renderer
needs script access to the image data, so the example only works
with the DOM renderer in Firefox.
2012-10-27 09:16:09 +02:00
tschaub
3af801df96 Updating instructions on contributions
This links to the newly created online ICLA form.
2012-10-26 15:41:13 -06:00
ahocevar
433b12c39a Using the projection's extent for resolutions math by default
This ensures that maps with WMS layers with different extents
do not scale the tiles differently for each layer when the
default tileGrid is used. Note that it is always possible to
configure WMS sources with a custom tileGrid.
2012-10-26 22:51:30 +02:00
ahocevar
084506cdb5 Adding tiled WMS source
As shown in the example, this adds support for tiled WMS layers.
2012-10-26 21:36:30 +02:00
Tom Payne
d0e532eadf Merge pull request #71 from twpayne/unique-filenames
Give each source file a unique name
2012-10-26 02:31:19 -07:00
Tom Payne
e5d39724c9 Give each source file a unique name 2012-10-26 11:25:26 +02:00
Tom Payne
af872e25c3 Remove incorrect property export 2012-10-26 11:24:25 +02:00
Tom Payne
41c6c2eff3 Merge pull request #72 from twpayne/source-xyz-projection
Add projection option to ol.source.XYZ
2012-10-25 23:53:03 -07:00
Tom Payne
e7d5022dc1 Add projection option to ol.source.XYZ 2012-10-25 18:48:24 +02:00
Éric Lemoine
49f717eae6 Merge pull request #69 from elemoine/exports-files
Granularize the exports
2012-10-24 13:52:56 -07:00
Éric Lemoine
576c54eb61 Move object literal exports to their own file 2012-10-24 17:05:33 +02:00
Tom Payne
92b13b36d9 Prevent default in double click zoom (refs #70) 2012-10-24 16:30:44 +02:00
Éric Lemoine
0ae3f8806e Remove examples/index.js (refs #67) 2012-10-21 21:24:15 +02:00
Éric Lemoine
02c3acbc35 Merge pull request #67 from elemoine/exampleparser
Use OpenLayers 2 examples system
2012-10-21 12:22:05 -07:00
Éric Lemoine
7ce79207e3 Better design for the full-screen examples
The text div is now placed in the top-right corner of the page. This is to avoid overlapping with the attribution div. On screens that are smaller that 600px the text div is not deplayed at all.
2012-10-21 21:11:27 +02:00
Éric Lemoine
d81b232587 Granularize the exports
This commit decomposes exports.txt into multiple, per-component, export files.  This will be required for custom builds;
2012-10-20 22:31:33 +02:00
Éric Lemoine
1e0b43dd00 Better HTML and CSS for the examples
And give the h1 tags a "title" id. The exampleparser.py script uses that as the example title in the index page.
2012-10-20 21:43:34 +02:00
Éric Lemoine
b000c052e3 Improve layout of examples index page 2012-10-20 21:43:05 +02:00
Éric Lemoine
3e3b8d6f8b Use OpenLayers 2 examples index 2012-10-19 21:56:59 +02:00
Tom Payne
bb53278db5 Merge pull request #66 from twpayne/coordinate-format-cleanup
Coordinate format cleanup
2012-10-19 10:21:09 -07:00
Tom Payne
ee1d1fa3e7 Fold ol.CoordinateFormat into ol.Coordinate 2012-10-18 14:22:23 +02:00
Tom Payne
860b4407b7 Add ol.Extent.get{Bottom,Top}{Left,Right} 2012-10-18 13:49:10 +02:00
Tom Payne
cd7627f626 Lint examples 2012-10-18 13:48:52 +02:00
Tom Payne
061c173e64 Merge pull request #64 from twpayne/examples-index
Examples index
2012-10-18 02:15:46 -07:00
Tim Schaub
eef4eb0eea Merge pull request #61 from twpayne/z-sort-in-dom-renderer
Z sort in dom renderer
2012-10-17 21:24:40 -07:00
Tom Payne
e21c182641 Use Chrome Frame if available 2012-10-17 18:20:25 +02:00
Tom Payne
68a71c4a53 Add Tom Payne to authors.txt 2012-10-17 17:43:27 +02:00
Tom Payne
a82e523f6b Try multiple context ids to get a WebGL context 2012-10-17 17:36:07 +02:00
Tom Payne
5011123228 Use ol.webgl.getContext is WebGL support test 2012-10-17 17:27:11 +02:00
Tom Payne
8cb28a7217 Move WebGL support test into ol.webgl 2012-10-17 17:25:37 +02:00
Tom Payne
1d40b64db1 Move WebGL context creation into ol.webgl 2012-10-17 17:23:30 +02:00
Tom Payne
0e81f67a00 Host example index 2012-10-17 11:36:54 +02:00
Tom Payne
e9dbb00039 Pass query string through example index
This is so that visiting

    /examples/index.html?mode=RAW&Debug=true

will automatically add ?mode=RAW&Debug=true to all links in the
generated index.
2012-10-17 11:31:40 +02:00
Tom Payne
f120410d6d Add option to hook in scripts to index generator 2012-10-17 11:29:41 +02:00
Tom Payne
129578a515 Build examples index 2012-10-17 11:22:11 +02:00
Tom Payne
7f39f1d32d Add script to generate example index 2012-10-17 11:13:01 +02:00
Éric Lemoine
c508ed39ef Merge pull request #63 from elemoine/hosted-examples
A step toward hosted examples on gh-pages
2012-10-16 13:59:31 -07:00
Éric Lemoine
84e3cf4f0d Merge pull request #62 from elemoine/bingmaps-exports
Add BingMaps exports
2012-10-16 13:57:44 -07:00
Éric Lemoine
1ac188c906 Add a hostexamples target to Makefile
This target copies the ol built files, examples, and loader script to the build/gh-pages directory, making it possible to host our examples on gh-pages.
2012-10-16 21:56:45 +02:00
Éric Lemoine
4b6ef3c046 Better comments in loader.js 2012-10-16 21:56:35 +02:00
Éric Lemoine
190e21f796 The loader adds link tag for ol.css 2012-10-16 21:55:12 +02:00
Éric Lemoine
f4b20175cc Add a specific loader for hosted examples
This loader is responsible for adding ol.js, ol.css and the example-specific js script to the document. This is the loader used in examples when hosted.
2012-10-16 21:51:48 +02:00
Éric Lemoine
1f7ecd2529 Make linter happy 2012-10-16 21:50:20 +02:00
Éric Lemoine
5c6b5cb495 Add BingMaps exports 2012-10-16 21:45:52 +02:00
Tom Payne
a38468c854 Merge pull request #60 from twpayne/hosted-examples
Hosted examples
2012-10-16 02:12:16 -07:00
Tom Payne
3e6d374859 Ensure z as object keys are sorted as numbers 2012-10-16 11:04:56 +02:00
Tom Payne
ed197f3cfe Revert "Two lessons learned"
This reverts commit f8462460bf.
2012-10-16 10:59:53 +02:00
Tom Payne
f7adc1ae75 Use identical code in compiled and standalone examples 2012-10-15 19:12:55 +02:00
Tom Payne
f9302ab030 Export goog.require as goog.nullFunction 2012-10-15 19:12:06 +02:00
Tom Payne
b45c2ca4bc Add optional argument to @exportSymbol 2012-10-15 19:11:51 +02:00
Tom Payne
98340c55ce Don't use goog.* functions in examples 2012-10-15 19:11:02 +02:00
Tom Payne
0392d898c3 Merge pull request #56 from twpayne/interaction-conditions
Abstract out key conditions for interactions, fixes #51, see also #54
2012-10-12 11:04:12 -07:00
Éric Lemoine
e440c03efb Merge pull request #58 from elemoine/dispose
The map should be disposable
2012-10-12 08:41:51 -07:00
Éric Lemoine
f49f370857 Make linter happy 2012-10-11 18:09:18 +02:00
Éric Lemoine
9c48dff286 Add tests for ol.Map.prototype.disposeInternal 2012-10-11 17:53:35 +02:00
Éric Lemoine
2a76a23b6f Add tests for ol.control.Control 2012-10-11 17:46:47 +02:00
Éric Lemoine
0b411ad69c Have disposeInternal call parent 2012-10-11 17:46:22 +02:00
Éric Lemoine
fbc810264b goog.array.forEach does not accept null values 2012-10-10 20:25:53 +02:00
Éric Lemoine
655e04368b disposeInternal implementation for ol.control.Control 2012-10-10 20:24:32 +02:00
Éric Lemoine
dc491f9114 disposeInternal implementation for ol.Map 2012-10-10 20:24:18 +02:00
Tom Payne
936584ceaa Use goog.array.map for browser compatability, thanks @AugustusKling 2012-10-10 13:49:01 +02:00
Tom Payne
ac8dd5db98 Fix sort problem identified by @tschaub in f8462460bf 2012-10-10 10:27:42 +02:00
Tim Schaub
f8462460bf Two lessons learned
Telling the compiler that object keys are numeric causes more harm
than good (see === comparison that could never be met though the
compiler didn't catch it).

Never use goog functions without reading the source first.  The
goog.array.sort method does nothing special sorting numeric strings
(so the zs array might be ['1', '10', '2'] here).
2012-10-09 23:31:38 -06:00
Tim Schaub
ce1b99cb56 Remove alt-z tiles when all tiles load at target z
The changes in a14a15159f made it so tiles
at alternate resolutions were not pruned when target tiles finished loading.
2012-10-09 22:56:37 -06:00
Tom Payne
8df0cfb9d9 Abstract out key conditions for interactions, fixes #51, see also #54 2012-10-08 12:55:20 +02:00
Tim Schaub
a14a15159f Simpler and more thorough tile pruning
The render method always generates a map of all tiles that should be drawn
(called tilesToDrawByZ).  This includes tiles at alternate resolutions, tiles
still loading, and tiles previously rendered.  At the end of the render
sequence we can simply remove all previously rendered tiles that aren't in
tilesToDrawByZ.  This provides an alternate solution to the problem described
in #53 and more.
2012-10-08 00:41:21 -06:00
Tim Schaub
2c2d40a53c Remove tiles outside rendered extent
To avoid having misplaced at alternate resolutions while zooming, all tiles
outside the rendered extent need to be removed from the dom (closes #53).
2012-10-07 23:47:47 -06:00
Tim Schaub
d6173a5aac Removing unused code 2012-10-07 22:57:09 -06:00
Tom Payne
1880cca940 Merge pull request #41 from twpayne/exports-externs
Refactor exports and externs
2012-10-04 06:16:31 -07:00
Tom Payne
d5002872dd Replace tabs with spaces 2012-10-04 15:12:50 +02:00
Tom Payne
9d253ab6bb Refactor exports and externs 2012-10-04 15:11:26 +02:00
Tom Payne
d35df1d53b More detailed texture upload logging 2012-10-04 11:38:21 +02:00
Tom Payne
21ab556d2f Cope with layers being undefined 2012-10-04 11:38:21 +02:00
Tom Payne
21f8c8f3bd Enable debugging in full screen example 2012-10-04 11:38:21 +02:00
Frédéric Junod
2b4a7e418e Merge pull request #47 from fredj/protocol-relative
Use protocol-relative URL for Bing metadata.
2012-10-04 01:24:16 -07:00
Frederic Junod
c38889955c 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-04 09:16:30 +02:00
Marc Jansen
bd4c7f83f6 Merge pull request #46 from marcjansen/master
Replace tabs with spaces.
2012-10-03 23:38:54 -07:00
Marc Jansen
07730d44d6 Replace tabs with spaces. 2012-10-04 08:34:29 +02:00
Tom Payne
a95e9b9c8b Avoid unecessary style changes in attribution control 2012-10-03 18:51:33 +02:00
Tom Payne
d0a330c870 Use an em space to separate attributions 2012-10-03 17:59:44 +02:00
Frédéric Junod
73a93c4f48 Merge pull request #43 from fredj/interaction-traversal
Travese the interaction array in reverse order.
2012-10-03 08:58:13 -07:00
Frederic Junod
e700ed99be Travese the interaction array in reverse order.
The interactions added via getInteractions().push(...) are evaluated
first.
2012-10-03 16:52:38 +02:00
Frédéric Junod
67770c439a Merge pull request #39 from fredj/getinteraction
Remove interactions from MapProperty
2012-10-03 04:22:36 -07:00
Frederic Junod
488a8224c3 Remove interactions from MapProperty 2012-10-03 11:39:04 +02:00
Frédéric Junod
10708ccfea Merge pull request #38 from fredj/overlay-example
Overlay example
2012-10-02 10:27:33 -07:00
Frederic Junod
3df18d2df8 Use existing local coordinate var 2012-10-02 11:26:44 +02:00
Frederic Junod
8a5e7c77c9 Don't set map at each click 2012-10-02 11:25:58 +02:00
tschaub
671c902d72 Creating the target directory for api docs 2012-10-01 16:35:38 -06:00
Tom Payne
c6a9044bee Indent all HTML files with two spaces 2012-10-01 14:29:50 +02:00
Tom Payne
d894275cf5 Add content type to examples 2012-10-01 14:28:45 +02:00
Frédéric Junod
6b0669c834 Fix path to ol.css 2012-10-01 11:05:37 +03:00
Tom Payne
5e8747d37c Add missing require 2012-09-30 18:28:27 +02:00
Tom Payne
5a51087526 Re-order declarations for clarity, thanks @elemoine 2012-09-30 15:18:16 +02:00
Tom Payne
64d0954b69 Remove Type suffix in auto-generated namespaces, thanks @elemoine 2012-09-30 15:10:15 +02:00
Tim Schaub
c120c03fb1 Properly maintain offset and origin while rotating
This brings equivalent behavior when rotating in both renderers.  Previously, offsets were maintained with style top/left.  Now a single transform handles the translation and rotation.  The scale3d function removes the separation between tiles.  The next step for the DOM renderer is to scale in this same transform.
2012-09-29 17:55:28 -06:00
Tim Schaub
0e27f31785 Avoid undefined rotation 2012-09-29 17:47:44 -06:00
ahocevar
69859b415b More MapBrowserEvent improvements
Now we use the browser's native dblclick event on pointer
devices, and we fire dragstart and dragend only if we're really
dragging, and not on mousedown/touchstart and mouseup/touchend.
2012-09-29 18:54:29 +02:00
ahocevar
877971185f MapBrowserEvent simplifications and improvements
We don't register two listeners for mouseup and touchend any
more. And instead of using the native click event on touch
devices, we react on touchend, to make clicking more responsive.
On pointer devices, the underlying native event of a dblclick
event is now a click event.
2012-09-29 16:51:08 +02:00
ahocevar
6267100871 Move customizations out of arrow_box CSS 2012-09-29 16:48:22 +02:00
Tom Payne
ef1d05fe86 Ensure target is deleted when compile fails 2012-09-29 16:04:13 +02:00
Tom Payne
3ed65c0d98 Correct clean target 2012-09-29 16:00:47 +02:00
Tom Payne
24771c73a0 Export layer options type 2012-09-29 15:36:17 +02:00
Tom Payne
f9b791b2f5 Correct generation of externs for nested namespaces 2012-09-29 15:35:25 +02:00
Tom Payne
8387f74a7b Generate exports automatically from src/ol/exports.txt 2012-09-29 15:17:40 +02:00
Tom Payne
c7c93ce099 Consistent nomenclature 2012-09-29 14:42:12 +02:00
Tom Payne
1a5375fa51 Move target container in to map options 2012-09-29 13:58:15 +02:00
Éric Lemoine
936a769869 Fix typo in ShiftDragZoom (caught by @ahocevar) 2012-09-29 13:47:00 +02:00
Tom Payne
4e5765f42f Add missing dependencies to examples/%.combined.js target 2012-09-29 13:41:23 +02:00
Tom Payne
1ec4ac7d63 Add build-examples to precommit target 2012-09-29 13:41:23 +02:00
Tom Payne
0f9578a694 Add build-examples target 2012-09-29 13:41:22 +02:00
Tom Payne
78317cdc5d Change order of precommit steps 2012-09-29 13:21:58 +02:00
Tom Payne
7cff23cf63 Remove stale .gitignore entry 2012-09-29 13:20:22 +02:00
Tom Payne
83a3306bb7 Only rebuild doc when source changes 2012-09-29 12:33:01 +02:00
Tom Payne
2341e8cd8f Add simple full screen example 2012-09-29 12:33:01 +02:00
Tom Payne
ea95ca4918 Rename full screen example to overlay and popup 2012-09-29 12:33:01 +02:00
Tom Payne
145312b273 Sort specs 2012-09-29 12:33:01 +02:00
Tom Payne
9494321c91 Use a Python script to generate requireall.js
This is needed to work around platform variations in the sort command.
2012-09-29 12:31:31 +02:00
Tom Payne
71e42b2448 Refactor build system
This rather large commit refactors the build system to solve a number of
problems:
- Object literal types are now declared in just one place
- There are no more circular dependencies
- There is no need for concealed subclasses in build-standalone mode

When building in standalone mode, you need to include the source in
build/src/external.  This declares object literal types as externs so
that their properties are not renamed.

When building with the application, you need to include the source in
build/src/internal.  This declares object literal types as typedefs so
that their properties can be renamed and removed.

Note also that ol.MapOptions has been merged into ol.Map, with some
renaming.
2012-09-29 11:51:53 +02:00
Tom Payne
012b8a584a Add serve-precommit target for Travis 2012-09-29 11:51:53 +02:00
Tom Payne
68209bc5ac Remove stray ignore 2012-09-29 11:51:53 +02:00
ahocevar
2b53481932 Making Vienna's location more accurate 2012-09-29 09:54:34 +02:00
Tim Schaub
67bc677ecb Stick with radians 2012-09-29 01:37:54 +02:00
Tim Schaub
50bf2f015c Getting rid of lines between rotated tiles
Applying the scale3d trick just to get rid of small pixel gap between rotated tiles.  This will be reworked soon with additional use of transforms.
2012-09-29 01:33:50 +02:00
Tim Schaub
bc5cd13855 Tiny bit of style 2012-09-29 01:17:46 +02:00
Tim Schaub
c24e520961 Non-functioning example
When loading this example in compiled mode, the page displays the following:

    ol3 proj4js demo

    [object Object][object Object]

With `mode=RAW`, it does display some numbers, but I think we could better explain this functionality with a different sort of tutorial/example.
2012-09-29 01:12:40 +02:00
Tim Schaub
71547c6e48 Examples don't load without make serve 2012-09-29 00:47:42 +02:00
Tom Payne
b6c06f4760 Generate externs and typedefs 2012-09-28 21:55:48 +02:00
Tom Payne
e36169c936 Ignore all errors in when testing for WebGL 2012-09-28 21:36:03 +02:00
Tom Payne
2713addb33 More accurate WebGL support test, see issue #31 2012-09-28 20:05:14 +02:00
ahocevar
dcc3fdde96 Fixing popup in example 2012-09-28 19:19:46 +02:00
Tom Payne
3eebed4580 Add drag box in shift drag zoom control 2012-09-28 17:24:17 +02:00
Tom Payne
62dc6a1b45 Port @ahocevar's drag box control to the new control architecture 2012-09-28 17:24:17 +02:00
ahocevar
467fef8875 Updating readme
File urls work fine now, so using a HTTP server has become
optional.
2012-09-28 17:07:33 +02:00
ahocevar
163737d3de Adding popup to full-screen example 2012-09-28 16:47:55 +02:00
ahocevar
6b395cafb5 Stop click event, as previously promised
This should have gone in with 3910318f1b.
2012-09-28 16:47:54 +02:00
Éric Lemoine
9d8155cf9f Move git-update-ghpages from tools to bin 2012-09-28 16:31:45 +02:00
Éric Lemoine
6cf964b3ae Remove old build files 2012-09-28 16:30:06 +02:00
Éric Lemoine
3aabf117bc CONTRIBUTING.md now mentions the precommit target 2012-09-28 16:23:51 +02:00
Éric Lemoine
82406886a2 Add a CONTRIBUTING.md file 2012-09-28 16:19:07 +02:00
Tom Payne
3e824fc683 Avoid running build twice 2012-09-28 15:52:16 +02:00
Éric Lemoine
8fd77ef330 ol.MapExport takes maxResolution and friends into account 2012-09-28 15:32:00 +02:00
Éric Lemoine
91d582e76e export ol.Projection.transformWithCodes 2012-09-28 15:29:12 +02:00
Éric Lemoine
7a296a273b Export the ol.overlay.Overlay symbol 2012-09-28 15:21:23 +02:00
Tom Payne
7bcb5886ad Use CSS rule to separate attributions 2012-09-28 14:57:54 +02:00
Tom Payne
ed67bdc489 Make attribution control less ugly 2012-09-28 14:53:45 +02:00
Tom Payne
1be9e97489 Add attribution control by default 2012-09-28 14:53:45 +02:00
ahocevar
82058412a1 Bringing label markup back
Also with a bit of css, we can make the label invisible before
it gets added as overlay to the map.
2012-09-28 14:44:36 +02:00
ahocevar
b233b8e1a5 Making sure that position:absolute is set
Positioning of overlays is only possible when position:absolute
is set on the element. So we set it programmatically now.
2012-09-28 14:44:35 +02:00
Tom Payne
acb411ef43 Use consistent naming for CSS classes 2012-09-28 14:32:41 +02:00
Tom Payne
a26f796577 Prettify CSS 2012-09-28 14:32:41 +02:00
Tom Payne
7bdb86b10e Remove unused CSS classes 2012-09-28 14:32:40 +02:00
Éric Lemoine
9af392e217 Change loader.js usage example 2012-09-28 14:25:21 +02:00
Éric Lemoine
f60af3910f Explain how to add examples in readme.md 2012-09-28 14:21:16 +02:00
Tom Payne
da5ad0bf20 Minify CSS with Closure Stylesheets
See https://code.google.com/p/closure-stylesheets/
2012-09-28 14:16:25 +02:00
Éric Lemoine
5615eabf66 Update readme.md 2012-09-28 14:02:57 +02:00
Éric Lemoine
896f5203db Change examples directory names to "examples" 2012-09-28 14:01:51 +02:00
Éric Lemoine
310d5bfeaa The serve target needs demos as its source 2012-09-28 13:54:51 +02:00
Éric Lemoine
11915549a3 Make make lint ignore demos/*.combined.js file 2012-09-28 13:52:55 +02:00
Tom Payne
31411ae33f Remove unused style 2012-09-28 13:48:20 +02:00
Tom Payne
a341df3b41 Fix not-up-to-date transform bug in mouse position control 2012-09-28 13:48:20 +02:00
Tom Payne
0bf17f64f7 Initialize controls after map has been configured 2012-09-28 13:48:20 +02:00
Éric Lemoine
e3cef24f5f Change examples/demos structure 2012-09-28 13:33:05 +02:00
ahocevar
3910318f1b Merge pull request #30 from openlayers/overlay
Introducing ol.overlay.Overlay and an overlayContainer. r=@twpayne
2012-09-28 04:05:21 -07:00
ahocevar
3d62b67172 Introducing ol.overlay.Overlay and an overlayContainer
ol.overlay.Overlay can be used to bind DOM elements to a
coordinate on the map. It has positioning options to support
e.g. popups or image markers that have an anchor at the bottom
and an unknown size.

The overlayContainer stops propagation on mousedown and
touchstart events, so clicks and gestures on overlays don't
trigger any MapBrowserEvent. To make this work reliably, we now
only fire dblclick in mapbrowserevent.js when there was a
previous mousedown or touchstart. The default container for
controls is now the overlayContainer.
2012-09-28 13:01:56 +02:00
Tom Payne
a46e251eb2 Update demos to use new controls system 2012-09-28 12:53:44 +02:00
Tom Payne
e2e983728e Add controls to map 2012-09-28 12:52:54 +02:00
Tom Payne
e7eccb302d Cope with map being null 2012-09-28 12:51:10 +02:00
Tom Payne
74f87995c8 Build doc in build/gh-pages directory 2012-09-28 12:25:06 +02:00
Tim Schaub
ff19ab0a28 Call event.getPixel() to get the map pixel offset
The new getPixel method should be used instead of checking offsetX/Y on the browser event.
2012-09-28 12:19:32 +02:00
Tim Schaub
eb29e6a43c Using null instead of null or object or undefined 2012-09-28 12:08:21 +02:00
Tim Schaub
3e34013c09 Separating out method to get pixel offset 2012-09-28 12:08:21 +02:00
Éric Lemoine
158e4b1356 Add a readme file to the tools dir 2012-09-28 11:30:32 +02:00
Éric Lemoine
e93bb6a39b Add a gh-pages target to Makefile 2012-09-28 11:26:00 +02:00
Éric Lemoine
a347454aa3 JSDoc output goes to build/<branch_name>/apidoc 2012-09-28 11:26:00 +02:00
Éric Lemoine
e27d0d9dc1 Add a tool to create/update the gh-pages branche 2012-09-28 11:26:00 +02:00
Tim Schaub
6ed27779cc Rotation support for the dom renderer
Thanks @fredj for the inspiration.  This gives us initial rotation support.  It exposes some issues in the interactions that I'll address separately.  Closes #22.
2012-09-28 10:53:36 +02:00
Éric Lemoine
ab403bf71d Merge pull request #29 from openlayers/travis2
Make Travis also build the doc
2012-09-28 00:07:54 -07:00
Tom Payne
e3c3c13ac2 Use goog.vec.Mat4.rotateZ 2012-09-27 18:21:33 +02:00
Tom Payne
8dc57d5148 Add ol.ASSUME_TOUCH @define 2012-09-27 18:21:21 +02:00
Tom Payne
7415a11c63 More responsive zoom buttons on touch devices thanks to @ahocevar 2012-09-27 18:07:17 +02:00
Éric Lemoine
a0f747379b Make Travis also build the doc 2012-09-27 18:01:31 +02:00
Éric Lemoine
676a95efd8 Merge remote-tracking branch 'upstream/master' 2012-09-27 17:57:44 +02:00
Éric Lemoine
d99a0c164e Make functions @protected or @private
This also makes jsdoc3 happy along the way.
2012-09-27 17:56:29 +02:00
Tom Payne
0faab71e3f Implement new control architecture 2012-09-27 17:54:20 +02:00
Tom Payne
65b4041aa3 Remove ol.control.DragBox temporarily 2012-09-27 17:54:20 +02:00
Tom Payne
fc81c0403e Use new Bing Maps API key 2012-09-27 17:54:20 +02:00
Tim Schaub
981a40a994 Remove tiles that are still loading at alt z
When zooming to a new zoom level, we can immediately remove tiles from the previous level.  This (strongly) suggests not adding images to the container until they have actually loaded.
2012-09-27 17:46:23 +02:00
ahocevar
9536ba8e14 Common place to store browser features
The ol.BrowserFeature object is supposed to provide all detected browser features in a central place.
2012-09-27 17:09:19 +02:00
Tom Payne
fd411eb9ab Don't create controls in interactions 2012-09-27 16:34:39 +02:00
Tim Schaub
b8a69f0777 Adjusting layers pane only when necessary
We only want to adjust things that have to do with rendering (like the position of the layers panel) when actually rendering.  The handleXChange methods may be called more times than we can actually render, so we never want to do anything that touches the DOM there.  Instead, we have to keep track of the state at previous render and adjust the layers panel (or other) based on changes only when rendering.
2012-09-27 16:09:04 +02:00
Tim Schaub
d4d04eface Less whitespace by default. 2012-09-27 16:09:03 +02:00
Tim Schaub
9f9729656b Todos done. 2012-09-27 16:09:03 +02:00
Éric Lemoine
a3d888a57b Add FIXME to MapOptions 2012-09-27 15:59:30 +02:00
Éric Lemoine
0535a31bc6 Add zoomDelta option to MapOptions 2012-09-27 15:48:04 +02:00
Éric Lemoine
4f116c2e5b Fix default value of numZoomLevels 2012-09-27 15:46:45 +02:00
Éric Lemoine
b8356f5e2e Fix bad copy and paste in mapoptions tests 2012-09-27 15:40:58 +02:00
Éric Lemoine
d2f9ebae41 Add mouseWheelZoomDelta option to MapOptions 2012-09-27 15:16:14 +02:00
Éric Lemoine
dd425ff922 Export new map options 2012-09-27 14:10:05 +02:00
Tom Payne
7dbc70bcac Don't try to be too clever with size changes 2012-09-27 14:05:19 +02:00
Tom Payne
7625607fd1 Only resize canvas when renderering 2012-09-27 14:05:19 +02:00
Tom Payne
ac0e02039c s/POST_RENDER/POSTRENDER/ 2012-09-27 14:05:19 +02:00
Éric Lemoine
d61a117787 Remove CenterConstraint entirely 2012-09-27 13:44:24 +02:00
Éric Lemoine
bd0f3d2015 Zoom control does not know about the constraints 2012-09-27 13:42:30 +02:00
Éric Lemoine
87189293b5 Make the resolution constraint configurable through map options 2012-09-27 13:36:57 +02:00
Tom Payne
1f55d139b2 Remove stray script element 2012-09-27 13:00:52 +02:00
Tom Payne
65b8e0f915 Use object literals and use generic tile layer 2012-09-27 12:45:00 +02:00
Tom Payne
5ddbf17c8d Run lint on specs 2012-09-27 12:42:13 +02:00
Tom Payne
b7def4c8c4 Clean up some lint problems in specs 2012-09-27 12:42:13 +02:00
Tom Payne
c908e88dce Fix overly-aggressive clean step 2012-09-27 12:42:13 +02:00
ahocevar
26e3179b2e Making linter and Travis happy 2012-09-27 12:18:05 +02:00
ahocevar
caaec7c366 Use the map's zoom method instead of our own
This also allows us to get rid of the resolutions constraint and configuration.
2012-09-27 12:05:53 +02:00
Éric Lemoine
f78cad0d77 Merge pull request #27 from elemoine/constraints
Refactoring to make constraints work at the map level
2012-09-27 01:42:45 -07:00
ahocevar
1b18dbedb7 Dispatch MapBrowserEvent before interactions get it
By doing so, application event handlers can preventDefault on the event, and interactions won't get the event any more. This means that interactions are default behavior that can be prevented by application event handlers.
2012-09-27 09:54:16 +02:00
Éric Lemoine
cf20fd3e49 Replace map.zoomIn and map.zoomOut by map.zoom(delta) 2012-09-27 09:37:19 +02:00
Tom Payne
d3b9af30d0 Don't modify return type of method 2012-09-27 09:36:55 +02:00
Tom Payne
96bd703271 s/tilesource/source/ 2012-09-27 09:36:55 +02:00
Tom Payne
50334b7971 s/ol.TileLayer/ol.layer.TileLayer/ 2012-09-27 09:36:55 +02:00
Tom Payne
ccf8eb3c97 Don't pass viewport size monitor to ol.Map constructor 2012-09-27 09:36:55 +02:00
Tom Payne
8ffdaad5f5 Only re-run lint when source files have changed 2012-09-27 09:36:55 +02:00
Tom Payne
9c798f410e Work around circular dependency bug 2012-09-27 09:36:55 +02:00
Éric Lemoine
25e00e5d74 Add FIXME to control/zoom.js 2012-09-27 00:10:54 +02:00
Éric Lemoine
79166dc1d6 Constraint objects moved to ol namespace from ol.interaction namespace 2012-09-27 00:10:54 +02:00
Éric Lemoine
b6bb05bf76 Refactoring to set the constraints to the map 2012-09-27 00:09:29 +02:00
ahocevar
2991fa1178 Adding important comment 2012-09-26 22:39:21 +02:00
Tom Payne
04325ee3fd Remove unnecessary require, thanks @fredj 2012-09-26 19:46:13 +02:00
Tom Payne
290d03e76f s/store/source/ 2012-09-26 19:43:23 +02:00
Tom Payne
228e5a8dbf Move requires to end of the file to ensure tests run even if goog.require fails 2012-09-26 19:40:16 +02:00
ahocevar
d6f6b828f1 preventDefault on mousedown
This is needed to avoid native image dragging.
2012-09-26 18:48:57 +02:00
ahocevar
303960731c CSS for previous commit 2012-09-26 18:33:07 +02:00
Tom Payne
ea81ce33dd Add consistent API demo 2012-09-26 18:28:06 +02:00
Tom Payne
546f1f4b9f Add initial exports and externs 2012-09-26 18:28:06 +02:00
Tom Payne
3b11398f35 Remove unnecessary precision 2012-09-26 18:28:05 +02:00
Tom Payne
a578dd6786 Remove unnecessary parentheses 2012-09-26 18:28:05 +02:00
ahocevar
e390ff80ea Adding zoom control 2012-09-26 18:27:45 +02:00
ahocevar
47c343ce4f We can rely on the click event
No need to use the mousedown/touchstart event here, because the click event gives us both clientX/clientY and button on touch devices.
2012-09-26 18:27:12 +02:00
ahocevar
4257f5c7c6 Removing unneeded preventDefault calls 2012-09-26 18:26:11 +02:00
ahocevar
c7a32b33da Fixing indentation 2012-09-26 15:11:47 +02:00
ahocevar
78c380c9a5 Type cast to make the compiler happy 2012-09-26 15:05:52 +02:00
ahocevar
fa16adec02 Making more use of Closure 2012-09-26 14:38:29 +02:00
Tim Schaub
3510c37e43 Handle map size changes in the renderer 2012-09-26 14:10:16 +02:00
Tim Schaub
5b36cf1312 Only adjust tile when necessary 2012-09-26 13:12:36 +02:00
ahocevar
bdd8a75123 Remove the box also if we don't zoom 2012-09-26 13:03:41 +02:00
Tom Payne
e7063953d7 Don't create a class for map options 2012-09-26 12:54:53 +02:00
Tom Payne
013e6c6320 Use zoom option 2012-09-26 12:54:53 +02:00
Tom Payne
b73b2d12c4 Replace ol.createMap with friendlier ol.Map constructor 2012-09-26 12:54:53 +02:00
ahocevar
3bd204fb6a DragBox control provides visual shiftdragzoom feedback
Adding a new DragBox control and using it in the shiftdragzoom interaction to provide visual feedback of the zoom box. The control is nicely separated from the interaction - it only draws the box and does not perform any action.
2012-09-26 12:50:14 +02:00
Tim Schaub
24edce24f1 Add alternate tiles under tiles at target z
When zooming or panning, if we have tiles at alternate resolutions, those tiles are inserted in the DOM before the tiles at the target resolution.  This means you should see blurry tiles instead of whitespace when panning (assuming you've already zoomed in a bit).
2012-09-26 12:18:11 +02:00
Tom Payne
9f1743cb4d Remove unused @export tags 2012-09-26 11:28:26 +02:00
Tom Payne
5db8724b9c Use consistent whitespace in Makefile 2012-09-26 11:19:14 +02:00
Tom Payne
0eeae68ee9 Don't build demos with simple optimizations 2012-09-26 11:19:14 +02:00
Éric Lemoine
7a6acb670f Update readme.md 2012-09-26 12:17:01 +03:00
Tim Schaub
48c4cbc1e5 Correcting comment typos 2012-09-26 11:11:51 +02:00
Tim Schaub
8e38ab0fdc Lint free. 2012-09-26 10:58:17 +02:00
Tim Schaub
3479e20b0a Merge branch 'alt-tiles' 2012-09-26 10:55:25 +02:00
Tim Schaub
7f58d1a8c6 Proper handling of out-of-range and alt-z tiles
Tile pruning code separated into to methods for clarity.  Alt-z tiles are only removed when all current-z tiles have loaded.  Thanks @elemoine for the excellent debugging session.
2012-09-26 10:52:17 +02:00
Tom Payne
68f8f3d5b1 Use new extra compiler checks 2012-09-26 00:04:28 +02:00
Tim Schaub
299173194c First pass at alt-tile rendering for dom renderer 2012-09-25 20:06:20 +02:00
Tom Payne
a32460945d Use Plovr built on 2012-09-25 2012-09-25 19:51:56 +02:00
ahocevar
86336b42e6 Ignoring index.html instead of debug.html 2012-09-25 19:47:26 +02:00
ahocevar
36a8dd81ee Missing change from previous commit
This should have gone in with ef383ee7b6.
2012-09-25 19:35:12 +02:00
ahocevar
3c099a96b7 No longer tap-selecting elements on touch devices
This finalizes the effort to improve map browser event handling.
2012-09-25 19:32:08 +02:00
ahocevar
ef383ee7b6 Examples using a script loader
This makes it possible to run examples hosted on hosts other than localhost. To get that version by default, debug.html has been renamed to index.html.
2012-09-25 19:06:29 +02:00
Éric Lemoine
c696356586 Update readme.md 2012-09-25 19:31:26 +03:00
ahocevar
5a97655983 Optimizing touch device handling
The native event of the touchstart/mousedown event needs to be cloned; change includes some compiler optimizations.
2012-09-25 18:30:23 +02:00
ahocevar
ce977e5364 Map browser event handling for touch devices
By handling click, dblckick and drag sequences in MapBrowserEvent, we can overcome closure issues with touch events. In particular, these issues were double drag events (from mousemove and touchmove) and a missing dblclick event on touch devices.
2012-09-25 17:28:01 +02:00
ahocevar
b151304630 Prevent default on mousedown and touchstart for all renderers
By doing this on the map renderer, we do not need to duplicate code for the webgl and dom renderers.
2012-09-25 17:28:01 +02:00
Éric Lemoine
019bc09cea Update readme.md 2012-09-25 16:41:54 +02:00
Éric Lemoine
745c906846 Run Travis builds for any branch 2012-09-25 16:23:42 +02:00
Éric Lemoine
95d2cac09f Add Travis config file 2012-09-25 16:07:07 +02:00
Éric Lemoine
4a6b13ed39 Add a download plovr target to Makefile 2012-09-25 16:06:37 +02:00
Éric Lemoine
0130915f00 Makefile - clean target adjustments 2012-09-25 15:38:09 +02:00
Éric Lemoine
e3de55e7cb Makefile - serve target needs build/ol-all.js as a source 2012-09-25 15:37:13 +02:00
Tom Payne
8369924511 Remove debug code 2012-09-25 14:00:19 +02:00
Tom Payne
06ea619989 Avoid re-rendering framebuffer in simple cases 2012-09-25 13:54:15 +02:00
Tom Payne
1bb2c3c451 Enable debugging in full screen demo 2012-09-25 13:54:15 +02:00
Éric Lemoine
629687586f Simplify and clean up the test page 2012-09-25 13:53:11 +02:00
Tom Payne
f2cd64f66f Add precommit target 2012-09-25 12:25:14 +02:00
Tom Payne
c2e08861e5 Correct order of transformations 2012-09-25 12:23:11 +02:00
Tom Payne
88fd7729e2 Add missing dependency 2012-09-25 12:18:49 +02:00
Tim Schaub
900eead7c6 Correct type for imagesToLoad. Add note about shorter path. 2012-09-25 12:08:02 +02:00
Éric Lemoine
b4416e71c4 better nosier command 2012-09-25 12:04:57 +02:00
Éric Lemoine
3e01ca97c3 remove the jsunit tests 2012-09-25 12:03:36 +02:00
Éric Lemoine
89f7e44478 Jasmine tests for ol.Collection 2012-09-25 12:02:28 +02:00
Tom Payne
c956ab3482 Relax unit tests as PhantomJS generates the wrong result on Mac OS X 2012-09-25 11:32:31 +02:00
Tom Payne
ae34e8d261 Add full screen demo 2012-09-25 10:59:38 +02:00
Éric Lemoine
116531c275 fix typo in an ol.Rectangle test 2012-09-25 10:42:07 +02:00
Éric Lemoine
db904dae5c Jasmine tests for ol.Rectangle 2012-09-25 10:42:07 +02:00
Tom Payne
b435ccc026 Satisfy gjslint 2012-09-25 10:26:10 +02:00
Éric Lemoine
589c2a8505 Jasmine tests for ol.TileRange 2012-09-25 10:22:36 +02:00
Éric Lemoine
b249b0aaa9 Jasmine tests for ol.tilestore.XYZ 2012-09-25 10:13:41 +02:00
Éric Lemoine
56e48911bf Jasmine tests for ol.TileGrid 2012-09-25 10:03:27 +02:00
ahocevar
6b8e14c623 Don't trigger extra drag events on touch devices. 2012-09-25 08:30:57 +02:00
Éric Lemoine
27d3a88413 add FIXMEs for test runner 2012-09-25 00:47:02 +02:00
Éric Lemoine
1f0d53342a Jasmine tests for ol.array 2012-09-25 00:29:23 +02:00
Éric Lemoine
f0ff1faa73 fix ol.Extent tests 2012-09-25 00:18:25 +02:00
Éric Lemoine
6fab51bde0 Jasmine tests for ol.Extent 2012-09-25 00:13:28 +02:00
Tom Payne
424dbd7582 Remove problematic (and unused) clone methods, move contains out of ol.Rectangle 2012-09-25 00:04:45 +02:00
Tom Payne
c43e04ea77 Refactor to support stricter new compiler 2012-09-25 00:03:53 +02:00
Tom Payne
2d7a21eaa0 More gjslint fixes 2012-09-25 00:03:53 +02:00
Éric Lemoine
92f0711404 Jasmine tests for ol.interaction.ResolutionConstraint 2012-09-25 00:02:22 +02:00
Éric Lemoine
94f2f85195 Jasmine tests for ol.TileUrlFunction 2012-09-24 23:39:50 +02:00
Éric Lemoine
30dfbfb8b7 mention nosier in test/readme.md 2012-09-24 23:31:57 +02:00
Éric Lemoine
ec9382e760 Jasmine tests for ol.Projection 2012-09-24 23:26:49 +02:00
Éric Lemoine
c2901dec73 Jasmine tests for ol.TileCoord 2012-09-24 22:56:40 +02:00
Éric Lemoine
2aac0140c1 add a test target to Makefile 2012-09-24 22:34:09 +02:00
Éric Lemoine
fbaefeea7c give the test dir a specific readme file 2012-09-24 22:34:09 +02:00
Éric Lemoine
1f457fc919 add ConsoleReporter to Jasmine Env (for headless testing) 2012-09-24 22:34:09 +02:00
Éric Lemoine
92dca8584c add phantom-jasmine 2012-09-24 22:34:08 +02:00
Éric Lemoine
5d88994a9a remove test/api.html 2012-09-24 22:34:08 +02:00
Tom Payne
8394147df1 Satisfy gjslint 2012-09-24 21:25:29 +02:00
Tom Payne
bd5ef6b361 Make path to jsdoc configurable 2012-09-24 18:30:32 +02:00
Tom Payne
b7020750ac Add initial exports 2012-09-24 18:25:19 +02:00
Tom Payne
d7c6ce19a9 Rename build/ol-compiled.js to build/ol.js 2012-09-24 18:25:19 +02:00
Tom Payne
6006d43656 Remove ol.Rectangle.clone 2012-09-24 18:25:19 +02:00
Tim Schaub
5eb5715530 More longname display. 2012-09-24 18:23:19 +02:00
Tim Schaub
2b307ef6a9 Replace opt_ prefix with (Optional) in description. 2012-09-24 18:23:19 +02:00
Tim Schaub
b73ffbdc7c Hide source tags (until we get the full path). 2012-09-24 18:23:19 +02:00
Tim Schaub
f2c05bdf0f Remove "arguments" column from params table. 2012-09-24 18:23:19 +02:00
Tim Schaub
99e58cb8e0 Stylesheet to hide protected members.
Source tags are also hidden here as they only provide the file name and not the complete path.  This should be fixed in JSDoc 3.
2012-09-24 18:23:19 +02:00
Éric Lemoine
4b015f9962 add Jasmine tests for ol.Object 2012-09-24 18:15:30 +02:00
Éric Lemoine
baeddfac12 remove the old tests 2012-09-24 18:12:51 +02:00
ahocevar
002e23cb74 Satisfy latest Closure library/tools. 2012-09-24 17:59:34 +02:00
Tim Schaub
2add7288e5 Doc target for building with JSDoc 3.
This assumes jsdoc is on the path.
2012-09-24 17:25:33 +02:00
Tim Schaub
d51cd1c395 Interaction in ol.interaction namespace. 2012-09-24 17:18:21 +02:00
Tim Schaub
ed754fbfdf Control in the ol.control namespace. 2012-09-24 17:15:30 +02:00
Tim Schaub
1f9e2aa3c4 Move Layer into ol.layer namespace. 2012-09-24 17:08:36 +02:00
Tim Schaub
57d75ace5d Adding a JSDoc 3 template. 2012-09-24 16:59:27 +02:00
Tim Schaub
c3a41c967e Removing file overviews for now. 2012-09-24 16:58:55 +02:00
Tom Payne
d7f12debb0 Expect to find proj4js-combined.js in build directory 2012-09-24 14:40:50 +02:00
Tom Payne
bb6f4e2ea1 Remove webgl-debug.js for now 2012-09-24 14:40:50 +02:00
Tom Payne
048d19e73a Clean up whitespace 2012-09-24 14:37:27 +02:00
Tom Payne
a416d1f601 s/TileBounds/TileRange/ 2012-09-24 14:33:24 +02:00
Tom Payne
f8c31ba45c s/ol3/ol/ 2012-09-24 14:21:41 +02:00
Tom Payne
6737220b83 Remove ol namespace 2012-09-24 14:07:11 +02:00
Tom Payne
6e427a49ab Use @inheritDoc instead of @override 2012-09-21 14:33:35 +02:00
Tom Payne
5f0c90cf7e Add minimal comments to satisfy jsdoc3. 2012-09-21 10:08:29 +02:00
Tom Payne
397ebca228 Wrap compiled API in anonymous function 2012-09-20 13:04:51 +02:00
Tom Payne
5c76291b74 Remove move dead code 2012-09-19 17:04:12 +02:00
Tom Payne
4141393423 Warn when debugger statement is used 2012-09-19 15:51:50 +02:00
Tom Payne
181a574126 Enable more compiler checks 2012-09-19 15:51:29 +02:00
Tom Payne
353727e77d Enable more aggressive compiler variable renaming 2012-09-18 17:54:56 +02:00
Tom Payne
4a8ae08c1c Merge pull request #24 from openlayers/exp 2012-09-13 15:43:42 +02:00
Tom Payne
c61fd1dccf Merge pull request #20 from openlayers/exp-reorganization
Exp reorganization
2012-09-13 06:40:53 -07:00
Tom Payne
77b6f59178 Improve file layout, thanks @elemoine 2012-09-13 15:39:54 +02:00
Tom Payne
0edb8dc502 Merge pull request #23 from openlayers/remove-openlayers2
Remove OpenLayers 2, as discussed with @ahocevar, @elemoine and @tschaub
2012-08-30 13:22:47 -07:00
Tom Payne
b643cd2fef Merge branch 'exp' 2012-08-30 17:05:32 +02:00
Tom Payne
c848d48e3f Move ol3.layer.* into their own directory 2012-08-30 16:48:00 +02:00
Tom Payne
23ee8b73bd Make directory structure better match class hierarchy 2012-08-30 16:48:00 +02:00
Tom Payne
638504f750 Reorganize renderers 2012-08-30 16:47:59 +02:00
Tom Payne
903352989d Remove entries from .gitignore 2012-08-30 15:17:24 +02:00
Tom Payne
8ab2e5dfd2 Remove attic 2012-08-30 15:14:59 +02:00
Tom Payne
211f93248c Store webgl-debug.js in build 2012-08-30 15:14:59 +02:00
Tom Payne
6c0b719aef Remove OpenLayers 2, as discussed with @ahocevar, @elemoine and @tschaub 2012-08-30 15:00:23 +02:00
Tom Payne
4aff22e980 ol3 is now internal, ol is now external
As discussed with @ahocevar, @elemoine and @tschaub.
2012-08-29 20:46:42 +02:00
Éric Lemoine
1eddf91996 Merge pull request #19 from elemoine/getcoordinate
MapBrowserEvent.getCoordinate may return wrong coords
2012-08-27 03:44:15 -07:00
Éric Lemoine
cb6c73d99f MapBrowserEvent.getCoordinate may return wrong coords 2012-08-27 11:51:39 +02:00
Éric Lemoine
5998c0a48a Merge pull request #18 from elemoine/domrenderer
DOM renderer changes
2012-08-22 01:34:22 -07:00
Éric Lemoine
d0ffc6186d remove FIXMEs 2012-08-22 10:33:30 +02:00
Éric Lemoine
e0a6f3aeeb remove ol.TWO_LAYERS_DEMO_ENABLE_DOM from two-layers example 2012-08-21 21:24:12 +02:00
Éric Lemoine
3afe799cf3 dom.LayerRenderer.handleLayerLoad addition 2012-08-21 21:23:45 +02:00
Tom Payne
7a720d2c90 Configure more detailed logging by default in side-by-side demo 2012-08-21 18:34:03 +02:00
Tom Payne
5d75d42966 Log animation and rendering related actions 2012-08-21 18:33:35 +02:00
Tom Payne
6edc051548 Give each ol.Map instance its own logger 2012-08-21 18:33:02 +02:00
Tom Payne
f92d975921 Give each instance its own logger, instead of using a per-class logger 2012-08-21 18:32:22 +02:00
Tom Payne
eae8860072 Correct some jsdoc comments 2012-08-21 18:01:02 +02:00
Tom Payne
9fccf439da Don't bother freeing resources when context is lost 2012-08-21 18:00:44 +02:00
Tom Payne
0be2fb6e75 Defer texture loads until post render 2012-08-21 18:00:27 +02:00
Tom Payne
f02a0d0471 Fix ol.webgl.MapRenderer.prototype.isImageTextureLoaded 2012-08-21 17:56:57 +02:00
Tom Payne
bc22fd9ae4 Add ol.Map.prototype.isAnimating 2012-08-21 17:56:38 +02:00
Tom Payne
1d5cdcb0ac Add Stamen maps support 2012-08-21 15:30:49 +02:00
Tom Payne
7c77b6a88b Respect extent when requesting TileJSON tiles 2012-08-21 15:30:48 +02:00
Éric Lemoine
36b8cb7845 Merge pull request #17 from elemoine/layout
change map HTML layout
2012-08-21 03:09:43 -07:00
Éric Lemoine
95a2b3845c map renderer should call map.render instead of this.render 2012-08-21 06:55:57 +02:00
Éric Lemoine
042893a817 enable DOM in two-layers example 2012-08-21 06:55:21 +02:00
Éric Lemoine
0fd6629459 map renderer should not render if map is not defined 2012-08-21 06:54:42 +02:00
Éric Lemoine
83994081b5 mouseposition listens to mousemove and mouseout on map viewport 2012-08-20 21:51:23 +02:00
Éric Lemoine
d0572c081e webgl canvas element does not need overflow:hidden 2012-08-20 21:50:24 +02:00
Éric Lemoine
21ae6d1be3 DOM map renderer no longer need a viewport 2012-08-20 21:49:40 +02:00
Éric Lemoine
a610413811 map renderer target is now map renderer container 2012-08-20 21:48:30 +02:00
Éric Lemoine
a9706cd84b Map.handleViewportResize renamed handleBrowserWindowResize 2012-08-20 21:44:57 +02:00
Éric Lemoine
66d4d199b4 map target is now map container 2012-08-20 21:44:29 +02:00
Éric Lemoine
ca2b6e4189 map has a viewport 2012-08-20 21:41:44 +02:00
Éric Lemoine
a17a4a2581 Merge pull request #16 from elemoine/tilejson
use setExtent to set extent of TileJSON tile store
2012-08-19 13:50:47 -07:00
Éric Lemoine
189b43ad4a two-layers example - do not add layers twice 2012-08-17 22:17:06 +02:00
Éric Lemoine
5096964ec2 use setExtent to set extent of TileJSON tile store 2012-08-17 22:07:54 +02:00
Tom Payne
bb8b1043d9 Add missing type declaration 2012-08-16 23:51:55 +02:00
Tom Payne
f4e0404336 Defer WebGL resource deletion to post-frame 2012-08-16 23:43:33 +02:00
Tom Payne
5df59d047d Add gl.webgl.FREE_RESOURCES_IMMEDIATELY @define 2012-08-16 23:43:33 +02:00
Tom Payne
ee59e877e0 Refactor animation logic 2012-08-16 23:43:33 +02:00
Tom Payne
867b36410b Add Map postrender event 2012-08-16 23:43:33 +02:00
Tom Payne
9b17d28b2b Add ol.webgl.tilelayerrenderer.logger 2012-08-16 23:43:32 +02:00
Tom Payne
a49ea9bbed Enable finest logging in debug mode 2012-08-16 23:22:38 +02:00
Tom Payne
b8edf651e9 Move ol.Collection.create to ol3.collection 2012-08-16 21:47:12 +02:00
Tom Payne
a30b2f1795 Move ol.Object.createFromObject to its proper home as a simplified API function 2012-08-16 21:43:23 +02:00
Tom Payne
69cd2df009 Trigger render in Map, not MapRenderer 2012-08-16 18:32:38 +02:00
Tom Payne
5a9fe22e8c Avoid calling render() too early 2012-08-16 18:26:59 +02:00
Tom Payne
44cd3ceccb Re-order functions alphabetically 2012-08-16 17:56:19 +02:00
Tom Payne
4f2b6a0c22 Initialize all member variables in constructor 2012-08-16 16:42:56 +02:00
Éric Lemoine
a43cd15b27 Merge pull request #15 from elemoine/renderer
separate map and map renderer
2012-08-16 07:27:55 -07:00
Éric Lemoine
adb209c3f9 map functions in alphabetical order 2012-08-16 16:14:16 +02:00
Éric Lemoine
70587af947 move pixel to/from coordinate calculation functions from Map to MapRenderer 2012-08-16 15:35:33 +02:00
Éric Lemoine
9eb031ed89 remove ol.webgl.LayerRenderer.prototype.getGL (as suggest by @twpayne) 2012-08-16 15:04:23 +02:00
Éric Lemoine
89eadc5770 move back rendering freeze/unfreeze and animation from map renderer to map 2012-08-16 15:00:14 +02:00
Éric Lemoine
f7185f1c75 remove map FIXME 2012-08-16 14:57:42 +02:00
Éric Lemoine
af63654776 Merge remote branch 'upstream/exp' into renderer 2012-08-14 21:19:46 +02:00
Tom Payne
c157d4f01f Merge pull request #14 from openlayers/exp-remove-object-changed-methods
Remove support for *_changed methods
2012-08-14 08:21:19 -07:00
Tom Payne
65278c4322 Remove support for *_changed methods 2012-08-14 16:00:18 +02:00
Tom Payne
104c859f85 Satisfy gjslint 2012-08-14 15:09:57 +02:00
Éric Lemoine
d9b51cdc7f fix typo in API doc 2012-08-14 10:24:30 +02:00
Éric Lemoine
0f401a2d51 forEach cannot iterate over a null object 2012-08-14 10:24:12 +02:00
Éric Lemoine
9f5b98e70c remove split out renderer FIXME 2012-08-14 10:23:06 +02:00
Éric Lemoine
da9de171d2 exit renderer hint for loop when map renderer is found 2012-08-14 10:22:46 +02:00
Tom Payne
dafbd503a5 Use matrix inversion to calculate pixel to coordinate matrix 2012-08-14 09:37:48 +02:00
Tom Payne
477dc0b92b Fix direction of rotation in coordinate to pixel matrix 2012-08-14 09:37:16 +02:00
Tom Payne
d9009eae10 Fix missed used of goog.webgl 2012-08-14 09:20:51 +02:00
Éric Lemoine
85c8dddc02 add a FIXME 2012-08-14 07:48:13 +02:00
Éric Lemoine
e7696dd6aa map renderer unregisters listeners on dispose 2012-08-14 07:44:25 +02:00
Éric Lemoine
f0ecf858c8 better type 2012-08-14 07:35:24 +02:00
Éric Lemoine
7be8a735fa better code (thanks @twpayne) 2012-08-14 07:26:43 +02:00
Éric Lemoine
6f0ae684f7 fix linter errors 2012-08-14 07:15:54 +02:00
Éric Lemoine
9efa34a2a3 separate map and renderer 2012-08-13 23:38:37 +02:00
Tom Payne
9b4b35f9eb Add two layers demo 2012-08-13 21:32:41 +02:00
Tom Payne
d9eb9eda60 Add missing check 2012-08-13 21:31:41 +02:00
Tom Payne
c7f78caec9 Check left mouse button is pressed in interactions 2012-08-13 18:41:10 +02:00
Tom Payne
8a2074a383 Don't listen to earlycancel dragger events
earlycancel drag events do not have a corresponding
goog.events.BrowserEvent object, which breaks many interactions.
2012-08-13 18:40:03 +02:00
Tom Payne
07c3cd3d8d Fix drag pan for rotated maps 2012-08-13 18:07:30 +02:00
Tom Payne
85fb3980b6 Add missing closing tag 2012-08-13 17:52:46 +02:00
Tom Payne
5ae3d25f52 Add some FIXMEs 2012-08-13 17:24:31 +02:00
Tom Payne
e9e1b8eaa9 Improve handling of undefined coordinates 2012-08-13 17:24:25 +02:00
Tom Payne
d5bd49d86b Use ol.control.MousePosition in demo 2012-08-13 16:45:10 +02:00
Tom Payne
85ca630935 Add ol.control.MousePosition 2012-08-13 16:45:10 +02:00
Tom Payne
6495cfb043 Add crude coordinate formatter 2012-08-13 16:45:10 +02:00
Tom Payne
ec3475806e s/View/Control/, thanks @elemoine 2012-08-13 16:45:10 +02:00
Tom Payne
208db33bfc s/Control/Interaction/, thanks @elemoine 2012-08-13 16:45:10 +02:00
Tom Payne
b2da697519 Revert "Improve WebGL pixel precision"
This reverts commit 05b6ca05fe.
2012-08-08 15:30:41 +02:00
Tom Payne
ad2061ae5c Sort projections 2012-08-08 11:53:23 +02:00
Tom Payne
e434695082 Make more projection constants private 2012-08-08 01:27:05 +02:00
Tom Payne
35cf4db8cf Remove stray variable 2012-08-08 01:20:57 +02:00
Tom Payne
7ed5f42fb9 Make some projection functions private, for now 2012-08-08 00:44:15 +02:00
Tom Payne
e78986c954 Add Proj4js demo 2012-08-08 00:44:15 +02:00
Tom Payne
6bab81ffe7 Add Proj4js support 2012-08-08 00:44:15 +02:00
Tom Payne
4aa7745de5 Enable Proj4js externs 2012-08-08 00:37:41 +02:00
Tom Payne
21cb524a53 Better clean up in Makefile 2012-08-08 00:37:25 +02:00
Tom Payne
5062b71b3c Add simplified API demo 2012-08-07 20:31:09 +02:00
Tom Payne
6cb362218b Add initial simplified API 2012-08-07 20:29:19 +02:00
Tom Payne
ebe132f765 Add reset rotation key to side-by-side demo 2012-08-07 17:48:38 +02:00
Tom Payne
05b6ca05fe Improve WebGL pixel precision 2012-08-07 17:46:06 +02:00
Tom Payne
eab38e9042 Use Alt key instead of Shift for rotation 2012-08-07 17:20:42 +02:00
Tom Payne
f76b34bc38 Consistent capitalization 2012-08-07 16:40:40 +02:00
Tom Payne
43a940027f Set events pane width and height in pixels 2012-08-07 16:38:27 +02:00
Tom Payne
991c61110b Use simple optimizations instead of whitespace only 2012-08-07 16:04:15 +02:00
Tom Payne
c53e91e205 Degrade gracefully if WebGL is not supported 2012-08-07 15:53:51 +02:00
Tom Payne
74a332d166 Add side-by-side demo notes 2012-08-07 15:46:12 +02:00
Tom Payne
afe85dd620 Add keyboard controls to side-by-side demo 2012-08-07 14:59:40 +02:00
Tom Payne
49dc2788d5 Add ol.control.Keyboard hack 2012-08-07 14:59:39 +02:00
Tom Payne
7612054913 Cosmetic touchups to side-by-side demo 2012-08-07 14:55:07 +02:00
Tom Payne
0a4d31417f Clean up build system and add demos 2012-08-07 14:17:15 +02:00
Tom Payne
e1e64b0fde Add missing dependency 2012-08-07 13:18:55 +02:00
Tom Payne
d8af9a2108 Friendlier type checking 2012-08-07 13:18:46 +02:00
Tom Payne
88d2299096 Use ShiftDragRotate instead of ShiftDragRotateAndZoom control by default 2012-08-07 13:18:20 +02:00
Tom Payne
7a675a0789 Clean up .gitignore 2012-08-07 12:12:35 +02:00
Tom Payne
9366ced2a8 Move to-be-merged code into attic 2012-08-07 12:11:25 +02:00
Tom Payne
1f5cda88c4 Replace ol.Tile.isLoaded with ol.Tile.getState 2012-08-07 12:07:55 +02:00
Tom Payne
2983a2ef02 Remove redundant call 2012-08-07 12:07:00 +02:00
Tom Payne
161b15c6aa Log WebGLContext{Lost,Restored} events in debug mode 2012-08-07 10:04:20 +02:00
Tom Payne
2443326d0e Use || operator instead of goog.isDef()/?: 2012-08-06 18:43:05 +02:00
Tom Payne
1b9015fab8 Add ol.layer.TileJSON 2012-08-06 18:02:40 +02:00
Tom Payne
0ea267b95b Use TileJSON externs 2012-08-06 17:59:55 +02:00
Tom Payne
1c98275ff2 Add TileJSON externs 2012-08-06 17:55:47 +02:00
Tom Payne
485a0f6403 Clean up after callback called 2012-08-06 17:55:30 +02:00
Tom Payne
75342968ce Add ol.layer.MapQuest{OSM,OpenAerial} 2012-08-06 15:51:46 +02:00
Tom Payne
9b50b96729 Use new tile server syntax 2012-08-06 15:50:49 +02:00
Tom Payne
3cb1d9f64f Add convenient syntax for specifying multiple tile servers 2012-08-06 15:50:12 +02:00
Tom Payne
4a76efbbc7 Use nicer zoom levels 2012-08-06 13:54:51 +02:00
Tom Payne
b0fa84b38c Add specialized ol.tilegrid.XYZ.forEachTileCoordParentTileBounds 2012-08-06 13:45:22 +02:00
Tom Payne
c4a9e970b5 Remove merged code 2012-08-06 10:49:59 +02:00
Tom Payne
0edb85f159 Clean up whitespace 2012-08-06 09:59:33 +02:00
Tom Payne
bf2958494d Add another FIXME 2012-08-06 09:57:29 +02:00
Tom Payne
4675ae2285 Fix rendering at large zooms 2012-08-06 09:39:41 +02:00
Tom Payne
9d891c1339 Add missing require 2012-08-06 09:20:05 +02:00
Tom Payne
d62f776be5 Fix zoom to anchor 2012-08-06 09:14:28 +02:00
Tom Payne
fe8c064a2e Clean up calculation of framebuffer extent and size 2012-08-06 01:20:21 +02:00
Tom Payne
530724235a Add ol.webgl.Map.isImageTextureLoaded 2012-08-06 01:20:21 +02:00
Tom Payne
2a198bf255 Update FIXMEs 2012-08-06 01:20:21 +02:00
Tom Payne
adbd86feb8 Use continuous zoom by default 2012-08-06 01:20:21 +02:00
Tom Payne
aad50aa8a4 Add ol.control.ResolutionConstraint.createContinuous 2012-08-06 01:14:25 +02:00
Tom Payne
17c68a18fc Fix typo 2012-08-06 01:14:25 +02:00
Tom Payne
2d8514148d Order functions alphabetically 2012-08-06 00:20:41 +02:00
Tom Payne
f776e3f616 Order functions alphabetically 2012-08-06 00:07:38 +02:00
Tom Payne
bf6705a80d Improve algorithm for finding framebuffer size 2012-08-06 00:07:38 +02:00
Tom Payne
71c659396d Remove unused variable 2012-08-06 00:07:38 +02:00
Tom Payne
d8cbe6c8fe Order functions alphabetically and clean up whitespace 2012-08-06 00:07:38 +02:00
Tom Payne
f06d236383 Remove unused renderbuffer 2012-08-05 23:44:37 +02:00
Tom Payne
9cff381149 Use vec4 rather than mat4 for linear tile transforms 2012-08-05 23:42:43 +02:00
Tom Payne
a38dc0db28 Add interim tiles 2012-08-05 23:17:56 +02:00
Tom Payne
9861cd4ddc Remove unused code 2012-08-05 23:13:02 +02:00
Tom Payne
3e4b132446 Replace getTileTexture with bindImageTexture 2012-08-05 01:13:30 +02:00
Tom Payne
e0509d7d08 s/framebufferTileBoundsExtent/framebufferExtent/ 2012-08-05 00:39:52 +02:00
Tom Payne
d7623356fc More explict key variable names 2012-08-05 00:38:27 +02:00
Tom Payne
a3b73d5fd4 s/forEachTileCoordParent/forEachTileCoordParentTileBounds/ 2012-08-05 00:32:02 +02:00
Tom Payne
c2b1a94298 Don't re-use ol.TileCoord object 2012-08-04 18:46:54 +02:00
Tom Payne
051175ea68 Add another FIXME 2012-08-04 16:53:48 +02:00
Tom Payne
b7e7a9b3ba Add zoom to/from anchor 2012-08-04 16:53:48 +02:00
Tom Payne
97eabc8693 Parameterize pixel delta 2012-08-04 15:51:35 +02:00
Tom Payne
7ab3b3dd82 Add rotation constraints 2012-08-04 15:51:35 +02:00
Tom Payne
0fd122a1ed Add and use ol.Constraints 2012-08-04 15:51:35 +02:00
Tom Payne
eaca7d0a8c Add ol.Coordinate.ZERO 2012-08-04 15:51:35 +02:00
Tom Payne
505804fc55 Fix missed variable name 2012-08-04 15:51:35 +02:00
Tom Payne
e7cb2ca383 s/ZoomFunction/ResolutionConstraint/ 2012-08-04 15:51:35 +02:00
Tom Payne
c84d5ef9ef Use ol.control.CenterConstraint 2012-08-04 15:51:34 +02:00
Tom Payne
1f72319b05 Add ol.control.CenterConstraint 2012-08-04 15:51:34 +02:00
Tom Payne
78f11873cf Clean up whitespace 2012-08-03 17:27:16 +02:00
Tom Payne
f0d0157871 Add missing @protected 2012-08-03 11:13:29 +02:00
Tom Payne
d03586d8e9 Use goog.dom functions 2012-08-03 11:13:01 +02:00
Tom Payne
c75ce23c5a Remove stray bracket 2012-08-03 11:11:38 +02:00
Tom Payne
0c35d50fed Export properties so libary can be used in compiled mode 2012-08-03 10:37:17 +02:00
Tom Payne
59398db62b Treat warnings as errors 2012-08-03 10:32:34 +02:00
Tom Payne
bd8ae92f89 Update readme.md 2012-08-02 17:06:36 +02:00
Tom Payne
e503955b6d Update FIXMEs 2012-08-02 17:03:19 +02:00
Tom Payne
62a6faa4d5 Use goog.dom functions and clean up when layers change 2012-08-02 17:02:14 +02:00
Tom Payne
a96982f112 Remove collection {insert,remove,set}_at callbacks 2012-08-02 16:49:09 +02:00
Tom Payne
1b8132ecfd Use add/remove events 2012-08-02 16:47:08 +02:00
Tom Payne
bc0bfd8385 Add add and remove events 2012-08-02 16:42:50 +02:00
Tom Payne
be17ed3707 Add another FIXME 2012-08-02 16:13:13 +02:00
Tom Payne
66f4e1f401 Correct stupid typo 2012-08-02 16:13:01 +02:00
Tom Payne
e203944abf Refactor and optimize attributions 2012-08-02 16:07:10 +02:00
Tom Payne
bee4cab2ac Handle attribution visiblity for tile layers 2012-08-02 15:14:03 +02:00
Tom Payne
5d870e62c2 Handle not-ready layers in attribution view 2012-08-02 14:43:20 +02:00
Tom Payne
53f1397109 Correct coordinate order in Bing Maps coverage area bboxes 2012-08-02 14:32:42 +02:00
Tom Payne
fbdc0a1ce1 Clean up and simplify build system 2012-08-02 14:02:37 +02:00
Tom Payne
b0899863a8 Move more code to be merged into the attic 2012-08-02 13:57:41 +02:00
Tom Payne
eec1fdab62 Use goog.nullFunction 2012-08-02 12:38:55 +02:00
Tom Payne
09f439cb4f Clean up whitespace 2012-08-02 12:18:45 +02:00
Tom Payne
b86fd52026 Remove some fixed FIXMEs 2012-08-01 19:26:29 +02:00
Tom Payne
979b0d882e Remove projection check 2012-08-01 19:23:53 +02:00
Tom Payne
b4183642ae Make ol.CoverageArea use composition rather than inheritance for extent 2012-08-01 19:23:21 +02:00
Tom Payne
2fc4b10492 Use better check for equivalent transforms 2012-08-01 19:14:53 +02:00
Tom Payne
a9ee017158 Add ol.view.Attribution 2012-07-30 22:17:12 +02:00
Tom Payne
71201340cc Add ol.View 2012-07-30 22:17:12 +02:00
Tom Payne
fdfe23faac Use ol.Attribution 2012-07-30 22:17:12 +02:00
Tom Payne
09d904967a Add attributions to ol.Store 2012-07-30 21:53:05 +02:00
Tom Payne
575ae03f5d Add ol.Attribution 2012-07-30 21:51:58 +02:00
Tom Payne
43f3f18871 Add ol.CoverageArea 2012-07-30 21:51:42 +02:00
Tom Payne
de1e704bc7 Reuse existing function 2012-07-30 21:51:20 +02:00
Tom Payne
076342b886 Less fancy type checking 2012-07-30 21:50:48 +02:00
Tom Payne
ab8d297827 s/transform/transformFn/ 2012-07-30 21:37:25 +02:00
Tom Payne
95371b596e Use ol.control.ZoomFunction 2012-07-30 15:09:50 +02:00
Tom Payne
187da7767f Add ol.control.ZoomFunction 2012-07-30 15:09:50 +02:00
Tom Payne
82f67006ab Allow center and resolution to set to undefined 2012-07-30 15:09:50 +02:00
Tom Payne
65c8fe3741 Use ol.array utility functions 2012-07-30 15:09:50 +02:00
Tom Payne
4f9044cda4 Add ol.array utility functions 2012-07-30 15:09:50 +02:00
Tom Payne
8512eaa24f Use simpler comparison function 2012-07-30 13:02:31 +02:00
Tom Payne
34f9e35ba9 Remove trailing zeros 2012-07-30 11:56:34 +02:00
Tom Payne
b291885ffa Use clearer argument names 2012-07-30 09:19:44 +02:00
Tom Payne
a5b0fb4908 Rename ol.Array to ol.Collection 2012-07-30 09:14:53 +02:00
Tom Payne
f39a09807b Update FIXMEs 2012-07-30 00:35:07 +02:00
Tom Payne
422010271b Use ultra-sexy RotateAndZoom control by default 2012-07-30 00:30:55 +02:00
Tom Payne
74dd45f856 Add ultra-sexy RotateAndZoom control 2012-07-30 00:30:28 +02:00
Tom Payne
24888be786 Use ol.control.ShiftDragRotate 2012-07-30 00:10:08 +02:00
Tom Payne
8b900c7822 Add ol.control.ShiftDragRotate 2012-07-30 00:09:47 +02:00
Tom Payne
2f32158374 Rename ol.control.DragZoom to ol.control.ShiftDragZoom 2012-07-29 17:17:49 +02:00
Tom Payne
8179cf0b69 Add rotation to WebGL tile layer renderer 2012-07-29 17:09:33 +02:00
Tom Payne
9f3c02757d Add rotation infrastructure 2012-07-29 17:09:33 +02:00
Tom Payne
f9aa8d2e6c Order variables alphabetically 2012-07-29 17:09:33 +02:00
Tom Payne
5c30902de0 Clean up Makefile 2012-07-29 17:09:32 +02:00
Tom Payne
bd87448b59 Make ol.Coordinate inherit from goog.math.Vec2 2012-07-29 17:09:32 +02:00
Tom Payne
a8664df76b Make ol.Map.isDef stricter 2012-07-29 17:09:32 +02:00
Tom Payne
adfbf2ae7b Remove empty functions 2012-07-29 17:09:32 +02:00
Tom Payne
faa37490ea Use ol.Pixel to represent pixels 2012-07-29 17:09:32 +02:00
Tom Payne
10c85f3d07 Add ol.Pixel 2012-07-29 17:09:32 +02:00
Tom Payne
6d83205c08 Remove unused require 2012-07-29 17:09:32 +02:00
Tom Payne
b45a211cdc Use matricies for pixel/coordinate transforms 2012-07-29 17:09:32 +02:00
Tom Payne
2607399a48 Add rotation property 2012-07-29 11:13:50 +02:00
Tom Payne
74b67a2e3a Fix intermediate zoom levels in WebGL tile layer renderer 2012-07-29 11:05:13 +02:00
Tom Payne
12956da634 Add another FIXME 2012-07-28 23:47:14 +02:00
Tom Payne
ef91733505 Use consistent variable names between WebGL and DOM tile layer renderers 2012-07-28 23:42:27 +02:00
Tom Payne
6ef859b07e Avoid recalculating extent 2012-07-28 23:35:26 +02:00
Tom Payne
a4727c4ef7 Add missing dependencies 2012-07-28 23:26:34 +02:00
Tom Payne
5c0498a958 Use public methods where available 2012-07-28 23:19:14 +02:00
Tom Payne
88d1759751 Add more FIXMEs 2012-07-28 23:18:41 +02:00
Tom Payne
90a4fe9625 Layer loads should be handled by LayerRenderers, not the Map 2012-07-28 16:25:57 +02:00
Tom Payne
7144e7ad0b Use Closure logging infrastructure for WebGL errors 2012-07-28 16:01:38 +02:00
Tom Payne
b88c4f5888 Activate Closure logging infrastructure 2012-07-28 16:01:14 +02:00
Tom Payne
c4f9e3656b Don't use webgl-debug.js 2012-07-28 15:57:53 +02:00
Tom Payne
83077d2754 Clean up whitespace 2012-07-28 15:40:46 +02:00
Tom Payne
0ae4555f30 Add initial ol.layer.BingMaps 2012-07-28 01:23:40 +02:00
Tom Payne
08735e30ff Make attributions an array of strings rather than a string 2012-07-28 01:15:33 +02:00
Tom Payne
b59fe13242 Make ol.Rectangle.intersects a member function rather than a static function 2012-07-28 01:15:33 +02:00
Tom Payne
bf20ec718e Remove dead function 2012-07-28 01:15:33 +02:00
Tom Payne
c9bbf37fb0 Add another FIXME 2012-07-28 01:15:32 +02:00
Tom Payne
0804283543 Make ol.TileStore.tileGrid and tileUrlFunction protected 2012-07-28 01:15:32 +02:00
Tom Payne
6c4e91b9f6 Force render when layers load 2012-07-28 01:15:32 +02:00
Tom Payne
ade0d17541 Only iterate over ready, visible layers 2012-07-28 01:15:32 +02:00
Tom Payne
6ceeac2427 Add ol.Layer.isReady 2012-07-27 23:34:11 +02:00
Tom Payne
04f71183e8 Add ol.Store.isReady 2012-07-27 23:32:48 +02:00
Tom Payne
588f8df8ba Pass optional tile size through ol.tilegrid.XYZ 2012-07-27 20:15:27 +02:00
Tom Payne
caf67ac5ba Use strings rather than RegExps in replace 2012-07-27 20:15:03 +02:00
Tom Payne
215d1ec8db Clean up Makefile 2012-07-27 18:07:27 +02:00
Tom Payne
1afea5ca0c Update tests 2012-07-26 01:52:19 +02:00
Tom Payne
c4f9704f4f Add ol.TileUrlFunction.nullTileUrlFunction 2012-07-26 01:38:44 +02:00
Tom Payne
f193a94847 Correct type declaration of ol.TileUrlFunction 2012-07-26 01:38:44 +02:00
Tom Payne
69fabce0c0 Rename toQuadKey to quadKey 2012-07-26 01:38:31 +02:00
Tom Payne
96b02904ef Sort .gitignore 2012-07-26 00:27:59 +02:00
Tom Payne
b64d0ffdf1 Add initial Bing Maps externs 2012-07-26 00:25:46 +02:00
Tom Payne
ed4a888469 Use inheritance rather than creating an instance for OpenStreetMap, make attribution a function rather than a property 2012-07-26 00:25:03 +02:00
Tom Payne
bcee2d3a12 Auto-generate ol.js 2012-07-26 00:23:18 +02:00
Tom Payne
f3d9b3332c Move code to be merged into src/attic 2012-07-26 00:21:37 +02:00
Tom Payne
8d936e7865 Rename ol.TileCoord.fromString to createFromString 2012-07-25 17:43:08 +02:00
Tom Payne
7902803063 Add ol.TileCoord.toQuadKey and createFromQuadKey 2012-07-25 17:39:38 +02:00
Tom Payne
3ddb1137cc Use undefined, not null, found in parallel with @elemoine 2012-07-24 22:34:31 +02:00
Tom Payne
228547d0fe Add ol.Map.isDef 2012-07-24 20:47:34 +02:00
Tom Payne
042434bc54 Make cross origin 'anonymous' by default 2012-07-24 15:17:35 +02:00
Tom Payne
b1012b5b86 Make extent a function rather than a property 2012-07-24 15:17:35 +02:00
Éric Lemoine
8a8a9a8c9a add map FIXMES 2012-07-23 23:27:03 +02:00
Éric Lemoine
6d28ad2740 use goog.fx.Dragger for map drag 2012-07-23 23:26:48 +02:00
Tom Payne
58bd2182a6 Remove some unnecessary parentheses 2012-07-22 22:37:43 +02:00
Tom Payne
269bd9387e Rename freeze/thaw to freezeRendering/unfreezeRendering 2012-07-22 22:37:43 +02:00
Tom Payne
a2f24b9d43 Check that values are in range and avoid unnecessary updates 2012-07-22 22:37:43 +02:00
Tom Payne
b809bde576 Activate keyboard zoom by default 2012-07-22 14:54:17 +02:00
Tom Payne
5aa01a4b6b Add ol.control.KeyboardZoom 2012-07-22 14:54:17 +02:00
Tom Payne
0edac78bd0 Activate keyboard pan control by default 2012-07-22 14:54:17 +02:00
Tom Payne
ce0866dac4 Add ol.control.KeyboardPan 2012-07-22 14:54:17 +02:00
Tom Payne
463084ab3e Handle keyboard events 2012-07-22 14:54:17 +02:00
Tom Payne
7ed71f7149 Make browserEvent property public 2012-07-22 14:54:17 +02:00
Tom Payne
5e2a5dfbc4 Add missing require 2012-07-22 14:54:17 +02:00
Tom Payne
4b433f0c9b Move file missed in earlier clean-up 2012-07-22 14:54:17 +02:00
Éric Lemoine
75c7bee6d9 update readme.md 2012-07-22 13:48:57 +02:00
Tom Payne
ea623b7be6 Fix some stupid bugs in ol.TileBounds 2012-07-22 12:18:56 +02:00
Tom Payne
8987dc8607 Improve modularity 2012-07-22 12:17:06 +02:00
Tom Payne
cbafc0795d Add another FIXME 2012-07-22 11:40:48 +02:00
Tom Payne
511ca18b23 Tidy up fragment shader 2012-07-22 11:40:47 +02:00
Tom Payne
ec2ab8265c Add brightness and contrast controls, thanks @evanw 2012-07-22 11:40:47 +02:00
Tom Payne
883089c3d1 Sort properties 2012-07-22 11:40:47 +02:00
Tom Payne
f280faff67 Add hue and saturation controls, thanks @evanw 2012-07-22 11:40:47 +02:00
Tom Payne
21e3f2fe83 Promote opacity/visibility changes into base class 2012-07-22 11:40:47 +02:00
Tom Payne
65b7504c9f Clean up directory structure 2012-07-22 11:40:47 +02:00
Tom Payne
3eefbaa337 Remove merged code 2012-07-22 03:10:33 +02:00
Tom Payne
abc1b4ff04 Rename redraw to render 2012-07-22 03:10:33 +02:00
Tom Payne
33449e657a Add various FIXMEs 2012-07-22 03:10:32 +02:00
Tom Payne
f859a48033 Enable side-by-side DOM and WebGL demo 2012-07-22 03:10:32 +02:00
Tom Payne
4906bdced5 Add working WebGL renderer 2012-07-22 03:10:32 +02:00
Tom Payne
c82bacb762 Add ol.TileBounds.equals 2012-07-22 03:06:26 +02:00
Tom Payne
f46c9e12fb Add ol.TileBounds.containsTileBounds 2012-07-22 03:06:25 +02:00
Éric Lemoine
089f069456 finish porting tschaub's infinite zooming work 2012-07-21 23:53:51 +02:00
Éric Lemoine
014c5e8905 refactoring, and renamings in tilegrid.js (related to continous zooming) 2012-07-21 23:52:56 +02:00
Éric Lemoine
753ebab2ad Revert "add TileLayerRenderer.getPreferredZ_ plus tests". As noted by @twpayne, TileGrid.getZForResolution already returns the "preferred" z for an arbitrary resolution.
This reverts commit 8f5d0ac642.
2012-07-21 16:00:45 +02:00
Tom Payne
89efc96dd5 Don't bother making forEachTileCoord abortable 2012-07-21 01:08:44 +02:00
Tom Payne
277c1ea3a6 Use XYZ to indicate OpenStreetMap-style tile grids 2012-07-21 01:05:55 +02:00
Tom Payne
0602942cf8 Add ol.Color 2012-07-21 01:05:55 +02:00
Tom Payne
0d7426e1be Fix bug where forEachVisibleLayer returned invisible layers 2012-07-21 01:05:55 +02:00
Tom Payne
e81e857d75 Merge pull request #12 from fredj/plovr-download
Fix plovr download path
2012-07-20 10:25:08 -07:00
Frederic Junod
0b6f4e348c Fix plovr download path 2012-07-20 13:36:21 +02:00
Éric Lemoine
c723e719c6 use ol instead of goog.math 2012-07-19 23:36:16 +02:00
Éric Lemoine
8f5d0ac642 add TileLayerRenderer.getPreferredZ_ plus tests 2012-07-19 23:28:35 +02:00
Éric Lemoine
404d123623 add TileGrid getTileCoordForArbitraryResolution and getTileCoordPixelBoundsForArbitraryResolution + tests, based on @tschaub work 2012-07-19 17:48:39 +02:00
Éric Lemoine
45c067dfda add ol.PixelBounds 2012-07-19 17:47:34 +02:00
Tom Payne
1190bc08db Make demo layer more opaque 2012-07-19 15:47:19 +02:00
Tom Payne
e2824745d1 Ensure visibility and opacity are set when DOM layer renderer is created 2012-07-19 15:46:02 +02:00
Tom Payne
08b4ef665b Call inherited method, thanks @elemoine 2012-07-19 14:58:02 +02:00
Tom Payne
9ce406c203 Fix type, thanks @elemoine 2012-07-19 10:48:25 +02:00
Tom Payne
513d8e7268 Create ol.Size around goog.math.Size 2012-07-19 10:46:43 +02:00
Tom Payne
c547404615 Create ol.Coordinate around goog.math.Coordinate 2012-07-19 10:34:12 +02:00
Tom Payne
d62ba69458 Order controls alphabetically 2012-07-19 10:10:07 +02:00
Tom Payne
33d252f0f7 Only start drag pan if shift key is not pressed 2012-07-19 10:08:35 +02:00
Tom Payne
5e39d051e6 Set default user projection to EPSG:4326 2012-07-19 10:02:34 +02:00
Tom Payne
e0d17ca09c Add user projections 2012-07-19 10:02:34 +02:00
Tom Payne
305462f57a Stricter type checking for map projection 2012-07-19 10:02:34 +02:00
Tom Payne
43c32e6da7 Differentiate between identity and clone transforms 2012-07-19 09:51:08 +02:00
Tom Payne
5ace389ccb Redraw map when WebGL context is restored 2012-07-19 09:12:22 +02:00
Tom Payne
d83235b5dc Include drag zoom control in default map 2012-07-19 00:29:25 +02:00
Tom Payne
d47eb3453f Implement initial drag zoom control (shift + drag) 2012-07-19 00:29:25 +02:00
Tom Payne
3ff84dce9b Add ol.Extent.boundingExtent 2012-07-19 00:29:25 +02:00
Tom Payne
4e347dcf45 Don't drag on incompletely defined maps 2012-07-19 00:29:25 +02:00
Tom Payne
0e3b97a0b6 s/event/mapBrowserEvent/g 2012-07-19 00:29:25 +02:00
Tom Payne
1d6101a5a1 Implement ol.control.DragPan 2012-07-19 00:29:25 +02:00
Tom Payne
4299cf4fae Add startCenter and startCoordinate to ol.control.Drag 2012-07-19 00:29:24 +02:00
Tom Payne
82b8a46752 Use RAW mode for demo while ol.Object is not adapted for compiled mode 2012-07-19 00:29:24 +02:00
Tom Payne
15d2ad984b Bind map layers in demo 2012-07-19 00:29:24 +02:00
Tom Payne
a6e2b501bd Enable DOM renderers to share tile layers 2012-07-19 00:29:24 +02:00
Tom Payne
4ddcfcc037 Add context argument to Tile.getImage to support re-use in DOM renderer 2012-07-19 00:29:24 +02:00
Tom Payne
eb43cf14c1 Clean up layer renderers when layers changes 2012-07-19 00:29:24 +02:00
Tom Payne
376d75ea4f Rename ol.Projection.createFromCode to getFromCode 2012-07-19 00:29:24 +02:00
Tom Payne
da941562cc Handle background color in ol.webgl.Map 2012-07-19 00:29:24 +02:00
Tom Payne
092fce96ec Add background color property 2012-07-19 00:29:24 +02:00
Tom Payne
52ce0b3fd0 Assure redraw is called when layer becomes invisible 2012-07-19 00:29:24 +02:00
Tom Payne
d3ed8b315c Make ol.Map.getSize public 2012-07-19 00:29:24 +02:00
Tom Payne
0a33077ecc Add ol.Rectangle.toString 2012-07-19 00:29:24 +02:00
Éric Lemoine
62f3f46b51 fix compilation - private property cannot be used in subclasses 2012-07-19 00:00:23 +02:00
Éric Lemoine
db91206d41 code styling 2012-07-18 20:27:38 +02:00
Éric Lemoine
7fc82daafa dom layer renderer - support opacity and visibility change 2012-07-18 16:33:27 +02:00
Éric Lemoine
b53e5a3fda two maps in the skeleton example 2012-07-18 16:33:27 +02:00
Tom Payne
aab2bc093a Add experimental drag control (to be replaced) 2012-07-18 15:12:31 +02:00
Tom Payne
4754ed1cc2 Add ol.control.MouseWheelZoom 2012-07-18 15:12:30 +02:00
Tom Payne
c6343ed2bc Add experimental controls infrastructure, thanks @elemoine 2012-07-18 15:12:30 +02:00
Éric Lemoine
1af79ede29 dom map renderer - add FIXMEs 2012-07-18 14:52:12 +02:00
Éric Lemoine
3724fca57d dom map renderer - new properties for layerPane 2012-07-18 14:50:34 +02:00
Éric Lemoine
a9438fefd9 make gjslint happy 2012-07-18 14:50:01 +02:00
Éric Lemoine
6d61ac2bc5 dom map renderer - map shiftLayersPane_ work 2012-07-18 14:49:30 +02:00
Éric Lemoine
808a854d0f dom map renderer - add a viewport div to the top of hierarchy, this is to handle overflow of tiles 2012-07-18 14:47:41 +02:00
Éric Lemoine
1d565fc4d6 dom map renderer - use goog.asserts 2012-07-18 14:43:57 +02:00
Éric Lemoine
da6263fec8 dom layer renderer - origin and setOrigin are back 2012-07-18 14:43:16 +02:00
Éric Lemoine
db4603940d dom renderer - reset the layers pane when center changes 2012-07-18 11:13:32 +02:00
Éric Lemoine
f491a5a4d2 setting top and left to 0 is not necessary 2012-07-18 11:12:46 +02:00
Éric Lemoine
be97a57cad remove state variables from the dom map and dom layer renderers 2012-07-18 11:12:14 +02:00
Tom Payne
40c767c330 Remove main.json (replaced with ol.json) 2012-07-18 09:01:12 +02:00
ahocevar
78f8ed04dd Fixing typo. 2012-07-18 08:10:44 +02:00
ahocevar
6c9ef26c79 Using safe unicode notation. 2012-07-18 08:10:35 +02:00
Tom Payne
bffc586218 Rename ol.Map.setExtent to fitExtent 2012-07-18 07:34:14 +02:00
Tom Payne
88721ce230 Use DOM renderer by default 2012-07-18 07:33:11 +02:00
Tom Payne
fc603372c2 Add renderer hint 2012-07-18 07:32:40 +02:00
Tom Payne
e85ca98179 Refactor build system and layout 2012-07-18 02:26:41 +02:00
Tom Payne
f166285fd2 Remove api.json 2012-07-18 01:17:37 +02:00
Tom Payne
cf2bb5a841 Don't use webgl-debug.js for now 2012-07-18 00:52:31 +02:00
Tom Payne
0abc4219b3 Document various FIXMEs 2012-07-18 00:35:44 +02:00
Tom Payne
659ef30802 Lift common composite rendering code into ol.Map 2012-07-18 00:21:20 +02:00
Tom Payne
86335211a6 Always pass base to parseInt 2012-07-18 00:12:22 +02:00
Tom Payne
a421943eb1 Clear framebuffer before writing tiles 2012-07-18 00:10:43 +02:00
Tom Payne
4ca1fd00c7 Suppress compiler warning 2012-07-18 00:10:43 +02:00
Tom Payne
854280eb11 Snapshot ol.webgl.Map 2012-07-18 00:10:43 +02:00
Tom Payne
7febc1c8b3 Add ol.webgl.TileLayerRenderer.getMatrix 2012-07-18 00:10:43 +02:00
Tom Payne
b6db84a54c Add ol.webgl.LayerRenderer.getMatrix 2012-07-18 00:10:43 +02:00
Tom Payne
29f149976f Add missing require 2012-07-18 00:10:43 +02:00
Tom Payne
b93cb7c47a Add ol.Rectangle.normalize 2012-07-18 00:10:43 +02:00
Tom Payne
fad873d44c Refine getSize in terms of getWidth and getHeight 2012-07-18 00:10:42 +02:00
Tom Payne
db59dfd5a2 Rename textureCache to tileTextureCache 2012-07-18 00:10:42 +02:00
Tom Payne
7dc2884498 Fix tile edge artefacts 2012-07-18 00:10:42 +02:00
Tom Payne
6abcc56789 Suppress compiler warnings 2012-07-18 00:10:42 +02:00
Tom Payne
d0233600d5 Add ol.TileGrid.getTileBoundsExtent 2012-07-18 00:10:42 +02:00
Tom Payne
0d5bc44326 Add ol.Rectangle.getSize 2012-07-18 00:10:42 +02:00
Éric Lemoine
b31c3f90bd initial port of @tschaub DOM renderer 2012-07-17 22:28:58 +02:00
Éric Lemoine
5b5b89819e alphabetize goog.require classes for gjslint 2012-07-17 22:13:15 +02:00
Tom Payne
f77ad158f0 Initial working WebGL TileLayerRenderer 2012-07-17 18:56:10 +02:00
Tom Payne
40e83b9258 Don't redraw if center or resolution is not defined 2012-07-17 18:55:33 +02:00
Tom Payne
be94eafae6 Override getLayer in ol.webgl.TileLayerRenderer 2012-07-17 17:39:47 +02:00
Tom Payne
aded70d6e6 Add ol.TileBounds.getSize 2012-07-17 17:28:51 +02:00
Éric Lemoine
b4fea2233e remove setDefaultCenterAndResolution 2012-07-17 17:21:28 +02:00
Tom Payne
41175a475f Add ol.Rectangle.intersects 2012-07-17 15:51:13 +02:00
Tom Payne
d8a5126265 Snapshot WebGL renderer 2012-07-17 14:07:29 +02:00
Tom Payne
51e1d364c4 Remove unnecessary texture parameters 2012-07-17 14:07:16 +02:00
Tom Payne
7c290e9e30 Add skeleton ol.webgl.TileLayerRenderer shaders 2012-07-17 14:06:45 +02:00
Tom Payne
117321ea43 Name event handlers more consistently 2012-07-17 14:06:01 +02:00
Tom Payne
ab702c29e6 Replace forEachLayer with forEachVisibleLayer and pass layer renderer 2012-07-17 14:05:15 +02:00
Tom Payne
ac80a6e0b6 Merge shaders into single file 2012-07-17 13:41:38 +02:00
Tom Payne
7e2816ecd8 Implement shaders as singletons 2012-07-17 13:17:40 +02:00
Tom Payne
3ba0525495 Snapshot WebGL renderer 2012-07-17 12:15:33 +02:00
Tom Payne
0db1b0c0d6 Override getMap in ol.webgl.LayerRenderer 2012-07-17 12:13:51 +02:00
Tom Payne
e0f840dd27 Override method rather than adding a new one 2012-07-17 12:13:15 +02:00
Tom Payne
49c9a409e2 Use @nosideeffects in webgl-debug externs 2012-07-17 12:12:38 +02:00
Tom Payne
e3bbd67092 Use @nosideeffects in Proj4js externs 2012-07-17 12:12:28 +02:00
Tom Payne
253d62763f Refactor context lost handling 2012-07-17 12:01:32 +02:00
Tom Payne
495630355a Add texture cache 2012-07-17 12:01:32 +02:00
Tom Payne
1aaa59a110 Move ol.webgl.WebGLContextEventType into ol.webgl 2012-07-17 11:56:44 +02:00
Tom Payne
da9c39b737 Add missing requires 2012-07-17 08:57:47 +02:00
Tom Payne
472f6ddd17 Satisfy more recent gjslint 2012-07-17 08:55:45 +02:00
Tom Payne
ff8b9133b3 Add more functions and clean up unnecessary comments 2012-07-16 13:11:44 +02:00
Tom Payne
c162f3582d Remove unnecessary comments 2012-07-16 13:10:54 +02:00
Tom Payne
5c168d3b89 Update externs files for gjslint's --limited_doc_files 2012-07-15 22:34:09 +02:00
Tom Payne
13ce1aa374 Use --limited_doc_files option for externs 2012-07-15 22:31:04 +02:00
Tom Payne
a84198f756 OpenStreetMap wraps X and crops Y 2012-07-15 22:22:46 +02:00
Tom Payne
8df2404e77 Return null tiles when out of range 2012-07-15 22:22:25 +02:00
Tom Payne
bf31b614e8 Allow out-of-range signalling with undefined 2012-07-15 22:21:25 +02:00
Tom Payne
e23e19c074 Snapshot ol.webgl.TileLayerRenderer 2012-07-15 20:50:21 +02:00
Tom Payne
dd40b4a758 Dispatch change event on load 2012-07-15 20:50:21 +02:00
Tom Payne
ddbe0dccaf Correct target 2012-07-15 20:50:21 +02:00
Tom Payne
249449df3b Listen for changes in layer renderers 2012-07-15 20:50:21 +02:00
Tom Payne
74bfdd7ebe Cope with missing layer renderers 2012-07-15 20:50:21 +02:00
Tom Payne
bcf6e7d7b1 Add ol.DEBUG_WEBGL @define 2012-07-15 20:50:21 +02:00
Tom Payne
00c9c38ab9 Replace spaces with tabs 2012-07-15 20:50:21 +02:00
Tom Payne
377043b20e Add webgl-debug.js externs 2012-07-15 20:50:21 +02:00
Tom Payne
7d8d8253a3 Include webgl-debug.js 2012-07-15 20:42:09 +02:00
Tom Payne
b6282ba631 No need to create object 2012-07-15 20:40:16 +02:00
Tom Payne
ac1e757fda Clean up stale filter 2012-07-15 19:00:53 +02:00
Tom Payne
ca7d010974 Remove ol.Bounds 2012-07-15 19:00:01 +02:00
Tom Payne
ae7572aa7a Port ol.webgl.TileLayerRenderer to ol.Rectangle 2012-07-15 18:56:57 +02:00
Tom Payne
63408b82eb Port ol.Map to ol.Rectangle 2012-07-15 18:56:19 +02:00
Tom Payne
4b337ade48 Port ol.Projection to ol.Rectangle 2012-07-15 18:55:53 +02:00
Tom Payne
8c9fbc1478 Port ol.TileGrid to ol.Rectangle 2012-07-15 18:55:33 +02:00
Tom Payne
aa6ef496ef Base ol.TileBounds on ol.Rectangle instead of goog.math.Box 2012-07-15 18:54:31 +02:00
Tom Payne
ac3d05421b Base ol.Extent on ol.Rectangle instead of goog.math.Box 2012-07-15 18:54:05 +02:00
Tom Payne
b4ee35954f Add ol.Rectangle 2012-07-15 18:51:51 +02:00
Tom Payne
582a9e93e0 Snapshot WebGL renderer 2012-07-15 16:32:00 +02:00
Tom Payne
1d567bb2bf Transform tile coords when converting them to URLs 2012-07-15 16:23:03 +02:00
Tom Payne
b4c9c1e846 Use normalized tile coordinates (bottom left) 2012-07-15 16:14:24 +02:00
Tom Payne
61ab5c8f49 Refactor shader and program management 2012-07-15 14:11:32 +02:00
Tom Payne
73187bc018 Add ol.webgl.LayerRenderer.getTexture 2012-07-15 12:33:44 +02:00
Tom Payne
af8e093768 Add ol.TileLayer.getTileStore 2012-07-15 12:32:42 +02:00
Tom Payne
af7dfc60aa Set extent to undefined when it is undefined 2012-07-15 12:32:09 +02:00
Tom Payne
26aa704a4d Refresh layer renderer management 2012-07-15 12:31:33 +02:00
Tom Payne
446fe16da1 Disable debug options by default 2012-07-15 00:41:05 +02:00
Tom Payne
55655207d1 Add commented-out compilation options 2012-07-15 00:40:37 +02:00
Tom Payne
e509f4cfe5 Be super-strict 2012-07-15 00:40:11 +02:00
Tom Payne
9e024011d4 Use goog.fx.anim 2012-07-15 00:36:26 +02:00
Tom Payne
adfdedb12b Add ol.Map.freeze/thaw 2012-07-14 22:41:04 +02:00
Tom Payne
75ab503473 Correct WebGL context handling 2012-07-14 22:18:57 +02:00
Tom Payne
d258db6204 Snapshot ol.webgl.TileLayerRenderer 2012-07-14 22:00:43 +02:00
Tom Payne
998dbdabd0 Make ol.Map.layerRenderers protected 2012-07-14 22:00:43 +02:00
Tom Payne
5aab7cb142 Add ol.TileLayer 2012-07-14 22:00:43 +02:00
Tom Payne
8d9cee2ee1 Add map parameter to ol.LayerRenderer 2012-07-14 21:51:04 +02:00
Tom Payne
669a83ff78 Add ol.webgl.LayerRenderer 2012-07-14 21:50:35 +02:00
Tom Payne
b30d0c314b Add pixel to/from coordinate transforms 2012-07-14 19:54:41 +02:00
Tom Payne
caba3814f7 Don't clone center or extent 2012-07-14 19:26:35 +02:00
Tom Payne
ba9a62120b Only redraw if visible layers are added or removed 2012-07-14 19:23:25 +02:00
Tom Payne
f66016af2e Handle resizing 2012-07-14 19:23:08 +02:00
Tom Payne
c7f418240f Check projection when adding layers 2012-07-14 18:34:39 +02:00
Tom Payne
acb8c14d28 Shortcut projection equivalence test 2012-07-14 18:34:26 +02:00
Tom Payne
fcf552ea40 Merge Camera into Map 2012-07-14 18:34:02 +02:00
Tom Payne
b80ce1fc26 Set camera defaults when layers is changed 2012-07-14 17:47:43 +02:00
Tom Payne
9266b7fdb2 Create new extent if no existing one 2012-07-14 17:47:18 +02:00
Tom Payne
dbb26dc68d Add ol.Camera.isFullyDefined 2012-07-14 17:46:50 +02:00
Tom Payne
c0aa3b77fe Configure default camera when first layer is added 2012-07-14 16:14:12 +02:00
Tom Payne
fab1bca1fb Recalculate map extent when camera property changes 2012-07-14 16:13:54 +02:00
Tom Payne
461552a72e Correct camera property change handling 2012-07-14 16:12:56 +02:00
Tom Payne
c59e6e1462 Return cloned size rather then reference 2012-07-14 16:12:24 +02:00
Tom Payne
9e8c8ad316 Add extent handling to ol.Map 2012-07-14 16:11:52 +02:00
Tom Payne
8c4d408795 ol.Store should not inherit from ol.Object 2012-07-14 15:31:36 +02:00
Tom Payne
a8138cfe17 Remove ol.TileGrid.getMaxResolution 2012-07-14 15:30:35 +02:00
Tom Payne
7107b8d105 Add ol.Extent.getCenter 2012-07-14 15:29:36 +02:00
Tom Payne
d5e706d9ff Remove unused requires 2012-07-14 15:29:21 +02:00
Tom Payne
d1e5906e2c Merge Map and MapRenderer 2012-07-14 13:36:24 +02:00
Tom Payne
19ea6a0cba Import WebGL code from WebGL Maps 2012-07-13 19:27:48 +02:00
Tom Payne
a35cd158be Snapshot WebGLMapRenderer 2012-07-13 19:14:34 +02:00
Tom Payne
f5790e14f2 Use goog.nullFunction 2012-07-13 19:13:51 +02:00
Tom Payne
8279e79818 Handle undefined properties 2012-07-13 19:13:17 +02:00
Tom Payne
bb1e81b72a Add ol.MapRenderer.forEachLayerRenderer 2012-07-13 19:12:40 +02:00
Tom Payne
773590345a Bind Map to MapRenderer properties 2012-07-13 19:12:14 +02:00
Tom Payne
152c0e9f78 Export ol.MapRendererProperty 2012-07-13 19:11:47 +02:00
Tom Payne
8ac2cb7103 Provide default layer change handlers 2012-07-13 19:11:01 +02:00
Tom Payne
d2caf1543f Add CSS to ensure map fills body 2012-07-13 19:09:41 +02:00
ahocevar
fd2ac782cf Using high level map event instead of browser event. 2012-07-13 17:54:34 +02:00
ahocevar
1c07c38a70 Using minus sign instead of ndash. 2012-07-13 17:53:33 +02:00
Éric Lemoine
425b6c6652 Merge pull request #10 from elemoine/event
make ol.Map inherit from goog.events.EventTarget
2012-07-13 08:47:39 -07:00
Éric Lemoine
a365b0aaf3 improvements to the drag handler tests 2012-07-13 17:44:46 +02:00
Éric Lemoine
226480af90 fix mousewheel handler tests 2012-07-13 16:20:23 +02:00
Éric Lemoine
6fd5bb8647 fix drag handler tests 2012-07-13 16:20:07 +02:00
Éric Lemoine
1f62bd8cd6 fix typo in drag handler 2012-07-13 16:19:42 +02:00
Éric Lemoine
2b9df6442b Revert "Allow for using a different set of default behaviors."
This reverts commit 3cc069186c.
2012-07-13 15:38:06 +02:00
Éric Lemoine
f34aa03109 Revert "Replace the navigation control by two controls, namely DragPan and MouseWheelZoom. DragPan is the map default drag control. MouseWheelZoom is the map default mouse wheel control."
This reverts commit c2a30f4ac4.
2012-07-13 15:37:39 +02:00
Éric Lemoine
dd5182c55c remove trailing spaces in tests 2012-07-13 15:37:21 +02:00
Éric Lemoine
c2a30f4ac4 Replace the navigation control by two controls, namely DragPan and MouseWheelZoom. DragPan is the map default drag control. MouseWheelZoom is the map default mouse wheel control. 2012-07-13 08:57:40 +02:00
ahocevar
f4532f1548 Completing tests for map handlers. 2012-07-12 23:48:13 +02:00
ahocevar
ba986e536d We decided to be explicit about bubble/capture. 2012-07-12 23:47:37 +02:00
ahocevar
8183164298 The underlying event will be needed frequently.
But there will also be events that don't have an underlying event, so we make it optional.
2012-07-12 23:47:16 +02:00
ahocevar
3cc069186c Allow for using a different set of default behaviors.
The default behavior of dragging and wheel zooming feels specific to 2D maps. So I think it makes sense to introduce a special type of controls (ol.control.DefaultControl) that implement default behaviors. This change also re-introduces the Navigatin control, which is a container for the default behaviors that were previously defined in the map handlers. Maybe this control needs to be renamed to Navigatin2D in the future, and there could be a different Navigation control for 3D maps.
2012-07-12 20:51:47 +02:00
ahocevar
42c4c9d869 No need to pass the element to the constructor.
If MapHandler subclasses could live without a map, it would make sense to have a constructor with a target and an element. But because the target is always the map, and the handler need to know about the map for performing default behavior, we always assume the map's viewport as element.
2012-07-12 20:44:32 +02:00
Tom Payne
964bbf41bd Add scope to ol.Array.forEach 2012-07-12 19:23:06 +02:00
ahocevar
f672303f0a New MapHandler base class; better API docs 2012-07-12 15:21:15 +02:00
ahocevar
1ad915b428 Shuffling resources; better variable names; better type declarations. 2012-07-12 13:43:47 +02:00
Éric Lemoine
8206f11372 be more explicit when calling goog.events.listen and unlisten 2012-07-12 08:20:42 +02:00
Éric Lemoine
dea307e53a typed objects for map events 2012-07-12 08:18:22 +02:00
Éric Lemoine
d4106f166d remove reference to ol.control.Navigation from ol.export.js 2012-07-12 08:17:23 +02:00
Éric Lemoine
8801542744 add code comments to click and mousewheel handlers 2012-07-12 08:14:21 +02:00
Éric Lemoine
d517bdc5cd use of goog.events.Event.stopPropagation instead of our own function 2012-07-12 07:35:14 +02:00
Tom Payne
7ae4fc3eb5 Add initial ol.WebLGLMapRenderer experiments (size not working) 2012-07-11 21:58:18 +02:00
Tom Payne
e4f729f1b9 Add ol.webglrender.IGLObject 2012-07-11 21:57:01 +02:00
Tom Payne
7a4e3aa323 Listen for target resizes in ol.MapRenderer 2012-07-11 21:21:38 +02:00
Tom Payne
5c40e1d570 Listen for all camera property changes 2012-07-11 21:20:29 +02:00
Tom Payne
9c0ce6e635 Make ol.LayerProperty public 2012-07-11 21:18:47 +02:00
Tom Payne
02113f05be Make ol.StoreProperty public 2012-07-11 21:18:34 +02:00
Tom Payne
73abd6e8b8 Make ol.CameraProperty public 2012-07-11 21:15:28 +02:00
Tom Payne
87853a5f54 Stricter type checking on target 2012-07-11 19:33:17 +02:00
Éric Lemoine
a6b37ff83d remove reference to ol.control.Navigation in ol.js 2012-07-11 18:00:40 +02:00
Éric Lemoine
c6b8a93394 add goog.require for ol.handler.Click in ol.js 2012-07-11 17:52:21 +02:00
Éric Lemoine
8194f05ce4 better doc strings for the mousewheel handler 2012-07-11 17:49:13 +02:00
Éric Lemoine
62aee1d7ea remove unused function in the mousewheel handler 2012-07-11 17:48:48 +02:00
Éric Lemoine
d73531bf57 missing goog.require in the mousewheel handler 2012-07-11 17:47:16 +02:00
Éric Lemoine
3936c62e77 drag handler constructor should call its parent 2012-07-11 17:46:57 +02:00
Éric Lemoine
be0f73fb11 better doc strings for the drag handler 2012-07-11 17:46:25 +02:00
Éric Lemoine
d73410a9b3 add a click handler 2012-07-11 17:45:32 +02:00
Éric Lemoine
da11a8c34d add ol.ENABLE_DRAG_HANDLER and ol.ENABLE_MOUSEWHEEL_HANDLER @defines, and pass a an object to the handlers for sharing states 2012-07-11 17:43:42 +02:00
Éric Lemoine
38f946d944 remove the navigation control and the event target hierarchy 2012-07-11 17:38:18 +02:00
Éric Lemoine
ae5cdc75b4 the mousewheel handler zooms the map by default 2012-07-11 17:35:50 +02:00
Tom Payne
00462bb9e4 Move renderers into their own directories 2012-07-11 17:20:09 +02:00
Tom Payne
133f6199f7 Fix gjslint errors 2012-07-11 17:20:09 +02:00
Tom Payne
cf9a41f77e Create camera, layers and projection if not specified 2012-07-11 17:20:09 +02:00
Tom Payne
a6ea18c4fc Add skeleton HTML 2012-07-11 17:20:09 +02:00
Tom Payne
62a25d7242 Add ol.TileLayer.createOpenStreetMap 2012-07-11 17:20:09 +02:00
Tom Payne
1485137f7b Add ol.TileStore.createOpenStreetMap 2012-07-11 17:20:09 +02:00
Tom Payne
b9667c208b Add ol.TileUrlFunction.createFromTemplates 2012-07-11 17:20:09 +02:00
Tom Payne
d9077f3002 Correct type of opt_values 2012-07-11 17:20:09 +02:00
Tom Payne
1298cc3da3 Add ol.Map skeleton 2012-07-11 17:20:09 +02:00
Tom Payne
995aa76d1a Add initial ol.DOMMapRenderer skeleton 2012-07-11 17:20:09 +02:00
Tom Payne
fbefb98026 Add initial ol.WebGLMapRenderer skeleton 2012-07-11 17:20:09 +02:00
Tom Payne
bcf4d9416c Add initial ol.MapRenderer skeleton 2012-07-11 17:20:09 +02:00
Tom Payne
6c1090a2df Add initial ol.LayerRenderer skeleton 2012-07-11 17:20:09 +02:00
Tom Payne
06d32b3819 Allow values to be passed to ol.Layer 2012-07-11 17:20:09 +02:00
Tom Payne
56de224667 Add missing require 2012-07-11 17:20:09 +02:00
Tom Payne
11835b18c9 Remove ol.coord.AccessorInterface 2012-07-11 17:20:08 +02:00
Tom Payne
b2b9a41be1 Merge tile cache into TileStore 2012-07-11 17:20:08 +02:00
Tom Payne
5adbd13705 Add ol.TileCoord.toString 2012-07-11 17:20:08 +02:00
Tom Payne
e199fbd7f6 Update ol.Tile 2012-07-11 17:20:08 +02:00
Tom Payne
01cb568a50 Rename Layer to Store and LayerRendereOptions to Layer 2012-07-11 17:20:08 +02:00
Tom Payne
5de1ac3dd6 Don't use typedef for type that is only used once 2012-07-11 17:20:08 +02:00
Tom Payne
2dbd9c676b Make name calculations public 2012-07-11 17:20:08 +02:00
Tom Payne
fc585de50f Cache event types and changed method names 2012-07-11 17:20:08 +02:00
Tom Payne
6610496e56 Clean up comments and argument name 2012-07-11 17:20:08 +02:00
Tom Payne
defffdada8 Allow optional initial values to be passed to ol.Object 2012-07-11 17:20:08 +02:00
Tom Payne
5a7c2e72a6 Better type checking in Layer 2012-07-11 17:20:08 +02:00
Tom Payne
dd3dead3cd Add layer to LayerRendererOptions 2012-07-11 17:20:08 +02:00
Tom Payne
1c344ffa9f s/LayerView/LayerRendererOptions/ 2012-07-11 17:20:08 +02:00
Tom Payne
10f8f1198b Add ol.TileGrid.createOpenStreetMap 2012-07-11 17:20:08 +02:00
Tom Payne
3050268eb0 Add initial ol.TileLayer skeleton 2012-07-11 17:20:08 +02:00
Tom Payne
5494c36748 Sort functions alphabetically 2012-07-11 17:20:08 +02:00
Tom Payne
40acb70a3c Add ol.TileGrid.getZForResolution 2012-07-11 17:20:08 +02:00
Tom Payne
391b5906bc s/getTileResolution/getTileCoordResolution/g 2012-07-11 17:20:07 +02:00
Tom Payne
d30c30f01d s/TileUrl/TileUrlFunction/ 2012-07-11 17:20:07 +02:00
Tom Payne
58e9ba322e Replace corner with xEast/ySouth 2012-07-11 17:20:07 +02:00
Tom Payne
d444618a11 Add missing @template declaration 2012-07-11 17:20:07 +02:00
Tom Payne
24ba87bf92 s/yield/forEach/ 2012-07-11 17:20:07 +02:00
Tom Payne
65b0094a78 Test ol.TileGrid.yieldTileCoordParents 2012-07-11 17:20:07 +02:00
Tom Payne
abb49a899a Add ol.TileBounds.forEachTileCoord 2012-07-11 17:20:07 +02:00
Tom Payne
85716afa38 Top should always be greater than or equal to bottom in ol.TileBounds 2012-07-11 17:20:07 +02:00
Tom Payne
9a89814896 Store number of resolutions in member variable 2012-07-11 17:20:07 +02:00
Tom Payne
ff34400d96 Add ol.TileCoord.clone 2012-07-11 17:20:07 +02:00
Tom Payne
9712c706ba Test ol.TileGrid.getExtentTileBounds 2012-07-11 17:20:07 +02:00
Tom Payne
4ff6f03834 s/getTileBounds/getExtentTileBounds/ 2012-07-11 17:20:07 +02:00
Tom Payne
656974090f Pass z when yielding TileCoord parents 2012-07-11 17:20:07 +02:00
Tom Payne
e63f7d166f Don't crop against TileGrid extent in TileGrid 2012-07-11 17:20:07 +02:00
Tom Payne
fe38bb694b Re-order functions alphabetically 2012-07-11 17:20:07 +02:00
Tom Payne
e656597a59 Stricter type checking on ol.TileGrid origins 2012-07-11 17:20:07 +02:00
Tom Payne
ad30fbe544 Add initial ol.TileGrid tests 2012-07-11 17:20:06 +02:00
Tom Payne
896c4c102a Check resolutions are strictly monotonically decreasing 2012-07-11 17:20:06 +02:00
Tom Payne
727b2905f7 Suppress gjslint warnings 2012-07-11 17:20:06 +02:00
Tom Payne
b92a958bcd Add more ol.Array tests 2012-07-11 17:20:06 +02:00
Tom Payne
7b6fb0b4ca Enumerate ol.Array properties 2012-07-11 17:20:06 +02:00
Tom Payne
d70869c702 Rename ol.MVCArray to ol.Array 2012-07-11 17:20:06 +02:00
Tom Payne
331ee15ac8 Enumerate ol.Object properties 2012-07-11 17:20:06 +02:00
Tom Payne
438d5f2484 Rename ol.MVCObject to ol.Object 2012-07-11 17:20:06 +02:00
Tom Payne
4bdaf293b0 Add ol.Extent.transform 2012-07-11 17:20:06 +02:00
Tom Payne
9368f05d1c Factor out ol.TransformFunction 2012-07-11 17:20:06 +02:00
Tom Payne
a2cf655bfa Add ol.Layer 2012-07-11 17:20:06 +02:00
Tom Payne
89ec9bf07a Update ol.Projection 2012-07-11 17:20:06 +02:00
Tim Schaub
c56fce2be8 Attempting to clarify. 2012-07-11 17:20:06 +02:00
Tom Payne
94d85d4821 Fix lint warnings 2012-07-11 17:20:06 +02:00
Tom Payne
13c8b8b0de Include externs in lint 2012-07-11 17:20:06 +02:00
Tom Payne
48cc0bed93 Add externs for Proj4js 2012-07-11 17:20:06 +02:00
Tom Payne
bd61a0be15 Add ol.LayerView 2012-07-11 17:20:06 +02:00
Tom Payne
9900084f46 Add initial ol.TileGrid skeleton 2012-07-11 17:20:05 +02:00
Tom Payne
afb37035dc Add ol.Extent 2012-07-11 17:20:05 +02:00
Tom Payne
8014f68719 Use goog.math.Bounds for extents 2012-07-11 17:20:05 +02:00
Tom Payne
25d67e670f Layers should always have an extent 2012-07-11 17:20:05 +02:00
Tom Payne
dc2993b61d Add ol.Camera 2012-07-11 17:20:05 +02:00
Tom Payne
c04e3d339f Add ol.TileUrl 2012-07-11 17:20:05 +02:00
Tom Payne
6ced2b5815 Update ol.Bounds, remove referenced/unreferenced bounds distinction 2012-07-11 17:20:05 +02:00
Tom Payne
a3322aa9e1 Add ol.TileBounds 2012-07-11 17:20:05 +02:00
Tom Payne
9f0738aa99 Add ol.TileCoord 2012-07-11 17:20:05 +02:00
Tom Payne
b4e2e45166 Add ol.MVCArray 2012-07-11 17:20:05 +02:00
Tom Payne
97b062fb73 Add ol.MVCObject 2012-07-11 17:20:05 +02:00
Tom Payne
46b4d96fb0 Add all.js for testing 2012-07-11 17:20:05 +02:00
Tom Payne
61038cde5f Move ol.js and ol.export.js into exports/ol.js 2012-07-11 17:20:05 +02:00
Tom Payne
79aa190e30 Add Makefile with lint target to use gjslint 2012-07-11 17:20:00 +02:00
Tom Payne
67105b0256 Don't discard Plovr version 2012-07-11 17:12:38 +02:00
Tom Payne
ed01a5db13 Ignore build targets 2012-07-11 17:12:38 +02:00
Éric Lemoine
6f1f9922cc more structure in doc/ol3.md 2012-07-11 17:12:37 +02:00
Éric Lemoine
3efa392d1f ol3.md updates 2012-07-11 17:12:37 +02:00
Éric Lemoine
c07d0c668d change ol3 doc from txt to markdown 2012-07-11 17:12:37 +02:00
Éric Lemoine
1bd975bc23 add design assertions to the doc/ol3.txt doc 2012-07-11 17:12:37 +02:00
Tom Payne
2474429f8c Add initial architecture draft 2012-07-11 17:12:37 +02:00
Éric Lemoine
357d08df99 the drag handler moves the map by default 2012-07-11 08:31:38 +02:00
Éric Lemoine
82b5a59647 remove ol.event entirely 2012-07-09 21:34:47 +02:00
Éric Lemoine
e4ff1a7574 ol.Tile inherits from goog.events.EventTarget 2012-07-09 21:33:08 +02:00
Éric Lemoine
f9cb029a74 ol.control.Zoom no longer require ol.event 2012-07-09 21:32:10 +02:00
Éric Lemoine
77b809bead ol.control.Attribution no longer require ol.event 2012-07-09 21:31:56 +02:00
Éric Lemoine
a3387bc673 ol.Map requires ol.handler.MouseWheel 2012-07-09 21:11:13 +02:00
Éric Lemoine
04f87f8f73 ol.Map:destroy is back (api tests pass again) 2012-07-09 21:09:42 +02:00
Éric Lemoine
7c7cd08494 base tests for ol.handler.Drag and ol.handler.MouseWheel 2012-07-09 21:09:09 +02:00
Éric Lemoine
aebfb643ac better type checking 2012-07-09 20:51:28 +02:00
Éric Lemoine
127a2c9606 [ol.handler.Drag] receive mousemove/touchmove events when dragstart and dragend only 2012-07-09 20:50:59 +02:00
Éric Lemoine
32757f2cd5 Merge remote branch 'upstream/master' into event 2012-07-09 19:47:46 +02:00
Éric Lemoine
484d0f8d04 use goog.events.dispatchEvent 2012-07-09 09:33:53 +02:00
Éric Lemoine
1679a59835 reset the map DEFAULT_CONTROLS array 2012-07-09 09:33:32 +02:00
Éric Lemoine
406a2da466 do no export ol.Map.prototype.destroy, it is gone 2012-07-09 09:32:57 +02:00
Éric Lemoine
f2e0adc24f make the drag handler prevent page scrolling 2012-07-09 09:32:18 +02:00
Éric Lemoine
bc72e2e444 ol.control.Attribution no longer relies on map.getEvents 2012-07-09 09:31:33 +02:00
Éric Lemoine
e0b53360d2 ol.Popup no longer relies on map.getEvents 2012-07-09 09:30:34 +02:00
Éric Lemoine
9e693f29c5 use the mousewheel handler 2012-07-09 09:28:56 +02:00
Éric Lemoine
2c61e16b55 add a mouse wheel handler 2012-07-09 09:27:36 +02:00
Tim Schaub
1dd2512765 Specs for getting tile coords. 2012-07-09 01:15:56 -06:00
Tim Schaub
7f594364ca Pixels aligned top,left to origin. 2012-07-09 01:15:56 -06:00
Éric Lemoine
34a450a009 Merge branch 'master' into event
Conflicts:
	src/ol/Map.js
	src/ol/event/Drag.js
2012-07-09 08:57:55 +02:00
ahocevar
d76eea8ac4 Fixing tests. 2012-07-09 08:26:25 +02:00
Tim Schaub
5a485ea856 Getting explicit about pixels and size.
Eventually, well have to ask renderers for all pixel and size related stuff.  And the map overlay renderer will do all pixel<->loc math.  For now, we let the map do this math based on its viewport - as this is where the mouse events are handled and it is pixels relative to the viewport that are being generated.  For now, the getViewportPixelForLoc and getLocForViewportPixel are now more explicitly named.
2012-07-08 20:57:36 -06:00
Tim Schaub
3d130d3325 Letting the map ask renderer for resolution. 2012-07-08 20:56:36 -06:00
Tim Schaub
4dfb5d0dee Set center on reset. Only shift if offset. 2012-07-08 20:42:15 -06:00
Tim Schaub
b24d63a898 Spaces for tabs. 2012-07-08 19:34:53 -06:00
Tim Schaub
4911320eef Rework DOM composite renderer. 2012-07-08 18:37:23 -06:00
Tim Schaub
ceaba3cdd4 Overlays above the renderer. 2012-07-08 18:37:23 -06:00
ahocevar
7bf1ffe606 Nice improvement of the wheel zooming experience. 2012-07-08 20:27:10 +02:00
ahocevar
4132ded263 Merge branch 'events' 2012-07-08 12:19:32 +02:00
ahocevar
ca2414c9d6 Simplify controls by registering click events on own elements.
This makes sense for all controls that provide buttons or similar UI elements that don't interfer with map interaction.
2012-07-08 12:17:11 +02:00
ahocevar
a38a331085 Allow for events on other elements than the map viewport.
Not registering browser events as priority events makes it easy for controls to preventDefault or stopPropagation when events are registered on children of the map viewport element.
2012-07-08 12:14:26 +02:00
ahocevar
e67e9049ca preventDefault and stopPropagation convenience functions.
These functions can directly be used as browser event listeners.
2012-07-08 12:12:19 +02:00
ahocevar
e8ac3f1a6b preventDefault for mousemove and touchmove.
This avoids panning of the browser page when drag-panning the map.
2012-07-08 11:55:31 +02:00
Tim Schaub
bb7127c548 Merge branch 'renderer' 2012-07-07 17:17:59 -06:00
Tim Schaub
ddd57426b5 Allow renderer to have a buffer. 2012-07-07 16:50:22 -06:00
Tim Schaub
dc409ebcc4 Resize images in case they were previously scaled. 2012-07-07 15:42:08 -06:00
Tim Schaub
c0777cc003 Working with integer pixel space. 2012-07-07 15:19:49 -06:00
Tim Schaub
523f4d61fc Shift container for all layer renderers together. 2012-07-07 13:13:07 -06:00
tschaub
d435f6b4fd Simplifying the loader.
Plovr checks the referrer for query string parameters (like mode), so we don't need any of this query string parsing (thanks @elemoine for the tip).

The reason we still dynamically generate the script tag is to work on other domains (e.g. testing on a VM or mobile device).  In this case, we make use of the `window.location.hostname`.
2012-07-05 13:55:24 -06:00
Éric Lemoine
22e7dc67d6 add a @fileoverview to ol/handler/Drag.js 2012-07-05 14:02:13 +02:00
Éric Lemoine
2fcd76bd54 ol.handler.Drag no longer needs a disposeInternal method 2012-07-05 14:01:44 +02:00
Éric Lemoine
8e36850e7f create parent event target for the map, to allow stopping event propagation 2012-07-05 13:55:57 +02:00
Éric Lemoine
410d79faa1 rely on registerDisposable 2012-07-05 11:11:35 +02:00
Éric Lemoine
946cd33350 make ol.Map inherit from goog.EventTarget, and add an ol.handler.Drag 2012-07-05 11:11:35 +02:00
Tim Schaub
0650d93d17 Let the composite renderer manage containers. 2012-07-04 22:17:56 -06:00
Tim Schaub
d8e8e55b44 Generalizing query string parsing in the loader. 2012-07-04 20:53:03 -06:00
ahocevar
578f74eb86 Less magic.
Each control is responsible for its handlers. And all controls are rendered into an overlay, not any more depending on assumptions about link click handling.
2012-06-29 09:44:52 +02:00
ahocevar
f28fe4912f I think we decided to name events in a noun+verb fashion. 2012-06-26 13:34:34 +02:00
ahocevar
8541490f53 Be more explicit about object properties to get rid of warnings. 2012-06-26 09:56:50 +02:00
ahocevar
b7c8486289 Testing Control.js. 2012-06-26 00:18:29 +02:00
ahocevar
56542de1f3 More Events.js tests. 2012-06-26 00:00:36 +02:00
Marc Jansen
1d12c1b5d8 Better test description. 2012-06-25 23:23:42 +02:00
Marc Jansen
f477fd8ced Allow multi* geometries in Collections/collections. 2012-06-25 23:19:25 +02:00
Marc Jansen
29b684f916 Correct the formatPoint test to use API methods. 2012-06-25 23:03:01 +02:00
Marc Jansen
ca5b06f108 Add exports for multilinestring. 2012-06-25 23:02:35 +02:00
Marc Jansen
25202cae6d Add a LineStringLike typedef. 2012-06-25 22:46:11 +02:00
Marc Jansen
0a60d2dc82 Include test spec in api.html. 2012-06-25 22:45:17 +02:00
Marc Jansen
7eef78ed4c Add geom/multilinestring classes and tests. 2012-06-25 22:44:42 +02:00
Marc Jansen
f2577bbf12 Correct test for remove method. 2012-06-25 22:43:22 +02:00
Marc Jansen
6d84d4d3a1 Add geom/MultiLineString classes and tests. 2012-06-25 21:36:17 +02:00
ahocevar
f962b78caa If no listeners are registered, triggerEvent does nothing now. 2012-06-25 06:32:10 +02:00
ahocevar
87459deb65 Removing unused variable. 2012-06-25 06:32:10 +02:00
Éric Lemoine
fbd4023d6a [ol.layer.TileLayer] better func comment 2012-06-24 22:30:48 +02:00
Éric Lemoine
192caa1c65 [ol.layer.TileLayer] do not load tiles outside the layer's extent 2012-06-24 22:25:01 +02:00
ahocevar
9c46aadd22 Adding attribution control and attribution. 2012-06-24 22:22:18 +02:00
ahocevar
dfc21754c9 Adding addLayers method and addlayer event. 2012-06-24 22:14:48 +02:00
ahocevar
c218e7a139 Adding missing return type. 2012-06-24 22:12:58 +02:00
ahocevar
9758910fc6 Making Element/Node types more consistent. 2012-06-24 22:12:38 +02:00
ahocevar
eabc2d9922 Shortcut to register events. 2012-06-24 20:03:58 +02:00
ahocevar
1b93856e89 Keep track of the number of events we have registered.
This is needed to reliably prevent the handleBrowserEvent method to perform potentially expensive calculations.
2012-06-24 20:03:16 +02:00
ahocevar
d8599f28b9 Let the controls decide about stopPropagation and preventDefault. 2012-06-24 19:53:42 +02:00
ahocevar
68498bc36e Fixing the way we prevent the extra click. 2012-06-24 19:48:59 +02:00
ahocevar
bd8354c831 Adding destroy method.
The control now removes its markup from the DOM. A nice aspect of our event handling is that no events need to be registered on any of the dom elements that controls create.
2012-06-24 17:08:32 +02:00
ahocevar
45222ac5cb Adding getStaticOverlay method.
This will be used by overlays, e.g. to display layer attribution.
2012-06-24 17:07:02 +02:00
Marc Jansen
f7b75a8913 Merge pull request #3 from cedricmoullet/master
Semicolon missing
2012-06-24 05:43:20 -07:00
ahocevar
bc37121ae0 Accessibility - now we can use the keyboard to zoom in and out. 2012-06-24 13:45:32 +02:00
ahocevar
218ad77103 preventDefault now happens in Events.js for all handled events. 2012-06-24 13:43:53 +02:00
ahocevar
fcadf842e5 stopPropagation and preventDefault when the event was handled. 2012-06-24 13:43:11 +02:00
ahocevar
446a434c06 New isEnterOrSpace method for keyboard navigation. 2012-06-24 13:42:34 +02:00
ahocevar
7f01528311 Proper destruction. 2012-06-24 13:41:00 +02:00
ahocevar
2fbb29efa0 Using goog.object.clear in destroy. 2012-06-24 12:46:09 +02:00
ahocevar
53a1f9b579 Adding tests for Loc.add. 2012-06-24 12:02:45 +02:00
ahocevar
fdfccb7a82 Fixing type of maxResolution. 2012-06-24 11:40:18 +02:00
ahocevar
0c9b3d1d58 Making map_ protected instead of private. 2012-06-24 11:39:42 +02:00
Cédric Moullet
38db8178e2 semicolon missing 2012-06-24 11:26:23 +02:00
ahocevar
81577d6dce Adding Loc.add method. 2012-06-24 10:09:24 +02:00
Petr Pridal
587512cac8 Introduced "ol.API" @define which will allow in future to compile HPI apps with the OL. Discussed in ol3-sprint mailing-list. 2012-06-23 23:06:45 +02:00
Éric Lemoine
b615eb94b7 add a ol.layer.wms factory 2012-06-23 21:53:45 +02:00
Éric Lemoine
0b36e10f8f [ol.map] option name maxRes changed to maxResolution (discussed in cdd9439) 2012-06-23 21:27:39 +02:00
Éric Lemoine
c7e799ebf4 [ol.popup] make the API tests pass in advanced mode 2012-06-23 21:20:15 +02:00
Tim Schaub
08d6e35252 Accept an id param for the loader. 2012-06-23 20:00:28 +02:00
Tim Schaub
2fcbce30bc For now, we require a projection on loc internally. 2012-06-23 19:59:49 +02:00
ahocevar
12fb6c5af4 Merge branch 'master' of github.com:openlayers/ol3 2012-06-23 17:03:57 +02:00
ahocevar
bba7500ab7 Making Popup tests pass. 2012-06-23 17:00:58 +02:00
Tim Schaub
bcc85b9dd7 Must set a projection before setting center. 2012-06-23 16:55:16 +02:00
Tim Schaub
db2cbe07b7 Transforming coords before setting center.
The internal setCenter method can only be called with locations that have projections.  This method always transforms.
2012-06-23 16:42:51 +02:00
ahocevar
81b8a472d8 No longer need to calculate the anchor transformation. 2012-06-23 16:16:37 +02:00
ahocevar
026b60826e Removing stub method, and use the real method in Popup. 2012-06-23 16:16:37 +02:00
ahocevar
ad8568a259 New setCenterAndZoom and setZoom methods. 2012-06-23 16:16:37 +02:00
ahocevar
abf4f41eab Check for renderer before calling methods on it. 2012-06-23 16:16:37 +02:00
Tim Schaub
48704cce2f Make sure to set a projection on user center.
Only in the API do we allow setting the map center without a projection.  This is all handled in the center getter/setter.
2012-06-23 15:40:43 +02:00
Tim Schaub
167f77dd7e Updating example with build config. 2012-06-23 15:22:37 +02:00
Tim Schaub
df1dfd5295 Adding exports to get advanced compilation. 2012-06-23 15:22:37 +02:00
ahocevar
c656bac601 Making the pointer position the zoom origin. 2012-06-23 14:22:54 +02:00
ahocevar
d391c65ac6 New pixel conversion and zoom/center related methods. 2012-06-23 14:21:37 +02:00
ahocevar
6d7c79a9b9 Merge branch 'master' of github.com:openlayers/ol3 2012-06-23 14:18:25 +02:00
ahocevar
43adc61b26 No click event at the end of a drag sequence. 2012-06-23 14:18:02 +02:00
Tim Schaub
795f8b854d Adding instructions for build utilities. 2012-06-23 14:10:25 +02:00
Tim Schaub
a1fcb4e065 Build with an arbitrary configuration. 2012-06-23 13:55:06 +02:00
ahocevar
3adf04f728 Merge branch 'master' of github.com:openlayers/ol3 2012-06-23 13:41:35 +02:00
ahocevar
e03595fdac Priority flag for unregistering priority events. 2012-06-23 13:37:39 +02:00
Tim Schaub
2991041b3c Cleaning up a bit. 2012-06-23 13:23:10 +02:00
Tim Schaub
c4f91d498c Prep for more efficient moves. 2012-06-23 12:42:09 +02:00
ahocevar
cdd9439bbd Consistency: get/setMaxResolution instead of get/setMaxRes. 2012-06-23 09:10:01 +02:00
Tim Schaub
76d90428bd Pleasant zoom. 2012-06-23 03:32:27 +02:00
Tim Schaub
0554bceb29 Drag and zoom without throwing.
(This is a bit tedious, suggests a pending state.)
2012-06-23 02:17:14 +02:00
Tim Schaub
789eaa2742 Loaded typo. 2012-06-23 02:11:26 +02:00
Tim Schaub
ef0fd8da60 Pixels increase right and down. 2012-06-23 02:00:28 +02:00
Tim Schaub
b6cfeecdfb Adjust tiles if already rendered. 2012-06-23 01:59:20 +02:00
ahocevar
a6069bb78e Center tranformation in the api; moveByPx implemented. 2012-06-22 20:49:58 +02:00
Tim Schaub
5fa42e9b30 A map that zooms. 2012-06-22 20:46:34 +02:00
Éric Lemoine
0eaaefdf1d make the TileLayerRenderer tests pass 2012-06-22 20:43:13 +02:00
Éric Lemoine
f92e128636 [ol.layer.WMS] add a basic tiled WMS layer implementation 2012-06-22 20:39:56 +02:00
Tim Schaub
cfe3f14777 Stray console log. 2012-06-22 20:38:24 +02:00
Tim Schaub
787f2ba979 Common method for conditionally rendering. 2012-06-22 20:37:29 +02:00
Tim Schaub
b986395358 This is not doing what you think it is. 2012-06-22 20:25:26 +02:00
Tim Schaub
f46a7dbc2a Updated example. 2012-06-22 20:10:02 +02:00
Tim Schaub
bc0614d3ee Render last. 2012-06-22 20:08:44 +02:00
Tim Schaub
f86e6f17a9 Absolute position for tiles. 2012-06-22 20:08:44 +02:00
Tim Schaub
af73489bd5 Create a renderer and draw when possible. 2012-06-22 20:08:44 +02:00
ahocevar
c72f803038 Adding scroll sequence and scroll support for the Navigation control. 2012-06-22 19:51:35 +02:00
ahocevar
6b8000d963 Removing debug output. 2012-06-22 19:48:05 +02:00
Tim Schaub
7b41119bc9 Composite renderer creates layer renderers. 2012-06-22 19:46:40 +02:00
Tim Schaub
ff9bacf044 Temporary way for map renderers to register. 2012-06-22 19:46:40 +02:00
Tim Schaub
915f7b5330 Clean up old tiles. 2012-06-22 19:46:40 +02:00
Mike Adair
e7240062b3 adding some more tests 2012-06-22 13:05:18 -04:00
Éric Lemoine
5dc156995a [ol.layer.TileLayer] use ol.error 2012-06-22 18:46:52 +02:00
Éric Lemoine
a26913f26e [ol.layer.TileLayer] getTileUrl should be implemented in subclasses 2012-06-22 18:31:32 +02:00
ahocevar
f504fe87b8 Removing incorrect comments. 2012-06-22 18:27:06 +02:00
ahocevar
84ee96fbd0 Don't subclass fx.Dragger - just use it. 2012-06-22 18:27:06 +02:00
Marc Jansen
c54dda723a Remove debugg statement 2012-06-22 18:26:09 +02:00
Marc Jansen
be9448457d Test & improve the getCentroid/centroid method of collections 2012-06-22 18:24:53 +02:00
Marc Jansen
abb254a0fb Test the getCentroid/centroid Method of multipoints 2012-06-22 18:24:53 +02:00
Tim Schaub
2fffa0293d Test renderer type. 2012-06-22 17:48:44 +02:00
Tim Schaub
5b2d29878b Tile may be null. 2012-06-22 17:38:59 +02:00
Éric Lemoine
68fdab6824 [ol.layer.TileLayer] do not create tiles outside the layer extent 2012-06-22 17:30:35 +02:00
Tim Schaub
0c0eecebd9 Tile index based math (needs simplification). 2012-06-22 17:29:06 +02:00
Mike Adair
264cc741ca Merge branch 'master' of github.com:openlayers/ol3 2012-06-22 11:26:25 -04:00
Mike Adair
d8b527776a fixing compiler warning 2012-06-22 11:26:09 -04:00
Marc Jansen
4dd3e695a4 Test the getCentroid/centroid Method of linestrings 2012-06-22 17:25:39 +02:00
Marc Jansen
bddb84ec14 Fix the the 'remove' exists test. 2012-06-22 17:25:39 +02:00
Marc Jansen
a235613238 dangling whitespace 2012-06-22 17:25:39 +02:00
ahocevar
6c1d510bf0 Getting rid of compiler warnings. 2012-06-22 17:17:25 +02:00
ahocevar
f12a20d7aa Stop the event chain when we have handled the event. 2012-06-22 17:14:46 +02:00
ahocevar
0420d2efb9 Adding Zoom control.
Tests still missing.
2012-06-22 17:14:22 +02:00
ahocevar
d9537b558a Simplified ISequence API; add object property also for browser events. 2012-06-22 17:12:29 +02:00
Éric Lemoine
22f569750f [ol.TileCache] tile cache size is not 1 2012-06-22 16:53:56 +02:00
Mike Adair
e748d39680 Merge branch 'master' of github.com:openlayers/ol3 2012-06-22 10:53:17 -04:00
Mike Adair
2163d54323 adds autosizing and image loading listener 2012-06-22 10:52:58 -04:00
Éric Lemoine
c501559413 Revert "[ol.TileCache] tile cache size is not 1"
This reverts commit 3f9fd2f47a.
2012-06-22 16:51:28 +02:00
Éric Lemoine
3f9fd2f47a [ol.TileCache] tile cache size is not 1 2012-06-22 16:48:48 +02:00
Marc Jansen
b664847591 Add export symbols. 2012-06-22 16:26:19 +02:00
Marc Jansen
396875c719 A centroid method for LineStrings 2012-06-22 16:26:19 +02:00
Marc Jansen
483c431e1b A centroid method vor Collections 2012-06-22 16:26:19 +02:00
Marc Jansen
73e07df544 Give geometrues a centroid method. 2012-06-22 16:26:19 +02:00
Marc Jansen
e23b119059 Whitespace changes only. 2012-06-22 16:26:19 +02:00
Marc Jansen
09d7f15fb2 Give points a getCentroid/centroid method. 2012-06-22 16:26:19 +02:00
Marc Jansen
1456e234e2 Whitespace changes only. 2012-06-22 16:26:19 +02:00
Marc Jansen
5a3dad9326 Add a basic geometry interface 2012-06-22 16:26:19 +02:00
Tim Schaub
db3a6e9c4a Get closest resolution. 2012-06-22 16:14:33 +02:00
ahocevar
65ae7eb7a7 Adding 'object' property to event object. 2012-06-22 15:58:58 +02:00
Éric Lemoine
e5c3dcfe09 [ol.layer.TileLayer] fix maxResolution calculation 2012-06-22 15:43:18 +02:00
Éric Lemoine
1df7c048b8 [ol.layer.TileLayer] tileOriginCorner is tl by default 2012-06-22 15:43:18 +02:00
Tim Schaub
ef06bee222 Allowing people to set up things backwards. 2012-06-22 15:42:56 +02:00
Éric Lemoine
71a804c5e0 [ol.layer.TileLayer] add a getTileForXYZ func 2012-06-22 15:16:58 +02:00
Petr Pridal
976239816e Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-22 14:53:53 +02:00
Petr Pridal
6cfb942ff9 Fix the calls of .transform in internal code. It should be .doTransform. 2012-06-22 14:53:12 +02:00
Petr Pridal
6f9f1783bd The demo of compilation with library in a different ways. 2012-06-22 14:48:49 +02:00
Mike Adair
675dd2b47e Merge branch 'master' of github.com:openlayers/ol3 2012-06-22 08:14:42 -04:00
Mike Adair
2396c95b2d Merge branch 'master' of github.com:openlayers/ol3 2012-06-22 08:14:13 -04:00
ahocevar
494305d725 Simplified the ISequence interface and sequence event handling. 2012-06-22 14:14:10 +02:00
Mike Adair
368bb28671 initial version of popups 2012-06-22 08:13:34 -04:00
Marc Jansen
07021d367b Handmade exports for multipoints. 2012-06-22 14:13:14 +02:00
Marc Jansen
dc686c3d07 Handmade exports for linestrings. 2012-06-22 14:13:14 +02:00
Mike Adair
a8642e9af5 Merge branch 'master' of github.com:openlayers/ol3 2012-06-22 08:12:25 -04:00
Mike Adair
5e3b18ae84 Merge branch 'master' of github.com:openlayers/ol3 2012-06-22 08:09:59 -04:00
Éric Lemoine
01668a2748 [ol.layer.TileLayer] add a getTileSize function 2012-06-22 14:09:57 +02:00
Éric Lemoine
cf3da75d83 fix layer.osm and layer.xyz api tests in adv mode 2012-06-22 14:04:44 +02:00
Éric Lemoine
e78b990f52 fix ol.geom.geometry api tests 2012-06-22 13:57:43 +02:00
Petr Pridal
8d36dfe475 Handmade exports: Require only for the 'ol', added map.renderTo and remoced map.maxRes. 2012-06-22 13:54:40 +02:00
Tom Payne
2e46765c77 Fix another typo 2012-06-22 13:43:51 +02:00
Tom Payne
fb686c9db4 Fix typo 2012-06-22 13:42:57 +02:00
Petr Pridal
f31486a982 The dynamic registration of controls - hack for the advanced mode compilation. 2012-06-22 13:13:22 +02:00
Tim Schaub
4e2ea47e73 Decode what we encode. 2012-06-22 13:12:47 +02:00
Marc Jansen
11aedf710b Test restructuring. No functional change. 2012-06-22 13:07:52 +02:00
Petr Pridal
965a5a13b2 Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-22 12:55:32 +02:00
Petr Pridal
c0dc9facf0 Let's use the handmade src/os.export.js instead of the automated generation from the @export jsdoc for testing. 2012-06-22 12:53:47 +02:00
Mike Adair
fdfeaa3c44 Merge branch 'master' of github.com:openlayers/ol3 2012-06-22 06:52:22 -04:00
Éric Lemoine
2e7d361f1e make the feature api tests pass in advanced mode 2012-06-22 12:50:06 +02:00
Petr Pridal
a5e9757234 Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-22 12:42:03 +02:00
Petr Pridal
53f8727062 Anonymous wrapper function around the api.js compiled in advanced compilation. 2012-06-22 12:40:42 +02:00
Marc Jansen
f143f32a6f Use ol.error instead of throwing directly. 2012-06-22 12:37:10 +02:00
Éric Lemoine
2d50a35850 the API user does not know about UnreferencedBounds, and remove getResForZoom and getMaxRes from the map API 2012-06-22 12:34:15 +02:00
Éric Lemoine
1d114b4630 two test pages, one for api, one for ol 2012-06-22 12:17:57 +02:00
Marc Jansen
f6a728b074 Do not loose URL-parameters passed to jasmine. 2012-06-22 12:14:35 +02:00
Tom Payne
3e15ce93bb Use ol.base.checkKeys to check keys 2012-06-22 11:58:03 +02:00
Tom Payne
afd6369da7 Add ol.base.checkKeys 2012-06-22 11:56:45 +02:00
Tom Payne
fd4c776181 Create new ol.base and include ol.error 2012-06-22 11:56:45 +02:00
Éric Lemoine
a0e5741774 [ol.layer.TileLayer, ol.layer.XYZ] add a getMaxResolution func to TileLayer, and make ol.layer.XYZ be just a projection and a number of zoom levels 2012-06-22 11:52:40 +02:00
Mike Adair
89b3019cde return correct map overlay elem 2012-06-22 05:50:14 -04:00
Petr Pridal
1fcdffacc1 Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-22 11:45:50 +02:00
Petr Pridal
fa9507ab79 Removing Makefile. Use 'bin/ol' for starting plovr. 2012-06-22 11:45:01 +02:00
ahocevar
deb84cf212 Removing unused code. 2012-06-22 11:42:17 +02:00
ahocevar
fbcca9642c Use renderTo instead of el as method/option name. 2012-06-22 11:17:27 +02:00
Éric Lemoine
86a3eaad19 [ol.layer.TileLayer] move getData from layer.XYZ to layer.TileLayer 2012-06-22 11:09:08 +02:00
Tom Payne
0b06267afe Trigger redraws on tile loads. 2012-06-22 11:02:44 +02:00
Éric Lemoine
cb37aaa01b map.test.js - fix the map is destroyable test in advanced mode 2012-06-22 10:59:57 +02:00
Éric Lemoine
ad2c3e15e3 [ol.Tile] as an isLoading method 2012-06-22 10:51:59 +02:00
Petr Pridal
f25b3aa350 Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-22 10:48:58 +02:00
Petr Pridal
5439d63e89 Hello world for various modes of compilation. 2012-06-22 10:44:34 +02:00
Éric Lemoine
0cf1a830d9 [ol.layer.XYZ] no need to call setResolutions 2012-06-22 10:41:06 +02:00
Éric Lemoine
7c36d2f42f [ol.layer.XYZ] does not require ol.Tile 2012-06-22 10:40:25 +02:00
Éric Lemoine
9d21d6f20f [ol.TileLayer] no setTileSize method anymore 2012-06-22 10:39:53 +02:00
Éric Lemoine
f7a956f404 [ol.Tile] add ol.Tile.createConstructor and set width and height to the img archetype 2012-06-22 10:38:40 +02:00
Marc Jansen
67ce7afe67 Export the Collection constructor. 2012-06-22 09:45:05 +02:00
Marc Jansen
bed71db109 Export the LineString constructor. 2012-06-22 09:44:21 +02:00
Marc Jansen
9a533aeb7d Export the MultiPoint constructor. 2012-06-22 09:41:37 +02:00
Marc Jansen
3a40925a7d API point fixed (using ADVANCED compilation) 2012-06-22 09:36:58 +02:00
Marc Jansen
45917504b0 Fix the geom tests to only use API methods. 2012-06-22 09:18:12 +02:00
Petr Pridal
8ace8aee78 Added missing goog.require() 2012-06-22 01:43:09 +02:00
Petr Pridal
e10a845058 Advanced compilation of the API with 'bin/ol api' 2012-06-22 01:32:29 +02:00
Éric Lemoine
9529db0151 throw an error if ol.map gets passed an unknown option 2012-06-21 20:16:11 +02:00
Éric Lemoine
7e8c418155 fix ol.error 2012-06-21 20:16:11 +02:00
Tim Schaub
c67ca2660d Partial tile layer renderer. 2012-06-21 19:59:43 +02:00
Tim Schaub
948e792ddd Bounds transforms. 2012-06-21 19:59:43 +02:00
Tim Schaub
6198df9381 Location transform in api. 2012-06-21 19:59:43 +02:00
Tim Schaub
ba7b54949c Bounds spec. 2012-06-21 19:59:43 +02:00
Tom Payne
7f7528baf9 Add GeoJSON externs. 2012-06-21 19:47:12 +02:00
ahocevar
4776b11658 Now the map also has overlay divs. 2012-06-21 19:40:04 +02:00
Éric Lemoine
5388657791 [ol.Tile] a tile can be loaded only once 2012-06-21 19:37:16 +02:00
ahocevar
ed62cc00a7 Fixing typos. 2012-06-21 19:36:11 +02:00
ahocevar
188615391d Using a map for controls also. 2012-06-21 19:33:33 +02:00
ahocevar
9bd507e9b8 Adding a map of sequence providers 2012-06-21 19:27:18 +02:00
Éric Lemoine
6c76f4621e [ol.Tile] add a isLoaded function 2012-06-21 19:10:28 +02:00
Tom Payne
79f5339573 Add simple ol.error function 2012-06-21 19:01:27 +02:00
Éric Lemoine
98495cafc3 [ol.Tile] an image is a HTMLImageElement 2012-06-21 19:00:09 +02:00
Éric Lemoine
1c7e0f8481 add an ol.TileCache and use it in ol.TileLayer 2012-06-21 19:00:09 +02:00
ahocevar
a06de64f37 Minimal demo. 2012-06-21 18:57:07 +02:00
ahocevar
e9e5fd27dc The map now has a viewport and can render to a container. 2012-06-21 18:56:48 +02:00
Marc Jansen
8f90db58dc MultiPoints shall only contain points. 2012-06-21 18:23:37 +02:00
Marc Jansen
340caf2720 Collections cannot contain Collections.
By having both the constructor and the setComponents checking
a white- and a blacklist for allowed types, we ensure that no
Collections can be added through these methods to the list of
components.
2012-06-21 18:23:37 +02:00
ahocevar
8d8819ec3c Removing unused file and code. 2012-06-21 17:30:23 +02:00
Tim Schaub
7c17374231 Bounds has projection or null. 2012-06-21 17:28:47 +02:00
ahocevar
81a55eb320 Finally fixing event sequences. 2012-06-21 17:26:23 +02:00
Tim Schaub
0a1f8cddd8 Intersects method for bounds. 2012-06-21 17:12:05 +02:00
Petr Pridal
08ad8c80d6 Rename MapRenderer attribut 'target' to 'container' to follow the new conventions. 2012-06-21 17:01:21 +02:00
Tom Payne
8448aba616 Add initial WebGL renderer skeleton 2012-06-21 16:39:47 +02:00
Éric Lemoine
435557b425 [ol.Tile] trigger load and error events 2012-06-21 16:10:52 +02:00
Éric Lemoine
79b0bb74c8 [ol.Tile] add comments for handleImageLoad and handleImageError 2012-06-21 16:10:51 +02:00
Éric Lemoine
e72ab5135c [ol.Tile] register to image error 2012-06-21 16:10:51 +02:00
Éric Lemoine
1dc6b04ac1 [ol.Tile] register to image load 2012-06-21 16:10:51 +02:00
Marc Jansen
ce49bb8876 Add LineString/linestring.
The inhertance of this class might change in the future.
2012-06-21 16:00:08 +02:00
Marc Jansen
745ae25b6b Change the inhertance of MultiPoint/multipoint. 2012-06-21 16:00:08 +02:00
Marc Jansen
0374d1abc7 Add geom.Collection & geom.collection.
Also make MultiPoint and multipoint inherit from Collection/collection
respectively.
2012-06-21 16:00:08 +02:00
Petr Pridal
6ca9112af2 WebGL MapRenderer inicializaiton with a test (it may fail on computers without WebGL). 2012-06-21 15:51:00 +02:00
Éric Lemoine
1cca6b4069 add numZoomLevels and maxResolution properties to the TileLayer 2012-06-21 14:18:52 +02:00
ahocevar
5b747cf7fd Temporarily removing Drag sequence. 2012-06-21 14:14:36 +02:00
ahocevar
6213e07f96 Navigation control with Drag sequence Dragger
This is totally unfinished, but tests pass, and it is only meant to give the map a Navigation control.
2012-06-21 14:08:50 +02:00
Petr Pridal
8fc1e9cc98 More complete constructor of the WebGL MapRenderer. 2012-06-21 13:53:10 +02:00
Tim Schaub
2741a22cf1 Add animate to draw. 2012-06-21 13:31:23 +02:00
Tim Schaub
a6f464e473 New name for element.
You are provided a container.  To this container you can append elements, and you are responsible for removing elements that you add.  You cannot move or otherwise alter anything about this container.
2012-06-21 13:28:29 +02:00
Éric Lemoine
5f1e53a0c9 move properties from layer/XYZ to layer/TileLayer 2012-06-21 12:42:36 +02:00
Tim Schaub
5da8fc8d49 Allow map renderers access to target. 2012-06-21 12:26:51 +02:00
Petr Pridal
56456ec878 Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-21 12:24:26 +02:00
Petr Pridal
638d00b759 First css styles in /css/ol.css 2012-06-21 12:23:37 +02:00
Tim Schaub
661f07d80a Only check src for js. 2012-06-21 12:23:14 +02:00
Marc Jansen
f85d6402e9 Add MultiPoint and multipoint. 2012-06-21 12:19:42 +02:00
Petr Pridal
cff7ee5db8 WebGL MapRender - initial not finished version. 2012-06-21 12:02:21 +02:00
Tim Schaub
45f734d77e Base for map renderer. 2012-06-21 11:40:51 +02:00
Tim Schaub
9cc501caba Composite renderer requires an element. 2012-06-21 11:30:53 +02:00
Mike Adair
f3ab95b051 change feature obj literal property names to match GeoJSON 2012-06-21 03:31:57 -04:00
Éric Lemoine
22bffd9d8b add an OSM layer constructor to the API 2012-06-21 08:46:23 +02:00
Éric Lemoine
b91769f00b [ol.layer.XYZ] less than 8 chars lines 2012-06-21 08:38:38 +02:00
Tim Schaub
43c8b89460 Initial pass at tiled layer renderer. 2012-06-21 01:18:57 +02:00
Tim Schaub
fe0e242a39 Initial composite map renderer. 2012-06-21 01:17:34 +02:00
Tim Schaub
ae242de94a Ignoring jsdoc output. 2012-06-21 01:16:37 +02:00
Tim Schaub
4baf760b7e Layer for demo. 2012-06-21 01:15:54 +02:00
Tim Schaub
be54add905 Width and height on unreferenced bounds. 2012-06-21 00:50:26 +02:00
Tim Schaub
5287677489 Additional tileset getters. 2012-06-21 00:42:28 +02:00
Tim Schaub
d8b31ab1ff Class name on archetype image. 2012-06-21 00:33:31 +02:00
Tim Schaub
57764813e3 Constructing tiles with bounds. 2012-06-20 23:38:15 +02:00
Tim Schaub
f9813616e5 Giving a tile bounds. 2012-06-20 23:38:15 +02:00
Tim Schaub
c9c1f79928 Layer hierarchy for renderers. 2012-06-20 23:38:14 +02:00
ahocevar
5a31638da8 Updating name. 2012-06-20 23:21:58 +02:00
ahocevar
6ddda53a70 Initial port of Control.js and Navigation.js.
This also adds an Events instance to the map, so the Navigation control can register events on the map.

Tests still missing.
2012-06-20 23:21:44 +02:00
Mike Adair
4ea2fe3701 adding features 2012-06-20 13:33:20 -04:00
Tom Payne
d5f9f9e8a4 Use inheritance. 2012-06-20 19:17:59 +02:00
ahocevar
a36972fd35 Exporting the API. 2012-06-20 19:07:11 +02:00
ahocevar
74d1a06177 No need for cross browser handling here. 2012-06-20 19:07:11 +02:00
Tim Schaub
a4a6bc4db4 Typo in PointLike def. 2012-06-20 18:49:40 +02:00
Petr Pridal
6f4975883f Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-20 18:43:49 +02:00
Petr Pridal
1c25a53876 Allow ?mode=ADVANCED on the test/index.html and make the output easier to debug. 2012-06-20 18:42:56 +02:00
Tim Schaub
32d5397301 Dot notation for unquoted property. 2012-06-20 18:42:43 +02:00
Petr Pridal
453d2e9c08 Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-20 18:38:34 +02:00
Petr Pridal
5ed80bcf6c Adding @export tags to functions missing it - for advanced compilation. 2012-06-20 18:37:56 +02:00
ahocevar
c4c595862f Support for event sequences, and a drag sequence.
Tests still missing.
2012-06-20 18:35:42 +02:00
ahocevar
05e13e86a3 Adding drag sequence. Tests still missing. 2012-06-20 18:32:27 +02:00
Éric Lemoine
7413770a46 add an ol.layer.xyz factory 2012-06-20 18:09:10 +02:00
Marc Jansen
958e291545 Quoting properties for external use.
See also 1ac40021bb.
2012-06-20 17:57:27 +02:00
Petr Pridal
e3b20ddf8b Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-20 17:47:28 +02:00
Petr Pridal
6922be1b02 Missing @export tags for advanced compilation 2012-06-20 17:46:36 +02:00
Marc Jansen
a9d280a317 Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-20 17:45:00 +02:00
Marc Jansen
94fe46c5be Remove stray ')' 2012-06-20 17:43:54 +02:00
Tim Schaub
1ac40021bb Quoting properties for external use. 2012-06-20 17:43:46 +02:00
Éric Lemoine
025547d199 [ol.Layer.XYZ] minor changes in code comments 2012-06-20 17:43:24 +02:00
Marc Jansen
eb690951ab Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-20 16:52:33 +02:00
Marc Jansen
b49c036ae2 Make the testuite configurable via URL. 2012-06-20 16:49:51 +02:00
Éric Lemoine
7bf05964b8 [ol.layer.XYZ] more tiling fixes, and additional tests 2012-06-20 16:18:01 +02:00
Tim Schaub
5eeb21c125 Disallow nowhere. 2012-06-20 16:11:41 +02:00
ahocevar
f74d265dec Verified isSingleTouch and isMultiTouch functions. 2012-06-20 16:02:41 +02:00
ahocevar
66a5a8ad7a countFn not needed - do everything with logFn. 2012-06-20 15:53:01 +02:00
ahocevar
8c4b528ded Better cleanup. 2012-06-20 15:52:24 +02:00
ahocevar
80f76a91e1 Always provide a proper event object. 2012-06-20 15:52:08 +02:00
ahocevar
733f1478dc Merge branch 'master' of github.com:openlayers/ol3 2012-06-20 15:50:56 +02:00
Éric Lemoine
d4ebe97ab1 [test/index.html] remove the mode=RAW script tag again, it does not work anymore 2012-06-20 15:50:31 +02:00
Marc Jansen
edc2773147 Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-20 15:42:43 +02:00
Marc Jansen
6b8cd1216f Easier getter/setter for geom.point. 2012-06-20 15:42:10 +02:00
ahocevar
2fa71057b1 Finalizing tests for ol.Events 2012-06-20 15:26:02 +02:00
Éric Lemoine
2890a55ee7 [ol.layer.XYZ] a tiling fix 2012-06-20 15:13:22 +02:00
Éric Lemoine
e989c61e63 make the tests run in Closure RAW mode, but leave the SIMPLE mode script tag to still catch compilation errors/warnings while running tests 2012-06-20 15:11:20 +02:00
Mike Adair
e61769c6dc put back to SIMPLE mode 2012-06-20 09:04:51 -04:00
Mike Adair
45c03c29ba Merge branch 'master' of github.com:openlayers/ol3 2012-06-20 09:02:51 -04:00
Mike Adair
aa584e17e9 center returned in user projection 2012-06-20 09:02:20 -04:00
Marc Jansen
0ccbb8e6d0 Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-20 14:59:18 +02:00
Marc Jansen
d933404df8 Make Points transformable. 2012-06-20 14:58:37 +02:00
Tim Schaub
09a6b6c456 Changing expectations for projection. 2012-06-20 14:52:29 +02:00
Mike Adair
a6b93773cd Merge branch 'master' of github.com:openlayers/ol3 2012-06-20 08:42:11 -04:00
Mike Adair
00e25d3a62 fix warnings 2012-06-20 08:41:47 -04:00
Mike Adair
99b397bffc implement getMaxRes, getMaxExtent, getResForZoom 2012-06-20 08:29:43 -04:00
Marc Jansen
33c2e0aa30 Correct the tests for geom.Point and geom.point.
Add tests for the API version `ol.point()`; adjust the tests for the internal
`new ol.Point()`.
2012-06-20 13:36:07 +02:00
Marc Jansen
cdcf3ef5a4 remove the coordinate mixin. 2012-06-20 12:06:55 +02:00
Éric Lemoine
a4a90b18b7 [ol.layer.XYZ] zoomForResolution is no longer private 2012-06-20 12:04:07 +02:00
Tim Schaub
14b1a34f98 Splitting tests between api and internal. 2012-06-20 11:56:20 +02:00
Éric Lemoine
a7a86bb169 add a Jasmine toBeA matcher 2012-06-20 11:44:43 +02:00
Petr Pridal
02840ad573 Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-20 11:40:25 +02:00
Petr Pridal
638a3b104e Turn on WARNING for compilation on visibility and other compiler options. 2012-06-20 11:39:28 +02:00
Petr Pridal
e0d444551c Fixing visibility (@private/@protected) annotationto introduce compiler warnings for that. 2012-06-20 11:35:58 +02:00
Marc Jansen
ac2a0bbccd Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-20 11:30:43 +02:00
Marc Jansen
85f0f43b7b Saving state prior to spec moving. 2012-06-20 11:30:06 +02:00
ahocevar
b63e13d09c More Events tests. 2012-06-20 11:29:07 +02:00
ahocevar
4854eee97c Getting rid of debugger statement. 2012-06-20 11:26:33 +02:00
ahocevar
25d4ef17fd Fixing types and getting rid of evt.touches warning. 2012-06-20 11:23:48 +02:00
Éric Lemoine
e995ffea89 more "setters should not return this" changes + warning fixes 2012-06-20 11:21:29 +02:00
Éric Lemoine
27305925ff run fromdos on ol/Map.js 2012-06-20 11:21:29 +02:00
Éric Lemoine
487e61884e EPI setters no longer return this 2012-06-20 11:21:29 +02:00
Marc Jansen
41df32df9a Merge branch 'master' of https://github.com/openlayers/ol3 2012-06-20 11:19:48 +02:00
Marc Jansen
aec8f953e5 Remove the mixin approach and give the Point class a projection. 2012-06-20 11:18:07 +02:00
Marc Jansen
073c636cb2 Removed interfaces package and introduced coord package. 2012-06-20 11:17:13 +02:00
Mike Adair
c657bdeeb6 remove debugger line 2012-06-20 05:00:48 -04:00
Mike Adair
a9a2e7cf8f remove debugger line 2012-06-20 04:58:30 -04:00
Mike Adair
4161595c85 extent and res tests 2012-06-20 04:37:16 -04:00
Mike Adair
2c7e308960 adding getMaxExtent and getMaxRes 2012-06-20 04:37:14 -04:00
Éric Lemoine
4fcc00e39c move ol.Projection code and units methods to the api dir 2012-06-20 10:28:54 +02:00
ahocevar
dfc35282ff Fixing API docs 2012-06-20 09:59:19 +02:00
Éric Lemoine
a96b559ddd very first XYZ layer bits 2012-06-20 09:18:46 +02:00
Éric Lemoine
5f557e6c6c the TileSet constructor takes 4 args 2012-06-20 09:17:55 +02:00
Éric Lemoine
8d74113897 the Tile constructor now takes a url as the first arg 2012-06-20 09:17:55 +02:00
Éric Lemoine
84d594cacb Tile.test.js - remove test that sets a src on the image 2012-06-20 09:17:55 +02:00
ahocevar
fb8b1e878d Events.js ported, with tests stub. More tests to be added. 2012-06-20 01:09:21 +02:00
Tim Schaub
54b8ebacaf OS neutral dev tools. 2012-06-20 00:41:28 +02:00
Tim Schaub
b06a52888f Adding unreferenced bounds. 2012-06-20 00:11:06 +02:00
Marc Jansen
450f8f7b74 First state of a geom package. 2012-06-19 18:21:21 +02:00
Tim Schaub
712070c1f0 Location tests passing. 2012-06-19 18:06:00 +02:00
Tim Schaub
408413ec92 Projection cannot be null. 2012-06-19 17:41:17 +02:00
Mike Adair
6ed79a3d36 add layers and resolutions array 2012-06-19 11:17:55 -04:00
Mike Adair
28955dc0b1 Merge branch 'three' of https://github.com/tschaub/openlayers into three 2012-06-19 10:18:21 -04:00
Mike Adair
b0490ecdb6 initial set of tests running 2012-06-19 10:17:41 -04:00
Petr Pridal
8dde795baa Merge branch 'three' of https://github.com/tschaub/openlayers into three 2012-06-19 16:13:39 +02:00
Petr Pridal
fd14df352b JSDoc documentation generator with plovr by "make jsdoc" 2012-06-19 16:13:00 +02:00
Tim Schaub
d69d56aab2 Avoiding warnings. 2012-06-19 15:54:13 +02:00
Tim Schaub
6f3b47709a No projection warnings. 2012-06-19 15:43:50 +02:00
Mike Adair
efcecc4c5f map initialization 2012-06-19 09:37:42 -04:00
Tim Schaub
4588d794d8 Keep compiling. 2012-06-19 15:23:36 +02:00
Mike Adair
b25339549a Merge branch 'three' of https://github.com/tschaub/openlayers into three 2012-06-19 09:21:48 -04:00
Éric Lemoine
1c8abd38a6 add a basic TileSet class 2012-06-19 15:18:34 +02:00
Mike Adair
171c8522b3 intialization of Map again 2012-06-19 09:16:56 -04:00
Mike Adair
322cf702ed Merge branch 'three' of https://github.com/tschaub/openlayers into three 2012-06-19 09:04:25 -04:00
Mike Adair
d990be61af Merge branch 'three' of https://github.com/tschaub/openlayers into three
Conflicts:
	src/api/loc.js
	src/api/map.js
	src/ol/Map.js
2012-06-19 09:04:04 -04:00
Éric Lemoine
79af86bde5 minor doc string additions to ol.Tile 2012-06-19 15:01:57 +02:00
Éric Lemoine
ce20ba066c add an ol.Tile class 2012-06-19 14:52:25 +02:00
Tim Schaub
1043a53fe1 Use simple compilation. 2012-06-19 14:49:56 +02:00
Mike Adair
82f204f30c map get/set methods 2012-06-19 08:06:08 -04:00
Tom Payne
116c26422e Loc fixes. 2012-06-19 13:09:31 +02:00
Tom Payne
7358529c4e Map fixes. 2012-06-19 13:09:31 +02:00
Tom Payne
f435bb1874 Bounds fixes. 2012-06-19 13:00:24 +02:00
Mike Adair
818ca7016a interim map test updates 2012-06-19 06:53:59 -04:00
Tom Payne
94e6146b8a Remove dead code. 2012-06-19 12:44:06 +02:00
Tom Payne
7958e02bd0 Add map user projection getter and setter. 2012-06-19 12:43:54 +02:00
Tom Payne
ef83910c3d Make more Loc tests pass. 2012-06-19 12:33:59 +02:00
Tom Payne
95fe8762da Rename Location to Loc for consistency. 2012-06-19 12:01:22 +02:00
Tom Payne
da7449454e Pass bounds spec. 2012-06-19 11:56:48 +02:00
Tim Schaub
77c07a500e A passing test. 2012-06-19 11:14:53 +02:00
Marc Jansen
b1e26fab1d change indentation. 2012-06-19 10:56:01 +02:00
Marc Jansen
a6fa08550f change indentation. 2012-06-19 10:51:16 +02:00
Marc Jansen
c04ae35498 change indentation. 2012-06-19 10:49:44 +02:00
Tim Schaub
90f33c587a Debugged. 2012-06-19 10:39:42 +02:00
Tim Schaub
738561e417 Exporting the map. 2012-06-19 10:29:03 +02:00
Tim Schaub
8572ae35cf Phony task 2012-06-19 10:28:51 +02:00
Tim Schaub
01e22e098c Ignoring plovr. 2012-06-19 09:47:27 +02:00
Tim Schaub
56c6d69999 File shuffle. 2012-06-19 09:46:19 +02:00
Tim Schaub
bd6b52c2cd File shuffle. 2012-06-19 09:45:08 +02:00
Tim Schaub
f24b518f61 Small fixes. 2012-06-19 09:43:20 +02:00
Tim Schaub
e84a0473d5 Removing additional main.json. 2012-06-19 09:25:25 +02:00
Petr Pridal
0a354d3923 Merge branch 'three' of https://github.com/tschaub/openlayers into three 2012-06-19 09:21:30 +02:00
Tom Payne
d4a9b9859c Fix setters. 2012-06-19 09:21:04 +02:00
Petr Pridal
7e8c41b2ab Merge branch 'three' of https://github.com/tschaub/openlayers into three 2012-06-19 09:20:51 +02:00
Petr Pridal
7109bd3868 Plovr demo 2012-06-19 09:19:59 +02:00
Tom Payne
986f152e61 Remove broken code. 2012-06-19 09:18:56 +02:00
Tom Payne
613b90c7f3 Add broken code for testing. 2012-06-18 18:40:00 +02:00
Tim Schaub
b9d690044f Adding test spec. 2012-06-18 18:15:51 +02: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
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
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
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
É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
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
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
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
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
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
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
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
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
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
É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
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 221d7caf70 (commitcomment-1032985) 2012-03-02 09:40:58 +01:00
tschaub
9b3a78ed5e Fixing the build by adding missing var.
An undeclared variable snuck in with 930206fb57.  This breaks builds using closure compiler.  Another reason to set up a CI server and a builds@ list.
2012-03-01 17:00:26 -07:00
tschaub
5a355f3760 Attribution update. 2012-03-01 16:33:50 -07:00
Tim Schaub
485317567e Merge pull request #266 from tschaub/permalink
Making map construction work with permalink.
2012-03-01 15:11:10 -08:00
ahocevar
930206fb57 Merge pull request #247 from probins/kmlatts
KML: write attributes; add option for kvp attributes
2012-03-01 14:30:11 -08:00
tschaub
4e9701caa8 Making map construction work with permalink.
If a map is configured with a permalink control and a center, the permalink control tries to work with the map center before setCenter is called.  This sequence assumes that the map center will already be a LonLat.  This fails if the map is constructed with a coordinate array.  Safer move is to convert center to LonLat before controls are added.
2012-03-01 13:47:42 -07:00
tschaub
31219c90f5 Adding XYZ example using MapBox tiles. 2012-03-01 13:13:35 -07:00
Peter Robins
eb47d97774 KML: write attributes; add option for kvp attributes 2012-03-01 12:56:38 +00:00
Pierre GIRAUD
6d5544ca96 Merge pull request #264 from pgiraud/osm
Use the 3 available sub-domains for OSM by default
2012-03-01 03:00:07 -08:00
Pierre GIRAUD
45daaf5dd2 Use the 3 available sub-domains for OSM by default 2012-03-01 11:54:07 +01:00
Bart van den Eijnden
726b9dead8 Merge pull request #262 from bartvde/forloops
protect for in loops with hasOwnProperty (r=@elemoine,@marcjansen)
2012-03-01 01:09:19 -08:00
Tim Schaub
de68e00a58 Merge pull request #263 from jorix/always_requires
Avoid using the [first] section.  Specify dependencies in the lib.
2012-02-29 19:31:15 -08:00
Bart van den Eijnden
e3cc96dbfb protect for in loops with hasOwnProperty 2012-02-29 18:43:55 +01:00
Matt Priour
5c42b2f3ff Remove canvas renderer, as it is redundant with SVG and SVG is better supported and more robust across non-IE browsers 2012-02-29 10:13:57 -06:00
Xavier Mamano
fe33e29000 If using OpenLayers namespace must have at least one requirement. 2012-02-29 17:07:41 +01:00
Matt Priour
dd11c75625 Merge branch 'master' into light-build 2012-02-29 10:02:22 -06:00
Matt Priour
da1a79018a Build full, light & mobile minified & debug versions of OpenLayers during release & dev dir update process 2012-02-29 09:58:23 -06:00
ahocevar
d7a3ecac08 Merge pull request #259 from ahocevar/259
Don't overwrite params, and use params in Layer.ArcGISCache. r=@elemoine
2012-02-29 07:55:53 -08:00
ahocevar
fa30c1da5c Don't overwrite params, and use params in Layer.ArcGISCache 2012-02-29 16:52:31 +01:00
Bart van den Eijnden
85b997fa0e Merge pull request #258 from bartvde/textplacement
PointPlacement and LinePlacement are choices, so don't output both (r=@ahocevar)
2012-02-29 05:54:00 -08:00
Bart van den Eijnden
2421ed6da3 add comments to the test (suggestion by @ahocevar) 2012-02-29 14:53:20 +01:00
Bart van den Eijnden
0e1a30b3cd PointPlacement and LinePlacement are choices, so don't output both 2012-02-29 14:42:11 +01:00
Éric Lemoine
8273f153dc Merge pull request #223 from camptocamp/access_panelbutton
make it possible to create accessible panel buttons
2012-02-29 04:39:57 -08:00
Éric Lemoine
98ff5473a6 add tests for buttonclick.getPressedButton 2012-02-29 13:36:07 +01:00
Éric Lemoine
6a43fcaefc change buttonclick.getPressedButton depth value from 5 to 3, this allows buttons with grand children (2 levels) 2012-02-29 13:34:47 +01:00
ahocevar
8ea3b1bd3e Merge pull request #255 from ahocevar/255
LayerSwitcher broken when rendered to custom div. r=@elemoine
2012-02-29 04:25:18 -08:00
Éric Lemoine
3f99354d8c Merge pull request #257 from probins/opacity
Make layer opacity api property
2012-02-29 04:00:06 -08:00
Peter Robins
55c18076d3 Make layer opacity api property 2012-02-29 10:40:20 +00:00
Bart van den Eijnden
2955302650 Merge pull request #256 from bartvde/vendoroptions
make vendorOptions an object instead of an array (r=@ahocevar)
2012-02-29 02:11:41 -08:00
Bart van den Eijnden
b699afa57f make vendorOptions an object instead of an array, which makes it more convenient to prevent duplicate vendorOptions 2012-02-29 10:57:08 +01:00
ahocevar
557d7ab0d7 Fixing typo. 2012-02-29 10:49:40 +01:00
ahocevar
d0c782ca74 Making LayerSwitcher work again outside viewport. 2012-02-29 10:40:45 +01:00
ahocevar
b7eba35077 Notes on incorrect maxResolution of 156543.0339 and defaults coupled with projection 2012-02-29 08:11:14 +01:00
Matt Priour
cd2a6aaaaf Merge branch 'master' of https://github.com/openlayers/openlayers into light-build 2012-02-28 23:26:29 -06:00
Matt Priour
3667428692 Add LayerSwitcher and remove vector editing 2012-02-28 22:52:40 -06:00
Éric Lemoine
00909404ab [Event.buttonclick] make buttonclick work if target element is a child of the clicked button 2012-02-29 00:56:52 +01:00
Xavier Mamano
9e48825205 Preserve the title and the className if they are set in createControlMarkup. 2012-02-28 22:28:33 +01:00
Éric Lemoine
3b7585be24 avoid useless deref 2012-02-28 22:28:33 +01:00
Éric Lemoine
0f0e60c336 [examples] more docs in the accessible-panel example 2012-02-28 22:28:33 +01:00
Éric Lemoine
aedc96f030 [examples] add an accessible-panel example 2012-02-28 22:28:33 +01:00
Éric Lemoine
e551fc672c [Event.buttonclick] make buttonclick work on RETURN/SPACE keydown 2012-02-28 22:28:33 +01:00
Éric Lemoine
5539f6e958 [Control.Panel] place code creating the control markup in a separate function 2012-02-28 22:28:33 +01:00
tschaub
396b016220 Mask requestAnimationFrame so tiles load in FF. 2012-02-28 12:03:27 -07:00
Matt Priour
d0ccfacb66 Add GetFeature control & FramedCloud popups. Use OSM.js rather than XYZ.js 2012-02-28 11:51:35 -06:00
Éric Lemoine
cb71eccb34 Merge pull request #252 from probins/doc
Remove doc/walkthru.html
2012-02-28 09:43:03 -08:00
Matt Priour
62f62510c8 Initial light build config file 2012-02-28 10:52:49 -06:00
Frédéric Junod
e14347dbc3 Merge pull request #29 from fredj/map-original-options
Expose map original options. r=@elemoine
2012-02-28 07:07:31 -08:00
ahocevar
2e6fe7d330 Notes about wrapDateLine. 2012-02-28 15:07:03 +01:00
Éric Lemoine
3cc0b8f51c Merge pull request #253 from probins/readme
Fix broken link in readme
2012-02-28 05:03:17 -08:00
Peter Robins
f9b64d945a Fix broken link in readme 2012-02-28 12:52:53 +00:00
Tim Schaub
4d31a3ed3a Method for getting both feature id and data.
Having to call two methods to get complete feature information (id and data) is cumbersome.  The `getFeatureInfo` method returns an object with both feature id and data.
2012-02-28 05:37:28 -07:00
Bart van den Eijnden
afe2966385 Merge pull request #208 from bartvde/wfs11
implement readers for URL endpoints in WFS 1.1, this meant restructuring the WFS Capabilities format to use the new readers and writers structures (r=@ahocevar)
2012-02-28 04:32:59 -08:00
Marc Jansen
631f6b5d3d Merge pull request #218 from marcjansen/testsuite-fixes
Testsuite fixes
2012-02-28 04:32:36 -08:00
Bart van den Eijnden
dd97bed3b4 merge with trunk 2012-02-28 13:31:14 +01:00
Peter Robins
2f3f849597 Remove doc/walkthru.html 2012-02-28 12:14:43 +00:00
Éric Lemoine
cb27e9def4 Merge pull request #250 from camptocamp/access_clickexample
Accessible click control example
2012-02-28 03:15:43 -08:00
ahocevar
94e8fff9e6 Fixing test (see #249) 2012-02-28 12:05:13 +01:00
Éric Lemoine
43809ea330 Merge pull request #222 from camptocamp/access_keyboardcontrol
KeyboardDefaults control improvements
2012-02-28 03:02:19 -08:00
Arjen Kopinga
1c6d44e5d5 Moved symbol definitions to Renderer.js 2012-02-28 11:52:46 +01:00
Arkadiusz Grabka
8fcc3c79f8 Added translations for Polish language. 2012-02-28 10:57:17 +01:00
ahocevar
7c72b6dd95 Merge pull request #240 from ajkopinga. 2012-02-28 10:49:54 +01:00
Éric Lemoine
9c2255706c click-keyboard example renamed to accessible-click-control 2012-02-28 10:48:50 +01:00
Éric Lemoine
eb700d98e1 add an example for an accessible click control implementation 2012-02-28 10:46:49 +01:00
ahocevar
4ee28dc63e Simplifying logic that returns undefined when root is invisible. 2012-02-28 10:45:18 +01:00
Arjen Kopinga
d4a9f60c93 simplified unit test for hit detection on invisible canvas 2012-02-28 10:43:11 +01:00
unknown
f8189f2862 Added unit tests for hit detection on invisible canvas layer 2012-02-28 10:43:11 +01:00
Arjen Kopinga
bf834e6b8e being a good coder and adding braces around if statement body 2012-02-28 10:43:10 +01:00
Arjen Kopinga
4efa03eb59 Fix for being able to select a feature from an invisible layer that uses the Canvas renderer 2012-02-28 10:43:10 +01:00
fredj
f3c48d6963 Store the original map options into 'options' property 2012-02-28 10:07:59 +01:00
Éric Lemoine
acf6a8a97d indicate that String.camelize is deprecated in the 2.12 release notes, refs #64, no functional change 2012-02-28 09:53:41 +01:00
ahocevar
c55a8b554d Merge pull request #229 from ahocevar/post-blank
Using a blankImageUrl that works for IFrames in IE9. r=@elemoine.
2012-02-28 00:23:51 -08:00
Éric Lemoine
5444fbcfc8 make the Google Closure compiler happier, no functional change 2012-02-28 09:08:13 +01:00
ahocevar
c2b8f9cdb5 Merge pull request #64 from tmcw/no-camel
Removing camelize method.
2012-02-28 00:05:58 -08:00
Bart van den Eijnden
6258c89d8c Merge pull request #242 from bartvde/sld2
Add support for LabelPlacement of sld:TextSymbolizer (r=@ahocevar)
2012-02-28 00:00:01 -08:00
tschaub
19a11561e8 Correcting typo. 2012-02-27 17:21:35 -07:00
tschaub
0aa8705299 Test the demo utfgrid file (currently failing). 2012-02-27 16:48:33 -07:00
tschaub
fd595e6282 Clearer tile method names. 2012-02-27 16:47:11 -07:00
tschaub
89e8a872a5 Making the default UTFGrid resolution 2.
According to the latest [spec](https://github.com/mapbox/utfgrid-spec/blob/master/1.2/utfgrid.md): "By default, UTFGrid operates on a 2x2 grid."
2012-02-27 08:57:22 -07:00
Tim Schaub
551c582ab1 Layer and tile API update.
The tile now has responsibility for resolving feature ids and fetching feature data given x, y pixel offsets with getFeatureId and getFeatureData methods.  The layer has corresponding getFeatureId and getFeatureData methods that take a map location, lookup the appropriate tile, and delegate to the tile for the rest of the work.
2012-02-26 21:05:12 -07:00
Tim Schaub
fc03f57591 Simplify constructor by setting projection. 2012-02-26 19:23:22 -07:00
ahocevar
fa656e7ed6 Merge pull request #239 from ahocevar/3625
Removing imageOffset and using getImageSize. r=@elemoine
2012-02-26 09:25:29 -08:00
Éric Lemoine
3113aba7f1 Merge pull request #203 from probins/http
HTTP protocol: enable POST for update/delete
2012-02-26 01:16:49 -08:00
Tim Schaub
faeb691f3a Tests for UTFGrid tiles. 2012-02-25 23:07:31 -07:00
Tim Schaub
8c95a90052 The parseData method doesn't need to know of XHR. 2012-02-25 20:51:03 -07:00
Tim Schaub
12fa9b54ef Consistency with tile loading events.
Since loadstart is being fired here, it makes sense to fire loadend as well.  The isLoading flag also needs to be cleared.  Needs tests still.
2012-02-25 20:45:18 -07:00
Tim Schaub
c18f6a23be Use JSON format for parsing JSON.
To get IE7 support, the OpenLayers.Format.JSON parser should be used.  This leverages the native JSON.parse method where available.  It does add extra weight to UTFGrid builds.  However, as of this commit date, we lose large portions of US govt agencies when we exclude IE7.
2012-02-25 20:18:23 -07:00
Tim Schaub
e6f0aa08e5 Cleanup use of Script protocol.
I would think there would still be an error thrown here.  Will put together a test to determine for sure, but I'd think that the default GeoJSON parser used by the protocol would choke on the UTFGrid json.
2012-02-25 20:09:34 -07:00
Tim Schaub
73e6973ab5 Remove cargo culted image tile bits. 2012-02-25 20:03:40 -07:00
Tim Schaub
65233dd0bc Add dependency on UTFGrid tile. 2012-02-25 20:01:14 -07:00
Tim Schaub
6ffce8cfb6 Remove unused list item. 2012-02-25 20:00:46 -07:00
mperry
bd8e4b55ef Merge remote-tracking branch 'tschaub/utfgrid' into utfgrid 2012-02-25 17:58:51 -08:00
mperry
ede6da8e6f Merge remote-tracking branch 'upstream/master' into utfgrid 2012-02-25 17:51:56 -08:00
Tim Schaub
e1dffacdde Providing a method to get data from the layer.
I think it should be the job of the layer to retrieve data for a given location (instead of the control).  The first part of this change creates a `getData` method on the layer and updates the control to use this method.

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

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

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

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

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

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

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

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

Non-functional change (closes #3507)

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


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


git-svn-id: http://svn.openlayers.org/trunk/openlayers@12318 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-03 15:32:23 +00:00
Tim Schaub
663392b10e Despite our best efforts to comply, we have been told that this layer violates the Google Maps Terms of Service. Without rendering their full map interface, they have no way of controlling the user experience, dropping in ads, and the like. (closes #3481)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-01 19:07:37 +00:00
Bruno Binet
b339043a41 remove trailing space in @requires dependencies (no functionnal changes)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12291 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-31 07:31:05 +00:00
ahocevar
d75f3552cd unregister load and error handlers after blank image is loaded. r=sbrunner,pgiraud (closes #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12286 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-30 18:37:11 +00:00
Frédéric Junod
228fab098d fix jsdoc tag, makes Closure Compiler happy. no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12278 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-25 08:30:11 +00:00
Frédéric Junod
497f7c9105 fixing error in comments. Non-functional change (see #3163)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12272 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-24 14:23:59 +00:00
bartvde
a32b8bab62 update test function docs to match what the test function now does, non-functional change (see #3474)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12270 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-24 06:20:45 +00:00
bartvde
50704395bb make sure the for loop for lods is not messed up by frameworks changing the Array.prototype, p=dzwarg, r=me (closes #3474)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-24 06:18:55 +00:00
bartvde
bb41c99524 fix closure build on Windows, p=jorix, r=me, thanks to mprins and scaddenp, I've verified that the build still works on OSX (closes #3158)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12268 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-22 10:10:46 +00:00
Frédéric Junod
a31b8e444f Simplify Layer.HTTPRequest initialize function. r=erilem (pullup #3470)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12267 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-22 06:56:28 +00:00
Frédéric Junod
6a66871492 fix api doc typo, no functionnal changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12261 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 14:16:44 +00:00
Frédéric Junod
d4a0128ba8 update the arcgiscache_jsonp example to use OpenLayers.Protocol.Script instead of the JSONP from jquery
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12260 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 10:15:44 +00:00
ahocevar
02553ae595 Using dereferenced variable. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12259 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 09:54:42 +00:00
ahocevar
c78385aa49 fixing a typo (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12258 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 09:41:14 +00:00
Frédéric Junod
6ba6527ef7 fix jsdoc tag, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12257 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-18 06:30:39 +00:00
bartvde
85455619ec filter on snapping target does not work for all filter types, r=ahocevar (closes #3468)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-17 13:47:08 +00:00
Tim Schaub
74af61d898 Updating the date tests to work against Firefox 6 (and any other implementations that throw RangeError). closes #3461
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12254 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-17 02:29:09 +00:00
Tim Schaub
c517de52f5 Making freehand drawing work on touch devices. Thanks jorix for the excellent patch. r=me (closes #3456)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-17 02:13:06 +00:00
Tim Schaub
98eabd4d89 Adding missing requires (see #3467).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-17 01:07:59 +00:00
ahocevar
de1d2cea92 avoid empty image placeholder in webkit browsers (and maybe an extra reflow) by setting initial display to 'none' as well. I take erilem's commit comment as still valid for this follow-up commit. (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-16 18:42:58 +00:00
Tim Schaub
541b3dc7ae Changing the named callback to avoid having the returned script call a function. This allows the protocol to be used with servers that sanitize callback identifiers for security. Great patch from vmische. r=me (closes 3417).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12250 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-15 18:27:55 +00:00
ahocevar
0ebec29df1 Fixing tests after r12247 - img.src is now only available after a delay, because it is set in the load handler after setting a blank image as src. There is no need to check for img.src in layer tests, because this is asserted by Tile.Image tests (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12249 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-15 16:30:43 +00:00
bartvde
c587865bb1 deleting a vertex does not set feature.modified, this is a regression since in OL 2.10 a WFS transaction would include all fields, but 2.11 is smarter in the sense that it filters out fields that have not changed in the Transaction XML, which in this case, i.e. deleting a vertex, results in no geometry in the WFS transaction, r=tschaub (pullup #3463)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12248 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-15 16:26:34 +00:00
ahocevar
652f2729cd a bit more code, but this finally fixed the loading image placeholder issue in FF (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12247 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-14 15:56:33 +00:00
ahocevar
fdd5e8cb06 reverting again - this time I broke things in Opera (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12246 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-14 15:12:59 +00:00
ahocevar
eabde4f74f Fixing the issue with loading image placeholders in FF >= 4 that was discussed during the review. I take erilem's final comment as permission to commit this without an additional review (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12245 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-14 14:33:00 +00:00
ahocevar
fd8003464e reverting r12243, because it breaks the loadend event (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12244 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-13 09:17:24 +00:00
ahocevar
0daaa12059 using blank image to avoid the "Loading Image" frames on Firefox that were discussed during the review (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12243 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-13 08:15:36 +00:00
ahocevar
23c9092201 Tile.Image improvements and partial rewrite. Thanks erilem for the excellent collaboration during the review phase. p=me,erilem r=erilem (closes #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12241 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-13 00:59:01 +00:00
ahocevar
a8d3d6a5b4 opacity fixes required after reverting r12185. r=mosesonline (closes #3441)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12240 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-12 21:17:22 +00:00
Éric Lemoine
fe5b8a7a78 a grid layer may be moved while its grid hasn't been initialized yet, r=ahocevar (references #3458)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-11 13:21:04 +00:00
Éric Lemoine
8647445636 Grid.html tests may fail because http://octo.metacarta.com/cgi-bin/mapserv does not respond, test only change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12235 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-11 11:51:57 +00:00
ahocevar
94c1c7906c reverting r12228 and r12185 (closes #3431)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:35:27 +00:00
ahocevar
cc5818d4c7 reverting r12185 (closes #3431)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:29:31 +00:00
ahocevar
fecc4d81b0 reverting r12228
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:28:47 +00:00
ahocevar
b0e2a0cc56 IE8 specific fix for opacity. r=erilem (closes #3431)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:04:53 +00:00
ahocevar
92546caa9e making 1 the default for layer opacity. p=mosesonline,me r=me (closes #3441)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12227 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-09 17:33:37 +00:00
crschmidt
a6b2537074 Update popup image to fix slight sizing issue (See #3413); thx jorix
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12219 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-08 13:57:44 +00:00
ahocevar
850a57182d making reprojection work for all kinds of geometries. Thanks crschmidt for the tests. r=crschmidt (closes #3418)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12218 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-08 13:51:56 +00:00
crschmidt
533f8625d9 Thanks to a patch from greid, fix case where "" is passed into getParameters,
which would previously have weird behavior. (Pullup #3408)


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

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

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

r=ahocevar (closes #3364)



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


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


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

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

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

(Closes #3111) r=tschaub


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


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


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


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


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


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


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


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


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


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


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


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


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


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



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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

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


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


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


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


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


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


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


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


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

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

r = me (closes #2266)



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


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

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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



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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

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

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



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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

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

(Closes #1749)


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


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


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


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

r=me, (Closes #1737) 



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


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


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


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


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


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


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


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

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7970 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-06 16:09:13 +00:00
euzuro
f935c599d1 Added a control for drawing geometries and returning basic metrics (length / area). Patch by tschaub, review by elemoine. (Closes #1241)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7965 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-05 15:07:59 +00:00
euzuro
c7b8a5bce6 Sketch handler updates. Patch by tschaub, review elemoine (Closes #1698)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7964 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-05 15:06:04 +00:00
Frédéric Junod
629f370b75 don't redeclare the format property in Protocol.HTTP. r=elemoine (Closes #1721)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7960 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-05 07:34:56 +00:00
Éric Lemoine
e6d51fcf49 add "refresh" event to Layer.Vector, r=tschaub (closes #1695)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7959 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-05 07:05:11 +00:00
Éric Lemoine
6d74b489bb code committed in [7952] (ticket #1719) is missing a key/value pair in Lang/en.js, my bad: I had in my working directory but forgot to include it in the patch
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7958 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-05 06:23:31 +00:00
Tim Schaub
656a829f82 Allowing for geometries whose bounds cannot be intersected. Thanks for the quick review Andreas. r=ahocevar (closes #1720)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7957 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 23:12:09 +00:00
euzuro
4ae2e45083 Fixing example to only do the conditional inclusion on ie6 and below and adding some explanatory comments in the example file and also in the actual controls themselves. No functional change to library (only to example file)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7956 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 22:05:05 +00:00
Tim Schaub
c066796698 Adding support to the gml parser for serializing OpenLayers.Bounds as gml:Box. This gives the filter format (and the sld format) the ability to write spatial filters (that have bounds as a value). r=me (closes #1543)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7955 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 21:44:52 +00:00
ahocevar
d046680c65 the renderer also needs a nodeTypeCompare method
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7954 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 21:12:09 +00:00
ahocevar
bbf739319c non-functional change: added missing stub method nodeTypeCompare
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7953 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 21:11:10 +00:00
Tim Schaub
89cc9f157f Adding OpenLayers.Filter.Spatial. Thanks to bartvde for the original patch. Thanks elemoine for adding the evaluate method and test. I'm putting this in so we can move on some other tickets. r=me (closes #1719)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7952 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 20:52:05 +00:00
Tim Schaub
c83403fa67 Space only, nothing to see here.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7951 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 20:44:10 +00:00
euzuro
5084ea6a91 Add new ZoomPanel and PanPanel, a step towards a more easily customizable look for OpenLayers. Work on this ticket was done by a slew of contributors, and reviews as well. Thanks especially to tschaub for the ie6 trick and concomittant non-alpha images. (Closes #1400).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7950 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 19:21:59 +00:00
crschmidt
d2ac6cacfd Add a KaMapCache Layer class. Similar to the Layer.TileCache class, this layer
allows access to a web-accessible pre-cached Ka-Map Layer. Patch from 
Pedro Simonetti (CLA on file). r=me, (Closes #1518)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7949 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 19:17:47 +00:00
euzuro
d19ec0da99 fix a somewhat broken FixedZoomLevels.js functionality -- the 'maxZoomLevels' property if set on a layer was not getting processed correctly. This patch fixes that issue, as well as adding a cole-slaw-sized blerb of comments explaining the rules of precedence wrt resolution setting for 3rd party layers (those who subclass FixedZoomLevels). Thanks to tschaub for poking me to clarify this previously messy territory, and for cr5 for kindly taking the time to review my patch. (Closes #1182)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 18:35:40 +00:00
euzuro
19bffb0092 Give VE its missing zoom-level (resolution). Thanks to TIM for finding this and pointing it out and thanks to cr5 for the quick review. (Closes #1181)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7947 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 16:57:56 +00:00
ahocevar
4255028c6a Bringing back the pre-r7652 behavior that allows changing the node type for features that have already been rendered. This is important when re-rendering a feature with a new style, e.g. when switching from externalGraphic to graphicName point symbolizers. r=elemoine (closes #1662)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7944 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 08:31:05 +00:00
euzuro
819dc62d09 fixing regression committed in r5280. applyDefaults() again allows for an undefined value as the 'from' parameter. thanks tim for report and review. (Closes #1716)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7943 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 02:19:41 +00:00
euzuro
4783dd5a45 add warning comment to wfs-t example. thanks for suggestion, o anonymous user. (Closes #1311)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7942 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 01:18:27 +00:00
Tim Schaub
d9e161f4d0 Allow layer.destroy to be called twice without failing for the vector layer. r=elemoine (closes #1697)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7941 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-03 19:16:29 +00:00
Tim Schaub
6277216053 Adding HTTP protocol. Give a vector layer the HTTP protocol to create, read, update, and delete features via HTTP. This can be subclassed by protocols that extend HTTP. Thanks for the collaboration (and great tests) on this elemoine - good working with you guys. r=elemoine,me (closes #1652)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7940 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-03 19:10:47 +00:00
ahocevar
c12cb25aee New vector rendering for better performance and less renderer specific limitations. r=elemoine (closes #1675, closes #1656, closes #1631, closes #1431, closes #1709)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7930 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-02 17:17:52 +00:00
Paul Spencer
ede7bef13c Adjust how the parameters are calculated for the GETVISIBLEMAPEXTENT call for overlays so that existing parameters are safely overwritten with the required parameters for this call. r=me (Closes #1647)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7928 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-02 15:46:35 +00:00
Paul Spencer
f8d3e41105 Tiled MapGuide layers require different base assumptions for DPI and inches per unit in order to report the correct coordinates. The example is updated with a clear explanation of how to make these changes per-application. r=me (Closes #1511)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7927 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-02 15:43:57 +00:00
ahocevar
9d1bcce4e5 Let's take care that background graphic nodes of features with backgroundGraphic style get removed properly when the style is changed to display: "none".
This solves the backgroundGraphic issue of #1709, the remaining issue with externalGraphic will be fixed by #1675.

Thanks jstern81 for the patch, and I am truly impressed by jstern81 finding the right spot in the codebase that needs to be fixed -- as an OpenLayers newcomer.

Tests added by myself. r=me. (references #1709)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7919 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-01 21:46:26 +00:00
Frédéric Junod
274cd26c5a Don't check this.locked twince. r=euzuro (Closes #1712)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7914 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-01 06:02:54 +00:00
euzuro
be8c90012e Fixing the sizing issues with the popups -- all this time, the 'size' parameter we were passing in to init a popup has been the *content* size, not the actual size of the popup. This confusion has stemmed from the fact that we weren't ever differentiating between the two. Now we are. Rename that parameter 'contentSize' in all the constructors. NOTE that this does not *break* API, it is merely renaming a variable. As such, no one should see any difference... other than the fact that autosized popups now stay their correct size when opened and closed repeatedly. Big thanks to jpulles for finding this bug and filing an accurate, informative, and detailed bug report. Thanks to ahocevar and crschmidt for reviewing. (Closes #1586)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7897 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-29 16:28:20 +00:00
ahocevar
d5bd6d59f2 use empty moveTo function to prevent tiles from actually being requested. (closes #1701)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7894 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-29 10:11:54 +00:00
ahocevar
8f1b84a8e1 To test real-life conditions, we cannot just use a bogus function to deactivate the control. (closes #1710)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7893 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-29 09:27:29 +00:00
euzuro
07ac8f322a bubbling up the 'closest' parameter to the higher-level map object api calls zoomToScale() and zoomToExtent(). Includes thorough tests. r=cr5 (Closes #1250)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7889 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-29 06:08:32 +00:00
euzuro
ec2b9b5289 improving the biceps of getStyle(). Now if you pass it a null object, it will not die. r=cr5 (Closes #1051)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7888 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-29 00:46:45 +00:00
euzuro
27526e6a0c Adding registerImageListener() function that sits around and waits until images load in our popups... and when they do, it calls updateSize() so that the popup is sized correctly. thanks for the sharp review cr5 (Closes #1469)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7887 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-28 22:05:46 +00:00
euzuro
3007b23621 Bubble out the code that handles the re-sizing of the popup into an APIMethod: updateSize(). Other change is that now instead of using the 'contentHTML' string property to autosize, we will now use the actual contentDiv's 'innerHTML' property. This is possible because in the setContentHTML() function, we switch around the order and set the conentDiv.innerHTML *before* calling updateSize(). Seemingly minor, this change actually does wonders towards distancing us from the horrendous idea that the 'contentHTML' property was in the first place. Now, if users go in and fudge with the contentDiv DOMElement directly, they can still benefit from the auto-sizing. In fact, 'contentHTML' can be totally ignored altogether. joy. All tests pass, including an eyeballing of the acceptance test examples/popupMatrix.html in ff2 and ie7. Mil gracias to cr5 for the speedy review (Closes #1708)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7886 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-28 20:04:17 +00:00
crschmidt
2d286b7ccc Clear bounds of geometries when reprojecting. Patch wwork by myself, tschaub,
ahocevar. r=ahocevar. (Closes #1658)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7885 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-28 18:41:00 +00:00
crschmidt
1b71180f14 fix reproj example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7884 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-28 16:41:59 +00:00
Éric Lemoine
3dd6bdce66 bring changes to protocol base class, r=fredj (closes #1677)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7883 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-28 13:33:11 +00:00
Frédéric Junod
d77bf63360 add a requires on parent class, ND comments fixes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7882 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-28 12:27:39 +00:00
ahocevar
59826983c6 made permalink control more configurable by adding an argParserClass property and separating the logic for generating the key-value pairs from the div and link generation. Original patch by tcoulter. r=euzuro,me (closes #1489)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7881 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-27 19:33:49 +00:00
ahocevar
2a521ffcb2 Made the Feature handler more robust to things that are related to changing layer order on the map, by registering an event handler that will bring the handler's layer back to the top of the layer stack in the DOM. Contains a manual test. r=elemoine (closes #1628)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7879 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-27 14:02:21 +00:00
Éric Lemoine
8e0876488b Add a moveend event to layer. By registering to that event (instead of that at
the map level) strategies need to check that the layer is in range and active
before fetching new features. r=ahocevar (closes #1678)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7874 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-27 06:27:22 +00:00
crschmidt
72bf882b62 Controls should (by definition within OL) stop downs (if they care) and allow
ups to propogate. The default behavior of the Feature handler broke this rule,
and as a result, some aspects of ragging a box control failed when letting
go over a feature. This corrects the behavior. r=ahocevar. (Closes #1293) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7873 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 23:35:31 +00:00
euzuro
17160f49e0 Add support in OL for right-click capturing, including dbl-right-clicks (for zooming out in navigation control). Thanks to David Martin for this nice patch and the great 8 foot austrian for his review (Closes #1359)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7872 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 23:27:04 +00:00
crschmidt
091d3cfbeb GeoRSS fails on large line/poly nodes in FF. Use concatChildNodes to get all
the text into one string before parsing. Includes manual test. r=ahocevar. 
(Closes #1614) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7871 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 23:24:44 +00:00
crschmidt
319c8f87ef Exceptions in Firefox are slow. (The costs of the lovely exception.stack,
most likely.) Don't depend on exceptions for parsing XML, then: instead, use
an if/else. 3x speed up of WMC parsing in FF. r=ahocevar (Closes #1642) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7870 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 23:11:03 +00:00
ahocevar
75b129191b rule.value2regex does now unescape double escape. Patch by tcoulter. r=me (closes #1453)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7866 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 18:03:41 +00:00
euzuro
0eadc40e27 Keep the 'loadstart' event from firing twice on the Layer.Text. r=elemoine, cr5 (Closes #1696)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7865 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 17:17:19 +00:00
ahocevar
00192b64ab Added support for different projections for main map and overview map. Patch by bartvde. Modifications to the original patch:
* caclulation of resolution factor no longer depends on proj4js,
 * created a member variable for the resolution factor and moved the calculation of the resolution factor to createMap(),
 * created acceptance test (tests/manual/overviewmap-projection.html).
r=me (closes #1620)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7864 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 14:54:48 +00:00
crschmidt
acb003453f Update calculateInRange: Only turn layers off if they have some scale-related
properties set directly in their creation options. By default, layers will 
be "always on", with an overridable "alwaysInRange" parameter.

To maintain the old behavior, set:
   OpenLayers.Layer.prototype.alwaysInRange = false;

r=euzuro
(Closes #987)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7863 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 14:27:36 +00:00
crschmidt
68f70f750b Add support for a Canvas renderer. This renderer will allow for some new
capabilties in OpenLayers Vector drawing, including: 
 * Vector support for iPhone, Safari 2.x series browsers
 * Improved performance of dragging the map with a large number of 
   geometries.

The Vector layer default renderer order is now SVG, VML, Canvas, so browsers
with Canvas support and no SVG or VML will be able to draw vectors.

The Canvas layer has a number of limitations: getFeatureFromEvent is much
slower than the other types of layer, and any change to any feature requires a
redraw of the entire canvas. Because Canvas is typically a pretty fast 
drawing implementation, the latter is less problematic than it might otherwise
be.

r=pagameba,fred, with glances from a couple other people.
(Closes #1512)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7862 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 14:22:59 +00:00
ahocevar
4fcd61f276 Clear point bounds after changing coordinates. Prevents strange behaviour of IE when doing getBounds(). r=elemoine (closes #1690)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7859 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 07:39:21 +00:00
euzuro
afecf46652 Small patch to allow an 'id' property to be custom-set on controls -- without being overrided by the default random id generator. Thanks to Stephen I for the bug report. r=elemoine (Closes #1687)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7829 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-22 13:23:16 +00:00
ahocevar
52a5173326 forgot to commit modified tests (references #1679)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7783 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-18 13:20:01 +00:00
ahocevar
5e9965a922 forgot to commit modified examples (references #1679)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7782 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-18 12:57:32 +00:00
ahocevar
8f45e0572e "disable z-indexing of elements in the Elements renderer by default". r=elemoine (closes #1679)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7781 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-18 12:53:06 +00:00
ahocevar
73eb0d5745 use t.eq instead of t.ok when comparing values
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7771 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-16 10:52:01 +00:00
Frédéric Junod
7a462b74ee Give the map a size to pass the tests on IE 7
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7714 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-08 14:39:17 +00:00
Frédéric Junod
f086ba17b4 keep the cursor style to 'move' if the cursor is above a feature. r=elemoine (closes #1673)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7713 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-08 13:34:59 +00:00
Éric Lemoine
3791712a10 maxZIndex becomes NULL when the last feature is removed, p=pvalsecc, r=me (closes #1670)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7712 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-08 12:23:59 +00:00
Frédéric Junod
0493525660 remove local scope variables from global namespace. (closes #1674)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7711 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-08 10:32:49 +00:00
Frédéric Junod
e0ac42ac5c Update copyright year, wrap long line, generate api doc, fix mailing list url. (closes #1618)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7710 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-08 07:09:14 +00:00
Éric Lemoine
d7ab2c0f60 Layer.Vector.removeMap must deactivate the strategies, r=fredj (closes #1649)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7708 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-05 13:59:12 +00:00
Frédéric Junod
39201a0427 Adding OpenLayers.Strategy.Fixed: A simple strategy that requests features once and never requests new data. r=elemoine, (Closes #1664)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7707 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-05 11:55:24 +00:00
Frédéric Junod
4be8c169d4 test Strategy.activate and Strategy.deactivate
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-05 11:44:36 +00:00
Frédéric Junod
18af32a5ac Remove JSDOC from CLASS_NAME property, (see #853)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7704 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-05 05:54:47 +00:00
Frédéric Junod
14119a6811 Fix a typo in Layer.Vector.destroy and add unit tests for protocol and strategies construct/destroy, r=crschmidt (closes #1659)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7703 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-05 05:39:11 +00:00
Frédéric Junod
a3ffb5734c OpenLayers.Strategy destroy() nullify options property. r=elemoine (closes #1657)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7690 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-04 12:25:47 +00:00
crschmidt
397de6fc6a "Format.GeoJSON does not parse features with null geometries", r=elemoine
(Closes #1145)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7689 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-04 10:38:01 +00:00
Éric Lemoine
21191ad0b9 if scales is set on the map, you cannot use minScale and maxScale on the layer, p=pgiraud, r=me,euzuro (closes #1199)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7688 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-04 09:20:23 +00:00
Frédéric Junod
9e83c720d9 Test if OpenLayers.Protocol::destroy() nullify options property
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7687 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-04 09:11:19 +00:00
crschmidt
91f3c5e652 Improve getRenderedDimensions to take into account a CSS class. Refactor some
popup code to take advantage of this, to provide a better hint to the
getRenderedDimensions call as to what is going on. Patch from sbenthall, r=me,
includes a manual acceptance test (only because the testing framework makes
these kinds of things hard). Manually confirmed to work with the sundials.html
example, tested with that and manual test in IE6, IE7, FF2-Win FF3-Mac FF2-Mac
Safari-Mac Opera-Win, and in all browsers it worked. (Hooray!) Nice one,
sbenthall. (Closes #1500)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7684 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-03 18:47:52 +00:00
crschmidt
cdd4c864ea Flipped a return value here; this should be 'true', not 'false'. (See #1655)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7683 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-03 12:24:18 +00:00
crschmidt
693e6d07e3 Fix for Feature handler uses getFeatureFromEvent on mousemove even without
hover callbacks; r=ahocevar (Closes #1655) 

This means that On the SelectFeature control hover can no longer be set on the
SelectFeature control after the control has been initialized: must be passed at
initialize time. Example has been updated. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7682 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-03 02:06:31 +00:00
ahocevar
f0e9c1c6a5 removed wms layer from externalGraphic test. Makes test faster.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7681 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-03 01:30:29 +00:00
ahocevar
8bd5eee49f simplified vector-features-performance test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7680 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-03 00:30:30 +00:00
crschmidt
d437dec91c Since the Sundials is our primary KML + bubbles example, put in some naive
Javascript <script> injection protection, so that people are at least aware
of the issue. This will search for <script and if it exists, escape the content
so that it doesn't execute. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7679 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-02 21:56:25 +00:00
crschmidt
f1882f0efa "panTo should use tween if new center is in the current bounds + a ratio".
Add a bounds.scale method (takes a ratio and an optional center) and 
call it from the panTo to give a ratio we can pan inside of. Patch by
sbenthall, r=me,elemoine (Closes #1341) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7678 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-02 01:56:36 +00:00
crschmidt
61225ed98f Fixing an obvious bug in Ajax.js: when we upgraded Prototype, we missed
a pair -> extras, caught by 'falstaff'. (Closes #1559) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7677 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-02 01:44:26 +00:00
crschmidt
711d909a14 Update VE script location to new version.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7676 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 22:24:44 +00:00
crschmidt
64fc4fcb1b Patch from funky_c to move all alert()s in the library to a single
OpenLayers.Console.userError function. This allows for easy overriding of this
function for people who need to report errors at an application level (or
hiding these errors entirely), with the same default behavior as previous
releases. Patch from funky_c, r=me, (Closes #1651)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7675 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 22:21:50 +00:00
crschmidt
ba561a9fb5 Improve docs; explicitly mention that this transform is *in place*
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7674 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 22:09:20 +00:00
ahocevar
9588f25ce5 Stroke style of features can now be specified. Both SVG's
stroke-dasharray and VML's dashstyle properties are allowed in the new 
strokeDashstyle symbolizer property. For VML, which does not support 
custom dash styles, one of the 5 matching pre-defined dash styles will 
be guessed. The patch also adds support for the stroke-dasharray 
property in SLD. r=crschmidt (closes #1126)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7673 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 21:56:17 +00:00
ahocevar
7148b10123 do not ignore style.rotation if set to 0 any more. r=crschmidt (closes #1654)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7672 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 21:49:44 +00:00
ahocevar
197043d249 fixed event handling and rendering of graphicName symbols for Safari and Opera. r=crschmidt (closes #1653)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7671 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 21:35:35 +00:00
ahocevar
eddfa62c1f Use getAttributeNS instead of getAttribute. Non-functional change. (references #1650)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7670 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 21:12:56 +00:00
ahocevar
a59e7f0f4e fixed rendering but in FF3 when resizing graphicName symbols.
r=crschmidt (fixes #1650)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7669 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 18:43:31 +00:00
crschmidt
2b8cc7e0fd "WMC: queryable seems implemented but does not actually work", patch from
Bart, tests by me, r=me, (Closes #1447)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7668 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 18:30:55 +00:00
Paul Spencer
7f38f22d8f Refactor backBuffer tile code out of generic Tile base class into Tile.Image to make it nicer when subclassing Tile for other needs. (Closes #1645) r=elemoine.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7667 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 18:25:28 +00:00
crschmidt
e7ebdc8aa0 Non unique HTMLElement in Control, fix put together by sbenthall.
Tests pass, etc. (Closes #1396) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7666 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 18:21:56 +00:00
crschmidt
76170bf821 making the test div smaller so I don't have to scroll two things to run a
specific test. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7665 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 18:15:30 +00:00
crschmidt
232b635b12 replace all spaces with '', so that it matches in SVG + FFox
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7664 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 18:12:09 +00:00
euzuro
6f73b412c2 Get our VirtualEarth layer working again with the latest (6.1) version. Backwards compatible with earlier versions thanks to soft insistence of cr5. Thanks to funkyc for the co-sleuthing. r=cr5 (Closes #1540)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7660 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 15:34:50 +00:00
euzuro
558cd57e41 backing out patch for r7647 as it breaks framedcloud popups. (See #1586)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7656 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 05:06:30 +00:00
Paul Spencer
48e8a981d1 typo in comment.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7655 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 03:03:25 +00:00
Tim Schaub
f3283e9212 Adding gml specific attributes to feature in gml parsing. p=sbenthall r=me (closes #1328)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7654 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 01:30:39 +00:00
Tim Schaub
714b1d7363 Unrequire that which does not exist.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7653 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 00:35:02 +00:00
euzuro
8b98f5acc3 ordering <exclamation point/>. you can now gracefully z-order your vectors... and you can even 'yOrder' them and add background images, making for a nice 3dish look. be sure to check out the two new example html's: marker-shadow.html and ordering.html. Big thanks to tcoulter (funkyc) for a prolonged effort with this patch. It has come a long way and now what a beautiful finish. (Closes #1357)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7652 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 00:17:59 +00:00
Tim Schaub
d4a62c630a Adding a filter format for version 1.0.0 filter encoding. The sld parser extends itself to use readers and writers from the filter parser. r=me (closes #1605)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7651 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 23:34:19 +00:00
Tim Schaub
360d7412f0 Adding strategy and protocol base classes for better vector behavior. This just sets the common API for strategy and protocol. In general, a vector layer can have many strategies. A setLayer method gets called on each of these layers. When a layer is added to a map, any strategies on that layer get activated. When the layer is destroyed, any strategies get destroyed (this could be changed to deactivate for symmetry). A vector layer may also have a protocol. A protocol is typically constructed with a format. The layer doesn't need to know about the format. The protocol doesn't need to know about the layer. Strategies coordinate feature management for a layer. Specific strategies and protocols to follow. r=crschmidt (closes #1646)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7650 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 21:27:35 +00:00
ahocevar
5191dac459 Take css borders into account when drawing the box. This has to be done for every browser, except IE in quirks mode. r=crschmidt (closes 1593)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7649 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 21:21:10 +00:00
crschmidt
d3151ccb40 Updated Control.KeyboardDefaults tests, but not the Handler.Keyboard tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7648 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 20:49:59 +00:00
euzuro
c953579eb9 Fix for non auto-size popups that were progressively expanding each time they were opened. a little investigation showed us that there was some unfortunate ambiguity with the 'size' property, which was alternatively being used as 'size' and 'contentSize'. cheers to seb for an elegant solution r=cr5,me (Closes #1586)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7647 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 20:40:00 +00:00
Paul Spencer
a2905538d8 add anonymous username to url to prevent basic auth challenge when running tests. (Closes #1460) Update by madair, r=me
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7646 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 18:47:29 +00:00
ahocevar
19ac2bec2d added semicolon to fix single file build
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7645 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 17:47:27 +00:00
crschmidt
09b4073636 * Fixes to the Keyboard Handler to make it work better --
* drop keypress event (not used, registers as keydown in IE< which results
      in double events) 
    * return evt instead of evt.keyCode || evt.charCode, so apps can do
      whatever they like best
 * adjust ModifyFeature to new API
 * Adjust KeyboardDefaults to new API, and include a new set of keyCodes
    in switch statement to catch more cases
 * Include keyboard defaults test in list-tests.

Patch from tcoulter, work from Pedro Simonetti (See #1108), Paul Spencer,
myself. r=pagameba,me (Closes #1292)   


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7644 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 17:45:16 +00:00
ahocevar
3dcc30a24c added new graphicName symbolizer property, which allows to render well-known graphic symbols named "square", "cross", "x" and "triangle", in addition to the existing "circle". Thanks Tim for the tweaks and the example. r=tschaub,elemoine (closes #1398)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7634 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 17:02:10 +00:00
Tim Schaub
9bdd7bc77a Alphabetize test list.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7632 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 16:21:00 +00:00
crschmidt
03c7e5f742 Add simplified chinese translation from avlee. (Closes #1643)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7629 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 15:11:32 +00:00
Tim Schaub
66a4c6fb0e Caching array length instead of accessing it with each iteration. r=crschmidt (closes #1636)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7627 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 04:44:25 +00:00
crschmidt
89b10da8db Fix for WMC does not read/write metadataURLs.
This matches the style of other similar properties in the code, and has a
negligable (<5%) impact on parsing speed in Firefox/Safari. patch from
bartvde, (Closes #1452) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7626 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 00:00:27 +00:00
crschmidt
2d1e406e20 add a geometry intersection speed test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7625 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 23:53:10 +00:00
crschmidt
0372a110f8 make link look clickable
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7624 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 23:08:41 +00:00
crschmidt
504e952081 Adding a WMC speed test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7623 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 23:08:09 +00:00
euzuro
11f5cdd634 oops. forgot to reenable this test after some debugging. good thing i went tab hunting. (no functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7622 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:51:47 +00:00
euzuro
e5c79b378d last bit of tabs. sorry this was so clunky, in the middle of another patch. (no functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7621 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:49:21 +00:00
euzuro
3a5a649984 yet more tabs. no functional changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7620 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:47:00 +00:00
euzuro
c0d29035f4 more tabs. ech. (no functional changes)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7619 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:41:21 +00:00
euzuro
c3798b198c tab. (no functional difference)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7618 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:37:47 +00:00
euzuro
d28f7450b4 tabbing, semicolon
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7617 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:35:42 +00:00
Tim Schaub
6897c8ed4d Adding a beforefeatureselected event to the vector layer events. If a listener returns false, the feature is not selected. The modify feature control now listens for beforefeatureselected and triggers beforefeaturemodified. If a listener returns false, feature modification never begins. r=elemione,ahocevar (closes #1427)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7616 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:03:40 +00:00
crschmidt
61c528f3af Change getMousePosition to only be called automatically *if* the 'includeXY'
flag on the Events object is set to true. This ends up meaning that we save a
lot of unneccesary getMousePosition calls because (for example) the layer
doesn't need to include the .xy property. In addition, we add in speed
improvements via caching to the getMousePosition, courtesy the work from
pgiraud (which was worked on further by tcoulter) -- this results in
significantly improved getMousePosition performance improvements in 'real life'
situations that are more like the cases that people use OpenLayers, with a
higher number of containing divs (and also clearly demonstrate a gain in
performance even in the simple case.)

The end result is: 
 * In typical map movement over the map, (n / n+1) fewer calls to
   getMousePosition, where n is the number of active layers when dragging over
   the map.
 * In the simple case, 40% faster getMousePosition performance -- and in 
   more complex cases, significantly more performance improvements.

To drop the former improvement, which may affect some applications (as
described in the includeXY documentation) simply set:

  OpenLayers.Events.prototype.includeXY = true;

This will restore the 'every element has an xy property always' behavior
that was the case beore this patch. 

r=me,tschaub, work by pgiraud related to (See #1509), and (Closes #1459)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7615 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 21:23:19 +00:00
Éric Lemoine
c2c23cb3f3 modify feature control must use silent:true when removing/destroying vertices, p=me, r=crschmidt (closes #1562)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 20:26:13 +00:00
euzuro
eb417ff61c adding types to properties from the mousing improvements patch. No functional change, only documentation. (See #1509)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7612 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 18:40:23 +00:00
euzuro
5ac8bd6a89 fix broken register() on events r=tschaub (Closes #1502)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7610 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 17:10:04 +00:00
Tim Schaub
36d5f49f0d The Request functions now consider a request with null status as a sucessful request. This is relevant for the file 'protocol' where xhr status is never set. r=crschmidt (closes #1638)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7609 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 16:33:03 +00:00
crschmidt
bc06972aea patch for improved mousedragging. We were able to test this on my eeepc
and get a very obvious speedup in performance. This adds a configurable
'interval' to the dragpan control (and an interval to the 'drag' control,
defaulting to 0px). Patch put together by tcoulter. (Closes #1509) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7608 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 16:27:48 +00:00
crschmidt
7d3d615172 Fix for Inline KML styles extracted even though extractStyles is false,
from Edgemaster. r=me, tests=me, (Closes #1576)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7607 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 14:53:24 +00:00
pgiraud
b5c10debb1 Modified example short desc.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7606 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 13:18:29 +00:00
crschmidt
0185df1548 create an OSM based Sundials example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7605 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 12:58:21 +00:00
Tim Schaub
9d72a9bdce more less troublesome ie naming
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7604 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 04:10:50 +00:00
Tim Schaub
15a787c5ba test name for ie better
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7603 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 04:08:19 +00:00
crschmidt
0eae149071 Commit Dutch translation, from Bart (thx) (Closes #1425)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7602 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 03:45:31 +00:00
Tim Schaub
309877a48c Adding a featureadded event to the draw feature control event types. First tests ever for the draw feature control. Thanks sbenthall for the patch. r=me (closes #1508)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7601 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 03:41:22 +00:00
euzuro
b837fea7a2 small test fix to properly display message
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7600 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 02:28:25 +00:00
crschmidt
2d301f456b "use different server when IMAGE_RELOAD_ATTEMPTS > 1 && layer.url is an array".
Patch from brentp. (Closes #1291)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7599 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 02:02:36 +00:00
ahocevar
d41b6afec4 set center and baselayer in test_box, so we have the correct environment to do the actual test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7598 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 01:19:21 +00:00
crschmidt
8c59d55658 Redraw control.panel when toggle controls are activated. Patch by
sbenthall (yay), r=me, (Closes #895) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7597 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 00:40:32 +00:00
euzuro
0b58117c06 zoomToMaxExtent() and getMaxExtent() should be smarter if a 'restrictedExtent' property is set on the map. (Closes #1134)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7596 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 00:36:26 +00:00
Tim Schaub
27ce7fe099 Removing phantom array.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7595 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 00:35:13 +00:00
euzuro
94c264da1d make the zIndex of the map div 0 (unless otherwise specified by user). this fixes zindexing issues in FF3. (Closes #1635)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7594 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 00:15:34 +00:00
crschmidt
7736e12d33 Support for moving vector features a given number of pixels, or to a given lon/lat, using a move() method. Patch from sbenthall. (Closes #1326)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7593 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 23:30:32 +00:00
crschmidt
2ed6483121 Add mapguide docs metadata
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7592 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 23:28:31 +00:00
crschmidt
4fe8f349e5 Add Edgemaster to the doc/authors.txt file (Sorry!)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7591 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 21:02:39 +00:00
crschmidt
54482a0a2e Add GPX-parsing format, courtesy Edgemaster. (Closes #1272)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7590 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 21:00:02 +00:00
Tim Schaub
a88ad8dc50 Adding a box property to the SelectFeature control for selecting all features within a box. p=pgiraud, r=me,crschmidt (closes #1071)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7589 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 18:20:19 +00:00
Éric Lemoine
6c07bc7ff1 new RegularPolygon features can be invisible, p=me, r=crschmidt (closes #1577)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7588 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 18:13:08 +00:00
ahocevar
cab3f90411 sorry, had committed wrong versions of SVG.js and VML.js. Fixed now.(references #1157)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7587 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 15:25:56 +00:00
ahocevar
a0b8a41d5d made coordsize positive for vector renderers; seems to fixe some strange behavior in the vml renderer, and brings a performance gain by using this.size instead of calculating the size from extent and resolution every time. r=euzuro (closes #1157)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7586 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 15:12:48 +00:00
euzuro
6f2818252c reverting accidental commit from r7584
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7585 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 14:57:01 +00:00
euzuro
2fb730674a patch to make sure main openlayers map div has neither padding nor margin. done via css thanks to tim's fabulous new class manip patch. r=cr5 (Closes #1179)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7584 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 14:52:48 +00:00
Tim Schaub
357d65955a Adding functions to manage dom element class names. Use OpenLayers.Element.hasClass, addClass, removeClass, toggleClass for css class name management. r=pagameba,me (closes #1607)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7579 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-28 21:16:39 +00:00
crschmidt
3ba5bb22f2 Confirmed with Tim Coulter that forcing the reflow here leads to a cleaner
refresh on FF2-based browsers. FF3 seems unaffected either way, as does Safari.

(Closes #1390)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7578 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-28 21:10:57 +00:00
crschmidt
5e8b9284a5 MultiMap's API seems to have all-but-disappeared from where we were using it
in the past; the only reference I can find is a' call us and get a quote' 
number. For now, just removing the tests from run-tests until we figure out
what to do.  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7577 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-28 20:47:08 +00:00
euzuro
300697db04 Fixes the issue where a container div around the map is setting the text-align to something other than 'left'. for openlayers to work, the text-align for the viewport *must* be set to 'left', so we specify that in the default style.css. (Closes #1116)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-28 20:40:28 +00:00
ahocevar
a885313336 don't set the cursor to "inherit" in the VML renderer. r=pgiraud (closes #1624)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7554 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-21 14:37:44 +00:00
pgiraud
7c23659f24 handlers test are not reflecting the reality, we now simulate a click, move then click \n
that way geometry bounds are cleared, and the tests don't fail in IE6 anymore (See #1602), r=ahocevar,crschmidt (Closes #1623)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7552 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-21 13:57:07 +00:00
ahocevar
da1490dbe6 "Vector features won't draw in IE if features are very far outside the visible extent". r=elemoine (closes #1602)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7546 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-18 12:24:46 +00:00
pgiraud
eac4ff0c84 we forgot to take Geometry.Collection into account when erasing geometries, r=elemoine (Closes #1621)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7542 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-18 07:18:27 +00:00
Éric Lemoine
67a97a3f07 ND comment fix, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7540 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-17 19:23:22 +00:00
pgiraud
79552513ea the number of tests were wrong while launched in IE6, r=tschaub (Closes #1520)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7538 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-17 15:23:51 +00:00
pgiraud
98dc4001f4 removed extra comma (IE complains), no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7536 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-17 14:35:15 +00:00
pgiraud
bcf870a201 add a specific text-align css rule so that we don't have weird behavior of vector features in IE, r=elemoine,pagameba (Closes #1610)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7534 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-17 13:21:51 +00:00
Paul Spencer
eb06b8769b Closes #1617. Update docs to reflect correct property name for marker icon url, (thanks to Thomas Petazzoni for pointing this out). r=pagameba.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7498 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-13 11:54:25 +00:00
Éric Lemoine
896994fb22 fixing tests/Lang.html, p=fvanderbiest, r=me (closes #1601)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7493 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-11 19:32:38 +00:00
pgiraud
cf0f651442 typo, strokeRadius doesn't exist, it's meant to be strokeWidth
no functionnal change

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7487 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-11 11:44:10 +00:00
Tim Schaub
737fd7682a Correcting doc bug for elements renderer. Thanks zarn.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7478 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-08 14:58:43 +00:00
crschmidt
bd2de628d3 not sure if this is right, but adding in a link to the metadata about
each entry. This seems to fix the issue reported earlier, that the links
in the example list are broken.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7477 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-08 12:47:30 +00:00
Tim Schaub
49084f8045 Adding Traditional Chinese dictionary from Jian Ding Chen (timchen119). r=me (closes #1609)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7475 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 22:29:30 +00:00
Tim Schaub
ad5b0ef0a4 Build configurations with include sections don't need exclude sections.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7474 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 22:23:32 +00:00
Tim Schaub
746892e9d9 Looking a little harder for ElementTree.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7473 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 20:39:37 +00:00
Tim Schaub
d30cad92dc Adding a few example descriptions, removing a redundant example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7472 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 16:49:17 +00:00
Tim Schaub
44613c8c49 Unused function.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7471 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 14:34:07 +00:00
Tim Schaub
514e4f8fa1 Adding title, id, updated, and author elements for valid atom.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7470 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 14:32:55 +00:00
Tim Schaub
c240ddc1b3 No additional markup in title or shortdesc please.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7469 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 13:44:56 +00:00
Éric Lemoine
5e36c6e107 getChildValue() on GeoRSS format is slow, p=edgemaster, r=me,crschmidt (closes #1600)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7468 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 07:02:27 +00:00
Tim Schaub
0d2b2dd893 Googlebot doesn't seem to like these relative urls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7463 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-03 20:48:46 +00:00
Tim Schaub
8329df7c46 French dictionary entries from François Van Der Biest. Thanks for the contribution. r=me (closes #1601)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7460 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-27 16:08:33 +00:00
crschmidt
7af0cd563e getFullRequestString is used for getfeatureinfo a lot. Make it an API function.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7459 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-27 14:46:53 +00:00
crschmidt
70276af0d1 mini dotfile generator. Not pretty, but sort of works.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7458 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-27 05:19:48 +00:00
crschmidt
656da076a1 Add OpenAerialMap TMS usage example to spherical mercator layer, since it's
been requested three times today from different places (!)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7457 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-26 19:58:34 +00:00
ahocevar
8df1e4074a made example work in IE
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7456 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-26 19:34:52 +00:00
Tim Schaub
2d86212155 Patching Test.AnotherWay to use importNode in html_eq. r=crschmidt (closes #1376)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7452 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-25 20:40:44 +00:00
Tim Schaub
8773d98834 Adding OL.String.isNumeric method to test for numeric strings. r=crschmidt (closes #1441)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7451 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-25 20:37:29 +00:00
crschmidt
351b3b756b Minor doc update to clarify that mergeNewParams handles reloading the tiles.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7450 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-25 14:14:55 +00:00
ahocevar
23aeac7697 modified georss-flickr example to make use of Layer.GML with format option instead of adding the features manually after parsing them using Format.GeoRSS.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7448 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-25 08:32:19 +00:00
Tim Schaub
2fdee6eabd Adding an example of StyleMap use.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7447 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-24 19:13:47 +00:00
Tim Schaub
2ce26c4251 excuse the typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7435 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-23 18:31:07 +00:00
Tim Schaub
f7a798d810 Looks like google doesn't like the relative link with a nested sitemap.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7434 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-23 18:29:42 +00:00
Frédéric Junod
f8bf59445c Use css sprites technique to simplify the NavigationHistory controls. r=tschaub. (Closes #1555)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7422 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-23 06:56:58 +00:00
crschmidt
8f778d8a0c minor doc changes to describe that format conflicts with
featureClass/vectorMode:false.  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7417 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-21 14:37:14 +00:00
crschmidt
b8d81e7917 Expand on a patch by Edgemaster to support non-XML vector formats via the
current XML layer. This patch rearranges the reading of the document from XML
so that it is done later on, building on the work in #1575. It also adds tests
for the two cases that aren't currently tested: 

 * Vector Mode with non-XML format
 * non-vectormode with XML DOM passed in

Tests continue to pass, confirmed via manual inspection as well as the tests.

(Closes #1575) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7416 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-21 14:23:33 +00:00
crschmidt
45b87bc02d SRS sent with WFS requests should match projection of requested extents.
(Closes #1537)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7415 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-21 13:27:16 +00:00
crschmidt
2d66f80b16 Previous commit was courtesy Paul Smith; adding to authors.txt.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7414 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-21 13:09:56 +00:00
crschmidt
e4ada9ea2f WKT Format reprojects geometrycollection components twice. Fixed by anonymous
contributor. (Closes #1554) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7413 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-21 13:09:23 +00:00
Tim Schaub
96aa44f516 Adding dictionary for norwegian bokmål. Thanks for the contribution bobkare. r=me (closes #1598)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7398 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-20 17:18:06 +00:00
Tim Schaub
868b6055b3 Invoking the trivial change clause, removing an extra word from the getLayerWarning in the English dictionary. Thanks bobkare for the catch.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7397 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-20 16:59:28 +00:00
crschmidt
6135c8daab several minor coding standards changes. no functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7396 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-20 11:56:17 +00:00
ahocevar
6d37e8bdf0 change the default cursor for vector features from "" to "inherit" because FF3 complains about "". r=pgiraud (closes #1595)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7395 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-20 09:22:39 +00:00
crschmidt
1827ace4cd "GeoRSS layer triggers loadstart event twice", from Bart. Includes tests.
(Closes #1580)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7387 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-19 22:08:10 +00:00
crschmidt
c2b892acb9 Committed in wrong directory; this was meant to go to the sandbox. Reverting with
'svn merge -r 7381:7380 .'


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7382 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-19 18:45:22 +00:00
crschmidt
b78e26e9f0 break out post-rendering into seperate function to be defined in page. This
removes the tie between the LayerSwitcher and Ext that I had in my first
commit. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7381 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-19 18:44:25 +00:00
ahocevar
9724b0a214 "Draw bug in OpenLayers.Handler.Box with firefox". Now always set style.left and style.top, so lost events won't result in an incorrect box any more. r=me (closes #1579)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7375 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-18 09:33:55 +00:00
pgiraud
4340867918 add a map getUnits method, r=ahocevar (Closes 1591)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7374 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-18 08:57:02 +00:00
Tim Schaub
5f42b862ba WFS layer requires WFS tile.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7362 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-16 21:04:43 +00:00
Tim Schaub
569397a063 comment change only - since this breaks our doc building, removing the suggestion
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7353 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-12 19:06:39 +00:00
Tim Schaub
830f1e0cf7 ajax requires xhr
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7346 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 23:33:50 +00:00
Tim Schaub
a98aacedd2 Adding px units where appropriate in style properties. Thanks Wally Atkins for the original patch. r=me (closes #1582)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7341 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 20:39:03 +00:00
Tim Schaub
25af1e45cc Including the change in tests that satisfied IE. (see #1565)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7340 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 20:25:08 +00:00
Tim Schaub
8a7522fe68 For now, we will point the requires directive at the XMLHttpRequest.js script. (closes #1581)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7339 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 15:52:56 +00:00
Tim Schaub
480bc04cf8 excluding dictionaries from builds
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7338 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 15:39:23 +00:00
Éric Lemoine
507183aa87 add missing @require's
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7337 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 13:37:08 +00:00
Éric Lemoine
558866d190 there are missing @requires for the new XHR, patch from pgiraud, r=me (closes #1581)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7336 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 13:00:49 +00:00
Tim Schaub
3c70e78e47 Adding cross-browser XMLHttpRequest functionality and convenience methods around it in the OpenLayers.Request namespace. Deprecating OpenLayers.Ajax.Request. Full support sync/async requests using all HTTP verbs now. r=elemoine (closes #1565)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7335 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-09 19:51:38 +00:00
Tim Schaub
c3ca41b3be The text format conditionally sets values for feature.style.graphicXOffset and graphicYOffset. If these are not defined in parsing, we confirm that using the non-identity operator with undefined. Later, it might make sense to confirm these values are actually numeric (see #1441). This keeps an icon.offset from inadvertently getting created with NaN values later on. r=elemoine (closes #1571)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-09 19:11:03 +00:00
Tim Schaub
de6ce111c9 Adding support for TextSymbolizer writing in the SLD format. Thanks to Bart for the original patch. This provides basic expression handling for text labels. Read support later. r=ahocevar (closes #1542)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-09 17:18:35 +00:00
Tim Schaub
bed7f208ab Fixing Util.getRenderedDimensions so it assigns units to positional values. Thanks Wally for the report. r=euzuro (closes #1570)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7329 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-07 15:17:10 +00:00
ahocevar
aa486090f1 Implemented rotation of externalGraphic vector point features. r=tschaub (closes #1433)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7324 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-06 18:42:44 +00:00
Tim Schaub
6670fb6cfd Adding Italian dictionary. r=me (closes #1573)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7322 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-06 16:11:10 +00:00
Tim Schaub
8f593e332c adding quotes for clarity in failure messages
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7321 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-06 07:09:55 +00:00
Tim Schaub
ae52f20fc9 Adding Brazilian Portuguese dictionary from Pedro Simonetti. r=pspencer,me (closes #1519)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7312 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-05 20:48:04 +00:00
Tim Schaub
74f4338fe0 Adding a bit of flexibility to extend and applyDefaults. First argument can now be undefined. r=pspencer,elemoine (closes #1564)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7311 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-05 20:37:40 +00:00
Tim Schaub
0ecb973e1c making the map big enough for the layer switcher
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7309 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-05 15:48:24 +00:00
Tim Schaub
c10347fa87 correcting the test count and not running the test for inline-block where alpha hack doesn't apply (closes #1520)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7308 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-05 15:45:03 +00:00
crschmidt
66a19c70ef Fix for GMaps layers to display in correct position when they were originally
loaded as the not default layer, or the map is resized while the gmaps layer is
hidden. Patch put together by Edgemaster (thanks), (Closes #830)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7300 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-31 17:19:48 +00:00
crschmidt
57237e8a58 Fix for "Util.modifyAlphaImageDiv makes hidden elements reappear in IE6.".
Patch by jwpage. (Closes #1520) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7299 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-31 17:11:24 +00:00
crschmidt
87f26c231e Use the maxExtent of the layer in Grid layers instead of the maxExtent of the
map (since the two can differ). Patch from kleptog. (Closes #1552)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7298 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-31 16:56:41 +00:00
Tim Schaub
dd4f923c8d adding Swedish dictionary from nilsw. (closes #1523)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7296 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-31 00:10:22 +00:00
Schuyler Erle
cd5c316eba Permalink requires ArgParser. Arg!
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7290 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-30 09:16:39 +00:00
Éric Lemoine
7699922bc2 add featureremoved-type events to Layer.Vector, r=fredj (closes #1535)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-27 07:56:29 +00:00
Éric Lemoine
6553f9895a Layer.Vector should destroy itself before its parent, r=fredj (closes #1536)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7276 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-27 07:53:48 +00:00
Éric Lemoine
7f8c5d0c13 geometry-less vector features aren't cloneable, r=pspencer (closes #1557)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-22 13:42:23 +00:00
euzuro
069a72b5e7 add feature to markers layer, not to image layer. thanks to stephen w. for spotting this.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-21 13:23:30 +00:00
Frédéric Junod
d40f372742 Simplify olControlEditingToolbar styles by regrouping common attributes, r=crschmidt (closes #1388)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-20 14:07:01 +00:00
pgiraud
815e55888a context can now be given as argument in StyleMap.addUniqueValueRules()
this, for example, allows user to access to properties that are not part of the feature attributes.
r=elemoine (closes #1548)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7216 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-19 13:34:35 +00:00
Éric Lemoine
34ff282397 ND changes in the modify feature control. Thanks ahocevar for catching the erroneous comment in handleKeypress. No fonctional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7213 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-17 20:11:45 +00:00
crschmidt
0978e6cfa7 Fix mistake in documentation: idx -> delta. Reported by aboudreault on IRC,
no functional change.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7190 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-15 14:14:32 +00:00
pgiraud
078deb2ffe exit the panTo method if the new center is the same as the current one, r=crschmidt (closes #1507)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7174 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-14 08:11:01 +00:00
pgiraud
5e3afa79f5 doc typo, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7173 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-14 06:45:44 +00:00
Tim Schaub
6474539aad moving css for save img to default style.css
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7164 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 21:40:14 +00:00
Éric Lemoine
e02e7504c5 MousePosition: numDigits inconsistency, reported by kthy, patch by kthy, additional test by me, r=me (closes #1544)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7163 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 20:52:01 +00:00
Éric Lemoine
bc56ec9afa fix typo in modify feature test name (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7162 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 20:48:24 +00:00
ahocevar
45485246b8 Divide/multiply PointSymbolizer's Size by 2 on read/write to match OpenLayers symbolizer's pointRadius. r=elemoine (closes #1545)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7160 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 20:26:14 +00:00
Éric Lemoine
35743801dc for some reason, the html document was included twice
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7159 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 19:51:58 +00:00
crschmidt
7934ebd82a Add note for users accidentally viewing source in the frame to tell them "go
read the source to the example, *not* this source." 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7154 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 18:56:25 +00:00
pgiraud
c5c4f26b92 doc typo, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7148 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 11:30:42 +00:00
Frédéric Junod
8572cdadf3 Fix typo in shortdesc
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7145 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 06:28:55 +00:00
crschmidt
b1a2122619 Minor fixes to marker documentation. r=me, (Closes #1532)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7138 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-11 18:36:21 +00:00
Tim Schaub
8cf0266a1f no post on other proxy, I give up
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7137 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-10 05:43:28 +00:00
Tim Schaub
92c224f1fa and a couple new images
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-10 05:35:10 +00:00
Tim Schaub
1aab3aa3d2 a bit of style and the more generous proxy
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7135 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-10 05:20:59 +00:00
crschmidt
181efd8ed4 allow for use of sigma.openplans.org through proxy
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7134 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-10 02:11:48 +00:00
Tim Schaub
a387cbba51 say it isn't so
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7133 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 23:42:15 +00:00
Tim Schaub
607ff5d0d8 a horrible, yet apparently working, wfs-t example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7132 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 23:25:46 +00:00
Tim Schaub
78edef0699 desperately outdated
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7131 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 22:12:15 +00:00
crschmidt
0768d5a558 fix proxy URL
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7130 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 21:59:25 +00:00
Tim Schaub
d4e879df1c using remote wfs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 21:52:02 +00:00
Tim Schaub
3fdead4fb2 sort examples by modified time and add atom:updated element
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7128 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 20:29:07 +00:00
Tim Schaub
bf06c9b305 the example parser now also kicks out a basic atom feed, example list page links to this feed
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7127 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 19:20:06 +00:00
Tim Schaub
dea578b7fc exclude example-list.html from list of examples - this is getting fragile
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7126 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 17:01:48 +00:00
Tim Schaub
92c092c598 keep filter at top, parse query
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7125 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 15:02:31 +00:00
crschmidt
447eaf2936 add smarter tool for updating the dev dir on OL.org in a better way. Specifically:
* Check whether the reision has changed
 * if it has:
   * rebuild the examples.js
   * Rebuild the singlefile, copy it
   * Change all the examples to use the singlefile
   * Record the most recent rev 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7122 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 03:35:43 +00:00
crschmidt
60d9d17c6a add example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7121 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 03:31:42 +00:00
crschmidt
440bd042df no longer uses 2.82 (which doesn't work smoothly with 2.6 anyway)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7120 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 02:45:42 +00:00
Tim Schaub
9cf5153163 updating example list with new jugl style and giving jugl a license
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7119 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 22:10:49 +00:00
Tim Schaub
4b99350be1 exampleparser.py now produces examples/example-list.js which is used by examples/example-list.html
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7111 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 17:49:03 +00:00
Tim Schaub
0340bf0a4e small map big bar
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7100 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 09:29:13 +00:00
Tim Schaub
c4ed9a708b since the examples.html is broken with the new examples.js structure and I don't know when or how often the magic update occurs, I'm creating an examples2.js until I can talk to the magician
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7099 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 09:03:43 +00:00
Tim Schaub
c6d8d6d559 sort by words matched then by frequency
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7098 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 08:56:38 +00:00
Tim Schaub
8eee248117 create word index from examples and use it to filter example list
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 08:27:54 +00:00
Tim Schaub
c350fd6810 giving examples some style
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7095 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 08:15:07 +00:00
Tim Schaub
c36ac497dd doc/examples.html update
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7092 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-07 23:50:26 +00:00
Frédéric Junod
3f63622c36 Change build.sh to build.py in build/README.txt. Reported by jwpage. (Closes #1538)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7065 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-06 05:36:35 +00:00
Éric Lemoine
9190e24bcd Cannot modify a feature (linestring) that have two points at the same position, r=me, thanks pvalsecc for the patch and the detailed justification of this patch. (closes #1533)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7061 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-05 06:55:07 +00:00
Éric Lemoine
8a6d16e0dc zoomend event isn't described in the ND comments (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7060 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-04 11:48:20 +00:00
Éric Lemoine
03e952bed2 add unit tests related to the beforefeatureadded, featureadded, and featuresadded events
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7051 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-02 14:50:14 +00:00
Éric Lemoine
ce76180dae better ND comments, related to #1419 which I'm going to close
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7039 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-30 19:02:36 +00:00
ahocevar
5da18353c6 More detailled comment for Rule.symbolizer. Non-functional change (references #1526)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7024 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-28 20:48:35 +00:00
ahocevar
0af3b4ef1b added an additional test to show that the example given by tschaub for #1526 works without modifications (references #1526)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7023 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-28 19:01:10 +00:00
crschmidt
7a61e3c7e5 add dependancies to SLD format. (Closes #1530)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7022 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-28 12:56:55 +00:00
crschmidt
89231f1691 Layer.GeoRSS should store the title and description attributes on the
created OpenLayers.Feature object for later access by applications. 
Patch, including tests, written by Ian Mayo, r=me. (Closes #1485)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7015 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-27 05:14:50 +00:00
crschmidt
dd92f8c730 Map depends on tweening.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7014 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-27 04:46:00 +00:00
crschmidt
52ae402ebf Fix commas in Click example thanks to helpful patch from Pedro Simonetti.
(Closes #1525)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6997 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-23 03:27:00 +00:00
crschmidt
cb3897948a Add vector layer to attribution example, to demonstrate explicitly that
sometimes the 'options' hash for a layer is only the second arg, instead
of the third or fourth.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6987 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-21 17:19:31 +00:00
crschmidt
3553e2a41e Fix to docs (no functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6980 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-20 12:41:49 +00:00
crschmidt
ecd291cb01 Add getDataExtent to Vector Layer. Patch from rupert, tests by me, r=me
(Closes #1369)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6947 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-16 01:56:21 +00:00
crschmidt
029e76d965 Fix to Layer.Text to allow iconOffset of 0,0 from Edgemaster, r=me (Closes
#1467)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6946 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-16 01:30:40 +00:00
Frédéric Junod
7598e0de43 Fix the 'relativePosition' values enumeration. Docs only. (Closes #1510)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6911 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-15 06:49:12 +00:00
Tim Schaub
5e634d27e1 Another doc tweak.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6901 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-14 21:28:52 +00:00
Tim Schaub
ff63bc1460 Doc typo.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6900 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-14 21:26:02 +00:00
Tim Schaub
b8478b0ef3 SLD requires rule and filters. This could be made a requirement for OpenLayers.Style, but I'll put it here for now. (see #1514)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6895 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-14 17:35:30 +00:00
Tim Schaub
bed262fec4 Modifying the addUniqueValueRules method to use filter subclass. r=crschmidt (closes #1492)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6834 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 17:10:45 +00:00
Tim Schaub
209f8f68f8 Fixing links in documentation. Other Natural Docs changes. (closes #1504)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6833 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 16:52:08 +00:00
crschmidt
ffab22ba19 2.6 introduced a regression that maps could not be created when the Object
prototype is extended. Although OpenLayers is not designed to work when this
fundamental violation of Javascript is in place, we can at least not fail
so miserably in this case: this gets us back to a similar level of 
functionality as we had in 2.5. This was brought up by a user working on 
a viamichelin layer, which apparently extends the object prototype (bad!),
and fixed in conjuction with tschaub. r=pgiraud,tschaub (Pullup #1502)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6832 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 16:06:23 +00:00
Tim Schaub
cadc54cc4e Fixing panning for odd-sized viewports (broken in r6492). This makes map.getViewPortPxFromLonLat return fractional pixel values. To get integer pixel values, use map.getPixelFromLonLat. A better solution may be possible in the future. r=crschmidt (closes #1503)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6831 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 15:54:01 +00:00
Tim Schaub
d2079fb927 Updating layer opacity example with url for USGS wmsconnector.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6830 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 13:57:48 +00:00
Tim Schaub
67b796d88b Dividing base types into namespaces (docs only). (see #1504)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6829 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 12:33:26 +00:00
crschmidt
ac181918a2 these should not be API properties. The only API Propety should be
getLonLatFromPixel: these are internal methods, nto designed to be used
by users.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6828 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 10:58:22 +00:00
ahocevar
ada641d866 Changed StyleMap constructor so that all render intents will be set if only one Style object or symbolizer hash is passed. This is the first patch attached to #1498, which got slightly more votes thaan the second one. r=crschmidt,tschaub (pullup #1498)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6827 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 09:12:09 +00:00
crschmidt
830b640d4a Add xml_eq to auto tester
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6826 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 02:18:47 +00:00
Tim Schaub
a56e11c1ed Opera doesn't need the sniffing, so neither do I. (see #1501)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6824 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-08 05:11:10 +00:00
Tim Schaub
cc100ad6ea Taking advantage of the xml_eq test method. (closes #1501)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6823 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-08 05:04:30 +00:00
Tim Schaub
4b88c16e10 Correcting dependencies for the SLD format. (see #1492)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6822 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-08 04:37:36 +00:00
Tim Schaub
2db5c4ea83 Removing the Rule directory. (see #1492)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6821 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-08 04:34:35 +00:00
Paul Spencer
dc69fc5360 Closes #1490. Add comment to make it clear that callers of createPopup must not call destroy on returned popups but rather use the feature.destroyPopup method.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6820 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-08 02:04:28 +00:00
Tim Schaub
1091e34c0b With dramatic flourish, I'm modifying 21 files with 1033 insertions and 815 deletions between release candidates. This moves all rule subclasses to a more natural home as filter subclasses. Also adds tests for SLD write and corrects a handful of issues there. Apologies to all who lose sleep over this sort of thing. r=ahocevar,crschmidt (closes #1492)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6818 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-08 00:13:45 +00:00
Paul Spencer
d7bbcab4df spelling mistake in comment.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6810 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-07 18:38:13 +00:00
ahocevar
7251cb438f fixed typo: replaced styleVirtual with virtualStyle, so it matches the API property. r=crschmidt (pullup #1495)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6802 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-07 08:07:25 +00:00
crschmidt
53fb443819 Replace the regular expression used in Format.JSON with one which is longer,
but apparently more friendly to braindead browsers. This allows Safari 3.1
to parse long JSON strings  (>26k), which was not possible with the previous
regex. r=euzuro (Pullup #1493)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-07 04:22:35 +00:00
euzuro
e84f3d6181 fix issue where we try to createblocks without a proper this.relativePosition. Robustness++. (Pullup #1479)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6800 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-07 04:09:46 +00:00
crschmidt
1b269f06f8 2.6 accidentally broke behavior when clicking on the panzoombar. Thanks to Linda Rawson's report of this issue, this is now fixed, by moving the Math.floor call to a different part of the code. r=euzuro (Pullup #1486)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6799 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-07 04:08:33 +00:00
ahocevar
07b72def92 removing duplicated html
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6797 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-06 17:07:03 +00:00
crschmidt
797c57586a The FramedCloud popup throws an error if you attempt to call setContentHTML
before you add the popup to the map. To prevent this, don't call construct
or updateBlocks if relativePosition is null, to prevent this error message.
r=elemoine, (Pullup #1479)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6765 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-02 14:08:01 +00:00
ahocevar
f95f280dc7 changed vml namespace prefix from "v" to "olv" to avoid conflicts with other libraries that use vml. r=pgiraud,crschmidt. (Pullup #1477)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6764 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-02 13:03:23 +00:00
Éric Lemoine
72be27ac1b FF/Windows < 2.0.0.13 reports "Illegal operation on WrappedNative prototype
object" when calling hawOwnProperty if the source object is an instance of
window.Event. r=crschmidt (closes #1480) (Pullup #1480)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6763 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-02 11:53:20 +00:00
crschmidt
67aca311a9 need to check if we have a center set or permalink won't work.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6754 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-01 13:27:29 +00:00
ahocevar
d94e408084 now also committed the removal of the imageSrc property definition in Popup.FramedCloud. avlee's original patch is perfectly sane. Sorry for the confusion. Thanks elemoine for the hint. (references #1475)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6751 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-01 07:18:26 +00:00
ahocevar
5fbfb504f4 Set the imageSrc bevore the super class is initialized in Popup.FramedCloud. Thanks avlee. r=elemeoine,me (closes #1475)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6750 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-01 07:08:07 +00:00
Paul Spencer
d15ab68360 quick lint before rc1, only some missing missing semi-colons.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6748 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-01 00:14:34 +00:00
crschmidt
2fbb96099b apply VML rendering fix from andreas, since we're about to kick off RC1
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6747 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 23:01:49 +00:00
crschmidt
8aa4af76e0 Calculating the FramedCloud path at load time leads to not respecting the
ImgPath variable if it is set, because it can't be set before the 
OpenLayers.js file is loaded. Move ImgPath calculation into initialize(),
so that it is picked up correctly. Thanks, fvanderbiest! (Closes #1473)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6734 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 14:17:58 +00:00
ahocevar
f5af355a17 Popup close image is now in the theme's img folder (closes #1472)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6733 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 11:24:28 +00:00
ahocevar
b1a9f9b662 move close button image for popups into the theme (references #1472)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6732 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 11:23:15 +00:00
pgiraud
d225c8b42a r6673 introduced typos in this file resulting in not valid html code
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6731 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 09:33:49 +00:00
crschmidt
0f35350920 Add sizes to a couple of the sundial images, and zoom into show two of the
ones we hae sizes for to create a more compelling first impression.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6730 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 06:19:43 +00:00
crschmidt
a53dbf6cda Moving sundials kml into kml subdir
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6729 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 06:10:29 +00:00
euzuro
c839d7be10 sorry, forgot about this jpg
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6728 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:55:45 +00:00
crschmidt
f3d81983dd Add 'allowSelection' option to controls, to determine whether they allow
selection. Use CSS ClassName in FF, and onselectstart attribute in IE, to
control selection. Fix inappropriate overriding of className in some Control
subclasses in order to let this work. Prevents accidental selection of controls
in IE and FF. r=euzuro. (Closes #1378)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6727 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:55:12 +00:00
crschmidt
1c2dc204c4 Use framedcloud popups, because they're awesome.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6726 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:37:39 +00:00
crschmidt
e6c3d695ad bring back changes from r6718 that i accidentally blew away
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6725 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:32:56 +00:00
euzuro
3e348f450e fix up tests, remove _01_. (Closes #1387)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6724 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:31:28 +00:00
crschmidt
0d6174db7f Note to self: when moving all test files, *also* move the location of those
files in the test plan. (in other words: oops.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6723 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:16:11 +00:00
crschmidt
ce1e4d81ea Another bad location
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6722 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:14:16 +00:00
crschmidt
62d1ec19fc missed these files in the initial move
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6721 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:13:25 +00:00
crschmidt
a3b84b5d23 update path
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6720 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:12:47 +00:00
crschmidt
0244858054 bring back r6710 now that popup changes are in
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6719 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:03:49 +00:00
euzuro
463dc45fbb Adding support for new generation 'framed' popups. This patch includes numerous improvements to the main popups, including the addition of autoSizing, panIntoView, and full support for overflow:auto of the contents div. Thanks go out to the CloudAmber folks, to Pierre in la belle France, to the guys at TOPP and of course, to senior cr5 for his patience and help in the last and final stretch. this is a huge improvement in the popup arena and couldn't have been done without the broad help of everyone out there in the community. Thank you everyone for making this possible. Big step for OpenLayers. (Closes #926)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6718 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 04:43:36 +00:00
crschmidt
0fa07edb04 Firefox 2.0.0.13 changed behavior iwth regard to loading files relative to an
iframe included in a page from matching every other browser to matching IE.
Rather than try and guess what's going to happen with this in the future, at
the moment, just duplicate the data, in hopes of a more sane solution coming 
along in the future for all our data loading needs.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6712 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 02:41:26 +00:00
crschmidt
69ca5c7fdd Revert r6710: The new popup coe is going to need to change tests, so this
needs to wait.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6711 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 02:12:03 +00:00
crschmidt
02bbd43687 Since we've now completed all the work that is including new tests in 2.6, move
tests around. (See #1387) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6710 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 01:57:38 +00:00
crschmidt
7a7ab7109b Path Handler can result in selection of map in IE (Closes #1410), with patch + research from bjorn (hooray!)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6708 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-30 22:03:29 +00:00
euzuro
136a37bf2f replacing tabs with spaces. no functional diffs here.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6673 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-29 00:38:47 +00:00
Tim Schaub
d46f884201 Promoting the map.layers property to the API. Assuming this meets the approval of other devs, please roll back if not.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6661 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-28 16:58:21 +00:00
crschmidt
e0aae7f946 Move to the latest google api to pick up smooth dragging support
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6659 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-28 14:51:22 +00:00
Tim Schaub
3b267f5334 SLD format rewrite. Adds a versioned parser with read and write support. This does not come with full support for ogc:expression parsing, but makes for easy future enhancements. r=ahocevar (closes #1458)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6645 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-27 17:18:05 +00:00
crschmidt
6b1903b5a3 Improve performance when not using transitions by not forcing a reflow,
which can slow rendering significantly when many layers are in place.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6638 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-27 13:01:25 +00:00
crschmidt
793fa3444b Add support for Safari 3.1 SVG version strings: Safari got more 'honest' about
what it supports, at the cost of breaking OpenLayers Vector layers. This looks
for a more 'basic' SVG featureset, as recommended by a Webkit developer.
r=pagameba (Closes #1463)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6581 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-25 17:29:11 +00:00
Paul Spencer
19da92a321 Re #1451. Re #1456. Change the way ScaleLine respectZoom is tested to test if the maxWidth of the control is respected at all zoom levels with two separate map units and with a custom maxWidth value.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6580 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-24 13:17:34 +00:00
Tim Schaub
66e89b9bf0 Making the feature handler a dependency of the SelectFeature control.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6577 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-21 18:55:26 +00:00
Tim Schaub
f07e0ccda6 Adding an extra check for IE, where request.responseXML is true on occasion even if the documentElement doesn't exist. r=crschmidt (closes #1428)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6573 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-21 17:34:27 +00:00
crschmidt
03fc6aacd4 FixedZoomLevels subclassese don't propertly set min/max resolution, so
calculateInRange always returns false, so the layers can never be displayed
(due to recent code): Fix calculateInRange by setting min/max res. r=tschaub,
(Closes #1457) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6572 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-21 17:31:58 +00:00
crschmidt
cc8f3d2319 Use the more modern click handler to interact with click events rather thanregistering directly on the map. This gives more flexibility and functionalityto applications, and should be the preferred way to handle these events goingforward.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6571 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-21 15:45:54 +00:00
Tim Schaub
4b02bc5ab1 Adding Czech translation from jachym. Only en.js is included in single-file builds. Edit your configuration for a single-file build with translation support. r=me (closes #1454)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6569 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-20 18:16:00 +00:00
Éric Lemoine
ce321ccea3 dragging mode of modify feature control is broken. r=crschmidt,tschaub. (closes #1418)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6564 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-20 07:26:21 +00:00
Paul Spencer
8b759ab1d6 Closes #1451: change test to be (hopefully) map unit independent. r=crschmidt.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6557 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-19 21:09:53 +00:00
crschmidt
2694905155 Fix mousewheeling on eventpane layers. r=tschaub (Closes #1438)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6556 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-19 20:53:59 +00:00
euzuro
9f425430ef removing extraneous lines from getParameters() function (r=tschaub) (Closes #1450)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6555 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-19 20:38:25 +00:00
Tim Schaub
3cc419aada Fixing OpenLayers.Style.createLiteral to work with all strings. r=ahocevar (closes #1439)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6553 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-19 19:23:15 +00:00
Frédéric Junod
410cd22976 fix doc typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6549 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-18 08:44:40 +00:00
Tim Schaub
88c449736c correcting namespace for xlink
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6543 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-17 20:09:15 +00:00
Tim Schaub
8d4a03cbbc Natural Docs menu update
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6542 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-17 18:40:48 +00:00
crschmidt
ac7172bec7 If you call setVisibility(true) on a layer which is out of range, the layer's
visibility won't change, but the tiles will be displayed anyway, in the 
wrong position. Instead, prevent tiles from being displayed at all. r=ahocevar,
(Closes #1429)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6540 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-17 15:53:13 +00:00
ahocevar
ec3c55606c added navigation control so users can at least play around a little
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6536 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-17 09:58:27 +00:00
Tim Schaub
32d7e9d92b Correcting typo in message thrown by format. c=trivial
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6535 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-16 19:52:17 +00:00
crschmidt
cd27825fb5 Add format-level layerOptions configuration property to WMC parser, to support
the configuration of user-preferred layer options in order to allow 
configurability of options like buffer, ratio, etc. r=ahocevar (Closes #1411).


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6534 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-16 12:21:15 +00:00
Tim Schaub
ca4a8d1ebf Demonstrating the use of the MousePosition control with the Hover handler.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6533 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-15 00:16:37 +00:00
Tim Schaub
6e9b661af1 Avoid infinite loops with Not elements in SLD parsing. c=ahocevar (closes #1440)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6532 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-14 21:07:39 +00:00
Tim Schaub
adb7255910 Util doc updates.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6519 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-13 16:58:01 +00:00
crschmidt
0da40191ec Rolling back patch from #751: this broke IE when used (destroy tries to
destroy slider even though it was never created). Thanks to the tests we
caught it, but this patch needs reworking.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6516 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-13 13:44:09 +00:00
ahocevar
31f769b61a Prevent SVG renderer from drawing features in the upperleft corner of the map pane when coordinates are outside range. The fix in r6380 did not work properly. r=crschmidt (closes #1360)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6515 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-13 09:49:43 +00:00
crschmidt
9b1cf1ef01 showPan & showZoomBar options in control PanZoomBar, to turn off the
various chunks. In the future, we'll use this to have a single control 
integrating panzoom and panzoombar, but not quite yet. Revamped patch 
from kkempfer (thx!) with tests. r=me (Closes #754)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6514 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-13 04:20:53 +00:00
ahocevar
85d06c5137 VML and SVG renderers behave differently with zero strokeWidth. r=tschaub (closes #1435)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6513 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 22:38:15 +00:00
Tim Schaub
106e73618a Adding an args argument to OpenLayers.String.format. This lets you set context properties as functions that will be executed with the given arguments where tokens match. For styles, this means you can specify a context that contains functions that return some value based on the feature being styled. See the styles-context.html example for use. r=ahocevar (closes #1434)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6512 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 22:24:33 +00:00
ahocevar
7a25a14f93 propertyStyles of a Style's default symbolizer will not be parsed unless rules are specified. r=tschaub (closes #1432)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6505 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 16:42:16 +00:00
crschmidt
0768fa4d27 Fix tileMonitoringHooks test: faked-out tile was missing an unload method.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6501 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 16:04:23 +00:00
Tim Schaub
ae5ec139b9 Cruft begone.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6499 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 15:40:02 +00:00
Tim Schaub
ba4a33b478 Since the name google.html should be reserved for our canonical Google example, I'm moving this reproject stuff into a google-reproject.html example. The google.html example now shows the various Google layers available. The google-reproject.html example demonstrates the reproject trick. I find examples with different indentation on every line a bit hard to read, so I'm straightening that out as well - and removing bits that were not used or not relevant to the examples.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6498 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 15:34:05 +00:00
Tim Schaub
a54f36650c four tabs for spaces
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6497 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 14:51:37 +00:00
Tim Schaub
90d824041c No longer do we force re-parsing of request.responseText for WFS, GML, and GeoRSS layers. Thanks avlee for spotting this performance hit we've been taking since at least r174. r=crschmidt (closes #1428)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6496 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 14:21:27 +00:00
crschmidt
cde39e98ae Improve the handling of tile events with regard to tiles being unloaded before
their load events fire by adding an 'unload' event to the tile, and calling
it from the places where we're about to stop listening to events. In the longer
term, it might make sense to have this be automatic, but this resolves issues
with map resizes screwing with tile events, and reverts a previous,
incomplete solution to solve a problem with untiled tiles not resizing when
the map size changes. r=ahocevar, checked out by bartvde (Closes #1417) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6495 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 12:53:34 +00:00
crschmidt
819825d8c3 Apply patch from rdewit to fix parsing of hotSpot values on Icon objects
in KML styles. This fixes issues reported with the location of icons when
using KML styling. r=me (Closes #1426)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6494 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 12:49:47 +00:00
crschmidt
98e7bd3db6 Add David Overstrom to authors for his help on #1402
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6493 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-11 18:35:28 +00:00
Tim Schaub
d12fd7c04c Smooth GDragging at last. Thanks to overstdr for digging up the getDragObject method. With v2.93 and later we no longer get flickers on panning. Non-API smooth dragging is no longer supported. r=crschmidt,me (closes #1402)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6492 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-11 18:32:17 +00:00
crschmidt
008c820e2b Clean up google example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6491 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-11 18:14:18 +00:00
Tim Schaub
6d59830d0e Documenting onModification* methods as deprecated in ModifyFeature control.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6490 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-11 16:02:39 +00:00
Tim Schaub
606347cdc9 panning test updates
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6470 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-10 01:25:44 +00:00
crschmidt
d0b4a17116 Add improved navigation control support for disabling zooming with the
mousewheel. Original from sbenthall (yay), example and more code from me, tests
from elem. r=elemoine.  (Closes #1339)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6462 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-07 23:04:32 +00:00
Éric Lemoine
6ee694fc2b fix Tile tests (checked with FF2 and IE7)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6456 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-07 08:42:03 +00:00
Paul Spencer
3fa5487c37 Re #933. Apply transition effect patch to trunk, many thanks to Erik, Tim and Chris for support. r=crschmidt, tschaub.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6452 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-06 22:50:44 +00:00
Tim Schaub
e7b9a9a41b Adding explicit eventListener unregistering in map, layer, and control destroy methods. Note that this only makes explicit what is already happening elsewhere, but it makes us feel complete. Also throwing in the example I missed in the previous change. r=euzuro (closes #1404)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6447 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-06 18:24:18 +00:00
crschmidt
21c097a297 Add more docs to rectangle
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6446 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-06 15:02:30 +00:00
Tim Schaub
438011bdab No var keyword needed in this scope.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6444 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-06 09:23:10 +00:00
Tim Schaub
0a8aa16f78 Control panels should deactivate all non-toggle type controls before activating a new control. r=me (closes #1414)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6443 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-06 05:22:18 +00:00
Tim Schaub
e4b7c6de53 The barest of docs for the Google constructor.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6442 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-06 04:58:46 +00:00
euzuro
23a1ce7729 fixinG icon offset issue. thanks to abejenaru for the oriGinal buGreport (r=tschaub) (Closes #1363)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6441 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-05 21:43:41 +00:00
crschmidt
590aa9d74e MapGuide 2.0 (just released) has support for a 'clip' parameter, which is
designed to help performance with non-tiled layers. Patch from madair to
take advantage of this in OpenLayers. Thanks Mike. r=me, (Closes #995)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6438 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-05 21:06:42 +00:00
ahocevar
155d86f070 updated ND comment (see #1417)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6437 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-05 15:11:21 +00:00
ahocevar
0a8ffebb85 resizing the map quickly messes up tile load events (singleTile). Thanks bartvde for the patch. r=me (closes #1417)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6436 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-05 14:41:32 +00:00
Tim Schaub
894c457fdd Adding eventListeners property to layer, control, and map. Setting this property at construction registers the given listeners based on event type key. r=elemoine (closes #1404)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6435 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-05 00:07:46 +00:00
Frédéric Junod
0c03b8e631 Separating jsdoc declarations.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6433 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-04 10:29:08 +00:00
ahocevar
d9cef80589 typo in ZoomBox. Thanks avlee for spotting this and the patch. r=me (closes #1413)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6432 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-04 10:19:24 +00:00
Frédéric Junod
88b42f0e46 Separating jsdoc declarations. (See #1229)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6431 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-04 10:11:32 +00:00
Frédéric Junod
b11d8bbd37 fix ND comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6430 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-04 07:09:05 +00:00
euzuro
c7bd58b774 fix stray ND comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6428 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-03 18:15:31 +00:00
Tim Schaub
6adeb7c304 ND typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6427 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-03 07:06:27 +00:00
crschmidt
cac0402c92 chagne geo for sigma, since geo appears to be gone/down
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6425 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-01 15:08:04 +00:00
crschmidt
ad97e9b16f Silly patch, doubling up my example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6424 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-01 15:06:22 +00:00
Tim Schaub
7001ce1be6 A bit more docs for fractionalZoom.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6423 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 21:13:42 +00:00
crschmidt
e54074e6f1 Improve WFS reprojection:
* Transform bbox back to layer projection
 * Transform commits back to layer projection
r=tschaub, (Closes #1406)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6422 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 18:39:37 +00:00
Tim Schaub
05858dc9fb Changing bounds.transform so it works with non-conformal projections. r=ahocevar (closes #1407)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6421 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 17:32:02 +00:00
Frédéric Junod
279af295f1 Add missing ND comments. (non-functional changes)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6418 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 14:16:10 +00:00
euzuro
bf97a6c0d2 be very very careful about how we deal with the wheel. only take action when over scrollable items or over the main map. all of this is explained in the ticket and patch it is really late and i dont feel like typing it again. basically, this puppy means that scrolling on controls or in popups will no longer zoom the map unwantedly. that is good. thank you cr5 and IRC for taking such care of me. (r=cr5) (Closes #1382)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6416 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 08:37:12 +00:00
pgiraud
fde0715f4e add the Quad easing methods for Tween
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6415 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 07:31:56 +00:00
Tim Schaub
323de7085b The click and hover handlers need to take care that the event they are handling doesn't get modified before the delayed listeners get called. Appears to only be a problem in IE. Thanks for the catch madair. r=crschmidt (closes #1393)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6414 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 07:30:34 +00:00
Frédéric Junod
8b91ee8d64 Send events when modifying features:
'beforefeaturemodified' triggered when a feature is selected to be modified,
  'featuremodified' triggered when a feature has been modified,
  'afterfeaturemodified' triggered when a feature is finished being modified

r=tschaub (Closes #1358)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6413 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 06:50:39 +00:00
crschmidt
5f93cc2b52 panmethod option on map to allow for the turning off of animated panning.
Includes example. All tests pass. r=tschaub. (Closes #1356)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6411 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 06:03:12 +00:00
Tim Schaub
6ff86dc756 Checking for properties directly on the prototype since it has been extended already. r=crschmidt (closes #1405)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6410 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 05:59:43 +00:00
Tim Schaub
836f037fda The loadURL function now returns something that acts more like XMLHttpRequest should. If you name this return request, call request.abort to abort the request. r=crschmidt (closes #1386)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6408 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 00:16:47 +00:00
Tim Schaub
145981c303 Though the structure is not something we promise will not change, the internal context object is now available to those who parse WMC. r=crschmidt (closes #1370)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6401 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 21:09:28 +00:00
Tim Schaub
fcd7ecfa3c got ahead of myself in r6399
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6400 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 20:21:53 +00:00
Tim Schaub
4107e90c0a sasifying my need for unmixed tabs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6399 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 20:20:23 +00:00
crschmidt
c92527fae5 Improve calls to movestart/moveend so that they happen at the start/end of
moves. This includes fixing pantween to set playing to false after it is
done, and fixing the map to store its dragging state again so we can use
it to figure out when a move has started.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6398 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 19:47:38 +00:00
crschmidt
248385ccf4 Make MapGuide tests run in IE. It appears that IE tries to run tests even if they're commented out (at least IE7) in test.anotherway, which is slightly annoying ( to say the least).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6397 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 18:31:35 +00:00
ahocevar
2f0382e6f6 * Style and Rule now have separate context properties
* new convenience method addUniqueValueRules in OL.!StyleMap. This can actually be used to achieve what I was trying to show in the example of this ticket's description.
 * some refactoring of OL.Style to remove duplicate code (with tests)
 * a new example showing how to add a "unique value" legend to a point layer using the new addUniqueValueRules method
 * Rule.symbolizer can now also be just a symbolizer, instead of a hash of symbolizers keyed by "Point", "Line", "Polygon". This will make things even simpler (as can be seen in the styles-unique.html example)

r=tschaub (closes #1373)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@6396 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 17:57:37 +00:00
euzuro
d3294e73fd proper tabbing is the artichoke of a good garden.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6392 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 00:02:48 +00:00
ahocevar
3e21905fc4 "svg flicker at end of pan". Gecko-based browsers might not reflow svg if only style properties of dom elements are changed. Fixed by setting the scrollLeft property. r=pgiraud,tschaub (closes #1390)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 19:32:44 +00:00
Tim Schaub
1b57ea3069 Invoking the trivial change clause, I'm adding a semicolon. (see #1392)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6388 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 19:05:28 +00:00
pgiraud
ffecbe0594 add a new 'playing' property to the Tween class so that a call to stop doesn't do anything if animation is already finished, r=ahocevar,crschmidt (Closes #1392)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6387 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 13:57:13 +00:00
pgiraud
0fc0112e07 remove extra comma, IE was complaining
tests don't seem to pass under IE though

git-svn-id: http://svn.openlayers.org/trunk/openlayers@6383 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 08:46:44 +00:00
ahocevar
16a83026a1 WFS transactions use wrong namespace for Delete. Thanks to Stephen Woodbridge for this fix. r=tschaub (closes #1394)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6381 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 00:50:09 +00:00
ahocevar
9c55f8c1e1 SVG renderer draws features in the upperleft corner of the map pane when coordinate outside range. r=tschaub (closes #1360)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6380 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 00:47:55 +00:00
crschmidt
99265c2581 Add support for MapGuide Open Source layers in OpenLayers. Great work by
Mike Adair on following this one through. Includes example, tests, code, 
etc. r=me (Closes #995)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6368 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-26 02:56:40 +00:00
Tim Schaub
3405e97835 Adding more complete style parsing to the WMC format. The format now has support for named, linked (SLD), and inline (SLD_BODY) styles. r=ahocevar (closes #1313)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6358 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-24 20:25:27 +00:00
Tim Schaub
b06a8762a4 asynchronous false implies synchronous
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6346 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-24 08:02:41 +00:00
Tim Schaub
fa42329b31 Modifying xml_eq so that prefixes for element and attribute nodes are not tested by default. Namespace URI is always tested for both. If you also want to confirm that prefixes are equal, test with options.prefix true. Modifying tests for the XML format to use xml_eq. (see #1383)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6344 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-22 20:08:28 +00:00
Tim Schaub
39b2cae514 Adding a xml_eq method to Test.AnotherWay test objects. The function takes two nodes (or strings) and a message. A test passes when got and expected nodes have the same type, the same name, the same namespace prefix and uri, the same attributes, and the same children (based on the same criteria). Otherwise it fails. Failure messages tell you at which child on which node which criteria was not met. (closes #1383)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6341 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-22 00:12:07 +00:00
ahocevar
0f8f8c4249 "WFS layer format cannot be modified on the map". Concatenate EVENT_TYPES with specific class prototype instead of this.EVENT_TYPES. r=tschaub (closes #1361)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6337 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-21 09:11:34 +00:00
ahocevar
f34358f1b9 now really fixed this test. The additional assertion (call of Console.warn) occured with non-english browsers, because the language resource could not be found. Setting the language to the default language for this test fixes the problem.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6335 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-21 00:54:39 +00:00
ahocevar
1f107bde9d fixed number of planned tests in test_Util_getArgs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-21 00:15:11 +00:00
ahocevar
9635c8868c exclude additional language resources from the full.cfg build profile. r=tschaub (closes #1372)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-21 00:10:14 +00:00
Tim Schaub
db8869e50f Respecting minResolution and maxScale if specified in the layer options. r=ahocevar (closes #1321)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6332 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-21 00:03:11 +00:00
Tim Schaub
697da4900d Adding support for fractional zoom to the pan zoom bar. Setting map.fractionalZoom to true allows you to access a continuous range of resolutions with the pan zoom bar. r=crschmidt,me (closes #1288)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6331 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-20 23:44:34 +00:00
ahocevar
c3c34751bd Click on overview map raises error in IE. r=tschaub (closes #1371)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6330 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-20 23:40:18 +00:00
Tim Schaub
0a96e9c17b Adding a preaddlayer event for maps. This is triggered before a layer is added. r=me (closes #1220)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6329 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-20 23:39:46 +00:00
ahocevar
3dcbeaa351 converting encoding to UTF-8
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6321 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-18 18:49:59 +00:00
ahocevar
505b6fc665 fixed @requires
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6320 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-18 18:46:01 +00:00
ahocevar
1f7e97a500 German Translation. Thanks anonymous for that contribution. Some changes were made to the original patch:
* replaced some German terms with English terms that should be more familiar to the average German speaking user
 * removed translations for console messages (which are usually only read by developers), because too much translation of code-related information does not help in understanding a problem
 * apply defaults from Lang["en"] to avoid ending up with dictionary keys in messages.

r=me (closes #1367)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@6318 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-17 15:41:39 +00:00
ahocevar
e8d8dfccb7 New minimumSymbolizer object on Renderer.Elements, which defines only those properties that are needed to ensure that nothing breaks. r=tschaub (closes #1345)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-17 14:49:37 +00:00
Schuyler Erle
afd0648a2f Add Tiles@Home layer to spherical-mercator example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6316 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-17 11:54:51 +00:00
pgiraud
10ee48c84c fixes typo (Closes #1365)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6315 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-16 08:20:49 +00:00
crschmidt
1f2a057c5d We have a Format.WFS that works in IE now -- by doing so, it means it is
spitting out a string, not an object, so this patch removes the 
Ajax.serializeToString on the string which was breaking. r=tschaub 
(Closes #1355)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6314 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-15 22:42:07 +00:00
Tim Schaub
fa55f54e32 Adding framework for internationalization support. The new OpenLayers.Lang.translate method takes a key and looks for a value in a dictionary based on the current language setting. Set a new language code with OpenLayers.Lang.setCode. Get the current code with OpenLayers.Lang.getCode. Thanks to Mike Adair for the lead on this one. r=ahocevar,me (closes #109)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6313 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-15 21:15:48 +00:00
euzuro
bafc8b758b fix nd arguments list
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-13 19:08:10 +00:00
ahocevar
b3e53fce68 added @requires OpenLayers/StyleMap.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6247 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-13 15:35:32 +00:00
ahocevar
0d9ab3b3df looking for properties in rules symbolizer may fail. r=elemoine (closes #1362)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6246 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-13 12:21:47 +00:00
ahocevar
c5dd8ada2c "users should be able to customize the select style per feature": Created a !StyleMap class which stores all styles that are needed for a layer. Controls that need to render features differently can now just give a render intent (e.g. "default", "select" or "temporary") to the layer's drawFeature method, instead of having extra style informations like Control.!SelectFeature.selectStyle. Existing application that set layer.style or feature.style are still supported, but both of these style properties are now null by default. r=crschmidt,elemoine,tschaub (closes #1120)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6240 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-12 23:05:47 +00:00
crschmidt
dd1f4d1fa9 We split the grid init into a seperate function, and use that as the
controlling mechanism, to reduce code duplication between Grid/KaMap/other
layers that need a different grid origin. r=euzuro (Closes #1349)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-12 18:24:15 +00:00
Tim Schaub
57f6d9b914 Only destroy events if they are not already destroyed. This is relevant for controls with obligate controls. Since the map thinks it is in charge of destroying controls, and parent controls also destroy obligate controls, control.destroy ends up getting called twice. If someone wants to change the way this is handled, we should have a standard property that lets the map know that control.destroy is the responsibility of someone else. r=crschmidt (closes #1346)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-12 16:43:47 +00:00
crschmidt
49c7ec2739 Tim points out I'm clearly not running the tests often enough by showing
that the Ajax test fails. Sorry to all; I'm a bad OL dev.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-12 16:33:23 +00:00
crschmidt
38a6b180ba Map depends on tweening; fix single file builds for users who have
custom profiles. Reported by Bart on the mailing list.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6204 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-11 14:15:15 +00:00
pgiraud
93b25bf073 It looked like movestart, move and moveend events weren't triggered in a good way while using panTo (with panTween effect), this is fixed by calling moveTo with 'dragging' and 'noEvent' options, and trigering 'moveend' internaly, r=crschmidt (Closes #1348)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6203 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-11 13:55:04 +00:00
Frédéric Junod
32d541641d fix typos and missing documentation in ND comments. (non-functional changes)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6200 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-11 09:54:21 +00:00
Frédéric Junod
da706ed568 fix ND start tag. (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6196 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-11 08:08:11 +00:00
crschmidt
f42bb15716 No need for ProxyHost to be in Format.KML directly anymore, since #1350
adds it to Ajax.Request. Thanks, rdewit. r=me (Closes #1354)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6195 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-11 02:39:01 +00:00
crschmidt
416661ecc6 Apply patch from rdewit to fix a typo I missed; thx rdewit. (Closes
#1350)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6190 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-11 00:28:42 +00:00
crschmidt
54f85bdb8f Move ProxyHost addition to Ajax.Request instead of
OpenLayers.loadURL. Makes it easier to write more complex 
apps that require ajax.request stuff without duplication 
of code. r=elemoine (Closes #1350)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6184 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-10 20:57:41 +00:00
Tim Schaub
4d6ccf2e50 Closing the panel div.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6183 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-10 20:48:51 +00:00
crschmidt
03248296e7 Set a FID on OSM features. Includes tests. Original patch by kleptog
(thx), r=me (Closes #1351


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6181 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-10 16:18:48 +00:00
ahocevar
c70fb21103 Add KML Styling support. Thanks rdewit for this great contribution. r=crschmidt,me (closes #1259)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6179 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 20:42:32 +00:00
Éric Lemoine
06571e2cf3 fix indent (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6178 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 20:33:47 +00:00
Tim Schaub
db77398339 Thanks Ian Mayo for this nice ScaleLine control. Give your maps a dualie scale line control customizable with CSS. r=crschmidt (closes #1089)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6177 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 19:39:12 +00:00
crschmidt
1bb88a2f13 Make popup text selectable in Firefox. (Closes #1129)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6176 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 19:35:27 +00:00
crschmidt
b4bf9ea9bc Pass WMC options through to versioned methods.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6174 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 19:18:02 +00:00
Tim Schaub
7b87a414a3 The vector layer now only adds events to those available from the layer superclass. r=crschmidt (closes #1343)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6173 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 19:16:25 +00:00
ahocevar
886b963ce5 Fixed several destroy() methods to avoid running into undefined objects when the page unloads. r=crschmidt,me (closes #1222)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6172 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 18:51:48 +00:00
crschmidt
8e2b4956f2 make redraw have a 'force' parameter to allow it to actually add random data to
the params hash to  bust caches. r=ahocevar (Closes #1295)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6171 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 18:29:18 +00:00
ahocevar
09a6814e2d VML flicker when dragging is finished. This very nice patch by sbenthall fixes it. Thanks Seb! r=me (closes #1340)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6169 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 17:35:33 +00:00
crschmidt
431b882630 Don't redraw the single tile if the layer is not visible; it will be redrawn
by setCenter since we clear the grid anyway.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6168 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 16:51:39 +00:00
Tim Schaub
bf224d699d Giving all controls an events instance. You can now listen for activate and deactivate on any control. Panel controls do this to know when they should redraw. Navigation history control demonstrates the effect of this change. r=elemoine (closes #1346)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6167 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 16:46:02 +00:00
crschmidt
9bfd829512 Rollback patch from #1332, which broke feature creation.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6163 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 04:23:54 +00:00
ahocevar
eb5307608a VML fails to render features with undefined pointRadius symbolizer property. r=crschmidt (closes #1345)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6161 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 04:00:20 +00:00
Tim Schaub
c52ed952d8 Add navigation history control. This control creates two obligate controls: next and previous. Calling trigger on the next and previous controls steps through the navigation history. r=crschmidt,ahocevar,pgiraud (closes #1240)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6157 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 01:27:45 +00:00
crschmidt
05409a35c0 Make default build be full.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6156 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 01:19:12 +00:00
crschmidt
60706fc3f9 Refactor Hanadler.Point cancel/finalize to just call a cleanup and pass a
callback type, since otherwise they're the same thing. From sbenthall, r=me
(Closes #1332) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6154 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 00:49:38 +00:00
Tim Schaub
de13a7f91f Updating the WFS (transaction) format to add srsName to geometry and include attributes. Thanks sbenthall for the patch. r=me (closes #1344)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6150 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 23:54:24 +00:00
Tim Schaub
f27833f1db Trigger feature related events with feature information and layer related events with layer information. Also adding events.on and events.un convenience methods. r=crschmidt (closes #1343)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 23:31:27 +00:00
Tim Schaub
464fb30589 Reset the deal.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6148 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 23:19:09 +00:00
Tim Schaub
bde60b6851 Destroy toys when you're done playing.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6147 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 23:14:38 +00:00
crschmidt
10907f2880 In order to make it more clear that users are required to have the theme/
directory to deploy when depending on features which use CSS, and make it clear
how to override the CSS in OpenLayers, include <link rel> ags in all examples.
(Closes #884)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6145 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 22:19:28 +00:00
crschmidt
6f2a3598be Fix lots of EOL SSTyle line ending problems.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6131 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 19:51:55 +00:00
crschmidt
d555835791 Committed the wrong version of this file somehow; this should have been in
the commit for #110.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 19:47:51 +00:00
crschmidt
d6691ed219 missing layer (how did this go away? Nobody knows.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6126 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 19:37:54 +00:00
ahocevar
3581276835 Add optional context property to OpenLayers.Rule, so rules can now be evaluated against diffent contexts than feature.attributes. This changeset also renames Rule.Logical.children to Rule.Logical.rules, to make it more consistent with OL.Style. r=crschmidt (closes #1331)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6116 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 16:56:48 +00:00
crschmidt
bb26a2601d Add support for animated panning, with most of the work done by Pierre, thx pierre! panTo method now animates when moving. (Closes #110)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6111 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 16:28:11 +00:00
crschmidt
3f7bbdfa9c Fix for map destroy doesn't clean up all listeners r=tschaub (Closes #1301)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6108 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 16:04:00 +00:00
Tim Schaub
49e0bff93d For controls with multiple handlers, we now tack them on to a handlers object. The base destroy takes care of the handlers. r=crschmidt,uz/2 (closes #1338)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6106 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 15:52:03 +00:00
crschmidt
03a827de4d Refactor setCenter to do most of its work through a smarter function called
moveTo. In moveTo, we also have knowledge of whether the event was fired
through setCenter, allowing us to know the difference between an 'internal'
move and an external one.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6099 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 13:23:41 +00:00
pgiraud
f6fe7d48d3 adds tween and easing classes (with algorithms from Robert Penner) to handle animation
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 13:09:58 +00:00
Frédéric Junod
1847986723 Correctly add the fill element to the VML node. r=ahocevar (Closes #1312)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6080 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 06:51:01 +00:00
crschmidt
db0e03e2bd Layers with the 'alpha' flag set to true never register proper load events, so
they never fire loadend events. r=euz (Closes #1336)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6068 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 04:18:13 +00:00
Tim Schaub
99f3fa0d26 By default, the click handler now has a zero pixelTolerance. This means we don't call click if the click includes a drag. Set pixelTolerance to null if you want click called with a drag. r=crschmidt (closes #1335)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6066 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 03:24:42 +00:00
crschmidt
fba4528c9a Add further improvements to WFS writing code from sbenthall, to write out
things in IE. (Closes #1278) (again)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6054 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 00:56:52 +00:00
crschmidt
a56b84e922 overviewmap needs to set fallThrough to false (Closes #1333)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6052 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 00:42:47 +00:00
euzuro
6c2dfdeaf1 we want to keep a reference to the close div in our popups if we make it. (Closes #1334)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6048 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 23:59:54 +00:00
crschmidt
870e196c20 Adding Seb Benthall and Ivan Willig to authors.txt, for their contributions
added earlier today.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6037 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 22:28:18 +00:00
crschmidt
9075aa804c Refactor out names into namespace prefixes for overridability (and to make
the  code slightly less verbose).


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6036 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 21:54:33 +00:00
Tim Schaub
61f124f214 Only write out min/max scale related properties if they are explicitly set on the layer. Thanks for slapping Safari around a bit with this on crschmidt. Works but still untested there. r=crschmidt (closes #1314)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6033 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 21:06:08 +00:00
Tim Schaub
9d045baf71 Changing the editing toolbar to use a single image. Thanks iwillig for the work on this. r=me (closes #1330)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6025 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 20:07:48 +00:00
crschmidt
c75909a45e Don't render features with no geometry. This gives us similar behavior in IE
and FF. There is probably more to this, but we can solve those issues as they
come up: going with this one as is for now. (Closes #1111)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6023 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 20:04:42 +00:00
ahocevar
92b4894e33 "Tests Broken on IE6". This adds an additional check that prevents IE6 from complaining about undefined properties. r=crschmidt (closes #1322)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6021 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 19:46:04 +00:00
crschmidt
d52701aec8 Adding a space to clean up diffs for transition patch. (No functional change.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6012 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 06:20:50 +00:00
crschmidt
ca5c08ee26 Fix typo in comments.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6011 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-06 23:52:39 +00:00
ahocevar
ae6588140a Race conditions with creation and destruction of OverviewMap. r=tschaub (closes #1320)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-06 22:49:41 +00:00
Tim Schaub
8d5d8f6d94 Just because I had it open and was looking at 952, I'm shortening test names. (see #952)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6006 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-06 19:46:22 +00:00
Tim Schaub
98edddb28d More tests for XML format that pass in Safari - confirming nothing except that I have gone nuts
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6005 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-06 16:00:55 +00:00
Frédéric Junod
911a2772a4 Opera version < 9.20 invert the wheelDelta value but version >= 9.20 don't. r=crschmidt (Closes #1193)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6004 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-06 15:34:16 +00:00
euzuro
672d3c4eed give the navigation control a proper destroy and also give it a test file while we're at it. (Closes #1289)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5990 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-05 06:34:20 +00:00
euzuro
8311449985 give the wfs layer a proper destroy method (Closes #1256)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5989 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-05 06:12:29 +00:00
Tim Schaub
211a2834de Adding fractionalZoom property to the map. This allows zooming to an arbitrary level, making it possible to have non-discrete resolutions for layers that support it. This property should not be set to true for layers with fixed zoom levels (commercial layers or others with cached tiles). r=elemoine,crschmidt,ahocevar (closes #1243)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5982 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-04 06:23:54 +00:00
ahocevar
1faf641806 evaluation of else filter in SLD. r=tschaub (closes #1317)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5978 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-03 17:48:19 +00:00
crschmidt
a664b6b390 left in too much from source license text
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5977 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-03 17:43:18 +00:00
Éric Lemoine
cf87ffc26c Add properties stopClick, stopDown, and stopUp to the feature handler. If
stopClick is true, clicks handled by the feature handler don't propagate to
other click listeners; otherwise handled clicks do propagate. The same kind of
rule applies to stopDown and stopUp. These properties default to true. Thanks
to Attila Csipa for expressing the need for this feature and cooking up the
first patch. r=tschaub. (closes #1266)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5976 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-03 17:35:39 +00:00
Éric Lemoine
f9950ec389 This commit solves the following problem with the select feature control: if
you create two select feature controls on the same vector layer, one with
hover:false that handles geometry type A only, and the other with hover:true
that handles geometry type B only, then if you click on a geometry of type A
and moves out of that geometry, the second control will unselect it. r=tschaub
(closes #1221)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5975 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-03 17:20:39 +00:00
Éric Lemoine
3acc19ae3d The modify feature control destroys the vertex that was dragged in the drag
complete callback. Thus, the drag feature control won't detect a mouse-out on
that vertex and won't deactivate its drag handler. This causes errors because
the drag feature control has a feature to drag but that feature is destroyed
(feature.geometry is null). To prevent this, we make resetVertices explicitely
call outFeature on the drag feature control if the control has a feature to
drag. tschaub did most of the investigation on the problem. r=tschaub,me
(closes #1235)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5974 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-03 17:10:03 +00:00
Tim Schaub
5a176d7852 Explicitly check that we know who the parent is before removing child from parent. r=crschmidt (closes #1316)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5973 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-02 22:48:37 +00:00
crschmidt
2bb8d7cc8f Add mention that the files have been changed. This is obvious from
context, but the apache license requires us to mention it explicitly. 
(No functional changes.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5971 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-02 14:46:04 +00:00
crschmidt
592e1719db Add links to various licenses that we use, in order to come closer to
compliance with those licenses. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5970 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-02 14:38:27 +00:00
Tim Schaub
2259db2225 Correcting typo in the OSM format and adding support for null namespaceURI in IE. r=crschmidt (closes #1318)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5965 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-01 21:44:43 +00:00
ahocevar
4fc4c6ce4b SLD maps minScaleDenominator and maxScaleDenominator to rule minScale and maxScale. r=tschaub (closes #1297)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5964 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-01 21:17:12 +00:00
Tim Schaub
9bb51fb088 Taming the select feature control a bit. Previously, onUnselect was called twice for every unselection. r=elemoine (closes #1234)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5959 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-01 16:42:33 +00:00
Frédéric Junod
508dc66e6a fix typo in ND comment (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5950 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-31 15:05:57 +00:00
ahocevar
152e48a5a4 Cannot switch externalGraphic style on VML-rendered feature. r=tschaub (closes #1312)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5944 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-30 22:43:18 +00:00
crschmidt
894589fe7c Docs for Util.js incorrect documented parameter types.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5941 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-30 17:07:23 +00:00
ahocevar
8276327d7f sld example does not need a custom select method for Control.SelectFeature any more
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5925 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 23:02:47 +00:00
Tim Schaub
d1d058d30f Removing use of deprecated untiled wms layer from example in favor of layer with singleTile true. (closes #1309)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5923 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 21:19:32 +00:00
ahocevar
c3c97be5b2 Create tests for OpenLayers.js. r=crschmidt (closes #1267)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5922 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 20:29:25 +00:00
ahocevar
97ec46b15d "_getScriptLocation cannot handle query string". Patch originally by john.pulles@geodan.hl, improved by beau@beaugunderson.com. Thanks! r=crschmidt,me (closes #1263)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5921 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 20:27:54 +00:00
Tim Schaub
44f7ebdc22 Adding Web Map Context document parsing for versions 1.0.0 and 1.1.0. This also adds a cross browser setAttributeNS to the XML format. Thanks bartvde for supporting this work. r=crschmidt (closes #100)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5919 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 16:39:05 +00:00
Tim Schaub
a14418f53f Modifying initResolutions so that minResolution and numZoomLevels are respected if they are set as layer options. Note that if only minResolution and maxResolution are specified, minResolution will still not be respected in general. r=pspencer (closes #1300)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5918 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 16:28:21 +00:00
Frédéric Junod
866cfe631d Change OpenLayers.Layer.setIsBaseLayer to trig the 'changebaselayer' event not
the 'changelayer' event. r=crschmidt (Closes #1306) 



git-svn-id: http://svn.openlayers.org/trunk/openlayers@5917 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 13:10:46 +00:00
Éric Lemoine
221967cc3f Map.setCenter() should not call Layer.moveTo if inRange has changed to false.
With this patch you should no longer see tiles loading if your layer is out of
range or not visible. Hopefully! r=crschmidt (closes #937)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5913 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 22:59:31 +00:00
crschmidt
8487829362 add kleptog to authors.txt
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5912 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 18:12:19 +00:00
crschmidt
d597e4f9a9 Because onselectstart is null by default, our logic to set it and
replace it was somewhat lacking. This changes the behavior such that 
using hte drag handler does not totally disable text selection in IE. 
Patch from Bart, r=me (Closes #906)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5911 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 14:48:02 +00:00
crschmidt
ea5e96df85 Add support to set the 'title' property of a control such that it will
be displayed when hovering over the control in a control.panel via its 
panel_div. r=me (Closes #822)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5910 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 14:44:16 +00:00
Éric Lemoine
bd07adbb10 This commit fixes this: once a feature's been selected the "pointer" cursor is
always used when going over it. r=crschmidt (closes #1217)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5909 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 14:26:28 +00:00
crschmidt
5f3e05bb5e Set the fallThrough property to 'true' by default. This seems to have no
adverse affect on the examples, is documented in the 2.6 release notes, 
and will allow for easier display of built-in browser tooltips for 
controls. r=elemoine (Closes #1303)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5907 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 14:10:00 +00:00
crschmidt
83d5461796 Add a seperate method which actually does the formatting in the
MousePosition control in order to allow easier changes in formatting at 
the application level (with less duplication of code). Patch from 
Kleptog, r=me. (Closes #778)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5906 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 02:26:36 +00:00
crschmidt
cd266a99e0 Updating example for changed location where osm_id is stored
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5903 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-26 14:46:12 +00:00
crschmidt
bd7eaeb167 Add support for parsing and serializing OpenStreetMap data. Includes
tests, examples, modification to proxy.cgi, etc. This should allow one
to build an OpenLayers based OpenStreetMap editor with some effort, and 
makes it trivially simple to drop OpenStreetMap data from the API into 
your OpenLayers application. r=ahocevar,elemoine (Closes #1271)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5902 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-26 14:41:41 +00:00
Éric Lemoine
4159d1b1e8 add a manual test showing how OpenLayers should behave with respect to
when it should load tiles and when it shouldn't. As reported in #937
OpenLayers doesn't behave properly today, it breaks Test 1 and Test 3
of this manual test.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5901 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-26 13:36:35 +00:00
euzuro
3ccf5af733 arg parser triggers load of baselayer too early. thanks for the patch, kleptog. i've taken it upon myself to run the damn tests. all pass. (Closes #1290)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5900 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-26 00:00:37 +00:00
euzuro
082ff954d6 be more forgiving in removeMarker() -- do not cause script error if marker has already been removed r=cr5 (Closes #1152)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5899 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-25 23:46:03 +00:00
euzuro
fd321883a8 fix broken test_Handler -- stray try {} statement, presumably from debugging.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5898 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-25 23:28:26 +00:00
Éric Lemoine
a68492e003 The deactivate method of the modify feature control calls the unselect method
of its select feature control and passes it the current selected feature (if
any). If that selected feature is destroyed between the time it was selected
and the time the modify feature control is deactivated, the unselect method of
the select feature control will attempt to draw it on the layer while it no
longer has a geometry (it's destroyed!). This patch prevents this from
happening. Thanks to tlpinney for reporting the bug and helping on its
evaluation. r=tschaub (closes #1281) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5897 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-25 23:18:20 +00:00
ahocevar
45d5fdfd06 SelectFeature and OpenLayers.Feature.Vector.style["select"]: changed Control.SelectFeature to inherit properties that are not set in selectStyle from feature.style. r=tschaub (closes #1260)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5896 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-25 23:13:57 +00:00
crschmidt
8901982955 Fix broken handler test due to r5891 in IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5892 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-25 17:07:15 +00:00
crschmidt
e4ec1b58b0 Cleanup after the Navigation control (at least slightly more)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5891 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-25 01:35:34 +00:00
crschmidt
233af36280 "We know this doesn't work" warning.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5876 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 13:33:50 +00:00
crschmidt
81505f54b0 Add generic 'button' control. r=tschaub. (Closes #872)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5870 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 03:16:42 +00:00
Paul Spencer
412314e665 missing semi-colons
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5869 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 02:22:04 +00:00
crschmidt
cff527ba6f Change the Format.WFS to use Format.XML methods instead of
document.createElementNS methods. r=tschaub. (Closes #1278) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5868 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 02:18:56 +00:00
crschmidt
72a1cef5da Accidentally committed Format/OSM test in list-tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5867 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 02:14:10 +00:00
crschmidt
7af5b1c657 Fix silly typo which neither Paul nor I caught, with tests this time. Thanks
Tim for catching it.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5866 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 02:12:21 +00:00
crschmidt
f4b4e85433 loadURL does not escape + (plus) character in proxied URL. Thanks to rdewit
for following up on this, and to tschaub for reminding us of the right way
to do things. r=pagameba (Closes #1262)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5865 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 02:04:11 +00:00
Paul Spencer
ef1af7dee4 Add clone methods to Tile and Tile.Image, and add associated tests. r=crschmidt (closes #1296)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5854 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-23 20:29:46 +00:00
Tim Schaub
74bbd0347e Documenting supported event types for the map.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5853 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-23 20:08:43 +00:00
crschmidt
077db39d39 Fix mice.xml loading in IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5846 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-23 01:03:53 +00:00
crschmidt
ea06b08517 fix projection tests (wrong count, got missed in patch)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5845 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-23 00:56:10 +00:00
euzuro
68a05a7c0d remove test numbers from wfs layer's tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5844 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-23 00:01:58 +00:00
crschmidt
90d8517e73 Previous commit to change wfs tile to support formatobject + formatoptions
was the wrong patch: this typo was left out. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5839 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-22 15:43:07 +00:00
crschmidt
6937fabe3a Ensure that GeoRSS format does not fail when reprojection null geometries.
patch=Edgemaster, ar=me (Closes #1258)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5837 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-22 00:17:29 +00:00
ahocevar
bf39fa06a9 To make the example work out of the box for external URLs, the URL to the proxy must be changed. (closes #1287)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5836 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-21 23:44:49 +00:00
ahocevar
df78f09e36 "Pointtrack example does not work". r=crschmidt (closes #1287)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5835 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-21 16:13:59 +00:00
crschmidt
f28a1c314a Add support for reprojection of vector formats when loading data. This allows
for the definition of a 'projection' option on a layer. IF this projection 
object exists, it will be used to create the format's internal/external 
projection options, making it such that any data loaded will be reprojected 
to the map's projection automatically. r=pagameba (Closes #1273, #1225, #1269) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5828 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 20:33:54 +00:00
crschmidt
7a19fd6a95 Don't let the SVG renderer bail if the node we are trying to add is out of
bounds *and* not yet added to the map. r=pagameba (Closes #1274)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5826 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 20:11:38 +00:00
crschmidt
f6e20a0b75 Fix for Projection.equals fails when passed 'null'. r=pagameba
(Closes #1286) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5825 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 20:03:42 +00:00
Paul Spencer
ae9ceeec6c mis-spelling in comment.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5821 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 19:09:27 +00:00
crschmidt
a0e6dd7c7a Thought that normal selection wasn't working. Turns out I had a local
modification I'd forgotten about. take hover off to more closely resemble the
boxes-vector example.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5820 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 16:50:12 +00:00
crschmidt
d4ca01a134 vector boxes examplee
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5819 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 16:45:56 +00:00
crschmidt
7d15b18d86 Bump time out up to 12s
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5818 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 16:07:51 +00:00
crschmidt
6b4c0acc54 add missing mice.xml file
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5817 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 15:32:10 +00:00
Paul Spencer
fff63a1f9f (Closes #1187.) applying Bart's patch to add a zoom out option to the zoom control. r=pspencer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5796 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-17 16:35:49 +00:00
euzuro
52220873e3 See #964 - not only should we cancel ajax requests when we destroy the tile, but also when we initiate a new response. which is to say that when we instruct the tile to run a new request, we can discard the old one(s). that is what this patch does (as well as cleaning up memory in the destroy). Note that I have added this.request.destroy(); call, but commented out. this is a nod to future development/improvement of the OpenLayers.Ajax.Base and OpenLayers.Ajax.Request class to give it its own destroy() method. Just for fun I'll go ahead and open a separate ticket for that: #1277. Thanks elemoine for the reviews and the good dialogue to finishing up this patch.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5777 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-16 17:35:51 +00:00
crschmidt
28659c9ebc Add setUrl function for GML layer. Thanks to a well done patch (with tests!)
from Ian Johnson. (Closes #1264)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5776 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-16 17:07:20 +00:00
ahocevar
ab47cc6040 VML renderer fails to render features without strokeOpacity set. r=crschmidt (closes #1276)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5774 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-16 15:03:05 +00:00
pgiraud
e3e860b415 don't re-append the geometry node to root if it is already there to keep it in place and to prevent z-index to change, r=elemoine (closes #1066)
Thanks Eric for giving me the opportunity to have my first commit in OpenLayers trunk

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5772 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-16 08:40:22 +00:00
Éric Lemoine
0f2d373a90 If scales is set on the map, you cannot use minScale and maxScale on the layer. r=crschmidt. (closes #1199)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5755 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-15 20:49:24 +00:00
Éric Lemoine
c768a12a4d fix typo in ND comment (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5754 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-15 20:25:00 +00:00
Éric Lemoine
f053a4e0c8 Add hover handler. With this handler user-defined actions can be triggered as the mouse moves over the map and pauses. An example of use is send WMS/GetFeatureInfo requests. r=crschmidt,tschaub (closes #1255)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5746 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-15 12:54:47 +00:00
crschmidt
c1185e8f8b TileCache.js uses math.floor instead of math.round like TC does.
Thanks Brent. (Closes #1261)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5745 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-15 12:19:22 +00:00
ahocevar
df3d4b2d98 Fixed geo namespace declaration. The previously defined namespace was the one used in Atom feeds with georss:point, but we have a rss 2.0 feed here with geo:lat/geo:long.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5734 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-14 15:17:19 +00:00
ahocevar
651b60f8f7 New layer type PointTrack: connects point features to lines. r=crschmidt,elemoine. (closes #1167)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5733 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-14 14:42:29 +00:00
crschmidt
cb13a6d053 "GeoRSS Format Parsing fails with items with no geo-feature". Patch from
Edgemaster to fix this failure mode. r=me  (Closes #1258)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5715 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-11 01:16:18 +00:00
euzuro
454026baf8 remove test number from wfs tile test. no functional change here.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5709 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-10 17:03:39 +00:00
Tim Schaub
11c1ef3f68 The pixelTolerance check on the click handler only works if mousedown events get to the handler. This keeps the handler from failing in cases where mousedown is stopped and pixelTolerance is set. r=crschmidt (closes #1246)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5698 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-09 09:55:22 +00:00
Tim Schaub
5b31ee3c0a Giving the drag handler a stopDown property. Set this to true in the constructor options to let mousedown events propagate. r=crschmidt (closes #1247)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5697 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-09 09:50:21 +00:00
crschmidt
f176d12dc1 Fix redrawing of tiles in Safari, Opera, which don't fire onlod events unless
the img.src changes.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5696 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-09 08:36:41 +00:00
Tim Schaub
d864adeee0 Adding OpenLayers.Number.format for string formatted numbers. Thanks for initiating this Andreas. Nice pairing with you. r=me (closes #1253)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5686 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-08 18:22:39 +00:00
Tim Schaub
dc77bd5d5f Removing methods copied from the drag handler.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5685 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-08 17:34:34 +00:00
Éric Lemoine
21f2605b55 click handler's cachedEvent property isn't needed. r=tschaub. (closes #1252)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5676 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-07 23:49:59 +00:00
Tim Schaub
9193ef67d5 Gutting the OverviewMap control to give it an update. Now uses a click handler and a drag handler instead of its own event handling code. In addition, the control now has a minRecSize property. When the extent rectangle is smaller than the specified size, its style is switched. By default, we provide a rectangle replacement graphic. This can be customized with CSS. Finally, I'm tucking in one non-API property. The dragging arg sent to map.setCenter is now stored at map.dragging. This gives easy reference to dragging state where a reference to the navigation control and its drag handler is not convenient. r=pspencer (closes #1244)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5674 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-07 20:54:28 +00:00
Tim Schaub
580a44a1b3 Getting explicit about precision. We now support thirteen significant digits in coordinates when testing for geometry intersections. r=pspencer (closes #1245)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5673 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-07 19:54:44 +00:00
Tim Schaub
ef3ad090c1 If you'd like to try OpenLayers but only have Netscape 2.0, please buy a new browser.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5659 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-06 22:15:43 +00:00
Tim Schaub
d7cd93abf3 If your browser doesn't support the script tag, you have no business running these tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5658 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-06 22:10:28 +00:00
Tim Schaub
02ad66f580 keep local value (closes #1248)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5652 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-05 00:39:33 +00:00
Éric Lemoine
d516b63fe3 fix typo in Ajax.js. Thanks david reksten for reporting this. (closes #1242)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5644 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-03 09:58:39 +00:00
crschmidt
caefde18fe implement support for alternative js minimization in build system,
and if jsmin/minimize is not available, just spit out the uncompressed 
version.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5635 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-03 06:40:27 +00:00
crschmidt
c63ac2d80f Make buildUncompressed executable
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5633 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-03 05:52:37 +00:00
Tim Schaub
6048cdc108 Constructor doc comment for control panel.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5631 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-03 00:30:33 +00:00
Tim Schaub
d80bb6bd74 Oh please Google, give us some well named methods that solve this issue. We muddle around with obfuscated code trying in vein to solve your pesky setCenter flicker. This brings us a bit closer with even sized viewports but is still embarassingly wrong for users panning across the dateline with odd sized viewport. r=crschmidt (closes #1174)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5627 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-02 19:36:12 +00:00
crschmidt
4effccbb97 Uncommit unrelated part of r5433.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5626 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-02 19:27:14 +00:00
Tim Schaub
af76852841 Giving vector features an onScreen method. By default, this uses geometry.intersects. If a rougher approximation will do, call with boundsOnly set to true. r=crschmidt (closes #1238)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5625 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-02 19:16:58 +00:00
Tim Schaub
6791cf6086 Point, path, and poly handlers now clean up before calling callbacks. r=crschmidt (closes #1239)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5624 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-02 19:06:07 +00:00
Tim Schaub
d643492888 Proper handling of virtual vertices so we don't leave them on the layer. r=crschmidt (closes #1230)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5623 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-02 18:54:33 +00:00
crschmidt
67e260775e Make MapServer multi-url selection deterministic. (Closes #803)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5622 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-02 15:23:45 +00:00
crschmidt
09e0d3ec81 Update copyrights to 2008.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-01 08:14:55 +00:00
Tim Schaub
7cb4ba4354 adding click handler as dependency to navigation control
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5613 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-31 23:41:36 +00:00
Tim Schaub
b24f50efe3 Spaces only.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5597 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-31 00:43:51 +00:00
crschmidt
16d9d36da2 Slightly more informative docs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-28 13:11:36 +00:00
Tim Schaub
e636e82455 reordering tests for a bit easier reading
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5575 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-26 23:49:20 +00:00
Tim Schaub
9425869c2b Match XHR behavor at 2.5. The browser default content type is application/xml, so we set that as our default contentType option. Looks like there is no browser default for encoding, so we remove that. r=crschmidt (closes #1232)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5570 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-24 18:44:06 +00:00
Tim Schaub
f4df2a3b2a Changing prototype.js ajax stuff so exceptions aren't swallowed by default. If you want this behavior, set request.options.onException to something that swallows, or use OpenLayers.Ajax.Responders.register for onException. r=crschmidt (closes #1232)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5567 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-21 23:42:05 +00:00
Tim Schaub
86116ddd73 Making feature handler call over and out callbacks just once per mouseover and mouseout (of a feature). r=elemoine (closes #1226)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5555 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-21 08:48:08 +00:00
Tim Schaub
33e313b059 Separating jsdoc style docs into their own block. The new NaturalDocs doesn't parse these mixed blocks, giving us no class descriptions with the two together. (closes #1229)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5553 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-21 08:28:09 +00:00
Frédéric Junod
2447848e7f Coding style: dont use local variable when it's not necessary, remove new lines.
No functional changes, tests pass on FF2, IE6, IE7 and safari 3.0.4 windows.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5552 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-21 07:28:05 +00:00
Paul Spencer
c056118b59 Small patch to removeItem so that all instances of a value in the array are removed, even if they are consecutive by reversing the order in which the array is enumerated. Updated tests and checked in Safari 3, FF2. (closes #1228).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5543 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 20:22:36 +00:00
Éric Lemoine
2931cd3065 Add style property "display" to vector feature style. If display is "none" the feature won't be rendered and there's a DOM node for that feature it'll be removed. Commiting this on behalf of ahocevar. Thanks Andreas for the patch. r=crschmidt. (closes #1173).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5541 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 19:20:23 +00:00
Tim Schaub
2d1099d60d Abort XMLHttpRequest on tile.destroy for WFS. The loadURL function now returns a request object. Thanks pgiraud for the fix. r=crschmidt (closes #964)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5539 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 17:28:51 +00:00
crschmidt
59dd8b2d99 Fix to "style with no rule returns empty array" via the 'unruly.patch' from
tschaub. -10 points for bad pun, +10 points for catching this in his review
of the SLD code. r=me (Closes #1223)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5536 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 13:01:19 +00:00
Tim Schaub
3268e53ed1 Serious rewrite in the Ajax namespace by pgiraud to keep up with prototype.js 1.6. Thanks for the effort and for suffering numerous revisions. Now, let's cross our fingers... r=crschmidt,me (closes #1170)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5535 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 09:26:53 +00:00
Tim Schaub
44543b3e36 adding manual test for the feature handler
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5533 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 08:49:15 +00:00
Tim Schaub
36e04a689f Adding OpenLayers.Array.filter to mimic Array.prototype.filter. Adding panel.getControlsBy and related methods that use filter. Reworking map.getBy to use filter as well. r=elemoine (closes #1203)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5532 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 08:12:19 +00:00
Frédéric Junod
c44b028a30 Fix ND comment typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5531 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 07:37:26 +00:00
Frédéric Junod
52fb422c49 fix sdl broken url
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5530 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 06:57:48 +00:00
Tim Schaub
72dd4047af doc change only - feature vector not vector feature
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5529 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 06:47:28 +00:00
crschmidt
3751402ff8 importNode in XML.Format serializer to prevent reports of adding the node to
the wrong DOM element. This fixes tests in Webkit-based browsers
and FF3, which enforces this constraint. r=tschaub (Closes #1219) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5528 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 04:15:26 +00:00
crschmidt
2e507b68b7 Fix for "When Navigation control is inactive, doubleclick zooms in", using
the new click handler that Tim and I created over the weekend. (Hooray for
handlers!) r=tschaub (Closes #1068)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5527 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 04:11:52 +00:00
Tim Schaub
78bf7f5912 correcting url for apidocs in doc readme.txt
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5526 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 03:58:36 +00:00
Tim Schaub
981f00dd6d Removing the explicit maxResolution from the TileCache layer. We now depend on resolutions being properly set on the map or directly on the layer. r=crschmidt (closes #1212).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5525 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 03:50:08 +00:00
crschmidt
3b7e63a488 Silence these errors like we did for Opera. With this and #1219 applied,
Safari passes all tests. (Time to write more tests.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5524 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 03:23:39 +00:00
Tim Schaub
5babc73615 stop clicks on the point handler - this means no more clicks sneaking through while editing - if you wanted that behavior, speak up - r=crschmidt (closes #1020)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5523 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 03:02:54 +00:00
crschmidt
8eb682c02f More typos. am blind.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5522 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 02:49:51 +00:00
crschmidt
1d4b8f8c2a Typos.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5521 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 00:37:37 +00:00
Tim Schaub
7011c0f470 Big thanks to Andreas Hocevar for this SLD format class - this continues to extend his Rule and Style work by giving us the ability to read SLD docs - onward with style r=tschaub (closes #533).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5520 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 00:24:20 +00:00
crschmidt
acc8cfc0f2 add displayProjection API Property on the Map, and on relevant controls.
Spherical mercator example now makes use of this, displaying coordinates 
in lon/lat instead of meters, and permalink/argparser now work in lon/lat
as well. this functionality will make using SphericalMercator easier for
a number of applications. 
r=tschaub (Closes #1036)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5519 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 23:36:34 +00:00
Tim Schaub
811e35cff3 tidying up the doc menus - somebody has to be the doc nanny around here
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5517 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 22:15:32 +00:00
crschmidt
6d6c08fbef Formats now support reprojection using internalProjection and
externalProjection properties. These allow for the reprojection of data --
OpenLayers users with SphericalMercator get this built in for EPSG:900913, and
other users can use the external proj4js library available from MapBuilder SVN
to add support for any number of projections. This means that featres can be,
for example, transformed from a KML doc in 4326 to Spherical Mercator before
being added to a layer, making using SphericalMercator slightly more enticing. 
r=elemoine
(Closes #1039)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5516 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 22:07:12 +00:00
crschmidt
7440556585 Add reprojection support on Geometry classes. Geometries can now be transformed
in place by using .transform(source, dest). r=elemoine (Closes #1037) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5515 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 22:04:30 +00:00
Tim Schaub
50ec61dfc9 nd comments only - wrapping html in code block to make nd happy
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5514 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 21:55:28 +00:00
Frédéric Junod
e3406bf095 OpenLayers.Layer.Markers - propagate layer's opacity to the markers. Thanks
ahughes for the bug report and crschmidt for review and advices. (Closes #1114)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@5509 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 15:00:49 +00:00
Éric Lemoine
6fb48c0cd7 Enables unselecting selected features by clicking outside any feature. This is the default mode of the modify feature control. If you want to use the old mode where a click on a selected feature unselects that feature, set the toggle option to true. If you really want the old mode and not have selected features be unselected when clicking outside any feature, set the clickout option to false. The patch also adds the properties toggleKey and multipleKey to the modify feature control. With these one can temporarily enable the toggle and multiple mode, respectively. See the select-feature.html example to see all this in action. Thanks to pvalsecc and tschaub for the great colloration on this. (closes #1137)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5506 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 11:09:44 +00:00
Frédéric Junod
65ad59a277 Don't override tileSize, maxExtent and theme when calling
Map.setOptions(). Thanks pspencer for the review. (Closes #1206)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5505 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 07:30:52 +00:00
crschmidt
5c6934b0b0 Allow the use of custom GMapTypes via the Layer.Google. When passed a type in
the Layer.Google constructor, we check if the type we are given is not in the
map's list of types, and if so, add it. (Closes #1082) 
r=tschaub 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5504 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 01:33:20 +00:00
crschmidt
cc29ab1085 bring back removal of XML prolog.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5501 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 17:45:09 +00:00
crschmidt
5d4109a3ab Because IE serializes the processing instruction, we can't just grab the
firstChild, we have to actually do a getElementsByTagNameNS to be 
cross-browser friendly.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5500 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 17:06:09 +00:00
crschmidt
8572258fd1 no need to process the expected data twice.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5499 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 16:54:15 +00:00
crschmidt
d9230297ec Change test to use importNode if available, and add a test for serializing a
node as well as a geometry. (The latter test will fail in FF3 until
#1219 is fixed.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5498 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 16:52:06 +00:00
Frédéric Junod
546d49fc34 Fix (again) the setSize() test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5494 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 15:26:53 +00:00
Frédéric Junod
ac4f4dba7c Fix the setSize() test. Regression introduced in r5488
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5492 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 15:14:23 +00:00
Paul Spencer
32081348bf Fix tests for Safari 3. Composite styles like border have to be read through their component properties. Invalid styles, like filter, return null regardless of what is assigned to them.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5491 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 14:26:08 +00:00
Frédéric Junod
f51315c26d Fix ND comment. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5490 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 13:49:19 +00:00
Paul Spencer
9200676f89 Fix tests for Safari 3. For some reason, you can set the style.overflow property but you have to read it as overflowX or overflowY.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5489 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 13:47:23 +00:00
Frédéric Junod
c1b008dcb3 Remove the 'blinking' phenomenon on IE by setting the display elements to
'absolute'. Thanks to pgiraud for the patch (Closes #965)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@5488 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 13:08:35 +00:00
crschmidt
d4ff6a4c8b XML Serialization doesn't wrap nodes in documents. This breaks or changes
serialization in some browsers. This fixes the XML Format based
tests in Safari. (Closes #1218)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5487 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 12:17:34 +00:00
crschmidt
93d73acd49 for the autommated tester, make the delay_call timeouts ~3 times
as long -- presumably, the tests are less 'interactive', so the longer
wait doesn't hurt anyone, and this should help prevent failures due to
timeouts.l 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5486 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 12:16:23 +00:00
Frédéric Junod
bcc623f444 Fix ND comments and indentation. No functional changes.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5485 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 10:49:29 +00:00
Frédéric Junod
a61e5fb91c fix Class ND comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5484 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 10:37:04 +00:00
crschmidt
7b04c305cd Run the four eventPane test in more browsers. If this breaks IE, you have
permission to beat me senseless for not being able to test it there first.
Note that I'm pretty sure this still doens't work with FF3.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5479 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 05:15:47 +00:00
crschmidt
a50bfb4d4e Remove XML prolog from tests. Browsers can't seem to decide whether they like
it or not, and #1218 will cause the behavior to change across the board, 
most likely, so we'll just be slightly more accepting, since the XML prolog
is almost definitely unlikely to not matter.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5478 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 03:44:21 +00:00
crschmidt
b2d12df117 revert previous commit. This is actually caused by a bug in Format.XML.
(See #1218)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5477 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 03:33:01 +00:00
crschmidt
611cb91171 Vector test fix
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5476 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 02:44:17 +00:00
crschmidt
1b40772aaf Safari's XMLSerializer support is broken: it doesn't export namespaces, so
the KML comes out namespaceless. Wrap the test up so that it doesn't totally
fail, and Paul is adding this to KnownIssues. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5475 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 02:23:41 +00:00
crschmidt
9e6d2a649a FF and Opera have different ideas about how this test should work.
FF2 won't work unless the map is loaded 'onload' -- but in Opera, adding
something to onload causes opera to believe that the page never finishes
loading within the test framework. FF3 works fine with this test if we 
don't run it in a new window, but FF2 does not. For the time being, make 
it work in our most well-supported platform -- FF2 -- and add a
FIXME to make it work in Opera. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5474 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 17:09:42 +00:00
Paul Spencer
5b2f4a2335 loosen the test for XML write by removing the <?xml ... ?> header before comparing the results (fixes test for Safari 3 and FF3)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5473 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 17:05:38 +00:00
Paul Spencer
5a11ac8ac6 patches Test.AnotherWay._constructor_name to return an appropriate value using 'typeof' instead of an empty string when the constructor of a value could not be correctly determined using the current logic. This fixes many of the tests in Safari 3 and does not appear to affect FF2 or IE6 since the current logic is working for them.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5472 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 16:44:00 +00:00
Frédéric Junod
50ad4d4090 coding standards: line too long, fix ND comment typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5471 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 14:45:34 +00:00
Éric Lemoine
dc2cc625f3 Do not call preFeatureInsert() and onFeatureInsert() callbacks when the modify feature control and the regular polygon handler internally adds point geometries to the layer. This is accomplished by adding an 'options' argument to the addFeatures() method in Layer.Vector. If that options argument has the silent property set to true, then the preFeatureInsert() and onFeatureInsert() callbacks aren't called. Thanks tschaub and fredj for your input. Thanks crschmidt for the final review. (closes #1148)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5470 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 14:36:39 +00:00
crschmidt
ccf16fa024 Work around the Opera test failures for now, and log to debug that they fail
so that someone who is motivated knows to fix them.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5469 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 13:39:04 +00:00
crschmidt
8479ecb4a0 Don't test reprojection in Opera, since we get different results, and
we still want this to b reported as a success, but log them to debug so that
people are aware the test is being skipped.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5468 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 13:35:07 +00:00
Éric Lemoine
175c401e0f ModifyFeature: enable dragging without enabling vertex modifications. Special thanks to tschaub for the collaboration on all the changes to the modify feature control. And thanks to crschmidt for the review. (closes #1188)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5467 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 10:12:56 +00:00
Éric Lemoine
8733534ad8 Fix test_Style.html on IE. Thanks Andreas for fixing this in no time.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5466 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 09:56:50 +00:00
Éric Lemoine
a1522246a6 Subclasses of markers layer should destroy, then clear their list of markers.
Thanks crschmidt for the review. (closes #1123)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5465 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 09:03:01 +00:00
crschmidt
772b6452ce fix wrapdateline test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5464 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:33:29 +00:00
crschmidt
dc05a91d4a don't open a new window: we don't need to in order to run this test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5463 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:29:46 +00:00
crschmidt
29f2280fb8 missed one -- this function has two maps initialized.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5462 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:23:09 +00:00
crschmidt
8a6f50496f fix more tests in Opera by adding map.destroy() calls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5461 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:20:10 +00:00
crschmidt
0fd898859f fix more tests in opera
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5460 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:14:00 +00:00
crschmidt
03f6ddd5d0 Fix tests in opera by cleaning up after ourselves and destroying our maps. TMS
tests now pass.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5459 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:11:59 +00:00
Tim Schaub
5667311cba add geometry.intersects method for all geometry types (closes #1072)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5458 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:05:35 +00:00
crschmidt
189b12d020 Come closer to passing tests in opera by destroying all map objects we create.
If we do not do this, then every time we instantiate a new map using the same
div, the clientHeight as reported by the browser grows, and eventually we're
doing tests with a totally different sized window than we intended to.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5457 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:03:59 +00:00
crschmidt
80fb92686b Opera serializes attributes before namespace declarations.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5456 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 05:28:06 +00:00
crschmidt
bebcb130f7 Opera doesn't encode greater than symbols, only less than, when using
XMLSerializer. Format.GeoRSS tests now pass.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5455 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 04:57:13 +00:00
crschmidt
5f6cabf2ec opera drops the ';' on the assigned property when retrieving it.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5454 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 04:47:30 +00:00
crschmidt
abfe313ab4 Opera returns a 'null' instead of an empty string if the attribute doesn't
exist. Fallback to an empty string if getAttributeNS returns null. With
this change, the Format.XML test passes in Opera. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5453 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 04:38:12 +00:00
crschmidt
428710e3af Add support for reprojection of lonlats/bounds. (Closes #1213)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5452 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 03:12:57 +00:00
Tim Schaub
5884c02683 shorter url for run-tests.html
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5451 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 02:18:04 +00:00
crschmidt
2f1c17446b apply r5447 to auto-tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5449 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 01:30:16 +00:00
crschmidt
430906ff22 FF3.0b1 has a bug with testing innerWidth/innerHeight of frames. This will be fixed in later versions, but none are released yet.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5447 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 01:19:57 +00:00
crschmidt
bacdad9e30 Add auto-tester page for OpenLayers. Three differences from the main run-tests.html:
1. Meta-refresh, set to 20 minutes.
 2. 20 second page download timeout, instead of the standard 6.
 3. After all tests have finished, posts results back to 
    http://openlayers.org/test/results.cgi , which shows the results. Failures kick
    off an email (currently only to me).

To set up auto-testing for your platform, set up a machine with a browser running full
time, and open the URL:
 http://openlayers.org/dev/tests/auto-tests.html?run=all

tests will be run automatically on load, and every time the page refreshes, they will
run again, recording their results each time.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5444 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 00:55:07 +00:00
crschmidt
db90eca5bb An antidote to r5440: Allow for '@requires: ' to trigger single file build
dependencies, since this is our most common tpo in this regard.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5442 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 23:15:28 +00:00
Tim Schaub
41bfd3b4d4 single file build broke with r5401 as well - layer now requires OpenLayers.Projection (see #1035)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5441 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 22:45:29 +00:00
Tim Schaub
7fddbbdaef very trivial typo - but single file build is broken without this fix (closes #1215)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5440 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 22:33:12 +00:00
crschmidt
b5b1cd3c9d Fix a couple minor mis-spelings in
OpenLayers.Geometry.Polygon.createRegularPolygon (Closes #1214)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5439 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 20:00:20 +00:00
Tim Schaub
6ad22b8e6a adding a click handler for flexible cross-browser single and double click handling - add to a control and set click or dblclick callbacks - thanks for the review and pairing crschmidt (closes #1211)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5438 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 04:42:14 +00:00
Tim Schaub
aa3536ed3a Fixed test for GeoJSON collections (closes #1067).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5437 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 03:09:08 +00:00
Tim Schaub
35054c4a41 non-functional change - just removing an extra comma from r5435 to appease IE (see #1067)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5436 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 01:08:46 +00:00
crschmidt
44a6b9b176 GeoJSON should parse and serialize GeometryCollections as a Geometry.Collection
object. (Closes #1067)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5435 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 21:45:51 +00:00
crschmidt
7881c2099a When trying to deactivate a control from within that control's featureAdded
event, a null exception is encountered. A null check fixes this bug. (Closes
#1143)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5433 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 21:29:06 +00:00
crschmidt
f746ed4211 Fix getZoomForResolution() on FixedZoomLevels, which is passed an extra
(unused) argument. (Closes #1046)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5431 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 16:32:33 +00:00
crschmidt
45c420782c Don't flip SVG Y values anymore, since we're working in pixel space these days,
and the Y transforms just make working with the SVG directly -- for example,
with people modifying it to support text -- more difficult than it should be.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5430 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 16:24:31 +00:00
crschmidt
fb3c02354f Add support for the extremely awesomely super-comprehensive rule based styling
that Andreas has been working so hard on. I think this is the single most
awesome commit I've ever had the pleasure of committing. The results of this
commit are described on http://trac.openlayers.org/wiki/Styles: essentially,
this makes it possible to style features in all kinds of fun ways based on
rules, and will also form the underlying basis for #533. Things this patch
adds:

 * OL.Rule classes. These classes allow you to do tests against the propertie
   of a feature, and set a style based on these properties -- so you can
   compare the 'speedlimit' property of a line, and test if it is > 60, and if
   it is greater than 60, render it in a different color. You can also test
   combinations of rules using the OL.Rule.Logical class, and test featureids
   with the FeatureID class. 
 * OL.Style class: The OL.Style class lets you wrap up Rules into styles that 
   can be used with drawFeature to draw the feature in the selected style.
 * OL.Layer.Vector.drawFeature will check if the given style is an OL.Style
   object, and if so, it will draw the feature accordingly.

examples/georss-flickr.html shows usage of these classes.

Many, many thanks go to Andreas for all his hard work on this: this code really
is very pretty, and includes unit tests for all the classes (and we know that I
am a big fan of tests.)

Three cheers for Andreas: Hip hip, hooray! hip hip, hooray! hip hip, hooray!


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5429 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 16:17:50 +00:00
crschmidt
43a4f9320b Tile.Image should register for error events with respect to tile loading
events -- this means that if an image fails to load, it will still trigger
a loadend event, and the layer will eventually be in a state where it is no
longer waiting to load. Thanks to Andreas for the investigation! (Closes #842) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5428 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 14:16:18 +00:00
crschmidt
4322cf921d Forgot to svn add before committing.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5416 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 05:52:15 +00:00
crschmidt
c720e44c7c Patch from Gregers Rygg to fix setOpacity for AnchoredBubble popups.
(Closes #1204)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5415 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 03:51:21 +00:00
crschmidt
c9fdb6122f Create Format.Text, and have Layer.Text use it. (Closes #1033)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5412 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 22:02:00 +00:00
Tim Schaub
7c04a7f88a tweaking the dynamic script tag adding bit (closes #1092).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5411 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 20:48:19 +00:00
crschmidt
a170e3fdf6 Add support for transformation functions without using proj4js, and make
the SphericalMercator mixin register two transformations to/from EPSG:900913,
EPSG:4326. Thanks to Tim for the feedback and review. (Closes #1210)

This allows us to transform points to/from SphericalMercator 
without proj4js support -- and if other projects need similar functionality, 
they can write their own custom transformation functions rather than 
modifying proj4js to support some custom projection.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5410 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 20:45:42 +00:00
Frédéric Junod
9dd5d0e6da Declare 'proj' and 'projCode' properties, simplify verbose code
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5408 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 13:52:43 +00:00
crschmidt
c1eb0fe24b Fix for "Permalink captions and harcoded to be smaller". (Closes #747)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5406 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 12:11:33 +00:00
Frédéric Junod
22bbf98398 Include tests/test_Projection.html and lib/OpenLayers/Projection.js (taken from
projections.2.patch). (Closes #1035)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@5405 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 08:36:36 +00:00
Frédéric Junod
47edbf4524 Fix bad spelled word
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5404 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 07:30:32 +00:00
crschmidt
2a00af3dd7 Move scale control styling into CSS file where it belongs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5403 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 04:47:43 +00:00
crschmidt
f223101539 Apply a fix to KML format to support > 4k characters in a linestring.
(Closes #1088)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5402 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 00:01:13 +00:00
crschmidt
abe2a52c31 With a confirmation that Tim is happy considering this a review, I'm going to
go ahead and commit this (relatively lighttweight) patch to the code so that
the projection library base API is there, even though for the most part, it's
not usable yet. This changes map.projection from being a string to being a 
class, with a projCode on it. (Closes #1035)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5401 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 23:29:18 +00:00
crschmidt
c3c2895e8c Use Format.GeoRSS to do the work in Layer.GeoRSS. (Closes #1025)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5400 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 23:23:02 +00:00
crschmidt
5824170f10 Box Handler should use CSS to style its box. (Closes #1070)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5399 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 19:51:49 +00:00
Tim Schaub
3e652566e8 triggerEvent can now be called with additional arguments for the listeners - this means instead of getting news like 'hey, someone won the lottery' listeners now get news like 'hey, you won the lottery' - in addition, the triggerer gets back the return from the listener, so if a listener wants to say 'dont tell anyone else' the triggerer gets that message - thanks for the reviews (closes #1189)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5398 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 17:30:52 +00:00
Tim Schaub
0b39ae35ce remove unused code that referred to element.geometry - thanks for catching this pgiraud - I missed it in r3043 (closes #1140).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5397 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 17:08:38 +00:00
Éric Lemoine
2f7fad80df Handler.Point doesn't render points if no default resolution props in map object. Thanks fredj for the review. (closes #1205)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5396 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 14:53:36 +00:00
Frédéric Junod
0cd5ba5b9f fix ND comment typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5393 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 13:09:01 +00:00
Frédéric Junod
7063cdab3a Speed up geometry rendering with VML by replacing string concatenation by array
concatenation and joining. Thanks tschaub for the patch optimization and
review. (Closes #1095)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@5392 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 10:24:51 +00:00
Tim Schaub
8f1bca93b1 IE6 is happy, IE7 is happy, I'm grumpy - seems like it takes IE a while to properly update the elements here - adding in an alert lets tests pass in IE6 - clearing the renderer does the same thing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5391 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 23:35:14 +00:00
Tim Schaub
fc442271b7 try namespaced element first for ie7 - what a godawful mess
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5390 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 23:16:08 +00:00
Tim Schaub
5a70226676 throw a real geometry in there for good measure
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 22:53:06 +00:00
Tim Schaub
4ae06d5be9 this fake renderer needs an eraseFeatures method - thanks pgiraud for catching this
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5388 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 22:50:26 +00:00
Tim Schaub
ac1f51a19a renaming getLayersByType and getControlsByType to getLayersByClass and getControlsByClass - since controls have a type property, we want to leave room for a real getControlsByType - thanks for the review elem (closes #1153).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5387 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 20:17:30 +00:00
Éric Lemoine
00d6f66c06 removeLayer must reset layers z-index. Thanks tschaub for the review and the new patch. (closes #1090)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5386 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 20:08:49 +00:00
Tim Schaub
8f38213e86 scope matters
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 17:45:39 +00:00
crschmidt
4722009ade A coworker points out that all old OpenLayers builds are pointing to an invalid
location for the license. Fix it by adding a reference to the current license
location.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5380 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 02:23:03 +00:00
Frédéric Junod
fa81ea81a6 Remove the drawCurve method from the renderers because it is never used. Reported by pgiraud (Closes #1138)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5373 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-11 08:32:18 +00:00
Frédéric Junod
a9b2a64bdc Util.modifyDOMElement don't update the opactity if the passed value is
evaluated as false, passing 0.0 won't work as expected. Fix it. Spotted by
sebastien and reviewed by crschmidt. (Closes #1168)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@5372 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-11 08:23:52 +00:00
crschmidt
354817649d MousePosition control throws error when no layers are on map. Fix it so that
they don't. Thanks for the review, fredj. Includes tests. (Closes #1029)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5371 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-11 07:27:45 +00:00
Tim Schaub
b105017586 removing console call from example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5370 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-10 23:06:27 +00:00
crschmidt
6a1b77b382 Turn the pixels into geographic coordinates.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5369 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-10 23:01:24 +00:00
crschmidt
d72fb3c130 move walkthrough from Schuyler over into doc, since it is not an example,
and update links in the process.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5363 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-08 14:32:20 +00:00
crschmidt
7da6a3540e Merge the excellent documentation work done during foss4g into trunk. Many
thanks to all the contributors who helped put this together. 
I'm not exactly sure of what's going to happen with this, but for now,
at http://openlayers.org/dev/doc/examples.html you can see links to all the
examples *with descriptions*. Hooray!


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5362 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-08 14:21:53 +00:00
Tim Schaub
ebf611c932 adding getBy and related methods to map - this allows flexible retrieval of things like controls and layers - thanks elem for the review (closes #1153).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5361 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-08 00:18:56 +00:00
crschmidt
e5998110b3 Fix broken link. (thx hue)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5360 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-07 22:49:52 +00:00
Frédéric Junod
382b750edd fix ND comment typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5358 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-07 15:48:18 +00:00
crschmidt
de427d30f5 Fix missing units param in call to getResolutionFromScale . This should have
been fixed a while ago, but we were waiting on a test: Now that it's been
reported by four different users, I'm just going to go ahead and fix it,
grudgingly, rather than wait longer on a test. (Closes #958, #1117) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5357 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-07 14:50:15 +00:00
crschmidt
46b75b2154 Mark the forward and reverse mercator functions as public. This is hte
canonical way of transforming data, and we should make sure users feel 
comfortable using it.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5350 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-06 15:00:48 +00:00
Tim Schaub
6758f490bc set map.baseLayer to null when removing base layer - thanks for review elemoine (closes #1191).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5349 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-05 17:20:56 +00:00
Frédéric Junod
6b1b2f0f37 There is 2 tests for the getLength function, remove one of them
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5348 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-05 13:25:05 +00:00
Tim Schaub
e58ba687cd remove geometry components backwards - thanks for the catch flixo and review crschmidt (closes #1190).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5347 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-05 08:53:27 +00:00
Frédéric Junod
fce3f19724 fix ND comment, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5346 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-05 07:54:59 +00:00
Éric Lemoine
b71f8bc6c9 applies latest patch to the renderers tests, special thanks to pgiraud for his great work! (hopefully closes #1128 this time)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5340 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-04 13:36:02 +00:00
Frédéric Junod
75795805b4 ND comment fix (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-03 10:01:18 +00:00
Frédéric Junod
7e43f8688a ND comment fix (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5332 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-03 09:29:00 +00:00
Éric Lemoine
8231be5a4b Another fix for an ND comment typo, thanks pgiraud! (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5331 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-03 08:49:57 +00:00
Éric Lemoine
db47606f6c ND comment fix (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5330 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-03 08:44:30 +00:00
Éric Lemoine
a277332238 fix test_Elements.html tests and make them compatible with r5323 (#1172) (closes #1184)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5329 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-03 08:13:04 +00:00
Frédéric Junod
fec5d40fc7 Add the missing this.layername in TileCache constructor (in clone function), add a unit test for this function (Closes #1180)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5328 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-03 06:59:05 +00:00
crschmidt
92f5a7d749 Reversing the order we set opacity changes the behavior when using VE, but
nothing else. This fixes the fact that you can't use client side opacity 
while including the Virtual Earth javascript. Thanks for the spot from
Jeff Yutzler. Includes a manual test. (Closes #1175)   


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5326 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-02 20:46:15 +00:00
Éric Lemoine
70ec5ed6de ND comment fix (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5325 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-02 12:36:34 +00:00
crschmidt
73fe6380c7 Fixes and performance improvements to VML renderer problems with
externalGraphic, diligently filed, investigated, and fixed by The great and
powerful Oz, er, Andreas, who is becoming my new vector rendering hero. 
(Closes #1172) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5323 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-01 22:57:58 +00:00
crschmidt
a291ff04fb Fix a mistake in my commit of the tests: forgot to 'svn add' the directory
I needed. Good catch, elemoine. (Closes #1128)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5320 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-01 19:16:05 +00:00
crschmidt
d91db97efa Renderer tests, from pgiraud. (Thx!) (Closes #1128)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5319 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-01 15:03:23 +00:00
Éric Lemoine
f6091b2ecf FixedZoomLevels.js doesn't properly set the resolutions array. Special thanks to Sebastien Roch for the bug report and to Tim Schaub for the code review and extra comments. (closes #1124)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5318 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-01 14:04:18 +00:00
crschmidt
76fa0da3b7 New OpenLayers.String.format function to Format a string given a string
template and some context -- to be used within the SLD framework. Developed
by Andreas and Sr. Schaub. Thanks, guys!


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-01 13:20:59 +00:00
Tim Schaub
10cf5bfefc drag, rotate, resize, and reshape with the ModifyFeature control - thanks pvalsecc and elemoine for the inspiration, tests, and code - good partenering with you guys (closes #1150).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5301 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-30 17:09:23 +00:00
Tim Schaub
600435ad21 adding a manual acceptance test to tests folder
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5295 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-29 20:57:55 +00:00
Frédéric Junod
155796bcfd Fix ND comment typo. Spotted by blaamann
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5291 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-28 07:02:31 +00:00
Tim Schaub
527866aa51 adding doc comments to text layer - tidying up doc menus
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5289 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-27 18:20:18 +00:00
Frédéric Junod
f1fe7c7c63 Fix ND comment.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5287 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-27 11:40:53 +00:00
Frédéric Junod
7d0d11fba3 Correctly check if the alpha hack needs to be applied to the layer's div by testing
if the alpha option is set and by calling Util.alphaHack(). 
Thanks elemoine for the review (Closes #1130)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5284 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-27 10:17:54 +00:00
Frédéric Junod
38652a7686 Change Util.alphaHack to return 'False' not 'undefined' as defined by the API. (Closes #1169)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5283 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-27 10:05:18 +00:00
Tim Schaub
12c7cb07b2 extend now only sets defined properties on the destination - if your source has a property set to undefined, the destination property will not be set (closes #1160).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5281 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-26 23:45:43 +00:00
Tim Schaub
d7905ec735 applyDefaults now respects null - if you want to override a property with applyDefaults, set it to undefined first - applyDefaults also now correctly applies a custom toString method (closes #1063).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5280 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-26 23:34:50 +00:00
euzuro
0b571f128f fix gmaps key for domain
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5271 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-23 21:52:36 +00:00
crschmidt
263fade72a Mark drawFeature as stable (Closes #1059)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5244 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 20:31:13 +00:00
Paul Spencer
24d4fdc1bd apply patch from #1106, minor tweaks for performance. (Closes #1106)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5243 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 20:14:50 +00:00
euzuro
a13cacdde9 protect stopObserving() from trying to remove nonexistant events. thx for review, cr5 (Closes #1151)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5241 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 18:50:55 +00:00
crschmidt
164f96714f Commit this quite-excellent patch from Roald de Wit, which adds:
* the ability to 'flip' the GML format xy ordering on parsing, allowing the 
   GML parser to parse 'real' GML in 4326 when the option is on.
 * parsing of GML 'envelope' as a Polygon. this is primarily to support 
   the next...
 * GeoRSS GML read support, using the GML format when neccesary. 

Includes a comprehensive set of tests, and is really one of the better assembled 
major patches from a first-time contributor I've ever seen. Thanks for the hard
work, Roald! (Closes #1109) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5238 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 15:53:32 +00:00
crschmidt
a4d3f48752 'supported' is defined, API-wise, to return 'false' if not supported, but the
VML test returns 'undefined' instead. Fix that with this patch from fredj.
(Closes #1165)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5237 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 15:48:41 +00:00
crschmidt
de8c0119f1 Only add the VML namespace if we haven't already added it. (Closes #1141)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 15:18:12 +00:00
crschmidt
bd15c32ca4 Add attribution for OSM.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5234 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 13:36:22 +00:00
crschmidt
ffc9a57575 typo snuck into previous commit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5232 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 08:38:49 +00:00
euzuro
3719a3e875 tabs. no func change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 08:24:30 +00:00
euzuro
82e43d743f add smooth drag panning to yahoo layer. the trinity is united. killer props to cr5 for digging through and finding these. ladies and gentlemen, you now have *no*excuse* for not using openlayers. smooth and sexy GYM commercial layers. (Closes #1163)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 08:22:39 +00:00
crschmidt
9acb997b20 Add an option for turning off smooth dragging, since it works on a pixel level,
and our geography doesn't, so the numbers end up off in the north-south
direction when *not* using spherical mercator. Now, if someone comes to use us
and says 'oh my! you ruined me!' we can say 'options! we love options!' and do
a rain dance. (Closes #1164) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 08:22:35 +00:00
euzuro
14ae911b47 update ND comment. tabbing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 08:06:26 +00:00
euzuro
cd9ee75a73 give the ve layer smooth (but safe) dragging. just like google layer. (Closes #1161) (See #1053)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5227 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 07:54:45 +00:00
euzuro
b89126ae20 get resolution from map via the accessor instead of directly from the property. (Closes #1162)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5226 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 07:41:15 +00:00
crschmidt
f7d417af54 change the spherical-mercator -- our prime example -- to use 2.82 of Google,
just so we pick up smooth dragging, and fix the broken API key (for my domain,
cough) of draggingGoogle.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5225 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 03:25:49 +00:00
euzuro
0e53fa10bf patch for smoother dragging of google layer. For now this remains a wierd (and admirable) hack... restricted to the use of v2.82 of the google api... but hot damn. it does work. hopefully the good folks at google might help us out and open this up as part of the API. Dinosaur egg kudos to cr5 for finding this and taking the time to plug it in. Thanks to tschaub for the quick review. (Closes #816)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5224 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-20 22:21:54 +00:00
euzuro
3ae69b0789 improve map's getLayer() function, includes improved test. cheers to pensyakito for bringing this up and to cr5 for the review (Closes #861)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5221 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-20 06:21:07 +00:00
euzuro
8296db3072 fix ND definition for OpenLayers.Renderer.SVG. Thanks for spotting this one, fredj (Closes #1156)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5217 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-19 19:04:53 +00:00
Tim Schaub
aadb1b31a1 removing unused third arg from nodeFactory - thanks for the patch pgiraud (closes #1139).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5213 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-16 18:30:19 +00:00
Tim Schaub
eef420ded6 correcting title of example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5211 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-16 17:34:52 +00:00
Tim Schaub
7a37430ef5 adding point and line drawing to the select feature demo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5210 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-16 17:33:54 +00:00
Tim Schaub
ceecacfe3a adding irregular option to regular polygon control - now, go draw rectangles, and more - thanks for the review elem (closes #1098).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5200 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-15 23:37:36 +00:00
Éric Lemoine
75163f6635 avoid code duplication in Renderer/SVG.js, thanks fredj for the patch (closes #1144)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5188 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-15 15:31:48 +00:00
euzuro
ad40db89af Fix for addPopup()'s 'exclusive' option -- reworking of the for loop to make sure all popups are removed without error. Great find on this by li ethan and excellent work turning it into a patch by fredj. Once again, open source prevails. Thanks everyone. All tests pass FF/IE6. (Closes #1149)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5187 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-15 14:54:18 +00:00
Éric Lemoine
adf2381731 Make OpenLayers.Util.applyDefaults() return the modified object. To be consistent with OpenLayers.Util.Extend() and be able to use anonymous object as the 'to' object. Thanks fredj for the patch and tests. Thanks euzuro and crschmidt for the reviews. (closes #992)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5162 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-09 20:13:31 +00:00
Tim Schaub
cbdf3522a7 correct writing of multi-part geometries for KML - thanks for the swift review crschmidt (closes #1132).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5161 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-09 18:50:06 +00:00
Tim Schaub
0ae59513db minor space and comment changes only (for KML format)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5160 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-09 18:19:14 +00:00
crschmidt
c986fe376e "Sometimes, it is handy to have "zoomWorld" icon in
OpenLayers.Control.PanZoomBar. This patch enables it." Patch from jachym.
(Closes #1131)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5159 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-09 17:57:27 +00:00
Tim Schaub
10eaa329ba stop the renderers from flashing black and filling white - ahhh, much prettier vector drawing now - thanks to pgiraud and crschmidt (closes #1042).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5158 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-09 17:14:10 +00:00
euzuro
15e6809bf2 remove some stray oldschool jsdoc comments for the CLASS_NAME property. this re-closes the 853 ticket (Closes #853)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5157 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-09 16:23:54 +00:00
Tim Schaub
d3125f250c putting google back in there - excuse me for breaking this acceptance test - how about a tests/accpetance directory?
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5145 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-07 19:13:21 +00:00
Tim Schaub
9e35dd7581 getting rid of google script here
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5142 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-07 17:26:42 +00:00
Tim Schaub
4a3011a0f3 even more explicit in the TileCache layer doc comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5128 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-06 19:40:23 +00:00
Tim Schaub
aab744a5c8 correcting a typo in a doc comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5127 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-06 17:05:09 +00:00
Tim Schaub
99d4d662e4 A bit more documentation on the TileCache layer class.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5126 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-06 17:00:22 +00:00
Schuyler Erle
4b83b83018 Simple walkthrough made for FAO GeoNetwork workshop. Intended to be a stopgap until the new automated example indexing is committed to trunk.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5118 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-06 11:26:29 +00:00
Schuyler Erle
2834d66879 Change examples from using OnEarth WMS because it no longer support 512px tiles.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5117 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-06 11:24:21 +00:00
Tim Schaub
4fe97a92c6 giving the overview example two maps
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5114 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-05 17:41:39 +00:00
Tim Schaub
2b55af61b9 give wfs delete transactions the correct feature.fid - thanks for the review elemoine (closes #1119).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5113 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-05 16:02:29 +00:00
crschmidt
1cccb29a3b add yards and nautical miles to OpenLayers units. (Closes #1065)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5101 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-02 02:20:25 +00:00
crschmidt
07965f6fed Update TileCache format determination to support TileCache's weird jpg->jpeg
translation correctly. Also, update example to show usage, and tests to test
jpeg instead of testing png incorrectly.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5100 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-02 02:16:44 +00:00
Tim Schaub
8007298d7b Dissalow vertex deletion while dragging - thanks for the review crschmidt (closes #1122).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5099 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-01 23:06:10 +00:00
Tim Schaub
ba8354b593 Make the drag handler only call done if it actually dragged - thanks for the review Eric (closes #1118).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-01 20:53:06 +00:00
Éric Lemoine
756f6ca24d handlers have to check if layer exists before destroying it. Thanks pgiraud. (closes #1107)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5085 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-01 13:37:16 +00:00
euzuro
7ab5d456a8 couldn't help making this small code reduction. no functional change. all tests pass.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5084 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-01 08:31:27 +00:00
euzuro
e14f0c20b8 since tschaub fixed the limitSigDigs() function to no longer be restricted to integers, nd comments should reflect that.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5083 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-01 08:23:10 +00:00
euzuro
6360ebadcd when we made the nd switch, we agreed that functions which are on static objects would be called Function and functions defined in prototypes would be called Methods. Since these are all now static functions, they should be labelled as such. No functional change here.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5082 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-01 07:22:11 +00:00
crschmidt
2b7dc4d9e4 remove unneccesary reproject: false option.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5064 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-26 02:06:46 +00:00
Schuyler Erle
db416603e1 Now 20% more lite!
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5063 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-25 21:51:40 +00:00
Paul Spencer
16aa4cf7f0 (Closes #1084) Apply patch to set resolution and correctly scale width and height of SVG rectangles.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5029 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-19 18:39:27 +00:00
Paul Spencer
65d3947045 remove local scope variables from global namespace.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5028 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-19 18:34:00 +00:00
Tim Schaub
4bafcddff1 properly initialize OpenLayers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5027 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-19 18:20:18 +00:00
Paul Spencer
5c4dae31c3 embedded comment in license text removed to clean up final lint error on built version of OpenLayers.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5017 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-19 01:14:39 +00:00
Paul Spencer
4a6e180637 semi-colon and curly brace stuff for the Rico library.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5015 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 23:49:41 +00:00
euzuro
dc6466c621 as long as we're cleaning up this little function. let's make it look pretty. Another non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5011 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 16:27:09 +00:00
euzuro
8f0ded1092 remove added (but commented out) console.log() call from r5002. As long as we're going it, let's give our return string a better variable name and move the newParams into its own variable, too. no functional change here. all tests pass.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 16:25:43 +00:00
euzuro
032601d315 Fix small oddities from r5002. Odd character in ND for pagePosition() and /** **/ style comment in function getParameters(). Our style up until now has been to use // for comments when mixed with code. This allows for easier disabling of large chunks of code using /** **/ for debugging.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5008 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 16:17:35 +00:00
Paul Spencer
4cf0ffeb9f remove DigitalGlobe layer that was inadvertantly added in changeset:5002
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5005 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 13:57:17 +00:00
Paul Spencer
3e9beffc99 large scale syntactic clean up adding missing semi-colons and curly braces around blocks.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5002 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 12:27:35 +00:00
crschmidt
954df47c30 Update news.txt to indicate the release of 2.5. (And I wanted to be commit
5000.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5000 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 01:21:33 +00:00
euzuro
4564090ee7 readability fix for setTileSize(). No reason to be re-declaring the size variable -- it already exists as a parameter. Thanks to pvalsecc for spotting this one. :-) (See #1094)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4991 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-17 15:28:54 +00:00
crschmidt
faac1f98c9 Fix synchronous Ajax requests in IE. Reported by bphilippot (Closes #1097)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4990 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-17 14:21:07 +00:00
crschmidt
ed3221441c Refactor SVN layout in compliance with RFC/LicenseChange. This hopefully
completes an important blocker for moving forward with OSGeo incubation. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4985 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-17 02:21:22 +00:00
crschmidt
91e9add5a8 TMS doesn't take params. (Documentation fix only, no functional change.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4945 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-14 20:06:43 +00:00
euzuro
d9821260ae update ND and function declarations for getFullRequestString() in WFS/WMS to match the original in their superclass, HTTPRequest.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4930 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-12 18:26:52 +00:00
crschmidt
961a5a6613 Update release building script to build naturaldocs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4928 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-12 13:30:22 +00:00
crschmidt
b9a04a0e9b "In Feature.js the popup is always newly created, instead of reusing the
existing popup.", reported by (and original fix provided by) Bart. Patch
reworked, and tests modified to accomodate for destruction of popup. (Closes
#815) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4927 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-12 01:36:12 +00:00
Éric Lemoine
561f4d6a22 callback for close button on popup (closes #1061)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4916 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-10 19:03:18 +00:00
crschmidt
8312bb3f6d Fix a missing argument in the onFeatureInsert call.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4878 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-08 19:18:41 +00:00
crschmidt
d2ecceb5f0 Integrate pierre's suggested changes from 1012, based on user confusion when
working with the vector-features.html example. (Closes #1012)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4871 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-07 00:47:30 +00:00
Tim Schaub
3a00d05358 adding example of panel outside viewport
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4825 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-04 19:21:24 +00:00
Tim Schaub
29c33888cf Give MouseToolbar a CLASS_NAME (closes #1057).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4820 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-04 18:39:17 +00:00
crschmidt
84ab6d9a2f The createCRSObject stuff never really worked. Unfortunately, the tests didn't
catch it because they were all minimal unit tests -- so they never hooked
up features to layers with projections. This fixes the createCRSObject
function, including updated documentation, and includes tests for regression.
(Pullup #1062)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4819 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-04 18:11:15 +00:00
euzuro
71c338c3c6 coding standards. no functional change. (Closes #1047)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4802 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 22:34:08 +00:00
euzuro
c38e1ee76c update comment to be valid for given code. (Closes #1048)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 22:32:59 +00:00
euzuro
145e446ceb rearranging the style here for setBaseLayer() so that it's more readable, less duplication of code. No functional change, all tests pass
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4800 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 22:32:01 +00:00
crschmidt
5904d15680 KML should use the correct namespace for the placemark it is processing.
This is slightly more expensive for parsing, but leads to the ability to 
load almost all KML Placemarks with geometries on the web, instead of a small
portion of them.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4797 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 21:15:09 +00:00
crschmidt
408a7aee84 Disable dragging on the Yahoo API, since we implement it ourselves. Recent
API changes have made working with the Yahoo! API more painful (more errors)
but have also made available a function to change that, which we now use.
(Pullup #1052)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4793 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 20:11:50 +00:00
euzuro
137a69b17a Change to getZoomForResolution() (and those who call it) so that it does not choose the closest fit by default. Doing so was causing us problems, because user would drag a zoom box and then the map's new zoom would not contain said zoombox. Not good. Default is back to how it was before, but now there's an option 'closest' for those times when what we really want is the closest. Right now, the only time that's true is when we're switching baselayers. This is based on the work from sandbox/euzuro/zoomToResolution, which is started by reverting r4318. (Closes #1043)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4792 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 19:21:05 +00:00
euzuro
cb494d0c3f Allow user to specify the 'slideFactor' for the default panzoom control. (Closes #996)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4785 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 16:19:04 +00:00
crschmidt
d29782e3e2 Add API method for changing an icon's marker image.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4784 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 16:17:55 +00:00
crschmidt
3d71b4ff4e IE thinks that window and document.body are really the same thing -- even
though one has a style property and the other doesn't. This means that when
we pass in 'window' to pagePosition, it blows up, but it didin't before a 
recent reorganization. Here, we create a short term preventative measure to
ensure that old apps don't break -- this should be fixed in 2.6. 
(See #1034, #1051)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4783 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 16:15:43 +00:00
crschmidt
61bd874785 Fix Format tests (committed the wrong one.) (See #1024)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4779 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 14:57:45 +00:00
crschmidt
8ddd13db34 GeoJSON format back up to spec with draft 4. (See #1028)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4770 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 05:32:18 +00:00
crschmidt
cb3cde8d1c Support W3C Geo in Format.GeoRSS -- this.geons was referenced ,but never
defined. Add property and test. Reviewed by SDE (thx!), (See #1024) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4769 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 05:30:17 +00:00
euzuro
5957d25583 Even though we're deprecating them, we can't go back. WMS.Untiled and MapServer.Untiled both need to be able to clone correctly. Patch with tests. (See #1013)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4761 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 01:39:08 +00:00
crschmidt
d000ca7b6b The WFS moveTo function was not calling addTileMonitoringHooks on new tiles
it created after the first one. this means that the layer loadstart/loadend 
functions were never being called. Fix with a patch by rdewit. (See #1045)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4760 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 01:23:35 +00:00
Tim Schaub
a1d3f20632 All geometry equals methods now work with bad arguments (closes #1041).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4707 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-01 01:03:29 +00:00
Tim Schaub
7ce4621042 Add vector layer to map (see #1040).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4692 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-30 20:07:08 +00:00
Tim Schaub
149e85c923 In changing base layers, we now rely on the old map resolution instead of the old map zoom. This means that for layers with different resolutions arrays, we try to keep the map resolution as consistent as possible (instead of keeping an arbitrary zoom level consistent). This change also fixes a bug that comes up in changing base layers for layers with different length resolution arrays (closes #1032).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4682 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-30 18:11:27 +00:00
crschmidt
01154beb5d from fredj: "in lib/OpenLayers/Layer.js and lib/OpenLayers/Control.js the div
id is not passed to the createDiv() function." (Closes #1015)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4677 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-30 16:41:42 +00:00
crschmidt
33f85eeb35 From fredj: "layer.destroy() calls removeLayer() so control.destroy()
should do the same by calling removeControl()". (Closes #1009)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4676 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-30 16:25:43 +00:00
crschmidt
46c8730601 Make VML Renderer use namespace set in this.xmlns, instead of hardcoding it
in two places. From fredj. (Closes #1002)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4675 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-30 16:24:02 +00:00
crschmidt
2b2fccc847 Better firebug include. (Closes #1014)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4674 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-30 16:22:58 +00:00
euzuro
1390a0a6f7 Do not copy by reference size/bounds/position in making a new tile. All tests pass ie6/ff (Closes #1026).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4579 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-28 21:37:05 +00:00
euzuro
eacfa2b88a Remove 'drawn' property from Tiles. (Closes #1018)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4557 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-28 20:45:31 +00:00
Schuyler Erle
af2f5b6577 Add serviceVersion property to Layer.TMS. (see #1023)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4521 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-28 18:13:55 +00:00
Paul Spencer
8c003733cf add missing semicolons.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4505 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-28 17:17:45 +00:00
euzuro
c28f13f88d Fix to remove extraneous clear() from Tile.moveTo (Closes #1017)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4502 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-28 17:11:18 +00:00
crschmidt
0307d4868a Fix to mouseposition destroy from fredj
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4431 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-21 11:44:36 +00:00
crschmidt
85e9e30908 Extract attributes wrapped in CDATA, by adding an additional nodeType. (See
#1007) This closes the last remaining bug for 2.5RC3 -- I'll release that in
the morning unless anything new pops up.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4429 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-21 01:14:25 +00:00
Tim Schaub
640b62adc8 Adding a concatChildValues method to the XML parser. This gets around a messy 4kb limit for text node lengths - over which browsers split values among multiple siblings (see #1006).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4410 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-20 17:06:04 +00:00
Tim Schaub
ad4044cd3b Make the drag handler tidy up after itself a bit more. This solves the click blocking after shift-drag issue (see #1003).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4400 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-19 21:01:04 +00:00
crschmidt
8cf5670134 Remove kml-layer-linestring, now replaced by kml-layer, since we only have one
useful KML file anymore. (See #1001)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4394 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-19 13:49:16 +00:00
crschmidt
2e965baa17 Make KML example use kml/lines.kml instead of the now-deleted mc-search.kml.
(See #1001)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4393 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-19 13:44:15 +00:00
euzuro
6ce8949189 update nd for OpenLayers.Control.PanZoom. (See #983)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4386 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-19 01:56:00 +00:00
crschmidt
80491d626a More for docs updates: with the splitting of BaseTypes, we want to include
them all by default into builds. This will achieve that. (This fixes bart's
email to the users list: "[OpenLayers-Users] OL 2.5RC1" sent this morning.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4382 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-19 01:05:23 +00:00
Tim Schaub
1f745b4be9 New behavior for layer.getZoomForResolution. This method now returns the index of the resolution closest to the passed in resolution - making for fewer unwanted resolution changes, and a generally happier populace (see #990).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4381 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-19 00:23:26 +00:00
euzuro
a2fabd7d17 test to see if 'fromLatLngToContainerPixel' is defined on the prototype, not on the class. (See #994).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4380 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 23:47:40 +00:00
euzuro
471e5c5a1b whitespacing for google layer. strangely this has been there since 2.2. wierd. (See #983)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4377 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 21:03:35 +00:00
Tim Schaub
9ce8a4eb85 Use documented getContainer method instead of chasing obfuscated properties. Note that we are still tip-toeing around the dom here assuming they won't pull a fast one on us - Google users beware (see #994). Big thanks to Uz for help sleuthing this one out.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4375 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 19:04:54 +00:00
Tim Schaub
3f9aeb3ae6 speeling error in ndocs see (#983).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4372 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 16:48:09 +00:00
crschmidt
e34178f4c9 In discussion with Jachym, Tim pointed out that he has already written a
proxy that supports post -- and his was more complete. Pull in Tim's. (This
is from the wfsv sandbox.) Thanks, Tim. (See #991)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4371 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 15:47:08 +00:00
crschmidt
0dd277b31b Add POST support to proxy.cgi (See #991) from jachym.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4370 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 13:48:52 +00:00
Tim Schaub
5c3abf8dd4 No circular dependencies allowed by toposort. Geometry requires WKT (for toString) and WKT requires geometry. Removing requires from WKT to fix the single file build (see #983).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4363 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 08:26:24 +00:00
euzuro
ccd7a34701 Replacing Tabs with Spaces. (See #988)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4356 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 23:43:48 +00:00
crschmidt
cc78cf3a13 Fix Layer.Image typo in setUrl (See #985) reported by Linda on the mailing
list. Thanks for the review Tim.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4355 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 22:49:25 +00:00
Tim Schaub
91fab27e7d Simplify click handling in the drag handler - this makes the sequence down, move, up a complete drag (see #982).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4354 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 19:25:26 +00:00
Tim Schaub
2337f9f2d8 Adding angle brackets to link class names in the docs (see #983).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4353 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 16:59:16 +00:00
Tim Schaub
1812c7fb0d documenting requirements for format classes (see #983).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4352 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 16:44:33 +00:00
Tim Schaub
0e417a3315 doc tweaks for Bounds (see #983).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4351 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 16:39:05 +00:00
Tim Schaub
9f0c017f92 A few doc tweaks for BaseTypes (see #983).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4350 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 16:30:44 +00:00
crschmidt
e961366869 "New permalink code maintains existing parameters ... including the
lat/lon/zoom/layers." Reported by bobkare (thx, bobkare!) with a patch by same,
rewritten by Schuyler, reviewed by me -- and I'm committing because Schuyler's
whitespace was bad. (RC1, here we come!)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4345 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 03:47:57 +00:00
crschmidt
b2a4acb717 When you have a polygon feature over a point feature in the same layer, and you
attempt to drag the point feature, you get errors about this.feature.geometry
being undefined. Fix this by not unsetting this.feature inside the
doneDragging.  (Closes #971)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4341 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-16 19:27:23 +00:00
crschmidt
158bbd71d6 Add HTML example of attribution to attribution.html (based on comment from
penyaskito)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4340 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-16 17:31:19 +00:00
crschmidt
d75f7430af Don't clobber existing prototypes. Since OpenLayers doesn't use 'foo.bind'
anymore, preferring OpenLayers.Function.bind(function, object), we don't
need to provide this -- so if someone provides something different, don't 
clobber it. (Closes #962)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4339 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-16 17:15:54 +00:00
euzuro
48ceca88a5 only try to set the attribution string if the map actually has some layers. (Closes #979)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4338 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-16 17:13:15 +00:00
crschmidt
65466b0c27 Controls need updating. This update should fix the tests from the attribution
control addition. This should be fixed better -- specifying the index is the
wrong way to test this.  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4337 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-16 16:43:25 +00:00
crschmidt
8a3fb3dce3 "Layer Switcher does not do sufficient layer state information storage",
review by e-dog. (Closes #970)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4336 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-16 16:22:45 +00:00
crschmidt
f4eb411602 Erik points out that the KaMap grid updates need fixed wrapdateline tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4335 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-16 16:19:05 +00:00
crschmidt
f4deff5f34 Add Attribution control to the map by default. (No visual affect if no
layers have 'attribution' set.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-16 16:01:51 +00:00
crschmidt
f505542fbe "The Permalink control passes an element as the first parameter, however, the
initialize.apply is called with the arguments object, which causes an error if
an element is passed into the control." Also applied to Scale. Now fixed
with review from e-dog. (Closes #978) Fixes the only problem I found with 
migrating the Boston freemap to 2.5.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-16 15:59:11 +00:00
crschmidt
294f84ba15 Modify news.txt to be something similar to up to date. This reorganization
removes outdated 2.0 information (which has since moved to the wiki) and 
instead acts as a release history, with pointers to the appropriate release
notes in the wiki. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4323 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-15 18:08:13 +00:00
crschmidt
620d88a798 Remove MetaCarta KML from the repository, and show the KMLParser example with
kml/lines.kml instead.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4322 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-15 17:36:47 +00:00
crschmidt
027361ba82 Fix VE -> MM in mm-mercator demo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4321 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-15 17:12:23 +00:00
crschmidt
43aee06b29 MVS had weird licensing text in it that was way old and unneccesary.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4320 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-15 17:11:34 +00:00
crschmidt
785adf30c6 Seperate out date fields and add more descriptive text.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4319 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-15 17:10:50 +00:00
crschmidt
cf7544c8e1 Reverse order of destroying and removeTileMonitoringHooks. Thx for review,
Schuyler! (Closes #976)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4318 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-15 15:35:24 +00:00
Schuyler Erle
c941651e72 Correctly size Layer.Grid and Layer.KaMap in rows/cols for all values of Grid.buffer.
Closes bug #928. Thanks a mil to bartvde for identifying the solution.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-15 14:48:22 +00:00
crschmidt
121a5553f4 Add explanatory text to georss and TMS examples after comments from John.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4316 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-15 14:30:10 +00:00
crschmidt
a9121320d3 GeoRSS serializer now returns string instead of XML element, after the change
to format.xml subclass.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4315 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-15 13:45:52 +00:00
crschmidt
cecc66140d Make panel use icons that aren't just 404s.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4314 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-15 13:09:31 +00:00
Schuyler Erle
cab8696707 Doc change to clarify the purpose of Layer.Grid.buffer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4313 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-15 03:56:02 +00:00
crschmidt
87bf9a624a tim points out a silly behavior in the popups.html that I added when I
turned it into an acceptance test.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4308 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 23:58:22 +00:00
crschmidt
dd1b1433e4 Format.GeoRSS didn't use Format.XML serializer, nor did it support reading
anything other than points. Both of these are resolved with the new GeoRSS
support, which supports all of GeoRSS simple. Includes tests and significant
review from Senor Schaub, and addition to the examples/vector-formats.html
file. (Closes #973)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4305 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 22:50:30 +00:00
Tim Schaub
2478677985 Deprecating all prototype extensions. This puts all OpenLayers functionality in the OpenLayers namespace. If you are using any of the Function, String, or Number prototype extensions, start using the functional equivalents in the OpenLayers namespace - the prototype extensions will be gone in 3.0 (closes #712).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4302 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 20:08:47 +00:00
crschmidt
af72722ded This is just a minor style change, so I'm going to go ahead with it just to get
it out of the way. This fixes the issue reported earlier today, where the
navtoolbar left/top weren't clickable in Firefox. (Closes #972)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4301 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 20:07:27 +00:00
Tim Schaub
1be9e0da28 Pushing Google's invalid key alert into the debug pane in our tests. No reason to sit around clicking alerts from Google while testing on a different host.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4299 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 16:41:07 +00:00
crschmidt
b8ae9acb09 Add reproject to VE example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4297 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 11:00:15 +00:00
Éric Lemoine
45bc9e78a2 String.indexOf no longer exist, remove String_indexOf test. Thanks fredj! (closes #963)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4296 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 08:52:30 +00:00
crschmidt
53a2811807 minor cleanups to zoom levels example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4295 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:47:08 +00:00
crschmidt
b638cdc878 Yahoo example uses yahoo layer first.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4294 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:44:45 +00:00
crschmidt
773fb2df27 remove unmaintained webcam page (man, do i need a haircut)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4293 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:42:02 +00:00
crschmidt
589248149a Demonstrate WorldWind layers better.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4292 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:40:14 +00:00
crschmidt
a3e05dd3a6 refractions TMS server is gone, use a labs one instead.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4291 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:37:34 +00:00
crschmidt
929ca23216 TIGER data in demo was removed from server it was hosted on --
remove demo.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4290 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:35:10 +00:00
crschmidt
268e2bce03 remove acceptance test that is now tested via automatic testing.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4289 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:31:41 +00:00
crschmidt
32ece7ad7b Fix URLs to be non-transient.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4288 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:24:34 +00:00
crschmidt
c41f8496eb Move marker away from top left corner of the world.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4287 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:16:30 +00:00
crschmidt
7d814591d0 layer load monitoring demo was slightly wonky -- looks like it somehow got
applied twice. anyway, cleaned it up and made it so that i don't get a 
side scroller in my browser.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4286 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:14:33 +00:00
crschmidt
b88400380f make kamap map the default layer in this demo, rather than a standard,
non-kamap openlayers map


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4285 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:10:52 +00:00
crschmidt
cde090a3f1 update google example to use reproject on overlay, even though we don't
like it much.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4284 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:07:13 +00:00
crschmidt
91e7880b9c Another old, expired googlemrcator demo.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4283 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:05:52 +00:00
crschmidt
219a479f09 Remove old GoogleMercator demo that is superceded by spherical-mercator.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4282 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:04:29 +00:00
crschmidt
7cbf3483d2 gml.write() now returns a string in a cross browser way. Update
example so it should now work in IE.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4281 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:01:35 +00:00
crschmidt
9fc0008148 Geojson.html is deprecated in favor of vector-formats.html
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4280 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 01:57:15 +00:00
crschmidt
9f26d45802 Move freemap example to 'projected-map.html', to indicate the content
inside. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4279 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 01:54:50 +00:00
crschmidt
18fbc84824 Clarify issues in freemap example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4278 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 01:53:55 +00:00
crschmidt
85fe4d7b55 Ciesen removed their beta WMS servers, so these layers are just errors. Remove
example.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 01:43:04 +00:00
crschmidt
60492b305d Remove canvas demo, removed from code after vector stuff added.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4276 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 01:42:12 +00:00
crschmidt
217298f606 Use of Layer.Grid.buffer
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4275 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 00:47:42 +00:00
Tim Schaub
076af6590c The SVG renderer allows for rendering of null geometries. The VML renderer does not. This change gives us cross-brower consistency in the case of null geometries (closes #968).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4273 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-13 23:32:34 +00:00
Tim Schaub
dd8d895460 Modify away! This was a long time coming. Thanks all for contributions. The ModifyFeature control lets you select a feature for modification, drag around vertices (or the whole feature in the case of a point), delete vertices, and add new vertices (closes #941).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4272 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-13 23:22:06 +00:00
euzuro
9724bbaeee Here we have finally solved the smashing of the Event object problem. Once and forall. God save the queen when 3.0 comes we're getting rid of this sloppiness. See r4040 for more info on why we've done all this. (Closes #880)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4271 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-13 23:17:44 +00:00
Éric Lemoine
ab53ba3982 allow user to specify offsets for externalGraphic (closes #893)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4268 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-13 20:36:36 +00:00
Tim Schaub
68472d888b Give the map a restrictedExtent property. Setting this property to some bounds causes map navigation to be limited to those bounds. Depending on the resolution settings, the viewport may still display area outside the restricted extent - though it will be centered on the restricted extent in that case. Using a combination of restrictedExtent and maxResolution, you can limit map navigation to the extent of your data (or any arbitrary extent). See the restricted-extent.html example (closes #340).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4261 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-13 15:27:35 +00:00
crschmidt
1368cb64e5 Fix Google Maps Key.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4260 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-13 14:13:37 +00:00
crschmidt
4b3a13bd92 fix copyright dates on json/geojson.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4257 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-13 10:30:37 +00:00
crschmidt
d8ab004642 Remove class_name jsdoc for consistency, thanks fredj. (Closes #853)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4256 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-13 10:27:39 +00:00
crschmidt
74b66a29d3 Update class creation on Format.XML. Thanks, fredj. (Closes #823)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-13 10:26:51 +00:00
crschmidt
e0ec60a410 Move popup redraw after layer.moveTo in setCenter to fix google maps
redraw case.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-13 02:29:52 +00:00
euzuro
ff82936fba Add 'loadstart' and 'loadend' events to some of our exciting layers like WFS, GML, GeoRSS, and Text. tests to back it up. (Closes #808)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-13 01:23:06 +00:00
crschmidt
aa70587033 Prevent popups from failing when getLayerPxFromLonLat returns null (which is possible
in the case of a not-yet-setup layer, for example).


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 20:48:28 +00:00
crschmidt
ebc60202b7 Patch from Erik/I to fix:
Popups don't move adequately after zooming with scroll wheel
(Closes #494)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4250 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 20:14:14 +00:00
Tim Schaub
7eb1dafa71 making google tests conditional so invalid keys don't fail tests - debug reporting instead
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4249 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 20:04:26 +00:00
euzuro
448f64e019 coding standards -- mostly ND comment style corrections and lines longer than 79char
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4248 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 19:25:20 +00:00
euzuro
b3e11ca51e coding standards -- mostly ND comment style corrections
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4247 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 19:22:33 +00:00
euzuro
ded09b6131 use the namespace corrected event.stop(). (See #880)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4246 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 19:02:09 +00:00
crschmidt
5ddca00750 Add custom-control-point demo showing use of point handler to return data.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4245 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 18:30:01 +00:00
crschmidt
024779d898 With review from elem and additional tests, add filter by geometry type
to select feature control, with tests. (Closes #951)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4243 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 15:05:18 +00:00
crschmidt
e1fa24df5c fix for overviewmap open/close button doubleclick resulting in map zoom.
confirmed by erik, caught by acceptance tests. (Closes #757)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4242 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 14:41:34 +00:00
Éric Lemoine
6f16455b1c select features on "click" as opposed to on "mousedown" (closes #891)
thanks to all for the review and to crschmidt for updating the patch


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4241 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 14:25:34 +00:00
crschmidt
446759fd65 FredJ reviewed my work here and said it solved the problem that he reopened
103 for (specifically, that baselayer changes always resulted in a null 
attribution string), and fixes spelling. This commit makes the attribution
control work and stuff. (Closes #103)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4237 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 13:40:28 +00:00
Éric Lemoine
fecab1c963 fix typo in a ND comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4234 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 11:19:28 +00:00
crschmidt
48a9da00ec Erik helps me fix tests. I threaten to kill him for criticizing my lack
of semicolons. All is well. Fix for "keep selected features drawn with 
the right style". (Closes #916)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4232 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 05:12:00 +00:00
euzuro
c519879391 adding OpenLayers.Control.Attribution to the list of controls in the OL suite. includes example and tests. very nice. Thanks to pensyakito and cr5 for getting this together and complete. (Closes #103)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 04:37:45 +00:00
crschmidt
983618f2fa fix for 'map elements are selected in IE when using shift key' in drag
handler from pierre.
Confirmed that this can be tested simply by using anything with a drag handler
in IE, so it will get caught in acceptance test. 
(Closes #792)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 04:18:59 +00:00
euzuro
0e8e7ab620 making the layerswitcher a little smarter. Instead of fancy 'noEvent' parameters, we just keep track of the state at each redraw. When asked to redraw, we then check first to see if anything has changed before going ahead with the redraw. Also in this patch, we add a 'visibilitychanged' event to the layer's events object -- upon request by users. (Closes #878)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 04:00:31 +00:00
euzuro
7a37ed4423 make sure permalink updates itself when layers change name/visibility or when a baselayer switch is made. (Closes #359)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 03:26:35 +00:00
euzuro
315f20bc9b Temporary fix for WFS race condition where a tile is destroy()ed but an associated httprequest has not yet returned. Great report, Pierre G. (Closes #820)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4227 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 02:37:09 +00:00
crschmidt
f662d49682 Add useFeedTitle option to georss layer -- defaults to true -- to determine
whether to use the remote title or the local name. (Closes #731)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4226 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 02:18:33 +00:00
crschmidt
8f402c063f Adding Scroll Bars in TextFile Popup Windows via Layer.Text layer. (Closes #834)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4225 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 01:58:27 +00:00
crschmidt
259fe7ac81 check boxes by default.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4224 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 01:51:46 +00:00
Tim Schaub
ae35651fbd natural docs patch, fixing up some inheritance links and menu issues
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4223 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-11 23:31:44 +00:00
Tim Schaub
9d1baf68f7 exposing the map for firebuggers - and removing some crufty html comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4222 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-11 21:50:35 +00:00
crschmidt
0aba585bc0 With review from elem, and oversight from tschaub, rolling in
SphericalMercator changes. Note that this explicitly does *not* include 
r4182 , so as to keep changes to a single logical set: that should be
filed in a seperate bug if it can be reproduced against trunk after this
commit. Hooray for Tim, thanks for all the feedback, onward and upward!
(Closes #686)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4221 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-11 21:16:28 +00:00
crschmidt
d0aebc1a81 Fix for getFeatureFromEvent method on destroyed layer. (Closes #761) Review
by elem (yay)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4220 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-11 20:19:35 +00:00
Tim Schaub
65f6830448 Full read/write support for KML. All KML 2.1 geometries supported. All OL geometries supported (closes #927).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4219 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-11 15:18:42 +00:00
crschmidt
abeecc555a Add Tile_WFS tests -- just a pretty much empty wrapper at the moment.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4218 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-11 14:46:55 +00:00
crschmidt
82c64254e5 Fix lacking code from #666-- I had originally wanted to add this, but couldn't
craft a test which exposed the lack ... until i realized with pgiraud's help
that my test was backwards to begin with. (Closes #666)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4217 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-11 14:26:08 +00:00
crschmidt
ec8a6b05b3 FredJ points out that this was never used or needed. I dug back and found out
that it was added in the Original Prototype -> No Prototype conversion -- 
but looking at the code, adding it was clearly a mistake. Removing 
String.indexOf. (Note that this has no affect on the code: this function
would never be called, because it wasn't defined on the prototoype.) 
(Closes #963)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4216 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-11 14:23:37 +00:00
crschmidt
359c66ed52 Pull in upstream fix from Prototype, patch by fredj (thanks fredj!) to fix
String.prototype.trim. (Closes #961) Note that we should also be more careful
not to clobber other library prototypes. (See #962) I'm going to check this
in to fix the bug for 2.5, and we'll work on the latter in 2.6. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4213 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-11 11:16:51 +00:00
Tim Schaub
6245c0827c allow geometry collections to be rendered (closes #960).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4212 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-11 00:22:09 +00:00
Tim Schaub
c3af58d78c update example to show gml read/write
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4209 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-10 22:47:13 +00:00
Tim Schaub
84498e6d3b GML format rewrite - now subclasses from XML format. Refactored code to get ~2-3x improvement in parsing time. Thanks for all the tests crschmidt (closes #938).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4206 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-10 22:02:18 +00:00
Tim Schaub
35dae2bdb0 Adding a RegularPolygon handler for drawing squares, triangles, circles, etc. Demo in the regular-polygon.html example. Also adding a createRegularPolygon class method to the Polygon geometry class. Thanks to crschmidt for all the tests and help getting this in (closes #828).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4205 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-10 20:24:27 +00:00
Tim Schaub
623e6e7112 copying geojson.html to vector-formats.html - this will be the place to demo all read/write vector formats
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4203 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-10 17:55:58 +00:00
Tim Schaub
b76edb8833 putting up a basic non-slippy example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4202 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-10 17:18:52 +00:00
crschmidt
ed7daa46fc Example of how to open a popup when selecting a feature.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4194 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-07 15:25:55 +00:00
crschmidt
8c5aec16fa Missed documenting this because it's only used in the tile, so it
never got stuck in the apiproperties. (Commit will fix docs related
to recent question asked by user on IRC. Thanks, hobu.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4189 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-04 20:39:15 +00:00
crschmidt
a339074539 Add test_KML stub (does nothing useful.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4188 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-04 15:28:14 +00:00
euzuro
a113ac58b3 coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4186 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-04 11:11:42 +00:00
euzuro
dab3144c16 coding standards - mostly 4ixing spacing issues with ND comments.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4185 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-04 10:34:45 +00:00
euzuro
b58afacb96 coding standards. 79 char limit on lines. no 4unctional di44erences here.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4184 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-04 10:28:16 +00:00
crschmidt
b92e372f49 the Reproject option on tiles has never worked quite perfectly (because of
#429). With the new GoogleMercator? layer going into 2.5, we shouldn't be
needing this anyway, so turn it *off* by default, so that we don't have to 
deal with the pain anymore. (Closes #881) Thx to euz for review. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4181 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-03 15:49:39 +00:00
euzuro
d6de04cddd rollback added semicolons from r4151. no ; after a regular function declaration. also some small coding standards whitespace.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4157 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-31 15:15:07 +00:00
euzuro
8ae2a01b66 rolling back ;'s after a function declaration, cleaning up some whitespace. no functional changes. all tests still pass ff && ie6. note that it has never been either a policy or a priority for us to maintain coding standards in the test files. I'm only doing this as an exercise for my brain, waiting for the second cup of coffee to kick in.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4156 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-31 15:08:38 +00:00
euzuro
a8d7097e67 more cleanup of tests. adding ';' to end of function definition and other minor coding style mods. tests still pass in IE6/FF.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4153 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-31 12:31:43 +00:00
euzuro
0c108138e8 updating some coding style in tests. let's give function declarations a closing semicolon. seems the right thing to do (and reduces syntax bugs in my editor ;-) -- a couple other small stylistic changes here too. test still passes in IE6 and FF though - no worries
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4152 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-31 12:22:09 +00:00
euzuro
e221a6acd6 coding standards. missing ;
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-31 10:58:40 +00:00
euzuro
254339705d add extra tess for limitSigDigs to check for errors triggered (See #862)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4150 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-31 10:53:08 +00:00
Tim Schaub
b3e524960b adding basic tests for the select feature control
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-31 00:27:28 +00:00
Tim Schaub
6c7824cfb0 adding basic tests for the feature handler
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4148 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-30 23:56:04 +00:00
Tim Schaub
cecf760f29 make the drag handler and drag feature control tidy up after themselves - as a bonus, give the drag feature control an onStart method. Thanks for the review crschmidt (closes #950).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4147 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-30 23:25:49 +00:00
euzuro
17a4129b55 give a popup that is created by a feature a reference back to that feature. thanks a million to tschaub for the lightning and helpful review (Closes #949)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4134 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-30 18:33:45 +00:00
euzuro
2fdf43cc8c ND changes to createPopup function. No functional changes here.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4130 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-30 17:53:01 +00:00
euzuro
b55aca93fb nd cleanup. coding standards. no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-30 17:49:02 +00:00
euzuro
64c41835fa allow for custom popup class on a feature. (Closes #947)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4128 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-30 17:17:58 +00:00
Tim Schaub
be4180fd75 Use degrees instead of radians for geometry.rotate method (closes #948).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4127 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-30 17:10:26 +00:00
euzuro
b78aec44c9 coding standards. no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4115 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-30 12:55:51 +00:00
Éric Lemoine
3e1f2e4305 add new vector style property "graphicOpacity"
enabling mixing non-opaque vector geometries with opaque external graphics on the same vector layer
(closes #873)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4114 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-30 05:59:29 +00:00
Tim Schaub
06d41662d7 Clear the feature stored by the DragFeature control when the user moves the mouse out or when dragging completes (closes #942).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4111 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 18:56:48 +00:00
Tim Schaub
c2148651ed Filling our log with cruft, adding meaningless conflicts for merges, and changing a comment style that ndocs could care less about, this commit changes Return to Returns (closes #945).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4110 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 18:44:10 +00:00
euzuro
b5ef77096c wiki/NaturalDocs says we should be using 'Return:' and not 'Returns:' so this patch is fixing that. Of course, in the process, I came across not a few instances where other ND related whitespace or typos were at odds with a peaceful, uniform OL codebase. No functional changes here, just makin' things pretty.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4109 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 18:08:32 +00:00
Tim Schaub
e5641c76e0 Fix deactivate and destroy methods on the keyboard handler. Add 28 tests for previously untested handler. Thanks to Erik for the quick review and comments - appreciated as always (closes #943).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4108 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 17:37:42 +00:00
Tim Schaub
eb65e9c2b3 natural docs comments for the keyboard handler
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4107 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 16:15:45 +00:00
crschmidt
46c5cd6812 Properly destroy OpenLayers.Handler.MouseWheel, patch from fredj. Added
tests for it as well. (Closes #935)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4100 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 04:21:17 +00:00
crschmidt
cc0f90a5ad Fix build.py to not break if someone passes in a config file name with '.cfg'
already on it. (Closes #839) Thanks for the suggestion / patch TJCRI! 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4099 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 04:11:03 +00:00
crschmidt
807449046b Commit fix for an off-by-two error on standards complaint HTML pages in IE, and
add an HTML example that can be used as an acceptance test. (Closes #863) 
Thanks pierre for the research and report!


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4098 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 04:03:13 +00:00
Tim Schaub
984cdf6672 Modify drag handler for easier subclassing. Thanks for the team effort on this one (closes #827).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4096 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 03:11:41 +00:00
crschmidt
30982c20b3 check against the map instead, since Opera doesn't seem to have the same kind
of mouse positions.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4090 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-28 23:58:15 +00:00
Tim Schaub
472ce374e6 Correcting the ndoc typo I made in r4088. Now layer.getTilesBounds and layer.getTileBounds are properly documented (see #482).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4089 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-28 23:30:23 +00:00
Tim Schaub
d7776e77a7 Add a getTileBounds method to gridded layers. Thanks to crschmidt for the tests on this one. Committed with a few minor ndoc changes (closes 482).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4088 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-28 23:16:23 +00:00
Tim Schaub
6acf9e75c5 IE tries to modify dom elements when an undeclared variable is used in a statement and the name of that variable is the id of an element on the page (see 849).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4087 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-28 22:53:20 +00:00
crschmidt
5b3221b8e3 Fix mousehweel test in opera.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4083 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-28 22:12:44 +00:00
crschmidt
cbaebbc177 Overlay over Google Layer not correctly positioned when zooming, originally
reported by Pfirter Lukas. (Closes #849) This is solving a general problem
with overlays + EventPane subclass zoom changes.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4082 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-28 21:57:05 +00:00
Tim Schaub
a1c040e3c0 removing use of getArgs from the library (closes #860).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4080 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-28 20:18:47 +00:00
euzuro
f2ea9b4afa fix a broken Function.prototype.bind() (Closes #876)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4078 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-28 18:31:18 +00:00
Tim Schaub
a84e511c1f Adding neglected polygon hanlder test. Should have gone in with r4076. (See #934)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4077 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-28 16:53:59 +00:00
Tim Schaub
153b7a2a78 Properly destroy features in the polygon handler. Many thanks to fredj who has caubht these issues, provided clear patches, and written solid tests. More please. (Closes #934)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4076 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-28 16:34:53 +00:00
crschmidt
2762e3ea47 Stop WFS layer from requesting data when layer is not in range. (Closes #685)
Note that this is not a complete fix, but instead a patch for 2.5: 
after 2.5, this should be changed/removed when map.setCenter() is 
fixed. (See #937)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4069 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-28 12:01:47 +00:00
crschmidt
542597bf02 deprecate MapServer.Untiled in favor of MapServer with singleTile: true.
(Closes #866) Thanks for the help to all.  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4068 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 23:22:13 +00:00
Tim Schaub
2d636c1ae4 Properly destroy features in the point, path, and polygon handlers. Patch with tests from fredj - thank you for the catch and the great patch. (Closes #931)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4063 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 21:03:28 +00:00
Tim Schaub
661d643b4f Give handlers a non-API evt property - this to be used by other controls in the library only. Eventually, we may decide to restructure this. (Closes #902)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4062 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 19:55:04 +00:00
Tim Schaub
0a5d7ba0bd add try/catch hack for IE so that it doesn't choke on offsetParent check. (Closes 798.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4061 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 19:33:43 +00:00
Tim Schaub
b133435e06 conditionally run Google tests based on protocol and host - print debug statements if key is not valid - this means that tests do not fail with an invalid key
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4060 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 18:27:23 +00:00
Tim Schaub
e4d857b167 removing HTML comment wrapping scripts - these haven't been necessary since Netscape 2.0 - if your browser doesn't run javsacript, please don't run these tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4059 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 17:47:50 +00:00
crschmidt
f04d110119 Documentation for Marker.destroy: We can't actually remove the marker from
the layer because we don't have a reference to the layer, but this isn't
adequately documented in the Marker.destroy api docs. (See #932)   


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4058 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 17:28:12 +00:00
euzuro
2f9dbd1396 deprecate use of 'minZoomLevels' in WFS layer. (Closes #672)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4056 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 16:18:14 +00:00
Tim Schaub
988e3b2e9a removing unnecessary use of google layer
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4055 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 16:07:01 +00:00
euzuro
2f915df985 remove IE clause from permalink test -- no longer needed. (Closes #730)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4054 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 16:06:15 +00:00
euzuro
f7d1665a24 add removeLayer() function to Layers... implement it for EventPane so that it removes the extra 'pane' div when the layer is removed. (Closes #887)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4053 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 15:54:57 +00:00
euzuro
39d9819f81 rename and deprecate getArgs() function in favor of getParameters(), make it such that it parses comma-separated values from key/value pairs into Arrays (since they are encoded that way). (Closes #860)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4052 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 15:08:09 +00:00
euzuro
4636c4a6d4 add getDataExtent() method to layer (experimental) and to markers layer (api supported). thanks for the feature request and original patch, anonymous ol-er :-) (Closes #750)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4051 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 14:44:44 +00:00
euzuro
1cf74313ab allow an uninitialized Bounds object to be functional (and extendable). thanks for the extra docs cr5 (Closes #929)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4049 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 13:00:54 +00:00
crschmidt
c79f1a56c8 (Closes #730) These changes make the permalink smarter in the case where we
already have some URL args in the URL. Thanks to penyaskito for the bug 
report.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4047 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 12:46:29 +00:00
euzuro
61a6171a63 calling limitSigDigs() on a floater now raises an error. console console (Closes #862)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4046 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 08:52:12 +00:00
euzuro
ea31ec076b remove unused 'events' property from Feature (Closes #922)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4045 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 08:30:59 +00:00
crschmidt
ab40f522c9 "JS error after using mousewheel without having moved the mouse before."
Update MouseWheel handler to use center of map if no mousemovement has 
been seen yet. (Closes #882)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4042 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-25 07:46:52 +00:00
crschmidt
f2ef59264a add support for specifying the GeoRSS popup size as an option to the layer.
Default behavior stays the same, but you can now specify popupSize as a layer
option to the GeoRSS constructor. (Closes #883)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4041 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-25 07:42:11 +00:00
crschmidt
b9a1287a5f "Event object conflict: If you include OpenLayers.js AFTER including
prototype.js, this effectively replaces most of prototype's Event object with
the OpenLayers.Event object, which has undesirable results (i.e. calling
Event.observe is actually calling OpenLayers.Event.observe)." Fixed by
only creating Event is Event does not already exist. (Closes #880)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4040 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-25 07:39:28 +00:00
Tim Schaub
d418b7f8da Adding two test pages that didn't make it in r4036 - that devilish ticket. (See #666.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4039 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-25 03:39:57 +00:00
crschmidt
c8afa7222b Allow for users to determine whether the bounding box should be encoded or
not on WMS and WFS layers. This change, by default, makes us compliant
with the WMS spec again.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4038 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-24 23:50:43 +00:00
crschmidt
42e4f72a9f TMS layer needs to round x and y in TMS url. Patch by Paul Spencer, Review by
Tim. (Closes #913.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4037 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-24 23:49:06 +00:00
crschmidt
0d2f10ad5c EditingToolbar does not display first segment in VML until 3 points added.
This fixes the bounds, which fixes the vml behavior in IE. (Closes #666.) 
Hooray, no more devil ticket.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4036 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-24 22:33:28 +00:00
crschmidt
c2c821e4c2 DragFeature test Broken in IE6. The tests all passed because this only caused
problems on destroy()/page unload, after all the tests had been run. Thanks 
for the review, tschaub. (Closes #923.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4035 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-24 22:07:18 +00:00
Tim Schaub
494870d447 correct control name in menu
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4024 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-24 16:59:04 +00:00
euzuro
7266a06965 even though we're trying to discourage its use, we might as well call a pig by a pig. this file is defining the WMS.Untiled class... it ought to say so.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4019 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-24 15:45:55 +00:00
euzuro
0a6eca4b33 (Closes #920) - adding clearBounds() test. Thanks to pierre for the good patch for this missing test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4016 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-24 13:38:24 +00:00
euzuro
fb7466b1c2 coding standards -- lines longer than 79 characters. splay these out -- makes them more readable. all tests pass FF & ie6
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-24 11:03:58 +00:00
Tim Schaub
8ffc1a72fc #917 point.bounds needs to be non-null before the resize/rotate/move - thanks pgiraud for catching my sloppiness here
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3999 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-23 17:39:52 +00:00
Tim Schaub
472f027a9f #915 geometry manipulations need to call clearBounds
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3998 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-23 17:16:00 +00:00
Tim Schaub
08e4e19502 doc menu cleanup
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3997 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-23 16:35:04 +00:00
Tim Schaub
ab73cc3f79 #915 Adding support for GeoJSON vector format. Many thanks to Chris for the exhaustive tests on this one.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3994 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-23 16:29:03 +00:00
Paul Spencer
c6850a2b6a Closes #914: change Map initialization to object rather than id to avoid a bug when launching from a permalink.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3992 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-23 14:09:57 +00:00
crschmidt
799b7a2df3 remove unneccesary bounds
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3991 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-23 13:37:04 +00:00
crschmidt
6194452b8a Since John already went ahead and committed the main change, I'm just going
to finish this one up. All commits are in comments, so a review doesn't seem
strictly neccesary. This closes #918 and fixes all the copyrights that I could 
find in the code.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3984 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-23 11:29:06 +00:00
jrf
05806aa51a updating the copyright year ranges on the *-license.txt files
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3982 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-23 11:11:33 +00:00
Tim Schaub
7081aab12a #638 let features be dragged
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3958 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-22 21:23:07 +00:00
Tim Schaub
b1cd6a41bb #912 first and last component of a linear ring refer to the same point
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3956 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-22 21:00:46 +00:00
Tim Schaub
79465985b8 0.2 is still not enough of a delay all the time
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3955 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-22 20:57:41 +00:00
crschmidt
dcb5dd0c3a Revert pagameba's accidental trunk commit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3950 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-22 19:28:38 +00:00
Paul Spencer
faa2a74d7b put all layer info into the map instead
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3949 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-22 19:25:57 +00:00
euzuro
ab81a690d3 patch for #910 - removing extraneous moveTo() from tile/image.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3928 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-21 19:06:49 +00:00
Tim Schaub
56490d73ce #905 - give the drag handler back its start property - controls use but do not modify these handler properties
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3906 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-15 20:48:17 +00:00
Tim Schaub
9de2749502 #774 - dragPan only calls setCenter if the map moves - thanks for the discussion and careful review Eric!
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3902 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-14 15:27:59 +00:00
Tim Schaub
7b5a4c0f3c #904 - handlers deactivate themselves on destroy
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3901 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-14 14:53:39 +00:00
euzuro
238385157c 4or whatever reason, the 'singleFile' property was never properly documented on grid
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3900 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-14 13:53:27 +00:00
Tim Schaub
9cc8aed695 #892 - give layer switcher isMouseDown property to differentiate from mouseDown method
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3899 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-14 13:36:19 +00:00
euzuro
3ab6d6e789 rearrange logic for xml format test. final touch on #894
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3896 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-12 00:40:59 +00:00
Tim Schaub
b4da05da35 #774 - drag control only calls move callback with a change in pixel position - DragPan control simplified
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3891 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-11 03:32:41 +00:00
crschmidt
4de7f79d45 seperate out map initialization
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3888 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-11 02:01:17 +00:00
crschmidt
1febc2cd96 Add movement tests to test_DragPan
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3886 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-11 01:37:12 +00:00
Tim Schaub
82b0059952 #900 - adding semi-colon for single file build
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3878 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-10 20:04:03 +00:00
Tim Schaub
1ecede4e16 #894 - bind this to xmldom closure
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3875 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-08 16:19:31 +00:00
crschmidt
d5da925ffc tabs -> spaces.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3874 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-08 10:03:13 +00:00
Tim Schaub
2b285f5160 full tests for drag handler
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3870 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-07 03:19:57 +00:00
Tim Schaub
0d2ee0fd14 test mousedown with the drag handler
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3869 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-06 22:32:35 +00:00
Tim Schaub
18e0b12b5d adding more handler tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3868 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-06 21:15:37 +00:00
Tim Schaub
04f1fe5385 #841 - cross-browser XML DOM methods for creation, traversal, reading, and writing - see the xml.html example for use
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3862 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-05 15:55:02 +00:00
crschmidt
e3490e7aba Two size/resize issues on singleTile layers, #886, with tests by Andreas.
Many thanks, Andreas!


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3861 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-05 13:38:55 +00:00
Tim Schaub
7361f32040 #885 - keep responder variable in closure - thanks for quick review crschmidt
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3855 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-04 20:52:45 +00:00
crschmidt
73d2825c4e Commiting fix for #716, "Make LayerSwitcher support displayInLayerSwitcher
for Base Layers", reviewed by Erik, tested by tschaub.   


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3853 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-04 12:14:32 +00:00
euzuro
f3593fc839 fix for #677 -- making yahoo maps deal with size correctly (safari and general karma fix)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3843 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-03 19:27:39 +00:00
Tim Schaub
b09585b603 #874 - stop global namespace pollution and actually set state on features instead of i - thanks crschmidt for the test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3838 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-02 18:04:47 +00:00
Tim Schaub
e9a488c264 #875 - protect global property variable - with regression test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3837 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-02 17:45:19 +00:00
Tim Schaub
c733d7bcff coding standards and a few improved doc comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3836 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-01 23:06:58 +00:00
Tim Schaub
323a62e926 tests failing on FF without the 0.2 delay
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3835 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-01 23:03:25 +00:00
euzuro
2526fd7fb3 coding standards - 79 character line limit
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3834 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-01 20:49:34 +00:00
euzuro
cf5a53959e ND Update: make array's say what they're made of, and a few other small bits, like mistyped and a couple missing <>s
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3829 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-31 20:02:03 +00:00
euzuro
35834487a4 fix for #870 - missing 'var' statement inserted
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3823 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-30 15:26:41 +00:00
euzuro
1eadf8a212 add extra newline in build script
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3822 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-30 15:25:36 +00:00
crschmidt
23cef65d0b Commit documentation changes from gstamp, patch from #869.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3819 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-30 00:21:02 +00:00
euzuro
b1097e31c0 fix for #859 - make default return from OpenLayers.Util.Try() explicitly null. Also add tests and documentations
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3816 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-26 19:20:33 +00:00
euzuro
8c552be94b as universally approved on discussions on dev list, replace new Array() with []. all tests pass ff & ie6
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3815 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-25 22:48:02 +00:00
euzuro
5f0bde51da as universally approved on discussions on dev list, replace new Object() with {}. all tests pass ff & ie6
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3814 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-25 22:39:28 +00:00
euzuro
6d2e84892d functions on objects are *methods*
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3813 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-25 21:38:41 +00:00
crschmidt
ef0a4697a4 EditingToolbar depends on these handlers being around -- if they're not, then
dragfeature will blow up with an error of 'handler is not a constructor'. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3812 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-25 16:46:36 +00:00
crschmidt
0481f7f4f3 TJCRI points out that Layer.Text needs to declare OpenLayers/Ajax.js as a
dependancy


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3811 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-25 16:26:56 +00:00
euzuro
e7790c4a4a adding thorough tests for all functions in BaseTypes.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3807 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-25 03:45:55 +00:00
euzuro
7d58546162 clean up unnecessarily complicated code in camelize() -- all tests pass ff & ie6
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3806 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-24 22:21:07 +00:00
euzuro
d3abb27ffb correcting typo in ND
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3805 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-24 21:56:35 +00:00
euzuro
b94c492cf6 coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3804 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-24 21:56:07 +00:00
euzuro
c274d8e4c9 coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3803 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-24 21:30:45 +00:00
euzuro
1d17ebba37 coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3802 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-24 21:18:01 +00:00
euzuro
47014dc7d7 add some ND comments to JavaScript object extensions
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-24 21:11:28 +00:00
crschmidt
630239ce8f typo in Gooooogle class name.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3800 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-24 17:59:28 +00:00
crschmidt
c80818612c Wehn the naturaldocs sandbox got merged, a small typo resulted in making
the VE Layer unusable: 'getMa' got dropped accidentally. (Yes, I'm a rebel,
I'm committing without a ticket, because this is obvious and I feel like it.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3793 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-24 06:35:35 +00:00
euzuro
e0f96f888f add thorough tests for OpenLayers.Element
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3789 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-23 22:05:27 +00:00
Tim Schaub
892a4042a1 #856 - fix up clone method for vector features - give the geometry base class a clone (though it will likely never be used)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3788 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-23 19:54:58 +00:00
euzuro
fd4d2918f1 fix for #853 - remove JSDOC comments from CLASS_NAME variables
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3787 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-23 15:09:09 +00:00
euzuro
e8a4938258 fix for #847 - use bind() instead of bindAsEventListener()= when appropriate
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3786 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-23 15:03:42 +00:00
euzuro
8ee8522e0a add eric lemoine to authors.txt (and cleanup some extra whitespace hanging out)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3785 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-23 14:53:50 +00:00
euzuro
d75f7c139f fix for #855 - set marker as not 'drawn' when removed from the markers layer. thanks for the great patch and tests, Eric L.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3784 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-23 14:48:39 +00:00
crschmidt
454d77842e Typo in Layer.Markers.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3783 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-22 14:02:18 +00:00
crschmidt
4b752fbe5c Add docs clarifying that you should clone() before passing icons into the
marker constructor.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3782 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-22 13:59:24 +00:00
euzuro
b5e0c3ba61 add APIFunction: indicators to the last four functions from Console.js -- I'm assuming that their absence is a result of an oversight, not intention. If this is incorrect, my apologies, and obviously feel free to revert this change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3781 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-19 23:27:37 +00:00
crschmidt
59e40989b7 #850: Patch from pgiraud to fix typo in Collection.js getBounds. Reviewed by
Mr. Euz.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3780 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-19 17:22:53 +00:00
crschmidt
a34f4570f3 Docs were copy pasted from drawcontrol. Fix that.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3778 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-18 21:19:13 +00:00
crschmidt
296391ebc9 Classname was missing an "OpenLayers."
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3771 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-17 21:27:15 +00:00
Tim Schaub
5aa11b0c73 #844 - fixing Layer.TileCache.getURL for IE - thanks again for those tests crschmidt
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3770 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 23:10:00 +00:00
Tim Schaub
fd679a6ed0 NaturalDoc config update - cleaning up my mess from earlier
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3769 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 22:34:38 +00:00
euzuro
918b430802 fix for #843 - remove unnecesary url prepping in image tiles
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3768 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 22:08:28 +00:00
Tim Schaub
cc1b0269c9 #823 New class style. Instead of OldStyle = Class.create(); OldStyle.prototype = Class.inherit(Parent, prototype), we now use NewStyle = OpenLayers.Class(Parent, prototype). New style classes allow for backwards compatibility [you can use OldStyle = Class.create(); Class.inherit(NewStyle, prototype)]. The Class.create and Class.inherit functions are deprecated. Backwards compatibility will be removed at 3.0. Thanks Erik for the careful review.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3767 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 20:25:11 +00:00
crschmidt
9ebf950e3b #651: PanZoom should not block mouseup. Reviewed by tschaub.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3766 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 19:07:01 +00:00
Tim Schaub
92b7a2316f #627 add the missing test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3765 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 19:04:54 +00:00
Tim Schaub
0093267bce add nd comments and menu config for TileCache layer
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3764 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 17:57:48 +00:00
Tim Schaub
b5035f9c7c #627 Adding read-only tilecache layer. Many thanks to crschmidt for the tests here.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3763 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 17:46:35 +00:00
Tim Schaub
cae56a65f0 #837 - modify Util.extend to deal with custom toString property - IE doesn't iterate over toString, this patch fixes this behavior for Util.extend
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3760 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 16:35:02 +00:00
euzuro
b31101d7f7 shame on both of us for submitting, reviewing, and committing this patch without running tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3754 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-15 22:31:55 +00:00
crschmidt
aad458eeb4 Commit fix for "getGridBounds calls 'getTileBounds' instead of
this.getTileBounds", #840. Reviewed by Euz.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3753 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-15 19:47:46 +00:00
crschmidt
6ef37907cf Add additional documentation to ka-Map constructor in an effort to alleviate
the pain described in #327.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3751 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-15 13:19:42 +00:00
crschmidt
0413ee1e91 Information on how to place the Navigation Toolbar outside the map, including
step by step instructions.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3750 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-15 06:47:45 +00:00
crschmidt
1a27eaaf70 Control.SelectFeature docs had an extra line in them for some reason.
Remove it. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3749 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-15 06:01:39 +00:00
crschmidt
e610763bda Make 'icon' an APIProperty, and add a description for it.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3743 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-14 12:47:26 +00:00
Tim Schaub
9b79976e19 replacing name with explicit name - just got lucky here that the tests defined name
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3740 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-13 21:02:44 +00:00
euzuro
9dd9289f88 fix for #746 - add console.error()s when wrong number of argumetns passed to add()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3731 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-13 15:41:33 +00:00
crschmidt
e420ec851c Turn off the Yahoo Keyboard handlers, since their use results in the map
moving without OpenLayers knowing about it when they are on.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3730 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-13 13:36:16 +00:00
crschmidt
8e1eb78c26 Add support to the vector layer to visualize point geometries with images. This
support was added, tested, and documented by Andreas Hocevar, and I want to
thank him for the work he put into this patch. It looks pretty great. (This
is from ticket #736.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3729 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-13 13:31:40 +00:00
crschmidt
4f70df0029 Documentation improvements provided by Glen Stampoultzis. (Thanks Glen!) Closes
#825, #836.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3728 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-13 11:14:46 +00:00
euzuro
53ed14c379 fix notile example to actually showcase the new one :-)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3726 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-12 22:47:07 +00:00
euzuro
921347a81a patch for #831 - simplify the notion of untiled (now an option on grid layers called 'singleTile') and implementing loading events for gridded/untiled layers. thanks tim and chris for reviewing this beast.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3725 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-12 22:42:34 +00:00
Tim Schaub
51b31bc0a0 #832 - changing the name of the second arg for the Feature.Vector constructor, mainly for documentation sake - note that this is not an api change - Feature.Vector inherits from Feature - Feature exposes a data property, Feature.Vector exposes an attributes property, both point to the same thing for Feature.Vector - this change does not alter that redundancy, only changes the argument names for the constructor - and adds tests - I'll leave the data/attributes property discussion for later
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3717 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-12 16:36:36 +00:00
Tim Schaub
6bd7edf628 update docs for vector features
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3709 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-11 22:21:31 +00:00
Tim Schaub
2015330138 clarify docs for LonLat
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3708 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-11 21:01:24 +00:00
Tim Schaub
8d5861972f finishing tests for handler.checkModifiers - single and double key combos tested
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3707 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-11 19:54:36 +00:00
euzuro
ff2e8f02f7 patch for #813 - when setting baselayer, we no longer redraw twice.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-11 19:11:00 +00:00
Tim Schaub
30bc6bfe0c more tests (17) for the handler base class - these for checkModifiers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3705 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-11 18:44:39 +00:00
Tim Schaub
a9d084fff9 updating config for dev docs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3704 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-11 17:52:18 +00:00
Tim Schaub
0c2464fcc8 updating config for api docs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3703 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-11 17:51:55 +00:00
Tim Schaub
da53137402 documenting keyMask, checkModifiers, and the Handler constants associated with them
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3702 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-11 17:51:12 +00:00
Tim Schaub
64c455cb7d temporarily store the original initialize instead of tacking anything extra on to the handler's prototype - thanks for the catch Erik - I'm trashing the oldInit just so we don't end up with any more unexpected prototype modifications elsewhere in the test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3701 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-11 17:43:07 +00:00
euzuro
10d3266013 fix drag handler test for IE. for whatever reason, ie and ff handle the tests in different order. because IE runs through the functions numerically, the constructor test is run first, and so the changes to the handler's initialize are maintained throughout the rest of the tests. thus, we need to make sure to set it back before exiting.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3698 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-11 17:04:07 +00:00
Tim Schaub
f8abf738fb add tests for handler.destroy
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3697 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-11 16:54:32 +00:00
euzuro
8183fc6796 add test for setTileSize() to Layer
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3691 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-10 23:30:43 +00:00
Tim Schaub
03392d85f1 construct, activate, and deactivate tests for the drag handler
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3690 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-10 22:57:38 +00:00
Tim Schaub
f7f75bf8c2 start testing the drag handler
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3689 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-10 22:48:33 +00:00
Tim Schaub
21d97f45f0 88 tests for the handler base class
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3688 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-10 22:38:49 +00:00
Tim Schaub
0a3de3fddc coding standards - getting rid of these tabs all at once
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3686 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-10 21:56:11 +00:00
Tim Schaub
b82c90d5cd start testing handlers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3685 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-10 21:47:05 +00:00
Tim Schaub
f1d9208abd replacing tabs with spaces
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3684 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-10 21:40:26 +00:00
Tim Schaub
07e2bc319b #826 - reworking arguments for NavToolbar and parent class
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3682 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-10 21:15:28 +00:00
Tim Schaub
0638628a50 replace tabs with spaces
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3672 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-10 18:30:50 +00:00
euzuro
a32a2eefec coding standards (long lines) and fixing nd comments to be tschaub stylie (statements vs questions, universal four space indent)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3664 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-10 16:17:25 +00:00
Tim Schaub
728ba09060 more doc comments for the drag handler
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3659 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-09 20:02:52 +00:00
Tim Schaub
4da0d2bd60 adding in some docs for the Handler base class
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3658 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-09 19:51:10 +00:00
crschmidt
845bc07764 Add better docs to clearMarkers function.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3657 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-09 18:38:50 +00:00
Tim Schaub
249a9f6a4d #807 - adding the resize-features.html example that didn't make it in before
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3655 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-07 15:49:53 +00:00
Tim Schaub
e276f84deb more whitespace changes in Handler/Drag.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3642 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-07 00:12:57 +00:00
Tim Schaub
0f47f1d73f #812 - give drag handler a done callback
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3641 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-07 00:09:22 +00:00
euzuro
af8cce4f7b cosmetic nd changes, coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3639 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-06 23:05:28 +00:00
euzuro
ad52e8c6fd fix for #787 - put clearArray() in its place ((marked as deprecated, throwing a console warning during use, all usage replaced in code))
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3636 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-06 22:55:17 +00:00
Tim Schaub
c2fcb22d98 #807 - give geometries a resize method - examples and tests for demonstration
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3631 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-06 20:32:22 +00:00
Tim Schaub
0d596fbb03 #811 - removing double assignment and using only this.div after it has been set
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3630 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-06 20:28:48 +00:00
euzuro
f8766140af patch for #777 - adding documentation and stub for getWarningHTML
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3629 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-06 20:27:08 +00:00
euzuro
208c3cd7e5 fix for #772 - remove usage of deprecated
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3626 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-06 19:46:19 +00:00
euzuro
a14b5bdc7e patch for #809 - add the addEventType() function to the OpenLayers.Events objects so that subclasses can safely add new event types without modifying their parents' constant values
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3622 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-06 18:30:09 +00:00
euzuro
bee797430d update nd docs for Openlayers.Events
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3621 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-06 17:47:38 +00:00
euzuro
a74a9bd49f remove *private* statements from nd comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3620 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-06 17:38:20 +00:00
Tim Schaub
b3e847300e make the origin of rotation visible in the rotate-features.html example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3612 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-06 04:07:31 +00:00
euzuro
b84e2f468a miscap'd OpenLayers. Thanks Stephen
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3609 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-06 00:16:02 +00:00
Tim Schaub
dcffa03e7d #805 - all geometries now know how to rotate - see the examples/rotate-features.html for geometry.rotate in action
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3602 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 22:03:27 +00:00
euzuro
debca7c477 fix for #793 - split basetypes into separate files. Makes documentation better and generally just makes sense. thanks tim for patch review and cfg file help
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3601 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 20:50:31 +00:00
euzuro
23bc407f8b update nd for OpenLayer.Event object
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3599 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 20:02:29 +00:00
Tim Schaub
658df9df72 #802 - giving all classes a constructor that don't currently have one - this for Natural Docs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3595 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 18:54:38 +00:00
Tim Schaub
691802b115 grouping BaseTypes with BaseTypes here too
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3594 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 18:37:23 +00:00
Tim Schaub
38547f172f grouping BaseTypes with BaseTypes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3593 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 18:36:52 +00:00
euzuro
9e8c1a22c7 fix up comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3591 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 17:57:27 +00:00
euzuro
cb3a2566bb stray jsdoc comment found
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3590 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 17:50:36 +00:00
euzuro
030f0c8830 update stray jsdoc comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3589 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 17:36:11 +00:00
euzuro
de004699c4 add inheritance to navigation control
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3588 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 17:34:31 +00:00
euzuro
3d73171521 move all nd comments for CLASS_NAME back to jsdoc style. my personal opinion is that we should get rid of this comment entirely... but that's something that can be debated. so long as they are all the same, it makes it easier to do a global replace when a decision is reached
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3587 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 17:33:29 +00:00
euzuro
cdd6acc413 fix for #800 - the mergeNewParams function is now simplified. the only time it need be overridden now is in WMS, which mandates that all parameters should be uppercased. thanks for the review and the added test, tim.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3584 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 14:24:15 +00:00
euzuro
4f3d3c96c9 give redraw test a number
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3583 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 14:08:15 +00:00
euzuro
2cf67f76d0 fix for #795 - all layers now have a redraw() method that simply redraws them no matter whether the extent or parameters or zoom has changed. Big big thanks to tim schaub for not only taking the time to listen to my relentless (and often cracked) brainstorming about this ticket and for taking the time out to review the final patch.... but above and beyond the call of duty, adding *tests* for this patch. real ace. top knotch.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3582 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 14:04:51 +00:00
euzuro
364e7d7546 remove unused local var. fixed #801. thanks eric l.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3581 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 13:36:38 +00:00
euzuro
cbc0e3817a fixing nd comment. Thanks Eric L
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3580 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 13:22:13 +00:00
euzuro
aea4747f89 fix for #799 - markers destroy no longer nullifies a global variable
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3578 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-03 23:35:57 +00:00
euzuro
dd066240c7 update nd docs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3577 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-03 23:13:16 +00:00
euzuro
c06608c7d0 coding standards. lines should be less than 79 characters
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-03 22:54:42 +00:00
euzuro
b2371b7162 fix for #699 - give WFS layer a mergeNewParams()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3575 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-03 22:23:20 +00:00
euzuro
5c4ef6011d patch from #796 - warn users if they try to add a layer that has already been added
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3574 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-03 21:45:26 +00:00
Tim Schaub
59c038f6b0 #794 - adding resolutions as a property of OpenLayers.Map - adding additional comments for ND as well - we need to revisit APIProperties on Layer and Map
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3568 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-03 17:15:37 +00:00
Tim Schaub
50632ab8c9 get rid of nested layer groups
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3567 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-03 16:55:15 +00:00
Tim Schaub
26732e1f49 get rid of nested layer groups
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3566 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-03 16:54:52 +00:00
Tim Schaub
c04b68b1b6 replace hyphen with period in comments - ND is greedy about hyphens. This fixes the doc bit for map.baseLayer
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3565 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-03 16:14:17 +00:00
euzuro
f5a39b05f7 fix nd
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3564 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-03 16:12:11 +00:00
Tim Schaub
7144466ad3 assigning the map to a global map variable for easier inspecting in Firebug
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3561 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-03 15:41:45 +00:00
euzuro
bb6f69d83f fix for #785 - fix up gutter logic a little bit. on a path to getting all gutter info in one place
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3555 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-02 22:51:50 +00:00
euzuro
d2c2b011e7 fix for #650 - if user specifies a layer as transparent and of format image/jpg, we change it to the appropriate type (gif or png). Sure, it's somewhat magical... but it will probably help people out in the long run
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3554 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-02 22:11:16 +00:00
euzuro
71a140055e patch for #76 -- missing requires statement in Layers/Markers.js. Thanks ahovecar for spotting this.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3553 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-02 15:39:25 +00:00
crschmidt
3948913bfc Merge all changes from the naturaldocs sandbox. This brings all the work that
has been done in the NaturalDocs branch back to trunk. Thanks to everyone who
helped out in making this happen. (I could list people, but the list would
be long, and I'm already mentally on vacation.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3545 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-29 15:59:20 +00:00
crschmidt
f1c61fd0d6 Applying a reworked version of #768. The benefits of this are largely
maintenance related: this cleans up a global flag (_OPENLAYERS_SFL_), replacing
it with something in the OpenLayers namespace, and adds documentation/comments
to the code here that weren't before. Approved by El Chairman Uz. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3543 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-29 15:31:09 +00:00
crschmidt
6aea8da115 Add basic DragPan test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3542 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-29 12:49:39 +00:00
crschmidt
ee326b9440 Commit patch for #788, "Control displayClass is not correct if CLASS_NAME
contains >= 2 periods"  from fredj, who is a wonderful contributor who not only
wrote code, and tests, but upgraded all the existing control tests, because he
is just that full of awesome. (Thanks Fred!) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3534 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-29 09:54:20 +00:00
euzuro
33c87bf3b6 fix for #784 -- adds some commenting and readability to the tile.draw() function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3462 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-27 23:48:25 +00:00
euzuro
357a4cee35 fix testing messages that were backwards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3442 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-25 20:30:42 +00:00
euzuro
e39e89a5bf patch for #726 was breaking IE tests. Please test things in IE before committing to trunk
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3441 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-25 19:36:02 +00:00
euzuro
b8362cb085 coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3423 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-22 16:57:30 +00:00
euzuro
68292b1118 fix for #776 - use new getBrowserName() function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3422 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-22 16:56:45 +00:00
crschmidt
73ce86bd62 Remove broken OpenLayers.Layer.Canvas. This hasn't worked for 4 releases, and
future development should be put into a Canvas Renderer for the vector layer. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3421 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-22 16:53:54 +00:00
crschmidt
3cd58c5121 Commit fix for #726 from andreas, with proper tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-20 23:53:51 +00:00
crschmidt
afa2270c83 Add base control panel test class.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3370 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-20 11:30:26 +00:00
euzuro
9be3c60ffb the map object takes care of getting the element from the id. no need to be doing this out here.... this in an effort to minimize the use of , which we were trying to phase out.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3369 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-20 00:53:58 +00:00
Tim Schaub
45683d1126 #767 - never build with Firebug - this was an oversight in bringing Firebug in - no harm done to those single builds with it
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3366 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-19 19:50:57 +00:00
crschmidt
6077e14421 fix "Close button in GeoRSS popups partially hidden", #727, patch by
penyaskito. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3354 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-17 13:40:54 +00:00
crschmidt
debffb8f12 Fix typos in documentation strings.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3347 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-17 04:04:54 +00:00
crschmidt
2298eb9fda Improve interlinking between example files and jsdoc: step one, create simple
demo.  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3331 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-15 17:38:15 +00:00
euzuro
8874a6069f additional patch for #742 - removeControl() now takes the control as argument, not the id
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3329 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-14 19:18:57 +00:00
euzuro
385da5c614 2nd attempt fix for #734 -- tests pass in all browsers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3328 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-14 19:11:45 +00:00
Tim Schaub
eac277f106 #764 - add documentation for OpenLayers.Console methods
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3327 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-14 18:35:02 +00:00
euzuro
eb2130617a fix to docstring of #755 -- no longer two-character codes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3325 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-12 19:44:09 +00:00
euzuro
a8e72ea131 fix format georss patch to not cause tests to break in IE. see (unnecessary) ticket #756
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3324 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-12 19:05:42 +00:00
euzuro
f56f136523 patch for #487 -- dateline wrapping
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3323 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-12 18:03:59 +00:00
crschmidt
76f9234e3b Apply browser detection patch which will allow us to determine browser name
with a single line, which is useful for the places in the code where we care
about what browser we're dealing with.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3322 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-12 17:42:11 +00:00
Tim Schaub
6a2637eb20 add OpenLayers.Console namespace and a number of methods that allow for logging of error messages - when firebug.js is included in a page, the application runs in "debug" mode - the Firebug extension or Firebug Lite handles OpenLayers.Console calls depending on availability
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3320 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-11 23:17:49 +00:00
euzuro
3eeaf81e64 rollback r3284, reopening #734. This patch causes tests to break in IE6. I will help to debug this at some point, but right now I am doing other things and I need all tests to pass or I can't move forward.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-11 19:28:48 +00:00
crschmidt
9409058ca6 Our recent change to not catch and hide exceptions silently is causing this
test to break, because the destroy gets called before the layer loads, so the
features are attempted to be pushed into somethig that has been set to null.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3306 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-09 11:22:28 +00:00
Schuyler Erle
905bd6d441 Fix #745, including test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3299 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-08 18:31:28 +00:00
euzuro
7c0ab6567f coding standards -- line length
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3296 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-08 15:17:31 +00:00
euzuro
a98da53818 fix for #678 - WMS specs say that *values* and not *parameters* are case sensitive, and the parameter 'transparent' is to be interpreted as true only when its value is 'TRUE'. Previous to this patch, we were only testing if it was equal to 'true'. Now we test for both. This patch applies the same logic to WMS.js and to WMS/Untiled.js, as well as providing some tests to make sure that it works. Thanks and a shout out to gmailer kablukiw wherever s/he may be for the great bug find and report
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3290 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-07 22:03:15 +00:00
euzuro
79acc45db6 remove console.log from test -- soon this will not be necessary. god save us
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3288 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-07 19:40:53 +00:00
crschmidt
39c3d11043 Patch from #674, approved by SDE, plus an example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3285 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-07 19:19:06 +00:00
crschmidt
1c833a9b13 OpenLayers.Util.getArgs returns wrong result with fragment identifiers, null
values in params, etc. From fredj. With tests! (Hooray for fredj)
Closes #734.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3284 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-07 18:32:10 +00:00
Schuyler Erle
29fa9361a8 Applying fredj's patch for #534, allowing Ajax exceptions to fall through and
be rethrown if the Ajax object doesn't have an onException callback set. This
should make Ajax errors a bit more obvious when they occur.



git-svn-id: http://svn.openlayers.org/trunk/openlayers@3283 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-07 18:16:03 +00:00
euzuro
22c8e3ded4 fix for #742 -- Adds getControl() and removeControl() methods to the map
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3282 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-07 18:01:52 +00:00
euzuro
6da7fb6851 set correct numbers on map tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3278 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-07 14:35:37 +00:00
euzuro
7120bde544 adding comment blocks to help readability
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3264 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-06 18:27:03 +00:00
euzuro
172bbcb3df coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3263 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-06 18:12:27 +00:00
euzuro
964b09a15f fix for #740 - Mixed parameters to initialize() function in ArgParser control
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3256 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-05 21:35:40 +00:00
euzuro
cc43a12050 clarify 'theme' property comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3250 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-05 20:19:03 +00:00
crschmidt
ef524125b5 Fix GMaps key for openlayers.org demo.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3213 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-01 14:35:50 +00:00
crschmidt
da81af8d23 Add patch from penyaskito for #705, along with tests, a new example, and a new
example georss file (grabbed from the new mapufacture, which is pretty).

Thanks, penyaskito!


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3208 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-30 14:13:32 +00:00
crschmidt
b8d2aa5539 Add patch for #726 for TOGGLE controls to control panels (patch from
Andreas Hocevar).


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3207 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-30 13:51:28 +00:00
crschmidt
96d8790258 Pull in a fix from upstream Prototype, #702 by fredj (thx fredj)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3205 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-30 13:12:00 +00:00
crschmidt
4d553f5a38 #700: A small patch to let the user specify the linecap style of a feature.
Thanks, fredj! 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3204 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-30 13:07:45 +00:00
crschmidt
2dd7a8d4b9 Fix for #729, WFS Transaction attributes missing, reported by Andreas.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3203 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-30 09:11:33 +00:00
crschmidt
a840844b55 Some browsers (IE5.5) don't support documnet.implementation. Check if the
property exists. #722, from pgiruad.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3180 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-25 10:49:57 +00:00
crschmidt
77d5d70078 Zoom the map in more, since in some cases a miscalculation of grid size (cough,
opera, cough) results in the 1,1 tile not being drawn due to being outside the 
map.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3173 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-24 07:16:22 +00:00
crschmidt
f7d1f74053 Opera grids are slightly different, so instead of concocting a bounds manually,
pull it from the no-gutter layer. (This lets the Tile/Image tests pass in 
Opera.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3172 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-24 07:08:48 +00:00
crschmidt
3cf57a41b1 Fix typo in 'multimap' in test list.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3171 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-24 06:56:25 +00:00
crschmidt
93f218945e Add missing test file to SVN.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3170 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-24 06:51:50 +00:00
crschmidt
8aa3b4bb46 remove console.log() from OpenLayers.Format.WKT , patch from Fredj, #720 (thx)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3169 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-24 06:47:03 +00:00
crschmidt
9deb9611c1 Update install documentation from discussion in #710.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3168 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-24 03:14:44 +00:00
Tim Schaub
daf95113d8 #719 - until proper clipping is achieved, this solution redraws as much of features as possible
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3167 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-24 03:07:32 +00:00
Tim Schaub
bda31f36ea #701 - clear points from the SVG root that fall outside of the max pixel range
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3166 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-24 02:32:53 +00:00
crschmidt
1ded257df1 Apply #718 with sde's approval, fixing WMS.Untiled clone method bug reported
via MapBuilder/Ehud Shabtai.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3163 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-23 20:18:45 +00:00
crschmidt
c5bbc39b4a Minor change to Layer.js as described in patch-like form in #715:
getLonLatFromViewPorPx should return null if no center is set (and, in the
future, throw a debug statement out there.) Closes #715.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3162 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-23 03:49:33 +00:00
Tim Schaub
7819bd1743 #708 - make the WKT format like the other vector formats - serialize/deserialize features instead of geometries
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3158 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-21 14:24:55 +00:00
Tim Schaub
6bbecdbb36 #711 - image layer needs jsdoc requires statement for single file build to work
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3157 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-18 15:20:58 +00:00
euzuro
9679dbb56c fix part two to #703 - dont try to erase a null geometry
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3155 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-17 17:03:07 +00:00
Tim Schaub
a80d7f2826 #706 - map constructor should not add duplicate theme related link nodes to the dom - in the case where there are two maps per page, one should be customizable and the other default - this is now fixed for map + overview map or any other multiple map combo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3153 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-17 16:35:26 +00:00
crschmidt
7871d26df4 Since we have a destroyFeatures command, use it. Patch from fredj, closes
#703.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-15 21:14:26 +00:00
Tim Schaub
74c08dd582 #694 - regarding inheritance of toString: for IE, check that instance has it's own toString - for Safari, just check toString
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3150 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-15 21:13:28 +00:00
crschmidt
e4599ea06f Apply patch from John Cole to make closeBox show up in AnchoredBubble
popups. (Thanks John!) I like this solution better than hacking Rico.
Closes #698.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-15 21:10:13 +00:00
crschmidt
2101eec18b Vector Features styling example, from Cameron Shorter. I did a bit of
work on it to show more 'best practices' for styling changes.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3146 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-10 10:20:52 +00:00
Tim Schaub
37458e1004 #696: let events fall through the extent rectangle
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3133 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-04 15:00:47 +00:00
crschmidt
bdab3adb29 Update GeoRSS serialization so that it works. Damn you, lat/lon! Closes #695.
Thx for review Tim.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3132 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-04 14:35:48 +00:00
euzuro
4b599da130 fix tests -- ie destroys page and thereofre map object, which causes problems with this simulated renderer (it needs a destroy)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3111 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-02 14:01:13 +00:00
euzuro
5221d0491b for whatever reason, the html in this file was twice, and exactly. I shalln't make ticket for this, but it should as well go into the branch for 2.4
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3110 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-01 23:14:56 +00:00
Tim Schaub
67d44a04ba #690 - force overview map extent rectangle to have non-negative dimensions - thanks openlayers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3107 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-01 15:21:18 +00:00
euzuro
8d2dfcf218 fix for #682 - let the mouseup event go through on the panel, just like all other controls
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3106 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-01 14:21:21 +00:00
crschmidt
9093fe746b The Vector layer tests fail in IE because there is no destroy on this fake
renderer.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3105 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-01 14:20:03 +00:00
crschmidt
e2468e9f09 Apply Erik's patch from #680 to fix "removeFeatures() in Layer.Vector does
not remove features from the selectedFeatures array when deleting features" 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3104 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-01 14:09:02 +00:00
euzuro
937c0032fa fix for #683 -- fixes markers layer visibility/inrangeitude on startup
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3103 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-01 14:04:19 +00:00
euzuro
5a3c861051 fix for #681 - Make sure markers layer always draws on the first moveTo(), regardless of the value of 'zoomChanged'.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3098 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-26 23:29:10 +00:00
euzuro
f9edd52656 add tests for out of range markers (#683). This test can be used as a regression test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-26 22:28:36 +00:00
crschmidt
8f62eab52e Add GML format test, which for the time being only has a constructor and
getFID tests, to test for broken fid parser, patch  provided by Andreas
Hocevar in #679 .


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3096 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-26 13:31:46 +00:00
crschmidt
fc2ac2a7cf Fix panel example in IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3095 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-26 10:29:08 +00:00
crschmidt
28ba3309c1 Fix ka-Map's clone method, to fix bug with Overview Map reported by Stephen
Woodbridge. (Thx Stephen.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3087 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-19 20:00:15 +00:00
euzuro
8a14f917dc fix for #671 - kill global variable usage
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3086 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-17 22:00:47 +00:00
Schuyler Erle
7a3eabceeb Prevent click event when dragging in Handler.Drag. Fixes #656.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3082 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-17 18:25:04 +00:00
euzuro
e93aa40e2c fix for #555 - popup close no longer triggers events in main map
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3081 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-17 16:15:07 +00:00
crschmidt
115fc7462b Commit the part of #664 for map resize changes, with a regression test to
boot. Thanks for the patch, Tim.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3076 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-14 05:34:52 +00:00
crschmidt
75d2dac1cb Minor typo in previous commit due to overzealous find/replace.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3072 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-13 13:16:44 +00:00
crschmidt
ba5b664a2f Firefox SVG does not support drawing points with values more than something
between 10,000 and 40,000. (It's hard to tell, since it crashes the browser 
when you try.) The resulting behavior is that the browser crashes. This 
wraps these values into Pixel regions, and doesn't draw features which fall 
outside of them. (This sucks, but the result is the browser not crashing.) 
This closes #669, and should be improved as described in #670 for 2.5.

If for some reason you know that the browser you're on can support larger 
maxPixel values, you can adjust the maxPixel private variable on the 
renderer. I believe that Opera and WebKit nightlies will work fine with 
a larger maxPixel value. Changing this is encouraged *only* if you 
are developer working on the code, because it can totally crash browsers 
in a production environment.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3071 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-13 12:40:22 +00:00
Tim Schaub
0d2b12c7cd #662 - prototypes shouldn't get properties that might be extended
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3070 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-12 15:12:44 +00:00
Tim Schaub
83238e742f #661 - add background-repeat style declaration for toolbar images
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3069 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-12 15:09:18 +00:00
crschmidt
15465a455b Move LayerSwitcher control down so that it doesn't overlay with the editing
controls. Patch from #641 by penyaskito . Thanks!


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3068 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-12 10:59:17 +00:00
crschmidt
1548a6c470 Patch to empty selectedFeatures when destroying all features from #665,
tschaub. This includes tests (hooray) and fixes issues with zooming a wfs
layer while you have a feature selected.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3067 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-12 10:51:39 +00:00
euzuro
4ec005c06c fix for #660 -- feature.vector.attributes now correctly instantiated.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3066 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-11 21:08:45 +00:00
Tim Schaub
b02522ea4c #655: add layer.eraseFeatures.patch() on the "public" side of the API - layer methods should be called instead of layer.renderer methods wherever possible
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3065 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-11 15:48:41 +00:00
crschmidt
dbac2b1c83 Apply a patch from #657 to fix single file builds, broken by my style changes
a while back. Patch from Erik, reports from a couple people. Thanks!


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3045 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-10 22:12:18 +00:00
Tim Schaub
645bff1286 #628 - a feature has a geometry - a geometry doesn't have a feature - features are rendered, selected, moved, modified, etc - down in the renderer, expando properties on nodes are limited to _featureId, _style, and _options - this removes expandos that created circular references back through the map and to other dom elements - when the renderer is involved in selecting features, it returns a featureId (instead of a geometry or feature) and the layer is responsible for fetching the appropriate feature
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3043 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-10 16:07:56 +00:00
crschmidt
8af1822d94 Minor change to change default post-drag styling from 'default' to ''. This allows
CSS-based styling of the cursor on the map, rather than forcing 'default' after every
action. Tested in Safari, Opera, Firefox, IE7. Patch from Andreas Hocevar, #635. Thanks!


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3042 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-10 10:35:16 +00:00
crschmidt
4968e0e59c Commit Fix for #654: Layer should not redraw on setVisibility(false). For
some layers, this is a significant performance enhancement. Includes regression
tests.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3041 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-10 10:30:49 +00:00
crschmidt
df65488d3a Commit #637, "add cursor property in Feature.Vector" from pgiraud, with
minor modification: because features by default do nothing at all, change
the default cursor property (keep it at null) so that users aren't confused
when clicking has no affect. Thanks for the patch.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3040 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-10 10:19:13 +00:00
Tim Schaub
6ffc672436 #652 - IE was pretending it didn't know about document.onselectstart - though it relies on it
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3039 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-09 20:15:19 +00:00
Tim Schaub
fc9bbae52e get rid of reference to Debug.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3038 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-09 19:49:14 +00:00
euzuro
ea3683db68 update jsdoc
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3037 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-09 19:40:31 +00:00
Tim Schaub
26925a89f1 #645 - layer.removeFeatures backs through the features array to ensure that all features are removed
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3036 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-09 15:29:31 +00:00
euzuro
1603d5a8ba fix for #643. layer class can be safely doubled up now
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3035 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-09 15:00:10 +00:00
crschmidt
057d574ec1 From Erik, "add strategic TBD 3.0 comments to remind us to remove the 'url'
var from OpenLayers.Tile's constructor." This has no affects other than to
let people know now that this behavior will change in future versions of 
OpenLayers.  #647.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3034 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-09 14:08:09 +00:00
crschmidt
377e805f26 Fix for #554, click event and PanZoom control conflict, which was caused by
#484 in 2.3. This fixes the 2.2 -> current regression. Should be pulled
up to the 2.4 branch.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3033 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-09 13:22:32 +00:00
Tim Schaub
989f35e5cf #649 - remove collection.getComponents - use collection.components instead
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3032 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-06 23:31:36 +00:00
Tim Schaub
00eb6dda59 #645: decided it was a bad idea to make the tests break before committing the fix
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3030 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-06 17:11:17 +00:00
euzuro
c0240b9ea5 small update to simplify code. when this class's initialize() function was changed, this was left as-is but now it can be reverted to just calling the constructor simply. #646
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3029 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-06 16:43:08 +00:00
euzuro
50237086a4 small documentation update #644
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3028 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-06 16:41:22 +00:00
Tim Schaub
7598ddbad8 proof that Layer.Vector is broken
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3027 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-06 16:17:11 +00:00
crschmidt
87bad5b9f8 #633: Fix memory leak in box marker used for boxes layer. Add comprehensive
tests for Box marker.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3026 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-06 03:30:31 +00:00
crschmidt
cf94dbeb01 Minor style change on Layer.Boxes, #634.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3025 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-06 03:28:06 +00:00
crschmidt
098ed43cf6 Add tests and improved functionality for keyboard defaults from #580.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3024 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-06 03:13:17 +00:00
euzuro
895ba639ae patch for #636 - double-protect layer.destroy()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3023 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-05 23:02:48 +00:00
Tim Schaub
cd6f2dd006 #632: fixing the image layer that broke with r2979 - layer now sets its tileSize and imageSize appropriately - this also addesses (dup) ticket 511
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3020 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-05 22:35:54 +00:00
crschmidt
1de25d5f04 make mergejs parsing more resilient to various line ending formats. this
makes building work on windows again.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3008 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-05 03:51:32 +00:00
Schuyler Erle
f3bb8ad736 Update release.sh for 2.4.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3002 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-04 04:42:26 +00:00
831 changed files with 81852 additions and 40951 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
*.pyc
/build
/examples/*.html.png
/examples/example-list.js
/examples/example-list.xml

12
.travis.yml Normal file
View File

@@ -0,0 +1,12 @@
before_install:
- "sudo pip install http://closure-linter.googlecode.com/files/closure_linter-latest.tar.gz"
- "git clone --depth=50 https://github.com/jsdoc3/jsdoc build/jsdoc"
- "git clone https://code.google.com/p/glsl-unit/ build/glsl-unit"
before_script:
- "./build.py plovr"
- "./build.py serve-integration-test &"
- "rm src/ol/renderer/webgl/*shader.js"
- "sleep 3"
script: "./build.py JSDOC=build/jsdoc/jsdoc integration-test"

57
AUTHORS.md Normal file
View File

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

21
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,21 @@
# Contributing to OpenLayers 3
Thanks for your interest in contributing to OpenLayers 3.
## Contributing Code
Our preferred means of receiving contributions is through [pull
requests](https://help.github.com/articles/using-pull-requests).
See the [Developer
Guide](https://github.com/openlayers/ol3/wiki/Developer-Guide) to get started
with OpenLayers 3 development. This guide provides information you should know
before creating pull requests.
Note that, before accepting a contribution, we ask that you provide us
a Contributor License Agreement. If you are making your contribution as part of
work for your employer, please follow the guidelines on submitting a [Corporate
Contributor License Agreement](http://www.openlayers.org/ccla.txt). If you are
making your contribution as an individual, you can submit a digital [Individual
Contributor License
Agreement](https://docs.google.com/spreadsheet/viewform?formkey=dGNNVUJEMXF2dERTU0FXM3JjNVBQblE6MQ).

27
LICENSE.md Normal file
View File

@@ -0,0 +1,27 @@
Copyright 2005-2013 OpenLayers Contributors. All rights reserved. See
AUTHORS.md for full list.
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.
THIS SOFTWARE IS PROVIDED BY OPENLAYERS CONTRIBUTORS ``AS IS'' AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies,
either expressed or implied, of OpenLayers Contributors.

9
README.md Normal file
View File

@@ -0,0 +1,9 @@
# OpenLayers 3
[![Travis CI Status](https://secure.travis-ci.org/openlayers/ol3.png)](http://travis-ci.org/#!/openlayers/ol3)
Welcome to OpenLayers 3!
To see OpenLayers 3 in action you can look at the live examples on
http://openlayers.github.io/ol3/master/examples/. If you want to contribute
to OpenLayers 3 please read the [CONTRIBUTING](CONTRIBUTING.md) page.

View File

@@ -1,127 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="18.000000px"
height="18.000000px"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.42"
sodipodi:docbase="/Users/phil/Documents/work/metacarta/2svn.openlayers.net/follower/code/b-edits-1/openlayers/assets/ui_elements"
sodipodi:docname="pan_icons.svg"
inkscape:export-filename="/Users/phil/Documents/work/metacarta/2svn.openlayers.net/follower/code/b-edits-1/openlayers/assets/ui_elements/zoom-minus-mini.png"
inkscape:export-xdpi="90.000000"
inkscape:export-ydpi="90.000000">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.0000000"
inkscape:cx="9.0000000"
inkscape:cy="9.0000000"
inkscape:document-units="px"
inkscape:current-layer="layer1"
inkscape:window-width="1226"
inkscape:window-height="800"
inkscape:window-x="42"
inkscape:window-y="22" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="background"
inkscape:groupmode="layer"
id="layer1">
<g
id="g2110">
<path
transform="matrix(0.000000,-1.003160,1.003160,0.000000,-2.844000e-2,18.02844)"
d="M 17.971654 9.0000000 A 8.9716539 8.9716539 0 1 1 0.028346062,9.0000000 A 8.9716539 8.9716539 0 1 1 17.971654 9.0000000 z"
sodipodi:ry="8.9716539"
sodipodi:rx="8.9716539"
sodipodi:cy="9.0000000"
sodipodi:cx="9.0000000"
id="path2059"
style="fill:#00008b;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
sodipodi:type="arc" />
<rect
transform="matrix(0.000000,-1.000000,1.000000,0.000000,0.000000,0.000000)"
y="4.3599998e-06"
x="-9.0000048"
height="18.000000"
width="9.0000000"
id="rect2061"
style="fill:#00008b;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000" />
</g>
</g>
<g
inkscape:groupmode="layer"
id="layer4"
inkscape:label="zoom"
style="display:inline">
<text
xml:space="preserve"
style="font-size:18.000000px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125.00000%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1.0000000;stroke:#ffffff;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1.0000000;font-family:Helvetica"
x="3.7485352"
y="-3.4077148"
id="text2114"
sodipodi:linespacing="125.00000%"
transform="scale(1.000000,-1.000000)"><tspan
sodipodi:role="line"
id="tspan2118"
x="3.7485352"
y="-3.4077148"></tspan></text>
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="overlay"
style="display:none">
<path
style="font-size:12.000000px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125.00000%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;font-family:Verdana"
d="M 2.9678210,9.0332227 C 2.9678314,9.5015070 3.1752531,9.8938504 3.5900866,10.210254 C 3.6463464,10.254553 3.9451742,10.453889 4.4865710,10.808262 L 8.1568835,13.247754 C 8.2693886,13.323691 8.4240759,13.393300 8.6209460,13.456582 C 8.8107943,13.519862 9.0041535,13.551503 9.2010240,13.551504 C 9.5736843,13.551503 9.8936056,13.431269 10.160789,13.190801 C 10.427980,12.950332 10.561574,12.659238 10.561572,12.317520 C 10.561574,11.861896 10.322511,11.488536 9.8443836,11.197442 L 8.5998522,10.428575 L 14.548408,10.428575 C 15.026535,10.428577 15.406221,10.298849 15.687470,10.039395 C 15.968721,9.7799443 16.109345,9.4318977 16.109345,8.9952540 C 16.109345,8.5396330 15.961690,8.1915865 15.666377,7.9511133 C 15.364034,7.7106494 14.980831,7.5904152 14.516767,7.5904102 L 8.6314928,7.5904102 L 9.9920390,6.7076368 C 10.160793,6.5937365 10.290871,6.4481897 10.382274,6.2709962 C 10.466652,6.0874870 10.508840,5.8913153 10.508837,5.6824805 C 10.508840,5.3281127 10.378761,5.0338552 10.118602,4.7997070 C 9.8584498,4.5655745 9.5279814,4.4485043 9.1271961,4.4484962 C 8.7615757,4.4485043 8.4029823,4.5624104 8.0514147,4.7902149 L 3.9697741,7.5239649 C 3.6393151,7.7454540 3.4002529,7.9542820 3.2525866,8.1504493 C 3.0627532,8.3972503 2.9678314,8.6756875 2.9678210,8.9857618 L 2.9678210,9.0332227"
id="text2082"
sodipodi:nodetypes="csccsssscccssscccssssccscc" />
</g>
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="pan triangle"
style="display:none">
<path
sodipodi:type="star"
style="fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
id="path2107"
sodipodi:sides="3"
sodipodi:cx="6.8031497"
sodipodi:cy="5.1874018"
sodipodi:r1="5.0880113"
sodipodi:r2="2.5440056"
sodipodi:arg1="1.0471976"
sodipodi:arg2="2.0943951"
inkscape:flatsided="false"
inkscape:rounded="0.0000000"
inkscape:randomized="0.0000000"
d="M 9.3471551,9.5937489 L 5.5311469,7.3905753 L 1.7151384,5.1874015 L 5.5311469,2.9842283 L 9.3471555,0.78105489 L 9.3471553,5.1874018 L 9.3471551,9.5937489 z "
transform="matrix(0.000000,-1.331000,1.331000,0.000000,2.038879,16.92102)" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.3 KiB

View File

@@ -1,128 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="18.000000px"
height="18.000000px"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.43"
sodipodi:docbase="/home/sderle/projects/openlayers/layerswitcher/art"
sodipodi:docname="layer-switcher-maximize.svg"
inkscape:export-filename="/Users/phil/Documents/work/metacarta/2svn.openlayers.net/follower/code/b-edits-1/openlayers/assets/ui_elements/zoom-minus-mini.png"
inkscape:export-xdpi="90.000000"
inkscape:export-ydpi="90.000000">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="16"
inkscape:cx="9"
inkscape:cy="9"
inkscape:document-units="px"
inkscape:current-layer="layer4"
inkscape:window-width="1226"
inkscape:window-height="800"
inkscape:window-x="42"
inkscape:window-y="25" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="background"
inkscape:groupmode="layer"
id="layer1">
<g
id="g2110"
transform="matrix(-7.849624e-17,1,-1,-7.849624e-17,18,0)">
<path
transform="matrix(0,-1.00316,1.00316,0,-2.844e-2,18.02844)"
d="M 17.971654 9 A 8.9716539 8.9716539 0 1 1 0.028346062,9 A 8.9716539 8.9716539 0 1 1 17.971654 9 z"
sodipodi:ry="8.9716539"
sodipodi:rx="8.9716539"
sodipodi:cy="9"
sodipodi:cx="9"
id="path2059"
style="fill:#00008b;fill-opacity:1;stroke:none;stroke-width:39.98414612;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
sodipodi:type="arc" />
<rect
transform="matrix(0,-1,1,0,0,0)"
y="4.3599998e-06"
x="-9.0000048"
height="18"
width="9"
id="rect2061"
style="fill:#00008b;fill-opacity:1;stroke:none;stroke-width:39.98414612;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</g>
<g
inkscape:groupmode="layer"
id="layer4"
inkscape:label="zoom"
style="display:inline">
<text
xml:space="preserve"
style="font-size:18px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1;display:inline;font-family:Helvetica"
x="1.5214844"
y="-3.2949219"
id="text2114"
sodipodi:linespacing="125%"
transform="scale(1,-1)"><tspan
sodipodi:role="line"
id="tspan2118"
x="1.5214844"
y="-3.2949219">+</tspan></text>
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="overlay"
style="display:none">
<path
style="font-size:12.000000px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125.00000%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;font-family:Verdana"
d="M 2.9678210,9.0332227 C 2.9678314,9.5015070 3.1752531,9.8938504 3.5900866,10.210254 C 3.6463464,10.254553 3.9451742,10.453889 4.4865710,10.808262 L 8.1568835,13.247754 C 8.2693886,13.323691 8.4240759,13.393300 8.6209460,13.456582 C 8.8107943,13.519862 9.0041535,13.551503 9.2010240,13.551504 C 9.5736843,13.551503 9.8936056,13.431269 10.160789,13.190801 C 10.427980,12.950332 10.561574,12.659238 10.561572,12.317520 C 10.561574,11.861896 10.322511,11.488536 9.8443836,11.197442 L 8.5998522,10.428575 L 14.548408,10.428575 C 15.026535,10.428577 15.406221,10.298849 15.687470,10.039395 C 15.968721,9.7799443 16.109345,9.4318977 16.109345,8.9952540 C 16.109345,8.5396330 15.961690,8.1915865 15.666377,7.9511133 C 15.364034,7.7106494 14.980831,7.5904152 14.516767,7.5904102 L 8.6314928,7.5904102 L 9.9920390,6.7076368 C 10.160793,6.5937365 10.290871,6.4481897 10.382274,6.2709962 C 10.466652,6.0874870 10.508840,5.8913153 10.508837,5.6824805 C 10.508840,5.3281127 10.378761,5.0338552 10.118602,4.7997070 C 9.8584498,4.5655745 9.5279814,4.4485043 9.1271961,4.4484962 C 8.7615757,4.4485043 8.4029823,4.5624104 8.0514147,4.7902149 L 3.9697741,7.5239649 C 3.6393151,7.7454540 3.4002529,7.9542820 3.2525866,8.1504493 C 3.0627532,8.3972503 2.9678314,8.6756875 2.9678210,8.9857618 L 2.9678210,9.0332227"
id="text2082"
sodipodi:nodetypes="csccsssscccssscccssssccscc" />
</g>
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="pan triangle"
style="display:none">
<path
sodipodi:type="star"
style="fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
id="path2107"
sodipodi:sides="3"
sodipodi:cx="6.8031497"
sodipodi:cy="5.1874018"
sodipodi:r1="5.0880113"
sodipodi:r2="2.5440056"
sodipodi:arg1="1.0471976"
sodipodi:arg2="2.0943951"
inkscape:flatsided="false"
inkscape:rounded="0.0000000"
inkscape:randomized="0.0000000"
d="M 9.3471551,9.5937489 L 5.5311469,7.3905753 L 1.7151384,5.1874015 L 5.5311469,2.9842283 L 9.3471555,0.78105489 L 9.3471553,5.1874018 L 9.3471551,9.5937489 z "
transform="matrix(0.000000,-1.331000,1.331000,0.000000,2.038879,16.92102)" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.1 KiB

View File

@@ -1,142 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
inkscape:export-ydpi="90.000000"
inkscape:export-xdpi="90.000000"
inkscape:export-filename="/home/sderle/projects/openlayers/layerswitcher/img/layer-switcher-minimize.png"
sodipodi:docname="layer-switcher-minimize.svg"
sodipodi:docbase="/home/sderle/projects/openlayers/layerswitcher/art"
inkscape:version="0.43"
sodipodi:version="0.32"
id="svg2"
height="18.000000px"
width="18.000000px">
<defs
id="defs4" />
<sodipodi:namedview
inkscape:window-y="26"
inkscape:window-x="42"
inkscape:window-height="800"
inkscape:window-width="1226"
inkscape:current-layer="layer1"
inkscape:document-units="px"
inkscape:cy="9.3025513"
inkscape:cx="9"
inkscape:zoom="16"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="display:inline"
id="layer1"
inkscape:groupmode="layer"
inkscape:label="background">
<rect
style="fill:#00008b;fill-opacity:0;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
id="rect2061"
width="18.014498"
height="18.000000"
x="-18.014502"
y="4.3599998e-06"
transform="matrix(0.000000,-1.000000,1.000000,0.000000,0.000000,0.000000)"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90"
inkscape:export-filename="/home/sderle/projects/openlayers/layerswitcher/art/layer-switcher-minimize.png" />
</g>
<g
inkscape:label="graticule"
id="layer5"
inkscape:groupmode="layer">
<text
xml:space="preserve"
style="font-size:18px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1;display:inline;font-family:Helvetica"
x="5.2802601"
y="-3.8032362"
id="text1432"
sodipodi:linespacing="125%"
transform="scale(1,-1)"><tspan
sodipodi:role="line"
id="tspan1434"
x="5.2802601"
y="-3.8032362">-</tspan></text>
<rect
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.99699599px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
id="rect1438"
width="13.003004"
height="13.002999"
x="2.498498"
y="2.4984975" />
</g>
<g
style="display:none"
inkscape:label="zoom"
id="layer4"
inkscape:groupmode="layer">
<text
transform="scale(1.000000,-1.000000)"
sodipodi:linespacing="125.00000%"
id="text2114"
y="-3.4077148"
x="3.7485352"
style="font-size:18.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#ffffff;fill-opacity:1.0000000;stroke:#ffffff;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1.0000000;font-family:Helvetica;text-anchor:start;writing-mode:lr-tb"
xml:space="preserve"><tspan
y="-3.4077148"
x="3.7485352"
id="tspan2118"
sodipodi:role="line"></tspan></text>
</g>
<g
style="display:none"
inkscape:label="overlay"
id="layer2"
inkscape:groupmode="layer">
<path
sodipodi:nodetypes="csccsssscccssscccssssccscc"
id="text2082"
d="M 2.9678210,9.0332227 C 2.9678314,9.5015070 3.1752531,9.8938504 3.5900866,10.210254 C 3.6463464,10.254553 3.9451742,10.453889 4.4865710,10.808262 L 8.1568835,13.247754 C 8.2693886,13.323691 8.4240759,13.393300 8.6209460,13.456582 C 8.8107943,13.519862 9.0041535,13.551503 9.2010240,13.551504 C 9.5736843,13.551503 9.8936056,13.431269 10.160789,13.190801 C 10.427980,12.950332 10.561574,12.659238 10.561572,12.317520 C 10.561574,11.861896 10.322511,11.488536 9.8443836,11.197442 L 8.5998522,10.428575 L 14.548408,10.428575 C 15.026535,10.428577 15.406221,10.298849 15.687470,10.039395 C 15.968721,9.7799443 16.109345,9.4318977 16.109345,8.9952540 C 16.109345,8.5396330 15.961690,8.1915865 15.666377,7.9511133 C 15.364034,7.7106494 14.980831,7.5904152 14.516767,7.5904102 L 8.6314928,7.5904102 L 9.9920390,6.7076368 C 10.160793,6.5937365 10.290871,6.4481897 10.382274,6.2709962 C 10.466652,6.0874870 10.508840,5.8913153 10.508837,5.6824805 C 10.508840,5.3281127 10.378761,5.0338552 10.118602,4.7997070 C 9.8584498,4.5655745 9.5279814,4.4485043 9.1271961,4.4484962 C 8.7615757,4.4485043 8.4029823,4.5624104 8.0514147,4.7902149 L 3.9697741,7.5239649 C 3.6393151,7.7454540 3.4002529,7.9542820 3.2525866,8.1504493 C 3.0627532,8.3972503 2.9678314,8.6756875 2.9678210,8.9857618 L 2.9678210,9.0332227"
style="font-size:12.000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;font-family:Verdana;text-anchor:start;writing-mode:lr-tb" />
</g>
<g
style="display:none"
inkscape:label="pan triangle"
id="layer3"
inkscape:groupmode="layer">
<path
transform="matrix(0.000000,-1.331000,1.331000,0.000000,2.038879,16.92102)"
d="M 9.3471551,9.5937489 L 5.5311469,7.3905753 L 1.7151384,5.1874015 L 5.5311469,2.9842283 L 9.3471555,0.78105489 L 9.3471553,5.1874018 L 9.3471551,9.5937489 z "
inkscape:randomized="0.0000000"
inkscape:rounded="0.0000000"
inkscape:flatsided="false"
sodipodi:arg2="2.0943951"
sodipodi:arg1="1.0471976"
sodipodi:r2="2.5440056"
sodipodi:r1="5.0880113"
sodipodi:cy="5.1874018"
sodipodi:cx="6.8031497"
sodipodi:sides="3"
id="path2107"
style="fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
sodipodi:type="star" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.6 KiB

View File

@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
<!ENTITY ns_svg "http://www.w3.org/2000/svg">
]>
<svg version="1.1" id="Layer_1" xmlns:i="&ns_ai;"
xmlns="&ns_svg;" width="20.5" height="24.5" viewBox="0 0 20.5 24.5"
overflow="visible" enable-background="new 0 0 20.5 24.5" xml:space="preserve">
<g i:extraneous="self">
<rect x="0.25" y="0.25" opacity="0" stroke="#000000" stroke-width="1" width="20" height="24"/>
<g id="XMLID_2_">
<g>
<polygon fill="#FF0000" points="10.12,0.6 19.93,7.71 10.06,24.03 0.6,7.58 "/>
</g>
<g>
<polyline fill="none" stroke="#000000" stroke-width="1" points="9.98,24.16 10.06,24.03 19.93,7.71 20.06,7.49 "/>
<polyline fill="none" stroke="#000000" stroke-width="1" points="10.13,24.16 10.06,24.03 0.6,7.58 0.5,7.41 "/>
<polyline fill="none" stroke="#000000" stroke-width="1" points="0.41,7.72 0.6,7.58 10.12,0.6 10.29,0.47 "/>
<polyline fill="none" stroke="#000000" stroke-width="1" points="9.94,0.47 10.12,0.6 19.93,7.71 20.06,7.8 "/>
</g>
</g>
<ellipse stroke="#000000" stroke-width="1" cx="10.125" cy="9.25" rx="1.5" ry="1.5"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -1,36 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
<!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
<!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
<!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">
<!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
<!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">
<!ENTITY ns_svg "http://www.w3.org/2000/svg">
<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
]>
<svg version="1.1" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="28.375" height="28" viewBox="0 0 28.375 28"
overflow="visible" enable-background="new 0 0 28.375 28" xml:space="preserve">
<g i:extraneous="self">
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M27.875,1.375"/>
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M0,1.375"/>
<path fill="none" stroke="#FFFFFF" d="M0,27.475"/>
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,27.645"/>
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,0.544"/>
<line fill="none" stroke="#00008B" x1="0.875" y1="27.5" x2="27.875" y2="27.475"/>
<rect x="0.875" y="1.045" fill="#00008B" width="27.125" height="26"/>
<line fill="none" stroke="#00008B" x1="27.875" y1="26.925" x2="27.875" y2="0.925"/>
<line fill="none" stroke="#FFFFFF" x1="1.375" y1="0.5" x2="27.375" y2="0.5"/>
<line fill="none" stroke="#FFFFFF" x1="0.875" y1="1" x2="0.875" y2="27"/>
<rect x="5.252" y="11.157" transform="matrix(0.7933 -0.6088 0.6088 0.7933 -5.1621 12.1086)" fill="#FFBF00" width="20" height="5"/>
<line fill="#FFBF00" stroke="#000000" x1="8.376" y1="15.783" x2="10.717" y2="18.766"/>
<line fill="#FFBF00" stroke="#000000" x1="11.946" y1="13.043" x2="14.288" y2="16.027"/>
<line fill="#FFBF00" stroke="#000000" x1="15.342" y1="10.437" x2="17.684" y2="13.42"/>
<line fill="#FFBF00" stroke="#000000" x1="18.69" y1="7.869" x2="21.03" y2="10.852"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -1,36 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
<!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
<!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
<!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">
<!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
<!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">
<!ENTITY ns_svg "http://www.w3.org/2000/svg">
<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
]>
<svg version="1.1" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="28.375" height="28" viewBox="0 0 28.375 28"
overflow="visible" enable-background="new 0 0 28.375 28" xml:space="preserve">
<g i:extraneous="self">
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M27.875,1.375"/>
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M0,1.375"/>
<path fill="none" stroke="#FFFFFF" d="M0,27.475"/>
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,27.645"/>
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,0.544"/>
<line fill="none" stroke="#FFFFFF" x1="0.875" y1="27.5" x2="27.875" y2="27.475"/>
<rect x="0.875" y="1.045" fill="#ADD8E6" width="27.125" height="26"/>
<line fill="none" stroke="#FFFFFF" x1="27.875" y1="26.925" x2="27.875" y2="0.925"/>
<line fill="none" stroke="#00008B" x1="1.375" y1="0.5" x2="27.375" y2="0.5"/>
<line fill="none" stroke="#00008B" x1="0.875" y1="1" x2="0.875" y2="27"/>
<rect x="4.252" y="12.157" transform="matrix(0.7933 -0.6088 0.6088 0.7933 -5.9776 11.7065)" fill="#FFBF00" width="20" height="5"/>
<line fill="#FFBF00" stroke="#000000" x1="7.376" y1="16.783" x2="9.717" y2="19.766"/>
<line fill="#FFBF00" stroke="#000000" x1="10.946" y1="14.043" x2="13.288" y2="17.027"/>
<line fill="#FFBF00" stroke="#000000" x1="14.342" y1="11.437" x2="16.684" y2="14.42"/>
<line fill="#FFBF00" stroke="#000000" x1="17.69" y1="8.869" x2="20.03" y2="11.852"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -1,44 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
<!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
<!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
<!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">
<!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
<!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">
<!ENTITY ns_svg "http://www.w3.org/2000/svg">
<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
]>
<svg version="1.1" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="28.375" height="28" viewBox="0 0 28.375 28"
overflow="visible" enable-background="new 0 0 28.375 28" xml:space="preserve">
<g i:extraneous="self">
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M27.875,1.375"/>
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M0,1.375"/>
<path fill="none" stroke="#FFFFFF" d="M0,27.475"/>
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,27.645"/>
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,0.544"/>
<line fill="none" stroke="#00008B" x1="0.875" y1="27.5" x2="27.875" y2="27.475"/>
<rect x="0.875" y="1.045" fill="#00008B" width="27.125" height="26"/>
<line fill="none" stroke="#00008B" x1="27.875" y1="26.925" x2="27.875" y2="0.925"/>
<line fill="none" stroke="#FFFFFF" x1="1.375" y1="0.5" x2="27.375" y2="0.5"/>
<line fill="none" stroke="#FFFFFF" x1="0.875" y1="1" x2="0.875" y2="27"/>
<path fill="#FFFFFF" stroke="#000000" d="M9.458,22.458c-0.473-0.168-1.02-1.269-1.363-1.695
c-0.479-0.595-0.894-1.245-1.377-1.829c-0.733-0.887-1.356-1.729-1.854-2.764c-0.375-0.782-0.884-1.997-0.005-2.648
c1.036-0.767,2.095-0.162,2.934,0.479c0.844,0.646,1.729,1.18,2.526,1.869c-0.372-0.305-0.548-0.986-0.778-1.421
c-0.253-0.477-0.565-0.906-0.822-1.375c-0.359-0.657-0.767-1.201-1.21-1.823c-0.544-0.763-1.051-1.74-0.925-2.709
c0.133-1.025,0.972-1.527,1.924-1.207c1.202,0.405,1.969,1.692,2.627,2.698c0.636,0.971,1.201,2.159,1.938,3.042
c-0.222-0.209-0.148-0.508-0.155-0.782c-0.01-0.37-0.097-0.626-0.219-0.967c-0.162-0.455-0.219-0.972-0.24-1.45
c-0.034-0.776-0.25-1.465-0.25-2.247c0-0.988-0.14-1.963,0.71-2.631c0.666-0.523,1.649-0.764,2.381-0.248
c1.385,0.976,1.057,2.999,1.209,4.458c0.079,0.759,0.165,1.489,0.2,2.263c0.022,0.496,0.209,1.067,0.168,1.558
c-0.146-0.269-0.113-0.749-0.127-1.057c-0.022-0.502-0.041-0.982-0.115-1.47c-0.114-0.743-0.188-1.564-0.25-2.324
c-0.152-1.877,2.054-3.17,3.301-1.469c0.884,1.206,0.773,2.643,0.773,4.085c0,0.698-0.034,1.251-0.22,1.91
c-0.13,0.459-0.293,1.222-0.239,1.638c0-0.902,0.334-1.697,0.334-2.588c0-0.678-0.272-2.099,0.581-2.334
c1.065-0.294,2.008,0.875,2.428,1.66c0.458,0.855,0.555,1.901,0.409,2.882c-0.318,2.154-0.845,4.227-2.096,6.072
c-0.268,0.396-0.485,0.838-0.79,1.22c-0.361,0.452-0.923,0.772-1.416,1.071c-0.381,0.232-0.764,0.53-1.176,0.604
c-0.822,0.149-1.725,0.157-2.565,0.157c-1.29,0-2.564-0.068-3.832-0.251c-0.799-0.115-2.12,0.153-2.668-0.54"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -1,44 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
<!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
<!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
<!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">
<!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
<!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">
<!ENTITY ns_svg "http://www.w3.org/2000/svg">
<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
]>
<svg version="1.1" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="28.375" height="28" viewBox="0 0 28.375 28"
overflow="visible" enable-background="new 0 0 28.375 28" xml:space="preserve">
<g i:extraneous="self">
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M27.875,1.375"/>
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M0,1.375"/>
<path fill="none" stroke="#FFFFFF" d="M0,27.475"/>
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,27.645"/>
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,0.544"/>
<line fill="none" stroke="#FFFFFF" x1="0.875" y1="27.5" x2="27.875" y2="27.475"/>
<rect x="0.875" y="1.045" fill="#ADD8E6" width="27.125" height="26"/>
<line fill="none" stroke="#FFFFFF" x1="27.875" y1="26.925" x2="27.875" y2="0.925"/>
<line fill="none" stroke="#00008B" x1="1.375" y1="0.5" x2="27.375" y2="0.5"/>
<line fill="none" stroke="#00008B" x1="0.875" y1="1" x2="0.875" y2="27"/>
<path fill="#FFFFFF" stroke="#000000" d="M8.458,23.458c-0.473-0.168-1.02-1.269-1.363-1.695
c-0.479-0.595-0.894-1.245-1.377-1.829c-0.733-0.887-1.356-1.729-1.854-2.764c-0.375-0.782-0.884-1.997-0.005-2.648
c1.036-0.767,2.095-0.161,2.934,0.479c0.844,0.646,1.729,1.18,2.526,1.869c-0.372-0.305-0.548-0.986-0.778-1.421
c-0.253-0.477-0.565-0.906-0.822-1.375c-0.359-0.657-0.767-1.201-1.21-1.823c-0.544-0.763-1.051-1.74-0.925-2.709
c0.133-1.025,0.972-1.527,1.924-1.207c1.202,0.405,1.969,1.692,2.627,2.698c0.636,0.971,1.201,2.159,1.938,3.042
c-0.222-0.21-0.148-0.509-0.155-0.783c-0.01-0.37-0.097-0.626-0.219-0.967c-0.162-0.455-0.219-0.972-0.24-1.45
c-0.034-0.776-0.25-1.465-0.25-2.247c0-0.988-0.14-1.963,0.71-2.631c0.666-0.523,1.649-0.764,2.381-0.248
c1.385,0.976,1.057,2.999,1.209,4.458c0.079,0.759,0.165,1.489,0.2,2.263c0.022,0.496,0.209,1.068,0.168,1.558
c-0.146-0.27-0.113-0.75-0.127-1.058c-0.022-0.502-0.041-0.982-0.115-1.47c-0.114-0.743-0.188-1.564-0.25-2.324
c-0.152-1.877,2.054-3.17,3.301-1.469c0.884,1.206,0.773,2.643,0.773,4.085c0,0.698-0.034,1.251-0.22,1.91
c-0.13,0.459-0.293,1.222-0.239,1.639c0-0.902,0.334-1.697,0.334-2.589c0-0.678-0.272-2.099,0.581-2.334
c1.065-0.294,2.008,0.875,2.428,1.66c0.458,0.855,0.555,1.901,0.409,2.883c-0.318,2.153-0.845,4.227-2.096,6.071
c-0.268,0.396-0.485,0.838-0.79,1.22c-0.361,0.452-0.923,0.772-1.416,1.071c-0.381,0.232-0.764,0.53-1.176,0.604
c-0.822,0.149-1.725,0.157-2.565,0.157c-1.29,0-2.564-0.068-3.832-0.251c-0.799-0.115-2.12,0.153-2.668-0.54"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -1,71 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="210mm"
height="297mm"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.41.1"
sodipodi:docbase="/afs/metacarta.com/user/sderle/public_html/ol.zoombar/art"
sodipodi:docname="slider.svg"
inkscape:export-filename="/afs/metacarta.com/user/sderle/public_html/ol.zoombar/img/slider.png"
inkscape:export-xdpi="90.000000"
inkscape:export-ydpi="90.000000">
<defs
id="defs3" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="39.870978"
inkscape:cx="140.00732"
inkscape:cy="695.49796"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:window-width="1010"
inkscape:window-height="538"
inkscape:window-x="20"
inkscape:window-y="107" />
<metadata
id="metadata4">
<rdf:RDF
id="RDF5">
<cc:Work
rdf:about=""
id="Work6">
<dc:format
id="format7">image/svg+xml</dc:format>
<dc:type
id="type9"
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#00008b;fill-opacity:1.0000000;stroke:#000080;stroke-width:4.9999957;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
id="rect1291"
x="132.50000"
y="354.86218"
width="15.014628"
height="4.0040474" />
<path
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:2.0000000;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
d="M 134.08880,356.89603 L 146.00000,356.87002"
id="path2052" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.4 KiB

View File

@@ -1,193 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
inkscape:export-ydpi="90.000000"
inkscape:export-xdpi="90.000000"
inkscape:export-filename="/Users/phil/Documents/work/metacarta/2svn.openlayers.net/follower/code/b-edits-1/openlayers/assets/ui_elements/zoom-minus-mini.png"
sodipodi:docname="zoom-world.svg"
sodipodi:docbase="/afs/metacarta.com/user/sderle/OL/openlayers/assets/ui_elements"
inkscape:version="0.41.1"
sodipodi:version="0.32"
id="svg2"
height="18.000000px"
width="18.000000px">
<defs
id="defs4" />
<sodipodi:namedview
inkscape:window-y="26"
inkscape:window-x="42"
inkscape:window-height="800"
inkscape:window-width="1226"
inkscape:current-layer="layer5"
inkscape:document-units="px"
inkscape:cy="9.3025513"
inkscape:cx="9.0000000"
inkscape:zoom="1.0000000"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base" />
<metadata
id="metadata7">
<rdf:RDF
id="RDF1295">
<cc:Work
id="Work1297"
rdf:about="">
<dc:format
id="format1299">image/svg+xml</dc:format>
<dc:type
id="type1301"
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="display:inline"
id="layer1"
inkscape:groupmode="layer"
inkscape:label="background">
<rect
style="fill:#00008b;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
id="rect2061"
width="18.014498"
height="18.000000"
x="-18.014502"
y="4.3599998e-06"
transform="matrix(0.000000,-1.000000,1.000000,0.000000,0.000000,0.000000)" />
</g>
<g
inkscape:label="graticule"
id="layer5"
inkscape:groupmode="layer">
<g
transform="translate(0.000000,-4.419417e-2)"
id="g2876">
<path
transform="matrix(1.155321,0.000000,0.000000,1.155321,-2.292065,-1.751761)"
d="M 16.869573 9.3188362 A 7.0579743 7.0579743 0 1 1 2.7536244,9.3188362 A 7.0579743 7.0579743 0 1 1 16.869573 9.3188362 z"
sodipodi:ry="7.0579743"
sodipodi:rx="7.0579743"
sodipodi:cy="9.3188362"
sodipodi:cx="9.8115988"
id="path1321"
style="fill:none;fill-opacity:1.0000000;stroke:#ffffff;stroke-width:0.50000000;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
sodipodi:type="arc" />
<path
sodipodi:nodetypes="cc"
id="path2086"
d="M 8.1145142,1.1289949 C 15.315267,9.5238831 8.3963197,17.101449 8.3963197,17.057255"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
<path
sodipodi:nodetypes="cc"
id="path2846"
d="M 11.588885,1.3666059 C 18.922222,9.5405232 11.605526,16.764536 11.605526,16.764536"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
<path
sodipodi:nodetypes="cc"
id="path2848"
d="M 5.2258471,2.0593951 C 11.080923,9.7405585 5.3432210,16.278941 5.3432210,16.278941"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
<path
sodipodi:nodetypes="cc"
id="path2850"
d="M 2.7388198,3.7571959 C 6.3686281,9.1817837 2.9127331,14.361601 2.9127331,14.361601"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
</g>
<g
transform="matrix(-6.269315e-2,0.998033,-0.998033,-6.269315e-2,18.62352,0.612232)"
id="g2883">
<path
transform="matrix(1.155321,0.000000,0.000000,1.155321,-2.292065,-1.751761)"
d="M 16.869573 9.3188362 A 7.0579743 7.0579743 0 1 1 2.7536244,9.3188362 A 7.0579743 7.0579743 0 1 1 16.869573 9.3188362 z"
sodipodi:ry="7.0579743"
sodipodi:rx="7.0579743"
sodipodi:cy="9.3188362"
sodipodi:cx="9.8115988"
id="path2885"
style="fill:none;fill-opacity:1.0000000;stroke:#ffffff;stroke-width:0.50000000;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
sodipodi:type="arc" />
<path
sodipodi:nodetypes="cc"
id="path2887"
d="M 8.1145142,1.1289949 C 15.315267,9.5238831 8.3963197,17.101449 8.3963197,17.057255"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
<path
sodipodi:nodetypes="cc"
id="path2889"
d="M 11.588885,1.3666059 C 18.922222,9.5405232 11.605526,16.764536 11.605526,16.764536"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
<path
sodipodi:nodetypes="cc"
id="path2891"
d="M 5.2258471,2.0593951 C 11.080923,9.7405585 5.3432210,16.278941 5.3432210,16.278941"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
<path
sodipodi:nodetypes="cc"
id="path2893"
d="M 2.7388198,3.7571959 C 6.3686281,9.1817837 2.9127331,14.361601 2.9127331,14.361601"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
</g>
</g>
<g
style="display:none"
inkscape:label="zoom"
id="layer4"
inkscape:groupmode="layer">
<text
transform="scale(1.000000,-1.000000)"
sodipodi:linespacing="125.00000%"
id="text2114"
y="-3.4077148"
x="3.7485352"
style="font-size:18.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#ffffff;fill-opacity:1.0000000;stroke:#ffffff;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1.0000000;font-family:Helvetica;text-anchor:start;writing-mode:lr-tb"
xml:space="preserve"><tspan
y="-3.4077148"
x="3.7485352"
id="tspan2118"
sodipodi:role="line"></tspan></text>
</g>
<g
style="display:none"
inkscape:label="overlay"
id="layer2"
inkscape:groupmode="layer">
<path
sodipodi:nodetypes="csccsssscccssscccssssccscc"
id="text2082"
d="M 2.9678210,9.0332227 C 2.9678314,9.5015070 3.1752531,9.8938504 3.5900866,10.210254 C 3.6463464,10.254553 3.9451742,10.453889 4.4865710,10.808262 L 8.1568835,13.247754 C 8.2693886,13.323691 8.4240759,13.393300 8.6209460,13.456582 C 8.8107943,13.519862 9.0041535,13.551503 9.2010240,13.551504 C 9.5736843,13.551503 9.8936056,13.431269 10.160789,13.190801 C 10.427980,12.950332 10.561574,12.659238 10.561572,12.317520 C 10.561574,11.861896 10.322511,11.488536 9.8443836,11.197442 L 8.5998522,10.428575 L 14.548408,10.428575 C 15.026535,10.428577 15.406221,10.298849 15.687470,10.039395 C 15.968721,9.7799443 16.109345,9.4318977 16.109345,8.9952540 C 16.109345,8.5396330 15.961690,8.1915865 15.666377,7.9511133 C 15.364034,7.7106494 14.980831,7.5904152 14.516767,7.5904102 L 8.6314928,7.5904102 L 9.9920390,6.7076368 C 10.160793,6.5937365 10.290871,6.4481897 10.382274,6.2709962 C 10.466652,6.0874870 10.508840,5.8913153 10.508837,5.6824805 C 10.508840,5.3281127 10.378761,5.0338552 10.118602,4.7997070 C 9.8584498,4.5655745 9.5279814,4.4485043 9.1271961,4.4484962 C 8.7615757,4.4485043 8.4029823,4.5624104 8.0514147,4.7902149 L 3.9697741,7.5239649 C 3.6393151,7.7454540 3.4002529,7.9542820 3.2525866,8.1504493 C 3.0627532,8.3972503 2.9678314,8.6756875 2.9678210,8.9857618 L 2.9678210,9.0332227"
style="font-size:12.000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;font-family:Verdana;text-anchor:start;writing-mode:lr-tb" />
</g>
<g
style="display:none"
inkscape:label="pan triangle"
id="layer3"
inkscape:groupmode="layer">
<path
transform="matrix(0.000000,-1.331000,1.331000,0.000000,2.038879,16.92102)"
d="M 9.3471551,9.5937489 L 5.5311469,7.3905753 L 1.7151384,5.1874015 L 5.5311469,2.9842283 L 9.3471555,0.78105489 L 9.3471553,5.1874018 L 9.3471551,9.5937489 z "
inkscape:randomized="0.0000000"
inkscape:rounded="0.0000000"
inkscape:flatsided="false"
sodipodi:arg2="2.0943951"
sodipodi:arg1="1.0471976"
sodipodi:r2="2.5440056"
sodipodi:r1="5.0880113"
sodipodi:cy="5.1874018"
sodipodi:cx="6.8031497"
sodipodi:sides="3"
id="path2107"
style="fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
sodipodi:type="star" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -1,73 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="18"
height="18"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.43"
version="1.0"
inkscape:export-filename="C:\Documents and Settings\crschmidt\Desktop\zoombar.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90"
sodipodi:docbase="C:\Documents and Settings\crschmidt\Desktop"
sodipodi:docname="zoombar.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1"
inkscape:cx="-117.50597"
inkscape:cy="65.94562"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showguides="false"
showgrid="false"
inkscape:window-width="1024"
inkscape:window-height="721"
inkscape:window-x="-4"
inkscape:window-y="-4" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="opacity:0.5;fill:#808080;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000012;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect1307"
width="16.999998"
height="10.000004"
x="-125.51302"
y="-52.420002" />
<path
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999958;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.50196078"
d="M -125.54176,-52.415494 L -125.54176,-42.415495"
id="path8297" />
<path
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999982;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.50196078"
d="M -108.48157,-52.418044 L -108.48157,-42.418046"
id="path12667" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.6 KiB

1767
bin/BeautifulSoup.py Normal file

File diff suppressed because it is too large Load Diff

30
bin/check-example.js Normal file
View File

@@ -0,0 +1,30 @@
//
// A PhantomJS script used to check that the hosted examples load
// without errors. This script is executed by the build tool's
// check-examples target.
//
var args = require('system').args;
if (args.length != 2) {
phantom.exit(2);
}
var examplePath = args[1];
var page = require('webpage').create();
page.onError = function(msg, trace) {
var msgStack = ['JavaScript ERROR: ' + msg];
if (trace) {
msgStack.push('TRACE:');
trace.forEach(function(t) {
msgStack.push(' -> ' + t.file + ': ' + t.line + (t.function ? ' (in function "' + t.function + '")' : ''));
});
}
console.error(msgStack.join('\n'));
phantom.exit(1);
};
page.open(examplePath, function(s) {
var exitCode = 0;
if (s != 'success') {
exitCode = 1;
console.error('PAGE LOAD ERROR');
}
phantom.exit(exitCode);
});

202
bin/closure/depswriter.py Normal file
View File

@@ -0,0 +1,202 @@
#!/usr/bin/env python
#
# Copyright 2009 The Closure Library Authors. All Rights Reserved.
#
# 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.
"""Generates out a Closure deps.js file given a list of JavaScript sources.
Paths can be specified as arguments or (more commonly) specifying trees
with the flags (call with --help for descriptions).
Usage: depswriter.py [path/to/js1.js [path/to/js2.js] ...]
"""
import logging
import optparse
import os
import posixpath
import shlex
import sys
import source
import treescan
__author__ = 'nnaze@google.com (Nathan Naze)'
def MakeDepsFile(source_map):
"""Make a generated deps file.
Args:
source_map: A dict map of the source path to source.Source object.
Returns:
str, A generated deps file source.
"""
# Write in path alphabetical order
paths = sorted(source_map.keys())
lines = []
for path in paths:
js_source = source_map[path]
# We don't need to add entries that don't provide anything.
if js_source.provides:
lines.append(_GetDepsLine(path, js_source))
return ''.join(lines)
def _GetDepsLine(path, js_source):
"""Get a deps.js file string for a source."""
provides = sorted(js_source.provides)
requires = sorted(js_source.requires)
return 'goog.addDependency(\'%s\', %s, %s);\n' % (path, provides, requires)
def _GetOptionsParser():
"""Get the options parser."""
parser = optparse.OptionParser(__doc__)
parser.add_option('--output_file',
dest='output_file',
action='store',
help=('If specified, write output to this path instead of '
'writing to standard output.'))
parser.add_option('--root',
dest='roots',
default=[],
action='append',
help='A root directory to scan for JS source files. '
'Paths of JS files in generated deps file will be '
'relative to this path. This flag may be specified '
'multiple times.')
parser.add_option('--root_with_prefix',
dest='roots_with_prefix',
default=[],
action='append',
help='A root directory to scan for JS source files, plus '
'a prefix (if either contains a space, surround with '
'quotes). Paths in generated deps file will be relative '
'to the root, but preceded by the prefix. This flag '
'may be specified multiple times.')
parser.add_option('--path_with_depspath',
dest='paths_with_depspath',
default=[],
action='append',
help='A path to a source file and an alternate path to '
'the file in the generated deps file (if either contains '
'a space, surround with whitespace). This flag may be '
'specified multiple times.')
return parser
def _NormalizePathSeparators(path):
"""Replaces OS-specific path separators with POSIX-style slashes.
Args:
path: str, A file path.
Returns:
str, The path with any OS-specific path separators (such as backslash on
Windows) replaced with URL-compatible forward slashes. A no-op on systems
that use POSIX paths.
"""
return path.replace(os.sep, posixpath.sep)
def _GetRelativePathToSourceDict(root, prefix=''):
"""Scans a top root directory for .js sources.
Args:
root: str, Root directory.
prefix: str, Prefix for returned paths.
Returns:
dict, A map of relative paths (with prefix, if given), to source.Source
objects.
"""
# Remember and restore the cwd when we're done. We work from the root so
# that paths are relative from the root.
start_wd = os.getcwd()
os.chdir(root)
path_to_source = {}
for path in treescan.ScanTreeForJsFiles('.'):
prefixed_path = _NormalizePathSeparators(os.path.join(prefix, path))
path_to_source[prefixed_path] = source.Source(source.GetFileContents(path))
os.chdir(start_wd)
return path_to_source
def _GetPair(s):
"""Return a string as a shell-parsed tuple. Two values expected."""
try:
# shlex uses '\' as an escape character, so they must be escaped.
s = s.replace('\\', '\\\\')
first, second = shlex.split(s)
return (first, second)
except:
raise Exception('Unable to parse input line as a pair: %s' % s)
def main():
"""CLI frontend to MakeDepsFile."""
logging.basicConfig(format=(sys.argv[0] + ': %(message)s'),
level=logging.INFO)
options, args = _GetOptionsParser().parse_args()
path_to_source = {}
# Roots without prefixes
for root in options.roots:
path_to_source.update(_GetRelativePathToSourceDict(root))
# Roots with prefixes
for root_and_prefix in options.roots_with_prefix:
root, prefix = _GetPair(root_and_prefix)
path_to_source.update(_GetRelativePathToSourceDict(root, prefix=prefix))
# Source paths
for path in args:
path_to_source[path] = source.Source(source.GetFileContents(path))
# Source paths with alternate deps paths
for path_with_depspath in options.paths_with_depspath:
srcpath, depspath = _GetPair(path_with_depspath)
path_to_source[depspath] = source.Source(source.GetFileContents(srcpath))
# Make our output pipe.
if options.output_file:
out = open(options.output_file, 'w')
else:
out = sys.stdout
out.write('// This file was autogenerated by %s.\n' % sys.argv[0])
out.write('// Please do not edit.\n')
out.write(MakeDepsFile(path_to_source))
if __name__ == '__main__':
main()

114
bin/closure/source.py Normal file
View File

@@ -0,0 +1,114 @@
# Copyright 2009 The Closure Library Authors. All Rights Reserved.
#
# 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.
"""Scans a source JS file for its provided and required namespaces.
Simple class to scan a JavaScript file and express its dependencies.
"""
__author__ = 'nnaze@google.com'
import re
_BASE_REGEX_STRING = '^\s*goog\.%s\(\s*[\'"](.+)[\'"]\s*\)'
_PROVIDE_REGEX = re.compile(_BASE_REGEX_STRING % 'provide')
_REQUIRES_REGEX = re.compile(_BASE_REGEX_STRING % 'require')
# This line identifies base.js and should match the line in that file.
_GOOG_BASE_LINE = (
'var goog = goog || {}; // Identifies this file as the Closure base.')
class Source(object):
"""Scans a JavaScript source for its provided and required namespaces."""
# Matches a "/* ... */" comment.
# Note: We can't definitively distinguish a "/*" in a string literal without a
# state machine tokenizer. We'll assume that a line starting with whitespace
# and "/*" is a comment.
_COMMENT_REGEX = re.compile(
r"""
^\s* # Start of a new line and whitespace
/\* # Opening "/*"
.*? # Non greedy match of any characters (including newlines)
\*/ # Closing "*/""",
re.MULTILINE | re.DOTALL | re.VERBOSE)
def __init__(self, source):
"""Initialize a source.
Args:
source: str, The JavaScript source.
"""
self.provides = set()
self.requires = set()
self._source = source
self._ScanSource()
def __str__(self):
return 'Source %s' % self._path
def GetSource(self):
"""Get the source as a string."""
return self._source
@classmethod
def _StripComments(cls, source):
return cls._COMMENT_REGEX.sub('', source)
def _ScanSource(self):
"""Fill in provides and requires by scanning the source."""
source = self._StripComments(self.GetSource())
source_lines = source.splitlines()
for line in source_lines:
match = _PROVIDE_REGEX.match(line)
if match:
self.provides.add(match.group(1))
match = _REQUIRES_REGEX.match(line)
if match:
self.requires.add(match.group(1))
# Closure's base file implicitly provides 'goog'.
for line in source_lines:
if line == _GOOG_BASE_LINE:
if len(self.provides) or len(self.requires):
raise Exception(
'Base files should not provide or require namespaces.')
self.provides.add('goog')
def GetFileContents(path):
"""Get a file's contents as a string.
Args:
path: str, Path to file.
Returns:
str, Contents of file.
Raises:
IOError: An error occurred opening or reading the file.
"""
fileobj = open(path)
try:
return fileobj.read()
finally:
fileobj.close()

78
bin/closure/treescan.py Normal file
View File

@@ -0,0 +1,78 @@
#!/usr/bin/env python
#
# Copyright 2010 The Closure Library Authors. All Rights Reserved.
#
# 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.
"""Shared utility functions for scanning directory trees."""
import os
import re
__author__ = 'nnaze@google.com (Nathan Naze)'
# Matches a .js file path.
_JS_FILE_REGEX = re.compile(r'^.+\.js$')
def ScanTreeForJsFiles(root):
"""Scans a directory tree for JavaScript files.
Args:
root: str, Path to a root directory.
Returns:
An iterable of paths to JS files, relative to cwd.
"""
return ScanTree(root, path_filter=_JS_FILE_REGEX)
def ScanTree(root, path_filter=None, ignore_hidden=True):
"""Scans a directory tree for files.
Args:
root: str, Path to a root directory.
path_filter: A regular expression filter. If set, only paths matching
the path_filter are returned.
ignore_hidden: If True, do not follow or return hidden directories or files
(those starting with a '.' character).
Yields:
A string path to files, relative to cwd.
"""
def OnError(os_error):
raise os_error
for dirpath, dirnames, filenames in os.walk(root, onerror=OnError):
# os.walk allows us to modify dirnames to prevent decent into particular
# directories. Avoid hidden directories.
for dirname in dirnames:
if ignore_hidden and dirname.startswith('.'):
dirnames.remove(dirname)
for filename in filenames:
# nothing that starts with '.'
if ignore_hidden and filename.startswith('.'):
continue
fullpath = os.path.join(dirpath, filename)
if path_filter and not path_filter.match(fullpath):
continue
yield os.path.normpath(fullpath)

180
bin/example-screenshot.js Normal file
View File

@@ -0,0 +1,180 @@
/**
* This script is supposed to be executed via phantomjs. It will generate
* screenshots of the html files in the directory specified by a commandline
* option when these files are served through a webserver which can also be
* specified. The screenshots will be in the current working directory.
*
* Example usage:
*
* user@host:~/ol3/bin $ phantomjs example-screenshot.js \
* http://localhost:8000/ol3/examples/ \
* ../examples
*
* The above command will generate `*.png` files in `examples/` for all html
* files that are served through `http://localhost:8000/ol3/examples/`.
*
* So if there is a file `my-humpty-example.html` inside of the relative folder
* `../examples/` which is being served through the webserver so that
* `http://localhost:8000/ol3/examples/my-humpty-example.html` is a valid and
* reachable URL, this script will generate a screenshot and store it as
* `my-humpty-example.html.png`.
*
* The query string `?mode=raw` will be appended to the generated URL.
*
* Known limitations:
*
* As phantomjs doesn't support WebGL (see e.g.
* https://github.com/ariya/phantomjs/wiki/Supported-Web-Standards and
* http://code.google.com/p/phantomjs/issues/detail?id=273) This won't render
* OpenLayers maps rendered through the webglrenderer.
*
* In parts based upon this gist: https://gist.github.com/crazy4groovy/3160121
*/
(function() { // global closure
var page = require('webpage').create(), // imports
fs = require('fs'),
system = require('system'),
// arguments
baseExamplesUrl = system.args[1],
exampleDir = system.args[2],
// various settings
ignoreFiles = [
'index.html'
],
intervalMillisecs = 25,
renderMillisecs = 2000,
// basic variables
curDir = fs.workingDirectory,
exampleDirList = fs.list(exampleDir),
pageindex = 0,
fileName = '',
htmlFiles = [],
lenHtmlFiles = 0,
loadInProgress = false;
// simple object with helper functions
var util = {
/**
* Returns the basename of a file given a path.
*/
baseName: function(path) {
var parts = path.split(fs.separator);
return parts[parts.length - 1];
},
/**
* Super basic test whether a file can be considered a HTML-file.
*/
isHtmlFile: function(filename) {
return (/\.html?$/).test(filename);
},
/**
* Appends a slash to given string if it isn't there already.
*/
appendSlash: function(str) {
return ((/\/$/).test(str)) ? str : str + '/';
},
/**
* Generates an URL out of given baseurl and path.
*/
buildUrl: function(baseurl, path) {
var name = util.baseName(path),
mode = 'raw';
return util.appendSlash(baseurl) + name + '?mode=' + mode;
},
/**
* Simple progressbar logger that uses our globals pageindex & lenHtmlFiles.
*/
logProgress: function() {
var doneSymbol = '-',
todoSymbol = ' ',
currentSymbol = '>',
barStrLeft = '[',
barStrRight = ']',
progresStep = 5, // one doneSymbol equals this percentage
totalSteps = Math.round(100 / progresStep),
ratio = (lenHtmlFiles === 0) ? 0 : (pageindex / lenHtmlFiles),
percent = (ratio === 0) ? 0 : ratio * 100,
normalizedNumDone = Math.floor(ratio * totalSteps),
normalizedNumTodo = totalSteps - normalizedNumDone,
progressLine = '',
i = 0;
// the progress bar
progressLine += barStrLeft;
for (; i < normalizedNumDone; i++) {
progressLine += doneSymbol;
}
for (i = 0; i < normalizedNumTodo; i++) {
progressLine += (i === 0) ? currentSymbol : todoSymbol;
}
progressLine += barStrRight;
// the percentage information
// pad if necessary
if (percent < 10) {
progressLine += ' ';
} else if (percent < 100) {
progressLine += ' ';
}
progressLine += ' ' + percent.toFixed(1) + ' % done';
// additional information
if (fileName !== '') {
progressLine += ', ' + util.baseName(fileName) + '';
}
console.log(progressLine);
}
};
// iterate over all files in examples directory
// and find the HTML files.
for (var i = 0; i < exampleDirList.length; i++) {
var fullpath = exampleDir + fs.separator + exampleDirList[i];
if (fs.isFile(fullpath) && util.isHtmlFile(fullpath) &&
ignoreFiles.indexOf(util.baseName(fullpath)) === -1) {
//TODO: make this more async (i.e. pop on/off stack WHILE rending pages)
htmlFiles.push(fullpath);
}
}
lenHtmlFiles = htmlFiles.length;
console.log('Capturing ' + lenHtmlFiles + ' example screenshots.');
// The main interval function that is executed regularily and renders a
// page to a file
var interval = setInterval(function() {
if (!loadInProgress && pageindex < lenHtmlFiles) {
util.logProgress();
fileName = htmlFiles[pageindex];
page.viewportSize = { width: 800, height: 600 };
page.clipRect = {
top: 0,
left: 0,
width: page.viewportSize.width,
height: page.viewportSize.height
};
page.open(util.buildUrl(baseExamplesUrl, htmlFiles[pageindex]));
}
if (pageindex == lenHtmlFiles) {
util.logProgress();
console.log(lenHtmlFiles + ' screenshots captured.');
phantom.exit();
}
}, intervalMillisecs);
// set loadInProgress flag so we only process one image at time.
page.onLoadStarted = function() {
loadInProgress = true;
};
// When the page is loaded, render it to an image
page.onLoadFinished = function() {
var dest = exampleDir + fs.separator + util.baseName(fileName) + '.png';
window.setTimeout(function() {
loadInProgress = false;
page.render(dest); // actually render the page.
pageindex++;
}, renderMillisecs);
};
})(); // eof global closure

269
bin/exampleparser.py Executable file
View File

@@ -0,0 +1,269 @@
#!/usr/bin/env python
import sys
import os
import re
import time
from xml.dom.minidom import Document
try:
import xml.etree.ElementTree as ElementTree
except ImportError:
try:
import cElementTree as ElementTree # NOQA
except ImportError:
try:
import elementtree.ElementTree as ElementTree # NOQA
except ImportError:
import lxml.etree as ElementTree # NOQA
missing_deps = False
try:
import json
except ImportError:
try:
import simplejson as json # NOQA
except ImportError, E:
missing_deps = E
try:
from BeautifulSoup import BeautifulSoup
except ImportError, E:
missing_deps = E
feedName = "example-list.xml"
feedPath = "http://openlayers.github.io/ol3/master/examples/"
def getListOfExamples(relPath):
"""
returns list of .html filenames within a given path - excludes
index.html
"""
examples = os.listdir(relPath)
examples = [example for example in examples if
example.endswith('.html') and example != "index.html"]
return examples
def getExampleHtml(path):
"""
returns html of a specific example
"""
print '.',
f = open(path)
html = f.read()
f.close()
return html
def extractById(soup, tagId, value=None):
"""
returns full contents of a particular tag id
"""
beautifulTag = soup.find(id=tagId)
if beautifulTag:
if beautifulTag.contents:
value = str(beautifulTag.renderContents()).strip()
value = value.replace('\t', '')
value = value.replace('\n', '')
return value
def getRelatedClasses(html):
"""
parses the html, and returns a list of all OpenLayers Classes
used within (ie what parts of OL the javascript uses).
"""
rawstr = r'''(?P<class>ol\..*?)\('''
return re.findall(rawstr, html)
def parseHtml(html, ids):
"""
returns dictionary of items of interest
"""
soup = BeautifulSoup(html)
d = {}
for tagId in ids:
d[tagId] = extractById(soup, tagId)
#classes should eventually be parsed from docs - not automatically created.
classes = getRelatedClasses(html)
d['classes'] = classes
return d
def getGitInfo(exampleDir, exampleName):
orig = os.getcwd()
os.chdir(exampleDir)
h = os.popen("git log -n 1 --pretty=format:'%an|%ai' " + exampleName)
os.chdir(orig)
log = h.read()
h.close()
d = {}
if log:
parts = log.split("|")
d["author"] = parts[0]
# compensate for spaces in git log time
td = parts[1].split(" ")
td.insert(1, "T")
d["date"] = "".join(td)
else:
d["author"] = ""
d["date"] = ""
return d
def createFeed(examples):
doc = Document()
atomuri = "http://www.w3.org/2005/Atom"
feed = doc.createElementNS(atomuri, "feed")
feed.setAttribute("xmlns", atomuri)
title = doc.createElementNS(atomuri, "title")
title.appendChild(doc.createTextNode("OpenLayers Examples"))
feed.appendChild(title)
link = doc.createElementNS(atomuri, "link")
link.setAttribute("rel", "self")
link.setAttribute("href", feedPath + feedName)
modtime = time.strftime("%Y-%m-%dT%I:%M:%SZ", time.gmtime())
id = doc.createElementNS(atomuri, "id")
id.appendChild(doc.createTextNode(
"%s%s#%s" % (feedPath, feedName, modtime)))
feed.appendChild(id)
updated = doc.createElementNS(atomuri, "updated")
updated.appendChild(doc.createTextNode(modtime))
feed.appendChild(updated)
examples.sort(key=lambda x: x["modified"])
for example in sorted(examples, key=lambda x: x["modified"], reverse=True):
entry = doc.createElementNS(atomuri, "entry")
title = doc.createElementNS(atomuri, "title")
title.appendChild(doc.createTextNode(example["title"] or
example["example"]))
entry.appendChild(title)
tags = doc.createElementNS(atomuri, "tags")
tags.appendChild(doc.createTextNode(example["tags"] or
example["example"]))
entry.appendChild(tags)
link = doc.createElementNS(atomuri, "link")
link.setAttribute("href", "%s%s" % (feedPath, example["example"]))
entry.appendChild(link)
summary = doc.createElementNS(atomuri, "summary")
summary.appendChild(doc.createTextNode(example["shortdesc"] or
example["example"]))
entry.appendChild(summary)
updated = doc.createElementNS(atomuri, "updated")
updated.appendChild(doc.createTextNode(example["modified"]))
entry.appendChild(updated)
author = doc.createElementNS(atomuri, "author")
name = doc.createElementNS(atomuri, "name")
name.appendChild(doc.createTextNode(example["author"]))
author.appendChild(name)
entry.appendChild(author)
id = doc.createElementNS(atomuri, "id")
id.appendChild(doc.createTextNode("%s%s#%s" % (feedPath,
example["example"],
example["modified"])))
entry.appendChild(id)
feed.appendChild(entry)
doc.appendChild(feed)
return doc
def wordIndex(examples):
"""
Create an inverted index based on words in title and shortdesc. Keys are
lower cased words. Values are dictionaries with example index keys and
count values.
"""
index = {}
unword = re.compile("\\W+")
keys = ["shortdesc", "title", "tags"]
for i in range(len(examples)):
for key in keys:
text = examples[i][key]
if text:
words = unword.split(text)
for word in words:
if word:
word = word.lower()
if word in index:
if i in index[word]:
index[word][i] += 1
else:
index[word][i] = 1
else:
index[word] = {i: 1}
return index
if __name__ == "__main__":
if missing_deps:
print """This script requires json or simplejson and BeautifulSoup.
You don't have them. \n(%s)""" % E
sys.exit()
if len(sys.argv) == 3:
inExampleDir = sys.argv[1]
outExampleDir = sys.argv[2]
else:
inExampleDir = "../examples"
outExampleDir = "../examples"
outFile = open(os.path.join(outExampleDir, "example-list.js"), "w")
print 'Reading examples from %s and writing out to %s' % (inExampleDir,
outFile.name)
exampleList = []
docIds = ['title', 'shortdesc', 'tags']
examples = getListOfExamples(inExampleDir)
modtime = time.strftime("%Y-%m-%dT%I:%M:%SZ", time.gmtime())
for example in examples:
path = os.path.join(inExampleDir, example)
html = getExampleHtml(path)
tagvalues = parseHtml(html, docIds)
tagvalues['example'] = example
# add in author/date info
d = getGitInfo(inExampleDir, example)
tagvalues["author"] = d["author"] or "anonymous"
tagvalues["modified"] = d["date"] or modtime
tagvalues['link'] = example
exampleList.append(tagvalues)
print
exampleList.sort(key=lambda x: x['example'].lower())
index = wordIndex(exampleList)
json = json.dumps({"examples": exampleList, "index": index})
# Give the json a global variable we can use in our js.
# This should be replaced or made optional.
json = 'var info=' + json + ';'
outFile.write(json)
outFile.close()
outFeedPath = os.path.join(outExampleDir, feedName)
print "writing feed to %s " % outFeedPath
atom = open(outFeedPath, 'w')
doc = createFeed(exampleList)
atom.write(doc.toxml())
atom.close()
print 'complete'

321
bin/generate-exports.py Executable file
View File

@@ -0,0 +1,321 @@
#!/usr/bin/env python
from collections import defaultdict
from itertools import ifilter
from operator import attrgetter
from optparse import OptionParser
import re
import sys
def simplerepr(obj):
keys = sorted(key for key in obj.__dict__.keys() if not key.startswith('_'))
attrs = ''.join(' %s=%r' % (key, obj.__dict__[key]) for key in keys)
return '<%s%s>' % (obj.__class__.__name__, attrs)
class Exportable(object):
def __init__(self, name):
self.name = name
__repr__ = simplerepr
def export(self):
return ''
def extern(self):
return ''
def typedef(self):
return ''
class Class(Exportable):
def __init__(self, name, object_literal, objects):
Exportable.__init__(self, name)
self.object_literal = object_literal
self.objects = objects
self.props = set()
__repr__ = simplerepr
def nested_options(self):
def get_class_by_object_literal_name(name):
for k, o in self.objects.iteritems():
if isinstance(o, Class) and o.object_literal.name == name:
return o
return None
for option in sorted(self.object_literal.prop_types.keys()):
types = self.object_literal.prop_types[option].split('|')
base, object_literal = None, None
for t in types:
if t in self.objects:
o = self.objects[t]
if isinstance(o, (Class, Symbol)):
if base:
raise RuntimeError('Multiple "class" types found for '
'option %s.%s: %s, %s.' %
(self.object_literal.name, option,
base.name, o.name))
base = o
elif isinstance(o, ObjectLiteral):
if object_literal:
raise RuntimeError('Multiple "literal" types found for '
'option %s.%s: %s, %s.' %
(self.object_literal.name, option,
object_literal.name, o.name))
object_literal = o
if object_literal:
if not base:
raise RuntimeError('%s "literal" type found for option %s.%s, '
'but no "class" type.' %
(object_literal.name, self.object_literal.name, option))
klass = get_class_by_object_literal_name(object_literal.name)
if not klass:
raise RuntimeError('No constructor taking a %s found.' %
object_literal.name)
yield option, object_literal, klass, base
def export(self):
lines = []
if self.object_literal is None:
lines.append('\n\ngoog.exportSymbol(\n \'%s\',\n %s);\n' % (self.name, self.name))
else:
lines.append('\n\n\n')
lines.append('/**\n')
lines.append(' * @constructor\n')
lines.append(' * @extends {%s}\n' % (self.name,))
lines.append(' * @param {%s} options Options.\n' % (self.object_literal.extern_name(),))
lines.append(' */\n')
lines.append('%s = function(options) {\n' % (self.export_name(),))
lines.append(' /** @type {%s} */\n' % (self.object_literal.name,))
lines.append(' var arg;\n');
lines.append(' if (goog.isDefAndNotNull(options)) {\n')
# FIXME: we modify the user's options object
lines.append(''.join(
' if (!(options.%(o)s instanceof %(base)s)) {\n'
' options.%(o)s = new %(ctor)s(\n'
' /** @type {%(extern)s} */ (options.%(o)s));\n'
' }\n' %
{'o': o, 'base': b.name, 'ctor': k.export_name(),
'extern': ol.extern_name()} \
for o, ol, k, b in self.nested_options()))
lines.append(' arg = {')
lines.extend(','.join('\n %s: options.%s' % (key, key) for key in sorted(self.object_literal.prop_types.keys())))
lines.append('\n };\n')
lines.append(' } else {\n')
lines.append(' arg = /** @type {%s} */ (options);\n' % (self.object_literal.name,))
lines.append(' }\n')
lines.append(' goog.base(this, arg);\n')
lines.append('};\n')
lines.append('goog.inherits(%sExport, %s);\n' % (self.name, self.name))
lines.append('goog.exportSymbol(\n')
lines.append(' \'%s\',\n' % (self.name,))
lines.append(' %s);\n' % (self.export_name(),))
lines.extend('goog.exportProperty(\n %s,\n \'%s\',\n %s.%s);\n' % (self.name, prop, self.name, prop) for prop in sorted(self.props))
return ''.join(lines)
def export_name(self):
return '%sExport' % self.name
class ObjectLiteral(Exportable):
def __init__(self, name):
Exportable.__init__(self, name)
self.prop_types = {}
__repr__ = simplerepr
def extern(self):
lines = []
lines.append('\n\n\n')
lines.append('/**\n')
lines.append(' * @interface\n')
lines.append(' */\n')
lines.append('%s = function() {};\n' % (self.extern_name(),))
for prop in sorted(self.prop_types.keys()):
lines.append('\n\n')
lines.append('/**\n')
lines.append(' * @type {%s}\n' % (self.prop_types[prop],))
lines.append(' */\n')
lines.append('%s.prototype.%s;\n' % (self.extern_name(), prop))
return ''.join(lines)
def extern_name(self):
return re.sub(r'ol\.(\S+)', r'olx.\1Extern', self.name)
def extern_namespace(self):
return '.'.join(self.extern_name().split('.')[:-1]) or None
def provide(self):
return 'goog.provide(\'%s\');\n' % (self.name,)
def typedef(self):
lines = []
lines.append('\n\n')
lines.append('/**\n')
for i, prop in enumerate(sorted(self.prop_types.keys())):
prefix = ' * @typedef {{' if i == 0 else ' * '
suffix = '}}' if i == len(self.prop_types) - 1 else ','
type = self.prop_types[prop]
if '|' in type:
type = '(%s)' % (type,)
lines.append('%s%s: %s%s\n' % (prefix, prop, type, suffix))
lines.append(' */\n')
lines.append('%s;\n' % (self.name,))
return ''.join(lines)
class Symbol(Exportable):
def __init__(self, name, export_symbol, export_as=None):
Exportable.__init__(self, name)
self.export_symbol = export_symbol
self.export_as = export_as or self.name
self.props = set()
__repr__ = simplerepr
def export(self):
lines = []
if self.export_symbol:
lines.append('\n\ngoog.exportSymbol(\n \'%s\',\n %s);\n' % (self.name, self.export_as))
lines.extend('goog.exportProperty(\n %s,\n \'%s\',\n %s.%s);\n' % (self.name, prop, self.name, prop) for prop in sorted(self.props))
return ''.join(lines)
def main(argv):
option_parser = OptionParser()
option_parser.add_option('--exports', action='store_true')
option_parser.add_option('--externs', action='store_true')
option_parser.add_option('--typedef', action='store_true')
options, args = option_parser.parse_args(argv[1:])
objects = {}
requires = set()
for arg in args:
in_comment = False
object_literal = None
for line in open(arg):
line = line.strip()
if not line:
continue
if line == '/**':
assert not in_comment
in_comment = True
continue
if line == '*/':
assert in_comment
in_comment = False
object_literal = None
continue
if in_comment:
if not line.startswith('*'):
raise RuntimeError(line) # malformed comment
m = re.match(r'\*\s*@typedef\s*\{Object\}\s*(?P<name>\S+)', line)
if m:
assert object_literal is None
name = m.group('name')
if name in objects:
raise RuntimeError(line) # Name already defined
object_literal = ObjectLiteral(name)
objects[name] = object_literal
continue
m = re.match(r'\*\s*@property\s*{(?P<type>.*)}\s*(?P<prop>\S+)', line)
if m:
assert object_literal is not None
prop = m.group('prop')
if prop in object_literal.prop_types:
raise RuntimeError(line) # Duplicate property
type = m.group('type')
object_literal.prop_types[prop] = type
continue
continue
m = re.match(r'@exportClass\s+(?P<name>\S+)(?:\s+(?P<object_literal_name>\S+))?\Z', line)
if m:
name = m.group('name')
if name in objects:
raise RuntimeError(line) # Name already defined
object_literal_name = m.group('object_literal_name')
object_literal = objects[object_literal_name]
if not isinstance(object_literal, ObjectLiteral):
raise RuntimeError(line) # Undefined object literal
klass = Class(name, object_literal, objects)
objects[name] = klass
continue
m = re.match(r'@exportProperty\s+(?P<prop>\S+)\Z', line)
if m:
components = m.group('prop').split('.')
if components[-2] == 'prototype':
requires.add('.'.join(components[:-2]))
else:
requires.add('.'.join(components[:-1]))
name = '.'.join(components[:-1])
prop = components[-1]
if name in objects:
symbol = objects[name]
else:
symbol = Symbol(name, False)
objects[name] = symbol
symbol.props.add(prop)
continue
m = re.match(r'@exportSymbol\s+(?P<name>\S+)(?:\s+(?P<export_as>\S+))?\Z', line)
if m:
name = m.group('name')
if name in objects:
raise RuntimeError(line) # Name already defined
export_as = m.group('export_as')
symbol = Symbol(name, True, export_as)
objects[name] = symbol
if not export_as:
components = m.group('name').split('.')
if re.match(r'[A-Z]', components[-1]):
requires.add(name)
elif len(components) > 2:
requires.add('.'.join(components[:-1]))
continue
raise RuntimeError(line)
objects = sorted(objects.values(), key=attrgetter('name'))
if options.exports:
requires.update(obj.name for obj in objects if isinstance(obj, Class))
if requires:
for require in sorted(requires):
sys.stdout.write('goog.require(\'%s\');\n' % (require,))
for obj in objects:
sys.stdout.write(obj.export())
if options.externs:
object_literals = [obj for obj in objects if isinstance(obj, ObjectLiteral)]
sys.stdout.write('/**\n')
sys.stdout.write(' * @externs\n')
sys.stdout.write(' */\n')
namespaces = sorted(set(filter(None, (object_literal.extern_namespace() for object_literal in object_literals))))
for namespace in namespaces:
sys.stdout.write('\n\n')
sys.stdout.write('/**\n')
sys.stdout.write(' * @type {Object}\n')
sys.stdout.write(' */\n')
if '.' in namespace:
sys.stdout.write('%s = {};\n' % (namespace,))
else:
sys.stdout.write('var %s;\n' % (namespace,))
for object_literal in object_literals:
sys.stdout.write(object_literal.extern())
if options.typedef:
object_literals = [obj for obj in objects if isinstance(obj, ObjectLiteral)]
for object_literal in object_literals:
sys.stdout.write(object_literal.provide())
for object_literal in object_literals:
sys.stdout.write(object_literal.typedef())
if __name__ == '__main__':
sys.exit(main(sys.argv))

View File

@@ -0,0 +1,79 @@
/**
* Loader to add ol.css, ol.js and the example-specific js file to the
* documents.
*
* This loader is used for the hosted examples. It is used in place of the
* development loader (examples/loader.js).
*
* ol.css, ol.js, ol-simple.js, ol-whitespace.js, and ol-deps.js are built
* by OL3's build.py script. They are located in the ../build/ directory,
* relatively to this script.
*
* The script must be named loader.js.
*
* Usage:
*
* <script src="../loader.js?id=my-demo"></script>
*/
(function() {
var i, pair;
var href = window.location.href, start, end, paramsString, pairs,
pageParams = {};
if (href.indexOf('?') > 0) {
start = href.indexOf('?') + 1;
end = href.indexOf('#') > 0 ? href.indexOf('#') : href.length;
paramsString = href.substring(start, end);
pairs = paramsString.split(/[&;]/);
for (i = 0; i < pairs.length; ++i) {
pair = pairs[i].split('=');
if (pair[0]) {
pageParams[decodeURIComponent(pair[0])] =
decodeURIComponent(pair[1]);
}
}
}
var scripts = document.getElementsByTagName('script');
var src, index, search, chunks, scriptParams = {};
for (i = scripts.length - 1; i >= 0; --i) {
src = scripts[i].getAttribute('src');
if (~(index = src.indexOf('loader.js?'))) {
search = src.substr(index + 10);
chunks = search ? search.split('&') : [];
for (i = chunks.length - 1; i >= 0; --i) {
pair = chunks[i].split('=');
if (pair[0]) {
scriptParams[decodeURIComponent(pair[0])] =
decodeURIComponent(pair[1]);
}
}
break;
}
}
var oljs = 'ol.js', mode;
if ('mode' in pageParams) {
mode = pageParams.mode.toLowerCase();
if (mode == 'debug') {
mode = 'raw';
}
if (mode != 'advanced' && mode != 'raw') {
oljs = 'ol-' + mode + '.js';
}
}
var scriptId = encodeURIComponent(scriptParams.id);
document.write('<link rel="stylesheet" href="../build/ol.css" type="text/css">');
if (mode != 'raw') {
document.write('<scr' + 'ipt type="text/javascript" src="../build/' + oljs + '"></scr' + 'ipt>');
} else {
window.CLOSURE_NO_DEPS = true; // we've got our own deps file
document.write('<scr' + 'ipt type="text/javascript" src="../closure-library/closure/goog/base.js"></scr' + 'ipt>');
document.write('<scr' + 'ipt type="text/javascript" src="../build/ol-deps.js"></scr' + 'ipt>');
document.write('<scr' + 'ipt type="text/javascript" src="' + scriptId + '-require.js"></scr' + 'ipt>');
}
document.write('<scr' + 'ipt type="text/javascript" src="' + scriptId + '.js"></scr' + 'ipt>');
}());

2
build.cmd Executable file
View File

@@ -0,0 +1,2 @@
@echo off
%SystemDrive%\Python27\python.exe build.py %*

736
build.py Executable file
View File

@@ -0,0 +1,736 @@
#!/usr/bin/env python
from cStringIO import StringIO
import gzip
import json
import os
import os.path
import re
import shutil
import sys
from pake import Target
from pake import ifind, main, output, rule, target, variables, virtual, which
if sys.platform == 'win32':
""" windows_defaults assumes that jsdoc was installed at a specific place
(C:\jsdoc). It also fixes a certain version (1.9.0) of phantomjs which
might not anymore be proposed on
http://code.google.com/p/phantomjs/downloads/list"""
windows_defaults = {
'ProgramFiles': os.environ.get('ProgramFiles', 'C:\\Program Files'),
'Python27': os.environ.get('SystemDrive', 'C:') + '\\Python27',
'jsdoc': os.environ.get('SystemDrive', 'C:') + '\\jsdoc3',
'phantomjs': (os.environ.get('SystemDrive', 'C:') +
'\\phantomjs-1.9.0-windows')
}
if which('git.exe'):
variables.GIT = 'git.exe'
else:
variables.GIT = os.path.join(windows_defaults['ProgramFiles'],
'Git', 'bin', 'git.exe')
if which('gjslint.exe'):
variables.GJSLINT = 'gjslint.exe'
else:
variables.GJSLINT = os.path.join(windows_defaults['Python27'],
'Scripts', 'gjslint.exe')
if which('java.exe'):
variables.JAVA = 'java.exe'
else:
variables.JAVA = os.path.join(windows_defaults['ProgramFiles'],
'Java', 'jre7', 'bin', 'java.exe')
if which('jar.exe'):
variables.JAR = 'jar.exe'
else:
variables.JAR = os.path.join(windows_defaults['ProgramFiles'],
'Java', 'jdk1.7.0_17', 'bin', 'jar.exe')
if which('jsdoc.cmd'):
variables.JSDOC = 'jsdoc.cmd'
else:
variables.JSDOC = os.path.join(windows_defaults['jsdoc'],
'jsdoc.cmd')
if which('python.exe'):
variables.PYTHON = 'python.exe'
else:
variables.PYTHON = os.path.join(windows_defaults['Python27'],
'python.exe')
if which('phantomjs.exe'):
variables.PHANTOMJS = 'phantomjs.exe'
else:
variables.PHANTOMJS = os.path.join(windows_defaults['phantomjs'],
'phantomjs.exe')
else:
variables.GIT = 'git'
variables.GJSLINT = 'gjslint'
variables.JAVA = 'java'
variables.JAR = 'jar'
variables.JSDOC = 'jsdoc'
variables.NODE = 'node'
variables.PYTHON = 'python'
variables.PHANTOMJS = 'phantomjs'
TEMPLATE_GLSL_COMPILER_JS = 'build/glsl-unit/bin/template_glsl_compiler.js'
variables.BRANCH = output(
'%(GIT)s', 'rev-parse', '--abbrev-ref', 'HEAD').strip()
EXECUTABLES = [variables.GIT, variables.GJSLINT, variables.JAVA, variables.JAR,
variables.JSDOC, variables.PYTHON, variables.PHANTOMJS]
EXPORTS = [path
for path in ifind('src')
if path.endswith('.exports')]
EXTERNAL_SRC = [
'build/src/external/externs/types.js',
'build/src/external/src/exports.js',
'build/src/external/src/types.js']
EXAMPLES = [path
for path in ifind('examples')
if path.endswith('.html')
if path != 'examples/index.html']
EXAMPLES_SRC = [path
for path in ifind('examples')
if path.endswith('.js')
if not path.endswith('.combined.js')
if not path.startswith('examples/bootstrap')
if not path.startswith('examples/font-awesome')
if path != 'examples/Jugl.js'
if path != 'examples/jquery.min.js'
if path != 'examples/loader.js'
if path != 'examples/example-list.js']
EXAMPLES_JSON = ['build/' + example.replace('.html', '.json')
for example in EXAMPLES]
EXAMPLES_COMBINED = ['build/' + example.replace('.html', '.combined.js')
for example in EXAMPLES]
INTERNAL_SRC = [
'build/src/internal/src/requireall.js',
'build/src/internal/src/types.js']
GLSL_SRC = [path
for path in ifind('src')
if path.endswith('.glsl')]
JSDOC_SRC = [path
for path in ifind('src')
if path.endswith('.jsdoc')]
SHADER_SRC = [path.replace('.glsl', 'shader.js')
for path in GLSL_SRC]
SPEC = [path
for path in ifind('test/spec')
if path.endswith('.js')]
SRC = [path
for path in ifind('src/ol')
if path.endswith('.js')
if path not in SHADER_SRC]
PLOVR_JAR = 'build/plovr-eba786b34df9.jar'
PLOVR_JAR_MD5 = '20eac8ccc4578676511cf7ccbfc65100'
PROJ4JS = 'build/proj4js/lib/proj4js-combined.js'
PROJ4JS_ZIP = 'build/proj4js-1.1.0.zip'
PROJ4JS_ZIP_MD5 = '17caad64cf6ebc6e6fe62f292b134897'
def report_sizes(t):
t.info('uncompressed: %d bytes', os.stat(t.name).st_size)
stringio = StringIO()
gzipfile = gzip.GzipFile(t.name, 'w', 9, stringio)
with open(t.name) as f:
shutil.copyfileobj(f, gzipfile)
gzipfile.close()
t.info(' compressed: %d bytes', len(stringio.getvalue()))
virtual('default', 'build')
virtual('integration-test', 'lint', 'build', 'build-all',
'test', 'build-examples', 'check-examples', 'doc')
virtual('build', 'build/ol.css', 'build/ol.js',
'build/ol-simple.js', 'build/ol-whitespace.js')
virtual('check', 'lint', 'build/ol.css', 'build/ol-all.js', 'test')
virtual('todo', 'fixme')
@target('build/ol.css', 'build/ol.js')
def build_ol_css(t):
t.touch()
@target('build/ol.js', PLOVR_JAR, SRC, EXTERNAL_SRC, SHADER_SRC,
'buildcfg/base.json', 'buildcfg/ol.json')
def build_ol_js(t):
t.output('%(JAVA)s', '-jar', PLOVR_JAR, 'build', 'buildcfg/ol.json')
report_sizes(t)
@target('build/ol-simple.js', PLOVR_JAR, SRC, INTERNAL_SRC, SHADER_SRC,
'buildcfg/base.json', 'buildcfg/ol.json', 'buildcfg/ol-simple.json')
def build_ol_simple_js(t):
t.output('%(JAVA)s', '-jar', PLOVR_JAR, 'build', 'buildcfg/ol-simple.json')
report_sizes(t)
@target('build/ol-whitespace.js', PLOVR_JAR, SRC, INTERNAL_SRC, SHADER_SRC,
'buildcfg/base.json', 'buildcfg/ol.json',
'buildcfg/ol-whitespace.json')
def build_ol_whitespace_js(t):
t.output('%(JAVA)s', '-jar', PLOVR_JAR,
'build', 'buildcfg/ol-whitespace.json')
report_sizes(t)
virtual('build-all', 'build/ol-all.js')
@target('build/ol-all.js', PLOVR_JAR, SRC, INTERNAL_SRC, SHADER_SRC,
'buildcfg/base.json', 'buildcfg/ol-all.json')
def build_ol_all_js(t):
t.output('%(JAVA)s', '-jar', PLOVR_JAR, 'build', 'buildcfg/ol-all.json')
@target('build/src/external/externs/types.js', 'bin/generate-exports.py',
'src/objectliterals.jsdoc')
def build_src_external_externs_types_js(t):
t.output('%(PYTHON)s', 'bin/generate-exports.py',
'--externs', 'src/objectliterals.jsdoc')
@target('build/src/external/src/exports.js', 'bin/generate-exports.py',
'src/objectliterals.jsdoc', EXPORTS)
def build_src_external_src_exports_js(t):
t.output('%(PYTHON)s', 'bin/generate-exports.py',
'--exports', 'src/objectliterals.jsdoc', EXPORTS)
@target('build/src/external/src/types.js', 'bin/generate-exports.py',
'src/objectliterals.jsdoc')
def build_src_external_src_types_js(t):
t.output('%(PYTHON)s', 'bin/generate-exports.py',
'--typedef', 'src/objectliterals.jsdoc')
if os.path.exists(TEMPLATE_GLSL_COMPILER_JS):
for glsl_src in GLSL_SRC:
def shader_src_helper(glsl_src):
@target(glsl_src.replace('.glsl', 'shader.js'), glsl_src,
'src/ol/webgl/shader.mustache')
def shader_src(t):
t.run('%(NODE)s', TEMPLATE_GLSL_COMPILER_JS,
'--input', glsl_src,
'--template', 'src/ol/webgl/shader.mustache',
'--output', t.name)
shader_src_helper(glsl_src)
def _build_require_list(dependencies, output_file_name):
requires = set()
for dependency in dependencies:
for line in open(dependency):
match = re.match(r'goog\.provide\(\'(.*)\'\);', line)
if match:
requires.add(match.group(1))
with open(output_file_name, 'w') as f:
for require in sorted(requires):
f.write('goog.require(\'%s\');\n' % (require,))
@target('build/src/internal/src/requireall.js', SRC, SHADER_SRC)
def build_src_internal_src_requireall_js(t):
_build_require_list(t.dependencies, t.name)
@target('build/test/requireall.js', SPEC)
def build_test_requireall_js(t):
_build_require_list(t.dependencies, t.name)
@target('build/src/internal/src/types.js', 'bin/generate-exports.py',
'src/objectliterals.jsdoc')
def build_src_internal_types_js(t):
t.output('%(PYTHON)s', 'bin/generate-exports.py',
'--typedef', 'src/objectliterals.jsdoc')
virtual('build-examples', 'examples', EXAMPLES_COMBINED)
virtual('examples', 'examples/example-list.xml', EXAMPLES_JSON)
@target('examples/example-list.xml', 'examples/example-list.js')
def examples_examples_list_xml(t):
t.touch() # already generated by bin/exampleparser.py
@target('examples/example-list.js', 'bin/exampleparser.py', EXAMPLES)
def examples_examples_list_js(t):
t.run('%(PYTHON)s', 'bin/exampleparser.py', 'examples', 'examples')
@rule(r'\Abuild/examples/(?P<id>.*).json\Z')
def examples_star_json(name, match):
def action(t):
content = json.dumps({
'id': match.group('id'),
'inherits': '../../buildcfg/base.json',
'inputs': [
'../examples/%(id)s.js' % match.groupdict(),
'../build/src/internal/src/types.js',
],
'externs': [
'//json.js',
'//jquery-1.7.js',
'../externs/bingmaps.js',
'../externs/bootstrap.js',
'../externs/geojson.js',
'../externs/proj4js.js',
'../externs/tilejson.js',
],
})
with open(t.name, 'w') as f:
f.write(content)
dependencies = [__file__, 'buildcfg/base.json']
return Target(name, action=action, dependencies=dependencies)
@rule(r'\Abuild/examples/(?P<id>.*).combined.js\Z')
def examples_star_combined_js(name, match):
def action(t):
t.output('%(JAVA)s', '-jar', PLOVR_JAR, 'build',
'build/examples/%(id)s.json' % match.groupdict())
report_sizes(t)
dependencies = [PLOVR_JAR, SRC, INTERNAL_SRC, SHADER_SRC,
'buildcfg/base.json',
'examples/%(id)s.js' % match.groupdict(),
'build/examples/%(id)s.json' % match.groupdict()]
return Target(name, action=action, dependencies=dependencies)
@target('serve', PLOVR_JAR, INTERNAL_SRC, 'build/test/requireall.js',
'examples')
def serve(t):
t.run('%(JAVA)s', '-jar', PLOVR_JAR, 'serve', 'buildcfg/ol.json',
'buildcfg/ol-all.json', EXAMPLES_JSON, 'buildcfg/test.json')
@target('serve-integration-test', PLOVR_JAR, INTERNAL_SRC)
def serve_precommit(t):
t.run('%(JAVA)s', '-jar', PLOVR_JAR, 'serve',
'buildcfg/ol-all.json', 'buildcfg/test.json')
virtual('lint', 'build/lint-timestamp', 'build/check-requires-timestamp',
'build/check-whitespace-timestamp')
@target('build/lint-timestamp', SRC, INTERNAL_SRC, EXTERNAL_SRC, EXAMPLES_SRC,
SPEC, precious=True)
def build_lint_src_timestamp(t):
limited_doc_files = [
path
for path in ifind('externs', 'build/src/external/externs')
if path.endswith('.js')]
t.run('%(GJSLINT)s', '--strict', '--limited_doc_files=%s' %
(','.join(limited_doc_files),), t.newer(t.dependencies))
t.touch()
def _strip_comments(lines):
# FIXME this is a horribe hack, we should use a proper JavaScript parser
# here
in_multiline_comment = False
lineno = 0
for line in lines:
lineno += 1
if in_multiline_comment:
index = line.find('*/')
if index != -1:
in_multiline_comment = False
line = line[index + 2:]
if not in_multiline_comment:
line = re.sub(r'//[^\n]*', '', line)
line = re.sub(r'/\*.*?\*/', '', line)
index = line.find('/*')
if index != -1:
yield lineno, line[:index]
in_multiline_comment = True
else:
yield lineno, line
@target('build/check-requires-timestamp', SRC, INTERNAL_SRC, EXTERNAL_SRC,
EXAMPLES_SRC, SHADER_SRC, SPEC)
def build_check_requires_timestamp(t):
from zipfile import ZipFile
unused_count = 0
all_provides = set()
zf = ZipFile(PLOVR_JAR)
for zi in zf.infolist():
if zi.filename.endswith('.js'):
if not zi.filename.startswith('closure/goog/'):
continue
# Skip goog.i18n because it contains so many modules that it causes
# the generated regular expression to exceed Python's limits
if zi.filename.startswith('closure/goog/i18n/'):
continue
for line in zf.open(zi):
m = re.match(r'goog.provide\(\'(.*)\'\);', line)
if m:
all_provides.add(m.group(1))
for filename in sorted(t.dependencies):
if filename == 'build/src/internal/src/requireall.js':
continue
require_linenos = {}
uses = set()
lines = open(filename).readlines()
for lineno, line in _strip_comments(lines):
m = re.match(r'goog.provide\(\'(.*)\'\);', line)
if m:
all_provides.add(m.group(1))
continue
m = re.match(r'goog.require\(\'(.*)\'\);', line)
if m:
require_linenos[m.group(1)] = lineno
continue
ignore_linenos = require_linenos.values()
for lineno, line in enumerate(lines):
if lineno in ignore_linenos:
continue
for require in require_linenos.iterkeys():
if require in line:
uses.add(require)
for require in sorted(set(require_linenos.keys()) - uses):
t.info('%s:%d: unused goog.require: %r' % (
filename, require_linenos[require], require))
unused_count += 1
all_provides.discard('ol')
all_provides.discard('ol.MapProperty')
class Node(object):
def __init__(self):
self.present = False
self.children = {}
def _build_re(self, key):
if len(self.children) == 1:
child_key, child = next(self.children.iteritems())
child_re = '\\.' + child._build_re(child_key)
if self.present:
return key + '(' + child_re + ')?'
else:
return key + child_re
elif self.children:
children_re = '(?:\\.(?:' + '|'.join(
self.children[k]._build_re(k)
for k in sorted(self.children.keys())) + '))'
if self.present:
return key + children_re + '?'
else:
return key + children_re
else:
assert self.present
return key
def build_re(self, key):
return re.compile('\\b' + self._build_re(key) + '\\b')
root = Node()
for provide in all_provides:
node = root
for component in provide.split('.'):
if component not in node.children:
node.children[component] = Node()
node = node.children[component]
node.present = True
provide_res = [child.build_re(key)
for key, child in root.children.iteritems()]
missing_count = 0
for filename in sorted(t.dependencies):
if filename in INTERNAL_SRC or filename in EXTERNAL_SRC:
continue
provides = set()
requires = set()
uses = set()
for lineno, line in _strip_comments(open(filename)):
m = re.match(r'goog.provide\(\'(.*)\'\);', line)
if m:
provides.add(m.group(1))
continue
m = re.match(r'goog.require\(\'(.*)\'\);', line)
if m:
requires.add(m.group(1))
continue
while True:
for provide_re in provide_res:
m = provide_re.search(line)
if m:
uses.add(m.group())
line = line[:m.start()] + line[m.end():]
break
else:
break
if filename == 'src/ol/renderer/layerrenderer.js':
uses.discard('ol.renderer.Map')
m = re.match(
r'src/ol/renderer/(\w+)/\1(\w*)layerrenderer\.js\Z', filename)
if m:
uses.discard('ol.renderer.Map')
uses.discard('ol.renderer.%s.Map' % (m.group(1),))
missing_requires = uses - requires - provides
if missing_requires:
t.info('%s: missing goog.requires: %s', filename, ', '.join(
sorted(missing_requires)))
missing_count += len(missing_requires)
if unused_count or missing_count:
t.error('%d unused goog.requires, %d missing goog.requires' %
(unused_count, missing_count))
t.touch()
@target('build/check-whitespace-timestamp', SRC, INTERNAL_SRC, EXTERNAL_SRC,
EXAMPLES_SRC, SPEC, EXPORTS, JSDOC_SRC,
precious=True)
def build_check_whitespace_timestamp(t):
CR_RE = re.compile(r'\r')
TRAILING_WHITESPACE_RE = re.compile(r'\s+\n\Z')
NO_NEWLINE_RE = re.compile(r'[^\n]\Z')
ALL_WHITESPACE_RE = re.compile(r'\s+\Z')
errors = 0
for filename in sorted(t.newer(t.dependencies)):
whitespace = False
for lineno, line in enumerate(open(filename)):
if CR_RE.search(line):
t.info('%s:%d: carriage return character in line', filename, lineno + 1)
errors += 1
if TRAILING_WHITESPACE_RE.search(line):
t.info('%s:%d: trailing whitespace', filename, lineno + 1)
errors += 1
if NO_NEWLINE_RE.search(line):
t.info('%s:%d: no newline at end of file', filename, lineno + 1)
errors += 1
whitespace = ALL_WHITESPACE_RE.match(line)
if whitespace:
t.info('%s: trailing whitespace at end of file', filename)
errors += 1
if errors:
t.error('%d whitespace errors' % (errors,))
t.touch()
virtual('plovr', PLOVR_JAR)
@target(PLOVR_JAR, clean=False)
def plovr_jar(t):
t.info('downloading %r', t.name)
t.download('https://plovr.googlecode.com/files/' +
os.path.basename(PLOVR_JAR), md5=PLOVR_JAR_MD5)
t.info('downloaded %r', t.name)
@target('gh-pages', 'host-examples', 'doc', phony=True)
def gh_pages(t):
with t.tempdir() as tempdir:
t.run('%(GIT)s', 'clone', '--branch', 'gh-pages',
'git@github.com:openlayers/ol3.git', tempdir)
with t.chdir(tempdir):
t.rm_rf('%(BRANCH)s')
t.cp_r('build/gh-pages/%(BRANCH)s', tempdir + '/%(BRANCH)s')
with t.chdir(tempdir):
t.run('%(GIT)s', 'add', '--all', '%(BRANCH)s')
t.run('%(GIT)s', 'commit', '--message', 'Updated')
t.run('%(GIT)s', 'push', 'origin', 'gh-pages')
virtual('doc', 'build/jsdoc-%(BRANCH)s-timestamp' % vars(variables))
@target('build/jsdoc-%(BRANCH)s-timestamp' % vars(variables), 'host-resources',
'build/src/external/src/exports.js', 'build/src/external/src/types.js',
SRC, SHADER_SRC, ifind('doc/template'))
def jsdoc_BRANCH_timestamp(t):
t.run('%(JSDOC)s', '-c', 'doc/conf.json', 'src', 'doc/index.md',
'-d', 'build/gh-pages/%(BRANCH)s/apidoc')
t.touch()
def split_example_file(example, dst_dir):
lines = open(example).readlines()
target_lines = []
target_require_lines = []
found_requires = False
found_code = False
for line in lines:
m = re.match(r'goog.require\(\'(.*)\'\);', line)
if m:
found_requires = True
target_require_lines.append(line)
elif found_requires:
if found_code or line not in ('\n', '\r\n'):
found_code = True
target_lines.append(line)
target = open(
os.path.join(dst_dir, os.path.basename(example)), 'w')
target_require = open(
os.path.join(dst_dir, os.path.basename(example)
.replace('.js', '-require.js')),
'w')
target.writelines(target_lines)
target.close()
target_require.writelines(target_require_lines)
target_require.close()
@target('host-resources', phony=True)
def host_resources(t):
resources_dir = 'build/gh-pages/%(BRANCH)s/resources'
t.rm_rf(resources_dir)
t.cp_r('resources', resources_dir)
@target('host-examples', 'build', 'host-resources', 'examples', phony=True)
def host_examples(t):
examples_dir = 'build/gh-pages/%(BRANCH)s/examples'
build_dir = 'build/gh-pages/%(BRANCH)s/build'
t.rm_rf(examples_dir)
t.makedirs(examples_dir)
t.rm_rf(build_dir)
t.makedirs(build_dir)
t.cp(EXAMPLES, examples_dir)
for example in [path.replace('.html', '.js') for path in EXAMPLES]:
split_example_file(example, examples_dir % vars(variables))
t.cp_r('examples/data', examples_dir + '/data')
t.cp('bin/loader_hosted_examples.js', examples_dir + '/loader.js')
t.cp('build/ol.js', 'build/ol-simple.js', 'build/ol-whitespace.js',
'build/ol.css', build_dir)
t.cp('examples/index.html', 'examples/example-list.js',
'examples/example-list.xml', 'examples/Jugl.js',
'examples/jquery.min.js', examples_dir)
t.rm_rf('build/gh-pages/%(BRANCH)s/closure-library')
t.makedirs('build/gh-pages/%(BRANCH)s/closure-library')
with t.chdir('build/gh-pages/%(BRANCH)s/closure-library'):
t.run('%(JAR)s', 'xf', '../../../../' + PLOVR_JAR, 'closure')
t.run('%(JAR)s', 'xf', '../../../../' + PLOVR_JAR, 'third_party')
t.rm_rf('build/gh-pages/%(BRANCH)s/ol')
t.makedirs('build/gh-pages/%(BRANCH)s/ol')
t.cp_r('src/ol', 'build/gh-pages/%(BRANCH)s/ol/ol')
t.run('%(PYTHON)s', 'bin/closure/depswriter.py',
'--root_with_prefix', 'src ../../../ol',
'--root', 'build/gh-pages/%(BRANCH)s/closure-library/closure/goog',
'--root_with_prefix', 'build/gh-pages/%(BRANCH)s/closure-library/'
'third_party ../../third_party',
'--output_file', 'build/gh-pages/%(BRANCH)s/build/ol-deps.js')
@target('check-examples', 'host-examples', phony=True)
def check_examples(t):
examples = ['build/gh-pages/%(BRANCH)s/' + e for e in EXAMPLES]
all_examples = \
[e + '?mode=raw' for e in examples] + \
[e + '?mode=whitespace' for e in examples] + \
[e + '?mode=simple' for e in examples] + \
examples
for example in all_examples:
t.run('%(PHANTOMJS)s', 'bin/check-example.js', example)
@target(PROJ4JS, PROJ4JS_ZIP)
def proj4js(t):
from zipfile import ZipFile
zf = ZipFile(PROJ4JS_ZIP)
contents = zf.open('proj4js/lib/proj4js-combined.js').read()
with open(t.name, 'wb') as f:
f.write(contents)
@target(PROJ4JS_ZIP, clean=False)
def proj4js_zip(t):
t.info('downloading %r', t.name)
t.download('http://download.osgeo.org/proj4js/' +
os.path.basename(t.name), md5=PROJ4JS_ZIP_MD5)
t.info('downloaded %r', t.name)
@target('test', INTERNAL_SRC, PROJ4JS, 'build/test/requireall.js', phony=True)
def test(t):
t.run('%(PHANTOMJS)s', 'test/mocha-phantomjs.coffee', 'test/ol.html')
@target('fixme', phony=True)
def find_fixme(t):
regex = re.compile('FIXME|TODO')
matches = dict()
totalcount = 0
for filename in SRC:
f = open(filename, 'r')
for lineno, line in enumerate(f):
if regex.search(line):
if (filename not in matches):
matches[filename] = list()
matches[filename].append('#%-10d %s' % (
lineno + 1, line.strip()))
totalcount += 1
f.close()
for filename in matches:
num_matches = len(matches[filename])
noun = 'matches' if num_matches > 1 else 'match'
print ' %s has %d %s:' % (filename, num_matches, noun)
for match in matches[filename]:
print ' %s' % (match,)
print
print 'A total of %d TODO/FIXME(s) were found' % (totalcount,)
@target('reallyclean')
def reallyclean(t):
"""Removes untracked files and folders from previous builds."""
# -X => only clean up files that are usually ignored e.g.
# through .gitignore
# -d => also consider directories for deletion
# -f => if git configuration variable clean.requireForce != false,
# git clean will refuse to run unless given -f or -n.
t.run('%(GIT)s', 'clean', '-X', '-d', '-f', '.')
@target('checkdeps')
def check_dependencies(t):
for exe in EXECUTABLES:
status = 'present' if which(exe) else 'MISSING'
print 'Program "%s" seems to be %s.' % (exe, status)
print 'For certain targets all above programs need to be present.'
if __name__ == '__main__':
main()

View File

@@ -1,14 +0,0 @@
## HowTo: Build & deploy "Shrunk" Single File Library version of OpenLayers ##
* Build:
cd build
./build.sh
cd ..
* Upload the result to the server: e.g.
scp build/OpenLayers.js openlayers@openlayers.org:openlayers.org/htdocs/code/

View File

@@ -1,27 +0,0 @@
#!/usr/bin/env python
import sys
sys.path.append("../tools")
import jsmin, mergejs
sourceDirectory = "../lib"
configFilename = "library.cfg"
outputFilename = "OpenLayers.js"
if len(sys.argv) > 1:
configFilename = sys.argv[1] + ".cfg"
if len(sys.argv) > 2:
outputFilename = sys.argv[2]
print "Merging libraries."
merged = mergejs.run(sourceDirectory, None, configFilename)
print "Compressing."
minimized = jsmin.jsmin(merged)
print "Adding license file."
minimized = file("license.txt").read() + minimized
print "Writing to %s." % outputFilename
file(outputFilename, "w").write(minimized)
print "Done."

View File

@@ -1,25 +0,0 @@
#!/usr/bin/env python
import sys
sys.path.append("../tools")
import jsmin, mergejs
sourceDirectory = "../lib"
configFilename = "library.cfg"
outputFilename = "OpenLayers.js"
if len(sys.argv) > 1:
configFilename = sys.argv[1] + ".cfg"
if len(sys.argv) > 2:
outputFilename = sys.argv[2]
print "Merging libraries."
merged = mergejs.run(sourceDirectory, None, configFilename)
print "Adding license file."
merged = file("license.txt").read() + merged
print "Writing to %s." % outputFilename
file(outputFilename, "w").write(merged)
print "Done."

View File

@@ -1,12 +0,0 @@
[first]
OpenLayers/SingleFile.js
OpenLayers.js
OpenLayers/BaseTypes.js
OpenLayers/Util.js
Rico/Corner.js
[last]
[include]
[exclude]

View File

@@ -1,47 +0,0 @@
[first]
OpenLayers/SingleFile.js
OpenLayers.js
OpenLayers/BaseTypes.js
OpenLayers/Util.js
Rico/Corner.js
[last]
[include]
[exclude]
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

View File

@@ -1,45 +0,0 @@
/*
OpenLayers.js -- OpenLayers Map Viewer Library
Copyright 2005-2006 MetaCarta, Inc., released under a modified BSD license.
Please see http://svn.openlayers.org/trunk/openlayers/repository-license.txt
for the full text of the license.
Includes compressed code under the following licenses:
(For uncompressed versions of the code used please see the
OpenLayers SVN repository: <http://openlayers.org/>)
*/
/* 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.
*
**/

View File

@@ -1,20 +0,0 @@
[first]
OpenLayers/SingleFile.js
OpenLayers.js
OpenLayers/BaseTypes.js
OpenLayers/Util.js
[last]
[include]
OpenLayers/Events.js
OpenLayers/Map.js
OpenLayers/Layer.js
OpenLayers/Layer/Grid.js
OpenLayers/Layer/HTTPRequest.js
OpenLayers/Layer/WMS.js
OpenLayers/Layer/WMS/Untiled.js
OpenLayers/Tile.js
OpenLayers/Tile/Image.js
[exclude]

60
buildcfg/base.json Normal file
View File

@@ -0,0 +1,60 @@
{
"ambiguate-properties": true,
"checks": {
"accessControls": "ERROR",
"ambiguousFunctionDecl": "ERROR",
"checkDebuggerStatement": "WARNING",
"checkRegExp": "ERROR",
"checkTypes": "ERROR",
"checkVars": "ERROR",
"const": "ERROR",
"constantProperty": "ERROR",
"deprecated": "ERROR",
"duplicate": "ERROR",
"duplicateMessage": "ERROR",
"es5Strict": "ERROR",
"externsValidation": "ERROR",
"fileoverviewTags": "ERROR",
"globalThis": "ERROR",
"internetExplorerChecks": "ERROR",
"invalidCasts": "ERROR",
"missingProperties": "ERROR",
"nonStandardJsDocs": "ERROR",
"strictModuleDepCheck": "ERROR",
"typeInvalidation": "ERROR",
"undefinedNames": "ERROR",
"undefinedVars": "ERROR",
"unknownDefines": "ERROR",
"uselessCode": "ERROR",
"visibility": "ERROR"
},
"define": {
"goog.dom.ASSUME_STANDARDS_MODE": true,
"goog.DEBUG": false
},
"disambiguate-properties": true,
"externs": [
"//json.js",
"../externs/bingmaps.js",
"../externs/geojson.js",
"../externs/proj4js.js",
"../externs/tilejson.js"
],
"level": "VERBOSE",
"mode": "ADVANCED",
"paths": [
"../build/src/internal/src",
"../src"
],
"treat-warnings-as-errors": false
}

22
buildcfg/ol-all.json Normal file
View File

@@ -0,0 +1,22 @@
{
"id": "ol-all",
"externs": [
"//json.js",
"../build/src/external/externs/types.js",
"../externs/bingmaps.js",
"../externs/geojson.js",
"../externs/proj4js.js",
"../externs/tilejson.js"
],
"inherits": "base.json",
"inputs": [
"../build/src/internal/src/requireall.js",
"../build/src/internal/src/types.js",
"../build/src/external/src/exports.js"
]
}

36
buildcfg/ol-simple.json Normal file
View File

@@ -0,0 +1,36 @@
{
// If ambiguate-properties and disambiguate-properties are set to true
// we get function names like "ol_control_Control_prototype$setMap" in
// the compiled code when using the SIMPLE compilation. It looks like
// "ambiguate-properties" and "disambiguate-properties" are only
// appropriate for ADVANCED compilation.
"ambiguate-properties": false,
"disambiguate-properties": false,
"id": "ol-simple",
"externs": [
"//json.js",
"../externs/bingmaps.js",
"../externs/geojson.js",
"../externs/proj4js.js",
"../externs/tilejson.js"
],
"inherits": "ol.json",
"inputs": [
"../build/src/internal/src/requireall.js",
"../build/src/internal/src/types.js"
],
"mode": "SIMPLE",
// Note: we can't have a (function(){%output%})() output wrapper with
// WHITESPACE and SIMPLE modes. See this link for explanations:
// https://groups.google.com/forum/#!topic/plovr/gQyZEa2NpsU
"output-wrapper": "%output%"
}

View File

@@ -0,0 +1,39 @@
{
"id": "ol-whitespace",
// If ambiguate-properties and disambiguate-properties are set to true
// we get function names like "ol_control_Control_prototype$setMap" in
// the compiled code when using the SIMPLE compilation. It looks like
// "ambiguate-properties" and "disambiguate-properties" are only
// appropriate for ADVANCED compilation. To be sure we also don't
// set them for WHITESPACE.
"ambiguate-properties": false,
"disambiguate-properties": false,
"externs": [
"//json.js",
"../externs/bingmaps.js",
"../externs/geojson.js",
"../externs/proj4js.js",
"../externs/tilejson.js"
],
"inherits": "ol.json",
"inputs": [
"../build/src/internal/src/requireall.js",
"../build/src/internal/src/types.js"
],
"mode": "WHITESPACE",
// Note: we can't have a (function(){%output%})() output wrapper with
// WHITESPACE and SIMPLE modes. See this link for explanations:
// https://groups.google.com/forum/#!topic/plovr/gQyZEa2NpsU
"output-wrapper": "%output%",
"pretty-print": true
}

37
buildcfg/ol.json Normal file
View File

@@ -0,0 +1,37 @@
{
"id": "ol",
"css-allowed-unrecognized-properties": [
"user-select"
],
"css-inputs": [
"../css/ol.css"
],
"css-output-file": "../build/ol.css",
"externs": [
"//json.js",
"../build/src/external/externs/types.js",
"../externs/bingmaps.js",
"../externs/geojson.js",
"../externs/proj4js.js",
"../externs/tilejson.js"
],
"inherits": "base.json",
"inputs": [
"../build/src/external/src/exports.js",
"../build/src/external/src/types.js"
],
"output-wrapper": "(function(){%output%})();",
"paths": [
"../src"
]
}

16
buildcfg/test.json Normal file
View File

@@ -0,0 +1,16 @@
{
"id": "test",
"inherits": "base.json",
"inputs": [
"../build/test/requireall.js"
],
"paths": [
"../src",
"../test"
]
}

191
css/ol.css Normal file
View File

@@ -0,0 +1,191 @@
.ol-attribution {
position: absolute;
font-size: 10px;
text-align: right;
color: #eeeeee;
bottom: 0;
right: 0;
background: rgba(0,60,136,0.3);
font-family: 'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;
padding: 2px 4px;
}
.ol-attribution a {
color: white;
text-decoration: none;
}
.ol-attribution li {
display: inline;
list-style: none;
}
.ol-attribution li:not(:last-child):after {
content: "\2003";
}
.ol-dragbox {
position: absolute;
border: 2px solid red;
}
.ol-full-screen {
background: rgba(255,255,255,0.4);
border-radius: 4px;
padding: 2px;
position: absolute;
right: 8px;
top: 8px;
}
@media print {
.ol-full-screen {
display: none;
}
}
.ol-full-screen a {
background: rgba(0,60,136,0.5);
color: white;
display: block;
font-family: 'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;
font-size: 18px;
font-weight: bold;
height: 22px;
line-height: 19px;
margin: 1px;
padding: 0;
text-align: center;
text-decoration: none;
width: 22px;
}
a.ol-full-screen-false:after {
content: "\2194";
}
a.ol-full-screen-true:after {
content: "\00d7";
}
.ol-full-screen div {
border-radius: 2px;
}
.ol-full-screen div a {
border-radius: 2px;
}
.ol-full-screen a:hover {
background: rgba(0,60,136,0.7);
}
.ol-logo {
bottom: 0;
left: 0;
padding: 2px;
position: absolute;
}
.ol-logo ul {
margin: 0;
}
.ol-logo ul li {
display: inline;
list-style: none;
}
.ol-scale-line {
background: rgba(0,60,136,0.3);
border-radius: 4px;
bottom: 8px;
left: 8px;
padding: 2px;
position: absolute;
}
.ol-scale-line-inner {
border: 1px solid #eeeeee;
border-top: none;
color: #eeeeee;
font-size: 10px;
font-family: 'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;
text-align: center;
margin: 1px;
padding: 0px 2px;
}
.ol-unsupported {
display: none;
}
.ol-viewport .ol-unselectable {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
.ol-zoom {
position: absolute;
top: 8px;
left: 8px;
background: rgba(255,255,255,0.4);
border-radius: 4px;
padding: 2px;
}
@media print {
.ol-zoom {
display: none;
}
}
.ol-zoom a {
display: block;
margin: 1px;
padding: 0;
color: white;
font-size: 18px;
font-family: 'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;
font-weight: bold;
text-decoration: none;
text-align: center;
height: 22px;
width: 22px;
line-height: 19px;
background: rgba(0,60,136,0.5);
}
.ol-touch .ol-zoom a {
font-size: 20px;
height: 30px;
width: 30px;
line-height: 26px;
}
.ol-zoom a:hover {
background: rgba(0,60,136,0.7);
}
.ol-zoom-in {
border-radius: 2px 2px 0 0;
}
.ol-zoom-in:before {
content: "+";
}
.ol-zoom-out {
border-radius: 0 0 2px 2px;
}
.ol-zoom-out:before {
content: "\2212";
}
.ol-zoomslider {
position: absolute;
top: 67px;
left: 8px;
background: rgba(255, 255, 255, 0.4);
border-radius: 4px;
width: 28px;
height: 200px;
outline: none;
overflow: hidden;
padding: 0;
margin: 0;
}
.ol-zoomslider-thumb {
position: absolute;
display: block;
padding: 0;
margin: 2px;
background: rgba(0,60,136,0.5);
border-radius: 2px;
outline: none;
overflow: hidden;
height: 20px;
width: 24px;
}

View File

@@ -1,25 +0,0 @@
OpenLayers contributors:
Howard Butler
Bertil Chaupis
John Cole
Jeff Dege
Schuyler Erle
Christian López Espínola
John Frank
Sean Gilles
Pierre Giraud
Andreas Hocevar
Philip Lindsay
Corey Puffault
Tim Schaub
Christopher Schmidt
Cameron Shorter
Paul Spencer
James Stembridge
Erik Uzureau
Bill Woodall
Steve Woodbridge
OpenLayers is graciously supported by MetaCarta, Inc.
<http://www.metacarta.com>.

30
doc/conf.json Normal file
View File

@@ -0,0 +1,30 @@
{
"opts": {
"recurse": true,
"template": "doc/template",
"tutorials": "doc/tutorials"
},
"tags": {
"allowUnknownTags": true
},
"source": {
"includePattern": ".+\\.js(doc)?$",
"excludePattern": "(^|\\/|\\\\)_"
},
"plugins": [
"plugins/markdown",
"doc/plugins/inheritdoc",
"doc/plugins/exports"
],
"markdown": {
"parser": "gfm"
},
"templates": {
"cleverLinks": false,
"monospaceLinks": false,
"default": {
"outputSourceFiles": true
}
},
"jsVersion": 180
}

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

17
doc/index.md Normal file
View File

@@ -0,0 +1,17 @@
Finding your way round
----------------------
See the class list to the right and especially take a look at {@link ol.Map} and {@link ol.layer.Layer} because those are the central objects.
In general every use of OpenLayers starts by initializing a map, then adding the required layers. Controls and interactions can be added to change the behavior of the map.
Projections
-----------
A {@link ol.Projection} defines which point on earth is represented by a pair of coordinates. Coordinates within OpenLayers can be used in various projections where some common projections are always supported, others can be used via Proj4js.
Maps and Layers
---------------
A map in OpenLayers is essentially a staple of layers that is viewed from the top. Layers are responsible for retieving data and displaying it.
Contributing
------------
See CONTRIBUTING.md for instructions on building and tesing OpenLayers. The file does also describe how to commit your changes to OpenLayers.

94
doc/plugins/exports.js Normal file
View File

@@ -0,0 +1,94 @@
/*
* This plugin parses goog.exportSymbol and goog.exportProperty calls to build
* a list of API symbols and properties. Everything else is marked undocumented,
* which will remove it from the docs.
*/
var api = [];
function collectExports(source) {
var i, ii, symbol, property;
var syms = source.match(/goog\.exportSymbol\([^\)]*\)/g);
if (syms) {
i = 0; ii = syms.length;
for (; i < ii; ++i) {
symbol = syms[i].match(/'([^']*)'/)[1];
api.push(symbol);
}
}
var props = source.match(/goog\.exportProperty\([^\)]*\)/g);
if (props) {
i = 0; ii = props.length;
for (; i < ii; ++i) {
property = props[i].match(/[^,]*,[^,]*,\r?\n? *([^\)]*)\)/)[1]
.replace('.prototype.', '#');
api.push(property);
}
}
}
var encoding = env.conf.encoding || 'utf8';
var fs = require('jsdoc/fs');
collectExports(fs.readFileSync('build/src/external/src/exports.js', encoding));
collectExports(fs.readFileSync('build/src/external/src/types.js', encoding));
exports.handlers = {
beforeParse: function(e) {
if (/\.js$/.test(e.filename)) {
collectExports(e.source);
}
},
newDoclet: function(e) {
if (api.indexOf(e.doclet.longname) > -1) {
// Add params of API symbols to the API
var names, name;
var params = e.doclet.params;
if (params) {
for (var i = 0, ii = params.length; i < ii; ++i) {
names = params[i].type.names;
if (names) {
for (var j = 0, jj=names.length; j < jj; ++j) {
name = names[j];
if (api.indexOf(name) === -1) {
api.push(name);
}
}
}
}
}
}
}
};
function filter(e) {
if (e.doclet) {
var fqn = e.doclet.longname;
if (fqn) {
e.doclet.undocumented = (api.indexOf(fqn) === -1);
// Remove parents that are not part of the API
var parent;
var parents = e.doclet.augments;
if (parents) {
for (var i = parents.length - 1; i >= 0; --i) {
parent = parents[i];
if (api.indexOf(parent) === -1) {
parents.splice(i, 1);
}
}
}
}
}
}
exports.nodeVisitor = {
visitNode: function(node, e, parser, currentSourceName) {
// filter out non-API symbols before the addDocletRef finisher is called
e.finishers.unshift(filter);
}
};

16
doc/plugins/inheritdoc.js Normal file
View File

@@ -0,0 +1,16 @@
/*
* This is a hack to prevent inheritDoc and override tags from entirely removing
* documentation of the method that inherits the documentation.
*
* TODO: Remove this hack when https://github.com/jsdoc3/jsdoc/issues/53
* is addressed.
*/
exports.nodeVisitor = {
visitNode: function(node, e, parser, currentSourceName) {
if (/@(inheritDoc|override)(\n|\r)/.test(e.comment)) {
e.preventDefault = true;
}
}
};

View File

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

1
doc/template/README.md vendored Normal file
View File

@@ -0,0 +1 @@
The default template for JSDoc 3 uses: [the Taffy Database library](http://taffydb.com/) and the [Underscore Template library](http://documentcloud.github.com/underscore/#template).

392
doc/template/publish.js vendored Normal file
View File

@@ -0,0 +1,392 @@
/*global env: true */
var template = require('jsdoc/template'),
fs = require('fs'),
path = require('path'),
taffy = require('taffydb').taffy,
helper = require('jsdoc/util/templateHelper'),
scopeToPunc = helper.scopeToPunc,
hasOwnProp = Object.prototype.hasOwnProperty,
data,
view,
outdir = env.opts.destination;
function find(spec) {
return helper.find(data, spec);
}
function tutoriallink(tutorial) {
return helper.toTutorial(tutorial, null, { tag: 'em', classname: 'disabled', prefix: 'Tutorial: ' });
}
function getAncestorLinks(doclet) {
return helper.getAncestorLinks(data, doclet);
}
var linkto = helper.linkto;
var htmlsafe = helper.htmlsafe;
function hashToLink(doclet, hash) {
if ( !/^(#.+)/.test(hash) ) { return hash; }
var url = helper.createLink(doclet);
url = url.replace(/(#.+|$)/, hash);
return '<a href="' + url + '">' + hash + '</a>';
}
function addSignatureParams(f) {
var params = helper.getSignatureParams(f, 'optional');
f.signature = (f.signature || '') + '('+params.join(', ')+')';
}
function addSignatureReturns(f) {
var returnTypes = helper.getSignatureReturns(f);
f.signature = '<span class="signature">'+(f.signature || '') + '</span>' + '<span class="type-signature">'+(returnTypes.length? ' &rarr; {'+returnTypes.join('|')+'}' : '')+'</span>';
}
function addSignatureTypes(f) {
var types = helper.getSignatureTypes(f);
f.signature = (f.signature || '') + '<span class="type-signature">'+(types.length? ' :'+types.join('|') : '')+'</span>';
}
function addAttribs(f) {
var attribs = helper.getAttribs(f);
f.attribs = '<span class="type-signature">'+htmlsafe(attribs.length? '<'+attribs.join(', ')+'> ' : '')+'</span>';
}
function generate(title, docs, filename) {
var docData = {
title: title,
docs: docs
};
var outpath = path.join(outdir, filename),
html = view.render('container.tmpl', docData);
html = helper.resolveLinks(html); // turn {@link foo} into <a href="foodoc.html">foo</a>
fs.writeFileSync(outpath, html, 'utf8');
}
/**
* Create the navigation sidebar.
* @param {object} members The members that will be used to create the sidebar.
* @param {array<object>} members.classes
* @param {array<object>} members.externals
* @param {array<object>} members.globals
* @param {array<object>} members.mixins
* @param {array<object>} members.modules
* @param {array<object>} members.namespaces
* @param {array<object>} members.tutorials
* @return {string} The HTML for the navigation sidebar.
*/
function buildNav(members) {
var nav = '<h2><a href="index.html">Index</a></h2>',
seen = {};
/**
* Sorts elements by their qualified names (property longname).
* See https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/sort
* @param {object} a
* @param {object} b
* @return {number}
*/
function byLongName(a, b){
if(a.longname===b.longname){
return 0;
} else if(a.longname < b.longname){
return -1;
} else {
return 1;
}
}
if (members.modules.length) {
nav += '<h3>Modules</h3><ul>';
members.modules.sort(byLongName).forEach(function(m) {
if ( !hasOwnProp.call(seen, m.longname) ) {
nav += '<li>'+linkto(m.longname, m.longname)+'</li>';
}
seen[m.longname] = true;
});
nav += '</ul>';
}
if (members.externals.length) {
nav += '<h3>Externals</h3><ul>';
members.externals.sort(byLongName).forEach(function(e) {
if ( !hasOwnProp.call(seen, e.longname) ) {
nav += '<li>'+linkto( e.longname, e.name.replace(/(^"|"$)/g, '') )+'</li>';
}
seen[e.longname] = true;
});
nav += '</ul>';
}
if (members.classes.length) {
var moduleClasses = 0;
members.classes.sort(byLongName).forEach(function(c) {
var moduleSameName = find({kind: 'module', longname: c.longname});
if (moduleSameName.length) {
c.name = c.name.replace('module:', 'require("')+'")';
moduleClasses++;
moduleSameName[0].module = c;
}
if (moduleClasses !== -1 && moduleClasses < members.classes.length) {
nav += '<h3>Classes</h3><ul>';
moduleClasses = -1;
}
if ( !hasOwnProp.call(seen, c.longname) ) {
nav += '<li>'+linkto(c.longname, c.longname)+'</li>';
}
seen[c.longname] = true;
});
nav += '</ul>';
}
if (members.namespaces.length) {
nav += '<h3>Namespaces</h3><ul>';
members.namespaces.sort(byLongName).forEach(function(n) {
if ( !hasOwnProp.call(seen, n.longname) ) {
nav += '<li>'+linkto(n.longname, n.longname)+'</li>';
}
seen[n.longname] = true;
});
nav += '</ul>';
}
if (members.mixins.length) {
nav += '<h3>Mixins</h3><ul>';
members.mixins.sort(byLongName).forEach(function(m) {
if ( !hasOwnProp.call(seen, m.longname) ) {
nav += '<li>'+linkto(m.longname, m.longname)+'</li>';
}
seen[m.longname] = true;
});
nav += '</ul>';
}
if (members.tutorials.length) {
nav += '<h3>Tutorials</h3><ul>';
members.tutorials.sort(byLongName).forEach(function(t) {
nav += '<li>'+tutoriallink(t.name)+'</li>';
});
nav += '</ul>';
}
if (members.globals.length) {
nav += '<h3>Global</h3><ul>';
members.globals.sort(byLongName).forEach(function(g) {
if ( g.kind !== 'typedef' && !hasOwnProp.call(seen, g.longname) ) {
nav += '<li>'+linkto(g.longname, g.longname)+'</li>';
}
seen[g.longname] = true;
});
nav += '</ul>';
}
return nav;
}
/**
@param {TAFFY} taffyData See <http://taffydb.com/>.
@param {object} opts
@param {Tutorial} tutorials
*/
exports.publish = function(taffyData, opts, tutorials) {
data = taffyData;
var templatePath = opts.template;
view = new template.Template(templatePath + '/tmpl');
// set up templating
view.layout = 'layout.tmpl';
// set up tutorials for helper
helper.setTutorials(tutorials);
data = helper.prune(data);
data.sort('longname, version, since');
data().each(function(doclet) {
doclet.attribs = '';
if (doclet.examples) {
doclet.examples = doclet.examples.map(function(example) {
var caption, code;
if (example.match(/^\s*<caption>([\s\S]+?)<\/caption>(\s*[\n\r])([\s\S]+)$/i)) {
caption = RegExp.$1;
code = RegExp.$3;
}
return {
caption: caption || '',
code: code || example
};
});
}
if (doclet.see) {
doclet.see.forEach(function(seeItem, i) {
doclet.see[i] = hashToLink(doclet, seeItem);
});
}
});
// update outdir if necessary, then create outdir
var packageInfo = ( find({kind: 'package'}) || [] ) [0];
if (packageInfo && packageInfo.name) {
outdir = path.join(outdir, packageInfo.name, packageInfo.version);
}
fs.mkPath(outdir);
// copy static files to outdir
var fromDir = path.join(templatePath, 'static'),
staticFiles = fs.ls(fromDir, 3);
staticFiles.forEach(function(fileName) {
var toDir = fs.toDir( fileName.replace(fromDir, outdir) );
fs.mkPath(toDir);
fs.copyFileSync(fileName, toDir);
});
data().each(function(doclet) {
var url = helper.createLink(doclet);
helper.registerLink(doclet.longname, url);
});
data().each(function(doclet) {
var url = helper.longnameToUrl[doclet.longname];
if (url.indexOf('#') > -1) {
doclet.id = helper.longnameToUrl[doclet.longname].split(/#/).pop();
}
else {
doclet.id = doclet.name;
}
if (doclet.kind === 'function' || doclet.kind === 'class') {
addSignatureParams(doclet);
addSignatureReturns(doclet);
addAttribs(doclet);
}
});
// do this after the urls have all been generated
data().each(function(doclet) {
doclet.ancestors = getAncestorLinks(doclet);
doclet.signature = '';
if (doclet.kind === 'member') {
addSignatureTypes(doclet);
addAttribs(doclet);
}
if (doclet.kind === 'constant') {
addSignatureTypes(doclet);
addAttribs(doclet);
doclet.kind = 'member';
}
});
var members = helper.getMembers(data);
members.tutorials = tutorials.children;
// add template helpers
view.find = find;
view.linkto = linkto;
view.tutoriallink = tutoriallink;
view.htmlsafe = htmlsafe;
// once for all
view.nav = buildNav(members);
for (var longname in helper.longnameToUrl) {
if ( hasOwnProp.call(helper.longnameToUrl, longname) ) {
// reuse 'members', which speeds things up a bit
var classes = taffy(members.classes);
classes = helper.find(classes, {longname: longname});
if (classes.length) {
generate('Class: ' + classes[0].longname, classes, helper.longnameToUrl[longname]);
}
var modules = taffy(members.modules);
modules = helper.find(modules, {longname: longname});
if (modules.length) {
generate('Module: ' + modules[0].longname, modules, helper.longnameToUrl[longname]);
}
var namespaces = taffy(members.namespaces);
namespaces = helper.find(namespaces, {longname: longname});
if (namespaces.length) {
generate('Namespace: ' + namespaces[0].longname, namespaces, helper.longnameToUrl[longname]);
}
var mixins = taffy(members.mixins);
mixins = helper.find(mixins, {longname: longname});
if (mixins.length) {
generate('Mixin: ' + mixins[0].longname, mixins, helper.longnameToUrl[longname]);
}
var externals = taffy(members.externals);
externals = helper.find(externals, {longname: longname});
if (externals.length) {
generate('External: ' + externals[0].longname, externals, helper.longnameToUrl[longname]);
}
}
}
if (members.globals.length) { generate('Global', members.globals, 'global.html'); }
// index page displays information from package.json and lists files
var files = find({kind: 'file'}),
packages = find({kind: 'package'});
generate('Index',
packages.concat(
[{kind: 'mainpage', readme: opts.readme, longname: (opts.mainpagetitle) ? opts.mainpagetitle : 'Main Page'}]
).concat(files),
'index.html');
// TODO: move the tutorial functions to templateHelper.js
function generateTutorial(title, tutorial, filename) {
var tutorialData = {
title: title,
header: tutorial.title,
content: tutorial.parse(),
children: tutorial.children
};
var tutorialPath = path.join(outdir, filename),
html = view.render('tutorial.tmpl', tutorialData);
// yes, you can use {@link} in tutorials too!
html = helper.resolveLinks(html); // turn {@link foo} into <a href="foodoc.html">foo</a>
fs.writeFileSync(tutorialPath, html, 'utf8');
}
// tutorials can have only one parent so there is no risk for loops
function saveChildren(node) {
node.children.forEach(function(child) {
generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name));
saveChildren(child);
});
}
saveChildren(tutorials);
};

View File

@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
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.

View File

@@ -0,0 +1,2 @@
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com",
/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]);

View File

@@ -0,0 +1,28 @@
var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a=
[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var j=m(j),d;c+2<i&&"-"===f[c+1]?(d=m(f[c+2]),c+=2):d=j;b.push([j,d]);d<65||j>122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;c<b.length;++c)i=b[c],i[0]<=j[1]+1?j[1]=Math.max(j[1],i[1]):f.push(j=i);b=["["];o&&b.push("^");b.push.apply(b,a);for(c=0;c<
f.length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c<b;++c){var j=f[c];j==="("?++i:"\\"===j.charAt(0)&&(j=+j.substring(1))&&j<=i&&(d[j]=-1)}for(c=1;c<d.length;++c)-1===d[c]&&(d[c]=++t);for(i=c=0;c<b;++c)j=f[c],j==="("?(++i,d[i]===void 0&&(f[c]="(?:")):"\\"===j.charAt(0)&&
(j=+j.substring(1))&&j<=i&&(f[c]="\\"+d[i]);for(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");if(a.ignoreCase&&s)for(c=0;c<b;++c)j=f[c],a=j.charAt(0),j.length>=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p<d;++p){var g=a[p];if(g.ignoreCase)l=!0;else if(/[a-z]/i.test(g.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){s=!0;l=!1;break}}for(var r=
{b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Error(""+g);n.push("(?:"+y(g)+")")}return RegExp(n.join("|"),l?"gi":"g")}function M(a){function m(a){switch(a.nodeType){case 1:if(e.test(a.className))break;for(var g=a.firstChild;g;g=g.nextSibling)m(g);g=a.nodeName;if("BR"===g||"LI"===g)h[s]="\n",t[s<<1]=y++,t[s++<<1|1]=a;break;case 3:case 4:g=a.nodeValue,g.length&&(g=p?g.replace(/\r\n?/g,"\n"):g.replace(/[\t\n\r ]+/g," "),h[s]=g,t[s<<1]=y,y+=g.length,
t[s++<<1|1]=a)}}var e=/(?:^|\s)nocode(?:\s|$)/,h=[],y=0,t=[],s=0,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=document.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);m(a);return{a:h.join("").replace(/\n$/,""),c:t}}function B(a,m,e,h){m&&(a={a:m,d:a},e(a),h.push.apply(h,a.e))}function x(a,m){function e(a){for(var l=a.d,p=[l,"pln"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n],b=r[f],o=void 0,c;if(typeof b===
"string")c=!1;else{var i=h[f.charAt(0)];if(i)o=f.match(i[1]),b=i[0];else{for(c=0;c<t;++c)if(i=m[c],o=f.match(i[1])){b=i[0];break}o||(b="pln")}if((c=b.length>=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),
l=[],p={},d=0,g=e.length;d<g;++d){var r=e[d],n=r[3];if(n)for(var k=n.length;--k>=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,
q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,
"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),
a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}
for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g<d.length;++g)e(d[g]);m===(m|0)&&d[0].setAttribute("value",
m);var r=s.createElement("OL");r.className="linenums";for(var n=Math.max(0,m-1|0)||0,g=0,z=d.length;g<z;++g)l=d[g],l.className="L"+(g+n)%10,l.firstChild||l.appendChild(s.createTextNode("\xa0")),r.appendChild(l);a.appendChild(r)}function k(a,m){for(var e=m.length;--e>=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*</.test(m)?"default-markup":"default-code";return A[a]}function E(a){var m=
a.g;try{var e=M(a.h),h=e.a;a.a=h;a.c=e.c;a.d=0;C(m,h)(a);var k=/\bMSIE\b/.test(navigator.userAgent),m=/\n/g,t=a.a,s=t.length,e=0,l=a.c,p=l.length,h=0,d=a.e,g=d.length,a=0;d[g]=s;var r,n;for(n=r=0;n<g;)d[n]!==d[n+2]?(d[r++]=d[n++],d[r++]=d[n++]):n+=2;g=r;for(n=r=0;n<g;){for(var z=d[n],f=d[n+1],b=n+2;b+2<=g&&d[b+1]===f;)b+=2;d[r++]=z;d[r++]=f;n=b}for(d.length=r;h<p;){var o=l[h+2]||s,c=d[a+2]||s,b=Math.min(o,c),i=l[h+1],j;if(i.nodeType!==1&&(j=t.substring(e,b))){k&&(j=j.replace(m,"\r"));i.nodeValue=
j;var u=i.ownerDocument,v=u.createElement("SPAN");v.className=d[a+1];var x=i.parentNode;x.replaceChild(v,i);v.appendChild(i);e<o&&(l[h+1]=i=u.createTextNode(t.substring(b,o)),x.insertBefore(i,v.nextSibling))}e=b;e>=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+
I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),
["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",
/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),
["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes",
hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p<h.length&&l.now()<e;p++){var n=h[p],k=n.className;if(k.indexOf("prettyprint")>=0){var k=k.match(g),f,b;if(b=
!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p<h.length?setTimeout(m,
250):a&&a()}for(var e=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],h=[],k=0;k<e.length;++k)for(var t=0,s=e[k].length;t<s;++t)h.push(e[k][t]);var e=q,l=Date;l.now||(l={now:function(){return+new Date}});var p=0,d,g=/\blang(?:uage)?-([\w.]+)(?!\S)/;m()};window.PR={createSimpleLexer:x,registerLangHandler:k,sourceDecorator:u,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",
PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}})();

View File

@@ -0,0 +1,285 @@
html
{
overflow: auto;
background-color: #fff;
}
body
{
font: 14px "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans serif;
line-height: 130%;
color: #000;
background-color: #fff;
}
a {
color: #444;
}
a:visited {
color: #444;
}
a:active {
color: #444;
}
header
{
display: block;
padding: 6px 4px;
}
.class-description {
font-style: italic;
font-family: Palatino, 'Palatino Linotype', serif;
font-size: 130%;
line-height: 140%;
margin-bottom: 1em;
margin-top: 1em;
}
#main {
float: left;
width: 100%;
}
section
{
display: block;
background-color: #fff;
padding: 12px 24px;
border-bottom: 1px solid #ccc;
margin-right: 240px;
}
.variation {
display: none;
}
.optional:after {
content: "opt";
font-size: 60%;
color: #aaa;
font-style: italic;
font-weight: lighter;
}
nav
{
display: block;
float: left;
margin-left: -230px;
margin-top: 28px;
width: 220px;
border-left: 1px solid #ccc;
padding-left: 9px;
}
nav ul {
font-family: 'Lucida Grande', 'Lucida Sans Unicode', arial, sans-serif;
font-size: 100%;
line-height: 17px;
padding:0;
margin:0;
list-style-type:none;
}
nav h2 a, nav h2 a:visited {
color: #A35A00;
text-decoration: none;
}
nav h3 {
margin-top: 12px;
}
nav li {
margin-top: 6px;
}
nav a {
color: #5C5954;
}
nav a:visited {
color: #5C5954;
}
nav a:active {
color: #5C5954;
}
footer {
display: block;
padding: 6px;
margin-top: 12px;
font-style: italic;
font-size: 90%;
}
h1
{
font-size: 200%;
font-weight: bold;
letter-spacing: -0.01em;
margin: 6px 0 9px 0;
}
h2
{
font-size: 170%;
font-weight: bold;
letter-spacing: -0.01em;
margin: 6px 0 3px 0;
}
h3
{
font-size: 150%;
font-weight: bold;
letter-spacing: -0.01em;
margin-top: 16px;
margin: 6px 0 3px 0;
}
h4
{
font-size: 130%;
font-weight: bold;
letter-spacing: -0.01em;
margin-top: 16px;
margin: 18px 0 3px 0;
color: #A35A00;
}
h5, .container-overview .subsection-title
{
font-size: 120%;
font-weight: bold;
letter-spacing: -0.01em;
margin: 8px 0 3px -16px;
}
h6
{
font-size: 100%;
letter-spacing: -0.01em;
margin: 6px 0 3px 0;
font-style: italic;
}
.protected {
display: none;
}
dt.tag-source, dd.tag-source {
display: none;
}
.ancestors { color: #999; }
.ancestors a
{
color: #999 !important;
text-decoration: none;
}
.important
{
font-weight: bold;
color: #950B02;
}
.yes-def {
text-indent: -1000px;
}
.type-signature {
color: #aaa;
}
.name, .signature {
font-family: Consolas, "Lucida Console", Monaco, monospace;
}
.details { margin-top: 14px; }
.details dt { width:110px; float:left; border-left: 2px solid #DDD; padding-left: 10px; padding-top: 6px; }
.details dd { margin-left: 50px; }
.details ul { margin: 0; }
.details ul { list-style-type: none; }
.details li { margin-left: 30px; padding-top: 6px; }
.description {
margin-bottom: 1em;
margin-left: -16px;
margin-top: 1em;
}
.code-caption
{
font-style: italic;
font-family: Palatino, 'Palatino Linotype', serif;
font-size: 107%;
margin: 0;
}
.prettyprint
{
border: 1px solid #ddd;
width: 80%;
}
.prettyprint code
{
font-family: Consolas, 'Lucida Console', Monaco, monospace;
font-size: 100%;
line-height: 18px;
display: block;
padding: 4px 12px;
margin: 0;
background-color: #fff;
color: #000;
border-left: 3px #ddd solid;
}
.params, .props
{
border-spacing: 0;
border: 0;
border-collapse: collapse;
}
.params .name, .props .name, .name code {
color: #A35A00;
font-family: Consolas, 'Lucida Console', Monaco, monospace;
font-size: 100%;
}
.params td, .params th, .props td, .props th
{
border: 1px solid #ddd;
margin: 0px;
text-align: left;
vertical-align: top;
padding: 4px 6px;
display: table-cell;
}
.params thead tr, .props thead tr
{
background-color: #ddd;
font-weight: bold;
}
.params .params thead tr, .props .props thead tr
{
background-color: #fff;
font-weight: bold;
}
.params th, .props th { border-right: 1px solid #aaa; }
.params thead .last, .props thead .last { border-right: 1px solid #ddd; }
.disabled {
color: #454545;
}

View File

@@ -0,0 +1,111 @@
/* JSDoc prettify.js theme */
/* plain text */
.pln {
color: #000000;
font-weight: normal;
font-style: normal;
}
/* string content */
.str {
color: #006400;
font-weight: normal;
font-style: normal;
}
/* a keyword */
.kwd {
color: #000000;
font-weight: bold;
font-style: normal;
}
/* a comment */
.com {
font-weight: normal;
font-style: italic;
}
/* a type name */
.typ {
color: #000000;
font-weight: normal;
font-style: normal;
}
/* a literal value */
.lit {
color: #006400;
font-weight: normal;
font-style: normal;
}
/* punctuation */
.pun {
color: #000000;
font-weight: bold;
font-style: normal;
}
/* lisp open bracket */
.opn {
color: #000000;
font-weight: bold;
font-style: normal;
}
/* lisp close bracket */
.clo {
color: #000000;
font-weight: bold;
font-style: normal;
}
/* a markup tag name */
.tag {
color: #006400;
font-weight: normal;
font-style: normal;
}
/* a markup attribute name */
.atn {
color: #006400;
font-weight: normal;
font-style: normal;
}
/* a markup attribute value */
.atv {
color: #006400;
font-weight: normal;
font-style: normal;
}
/* a declaration */
.dec {
color: #000000;
font-weight: bold;
font-style: normal;
}
/* a variable name */
.var {
color: #000000;
font-weight: normal;
font-style: normal;
}
/* a function name */
.fun {
color: #000000;
font-weight: bold;
font-style: normal;
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0;
}

View File

@@ -0,0 +1,132 @@
/* Tomorrow Theme */
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
/* Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
/* plain text */
.pln {
color: #4d4d4c; }
@media screen {
/* string content */
.str {
color: #718c00; }
/* a keyword */
.kwd {
color: #8959a8; }
/* a comment */
.com {
color: #8e908c; }
/* a type name */
.typ {
color: #4271ae; }
/* a literal value */
.lit {
color: #f5871f; }
/* punctuation */
.pun {
color: #4d4d4c; }
/* lisp open bracket */
.opn {
color: #4d4d4c; }
/* lisp close bracket */
.clo {
color: #4d4d4c; }
/* a markup tag name */
.tag {
color: #c82829; }
/* a markup attribute name */
.atn {
color: #f5871f; }
/* a markup attribute value */
.atv {
color: #3e999f; }
/* a declaration */
.dec {
color: #f5871f; }
/* a variable name */
.var {
color: #c82829; }
/* a function name */
.fun {
color: #4271ae; } }
/* Use higher contrast and text-weight for printable form. */
@media print, projection {
.str {
color: #060; }
.kwd {
color: #006;
font-weight: bold; }
.com {
color: #600;
font-style: italic; }
.typ {
color: #404;
font-weight: bold; }
.lit {
color: #044; }
.pun, .opn, .clo {
color: #440; }
.tag {
color: #006;
font-weight: bold; }
.atn {
color: #404; }
.atv {
color: #060; } }
/* Style */
/*
pre.prettyprint {
background: white;
font-family: Menlo, Monaco, Consolas, monospace;
font-size: 12px;
line-height: 1.5;
border: 1px solid #ccc;
padding: 10px; }
*/
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0; }
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L4,
li.L5,
li.L6,
li.L7,
li.L8,
li.L9 {
/* */ }
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
/* */ }

143
doc/template/tmpl/container.tmpl vendored Normal file
View File

@@ -0,0 +1,143 @@
<?js
var self = this;
docs.forEach(function(doc, i) {
?>
<?js if (doc.kind === 'mainpage' || (doc.kind === 'package')) { ?>
<?js= self.partial('mainpage.tmpl', doc) ?>
<?js } else { ?>
<section>
<header>
<h2><?js if (doc.ancestors && doc.ancestors.length) { ?>
<span class="ancestors"><?js= doc.ancestors.join('') ?></span>
<?js } ?>
<?js= doc.longname ?>
<?js if (doc.variation) { ?>
<sup class="variation"><?js= doc.variation ?></sup>
<?js } ?></h2>
<?js if (doc.classdesc) { ?>
<div class="class-description"><?js= doc.classdesc ?></div>
<?js } ?>
</header>
<article>
<div class="container-overview">
<?js if (doc.kind === 'module' && doc.module) { ?>
<?js= self.partial('method.tmpl', doc.module) ?>
<?js } ?>
<?js if (doc.kind === 'class') { ?>
<?js= self.partial('method.tmpl', doc) ?>
<?js } else { ?>
<?js if (doc.description) { ?>
<div class="description"><?js= doc.description ?></div>
<?js } ?>
<?js= self.partial('details.tmpl', doc) ?>
<?js if (doc.examples && doc.examples.length) { ?>
<h3>Example<?js= doc.examples.length > 1? 's':'' ?></h3>
<?js= self.partial('examples.tmpl', doc.examples) ?>
<?js } ?>
<?js } ?>
</div>
<?js if (doc.augments && doc.augments.length) { ?>
<h3 class="subsection-title">Extends</h3>
<ul><?js doc.augments.forEach(function(a) { ?>
<li><?js= self.linkto(a, a) ?></li>
<?js }); ?></ul>
<?js } ?>
<?js if (doc.mixes && doc.mixes.length) { ?>
<h3 class="subsection-title">Mixes In</h3>
<ul><?js doc.mixes.forEach(function(a) { ?>
<li><?js= self.linkto(a, a) ?></li>
<?js }); ?></ul>
<?js } ?>
<?js if (doc.requires && doc.requires.length) { ?>
<h3 class="subsection-title">Requires</h3>
<ul><?js doc.requires.forEach(function(r) { ?>
<li><?js= self.linkto(r, r) ?></li>
<?js }); ?></ul>
<?js } ?>
<?js
var classes = self.find({kind: 'class', memberof: doc.longname});
if (doc.kind !== 'globalobj' && classes && classes.length) {
?>
<h3 class="subsection-title">Classes</h3>
<dl><?js classes.forEach(function(c) { ?>
<dt><?js= self.linkto(c.longname, c.longname) ?></dt>
<dd><?js if (c.summary) { ?><?js= c.summary ?><?js } ?></dd>
<?js }); ?></dl>
<?js } ?>
<?js
var namespaces = self.find({kind: 'namespace', memberof: doc.longname});
if (doc.kind !== 'globalobj' && namespaces && namespaces.length) {
?>
<h3 class="subsection-title">Namespaces</h3>
<dl><?js namespaces.forEach(function(n) { ?>
<dt><a href="namespaces.html#<?js= n.longname ?>"><?js= self.linkto(n.longname, n.longname) ?></a></dt>
<dd><?js if (n.summary) { ?><?js= n.summary ?><?js } ?></dd>
<?js }); ?></dl>
<?js } ?>
<?js
var members = self.find({kind: 'member', memberof: title === 'Globals'? {isUndefined: true} : doc.longname});
if (members && members.length && members.forEach) {
?>
<h3 class="subsection-title">Members</h3>
<dl><?js members.forEach(function(p) { ?>
<?js= self.partial('members.tmpl', p) ?>
<?js }); ?></dl>
<?js } ?>
<?js
var methods = self.find({kind: 'function', memberof: title === 'Globals'? {isUndefined: true} : doc.longname});
if (methods && methods.length && methods.forEach) {
?>
<h3 class="subsection-title">Methods</h3>
<dl><?js methods.forEach(function(m) { ?>
<?js= self.partial('method.tmpl', m) ?>
<?js }); ?></dl>
<?js } ?>
<?js
var typedefs = self.find({kind: 'typedef', memberof: doc.longname});
if (typedefs && typedefs.length && typedefs.forEach) {
?>
<h3 class="subsection-title">TypeDefs</h3>
<dl><?js typedefs.forEach(function(e) { ?>
<?js= self.partial('members.tmpl', e) ?>
<?js }); ?></dl>
<?js } ?>
<?js
var events = self.find({kind: 'event', memberof: doc.longname});
if (events && events.length && events.forEach) {
?>
<h3 class="subsection-title">Events</h3>
<dl><?js events.forEach(function(e) { ?>
<?js= self.partial('method.tmpl', e) ?>
<?js }); ?></dl>
<?js } ?>
</article>
</section>
<?js } ?>
<?js }); ?>

96
doc/template/tmpl/details.tmpl vendored Normal file
View File

@@ -0,0 +1,96 @@
<?js
var data = obj;
var self = this;
?>
<dl class="details">
<?js
var properties = data.properties;
if (properties && properties.length && properties.forEach) {
?>
<h5 class="subsection-title">Properties:</h5>
<dl><?js= this.partial('properties.tmpl', properties) ?></dl>
<?js } ?>
<?js if (data.version) {?>
<dt class="tag-version">Version:</dt>
<dd class="tag-version"><ul class="dummy"><li><?js= version ?></li></ul></dd>
<?js } ?>
<?js if (data.since) {?>
<dt class="tag-since">Since:</dt>
<dd class="tag-since"><ul class="dummy"><li><?js= since ?></dd>
<?js } ?>
<?js if (data.inherited && data.inherits) { ?>
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<?js= this.linkto(data.inherits, this.htmlsafe(data.inherits)) ?>
</li></dd>
<?js } ?>
<?js if (data.deprecated) { ?>
<dt class="important tag-deprecated">Deprecated:</dt><?js
if (data.deprecated === true) { ?><dd class="yes-def tag-deprecated"><ul class="dummy"><li>Yes</li></ul></dd><?js }
else { ?><dd><ul class="dummy"><li><?js= data.deprecated ?></li><ul></dd><?js }
?>
<?js } ?>
<?js if (data.author && author.length) {?>
<dt class="tag-author">Author:</dt>
<dd class="tag-author">
<ul><?js author.forEach(function(a) { ?>
<li><?js= a ?></li>
<?js }); ?></ul>
</dd>
<?js } ?>
<?js if (data.copyright) {?>
<dt class="tag-copyright">Copyright:</dt>
<dd class="tag-copyright"><ul class="dummy"><li><?js= copyright ?></li></ul></dd>
<?js } ?>
<?js if (data.license) {?>
<dt class="tag-license">License:</dt>
<dd class="tag-license"><ul class="dummy"><li><?js= license ?></li></ul></dd>
<?js } ?>
<?js if (data.defaultvalue) {?>
<dt class="tag-default">Default Value:</dt>
<dd class="tag-default"><ul class="dummy"><li><?js= data.defaultvalue ?></li></ul></dd>
<?js } ?>
<?js if (data.meta) {?>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li><?js= meta.filename ?>, line <?js= meta.lineno ?></li></ul></dd>
<?js } ?>
<?js if (data.tutorials && tutorials.length) {?>
<dt class="tag-tutorial">Tutorials:</dt>
<dd class="tag-tutorial">
<ul><?js tutorials.forEach(function(t) { ?>
<li><?js= self.tutoriallink(t) ?></li>
<?js }); ?></ul>
</dd>
<?js } ?>
<?js if (data.see && see.length) {?>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul><?js see.forEach(function(s) { ?>
<li><?js= self.linkto(s) ?></li>
<?js }); ?></ul>
</dd>
<?js } ?>
<?js if (data.todo && todo.length) {?>
<dt class="tag-todo">To Do:</dt>
<dd class="tag-todo">
<ul><?js todo.forEach(function(t) { ?>
<li><?js= t ?></li>
<?js }); ?></ul>
</dd>
<?js } ?>
</dl>

2
doc/template/tmpl/example.tmpl vendored Normal file
View File

@@ -0,0 +1,2 @@
<?js var data = obj; ?>
<pre><code><?js= data ?></code></pre>

11
doc/template/tmpl/examples.tmpl vendored Normal file
View File

@@ -0,0 +1,11 @@
<?js
var data = obj;
data.forEach(function(example) {
if (example.caption) {
?>
<p class="code-caption"><?js= example.caption ?></p>
<?js } ?>
<pre class="prettyprint"><code><?js= example.code ?></code></pre>
<?js
});
?>

19
doc/template/tmpl/exceptions.tmpl vendored Normal file
View File

@@ -0,0 +1,19 @@
<?js
var data = obj;
if (data.description) {
?>
<div class="param-desc">
<?js= description ?>
</div>
<?js } ?>
<?js if (data.type && data.type.names) {?>
<dl>
<dt>
Type
</dt>
<dd>
<?js= this.partial('type.tmpl', data.type.names) ?>
</dd>
</dl>
<?js } ?>

4
doc/template/tmpl/fires.tmpl vendored Normal file
View File

@@ -0,0 +1,4 @@
<?js var data = obj; ?>
<li>
<?js= data ?>
</li>

52
doc/template/tmpl/layout.tmpl vendored Normal file
View File

@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>OpenLayers 3 API Documentation - <?js= title ?></title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-jsdoc.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../resources/layout.css" type="text/css">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="./">OpenLayers 3 API Documentation - <?js= title ?></a>
<ul class="nav pull-right">
<li><iframe class="github-watch-button" src="http://ghbtns.com/github-btn.html?user=openlayers&repo=ol3&type=watch&count=true"
allowtransparency="true" frameborder="0" scrolling="0" height="20" width="90"></iframe></li>
<li><a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-hashtags="openlayers">&nbsp;</a></li>
<li><div class="g-plusone-wrapper"><div class="g-plusone" data-size="medium" data-annotation="none"></div></div></li>
</ul>
</div>
</div>
</div>
<div id="main">
<?js= content ?>
</div>
<nav>
<?js= this.nav ?>
</nav>
<br clear="both">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3</a>
</footer>
<script> prettyPrint(); </script>
<script src="../resources/social-links.js" type="text/javascript"></script>
</body>
</html>

14
doc/template/tmpl/mainpage.tmpl vendored Normal file
View File

@@ -0,0 +1,14 @@
<?js
var data = obj;
var self = this;
?>
<?js if (data.kind === 'package') { ?>
<h3><?js= data.name ?> <?js= data.version ?></h3>
<?js } ?>
<?js if (data.readme) { ?>
<section>
<article><?js= data.readme ?></article>
</section>
<?js } ?>

22
doc/template/tmpl/members.tmpl vendored Normal file
View File

@@ -0,0 +1,22 @@
<?js var data = obj; ?>
<dt class="<?js= data.access ?>">
<h4 class="name" id="<?js= id ?>"><?js= data.attribs + name + data.signature ?></h4>
<?js if (data.summary) { ?>
<p class="summary"><?js= summary ?></p>
<?js } ?>
</dt>
<dd class="<?js= data.access ?>">
<?js if (data.description) { ?>
<div class="description">
<?js= data.description ?>
</div>
<?js } ?>
<?js= this.partial('details.tmpl', data) ?>
<?js if (data.examples && examples.length) { ?>
<h5>Example<?js= examples.length > 1? 's':'' ?></h5>
<?js= this.partial('examples.tmpl', examples) ?>
<?js } ?>
</dd>

76
doc/template/tmpl/method.tmpl vendored Normal file
View File

@@ -0,0 +1,76 @@
<?js
var data = obj;
var self = this;
?>
<dt>
<h4 class="name" id="<?js= id ?>"><?js= data.attribs + (kind == 'class'? 'new ':'') + name + data.signature ?></h4>
<?js if (data.summary) { ?>
<p class="summary"><?js= summary ?></p>
<?js } ?>
</dt>
<dd>
<?js if (data.description) { ?>
<div class="description">
<?js= data.description ?>
</div>
<?js } ?>
<?js if (kind === 'event' && data.type && data.type.names) {?>
<h5>Type:</h5>
<ul>
<li>
<?js= self.partial('type.tmpl', data.type.names) ?>
</li>
</ul>
<?js } ?>
<?js if (data['this']) { ?>
<h5>This:</h5>
<ul><li><?js= this.linkto(data['this'], data['this']) ?></li></ul>
<?js } ?>
<?js if (data.params && params.length) { ?>
<h5>Parameters:</h5>
<?js= this.partial('params.tmpl', params) ?>
<?js } ?>
<?js= this.partial('details.tmpl', data) ?>
<?js if (data.fires && fires.length) { ?>
<h5>Fires:</h5>
<ul><?js fires.forEach(function(f) { ?>
<?js= self.partial('fires.tmpl', self.linkto(f) ) ?>
<?js }); ?></ul>
<?js } ?>
<?js if (data.exceptions && exceptions.length) { ?>
<h5>Throws:</h5>
<?js if (exceptions.length > 1) { ?><ul><?js
exceptions.forEach(function(r) { ?>
<li><?js= self.partial('exceptions.tmpl', r) ?></li>
<?js });
?></ul><?js } else {
exceptions.forEach(function(r) { ?>
<?js= self.partial('exceptions.tmpl', r) ?>
<?js });
} } ?>
<?js if (data.returns && returns.length) { ?>
<h5>Returns:</h5>
<?js if (returns.length > 1) { ?><ul><?js
returns.forEach(function(r) { ?>
<li><?js= self.partial('returns.tmpl', r) ?></li>
<?js });
?></ul><?js } else {
returns.forEach(function(r) { ?>
<?js= self.partial('returns.tmpl', r) ?>
<?js });
} } ?>
<?js if (data.examples && examples.length) { ?>
<h5>Example<?js= examples.length > 1? 's':'' ?></h5>
<?js= this.partial('examples.tmpl', examples) ?>
<?js } ?>
</dd>

108
doc/template/tmpl/params.tmpl vendored Normal file
View File

@@ -0,0 +1,108 @@
<?js
var params = obj;
/* sort subparams under their parent params (like opts.classname) */
var parentParam = null;
params.forEach(function(param, i) {
if (!param) { return; }
if ( parentParam && param.name && param.name.indexOf(parentParam.name + '.') === 0 ) {
param.name = param.name.substr(parentParam.name.length+1);
parentParam.subparams = parentParam.subparams || [];
parentParam.subparams.push(param);
params[i] = null;
}
else {
parentParam = param;
}
});
/* determine if we need extra columns, "attributes" and "default" */
params.hasAttributes = false;
params.hasDefault = false;
params.hasName = false;
params.forEach(function(param) {
if (!param) { return; }
if (param.optional || param.nullable) {
params.hasAttributes = true;
}
if (param.name) {
params.hasName = true;
}
if (typeof param.defaultvalue !== 'undefined') {
params.hasDefault = true;
}
});
?>
<table class="params">
<thead>
<tr>
<?js if (params.hasName) {?>
<th>Name</th>
<?js } ?>
<th>Type</th>
<?js if (params.hasAttributes) {?>
<th>Argument</th>
<?js } ?>
<?js if (params.hasDefault) {?>
<th>Default</th>
<?js } ?>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<?js
var self = this;
params.forEach(function(param) {
if (!param) { return; }
?>
<tr>
<?js if (params.hasName) {?>
<td class="name"><code><?js= param.name.replace(/^opt_/, "") ?></code></td>
<?js } ?>
<td class="type">
<?js if (param.type && param.type.names) {?>
<?js= self.partial('type.tmpl', param.type.names) ?>
<?js } ?>
</td>
<?js if (params.hasAttributes) {?>
<td class="attributes">
<?js if (param.optional) { ?>
&lt;optional><br>
<?js } ?>
<?js if (param.nullable) { ?>
&lt;nullable><br>
<?js } ?>
</td>
<?js } ?>
<?js if (params.hasDefault) {?>
<td class="default">
<?js if (typeof param.defaultvalue !== 'undefined') { ?>
<?js= self.htmlsafe(param.defaultvalue) ?>
<?js } ?>
</td>
<?js } ?>
<td class="description last"><?js= (param.optional ? "(Optional) " : "") + param.description ?><?js if (param.subparams) { ?>
<h6>Properties</h6>
<?js= self.partial('params.tmpl', param.subparams) ?>
<?js } ?></td>
</tr>
<?js }); ?>
</tbody>
</table>

107
doc/template/tmpl/properties.tmpl vendored Normal file
View File

@@ -0,0 +1,107 @@
<?js
var props = obj;
/* sort subprops under their parent props (like opts.classname) */
var parentProp = null;
props.forEach(function(prop, i) {
if (!prop) { return; }
if ( parentProp && prop.name.indexOf(parentProp.name + '.') === 0 ) {
prop.name = prop.name.substr(parentProp.name.length+1);
parentProp.subprops = parentProp.subprops || [];
parentProp.subprops.push(prop);
props[i] = null;
}
else {
parentProp = prop;
}
});
/* determine if we need extra columns, "attributes" and "default" */
props.hasAttributes = false;
props.hasDefault = false;
props.hasName = false;
props.forEach(function(prop) {
if (!prop) { return; }
if (prop.optional || prop.nullable) {
props.hasAttributes = true;
}
if (prop.name) {
props.hasName = true;
}
if (typeof prop.defaultvalue !== 'undefined') {
props.hasDefault = true;
}
});
?>
<table class="props">
<thead>
<tr>
<?js if (props.hasName) {?>
<th>Name</th>
<?js } ?>
<th>Type</th>
<?js if (props.hasAttributes) {?>
<th>Argument</th>
<?js } ?>
<?js if (props.hasDefault) {?>
<th>Default</th>
<?js } ?>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<?js
var self = this;
props.forEach(function(prop) {
if (!prop) { return; }
?>
<tr>
<?js if (props.hasName) {?>
<td class="name"><code><?js= prop.name ?></code></td>
<?js } ?>
<td class="type">
<?js if (prop.type && prop.type.names) {?>
<?js= self.partial('type.tmpl', prop.type.names) ?>
<?js } ?>
</td>
<?js if (props.hasAttributes) {?>
<td class="attributes">
<?js if (prop.optional) { ?>
&lt;optional><br>
<?js } ?>
<?js if (prop.nullable) { ?>
&lt;nullable><br>
<?js } ?>
</td>
<?js } ?>
<?js if (props.hasDefault) {?>
<td class="default">
<?js if (typeof prop.defaultvalue !== 'undefined') { ?>
<?js= self.htmlsafe(prop.defaultvalue) ?>
<?js } ?>
</td>
<?js } ?>
<td class="description last"><?js= prop.description ?><?js if (prop.subprops) { ?>
<h6>Properties</h6><?js= self.partial('properties.tmpl', prop.subprops) ?>
<?js } ?></td>
</tr>
<?js }); ?>
</tbody>
</table>

19
doc/template/tmpl/returns.tmpl vendored Normal file
View File

@@ -0,0 +1,19 @@
<?js
var data = obj;
if (data.description) {
?>
<div class="param-desc">
<?js= description ?>
</div>
<?js } ?>
<?js if (data.type && data.type.names) {?>
<dl>
<dt>
Type
</dt>
<dd>
<?js= this.partial('type.tmpl', data.type.names) ?>
</dd>
</dl>
<?js } ?>

8
doc/template/tmpl/source.tmpl vendored Normal file
View File

@@ -0,0 +1,8 @@
<?js
var data = obj;
?>
<section>
<article>
<pre class="prettyprint source"><code><?js= data.code ?></code></pre>
</article>
</section>

19
doc/template/tmpl/tutorial.tmpl vendored Normal file
View File

@@ -0,0 +1,19 @@
<section>
<header>
<?js if (children.length > 0) { ?>
<ul><?js
var self = this;
children.forEach(function(t) { ?>
<li><?js= self.tutoriallink(t.name) ?></li>
<?js }); ?></ul>
<?js } ?>
<h2><?js= header ?></h2>
</header>
<article>
<?js= content ?>
</article>
</section>

7
doc/template/tmpl/type.tmpl vendored Normal file
View File

@@ -0,0 +1,7 @@
<?js
var data = obj;
var self = this;
data.forEach(function(name, i) { ?>
<span class="param-type"><?js= self.linkto(name, self.htmlsafe(name)) ?></span>
<?js if (i < data.length-1) { ?>|<?js } ?>
<?js }); ?>

3
doc/tutorials/ol3.json Normal file
View File

@@ -0,0 +1,3 @@
{
"title": "OpenLayers 3 Architecture"
}

274
doc/tutorials/ol3.md Normal file
View File

@@ -0,0 +1,274 @@
CLASS HIERARCHY
===============
```
goog.math.Coordinate // Simple 2D point
|
+- TileCoord
goog.math.Box
|
+- Extent // The extent of a single object in two dimensions, projection not stored
|
+- TileBounds // A range of tiles in two dimensions, integer coordinates, z not stored
Projection
goog.events.EventTarget
|
+- MVCObject
| |
| +- Camera
| |
| +- Control
| | |
| | +- ?
| |
| +- Layer
| | |
| | +- TileLayer
| | | |
| | | +- TMSTileLayer
| | | |
| | | +- WMTSTileLayer
| | | |
| | | +- XYZTileLayer / OSMTileLayer
| | |
| | +- VectorLayer
| | |
| | +- ImageLayer
| |
| +- LayerRenderer
| |
| +- LayerRendererOptions
| |
| +- Map
| |
| +- MapRenderer
| | |
| | +- HTMLMapRenderer
| | |
| | +- WebGLMapRenderer
| |
| +- MVCArray
| | |
| | +- ControlArray
| | |
| | +- LayerViewArray
|
| +- TileQueue
|
+- Tile
```
Layer renderer hierarchy
------------------------
```
goog.events.EventTarget
|
+- MVCObject
|
+- LayerRenderer
|
+- SingleTileLayerRenderer
| |
| +- HTMLSingleTileLayerRenderer
| |
| +- WebGLSingleTileLayerRenderer
|
+- TileLayerRenderer
| |
| +- HTMLTileLayerRenderer
| |
| +- WebGLTileLayerRenderer
|
+- VectorLayerRenderer
| |
| +- HTMLVectorLayerRenderer
| | |
| | +- SVGHTMLVectorLayerRenderer
| | |
| | +- Canvas2DHTMLVectorLayerRenderer
| | |
| | +- VMLHTMLVectorLayerRenderer
| |
| +- WebGLVectorLayerRenderer
```
OBJECT PROPERTIES AND METHODS
=============================
Notation:
- `property type` property with type, trailing ? indicates unsure, getters and setters are assumed to exist.
- `f(args) -> type` function taking args returning type.
- `f(args) -> type = something` f is a trivial wrapper around something.
- `fires 'x'` fires events of type 'x'.
Principles:
- All non-trivial objects inherit from `MVCObject`.
- All non-trivial collections are either `MVCArrays` or a child class thereof.
- Resolutions are `Array.<number>`, infinitely scalable resources (e.g. vectore layers) have resolutions == null.
```
MVCObject
as Google Maps MVCObject
freeze()
unfreeze()
TileCoord
clone() -> TileCoord
getHash() -> number
TileBounds
forEachTileCoord(z, function(tileCoord))
Tile
tileCoord TileCoord
url string
state UNLOADED | LOADING | LOADED
fires 'loaded' // when loaded
fires 'aborted' // when loading is aborted
Camera
position goog.math.Coordinate
resolution number
rotation number
Layer
projections Array.<Projection>
extent Extent
getResolutions() -> Array.<number>|null
fires 'change' // when data changes
LayerArray
getResolutions() -> Array.<number>|null
getMaxResolution() = this.getResolutions()[0] | null
LayerRendererOptions
layer Layer
visible boolean
opacity number
brightness number
color number
hue number
saturation number
Map
projection Projection
renderer Renderer
layers LayerArray
addLayer(layer) = layers.push(layer)
getExtent() -> Extent
getMaxResolution() = layers.getMaxResolution()
TileGrid
resolutions Array.<number>
extent ol.Extent
xEast boolean
ySouth boolean
origin(s) Coord|Array.<Coord>
tileSize goog.math.Size
forEachTileCoordChild(tileCoord, function(z, TileBounds))
forEachTileCoordParent(tileCoord, function(z, TileBounds))
getExtentTileBounds(z, extent) -> TileBounds
getTileCoord(coordinate) -> TileCoord
getTileCoordCenter(tileCoord) -> goog.math.Coordinate
getTileCoordExtent(tileCoord) -> ol.Extent
getTileCoordResolution(tileCoord) -> number
getZForResolution(resolution) -> number
TileLayer
tileGrid TileGrid
tileUrl function(tileCoord) -> string
getTileCoordUrl(tileCoord) -> string = this.tileUrl(tileCoord)
TileQueue
camera Camera // or maybe MVCArray.<Camera> ?
getTileCoordPriority(tileCoord) -> number // private
enqueueTile(Tile)
VectorLayer
forEachFeature(resolution, extent, projection, function(Feature))
Renderer
target HTMLDivElement
map Map
camera Camera
getCapabilities() -> Array.<string> // maybe ?
```
Questions:
- Store tile layer extent in TileLayer or in TileGrid? (not clear)
Two concepts: tile coordinate system range and and available data extent.
TileGrid extent is range (or validity extent) of the tile coordinate system.
TileLayer extent is the available data extent. A particular TileGrid may range
from 0,0 to 10,10. My cache may conform to that grid but I may only have tiles
ranging from 2,2 to 8,8. When you need to wrap multiple worlds, you pay
attention to the TileGrid extent. When you need to decide whether or not to
bother requesting a tile, you pay attention to the TileLayer extent.
- Who determines "best" resolution? (static function?)
Todo: if tile layer extent stored in TileLayer rather than TileGrid then extent
will occasionally need to be passed to TileGrid functions for cropping.
DESIGN ASSERTIONS
=================
Map
- A map has a renderer (the map renderer).
- A map has a camera.
- Multiple maps can share the same camera.
- A map has a layer list.
Layer
- A layer can have multiple projections (the supported projections).
- A layer advertizes the projections it supports.
- A layer returns no data if asked data for an unsupported projection.
LayerRendererOptions
- A layer renderer options object stores view-related states for a layer.
- Options include visibility, opacity, saturation, hue, etc.
- A layer renderer options object has a layer.
- Multiple layer renderer options can share the same layer.
- In other words a layer can be viewed in different manners.
Renderer
- The map renderer responds to events.
- The map renderer receives events from the camera.
- The map renderer creates layer renderers.
Control
- A control may listen to map events.
- A control may listen to camera events.
- A map navigation control acts on the camera.
MVC
- Types can be described in MVC terms.
- Models don't know what rendering means.
- Maps are models.
- Layers are models.
- Layer views are models (sorry!).
- Cameras are models.
- Layer lists are collections.
- Renderers are views.
- Controls are views or controllers or both.
- An attribution control is a view.
- A map navigation control is a controller.
- A zoom slider control is both a view and a controller.

View File

@@ -1,33 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
function parseData(req) {
g = new OpenLayers.Format.GML();
html = ""
features = g.read(req.responseText);
for(var feat in features) {
html += "Feature: Geometry: "+ features[feat].geometry+",";
html += "<ul>";
for (var j in features[feat].attributes) {
html += "<li>"+j+":"+features[feat].attributes[j]+"</li>";
}
html += "</ul>"
}
document.body.innerHTML = html;
}
function load() {
OpenLayers.loadURL("gml/owls.xml", "", null, parseData);
}
</script>
</head>
<body onload="load()">
</body>
</html>

8
examples/Jugl.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -1,33 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
function parseData(req) {
g = new OpenLayers.Format.KML();
html = ""
features = g.read(req.responseText);
for(var feat in features) {
html += "Feature: Geometry: "+ features[feat].geometry+",";
html += "<ul>";
for (var j in features[feat].attributes) {
html += "<li>"+j+":"+features[feat].attributes[j]+"</li>";
}
html += "</ul>"
}
document.body.innerHTML = html;
}
function load() {
OpenLayers.loadURL("kml/mc-search.kml", "", null, parseData);
}
</script>
</head>
<body onload="load()">
</body>
</html>

63
examples/animation.html Normal file
View File

@@ -0,0 +1,63 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../resources/layout.css" type="text/css">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css">
<title>Animation example</title>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="./">OpenLayers 3 Examples</a>
<ul class="nav pull-right">
<li><iframe class="github-watch-button" src="http://ghbtns.com/github-btn.html?user=openlayers&repo=ol3&type=watch&count=true"
allowtransparency="true" frameborder="0" scrolling="0" height="20" width="90"></iframe></li>
<li><a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-hashtags="openlayers">&nbsp;</a></li>
<li><div class="g-plusone-wrapper"><div class="g-plusone" data-size="medium" data-annotation="none"></div></div></li>
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
<button id="rotate-left"><i class="icon-arrow-left"></i></button>
<button>Rotate</button>
<button id="rotate-right"><i class="icon-arrow-right"></i></button>
</div>
<button id="pan-to-london">Pan to London</button>
<button id="elastic-to-moscow">Elastic to Moscow</button>
<button id="bounce-to-istanbul">Bounce to Istanbul</button>
<button id="spin-to-rome">Spin to Rome</button>
<button id="fly-to-bern">Fly to Bern</button>
</div>
<div class="row-fluid">
<div class="span4">
<h4 id="title">Animation example</h4>
<p id="shortdesc">Example animations.</p>
<div id="docs">
<p>See the <a href="animation.js" target="_blank">animation.js source</a> to see how this is done.</p>
</div>
<div id="tags">animation</div>
</div>
</div>
</div>
<script src="loader.js?id=animation" type="text/javascript"></script>
<script src="../resources/social-links.js" type="text/javascript"></script>
</body>
</html>

125
examples/animation.js Normal file
View File

@@ -0,0 +1,125 @@
goog.require('ol.Map');
goog.require('ol.RendererHints');
goog.require('ol.View2D');
goog.require('ol.animation');
goog.require('ol.easing');
goog.require('ol.layer.TileLayer');
goog.require('ol.projection');
goog.require('ol.source.OSM');
var london = ol.projection.transform(
[-0.12755, 51.507222], 'EPSG:4326', 'EPSG:3857');
var moscow = ol.projection.transform(
[37.6178, 55.7517], 'EPSG:4326', 'EPSG:3857');
var istanbul = ol.projection.transform(
[28.9744, 41.0128], 'EPSG:4326', 'EPSG:3857');
var rome = ol.projection.transform(
[12.5, 41.9], 'EPSG:4326', 'EPSG:3857');
var bern = ol.projection.transform(
[7.4458, 46.95], 'EPSG:4326', 'EPSG:3857');
var view = new ol.View2D({
// the view's initial state
center: istanbul,
zoom: 6
});
var map = new ol.Map({
layers: [
new ol.layer.TileLayer({
preload: 4,
source: new ol.source.OSM()
})
],
renderers: ol.RendererHints.createFromQueryData(),
target: 'map',
view: view
});
var rotateLeft = document.getElementById('rotate-left');
rotateLeft.addEventListener('click', function() {
var rotateLeft = ol.animation.rotate({
duration: 2000,
rotation: -4 * Math.PI
});
map.addPreRenderFunction(rotateLeft);
}, false);
var rotateRight = document.getElementById('rotate-right');
rotateRight.addEventListener('click', function() {
var rotateRight = ol.animation.rotate({
duration: 2000,
rotation: 4 * Math.PI
});
map.addPreRenderFunction(rotateRight);
}, false);
var panToLondon = document.getElementById('pan-to-london');
panToLondon.addEventListener('click', function() {
var pan = ol.animation.pan({
duration: 2000,
source: view.getCenter()
});
map.addPreRenderFunction(pan);
view.setCenter(london);
}, false);
var elasticToMoscow = document.getElementById('elastic-to-moscow');
elasticToMoscow.addEventListener('click', function() {
var pan = ol.animation.pan({
duration: 2000,
easing: ol.easing.elastic,
source: view.getCenter()
});
map.addPreRenderFunction(pan);
view.setCenter(moscow);
}, false);
var bounceToIstanbul = document.getElementById('bounce-to-istanbul');
bounceToIstanbul.addEventListener('click', function() {
var pan = ol.animation.pan({
duration: 2000,
easing: ol.easing.bounce,
source: view.getCenter()
});
map.addPreRenderFunction(pan);
view.setCenter(istanbul);
}, false);
var spinToRome = document.getElementById('spin-to-rome');
spinToRome.addEventListener('click', function() {
var duration = 2000;
var start = +new Date();
var pan = ol.animation.pan({
duration: duration,
source: view.getCenter(),
start: start
});
var rotate = ol.animation.rotate({
duration: duration,
rotation: 2 * Math.PI,
start: start
});
map.addPreRenderFunctions([pan, rotate]);
view.setCenter(rome);
}, false);
var flyToBern = document.getElementById('fly-to-bern');
flyToBern.addEventListener('click', function() {
var duration = 2000;
var start = +new Date();
var pan = ol.animation.pan({
duration: duration,
source: view.getCenter(),
start: start
});
var bounce = ol.animation.bounce({
duration: duration,
resolution: 4 * view.getResolution(),
start: start
});
map.addPreRenderFunctions([pan, bounce]);
view.setCenter(bern);
}, false);

View File

@@ -1,83 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 100%;
height: 512px;
border: 1px solid black;
background-color: blue;
}
</style>
<!-- this gmaps key generated for http://openlayers.org/dev/ -->
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA9XNhd8q0UdwNC7YSO4YZghSPUCi5aRYVveCcVYxzezM4iaj_gxQ9t-UajFL70jfcpquH5l1IJ-Zyyw'></script>
<!-- Localhost key -->
<!-- <script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTS6gjckBmeABOGXIUiOiZObZESPg'></script>-->
<script type="text/javascript" src="http://clients.multimap.com/API/maps/1.1/metacarta_04"></script>
<script src='http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js'></script>
<script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=euzuro-openlayers"></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
var lon = 5;
var lat = 40;
var zoom = 5;
var map, markers;
var barcelona = new OpenLayers.LonLat(2.13134765625,
41.37062534198901);
var madrid = new OpenLayers.LonLat(-3.6968994140625,
40.428314208984375);
function init(){
map = new OpenLayers.Map( 'map' );
var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'} );
var google = new OpenLayers.Layer.Google( "Google Hybrid" , {type: G_HYBRID_MAP });
var ve = new OpenLayers.Layer.VirtualEarth( "VE");
var yahoo = new OpenLayers.Layer.Yahoo( "Yahoo");
var mm = new OpenLayers.Layer.MultiMap( "MultiMap");
map.addLayers([wms, google, ve, yahoo, mm]);
markers = new OpenLayers.Layer.Markers("markers");
map.addLayer(markers);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
map.addControl( new OpenLayers.Control.LayerSwitcher() );
map.addControl( new OpenLayers.Control.MousePosition() );
}
function add() {
var url = 'http://boston.openguides.org/markers/AQUA.png';
var sz = new OpenLayers.Size(10, 17);
var calculateOffset = function(size) {
return new OpenLayers.Pixel(-(size.w/2), -size.h);
};
var icon = new OpenLayers.Icon(url, sz, null, calculateOffset);
marker = new OpenLayers.Marker(barcelona, icon);
markers.addMarker(marker);
marker = new OpenLayers.Marker(madrid, icon.clone());
markers.addMarker(marker);
}
function remove() {
markers.removeMarker(marker);
}
// -->
</script>
</head>
<body onload="init()">
<h1>OpenLayers With WMS, Google, VE Example</h1>
<div id="map"></div>
<div style="background-color:green" onclick="add()"> click to add a marker to the map</div>
<div style="background-color:red" onclick="remove()"> click to remove the marker from the map</div>
</body>
</html>

87
examples/bind-input.html Normal file
View File

@@ -0,0 +1,87 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../resources/layout.css" type="text/css">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css">
<title>Bind HTML input example</title>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="./">OpenLayers 3 Examples</a>
<ul class="nav pull-right">
<li><iframe class="github-watch-button" src="http://ghbtns.com/github-btn.html?user=openlayers&repo=ol3&type=watch&count=true"
allowtransparency="true" frameborder="0" scrolling="0" height="20" width="90"></iframe></li>
<li><a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-hashtags="openlayers">&nbsp;</a></li>
<li><div class="g-plusone-wrapper"><div class="g-plusone" data-size="medium" data-annotation="none"></div></div></li>
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
</div>
</div>
<div class="row-fluid">
<div class="span4">
<h4 id="title">Bind HTML input example</h4>
<p id="shortdesc">Bind an HTML input to an ol object.</p>
<div id="docs">
<p>See the <a href="bind-input.js" target="_blank">bind-input.js source</a> to see how this is done.</p>
</div>
<div id="tags">input, bind, openstreetmap</div>
</div>
<div class="span4">
<form class="">
<fieldset>
<legend>Layer</legend>
<label class="checkbox" for="visible">
<input id="visible" type="checkbox"/>visibility
</label>
<label>opacity</label>
<input id="opacity" type="range" min="0" max="1" step="0.01"/>
<label>hue</label>
<input id="hue" type="range" min="-3.141592653589793" max="3.141592653589793" step="0.01"/>
<label>saturation</label>
<input id="saturation" type="range" min="0" max="5" step="0.01"/>
<label>contrast</label>
<input id="contrast" type="range" min="0" max="2" step="0.01"/>
<label>brightness</label>
<input id="brightness" type="range" min="-1" max="1" step="0.01"/>
</fieldset>
</form>
</div>
<div class="span4">
<form class="">
<fieldset>
<legend>View</legend>
<label>rotation</label>
<input id="rotation" type="range" min="-3.141592653589793" max="3.141592653589793" step="0.01"/>
</fieldset>
</fieldset>
</form>
</div>
</div>
</div>
<script src="loader.js?id=bind-input" type="text/javascript"></script>
<script src="../resources/social-links.js" type="text/javascript"></script>
</body>
</html>

41
examples/bind-input.js Normal file
View File

@@ -0,0 +1,41 @@
goog.require('ol.Map');
goog.require('ol.RendererHints');
goog.require('ol.View2D');
goog.require('ol.dom.Input');
goog.require('ol.layer.TileLayer');
goog.require('ol.source.OSM');
var layer = new ol.layer.TileLayer({
source: new ol.source.OSM()
});
var map = new ol.Map({
layers: [layer],
renderers: ol.RendererHints.createFromQueryData(),
target: 'map',
view: new ol.View2D({
center: [0, 0],
zoom: 2
})
});
var visible = new ol.dom.Input(document.getElementById('visible'));
visible.bindTo('checked', layer, 'visible');
var opacity = new ol.dom.Input(document.getElementById('opacity'));
opacity.bindTo('value', layer, 'opacity');
var hue = new ol.dom.Input(document.getElementById('hue'));
hue.bindTo('value', layer, 'hue');
var saturation = new ol.dom.Input(document.getElementById('saturation'));
saturation.bindTo('value', layer, 'saturation');
var contrast = new ol.dom.Input(document.getElementById('contrast'));
contrast.bindTo('value', layer, 'contrast');
var brightness = new ol.dom.Input(document.getElementById('brightness'));
brightness.bindTo('value', layer, 'brightness');
var rotation = new ol.dom.Input(document.getElementById('rotation'));
rotation.bindTo('value', map.getView(), 'rotation');

62
examples/bing-maps.html Normal file
View File

@@ -0,0 +1,62 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../resources/layout.css" type="text/css">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css">
<title>Bing Maps example</title>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="./">OpenLayers 3 Examples</a>
<ul class="nav pull-right">
<li><iframe class="github-watch-button" src="http://ghbtns.com/github-btn.html?user=openlayers&repo=ol3&type=watch&count=true"
allowtransparency="true" frameborder="0" scrolling="0" height="20" width="90"></iframe></li>
<li><a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-hashtags="openlayers">&nbsp;</a></li>
<li><div class="g-plusone-wrapper"><div class="g-plusone" data-size="medium" data-annotation="none"></div></div></li>
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
<select id="layer-select">
<option value="Aerial">Aerial</option>
<option value="AerialWithLabels" selected>Aerial with labels</option>
<option value="Road">Road</option>
</select>
</div>
</div>
<div class="row-fluid">
<div class="span4">
<h4 id="title">Bing Maps example</h4>
<p id="shortdesc">Example of a Bing Maps layer.</p>
<div id="docs">
<p>See the <a href="bing-maps.js" target="_blank">bing-maps.js source</a> to see how this is done.</p>
</div>
<div id="tags">bing, bing-maps</div>
</div>
</div>
</div>
<script src="jquery.min.js" type="text/javascript"></script>
<script src="loader.js?id=bing-maps" type="text/javascript"></script>
<script src="../resources/social-links.js" type="text/javascript"></script>
</body>
</html>

37
examples/bing-maps.js Normal file
View File

@@ -0,0 +1,37 @@
goog.require('ol.Map');
goog.require('ol.RendererHints');
goog.require('ol.View2D');
goog.require('ol.layer.TileLayer');
goog.require('ol.projection');
goog.require('ol.source.BingMaps');
var styles = ['Road', 'Aerial', 'AerialWithLabels'];
var layers = [];
for (var i = 0; i < styles.length; ++i) {
layers.push(new ol.layer.TileLayer({
visible: false,
preload: Infinity,
source: new ol.source.BingMaps({
key: 'AlQLZ0-5yk301_ESrmNLma3LYxEKNSg7w-e_knuRfyYFtld-UFvXVs38NOulku3Q',
style: styles[i]
})
}));
}
var map = new ol.Map({
layers: layers,
renderers: ol.RendererHints.createFromQueryData(),
target: 'map',
view: new ol.View2D({
center: ol.projection.transform([-123.1, 49.25], 'EPSG:4326', 'EPSG:3857'),
zoom: 8
})
});
$('#layer-select').change(function() {
var style = $(this).find(':selected').val();
for (var i = 0; i < layers.length; ++i) {
layers[i].setVisible(styles[i] == style);
}
});
$('#layer-select').trigger('change');

View File

@@ -1,49 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 512px;
height: 512px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
box_extents = [
[-10, 50, 5, 60],
[-75, 41, -71, 44],
[-122.6, 37.6, -122.3, 37.9],
[10, 10, 20, 20]
];
function init(){
var map = new OpenLayers.Map('map');
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} );
var boxes = new OpenLayers.Layer.Boxes( "Boxes" );
for (var i = 0; i < box_extents.length; i++) {
ext = box_extents[i];
bounds = new OpenLayers.Bounds(ext[0], ext[1], ext[2], ext[3]);
box = new OpenLayers.Marker.Box(bounds);
box.events.register("click", box, function (e) {
this.setBorder("yellow");
});
boxes.addMarker(box);
}
map.addLayers([ol_wms, boxes]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.zoomToMaxExtent();
}
// -->
</script>
</head>
<body onload="init()">
<h1>OpenLayers Example</h1>
<div id="map"></div>
</body>
</html>

View File

@@ -0,0 +1,65 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../resources/layout.css" type="text/css">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css">
<title>Brightness/contrast example</title>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="./">OpenLayers 3 Examples</a>
<ul class="nav pull-right">
<li><iframe class="github-watch-button" src="http://ghbtns.com/github-btn.html?user=openlayers&repo=ol3&type=watch&count=true"
allowtransparency="true" frameborder="0" scrolling="0" height="20" width="90"></iframe></li>
<li><a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-hashtags="openlayers">&nbsp;</a></li>
<li><div class="g-plusone-wrapper"><div class="g-plusone" data-size="medium" data-annotation="none"></div></div></li>
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
<div class="btn-group">
<button id="increase-brightness"><i class="icon-plus"></i></button>
<button id="reset-brightness">Brightness</button>
<button id="decrease-brightness"><i class="icon-minus"></i></button>
</div>
<div class="btn-group">
<button id="increase-contrast"><i class="icon-plus"></i></button>
<button id="reset-contrast">Contrast</button>
<button id="decrease-contrast"><i class="icon-minus"></i></button>
</div>
</div>
</div>
<div class="row-fluid">
<div class="span4">
<h4 id="title">Brightness/contrast example</h4>
<p id="shortdesc">Example of brightness/contrast control on the client (WebGL only).</p>
<div id="docs">
<p>See the <a href="brightness-contrast.js" target="_blank">brightness-contrast.js source</a> to see how this is done.</p>
</div>
<div id="tags">brightness, contrast, webgl</div>
</div>
</div>
</div>
<script src="loader.js?id=brightness-contrast" type="text/javascript"></script>
<script src="../resources/social-links.js" type="text/javascript"></script>
</body>
</html>

View File

@@ -0,0 +1,46 @@
goog.require('ol.Map');
goog.require('ol.RendererHint');
goog.require('ol.View2D');
goog.require('ol.layer.TileLayer');
goog.require('ol.source.MapQuestOpenAerial');
var layer = new ol.layer.TileLayer({
source: new ol.source.MapQuestOpenAerial()
});
var map = new ol.Map({
layers: [layer],
renderer: ol.RendererHint.WEBGL,
target: 'map',
view: new ol.View2D({
center: [0, 0],
zoom: 2
})
});
var increaseBrightness = document.getElementById('increase-brightness');
increaseBrightness.addEventListener('click', function() {
layer.setBrightness(layer.getBrightness() + 0.125);
}, false);
var resetBrightness = document.getElementById('reset-brightness');
resetBrightness.addEventListener('click', function() {
layer.setBrightness(0);
}, false);
var decreaseBrightness = document.getElementById('decrease-brightness');
decreaseBrightness.addEventListener('click', function() {
layer.setBrightness(layer.getBrightness() - 0.125);
}, false);
var increaseContrast = document.getElementById('increase-contrast');
increaseContrast.addEventListener('click', function() {
layer.setContrast(layer.getContrast() + 0.125);
}, false);
var resetContrast = document.getElementById('reset-contrast');
resetContrast.addEventListener('click', function() {
layer.setContrast(1);
}, false);
var decreaseContrast = document.getElementById('decrease-contrast');
decreaseContrast.addEventListener('click', function() {
layer.setContrast(layer.getContrast() - 0.125);
}, false);

View File

@@ -0,0 +1,55 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../resources/layout.css" type="text/css">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css">
<title>Canvas tiles example</title>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="./">OpenLayers 3 Examples</a>
<ul class="nav pull-right">
<li><iframe class="github-watch-button" src="http://ghbtns.com/github-btn.html?user=openlayers&repo=ol3&type=watch&count=true"
allowtransparency="true" frameborder="0" scrolling="0" height="20" width="90"></iframe></li>
<li><a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-hashtags="openlayers">&nbsp;</a></li>
<li><div class="g-plusone-wrapper"><div class="g-plusone" data-size="medium" data-annotation="none"></div></div></li>
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
</div>
</div>
<div class="row-fluid">
<div class="span4">
<h4 id="title">Canvas tiles example</h4>
<p id="shortdesc">The black grid tiles are generated on the client with an HTML5 canvas. Note that the tile coordinates are ol3 normalized tile coordinates (origin bottom left), not OSM tile coordinates (origin top left).</p>
<div id="docs">
<p>See the <a href="canvas-tiles.js" target="_blank">canvas-tiles.js source</a> to see how this is done.</p>
</div>
<div id="tags">layers, openstreetmap, canvas</div>
</div>
</div>
</div>
<script src="loader.js?id=canvas-tiles" type="text/javascript"></script>
<script src="../resources/social-links.js" type="text/javascript"></script>
</body>
</html>

32
examples/canvas-tiles.js Normal file
View File

@@ -0,0 +1,32 @@
goog.require('ol.Map');
goog.require('ol.RendererHints');
goog.require('ol.View2D');
goog.require('ol.layer.TileLayer');
goog.require('ol.projection');
goog.require('ol.source.DebugTileSource');
goog.require('ol.source.OSM');
goog.require('ol.tilegrid.XYZ');
var map = new ol.Map({
layers: [
new ol.layer.TileLayer({
source: new ol.source.OSM()
}),
new ol.layer.TileLayer({
source: new ol.source.DebugTileSource({
projection: 'EPSG:3857',
tileGrid: new ol.tilegrid.XYZ({
maxZoom: 22
})
})
})
],
renderers: ol.RendererHints.createFromQueryData(),
target: 'map',
view: new ol.View2D({
center: ol.projection.transform(
[-0.1275, 51.507222], 'EPSG:4326', 'EPSG:3857'),
zoom: 10
})
});

View File

@@ -1,613 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 512px;
height: 512px;
border: 1px solid black;
}
</style>
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA9XNhd8q0UdwNC7YSO4YZghSPUCi5aRYVveCcVYxzezM4iaj_gxQ9t-UajFL70jfcpquH5l1IJ-Zyyw'></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
var map, canvas;
var click;
function init(){
map = new OpenLayers.Map('map');
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'});
var g = new OpenLayers.Layer.Google("Google");
canvas = new OpenLayers.Layer.Canvas("Canvas Layer");
map.addLayers([ol_wms, g,canvas]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
// map.setCenter(new OpenLayers.LonLat(0, 0), 0);
map.zoomToMaxExtent();
canvas.drawLine(new OpenLayers.LonLat(-71,42), new OpenLayers.LonLat(0,0));
canvas.setStrokeColor("red");
canvas.setStrokeWidth(5);
canvas.setAlpha(.5);
map.events.register("click", map, function(e) {
if (click) {
canvas.drawLine(click, this.getLonLatFromPixel(e.xy));
click = null;
OpenLayers.Util.getElement('status').innerHTML = "";
}
else {
click = this.getLonLatFromPixel(e.xy);
OpenLayers.Util.getElement('status').innerHTML = "Point 1 stored: "+click+". <a href='#' onclick='click=null;return false'>Reset</a>";
}
});
}
function drawIt() {
canvas.drawLine(
new OpenLayers.LonLat(parseFloat(OpenLayers.Util.getElement('lon1').value), parseFloat(OpenLayers.Util.getElement('lat1').value)),
new OpenLayers.LonLat(parseFloat(OpenLayers.Util.getElement('lon2').value), parseFloat(OpenLayers.Util.getElement('lat2').value))
);
}
// -->
</script>
</head>
<body onload="init()">
<h1>OpenLayers Example</h1>
<div style="float:right">
<br />
Start Lon: <input type="text" id="lon1" />
Start Lat: <input type="text" id="lat1" /><br />
End Lon: <input type="text" id="lon2" />
End Lat: <input type="text" id="lat2" /><br />
<input type="submit" value="Add line" onclick="drawIt()" />
<div id="status"></div>
<center>
<table border="1" cellpadding="0" cellspacing="1">
<tbody>
<tr>
<td bgcolor="#000000">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#000000');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#000033">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#000033');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#000066">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#000066');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#000099">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#000099');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#0000cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#0000CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#0000ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#0000FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#330000">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#330000');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#330033">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#330033');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#330066">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#330066');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#330099">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#330099');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#3300cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#3300CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#3300ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#3300FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#660000">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#660000');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#660033">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#660033');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#660066">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#660066');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#660099">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#660099');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#6600cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#6600CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#6600ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#6600FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
</tr>
<tr>
<td bgcolor="#990000">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#990000');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#990033">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#990033');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#990066">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#990066');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#990099">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#990099');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#9900cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#9900CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#9900ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#9900FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc0000">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC0000');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc0033">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC0033');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc0066">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC0066');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc0099">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC0099');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc00cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC00CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc00ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC00FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff0000">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF0000');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff0033">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF0033');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff0066">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF0066');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff0099">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF0099');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff00cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF00CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff00ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF00FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
</tr>
<tr>
<td bgcolor="#003300">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#003300');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#003333">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#003333');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#003366">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#003366');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#003399">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#003399');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#0033cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#0033CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#0033ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#0033FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#333300">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#333300');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#333333">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#333333');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#333366">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#333366');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#333399">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#333399');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#3333cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#3333CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#3333ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#3333FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#663300">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#663300');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#663333">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#663333');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#663366">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#663366');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#663399">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#663399');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#6633cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#6633CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#6633ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#6633FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
</tr>
<tr>
<td bgcolor="#993300">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#993300');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#993333">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#993333');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#993366">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#993366');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#993399">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#993399');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#9933cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#9933CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#9933ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#9933FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc3300">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC3300');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc3333">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC3333');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc33cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC33CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc33ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC33FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff3300">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF3300');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff3333">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF3333');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff3366">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF3366');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff3399">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF3399');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff33cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF33CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff33ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF33FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
</tr>
<tr>
<td bgcolor="#006600">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#006600');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#006633">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#006633');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#006666">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#006666');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#006699">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#006699');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#0066cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#0066CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#336699">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#336699');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#3366cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#3366CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#3366ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#3366FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#666600">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#666600');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#666633">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#666633');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#666666">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#666666');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#666699">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#666699');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#6666cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#6666CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#6666ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#6666FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
</tr>
<tr>
<td bgcolor="#996600">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#996600');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#996633">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#996633');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#9966ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#9966FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc6600">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC6600');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc6633">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC6633');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc6666">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC6666');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc6699">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC6699');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc66cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC66CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#cc66ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#CC66FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff6600">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF6600');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#ff6633">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#FF6633');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
</tr>
<tr>
<td bgcolor="#009900">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#009900');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#009933">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#009933');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#009966">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#009966');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#009999">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#009999');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#0099cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#0099CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#0099ff">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#0099FF');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#339900">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#339900');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#339933">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#339933');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#339966">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#339966');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#339999">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#339999');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
<td bgcolor="#3399cc">
<font size="-3">
<a href="#" onclick="canvas.setStrokeColor('#3399CC');return false">&nbsp;&nbsp;&nbsp;</a>
</font>
</td>
</tr>
</table>
</div>
<div id="map"></div>
</body>
</html>

View File

@@ -1,40 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 512px;
height: 512px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
function init(){
var map = new OpenLayers.Map('map');
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} );
var jpl_wms = new OpenLayers.Layer.WMS( "Population Density 2000",
"http://beta.sedac.ciesin.columbia.edu/mapserver/wms/gpw2000",
{layers: "gpw"});
var cie_wms = new OpenLayers.Layer.WMS( "Human Footprint",
"http://beta.sedac.ciesin.columbia.edu/mapserver/wms/hfoot",
{layers: "hfoot"});
jpl_wms.setVisibility(false);
map.addLayers([ol_wms, jpl_wms, cie_wms]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
// map.setCenter(new OpenLayers.LonLat(0, 0), 0);
map.zoomToMaxExtent();
}
// -->
</script>
</head>
<body onload="init()">
<h1>OpenLayers Example</h1>
<div id="map"></div>
</body>
</html>

View File

@@ -1,42 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 512px;
height: 512px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
function init(){
var map = new OpenLayers.Map('map');
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} );
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://wms.jpl.nasa.gov/wms.cgi",
{layers: "modis,global_mosaic"});
jpl_wms.setVisibility(false);
map.addLayers([ol_wms, jpl_wms]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
// map.setCenter(new OpenLayers.LonLat(0, 0), 0);
map.zoomToMaxExtent();
map.events.register("click", map, function(e) {
var lonlat = map.getLonLatFromViewPortPx(e.xy);
alert("You clicked near " + lonlat.lat + " N, " +
+ lonlat.lon + " E");
});
}
// -->
</script>
</head>
<body onload="init()">
<h1>OpenLayers Example</h1>
<div id="map"></div>
</body>
</html>

View File

@@ -1,53 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 512px;
height: 512px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
function init(){
var map = new OpenLayers.Map('map', { controls: [] });
map.addControl(new OpenLayers.Control.PanZoomBar());
map.addControl(new OpenLayers.Control.MouseToolbar());
map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false}));
map.addControl(new OpenLayers.Control.Permalink());
map.addControl(new OpenLayers.Control.Permalink('permalink'));
map.addControl(new OpenLayers.Control.MousePosition());
map.addControl(new OpenLayers.Control.OverviewMap());
map.addControl(new OpenLayers.Control.KeyboardDefaults());
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'} );
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://wms.jpl.nasa.gov/wms.cgi",
{layers: "modis,global_mosaic"});
var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
{layers: "bathymetry,land_fn,park,drain_fn,drainage," +
"prov_bound,fedlimit,rail,road,popplace",
transparent: "true", format: "image/png" });
jpl_wms.setVisibility(false);
dm_wms.setVisibility(false);
map.addLayers([ol_wms, jpl_wms, dm_wms]);
if (!map.getCenter()) map.zoomToMaxExtent();
}
// -->
</script>
</head>
<body onload="init()">
<h1>OpenLayers Example</h1>
<a style="float:right" href="" id="permalink">Permalink</a>
<div id="map"></div>
</body>
</html>

View File

@@ -1,49 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
var lon = 5;
var lat = 40;
var zoom = 5;
var map, layer;
function init(){
map = new OpenLayers.Map( $('map') );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
var control = new OpenLayers.Control();
OpenLayers.Util.extend(control, {
draw: function () {
// this Handler.Box will intercept the shift-mousedown
// before Control.MouseDefault gets to see it
this.box = new OpenLayers.Handler.Box( control,
{"done": this.notice},
{keyMask: OpenLayers.Handler.MOD_SHIFT});
this.box.activate();
},
notice: function (bounds) {
alert(bounds);
}
});
map.addLayer(layer);
map.addControl(control);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}
// -->
</script>
</head>
<body onload="init()">
<div id="map"></div>
</body>
</html>

View File

@@ -1,53 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<style type="text/css">
#map {
width: 500px;
height: 350px;
border: 1px solid gray;
}
p {
width: 500px;
}
div.olControlMousePosition {
font-family: Verdana;
font-size: 0.5em;
color: red;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
var lon = 5;
var lat = 40;
var zoom = 5;
var map, layer;
function init(){
var options = {theme: null};
map = new OpenLayers.Map('map', options);
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
map.addControl(new OpenLayers.Control.MousePosition());
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}
// -->
</script>
</head>
<body onload="init()">
<div id="map"></div>
<p>If you care to modify the style of any OpenLayers element, include
the default stylesheet as a link and declare any style modifications
below that link. These style declarations can be in other linked
stylesheets or in style tags. In addition, construct your map with
options that include {theme: null}. This will disable the default
method of loading the stylesheet and allow you to declare style rules
in your own linked stylesheets or style tags.</p>
<p>This example shows how to declare the font family, size, and color
for the mouse position. Note that only the style keys that you want to
modify (change from the default) need to be specified.</p>
</body>
</html>

View File

@@ -0,0 +1,508 @@
<?xml version="1.0" encoding="UTF-8"?>
<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" version="1.0.0">
<ows:ServiceIdentification>
<ows:Title>Web Map Tile Service</ows:Title>
<ows:ServiceType>OGC WMTS</ows:ServiceType>
<ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
<ows:Fees>none</ows:Fees>
<ows:AccessConstraints>http://data.wien.gv.at/nutzungsbedingungen</ows:AccessConstraints>
</ows:ServiceIdentification>
<ows:ServiceProvider>
<ows:ProviderName>Magistrat Wien</ows:ProviderName>
<ows:ProviderSite xlink:href="http://www.wien.gv.at"/>
<ows:ServiceContact>
<ows:IndividualName>Gerhard Sommer</ows:IndividualName>
</ows:ServiceContact>
</ows:ServiceProvider>
<ows:OperationsMetadata>
<ows:Operation name="GetCapabilities">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="http://maps.wien.gv.at/wmts">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
<ows:Get xlink:href="http://maps1.wien.gv.at/wmts">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
<ows:Get xlink:href="http://maps2.wien.gv.at/wmts">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
<ows:Get xlink:href="http://maps3.wien.gv.at/wmts">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
<ows:Get xlink:href="http://maps4.wien.gv.at/wmts">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
<ows:Operation name="GetTile">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="http://maps.wien.gv.at/wmts">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
<ows:Get xlink:href="http://maps1.wien.gv.at/wmts">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
<ows:Get xlink:href="http://maps2.wien.gv.at/wmts">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
<ows:Get xlink:href="http://maps3.wien.gv.at/wmts">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
<ows:Get xlink:href="http://maps4.wien.gv.at/wmts">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
</ows:OperationsMetadata>
<Contents>
<Layer>
<ows:Title>Luftbild</ows:Title>
<ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
<ows:LowerCorner>16.17 48.10</ows:LowerCorner>
<ows:UpperCorner>16.58 48.33</ows:UpperCorner>
</ows:WGS84BoundingBox>
<ows:Identifier>lb</ows:Identifier>
<Style isDefault="true">
<ows:Identifier>farbe</ows:Identifier>
</Style>
<Format>image/jpeg</Format>
<TileMatrixSetLink>
<TileMatrixSet>google3857</TileMatrixSet>
</TileMatrixSetLink>
<ResourceURL format="image/jpeg" template="http://maps1.wien.gv.at/wmts/lb/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
<ResourceURL format="image/jpeg" template="http://maps2.wien.gv.at/wmts/lb/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
<ResourceURL format="image/jpeg" template="http://maps3.wien.gv.at/wmts/lb/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
<ResourceURL format="image/jpeg" template="http://maps4.wien.gv.at/wmts/lb/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
<ResourceURL format="image/jpeg" template="http://maps.wien.gv.at/wmts/lb/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
</Layer>
<Layer>
<ows:Title>MZK Flächen</ows:Title>
<ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
<ows:LowerCorner>16.17 48.10</ows:LowerCorner>
<ows:UpperCorner>16.58 48.33</ows:UpperCorner>
</ows:WGS84BoundingBox>
<ows:Identifier>fmzk</ows:Identifier>
<Style isDefault="true">
<ows:Identifier>pastell</ows:Identifier>
</Style>
<Format>image/jpeg</Format>
<TileMatrixSetLink>
<TileMatrixSet>google3857</TileMatrixSet>
</TileMatrixSetLink>
<ResourceURL format="image/jpeg" template="http://maps1.wien.gv.at/wmts/fmzk/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
<ResourceURL format="image/jpeg" template="http://maps2.wien.gv.at/wmts/fmzk/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
<ResourceURL format="image/jpeg" template="http://maps3.wien.gv.at/wmts/fmzk/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
<ResourceURL format="image/jpeg" template="http://maps4.wien.gv.at/wmts/fmzk/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
<ResourceURL format="image/jpeg" template="http://maps.wien.gv.at/wmts/fmzk/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
</Layer>
<Layer>
<ows:Title>Flächenwidmungs- und Bebauungsplan</ows:Title>
<ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
<ows:LowerCorner>16.17 48.10</ows:LowerCorner>
<ows:UpperCorner>16.58 48.33</ows:UpperCorner>
</ows:WGS84BoundingBox>
<ows:Identifier>flwbplmzk</ows:Identifier>
<Style isDefault="true">
<ows:Identifier>rot</ows:Identifier>
</Style>
<Format>image/jpeg</Format>
<TileMatrixSetLink>
<TileMatrixSet>google3857</TileMatrixSet>
</TileMatrixSetLink>
<ResourceURL format="image/jpeg" template="http://maps1.wien.gv.at/wmts/flwbplmzk/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
<ResourceURL format="image/jpeg" template="http://maps2.wien.gv.at/wmts/flwbplmzk/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
<ResourceURL format="image/jpeg" template="http://maps3.wien.gv.at/wmts/flwbplmzk/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
<ResourceURL format="image/jpeg" template="http://maps4.wien.gv.at/wmts/flwbplmzk/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
<ResourceURL format="image/jpeg" template="http://maps.wien.gv.at/wmts/flwbplmzk/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg" resourceType="tile"/>
</Layer>
<Layer>
<ows:Title>Beschriftung</ows:Title>
<ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
<ows:LowerCorner>16.17 48.10</ows:LowerCorner>
<ows:UpperCorner>16.58 48.33</ows:UpperCorner>
</ows:WGS84BoundingBox>
<ows:Identifier>beschriftung</ows:Identifier>
<Style isDefault="true">
<ows:Identifier>normal</ows:Identifier>
</Style>
<Format>image/png</Format>
<TileMatrixSetLink>
<TileMatrixSet>google3857</TileMatrixSet>
</TileMatrixSetLink>
<ResourceURL format="image/png" template="http://maps1.wien.gv.at/wmts/beschriftung/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png" resourceType="tile"/>
<ResourceURL format="image/png" template="http://maps2.wien.gv.at/wmts/beschriftung/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png" resourceType="tile"/>
<ResourceURL format="image/png" template="http://maps3.wien.gv.at/wmts/beschriftung/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png" resourceType="tile"/>
<ResourceURL format="image/png" template="http://maps4.wien.gv.at/wmts/beschriftung/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png" resourceType="tile"/>
<ResourceURL format="image/png" template="http://maps.wien.gv.at/wmts/beschriftung/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png" resourceType="tile"/>
</Layer>
<TileMatrixSet>
<ows:Identifier>viennagis31256</ows:Identifier>
<ows:BoundingBox crs="urn:ogc:def:crs:EPSG::31256">
<ows:LowerCorner>-11500 330500</ows:LowerCorner>
<ows:UpperCorner>18500 354000</ows:UpperCorner>
</ows:BoundingBox>
<ows:SupportedCRS>urn:ogc:def:crs:EPSG::31256</ows:SupportedCRS>
<TileMatrix>
<ows:Identifier>0</ows:Identifier>
<ScaleDenominator>500000.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>2</MatrixWidth>
<MatrixHeight>1</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>1</ows:Identifier>
<ScaleDenominator>250000.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>3</MatrixWidth>
<MatrixHeight>2</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>2</ows:Identifier>
<ScaleDenominator>125000.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>5</MatrixWidth>
<MatrixHeight>3</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>3</ows:Identifier>
<ScaleDenominator>64000.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>9</MatrixWidth>
<MatrixHeight>6</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>4</ows:Identifier>
<ScaleDenominator>32000.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>17</MatrixWidth>
<MatrixHeight>12</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>5</ows:Identifier>
<ScaleDenominator>16000.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>33</MatrixWidth>
<MatrixHeight>24</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>6</ows:Identifier>
<ScaleDenominator>8000.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>66</MatrixWidth>
<MatrixHeight>47</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>7</ows:Identifier>
<ScaleDenominator>5000.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>105</MatrixWidth>
<MatrixHeight>74</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>8</ows:Identifier>
<ScaleDenominator>4000.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>132</MatrixWidth>
<MatrixHeight>93</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>9</ows:Identifier>
<ScaleDenominator>3000.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>175</MatrixWidth>
<MatrixHeight>124</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>10</ows:Identifier>
<ScaleDenominator>2000.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>263</MatrixWidth>
<MatrixHeight>185</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>11</ows:Identifier>
<ScaleDenominator>1500.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>350</MatrixWidth>
<MatrixHeight>247</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>12</ows:Identifier>
<ScaleDenominator>1000.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>525</MatrixWidth>
<MatrixHeight>370</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>13</ows:Identifier>
<ScaleDenominator>500.0</ScaleDenominator>
<TopLeftCorner>355000.0 -13500.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>1049</MatrixWidth>
<MatrixHeight>739</MatrixHeight>
</TileMatrix>
</TileMatrixSet>
<TileMatrixSet>
<!-- -180 85.05112878 -->
<ows:Identifier>google3857</ows:Identifier>
<ows:BoundingBox crs="urn:ogc:def:crs:EPSG:6.18:3:3857">
<ows:LowerCorner>1799448.394855 6124949.747770</ows:LowerCorner>
<ows:UpperCorner>1848250.442089 6162571.828177</ows:UpperCorner>
</ows:BoundingBox>
<ows:SupportedCRS>urn:ogc:def:crs:EPSG:6.18:3:3857</ows:SupportedCRS>
<WellKnownScaleSet>urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible</WellKnownScaleSet>
<TileMatrix>
<ows:Identifier>0</ows:Identifier>
<ScaleDenominator>559082264.029</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>1</MatrixWidth>
<MatrixHeight>1</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>1</ows:Identifier>
<ScaleDenominator>279541132.015</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>2</MatrixWidth>
<MatrixHeight>2</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>2</ows:Identifier>
<ScaleDenominator>139770566.007</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>4</MatrixWidth>
<MatrixHeight>4</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>3</ows:Identifier>
<ScaleDenominator>69885283.0036</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>8</MatrixWidth>
<MatrixHeight>8</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>4</ows:Identifier>
<ScaleDenominator>34942641.5018</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>16</MatrixWidth>
<MatrixHeight>16</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>5</ows:Identifier>
<ScaleDenominator>17471320.7509</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>32</MatrixWidth>
<MatrixHeight>32</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>6</ows:Identifier>
<ScaleDenominator>8735660.37545</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>64</MatrixWidth>
<MatrixHeight>64</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>7</ows:Identifier>
<ScaleDenominator>4367830.18773</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>128</MatrixWidth>
<MatrixHeight>128</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>8</ows:Identifier>
<ScaleDenominator>2183915.09386</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>256</MatrixWidth>
<MatrixHeight>256</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>9</ows:Identifier>
<ScaleDenominator>1091957.54693</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>512</MatrixWidth>
<MatrixHeight>512</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>10</ows:Identifier>
<ScaleDenominator>545978.773466</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>1024</MatrixWidth>
<MatrixHeight>1024</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>11</ows:Identifier>
<ScaleDenominator>272989.386733</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>2048</MatrixWidth>
<MatrixHeight>2048</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>12</ows:Identifier>
<ScaleDenominator>136494.693366</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>4096</MatrixWidth>
<MatrixHeight>4096</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>13</ows:Identifier>
<ScaleDenominator>68247.3466832</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>8192</MatrixWidth>
<MatrixHeight>8192</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>14</ows:Identifier>
<ScaleDenominator>34123.6733416</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>16384</MatrixWidth>
<MatrixHeight>16384</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>15</ows:Identifier>
<ScaleDenominator>17061.8366708</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>32768</MatrixWidth>
<MatrixHeight>32768</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>16</ows:Identifier>
<ScaleDenominator>8530.91833540</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>65536</MatrixWidth>
<MatrixHeight>65536</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>17</ows:Identifier>
<ScaleDenominator>4265.45916770</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>131072</MatrixWidth>
<MatrixHeight>131072</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>18</ows:Identifier>
<ScaleDenominator>2132.72958385</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>262144</MatrixWidth>
<MatrixHeight>262144</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>19</ows:Identifier>
<ScaleDenominator>1066.36479193</ScaleDenominator>
<TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>524288</MatrixWidth>
<MatrixHeight>524288</MatrixHeight>
</TileMatrix>
</TileMatrixSet>
</Contents>
<ServiceMetadataURL xlink:href="http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml"/>
</Capabilities>

File diff suppressed because one or more lines are too long

View File

@@ -262,6 +262,14 @@
-112.2626894973474,36.10149062823369,630 </coordinates>
</LineString>
</Placemark>
<Placemark>
<name>Blue Icon</name>
<description>Just another blue icon.</description>
<styleUrl>data/kml/styles.kml#blueIcons</styleUrl>
<Point>
<coordinates>-112.292238941097,36.09520916122063,630</coordinates>
</Point>
</Placemark>
</Folder>
</Document>
</kml>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file contains styles referenced by other KML files in this project.
http://kml-samples.googlecode.com/svn/trunk/kml/Style/styles.kml
-->
<kml xmlns="http://earth.google.com/kml/2.1">
<Document id="globalStyles">
<Style id="blueIcons">
<IconStyle>
<color>ffff0000</color>
<Icon>
<href>http://maps.google.com/mapfiles/kml/shapes/sunny.png</href>
</Icon>
</IconStyle>
</Style>
</Document>
</kml>

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