Commit Graph

21 Commits

Author SHA1 Message Date
mike-000
95702648b2 simplify scale calculation
update tests to reflect more accurate calculation
2020-08-03 23:03:56 +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
Andreas Hocevar
ac50cc3460 New eslint config with no-multi-assign 2019-11-02 15:20:21 +01:00
Tim Schaub
3b02f5597e Remove called assert extension 2019-09-28 18:55:38 +02:00
simonseyock
89e8d6d693 getGetLegendRequestUrl accepts a LAYER parameter now 2019-09-19 14:21:07 +02:00
Simon Seyock
b2885e86fb Renaming of getGetFeatureInfoUrl and getGetLegendGraphicUrl 2019-09-18 10:48:18 +02:00
simonseyock
c0000e745e make resolution in getGetLegendGraphicUrl optional 2019-07-08 15:14:13 +02:00
Kai Volland
f493f01bd0 Introduces getGetLegendGraphic method
Adds the `getGetLegendGraphic` method to `ImageWMS` and `TileWMS` source.
Also adds an example and corresponding tests.
2019-07-08 15:14:13 +02:00
ahocevar
8557bd96b5 Test refresh() for image sources 2019-02-20 20:36:40 +01:00
Andreas Hocevar
da8874862d Make sure the requested image size matches the desired ratio 2018-02-10 11:11:16 +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
c7b0cf51ad Rename _ol_source_ImageWMS_ to ImageWMS 2018-01-10 09:36:28 -07:00
Tim Schaub
6f72ffe498 Named exports from ol/proj 2017-12-14 13:08:40 +01:00
Tim Schaub
7f47883c48 Transformed 2017-12-12 06:53:18 -07:00
Kogis IWI
232f56e229 Fix #7304: Re-calculate the resolution when the WMS source is reprojected 2017-10-03 17:25:44 +02:00
Tim Schaub
a3e3e99baa Get rid of useless test exports 2017-08-17 15:16:58 -04:00
Marc Jansen
d0ef05977b Autofix indentation issues (eslint --fix) 2017-06-19 11:58:00 +02:00
Andreas Hocevar
28fb57ebeb Fix request image size caclulation 2017-03-23 22:26:58 +01:00
Andreas Hocevar
47e1354610 Ensure WMS width and height are always integers 2017-02-01 14:00:20 +01:00
Tim Schaub
ed5dbd1293 Put test requires on top 2016-08-08 09:58:11 -06:00
Tim Schaub
e07596846d Move source files so they are named like their provides 2016-08-07 10:49:11 -06:00