Frédéric Junod
5f63575106
Merge pull request #8658 from fredj/proto_void
...
Don't define functions in the prototype
2018-09-19 14:53:59 +02:00
Frederic Junod
600d156d01
Add missing 'module' annotation
2018-09-19 11:51:34 +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
ahocevar
f29e6ac397
Fix more incorrect type imports
2018-09-13 11:42:59 +02:00
Tim Schaub
e49c691a22
Add types for the UTFGrid and TileJSON JSON responses
2018-09-06 10:11:35 -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
Frederic Junod
5b8b470568
Fix imports in jsdoc blocks
2018-09-03 09:41:00 +02:00
Frederic Junod
3c02bd15fb
Add missing 'extent' property in TileImage constructor
2018-09-03 09:41:00 +02:00
Frederic Junod
5fdac622ef
Add missing 'extent' property in VectorTile constructor
2018-09-03 09:41:00 +02:00
Frederic Junod
25c1754052
Cast empty optional options in constructor
...
To remove the typescript errors:
```
Property 'xxx' does not exist on type '{}'
```
2018-09-03 09:40:59 +02:00
Andreas Hocevar
ea9517ffd5
Merge pull request #8510 from gberaudo/fix_WMTS_dimensions_handling
...
Fix WMTS URLs with dimensions
2018-08-22 13:31:53 +02:00
Frédéric Junod
d84c64b3e7
Merge pull request #8524 from NeoRaider/xhtml-fixes
...
Fix compatiblity with XHTML content type
2018-08-22 13:13:22 +02:00
ahocevar
1baa8be269
Add 'rendercomplete' event
2018-08-22 09:53:24 +02:00
Matthias Schiffer
94c6afd65d
Avoid HTML entities like and ©
...
Use numerical entities instead for XHTML compatiblity.
2018-08-18 13:13:27 +02:00
Guillaume Beraudo
315cfa1033
Fix WMTS layers URLs with dimensions
2018-08-16 15:34:56 +02:00
ahocevar
1eeea2aa4d
Use class method syntax instead of .prototype.method = function
2018-08-06 15:30:17 +02:00
ahocevar
2f92e48e93
Use super.method instead of prototype.method.call
2018-08-06 15:30:17 +02:00
Frédéric Junod
d49be1393e
Merge pull request #8471 from samuel-girard/imagestatic_properties
...
Add getUrl and getImageExtent to ImageStatic API
2018-08-03 09:22:53 +02: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
Samuel Girard
4012280ad4
Use class property for url
2018-08-02 09:02:04 +02:00
Samuel Girard
e48c85a689
Add getUrl and getImageExtent to ImageStatic API
2018-08-01 12:23:38 +02:00
Tim Schaub
6cfa2b22a7
Explicit void
2018-07-26 10:46:39 -06:00
Tim Schaub
2eb07aa081
Use Template<Foo> instead of Template.<Foo>
2018-07-25 18:37:08 -07: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
Tim Schaub
d46471d763
Replace {@link https://www.example.com/ } with https://www.example.com/
2018-07-19 08:34:35 -06:00
Frederic Junod
323eb3f251
Fix reprojectionErrorThreshold property type
2018-07-19 16:02:58 +02:00
Tim Schaub
b8c9125602
Remove lint
2018-07-18 10:35:54 -06:00
ahocevar
9ed3540edf
Fix this access in WMTS source
2018-07-18 16:29:53 +02:00
ahocevar
8991dc9718
Do not use this before super()
2018-07-18 12:09:04 +02:00
Tim Schaub
b4e0d4c188
Super before this in TileJSON source
2018-07-18 01:00:19 -06:00
Tim Schaub
1309cf9b69
Call super before accessing this in Carto source
2018-07-18 00:53:57 -06:00
Tim Schaub
023bb638b2
Call super before accessing this in raster source
2018-07-18 00:53:17 -06:00
Tim Schaub
d885771d8d
Call super before accessing this in BingMaps source
2018-07-18 00:52:23 -06: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
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
Frederic Junod
0c300d651f
Change 'Image' type to 'HTMLImageElement'
2018-06-29 09:31:32 +02:00
ahocevar
28409486a5
Make classes in ol/ available as named exports from ol
2018-06-21 18:08:17 +02:00
Frederic Junod
f257a8938f
Rename ol/source/TileUTFGrid to ol/source/UTFGrid
2018-06-19 14:02:15 +02:00
ThomasG77
cbaa9a7567
Rename defaultDataProjection to dataProjection #8152
2018-06-18 14:08:50 +02:00
Frédéric Junod
6c538c12f6
Merge pull request #8280 from fredj/cleanup
...
Add missing property in VectorTile options, remove params from createRenderer
2018-06-18 13:41:02 +02:00
Frederic Junod
eb902974f3
Add missing properties in option typedef
2018-06-18 11:44:57 +02:00
ahocevar
4127c26ecc
Fix code block in comment
2018-06-18 11:19:15 +02:00