ahocevar
b6d115d868
Make tile cache smaller and screen size dependant
2019-01-21 22:35:48 +01:00
Tim Schaub
ba88081eba
Merge pull request #8642 from dimin/master
...
fixes for optional key passing, issue #8067 for tile sources
2018-11-06 08:56:25 -07:00
Frederic Junod
c12b41f8c6
Simplify import path in ol/source/
2018-11-05 16:26:45 +01:00
Dmitry Fedorov
1de22f77dc
merged with upstream and improved key handling
2018-11-02 17:19:10 -07:00
ahocevar
1cdd040c96
Throw when calling abstract methods; fix abstract return types
2018-10-30 18:55:49 +01:00
ahocevar
af4e5ca7cf
Improve JSDoc
2018-10-14 09:57:26 +02:00
Bobo Häggström
2f4d31c8f4
Add possibility to disable collapsible attributions from Source
2018-10-12 09:28:34 +02:00
Kevin Schmidt
8d9fe7f688
Use void for optional return type
2018-10-03 13:23:05 -06:00
William Wall
1ee0c50c8a
Fix type check in ol/source/Tile
...
Remove 'extent' because the parent Source class does not contain
'extent' on its options or use options.extent in the constructor.
Also removed 'extent' from 'Options' for 'TileSource'.
2018-09-27 10:47:51 -06:00
Frederic Junod
7eee6ba07a
Remove '=' from type when the parameter is not optional
2018-09-27 10:00:02 +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
Guillaume Beraudo
fe86d2e7f7
Expose original getGutter
...
TileWMS objects take a gutter option but do not have a public getter
for it. This makes it convoluted for user code to recreate the object
(ex: in the case of serialization/deserialization).
- the getGutterInternal() method is renamed to getGutter;
- the getGutter(projection) method is renamed to getGutterForProjection,
which is also more explicit.
The getGutter method was not API and is only used by the renderer.
2018-08-02 17:12:41 +02: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
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
f78d0d4cfa
Manual class transform
2018-07-16 17:09:50 -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
d987d99c93
Don't allow null usedTiles to be passed to expireCache
2018-05-09 16:39:59 +02:00
Frederic Junod
af1f6836af
Shorter module paths for default exports
2018-05-09 11:24:43 +02:00
Tim Schaub
167bc1ec78
Remove externs/oli.js
2018-05-08 08:38:34 -06:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Frederic Junod
05f92c0333
Module type for ol.source.Tile
2018-04-20 14:37:46 +02:00
Michael Kuenzli
71bb2ce019
Move ol.AttributionLike to ol/source/Source
2018-04-19 16:49:13 +02:00
Frederic Junod
7ccb66e80d
Module type for ol.tilegrid.TileGrid
2018-04-19 15:39:26 +02:00
Frederic Junod
6f3957786a
Module type for ol.source.Source
2018-04-19 15:39:26 +02:00
Frederic Junod
e283193ff4
Module type for ol.source.State
2018-04-19 15:39:25 +02:00
Florent gravin
c579fc985a
Remove =undefined for default values in ol/source
2018-04-04 10:52:50 +02:00
Florent gravin
910373eaa2
Remove ol.SourceUrlTileOptions
2018-04-04 10:52:50 +02:00
Florent gravin
aa138feb94
Remove ol.SourceTileOptions
2018-04-04 10:52:50 +02:00
Frederic Junod
857b946f3e
Module type for ol.events.Event
2018-03-19 14:31:04 +01:00
Frederic Junod
93b2fe0e95
Module type for ol.Tile
2018-03-19 14:31:04 +01:00
Frederic Junod
fe686ef915
Module type for ol.TileCache
2018-03-19 14:31:04 +01:00
Frederic Junod
76fb0edf0d
Use path type instead of ol.tilegrid.TileGrid
2018-03-15 14:20:49 +01:00
Tim Schaub
5c9aa0ce93
Module type for ol/TileRange
2018-03-12 08:32:09 -06:00
Tim Schaub
a743ec3989
Module types for ol/proj
2018-03-12 08:32:09 -06: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
b50a47114e
Move the nullFunction to ol/functions
...
And rename it to `UNDEFINED`.
2018-03-01 14:41:18 +01:00
Tim Schaub
e3f15e1d24
Named exports from ol/source/Tile
2018-02-25 08:13:36 -07:00
Marc Jansen
685b46f1e3
Named exports from tilecoord
2018-02-15 18:04:51 +01:00
Tim Schaub
9ed3881f34
Named exports from ol/tilegrid
2018-02-09 09:30:16 -07:00
Tim Schaub
11a4e1afa6
Named exports from ol/size
2018-02-07 11:47:51 -07:00
Tim Schaub
ad62739a6e
Use blocked scoped variables
...
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub
d2c0ea103e
Rename _ol_source_Tile_ to TileSource
2018-01-10 09:36:28 -07:00
Frederic Junod
fc00aecd2e
Rename _ol_TileState_ to TileState
2017-12-22 09:00:46 +01:00
Frederic Junod
aa45598ae1
Rename _ol_source_Source_ to Source
2017-12-19 08:51:50 +01:00