Andreas Hocevar
4fec8d4615
Recover from incorrect rebase after removal of string enums
2022-07-18 09:42:52 +02:00
Andreas Hocevar
f720404559
Updates after rebase
2022-07-15 11:01:30 +02:00
Andreas Hocevar
57f147988d
Use union type for source state
2022-07-15 10:46:44 +02:00
Maximilian Krög
d7ebcf0ef8
Fix error when image state changes on disposed renderer
2022-05-24 21:47:04 +02:00
Tim Schaub
2526a04f2a
Merge pull request #13338 from tschaub/get-layer-data
...
Get pixel data
2022-02-08 20:46:18 -07:00
Maximilian Krög
725729344c
Remove warning for @type annotation by jsdoc
2022-02-08 21:38:41 +01:00
Tim Schaub
eb4d5e0784
Get pixel data
2022-02-07 18:35:47 -07:00
Andreas Hocevar
7c3c1ac354
Fix rendercomplete for WebGLPoints layer and subclasses
2022-02-01 17:13:37 +01:00
mike-000
54871b6c52
return null for unsupported layer types
2021-09-30 10:32:48 +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
Frederic Junod
15d36a22f0
Remove all inheritDoc tags from src/ol/layer
2020-04-03 07:56:58 +02:00
Andreas Hocevar
315695eeb8
New Layer#getFeatures method with fast hit detection for VectorLayer
2019-10-08 08:23:38 +02:00
Simon Seyock
54cbe14f88
Check hits for wrapped around geometries
2019-09-26 11:46:10 +02:00
Simon Seyock
6b5c2f47bb
reduced typecasts in layerrenderer
2019-09-25 15:24:37 +02:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
Frederic Junod
933a6297bb
Remove unused hasFeatureAtCoordinate from ol/renderer/Layer
2019-06-28 11:10:33 +02:00
Frederic Junod
40c49a9ce5
Remove layerState param from prepareFrame and renderFrame function
2019-05-25 07:19:10 +02:00
Andreas Hocevar
96331c5d95
Merge pull request #9584 from ahocevar/reuse-render-target
...
Reuse render target
2019-05-24 10:33:36 +02:00
ahocevar
606443bc6d
Pass render target of previous layer to next layer
2019-05-22 15:56:51 +02:00
Tim Schaub
908ecb39e3
Description below @abstract trips up JSDoc
2019-05-16 16:10:30 -06:00
ahocevar
335648d613
Remove memory leak caused by label cache listeners
2019-05-16 21:04:55 +02:00
ahocevar
12289b8ef9
Declutter in correct order and for all layers
2019-05-05 12:20:38 +02:00
ahocevar
11f5a4c5b8
Move tile specific methods to the tile layer renderer
2019-03-12 00:19:51 +01:00
Frederic Junod
6f8ffddace
Remove opt_this param in manageTilePyramid function
2019-02-07 13:18:52 +01:00
ahocevar
a5d93117ed
Also consider lower resolution tiles as used tiles
2019-01-21 22:34:01 +01:00
ahocevar
fbf98a44ea
Streamline tile preparation and remove unused code
2018-11-29 22:35:46 +01:00
Tim Schaub
5ad73f8bbd
Implement getDataAtPixel for all layer renderers
2018-11-16 14:57:14 +01:00
Tim Schaub
ac3a1fb953
Dispatch layer changed event when layer needs a re-render
2018-11-16 14:57:13 +01:00
Tim Schaub
43ed2c1764
Composite renderer
2018-11-12 14:54:52 +01:00
Frederic Junod
041836c645
Change getUid return type from number to string
2018-10-17 10:22:53 +02:00
Kevin Schmidt
8d9fe7f688
Use void for optional return type
2018-10-03 13:23:05 -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
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
Tim Schaub
6cfa2b22a7
Explicit void
2018-07-26 10:46:39 -06:00
Tim Schaub
affbf59b77
Use Object<Foo, Bar> instead of Object.<Foo, Bar>
2018-07-25 18:33:49 -07:00
Tim Schaub
6f22f1b7ac
Param name on same line as type
2018-07-23 16:28:22 -07:00
Tim Schaub
b8c9125602
Remove lint
2018-07-18 10:35:54 -06:00
Frederic Junod
65b306891b
Remove 'struct' jsdoc tags, code indentation
2018-07-18 09:07:27 +02:00
Tim Schaub
c4e5a7467e
Clean up ol/renderer classes
2018-07-17 18:26:51 -06:00
Tim Schaub
7b4a73f3b9
Automated class transform
...
npx lebab --replace src --transform class
2018-07-16 16:18:16 -06:00
ahocevar
28409486a5
Make classes in ol/ available as named exports from ol
2018-06-21 18:08:17 +02:00
Frederic Junod
af1f6836af
Shorter module paths for default exports
2018-05-09 11:24:43 +02:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00