Commit Graph

103 Commits

Author SHA1 Message Date
Andreas Hocevar
57f147988d Use union type for source state 2022-07-15 10:46:44 +02:00
Tim Schaub
e2883fb658 Deprecate the imageSmoothing option for sources 2021-12-27 15:30:48 -07:00
Tim Schaub
8d8632bff7 Allow interpolation to be configured for data tile sources 2021-12-27 10:11:36 -07:00
Tim Schaub
f336cf30b0 Additional types for WebGL renderer, sources, and tiles 2021-11-16 11:24:41 -07:00
mike-000
07ea4ac1c8 Update description for zDirection 2021-07-09 11:32:26 +01:00
Andreas Hocevar
79f5f46d27 Remove lint 2021-06-28 18:10:51 +02:00
Andreas Hocevar
0167c2760e Grow cache size dynamically 2020-07-11 18:04:07 +02:00
Alexis
2f03706e80 docs: fix opaque's jsdoc default value to false
fix #10964
2020-05-17 14:54:45 +02:00
mike-000
c0577c3293 Include context options in reprojection cache key
fix prettier
2020-05-04 16:45:29 +01:00
mike-000
76d2d6e737 Include context options in reprojection cache key
override the inherited getKey() method
2020-05-04 16:27:27 +01:00
mike-000
9e160e75f9 Include context options in reprojection cache key
use reprojection tileCoordKey instead of source key
2020-05-04 14:31:46 +01:00
mike-000
9bf037947c Include context options in reprojection cache key
fix prettier
2020-05-04 12:53:24 +01:00
mike-000
b2a1540ee0 Include context options in reprojection cache key 2020-05-04 12:47:15 +01: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
mike-000
a1dd9cacf7 fix return type 2020-04-04 14:00:20 +01:00
Frédéric Junod
d8cbda18a7 Merge pull request #10840 from fredj/remove_inheritDoc
Remove inherit doc
2020-04-04 14:06:43 +02:00
Frederic Junod
615ae71a8f Remove all inheritDoc tags from src/ol/source 2020-04-03 07:56:58 +02:00
mike-000
0ba659b6af make context options available to renderer 2020-04-02 20:09:58 +01:00
mike-000
1cd4d37c45 change option name to imageSmoothing 2020-04-02 18:44:07 +01:00
mike-000
7af9697b40 Merge branch 'master' into patch-4 2020-02-28 12:20:06 +00:00
Andreas Hocevar
a072e3acea Ignore user provided tile cache size when too small 2020-02-27 13:41:21 +01:00
mike-000
560931e976 Set reprojection canvas context options
Add example of disabling image smoothing

Add test for reprojection context options
2019-12-20 11:41:42 +00:00
ahocevar
ebfb20440a Simplify events and store listeners only in one place 2019-09-04 16:48:43 +02:00
ahocevar
e07ff9c04e Make zDirection configurable on tile source 2019-07-30 16:50:01 +02:00
ahocevar
0f217392d7 Adjust tile cache size when too small 2019-03-12 00:19:13 +01:00
Frederic Junod
1ba85a11e9 Change 'cacheSize' description in typedef 2019-01-25 16:50:17 +01:00
ahocevar
b6d115d868 Make tile cache smaller and screen size dependant 2019-01-21 22:35:48 +01:00
Frederic Junod
087b024a24 Change projection property in sources options to optional
The `projection` property is not mandatory, the view's projection is used if not provided.
2018-11-21 16:23:29 +01:00
Frederic Junod
0189e8345d Remove WebGL references in comments 2018-11-16 14:05:06 +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
Frederic Junod
d294b87358 Use super.method instead of prototype.method.call 2018-10-23 09:15:51 +02:00
Frederic Junod
041836c645 Change getUid return type from number to string 2018-10-17 10:22:53 +02:00
Andreas Hocevar
6e7558e954 Merge pull request #8804 from notnotse/issue/8621-disable-collapsible-attributions-for-osm
Add possibility to disable collapsible attributions from Source
2018-10-14 12:16:36 +02:00
ahocevar
af4e5ca7cf Improve JSDoc 2018-10-14 09:57:26 +02:00
ahocevar
9163558511 Replace instanceof checks with other logic 2018-10-12 20:35:59 +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
7dbe38358a Replace TileClass with typeof ImageTile 2018-10-01 08:37:01 -06:00
Kevin Schmidt
accdc79c05 Use typeof to simplify JSDoc class types 2018-10-01 08:30:06 -06:00
Frederic Junod
3d9b1af105 Remove 'extent' properties from ol/source/Tile children classes 2018-09-28 09:13:43 +02:00
Frederic Junod
d8ee6acefa Remove extra imports in jsdoc 2018-09-27 10:00:02 +02:00
William Wall
adfc174af3 Ensure image is Image or Video before settings src
Canvas elements do not contain the 'src' property.
2018-09-19 12:12:50 -06:00
Dmitry Fedorov
7d77d05a57 fix dangling comma 2018-09-14 13:58:13 -07: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
Frederic Junod
3c02bd15fb Add missing 'extent' property in TileImage constructor 2018-09-03 09:41:00 +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
affbf59b77 Use Object<Foo, Bar> instead of Object.<Foo, Bar> 2018-07-25 18:33:49 -07:00