Andreas Hocevar
00b7bc60ac
Use Buffer and data uri when Blob is not available
2022-01-01 22:47:22 +01:00
Tim Schaub
0cc3bae8fe
Preserve the drawing buffer by default for WebGL layers
2021-12-18 12:25:03 -07:00
Tim Schaub
a2f3c02ac5
Allow canvas reuse for WebGL layers
2021-11-14 12:34:14 -07:00
Tim Schaub
60790fea18
Only trigger change event if animating a tile transition
2021-10-10 13:03:09 -06:00
Simon Seyock
ce4f6ccb0d
OnSignatures return more specific type
2021-09-10 16:11:38 +02:00
Tim Schaub
de9ff20f65
Additional docs and type checking for raster source
2021-08-26 11:04:07 -06:00
Andreas Hocevar
f8ac74fa1b
Merge pull request #12597 from mwerlitz/12596_rastersource_does_not_end_tile_transition
...
#12596 fix RasterSource does not end Tile transition
2021-08-05 15:19:16 +02:00
mwerlitz
aea11b773c
fix whitespace error
...
Co-authored-by: Andreas Hocevar <andreas.hocevar@gmail.com >
2021-08-05 13:02:26 +02:00
Mathias Werlitz
c72a31a226
#12596 fix RasterSource does not end Tile transition
2021-08-04 12:20:42 +02:00
Andreas Hocevar
2038a93880
Add on(), un() and once() signatures for ol/source/Raster
2021-08-01 10:28:02 +02:00
Andreas Hocevar
a26fe5f31b
Make Raster source work as generics type for Image layer
2021-07-22 12:57:39 +02:00
Tim Schaub
adff6f0e77
Avoid creating context until needed
2021-07-19 09:08:21 -06:00
Andreas Hocevar
79f5f46d27
Remove lint
2021-06-28 18:10:51 +02:00
mike-000
f7e5c3cb84
Fix broken ImageData links
2021-05-26 22:45:22 +01:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Tim Schaub
19bb3f8c88
Consistent use of Array and Object types
2021-02-02 13:53:10 -07:00
Tapio Koskinen
3983500601
Don't try to get image data for zero sized images
...
Otherwise "context.getImageData(0, 0, width, height)" throws an exception.
2020-10-19 13:57:30 +03:00
Andreas Hocevar
eba0ba6ae0
Merge pull request #11592 from ahocevar/new-declutter
...
New decluttering implementation
2020-10-07 10:33:33 +02:00
Andreas Hocevar
8e862766fc
New decluttering implementation
2020-09-27 21:13:26 +02:00
Andreas Hocevar
7a5e0db59f
Remove decluttering for a fresh start
2020-09-18 23:31:20 +02:00
Rens Groothuijsen
a691b1205e
Send correct buffer slices to worker
2020-09-16 01:04:16 +02:00
EvertE
27983a8f8d
Add dispose API docs to raster source ( #10856 )
2020-07-08 09:57:07 +02:00
Tim Schaub
fc896eb8c7
Call disposeInternal on the super
2020-05-17 12:17:42 -06:00
Tim Schaub
b16c2e0062
Include pixelworks and terminate workers before creating new ones
2020-05-16 22:19:40 -06: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
60c2c4e088
Get rid of map focus
2019-09-24 16:02:36 +02:00
Simon Seyock
acac7a9403
remove skipFeature logic
2019-09-24 10:12:30 +02:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
Tim Schaub
deb00f20fe
Include full filename in import specifier
2019-05-29 08:51:10 -06:00
Frederic Junod
40c49a9ce5
Remove layerState param from prepareFrame and renderFrame function
2019-05-25 07:19:10 +02:00
ahocevar
7895b16043
Reuse container for raster and vector image layers
2019-05-22 16:47:20 +02:00
Frederic Junod
0e08d9e0fd
Add empty declutterItems in RasterSource frameState
...
To please the type checker.
2019-05-07 13:52:25 +02:00
ahocevar
887d8e8a90
Disable opacity transition for raster source sources
2019-04-17 17:38:50 -07:00
Kai Volland
62ebe29ead
Enables attributions for the RasterSource
...
Attributions included in the passed sources are concatenated.
2019-03-25 11:47:45 +01:00
ahocevar
37eb6de37d
JSDoc fixes
2019-01-30 09:42:20 +01:00
Frederic Junod
5195adea85
Remove 'layerStates' property from the FrameState
2018-12-18 09:49:38 +01:00
Tim Schaub
358d86c33e
Raster source listens for layer change
2018-11-16 18:10:10 +01:00
Tim Schaub
f416cf742d
Workaround for raster source
2018-11-16 14:56:48 +01:00
Tim Schaub
2ec509fbca
Add an image vector layer for rendering vectors to an image
2018-11-12 14:54:11 +01:00
Frederic Junod
c12b41f8c6
Simplify import path in ol/source/
2018-11-05 16:26:45 +01:00
Frederic Junod
041836c645
Change getUid return type from number to string
2018-10-17 10:22:53 +02:00
ahocevar
9163558511
Replace instanceof checks with other logic
2018-10-12 20:35:59 +02:00
William Wall
0bbbd33bb1
Fix type check in Raster source
2018-09-28 09:38:33 -06:00
Frederic Junod
7eee6ba07a
Remove '=' from type when the parameter is not optional
2018-09-27 10:00:02 +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
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
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
023bb638b2
Call super before accessing this in raster source
2018-07-18 00:53:17 -06:00