Andreas Hocevar
ebc28aefd4
Add and fix vectortile tests
2016-04-28 12:57:27 +02:00
Andreas Hocevar
c17e23f2ae
Skip unnecessary render functions
2016-04-28 10:22:20 +02:00
Andreas Hocevar
f7147960a9
Add render options for vector tile layers
2016-04-19 13:04:38 +02:00
Andreas Hocevar
6c7d6817bd
Merge pull request #4854 from ahocevar/fix-select-and-everything-that-relies-on-unmanaged-layers-and-skipped-features-this-time-for-real---hopefully
...
Always report skipped feature hits for the original layer
2016-02-22 09:23:28 +01:00
Andreas Hocevar
5bc00d8535
Continue passing null instead of unmanaged layer to forEachFeatureAtCoordinate
2016-02-17 08:59:45 +01:00
Andreas Hocevar
9f0fefd42d
Hit-detect skipped features, but not on unmanaged layer
2016-02-17 00:54:31 +01:00
Andreas Hocevar
952b99742e
Add tests, remove unused code, encapsulate repeated code in functions
2016-02-15 17:00:06 +01:00
Andreas Hocevar
483376deb2
Untangle vector tile feature reprojection
2016-01-27 00:42:51 +01:00
Tim Schaub
9ae748408a
Statement inside curly braces on its own line
2016-01-11 18:56:06 -08:00
Andreas Hocevar
3413f6d138
Merge pull request #4518 from ahocevar/osm-vector-tiles
...
Add support for OSM vector tiles
2015-12-08 11:01:49 +01:00
Andreas Hocevar
a940cdd6a7
Add support for OSM vector tiles
2015-12-07 11:15:25 +01:00
Éric Lemoine
279eae1dba
Do not ignore layer filter for unmanaged layers
...
PR #3883 made `forEachFeatureAtPixel` ignore unmanaged layers. This commit reverts that change.
2015-11-30 17:53:19 +01:00
Andreas Hocevar
1aea2c2b0c
Pass null as forEachFeatureAtPixel layer arg for unmanaged layers
2015-11-09 09:45:21 +01:00
Andreas Hocevar
8e9b20db51
Additional tests, documentation and example
2015-10-28 10:29:02 +01:00
Pierre GIRAUD
badf14e0f1
forEachFeatureAtPixel shouldn't fail if layer has no source
2015-09-16 13:27:01 +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
Andreas Hocevar
26e146b1d8
Ignore layer filter for unmanaged layers
...
To make unmanaged vector layers work like the removed ol.FeatureOverlay,
the layer filter for ol.Map#forEachFeatureAtPixel needs to ignore unmanaged
layers.
2015-07-07 22:24:57 +02:00
Andreas Hocevar
86d9d691e4
Merge pull request #3806 from ahocevar/clip-wrapx
...
Do not clip canvas for vector layers when wrapping the world
2015-07-03 10:47:45 +02:00
Andreas Hocevar
7463a58066
Do not clip canvas for vector layers when wrapping the world
2015-06-19 14:55:20 +02:00
Andreas Hocevar
f645a9e1e4
Make unmanaged vector layers behave more like ol.FeatureOverlay
...
* Skipped features need to be hit-detected on unmanaged layers.
* updateWhileAnimating and updateWhileInteracting are recommended to
achieve the same instant visual feedback that ol.FeatureOverlay had.
2015-06-19 13:06:29 +02:00
Andreas Hocevar
53d5d8c1d9
Get rid of ol.FeatureOverlay
...
This also introduces a wrapX option to the Draw, Modify and Select
interaction.
2015-06-09 15:44:31 +02:00
Andreas Hocevar
513677fecd
Render map replay group on the correct world instead of wrapping it
...
By using the frameState's focus, we can adjust extent and transform and
render it for the world of interest instead of wrapping it and rendering
for every visible world.
2015-04-22 09:11:19 +02:00
Andreas Hocevar
4f8dca92ba
Ensure functions are always called with the same number of args
2015-04-21 08:21:31 +02:00
Andreas Hocevar
6a2aa833b4
Improve tests for ol.renderer.canvas.VectorLayer
2015-04-19 08:52:26 +02:00
Andreas Hocevar
d5e5628fe1
Add some tests
2015-04-18 19:10:54 +02:00
Stefan Weil
e812f2435e
Fix typos found by codespell
...
Most of them are in comments, some in strings.
Signed-off-by: Stefan Weil <sw@weilnetz.de >
2015-02-12 16:39:55 +01:00
tsauerwein
f4500c8f89
Rename *AtPixel to *AtCoordinate if coordinate
2015-01-30 10:00:37 +01:00
tsauerwein
7feb8b22f6
Rename forEachGeometryAtPixel
2015-01-30 10:00:36 +01:00
Éric Lemoine
ddc51ee267
Unconditionally draw Replay's
2014-12-18 13:04:29 +01:00
Éric Lemoine
c81dfdc69b
Do not hit-detect the same feature multiple times
...
In other words forEachFeatureAtPixel should not call the user-provided callback more than once for a given feature.
2014-08-18 10:24:12 +02:00
Andreas Hocevar
16cdd35f6d
Test to make sure that feature styles take prececence
2014-07-24 14:37:45 +02:00
Tim Schaub
88efda1a1f
Track resolution and buffer max extent to capture strokes
2014-03-13 20:40:18 -04:00
Tim Schaub
8317317127
Always add first segment when appending coordinates
...
When we have only a single point, we want to make sure it gets added (fixes #1821 ).
Because this code doesn't differentiate coordinates that are part of a linestring or linearring from those that are independent points, we always add the first segment (or pair of points). In addition, coordinates for segments are appended whenever they represent a change in relationship with respect to the extent. This keeps the code simpler for handling fills and properly capturing intersection points for linestrings. This could be modified to save a few extra coordinates, but it provides for simpler code at a very minimal cost.
2014-03-07 11:02:25 -07:00