Commit Graph
100 Commits
Author SHA1 Message Date
MoonE 65704f0443 Merge pull request #13787 from jipexu/checkcontenteditable
Checkcontenteditable
2022-07-07 01:44:37 +02:00
Maximilian Krög c2d609c60a Improve targetNotEditable documentation 2022-07-07 01:32:22 +02:00
MoonE cbd138f967 Merge pull request #13674 from EvertEt/tilegridnull
Add null return type for TileGrid functions
2022-07-07 00:40:45 +02:00
MoonE 5baa86c2fa Merge pull request #13800 from mike-000/WKB
Change WKB readFeature(s) return type to Feature
2022-06-29 21:10:05 +02:00
MoonE 5dc07bd5b7 Merge pull request #13784 from jipexu/main
d3 version update
2022-06-21 23:39:23 +02:00
MoonE 1f6d13836b Merge pull request #13750 from MoonE/gemetry
Fix typo in method names
2022-06-11 18:28:40 +02:00
Maximilian Krög 758048f5d8 Fix typo in method names 2022-06-11 17:56:42 +02:00
MoonE ca48e15d73 Merge pull request #13709 from MoonE/ufo
Improve icon-sprite-webgl example
2022-05-27 08:25:51 +02:00
Maximilian Krög 8d8f4fd961 Improve icon-sprite-webgl example code
Should load slightly faster now by adding the source only after all
features are available, this avoids dispatching the addfeature event
for each of the 80000 features.
Use webgl tile layer for the background so the canvas can be shared
between both layers.
2022-05-26 20:30:24 +02:00
Maximilian Krög 03f3e619f2 Update ufo example data
Downloaded a newer version of the data from
https://www.kaggle.com/datasets/NUFORC/ufo-sightings?select=scrubbed.csv
and fixed the remaining errors in it.
2022-05-26 20:11:40 +02:00
MoonE 599257a144 Merge pull request #13627 from MoonE/hitdetect-origin-pixel-ratio
Fix hitdetection for icon with offset and pixelratio != 1
2022-05-25 22:45:03 +02:00
Maximilian Krög d45e08d197 Fix icon offset for hitdetect image
It only worked correctly with pixel ratio of 1
2022-05-25 22:33:57 +02:00
Maximilian Krög 6b3c9cc196 Test hitdetect icon with offset 2022-05-25 22:33:57 +02:00
Maximilian Krög f5bdc982b5 Improve test coverage for icon clone method 2022-05-25 22:33:54 +02:00
MoonE bed1e514f9 Merge pull request #13626 from MoonE/rendercomplete-wait-for-icons
Wait for icons to be loaded before firing rendercomplete event
2022-05-25 22:32:43 +02:00
Maximilian Krög e8925a90e5 Test VectorTile layer not ready while loading needed icons 2022-05-24 22:26:17 +02:00
Maximilian Krög 11589f3317 Test rendercomplete with icon for VectorTile 2022-05-24 22:18:36 +02:00
Maximilian Krög 2473e5bd32 Fix vector tile renderer ready 2022-05-24 21:47:09 +02:00
Maximilian Krög de392a9846 Don't fire rendercomplete event while icons are loading 2022-05-24 21:47:09 +02:00
Maximilian Krög dc128820c1 Test rendercomplete waits for icon load 2022-05-24 21:47:08 +02:00
Maximilian Krög 5345b80aa1 Remove unused getImageState call 2022-05-24 21:47:08 +02:00
Maximilian Krög d7ebcf0ef8 Fix error when image state changes on disposed renderer 2022-05-24 21:47:04 +02:00
MoonE 3857e2051c Merge pull request #13676 from MoonE/test-improvements
Test improvements
2022-05-16 23:06:26 +02:00
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