Commit Graph
100 Commits
Author SHA1 Message Date
Maximilian Krög ecf90a49c8 Improve browser tests
- Listen for image change event instead of waiting 200 ms
- Properly fake fetch response, can never be undefined on resolve
2022-05-15 22:30:40 +02:00
Maximilian Krög 302a9d51e1 Fix WebGLTile browser tests
The loader has to return a TypedArray, not ImageData
2022-05-15 22:30:40 +02:00
Maximilian Krög 744324859e Fix font rerender test when font is a system font 2022-05-15 22:30:40 +02:00
Maximilian Krög 72d61f887d Use document.head instead of getElementByTagName 2022-05-15 21:34:26 +02:00
MoonE 05d7cd62b7 Merge pull request #13455 from MoonE/snap-load
Improve Snap interaction performance
2022-03-08 01:16:16 +01:00
Maximilian Krög 3b637a7939 Improve input form on snap example
Put the geometry type select input next to the 'draw' radio and select this
whenever the geometry type is changed.
2022-03-07 19:54:43 +01:00
Maximilian Krög bcebd73388 Improve performance when adding features to Snap 2022-03-07 19:54:43 +01:00
Maximilian Krög 444763f47b Set correct extent for multipoint points in Snap 2022-03-07 19:54:40 +01:00
MoonE b50b9bd887 Merge pull request #13446 from T-MAPY/interaction-snap-bug-13440
Snap Interaction can snap to Point on line segment
2022-03-07 19:30:13 +01:00
Maximilian Krög 49acb39f72 Return null when not snapped 2022-03-07 08:57:31 +01:00
Maximilian Krög 8b5b5db00f Add test for snap to vertex placed on line 2022-03-07 08:57:31 +01:00
MoonE e42555af6e Merge pull request #13447 from MoonE/fullscreen-uninitialized
Initialize variable before use in FullScreen control
2022-03-05 22:19:56 +01:00
Maximilian Krög 1ae1ff26a0 Initialize variable before use in FullScreen control
isInFullscreen_ was not initialized in the constructor when setClassName_
is called.

- Only remove the unnecessary classes when state changes instead of removing
  all and then adding the necessary classes again
