Commit Graph
100 Commits
Author SHA1 Message Date
Frédéric Junod f0c164802f Merge pull request #8833 from fredj/misc
Fix wrong filename in type annotation
2018-10-18 08:27:12 +02:00
Frederic Junod 1a0f398f1f Fix wrong filename in type annotation 2018-10-17 15:47:15 +02:00
Frédéric Junod 3d72490241 Merge pull request #8827 from schmidtk/remove-source-foreachfeatureatcoordinate
Removed unused forEachFeatureAtCoordinate from ol/source/Source
2018-10-17 15:09:37 +02:00
Frédéric Junod d2d041e54a Merge pull request #8830 from fredj/misc
Type annotation fixes in ol/control/
2018-10-17 13:26:05 +02:00
Frederic Junod 94fd57f690 Set projection property in MousePosition option optional 2018-10-17 10:56:11 +02:00
Frederic Junod 939aa565b5 Change ol/control/ScaleLine getUnits return type
Remove `undefined` from the return type: the default value is 'metric'
2018-10-17 10:48:19 +02:00
Frédéric Junod 1035ba7bf2 Merge pull request #8829 from fredj/getuid
Change getUid return type from number to string
2018-10-17 10:46:49 +02:00
Frederic Junod 041836c645 Change getUid return type from number to string 2018-10-17 10:22:53 +02:00
Frédéric Junod a85099a36b Merge pull request #8825 from schmidtk/ts-misc-errors
Fix TypeScript errors
2018-10-17 09:45:28 +02:00
Frédéric Junod 076d6425cb Merge pull request #8817 from romanzoller/wmts-document-image-format
Clarify format option for ol/source/WMTS
2018-10-16 16:20:36 +02:00
Frédéric Junod 2809784247 Merge pull request #8824 from schmidtk/ts-format-gml
Fix TypeScript errors in ol/format/GML
2018-10-16 16:09:58 +02:00
Frédéric Junod 9362e33be9 Merge pull request #8519 from NielsCharlier/complex
GML Format Improvements #8516 #8517 #8518
2018-10-16 09:10:09 +02:00
Frederic Junod aea9479c12 Rename parsers objects in ol/format/GML32 2018-10-16 08:48:42 +02:00
Frederic Junod 6b24760299 Fix jsdoc type notation 2018-10-16 08:26:41 +02:00
Frédéric Junod 316b4a1bb7 Merge pull request #8711 from schmidtk/ts-format-gml
Fix TypeScript errors in ol/format/GML
2018-10-16 08:25:41 +02:00
Frédéric Junod 80753eb909 Merge pull request #8808 from fredj/f8807
Fix format and version properties in ol/source/WMTS Options typedef
2018-10-12 12:53:23 +02:00
Frédéric Junod 0f15d38ae7 Merge pull request #8798 from fredj/rawgit
Use unpkg.com instead of rawgit.com
2018-10-12 11:04:39 +02:00
Frederic Junod ad3f248825 Fix format and version properties in ol/source/WMTS Options typedef 2018-10-12 08:51:03 +02:00
Frederic Junod 6d1cc3ba88 Use unpkg.com instead of rawgit.com 2018-10-10 15:11:07 +02:00
Frederic Junod db15bb0942 Fix indentation 2018-10-10 14:55:33 +02:00
Frederic Junod 94da8dd0e2 Move adaptAttributions out of the class, set default Options values 2018-10-10 14:23:13 +02:00
Frédéric Junod 02b2be5b40 Merge pull request #8796 from openlayers/greenkeeper/rollup-plugin-commonjs-9.2.0
Update rollup-plugin-commonjs to the latest version 🚀
2018-10-10 10:36:23 +02:00
Frédéric Junod 04c2359d49 Merge pull request #8793 from openlayers/greenkeeper/rollup-plugin-buble-0.19.4
Update rollup-plugin-buble to the latest version 🚀
2018-10-09 12:58:37 +02:00
Frédéric Junod 177190403f Merge pull request #8794 from openlayers/greenkeeper/rollup-0.66.5
Update rollup to the latest version 🚀
2018-10-09 11:40:29 +02:00
Frédéric Junod d6aced3e43 Merge pull request #8789 from fredj/misc
Spelling and indentation fixes
2018-10-08 09:23:14 +02:00
Frederic Junod 720993431c Fix indentation 2018-10-08 08:50:40 +02:00
Frederic Junod 69dfbb9e54 Fix spelling 2018-10-08 08:30:10 +02:00
Frédéric Junod c7813bbf45 Merge pull request #8766 from fredj/featurelike
Use FeatureLike typedef
2018-10-03 08:47:06 +02:00
Frederic Junod ae87cad7ef Use FeatureLike typedef
Use `import("./Feature.js").FeatureLike` typedef instead of `import("./Feature.js").default|import("./render/Feature.js").default`
2018-10-02 12:58:56 +02:00
Frédéric Junod 76dda0c422 Merge pull request #8759 from fredj/es6_examples
Use es6 class inheritance in examples
2018-10-01 17:12:20 +02:00
Frederic Junod 47b68ed96d Use es6 class inheritance in examples
Instead of using the deprecated `inherits` function.
2018-10-01 15:44:18 +02:00
Frédéric Junod a2c7eb80fd Merge pull request #8736 from fredj/misc
Typescript misc fixes
2018-10-01 08:29:02 +02:00
Frédéric Junod 40ee806c27 Merge pull request #8747 from fredj/faq_modules
Update doc/faq.md
2018-09-30 07:38:15 +02:00
Frederic Junod 513e11d263 Update doc/faq.md
Change code snippet to use es6 modules.
2018-09-29 08:58:02 +02:00
Frédéric Junod 01923ddbb2 Merge pull request #8740 from benVigie/updateFirefoxTextTestTolerance
Increase linestring textalign test tolerance to be Firefox compliant.
2018-09-29 08:34:48 +02:00
Frédéric Junod 313b00b8f3 Merge pull request #8738 from schmidtk/ts-format-xmlfeature
Cast to parent type to fix TS errors
2018-09-29 08:23:29 +02:00
Frédéric Junod 5abcaebabc Merge pull request #8737 from schmidtk/ts-format-topojson
Flag optional param to fix TS error
2018-09-29 08:18:09 +02:00
Frederic Junod 8c69380ef6 Fix wrong property name in Stroke constructor 2018-09-28 09:13:43 +02:00
Frederic Junod fa7a92b565 Add msTransform property in types/dom.d.ts 2018-09-28 09:13:43 +02:00
Frederic Junod 3d9b1af105 Remove 'extent' properties from ol/source/Tile children classes 2018-09-28 09:13:43 +02:00
Frederic Junod f58cd03f3b Remove extra parameters 2018-09-28 09:13:43 +02:00
Frederic Junod 6ce56329dd Fix wrong type 2018-09-28 08:21:12 +02:00
Frédéric Junod 368fb2c6e8 Merge pull request #8732 from wallw-bits/fix-typecheck-tilesource
Fix type check in ol/source/Tile
2018-09-28 08:19:58 +02:00
Frédéric Junod 2752541ff1 Merge pull request #8731 from fredj/GeolocationError
Dispatch a GeolocationError in Geolocation
2018-09-27 16:56:42 +02:00
Frederic Junod 39951a792d Dispatch a GeolocationError in Geolocation
See https://github.com/openlayers/openlayers/pull/8657#discussion_r219051918
2018-09-27 16:51:17 +02:00
Frédéric Junod 2d68f1506c Merge pull request #8729 from fredj/misc
Move functions out of the PointerEvent class
2018-09-27 16:05:54 +02:00
Frederic Junod 05c0b77a52 Move functions out of the PointerEvent class 2018-09-27 13:49:18 +02:00
Frédéric Junod 5bfd82a9bf Merge pull request #8724 from fredj/ts_fixes
Typescript misc fixes
2018-09-27 10:47:57 +02:00
Frederic Junod 4fbd7f2acd Add missing backtick 2018-09-27 10:18:47 +02:00
Frederic Junod 60c5d016a6 Remove unused 'opaque' property from ol/source/Stamen options
And set the `layer` property as mandatory.
2018-09-27 10:00:02 +02:00
Frederic Junod 7eee6ba07a Remove '=' from type when the parameter is not optional 2018-09-27 10:00:02 +02:00
Frederic Junod d8ee6acefa Remove extra imports in jsdoc 2018-09-27 10:00:02 +02:00
Frédéric Junod a4212abbb2 Merge pull request #8717 from fredj/ts_TileArcGISRest
Fix type checks in TileArcGISRest
2018-09-27 08:28:56 +02:00
Frédéric Junod 047f7ecf04 Merge pull request #8706 from schmidtk/ts-types-esrijson
Use EsriJSON types from @types/arcgis-rest-api
2018-09-26 15:56:27 +02:00
Frédéric Junod 277ecca881 Merge pull request #8709 from schmidtk/ts-format-geojson
Fix TypeScript errors in ol/format/GeoJSON
2018-09-26 15:54:20 +02:00
Frederic Junod 9cf7c71df8 Fix type checks in TileArcGISRest 2018-09-26 15:51:55 +02:00
Frédéric Junod 55b300082a Merge pull request #8708 from wallw-bits/fix-typecheck-imagecanvas
Fix type checks in ImageCanvas source
2018-09-26 15:50:42 +02:00
Frédéric Junod 708557afef Merge pull request #8697 from fredj/fix-typecheck-cluster
Remove unused properties from Cluster and Image options
2018-09-24 13:14:06 +02:00
Frederic Junod 7d1b90c7d2 Remove unused extent property from ol/source/Image options 2018-09-24 10:14:33 +02:00
Frederic Junod 557e2c9029 Remove extra imports in jsdoc
The symbols are already imported (es6 import)
2018-09-24 10:11:03 +02:00
Frederic Junod 3b208864bc Remove unused properties from Cluster options
Follow up on #8692
2018-09-24 10:06:25 +02:00
Frédéric Junod 32dea69f5e Merge pull request #8688 from fredj/ts_fixes
Fix PointerEventHandler event type
2018-09-24 10:02:49 +02:00
Frédéric Junod 7d36b893d3 Merge pull request #8686 from fredj/import
Remove extra imports in jsdoc
2018-09-24 10:02:27 +02:00
Frederic Junod 69c6db0bc7 Allow TouchEvent to be passed to getEventPixel 2018-09-21 09:23:03 +02:00
Frederic Junod 9b447ef3ed Fix PointerEventHandler event type 2018-09-21 09:19:05 +02:00
Frederic Junod 821a08ea79 Remove extra imports in jsdoc
The symbols are already imported (es6 import)
2018-09-21 09:12:06 +02:00
Frédéric Junod a31453b55f Merge pull request #8646 from openlayers/greenkeeper/mustache-3.0.0
Update mustache to the latest version 🚀
2018-09-21 08:39:07 +02:00
Frédéric Junod 5b43b9f151 Merge pull request #8645 from openlayers/greenkeeper/rollup-plugin-uglify-6.0.0
Update rollup-plugin-uglify to the latest version 🚀
2018-09-21 08:38:45 +02:00
Frédéric Junod bf6ecd7667 Merge pull request #8685 from openlayers/greenkeeper/rollup-0.66.2
Update rollup to the latest version 🚀
2018-09-21 08:28:50 +02:00
Frédéric Junod 725687c987 Merge pull request #8672 from fredj/raster_source_types
Fix source type in Raster source
2018-09-21 08:22:59 +02:00
Frederic Junod 3029a07c1a Fix source type in Raster source
The `sources` is an array of layer or source
2018-09-19 15:34:34 +02:00
Frédéric Junod 978b039ddc Merge pull request #8654 from fredj/import
Remove extra imports in jsdoc
2018-09-19 15:12:10 +02:00
Frédéric Junod 65066a0505 Merge pull request #8655 from fredj/webkit_touch
Remove webkit specific properties from Touch
2018-09-19 15:05:20 +02:00
Frédéric Junod 43bc3020a1 Merge pull request #8663 from schmidtk/ts-vendor-fullscreen
Add vendor-specific TS declarations for the Fullscreen API.
2018-09-19 15:05:05 +02:00
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 9c52e0d6d9 Remove extra imports in jsdoc
The symbols are already imported (es6 import)
2018-09-19 14:52:58 +02:00
Frédéric Junod 23be1ac56d Merge pull request #8668 from fredj/module_doc
Add missing 'module' annotation
2018-09-19 14:07:09 +02:00
Frederic Junod 600d156d01 Add missing 'module' annotation 2018-09-19 11:51:34 +02:00
Frédéric Junod 40227db7be Merge pull request #8656 from openlayers/greenkeeper/rollup-plugin-commonjs-9.1.8
chore(package): update rollup-plugin-commonjs to version 9.1.8
2018-09-19 11:29:51 +02:00
Frederic Junod 54cdaddf3a Don't use Chrome only ALLOW_KEYBOARD_INPUT param 2018-09-19 11:12:27 +02:00
Frédéric Junod 5a62d403c0 Merge pull request #8667 from openlayers/greenkeeper/uglifyjs-webpack-plugin-2.0.1
chore(package): update uglifyjs-webpack-plugin to version 2.0.1
2018-09-19 09:26:28 +02:00
Frédéric Junod eade74384a Merge pull request #8661 from openlayers/greenkeeper/webpack-4.19.1
Update webpack to the latest version 🚀
2018-09-19 09:24:58 +02:00
Frederic Junod 31c392b63c Remove containsXY function from ol/geom/SimpleGeometry
The function is already present in the base class (ol/geom/Geometry)
2018-09-19 08:40:14 +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
Frederic Junod 960b433a2c Remove webkit specific properties from Touch
Remove the following errors from the TypeScript checks:
```
src/ol/pointer/TouchSource.js(231,23): error TS2339: Property 'webkitRadiusX' does not exist on type 'Touch'.
src/ol/pointer/TouchSource.js(232,24): error TS2339: Property 'webkitRadiusY' does not exist on type 'Touch'.
src/ol/pointer/TouchSource.js(233,26): error TS2339: Property 'webkitForce' does not exist on type 'Touch'.
```

