Andreas Hocevar
0004b2594d
Support multiple sources for layers
2022-01-13 17:42:52 +01:00
Marc Jansen
df23c234dc
Fix common misspellings
...
These were found with codespell.
2021-03-05 22:53:35 +01:00
Maximilian Krög
0d5d346bcd
Update links to external resources
2021-02-08 19:40:05 +01:00
Simon Seyock
2ad5789797
Add descriptions for properties.
2021-02-04 18:19:33 +01:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Haász Sándor
02e0b1af11
fix: modify rbush package import
2020-08-25 13:27:48 +02:00
Andreas Hocevar
0167c2760e
Grow cache size dynamically
2020-07-11 18:04:07 +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
Andreas Hocevar
fd935bae53
Remove label cache, render text directly to target canvas
2020-01-13 22:12:53 +01:00
Matt Walker
a389903749
Import transpiled rbush. Resolves #10379
2019-12-05 12:09:42 +00:00
Simon Seyock
2e1dee1994
fixed jsdoc type annotations
2019-09-29 19:35:11 +02:00
Frederic Junod
0e402073da
Add more typecast for typescript
2019-09-27 13:11:30 +02:00
Tim Schaub
09fdd30876
Upgrade to rbush@3
2019-05-14 18:43:08 -06:00
Frederic Junod
c20bdedcac
Remove opt_this param in ol/structs/LRUCache
2019-04-08 13:46:54 +02:00
Frederic Junod
617dd9f031
Remove opt_this param in ol/structs/RBush
2019-04-08 13:46:54 +02:00
ahocevar
592b6cf362
Keep track of used labels
2019-01-23 21:52:22 +01:00
ahocevar
e37734826c
Release canvas memory faster
2019-01-21 23:04:31 +01:00
Frederic Junod
29702e3750
Remove type cast in ol/structs/LRUCache
2018-12-12 14:48:24 +01:00
Frederic Junod
1f1951f3cc
Use typescript types for RBush
...
The `toJSON` function simply returns the `data` property.
See: https://github.com/mourner/rbush/blob/v2.0.2/index.js#L184
2018-10-24 17:07:41 +02:00
Frederic Junod
041836c645
Change getUid return type from number to string
2018-10-17 10:22:53 +02:00
William Wall
7ff974be2c
Remove superfluous bitwise operations
2018-09-20 10:27:13 -06:00
Frederic Junod
ea616e7751
Don't import ourselves
2018-09-06 09:05:32 +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
40486a0ecc
Avoid shadowing EventTarget
2018-07-26 10:14:58 -06: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
e1e34e5636
Replace @see with See.
2018-07-19 08:37:32 -06:00
Frederic Junod
c1ffb0a2a9
Move template type at the class level
...
This removes the TS1092 error from TypeScript: Type parameters cannot appear on a constructor declaration.
2018-07-19 15:53:52 +02: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
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
f78d0d4cfa
Manual class transform
2018-07-16 17:09:50 -06:00
ahocevar
28409486a5
Make classes in ol/ available as named exports from ol
2018-06-21 18:08:17 +02:00
Frederic Junod
0d99fc1f98
Set format parameter to rbush function
...
To remove the following closure compiler warning:
```
Function module$node_modules$rbush$index.default: called with 1 argument(s). Function requires at least 2 argument(s) and at most 2.
```
2018-05-09 16:39:59 +02:00
ahocevar
c32ee68637
Fix type syntax
2018-05-07 14:29:10 +02:00
Frederic Junod
76769f9901
Module type for ol.struct.*
2018-04-26 15:16:21 +02:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Tim Schaub
44fb48d63f
Type is * instead of value_
2018-04-18 16:19:06 -06:00
Michael Kuenzli
b76492c3b8
Move ol.LRUCacheEntry to ol/structs/LRUCache
2018-04-18 16:14:03 +02:00
Michael Kuenzli
11da20e744
Move ol.LinkedListItem to ol/structs/LinkedList
2018-04-18 16:09:17 +02:00
Frederic Junod
48740f0026
Move RBush typedefs out of src/ol/typedefs.js
2018-03-22 17:13:48 +01:00
Frederic Junod
857b946f3e
Module type for ol.events.Event
2018-03-19 14:31:04 +01:00
Andreas Hocevar
95d6251dbb
Get rid of olx.js and typedef.js typedefs for ol
2018-03-08 18:57:24 +01:00
Frederic Junod
3435ac575e
Better type definition
...
Fixes the `Invalid type(s) for operator IN.` warnings from the closure compiler.
2018-03-07 16:45:46 +01:00
Frederic Junod
57a7750924
Named exports from ol/structs/PriorityQueue
2018-02-20 16:13:16 +01:00
Andreas Hocevar
fff957a199
Allow setting the label cache size
2018-02-16 11:36:58 +01:00
Frederic Junod
31e30d28b7
Named exports from ol/obj
2018-01-16 14:14:17 +01:00