Commit Graph

3596 Commits

Author SHA1 Message Date
Thomas Chandelle 33a8466913 Add API method abortDrawing and dispatch a DRAWABORT event 2020-02-13 17:22:39 +01:00
Andreas Hocevar bb68da2a0a Merge pull request #10613 from mike-000/patch-1
Show KML name labels for Points in MultiGeometry
2020-02-11 15:08:51 +01:00
Otto Pellinen 0b3bd0721e Add dedicated tests for appendCoordinates 2020-02-10 16:48:12 +01:00
Andreas Hocevar 35569a8427 Merge pull request #9565 from dbrnz/v6.0.0-beta.7-branch
Make mousewheel zoom behave like trackpad zoom.
2020-02-06 15:54:34 +01:00
mike-000 47a4a63e3e Test name labels for points in MultiGeometry 2020-02-05 23:51:48 +00:00
mike-000 0fb4b62b9b Test name labels for points in MultiGeometry 2020-02-05 23:26:11 +00:00
Andreas Hocevar 29a434314b Merge pull request #10580 from mike-000/patch-7
Fix KML Polystyle outline 0 conflict with Linestyle for linestrings
2020-02-05 23:22:52 +01:00
Andreas Hocevar cc21f92bdb Restore test coverage, fix tests 2020-02-05 13:03:21 +01:00
David Brooks 03fcf1ca70 Get all mouse wheel tests passing (#9564). 2020-02-05 11:27:10 +01:00
David Brooks 77658e5750 Ensure changes to zoom wheel handling pass tests. 2020-02-05 11:24:48 +01:00
Andreas Hocevar 97246daf66 Merge pull request #10587 from jeremy-smith-maco/larger-resolution-constraint
Adds option to View for using larger resolution value when clamping #10586
2020-02-05 11:10:43 +01:00
Jeremy Smith 3082972cce Updates the option to be called showFullExtent 2020-02-05 16:46:45 +10:00
mike-000 3c2dfb511a Fix Polystyle outline 0 conflict with Linestyle
Return separate style objects for polygon geometries (including multipolygon and polygons in geometry collections) and other geometries if Polystyle outline is defined as 0
Rearrange code to reduce cloning of styles in createNameStyleFunction

Update Polystyle outline 0 tests
Check for separate style objects applying to LineString and Polygon geometries
Test LineString and Polygon geometries in a collection
2020-02-02 11:28:07 +00:00
Jeremy Smith 001cb98990 Updated test to use renamed option 2020-01-30 08:03:02 +10:00
Andreas Hocevar f8f7f83be7 Do not expose static render function of controls 2020-01-29 20:21:08 +01:00
Jeremy Smith 4151e86c0a Adds option to View for using larger resolution value when clamping 2020-01-29 15:35:48 +10:00
Andreas Hocevar 1ee03decdd Assert each layer is only added to the map once 2020-01-24 17:52:13 +01:00
mike-000 e2b42c100f Include html character code in text style test 2020-01-19 12:02:16 +00:00
mike-000 bf23dca068 Include html character code in text style test 2020-01-19 11:42:59 +00:00
mike-000 730008cfad Make feature styles compatible with declutter
Update expected result to single style object to reflect change
Remove duplicated test
2020-01-18 20:00:09 +00:00
Andreas Hocevar 2f094978ca Merge pull request #10502 from walkermatt/stopevent-removed-target
Stop events that originate with a removed target
2020-01-17 21:34:39 +01:00
Andreas Hocevar de5cd5c664 Merge pull request #10527 from ahocevar/no-label-cache
Remove label cache, render text directly to target canvas
2020-01-16 09:23:41 +01:00
jkonieczny 2112478b6b Added test + jsdoc 2020-01-15 11:13:45 +01:00
jkonieczny 78378f0253 refactor offset to displacement 2020-01-15 11:13:45 +01:00
jkonieczny 601bd7bae6 add offset option to RegularShape 2020-01-15 11:13:44 +01:00
Andreas Hocevar fd935bae53 Remove label cache, render text directly to target canvas 2020-01-13 22:12:53 +01:00
Matt Walker eeec2b9e7d Lint: remove unused imports 2020-01-13 11:32:40 +00:00
Matt Walker 5ce532e3e4 Mock PointerEvent in tests to include target
The `target` Event property is readonly as it is set internally when an
event is dispatched. This change uses a plain object with the essential
properties that a PointerEvent has which is sufficent for map event handling
2020-01-13 10:46:40 +00:00
Andreas Hocevar 5a8df1d4e2 We no longer need to increase the cache size 2020-01-08 10:53:42 +01:00
Andreas Hocevar 46d98201c3 Store source tiles on render tile instead of source 2020-01-08 10:53:42 +01:00
Andreas Hocevar 2875685b3c Use TileCache instead of custom structure 2020-01-05 12:25:44 +01:00
Andreas Hocevar bec747e513 Remove unused argument and member 2020-01-05 12:08:43 +01:00
Andreas Hocevar da6eed850c Do not lock label cache entries 2020-01-05 11:24:46 +01:00
Andreas Hocevar b91e1a893d Do not abort and dispose of tiles 2020-01-05 00:05:24 +01:00
Olivier Guyot 4440994ec8 Avoid recomputing the viewport size by reading the DOM everytime
Also clarify View#calculateExtent doc & remove the [data-view] attribute
on the viewport element (not needed anymore).
2019-12-23 10:47:54 +01:00
Olivier Guyot 6c46eb1dd0 Webgl / add support for a rotation parameter in LiteralStyle
The ShaderBuilder can now take a rotation expression.
2019-12-20 17:39:40 +01:00
Olivier Guyot ca0ce4986d Merge pull request #10119 from mike-000/patch-8
Add crossOrigin option to ol/format/KML for icons
2019-12-13 09:26:56 +01:00
mike-000 6596a988c0 Add crossOrigin option for icons
Avoid unnecessary tests by using only one test for the default icon crossOrigin,.  In other cases ensure that the specified option is set.
2019-12-12 17:50:50 +00:00
Andreas Hocevar 8e0a8114d7 Merge pull request #10340 from mike-000/patch-7
Draw circles and custom geometry in user coordinates
2019-12-11 10:07:12 +01:00
mike-000 2e544cb677 Circles and custom geometry in user coordinates
Pass the view projection to the geometry function so circles and other custom geometry can be given the expected shape/size in the view while being defined in user coordinates.

Add tests to draw circles in a user projection and along both axes
Draw regular polygon in a user projection
Draw box in a user projection
2019-12-10 19:47:37 +00:00
Andreas Hocevar bbc1de280d getFeaturesInExtent() for VectorTile source 2019-12-10 14:07:37 +01:00
Andreas Hocevar 8911b96d3c Do not preventDefault on pointerdown 2019-12-10 12:25:23 +01:00
Andreas Hocevar 174dea3232 Fix interim tile handing for vector tiles 2019-12-07 15:18:18 +01:00
Andreas Hocevar 057650fe7d Merge pull request #10309 from ahocevar/vectortile-rendermode-vector
Bring back vector render mode for vector tile layers
2019-11-29 11:51:38 +01:00
Andreas Hocevar 10a6284b0b Merge pull request #10332 from ahocevar/no-touch-action-css
Conditional default prevention instead of touch-action: none
2019-11-29 09:52:29 +01:00
Andreas Hocevar 0a319ea2a2 Merge pull request #10301 from ahocevar/getfeatures-fixes
Create hit detection data per layer and without requestAnimationFrame
2019-11-29 09:44:09 +01:00
Andreas Hocevar 88b8b2f7cb Conditional default prevention instead of touch-action: none 2019-11-25 01:09:05 +01:00
Greg Gianforcaro 6bada6ab98 Add test modifying circle with snap enabled 2019-11-23 16:11:27 -05:00
Andreas Hocevar 3e31551962 Improved tests 2019-11-20 00:52:18 +01:00
Brian Helba c5ad886d7c Ensure that OverviewMap respects the initial rotation of attached Maps 2019-11-18 05:33:28 -05:00