mike-000
e6b8fed64a
Reset transform in addition to globalAlpha
2022-08-08 10:05:36 +01:00
Amir
1acf62b6e6
Reset globalAlpha back to its initial after mutating it for drawing layers
2022-02-09 01:50:00 +02:00
Andreas Hocevar
670ea6db9d
Use html2canvas instead of dom-to-image
2021-06-20 23:41:44 +02: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
0b893f11d3
Fix IE compatibility. Add opacity handling.
...
querySelectorAll().forEach() isn't supported by IE.
Add opacity to the vector layer and handle it in the output.
2020-02-13 18:13:07 +00:00
Andreas Hocevar
4db204698e
More compatible way of exporting a map as pdf
2020-01-21 22:27:28 +01:00
mike-000
7cdfc33d15
Export PDF example extent corrections
...
Fixes #9460 and #9665
Replace calculateExtent and fit with getResolution and setResolution as the former do not produce the desired result when the view is rotated.
Export the viewport instead of the map div (which doesn't resize) and specify the width and height in the export options
This is a minimal fix for the two issues. Further enhancement including a fallback to export layer canvases where the browser doesn't support html-to-image could be done separately if necessary.
2019-08-08 19:41:51 +02:00
Frederic Junod
2f6f110fa3
Remove constrainResolution property in fit options
2019-04-23 10:19:21 +02:00
Frederic Junod
93c25d4f82
Export the map viewport instead of the layers
...
And filter out the controls elements
2019-04-23 10:17:16 +02:00
Frederic Junod
2ac1095c52
Use html-to-image instead of dom-to-image-more
...
dom-to-image-more do not support safari
2019-04-23 09:58:31 +02:00
Umberto Minora
cefb5d4d32
fixed indents checked with npm run lint
2019-02-19 11:25:12 +01:00
Umberto Minora
8eadb3d04c
Fixed indent spaces so that hopefully ci/circleci: build does not fail
2019-02-19 10:57:21 +01:00
Umberto Minora
a6023a710a
Cleared mixed spaces and tabs
2019-02-19 10:48:11 +01:00
Umberto Minora
33ac3e34ee
constrainResolution: false on view fit instead of setting the zoom
2019-02-19 10:38:23 +01:00
Firstname Lastname
df847ae35c
Fix zoom after export to PDF is done
2019-02-18 22:12:38 +01:00
Frederic Junod
d426e80c6b
Use dom-to-image library in export-pdf example
...
fixes #9100
2019-01-07 10:35:56 +01:00
Frederic Junod
759b317707
Fix type notation in examples
2018-12-07 10:55:26 +01:00
Frederic Junod
4a3f70c09b
Revert "Simplify import path in examples"
...
This reverts commit 79c8afdba8 .
2018-11-27 16:49:55 +01:00
Frederic Junod
79c8afdba8
Simplify import path in examples
...
To have the same path (starting with `ol/`, without `.js`) as in the documentation.
The support was added in the webpack config in #8928
2018-11-26 17:18:52 +01:00
ahocevar
2768884044
Make new behavior overridable; update docs and examples
2018-10-14 12:10:40 +02:00
ahocevar
1baa8be269
Add 'rendercomplete' event
2018-08-22 09:53:24 +02:00
Frederic Junod
7f0043694d
Remove NOCOMPILE from examples
2018-05-14 14:42:57 +02:00
Tim Schaub
cfe88663aa
Update type annotations in examples
2018-05-07 15:41:33 -06:00
Tim Schaub
910004b940
Re-export layer constructors from ol/layer
2018-04-24 09:06:30 -06:00
Tim Schaub
a5d3e91f7d
Re-export source constructors from ol/source
2018-04-23 17:34:10 -06:00
Erik Timmers
b5d02dad47
Fix freeze on export PDF example
...
The PDF was only generated AFTER requesting new tiles. When no new tiles where needed,
the callback never completed. Also fixed fitting the correct extent.
Fixes #7830 .
2018-03-18 12:34:24 +01:00
Tim Schaub
ad62739a6e
Use blocked scoped variables
...
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub
5f62d2ecfe
Rename _ol_source_OSM_ to OSM
2018-01-10 09:36:28 -07:00
Tim Schaub
ca6ea355e6
Rename _ol_source_Vector_ to VectorSource
2018-01-10 09:36:28 -07:00
Tim Schaub
45c6e43b42
Rename _ol_layer_Vector_ to VectorLayer
2018-01-10 09:36:23 -07:00
Tim Schaub
1c1f008238
Rename _ol_View_ to View
2018-01-10 09:35:42 -07:00
Ron Young
b8b64ac655
rename in examples
2017-12-21 23:11:42 -07:00
Marc Jansen
25946b4541
Rename _ol_layer_Tile_ to TileLayer
2017-12-19 08:45:00 +01:00
Frederic Junod
da67764437
Named export for ol/control
2017-12-17 18:53:50 +01:00
Tim Schaub
9889370c08
Rename _ol_formnat_WKT_ to WKT
2017-12-17 02:18:33 -07:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Frederic Junod
8aa591c04d
Remove unneeded type cast from examples
2017-11-22 14:00:00 +01:00
Andreas Hocevar
20155ce2a7
Remove the requirement to provide a size to ol.View#fit()
2016-12-16 14:52:09 +01:00
Frederic Junod
044f6638ea
Remove externs/jspdf.js and add NOCOMPILE to examples/export-pdf.js
2016-04-13 09:00:02 +02:00
Tim Schaub
8c38d22b60
Lint free examples
2016-01-11 18:56:09 -08:00
Erik Timmers
004e7ad0d0
Add PDF example
2015-12-07 13:53:37 +01:00