Commit Graph

718 Commits

Author SHA1 Message Date
ahocevar 1cdd040c96 Throw when calling abstract methods; fix abstract return types 2018-10-30 18:55:49 +01:00
Frederic Junod 7e142080a1 Remove hasFeatureAtCoordinate from ol/renderer/webgl/ImageLayer 2018-10-17 17:08:53 +02:00
Frederic Junod 648ee4f4a4 Remove forEachFeatureAtCoordinate from ol/renderer/webgl/ImageLayer 2018-10-17 15:44:45 +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
Kevin Schmidt df4ef724b6 Removed unused forEachFeatureAtCoordinate from ol/source/Source
Fixes #8826.
2018-10-17 06:10:10 -06:00
Frederic Junod 041836c645 Change getUid return type from number to string 2018-10-17 10:22:53 +02:00
Tim Schaub 4cb5dc695b Merge pull request #8774 from schmidtk/ts-renderer-webgl
Fix type check errors in ol/renderer/webgl
2018-10-03 03:48:07 -06:00
Kevin Schmidt e30293d07f Fix type check errors in ol/renderer/webgl 2018-10-02 15:36:02 -06: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
Frederic Junod f58cd03f3b Remove extra parameters 2018-09-28 09:13:43 +02:00
William Wall 016436ae18 Check that tile is ImageTile before using it 2018-09-19 15:04:14 -06:00
William Wall 7525c57688 Check the type of the source before using it
This satisfies tsc in addition to making the class more defensive
against source types that it does not support.
2018-09-19 14:39:10 -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
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 321166849b Consistently use lowercase HTML tag names
Unlike HTML, XHTML is case-sensitive.
2018-08-18 12:48:14 +02:00
ahocevar 2f92e48e93 Use super.method instead of prototype.method.call 2018-08-06 15:30:17 +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
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
Jaap Koelewijn 2769953204 Fix JSDoc such that ng build --prod with angular/cli 6.0.8 succeeds again. 2018-07-23 01:05:26 +02:00
ahocevar bbe0a66d07 Set api annotation on classdesc, not constructor 2018-07-21 17:25:22 +02:00
Tim Schaub e5493d1288 Add ol/pixel module for Pixel type 2018-07-19 10:17:00 -06:00
Tim Schaub b8c9125602 Remove lint 2018-07-18 10:35:54 -06:00
Tim Schaub 9ee5edf19c Clean up ol/renderer/webgl classes 2018-07-17 18:23:52 -06:00
Frederic Junod f2d0b11d24 Move jsdoc constructor comments 2018-07-17 09:59:00 +02:00
Frederic Junod 384920734f Fix webgl.js path import in webgl shaders 2018-07-17 09:19:04 +02:00
Frederic Junod 7e3e0e54ca Fix comments indentation 2018-07-17 09:15:16 +02: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
simonseyock fcc7d87b06 Support hitTolerance in forEachLayerAtPixel 2018-06-25 09:09:02 -06:00
ahocevar 28409486a5 Make classes in ol/ available as named exports from ol 2018-06-21 18:08:17 +02:00
ahocevar 64e1139230 Fix remaining type issues 2018-05-17 12:29:22 -05:00
Frederic Junod af1f6836af Shorter module paths for default exports 2018-05-09 11:24:43 +02:00
Tim Schaub 34c1a6b9ba Replace type annotations 2018-05-07 21:21:39 -06:00
Tim Schaub 8e7c88d9a5 Updated type annotations 2018-05-07 15:50:56 -06:00
Frederic Junod 11d9f6de83 Module type for ol.renderer.* 2018-04-26 15:35:48 +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
Frederic Junod 7701c5fd3a Module type for ol.render.Feature 2018-04-20 14:53:56 +02:00
Frederic Junod 3629cef3a5 Module type for ol.render.EventType 2018-04-20 14:31:00 +02:00
Tim Schaub 91f2101cab Remove check for map renderer type 2018-04-14 10:01:07 -06:00
Tim Schaub be35f82ae5 Explicit map renderer construction 2018-04-14 09:38:40 -06:00
Frederic Junod 22ace7228f Don't import from 'functions' multiple times 2018-04-04 13:51:47 +02:00
Frederic Junod 7cbc22fece Module type for ol.style.* 2018-03-27 15:09:52 +02:00
Frederic Junod 2fc9cb691d Module type for ol.webgl.Vertex 2018-03-23 13:25:47 +01:00
Frederic Junod 873b01bba5 Move WebGL typedefs out of src/ol/typedefs.js 2018-03-23 13:22:51 +01:00