Commit Graph

57 Commits

Author SHA1 Message Date
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
Andreas Hocevar
bff25f9ba4 Bind tileUrlFunction before returning it from getTileUrlFunction 2020-09-10 10:10:52 +02:00
Alexis
b57c0ad631 docs: standardize opaque's jsdoc comment to say 'Whether the layer is oqaque'
-
2020-05-17 15:04:25 +02:00
Alexis
2f03706e80 docs: fix opaque's jsdoc default value to false
fix #10964
2020-05-17 14:54:45 +02:00
Andreas Hocevar
29ce0bb223 Fix private scope issues in source/UrlTile and subclasses 2020-04-15 10:53:26 +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
615ae71a8f Remove all inheritDoc tags from src/ol/source 2020-04-03 07:56:58 +02:00
Andreas Hocevar
b91e1a893d Do not abort and dispose of tiles 2020-01-05 00:05:24 +01:00
Andreas Hocevar
ac50cc3460 New eslint config with no-multi-assign 2019-11-02 15:20:21 +01:00
ahocevar
e07ff9c04e Make zDirection configurable on tile source 2019-07-30 16:50:01 +02:00
ahocevar
9720db2041 Remove superfluous setTileUrlFunction call 2018-11-29 21:20:35 +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
d1395d005c Fix comments for JSDoc 2018-10-23 17:58:50 +02:00
Frederic Junod
041836c645 Change getUid return type from number to string 2018-10-17 10:22:53 +02: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
ahocevar
4aff3d0631 Simplify logic for fixed tile url functions 2018-10-02 17:26:22 +02:00
Frederic Junod
3d9b1af105 Remove 'extent' properties from ol/source/Tile children classes 2018-09-28 09:13:43 +02:00
Frederic Junod
7eee6ba07a Remove '=' from type when the parameter is not optional 2018-09-27 10:00:02 +02:00
Dmitry Fedorov
028caa4664 fixes for optional key handling 2018-09-14 12:02:37 -07: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
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
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
Frederic Junod
05f92c0333 Module type for ol.source.Tile 2018-04-20 14:37:46 +02:00
Frederic Junod
327bda680d Module type for ol.source.Tile.Event 2018-04-20 14:35:17 +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
e283193ff4 Module type for ol.source.State 2018-04-19 15:39:25 +02:00
Florent gravin
910373eaa2 Remove ol.SourceUrlTileOptions 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
ahocevar
e383913b3c Fix some type paths 2018-03-17 13:34:57 +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
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
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
231c8837ca Rename _ol_source_UrlTile_ to UrlTile 2018-01-10 09:36:29 -07:00
Tim Schaub
d2c0ea103e Rename _ol_source_Tile_ to TileSource 2018-01-10 09:36:28 -07:00