Commit Graph

737 Commits

Author SHA1 Message Date
Simon Seyock
7fc664c3fe sources and layers. 2021-07-10 11:28:48 +02:00
Simon Seyock
c8f43050c4 Revert "Merge pull request #12416 from ahocevar/eventtype-generics"
This reverts commit b6c143deb2, reversing
changes made to 7777821df5.
2021-07-10 11:28:46 +02:00
Andreas Hocevar
79f5f46d27 Remove lint 2021-06-28 18:10:51 +02:00
Andreas Hocevar
b6c143deb2 Merge pull request #12416 from ahocevar/eventtype-generics
Use generics to limit event types in on(), once() and un()
2021-06-21 09:36:25 +02:00
Andreas Hocevar
4dd75d75e3 Merge pull request #12414 from ahocevar/change-event-type
Replace getChangeEventType() with add/removeChangeListener methods
2021-06-21 08:04:23 +02:00
Andreas Hocevar
018ad97f25 Use generics to limit event types in on(), once() and un() 2021-06-20 22:25:47 +02:00
Andreas Hocevar
343e0ffce9 Replace getChangeEventType() with add/removeChangeListener methods 2021-06-19 23:16:26 +02:00
Tim Schaub
2e4b2e10ab Fix additional doc links 2021-06-17 21:59:51 -06:00
Simon Seyock
a211666fd8 Added generic source option to layer option types 2021-06-17 18:54:28 +02:00
Andreas Hocevar
8520a18eae Merge pull request #12219 from ahocevar/object-properties
Add 'properties' to Layer constructors
2021-06-17 08:44:53 +02:00
MoonE
da845c71c8 Merge pull request #12284 from MoonE/layer-group-inherit-zindex
Layers should inherit group z-index
2021-06-17 00:01:09 +02:00
Andreas Hocevar
432bd7f851 Allow custom properties in the constructor using the properties option 2021-05-24 23:23:51 +02:00
Maximilian Krög
5c7e499317 More consistent example for ol/layer/MapboxVector 2021-05-19 19:42:40 +02:00
Maximilian Krög
de4a93709a Inherit layer group zIndex 2021-05-13 01:44:08 +02:00
Tim Schaub
f08f31101c Lowercase module names for modules without a default export 2021-05-03 07:32:12 -06:00
Andreas Hocevar
1530037765 Fix how renderMode is derived from options 2021-03-29 23:12:21 +02:00
Marc Jansen
df23c234dc Fix common misspellings
These were found with codespell.
2021-03-05 22:53:35 +01:00
Maximilian Krög
29349d275e Always return Promise from getFeatures 2021-02-24 18:37:30 +01:00
Andreas Hocevar
45ba5792cc Remove renderMode: 'image' for vector tile layers 2021-02-06 14:57:21 +01:00
Simon Seyock
2ad5789797 Add descriptions for properties. 2021-02-04 18:19:33 +01:00
Simon Seyock
8facb252f1 Replace google closure syntax = with brackets around name 2021-02-03 14:06:02 +01:00
Simon Seyock
808868ad1f Fixed some jsdoc issues. 2021-02-02 12:15:30 +01:00
Tim Schaub
aace9ea711 Merge pull request #11948 from simonseyock/vector-source-load-events-doc
Improve layer typings
2021-01-29 05:57:52 -07:00
Simon Seyock
419578a96c Improve layer typings 2021-01-26 15:49:39 +01:00
Andreas Hocevar
ffdece9dac Fix documentation of image render mode for vector tile layers 2020-10-16 10:31:39 +02:00
Andreas Hocevar
8e862766fc New decluttering implementation 2020-09-27 21:13:26 +02:00
Frederic Junod
142fbc0811 Use the className param in ol.layer.Heatmap 2020-09-11 08:23:15 +02:00
yonzmeer
4001b0c0b9 Remove update while interacting/animating from VectorImage
as described in issue 11250
2020-07-15 20:15:22 +03:00
Andreas Hocevar
04bc9ff0df Improve types and docs for getStyle/setStyle 2020-06-11 13:53:59 +02:00
Tim Schaub
4d9975754f Mapbox vector layer 2020-05-03 16:07:27 -06:00
Andreas Hocevar
bcc94baf22 Fix layer renderer scope issues 2020-04-15 10:53:26 +02:00
Andreas Hocevar
b0393a098a Fix WebGLPoints layer scope issue 2020-04-15 10:53:25 +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
15d36a22f0 Remove all inheritDoc tags from src/ol/layer 2020-04-03 07:56:58 +02:00
mike-000
bfca3cf713 change loader check back to equal extents 2020-03-31 17:00:12 +01:00
mike-000
929b9f4068 change loader check back to equal extents 2020-03-31 16:55:23 +01:00
mike-000
149ca7efad return previous extent if extents are approx equal 2020-03-31 16:26:30 +01:00
Andreas Hocevar
cdafc4fa05 Add approximatelyEquals function for comparing extents 2020-03-31 16:11:06 +02:00
mike-000
6013763480 replace containsExtent with equals in strategy 2020-03-31 16:03:14 +02:00
Andreas Hocevar
098885a006 New wrapX functions for coordinate and extent 2020-03-31 16:03:12 +02:00
mike-000
48b79cf7d1 only use one extent if two are passed 2020-03-31 16:03:12 +02:00
mike-000
3d8495742b Simplify following renderer changes 2020-03-31 16:03:11 +02:00
Andreas Hocevar
190cd202a1 Always use load extent with real world center 2020-03-31 16:03:11 +02:00
mike-000
b560dab513 Set loadWrapX: false in source 2020-03-31 16:03:09 +02:00
mike-000
f6ede1a9c0 handle wrapX without calculating excess meridians
override extent validation only if the extent includes parts of two worlds
2020-03-31 16:03:08 +02:00
mike-000
bad0ff38ca handle wrapX without calculating excess meridians
avoid calculating more meridians or longer parallels than necessary when viewport extent includes a wrapped world
2020-03-31 16:03:08 +02:00
mike-000
4ca966bd92 show labels in wrapped worlds
test labels in wrapped world
2020-03-11 16:06:31 +00:00
mike-000
b8e34ef5bf rename some variables and add comments 2020-02-27 19:12:40 +00:00
mike-000
591e5ce01b More validation. Handle voids in some projections.
Handle NaN latitude transform results at void centers of some projections (e.g. Pole LAEA).
Clamp latitudes to not go beyond the poles when calculating intervals.
Further improve polar projections by checking if extent contains max and min intersection coordinates when calculating max and min.
2020-02-26 22:17:49 +00:00