Andreas Hocevar
79c318d262
Make test polygons squares
2020-06-23 22:01:06 +02:00
songyumeng
b606878d57
fixes #8148
...
judge whether it is multiPolygon or Polygon:https://github.com/mapbox/vector-tile-js/blob/a9a9102/lib/vectortilefeature.js#L195-L223
2020-06-23 20:15:52 +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
Tim Schaub
08c494dd11
Allow an arbitrary tag to be used as feature id
2019-06-24 12:01:12 -06:00
ahocevar
b2722542fe
Simplify vector tile projection handling
2019-03-10 09:37:58 +01:00
Nicholas L
7097b530f3
Rename extent
2018-02-19 20:33:03 +13:00
Tim Schaub
7383371d58
Remove private static members from MVT format
2018-02-11 11:19:20 -07: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
b7718fb0ed
Rename _ol_render_Feature_ to RenderFeature
2018-01-11 13:45:50 -07:00
Tim Schaub
22fce4f97b
Rename _ol_Feature_ to Feature
2018-01-10 09:35:35 -07:00
Tim Schaub
cdf7b3276b
Rename _ol_format_MVT_ to MVT
2017-12-17 02:00:48 -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
eadec38ae2
Rename _ol_geom_Point_ to Point
2017-12-14 08:49:10 -07:00
Andreas Hocevar
5a4887e300
Remove default export from ol/extent
2017-12-13 22:05:10 +01:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Andreas Hocevar
3cb5060497
Parse PBF directly in ol.format.MVT
...
This change also fixes a previous issue, where MultiPolygon geometries for
ol.Feature features were never created.
2017-08-29 08:51:06 +02:00
Tim Schaub
a3e3e99baa
Get rid of useless test exports
2017-08-17 15:16:58 -04:00
Tim Schaub
73afb656d7
Test fixes
2017-08-16 14:24:42 -04:00
Andreas Hocevar
b3be7e7ba9
Get tilePixelRatio from MVT tiles
2017-08-02 20:11:14 +02:00
Andreas Hocevar
df72d7b20f
Add getId() method for ol.render.Feature
2017-05-11 15:54:20 +02:00
Tim Schaub
3f973e6fa3
Allow single (non-default) import from dependencies
2017-05-02 15:04:20 -06:00
Tim Schaub
584d4f67bd
Uppercase for PBF constructor
2017-05-02 15:04:20 -06:00
Andreas Hocevar
4f5a4ca031
Set geometry name properly
2016-12-15 17:18:53 +01:00
Frederic Junod
61fcc4a326
Only test ol.format.MVT if ArrayBuffer.isView is supported
2016-10-20 12:18:23 +02:00
Tim Schaub
ed5dbd1293
Put test requires on top
2016-08-08 09:58:11 -06:00
Tim Schaub
e8205a8293
Rename format tests for consistency
2016-08-07 10:49:10 -06:00