Commit Graph

196 Commits

Author SHA1 Message Date
Tobias Kohr a0df485736 add tests for modified methods 2019-09-24 17:58:56 +02:00
Tobias Kohr b1196e7601 fix linting 2019-09-24 17:58:56 +02:00
Tobias Kohr 5711cd30d0 Seperate getEventCoordinate into internal/external method 2019-09-24 17:58:56 +02:00
Tobias Kohr d4c1589a01 Seperate internal and API methods for the map 2019-09-24 17:58:56 +02:00
Simon Seyock 82486899df getFeatureAtPixel always returns array 2019-09-24 17:16:25 +02:00
Andreas Hocevar 60c2c4e088 Get rid of map focus 2019-09-24 16:02:36 +02:00
Olivier Guyot b97647d39b Merge pull request #9966 from jahow/allow-disable-canvas-reuse
Document how to circumvent the canvas reuse optimization
2019-09-24 11:16:45 +02:00
Tim Schaub 3c38a38570 Merge pull request #9961 from KlausBenndorf/remove-select-interaction
SelectInteraction removal
2019-09-24 10:27:20 +02:00
Simon Seyock acac7a9403 remove skipFeature logic 2019-09-24 10:12:30 +02:00
Olivier Guyot 449686527b Document how to avoid canvas reuse for layers
This restores the `map.forEachLayerAtPixel` functionality.

This is intended to help with openlayers#9720
2019-09-24 09:46:32 +02:00
Tim Schaub 2f498c9f58 Set frame state extent when creating frame state 2019-09-23 13:57:48 +02:00
Andreas Hocevar f0cbc44860 Cancel postrender before disposing renderer 2019-09-12 12:11:07 +02:00
ahocevar ebfb20440a Simplify events and store listeners only in one place 2019-09-04 16:48:43 +02:00
ahocevar d416866108 Use pointer events everywhere 2019-08-31 23:40:11 +02:00
Frederic Junod 49a65568d8 Remove unused param in getState function 2019-06-27 15:07:59 +02:00
ahocevar f864c05070 Less frame budget restrictions 2019-06-23 14:07:22 +02:00
ahocevar 8c21c9196d Move label cache listener management to the renderer 2019-06-03 15:13:30 +02:00
ahocevar 68b7831daf Listen to label cache again when we have a target 2019-06-03 14:28:20 +02:00
ahocevar 153e06e4d5 Detach label cache on Map#setTarget() 2019-06-03 14:14:13 +02:00
Frederic Junod 7c215b2532 Remove TOUCH, POINTER and MSPOINTER from ol/has 2019-06-01 07:18:23 +02:00
Frederic Junod 40c49a9ce5 Remove layerState param from prepareFrame and renderFrame function 2019-05-25 07:19:10 +02:00
bartvde c76aa76743 Use window instead of global in addEventListener 2019-05-24 14:51:32 +02:00
bartvde 119c24faa2 Use global addEventListener in PluggableMap 2019-05-24 13:45:19 +02:00
ahocevar ace5c65ee5 Smarter opacity handling 2019-05-22 16:47:23 +02:00
Andreas Hocevar 17d26acb2f Merge pull request #9560 from ahocevar/simplify-loading
Simplify loading detection loop
2019-05-16 22:27:59 +02:00
ahocevar 335648d613 Remove memory leak caused by label cache listeners 2019-05-16 21:04:55 +02:00
ahocevar dc906f79e1 Simplify loading detection loop 2019-05-16 20:19:32 +02:00
ahocevar 12289b8ef9 Declutter in correct order and for all layers 2019-05-05 12:20:38 +02:00
Olivier Guyot c08da3c694 Map / resolve view constraints when resized/view changed
This makes the `resolveConstraints` view method public but not part of the
api.
2019-03-25 13:38:51 +01:00
Frederic Junod 4a13bf2fa9 Mark layerFilter in AtPixelOptions as optional 2019-03-11 15:11:16 +01:00
Frederic Junod d71fa78ee2 Remove unused template tag 2019-03-11 15:10:32 +01:00
ahocevar 47679a9686 Document the correct render events 2019-01-31 14:05:10 +01:00
simonseyock c18a833880 event chain documentation 2019-01-28 20:50:33 +01:00
ahocevar 26ff8899c3 Do not load new tiles when low on frame budget 2019-01-25 16:49:34 +01:00
ahocevar a5d93117ed Also consider lower resolution tiles as used tiles 2019-01-21 22:34:01 +01:00
Frédéric Junod cf6b1ca1cc Merge pull request #9072 from fredj/rm_layerStates
Remove 'layerStates' property from the FrameState
2019-01-07 10:11:52 +01:00
ahocevar 2e21b9f975 Always load tiles while animating and interacting 2019-01-06 21:29:24 +01:00
Frederic Junod 3193de0906 Only schedule the icon cache expire when it's needed 2018-12-19 14:34:22 +01:00
Frederic Junod 5195adea85 Remove 'layerStates' property from the FrameState 2018-12-18 09:49:38 +01:00
Niklas Alt 4bc9216e41 Add ': void' to non returning functions (error TS7014) 2018-12-06 19:57:45 +01:00
Nicholas L a9d336d0f1 [Client] Remove renderFrame 2018-11-20 18:52:43 +13:00
Tim Schaub 898c349fbf Stacking contexts for layers, overlays, and controls 2018-11-19 11:00:33 -07:00
Tim Schaub 5ad73f8bbd Implement getDataAtPixel for all layer renderers 2018-11-16 14:57:14 +01:00
Frederic Junod 0189e8345d Remove WebGL references in comments 2018-11-16 14:05:06 +01:00
ahocevar d1395d005c Fix comments for JSDoc 2018-10-23 17:58:50 +02:00
Frederic Junod 041836c645 Change getUid return type from number to string 2018-10-17 10:22:53 +02:00
ahocevar 9163558511 Replace instanceof checks with other logic 2018-10-12 20:35:59 +02:00
Andreas Hocevar 4a066670c2 Merge pull request #8753 from wallw-bits/fix-typecheck-pluggablemap
Fix type check in ol/PluggableMap.js
2018-10-03 19:33:12 +02:00
Frederic Junod ae87cad7ef Use FeatureLike typedef
Use `import("./Feature.js").FeatureLike` typedef instead of `import("./Feature.js").default|import("./render/Feature.js").default`
2018-10-02 12:58:56 +02:00
William Wall 9fc8475586 Fix type check in ol/PluggableMap.js
- Added JSDoc to getRenderer()
- Cast default options to types
- Cast event to MouseEvent to satisfy tsc. Non mouse/touch events
  will simply produce [NaN, NaN]
- Cast to Layer before calling getSource(), as it does not exist
  on Base
2018-10-01 12:49:47 -06:00