Maximilian Krög
185485b0f7
Replace GeometryLayout enum with typedef
2022-07-19 23:24:22 +02:00
Tim Schaub
d05204f50b
Use union type instead of enum for feature format
2022-07-15 10:48:37 +02:00
Tim Schaub
9a6f8493fb
Use union instead of enum for geometry type
2022-07-15 10:48:37 +02:00
EvertEt
e3d3d24f05
Improve some null types to prepare for strictNullChecks
2022-01-31 19:35:25 +01:00
Maximilian Krög
856f239280
Add function to convert RenderFeature to Feature
2022-01-29 17:52:07 +01:00
Maximilian Krög
f2d65ba0ab
Only set id if it is defined when creating feature
2022-01-29 16:06:01 +01:00
EvertEt
6a26ff4204
Fix MVT incorrect feature data handling
...
Closes #13213
2022-01-11 11:03:24 +01:00
Tim Schaub
c8067bebbb
Add supported media type list to feature formats
2021-09-04 11:17:41 -06:00
Andreas Hocevar
79f5f46d27
Remove lint
2021-06-28 18:10:51 +02:00
Tim Schaub
2e4b2e10ab
Fix additional doc links
2021-06-17 21:59:51 -06:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Guillaume Beraudo
39fc6d7816
Avoid unnecessary transform in MVT format
...
When using ol.render.Feature there was a mandatory geometry transform.
With this change it is now easy to read features directly in the native tile projection.
Since there is no needed transform, there is no need either to define an extent and a world extent, for that use-case.
2020-09-10 17:13:30 +02:00
Andreas Hocevar
40ab8405c1
Do not use a separate isClockwise check
2020-06-23 21:17:59 +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
Andreas Hocevar
b0f20d6bd6
Use imports for enum types
2020-04-15 10:53:23 +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
Frederic Junod
d7c83e4651
Remove all inheritDoc tags from src/ol/format
2020-04-03 07:52:51 +02: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
Frederic Junod
787fd4aa44
Don't dispatch change events when reading features
...
Based on initial work by https://github.com/Jinkwon
2019-01-15 09:08:15 +01:00
Frederic Junod
3b57f6693c
Use 'PBF' type instead of 'Object'
2018-12-17 10:30:48 +01:00
Frederic Junod
483c442621
Remove suppress jsdoc tags
2018-12-17 09:55:28 +01:00
Frederic Junod
d838de32b7
Rework transformWithOptions
...
Create one function per input/output type: `transformGeometryWithOptions` and `transformExtentWithOptions`.
2018-12-16 08:28:26 +01:00
Kevin Schmidt
ddae414ddc
Fix type check errors in ol/format/MVT
2018-10-03 10:41:52 -06:00
Frederic Junod
ae87cad7ef
Use FeatureLike typedef
...
Use `import("./Feature.js").FeatureLike` typedef instead of `import("./Feature.js").default|import("./render/Feature.js").default`
2018-10-02 12:58:56 +02:00
Kevin Schmidt
c5a9d5b0bc
Move FeatureClass and FeatureLike to ol/Feature
2018-10-01 08:59:55 -06:00
Kevin Schmidt
7056eb8536
Allow returning RenderFeature in ol/format/Feature
...
Resolves #8760
2018-10-01 08:24:30 -06:00
Frederic Junod
a6861f5f49
Remove extra imports in jsdoc
...
The symbols are already imported (es6 import)
2018-09-06 16:40:29 +02:00
Tim Schaub
ccfacc5ee6
Transformed types
...
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e ):
jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Frederic Junod
1e332f52d6
Remove unimplemented functions
...
The TypeScript checker complain about it.
It was a workaround for closure-compiler, it's not needed anymore.
2018-07-27 13:10:45 +02:00
Tim Schaub
affbf59b77
Use Object<Foo, Bar> instead of Object.<Foo, Bar>
2018-07-25 18:33:49 -07:00
Tim Schaub
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00
ahocevar
cf15af43e3
Use extends and super for format/MVT
2018-07-17 17:00:43 +02:00
Frederic Junod
540b1793e7
Move jsdoc constructor comments
2018-07-17 10:20:26 +02:00
Tim Schaub
7b4a73f3b9
Automated class transform
...
npx lebab --replace src --transform class
2018-07-16 16:18:16 -06:00
ahocevar
ce97cee6a6
Accept polygons and flat coordinates in MultiPolygon constructor
2018-07-07 17:31:35 +02:00
ahocevar
a09b6c91c9
Accept linestrings and flat coordinates in MultiLineString constructor
2018-07-07 17:01:39 +02:00
ahocevar
3871f7785a
Accept flat coordinates for MultiPoint constructor
2018-07-07 16:26:24 +02:00
ahocevar
160f1bc286
Accept flat coordinates in LineString constructor
2018-07-07 16:04:43 +02:00
ahocevar
c0d04ea077
Do not accept null coordinates in Point constructor
2018-07-07 14:48:46 +02:00
ahocevar
1da43d90af
Allow flat coordinates for Polygon constructor
2018-07-07 14:16:39 +02:00
ahocevar
28409486a5
Make classes in ol/ available as named exports from ol
2018-06-21 18:08:17 +02:00
ThomasG77
cbaa9a7567
Rename defaultDataProjection to dataProjection #8152
2018-06-18 14:08:50 +02:00
Tim Schaub
34c1a6b9ba
Replace type annotations
2018-05-07 21:21:39 -06:00
Tim Schaub
8e7c88d9a5
Updated type annotations
2018-05-07 15:50:56 -06:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
ahocevar
c23a5086ae
Fix enum types
2018-04-21 10:48:38 +02:00
Frederic Junod
7701c5fd3a
Module type for ol.render.Feature
2018-04-20 14:53:56 +02:00
Frederic Junod
d8c0e6e69b
Module type for ol.format.Feature
2018-03-23 08:44:21 +01:00
Frederic Junod
8a4d60192f
Mark optional property with square brackets
2018-03-19 08:29:50 +01:00