Tim Schaub
85ef563ba8
Remove PluggableMap
2022-07-31 10:08:13 -06:00
Maximilian Krög
2897f03ea5
Remove deprecated method PluggableMap#forEachLayerAtPixel
2022-07-26 00:57:21 +02:00
Simon Seyock
f636d68cce
Fix typing errors.
2021-08-06 17:14:17 +02:00
Simon Seyock
d6e0eb75fa
Use Source as default parameter for Layer.
2021-08-06 17:14:17 +02:00
Simon Seyock
2ad5789797
Add descriptions for properties.
2021-02-04 18:19:33 +01:00
Maximilian Krög
23dc768c2e
Order callback calls by distance to click position
...
All callback calls for hits with a tolerance > 0 are queued and
called ordered by distance after all hits are detected.
2020-12-01 23:21:59 +01:00
Andreas Hocevar
28aaa2e0d3
Pass geometry to forEachFeatureAtPixel callback
2020-11-27 13:43:28 +01:00
Andreas Hocevar
8e862766fc
New decluttering implementation
2020-09-27 21:13:26 +02:00
Andreas Hocevar
7a5e0db59f
Remove decluttering for a fresh start
2020-09-18 23:31:20 +02:00
Tim Schaub
054af09032
Make code prettier
...
This updates ESLint and our shared eslint-config-openlayers to use Prettier. Most formatting changes were automatically applied with this:
npm run lint -- --fix
A few manual changes were required:
* In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
* In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason. While editing this, I reworked `ExampleBuilder` to be a class.
* In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Frederic Junod
dda7342ea7
Remove all inheritDoc tags from src/ol/renderer
2020-04-03 09:08:09 +02:00
Andreas Hocevar
098885a006
New wrapX functions for coordinate and extent
2020-03-31 16:03:12 +02:00
kai.westerkamp
53f6359f8f
Fix for undefined Source
2019-10-29 15:38:14 +01:00
Andreas Hocevar
838edfa369
Recover from skip feature removal regressions
2019-09-26 16:56:38 +02:00
Olivier Guyot
b89c1255f7
Canvas vector / Avoid modifying the coordinates array in place
2019-09-26 15:34:31 +02:00
Simon Seyock
54cbe14f88
Check hits for wrapped around geometries
2019-09-26 11:46:10 +02:00
Simon Seyock
acac7a9403
remove skipFeature logic
2019-09-24 10:12:30 +02:00
Tim Schaub
65ad4932f4
Support zoom limits for layers
2019-08-06 21:19:09 -04:00
ahocevar
335648d613
Remove memory leak caused by label cache listeners
2019-05-16 21:04:55 +02:00
ahocevar
6c8c8a6477
Fix decluttering on VectorImage layers
2019-05-05 14:54:23 +02:00
ahocevar
12289b8ef9
Declutter in correct order and for all layers
2019-05-05 12:20:38 +02:00
ahocevar
020f513ed5
Remove unused sortByZIndex function
2019-02-14 17:40:38 +01:00
Frederic Junod
a0f15e1eb6
Only schedule the unused layers renderer removal when it's needed
2018-12-21 10:37:03 +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
a4fe067aad
Create a layer state map instead of an array of uids
2018-12-19 12:45:39 +01:00
Frederic Junod
016d738269
Move frameState test on top in removeUnusedLayerRenderers_
2018-12-18 13:34:19 +01:00
Frederic Junod
5d1c27d05d
Don't create an array of managed layers
2018-12-18 13:17:00 +01:00
Frederic Junod
1750ff43e0
Always schedule unused layers removal function
2018-12-18 09:49:47 +01:00
Frederic Junod
5195adea85
Remove 'layerStates' property from the FrameState
2018-12-18 09:49:38 +01:00
Tim Schaub
5d528dca3b
Target, source arg order for make* transform functions
2018-11-17 16:28:29 +01:00
Tim Schaub
c169fec4a8
Invert and set transform in one step
2018-11-17 16:28:28 +01:00
Tim Schaub
5ad73f8bbd
Implement getDataAtPixel for all layer renderers
2018-11-16 14:57:14 +01:00
Tim Schaub
edeb5d3e71
Remove unused getLayerRenderersByKey method
2018-11-15 12:36:31 +01:00
Tim Schaub
3f624ec0c0
Make map methods tolerant of layers without renderers
2018-11-15 12:35:54 +01:00
Tim Schaub
ca5b0c63a5
Remove LayerType
2018-11-12 14:54:11 +01:00
Tim Schaub
f6b838c635
Make webgl layer renderers dependencies of webgl layers
2018-11-12 14:54:11 +01:00
Tim Schaub
7ffaa134c7
Conditionally get renderer from the layer
2018-11-12 14:54:10 +01:00
Andreas Hocevar
3f69066d79
Merge pull request #8869 from ahocevar/typescript-fixes
...
Fix more types for TypeScript
2018-10-31 12:07:28 +01:00
ahocevar
1cdd040c96
Throw when calling abstract methods; fix abstract return types
2018-10-30 18:55:49 +01:00
ahocevar
1df9189d7f
Fix more types for TypeScript
2018-10-30 18:55:03 +01:00
Frederic Junod
041836c645
Change getUid return type from number to string
2018-10-17 10:22:53 +02:00
Andreas Hocevar
cbd6aabea2
Merge pull request #8773 from schmidtk/ts-renderer-canvas
...
Fix type check errors in ol/renderer/canvas
2018-10-03 10:29:29 +02:00
Kevin Schmidt
be4afde507
Fix type check errors in ol/renderer/canvas/ImageLayer
2018-10-02 15:24:51 -06: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
Frederic Junod
f58cd03f3b
Remove extra parameters
2018-09-28 09:13:43 +02:00
Frederic Junod
7cb85fa975
Don't define functions in the prototype
...
If `VOID` is used, TypeScript is not able to figure out what the function parameters are.
Before:
```
$ npx tsc | wc -l
1188
```
After:
```
$ npx tsc | wc -l
1169
```
2018-09-19 08:40:14 +02:00
Tim Schaub
f9f2f981f1
Remove unused method
2018-09-11 10:13:26 -06:00
Tim Schaub
ccfacc5ee6
Transformed types
...
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e ):
jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
ahocevar
1baa8be269
Add 'rendercomplete' event
2018-08-22 09:53:24 +02:00
Tim Schaub
6cfa2b22a7
Explicit void
2018-07-26 10:46:39 -06:00