Maximilian Krög
b29ab8f104
Link to class instead of module pages
2022-02-14 21:53:07 +01:00
EvertEt
e3d3d24f05
Improve some null types to prepare for strictNullChecks
2022-01-31 19:35:25 +01:00
Andreas Hocevar
0004b2594d
Support multiple sources for layers
2022-01-13 17:42:52 +01:00
Andreas Hocevar
3638df90f8
Add layer background
2021-12-06 00:07:15 +01:00
Simon Seyock
ce4f6ccb0d
OnSignatures return more specific type
2021-09-10 16:11:38 +02:00
Andreas Hocevar
e9e664f3c9
Add typed signature for Observable#un()
2021-07-10 11:28:50 +02:00
Simon Seyock
d914006d51
Add signatures for once.
2021-07-10 11:28:49 +02:00
Simon Seyock
1870a64984
Add CombinedOnSignature.
2021-07-10 11:28:49 +02:00
Simon Seyock
7fc664c3fe
sources and layers.
2021-07-10 11:28:48 +02:00
Simon Seyock
c8f43050c4
Revert "Merge pull request #12416 from ahocevar/eventtype-generics"
...
This reverts commit b6c143deb2 , reversing
changes made to 7777821df5 .
2021-07-10 11:28:46 +02:00
Andreas Hocevar
79f5f46d27
Remove lint
2021-06-28 18:10:51 +02:00
Andreas Hocevar
018ad97f25
Use generics to limit event types in on(), once() and un()
2021-06-20 22:25:47 +02:00
Andreas Hocevar
8520a18eae
Merge pull request #12219 from ahocevar/object-properties
...
Add 'properties' to Layer constructors
2021-06-17 08:44:53 +02:00
Andreas Hocevar
432bd7f851
Allow custom properties in the constructor using the properties option
2021-05-24 23:23:51 +02:00
Maximilian Krög
de4a93709a
Inherit layer group zIndex
2021-05-13 01:44:08 +02:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01: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
15d36a22f0
Remove all inheritDoc tags from src/ol/layer
2020-04-03 07:56:58 +02:00
jahow
f7b0f6750b
Resolve memory leak when deleting a webgl layer
...
Various references were kept, preventing the layer and underlying
renderer and webgl context to be garbage collected.
Also, the Helper was simplified because it turns out deleting manually
all Webgl objects is useless: these objects will be released when
the context is garbage collected anyway.
Note: this touches the Layer and BaseLayer classes, as the following were
preventing the layer from being garbage collected:
* layer reference in the `state_` object in BaseLayer
* dangling listener for source change in Layer
2019-11-04 09:31:38 +01:00
Andreas Hocevar
2a96b6a8e3
Merge pull request #10239 from ahocevar/simpler-container-reuse
...
Simpler container reuse
2019-11-01 19:14:05 +01:00
Andreas Hocevar
bb2bdb17aa
Render vector tile layers to a single canvas
2019-10-31 20:29:19 +01:00
Frederic Junod
b8c70bcbe7
Fix layer zIndex test with falsy values
2019-10-31 15:58:36 +01:00
Tim Schaub
2c69ad2bb4
Throw on non-numeric opacity values
2019-08-15 12:55:13 -06:00
Tim Schaub
65ad4932f4
Support zoom limits for layers
2019-08-06 21:19:09 -04:00
ahocevar
6123be726a
Handle layer removal on shared containers
2019-06-02 13:59:06 +02:00
Frédéric Junod
c92bf29677
Fix spelling
...
Co-Authored-By: Tim Schaub <tschaub@users.noreply.github.com >
2019-05-29 09:07:05 +02:00
Frederic Junod
40c49a9ce5
Remove layerState param from prepareFrame and renderFrame function
2019-05-25 07:19:10 +02:00
ahocevar
ba6ac43a28
Fix zIndex handling for unmanaged layers
2019-05-05 13:24:46 +02:00
Frederic Junod
af8a22d34d
Keep two digits for the opacity value in layer state
2019-01-22 12:47:34 +01:00
Frederic Junod
22eb96637f
Add new className property to ol/layer/Base
2018-11-13 13:09:06 +01:00
Tim Schaub
ca5b0c63a5
Remove LayerType
2018-11-12 14:54:11 +01:00
Frederic Junod
6a797e84ff
Simplify import path in ol/layer/
2018-11-05 16:26:45 +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
720993431c
Fix indentation
2018-10-08 08:50:40 +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
ahocevar
161c5b0105
Better documentation of the zIndex default
2018-08-15 11:24:29 +02:00
ahocevar
95533e2425
Use configured zIndex for unmanaged layers
2018-08-15 10:58:52 +02:00
Tim Schaub
affbf59b77
Use Object<Foo, Bar> instead of Object.<Foo, Bar>
2018-07-25 18:33:49 -07:00
Tim Schaub
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00
ahocevar
bbe0a66d07
Set api annotation on classdesc, not constructor
2018-07-21 17:25:22 +02:00
Tim Schaub
9ce36da349
Remove @extends and @constructor annotations
2018-07-18 00:36:29 -06:00
Tim Schaub
b7b15eb7f0
Remove unused inherits
2018-07-18 00:13:43 -06:00
Tim Schaub
1a5cf52b61
Remove remaining use of inherits in src
2018-07-17 23:43:10 -06:00
Tim Schaub
d0ab8dce38
Lint removal
2018-07-16 17:57:57 -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
ahocevar
e810387956
Fix some JSDoc issues
...
Also makes a few minor changes to the template, so it can be used until
we have a new doc generation process. JSDoc output is written to
build/apidoc.
2018-05-10 17:14:17 +02:00
Frederic Junod
af1f6836af
Shorter module paths for default exports
2018-05-09 11:24:43 +02:00