Files
openlayers/examples
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
..
2019-05-17 14:48:03 +02:00
2019-05-20 10:33:59 -06:00
2015-11-18 09:56:16 -07:00
2015-11-18 09:56:15 -07:00
2016-03-30 11:45:20 -07:00
2017-09-07 09:16:03 +02:00
2019-05-27 11:34:33 +02:00
2018-03-29 08:35:09 +02:00
2018-05-07 15:33:14 -06:00
2015-11-18 09:56:15 -07:00
2018-11-16 10:47:07 +01:00
2019-05-17 14:27:20 +02:00
2018-04-23 20:51:01 -06:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:15 -07:00
2015-12-07 13:53:37 +01:00
2015-11-18 09:56:15 -07:00
2019-05-17 15:41:03 +02:00
2018-04-23 20:51:01 -06:00
2017-01-19 20:50:07 +07:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:15 -07:00
2018-04-23 20:51:01 -06:00
2016-12-30 12:51:32 +01:00
2019-06-14 12:53:52 +02:00
2016-04-13 09:25:37 +02:00
2019-06-14 12:53:52 +02:00
2018-04-23 20:51:01 -06:00
2018-12-07 10:55:26 +01:00
2019-05-09 18:00:18 +02:00
2018-10-10 15:11:07 +02:00
2017-12-12 06:53:18 -07:00
2018-05-07 15:33:14 -06:00
2015-11-18 09:56:15 -07:00
2016-07-01 11:38:52 +02:00
2018-04-23 20:51:01 -06:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:15 -07:00
2019-02-27 18:31:50 +01:00
2017-12-20 23:48:34 -07:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:15 -07:00
2017-01-02 23:03:03 +01:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:15 -07:00
2015-08-21 11:28:08 +02:00
2019-06-21 14:33:26 +02:00
2019-06-21 14:33:26 +02:00
2018-04-23 20:51:01 -06:00
2015-07-21 17:12:06 -06:00
2018-05-07 15:33:14 -06:00
2017-12-12 06:55:17 -07:00
2015-08-03 21:33:46 -06:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:15 -07:00
2019-05-13 14:16:18 +02:00
2019-07-26 13:34:28 +01:00
2019-07-26 14:02:37 +01:00
2019-07-26 16:31:20 +01:00
2015-11-18 09:56:16 -07:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:15 -07:00
2016-05-10 10:21:44 +02:00
2015-11-18 09:56:15 -07:00
2019-06-14 12:53:52 +02:00
2017-04-19 14:43:38 +02:00
2018-05-07 15:33:14 -06:00
2017-01-02 23:03:03 +01:00
2019-06-14 12:53:52 +02:00
2019-02-27 18:31:50 +01:00
2015-12-11 10:14:02 +01:00
2018-04-23 20:51:01 -06:00
2018-04-23 20:51:01 -06:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:16 -07:00
2015-11-18 09:56:15 -07:00
2017-04-24 08:58:19 +02:00
2015-11-18 09:56:15 -07:00
2015-11-18 09:56:15 -07:00
2019-05-15 16:49:38 -06:00
2018-05-07 15:33:14 -06:00
2018-04-23 20:51:01 -06:00
2015-11-18 09:56:15 -07:00
2018-12-07 10:55:26 +01:00

Code examples

The .html files in this folder are built by applying the templates in the templates folder. Examples have YAML front-matter headers with the following properties:

  • layout: The template from the templates directory to use for this example
  • title: The title of the example
  • shortdesc: A short description for the example index
  • docs: Documentation of the example. Can be markdown.
  • tags: Tags for the example index
  • resources: Additional js or css resources required by the example. This is a YAML list of URLs.