Commit Graph

20 Commits

Author SHA1 Message Date
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
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
22fce4f97b Rename _ol_Feature_ to Feature 2018-01-10 09:35:35 -07:00
Tim Schaub
f2e8d39d1f Rename _ol_format_TopoJSON_ to TopoJSON 2017-12-17 02:07:34 -07:00
Tim Schaub
96a05fa0ed Rename _ol_format_Feature_ to FeatureFormat 2017-12-17 01:41:11 -07:00
Tim Schaub
9d396280b0 Rename _ol_geom_MultiPolygon_ to MultiPolygon 2017-12-14 08:56:51 -07:00
Tim Schaub
c502f016f7 Rename _ol_geom_Polygon_ to Polygon 2017-12-14 08:56:12 -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
Tim Schaub
a3e3e99baa Get rid of useless test exports 2017-08-17 15:16:58 -04:00
Andreas Hocevar
7ecb2c0185 Add layerName and layers options to ol.source.TopoJSON 2017-05-20 16:48:42 +02:00
Tim Schaub
ed5dbd1293 Put test requires on top 2016-08-08 09:58:11 -06:00
Frederic Junod
c6803838ab Allow TopoJSON features with id equal to 0 2015-10-28 14:56:33 +01:00
tsauerwein
b05f880f7c Implement read/write transforms for ol.format.KML 2014-08-08 17:10:11 +02:00
tsauerwein
e446738491 Implement read transforms for ol.format.TopoJSON 2014-08-08 11:43:53 +02:00
Frederic Junod
5c4adebb7d Add more topojson tests 2014-03-26 14:59:08 +01:00
Tom Payne
ea8944c755 Rename ol.format.Format to ol.format.Feature 2014-02-28 13:05:57 +01:00
Antoine Abt
c8e7c9f64e Add support for reading id & properties 2014-01-16 10:25:19 +01:00
Antoine Abt
1dce04b6ec Make TopoJSON tests use new format 2014-01-16 10:25:19 +01:00
Antoine Abt
d2e8b9f3bb Bring tests back 2014-01-16 10:25:18 +01:00