Éric Lemoine
0001e0989b
Merge pull request #3986 from alvinlindstam/feature/url-function
...
Modify 'url' option of ol.source.Vector to accept a function
2015-09-04 14:23:00 +02:00
Éric Lemoine
fd4eff7292
Merge pull request #4069 from gberaudo/layer_zindex
...
Add Z-index to layers
2015-09-03 16:38:50 +02:00
Guillaume Beraudo
43f72031f9
Add Z-index layer ordering tests
2015-09-03 11:31:57 +02:00
Guillaume Beraudo
3811228ac7
Add Z-index to layers
...
This commit allows setting a z-index property on the layers and uses
it in the canvas, WEBGL and DOM map renderers for ordering the layers
before rendering.
Default z-index is 0 for managed layers and 1000 for unmanaged ones.
It allows always on bottom, always on top and more complex layer layouts.
2015-09-03 11:31:57 +02:00
Éric Lemoine
95030cd838
Add ol.interaction.Draw#extend
...
This commit adds an `extend` method to the draw interaction. This method makes it possible to extend (continue drawing) an existing line string feature. It only works on line string features, where this functionality makes the most sense.
Here's an example on how to use `extend`:
```js
var vectorSource = vectorLayer.getSource();
vectroSource.removeFeature(feature);
drawInteraction.extend(feature);
```
2015-09-02 17:21:10 +02:00
Alvin Lindstam
e41ba12445
Modify ol.featureloader (and consequently ol.source.Vector) to accept a function as a url.
2015-08-28 21:57:48 +02:00
Frederic Junod
49b8f90e66
Add missing goog.provide
...
The new version of the closure-compiler (version 20150729) wants that all the classes
tagged with `@constructor` to be provided (with `goog.provide`).
2015-08-25 09:26:10 +02:00
Tim Schaub
13a9d2f6af
Remove unused ellipsoid.vincenty() method
2015-08-23 12:26:43 -06:00
Tim Schaub
d91f5ecc48
Remove unused ellipsoid.vincentyDistance() method
2015-08-23 12:11:46 -06:00
Tim Schaub
b180149100
Remove unused ellipsoid.vincentyFinalBearing() method
2015-08-23 12:08:39 -06:00
Tim Schaub
6bbc411521
Remove unused ellipsoid.vincentyInitialBearing() method
2015-08-23 12:06:31 -06:00
Tim Schaub
90ec289c89
Remove unused sphere.midpoint() method
2015-08-23 11:56:23 -06:00
Tim Schaub
b724ce6c0d
Remove unused sphere.interpolate() method
2015-08-23 11:54:08 -06:00
Tim Schaub
9cccbd0712
Remove unused sphere.maximumLatitude() method
2015-08-23 11:51:00 -06:00
Tim Schaub
3852be0d7e
Remove unused sphere.initialBearing() method
2015-08-23 11:50:00 -06:00
Tim Schaub
daa4781072
Remove unused sphere.equirectangularDistance() method
2015-08-23 11:48:09 -06:00
Tim Schaub
8ec2bcef17
Remove unused sphere.finalBearing() method
2015-08-23 11:46:20 -06:00
Tim Schaub
c74277cae8
Remove unused sphere.cosineDistance() method
2015-08-23 11:43:26 -06:00
Tim Schaub
bc1328528a
Remove unused sphere.crossTrackDistance() method
2015-08-23 11:41:06 -06:00
Éric Lemoine
5865d5bc55
Merge pull request #4023 from elemoine/4003
...
Render map when layer.setMap(map) called
2015-08-20 15:31:07 +02:00
Éric Lemoine
b1973fcdf4
Render map when layer.setMap(map) called
2015-08-20 10:12:51 +02:00
Éric Lemoine
6260c4d744
Merge pull request #4011 from elemoine/update-segment-data
...
Make Modify interaction listen to feature changes
2015-08-20 09:24:00 +02:00
Andreas Hocevar
7505460d65
Merge pull request #4015 from weskamm/xyzgeturls
...
Add a getUrls Method to ol.source.XYZ
2015-08-19 16:22:57 +02:00
Frederic Junod
fdba4fc381
Add a test for ol.Map#getEventPixel
2015-08-19 13:50:14 +02:00
Andreas Hocevar
a8797ae1ff
Do not overwrite projections in the registry
2015-08-19 13:06:23 +02:00
Johannes Weskamm
a6c49dabcf
Add a getUrls Method to ol.source.XYZ
...
Added the getUrls method to get access to the url / urls property.
When using a tileUrlFunction, getUrls should return null.
This should fix issue #3886
2015-08-19 12:43:35 +02:00
Éric Lemoine
5f7e6ac61a
Make Modify interaction listen to feature changes
...
This commit makes the Modify interaction modify its segment data when the candidate features change.
2015-08-18 16:39:49 +02:00
Christopher S. Case
338d0570fd
Add a Translate interaction
...
This allows features to be moved around the map. It works much like the Modify interaction, however it's significantly simpler. It uses the geometry's underlying `translate` function.
2015-08-18 11:17:01 +02:00
Frederic Junod
0578e8f2f6
Handle JSONP errors in ol.source.TileJSON
...
Fixes #3938
2015-08-10 15:28:26 +02:00
Éric Lemoine
1921e009e6
Merge pull request #3900 from Jenselme/kmlformat
...
Do not add Style as a feature property
2015-08-07 13:00:11 +02:00
rattai
e49ce543a4
shorten long line
2015-08-04 20:00:59 -04:00
rattai
b3f14f09c4
Compute new image extent for comparison to existing image extent
2015-08-04 17:25:47 -04:00
Tim Schaub
571f3f30a4
Regression test for shared vertex deletion
2015-08-03 23:07:19 -06:00
Tim Schaub
54d3bbd625
Merge pull request #3214 from tschaub/raster
...
Pixel manipulation with raster sources.
2015-08-03 21:49:19 -06:00
Tim Schaub
405a8db075
Merge pull request #3946 from Turbo87/modify
...
Fix vertex deletion for Modify interaction on mobile devices.
2015-08-03 21:47:41 -06:00
Tim Schaub
860fdabd76
Simplify raster sources by working with a single operation
2015-08-03 20:10:46 -06:00
Frederic Junod
2143eebd30
Fix drawstart and drawend events when drawing a point
...
The previous behavior was to fire a `drawstart` on the first `mousemove`.
2015-08-03 13:40:56 +02:00
Frederic Junod
3364dbb46e
Remove count argument from called function
...
This function takes no arguments, use the `callCount` property instead.
2015-08-03 10:02:21 +02:00
Tobias Bieniek
7a34d22b37
interaction/modify: Add missing goog.require() to test
2015-08-01 22:09:32 +02:00
Tobias Bieniek
968c8aa34e
interaction/modify: Replace lastNewVertexPixel with ignoreNextSingleClick
...
The previous approach did not work on mobile devices where no `pointermove`
event is sent except from dragging.
Logic now is: Upon vertex creation due to `pointerdown` we will ignore
the next `singleclick` event unless there is a `pointerdrag` event, which will
not lead to a `singleclick` event following the vertex creation.
Resolves #3935
2015-08-01 22:00:41 +02:00
Tobias Bieniek
bf9156cbeb
interaction/modify: Adjust simulated events
...
This is exactly matching the event sent by Chrome now
2015-08-01 21:03:18 +02:00
Tobias Bieniek
bafd8548d1
interaction/modify: Add tests for deleteCondition option
2015-08-01 20:52:31 +02:00
Tobias Bieniek
22ca08179d
interaction/modify: Use expect().to.be() assertion
...
... instead of expect(a === b).to.be.ok()
2015-08-01 20:20:06 +02:00
Andreas Hocevar
95e43c852d
Fix WMTS TileMatrixSet lookup by SRS identifier
2015-07-30 19:48:28 +02:00
Frederic Junod
e6a38d8211
Use goog.functions.identity instead of goog.identityFunction
...
goog.identityFunction is deprecated
2015-07-28 09:44:51 +02:00
Tim Schaub
0c486c522a
Allow UI thread to be used
...
Where workers are not available, or if operations are trivial to run, the main UI thread can be used instead. This also adds tests that run in real browsers.
2015-07-21 17:12:08 -06:00
Andreas Hocevar
10b4aa1bab
Merge pull request #3906 from ahocevar/featurescollection-only
...
Clear features properly when there is no spatial index
2015-07-16 08:57:14 +02:00
Andreas Hocevar
8f7cbc5ed6
Clear features properly when there is no spatial index
...
Previously clear() only kept the features collection in sync whern there
was also a features RTree.
2015-07-15 15:15:41 +02:00
Julien Enselme
b66a114873
Add test to check that Style is not added a feature property
2015-07-13 17:05:08 +02:00
Tim Schaub
223d5ab60d
Merge pull request #3895 from planetlabs/greedy-multi-queue
...
Rework the tile queue for multiple queues.
2015-07-10 16:33:49 -06:00