The only reference that I've found for these properties is a warning message from Google Chrome:
```
'Touch.webkitRadiusX' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.radiusX' instead.
```
2018-09-18 13:36:38 +02:00
Frédéric Junod 5910e4d207 Merge pull request #8644 from openlayers/greenkeeper/rollup-0.66.0
Update rollup to the latest version 🚀
2018-09-18 09:12:34 +02:00
Frédéric Junod fe0ac80ba4 Merge pull request #8618 from fredj/topojson_types
Use TopoJSON types from @types/topojson
2018-09-14 13:09:43 +02:00
Frederic Junod ba53b5e8aa Quotes topojson properties 2018-09-14 13:02:30 +02:00
Frederic Junod abc3279752 Use TopoJSON types from @types/topojson 2018-09-14 13:02:30 +02:00
Frédéric Junod 84c689d456 Merge pull request #8619 from fredj/typing
Remove wrong Geometry type in KML format
2018-09-14 12:46:31 +02:00
Frederic Junod 3c52757f3f Remove wrong Geometry type in KML format 2018-09-11 08:45:16 +02:00
Frédéric Junod e6e9801a74 Merge pull request #8617 from openlayers/greenkeeper/webpack-4.18.0
chore(package): update webpack to version 4.18.0
2018-09-11 07:50:18 +02:00
Frédéric Junod b5e2b9fe6f Merge pull request #8609 from fredj/import
Remove extra imports in jsdoc
2018-09-11 07:36:58 +02:00
Frederic Junod 81bab31efb Remove extra imports in jsdoc
The symbols are already imported (es6 import)
2018-09-08 11:01:02 +02:00
Frédéric Junod 058f81c0fa Merge pull request #8602 from fredj/layer_map_opt_typedef
Add missing map property in ol/layer/Layer constructor options
2018-09-08 09:59:20 +02:00
Frederic Junod 3c05e09189 Add missing map property in ol/layer/Layer constructor options 2018-09-07 09:05:04 +02:00
Frédéric Junod 9b2dc88151 Merge pull request #8594 from fredj/import
Remove extra imports in jsdoc
2018-09-07 08:24:52 +02:00
Frederic Junod a6861f5f49 Remove extra imports in jsdoc
The symbols are already imported (es6 import)
2018-09-06 16:40:29 +02:00
Frédéric Junod e32b3b5957 Merge pull request #8591 from fredj/textstate_typedef
Add missing properties in TextState typedef
2018-09-06 15:30:41 +02:00
Frédéric Junod e3f13051f6 Merge pull request #8590 from fredj/import
Don't import ourselves
2018-09-06 15:30:22 +02:00