2022-03-04 20:08:02 +01:00
MoonE 10eb834337 Merge pull request #13393 from MoonE/view-fixes
Fix setting View resolution or center to undefined
2022-02-19 13:55:08 +01:00
Maximilian Krög 5a49410d82 Center should remain valid when resolution is not set 2022-02-18 00:55:34 +01:00
Maximilian Krög ab786cff73 Test setting resolution to undefined 2022-02-18 00:52:40 +01:00
Maximilian Krög 19c034fd12 Fix setting center to undefined
It only worked when the coordinate warning was shown, but
fromUserCoordinate shouldn't have been called with undefined in
the first place.
2022-02-18 00:06:56 +01:00
MoonE 57e9a4d1a8 Merge pull request #13390 from MoonE/icon-clone
Fix clone of icon loses imgSize when cache is full
2022-02-17 20:04:32 +01:00
Maximilian Krög ab5e4f8838 Fix cloning of Icon style when IconImage is not cached 2022-02-17 00:58:35 +01:00
Maximilian Krög c74d0a8957 Test cloning IconImage without cache 2022-02-17 00:58:35 +01:00
MoonE f99c43db4d Merge pull request #13385 from MoonE/jsdoc-references-2
Change remaining links to point to class page instead of module
2022-02-15 19:14:00 +01:00
Maximilian Krög f236ff0086 Lower case first letter for function parameter 2022-02-14 22:04:26 +01:00
Maximilian Krög 5788ce51a5 Fix one more link to a class page 2022-02-14 21:53:47 +01:00
Maximilian Krög b29ab8f104 Link to class instead of module pages 2022-02-14 21:53:07 +01:00
MoonE 50c144cea2 Merge pull request #13374 from MoonE/jsdoc-references
Fix JsDoc references
2022-02-13 19:05:39 +01:00
Maximilian Krög 300cf6c2bb Replce description for WebGLHelper.DefaultAttrib 2022-02-13 15:53:18 +01:00
Maximilian Krög b9f9280260 Use code formatting for argument names in jsdoc 2022-02-13 13:39:10 +01:00
Maximilian Krög a0dd0054a9 Fix jsdoc references 2022-02-13 13:39:06 +01:00
MoonE 1abd9951d2 Merge pull request #13373 from MoonE/vector-source-is-empty
Fix VectorSource isEmpty without spatial index
2022-02-13 13:34:43 +01:00
Maximilian Krög e2c9f62cc6 Fix VectorSource isEmpty without spatial index 2022-02-13 00:08:24 +01:00
Maximilian Krög 9bfb0c1b9d Test VectorSource isEmtpty without spatial index 2022-02-13 00:06:26 +01:00
MoonE b5fe0f5b86 Merge pull request #12998 from MoonE/fix-cluster-setSource-type
Fix `ol/source/Cluster#setSource` type annotation
2022-02-11 22:38:47 +01:00
MoonE c08f54b5d3 Merge pull request #13358 from MoonE/dispatch-events
Avoid event creation when there are no listeners
2022-02-10 20:54:09 +01:00
Maximilian Krög ac0b8ff4a4 Add hasListener check around dispatchEvent calls 2022-02-09 22:27:42 +01:00
Maximilian Krög d35d1cc8ad Avoid creating event object when nobody is listening 2022-02-09 22:27:36 +01:00
MoonE ce3b59b963 Merge pull request #13350 from MoonE/fix-type-annotation-no-comment
Remove warning for `@type` annotation by jsdoc
2022-02-09 00:38:36 +01:00
Maximilian Krög 725729344c Remove warning for @type annotation by jsdoc 2022-02-08 21:38:41 +01:00
Maximilian Krög 9f8f7afaaa Fix ol/source/Cluster#setSource type annotation 2022-02-08 21:11:23 +01:00
MoonE cd45663996 Merge pull request #13336 from MoonE/dispose-webgl
Dispose of webgl contexts
2022-02-07 22:38:36 +01:00
MoonE 27a5103f3f Merge pull request #13337 from MoonE/fix-rendering-test
Fix error when accessing ready property of renderer
2022-02-07 22:38:05 +01:00
Maximilian Krög eaa6146156 Fix error when accessing ready property of renderer 2022-02-07 00:26:53 +01:00
Maximilian Krög 700cdad1e2 Add missing dispose calls for webgl renderer tests 2022-02-07 00:17:32 +01:00
Maximilian Krög a86f0704f3 Fix error when disposing ol/renderer/webgl/TileLayer
- helper may not exist
- tileTextureCache not cleared when canvasCacheKey changes
2022-02-07 00:17:32 +01:00
Maximilian Krög a10872baa4 No need to update the style when no source is set 2022-02-07 00:17:29 +01:00
Maximilian Krög 93c08784af Only set renderer to ready when all messages are received 2022-02-02 22:54:16 +01:00
Maximilian Krög 613d083e46 Test points layer ready state 2022-02-02 22:54:16 +01:00
MoonE b255e85be9 Merge pull request #13297 from MoonE/from-render-feature
Add function to convert RenderFeature to Feature
2022-01-30 13:53:47 +01:00
Maximilian Krög f0e768bb9a Remove case of MulitPolygon RenderFeature 2022-01-29 21:51:29 +01:00
Maximilian Krög 856f239280 Add function to convert RenderFeature to Feature 2022-01-29 17:52:07 +01:00
Maximilian Krög f2d65ba0ab Only set id if it is defined when creating feature 2022-01-29 16:06:01 +01:00
MoonE 239a082dbf Merge pull request #13229 from MoonE/apidoc-dyn-navigation-loading
Load api navigation dynamically to reduce needed disk space
2022-01-23 11:21:31 +01:00
Maximilian Krög 14c5e9a7e8 Load api navigation dynamically to reduce needed disk space 2022-01-22 22:29:33 +01:00
MoonE 9b0878a94a Merge pull request #13175 from MoonE/nodejs-12-compatibility
Allow nodejs 12 to build the examples again
2021-12-31 23:00:24 +01:00
Maximilian Krög d63a7ae497 Allow nodejs 12 to build the examples again 2021-12-31 11:06:43 +01:00
MoonE ea2e87c563 Merge pull request #13030 from MoonE/geographic-popover-fix
Correctly set popover position in geographic example
2021-11-21 22:37:32 +01:00
Maximilian Krög 89baa4aa01 Correctly set popover position in geographic example 2021-11-20 17:47:55 +01:00
MoonE a1b8f08bca Merge pull request #12999 from MoonE/fix-style-apidoc
Fix style related apidoc issues
2021-11-14 17:59:59 +01:00
Maximilian Krög c47fac19b5 Fix style related apidoc issues 2021-11-14 16:56:59 +01:00
MoonE 03efc13357 Merge pull request #12978 from EvertEt/patch-1
Add null to style jsdoc of VectorImage
2021-11-14 16:46:52 +01:00
MoonE fa2f730442 Merge pull request #12893 from andrewcoder002/main
Allow map target to be an external window
2021-11-03 21:20:24 +01:00
Maximilian Krög 07fa1adfe8 Use more structured yaml for examples source path 2021-11-02 22:10:27 +01:00
Maximilian Krög 12de93b397 Fixed unusable overlay in fullscreen mode 2021-11-02 22:10:27 +01:00
Maximilian Krög a10bc713f2 Configure additional sources displayed below map 2021-11-02 00:21:12 +01:00
Maximilian Krög ca9fc92f70 Example builder code cleanup
Add function for transforming js source and cloaking
Use  to parse source for import statements
Use now released parcel 2.0.0
2021-11-02 00:21:12 +01:00
Maximilian Krög 46d9e8db8e Fix codesandbox edit for offscreen-canvas example 2021-11-02 00:21:12 +01:00
Maximilian Krög 8cff620691 Improve unusable map window
As long as the original window is visible animation frames will run
and the external map will be usable
2021-11-02 00:21:12 +01:00
Maximilian Krög 50dc9f1f88 Fix map tests 2021-11-02 00:21:11 +01:00
Maximilian Krög 9a6bb4d751 Fix FullScreen state when changing target in fullscreen mode 2021-11-02 00:21:11 +01:00
Maximilian Krög 7bed63bf3f Improve window open and close handling
Use pagehide event instead of beforeunload, seems to be more reliable
Add a timeout and info message when opening the window fails
2021-11-02 00:21:11 +01:00
Maximilian Krög 5149224354 Improve code and its formatting 2021-11-02 00:21:11 +01:00
Maximilian Krög 770f53b5e3 Make FullScreen control work in external window 2021-11-02 00:21:10 +01:00
Maximilian Krög d1560176ba Fix mouse interactions with tabindex in external window 2021-11-02 00:21:10 +01:00
Maximilian Krög 86801d1151 Make external map example work 2021-11-02 00:21:09 +01:00
MoonE d742c38163 Merge pull request #12930 from MoonE/view-animation-test
Fix flaky view animation test
2021-10-27 00:21:04 +02:00
Maximilian Krög 687cffb5d9 Fix flaky view animation test 2021-10-26 21:52:10 +02:00
Maximilian Krög d8686598df Update heading and default port used 2021-10-17 01:33:06 +02:00
MoonE f4c2cbdb9b Merge pull request #12850 from MoonE/view-not-def-animation-fix
Fix issues with animate on View without center or resolution
2021-10-03 19:57:26 +02:00
Maximilian Krög 1be2c459c4 Fix end state for animation on view with invalid state 2021-10-03 00:22:18 +02:00
Maximilian Krög 84729e985f Add test for animation on view with invalid state 2021-10-03 00:19:05 +02:00
MoonE 9e37182649 Merge pull request #12646 from ashchurova/fix-8136-hit-detection-custom-renderer
Support for hit detection in styles with custom rendering
2021-09-29 20:22:57 +02:00
MoonE 5f118b0244 Merge pull request #12831 from MoonE/fix-emptied-vectorimage
Fix rendering VectorImage with no features in view extent
2021-09-28 23:28:00 +02:00
Maximilian Krög 1942f3f91b Fix rendering VectorImage with no features in view extent 2021-09-27 23:04:58 +02:00
Maximilian Krög 2d3d6cae31 Test VectorImage rendering view extent with no features 2021-09-27 23:04:55 +02:00
MoonE 964b1af72a Merge pull request #12774 from MoonE/fix-text-declutter
Fix text decluttering when segment length is zero
2021-09-18 11:09:15 +02:00
Maximilian Krög 4be657a28f Fix text decluttering when segment length is zero 2021-09-17 23:09:56 +02:00
MoonE 22a48fe939 Merge pull request #12607 from MoonE/expression-no-color-equal-operator
Don't add color as possible type if it was not set
2021-08-08 15:40:55 +02:00
Maximilian Krög 2bcd57193d Don't add color as possible type if it was not set 2021-08-08 15:30:57 +02:00
MoonE f701f20eae Merge pull request #12577 from MoonE/fix-buid-site-on-windows-cmd
Use shx for the build-site script, clean before run
2021-08-01 10:36:53 +02:00
Maximilian Krög 0f894a28df Use shx for the build-site script, clean before run 2021-08-01 09:55:30 +02:00
MoonE 0cc533e5d8 Merge pull request #12576 from MoonE/fix-example-and-legacy-build-with-nodejs-16-6
Fix example and legacy build with nodejs 16.6
2021-08-01 09:51:25 +02:00
Maximilian Krög 687b131714 Fix example and legacy build with nodejs 16.6 2021-08-01 01:13:26 +02:00
MoonE f1530364dd Merge pull request #12528 from MoonE/hit-detect-priority-test
Convert the hit tolerance priority example into a test
2021-07-17 17:49:21 +02:00
Maximilian Krög 19fb51183e Convert hit detect priority example to test 2021-07-17 15:09:38 +02:00
MoonE f87abdb612 Merge pull request #12507 from MoonE/fix-regular-shape-hit-detect-transparent-fill
Fix regular shape hit detect transparent fill
2021-07-13 17:54:41 +02:00
Maximilian Krög 58e2e57638 Fix hit detection of RegularShape with transparent fill 2021-07-12 19:33:17 +02:00
Maximilian Krög 5f3b22bf7f Remove lineCap, it is useless on closed paths 2021-07-12 19:32:42 +02:00
MoonE 7adaf7c1b5 Merge pull request #12442 from MoonE/fix-layer-extent
Fix layer render extent when it is not at all in view
2021-07-11 20:04:45 +02:00
Maximilian Krög 83226cc79a Fix layer render extent when it is not at all in view 2021-07-11 18:27:48 +02:00
Maximilian Krög f57413fc04 add tests for layer extent config 2021-07-11 18:27:48 +02:00
MoonE bb0ea08d17 Merge pull request #12467 from MoonE/fixes-regular-shape
Fixes / improvements for RegularShape
2021-07-11 15:47:15 +02:00