Commit Graph

3492 Commits

Author SHA1 Message Date
Guillaume Beraudo 39fc6d7816 Avoid unnecessary transform in MVT format
When using ol.render.Feature there was a mandatory geometry transform.

With this change it is now easy to read features directly in the native tile projection.
Since there is no needed transform, there is no need either to define an extent and a world extent, for that use-case.
2020-09-10 17:13:30 +02:00
Andreas Hocevar f2b790adf1 Make clockwise check work when coordinates are duplicated 2020-09-04 20:47:15 +02:00
Langbein, Michael 301e083dea Refactor unittest for WebGLPointsLayerRenderer
The test for the prerender and postrender events now uses a WebGLPointsLayer instead of a VectorLayer.
This is less confusing and probably closer to practical usage, too.
2020-08-31 10:29:42 +02:00
Langbein, Michael 7808a8cb9a Implement unit-tests for WebGLLayerRenderer's new preRender and postRender methods.
The test only checks if the event is fired. It does not check for the properties of the RenderEvent object.
2020-08-30 13:20:18 +02:00
Michał Zielański 8e0a61ac5f Adding original properties to cloned geometry 2020-08-26 15:11:11 +02:00
Andreas Hocevar c55a3132a4 Checks before calling handleEvent on interactions 2020-08-18 15:39:53 +02:00
Björn Harrtell 0bbde3d840 Tests for Transaction writes 2020-08-11 16:21:39 +02:00
Björn Harrtell 8cddfa0d22 Refactor tests 2020-08-11 16:14:39 +02:00
Björn Harrtell 1335937ddd Verified fix 2020-08-11 16:09:43 +02:00
Björn Harrtell 0484e45c89 Fix WFS 2.0.0 GetFeature response parsing 2020-08-11 15:46:40 +02:00
Björn Harrtell 01f355c37f Verify GetFeature with more complex filter 2020-08-10 21:30:06 +02:00
Björn Harrtell a58bff0981 Initial GetFeature verification 2020-08-10 03:50:39 +02:00
Björn Harrtell d3041295a1 Initial spike on WFS 2.0 2020-08-09 22:36:41 +02:00
Andreas Hocevar 82328fe2c1 Merge pull request #11401 from mike-000/patch-10
Ensure image extent is valid when scale is negative
2020-08-08 21:15:10 +02:00
mike-000 588e3b91d8 use numbers for expected values 2020-08-08 13:01:04 +01:00
mike-000 857f4e01ac use precise international inchesPerMeter
test scalebar text
2020-08-07 10:49:31 +01:00
mike-000 9468a088c0 ensure extent is valid when scale is negative
test large flipped icon in buffer zone
test hit detection for negative image scale
2020-08-07 10:26:38 +01:00
mike-000 95702648b2 simplify scale calculation
update tests to reflect more accurate calculation
2020-08-03 23:03:56 +01:00
Andreas Hocevar 3744283f02 Only include renderBuffer when decluttering 2020-08-01 10:58:43 +02:00
Andreas Hocevar f9792f69a4 Add more tests 2020-07-30 18:04:44 +02:00
mike-000 e6592c95ea remove whitespace 2020-07-30 14:23:51 +01:00
mike-000 eee7e2523c fix prettier 2020-07-30 14:18:58 +01:00
mike-000 dcdaf6ddc5 add non-global projection wrapX text 2020-07-30 14:15:17 +01:00
Andreas Hocevar 274a8b8fc3 Fix text instruction flat coordinates when stride is not 2 2020-07-29 19:56:37 +02:00
Andreas Hocevar ac5f52a21f Hit detect everything with a pixel ratio of 1 2020-07-27 19:56:35 +02:00
Andreas Hocevar 5b84b2470c Merge pull request #11277 from sbrunner/hires-regularshape-master
Have high resolution regular shape
2020-07-26 12:39:44 +02:00
Olivier Guyot 15553f7aec Merge pull request #11197 from RydingM/master
Added '&&' logical operator to expressions
2020-07-17 14:37:12 +02:00
michael ryding b25d7bc58a Added all and any operator 2020-07-16 09:03:00 +01:00
Stéphane Brunner f2fe6e5957 Have high resolution regular shape 2020-07-15 10:53:20 +02:00
Andreas Hocevar f3a67e8182 Merge pull request #11268 from ahocevar/cache-size
Cache size
2020-07-13 11:57:49 +02:00
Andreas Hocevar 18d96a2205 Auto-grow tile cache from zero 2020-07-11 20:32:54 +02:00
Andreas Hocevar a9b3a5bcc9 Only clamp to source projection extent 2020-07-07 10:12:47 +02:00
Tim Schaub 4727208e6e Merge pull request #11226 from michalzielanski/modify-geometry-collection-bugfix
By modifying the common vertex, not all geometries were changed when …
2020-06-29 08:23:24 -06:00
Michał Zielański 3d9dfe2654 By modifying the common vertex, not all geometries were changed when the geometries were aggregated in the collection 2020-06-29 10:48:17 +02:00
Andreas Hocevar bef4d8a494 Make proj4 transforms behave like built-in transforms 2020-06-26 00:16:52 +02:00
Tim Schaub 09a458bed1 Merge pull request #11217 from tschaub/more-geosjon-tests
Additional test coverage for serializing GeoJSON
2020-06-24 15:20:26 -06:00
Andreas Hocevar e4303c7b26 Merge pull request #11215 from ahocevar/flat-multipolygon
Fix MVT multipolygons with featureClass: Feature
2020-06-24 19:36:38 +02:00
Tim Schaub 45d90cde72 Additional test coverage for serializing GeoJSON 2020-06-24 10:43:15 -06:00
Andreas Hocevar cfe763e469 Merge pull request #11188 from michalzielanski/late-obj-init
Late object initialization
2020-06-24 10:21:43 +02:00
Michał Zielański 235babfd7f Adaptation of previous changes to the change from 61241e7 (null instead of undefined as the initial value) 2020-06-24 09:54:56 +02:00
Andreas Hocevar 79c318d262 Make test polygons squares 2020-06-23 22:01:06 +02:00
songyumeng b606878d57 fixes #8148
judge whether it is multiPolygon or Polygon:https://github.com/mapbox/vector-tile-js/blob/a9a9102/lib/vectortilefeature.js#L195-L223
2020-06-23 20:15:52 +02:00
mike-000 136936979f test getCoordinateAt returns Z and M values 2020-06-17 15:56:36 +01:00
Michał Zielański 517c9e6b52 Late object initialization in Target class 2020-06-15 19:06:36 +02:00
Michał Zielański 0e8f0034ab Creating an object that stores properties only when needed in BaseObject class 2020-06-15 18:26:28 +02:00
Andreas Hocevar 3de2ea0624 More convenience with condition chaining 2020-06-13 08:39:59 +02:00
Andreas Hocevar aa5de5db60 Use drag-pan default condition with onFocusOnly 2020-06-13 08:39:59 +02:00
Andreas Hocevar 852fe2a3fe Allow using un() for events registered with once() 2020-06-11 12:14:32 +02:00
Andreas Hocevar 2cac6c4f39 Re-enable onFocusOnly option for interaction defaults 2020-06-03 13:13:59 +02:00
Andreas Hocevar 49658709c7 Transform without axis order in proj4 2020-05-23 20:59:08 +02:00