Compare commits

...

807 Commits

Author SHA1 Message Date
Andreas Hocevar
7bf014f747 Updates for the 6.13.0 release 2022-02-27 17:35:57 +01:00
Andreas Hocevar
b15318b6bb Merge pull request #13418 from ahocevar/ol-mapbox-style-rich-text
Update ol-mapbox-style for rich text labels support
2022-02-27 16:36:40 +01:00
Andreas Hocevar
49b5ad6eb9 Update ol-mapbox-style for rich text labels support 2022-02-27 16:31:15 +01:00
Andreas Hocevar
8672e7e97c Merge pull request #13417 from ahocevar/geotiff-resolution-tolerance
Increase GeoTIFF resolutions tolerance
2022-02-27 16:05:35 +01:00
Andreas Hocevar
a1aff21661 Merge pull request #13415 from mike-000/graticule
Check for graticule resolution change and fix unrotated size
2022-02-24 18:18:08 +01:00
Andreas Hocevar
7b880b27d1 Increase GeoTIFF resolutions tolerance 2022-02-24 17:47:21 +01:00
mike-000
69f8a824ec Check for resolution change and fix unrotated size
Calculate unrotated width and height from frame size and resolution
Check for changes in resolution as well as extent when rendered extent fits inside frame
2022-02-24 10:53:32 +00:00
Andreas Hocevar
28c1874241 Merge pull request #13410 from ahocevar/rich-text-labels
Rich text labels
2022-02-23 17:42:09 +01:00
Andreas Hocevar
18f06b8b9a Rich text labels 2022-02-23 12:36:56 +01:00
Tim Schaub
96a90fb14e Merge pull request #13402 from openlayers/dependabot/npm_and_yarn/express-4.17.3
Bump express from 4.17.2 to 4.17.3
2022-02-21 19:22:31 -08:00
Tim Schaub
88624b0737 Merge pull request #13401 from openlayers/dependabot/npm_and_yarn/puppeteer-13.3.2
Bump puppeteer from 13.3.1 to 13.3.2
2022-02-21 19:17:08 -08:00
dependabot[bot]
799bf7b92a Bump express from 4.17.2 to 4.17.3
Bumps [express](https://github.com/expressjs/express) from 4.17.2 to 4.17.3.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.2...4.17.3)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-22 03:16:41 +00:00
Tim Schaub
bf175f1fdb Merge pull request #13403 from openlayers/dependabot/npm_and_yarn/mocha-9.2.1
Bump mocha from 9.2.0 to 9.2.1
2022-02-21 19:15:48 -08:00
Tim Schaub
839ec1f411 Merge pull request #13404 from openlayers/dependabot/npm_and_yarn/webpack-5.69.1
Bump webpack from 5.68.0 to 5.69.1
2022-02-21 19:15:18 -08:00
Tim Schaub
ec07cfc2d9 Merge pull request #13406 from openlayers/dependabot/npm_and_yarn/ol-mapbox-style-6.9.0
Bump ol-mapbox-style from 6.8.3 to 6.9.0
2022-02-21 19:14:15 -08:00
Tim Schaub
7be8173206 Merge pull request #13405 from openlayers/dependabot/npm_and_yarn/rollup-2.67.3
Bump rollup from 2.67.1 to 2.67.3
2022-02-21 19:13:26 -08:00
Tim Schaub
31497aa084 Merge pull request #13407 from openlayers/dependabot/npm_and_yarn/babel/core-7.17.5
Bump @babel/core from 7.17.2 to 7.17.5
2022-02-21 19:12:50 -08:00
dependabot[bot]
6866d4fcee Bump @babel/core from 7.17.2 to 7.17.5
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.17.2 to 7.17.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.17.5/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 10:02:26 +00:00
dependabot[bot]
bae18ca78a Bump ol-mapbox-style from 6.8.3 to 6.9.0
Bumps [ol-mapbox-style](https://github.com/openlayers/ol-mapbox-style) from 6.8.3 to 6.9.0.
- [Release notes](https://github.com/openlayers/ol-mapbox-style/releases)
- [Changelog](https://github.com/openlayers/ol-mapbox-style/blob/main/CHANGELOG.md)
- [Commits](https://github.com/openlayers/ol-mapbox-style/compare/v6.8.3...v6.9.0)

---
updated-dependencies:
- dependency-name: ol-mapbox-style
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 10:02:08 +00:00
dependabot[bot]
66ec79bb90 Bump rollup from 2.67.1 to 2.67.3
Bumps [rollup](https://github.com/rollup/rollup) from 2.67.1 to 2.67.3.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.67.1...v2.67.3)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 10:01:54 +00:00
dependabot[bot]
b5fe4932bb Bump webpack from 5.68.0 to 5.69.1
Bumps [webpack](https://github.com/webpack/webpack) from 5.68.0 to 5.69.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.68.0...v5.69.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 10:01:43 +00:00
dependabot[bot]
98eaae7797 Bump mocha from 9.2.0 to 9.2.1
Bumps [mocha](https://github.com/mochajs/mocha) from 9.2.0 to 9.2.1.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.0...v9.2.1)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 10:01:29 +00:00
dependabot[bot]
89e355e136 Bump puppeteer from 13.3.1 to 13.3.2
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 13.3.1 to 13.3.2.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v13.3.1...v13.3.2)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 10:01:03 +00:00
Andreas Hocevar
1f8338d3b8 Merge pull request #13398 from yonda-yonda/update_static_image_change_projection
Clear image when source's image is not ready
2022-02-21 08:42:16 +01:00
yonda-yonda
a631e7ba68 clear image when source status is EMPTY. 2022-02-20 00:26:31 +09:00
MoonE
10eb834337 Merge pull request #13393 from MoonE/view-fixes
Fix setting View resolution or center to undefined
2022-02-19 13:55:08 +01:00
Maximilian Krög
5a49410d82 Center should remain valid when resolution is not set 2022-02-18 00:55:34 +01:00
Maximilian Krög
ab786cff73 Test setting resolution to undefined 2022-02-18 00:52:40 +01:00
Maximilian Krög
19c034fd12 Fix setting center to undefined
It only worked when the coordinate warning was shown, but
fromUserCoordinate shouldn't have been called with undefined in
the first place.
2022-02-18 00:06:56 +01:00
MoonE
57e9a4d1a8 Merge pull request #13390 from MoonE/icon-clone
Fix clone of icon loses imgSize when cache is full
2022-02-17 20:04:32 +01:00
Andreas Hocevar
02b40a7036 Merge pull request #13392 from ahocevar/vectortile-clipping
Use same clipping method for vector and image tiles
2022-02-17 19:07:29 +01:00
Andreas Hocevar
b7d022f80e Use same clipping method for vector and image tiles 2022-02-17 18:12:19 +01:00
Andreas Hocevar
004abcc8a6 Merge pull request #13391 from ahocevar/no-clipping
Less clipping of target resolution tiles
2022-02-17 16:19:00 +01:00
Andreas Hocevar
3b4a2d5966 Remove unused clip code 2022-02-17 15:49:21 +01:00
Andreas Hocevar
c9ff07a695 Reduce the number of clip operations 2022-02-17 15:18:23 +01:00
Maximilian Krög
ab5e4f8838 Fix cloning of Icon style when IconImage is not cached 2022-02-17 00:58:35 +01:00
Maximilian Krög
c74d0a8957 Test cloning IconImage without cache 2022-02-17 00:58:35 +01:00
MoonE
f99c43db4d Merge pull request #13385 from MoonE/jsdoc-references-2
Change remaining links to point to class page instead of module
2022-02-15 19:14:00 +01:00
Andreas Hocevar
76ef4f27d7 Merge pull request #13383 from ahocevar/user-projection
User projection API
2022-02-15 09:30:50 +01:00
Andreas Hocevar
4f614bc81f Remove experimental category from geographic examples 2022-02-15 08:50:29 +01:00
Andreas Hocevar
63fc00902f Warn once when suspicious coordinate are used 2022-02-15 08:50:05 +01:00
Maximilian Krög
f236ff0086 Lower case first letter for function parameter 2022-02-14 22:04:26 +01:00
Maximilian Krög
5788ce51a5 Fix one more link to a class page 2022-02-14 21:53:47 +01:00
Maximilian Krög
b29ab8f104 Link to class instead of module pages 2022-02-14 21:53:07 +01:00
Andreas Hocevar
924686ef71 Merge pull request #13381 from openlayers/dependabot/npm_and_yarn/babel/core-7.17.2
Bump @babel/core from 7.17.0 to 7.17.2
2022-02-14 19:22:21 +01:00
Andreas Hocevar
0755fbfd86 Merge pull request #13379 from openlayers/dependabot/npm_and_yarn/karma-6.3.16
Bump karma from 6.3.15 to 6.3.16
2022-02-14 19:21:50 +01:00
Andreas Hocevar
090986d7cc Merge pull request #13377 from openlayers/dependabot/npm_and_yarn/eslint-8.9.0
Bump eslint from 8.8.0 to 8.9.0
2022-02-14 19:19:45 +01:00
Andreas Hocevar
e9b11fde4d Merge pull request #13376 from openlayers/dependabot/npm_and_yarn/puppeteer-13.3.1
Bump puppeteer from 13.1.3 to 13.3.1
2022-02-14 19:19:09 +01:00
Andreas Hocevar
75a3adccce Add useGeographic() and setUserProjection() to the API 2022-02-14 14:09:49 +01:00
Andreas Hocevar
c7d7ca26ff Merge pull request #13382 from seravifer/main
Fix wrong types when using `"skipLibCheck": false`
2022-02-14 13:45:42 +01:00
Sergi Ávila
f9bc546e1e Fix type on GeoJSON 2022-02-14 12:50:06 +01:00
Sergi Ávila
7e1bbd1c6d Fix type on Circle, return null coordinates 2022-02-14 12:49:19 +01:00
Sergi Ávila
087090c07d Fix wrong array generic type 2022-02-14 12:46:18 +01:00
dependabot[bot]
8d01de21fc Bump @babel/core from 7.17.0 to 7.17.2
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.17.0 to 7.17.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.17.2/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 10:02:25 +00:00
dependabot[bot]
4feda836f5 Bump karma from 6.3.15 to 6.3.16
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.15 to 6.3.16.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.15...v6.3.16)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 10:01:49 +00:00
dependabot[bot]
33b62230b5 Bump eslint from 8.8.0 to 8.9.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.8.0 to 8.9.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.8.0...v8.9.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 10:01:19 +00:00
dependabot[bot]
8b28ebbb5e Bump puppeteer from 13.1.3 to 13.3.1
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 13.1.3 to 13.3.1.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v13.1.3...v13.3.1)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 10:01:07 +00:00
MoonE
50c144cea2 Merge pull request #13374 from MoonE/jsdoc-references
Fix JsDoc references
2022-02-13 19:05:39 +01:00
Maximilian Krög
300cf6c2bb Replce description for WebGLHelper.DefaultAttrib 2022-02-13 15:53:18 +01:00
Maximilian Krög
b9f9280260 Use code formatting for argument names in jsdoc 2022-02-13 13:39:10 +01:00
Maximilian Krög
a0dd0054a9 Fix jsdoc references 2022-02-13 13:39:06 +01:00
MoonE
1abd9951d2 Merge pull request #13373 from MoonE/vector-source-is-empty
Fix VectorSource isEmpty without spatial index
2022-02-13 13:34:43 +01:00
Maximilian Krög
e2c9f62cc6 Fix VectorSource isEmpty without spatial index 2022-02-13 00:08:24 +01:00
Maximilian Krög
9bfb0c1b9d Test VectorSource isEmtpty without spatial index 2022-02-13 00:06:26 +01:00
Tim Schaub
7668f4f827 Merge pull request #13372 from openlayers/dependabot/npm_and_yarn/follow-redirects-1.14.8
Bump follow-redirects from 1.14.7 to 1.14.8
2022-02-12 12:13:40 -07:00
dependabot[bot]
5508b2dfd3 Bump follow-redirects from 1.14.7 to 1.14.8
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-12 18:53:16 +00:00
Andreas Hocevar
0353f25257 Merge pull request #13371 from ahocevar/vectorimage
Document difference between Vector and VectorImage layers
2022-02-12 17:48:17 +01:00
Andreas Hocevar
53239f7b1e Document difference between Vector and VectorImage layers 2022-02-12 12:57:19 +01:00
MoonE
b5fe0f5b86 Merge pull request #12998 from MoonE/fix-cluster-setSource-type
Fix `ol/source/Cluster#setSource` type annotation
2022-02-11 22:38:47 +01:00
Tim Schaub
437b2a0fc2 Merge pull request #13357 from tschaub/preload
Preload tiles for WebGL tile layers
2022-02-10 14:36:31 -07:00
MoonE
c08f54b5d3 Merge pull request #13358 from MoonE/dispatch-events
Avoid event creation when there are no listeners
2022-02-10 20:54:09 +01:00
Tim Schaub
49fc16ef35 Merge pull request #13363 from mike-000/floor-round-ceil
Add floor, round and ceil to style expressions
2022-02-10 11:46:28 -07:00
mike-000
57db9a6a12 Add floor, round and ceil 2022-02-10 15:37:45 +00:00
Tim Schaub
b120f1d147 Merge pull request #13361 from mike-000/RasterSource-WebGL
Support WebGL layers in ol/source/Raster
2022-02-10 08:02:11 -07:00
mike-000
44136af99d test with interpolated WebGL layer 2022-02-10 12:29:36 +00:00
mike-000
bf199bbe38 handle WebGL layers 2022-02-10 11:40:44 +00:00
Maximilian Krög
ac0b8ff4a4 Add hasListener check around dispatchEvent calls 2022-02-09 22:27:42 +01:00
Maximilian Krög
d35d1cc8ad Avoid creating event object when nobody is listening 2022-02-09 22:27:36 +01:00
Tim Schaub
6f005e1f30 Preload tiles for WebGL tile layers 2022-02-09 14:01:14 -07:00
Tim Schaub
96de98bfbb Merge pull request #13301 from EvertEt/strictnullchecks-2
Improve some null types to prepare for strictNullChecks
2022-02-09 04:51:54 -07:00
Andreas Hocevar
2144422397 Merge pull request #13351 from Amirh0sseinHZ/reset-global-alpha-to-initial-after-mutating-it-for-printing
Reset globalAlpha back to its initial after mutating it for drawing layers
2022-02-09 11:03:33 +01:00
Andreas Hocevar
cf0eb2bc1a Merge pull request #13352 from Amirh0sseinHZ/remove-unnecessary-word-from-developing-md
Removing an unnecessary word from DEVELOPING.md
2022-02-09 11:02:18 +01:00
Amir
df7d6c3794 Removing an unnecessary word from the guide 2022-02-09 10:16:20 +02:00
Tim Schaub
2526a04f2a Merge pull request #13338 from tschaub/get-layer-data
Get pixel data
2022-02-08 20:46:18 -07:00
Tim Schaub
093f64c07d Deprecate map.forEachLayerAtPixel() 2022-02-08 18:30:45 -07:00
Amir
1acf62b6e6 Reset globalAlpha back to its initial after mutating it for drawing layers 2022-02-09 01:50:00 +02:00
MoonE
ce3b59b963 Merge pull request #13350 from MoonE/fix-type-annotation-no-comment
Remove warning for `@type` annotation by jsdoc
2022-02-09 00:38:36 +01:00
Maximilian Krög
725729344c Remove warning for @type annotation by jsdoc 2022-02-08 21:38:41 +01:00
Maximilian Krög
9f8f7afaaa Fix ol/source/Cluster#setSource type annotation 2022-02-08 21:11:23 +01:00
Tim Schaub
97a1c196cc Merge pull request #13334 from EvertEt/strictnullchecks-4
Improve some null types for strictNullChecks
2022-02-08 10:32:32 -07:00
Tim Schaub
bd86639351 Keep track of when a layer is unrendered 2022-02-08 10:23:55 -07:00
Tim Schaub
eb4d5e0784 Get pixel data 2022-02-07 18:35:47 -07:00
MoonE
cd45663996 Merge pull request #13336 from MoonE/dispose-webgl
Dispose of webgl contexts
2022-02-07 22:38:36 +01:00
MoonE
27a5103f3f Merge pull request #13337 from MoonE/fix-rendering-test
Fix error when accessing ready property of renderer
2022-02-07 22:38:05 +01:00
Tim Schaub
d9a11195e0 Merge pull request #13269 from mike-000/TileTexture-tilePixelRatio-gutter
Pass tilePixelRatio and gutter to TileTexture
2022-02-07 13:45:22 -07:00
Andreas Hocevar
ec1eec829c Merge pull request #13328 from EvertEt/strictnullchecks-3
Improve some nullable map types
2022-02-07 21:12:08 +01:00
Tim Schaub
67318d3dd1 Merge pull request #13339 from openlayers/dependabot/npm_and_yarn/geotiff-2.0.4
Bump geotiff from 2.0.3 to 2.0.4
2022-02-07 07:19:36 -07:00
Tim Schaub
b921577a00 Merge pull request #13340 from openlayers/dependabot/npm_and_yarn/globby-13.1.1
Bump globby from 13.1.0 to 13.1.1
2022-02-07 07:18:39 -07:00
Tim Schaub
109eb98c11 Merge pull request #13342 from openlayers/dependabot/npm_and_yarn/rollup-2.67.1
Bump rollup from 2.66.1 to 2.67.1
2022-02-07 07:18:09 -07:00
Tim Schaub
c37ff91608 Merge pull request #13343 from openlayers/dependabot/npm_and_yarn/babel/core-7.17.0
Bump @babel/core from 7.16.12 to 7.17.0
2022-02-07 07:17:17 -07:00
Tim Schaub
8ab132a46c Merge pull request #13344 from openlayers/dependabot/npm_and_yarn/karma-6.3.15
Bump karma from 6.3.12 to 6.3.15
2022-02-07 07:16:20 -07:00
Tim Schaub
ce388c6c30 Merge pull request #13345 from openlayers/dependabot/npm_and_yarn/webpack-5.68.0
Bump webpack from 5.67.0 to 5.68.0
2022-02-07 07:15:33 -07:00
Tim Schaub
b935979bcb Merge pull request #13346 from openlayers/dependabot/npm_and_yarn/webpack-dev-server-4.7.4
Bump webpack-dev-server from 4.7.3 to 4.7.4
2022-02-07 07:14:48 -07:00
Tim Schaub
859f3d19b8 Merge pull request #13348 from openlayers/dependabot/npm_and_yarn/sinon-13.0.1
Bump sinon from 13.0.0 to 13.0.1
2022-02-07 07:13:57 -07:00
dependabot[bot]
cf22ae7d4e Bump sinon from 13.0.0 to 13.0.1
Bumps [sinon](https://github.com/sinonjs/sinon) from 13.0.0 to 13.0.1.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v13.0.0...v13.0.1)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 10:03:09 +00:00
dependabot[bot]
1dd6d2ebf9 Bump webpack-dev-server from 4.7.3 to 4.7.4
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.7.3 to 4.7.4.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.7.3...v4.7.4)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 10:02:38 +00:00
dependabot[bot]
74eba20e9d Bump webpack from 5.67.0 to 5.68.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.67.0 to 5.68.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.67.0...v5.68.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 10:02:26 +00:00
dependabot[bot]
5dac75b379 Bump karma from 6.3.12 to 6.3.15
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.12 to 6.3.15.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.12...v6.3.15)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 10:02:08 +00:00
dependabot[bot]
26917f5856 Bump @babel/core from 7.16.12 to 7.17.0
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.16.12 to 7.17.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.17.0/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 10:01:58 +00:00
dependabot[bot]
98555f641e Bump rollup from 2.66.1 to 2.67.1
Bumps [rollup](https://github.com/rollup/rollup) from 2.66.1 to 2.67.1.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.66.1...v2.67.1)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 10:01:38 +00:00
dependabot[bot]
6ccb66cfdc Bump globby from 13.1.0 to 13.1.1
Bumps [globby](https://github.com/sindresorhus/globby) from 13.1.0 to 13.1.1.
- [Release notes](https://github.com/sindresorhus/globby/releases)
- [Commits](https://github.com/sindresorhus/globby/compare/v13.1.0...v13.1.1)

---
updated-dependencies:
- dependency-name: globby
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 10:01:09 +00:00
dependabot[bot]
624a58cfff Bump geotiff from 2.0.3 to 2.0.4
Bumps [geotiff](https://github.com/geotiffjs/geotiff.js) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/geotiffjs/geotiff.js/releases)
- [Commits](https://github.com/geotiffjs/geotiff.js/compare/v2.0.3...v2.0.4)

---
updated-dependencies:
- dependency-name: geotiff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 10:00:58 +00:00
EvertEt
7b6afcd1e9 Change map variables from undefined to null for consistency 2022-02-07 08:06:46 +01:00
Maximilian Krög
eaa6146156 Fix error when accessing ready property of renderer 2022-02-07 00:26:53 +01:00
Maximilian Krög
700cdad1e2 Add missing dispose calls for webgl renderer tests 2022-02-07 00:17:32 +01:00
Maximilian Krög
a86f0704f3 Fix error when disposing ol/renderer/webgl/TileLayer
- helper may not exist
- tileTextureCache not cleared when canvasCacheKey changes
2022-02-07 00:17:32 +01:00
Maximilian Krög
a10872baa4 No need to update the style when no source is set 2022-02-07 00:17:29 +01:00
Tim Schaub
5fec74c089 Merge pull request #13333 from tschaub/limited-extent
Avoid rendering outside WebGL layer and source extent
2022-02-06 11:47:38 -07:00
EvertEt
25e1d6c5d6 Improve some null types for strictNullChecks 2022-02-06 19:36:30 +01:00
Tim Schaub
adbbc05159 Avoid rendering outside WebGL layer and source extent 2022-02-05 21:02:22 -07:00
Tim Schaub
459cd51ae2 Quote 2022-02-05 20:58:09 -07:00
Tim Schaub
a3a08d1412 Merge pull request #13332 from tschaub/duplicate-imports
Avoid duplicate imports
2022-02-05 15:19:35 -07:00
Tim Schaub
ccc78d731d Allow duplicate imports in the legacy build 2022-02-05 15:01:36 -07:00
Tim Schaub
f10ba5c1e3 Avoid duplicate imports 2022-02-05 11:46:26 -07:00
Andreas Hocevar
cdd1537a41 Merge pull request #13294 from ahocevar/webglpoints-updatestylevariables
Add updateStyleVariables method to WebGLPoints layer
2022-02-05 01:32:47 +01:00
EvertEt
15de4bb5ab Improve some nullable map types
Closes #13326
2022-02-04 17:05:52 +01:00
Andreas Hocevar
770fcc870b Add updateStyleVariables method to WebGLPoints layer 2022-02-03 22:12:05 +01:00
Andreas Hocevar
5cfb634d89 Merge pull request #13323 from ahocevar/pointslayer-ready
Fix rendercomplete for WebGLPoints layer and subclasses
2022-02-03 22:01:24 +01:00
Maximilian Krög
93c08784af Only set renderer to ready when all messages are received 2022-02-02 22:54:16 +01:00
Maximilian Krög
613d083e46 Test points layer ready state 2022-02-02 22:54:16 +01:00
Andreas Hocevar
7c3c1ac354 Fix rendercomplete for WebGLPoints layer and subclasses 2022-02-01 17:13:37 +01:00
EvertEt
e3d3d24f05 Improve some null types to prepare for strictNullChecks 2022-01-31 19:35:25 +01:00
Andreas Hocevar
10b97d3993 Merge pull request #13318 from openlayers/dependabot/npm_and_yarn/rollup-2.66.1
Bump rollup from 2.66.0 to 2.66.1
2022-01-31 13:24:50 +01:00
Andreas Hocevar
858a314000 Merge pull request #13314 from openlayers/dependabot/npm_and_yarn/karma-6.3.12
Bump karma from 6.3.11 to 6.3.12
2022-01-31 13:24:24 +01:00
Andreas Hocevar
0df65d59e2 Merge pull request #13319 from OSHistory/fixZIndexNotation
fix: fix casing for z-index
2022-01-31 13:23:49 +01:00
Andreas Hocevar
7e44b3e515 Merge pull request #13313 from openlayers/dependabot/npm_and_yarn/geotiff-2.0.3
Bump geotiff from 2.0.2 to 2.0.3
2022-01-31 13:23:24 +01:00
dependabot[bot]
57fd13fb1b Bump rollup from 2.66.0 to 2.66.1
Bumps [rollup](https://github.com/rollup/rollup) from 2.66.0 to 2.66.1.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.66.0...v2.66.1)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 12:16:57 +00:00
Andreas Hocevar
5b53368296 Merge pull request #13317 from openlayers/dependabot/npm_and_yarn/puppeteer-13.1.3
Bump puppeteer from 13.1.1 to 13.1.3
2022-01-31 13:16:29 +01:00
Andreas Hocevar
4541746df2 Merge pull request #13316 from openlayers/dependabot/npm_and_yarn/sinon-13.0.0
Bump sinon from 12.0.1 to 13.0.0
2022-01-31 13:16:00 +01:00
Andreas Hocevar
528589b163 Update import 2022-01-31 13:14:59 +01:00
dependabot[bot]
58707a19c7 Bump karma from 6.3.11 to 6.3.12
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.11 to 6.3.12.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.11...v6.3.12)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 12:14:29 +00:00
Andreas Hocevar
2d49a2feb8 Merge pull request #13312 from openlayers/dependabot/npm_and_yarn/jsdoc-3.6.10
Bump jsdoc from 3.6.9 to 3.6.10
2022-01-31 13:13:36 +01:00
Andreas Hocevar
6521aa74e1 Merge pull request #13311 from openlayers/dependabot/npm_and_yarn/copy-webpack-plugin-10.2.4
Bump copy-webpack-plugin from 10.2.1 to 10.2.4
2022-01-31 13:12:34 +01:00
Andreas Hocevar
19c8b78ca9 Merge pull request #13310 from openlayers/dependabot/npm_and_yarn/clean-css-cli-5.5.2
Bump clean-css-cli from 5.5.0 to 5.5.2
2022-01-31 13:12:11 +01:00
OSHistory
bce14074ae fix: fix casing for z-index
The CSS-property z-index had some faulty casings. Only occurs in src/ol/ol.css
2022-01-31 13:09:08 +01:00
Andreas Hocevar
a72259257f Merge pull request #13309 from openlayers/dependabot/npm_and_yarn/eslint-8.8.0
Bump eslint from 8.7.0 to 8.8.0
2022-01-31 13:01:54 +01:00
Andreas Hocevar
fead802107 Merge pull request #13305 from openlayers/dependabot/npm_and_yarn/webpack-cli-4.9.2
Bump webpack-cli from 4.9.1 to 4.9.2
2022-01-31 13:01:34 +01:00
Andreas Hocevar
2a45536d0e Merge pull request #13308 from openlayers/dependabot/npm_and_yarn/globby-13.1.0
Bump globby from 13.0.0 to 13.1.0
2022-01-31 13:00:50 +01:00
dependabot[bot]
c93c6424d0 Bump puppeteer from 13.1.1 to 13.1.3
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 13.1.1 to 13.1.3.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v13.1.1...v13.1.3)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 11:59:30 +00:00
Andreas Hocevar
a4900a6d3b Merge pull request #13307 from openlayers/dependabot/npm_and_yarn/marked-4.0.12
Bump marked from 4.0.10 to 4.0.12
2022-01-31 12:58:55 +01:00
dependabot[bot]
c7d11a1711 Bump webpack-cli from 4.9.1 to 4.9.2
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.9.1 to 4.9.2.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.9.1...webpack-cli@4.9.2)

---
updated-dependencies:
- dependency-name: webpack-cli
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 11:05:44 +00:00
dependabot[bot]
06e0439cfc Bump sinon from 12.0.1 to 13.0.0
Bumps [sinon](https://github.com/sinonjs/sinon) from 12.0.1 to 13.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v12.0.1...v13.0.0)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 11:05:26 +00:00
Andreas Hocevar
711f176ea8 Merge pull request #13306 from openlayers/dependabot/npm_and_yarn/typescript-4.6.0-dev.20220131
Use exactly typescript@4.6.0-beta
2022-01-31 12:04:50 +01:00
Andreas Hocevar
14a555ab28 Use exactly typesript@4.6.0-beta 2022-01-31 11:54:48 +01:00
Frédéric Junod
530015516d Merge pull request #13315 from fredj/attribution_css_typo
Fix typo CSS class name for the expanded attributions button
2022-01-31 11:39:13 +01:00
Frederic Junod
a008d5696b Fix typo CSS class name for the expanded attributions button
See #11403
2022-01-31 11:11:14 +01:00
dependabot[bot]
3fac4eab7e Bump geotiff from 2.0.2 to 2.0.3
Bumps [geotiff](https://github.com/geotiffjs/geotiff.js) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/geotiffjs/geotiff.js/releases)
- [Commits](https://github.com/geotiffjs/geotiff.js/compare/v2.0.2...v2.0.3)

---
updated-dependencies:
- dependency-name: geotiff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 10:03:11 +00:00
dependabot[bot]
f0dfd75b82 Bump jsdoc from 3.6.9 to 3.6.10
Bumps [jsdoc](https://github.com/jsdoc/jsdoc) from 3.6.9 to 3.6.10.
- [Release notes](https://github.com/jsdoc/jsdoc/releases)
- [Changelog](https://github.com/jsdoc/jsdoc/blob/3.6.10/CHANGES.md)
- [Commits](https://github.com/jsdoc/jsdoc/compare/3.6.9...3.6.10)

---
updated-dependencies:
- dependency-name: jsdoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 10:02:59 +00:00
dependabot[bot]
dc17c3750e Bump copy-webpack-plugin from 10.2.1 to 10.2.4
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 10.2.1 to 10.2.4.
- [Release notes](https://github.com/webpack-contrib/copy-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v10.2.1...v10.2.4)

---
updated-dependencies:
- dependency-name: copy-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 10:02:34 +00:00
dependabot[bot]
f101c4d37f Bump clean-css-cli from 5.5.0 to 5.5.2
Bumps [clean-css-cli](https://github.com/clean-css/clean-css-cli) from 5.5.0 to 5.5.2.
- [Release notes](https://github.com/clean-css/clean-css-cli/releases)
- [Changelog](https://github.com/clean-css/clean-css-cli/blob/master/History.md)
- [Commits](https://github.com/clean-css/clean-css-cli/compare/v5.5.0...v5.5.2)

---
updated-dependencies:
- dependency-name: clean-css-cli
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 10:02:24 +00:00
dependabot[bot]
a4f42b2fc8 Bump eslint from 8.7.0 to 8.8.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.7.0 to 8.8.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.7.0...v8.8.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 10:02:09 +00:00
dependabot[bot]
00eeefef9f Bump globby from 13.0.0 to 13.1.0
Bumps [globby](https://github.com/sindresorhus/globby) from 13.0.0 to 13.1.0.
- [Release notes](https://github.com/sindresorhus/globby/releases)
- [Commits](https://github.com/sindresorhus/globby/compare/v13.0.0...v13.1.0)

---
updated-dependencies:
- dependency-name: globby
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 10:01:54 +00:00
dependabot[bot]
02c8b1ad58 Bump marked from 4.0.10 to 4.0.12
Bumps [marked](https://github.com/markedjs/marked) from 4.0.10 to 4.0.12.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v4.0.10...v4.0.12)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 10:01:42 +00:00
dependabot[bot]
d9a21dd497 Bump typescript from 4.6.0-beta to 4.6.0-dev.20220131
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.0-beta to 4.6.0-dev.20220131.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 10:01:26 +00:00
Andreas Hocevar
12f8bae261 Merge pull request #13299 from ahocevar/tile-types
Improve types for tile layers
2022-01-30 18:43:15 +01:00
Andreas Hocevar
89c8c909dc Merge pull request #13298 from ahocevar/webglpoints-assert-point
Document geometry type
2022-01-30 18:42:44 +01:00
MoonE
b255e85be9 Merge pull request #13297 from MoonE/from-render-feature
Add function to convert RenderFeature to Feature
2022-01-30 13:53:47 +01:00
Andreas Hocevar
c92e1ec9ab Improve types for tile layers 2022-01-30 09:10:29 +01:00
Andreas Hocevar
7819c180af Document point geometry type requirement 2022-01-30 08:22:09 +01:00
Maximilian Krög
f0e768bb9a Remove case of MulitPolygon RenderFeature 2022-01-29 21:51:29 +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
Andreas Hocevar
9e4d943239 Merge pull request #13292 from ahocevar/geotiff-2
Update to geotiff@2
2022-01-28 15:57:40 +01:00
Andreas Hocevar
fd779c1311 Merge pull request #13293 from ahocevar/setstyle-reset-variables
Re-assign style variables on setStyle()
2022-01-28 15:53:34 +01:00
Andreas Hocevar
2c87fcb4f9 Merge pull request #13261 from XiaofengZeng/ToFixAPIDoc
add @api comment on getAllLayers method
2022-01-28 11:44:50 +01:00
Andreas Hocevar
11e12ef94e Re-assign variables on setStyle() 2022-01-28 07:48:21 +01:00
Andreas Hocevar
59600a0d68 Merge pull request #13290 from constantinius/geotiff-source-options
Allowing to pass additional options to the geotiff.js source
2022-01-28 07:44:35 +01:00
Andreas Hocevar
b5c91b8f05 Update to geotiff@2 2022-01-27 22:31:51 +01:00
Fabian Schindler
441cce8dc7 Update src/ol/source/GeoTIFF.js
Co-authored-by: Andreas Hocevar <andreas.hocevar@gmail.com>
2022-01-27 14:45:25 +01:00
Fabian Schindler
aea62119b2 Update src/ol/source/GeoTIFF.js
Co-authored-by: Andreas Hocevar <andreas.hocevar@gmail.com>
2022-01-27 14:44:59 +01:00
Andreas Hocevar
a1454ce18f Merge pull request #13291 from ahocevar/generics
Defaults for generic types
2022-01-27 11:03:50 +01:00
Andreas Hocevar
94cc414ea2 Defaults for the Layer, Source and Feature generics 2022-01-26 22:40:27 +01:00
Andreas Hocevar
2e5c1f2af9 Updates for TypeScript v4.6.0-beta 2022-01-26 22:40:27 +01:00
Fabian Schindler
1b71d39292 Adding typedef to declare all possible options for
geotiff.js sources
2022-01-26 16:46:47 +01:00
Fabian Schindler
f062b15bd5 Allowing to pass additional options to the
geotiff.js source
2022-01-25 21:52:27 +01:00
Andreas Hocevar
deaa0ccc2a Merge pull request #13281 from openlayers/dependabot/npm_and_yarn/globby-13.0.0
Bump globby from 12.2.0 to 13.0.0
2022-01-24 17:51:53 +01:00
Andreas Hocevar
c0bc6efb39 Merge pull request #13278 from openlayers/dependabot/npm_and_yarn/babel/core-7.16.12
Bump @babel/core from 7.16.7 to 7.16.12
2022-01-24 17:51:28 +01:00
Andreas Hocevar
7619dc3342 Merge pull request #13277 from openlayers/dependabot/npm_and_yarn/webpack-5.67.0
Bump webpack from 5.66.0 to 5.67.0
2022-01-24 17:44:53 +01:00
Andreas Hocevar
c329c2bee6 Merge pull request #13280 from openlayers/dependabot/npm_and_yarn/puppeteer-13.1.1
Bump puppeteer from 13.0.1 to 13.1.1
2022-01-24 17:37:27 +01:00
Andreas Hocevar
9cae73ec45 Merge pull request #13279 from openlayers/dependabot/npm_and_yarn/rollup-2.66.0
Bump rollup from 2.64.0 to 2.66.0
2022-01-24 17:37:00 +01:00
dependabot[bot]
e8b7125d86 Bump globby from 12.2.0 to 13.0.0
Bumps [globby](https://github.com/sindresorhus/globby) from 12.2.0 to 13.0.0.
- [Release notes](https://github.com/sindresorhus/globby/releases)
- [Commits](https://github.com/sindresorhus/globby/compare/v12.2.0...v13.0.0)

---
updated-dependencies:
- dependency-name: globby
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 16:36:53 +00:00
Andreas Hocevar
01d00aefb6 Merge pull request #13276 from openlayers/dependabot/npm_and_yarn/babel/preset-env-7.16.11
Bump @babel/preset-env from 7.16.8 to 7.16.11
2022-01-24 17:36:33 +01:00
dependabot[bot]
a99a94b479 Bump webpack from 5.66.0 to 5.67.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.66.0 to 5.67.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.66.0...v5.67.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 16:36:20 +00:00
Andreas Hocevar
3453ccefe1 Merge pull request #13275 from openlayers/dependabot/npm_and_yarn/copy-webpack-plugin-10.2.1
Bump copy-webpack-plugin from 10.2.0 to 10.2.1
2022-01-24 17:35:51 +01:00
Andreas Hocevar
0a88fe81a1 Merge pull request #13274 from openlayers/dependabot/npm_and_yarn/jsdoc-3.6.9
Bump jsdoc from 3.6.7 to 3.6.9
2022-01-24 17:35:24 +01:00
Andreas Hocevar
ab65622273 Merge pull request #13273 from openlayers/dependabot/npm_and_yarn/ol-mapbox-style-6.8.3
Bump ol-mapbox-style from 6.8.2 to 6.8.3
2022-01-24 17:35:06 +01:00
Andreas Hocevar
40875e00c6 Merge pull request #13272 from openlayers/dependabot/npm_and_yarn/mocha-9.2.0
Bump mocha from 9.1.4 to 9.2.0
2022-01-24 17:34:40 +01:00
dependabot[bot]
6d241deabe Bump puppeteer from 13.0.1 to 13.1.1
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 13.0.1 to 13.1.1.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v13.0.1...v13.1.1)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 10:03:08 +00:00
dependabot[bot]
3504635ecd Bump rollup from 2.64.0 to 2.66.0
Bumps [rollup](https://github.com/rollup/rollup) from 2.64.0 to 2.66.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.64.0...v2.66.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 10:02:55 +00:00
dependabot[bot]
984d841d46 Bump @babel/core from 7.16.7 to 7.16.12
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.16.7 to 7.16.12.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.16.12/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 10:02:42 +00:00
dependabot[bot]
1cc9a6dbb1 Bump @babel/preset-env from 7.16.8 to 7.16.11
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.16.8 to 7.16.11.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.16.11/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 10:02:13 +00:00
dependabot[bot]
9f84814c9b Bump copy-webpack-plugin from 10.2.0 to 10.2.1
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 10.2.0 to 10.2.1.
- [Release notes](https://github.com/webpack-contrib/copy-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v10.2.0...v10.2.1)

---
updated-dependencies:
- dependency-name: copy-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 10:01:55 +00:00
dependabot[bot]
ac55fc91e8 Bump jsdoc from 3.6.7 to 3.6.9
Bumps [jsdoc](https://github.com/jsdoc/jsdoc) from 3.6.7 to 3.6.9.
- [Release notes](https://github.com/jsdoc/jsdoc/releases)
- [Changelog](https://github.com/jsdoc/jsdoc/blob/3.6.9/CHANGES.md)
- [Commits](https://github.com/jsdoc/jsdoc/compare/3.6.7...3.6.9)

---
updated-dependencies:
- dependency-name: jsdoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 10:01:45 +00:00
dependabot[bot]
4be8138d20 Bump ol-mapbox-style from 6.8.2 to 6.8.3
Bumps [ol-mapbox-style](https://github.com/openlayers/ol-mapbox-style) from 6.8.2 to 6.8.3.
- [Release notes](https://github.com/openlayers/ol-mapbox-style/releases)
- [Changelog](https://github.com/openlayers/ol-mapbox-style/blob/main/CHANGELOG.md)
- [Commits](https://github.com/openlayers/ol-mapbox-style/compare/v6.8.2...v6.8.3)

---
updated-dependencies:
- dependency-name: ol-mapbox-style
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 10:01:25 +00:00
dependabot[bot]
6d14957d5c Bump mocha from 9.1.4 to 9.2.0
Bumps [mocha](https://github.com/mochajs/mocha) from 9.1.4 to 9.2.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.1.4...v9.2.0)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 10:01:10 +00:00
MoonE
239a082dbf Merge pull request #13229 from MoonE/apidoc-dyn-navigation-loading
Load api navigation dynamically to reduce needed disk space
2022-01-23 11:21:31 +01:00
Andreas Hocevar
5f02141bca Merge pull request #13271 from mike-000/utfgrid
Remove unneeded `src=""`
2022-01-23 11:11:12 +01:00
mike-000
29da609dab Remove meaningless src="" 2022-01-22 23:08:31 +00:00
Maximilian Krög
14c5e9a7e8 Load api navigation dynamically to reduce needed disk space 2022-01-22 22:29:33 +01:00
mike-000
6a26e6a274 test gutter 2022-01-20 17:51:17 +00:00
mike-000
2a421b9362 test tilePixelRatio 2022-01-20 17:51:05 +00:00
mike-000
7af366586f Pass tilePixelRatio and gutter to TileTexture 2022-01-20 17:50:49 +00:00
Andreas Hocevar
30d27a1d59 Merge pull request #13212 from ahocevar/multisource-webgl
Support multiple sources for WebGL tile layers
2022-01-19 08:43:22 +01:00
XiaofengZeng
705a37935e add @api comment on getAllLayers method 2022-01-19 11:25:17 +08:00
Andreas Hocevar
d46940acc0 Merge pull request #13259 from mike-000/LiteralSymbolStyle-CORS
Add crossOrigin option to LiteralSymbolStyle
2022-01-19 00:21:05 +01:00
mike-000
70ee68c649 Add crossOrigin option
Co-Authored-By: Andreas Hocevar <andreas.hocevar@gmail.com>
2022-01-18 23:14:30 +00:00
Andreas Hocevar
75f66757ef Simplify example, improve documentation. 2022-01-18 20:05:07 +01:00
Tim Schaub
3e216edbe8 Merge pull request #13246 from openlayers/dependabot/npm_and_yarn/eslint-8.7.0
Bump eslint from 8.6.0 to 8.7.0
2022-01-17 05:59:36 -07:00
Tim Schaub
625334de72 Merge pull request #13247 from openlayers/dependabot/npm_and_yarn/mocha-9.1.4
Bump mocha from 9.1.3 to 9.1.4
2022-01-17 05:52:04 -07:00
dependabot[bot]
ff1017531b Bump eslint from 8.6.0 to 8.7.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.6.0 to 8.7.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.6.0...v8.7.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 12:51:38 +00:00
Tim Schaub
3ddb037d4a Merge pull request #13248 from openlayers/dependabot/npm_and_yarn/webpack-sources-3.2.3
Bump webpack-sources from 3.2.2 to 3.2.3
2022-01-17 05:51:13 -07:00
Tim Schaub
c4f1c78848 Merge pull request #13249 from openlayers/dependabot/npm_and_yarn/webpack-5.66.0
Bump webpack from 5.65.0 to 5.66.0
2022-01-17 05:50:33 -07:00
Tim Schaub
8e189c0dca Merge pull request #13250 from openlayers/dependabot/npm_and_yarn/globby-12.2.0
Bump globby from 12.0.2 to 12.2.0
2022-01-17 05:49:34 -07:00
Tim Schaub
46c8523875 Merge pull request #13251 from openlayers/dependabot/npm_and_yarn/babel/preset-env-7.16.8
Bump @babel/preset-env from 7.16.7 to 7.16.8
2022-01-17 05:48:34 -07:00
Tim Schaub
7fd01645fd Merge pull request #13252 from openlayers/dependabot/npm_and_yarn/rollup-2.64.0
Bump rollup from 2.63.0 to 2.64.0
2022-01-17 05:47:56 -07:00
Tim Schaub
0dc11324ff Merge pull request #13253 from openlayers/dependabot/npm_and_yarn/karma-6.3.11
Bump karma from 6.3.10 to 6.3.11
2022-01-17 05:47:05 -07:00
dependabot[bot]
76daa66e10 Bump karma from 6.3.10 to 6.3.11
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.10 to 6.3.11.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.10...v6.3.11)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 10:02:43 +00:00
dependabot[bot]
2f2c6b4e70 Bump rollup from 2.63.0 to 2.64.0
Bumps [rollup](https://github.com/rollup/rollup) from 2.63.0 to 2.64.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.63.0...v2.64.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 10:02:24 +00:00
dependabot[bot]
12cb31087c Bump @babel/preset-env from 7.16.7 to 7.16.8
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.16.7 to 7.16.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.16.8/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 10:02:11 +00:00
dependabot[bot]
dffece49e9 Bump globby from 12.0.2 to 12.2.0
Bumps [globby](https://github.com/sindresorhus/globby) from 12.0.2 to 12.2.0.
- [Release notes](https://github.com/sindresorhus/globby/releases)
- [Commits](https://github.com/sindresorhus/globby/compare/v12.0.2...v12.2.0)

---
updated-dependencies:
- dependency-name: globby
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 10:01:52 +00:00
dependabot[bot]
ff588d29c2 Bump webpack from 5.65.0 to 5.66.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.65.0 to 5.66.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.65.0...v5.66.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 10:01:42 +00:00
dependabot[bot]
58d0cc6b19 Bump webpack-sources from 3.2.2 to 3.2.3
Bumps [webpack-sources](https://github.com/webpack/webpack-sources) from 3.2.2 to 3.2.3.
- [Release notes](https://github.com/webpack/webpack-sources/releases)
- [Commits](https://github.com/webpack/webpack-sources/compare/v3.2.2...v3.2.3)

---
updated-dependencies:
- dependency-name: webpack-sources
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 10:01:29 +00:00
dependabot[bot]
d220138953 Bump mocha from 9.1.3 to 9.1.4
Bumps [mocha](https://github.com/mochajs/mocha) from 9.1.3 to 9.1.4.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.1.3...v9.1.4)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 10:01:15 +00:00
Tim Schaub
af6dce3cf3 Merge pull request #13243 from openlayers/dependabot/npm_and_yarn/marked-4.0.10
Bump marked from 4.0.9 to 4.0.10
2022-01-14 21:12:44 -07:00
dependabot[bot]
feb396631f Bump marked from 4.0.9 to 4.0.10
Bumps [marked](https://github.com/markedjs/marked) from 4.0.9 to 4.0.10.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v4.0.9...v4.0.10)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-15 01:53:33 +00:00
Tim Schaub
b1d7c48313 Merge pull request #13242 from tschaub/avoid-unpkg-redirect
Avoid the redirect from unpkg.com
2022-01-14 14:17:33 -07:00
Tim Schaub
6c03b69d8c Avoid the redirect from unpkg.com 2022-01-14 13:53:23 -07:00
Tim Schaub
4fb679d3fc Merge pull request #13241 from openlayers/release-v6.12.0
Updates for the 6.12.0 release
2022-01-14 13:27:56 -07:00
Tim Schaub
59bf2998ad Develop on 6.12.1-dev 2022-01-14 13:13:32 -07:00
Tim Schaub
b04d542a3a Updates for the 6.12.0 release 2022-01-14 13:04:59 -07:00
Tim Schaub
f43df3c1e2 Merge pull request #13240 from openlayers/audit-fix
Transitive dependency update
2022-01-14 13:00:13 -07:00
Tim Schaub
c96fee5ba2 Transitive dependency update 2022-01-14 12:51:28 -07:00
Andreas Hocevar
0a439b0129 Merge pull request #13236 from mike-000/reset-interpolation-postrender
Re-enable image smoothing after rendering
2022-01-14 18:47:15 +01:00
Andreas Hocevar
ff5b4177c8 Merge pull request #13237 from mike-000/className-with-declutter
Describe use of className with declutter
2022-01-14 18:17:16 +01:00
mike-000
b5196a65a1 Describe use of className with declutter 2022-01-14 12:35:36 +00:00
mike-000
ec2e3f4f23 Set interpolate for use by VectorImage layers 2022-01-14 10:31:18 +00:00
mike-000
1c81f60fec re-enable image smoothing after rendering 2022-01-14 10:31:17 +00:00
Andreas Hocevar
0004b2594d Support multiple sources for layers 2022-01-13 17:42:52 +01:00
Andreas Hocevar
89f632fa7e Merge pull request #13231 from lklepner/development-tips-fix
added run to npm command
2022-01-12 14:35:50 +01:00
Lou Klepner
11329bb776 added run to npm command 2022-01-12 07:45:15 -05:00
Tim Schaub
b98a95d1b4 Merge pull request #13228 from lklepner/development-tips
Document how to link package during development
2022-01-11 16:24:02 -07:00
Tim Schaub
0fbe83edf7 Merge pull request #13227 from tschaub/default-cors-mode
Default CORS mode for WebGL rendered sources
2022-01-11 16:22:03 -07:00
Lou Klepner
2dfef3f125 added linking instructions 2022-01-11 17:33:55 -05:00
Tim Schaub
1a8df049e4 Merge pull request #13226 from tschaub/gl-wrap-x
Support the wrapX option for WebGL rendered tile sources
2022-01-11 14:23:46 -07:00
Tim Schaub
f511209789 Merge pull request #13224 from tschaub/mapbox-style-update
Update ol-mapbox-style
2022-01-11 14:22:54 -07:00
Tim Schaub
e71a8b65e1 Default CORS request mode for tiles used in WebGL rendering 2022-01-11 14:21:48 -07:00
Tim Schaub
647a0d8ece Support the wrapX option for WebGL rendered tile sources 2022-01-11 12:48:49 -07:00
Tim Schaub
71f737b58a Update ol-mapbox-style 2022-01-11 10:01:14 -07:00
Andreas Hocevar
1f761d943f Merge pull request #13219 from ahocevar/modify-delete-no-event
Do not fire modifyend event when nothing was modified
2022-01-11 13:56:08 +01:00
Andreas Hocevar
0816746505 Merge pull request #13221 from M393/vectortile-interpolate
Draw VectorTiles with interpolate in hybrid mode again
2022-01-11 12:56:17 +01:00
Maximilian Kroeg
430f354406 Draw VectorTiles with interpolate in hybrid mode again 2022-01-11 12:49:07 +01:00
Andreas Hocevar
48ce451f53 Do not fire modifyend event when nothing was modified 2022-01-11 12:45:08 +01:00
Andreas Hocevar
2f9a9af809 Merge pull request #13216 from EvertEt/typos
Fix some typos in ModifyInteraction documentation
2022-01-11 11:18:19 +01:00
Andreas Hocevar
bad590d0de Merge pull request #13217 from EvertEt/fix/13213
Fix MVT incorrect feature data handling
2022-01-11 11:16:46 +01:00
EvertEt
6a26ff4204 Fix MVT incorrect feature data handling
Closes #13213
2022-01-11 11:03:24 +01:00
EvertEt
cd840aaf88 Fix some typos in ModifyInteraction documentation 2022-01-11 11:03:04 +01:00
Andreas Hocevar
e98607e344 Merge pull request #13209 from openlayers/dependabot/npm_and_yarn/karma-6.3.10
Bump karma from 6.3.9 to 6.3.10
2022-01-10 13:36:06 +01:00
Andreas Hocevar
7c9822b9e7 Merge pull request #13211 from openlayers/dependabot/npm_and_yarn/shx-0.3.4
Bump shx from 0.3.3 to 0.3.4
2022-01-10 13:29:13 +01:00
dependabot[bot]
ed758f7655 Bump karma from 6.3.9 to 6.3.10
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.9 to 6.3.10.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.9...v6.3.10)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 12:29:05 +00:00
Andreas Hocevar
ff60daaa49 Merge pull request #13210 from openlayers/dependabot/npm_and_yarn/rollup/plugin-node-resolve-13.1.3
Bump @rollup/plugin-node-resolve from 13.1.2 to 13.1.3
2022-01-10 13:28:48 +01:00
Andreas Hocevar
f47b332512 Merge pull request #13208 from openlayers/dependabot/npm_and_yarn/rollup-2.63.0
Bump rollup from 2.62.0 to 2.63.0
2022-01-10 13:28:10 +01:00
Andreas Hocevar
1c0b6e2fe8 Merge pull request #13207 from openlayers/dependabot/npm_and_yarn/marked-4.0.9
Bump marked from 4.0.8 to 4.0.9
2022-01-10 13:27:49 +01:00
dependabot[bot]
3d8c98c865 Bump shx from 0.3.3 to 0.3.4
Bumps [shx](https://github.com/shelljs/shx) from 0.3.3 to 0.3.4.
- [Release notes](https://github.com/shelljs/shx/releases)
- [Changelog](https://github.com/shelljs/shx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/shelljs/shx/compare/v0.3.3...v0.3.4)

---
updated-dependencies:
- dependency-name: shx
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 10:01:58 +00:00
dependabot[bot]
acb2c2a69d Bump @rollup/plugin-node-resolve from 13.1.2 to 13.1.3
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve) from 13.1.2 to 13.1.3.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/node-resolve-v13.1.3/packages/node-resolve)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-node-resolve"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 10:01:48 +00:00
dependabot[bot]
b717d63b4c Bump rollup from 2.62.0 to 2.63.0
Bumps [rollup](https://github.com/rollup/rollup) from 2.62.0 to 2.63.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.62.0...v2.63.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 10:01:17 +00:00
dependabot[bot]
dbba580f82 Bump marked from 4.0.8 to 4.0.9
Bumps [marked](https://github.com/markedjs/marked) from 4.0.8 to 4.0.9.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v4.0.8...v4.0.9)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 10:00:59 +00:00
Tim Schaub
866c641c87 Merge pull request #13205 from tschaub/new-changelog
Format the changelog so contributors can be highlighted
2022-01-09 07:32:33 -07:00
Tim Schaub
076fc70b6c Format the changelog so contributors can be highlighted 2022-01-08 19:43:00 -07:00
Tim Schaub
a1643783c5 Merge pull request #13204 from openlayers/release-v6.11.0
Updates for the 6.11.0 release
2022-01-08 16:49:39 -07:00
Tim Schaub
28ca752a64 Develop on 6.11.1-dev 2022-01-08 16:34:38 -07:00
Tim Schaub
bd8a454df1 Updates for the 6.11.0 release 2022-01-08 16:17:52 -07:00
Andreas Hocevar
6de9c828ab Merge pull request #13195 from ahocevar/box-selection
Use getFeaturesInExtent
2022-01-08 21:53:16 +01:00
Tim Schaub
f13838470e Merge pull request #13200 from mike-000/sea-level
Use interpolate option in Sea Level example
2022-01-08 08:43:24 -07:00
Tim Schaub
a9210db25c Merge pull request #13201 from mike-000/typo
Fix typo in example description
2022-01-08 08:38:31 -07:00
Tim Schaub
85d5e5dfad Merge pull request #13177 from tschaub/ecoregions
Use ecoregions data
2022-01-08 08:32:46 -07:00
Tim Schaub
0e93a3118c Merge pull request #13198 from tschaub/no-color
Avoid failure if existing target has no background color
2022-01-08 08:31:47 -07:00
mike-000
449cfd15b1 Fix typo 2022-01-08 14:16:29 +00:00
mike-000
07ebc48516 Replace imageSmoothingEnabled with interpolate 2022-01-08 14:08:42 +00:00
Tim Schaub
a963ab7d1d Avoid failure if existing target has no background color 2022-01-07 15:05:31 -07:00
Tim Schaub
39b2de829e Remove countries from examples data 2022-01-07 13:58:31 -07:00
Tim Schaub
38d4a8f13f Update Sphere Mollweide example 2022-01-07 13:55:34 -07:00
Tim Schaub
197dd2e06d Update translate features example 2022-01-07 13:53:01 -07:00
Tim Schaub
4ce7f77749 Update label decluttering example 2022-01-07 13:50:43 -07:00
Tim Schaub
7f0b6b3f7a Update multi-select example 2022-01-07 13:47:08 -07:00
Tim Schaub
a64102f097 Update modify features example 2022-01-07 13:39:46 -07:00
Tim Schaub
22609f7a7d Update geographic editing example 2022-01-07 13:37:05 -07:00
Tim Schaub
35e1d29d6b Update canvas gradient example 2022-01-07 13:14:52 -07:00
Tim Schaub
eed400ca1c Update select on hover example 2022-01-07 13:00:35 -07:00
Tim Schaub
73f54c1e6c Update vector image layer example 2022-01-07 12:51:28 -07:00
Tim Schaub
71af0eee43 Update select features example 2022-01-07 12:45:27 -07:00
Tim Schaub
43e06a7d57 Update MapboxGL layer example 2022-01-07 12:45:27 -07:00
Tim Schaub
73f36adaaf Update hit detection example 2022-01-07 12:45:27 -07:00
Tim Schaub
2d96c92ac8 Update geojson-vt example 2022-01-07 12:45:27 -07:00
Tim Schaub
9024867893 Update extent interaction example 2022-01-07 12:45:27 -07:00
Tim Schaub
9aa3c00879 Update export map example 2022-01-07 12:45:27 -07:00
Tim Schaub
faddbf098b Update box selection example 2022-01-07 12:45:26 -07:00
Tim Schaub
539eae1398 Update vector layer example 2022-01-07 12:45:26 -07:00
Tim Schaub
e0aa161302 Merge pull request #13186 from mike-000/WebGL-getDataAtPixel
Add getDataAtPixel() method for WebGL
2022-01-07 12:05:10 -07:00
mike-000
9c955bc86d Update forEachLayerAtPixel description 2022-01-07 18:25:20 +00:00
Tim Schaub
ad7b95667f Merge pull request #13196 from bradh/contrast_typo_2022-01-07
typo fix for cog-stretch example
2022-01-06 21:22:47 -07:00
Brad
fc535ab4d0 typo fix for cog-stretch example 2022-01-07 13:29:51 +11:00
Andreas Hocevar
c785c2813b Filter for actual geometry intersection 2022-01-06 21:10:26 +01:00
Andreas Hocevar
a2388756f2 Use getFeaturesInExtent 2022-01-06 20:07:34 +01:00
Andreas Hocevar
69c02aa6c8 Merge pull request #13190 from ahocevar/basevector-type
Fix base vector layer template generics
2022-01-05 16:11:58 +01:00
Andreas Hocevar
f6496aa409 Fix base vector layer template generics 2022-01-04 18:04:53 +01:00
Tim Schaub
2893b78302 Merge pull request #13182 from openlayers/dependabot/npm_and_yarn/eslint-8.6.0
Bump eslint from 8.5.0 to 8.6.0
2022-01-03 07:34:36 -07:00
Tim Schaub
9553396c31 Merge pull request #13184 from openlayers/dependabot/npm_and_yarn/rollup/plugin-node-resolve-13.1.2
Bump @rollup/plugin-node-resolve from 13.1.1 to 13.1.2
2022-01-03 07:33:01 -07:00
Tim Schaub
13101e3ab4 Merge pull request #13183 from openlayers/dependabot/npm_and_yarn/babel/core-7.16.7
Bump @babel/core from 7.16.5 to 7.16.7
2022-01-03 07:32:23 -07:00
Tim Schaub
2dd4f71b51 Merge pull request #13185 from openlayers/dependabot/npm_and_yarn/webpack-dev-server-4.7.2
Bump webpack-dev-server from 4.7.1 to 4.7.2
2022-01-03 07:31:49 -07:00
Tim Schaub
9db298987b Merge pull request #13181 from openlayers/dependabot/npm_and_yarn/babel/preset-env-7.16.7
Bump @babel/preset-env from 7.16.5 to 7.16.7
2022-01-03 07:30:27 -07:00
mike-000
766a336650 Add getDataAtPixel() method for WebGL 2022-01-03 13:00:56 +00:00
mike-000
d85be48da2 Test getDataAtPixel() method for WebGL 2022-01-03 13:00:55 +00:00
dependabot[bot]
ae629301e9 Bump webpack-dev-server from 4.7.1 to 4.7.2
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.7.1 to 4.7.2.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.7.1...v4.7.2)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 10:02:05 +00:00
dependabot[bot]
7639eff49a Bump @rollup/plugin-node-resolve from 13.1.1 to 13.1.2
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve) from 13.1.1 to 13.1.2.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/node-resolve-v13.1.2/packages/node-resolve)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-node-resolve"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 10:01:52 +00:00
dependabot[bot]
654929bae2 Bump @babel/core from 7.16.5 to 7.16.7
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.16.5 to 7.16.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.16.7/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 10:01:42 +00:00
dependabot[bot]
7dd45c66ed Bump eslint from 8.5.0 to 8.6.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.5.0 to 8.6.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.5.0...v8.6.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 10:01:25 +00:00
dependabot[bot]
1193476442 Bump @babel/preset-env from 7.16.5 to 7.16.7
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.16.5 to 7.16.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.16.7/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 10:01:10 +00:00
Andreas Hocevar
83d3bbf0ab Merge pull request #13180 from ahocevar/geotiff-es
Always use ES modules from geotiff.js
2022-01-02 11:02:43 +01:00
Andreas Hocevar
665da47437 Merge pull request #13179 from ahocevar/blob-or-buffer
Use Buffer and data uri when Blob is not available
2022-01-02 11:01:40 +01:00
Andreas Hocevar
00b7bc60ac Use Buffer and data uri when Blob is not available 2022-01-01 22:47:22 +01:00
Andreas Hocevar
93abfe78a3 Always use ES modules from geotiff.js 2022-01-01 22:41:11 +01:00
Tim Schaub
3506176328 Merge pull request #13178 from tschaub/layer-background
Use background property for vector layers
2022-01-01 11:56:29 -07:00
Tim Schaub
275ecca473 Use background property for vector layers 2022-01-01 11:51:06 -07:00
MoonE
9b0878a94a Merge pull request #13175 from MoonE/nodejs-12-compatibility
Allow nodejs 12 to build the examples again
2021-12-31 23:00:24 +01:00
Tim Schaub
c500fdc4ad Merge pull request #13176 from mike-000/datatile-attributions
Add `attributions` and `attributionsCollapsible` options to `ol/source/DataTile`
2021-12-31 09:24:09 -07:00
mike-000
b1b09619bb Add attributions/attributionsCollapsible options 2021-12-31 14:20:33 +00:00
Maximilian Krög
d63a7ae497 Allow nodejs 12 to build the examples again 2021-12-31 11:06:43 +01:00
Andreas Hocevar
bc2969fd78 Merge pull request #13171 from mike-000/4326-scale-bar
Correct scale bar in EPSG:4326
2021-12-30 17:51:18 +01:00
mike-000
37f117b782 Test scalebar text in EPSG:4326 2021-12-29 23:55:50 +00:00
mike-000
c8a7a83e1f correct getScaleForResolution() 2021-12-29 22:43:53 +00:00
mike-000
e8b4011cf4 new example 2021-12-29 22:43:53 +00:00
Tim Schaub
d6d4b878c2 Merge pull request #13168 from openlayers/release-v6.10.0
Release 6.10.0
2021-12-28 15:59:06 -07:00
Tim Schaub
6570416343 Develop on 6.10.1-dev 2021-12-28 15:52:47 -07:00
Tim Schaub
02c1f4914a Changes for 6.10.0 2021-12-28 15:39:43 -07:00
Tim Schaub
f0d488c549 Merge pull request #13155 from tschaub/data-tile-interpolation
Allow interpolation to be configured for data tile sources
2021-12-28 14:16:53 -07:00
Tim Schaub
e2883fb658 Deprecate the imageSmoothing option for sources 2021-12-27 15:30:48 -07:00
Andreas Hocevar
bec4b3028a Merge pull request #13165 from ahocevar/topojson
Do not exceed maximum call stack when parsing TopoJSON
2021-12-27 23:30:19 +01:00
Tim Schaub
8d8632bff7 Allow interpolation to be configured for data tile sources 2021-12-27 10:11:36 -07:00
Tim Schaub
3edb5d6ddc Merge pull request #13162 from openlayers/dependabot/npm_and_yarn/yargs-17.3.1
Bump yargs from 17.3.0 to 17.3.1
2021-12-27 10:11:06 -07:00
Andreas Hocevar
6e8ae4a714 Do not exceed maximum call stack when parsing TopoJSON 2021-12-27 18:08:20 +01:00
Andreas Hocevar
8ab025a77d Merge pull request #13158 from ahocevar/clusters
Add example for dynamic clusters
2021-12-27 17:26:44 +01:00
Andreas Hocevar
c5ce37b484 Add example for dynamic clusters 2021-12-27 16:59:25 +01:00
Andreas Hocevar
dabebdf9ff Merge pull request #13163 from openlayers/dependabot/npm_and_yarn/rollup-2.62.0
Bump rollup from 2.61.1 to 2.62.0
2021-12-27 16:04:59 +01:00
dependabot[bot]
0058ea021a Bump rollup from 2.61.1 to 2.62.0
Bumps [rollup](https://github.com/rollup/rollup) from 2.61.1 to 2.62.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.61.1...v2.62.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-27 14:25:34 +00:00
Andreas Hocevar
5c848eb697 Merge pull request #13161 from openlayers/dependabot/npm_and_yarn/webpack-dev-server-4.7.1
Bump webpack-dev-server from 4.6.0 to 4.7.1
2021-12-27 15:25:18 +01:00
Andreas Hocevar
46a630eb9a Merge pull request #13160 from openlayers/dependabot/npm_and_yarn/puppeteer-13.0.1
Bump puppeteer from 13.0.0 to 13.0.1
2021-12-27 15:23:51 +01:00
dependabot[bot]
e03366feb2 Bump yargs from 17.3.0 to 17.3.1
Bumps [yargs](https://github.com/yargs/yargs) from 17.3.0 to 17.3.1.
- [Release notes](https://github.com/yargs/yargs/releases)
- [Changelog](https://github.com/yargs/yargs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/yargs/yargs/compare/v17.3.0...v17.3.1)

---
updated-dependencies:
- dependency-name: yargs
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-27 10:01:20 +00:00
dependabot[bot]
a48f50b249 Bump webpack-dev-server from 4.6.0 to 4.7.1
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.6.0 to 4.7.1.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.6.0...v4.7.1)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-27 10:01:05 +00:00
dependabot[bot]
d0741d628d Bump puppeteer from 13.0.0 to 13.0.1
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 13.0.0 to 13.0.1.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v13.0.0...v13.0.1)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-27 10:00:46 +00:00
Tim Schaub
6ac4b66655 Merge pull request #13156 from tschaub/tile-range
Ensure that tile range covers all pixels
2021-12-24 03:55:12 -07:00
Tim Schaub
2d510e71a9 Ensure that tile range covers all pixels 2021-12-23 17:50:49 -07:00
Tim Schaub
45c38eabc4 Merge pull request #13154 from mike-000/export-map
Update Export Map example to handle WebGL
2021-12-23 07:58:59 -07:00
Tim Schaub
a4ee7eee10 Merge pull request #13147 from tschaub/palette
Support rendering with a palette in WebGL
2021-12-23 06:28:46 -07:00
mike-000
f4906b83c9 Add Heatmap layer to example 2021-12-23 12:23:08 +00:00
Tim Schaub
71fc4be2eb Merge pull request #13142 from mike-000/transpacific-flights
Include transpacific flights in Flight Animation example
2021-12-22 11:38:12 -07:00
Tim Schaub
59186f2afd Support paletted rendering in WebGL 2021-12-22 11:14:46 -07:00
Olivier Guyot
0c11a7514d Merge pull request #13150 from mike-000/heatmap-opacity
Include layer opacity in Heatmap shader
2021-12-22 12:28:03 +01:00
mike-000
351ca5866b update docs to include u_opacity 2021-12-22 10:48:25 +00:00
mike-000
bdb7b9740b new test 2021-12-21 23:21:41 +00:00
Andreas Hocevar
61f05fae74 Merge pull request #13149 from ahocevar/select-layer
Add layer also for programmatically selected features
2021-12-21 20:31:29 +01:00
Tim Schaub
4fe091c02d Merge pull request #13151 from mike-000/null-attributes
Avoid error accessing attributes when context is lost
2021-12-21 11:47:08 -07:00
mike-000
792f937aa5 don't try to access properties of null attributes 2021-12-21 17:21:25 +00:00
mike-000
4acb45dc78 include layer opacity in shader 2021-12-21 17:07:57 +00:00
Andreas Hocevar
4f7cadd17d Add layer also for programmatically selected features 2021-12-21 08:25:57 +01:00
Tim Schaub
5267e30d6d Merge pull request #13144 from mike-000/popup
Replace deprecated syntax in example
2021-12-20 15:18:15 -07:00
mike-000
abdb313ad7 replace deprecated syntax 2021-12-20 15:50:01 +00:00
mike-000
ff22f9ace9 show transpacific flights 2021-12-20 15:15:59 +00:00
Andreas Hocevar
e5a32f533e Merge pull request #13131 from ahocevar/unset-canvas
Unset canvas css in stylesheet
2021-12-20 13:48:46 +01:00
Andreas Hocevar
28bc9650d7 Merge pull request #13140 from openlayers/dependabot/npm_and_yarn/rollup/plugin-node-resolve-13.1.1
Bump @rollup/plugin-node-resolve from 13.0.6 to 13.1.1
2021-12-20 11:31:48 +01:00
Andreas Hocevar
bb3140550d Merge pull request #13132 from openlayers/dependabot/npm_and_yarn/copy-webpack-plugin-10.2.0
Bump copy-webpack-plugin from 10.1.0 to 10.2.0
2021-12-20 11:14:55 +01:00
Andreas Hocevar
2e03069440 Merge pull request #13141 from openlayers/dependabot/npm_and_yarn/webpack-dev-middleware-5.3.0
Bump webpack-dev-middleware from 5.2.2 to 5.3.0
2021-12-20 11:14:25 +01:00
Andreas Hocevar
dbd4dda0cd Merge pull request #13133 from openlayers/dependabot/npm_and_yarn/eslint-8.5.0
Bump eslint from 8.4.1 to 8.5.0
2021-12-20 11:13:49 +01:00
Andreas Hocevar
76e294566e Merge pull request #13139 from openlayers/dependabot/npm_and_yarn/babel/core-7.16.5
Bump @babel/core from 7.16.0 to 7.16.5
2021-12-20 11:13:27 +01:00
Andreas Hocevar
1f2ce78567 Merge pull request #13136 from openlayers/dependabot/npm_and_yarn/babel/preset-env-7.16.5
Bump @babel/preset-env from 7.16.4 to 7.16.5
2021-12-20 11:12:46 +01:00
Andreas Hocevar
1413a13385 Merge pull request #13137 from openlayers/dependabot/npm_and_yarn/express-4.17.2
Bump express from 4.17.1 to 4.17.2
2021-12-20 11:12:22 +01:00
Andreas Hocevar
c307df47fa Merge pull request #13138 from openlayers/dependabot/npm_and_yarn/ol-mapbox-style-6.8.1
Bump ol-mapbox-style from 6.7.0 to 6.8.1
2021-12-20 11:11:52 +01:00
Andreas Hocevar
386671f5ef Merge pull request #13134 from openlayers/dependabot/npm_and_yarn/marked-4.0.8
Bump marked from 4.0.7 to 4.0.8
2021-12-20 11:11:27 +01:00
dependabot[bot]
dbe7358b52 Bump webpack-dev-middleware from 5.2.2 to 5.3.0
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.2.2 to 5.3.0.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.2.2...v5.3.0)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 10:03:04 +00:00
dependabot[bot]
2e2bfeb708 Bump @rollup/plugin-node-resolve from 13.0.6 to 13.1.1
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve) from 13.0.6 to 13.1.1.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/node-resolve-v13.1.1/packages/node-resolve)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-node-resolve"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 10:02:52 +00:00
dependabot[bot]
7fbe54686c Bump @babel/core from 7.16.0 to 7.16.5
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.16.0 to 7.16.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.16.5/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 10:02:39 +00:00
dependabot[bot]
bb0470ef8b Bump ol-mapbox-style from 6.7.0 to 6.8.1
Bumps [ol-mapbox-style](https://github.com/openlayers/ol-mapbox-style) from 6.7.0 to 6.8.1.
- [Release notes](https://github.com/openlayers/ol-mapbox-style/releases)
- [Changelog](https://github.com/openlayers/ol-mapbox-style/blob/main/CHANGELOG.md)
- [Commits](https://github.com/openlayers/ol-mapbox-style/compare/v6.7.0...v6.8.1)

---
updated-dependencies:
- dependency-name: ol-mapbox-style
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 10:02:28 +00:00
dependabot[bot]
74c7e21c6f Bump express from 4.17.1 to 4.17.2
Bumps [express](https://github.com/expressjs/express) from 4.17.1 to 4.17.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.1...4.17.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 10:02:14 +00:00
dependabot[bot]
d53ce74027 Bump @babel/preset-env from 7.16.4 to 7.16.5
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.16.4 to 7.16.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.16.5/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 10:01:58 +00:00
dependabot[bot]
6e4f862a3d Bump marked from 4.0.7 to 4.0.8
Bumps [marked](https://github.com/markedjs/marked) from 4.0.7 to 4.0.8.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v4.0.7...v4.0.8)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 10:01:29 +00:00
dependabot[bot]
2664733ea8 Bump eslint from 8.4.1 to 8.5.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.4.1 to 8.5.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.4.1...v8.5.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 10:01:13 +00:00
dependabot[bot]
89bcfd068c Bump copy-webpack-plugin from 10.1.0 to 10.2.0
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 10.1.0 to 10.2.0.
- [Release notes](https://github.com/webpack-contrib/copy-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v10.1.0...v10.2.0)

---
updated-dependencies:
- dependency-name: copy-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 10:01:00 +00:00
Andreas Hocevar
c33adb1035 Unset canvas css in stylesheet 2021-12-20 09:57:41 +01:00
Tim Schaub
4700e8a17b Merge pull request #13130 from tschaub/lazy-gl
Allow WebGL tile layers to be constructed without a source
2021-12-19 17:10:44 -07:00
Tim Schaub
34c84cf107 Allow WebGL tile layers to be constructed without a source 2021-12-19 09:58:40 -07:00
Tim Schaub
568327e693 Merge pull request #13126 from tschaub/preserve-drawing-buffer
Preserve the drawing buffer by default for WebGL layers
2021-12-19 08:16:55 -07:00
Tim Schaub
c75e127734 Merge pull request #13127 from mike-000/patch-2
Fix for range slider on IE
2021-12-18 15:54:18 -07:00
mike-000
7efb9e3ba7 Fix for range slider on IE 2021-12-18 20:42:15 +00:00
Tim Schaub
0cc3bae8fe Preserve the drawing buffer by default for WebGL layers 2021-12-18 12:25:03 -07:00
Andreas Hocevar
c8cfbfccf8 Merge pull request #13095 from ahocevar/rendercomplete-tiles
Render is only complete when no tiles are queued
2021-12-17 16:06:51 +01:00
Andreas Hocevar
ae637bf683 Merge pull request #13120 from ahocevar/view-properties
Populate view's object properties
2021-12-16 22:09:08 +01:00
Andreas Hocevar
0e3477ec24 Merge pull request #13102 from jipexu/main
update line-arrows example
2021-12-16 22:08:41 +01:00
Tim Schaub
a8baab7561 Merge pull request #13119 from tschaub/webgl-compose-events
Dispatch precompose and postcompose events for WebGL layers
2021-12-16 12:42:20 -07:00
Andreas Hocevar
628e5c1c90 Also update zoom property 2021-12-16 12:32:57 +01:00
Tim Schaub
68ea485e69 Dispatch precompose and postcompose events for WebGL layers 2021-12-15 16:59:51 -07:00
Andreas Hocevar
f6cb4c296d Populate view's object properties 2021-12-16 00:11:15 +01:00
Tim Schaub
848965b25c Merge pull request #13118 from tschaub/webgl-opacity
Add a layer opacity example
2021-12-15 09:47:58 -07:00
Tim Schaub
3f73a2f04f Add a layer opacity example 2021-12-15 09:42:46 -07:00
Tim Schaub
3643144108 Merge pull request #13115 from tschaub/lazy-blob
Lazily create resources for worker
2021-12-15 06:49:21 -07:00
Tim Schaub
6958ca3101 Lazily create resources for worker 2021-12-14 16:54:06 -07:00
Tim Schaub
35a6825f74 Merge pull request #13103 from tschaub/limited-precision-rounding
Assume limited precision when rounding
2021-12-13 11:23:12 -07:00
Tim Schaub
4f6f66f966 Merge pull request #13106 from openlayers/dependabot/npm_and_yarn/webpack-5.65.0
Bump webpack from 5.64.4 to 5.65.0
2021-12-13 07:43:10 -07:00
Tim Schaub
288411f86c Merge pull request #13108 from openlayers/dependabot/npm_and_yarn/rollup-2.61.1
Bump rollup from 2.60.2 to 2.61.1
2021-12-13 07:38:37 -07:00
dependabot[bot]
056f6c30fb Bump webpack from 5.64.4 to 5.65.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.64.4 to 5.65.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.64.4...v5.65.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 14:37:35 +00:00
Tim Schaub
2494bee7c8 Merge pull request #13107 from openlayers/dependabot/npm_and_yarn/copy-webpack-plugin-10.1.0
Bump copy-webpack-plugin from 10.0.0 to 10.1.0
2021-12-13 07:36:48 -07:00
Tim Schaub
96b2e88c5f Merge pull request #13105 from openlayers/dependabot/npm_and_yarn/eslint-8.4.1
Bump eslint from 8.4.0 to 8.4.1
2021-12-13 07:35:19 -07:00
dependabot[bot]
427317fa42 Bump rollup from 2.60.2 to 2.61.1
Bumps [rollup](https://github.com/rollup/rollup) from 2.60.2 to 2.61.1.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.60.2...v2.61.1)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 14:29:08 +00:00
Tim Schaub
14e9b83954 Merge pull request #13109 from openlayers/dependabot/npm_and_yarn/marked-4.0.7
Bump marked from 4.0.6 to 4.0.7
2021-12-13 07:28:51 -07:00
dependabot[bot]
d4e057bc10 Bump copy-webpack-plugin from 10.0.0 to 10.1.0
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 10.0.0 to 10.1.0.
- [Release notes](https://github.com/webpack-contrib/copy-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v10.0.0...v10.1.0)

---
updated-dependencies:
- dependency-name: copy-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 14:28:46 +00:00
dependabot[bot]
fc2cb2e876 Bump eslint from 8.4.0 to 8.4.1
Bumps [eslint](https://github.com/eslint/eslint) from 8.4.0 to 8.4.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.4.0...v8.4.1)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 14:28:22 +00:00
Tim Schaub
d6e47de6ea Merge pull request #13110 from openlayers/dependabot/npm_and_yarn/puppeteer-13.0.0
Bump puppeteer from 12.0.1 to 13.0.0
2021-12-13 07:28:18 -07:00
Tim Schaub
15a6eda515 Merge pull request #13111 from openlayers/dependabot/npm_and_yarn/clean-css-cli-5.5.0
Bump clean-css-cli from 5.4.2 to 5.5.0
2021-12-13 07:27:24 -07:00
dependabot[bot]
c1fc7db3f7 Bump clean-css-cli from 5.4.2 to 5.5.0
Bumps [clean-css-cli](https://github.com/clean-css/clean-css-cli) from 5.4.2 to 5.5.0.
- [Release notes](https://github.com/clean-css/clean-css-cli/releases)
- [Changelog](https://github.com/clean-css/clean-css-cli/blob/master/History.md)
- [Commits](https://github.com/clean-css/clean-css-cli/compare/v5.4.2...v5.5.0)

---
updated-dependencies:
- dependency-name: clean-css-cli
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 10:02:29 +00:00
dependabot[bot]
762d0768b4 Bump puppeteer from 12.0.1 to 13.0.0
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 12.0.1 to 13.0.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v12.0.1...v13.0.0)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 10:02:17 +00:00
dependabot[bot]
fc4a05ccf4 Bump marked from 4.0.6 to 4.0.7
Bumps [marked](https://github.com/markedjs/marked) from 4.0.6 to 4.0.7.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v4.0.6...v4.0.7)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 10:02:06 +00:00
Tim Schaub
78bf0a3679 Assume limited precision when rounding 2021-12-11 15:57:42 -07:00
jeanpierre
fafcb65fff update line-arrows example
as same behavior as  #13074

Co-Authored-By: Andreas Hocevar <211514+ahocevar@users.noreply.github.com>
2021-12-09 18:43:56 +01:00
Tim Schaub
01c81373b3 Merge pull request #13097 from mike-000/terrain-rgb-tileSize
Use correct terrain-rgb tile size and update max zoom
2021-12-09 10:40:21 -06:00
Tim Schaub
6dff267272 Merge pull request #13101 from M393/view-set-center-undefined
Fix View set center to undefined
2021-12-09 10:37:31 -06:00
Maximilian Kroeg
fa80e2d064 Fix setting center to undefined 2021-12-09 15:41:15 +01:00
Maximilian Kroeg
e79d9d386b Add test for setting center to undefined 2021-12-09 15:41:15 +01:00
mike-000
1cb6465702 Update tile source maxZoom 2021-12-08 17:28:33 +00:00
mike-000
db99de6903 Use correct terrain-rgb tile size 2021-12-08 17:28:18 +00:00
mike-000
8de93330b5 Use correct terrain-rgb tile size 2021-12-08 17:08:45 +00:00
Andreas Hocevar
c59047c965 Render is only complete when no tiles are queued 2021-12-07 11:32:41 +01:00
Andreas Hocevar
238695a107 Merge pull request #13085 from ahocevar/layer-background
Add layer background
2021-12-06 20:39:19 +01:00
Tim Schaub
5db09b3817 Merge pull request #13091 from openlayers/dependabot/npm_and_yarn/rollup-2.60.2
Bump rollup from 2.60.1 to 2.60.2
2021-12-06 06:47:09 -07:00
Tim Schaub
431a054a7d Merge pull request #13089 from openlayers/dependabot/npm_and_yarn/eslint-8.4.0
Bump eslint from 8.3.0 to 8.4.0
2021-12-06 06:44:27 -07:00
Tim Schaub
9e8ee1c05d Merge pull request #13090 from openlayers/dependabot/npm_and_yarn/marked-4.0.6
Bump marked from 4.0.5 to 4.0.6
2021-12-06 06:42:44 -07:00
dependabot[bot]
3f4f922106 Bump rollup from 2.60.1 to 2.60.2
Bumps [rollup](https://github.com/rollup/rollup) from 2.60.1 to 2.60.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.60.1...v2.60.2)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 13:41:19 +00:00
Tim Schaub
30ecf117ac Merge pull request #13093 from openlayers/dependabot/npm_and_yarn/yargs-17.3.0
Bump yargs from 17.2.1 to 17.3.0
2021-12-06 06:41:02 -07:00
Tim Schaub
7f6a479805 Merge pull request #13092 from openlayers/dependabot/npm_and_yarn/puppeteer-12.0.1
Bump puppeteer from 12.0.0 to 12.0.1
2021-12-06 06:40:01 -07:00
Tim Schaub
0326447611 Merge pull request #13088 from openlayers/dependabot/npm_and_yarn/geotiff-1.0.9
Bump geotiff from 1.0.8 to 1.0.9
2021-12-06 06:39:03 -07:00
Tim Schaub
ce751f26dc Merge pull request #13083 from tschaub/band-expression
Support expressions for band arguments
2021-12-06 06:35:11 -07:00
dependabot[bot]
be205b325d Bump yargs from 17.2.1 to 17.3.0
Bumps [yargs](https://github.com/yargs/yargs) from 17.2.1 to 17.3.0.
- [Release notes](https://github.com/yargs/yargs/releases)
- [Changelog](https://github.com/yargs/yargs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/yargs/yargs/compare/v17.2.1...v17.3.0)

---
updated-dependencies:
- dependency-name: yargs
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 10:02:25 +00:00
dependabot[bot]
3ebd1d7f1d Bump puppeteer from 12.0.0 to 12.0.1
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 12.0.0 to 12.0.1.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v12.0.0...v12.0.1)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 10:02:08 +00:00
dependabot[bot]
72c78e3e92 Bump marked from 4.0.5 to 4.0.6
Bumps [marked](https://github.com/markedjs/marked) from 4.0.5 to 4.0.6.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v4.0.5...v4.0.6)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 10:01:47 +00:00
dependabot[bot]
6c7d8f6af9 Bump eslint from 8.3.0 to 8.4.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.3.0 to 8.4.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.3.0...v8.4.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 10:01:35 +00:00
dependabot[bot]
28fc19e6ae Bump geotiff from 1.0.8 to 1.0.9
Bumps [geotiff](https://github.com/geotiffjs/geotiff.js) from 1.0.8 to 1.0.9.
- [Release notes](https://github.com/geotiffjs/geotiff.js/releases)
- [Commits](https://github.com/geotiffjs/geotiff.js/compare/v1.0.8...v1.0.9)

---
updated-dependencies:
- dependency-name: geotiff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 10:01:16 +00:00
Tim Schaub
f5803ad6ca Support expressions for band arguments 2021-12-05 17:04:50 -07:00
Andreas Hocevar
67c183958a Use applyBackground instead of custom code 2021-12-06 00:07:16 +01:00
Andreas Hocevar
3638df90f8 Add layer background 2021-12-06 00:07:15 +01:00
Andreas Hocevar
4ed1226411 Merge pull request #13084 from ahocevar/normalize-urls
Normalize relative sprite and glyph urls for style url
2021-12-04 17:35:09 +01:00
Andreas Hocevar
60c4268569 Normalize relative urls for style url 2021-12-04 14:36:08 +01:00
Tim Schaub
747967e797 Merge pull request #13020 from tschaub/set-style
Allow WebGL tile layer style to be updated
2021-12-03 17:24:26 -07:00
Andreas Hocevar
d86464a812 Merge pull request #13073 from ahocevar/image-decode-fallback
Fall back to standard load handling when decode fails
2021-12-03 07:19:13 +01:00
Tim Schaub
acea9dc822 Rendering test for setting layer style 2021-12-02 17:16:35 -07:00
Tim Schaub
686a6f147d Add example of resetting a layer style 2021-12-02 16:32:00 -07:00
Tim Schaub
c2fc800fc1 Allow WebGL tile layer style to be updated 2021-12-02 16:32:00 -07:00
Andreas Hocevar
d95e507af3 Merge pull request #13077 from jipexu/main
update draw and modify features example
2021-12-02 18:24:12 +01:00
jipexu
b24f0c9f1b Update examples/draw-and-modify-features.js
Co-authored-by: Andreas Hocevar <andreas.hocevar@gmail.com>
2021-12-02 18:12:10 +01:00
jipexu
9d94485b48 Update examples/draw-and-modify-features.js
Co-authored-by: Andreas Hocevar <andreas.hocevar@gmail.com>
2021-12-02 18:11:53 +01:00
jipexu
f73a891797 Update examples/draw-and-modify-features.js
Co-authored-by: Andreas Hocevar <andreas.hocevar@gmail.com>
2021-12-02 18:11:23 +01:00
jeanpierre
004f429ee2 Update draw-and-modify-features.js
Co-Authored-By: Andreas Hocevar <211514+ahocevar@users.noreply.github.com>
2021-12-02 16:58:08 +01:00
jeanpierre
bad0105352 Update draw-and-modify-features.js
import

Co-Authored-By: Andreas Hocevar <211514+ahocevar@users.noreply.github.com>
2021-12-02 16:52:56 +01:00
jeanpierre
cea1c79803 Update draw-and-modify-features.js
forget import ..?

Co-Authored-By: Andreas Hocevar <211514+ahocevar@users.noreply.github.com>
2021-12-02 16:41:00 +01:00
jipexu
8e8d8598b9 update draw and modify features example
update draw and modify features example

Co-Authored-By: Andreas Hocevar <211514+ahocevar@users.noreply.github.com>
2021-12-02 15:46:01 +01:00
Tim Schaub
ed07d60314 Merge pull request #13069 from tschaub/geotiff-stats
Normalize based on GDAL stats metadata
2021-12-02 04:59:43 -07:00
Andreas Hocevar
2d92756f84 Fall back to standard load handling when decode fails 2021-12-02 08:34:51 +01:00
Andreas Hocevar
eb76d072a9 Merge pull request #13070 from ahocevar/mapboxvector-minzoom
Use source minzoom if not configured otherwise
2021-12-02 06:25:12 +01:00
Andreas Hocevar
544e55fe1a Use source minzoom if not configured otherwise 2021-12-02 06:19:21 +01:00
Tim Schaub
04ac30009b Normalize based on GDAL stats metadata 2021-12-01 09:46:37 -07:00
Tim Schaub
38bff05e43 Merge pull request #13065 from jipexu/main
Fix typo in example
2021-12-01 07:21:10 -07:00
Tim Schaub
43c40eb6d6 Merge pull request #13060 from tschaub/less-nodata
Avoid fetching data outside the grid extent
2021-12-01 07:12:21 -07:00
jipexu
3a57a873bc typo
visibile => visible
2021-12-01 12:19:22 +01:00
Tim Schaub
3ef40f8e22 Allow wrapX to be set on GeoTIFF sources 2021-11-30 16:49:21 -07:00
Tim Schaub
3bf1aef8e2 Avoid loading tiles outside the grid extent 2021-11-30 16:30:51 -07:00
Tim Schaub
a788c9bd1e Merge pull request #13057 from openlayers/dependabot/npm_and_yarn/puppeteer-12.0.0
Bump puppeteer from 11.0.0 to 12.0.0
2021-11-29 08:15:54 -07:00
Tim Schaub
eaea5b3bdc Update expectations 2021-11-29 08:10:09 -07:00
Tim Schaub
b678c51234 Merge pull request #13055 from openlayers/dependabot/npm_and_yarn/webpack-5.64.4
Bump webpack from 5.64.2 to 5.64.4
2021-11-29 08:04:47 -07:00
Andreas Hocevar
2e755764ec Merge pull request #13054 from ahocevar/ogc-api-tilesets
Updates for newer version of the OGC API spec draft
2021-11-29 16:02:49 +01:00
dependabot[bot]
dbec83b8d9 Bump webpack from 5.64.2 to 5.64.4
Bumps [webpack](https://github.com/webpack/webpack) from 5.64.2 to 5.64.4.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.64.2...v5.64.4)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 14:15:08 +00:00
Tim Schaub
ad21ed7840 Merge pull request #13056 from openlayers/dependabot/npm_and_yarn/webpack-dev-server-4.6.0
Bump webpack-dev-server from 4.5.0 to 4.6.0
2021-11-29 07:14:23 -07:00
Tim Schaub
68332c48b5 Merge pull request #13058 from openlayers/dependabot/npm_and_yarn/marked-4.0.5
Bump marked from 4.0.4 to 4.0.5
2021-11-29 07:13:50 -07:00
Andreas Hocevar
7d8afea8a7 Fix axis order 2021-11-29 13:52:14 +01:00
dependabot[bot]
6432a16a98 Bump marked from 4.0.4 to 4.0.5
Bumps [marked](https://github.com/markedjs/marked) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v4.0.4...v4.0.5)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 10:01:54 +00:00
dependabot[bot]
7fa8081226 Bump puppeteer from 11.0.0 to 12.0.0
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 11.0.0 to 12.0.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v11.0.0...v12.0.0)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 10:01:39 +00:00
dependabot[bot]
dcc7c27ec0 Bump webpack-dev-server from 4.5.0 to 4.6.0
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.5.0 to 4.6.0.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.5.0...v4.6.0)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 10:01:11 +00:00
Andreas Hocevar
8e6f451553 Updates for newer version of the OGC API spec draft 2021-11-29 10:42:28 +01:00
Andreas Hocevar
b9b1b535dd Merge pull request #13045 from ahocevar/mapbox-vector
Fix tiles and background handling
2021-11-25 16:04:01 +01:00
Andreas Hocevar
cafba311de Fix test styles to make them valid 2021-11-24 11:59:50 +01:00
Andreas Hocevar
e00d005088 Fix tiles and background handling 2021-11-24 10:53:55 +01:00
Tim Schaub
87d37937c5 Merge pull request #13032 from openlayers/dependabot/npm_and_yarn/webpack-5.64.2
Bump webpack from 5.64.0 to 5.64.2
2021-11-22 09:05:24 -07:00
dependabot[bot]
243d466ece Bump webpack from 5.64.0 to 5.64.2
Bumps [webpack](https://github.com/webpack/webpack) from 5.64.0 to 5.64.2.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.64.0...v5.64.2)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 15:55:40 +00:00
Tim Schaub
104e3364bd Merge pull request #13033 from openlayers/dependabot/npm_and_yarn/webpack-sources-3.2.2
Bump webpack-sources from 3.2.1 to 3.2.2
2021-11-22 08:54:55 -07:00
Tim Schaub
a9bd6cd00e Merge pull request #13034 from openlayers/dependabot/npm_and_yarn/rollup-2.60.1
Bump rollup from 2.60.0 to 2.60.1
2021-11-22 08:54:24 -07:00
Tim Schaub
2960668698 Merge pull request #13035 from openlayers/dependabot/npm_and_yarn/copy-webpack-plugin-10.0.0
Bump copy-webpack-plugin from 9.1.0 to 10.0.0
2021-11-22 08:52:47 -07:00
Tim Schaub
9636e4ddd7 Merge pull request #13036 from openlayers/dependabot/npm_and_yarn/webpack-dev-middleware-5.2.2
Bump webpack-dev-middleware from 5.2.1 to 5.2.2
2021-11-22 08:52:02 -07:00
Tim Schaub
d684cb01e6 Merge pull request #13037 from openlayers/dependabot/npm_and_yarn/babel/preset-env-7.16.4
Bump @babel/preset-env from 7.16.0 to 7.16.4
2021-11-22 08:51:35 -07:00
Tim Schaub
5853dc2d19 Merge pull request #13038 from openlayers/dependabot/npm_and_yarn/marked-4.0.4
Bump marked from 4.0.3 to 4.0.4
2021-11-22 08:50:50 -07:00
Tim Schaub
100c4a2baf Merge pull request #13039 from openlayers/dependabot/npm_and_yarn/eslint-8.3.0
Bump eslint from 8.2.0 to 8.3.0
2021-11-22 08:50:25 -07:00
Tim Schaub
e2daac9c4e Merge pull request #13040 from openlayers/dependabot/npm_and_yarn/ol-mapbox-style-6.5.3
Bump ol-mapbox-style from 6.5.2 to 6.5.3
2021-11-22 08:49:13 -07:00
Tim Schaub
14b254aeb6 Merge pull request #13041 from openlayers/dependabot/npm_and_yarn/karma-6.3.9
Bump karma from 6.3.8 to 6.3.9
2021-11-22 08:48:09 -07:00
dependabot[bot]
7c59869549 Bump karma from 6.3.8 to 6.3.9
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.8 to 6.3.9.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.8...v6.3.9)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 10:03:18 +00:00
dependabot[bot]
b91f8398d2 Bump ol-mapbox-style from 6.5.2 to 6.5.3
Bumps [ol-mapbox-style](https://github.com/openlayers/ol-mapbox-style) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/openlayers/ol-mapbox-style/releases)
- [Changelog](https://github.com/openlayers/ol-mapbox-style/blob/main/CHANGELOG.md)
- [Commits](https://github.com/openlayers/ol-mapbox-style/compare/v6.5.2...v6.5.3)

---
updated-dependencies:
- dependency-name: ol-mapbox-style
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 10:03:02 +00:00
dependabot[bot]
ce3b1dc371 Bump eslint from 8.2.0 to 8.3.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.2.0 to 8.3.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.2.0...v8.3.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 10:02:48 +00:00
dependabot[bot]
c10af22f27 Bump marked from 4.0.3 to 4.0.4
Bumps [marked](https://github.com/markedjs/marked) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v4.0.3...v4.0.4)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 10:02:23 +00:00
dependabot[bot]
a6c869f8f2 Bump @babel/preset-env from 7.16.0 to 7.16.4
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.16.0 to 7.16.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.16.4/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 10:02:11 +00:00
dependabot[bot]
c96ce1d9c3 Bump webpack-dev-middleware from 5.2.1 to 5.2.2
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.2.1...v5.2.2)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 10:01:51 +00:00
dependabot[bot]
3058b3730a Bump copy-webpack-plugin from 9.1.0 to 10.0.0
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 9.1.0 to 10.0.0.
- [Release notes](https://github.com/webpack-contrib/copy-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v9.1.0...v10.0.0)

---
updated-dependencies:
- dependency-name: copy-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 10:01:40 +00:00
dependabot[bot]
e4cb2aae12 Bump rollup from 2.60.0 to 2.60.1
Bumps [rollup](https://github.com/rollup/rollup) from 2.60.0 to 2.60.1.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.60.0...v2.60.1)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 10:01:23 +00:00
dependabot[bot]
9e7d3fd07b Bump webpack-sources from 3.2.1 to 3.2.2
Bumps [webpack-sources](https://github.com/webpack/webpack-sources) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/webpack/webpack-sources/releases)
- [Commits](https://github.com/webpack/webpack-sources/compare/v3.2.1...v3.2.2)

---
updated-dependencies:
- dependency-name: webpack-sources
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 10:01:07 +00:00
MoonE
ea2e87c563 Merge pull request #13030 from MoonE/geographic-popover-fix
Correctly set popover position in geographic example
2021-11-21 22:37:32 +01:00
Tim Schaub
8665cee8cc Merge pull request #13031 from tschaub/to-promise
Allow data tile source loader to return a value or a promise
2021-11-21 11:56:05 -07:00
Tim Schaub
f6f34f82e5 Allow data tile source loader to return a value or a promise 2021-11-20 13:55:33 -07:00
Andreas Hocevar
332672ca1e Merge pull request #13026 from ahocevar/graticule-docs
Fix strokeStyle documentation
2021-11-20 21:04:46 +01:00
Maximilian Krög
89baa4aa01 Correctly set popover position in geographic example 2021-11-20 17:47:55 +01:00
Andreas Hocevar
b88a466601 Fix strokeStyle documentation 2021-11-20 17:25:14 +01:00
Tim Schaub
fcb39c84ce Merge pull request #13027 from openlayers/revert-13022-codeql-tweak
Restore the security scan workflow
2021-11-20 09:24:37 -07:00
Andreas Hocevar
5ccea03e04 Merge pull request #13025 from ahocevar/mapboxvector-background
Add background to MapboxVector layer
2021-11-20 17:19:46 +01:00
Tim Schaub
036d9bf310 Merge pull request #13013 from mike-000/unpack-alignment
Use appropriate UNPACK_ALIGNMENT for data textures
2021-11-19 21:19:09 -07:00
Tim Schaub
611d455708 Tests for and adjustments to unpack alignment handling 2021-11-19 21:11:32 -07:00
mike-000
dc7303967c Use appropriate unpackAlignment for data textures 2021-11-19 21:11:32 -07:00
Tim Schaub
6665b3325b Update the security scan task 2021-11-19 11:57:19 -07:00
Tim Schaub
f2023cda96 Revert "Remove the security scan workflow" 2021-11-19 11:54:54 -07:00
Tim Schaub
a715b1f5c6 Merge pull request #13021 from tschaub/more-generic
Add the renderer type to generic layer template variables
2021-11-19 11:07:52 -07:00
Tim Schaub
6f80ba93c8 Add the renderer type to generic layer template variables 2021-11-19 10:56:37 -07:00
Tim Schaub
224f4c5c7f Merge pull request #13022 from tschaub/codeql-tweak
Update the security scan task
2021-11-19 10:54:39 -07:00
Andreas Hocevar
d4cc76f3f1 Add background to MapboxVector layer 2021-11-19 18:17:55 +01:00
Tim Schaub
26d5b2163a Remove CodeQL workflow 2021-11-19 08:36:36 -07:00
Tim Schaub
6f2afe0088 Update the security scan task 2021-11-18 15:56:24 -07:00
Tim Schaub
79285ab7dd Merge pull request #13015 from tschaub/types
Additional types for WebGL renderer, sources, and tiles
2021-11-16 17:13:46 -07:00
Tim Schaub
871dd0c3c6 Merge pull request #13012 from tschaub/unused
Remove unused dependencies
2021-11-16 11:30:33 -07:00
Tim Schaub
f336cf30b0 Additional types for WebGL renderer, sources, and tiles 2021-11-16 11:24:41 -07:00
Tim Schaub
71020bb5e4 Merge pull request #12976 from mike-000/WebGL-ReprojTile
Handle ReprojTile in ol/layer/WebGLTile
2021-11-16 09:40:00 -07:00
Tim Schaub
996a6af6a3 Remove unused dependencies 2021-11-16 09:31:16 -07:00
Tim Schaub
088ba698ee Merge pull request #13011 from tschaub/workflow-update
Use registry URL when publishing
2021-11-16 09:09:17 -07:00
Tim Schaub
aa2b55aefe Use registry URL when publishing 2021-11-16 08:58:06 -07:00
Tim Schaub
0d0808fda1 Merge pull request #13009 from tschaub/deploy-preview
Use workflow_run event to deploy pull request previews
2021-11-16 06:16:37 -07:00
Tim Schaub
45c8ad37c8 Use workflow_run event to deploy pull request previews 2021-11-15 15:31:57 -07:00
Andreas Hocevar
1160b4f720 Merge pull request #13001 from openlayers/dependabot/npm_and_yarn/webpack-5.64.0
Bump webpack from 5.62.1 to 5.64.0
2021-11-15 12:58:15 +01:00
dependabot[bot]
3b12f1456e Bump webpack from 5.62.1 to 5.64.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.62.1 to 5.64.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.62.1...v5.64.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 11:39:14 +00:00
Andreas Hocevar
92c7e6e9e8 Merge pull request #13002 from openlayers/dependabot/npm_and_yarn/terser-webpack-plugin-5.2.5
Bump terser-webpack-plugin from 5.2.4 to 5.2.5
2021-11-15 12:38:39 +01:00
Andreas Hocevar
adf814a99c Merge pull request #13003 from openlayers/dependabot/npm_and_yarn/copy-webpack-plugin-9.1.0
Bump copy-webpack-plugin from 9.0.1 to 9.1.0
2021-11-15 12:38:19 +01:00
Andreas Hocevar
82ae25e008 Merge pull request #13004 from openlayers/dependabot/npm_and_yarn/rollup-2.60.0
Bump rollup from 2.59.0 to 2.60.0
2021-11-15 12:37:58 +01:00
Andreas Hocevar
c864de9fd1 Merge pull request #13005 from openlayers/dependabot/npm_and_yarn/webpack-dev-server-4.5.0
Bump webpack-dev-server from 4.4.0 to 4.5.0
2021-11-15 12:37:35 +01:00
Andreas Hocevar
fc40e87f89 Merge pull request #13006 from openlayers/dependabot/npm_and_yarn/ol-mapbox-style-6.5.2
Bump ol-mapbox-style from 6.5.1 to 6.5.2
2021-11-15 12:37:10 +01:00
Andreas Hocevar
f9365d5a8e Merge pull request #13007 from openlayers/dependabot/npm_and_yarn/marked-4.0.3
Bump marked from 4.0.0 to 4.0.3
2021-11-15 12:36:46 +01:00
Andreas Hocevar
55e14cff55 Merge pull request #13008 from openlayers/dependabot/npm_and_yarn/glob-7.2.0
Bump glob from 7.1.7 to 7.2.0
2021-11-15 12:36:19 +01:00
dependabot[bot]
d2939fa9e7 Bump glob from 7.1.7 to 7.2.0
Bumps [glob](https://github.com/isaacs/node-glob) from 7.1.7 to 7.2.0.
- [Release notes](https://github.com/isaacs/node-glob/releases)
- [Changelog](https://github.com/isaacs/node-glob/blob/master/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v7.1.7...v7.2.0)

---
updated-dependencies:
- dependency-name: glob
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 10:02:45 +00:00
dependabot[bot]
00ac4b60b7 Bump marked from 4.0.0 to 4.0.3
Bumps [marked](https://github.com/markedjs/marked) from 4.0.0 to 4.0.3.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v4.0.0...v4.0.3)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 10:02:21 +00:00
dependabot[bot]
2e6f55f83f Bump ol-mapbox-style from 6.5.1 to 6.5.2
Bumps [ol-mapbox-style](https://github.com/openlayers/ol-mapbox-style) from 6.5.1 to 6.5.2.
- [Release notes](https://github.com/openlayers/ol-mapbox-style/releases)
- [Changelog](https://github.com/openlayers/ol-mapbox-style/blob/main/CHANGELOG.md)
- [Commits](https://github.com/openlayers/ol-mapbox-style/compare/v6.5.1...v6.5.2)

---
updated-dependencies:
- dependency-name: ol-mapbox-style
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 10:02:10 +00:00
dependabot[bot]
7ae3d34859 Bump webpack-dev-server from 4.4.0 to 4.5.0
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.4.0...v4.5.0)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 10:01:56 +00:00
dependabot[bot]
281841eeb6 Bump rollup from 2.59.0 to 2.60.0
Bumps [rollup](https://github.com/rollup/rollup) from 2.59.0 to 2.60.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.59.0...v2.60.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 10:01:41 +00:00
dependabot[bot]
ec6ad7d2d6 Bump copy-webpack-plugin from 9.0.1 to 9.1.0
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 9.0.1 to 9.1.0.
- [Release notes](https://github.com/webpack-contrib/copy-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v9.0.1...v9.1.0)

---
updated-dependencies:
- dependency-name: copy-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 10:01:28 +00:00
dependabot[bot]
e709095b18 Bump terser-webpack-plugin from 5.2.4 to 5.2.5
Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 5.2.4 to 5.2.5.
- [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.2.4...v5.2.5)

---
updated-dependencies:
- dependency-name: terser-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 10:01:11 +00:00
Tim Schaub
c8da29cdec Merge pull request #12965 from tschaub/shared-context
Allow canvas reuse for WebGL layers
2021-11-14 12:43:03 -07:00
Tim Schaub
a2f3c02ac5 Allow canvas reuse for WebGL layers 2021-11-14 12:34:14 -07:00
MoonE
a1b8f08bca Merge pull request #12999 from MoonE/fix-style-apidoc
Fix style related apidoc issues
2021-11-14 17:59:59 +01:00
Maximilian Krög
c47fac19b5 Fix style related apidoc issues 2021-11-14 16:56:59 +01:00
MoonE
03efc13357 Merge pull request #12978 from EvertEt/patch-1
Add null to style jsdoc of VectorImage
2021-11-14 16:46:52 +01:00
EvertEt
d366d283b1 Add null to style jsdoc of VectorImage and VectorTile
Similar to BaseVector
2021-11-14 10:54:05 +01:00
Tim Schaub
ba6a769917 Merge pull request #12997 from tschaub/lazy-helper
Lazily create the WebGL helper
2021-11-13 14:09:45 -07:00
Tim Schaub
92826bd0fc Merge pull request #12996 from mike-000/align-labels
Align labels with the Select elements in the Raster Reprojection example
2021-11-13 11:40:14 -07:00
Tim Schaub
0dfbedb099 Lazily create the WebGL helper 2021-11-13 11:37:09 -07:00
mike-000
12cdaed2c5 align labels 2021-11-13 13:48:53 +00:00
mike-000
883f22d6fe align labels 2021-11-13 13:35:22 +00:00
Tim Schaub
1d94477ed3 Merge pull request #12994 from tschaub/layer-map-property
Add a map property to layers
2021-11-13 05:22:58 -07:00
Tim Schaub
371bb85350 Add a map property to layers 2021-11-12 17:54:10 -07:00
Tim Schaub
080fe8ca67 Merge pull request #12987 from tschaub/karma-update
Browser test config update
2021-11-12 06:41:29 -07:00
Tim Schaub
70dbe21520 Test config update 2021-11-10 14:33:13 -07:00
Tim Schaub
924b85f4ca Merge pull request #12939 from tschaub/dynamic-colors
Example that demonstrates a color expression using variables
2021-11-09 06:35:38 -07:00
Tim Schaub
e5dc6588ad Merge pull request #12968 from openlayers/dependabot/npm_and_yarn/sinon-12.0.1
Bump sinon from 11.1.2 to 12.0.1
2021-11-08 17:16:30 -07:00
Andreas Hocevar
bc0ad8e8c9 Merge pull request #12969 from openlayers/dependabot/npm_and_yarn/marked-4.0.0
Bump marked from 3.0.8 to 4.0.0
2021-11-08 17:12:18 +01:00
Andreas Hocevar
fff8506e35 Use path for sinon entry point 2021-11-08 17:11:30 +01:00
Andreas Hocevar
b86f9df8bd Account for removed default export of marked 2021-11-08 16:35:23 +01:00
Andreas Hocevar
4e8736d9f0 Merge pull request #12973 from openlayers/dependabot/npm_and_yarn/eslint-8.2.0
Bump eslint from 8.1.0 to 8.2.0
2021-11-08 16:14:15 +01:00
dependabot[bot]
0f5102b249 Bump eslint from 8.1.0 to 8.2.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.1.0 to 8.2.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.1.0...v8.2.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 15:02:51 +00:00
Andreas Hocevar
32a3ef78aa Merge pull request #12972 from openlayers/dependabot/npm_and_yarn/karma-firefox-launcher-2.1.2
Bump karma-firefox-launcher from 2.1.1 to 2.1.2
2021-11-08 16:02:14 +01:00
Andreas Hocevar
656014dbc4 Merge pull request #12971 from openlayers/dependabot/npm_and_yarn/puppeteer-11.0.0
Bump puppeteer from 10.4.0 to 11.0.0
2021-11-08 16:01:26 +01:00
Andreas Hocevar
0209827b90 Merge pull request #12970 from openlayers/dependabot/npm_and_yarn/karma-6.3.8
Bump karma from 6.3.6 to 6.3.8
2021-11-08 16:00:10 +01:00
Andreas Hocevar
ceb7192a63 Merge pull request #12967 from openlayers/dependabot/npm_and_yarn/webpack-5.62.1
Bump webpack from 5.61.0 to 5.62.1
2021-11-08 15:56:40 +01:00
mike-000
4a80ebe1fc expire cache for tileGrid projection 2021-11-08 12:39:18 +00:00
mike-000
f4134b873b Handle ReprojTile 2021-11-08 12:39:17 +00:00
dependabot[bot]
55af918a0e Bump karma-firefox-launcher from 2.1.1 to 2.1.2
Bumps [karma-firefox-launcher](https://github.com/karma-runner/karma-firefox-launcher) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/karma-runner/karma-firefox-launcher/releases)
- [Changelog](https://github.com/karma-runner/karma-firefox-launcher/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma-firefox-launcher/compare/v2.1.1...v2.1.2)

---
updated-dependencies:
- dependency-name: karma-firefox-launcher
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 10:02:20 +00:00
dependabot[bot]
f0c6dff14e Bump puppeteer from 10.4.0 to 11.0.0
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 10.4.0 to 11.0.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v10.4.0...v11.0.0)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 10:02:09 +00:00
dependabot[bot]
d4eb473252 Bump karma from 6.3.6 to 6.3.8
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.6 to 6.3.8.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.6...v6.3.8)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 10:01:55 +00:00
dependabot[bot]
7679128245 Bump marked from 3.0.8 to 4.0.0
Bumps [marked](https://github.com/markedjs/marked) from 3.0.8 to 4.0.0.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v3.0.8...v4.0.0)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 10:01:36 +00:00
dependabot[bot]
5addb14e60 Bump sinon from 11.1.2 to 12.0.1
Bumps [sinon](https://github.com/sinonjs/sinon) from 11.1.2 to 12.0.1.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v11.1.2...v12.0.1)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 10:01:21 +00:00
dependabot[bot]
e9d0323e90 Bump webpack from 5.61.0 to 5.62.1
Bumps [webpack](https://github.com/webpack/webpack) from 5.61.0 to 5.62.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.61.0...v5.62.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 10:01:08 +00:00
Andreas Hocevar
6a0d0c1eeb Merge pull request #12962 from ahocevar/opacity-no-sharing
No context sharing when layer opacity is set
2021-11-05 23:09:36 +01:00
Tim Schaub
10aa3d16ab Merge pull request #12964 from tschaub/new-bing-key
Updated Bing Maps key
2021-11-05 15:32:41 -06:00
Tim Schaub
2ec760d9a5 New Bing Maps key 2021-11-05 15:26:17 -06:00
Andreas Hocevar
57eaf69c1a Add rendering test 2021-11-05 21:16:18 +01:00
Andreas Hocevar
58806aaec1 No context sharing when layer opacity is set 2021-11-05 15:00:56 +01:00
Andreas Hocevar
6e5e94a447 Merge pull request #12958 from mike-000/reuse-temporary-canvas
Reuse temporary canvas in getDataAtPixel()
2021-11-04 14:30:06 +01:00
mike-000
655a49de7b Reuse temporary canvas in getDataAtPixel() 2021-11-04 13:09:16 +00:00
MoonE
fa2f730442 Merge pull request #12893 from andrewcoder002/main
Allow map target to be an external window
2021-11-03 21:20:24 +01:00
Andreas Hocevar
6bfef64e89 Merge pull request #12955 from ahocevar/mapbox-vector-layer
Make MapboxVector layer work in more access key scenarios
2021-11-03 13:45:17 +01:00
Andreas Hocevar
1697d1b647 Use URL constructor
Co-authored-by: Tim Schaub <tschaub@users.noreply.github.com>
2021-11-03 13:37:47 +01:00
Maximilian Krög
07fa1adfe8 Use more structured yaml for examples source path 2021-11-02 22:10:27 +01:00
Maximilian Krög
12de93b397 Fixed unusable overlay in fullscreen mode 2021-11-02 22:10:27 +01:00
Andreas Hocevar
cbac16e21f Make MapboxVector layer work in more access key scenarios 2021-11-02 20:45:30 +01:00
Maximilian Krög
a10bc713f2 Configure additional sources displayed below map 2021-11-02 00:21:12 +01:00
Maximilian Krög
ca9fc92f70 Example builder code cleanup
Add function for transforming js source and cloaking
Use  to parse source for import statements
Use now released parcel 2.0.0
2021-11-02 00:21:12 +01:00
Maximilian Krög
46d9e8db8e Fix codesandbox edit for offscreen-canvas example 2021-11-02 00:21:12 +01:00
Maximilian Krög
8cff620691 Improve unusable map window
As long as the original window is visible animation frames will run
and the external map will be usable
2021-11-02 00:21:12 +01:00
Maximilian Krög
50dc9f1f88 Fix map tests 2021-11-02 00:21:11 +01:00
Maximilian Krög
9a6bb4d751 Fix FullScreen state when changing target in fullscreen mode 2021-11-02 00:21:11 +01:00
andrewcoder002
f74cd62827 Update external-map.js
Handle situations when main window loose focus - e.g. by selecting of differen browser tab.
2021-11-02 00:21:11 +01:00
Maximilian Krög
7bed63bf3f Improve window open and close handling
Use pagehide event instead of beforeunload, seems to be more reliable
Add a timeout and info message when opening the window fails
2021-11-02 00:21:11 +01:00
Maximilian Krög
5149224354 Improve code and its formatting 2021-11-02 00:21:11 +01:00
andrewcoder002
f2f9f68840 Update condition.js 2021-11-02 00:21:11 +01:00
andrewcoder002
f353d52da3 Update external-map.js 2021-11-02 00:21:11 +01:00
andrewcoder002
f4739df907 Update external-map.js 2021-11-02 00:21:10 +01:00
andrewcoder002
8f24467ea4 Update PluggableMap.js 2021-11-02 00:21:10 +01:00
Maximilian Krög
770f53b5e3 Make FullScreen control work in external window 2021-11-02 00:21:10 +01:00
andrewcoder002
a807af75f1 Update external-map.js 2021-11-02 00:21:10 +01:00
andrewcoder002
c799cf0cfd Update external-map-map.html
Handle situation when user reloads external map window
2021-11-02 00:21:10 +01:00
Maximilian Krög
d1560176ba Fix mouse interactions with tabindex in external window 2021-11-02 00:21:10 +01:00
Maximilian Krög
86801d1151 Make external map example work 2021-11-02 00:21:09 +01:00
andrewcoder002
7a74ba606a Test case of new functionality
Test case of new functionality that enables to switch map to another browser window and back
2021-11-02 00:21:09 +01:00
andrewcoder002
bc064aba36 Update PluggableMap.js
Removing listener when the target is changed again.
2021-11-02 00:21:09 +01:00
andrewcoder002
b51d16b575 Update PluggableMap.js
Just changed formatting
2021-11-02 00:21:09 +01:00
andrewcoder002
7d3abbd5ca Update PluggableMap.js 2021-11-02 00:21:03 +01:00
Tim Schaub
d1930d4a3f Merge pull request #12948 from openlayers/dependabot/npm_and_yarn/webpack-5.61.0
Bump webpack from 5.59.1 to 5.61.0
2021-11-01 06:44:25 -06:00
Tim Schaub
9da64fd73b Merge pull request #12945 from openlayers/dependabot/npm_and_yarn/rollup-2.59.0
Bump rollup from 2.58.3 to 2.59.0
2021-11-01 06:41:32 -06:00
Tim Schaub
37ddae4349 Merge pull request #12946 from openlayers/dependabot/npm_and_yarn/babel/preset-env-7.16.0
Bump @babel/preset-env from 7.15.8 to 7.16.0
2021-11-01 06:39:30 -06:00
Tim Schaub
0645ea909e Merge pull request #12947 from openlayers/dependabot/npm_and_yarn/babel/core-7.16.0
Bump @babel/core from 7.15.8 to 7.16.0
2021-11-01 06:38:35 -06:00
dependabot[bot]
166175b4ed Bump webpack from 5.59.1 to 5.61.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.59.1 to 5.61.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.59.1...v5.61.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 12:36:51 +00:00
Tim Schaub
b0312b7bc9 Merge pull request #12949 from openlayers/dependabot/npm_and_yarn/karma-6.3.6
Bump karma from 6.3.5 to 6.3.6
2021-11-01 06:36:09 -06:00
Tim Schaub
e9bf7ccc61 Merge pull request #12944 from openlayers/dependabot/npm_and_yarn/webpack-dev-server-4.4.0
Bump webpack-dev-server from 4.3.1 to 4.4.0
2021-11-01 06:35:26 -06:00
dependabot[bot]
2e9f41ce34 Bump karma from 6.3.5 to 6.3.6
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.5 to 6.3.6.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.5...v6.3.6)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 10:02:55 +00:00
dependabot[bot]
2feb88cd20 Bump @babel/core from 7.15.8 to 7.16.0
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.15.8 to 7.16.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.16.0/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 10:02:22 +00:00
dependabot[bot]
01bf4c32d9 Bump @babel/preset-env from 7.15.8 to 7.16.0
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.15.8 to 7.16.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.16.0/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 10:02:04 +00:00
dependabot[bot]
f9db2c3845 Bump rollup from 2.58.3 to 2.59.0
Bumps [rollup](https://github.com/rollup/rollup) from 2.58.3 to 2.59.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.58.3...v2.59.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 10:01:28 +00:00
dependabot[bot]
e4baee4c0c Bump webpack-dev-server from 4.3.1 to 4.4.0
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.3.1 to 4.4.0.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.3.1...v4.4.0)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 10:01:11 +00:00
Andreas Hocevar
b7cd60a7d4 Merge pull request #12935 from mrpan/fixbug_declutter
fix bug #12913
2021-11-01 09:10:12 +01:00
Andreas Hocevar
c2877d56cb Apply suggestions from code review 2021-10-31 09:18:47 +01:00
Tim Schaub
0e19c9aa2b Example that demonstrates a color expression using variables 2021-10-29 11:48:41 -06:00
Tim Schaub
fdba3ecf0e Merge pull request #12933 from tschaub/gl-render-events
Include WebGL context in render events for WebGL layers
2021-10-29 10:47:57 -06:00
Tim Schaub
2adf74ece4 Include WebGL context in render events for WebGL layers 2021-10-29 08:39:47 -06:00
giserpan
26c6538531 fix bug when select interaction crashes with empty vector layer when declutter: true 2021-10-29 16:17:08 +08:00
Tim Schaub
aff751bdf0 Merge pull request #12917 from mike-000/removeFeature-2
Make removeFeature consistent with other remove methods
2021-10-27 14:20:10 -06:00
Tim Schaub
1b17f347c0 Add test for new removeFeature behavior 2021-10-27 14:11:55 -06:00
Tim Schaub
3bc28f2125 Merge pull request #12918 from mike-000/setDisplacement-2
Add setDisplacement method to ol/style/Image and subclasses
2021-10-26 17:05:48 -06:00
Tim Schaub
f1c0781eb2 Example style update 2021-10-26 16:55:56 -06:00
MoonE
d742c38163 Merge pull request #12930 from MoonE/view-animation-test
Fix flaky view animation test
2021-10-27 00:21:04 +02:00
Maximilian Krög
687cffb5d9 Fix flaky view animation test 2021-10-26 21:52:10 +02:00
Tim Schaub
dc8c9cfabb Merge pull request #12923 from openlayers/dependabot/npm_and_yarn/rollup/plugin-commonjs-21.0.1
Bump @rollup/plugin-commonjs from 21.0.0 to 21.0.1
2021-10-25 10:02:53 -10:00
Tim Schaub
660f646d1a Merge pull request #12922 from openlayers/dependabot/npm_and_yarn/webpack-cli-4.9.1
Bump webpack-cli from 4.9.0 to 4.9.1
2021-10-25 10:00:30 -10:00
Tim Schaub
30054879e8 Merge pull request #12929 from openlayers/dependabot/npm_and_yarn/rollup-2.58.3
Bump rollup from 2.58.0 to 2.58.3
2021-10-25 09:59:49 -10:00
Tim Schaub
856066d05c Merge pull request #12920 from openlayers/dependabot/npm_and_yarn/marked-3.0.8
Bump marked from 3.0.7 to 3.0.8
2021-10-25 09:53:49 -10:00
Tim Schaub
380cfd12cb Merge pull request #12924 from openlayers/dependabot/npm_and_yarn/clean-css-cli-5.4.2
Bump clean-css-cli from 5.4.1 to 5.4.2
2021-10-25 09:53:13 -10:00
dependabot[bot]
bfdd566bef Bump rollup from 2.58.0 to 2.58.3
Bumps [rollup](https://github.com/rollup/rollup) from 2.58.0 to 2.58.3.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.58.0...v2.58.3)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 19:53:05 +00:00
Tim Schaub
bf20ab4367 Merge pull request #12926 from openlayers/dependabot/npm_and_yarn/rollup/plugin-node-resolve-13.0.6
Bump @rollup/plugin-node-resolve from 13.0.5 to 13.0.6
2021-10-25 09:51:39 -10:00
Tim Schaub
06a083adda Merge pull request #12928 from openlayers/dependabot/npm_and_yarn/babel-loader-8.2.3
Bump babel-loader from 8.2.2 to 8.2.3
2021-10-25 09:50:54 -10:00
Tim Schaub
062096b641 Merge pull request #12921 from openlayers/dependabot/npm_and_yarn/webpack-5.59.1
Bump webpack from 5.58.2 to 5.59.1
2021-10-25 09:50:10 -10:00
Tim Schaub
0064b3c18e Merge pull request #12927 from openlayers/dependabot/npm_and_yarn/eslint-8.1.0
Bump eslint from 8.0.1 to 8.1.0
2021-10-25 09:48:40 -10:00
Tim Schaub
8703ddfab6 Merge pull request #12919 from openlayers/dependabot/npm_and_yarn/karma-6.3.5
Bump karma from 6.3.4 to 6.3.5
2021-10-25 09:47:33 -10:00
dependabot[bot]
cbc2fd2997 Bump babel-loader from 8.2.2 to 8.2.3
Bumps [babel-loader](https://github.com/babel/babel-loader) from 8.2.2 to 8.2.3.
- [Release notes](https://github.com/babel/babel-loader/releases)
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel-loader/compare/v8.2.2...v8.2.3)

---
updated-dependencies:
- dependency-name: babel-loader
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 10:03:03 +00:00
dependabot[bot]
74e8522509 Bump eslint from 8.0.1 to 8.1.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.0.1 to 8.1.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.0.1...v8.1.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 10:02:52 +00:00
dependabot[bot]
96565935f8 Bump @rollup/plugin-node-resolve from 13.0.5 to 13.0.6
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve) from 13.0.5 to 13.0.6.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/node-resolve-v13.0.6/packages/node-resolve)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-node-resolve"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 10:02:34 +00:00
dependabot[bot]
0c8821a01a Bump clean-css-cli from 5.4.1 to 5.4.2
Bumps [clean-css-cli](https://github.com/clean-css/clean-css-cli) from 5.4.1 to 5.4.2.
- [Release notes](https://github.com/clean-css/clean-css-cli/releases)
- [Changelog](https://github.com/clean-css/clean-css-cli/blob/master/History.md)
- [Commits](https://github.com/clean-css/clean-css-cli/compare/v5.4.1...v5.4.2)

---
updated-dependencies:
- dependency-name: clean-css-cli
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 10:02:05 +00:00
dependabot[bot]
a169aaab37 Bump @rollup/plugin-commonjs from 21.0.0 to 21.0.1
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs) from 21.0.0 to 21.0.1.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v21.0.1/packages/commonjs)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 10:01:49 +00:00
dependabot[bot]
6ae34e6590 Bump webpack-cli from 4.9.0 to 4.9.1
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.9.0 to 4.9.1.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.9.0...webpack-cli@4.9.1)

---
updated-dependencies:
- dependency-name: webpack-cli
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 10:01:32 +00:00
dependabot[bot]
bc1f1773fe Bump webpack from 5.58.2 to 5.59.1
Bumps [webpack](https://github.com/webpack/webpack) from 5.58.2 to 5.59.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.58.2...v5.59.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 10:01:21 +00:00
dependabot[bot]
a1166fe9a8 Bump marked from 3.0.7 to 3.0.8
Bumps [marked](https://github.com/markedjs/marked) from 3.0.7 to 3.0.8.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](https://github.com/markedjs/marked/compare/v3.0.7...v3.0.8)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 10:01:06 +00:00
dependabot[bot]
7d4b931909 Bump karma from 6.3.4 to 6.3.5
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.4 to 6.3.5.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.4...v6.3.5)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 10:00:50 +00:00
mike-000
6640d2d069 new example 2021-10-25 10:55:21 +01:00
mike-000
f16482b420 Test setDisplacement 2021-10-25 10:28:54 +01:00
mike-000
eb0bfc970e Test setDisplacement
Test getAnchor with displacement
2021-10-25 10:27:18 +01:00
mike-000
a0da16e4e9 handle updateable displacement 2021-10-25 10:22:40 +01:00
mike-000
9267d2994d handle updateable displacement 2021-10-25 10:20:36 +01:00
mike-000
1249ecee45 add setDisplacement method 2021-10-25 10:18:18 +01:00
mike-000
855fc6f5bc removeFeature consistent with other remove methods
Make returning the removed feature a TODO
2021-10-24 20:33:48 +01:00
Tim Schaub
658f55d03f Merge pull request #12915 from tschaub/test-deploy
Test the new pull request deploy previews
2021-10-22 22:58:49 -10:00
Tim Schaub
fc03078e2a Include charset 2021-10-22 22:46:06 -10:00
Tim Schaub
c72101ff2e Add status context 2021-10-22 22:45:42 -10:00
Tim Schaub
2c757bc8fa Add commit status with preview URL 2021-10-22 22:31:50 -10:00
Tim Schaub
635a236ab8 Use SHA for pull request head 2021-10-22 22:08:07 -10:00
Tim Schaub
ac65eed669 Merge pull request #12916 from openlayers/fix-deploy
Updates to deploy-preview job
2021-10-22 21:22:02 -10:00
Tim Schaub
5ac9dbeb89 Use pull request head 2021-10-22 21:14:47 -10:00
Tim Schaub
cc30a38d7d Merge pull request #12914 from tschaub/netlify-action
Build site preview as a GitHub action
2021-10-22 14:41:29 -10:00
Tim Schaub
ba6d6f3bb4 Build site preview as a GitHub action 2021-10-22 14:27:34 -10:00
Andreas Hocevar
36f94f57ce Merge pull request #12891 from mike-000/compatibility
Restore browser compatibility where possible
2021-10-18 19:31:40 +02:00
Tim Schaub
f849595dfd Merge pull request #12902 from openlayers/dependabot/npm_and_yarn/eslint-8.0.1
Bump eslint from 7.32.0 to 8.0.1
2021-10-18 06:31:01 -10:00
Tim Schaub
c55f882e49 Merge pull request #12904 from openlayers/dependabot/npm_and_yarn/mocha-9.1.3
Bump mocha from 9.1.2 to 9.1.3
2021-10-18 06:30:50 -10:00
dependabot[bot]
106c114914 Bump mocha from 9.1.2 to 9.1.3
Bumps [mocha](https://github.com/mochajs/mocha) from 9.1.2 to 9.1.3.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.1.2...v9.1.3)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-18 16:25:32 +00:00
dependabot[bot]
5faf95b9fb Bump eslint from 7.32.0 to 8.0.1
Bumps [eslint](https://github.com/eslint/eslint) from 7.32.0 to 8.0.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.32.0...v8.0.1)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-18 16:25:08 +00:00
Tim Schaub
b0bb7846db Merge pull request #12905 from openlayers/dependabot/npm_and_yarn/glob-7.2.0
Bump glob from 7.1.7 to 7.2.0
2021-10-18 06:23:55 -10:00
Tim Schaub
243629510d Merge pull request #12903 from openlayers/dependabot/npm_and_yarn/webpack-5.58.2
Bump webpack from 5.58.1 to 5.58.2
2021-10-18 06:23:06 -10:00
mike-000
2f713775d0 Update polyfills 2021-10-18 16:11:39 +01:00
mike-000
94a125357e Avoid startsWith for browser compatibility 2021-10-18 16:10:08 +01:00
mike-000
895749707f Use core-js cdn for some polyfills 2021-10-18 16:10:08 +01:00
dependabot[bot]
b39f403641 Bump glob from 7.1.7 to 7.2.0
Bumps [glob](https://github.com/isaacs/node-glob) from 7.1.7 to 7.2.0.
- [Release notes](https://github.com/isaacs/node-glob/releases)
- [Changelog](https://github.com/isaacs/node-glob/blob/master/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v7.1.7...v7.2.0)

---
updated-dependencies:
- dependency-name: glob
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-18 10:01:54 +00:00
dependabot[bot]
ed379f4c0e Bump webpack from 5.58.1 to 5.58.2
Bumps [webpack](https://github.com/webpack/webpack) from 5.58.1 to 5.58.2.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.58.1...v5.58.2)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-18 10:01:19 +00:00
Tim Schaub
52576a4485 Merge pull request #12899 from tschaub/use-vite
Update docs to mention Vite
2021-10-17 03:34:51 -06:00
Maximilian Krög
d8686598df Update heading and default port used 2021-10-17 01:33:06 +02:00
Tim Schaub
d52392dabe Update docs to mention Vite 2021-10-15 07:05:44 -06:00
mike-000
a2291abf1d also transpile .mjs 2021-10-13 10:17:50 +01:00
Tim Schaub
bbc99e729b Merge pull request #12890 from openlayers/release-v6.9.0
Release 6.9.0
2021-10-12 14:09:34 -06:00
Tim Schaub
d3138e4e98 Develop on 6.9.1-dev 2021-10-12 13:58:27 -06:00
Tim Schaub
f86bad7459 Updates for 6.9.0 2021-10-12 13:47:14 -06:00
Tim Schaub
2e531377e2 Merge pull request #12813 from mike-000/fix-zero-size
Do not replace icon color if image not loaded
2021-10-12 13:33:34 -06:00
Tim Schaub
deb523f6f5 Merge pull request #12870 from ahocevar/legacy-publicpath
Fix publicPath problem in legacy build
2021-10-12 13:30:33 -06:00
Tim Schaub
4718ec500b Merge pull request #12889 from tschaub/updates
Simplified ESLint config
2021-10-12 13:29:08 -06:00
Tim Schaub
5b4c682f2a Merge pull request #12875 from tschaub/raster-loop
Only trigger change event if animating a tile transition
2021-10-12 13:27:53 -06:00
Tim Schaub
9224678627 Simplified ESLint config 2021-10-12 09:03:53 -06:00
Tim Schaub
df7a911687 Merge pull request #12885 from MatthijsBon/master
Fix typeDefs for several Control modules
2021-10-12 08:23:45 -06:00
Matthijs Bon
72cb135aff Update typeDefs for labelActive
Add description that 'span' element can be used and add HTMLElement as type
2021-10-12 11:29:35 +02:00
Tim Schaub
5293efc6e2 Merge pull request #12881 from openlayers/dependabot/npm_and_yarn/webpack-5.58.1
Bump webpack from 5.56.1 to 5.58.1
2021-10-11 08:05:20 -06:00
Matthijs Bon
4cbf04d029 Update typeDefs for Fullscreen Options
Remove line stating that a 'span' is also a valid inactiveClassName value.
2021-10-11 14:48:04 +02:00
dependabot[bot]
bc04e96556 Bump webpack from 5.56.1 to 5.58.1
Bumps [webpack](https://github.com/webpack/webpack) from 5.56.1 to 5.58.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.56.1...v5.58.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-11 12:44:38 +00:00
Tim Schaub
6a03e1c34f Merge pull request #12882 from openlayers/dependabot/npm_and_yarn/marked-3.0.7
Bump marked from 3.0.4 to 3.0.7
2021-10-11 06:40:27 -06:00
Tim Schaub
f7efb60843 Merge pull request #12878 from openlayers/dependabot/npm_and_yarn/webpack-dev-server-4.3.1
Bump webpack-dev-server from 4.3.0 to 4.3.1
2021-10-11 06:39:23 -06:00
Tim Schaub
9ee1768a1d Merge pull request #12879 from openlayers/dependabot/npm_and_yarn/babel/preset-env-7.15.8
Bump @babel/preset-env from 7.15.6 to 7.15.8
2021-10-11 06:38:51 -06:00
Tim Schaub
4e5a7fba77 Merge pull request #12880 from openlayers/dependabot/npm_and_yarn/babel/eslint-parser-7.15.8
Bump @babel/eslint-parser from 7.15.7 to 7.15.8
2021-10-11 06:38:13 -06:00
Tim Schaub
f26130ee54 Merge pull request #12884 from openlayers/dependabot/npm_and_yarn/babel/core-7.15.8
Bump @babel/core from 7.15.5 to 7.15.8
2021-10-11 06:36:16 -06:00
Tim Schaub
cb6a00e13a Merge pull request #12877 from openlayers/dependabot/npm_and_yarn/webpack-cli-4.9.0
Bump webpack-cli from 4.8.0 to 4.9.0
2021-10-11 06:34:49 -06:00
dependabot[bot]
60c259df02 Bump @babel/core from 7.15.5 to 7.15.8
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.15.5 to 7.15.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.15.8/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-11 10:03:15 +00:00
dependabot[bot]
aa110486a1 Bump marked from 3.0.4 to 3.0.7
Bumps [marked](https://github.com/markedjs/marked) from 3.0.4 to 3.0.7.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](https://github.com/markedjs/marked/compare/v3.0.4...v3.0.7)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-11 10:02:29 +00:00
dependabot[bot]
33bffbcdad Bump @babel/eslint-parser from 7.15.7 to 7.15.8
Bumps [@babel/eslint-parser](https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser) from 7.15.7 to 7.15.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.15.8/eslint/babel-eslint-parser)

---
updated-dependencies:
- dependency-name: "@babel/eslint-parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-11 10:01:54 +00:00
dependabot[bot]
c4e10a34c8 Bump @babel/preset-env from 7.15.6 to 7.15.8
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.15.6 to 7.15.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.15.8/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-11 10:01:41 +00:00
dependabot[bot]
c1be8cf618 Bump webpack-dev-server from 4.3.0 to 4.3.1
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.3.0...v4.3.1)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-11 10:01:22 +00:00
dependabot[bot]
1872b56355 Bump webpack-cli from 4.8.0 to 4.9.0
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.8.0 to 4.9.0.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.8.0...webpack-cli@4.9.0)

---
updated-dependencies:
- dependency-name: webpack-cli
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-11 10:01:10 +00:00
Matthijs Bon
6bc8d0cd96 Fix typeDef for label
Allow string, Text and HTMLElement, instead of only string and HTMLElement
2021-10-11 10:11:44 +02:00
Matthijs Bon
d4bc7d3f39 Update typeDefs for Attribution and Control
For consistency with docs, update type for labels to {string|HTMLElement}
2021-10-11 10:05:47 +02:00
Tim Schaub
60790fea18 Only trigger change event if animating a tile transition 2021-10-10 13:03:09 -06:00
Andreas Hocevar
77ca0c2de5 Fix publicPath problem in legacy build 2021-10-08 11:11:00 +02:00
Andreas Hocevar
c0009d5985 Merge pull request #12861 from ahocevar/geotiff
Update geotiff to 1.0.8; allow version range
2021-10-06 19:32:25 +02:00
Tim Schaub
c85a6016c4 Merge pull request #12865 from tschaub/doc-update
Add a note about installing git before using create-ol-app
2021-10-06 10:45:55 -06:00
Tim Schaub
d5a27dae4f Add a note about installing git before using create-ol-app 2021-10-06 09:01:20 -06:00
Andreas Hocevar
0186ca74f1 Update geotiff to 1.0.8; allow version range 2021-10-06 13:23:47 +02:00
Andreas Hocevar
9834f683b9 Merge pull request #12854 from openlayers/dependabot/npm_and_yarn/webpack-5.56.1
Bump webpack from 5.54.0 to 5.56.1
2021-10-04 13:04:02 +02:00
dependabot[bot]
4f5e59d7f0 Bump webpack from 5.54.0 to 5.56.1
Bumps [webpack](https://github.com/webpack/webpack) from 5.54.0 to 5.56.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.54.0...v5.56.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-04 10:58:17 +00:00
Andreas Hocevar
940011fb56 Merge pull request #12857 from openlayers/dependabot/npm_and_yarn/webpack-dev-server-4.3.0
Bump webpack-dev-server from 4.2.1 to 4.3.0
2021-10-04 12:57:29 +02:00
Andreas Hocevar
974fdebafa Merge pull request #12856 from openlayers/dependabot/npm_and_yarn/rollup/plugin-commonjs-21.0.0
Bump @rollup/plugin-commonjs from 20.0.0 to 21.0.0
2021-10-04 12:55:43 +02:00
Andreas Hocevar
fb0550ea5c Merge pull request #12855 from openlayers/dependabot/npm_and_yarn/rollup-2.58.0
Bump rollup from 2.57.0 to 2.58.0
2021-10-04 12:55:10 +02:00
Andreas Hocevar
b55f8e8f40 Merge pull request #12853 from openlayers/dependabot/npm_and_yarn/clean-css-cli-5.4.1
Bump clean-css-cli from 5.3.3 to 5.4.1
2021-10-04 12:52:38 +02:00
dependabot[bot]
d8d4f21437 Bump webpack-dev-server from 4.2.1 to 4.3.0
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.2.1 to 4.3.0.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.2.1...v4.3.0)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-04 10:02:17 +00:00
dependabot[bot]
7c556951c8 Bump @rollup/plugin-commonjs from 20.0.0 to 21.0.0
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs) from 20.0.0 to 21.0.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v21.0.0/packages/commonjs)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-04 10:01:58 +00:00
dependabot[bot]
b15de51344 Bump rollup from 2.57.0 to 2.58.0
Bumps [rollup](https://github.com/rollup/rollup) from 2.57.0 to 2.58.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.57.0...v2.58.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-04 10:01:43 +00:00
dependabot[bot]
4822589e26 Bump clean-css-cli from 5.3.3 to 5.4.1
Bumps [clean-css-cli](https://github.com/clean-css/clean-css-cli) from 5.3.3 to 5.4.1.
- [Release notes](https://github.com/clean-css/clean-css-cli/releases)
- [Changelog](https://github.com/clean-css/clean-css-cli/blob/master/History.md)
- [Commits](https://github.com/clean-css/clean-css-cli/compare/v5.3.3...v5.4.1)

---
updated-dependencies:
- dependency-name: clean-css-cli
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-04 10:01:07 +00:00
Tim Schaub
00e880f534 Merge pull request #12847 from tschaub/geotiff-types
Add more definitions for GeoTIFF types
2021-10-03 13:51:10 -06:00
MoonE
f4c2cbdb9b Merge pull request #12850 from MoonE/view-not-def-animation-fix
Fix issues with animate on View without center or resolution
2021-10-03 19:57:26 +02:00
Maximilian Krög
1be2c459c4 Fix end state for animation on view with invalid state 2021-10-03 00:22:18 +02:00
Maximilian Krög
84729e985f Add test for animation on view with invalid state 2021-10-03 00:19:05 +02:00
Tim Schaub
6506efab0c Add more definitions for GeoTIFF types 2021-10-01 17:06:13 -06:00
Tim Schaub
243b21a2e1 Merge pull request #12846 from tschaub/extract-fill-values
Use nodata values in the GeoTIFF headers for fill value
2021-10-01 13:54:07 -06:00
Tim Schaub
9d709cb3d9 Additional documentation on the nodata property 2021-10-01 13:48:35 -06:00
Tim Schaub
ba444117bb Use nodata values in the GeoTIFF headers for fill value 2021-10-01 11:47:27 -06:00
Tim Schaub
78a4efab8c Merge pull request #12837 from mike-000/getDataAtPixel
forEachLayerAtPixel return null for unsupported layer types
2021-09-30 04:13:36 -06:00
mike-000
54871b6c52 return null for unsupported layer types 2021-09-30 10:32:48 +01:00
Tim Schaub
709139c657 Merge pull request #12836 from tschaub/denormalized
Support a normalize option on the GeoTIFF source
2021-09-29 15:57:27 -06:00
MoonE
9e37182649 Merge pull request #12646 from ashchurova/fix-8136-hit-detection-custom-renderer
Support for hit detection in styles with custom rendering
2021-09-29 20:22:57 +02:00
Tim Schaub
d7b0191c78 Support a normalize option on the GeoTIFF source 2021-09-29 10:25:22 -06:00
MoonE
5f118b0244 Merge pull request #12831 from MoonE/fix-emptied-vectorimage
Fix rendering VectorImage with no features in view extent
2021-09-28 23:28:00 +02:00
Andreas Hocevar
e74d15659f Merge pull request #12830 from ejn/bugfix/overviewmap-layers-type
bugfix: Fix type of `layers` option in `OverviewMap`
2021-09-28 11:43:09 +02:00
Maximilian Krög
1942f3f91b Fix rendering VectorImage with no features in view extent 2021-09-27 23:04:58 +02:00
Maximilian Krög
2d3d6cae31 Test VectorImage rendering view extent with no features 2021-09-27 23:04:55 +02:00
Tim Schaub
f2f5a51455 Merge pull request #12822 from openlayers/dependabot/npm_and_yarn/glob-7.2.0
Bump glob from 7.1.7 to 7.2.0
2021-09-27 11:09:29 -06:00
Tim Schaub
1c4bcd7ceb Merge pull request #12824 from openlayers/dependabot/npm_and_yarn/rollup-2.57.0
Bump rollup from 2.56.3 to 2.57.0
2021-09-27 11:09:05 -06:00
Tim Schaub
fd178c71e6 Merge pull request #12818 from openlayers/dependabot/npm_and_yarn/threads-1.7.0
Bump threads from 1.6.5 to 1.7.0
2021-09-27 10:47:17 -06:00
dependabot[bot]
aee95cf690 Bump rollup from 2.56.3 to 2.57.0
Bumps [rollup](https://github.com/rollup/rollup) from 2.56.3 to 2.57.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.56.3...v2.57.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 16:44:18 +00:00
Tim Schaub
a32dc03a78 Merge pull request #12821 from openlayers/dependabot/npm_and_yarn/rollup/plugin-node-resolve-13.0.5
Bump @rollup/plugin-node-resolve from 13.0.4 to 13.0.5
2021-09-27 10:43:25 -06:00
Tim Schaub
17b8e80f0a Merge pull request #12823 from openlayers/dependabot/npm_and_yarn/walk-2.3.15
Bump walk from 2.3.14 to 2.3.15
2021-09-27 10:42:58 -06:00
Tim Schaub
b3c417d1c2 Merge pull request #12819 from openlayers/dependabot/npm_and_yarn/webpack-dev-middleware-5.2.1
Bump webpack-dev-middleware from 5.1.0 to 5.2.1
2021-09-27 10:42:02 -06:00
Tim Schaub
06884c1f35 Merge pull request #12820 from openlayers/dependabot/npm_and_yarn/mocha-9.1.2
Bump mocha from 9.1.1 to 9.1.2
2021-09-27 10:41:26 -06:00
Tim Schaub
13da248cbf Merge pull request #12817 from openlayers/dependabot/npm_and_yarn/yargs-17.2.1
Bump yargs from 17.1.1 to 17.2.1
2021-09-27 10:40:45 -06:00
dependabot[bot]
2274598ea3 Bump glob from 7.1.7 to 7.2.0
Bumps [glob](https://github.com/isaacs/node-glob) from 7.1.7 to 7.2.0.
- [Release notes](https://github.com/isaacs/node-glob/releases)
- [Changelog](https://github.com/isaacs/node-glob/blob/master/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v7.1.7...v7.2.0)

---
updated-dependencies:
- dependency-name: glob
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 16:38:52 +00:00
Tim Schaub
c5a4e842a3 Merge pull request #12825 from openlayers/dependabot/npm_and_yarn/webpack-5.54.0
Bump webpack from 5.53.0 to 5.54.0
2021-09-27 10:37:56 -06:00
Tim Schaub
b929e02f78 Merge pull request #12826 from openlayers/dependabot/npm_and_yarn/puppeteer-10.4.0
Bump puppeteer from 10.2.0 to 10.4.0
2021-09-27 10:36:59 -06:00
Edward Nash
a4186fae3c bugfix: Fix type of layers option in OverviewMap
* The foundation Layer class is BaseLayer and not Layer
2021-09-27 13:33:24 +02:00
Tim Schaub
bfb6c0ffb5 Merge pull request #12815 from tschaub/typo
Spelling correction
2021-09-27 05:18:09 -06:00
dependabot[bot]
9d167413e7 Bump puppeteer from 10.2.0 to 10.4.0
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 10.2.0 to 10.4.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v10.2.0...v10.4.0)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 10:03:07 +00:00
dependabot[bot]
bec5e9676a Bump webpack from 5.53.0 to 5.54.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.53.0 to 5.54.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.53.0...v5.54.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 10:02:51 +00:00
dependabot[bot]
676f538642 Bump walk from 2.3.14 to 2.3.15
Bumps [walk](https://github.com/coolaj86/node-walk) from 2.3.14 to 2.3.15.
- [Release notes](https://github.com/coolaj86/node-walk/releases)
- [Commits](https://github.com/coolaj86/node-walk/commits)

---
updated-dependencies:
- dependency-name: walk
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 10:02:16 +00:00
dependabot[bot]
c81a486615 Bump @rollup/plugin-node-resolve from 13.0.4 to 13.0.5
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve) from 13.0.4 to 13.0.5.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/node-resolve-v13.0.5/packages/node-resolve)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-node-resolve"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 10:01:52 +00:00
dependabot[bot]
722769695d Bump mocha from 9.1.1 to 9.1.2
Bumps [mocha](https://github.com/mochajs/mocha) from 9.1.1 to 9.1.2.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.1.1...v9.1.2)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 10:01:41 +00:00
dependabot[bot]
9511063f7e Bump webpack-dev-middleware from 5.1.0 to 5.2.1
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.1.0 to 5.2.1.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.1.0...v5.2.1)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 10:01:18 +00:00
dependabot[bot]
d755fbc507 Bump threads from 1.6.5 to 1.7.0
Bumps [threads](https://github.com/andywer/threads.js) from 1.6.5 to 1.7.0.
- [Release notes](https://github.com/andywer/threads.js/releases)
- [Changelog](https://github.com/andywer/threads.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/andywer/threads.js/compare/v1.6.5...v1.7.0)

---
updated-dependencies:
- dependency-name: threads
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 10:01:06 +00:00
dependabot[bot]
f7aba759c2 Bump yargs from 17.1.1 to 17.2.1
Bumps [yargs](https://github.com/yargs/yargs) from 17.1.1 to 17.2.1.
- [Release notes](https://github.com/yargs/yargs/releases)
- [Changelog](https://github.com/yargs/yargs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/yargs/yargs/compare/v17.1.1...v17.2.1)

---
updated-dependencies:
- dependency-name: yargs
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 10:00:49 +00:00
Tim Schaub
79cfeb9a07 Spelling correction 2021-09-26 20:11:40 -06:00
mike-000
564d4f867f Do not replace color if image not loaded 2021-09-25 13:24:39 +01:00
Andreas Hocevar
d66f2f4091 Merge pull request #12812 from openlayers/release-v6.8.1
Release v6.8.1
2021-09-25 09:15:50 +00:00
Andreas Hocevar
481dc9792c Fix typo 2021-09-25 09:06:15 +00:00
Andreas Hocevar
5c61d5b06c Develop on 6.8.2-dev 2021-09-25 09:05:12 +00:00
Andreas Hocevar
b068a339f5 Update package version to 6.8.1 2021-09-25 09:02:23 +00:00
Andreas Hocevar
7ac93be8dd Changelog for v6.8.1 2021-09-25 09:01:39 +00:00
Tim Schaub
7a6b9f8a33 Merge pull request #12811 from tschaub/inheritance
Controls inherit font size from parent
2021-09-25 08:20:30 +00:00
Tim Schaub
ef5d00cb9a Controls inherit font size from parent 2021-09-25 06:31:36 +00:00
Tim Schaub
2a0a71107e Merge pull request #12810 from openlayers/release-v6.8.0
Release v6.8.0
2021-09-24 20:07:58 +00:00
Tim Schaub
6b1232b922 Back to development 2021-09-24 19:54:37 +00:00
Anna Shchurova
2b5ea17d79 Moved layer declaration in the sample 2021-09-15 08:20:00 -04:00
Anna Shchurova
3ec1ed6bf0 Changed based on review comments 2021-09-13 19:22:27 -04:00
Anna Shchurova
d2a2234eec Added sample for custom hit renderer 2021-09-13 16:42:48 -04:00
Anna Shchurova
a281b7c1aa Added unit tests for hit detection 2021-09-08 17:05:00 -04:00
Anna Shchurova
eafcbb3ec0 Fixed lint 2021-08-23 13:42:56 -04:00
Anna Shchurova
820c123335 Added 'default' section and fixed more linting errors 2021-08-23 13:02:26 -04:00
Anna Shchurova
711ae69bb5 Fixed linting errors 2021-08-20 21:55:05 -04:00
Anna Shchurova
ba65896cef Fixed case for POINT 2021-08-20 15:50:04 -04:00
Anna Shchurova
aa58a358ea Added new 'hitDEtectionRenderer' property to ol.style.Style and used it in custom drawing 2021-08-20 15:10:59 -04:00
436 changed files with 16243 additions and 9166 deletions

View File

@@ -1,4 +0,0 @@
name: "OpenLayers CodeQL Config"
paths:
- src

29
.github/workflows/build-preview.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Build Preview
on:
pull_request:
branches:
- main
jobs:
build-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm ci
- run: npm run build-site
- uses: actions/upload-artifact@v2
with:
name: site
path: build/site
- name: Store pull request number for later use
run: |
mkdir -p build/pr
echo ${{github.event.number}} > build/pr/number
- uses: actions/upload-artifact@v2
with:
name: pr
path: build/pr

102
.github/workflows/deploy-preview.yml vendored Normal file
View File

@@ -0,0 +1,102 @@
name: Deploy Preview
on:
workflow_run:
workflows: ["Build Preview"]
types:
- completed
jobs:
deploy-preview:
runs-on: ubuntu-latest
if: ${{github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'}}
steps:
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install --global netlify-cli@6
- run: npm install unzipper@0.10
- name: Get pull request number
uses: actions/github-script@v5
id: pull-request-number
with:
result-encoding: string
script: |
const unzipper = require('unzipper');
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{github.event.workflow_run.id}}
});
const artifact = artifacts.data.artifacts.filter(
artifact => artifact.name === 'pr'
)[0];
if (!artifact) {
throw new Error('No pr artifact found');
}
const download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: artifact.id,
archive_format: 'zip'
});
const directory = await unzipper.Open.buffer(Buffer.from(download.data));
const file = directory.files.find(d => d.path === 'number');
const content = await file.buffer();
return content.toString();
- uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build-preview.yml
pr: ${{steps.pull-request-number.outputs.result}}
name: site
path: build/site
- name: Deploy to Netlify
env:
NETLIFY_AUTH_TOKEN: ${{secrets.NETLIFY_AUTH_TOKEN}}
NETLIFY_SITE_ID: ${{secrets.NETLIFY_SITE_ID}}
run: netlify deploy --dir=build/site --alias=deploy-preview-${{steps.pull-request-number.outputs.result}}
- name: Add comment to pull request
uses: actions/github-script@v5
with:
script: |
const pullRequestNumber = parseInt(${{steps.pull-request-number.outputs.result}}, 10);
const start = ':package:';
const author = 'github-actions[bot]';
const comments = await github.rest.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pullRequestNumber
});
const commentExists = comments.data.some(
comment => comment.user.login === author && comment.body.startsWith(start)
);
if (!commentExists) {
const body = [
`${start} Preview the [examples](https://deploy-preview-${pullRequestNumber}--ol-site.netlify.app/examples/) and`,
`[docs](https://deploy-preview-${pullRequestNumber}--ol-site.netlify.app/apidoc/) from this branch`,
`here: https://deploy-preview-${pullRequestNumber}--ol-site.netlify.app/.`
].join(' ');
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pullRequestNumber,
body: body
});
} else {
console.log(`Preview URL comment already added to PR #${pullRequestNumber}`);
}

View File

@@ -9,11 +9,11 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Publish
@@ -24,4 +24,4 @@ jobs:
cd build/ol
npm publish --tag dev
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

View File

@@ -15,20 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# Must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head of the pull request.
# Only include this option if you are running this workflow on pull requests.
fetch-depth: 2
- uses: actions/checkout@v2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: javascript
config-file: ./.github/codeql/config.yml
source-root: src
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

View File

@@ -24,22 +24,9 @@ jobs:
uses: actions/checkout@v2
- name: Set Node.js Version
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 16
- name: Determine Cache Directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Configure Job Cache
uses: actions/cache@v1
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: '16'
- name: Install Dependencies
run: npm ci
@@ -59,22 +46,9 @@ jobs:
uses: actions/checkout@v2
- name: Set Node.js Version
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 16
- name: Determine Cache Directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Configure Job Cache
uses: actions/cache@v1
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: '16'
- name: Install Dependencies
run: npm ci
@@ -94,22 +68,9 @@ jobs:
uses: actions/checkout@v2
- name: Set Node.js Version
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 16
- name: Determine Cache Directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Configure Job Cache
uses: actions/cache@v1
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: '16'
- name: Install Dependencies
run: npm ci
@@ -129,22 +90,9 @@ jobs:
uses: actions/checkout@v2
- name: Set Node.js Version
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 16
- name: Determine Cache Directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Configure Job Cache
uses: actions/cache@v1
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: '16'
- name: Install Dependencies
run: npm ci
@@ -153,7 +101,7 @@ jobs:
run: npm run build-package
- name: Generate the Legacy Build
run: npm run build-legacy && npx eslint --fix build/index.js
run: "npm run build-legacy && npx eslint --rule 'import/no-duplicates: off' --fix build/index.js"
rendering:
name: Rendering
@@ -167,22 +115,9 @@ jobs:
uses: actions/checkout@v2
- name: Set Node.js Version
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 16
- name: Determine Cache Directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Configure Job Cache
uses: actions/cache@v1
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: '16'
- name: Install Dependencies
run: npm ci

View File

@@ -2,7 +2,7 @@
## Setting up development environment
You will obviously start by
You will start by
[forking](https://github.com/openlayers/openlayers/fork) the OpenLayers repository.
### Development dependencies
@@ -26,6 +26,28 @@ To run the examples you first need to start the dev server:
Then, load <http://localhost:8080/> in your browser.
## Linking Package
The `ol` package is published from the `build/ol` folder of the `openlayers` repo.
After you've cloned the `openlayers` repo locally run the `npm build-package` to prepare the build then use the `npm link` command to connect it your project.
Below is an example of how to build and link it to "sample-project"
$ cd openlayers
$ npm run build-package
$ cd build/ol
$ npm link
$ cd /sample-project
$ npm link ol
To remove the link run the following commands
$ cd sample-project
$ npm unlink --no-save ol
$ cd ../openlayers
$ npm unlink
## Running tests
To run the tests once:

View File

@@ -36,10 +36,10 @@ new Map({
See the following examples for more detail on bundling OpenLayers with your application:
* Using [Vite](https://github.com/openlayers/ol-vite)
* Using [Rollup](https://github.com/openlayers/ol-rollup)
* Using [Webpack](https://github.com/openlayers/ol-webpack)
* Using [webpack](https://github.com/openlayers/ol-webpack)
* Using [Parcel](https://github.com/openlayers/ol-parcel)
* Using [Browserify](https://github.com/openlayers/ol-browserify)
## Sponsors
@@ -97,9 +97,10 @@ For older browsers and platforms (Internet Explorer, Android 4.x, iOS v12 and ol
* [`fetch`](https://caniuse.com/fetch): Available from [polyfill.io](https://polyfill.io/).
* [`requestAnimationFrame`](https://caniuse.com/requestanimationframe): Available from [polyfill.io](https://polyfill.io/).
* [`element.prototype.classList` (`add`/`remove`)](https://caniuse.com/classlist): Available from [polyfill.io](https://polyfill.io/).
* [`URL` API](https://caniuse.com/url): Available from [polyfill.io](https://polyfill.io/).
* [`URL` API](https://caniuse.com/url): Available from [polyfill.io](https://polyfill.io/) or [core-js](https://cdnjs.com/libraries/core-js/).
* [`TextDecoder`](https://caniuse.com/textencoder): Available from [polyfill.io](https://polyfill.io/).
* [`Number.isInteger`](https://caniuse.com/isInteger): Available from [polyfill.io](https://polyfill.io/).
* [`Number.isInteger`](https://caniuse.com/isInteger): Available from [polyfill.io](https://polyfill.io/) or [core-js](https://cdnjs.com/libraries/core-js/).
* [`Reflect`](https://caniuse.com/mdn-javascript_builtins_reflect): Available from [core-js](https://cdnjs.com/libraries/core-js/).
* [Pointer events](https://caniuse.com/pointer): Use [elm-pep](https://npmjs.com/package/elm-pep) (lightweight) or [pepjs](https://npmjs.com/package/pepjs) (for really, really old browsers).
[`ol/source/GeoTIFF`](https://openlayers.org/en/latest/apidoc/module-ol_source_GeoTIFF-GeoTIFFSource.html) requires a browser that supports [ECMAScript 6](https://262.ecma-international.org/6.0/). Additionally a polyfill for [`Promise.allSettled`](https://caniuse.com/mdn-javascript_builtins_promise_allsettled) may be needed.

View File

@@ -1,5 +1,55 @@
## Upgrade notes
### Next
### v6.13.0
#### New `layer.getData()` method
Raster layers (static images, image tiles, data tiles) have a new `layer.getData(pixel)` method that returns the pixel data at the provided location. The return value depends on the underlying source data type. For example, a GeoTIFF may return a `Float32Array` with one value per band, while a PNG rendered from a tile layer will return a `Uint8ClampedArray` of RGBA values.
If you were previously using the `map.forEachLayerAtPixel()` method, you should use the new `layer.getData()` method instead. The old method returns composite pixel values from multiple layers and is limited to RGBA values. The new method doesn't suffer from these shortcomings and is more performant.
#### Deprecated `map.forEachLayerAtPixel()` method
The `map.forEachLayerAtPixel()` method has been deprecated. It will be removed (or its behavior may change) in the next major release. Please use the `layer.getData()` method instead.
### v6.12.0
No special changes are required when upgrading to the 6.12.0 release.
### v6.11.0
No special changes are required when upgrading to the 6.11.0 release.
### v6.10.0
#### New `interpolate` option for sources
Sources now have an `interpolate` option. This option controls whether data from the source is interpolated when resampling.
For `ol/source/DataTile` sources, the default is `interpolate: false`. This means that when a data tile source is used with a WebGL tile layer renderer, your style expression will have access to pixel values in the data tiles without interpolation. If this option is set to true, linear interpolation will be used when over- or under-sampling the data.
#### Deprecation of the `imageSmoothing` option for sources
The `imageSmoothing` option for sources has been deprecated and will be removed in the next major release. Use the `interpolate` option instead.
```js
// if you were using `imageSmoothing`
const before = new TileSource({
imageSmoothing: false
});
// use the `interpolate` option instead
const after = new TileSource({
interpolate: false
});
```
### v6.9.0
There should be nothing special required when upgrading from v6.8 to v6.9.
### v6.8.0
There should be nothing special required when upgrading from v6.7 to v6.8.

200
changelog/v6.10.0.md Normal file
View File

@@ -0,0 +1,200 @@
# 6.10.0
Just in time for the new year, the 6.10 release brings another great batch of features and fixes for your OpenLayers applications.
#### WebGL rendering
You can now update the style for your WebGL tile layers with `layer.setStyle()`. Keep in mind that it is more efficient to use style variables if you want to adjust styling on every render frame. However, in cases where you want to completely reconfigure the style, you can use the new `layer.setStyle()` method.
Additional WebGL tile layer rendering enhancements:
* A new `palette` operator was added that allows styling raster data based on a colormap.
* The `band` operator accepts expressions for the band number (in addition to numeric literals) allowing for bands to be set by user provided style variables, for example.
* Tile layers now dispatch `prerender`, `postrender`, `precompose` and `postcompose` events with access to the WebGL rendering context.
* Layers that are adjacent to one another now share a single canvas element and rendering context allowing for more layers in your maps before exhausting the browser's context limit.
#### Vector tiles
The Mapbox vector layer now works more easily with other vector tile providers. In addition, vector tile layers can now be configured with a background color.
#### New `interpolate` option for sources
Sources now have an `interpolate` option. This option controls whether data from the source is interpolated when resampling.
For `ol/source/DataTile` sources, the default is `interpolate: false`. This means that when a data tile source is used with a WebGL tile layer renderer, your style expression will have access to pixel values in the data tiles without interpolation. If this option is set to true, linear interpolation will be used when over- or under-sampling the data.
#### Deprecation of the `imageSmoothing` option for sources
The `imageSmoothing` option for sources has been deprecated and will be removed in the next major release. Use the `interpolate` option instead.
```js
// if you were using `imageSmoothing`
const before = new TileSource({
imageSmoothing: false
});
// use the `interpolate` option instead
const after = new TileSource({
interpolate: false
});
```
#### List of all changes
See below for more features and fixes.
* [#13155](https://github.com/openlayers/openlayers/pull/13155) - Allow interpolation to be configured for data tile sources ([@tschaub](https://github.com/tschaub))
* [#13165](https://github.com/openlayers/openlayers/pull/13165) - Do not exceed maximum call stack when parsing TopoJSON ([@ahocevar](https://github.com/ahocevar))
* [#13158](https://github.com/openlayers/openlayers/pull/13158) - Add example for dynamic clusters ([@ahocevar](https://github.com/ahocevar))
* [#13156](https://github.com/openlayers/openlayers/pull/13156) - Ensure that tile range covers all pixels ([@tschaub](https://github.com/tschaub))
* [#13154](https://github.com/openlayers/openlayers/pull/13154) - Update Export Map example to handle WebGL ([@mike-000](https://github.com/mike-000))
* [#13147](https://github.com/openlayers/openlayers/pull/13147) - Support rendering with a palette in WebGL ([@tschaub](https://github.com/tschaub))
* [#13142](https://github.com/openlayers/openlayers/pull/13142) - Include transpacific flights in Flight Animation example ([@mike-000](https://github.com/mike-000))
* [#13150](https://github.com/openlayers/openlayers/pull/13150) - Include layer opacity in Heatmap shader ([@mike-000](https://github.com/mike-000))
* [#13149](https://github.com/openlayers/openlayers/pull/13149) - Add layer also for programmatically selected features ([@ahocevar](https://github.com/ahocevar))
* [#13151](https://github.com/openlayers/openlayers/pull/13151) - Avoid error accessing attributes when context is lost ([@mike-000](https://github.com/mike-000))
* [#13144](https://github.com/openlayers/openlayers/pull/13144) - Replace deprecated syntax in example ([@mike-000](https://github.com/mike-000))
* [#13131](https://github.com/openlayers/openlayers/pull/13131) - Unset canvas css in stylesheet ([@ahocevar](https://github.com/ahocevar))
* [#13130](https://github.com/openlayers/openlayers/pull/13130) - Allow WebGL tile layers to be constructed without a source ([@tschaub](https://github.com/tschaub))
* [#13126](https://github.com/openlayers/openlayers/pull/13126) - Preserve the drawing buffer by default for WebGL layers ([@tschaub](https://github.com/tschaub))
* [#13127](https://github.com/openlayers/openlayers/pull/13127) - Fix for range slider on IE ([@mike-000](https://github.com/mike-000))
* [#13095](https://github.com/openlayers/openlayers/pull/13095) - Render is only complete when no tiles are queued ([@ahocevar](https://github.com/ahocevar))
* [#13120](https://github.com/openlayers/openlayers/pull/13120) - Populate view's object properties ([@ahocevar](https://github.com/ahocevar))
* [#13102](https://github.com/openlayers/openlayers/pull/13102) - update line-arrows example ([@jipexu](https://github.com/jipexu))
* [#13119](https://github.com/openlayers/openlayers/pull/13119) - Dispatch precompose and postcompose events for WebGL layers ([@tschaub](https://github.com/tschaub))
* [#13118](https://github.com/openlayers/openlayers/pull/13118) - Add a layer opacity example ([@tschaub](https://github.com/tschaub))
* [#13115](https://github.com/openlayers/openlayers/pull/13115) - Lazily create resources for worker ([@tschaub](https://github.com/tschaub))
* [#13103](https://github.com/openlayers/openlayers/pull/13103) - Assume limited precision when rounding ([@tschaub](https://github.com/tschaub))
* [#13097](https://github.com/openlayers/openlayers/pull/13097) - Use correct terrain-rgb tile size and update max zoom ([@mike-000](https://github.com/mike-000))
* [#13101](https://github.com/openlayers/openlayers/pull/13101) - Fix View set center to undefined ([@M393](https://github.com/M393))
* [#13085](https://github.com/openlayers/openlayers/pull/13085) - Add layer background ([@ahocevar](https://github.com/ahocevar))
* [#13083](https://github.com/openlayers/openlayers/pull/13083) - Support expressions for band arguments ([@tschaub](https://github.com/tschaub))
* [#13084](https://github.com/openlayers/openlayers/pull/13084) - Normalize relative sprite and glyph urls for style url ([@ahocevar](https://github.com/ahocevar))
* [#13020](https://github.com/openlayers/openlayers/pull/13020) - Allow WebGL tile layer style to be updated ([@tschaub](https://github.com/tschaub))
* [#13073](https://github.com/openlayers/openlayers/pull/13073) - Fall back to standard load handling when decode fails ([@ahocevar](https://github.com/ahocevar))
* [#13077](https://github.com/openlayers/openlayers/pull/13077) - update draw and modify features example ([@jipexu](https://github.com/jipexu))
* [#13069](https://github.com/openlayers/openlayers/pull/13069) - Normalize based on GDAL stats metadata ([@tschaub](https://github.com/tschaub))
* [#13070](https://github.com/openlayers/openlayers/pull/13070) - Use source minzoom if not configured otherwise ([@ahocevar](https://github.com/ahocevar))
* [#13065](https://github.com/openlayers/openlayers/pull/13065) - Fix typo in example ([@jipexu](https://github.com/jipexu))
* [#13060](https://github.com/openlayers/openlayers/pull/13060) - Avoid fetching data outside the grid extent ([@tschaub](https://github.com/tschaub))
* [#13054](https://github.com/openlayers/openlayers/pull/13054) - Updates for newer version of the OGC API spec draft ([@ahocevar](https://github.com/ahocevar))
* [#13045](https://github.com/openlayers/openlayers/pull/13045) - Fix tiles and background handling ([@ahocevar](https://github.com/ahocevar))
* [#13030](https://github.com/openlayers/openlayers/pull/13030) - Correctly set popover position in geographic example ([@MoonE](https://github.com/MoonE))
* [#13031](https://github.com/openlayers/openlayers/pull/13031) - Allow data tile source loader to return a value or a promise ([@tschaub](https://github.com/tschaub))
* [#13026](https://github.com/openlayers/openlayers/pull/13026) - Fix strokeStyle documentation ([@ahocevar](https://github.com/ahocevar))
* [#13027](https://github.com/openlayers/openlayers/pull/13027) - Restore the security scan workflow ([@openlayers](https://github.com/openlayers))
* [#13025](https://github.com/openlayers/openlayers/pull/13025) - Add background to MapboxVector layer ([@ahocevar](https://github.com/ahocevar))
* [#13013](https://github.com/openlayers/openlayers/pull/13013) - Use appropriate UNPACK_ALIGNMENT for data textures ([@mike-000](https://github.com/mike-000))
* [#13021](https://github.com/openlayers/openlayers/pull/13021) - Add the renderer type to generic layer template variables ([@tschaub](https://github.com/tschaub))
* [#13022](https://github.com/openlayers/openlayers/pull/13022) - Update the security scan task ([@tschaub](https://github.com/tschaub))
* [#13015](https://github.com/openlayers/openlayers/pull/13015) - Additional types for WebGL renderer, sources, and tiles ([@tschaub](https://github.com/tschaub))
* [#13012](https://github.com/openlayers/openlayers/pull/13012) - Remove unused dependencies ([@tschaub](https://github.com/tschaub))
* [#12976](https://github.com/openlayers/openlayers/pull/12976) - Handle ReprojTile in ol/layer/WebGLTile ([@mike-000](https://github.com/mike-000))
* [#13011](https://github.com/openlayers/openlayers/pull/13011) - Use registry URL when publishing ([@tschaub](https://github.com/tschaub))
* [#13009](https://github.com/openlayers/openlayers/pull/13009) - Use workflow_run event to deploy pull request previews ([@tschaub](https://github.com/tschaub))
* [#12965](https://github.com/openlayers/openlayers/pull/12965) - Allow canvas reuse for WebGL layers ([@tschaub](https://github.com/tschaub))
* [#12999](https://github.com/openlayers/openlayers/pull/12999) - Fix style related apidoc issues ([@MoonE](https://github.com/MoonE))
* [#12978](https://github.com/openlayers/openlayers/pull/12978) - Add null to style jsdoc of VectorImage ([@EvertEt](https://github.com/EvertEt))
* [#12997](https://github.com/openlayers/openlayers/pull/12997) - Lazily create the WebGL helper ([@tschaub](https://github.com/tschaub))
* [#12996](https://github.com/openlayers/openlayers/pull/12996) - Align labels with the Select elements in the Raster Reprojection example ([@mike-000](https://github.com/mike-000))
* [#12994](https://github.com/openlayers/openlayers/pull/12994) - Add a map property to layers ([@tschaub](https://github.com/tschaub))
* [#12987](https://github.com/openlayers/openlayers/pull/12987) - Browser test config update ([@tschaub](https://github.com/tschaub))
* [#12939](https://github.com/openlayers/openlayers/pull/12939) - Example that demonstrates a color expression using variables ([@tschaub](https://github.com/tschaub))
* [#12962](https://github.com/openlayers/openlayers/pull/12962) - No context sharing when layer opacity is set ([@ahocevar](https://github.com/ahocevar))
* [#12964](https://github.com/openlayers/openlayers/pull/12964) - Updated Bing Maps key ([@tschaub](https://github.com/tschaub))
* [#12958](https://github.com/openlayers/openlayers/pull/12958) - Reuse temporary canvas in getDataAtPixel() ([@mike-000](https://github.com/mike-000))
* [#12893](https://github.com/openlayers/openlayers/pull/12893) - Allow map target to be an external window ([@andrewcoder002](https://github.com/andrewcoder002))
* [#12955](https://github.com/openlayers/openlayers/pull/12955) - Make MapboxVector layer work in more access key scenarios ([@ahocevar](https://github.com/ahocevar))
* [#12935](https://github.com/openlayers/openlayers/pull/12935) - fix bug #12913 ([@mrpan](https://github.com/mrpan))
* [#12933](https://github.com/openlayers/openlayers/pull/12933) - Include WebGL context in render events for WebGL layers ([@tschaub](https://github.com/tschaub))
* [#12917](https://github.com/openlayers/openlayers/pull/12917) - Make removeFeature consistent with other remove methods ([@mike-000](https://github.com/mike-000))
* [#12918](https://github.com/openlayers/openlayers/pull/12918) - Add setDisplacement method to ol/style/Image and subclasses ([@mike-000](https://github.com/mike-000))
* [#12930](https://github.com/openlayers/openlayers/pull/12930) - Fix flaky view animation test ([@MoonE](https://github.com/MoonE))
* [#12915](https://github.com/openlayers/openlayers/pull/12915) - Test the new pull request deploy previews ([@tschaub](https://github.com/tschaub))
* [#12916](https://github.com/openlayers/openlayers/pull/12916) - Updates to deploy-preview job ([@openlayers](https://github.com/openlayers))
* [#12914](https://github.com/openlayers/openlayers/pull/12914) - Build site preview as a GitHub action ([@tschaub](https://github.com/tschaub))
* [#12891](https://github.com/openlayers/openlayers/pull/12891) - Restore browser compatibility where possible ([@mike-000](https://github.com/mike-000))
* [#12899](https://github.com/openlayers/openlayers/pull/12899) - Update docs to mention Vite ([@tschaub](https://github.com/tschaub))
* [#12890](https://github.com/openlayers/openlayers/pull/12890) - Release 6.9.0 ([@openlayers](https://github.com/openlayers))
<details>
<summary>Dependency Updates</summary>
* [#13162](https://github.com/openlayers/openlayers/pull/13162) - Bump yargs from 17.3.0 to 17.3.1 ([@openlayers](https://github.com/openlayers))
* [#13163](https://github.com/openlayers/openlayers/pull/13163) - Bump rollup from 2.61.1 to 2.62.0 ([@openlayers](https://github.com/openlayers))
* [#13161](https://github.com/openlayers/openlayers/pull/13161) - Bump webpack-dev-server from 4.6.0 to 4.7.1 ([@openlayers](https://github.com/openlayers))
* [#13160](https://github.com/openlayers/openlayers/pull/13160) - Bump puppeteer from 13.0.0 to 13.0.1 ([@openlayers](https://github.com/openlayers))
* [#13140](https://github.com/openlayers/openlayers/pull/13140) - Bump @rollup/plugin-node-resolve from 13.0.6 to 13.1.1 ([@openlayers](https://github.com/openlayers))
* [#13132](https://github.com/openlayers/openlayers/pull/13132) - Bump copy-webpack-plugin from 10.1.0 to 10.2.0 ([@openlayers](https://github.com/openlayers))
* [#13141](https://github.com/openlayers/openlayers/pull/13141) - Bump webpack-dev-middleware from 5.2.2 to 5.3.0 ([@openlayers](https://github.com/openlayers))
* [#13133](https://github.com/openlayers/openlayers/pull/13133) - Bump eslint from 8.4.1 to 8.5.0 ([@openlayers](https://github.com/openlayers))
* [#13139](https://github.com/openlayers/openlayers/pull/13139) - Bump @babel/core from 7.16.0 to 7.16.5 ([@openlayers](https://github.com/openlayers))
* [#13136](https://github.com/openlayers/openlayers/pull/13136) - Bump @babel/preset-env from 7.16.4 to 7.16.5 ([@openlayers](https://github.com/openlayers))
* [#13137](https://github.com/openlayers/openlayers/pull/13137) - Bump express from 4.17.1 to 4.17.2 ([@openlayers](https://github.com/openlayers))
* [#13138](https://github.com/openlayers/openlayers/pull/13138) - Bump ol-mapbox-style from 6.7.0 to 6.8.1 ([@openlayers](https://github.com/openlayers))
* [#13134](https://github.com/openlayers/openlayers/pull/13134) - Bump marked from 4.0.7 to 4.0.8 ([@openlayers](https://github.com/openlayers))
* [#13106](https://github.com/openlayers/openlayers/pull/13106) - Bump webpack from 5.64.4 to 5.65.0 ([@openlayers](https://github.com/openlayers))
* [#13108](https://github.com/openlayers/openlayers/pull/13108) - Bump rollup from 2.60.2 to 2.61.1 ([@openlayers](https://github.com/openlayers))
* [#13107](https://github.com/openlayers/openlayers/pull/13107) - Bump copy-webpack-plugin from 10.0.0 to 10.1.0 ([@openlayers](https://github.com/openlayers))
* [#13105](https://github.com/openlayers/openlayers/pull/13105) - Bump eslint from 8.4.0 to 8.4.1 ([@openlayers](https://github.com/openlayers))
* [#13109](https://github.com/openlayers/openlayers/pull/13109) - Bump marked from 4.0.6 to 4.0.7 ([@openlayers](https://github.com/openlayers))
* [#13110](https://github.com/openlayers/openlayers/pull/13110) - Bump puppeteer from 12.0.1 to 13.0.0 ([@openlayers](https://github.com/openlayers))
* [#13111](https://github.com/openlayers/openlayers/pull/13111) - Bump clean-css-cli from 5.4.2 to 5.5.0 ([@openlayers](https://github.com/openlayers))
* [#13091](https://github.com/openlayers/openlayers/pull/13091) - Bump rollup from 2.60.1 to 2.60.2 ([@openlayers](https://github.com/openlayers))
* [#13089](https://github.com/openlayers/openlayers/pull/13089) - Bump eslint from 8.3.0 to 8.4.0 ([@openlayers](https://github.com/openlayers))
* [#13090](https://github.com/openlayers/openlayers/pull/13090) - Bump marked from 4.0.5 to 4.0.6 ([@openlayers](https://github.com/openlayers))
* [#13093](https://github.com/openlayers/openlayers/pull/13093) - Bump yargs from 17.2.1 to 17.3.0 ([@openlayers](https://github.com/openlayers))
* [#13092](https://github.com/openlayers/openlayers/pull/13092) - Bump puppeteer from 12.0.0 to 12.0.1 ([@openlayers](https://github.com/openlayers))
* [#13088](https://github.com/openlayers/openlayers/pull/13088) - Bump geotiff from 1.0.8 to 1.0.9 ([@openlayers](https://github.com/openlayers))
* [#13057](https://github.com/openlayers/openlayers/pull/13057) - Bump puppeteer from 11.0.0 to 12.0.0 ([@openlayers](https://github.com/openlayers))
* [#13055](https://github.com/openlayers/openlayers/pull/13055) - Bump webpack from 5.64.2 to 5.64.4 ([@openlayers](https://github.com/openlayers))
* [#13056](https://github.com/openlayers/openlayers/pull/13056) - Bump webpack-dev-server from 4.5.0 to 4.6.0 ([@openlayers](https://github.com/openlayers))
* [#13058](https://github.com/openlayers/openlayers/pull/13058) - Bump marked from 4.0.4 to 4.0.5 ([@openlayers](https://github.com/openlayers))
* [#13032](https://github.com/openlayers/openlayers/pull/13032) - Bump webpack from 5.64.0 to 5.64.2 ([@openlayers](https://github.com/openlayers))
* [#13033](https://github.com/openlayers/openlayers/pull/13033) - Bump webpack-sources from 3.2.1 to 3.2.2 ([@openlayers](https://github.com/openlayers))
* [#13034](https://github.com/openlayers/openlayers/pull/13034) - Bump rollup from 2.60.0 to 2.60.1 ([@openlayers](https://github.com/openlayers))
* [#13035](https://github.com/openlayers/openlayers/pull/13035) - Bump copy-webpack-plugin from 9.1.0 to 10.0.0 ([@openlayers](https://github.com/openlayers))
* [#13036](https://github.com/openlayers/openlayers/pull/13036) - Bump webpack-dev-middleware from 5.2.1 to 5.2.2 ([@openlayers](https://github.com/openlayers))
* [#13037](https://github.com/openlayers/openlayers/pull/13037) - Bump @babel/preset-env from 7.16.0 to 7.16.4 ([@openlayers](https://github.com/openlayers))
* [#13038](https://github.com/openlayers/openlayers/pull/13038) - Bump marked from 4.0.3 to 4.0.4 ([@openlayers](https://github.com/openlayers))
* [#13039](https://github.com/openlayers/openlayers/pull/13039) - Bump eslint from 8.2.0 to 8.3.0 ([@openlayers](https://github.com/openlayers))
* [#13040](https://github.com/openlayers/openlayers/pull/13040) - Bump ol-mapbox-style from 6.5.2 to 6.5.3 ([@openlayers](https://github.com/openlayers))
* [#13041](https://github.com/openlayers/openlayers/pull/13041) - Bump karma from 6.3.8 to 6.3.9 ([@openlayers](https://github.com/openlayers))
* [#13001](https://github.com/openlayers/openlayers/pull/13001) - Bump webpack from 5.62.1 to 5.64.0 ([@openlayers](https://github.com/openlayers))
* [#13002](https://github.com/openlayers/openlayers/pull/13002) - Bump terser-webpack-plugin from 5.2.4 to 5.2.5 ([@openlayers](https://github.com/openlayers))
* [#13003](https://github.com/openlayers/openlayers/pull/13003) - Bump copy-webpack-plugin from 9.0.1 to 9.1.0 ([@openlayers](https://github.com/openlayers))
* [#13004](https://github.com/openlayers/openlayers/pull/13004) - Bump rollup from 2.59.0 to 2.60.0 ([@openlayers](https://github.com/openlayers))
* [#13005](https://github.com/openlayers/openlayers/pull/13005) - Bump webpack-dev-server from 4.4.0 to 4.5.0 ([@openlayers](https://github.com/openlayers))
* [#13006](https://github.com/openlayers/openlayers/pull/13006) - Bump ol-mapbox-style from 6.5.1 to 6.5.2 ([@openlayers](https://github.com/openlayers))
* [#13007](https://github.com/openlayers/openlayers/pull/13007) - Bump marked from 4.0.0 to 4.0.3 ([@openlayers](https://github.com/openlayers))
* [#13008](https://github.com/openlayers/openlayers/pull/13008) - Bump glob from 7.1.7 to 7.2.0 ([@openlayers](https://github.com/openlayers))
* [#12968](https://github.com/openlayers/openlayers/pull/12968) - Bump sinon from 11.1.2 to 12.0.1 ([@openlayers](https://github.com/openlayers))
* [#12969](https://github.com/openlayers/openlayers/pull/12969) - Bump marked from 3.0.8 to 4.0.0 ([@openlayers](https://github.com/openlayers))
* [#12973](https://github.com/openlayers/openlayers/pull/12973) - Bump eslint from 8.1.0 to 8.2.0 ([@openlayers](https://github.com/openlayers))
* [#12972](https://github.com/openlayers/openlayers/pull/12972) - Bump karma-firefox-launcher from 2.1.1 to 2.1.2 ([@openlayers](https://github.com/openlayers))
* [#12971](https://github.com/openlayers/openlayers/pull/12971) - Bump puppeteer from 10.4.0 to 11.0.0 ([@openlayers](https://github.com/openlayers))
* [#12970](https://github.com/openlayers/openlayers/pull/12970) - Bump karma from 6.3.6 to 6.3.8 ([@openlayers](https://github.com/openlayers))
* [#12967](https://github.com/openlayers/openlayers/pull/12967) - Bump webpack from 5.61.0 to 5.62.1 ([@openlayers](https://github.com/openlayers))
* [#12948](https://github.com/openlayers/openlayers/pull/12948) - Bump webpack from 5.59.1 to 5.61.0 ([@openlayers](https://github.com/openlayers))
* [#12945](https://github.com/openlayers/openlayers/pull/12945) - Bump rollup from 2.58.3 to 2.59.0 ([@openlayers](https://github.com/openlayers))
* [#12946](https://github.com/openlayers/openlayers/pull/12946) - Bump @babel/preset-env from 7.15.8 to 7.16.0 ([@openlayers](https://github.com/openlayers))
* [#12947](https://github.com/openlayers/openlayers/pull/12947) - Bump @babel/core from 7.15.8 to 7.16.0 ([@openlayers](https://github.com/openlayers))
* [#12949](https://github.com/openlayers/openlayers/pull/12949) - Bump karma from 6.3.5 to 6.3.6 ([@openlayers](https://github.com/openlayers))
* [#12944](https://github.com/openlayers/openlayers/pull/12944) - Bump webpack-dev-server from 4.3.1 to 4.4.0 ([@openlayers](https://github.com/openlayers))
* [#12923](https://github.com/openlayers/openlayers/pull/12923) - Bump @rollup/plugin-commonjs from 21.0.0 to 21.0.1 ([@openlayers](https://github.com/openlayers))
* [#12922](https://github.com/openlayers/openlayers/pull/12922) - Bump webpack-cli from 4.9.0 to 4.9.1 ([@openlayers](https://github.com/openlayers))
* [#12929](https://github.com/openlayers/openlayers/pull/12929) - Bump rollup from 2.58.0 to 2.58.3 ([@openlayers](https://github.com/openlayers))
* [#12920](https://github.com/openlayers/openlayers/pull/12920) - Bump marked from 3.0.7 to 3.0.8 ([@openlayers](https://github.com/openlayers))
* [#12924](https://github.com/openlayers/openlayers/pull/12924) - Bump clean-css-cli from 5.4.1 to 5.4.2 ([@openlayers](https://github.com/openlayers))
* [#12926](https://github.com/openlayers/openlayers/pull/12926) - Bump @rollup/plugin-node-resolve from 13.0.5 to 13.0.6 ([@openlayers](https://github.com/openlayers))
* [#12928](https://github.com/openlayers/openlayers/pull/12928) - Bump babel-loader from 8.2.2 to 8.2.3 ([@openlayers](https://github.com/openlayers))
* [#12921](https://github.com/openlayers/openlayers/pull/12921) - Bump webpack from 5.58.2 to 5.59.1 ([@openlayers](https://github.com/openlayers))
* [#12927](https://github.com/openlayers/openlayers/pull/12927) - Bump eslint from 8.0.1 to 8.1.0 ([@openlayers](https://github.com/openlayers))
* [#12919](https://github.com/openlayers/openlayers/pull/12919) - Bump karma from 6.3.4 to 6.3.5 ([@openlayers](https://github.com/openlayers))
* [#12902](https://github.com/openlayers/openlayers/pull/12902) - Bump eslint from 7.32.0 to 8.0.1 ([@openlayers](https://github.com/openlayers))
* [#12904](https://github.com/openlayers/openlayers/pull/12904) - Bump mocha from 9.1.2 to 9.1.3 ([@openlayers](https://github.com/openlayers))
* [#12905](https://github.com/openlayers/openlayers/pull/12905) - Bump glob from 7.1.7 to 7.2.0 ([@openlayers](https://github.com/openlayers))
* [#12903](https://github.com/openlayers/openlayers/pull/12903) - Bump webpack from 5.58.1 to 5.58.2 ([@openlayers](https://github.com/openlayers))
</details>

32
changelog/v6.11.0.md Normal file
View File

@@ -0,0 +1,32 @@
# 6.11.0
This release follows up on the 6.10 release with a fix for Mapbox vector layers rendered over other layers. A handful of other fixes and features are included. See below for more detail.
* [#13195](https://github.com/openlayers/openlayers/pull/13195) - Use getFeaturesInExtent ([@ahocevar](https://github.com/ahocevar))
* [#13200](https://github.com/openlayers/openlayers/pull/13200) - Use interpolate option in Sea Level example ([@mike-000](https://github.com/mike-000))
* [#13201](https://github.com/openlayers/openlayers/pull/13201) - Fix typo in example description ([@mike-000](https://github.com/mike-000))
* [#13177](https://github.com/openlayers/openlayers/pull/13177) - Use ecoregions data ([@tschaub](https://github.com/tschaub))
* [#13198](https://github.com/openlayers/openlayers/pull/13198) - Avoid failure if existing target has no background color ([@tschaub](https://github.com/tschaub))
* [#13186](https://github.com/openlayers/openlayers/pull/13186) - Add getDataAtPixel() method for WebGL ([@mike-000](https://github.com/mike-000))
* [#13196](https://github.com/openlayers/openlayers/pull/13196) - typo fix for cog-stretch example ([@bradh](https://github.com/bradh))
* [#13190](https://github.com/openlayers/openlayers/pull/13190) - Fix base vector layer template generics ([@ahocevar](https://github.com/ahocevar))
* [#13180](https://github.com/openlayers/openlayers/pull/13180) - Always use ES modules from geotiff.js ([@ahocevar](https://github.com/ahocevar))
* [#13179](https://github.com/openlayers/openlayers/pull/13179) - Use Buffer and data uri when Blob is not available ([@ahocevar](https://github.com/ahocevar))
* [#13178](https://github.com/openlayers/openlayers/pull/13178) - Use background property for vector layers ([@tschaub](https://github.com/tschaub))
* [#13175](https://github.com/openlayers/openlayers/pull/13175) - Allow nodejs 12 to build the examples again ([@MoonE](https://github.com/MoonE))
* [#13176](https://github.com/openlayers/openlayers/pull/13176) - Add `attributions` and `attributionsCollapsible` options to `ol/source/DataTile` ([@mike-000](https://github.com/mike-000))
* [#13171](https://github.com/openlayers/openlayers/pull/13171) - Correct scale bar in EPSG:4326 ([@mike-000](https://github.com/mike-000))
* [#13168](https://github.com/openlayers/openlayers/pull/13168) - Release 6.10.0 ([@openlayers](https://github.com/openlayers))
<details>
<summary>Dependency Updates</summary>
* [#13182](https://github.com/openlayers/openlayers/pull/13182) - Bump eslint from 8.5.0 to 8.6.0 ([@openlayers](https://github.com/openlayers))
* [#13184](https://github.com/openlayers/openlayers/pull/13184) - Bump @rollup/plugin-node-resolve from 13.1.1 to 13.1.2 ([@openlayers](https://github.com/openlayers))
* [#13183](https://github.com/openlayers/openlayers/pull/13183) - Bump @babel/core from 7.16.5 to 7.16.7 ([@openlayers](https://github.com/openlayers))
* [#13185](https://github.com/openlayers/openlayers/pull/13185) - Bump webpack-dev-server from 4.7.1 to 4.7.2 ([@openlayers](https://github.com/openlayers))
* [#13181](https://github.com/openlayers/openlayers/pull/13181) - Bump @babel/preset-env from 7.16.5 to 7.16.7 ([@openlayers](https://github.com/openlayers))
</details>

30
changelog/v6.12.0.md Normal file
View File

@@ -0,0 +1,30 @@
# 6.12.0
The 6.12 release brings a few small fixes and enhancements. See below for a complete list.
* Transitive dependency update (by @openlayers in https://github.com/openlayers/openlayers/pull/13240)
* Re-enable image smoothing after rendering (by @mike-000 in https://github.com/openlayers/openlayers/pull/13236)
* Describe use of className with declutter (by @mike-000 in https://github.com/openlayers/openlayers/pull/13237)
* added run to npm command (by @lklepner in https://github.com/openlayers/openlayers/pull/13231)
* Document how to link package during development (by @lklepner in https://github.com/openlayers/openlayers/pull/13228)
* Default CORS mode for WebGL rendered sources (by @tschaub in https://github.com/openlayers/openlayers/pull/13227)
* Support the wrapX option for WebGL rendered tile sources (by @tschaub in https://github.com/openlayers/openlayers/pull/13226)
* Update ol-mapbox-style (by @tschaub in https://github.com/openlayers/openlayers/pull/13224)
* Do not fire modifyend event when nothing was modified (by @ahocevar in https://github.com/openlayers/openlayers/pull/13219)
* Draw VectorTiles with interpolate in hybrid mode again (by @M393 in https://github.com/openlayers/openlayers/pull/13221)
* Fix some typos in ModifyInteraction documentation (by @EvertEt in https://github.com/openlayers/openlayers/pull/13216)
* Fix MVT incorrect feature data handling (by @EvertEt in https://github.com/openlayers/openlayers/pull/13217)
* Format the changelog so contributors can be highlighted (by @tschaub in https://github.com/openlayers/openlayers/pull/13205)
<details>
<summary>Dependency Updates</summary>
* Bump karma from 6.3.9 to 6.3.10 (by @openlayers in https://github.com/openlayers/openlayers/pull/13209)
* Bump shx from 0.3.3 to 0.3.4 (by @openlayers in https://github.com/openlayers/openlayers/pull/13211)
* Bump @rollup/plugin-node-resolve from 13.1.2 to 13.1.3 (by @openlayers in https://github.com/openlayers/openlayers/pull/13210)
* Bump rollup from 2.62.0 to 2.63.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13208)
* Bump marked from 4.0.8 to 4.0.9 (by @openlayers in https://github.com/openlayers/openlayers/pull/13207)
</details>

139
changelog/v6.13.0.md Normal file
View File

@@ -0,0 +1,139 @@
# 6.13.0
## Overview
The 6.13 release brings several exciting new features and improvements:
* A new `layer.getData()` method to get pixel data for a single layer (see details below).
* Support for rich text labels in `ol/style/Text`, to use different font styles and fonts in a single label.
* The `useGeograpic()` and `setUserProjection()` functions in the `ol/proj` module are now part of the official API. These functions make it easier to work with geographic coordinates or local projections.
* Improvements for WebGL Tile and Points layers.
* Performance improvements on `ol/Feature`, to avoid event creation when there are no listeners.
* Update of geotiff.js to v2, to fix some build issues that users reported.
* Improvements to the auto-generated TypeScript types.
## Details
### New `layer.getData()` method
Raster layers (static images, image tiles, data tiles) have a new `layer.getData(pixel)` method that returns the pixel data at the provided location. The return value depends on the underlying source data type. For example, a GeoTIFF may return a `Float32Array` with one value per band, while a PNG rendered from a tile layer will return a `Uint8ClampedArray` of RGBA values.
If you were previously using the `map.forEachLayerAtPixel()` method, you should use the new `layer.getData()` method instead. The old method returns composite pixel values from multiple layers and is limited to RGBA values. The new method doesn't suffer from these shortcomings and is more performant.
### Deprecated `map.forEachLayerAtPixel()` method
The `map.forEachLayerAtPixel()` method has been deprecated. It will be removed (or its behavior may change) in the next major release. Please use the `layer.getData()` method instead.
## List of all changes
See below for a complete list of features and fixes.
* Update ol-mapbox-style for rich text labels support (by @ahocevar in https://github.com/openlayers/openlayers/pull/13418)
* Increase GeoTIFF resolutions tolerance (by @ahocevar in https://github.com/openlayers/openlayers/pull/13417)
* Check for graticule resolution change and fix unrotated size (by @mike-000 in https://github.com/openlayers/openlayers/pull/13415)
* Rich text labels (by @ahocevar in https://github.com/openlayers/openlayers/pull/13410)
* Clear image when source's image is not ready (by @yonda-yonda in https://github.com/openlayers/openlayers/pull/13398)
* Fix setting View resolution or center to undefined (by @MoonE in https://github.com/openlayers/openlayers/pull/13393)
* Fix clone of icon loses imgSize when cache is full (by @MoonE in https://github.com/openlayers/openlayers/pull/13390)
* Use same clipping method for vector and image tiles (by @ahocevar in https://github.com/openlayers/openlayers/pull/13392)
* Less clipping of target resolution tiles (by @ahocevar in https://github.com/openlayers/openlayers/pull/13391)
* Change remaining links to point to class page instead of module (by @MoonE in https://github.com/openlayers/openlayers/pull/13385)
* User projection API (by @ahocevar in https://github.com/openlayers/openlayers/pull/13383)
* Fix wrong types when using `"skipLibCheck": false` (by @seravifer in https://github.com/openlayers/openlayers/pull/13382)
* Fix JsDoc references (by @MoonE in https://github.com/openlayers/openlayers/pull/13374)
* Fix VectorSource isEmpty without spatial index (by @MoonE in https://github.com/openlayers/openlayers/pull/13373)
* Document difference between Vector and VectorImage layers (by @ahocevar in https://github.com/openlayers/openlayers/pull/13371)
* Fix `ol/source/Cluster#setSource` type annotation (by @MoonE in https://github.com/openlayers/openlayers/pull/12998)
* Preload tiles for WebGL tile layers (by @tschaub in https://github.com/openlayers/openlayers/pull/13357)
* Avoid event creation when there are no listeners (by @MoonE in https://github.com/openlayers/openlayers/pull/13358)
* Add floor, round and ceil to style expressions (by @mike-000 in https://github.com/openlayers/openlayers/pull/13363)
* Support WebGL layers in ol/source/Raster (by @mike-000 in https://github.com/openlayers/openlayers/pull/13361)
* Improve some null types to prepare for strictNullChecks (by @EvertEt in https://github.com/openlayers/openlayers/pull/13301)
* Reset globalAlpha back to its initial after mutating it for drawing layers (by @Amirh0sseinHZ in https://github.com/openlayers/openlayers/pull/13351)
* Removing an unnecessary word from DEVELOPING.md (by @Amirh0sseinHZ in https://github.com/openlayers/openlayers/pull/13352)
* Get pixel data (by @tschaub in https://github.com/openlayers/openlayers/pull/13338)
* Remove warning for `@type` annotation by jsdoc (by @MoonE in https://github.com/openlayers/openlayers/pull/13350)
* Improve some null types for strictNullChecks (by @EvertEt in https://github.com/openlayers/openlayers/pull/13334)
* Dispose of webgl contexts (by @MoonE in https://github.com/openlayers/openlayers/pull/13336)
* Fix error when accessing ready property of renderer (by @MoonE in https://github.com/openlayers/openlayers/pull/13337)
* Pass tilePixelRatio and gutter to TileTexture (by @mike-000 in https://github.com/openlayers/openlayers/pull/13269)
* Improve some nullable map types (by @EvertEt in https://github.com/openlayers/openlayers/pull/13328)
* Avoid rendering outside WebGL layer and source extent (by @tschaub in https://github.com/openlayers/openlayers/pull/13333)
* Avoid duplicate imports (by @tschaub in https://github.com/openlayers/openlayers/pull/13332)
* Add updateStyleVariables method to WebGLPoints layer (by @ahocevar in https://github.com/openlayers/openlayers/pull/13294)
* Fix rendercomplete for WebGLPoints layer and subclasses (by @ahocevar in https://github.com/openlayers/openlayers/pull/13323)
* fix: fix casing for z-index (by @OSHistory in https://github.com/openlayers/openlayers/pull/13319)
* Fix typo CSS class name for the expanded attributions button (by @fredj in https://github.com/openlayers/openlayers/pull/13315)
* Improve types for tile layers (by @ahocevar in https://github.com/openlayers/openlayers/pull/13299)
* Document geometry type (by @ahocevar in https://github.com/openlayers/openlayers/pull/13298)
* Add function to convert RenderFeature to Feature (by @MoonE in https://github.com/openlayers/openlayers/pull/13297)
* Update to geotiff@2 (by @ahocevar in https://github.com/openlayers/openlayers/pull/13292)
* Re-assign style variables on setStyle() (by @ahocevar in https://github.com/openlayers/openlayers/pull/13293)
* add @api comment on getAllLayers method (by @XiaofengZeng in https://github.com/openlayers/openlayers/pull/13261)
* Allowing to pass additional options to the geotiff.js source (by @constantinius in https://github.com/openlayers/openlayers/pull/13290)
* Defaults for generic types (by @ahocevar in https://github.com/openlayers/openlayers/pull/13291)
* Load api navigation dynamically to reduce needed disk space (by @MoonE in https://github.com/openlayers/openlayers/pull/13229)
* Remove unneeded `src=""` (by @mike-000 in https://github.com/openlayers/openlayers/pull/13271)
* Support multiple sources for WebGL tile layers (by @ahocevar in https://github.com/openlayers/openlayers/pull/13212)
* Add crossOrigin option to LiteralSymbolStyle (by @mike-000 in https://github.com/openlayers/openlayers/pull/13259)
* Avoid the redirect from unpkg.com (by @tschaub in https://github.com/openlayers/openlayers/pull/13242)
* Updates for the 6.12.0 release (by @openlayers in https://github.com/openlayers/openlayers/pull/13241)
<details>
<summary>Dependency Updates</summary>
* Bump express from 4.17.2 to 4.17.3 (by @openlayers in https://github.com/openlayers/openlayers/pull/13402)
* Bump puppeteer from 13.3.1 to 13.3.2 (by @openlayers in https://github.com/openlayers/openlayers/pull/13401)
* Bump mocha from 9.2.0 to 9.2.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/13403)
* Bump webpack from 5.68.0 to 5.69.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/13404)
* Bump ol-mapbox-style from 6.8.3 to 6.9.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13406)
* Bump rollup from 2.67.1 to 2.67.3 (by @openlayers in https://github.com/openlayers/openlayers/pull/13405)
* Bump @babel/core from 7.17.2 to 7.17.5 (by @openlayers in https://github.com/openlayers/openlayers/pull/13407)
* Bump @babel/core from 7.17.0 to 7.17.2 (by @openlayers in https://github.com/openlayers/openlayers/pull/13381)
* Bump karma from 6.3.15 to 6.3.16 (by @openlayers in https://github.com/openlayers/openlayers/pull/13379)
* Bump eslint from 8.8.0 to 8.9.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13377)
* Bump puppeteer from 13.1.3 to 13.3.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/13376)
* Bump follow-redirects from 1.14.7 to 1.14.8 (by @openlayers in https://github.com/openlayers/openlayers/pull/13372)
* Bump geotiff from 2.0.3 to 2.0.4 (by @openlayers in https://github.com/openlayers/openlayers/pull/13339)
* Bump globby from 13.1.0 to 13.1.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/13340)
* Bump rollup from 2.66.1 to 2.67.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/13342)
* Bump @babel/core from 7.16.12 to 7.17.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13343)
* Bump karma from 6.3.12 to 6.3.15 (by @openlayers in https://github.com/openlayers/openlayers/pull/13344)
* Bump webpack from 5.67.0 to 5.68.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13345)
* Bump webpack-dev-server from 4.7.3 to 4.7.4 (by @openlayers in https://github.com/openlayers/openlayers/pull/13346)
* Bump sinon from 13.0.0 to 13.0.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/13348)
* Bump rollup from 2.66.0 to 2.66.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/13318)
* Bump karma from 6.3.11 to 6.3.12 (by @openlayers in https://github.com/openlayers/openlayers/pull/13314)
* Bump geotiff from 2.0.2 to 2.0.3 (by @openlayers in https://github.com/openlayers/openlayers/pull/13313)
* Bump puppeteer from 13.1.1 to 13.1.3 (by @openlayers in https://github.com/openlayers/openlayers/pull/13317)
* Bump sinon from 12.0.1 to 13.0.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13316)
* Bump jsdoc from 3.6.9 to 3.6.10 (by @openlayers in https://github.com/openlayers/openlayers/pull/13312)
* Bump copy-webpack-plugin from 10.2.1 to 10.2.4 (by @openlayers in https://github.com/openlayers/openlayers/pull/13311)
* Bump clean-css-cli from 5.5.0 to 5.5.2 (by @openlayers in https://github.com/openlayers/openlayers/pull/13310)
* Bump eslint from 8.7.0 to 8.8.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13309)
* Bump webpack-cli from 4.9.1 to 4.9.2 (by @openlayers in https://github.com/openlayers/openlayers/pull/13305)
* Bump globby from 13.0.0 to 13.1.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13308)
* Bump marked from 4.0.10 to 4.0.12 (by @openlayers in https://github.com/openlayers/openlayers/pull/13307)
* Use exactly typescript@4.6.0-beta (by @openlayers in https://github.com/openlayers/openlayers/pull/13306)
* Bump globby from 12.2.0 to 13.0.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13281)
* Bump @babel/core from 7.16.7 to 7.16.12 (by @openlayers in https://github.com/openlayers/openlayers/pull/13278)
* Bump webpack from 5.66.0 to 5.67.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13277)
* Bump puppeteer from 13.0.1 to 13.1.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/13280)
* Bump rollup from 2.64.0 to 2.66.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13279)
* Bump @babel/preset-env from 7.16.8 to 7.16.11 (by @openlayers in https://github.com/openlayers/openlayers/pull/13276)
* Bump copy-webpack-plugin from 10.2.0 to 10.2.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/13275)
* Bump jsdoc from 3.6.7 to 3.6.9 (by @openlayers in https://github.com/openlayers/openlayers/pull/13274)
* Bump ol-mapbox-style from 6.8.2 to 6.8.3 (by @openlayers in https://github.com/openlayers/openlayers/pull/13273)
* Bump mocha from 9.1.4 to 9.2.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13272)
* Bump eslint from 8.6.0 to 8.7.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13246)
* Bump mocha from 9.1.3 to 9.1.4 (by @openlayers in https://github.com/openlayers/openlayers/pull/13247)
* Bump webpack-sources from 3.2.2 to 3.2.3 (by @openlayers in https://github.com/openlayers/openlayers/pull/13248)
* Bump webpack from 5.65.0 to 5.66.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13249)
* Bump globby from 12.0.2 to 12.2.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13250)
* Bump @babel/preset-env from 7.16.7 to 7.16.8 (by @openlayers in https://github.com/openlayers/openlayers/pull/13251)
* Bump rollup from 2.63.0 to 2.64.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/13252)
* Bump karma from 6.3.10 to 6.3.11 (by @openlayers in https://github.com/openlayers/openlayers/pull/13253)
* Bump marked from 4.0.9 to 4.0.10 (by @openlayers in https://github.com/openlayers/openlayers/pull/13243)
</details>

5
changelog/v6.8.1.md Normal file
View File

@@ -0,0 +1,5 @@
# 6.8.1
This is a patch release which updates `ol.css` to restore a legible control button size in applications that do not have a css `font-size` set for `button` elements.
* [#12811](https://github.com/openlayers/openlayers/pull/12811) - Controls inherit font size from parent ([@tschaub](https://github.com/tschaub))

51
changelog/v6.9.0.md Normal file
View File

@@ -0,0 +1,51 @@
# 6.9.0
The 6.9 release brings a few new features and a number of fixes. GeoTIFF sources now have a `normalize` option. Set `normalize: false` if you want your style expressions to work with raw floating point values instead of normalized values from 0 to 1. The GeoTIFF source also now uses nodata values from the source imagery  so in most cases you don't need to specify this yourself. For people configuring vector layers with styles that use custom rendering, you can now get hit detection on the rendered result. See details on these features and other included fixes below.
* [#12813](https://github.com/openlayers/openlayers/pull/12813) - Do not replace icon color if image not loaded ([@mike-000](https://github.com/mike-000))
* [#12870](https://github.com/openlayers/openlayers/pull/12870) - Fix publicPath problem in legacy build ([@ahocevar](https://github.com/ahocevar))
* [#12889](https://github.com/openlayers/openlayers/pull/12889) - Simplified ESLint config ([@tschaub](https://github.com/tschaub))
* [#12875](https://github.com/openlayers/openlayers/pull/12875) - Only trigger change event if animating a tile transition ([@tschaub](https://github.com/tschaub))
* [#12885](https://github.com/openlayers/openlayers/pull/12885) - Fix typeDefs for several Control modules ([@MatthijsBon](https://github.com/MatthijsBon))
* [#12861](https://github.com/openlayers/openlayers/pull/12861) - Update geotiff to 1.0.8; allow version range ([@ahocevar](https://github.com/ahocevar))
* [#12865](https://github.com/openlayers/openlayers/pull/12865) - Add a note about installing git before using create-ol-app ([@tschaub](https://github.com/tschaub))
* [#12847](https://github.com/openlayers/openlayers/pull/12847) - Add more definitions for GeoTIFF types ([@tschaub](https://github.com/tschaub))
* [#12850](https://github.com/openlayers/openlayers/pull/12850) - Fix issues with animate on View without center or resolution ([@MoonE](https://github.com/MoonE))
* [#12846](https://github.com/openlayers/openlayers/pull/12846) - Use nodata values in the GeoTIFF headers for fill value ([@tschaub](https://github.com/tschaub))
* [#12837](https://github.com/openlayers/openlayers/pull/12837) - forEachLayerAtPixel return null for unsupported layer types ([@mike-000](https://github.com/mike-000))
* [#12836](https://github.com/openlayers/openlayers/pull/12836) - Support a normalize option on the GeoTIFF source ([@tschaub](https://github.com/tschaub))
* [#12646](https://github.com/openlayers/openlayers/pull/12646) - Support for hit detection in styles with custom rendering ([@ashchurova](https://github.com/ashchurova))
* [#12831](https://github.com/openlayers/openlayers/pull/12831) - Fix rendering VectorImage with no features in view extent ([@MoonE](https://github.com/MoonE))
* [#12830](https://github.com/openlayers/openlayers/pull/12830) - bugfix: Fix type of `layers` option in `OverviewMap` ([@ejn](https://github.com/ejn))
* [#12815](https://github.com/openlayers/openlayers/pull/12815) - Spelling correction ([@tschaub](https://github.com/tschaub))
* [#12812](https://github.com/openlayers/openlayers/pull/12812) - Release v6.8.1 ([@openlayers](https://github.com/openlayers))
<details>
<summary>Dependency Updates</summary>
* [#12881](https://github.com/openlayers/openlayers/pull/12881) - Bump webpack from 5.56.1 to 5.58.1 ([@openlayers](https://github.com/openlayers))
* [#12882](https://github.com/openlayers/openlayers/pull/12882) - Bump marked from 3.0.4 to 3.0.7 ([@openlayers](https://github.com/openlayers))
* [#12878](https://github.com/openlayers/openlayers/pull/12878) - Bump webpack-dev-server from 4.3.0 to 4.3.1 ([@openlayers](https://github.com/openlayers))
* [#12879](https://github.com/openlayers/openlayers/pull/12879) - Bump @babel/preset-env from 7.15.6 to 7.15.8 ([@openlayers](https://github.com/openlayers))
* [#12880](https://github.com/openlayers/openlayers/pull/12880) - Bump @babel/eslint-parser from 7.15.7 to 7.15.8 ([@openlayers](https://github.com/openlayers))
* [#12884](https://github.com/openlayers/openlayers/pull/12884) - Bump @babel/core from 7.15.5 to 7.15.8 ([@openlayers](https://github.com/openlayers))
* [#12877](https://github.com/openlayers/openlayers/pull/12877) - Bump webpack-cli from 4.8.0 to 4.9.0 ([@openlayers](https://github.com/openlayers))
* [#12854](https://github.com/openlayers/openlayers/pull/12854) - Bump webpack from 5.54.0 to 5.56.1 ([@openlayers](https://github.com/openlayers))
* [#12857](https://github.com/openlayers/openlayers/pull/12857) - Bump webpack-dev-server from 4.2.1 to 4.3.0 ([@openlayers](https://github.com/openlayers))
* [#12856](https://github.com/openlayers/openlayers/pull/12856) - Bump @rollup/plugin-commonjs from 20.0.0 to 21.0.0 ([@openlayers](https://github.com/openlayers))
* [#12855](https://github.com/openlayers/openlayers/pull/12855) - Bump rollup from 2.57.0 to 2.58.0 ([@openlayers](https://github.com/openlayers))
* [#12853](https://github.com/openlayers/openlayers/pull/12853) - Bump clean-css-cli from 5.3.3 to 5.4.1 ([@openlayers](https://github.com/openlayers))
* [#12822](https://github.com/openlayers/openlayers/pull/12822) - Bump glob from 7.1.7 to 7.2.0 ([@openlayers](https://github.com/openlayers))
* [#12824](https://github.com/openlayers/openlayers/pull/12824) - Bump rollup from 2.56.3 to 2.57.0 ([@openlayers](https://github.com/openlayers))
* [#12818](https://github.com/openlayers/openlayers/pull/12818) - Bump threads from 1.6.5 to 1.7.0 ([@openlayers](https://github.com/openlayers))
* [#12821](https://github.com/openlayers/openlayers/pull/12821) - Bump @rollup/plugin-node-resolve from 13.0.4 to 13.0.5 ([@openlayers](https://github.com/openlayers))
* [#12823](https://github.com/openlayers/openlayers/pull/12823) - Bump walk from 2.3.14 to 2.3.15 ([@openlayers](https://github.com/openlayers))
* [#12819](https://github.com/openlayers/openlayers/pull/12819) - Bump webpack-dev-middleware from 5.1.0 to 5.2.1 ([@openlayers](https://github.com/openlayers))
* [#12820](https://github.com/openlayers/openlayers/pull/12820) - Bump mocha from 9.1.1 to 9.1.2 ([@openlayers](https://github.com/openlayers))
* [#12817](https://github.com/openlayers/openlayers/pull/12817) - Bump yargs from 17.1.1 to 17.2.1 ([@openlayers](https://github.com/openlayers))
* [#12825](https://github.com/openlayers/openlayers/pull/12825) - Bump webpack from 5.53.0 to 5.54.0 ([@openlayers](https://github.com/openlayers))
* [#12826](https://github.com/openlayers/openlayers/pull/12826) - Bump puppeteer from 10.2.0 to 10.4.0 ([@openlayers](https://github.com/openlayers))
</details>

View File

@@ -27,6 +27,7 @@
<a href="module-ol_layer_Tile-TileLayer.html">ol/layer/Tile</a><br>
<a href="module-ol_layer_Image-ImageLayer.html">ol/layer/Image</a><br>
<a href="module-ol_layer_Vector-VectorLayer.html">ol/layer/Vector</a><br>
<a href="module-ol_layer_VectorImage-VectorImageLayer.html">ol/layer/VectorImage</a><br>
<a href="module-ol_layer_VectorTile-VectorTileLayer.html">ol/layer/VectorTile</a><br>
<a href="module-ol_layer_WebGLTile-WebGLTileLayer.html">ol/layer/WebGLTile</a>
</div>

View File

@@ -500,6 +500,7 @@ exports.publish = function (taffyData, opts, tutorials) {
// once for all
view.nav = buildNav(members);
attachModuleSymbols(
find({kind: ['class', 'function'], longname: {left: 'module:'}}),
members.modules
@@ -518,7 +519,16 @@ exports.publish = function (taffyData, opts, tutorials) {
// index page displays information from package.json and lists files
const files = find({kind: 'file'});
view.navigationHtml = helper.resolveLinks(view.partial('navigation.tmpl'));
view.navigationItems = view.nav.reduce(function (dict, item) {
dict[item.longname] = item;
return dict;
}, {});
const navigationHtml = helper.resolveLinks(
view.nav.map((item) => view.partial('navigation.tmpl', {item})).join('')
);
const navHtmlPath = path.join(outdir, 'navigation.tmpl.html');
fs.writeFileSync(navHtmlPath, navigationHtml, 'utf8');
generate(
'Index',
[

View File

@@ -62,21 +62,47 @@ $(function () {
$navList.addClass('search-empty');
return 'search-empty';
})();
let initialCurrent = navListNode.querySelector('li.item');
const longname = initialCurrent && initialCurrent.dataset.longname;
let manualToggles = {};
// Show an item related a current documentation automatically
const longname = $('.page-title').data('filename')
.replace(/\.[a-z]+$/, '')
.replace('module-', 'module:')
.replace(/_/g, '/')
.replace(/-/g, '~');
const currentItem = navListNode.querySelector('.item[data-longname="' + longname + '"]');
if (currentItem) {
$navList.prepend(currentItem);
if (initialCurrent) {
manualToggles[longname] = $(initialCurrent);
}
fetch('./navigation.tmpl.html').then(function (response) {
return response.text();
}).then(function (text) {
navListNode.innerHTML = text;
// Show an item related a current documentation automatically
const currentItem = navListNode.querySelector('.item[data-longname="' + longname + '"]');
if (currentItem) {
$navList.prepend(currentItem);
search.$currentItem = $(currentItem);
}
$classItems = undefined;
$members = undefined;
// Search again with full navigation, if user already searched
manualToggles = {};
const lastTerm = search.lastSearchTerm;
search.lastSearchTerm = undefined;
const fa = currentItem.querySelector('.title > .fa');
fa.classList.add('no-transition');
doSearch(lastTerm || '');
// Transfer manual toggle state to newly loaded current node
if (initialCurrent && initialCurrent.classList.contains('toggle-manual')) {
search.manualToggle(search.$currentItem, initialCurrent.classList.contains('toggle-manual-show'));
}
setTimeout(function () {
fa.classList.remove('no-transition');
}, 0);
});
return {
$navList: $navList,
$currentItem: currentItem ? $(currentItem) : undefined,
$currentItem: initialCurrent ? $(initialCurrent) : undefined,
lastSearchTerm: undefined,
lastState: {},
lastClasses: undefined,
@@ -240,7 +266,7 @@ $(function () {
// Toggle when click an item element
search.$navList.on('click', '.toggle', function (e) {
if (event.target.tagName.toLowerCase() === 'a') {
if (e.target.tagName === 'A') {
return;
}
const clsItem = $(this).closest('.item');

View File

@@ -5,6 +5,7 @@
.navbar-brand img {
height: 35px;
width: 35px;
vertical-align: middle;
margin-right: 5px;
display: inline-block;
@@ -71,6 +72,11 @@ li {
.navigation-list {
padding: 0 15px 0 15px;
}
.no-transition,
.no-transition:after,
.no-transition:before {
transition: none!important;
}
@supports (position: sticky) {
.navigation {
position: sticky;
@@ -78,7 +84,7 @@ li {
height: calc(100vh - 54px);
}
.navigation-list {
overflow: auto;
overflow-y: auto;
/* 54px navbar height */
/* 4.25rem + 2px searchbox height */
/* 25px navigation padding */
@@ -94,7 +100,7 @@ li {
position: inherit;
}
.navigation-list {
overflow: auto;
overflow-y: auto;
max-height: 33vh;
height: inherit;
}
@@ -206,6 +212,10 @@ li {
padding-left: 8px;
}
.navigation-list li.loading {
display: block;
height: 101vh;
}
/* search state */
/* show all classes when search is empty */
.navigation-list.search-empty .item {

View File

@@ -29,7 +29,7 @@ var version = obj.packageInfo.version;
gtag('js', new Date());
gtag('config', 'UA-2577926-1', { 'anonymize_ip': true });
</script>
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css" />
<link type="text/css" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function() {
@@ -64,14 +64,14 @@ var version = obj.packageInfo.version;
</script>
<title>OpenLayers v<?js= version ?> API - <?js= title ?></title>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=fetch"></script>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<script src="scripts/jquery.min.js"> </script>
<script src="scripts/bootstrap.bundle.min.js"> </script>
<script src="scripts/prettify/prettify.js"></script>
<script src="scripts/prettify/lang-css.js"></script>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/bootstrap.bundle.min.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css">
<link type="text/css" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="styles/jaguar.css">
@@ -115,15 +115,35 @@ var version = obj.packageInfo.version;
</nav>
</header>
<div id="wrap" class="row">
<?js= this.navigationHtml ?>
<div class="main col-md-8 col-lg-9">
<h1 class="page-title" data-filename="<?js= filename ?>"><?js= title ?></h1>
<div id="latest-check" class="alert alert-warning alert-dismissible" role="alert" style="display:none">
<button id="latest-dismiss" type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
This documentation is for OpenLayers v<span id="package-version"><?js= version ?></span>. The <a id="latest-link" href="#" class="alert-link">latest</a> is v<span id="latest-version"></span>.
</div>
<?js= content ?>
<div class="navigation col-md-4 col-lg-3">
<div class="search-wrapper">
<div class="search">
<input id="search" type="text" autocomplete="off" class="form-control input-sm" placeholder="Search Documentation">
</div>
</div>
<div class="navigation-list-wrapper">
<ul class="navigation-list search-empty"><?js
const item = this.navigationItems[docs[0].longname];
const listItem = item
? this.partial('navigation.tmpl', {
item: item,
classes: ' toggle-manual toggle-manual-show',
})
: '';
?><?js= listItem ?>
<li class="loading">Loading …
</ul>
</div>
</div>
<div class="main col-md-8 col-lg-9">
<h1 class="page-title" data-filename="<?js= filename ?>"><?js= title ?></h1>
<div id="latest-check" class="alert alert-warning alert-dismissible" role="alert" style="display:none">
<button id="latest-dismiss" type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
This documentation is for OpenLayers v<span id="package-version"><?js= version ?></span>. The <a id="latest-link" href="#" class="alert-link">latest</a> is v<span id="latest-version"></span>.
</div>
<?js= content ?>
</div>
</div>
<script>prettyPrint();</script>
<script src="scripts/linenumber.js"></script>

View File

@@ -16,12 +16,12 @@ function getItemCssClass(type) {
const printListItem = (member) => {
const shortName = toShortName(member.name); ?>
<li data-name="<?js= shortName.toLowerCase() ?>"><?js= self.linkto(member.longname, shortName) ?><?js
<li data-name="<?js= shortName.toLowerCase() ?>"><?js= self.linkto(member.longname, shortName) ?><?js
};
const printListItemWithStability = (member) => {
const shortName = toShortName(member.name);
const cls = member.stability && member.stability !== 'stable' ? ' class="unstable"' : ''; ?>
<li data-name="<?js= shortName.toLowerCase() ?>"<?js= cls ?>><?js= self.linkto(member.longname, shortName) ?><?js
<li data-name="<?js= shortName.toLowerCase() ?>"<?js= cls ?>><?js= self.linkto(member.longname, shortName) ?><?js
};
const printFiresListItem = (eventName) => {
const ancestor = self.find({longname: eventName})[0] ||
@@ -32,43 +32,28 @@ const printFiresListItem = (eventName) => {
} else {
const cls = ancestor.stability && ancestor.stability !== 'stable' ? ' class="unstable"' : '';
const shortName = toShortName(ancestor.name); ?>
<li data-name="<?js= shortName.toLowerCase() ?>"<?js= cls ?>><?js= shortName ?><?js
<li data-name="<?js= shortName.toLowerCase() ?>"<?js= cls ?>><?js= shortName ?><?js
}
};
function listContent(item, title, listItemPrinter) {
const type = title.toLowerCase();
if (item[type] && item[type].length) { ?>
<div class="member-list" data-type="<?js= type ?>">
<span class="subtitle"><?js= title ?></span>
<ul><?js
item[type].forEach(function (v) {
listItemPrinter(v);
}); ?>
</ul>
</div><?js
}
}
?>
<div class="navigation col-md-4 col-lg-3">
<div class="search-wrapper">
<div class="search">
<input id="search" type="text" autocomplete="off" class="form-control input-sm" placeholder="Search Documentation">
</div>
</div>
<div class="navigation-list-wrapper">
<ul class="navigation-list search-empty"><?js
this.nav.forEach(function (item) { ?>
<li class="item item-<?js= item.type ?>" data-longname="<?js= item.longname ?>" data-name="<?js= item.prettyname.toLowerCase() ?>">
<span class="title toggle">
<span class="fa <?js= getItemCssClass(item.type) ?> mr-2 mt-1"></span>
<span><?js= self.linkto(item.longname, item.prettyname.replace(/[.~\/]/g, '\u200b$&')) ?></span>
</span><?js
listContent(item, 'Members', printListItem);
listContent(item, 'Typedefs', printListItemWithStability);
listContent(item, 'Methods', printListItemWithStability);
listContent(item, 'Fires', printFiresListItem);
}); ?>
<div class="member-list" data-type="<?js= type ?>">
<span class="subtitle"><?js= title ?></span>
<ul><?js
item[type].forEach((v) => listItemPrinter(v)); ?>
</ul>
</div>
</div>
</div><?js
}
} ?>
<li class="item item-<?js= item.type ?><?js= obj.classes || '' ?>" data-longname="<?js= item.longname ?>" data-name="<?js= item.prettyname.toLowerCase() ?>">
<span class="title toggle">
<span class="fa <?js= getItemCssClass(item.type) ?> mr-2 mt-1"></span>
<span><?js= self.linkto(item.longname, item.prettyname.replace(/[.~\/]/g, '\u200b$&')) ?></span>
</span><?js
listContent(item, 'Members', printListItem);
listContent(item, 'Typedefs', printListItemWithStability);
listContent(item, 'Methods', printListItemWithStability);
listContent(item, 'Fires', printFiresListItem);
?>

View File

@@ -9,7 +9,7 @@
* works around an issue with `~` characters in module paths by escaping them.
*/
const marked = require('marked');
const {marked} = require('marked');
const format = require('util').format;
const tags = [

View File

@@ -51,8 +51,8 @@
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
"inlineSources": false /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
"inlineSources": false, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
"skipLibCheck": true
/* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */

View File

@@ -48,6 +48,7 @@ export default {
},
output: {
path: path.resolve('./build/legacy'),
publicPath: '',
filename: 'ol.js',
library: 'ol',
libraryTarget: 'umd',

View File

@@ -1,5 +1,5 @@
---
title: Basic project setup using NPM and Parcel
title: Basic project setup using NPM and Vite
layout: doc.hbs
---
@@ -7,7 +7,7 @@ layout: doc.hbs
Modern JavaScript works best when using and authoring modules. The recommended way of using OpenLayers is installing the [`ol`](https://npmjs.com/package/ol) package. This tutorial walks you through setting up a simple dev environment, which requires [node](https://nodejs.org) for everything to work.
In this tutorial, we will be using [Parcel](https://parceljs.org) to bundle our application. There are several other options, some of which are linked from the [README](https://npmjs.com/package/ol).
In this tutorial, we will be using [Vite](https://vitejs.dev/) as a development tool and to bundle our application for production. There are several other options, some of which are linked from the [README](https://npmjs.com/package/ol).
## Application setup
@@ -15,13 +15,15 @@ Create a new empty directory for your project and navigate to it by running `mkd
npx create-ol-app
This will install the `ol` package, set up a development environment with additional dependencies, and give you an `index.html` and `main.js` starting point for your application. By default, [Parcel](https://parceljs.org) will be used as a module loader and bundler. See the [`create-ol-app`](https://github.com/openlayers/create-ol-app) documentation for details on using another bundler.
*You will need to have `git` installed for the above command to work. If you receive an error, make sure that [Git is installed](https://github.com/git-guides/install-git) on your system.*
This will install the `ol` package, set up a development environment with additional dependencies, and give you an `index.html` and `main.js` starting point for your application. By default, [Vite](https://vitejs.dev/) will be used as a module loader and bundler. See the [`create-ol-app`](https://github.com/openlayers/create-ol-app) documentation for details on using another bundler.
To start the development server
npm start
You can now visit http://localhost:1234/ to view your application. Begin making changes to the `index.html` and `main.js` files to add additional functionality.
You can now visit http://localhost:3000/ to view your application. Begin making changes to the `index.html` and `main.js` files to add additional functionality.
To create a production bundle of your application, simply type

View File

@@ -3,6 +3,7 @@
"$": false,
"arc": false,
"common": false,
"chroma": false,
"createMapboxStreetsV6Style": false,
"d3": false,
"html2canvas": false,
@@ -13,6 +14,7 @@
"jsts": false,
"JSZip": false,
"mapboxgl": false,
"monotoneChainConvexHull": false,
"NumpyLoader": false,
"saveAs": false,
"toastr": false,

View File

@@ -6,7 +6,7 @@ docs: >
<p>When the Bing Maps tile service doesn't have tiles for a given resolution and region it returns "placeholder" tiles indicating that. Zoom the map beyond level 19 to see the "placeholder" tiles. If you want OpenLayers to display stretched tiles in place of "placeholder" tiles beyond zoom level 19 then set <code>maxZoom</code> to <code>19</code> in the options passed to <code>ol/source/BingMaps</code>.</p>
tags: "bing, bing-maps"
cloak:
- key: ApTJzdkyN1DdFKkRAE6QIDtzihNaf6IWJsT-nQ_2eMoO4PN__0Tzhl2-WgJtXFSp
- key: AlEoTLTlzFB6Uf4Sy-ugXcRO21skQO7K8eObA5_L-8d20rjqZJLs2nkO1RMjGSPN
value: Your Bing Maps Key from https://www.bingmapsportal.com/ here
---
<div id="map" class="map"></div>

View File

@@ -18,7 +18,7 @@ for (i = 0, ii = styles.length; i < ii; ++i) {
visible: false,
preload: Infinity,
source: new BingMaps({
key: 'ApTJzdkyN1DdFKkRAE6QIDtzihNaf6IWJsT-nQ_2eMoO4PN__0Tzhl2-WgJtXFSp',
key: 'AlEoTLTlzFB6Uf4Sy-ugXcRO21skQO7K8eObA5_L-8d20rjqZJLs2nkO1RMjGSPN',
imagerySet: styles[i],
// use maxZoom 19 to see stretched tiles instead of the BingMaps
// "no photos at this zoom level" tiles

View File

@@ -1,4 +0,0 @@
.ol-dragbox {
background-color: rgba(255,255,255,0.4);
border-color: rgba(100,150,0,1);
}

View File

@@ -9,4 +9,4 @@ docs: >
tags: "DragBox, feature, selection, box"
---
<div id="map" class="map"></div>
<div id="info">No countries selected</div>
<div>Selected regions: <span id="info">None</span></div>

View File

@@ -1,23 +1,33 @@
import GeoJSON from '../src/ol/format/GeoJSON.js';
import Map from '../src/ol/Map.js';
import VectorLayer from '../src/ol/layer/Vector.js';
import VectorSource from '../src/ol/source/Vector.js';
import View from '../src/ol/View.js';
import {DragBox, Select} from '../src/ol/interaction.js';
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
import {Fill, Stroke, Style} from '../src/ol/style.js';
import {platformModifierKeyOnly} from '../src/ol/events/condition.js';
const vectorSource = new VectorSource({
url: 'data/geojson/countries.geojson',
url: 'https://openlayers.org/data/vector/ecoregions.json',
format: new GeoJSON(),
});
const style = new Style({
fill: new Fill({
color: '#eeeeee',
}),
});
const map = new Map({
layers: [
new TileLayer({
source: new OSM(),
}),
new VectorLayer({
source: vectorSource,
background: '#1a2b39',
style: function (feature) {
const color = feature.get('COLOR_BIO') || '#eeeeee';
style.getFill().setColor(color);
return style;
},
}),
],
target: 'map',
@@ -28,8 +38,24 @@ const map = new Map({
}),
});
const selectedStyle = new Style({
fill: new Fill({
color: 'rgba(255, 255, 255, 0.6)',
}),
stroke: new Stroke({
color: 'rgba(255, 255, 255, 0.7)',
width: 2,
}),
});
// a normal select interaction to handle click
const select = new Select();
const select = new Select({
style: function (feature) {
const color = feature.get('COLOR_BIO') || '#eeeeee';
selectedStyle.getFill().setColor(color);
return selectedStyle;
},
});
map.addInteraction(select);
const selectedFeatures = select.getFeatures();
@@ -42,6 +68,11 @@ const dragBox = new DragBox({
map.addInteraction(dragBox);
dragBox.on('boxend', function () {
const extent = dragBox.getGeometry().getExtent();
const boxFeatures = vectorSource
.getFeaturesInExtent(extent)
.filter((feature) => feature.getGeometry().intersectsExtent(extent));
// features that intersect the box geometry are added to the
// collection of selected features
@@ -50,11 +81,6 @@ dragBox.on('boxend', function () {
// be added directly to the collection
const rotation = map.getView().getRotation();
const oblique = rotation % (Math.PI / 2) !== 0;
const candidateFeatures = oblique ? [] : selectedFeatures;
const extent = dragBox.getGeometry().getExtent();
vectorSource.forEachFeatureIntersectingExtent(extent, function (feature) {
candidateFeatures.push(feature);
});
// when the view is obliquely rotated the box extent will
// exceed its geometry so both the box and the candidate
@@ -66,13 +92,15 @@ dragBox.on('boxend', function () {
const geometry = dragBox.getGeometry().clone();
geometry.rotate(-rotation, anchor);
const extent = geometry.getExtent();
candidateFeatures.forEach(function (feature) {
boxFeatures.forEach(function (feature) {
const geometry = feature.getGeometry().clone();
geometry.rotate(-rotation, anchor);
if (geometry.intersectsExtent(extent)) {
selectedFeatures.push(feature);
}
});
} else {
selectedFeatures.extend(boxFeatures);
}
});
@@ -85,11 +113,11 @@ const infoBox = document.getElementById('info');
selectedFeatures.on(['add', 'remove'], function () {
const names = selectedFeatures.getArray().map(function (feature) {
return feature.get('name');
return feature.get('ECO_NAME');
});
if (names.length > 0) {
infoBox.innerHTML = names.join(', ');
} else {
infoBox.innerHTML = 'No countries selected';
infoBox.innerHTML = 'None';
}
});

File diff suppressed because one or more lines are too long

View File

@@ -1,13 +1,11 @@
---
layout: example.html
title: Styling feature with CanvasGradient or CanvasPattern
shortdesc: Example showing the countries vector layer styled with patterns and gradients.
shortdesc: Example showing a vector layer styled with a gradient.
docs: >
This example creates a [`CanvasPattern`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern)
and a [`CanvasGradient`](https://developer.mozilla.org/en/docs/Web/API/CanvasGradient). The countries are loaded from
a GeoJSON file. A style function determines for each country whether to use a fill with the
CanvasGradient (rainbow colors) or a CanvasPattern (repeating stacked circles). **Note**: For seamless repeat patterns,
image width and height of the pattern image must be a factor of two (2, 4, 8, ..., 512).
This example creates a [`CanvasGradient`](https://developer.mozilla.org/en/docs/Web/API/CanvasGradient).
The vector data is loaded from a file and features are filled with the gradient.
The same technique can be used with a [`CanvasPattern`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern).
tags: "canvas, gradient, pattern, style"
---
<div id="map" class="map"></div>

View File

@@ -1,4 +1,4 @@
import GeoJSON from '../src/ol/format/GeoJSON.js';
import KML from '../src/ol/format/KML.js';
import Map from '../src/ol/Map.js';
import VectorLayer from '../src/ol/layer/Vector.js';
import VectorSource from '../src/ol/source/Vector.js';
@@ -7,84 +7,42 @@ import {DEVICE_PIXEL_RATIO} from '../src/ol/has.js';
import {Fill, Stroke, Style} from '../src/ol/style.js';
import {fromLonLat} from '../src/ol/proj.js';
const canvas = document.createElement('canvas');
const context = canvas.getContext('2d');
// Gradient and pattern are in canvas pixel space, so we adjust for the
// renderer's pixel ratio
const pixelRatio = DEVICE_PIXEL_RATIO;
// Generate a rainbow gradient
const gradient = (function () {
const grad = context.createLinearGradient(0, 0, 512 * pixelRatio, 0);
grad.addColorStop(0, 'red');
grad.addColorStop(1 / 6, 'orange');
grad.addColorStop(2 / 6, 'yellow');
grad.addColorStop(3 / 6, 'green');
grad.addColorStop(4 / 6, 'aqua');
grad.addColorStop(5 / 6, 'blue');
grad.addColorStop(1, 'purple');
return grad;
})();
const canvas = document.createElement('canvas');
const context = canvas.getContext('2d');
const gradient = context.createLinearGradient(0, 0, 1024 * pixelRatio, 0);
gradient.addColorStop(0, 'red');
gradient.addColorStop(1 / 6, 'orange');
gradient.addColorStop(2 / 6, 'yellow');
gradient.addColorStop(3 / 6, 'green');
gradient.addColorStop(4 / 6, 'aqua');
gradient.addColorStop(5 / 6, 'blue');
gradient.addColorStop(1, 'purple');
// Generate a canvasPattern with two circles on white background
const pattern = (function () {
canvas.width = 8 * pixelRatio;
canvas.height = 8 * pixelRatio;
// white background
context.fillStyle = 'white';
context.fillRect(0, 0, canvas.width, canvas.height);
// outer circle
context.fillStyle = 'rgba(102, 0, 102, 0.5)';
context.beginPath();
context.arc(4 * pixelRatio, 4 * pixelRatio, 3 * pixelRatio, 0, 2 * Math.PI);
context.fill();
// inner circle
context.fillStyle = 'rgb(55, 0, 170)';
context.beginPath();
context.arc(4 * pixelRatio, 4 * pixelRatio, 1.5 * pixelRatio, 0, 2 * Math.PI);
context.fill();
return context.createPattern(canvas, 'repeat');
})();
// Generate style for gradient or pattern fill
const fill = new Fill();
const style = new Style({
fill: fill,
stroke: new Stroke({
color: '#333',
width: 2,
}),
});
/**
* The styling function for the vector layer, will return an array of styles
* which either contains the aboove gradient or pattern.
*
* @param {import("../src/ol/Feature.js").default} feature The feature to style.
* @return {Style} The style to use for the feature.
*/
const getStackedStyle = function (feature) {
const id = feature.getId();
fill.setColor(id > 'J' ? gradient : pattern);
return style;
};
// Create a vector layer that makes use of the style function above…
const vectorLayer = new VectorLayer({
background: 'white',
source: new VectorSource({
url: 'data/geojson/countries.geojson',
format: new GeoJSON(),
url: 'data/kml/states.kml',
format: new KML({extractStyles: false}),
}),
style: new Style({
fill: new Fill({color: gradient}),
stroke: new Stroke({
color: '#333',
width: 1,
}),
}),
style: getStackedStyle,
});
// … finally create a map with that layer.
const map = new Map({
layers: [vectorLayer],
target: 'map',
view: new View({
center: fromLonLat([16, 48]),
zoom: 3,
center: fromLonLat([-100, 38.5]),
zoom: 4,
}),
});

View File

@@ -0,0 +1,16 @@
---
layout: example.html
title: Dynamic clusters
shortdesc: Clusters with zoom-to-cluster, hull view, and uncluttering of overlapping features.
docs: >
<p>This example shows open data of subsidized photovoltaic installations in Vienna. Different style functions
are used for cluster display, single feature display, convex hull of a cluster, and an expanded view of
overlapping features. Hovering over a cluster shows its convex hull. Clicking on a cluster zooms to the
extent of the contained features. Clicking on a cluster consisting of features that are very close to each other reveals an expanded view
of the features, along a circle around the cluster.</p>
<p>Features are styled differently depending on the power of the photovoltaic installation.</p>
tags: "marker, cluster, vector, style, convex hull"
resources:
- https://unpkg.com/monotone-chain-convex-hull@1.0.0/lib/index.js
---
<div id="map" class="map"></div>

View File

@@ -0,0 +1,278 @@
import Feature from '../src/ol/Feature.js';
import GeoJSON from '../src/ol/format/GeoJSON.js';
import Map from '../src/ol/Map.js';
import View from '../src/ol/View.js';
import {
Circle as CircleStyle,
Fill,
Icon,
Stroke,
Style,
Text,
} from '../src/ol/style.js';
import {Cluster, Vector as VectorSource, XYZ} from '../src/ol/source.js';
import {LineString, Point, Polygon} from '../src/ol/geom.js';
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
import {createEmpty, extend, getWidth} from '../src/ol/extent.js';
import {fromLonLat} from '../src/ol/proj.js';
const circleDistanceMultiplier = 1;
const circleFootSeparation = 28;
const circleStartAngle = Math.PI / 2;
const convexHullFill = new Fill({
color: 'rgba(255, 153, 0, 0.4)',
});
const convexHullStroke = new Stroke({
color: 'rgba(204, 85, 0, 1)',
width: 1.5,
});
const outerCircleFill = new Fill({
color: 'rgba(255, 153, 102, 0.3)',
});
const innerCircleFill = new Fill({
color: 'rgba(255, 165, 0, 0.7)',
});
const textFill = new Fill({
color: '#fff',
});
const textStroke = new Stroke({
color: 'rgba(0, 0, 0, 0.6)',
width: 3,
});
const innerCircle = new CircleStyle({
radius: 14,
fill: innerCircleFill,
});
const outerCircle = new CircleStyle({
radius: 20,
fill: outerCircleFill,
});
const darkIcon = new Icon({
src: 'data/icons/emoticon-cool.svg',
});
const lightIcon = new Icon({
src: 'data/icons/emoticon-cool-outline.svg',
});
/**
* Single feature style, users for clusters with 1 feature and cluster circles.
* @param {Feature} clusterMember A feature from a cluster.
* @return {Style} An icon style for the cluster member's location.
*/
function clusterMemberStyle(clusterMember) {
return new Style({
geometry: clusterMember.getGeometry(),
image: clusterMember.get('LEISTUNG') > 5 ? darkIcon : lightIcon,
});
}
let clickFeature, clickResolution;
/**
* Style for clusters with features that are too close to each other, activated on click.
* @param {Feature} cluster A cluster with overlapping members.
* @param {number} resolution The current view resolution.
* @return {Style} A style to render an expanded view of the cluster members.
*/
function clusterCircleStyle(cluster, resolution) {
if (cluster !== clickFeature || resolution !== clickResolution) {
return;
}
const clusterMembers = cluster.get('features');
const centerCoordinates = cluster.getGeometry().getCoordinates();
return generatePointsCircle(
clusterMembers.length,
cluster.getGeometry().getCoordinates(),
resolution
).reduce((styles, coordinates, i) => {
const point = new Point(coordinates);
const line = new LineString([centerCoordinates, coordinates]);
styles.unshift(
new Style({
geometry: line,
stroke: convexHullStroke,
})
);
styles.push(
clusterMemberStyle(
new Feature({
...clusterMembers[i].getProperties(),
geometry: point,
})
)
);
return styles;
}, []);
}
/**
* From
* https://github.com/Leaflet/Leaflet.markercluster/blob/31360f2/src/MarkerCluster.Spiderfier.js#L55-L72
* Arranges points in a circle around the cluster center, with a line pointing from the center to
* each point.
* @param {number} count Number of cluster members.
* @param {Array<number>} clusterCenter Center coordinate of the cluster.
* @param {number} resolution Current view resolution.
* @return {Array<Array<number>>} An array of coordinates representing the cluster members.
*/
function generatePointsCircle(count, clusterCenter, resolution) {
const circumference =
circleDistanceMultiplier * circleFootSeparation * (2 + count);
let legLength = circumference / (Math.PI * 2); //radius from circumference
const angleStep = (Math.PI * 2) / count;
const res = [];
let angle;
legLength = Math.max(legLength, 35) * resolution; // Minimum distance to get outside the cluster icon.
for (let i = 0; i < count; ++i) {
// Clockwise, like spiral.
angle = circleStartAngle + i * angleStep;
res.push([
clusterCenter[0] + legLength * Math.cos(angle),
clusterCenter[1] + legLength * Math.sin(angle),
]);
}
return res;
}
let hoverFeature;
/**
* Style for convex hulls of clusters, activated on hover.
* @param {Feature} cluster The cluster feature.
* @return {Style} Polygon style for the convex hull of the cluster.
*/
function clusterHullStyle(cluster) {
if (cluster !== hoverFeature) {
return;
}
const originalFeatures = cluster.get('features');
const points = originalFeatures.map((feature) =>
feature.getGeometry().getCoordinates()
);
return new Style({
geometry: new Polygon([monotoneChainConvexHull(points)]),
fill: convexHullFill,
stroke: convexHullStroke,
});
}
function clusterStyle(feature) {
const size = feature.get('features').length;
if (size > 1) {
return [
new Style({
image: outerCircle,
}),
new Style({
image: innerCircle,
text: new Text({
text: size.toString(),
fill: textFill,
stroke: textStroke,
}),
}),
];
} else {
const originalFeature = feature.get('features')[0];
return clusterMemberStyle(originalFeature);
}
}
const vectorSource = new VectorSource({
format: new GeoJSON(),
url: 'data/geojson/photovoltaic.json',
});
const clusterSource = new Cluster({
attributions:
'Data: <a href="https://www.data.gv.at/auftritte/?organisation=stadt-wien">Stadt Wien</a>',
distance: 35,
source: vectorSource,
});
// Layer displaying the convex hull of the hovered cluster.
const clusterHulls = new VectorLayer({
source: clusterSource,
style: clusterHullStyle,
});
// Layer displaying the clusters and individual features.
const clusters = new VectorLayer({
source: clusterSource,
style: clusterStyle,
});
// Layer displaying the expanded view of overlapping cluster members.
const clusterCircles = new VectorLayer({
source: clusterSource,
style: clusterCircleStyle,
});
const raster = new TileLayer({
source: new XYZ({
attributions:
'Base map: <a target="_blank" href="https://basemap.at/">basemap.at</a>',
url: 'https://maps{1-4}.wien.gv.at/basemap/bmapgrau/normal/google3857/{z}/{y}/{x}.png',
}),
});
const map = new Map({
layers: [raster, clusterHulls, clusters, clusterCircles],
target: 'map',
view: new View({
center: [0, 0],
zoom: 2,
maxZoom: 19,
extent: [
...fromLonLat([16.1793, 48.1124]),
...fromLonLat([16.5559, 48.313]),
],
showFullExtent: true,
}),
});
map.on('pointermove', (event) => {
clusters.getFeatures(event.pixel).then((features) => {
if (features[0] !== hoverFeature) {
// Display the convex hull on hover.
hoverFeature = features[0];
clusterHulls.setStyle(clusterHullStyle);
// Change the cursor style to indicate that the cluster is clickable.
map.getTargetElement().style.cursor =
hoverFeature && hoverFeature.get('features').length > 1
? 'pointer'
: '';
}
});
});
map.on('click', (event) => {
clusters.getFeatures(event.pixel).then((features) => {
if (features.length > 0) {
const clusterMembers = features[0].get('features');
if (clusterMembers.length > 1) {
// Calculate the extent of the cluster members.
const extent = createEmpty();
clusterMembers.forEach((feature) =>
extend(extent, feature.getGeometry().getExtent())
);
const view = map.getView();
const resolution = map.getView().getResolution();
if (
view.getZoom() === view.getMaxZoom() ||
(getWidth(extent) < resolution && getWidth(extent) < resolution)
) {
// Show an expanded view of the cluster members.
clickFeature = features[0];
clickResolution = resolution;
clusterCircles.setStyle(clusterCircleStyle);
} else {
// Zoom to the extent of the cluster members.
view.fit(extent, {duration: 500, padding: [50, 50, 50, 50]});
}
}
}
});
});

10
examples/cog-colors.css Normal file
View File

@@ -0,0 +1,10 @@
.data {
text-align: right;
font-family: monospace;
}
td {
padding-right: 10px;
}
input[type="range"] {
vertical-align: text-bottom;
}

32
examples/cog-colors.html Normal file
View File

@@ -0,0 +1,32 @@
---
layout: example.html
title: NDVI with a Dynamic Color Ramp
shortdesc: NDVI from a COG with a dynamic color ramp
docs: >
The GeoTIFF layer in this example draws from two Sentinel 2 sources: a red band and a near infrared band.
The layer style includes a `color` expression that calculates the Normalized Difference Vegetation Index (NDVI)
from values in the two bands. The `interpolate` expression is used to map NDVI values to colors. The "stop" values
for the color ramp are derived from application provided style variables. Using the inputs above, the min and max
colors and values can be adjusted. The `layer.updateStyleVariables()` method is called to update the
variables used in the interpolated color expression.
tags: "cog, ndvi"
resources:
- https://cdnjs.cloudflare.com/ajax/libs/chroma-js/2.1.2/chroma.min.js
---
<div id="map" class="map"></div>
<table>
<tbody>
<tr>
<td>Min NDVI</td>
<td><input type="range" id="min-value-input" min="-1.0" max="-0.1" step="0.01"></td>
<td class="data" id="min-value-output"></td>
<td><input type="color" id="min-color"></td>
</tr>
<tr>
<td>Max NDVI</td>
<td><input type="range" id="max-value-input" min="0.1" max="1.0" step="0.01"></td>
<td class="data" id="max-value-output"></td>
<td><input type="color" id="max-color"></td>
</tr>
</tbody>
</table>

106
examples/cog-colors.js Normal file
View File

@@ -0,0 +1,106 @@
import GeoTIFF from '../src/ol/source/GeoTIFF.js';
import Map from '../src/ol/Map.js';
import TileLayer from '../src/ol/layer/WebGLTile.js';
const segments = 10;
const defaultMinColor = '#0300AD';
const defaultMaxColor = '#00ff00';
const defaultMinValue = -0.5;
const defaultMaxValue = 0.7;
const minColorInput = document.getElementById('min-color');
minColorInput.value = defaultMinColor;
const maxColorInput = document.getElementById('max-color');
maxColorInput.value = defaultMaxColor;
const minValueOutput = document.getElementById('min-value-output');
const minValueInput = document.getElementById('min-value-input');
minValueInput.value = defaultMinValue.toString();
const maxValueOutput = document.getElementById('max-value-output');
const maxValueInput = document.getElementById('max-value-input');
maxValueInput.value = defaultMaxValue.toString();
function getVariables() {
const variables = {};
const minColor = minColorInput.value;
const maxColor = maxColorInput.value;
const scale = chroma.scale([minColor, maxColor]).mode('lab');
const minValue = parseFloat(minValueInput.value);
const maxValue = parseFloat(maxValueInput.value);
const delta = (maxValue - minValue) / segments;
for (let i = 0; i <= segments; ++i) {
const color = scale(i / segments).rgb();
const value = minValue + i * delta;
variables[`value${i}`] = value;
variables[`red${i}`] = color[0];
variables[`green${i}`] = color[1];
variables[`blue${i}`] = color[2];
}
return variables;
}
function colors() {
const stops = [];
for (let i = 0; i <= segments; ++i) {
stops[i * 2] = ['var', `value${i}`];
const red = ['var', `red${i}`];
const green = ['var', `green${i}`];
const blue = ['var', `blue${i}`];
stops[i * 2 + 1] = ['color', red, green, blue];
}
return stops;
}
const ndvi = [
'/',
['-', ['band', 2], ['band', 1]],
['+', ['band', 2], ['band', 1]],
];
const source = new GeoTIFF({
sources: [
{
// visible red, band 1 in the style expression above
url: 'https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/2020/S2A_36QWD_20200701_0_L2A/B04.tif',
max: 10000,
},
{
// near infrared, band 2 in the style expression above
url: 'https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/2020/S2A_36QWD_20200701_0_L2A/B08.tif',
max: 10000,
},
],
});
const layer = new TileLayer({
style: {
variables: getVariables(),
color: ['interpolate', ['linear'], ndvi, ...colors()],
},
source: source,
});
function update() {
layer.updateStyleVariables(getVariables());
minValueOutput.innerText = parseFloat(minValueInput.value).toFixed(1);
maxValueOutput.innerText = parseFloat(maxValueInput.value).toFixed(1);
}
minColorInput.addEventListener('input', update);
maxColorInput.addEventListener('input', update);
minValueInput.addEventListener('input', update);
maxValueInput.addEventListener('input', update);
update();
const map = new Map({
target: 'map',
layers: [layer],
view: source.getView(),
});

View File

@@ -3,9 +3,12 @@ layout: example.html
title: NDVI from a Sentinel 2 COG
shortdesc: Calculating NDVI and applying a custom color map.
docs: >
The GeoTIFF layer in this example draws from two Sentinel 2 sources: a red band and a near infrared band.
The GeoTIFF layer in this example draws from two Sentinel 2 sources: a red band and a near-infrared band.
The layer style includes a `color` expression that calculates the Normalized Difference Vegetation Index (NDVI)
from values in the two bands. The `interpolate` expression is used to map NDVI values to colors.
The `layer.getData()` method can be used to retrieve pixel values from the GeoTIFF. Move your mouse
or tap on the map to see calculated NDVI values based on the red and near-infrared pixel values.
tags: "cog, ndvi"
---
<div id="map" class="map"></div>
<div>NDVI: <span id="output"></span></div>

View File

@@ -17,65 +17,74 @@ const source = new GeoTIFF({
],
});
const layer = new TileLayer({
style: {
color: [
'interpolate',
['linear'],
// calculate NDVI, bands come from the sources below
['/', ['-', ['band', 2], ['band', 1]], ['+', ['band', 2], ['band', 1]]],
// color ramp for NDVI values, ranging from -1 to 1
-0.2,
[191, 191, 191],
-0.1,
[219, 219, 219],
0,
[255, 255, 224],
0.025,
[255, 250, 204],
0.05,
[237, 232, 181],
0.075,
[222, 217, 156],
0.1,
[204, 199, 130],
0.125,
[189, 184, 107],
0.15,
[176, 194, 97],
0.175,
[163, 204, 89],
0.2,
[145, 191, 82],
0.25,
[128, 179, 71],
0.3,
[112, 163, 64],
0.35,
[97, 150, 54],
0.4,
[79, 138, 46],
0.45,
[64, 125, 36],
0.5,
[48, 110, 28],
0.55,
[33, 97, 18],
0.6,
[15, 84, 10],
0.65,
[0, 69, 0],
],
},
source: source,
});
const map = new Map({
target: 'map',
layers: [
new TileLayer({
style: {
color: [
'interpolate',
['linear'],
// calculate NDVI, bands come from the sources below
[
'/',
['-', ['band', 2], ['band', 1]],
['+', ['band', 2], ['band', 1]],
],
// color ramp for NDVI values, ranging from -1 to 1
-0.2,
[191, 191, 191],
-0.1,
[219, 219, 219],
0,
[255, 255, 224],
0.025,
[255, 250, 204],
0.05,
[237, 232, 181],
0.075,
[222, 217, 156],
0.1,
[204, 199, 130],
0.125,
[189, 184, 107],
0.15,
[176, 194, 97],
0.175,
[163, 204, 89],
0.2,
[145, 191, 82],
0.25,
[128, 179, 71],
0.3,
[112, 163, 64],
0.35,
[97, 150, 54],
0.4,
[79, 138, 46],
0.45,
[64, 125, 36],
0.5,
[48, 110, 28],
0.55,
[33, 97, 18],
0.6,
[15, 84, 10],
0.65,
[0, 69, 0],
],
},
source: source,
}),
],
layers: [layer],
view: source.getView(),
});
const output = document.getElementById('output');
function displayPixelValue(event) {
const data = layer.getData(event.pixel);
if (!data) {
return;
}
const red = data[0];
const nir = data[1];
const ndvi = (nir - red) / (nir + red);
output.textContent = ndvi.toFixed(2);
}
map.on(['pointermove', 'click'], displayPixelValue);

View File

@@ -4,9 +4,9 @@ title: GeoTIFF tile pyramid
shortdesc: Rendering a COG tile pyramid as layer group.
docs: >
Data from a Cloud Optimized GeoTIFF (COG) tile pyramid can be rendered as a set of layers. In this
example, a pyramid of 3-band GeoTIFFs is used to render RGB data. For each tile of the pyramid, a
separate layer is created on demand. The lowest resolution layer serves as preview while higher resolutions are
loading.
example, a pyramid of 3-band GeoTIFFs is used to render RGB data. The `ol/source.sourcesFromTileGrid`
helper function creates sources from this pyramid on demand. The GeoTIFFs used by those sources have
a resolution range that matches the range of a single z of the pyramid tile grid.
tags: "cog, tilepyramid, stac"
---
<div id="map" class="map"></div>

View File

@@ -1,16 +1,15 @@
import GeoTIFF from '../src/ol/source/GeoTIFF.js';
import LayerGroup from '../src/ol/layer/Group.js';
import Map from '../src/ol/Map.js';
import TileGrid from '../src/ol/tilegrid/TileGrid.js';
import View from '../src/ol/View.js';
import WebGLTileLayer from '../src/ol/layer/WebGLTile.js';
import {getIntersection} from '../src/ol/extent.js';
import {sourcesFromTileGrid} from '../src/ol/source.js';
// Metadata from https://s2downloads.eox.at/demo/EOxCloudless/2019/rgb/2019_EOxCloudless_rgb.json
// Tile grid of the GeoTIFF pyramid layout
const tileGrid = new TileGrid({
origin: [-180, 90],
extent: [-180, -90, 180, 90],
resolutions: [0.703125, 0.3515625, 0.17578125, 8.7890625e-2, 4.39453125e-2],
tileSizes: [
[512, 256],
@@ -21,30 +20,19 @@ const tileGrid = new TileGrid({
],
});
const pyramid = new LayerGroup();
const layerForUrl = {};
const zs = tileGrid.getResolutions().length;
function useLayer(z, x, y) {
const url = `https://s2downloads.eox.at/demo/EOxCloudless/2019/rgb/${z}/${y}/${x}.tif`;
if (!(url in layerForUrl)) {
pyramid.getLayers().push(
new WebGLTileLayer({
minZoom: z,
maxZoom: z === 0 || z === zs - 1 ? undefined : z + 1,
extent: tileGrid.getTileCoordExtent([z, x, y]),
source: new GeoTIFF({
sources: [
{
url: url,
},
],
}),
const pyramid = new WebGLTileLayer({
sources: sourcesFromTileGrid(
tileGrid,
([z, x, y]) =>
new GeoTIFF({
sources: [
{
url: `https://s2downloads.eox.at/demo/EOxCloudless/2019/rgb/${z}/${y}/${x}.tif`,
},
],
})
);
layerForUrl[url] = true;
}
}
),
});
const map = new Map({
target: 'map',
@@ -56,16 +44,3 @@ const map = new Map({
showFullExtent: true,
}),
});
// Add overview layer
useLayer(0, 0, 0);
// Add layer for specific extent on demand
map.on('moveend', () => {
const view = map.getView();
tileGrid.forEachTileCoord(
getIntersection([-180, -90, 180, 90], view.calculateExtent()),
tileGrid.getZForResolution(view.getResolution()),
([z, x, y]) => useLayer(z, x, y)
);
});

6
examples/cog-stretch.css Normal file
View File

@@ -0,0 +1,6 @@
.controls {
display: grid;
grid-template-columns: auto auto 1fr;
align-items: baseline;
gap: 0 1em;
}

44
examples/cog-stretch.html Normal file
View File

@@ -0,0 +1,44 @@
---
layout: example.html
title: Band Contrast Stretch
shortdesc: Choosing bands and applying contrast stretch
docs: >
This example uses the `layer.updateStyleVariables()` method to update the rendering
of a GeoTIFF based on user selected bands and contrast stretch parameters.
tags: "cog, webgl, style"
---
<div id="map" class="map"></div>
<div class="controls">
<label for="red">Red channel</label>
<select id="red">
<option value="1" selected>visible red</option>
<option value="2">visible green</option>
<option value="3">visible blue</option>
<option value="4">near infrared</option>
</select>
<label>max
<input type="range" id="redMax" value="3000" min="2000" max="5000">
</label>
<label for="green">Green channel</label>
<select id="green">
<option value="1">visible red</option>
<option value="2" selected>visible green</option>
<option value="3">visible blue</option>
<option value="4">near infrared</option>
</select>
<label>max
<input type="range" id="greenMax" value="3000" min="2000" max="5000">
</label>
<label for="blue">Blue channel</label>
<select id="blue">
<option value="1">visible red</option>
<option value="2">visible green</option>
<option value="3" selected>visible blue</option>
<option value="4">near infrared</option>
</select>
<label>max
<input type="range" id="blueMax" value="3000" min="2000" max="5000">
</label>
</div>

62
examples/cog-stretch.js Normal file
View File

@@ -0,0 +1,62 @@
import GeoTIFF from '../src/ol/source/GeoTIFF.js';
import Map from '../src/ol/Map.js';
import TileLayer from '../src/ol/layer/WebGLTile.js';
import View from '../src/ol/View.js';
const channels = ['red', 'green', 'blue'];
for (const channel of channels) {
const selector = document.getElementById(channel);
selector.addEventListener('change', update);
const input = document.getElementById(`${channel}Max`);
input.addEventListener('input', update);
}
function getVariables() {
const variables = {};
for (const channel of channels) {
const selector = document.getElementById(channel);
variables[channel] = parseInt(selector.value, 10);
const inputId = `${channel}Max`;
const input = document.getElementById(inputId);
variables[inputId] = parseInt(input.value, 10);
}
return variables;
}
const layer = new TileLayer({
style: {
variables: getVariables(),
color: [
'array',
['/', ['band', ['var', 'red']], ['var', 'redMax']],
['/', ['band', ['var', 'green']], ['var', 'greenMax']],
['/', ['band', ['var', 'blue']], ['var', 'blueMax']],
1,
],
},
source: new GeoTIFF({
normalize: false,
sources: [
{
url: 'https://s2downloads.eox.at/demo/EOxCloudless/2020/rgbnir/s2cloudless2020-16bits_sinlge-file_z0-4.tif',
},
],
}),
});
function update() {
layer.updateStyleVariables(getVariables());
}
const map = new Map({
target: 'map',
layers: [layer],
view: new View({
projection: 'EPSG:4326',
center: [0, 0],
zoom: 2,
maxZoom: 6,
}),
});

20
examples/cog-style.html Normal file
View File

@@ -0,0 +1,20 @@
---
layout: example.html
title: Change Tile Layer Style
shortdesc: Updating the style of a WebGL tile layer
docs: >
When you want to change the style of a WebGL tile layer based on some change in your
application state, you should use the `layer.updateStyleVariables()` method. A layer can
be efficiently rendered even if style variables are changed on every render frame.
In cases where you need to completely replace the style of a layer, you can call the
`layer.setStyle()` method. This method should not be called in response to frequent
user events (e.g. mouse movement, dragging a slider, etc.).
tags: "cog, webgl, style"
---
<div id="map" class="map"></div>
Set the layer style
<select id="style">
<option value="trueColor">True Color</option>
<option value="falseColor">False Color</option>
<option value="ndvi">NDVI</option>
</select>

105
examples/cog-style.js Normal file
View File

@@ -0,0 +1,105 @@
import GeoTIFF from '../src/ol/source/GeoTIFF.js';
import Map from '../src/ol/Map.js';
import TileLayer from '../src/ol/layer/WebGLTile.js';
import View from '../src/ol/View.js';
const max = 3000;
function normalize(value) {
return ['/', value, max];
}
const red = normalize(['band', 1]);
const green = normalize(['band', 2]);
const blue = normalize(['band', 3]);
const nir = normalize(['band', 4]);
const trueColor = {
color: ['array', red, green, blue, 1],
gamma: 1.1,
};
const falseColor = {
color: ['array', nir, red, green, 1],
gamma: 1.1,
};
const ndvi = {
color: [
'interpolate',
['linear'],
['/', ['-', nir, red], ['+', nir, red]],
// color ramp for NDVI values, ranging from -1 to 1
-0.2,
[191, 191, 191],
-0.1,
[219, 219, 219],
0,
[255, 255, 224],
0.025,
[255, 250, 204],
0.05,
[237, 232, 181],
0.075,
[222, 217, 156],
0.1,
[204, 199, 130],
0.125,
[189, 184, 107],
0.15,
[176, 194, 97],
0.175,
[163, 204, 89],
0.2,
[145, 191, 82],
0.25,
[128, 179, 71],
0.3,
[112, 163, 64],
0.35,
[97, 150, 54],
0.4,
[79, 138, 46],
0.45,
[64, 125, 36],
0.5,
[48, 110, 28],
0.55,
[33, 97, 18],
0.6,
[15, 84, 10],
0.65,
[0, 69, 0],
],
};
const layer = new TileLayer({
style: trueColor,
source: new GeoTIFF({
normalize: false,
sources: [
{
url: 'https://s2downloads.eox.at/demo/EOxCloudless/2020/rgbnir/s2cloudless2020-16bits_sinlge-file_z0-4.tif',
},
],
}),
});
const map = new Map({
target: 'map',
layers: [layer],
view: new View({
projection: 'EPSG:4326',
center: [0, 0],
zoom: 2,
maxZoom: 6,
}),
});
const styles = {trueColor, falseColor, ndvi};
const styleSelector = document.getElementById('style');
function update() {
const style = styles[styleSelector.value];
layer.setStyle(style);
}
styleSelector.addEventListener('change', update);

View File

@@ -0,0 +1,12 @@
---
layout: example.html
title: Custom Hit Detection Render
shortdesc: Example of a custom hit detection renderer.
docs: >
This example demonstrates the use of 'ol/style/Style' hitDetectionRender option function in
detecting if pointer is over a particular feature.
Move pointer over the label for Columbus Circle feature and see that only label is used in
hit detection.
tags: "circle, feature, vector, render, custom, hitDetectionRenderer"
---
<div id="map" class="map"></div>

View File

@@ -0,0 +1,103 @@
import Feature from '../src/ol/Feature.js';
import Map from '../src/ol/Map.js';
import View from '../src/ol/View.js';
import {Circle} from '../src/ol/geom.js';
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
import {Style} from '../src/ol/style.js';
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
import {fromLonLat} from '../src/ol/proj.js';
const columbusCircleCoords = fromLonLat([-73.98189, 40.76805]);
const labelTextStroke = 'rgba(120, 120, 120, 1)';
const labelText = 'Columbus Circle';
let pointerOverFeature = null;
const renderLabelText = (ctx, x, y, stroke) => {
ctx.fillStyle = 'rgba(255,0,0,1)';
ctx.strokeStyle = stroke;
ctx.lineWidth = 1;
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
ctx.font = `bold 30px verdana`;
ctx.filter = 'drop-shadow(7px 7px 2px #e81)';
ctx.fillText(labelText, x, y);
ctx.strokeText(labelText, x, y);
};
const circleFeature = new Feature({
geometry: new Circle(columbusCircleCoords, 50),
});
circleFeature.set('label-color', labelTextStroke);
circleFeature.setStyle(
new Style({
renderer(coordinates, state) {
const [[x, y], [x1, y1]] = coordinates;
const ctx = state.context;
const dx = x1 - x;
const dy = y1 - y;
const radius = Math.sqrt(dx * dx + dy * dy);
const innerRadius = 0;
const outerRadius = radius * 1.4;
const gradient = ctx.createRadialGradient(
x,
y,
innerRadius,
x,
y,
outerRadius
);
gradient.addColorStop(0, 'rgba(255,0,0,0)');
gradient.addColorStop(0.6, 'rgba(255,0,0,0.2)');
gradient.addColorStop(1, 'rgba(255,0,0,0.8)');
ctx.beginPath();
ctx.arc(x, y, radius, 0, 2 * Math.PI, true);
ctx.fillStyle = gradient;
ctx.fill();
ctx.strokeStyle = 'rgba(255,0,0,1)';
ctx.stroke();
renderLabelText(ctx, x, y, circleFeature.get('label-color'));
},
hitDetectionRenderer(coordinates, state) {
const [x, y] = coordinates[0];
const ctx = state.context;
renderLabelText(ctx, x, y, circleFeature.get('label-color'));
},
})
);
const map = new Map({
layers: [
new TileLayer({
source: new OSM(),
visible: true,
}),
new VectorLayer({
source: new VectorSource({
features: [circleFeature],
}),
}),
],
target: 'map',
view: new View({
center: columbusCircleCoords,
zoom: 19,
}),
});
map.on('pointermove', (evt) => {
const featureOver = map.forEachFeatureAtPixel(evt.pixel, (feature) => {
feature.set('label-color', 'rgba(255,255,255,1)');
return feature;
});
if (pointerOverFeature && pointerOverFeature != featureOver) {
pointerOverFeature.set('label-color', labelTextStroke);
}
pointerOverFeature = featureOver;
});

View File

@@ -32,7 +32,7 @@ const map = new Map({
context.strokeRect(0, 0, size, size);
const data = context.getImageData(0, 0, size, size).data;
// converting to Uint8Array for increased browser compatibility
return Promise.resolve(new Uint8Array(data.buffer));
return new Uint8Array(data.buffer);
},
// disable opacity transition to avoid overlapping labels during tile loading
transition: 0,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M19,10C19,11.38 16.88,12.5 15.5,12.5C14.12,12.5 12.75,11.38 12.75,10H11.25C11.25,11.38 9.88,12.5 8.5,12.5C7.12,12.5 5,11.38 5,10H4.25C4.09,10.64 4,11.31 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12C20,11.31 19.91,10.64 19.75,10H19M12,4C9.04,4 6.45,5.61 5.07,8H18.93C17.55,5.61 14.96,4 12,4M22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12M12,17.23C10.25,17.23 8.71,16.5 7.81,15.42L9.23,14C9.68,14.72 10.75,15.23 12,15.23C13.25,15.23 14.32,14.72 14.77,14L16.19,15.42C15.29,16.5 13.75,17.23 12,17.23Z" /></svg>

After

Width:  |  Height:  |  Size: 812 B

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M3.22,7.22C4.91,4.11 8.21,2 12,2C15.79,2 19.09,4.11 20.78,7.22L20,8H4L3.22,7.22M21.4,8.6C21.78,9.67 22,10.81 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12C2,10.81 2.22,9.67 2.6,8.6L4,10H5C5,11.38 7.12,12.5 8.5,12.5C9.88,12.5 11.25,11.38 11.25,10H12.75C12.75,11.38 14.12,12.5 15.5,12.5C16.88,12.5 19,11.38 19,10H20L21.4,8.6M16.19,15.42L14.77,14C14.32,14.72 13.25,15.23 12,15.23C10.75,15.23 9.68,14.72 9.23,14L7.81,15.42C8.71,16.5 10.25,17.23 12,17.23C13.75,17.23 15.29,16.5 16.19,15.42Z" /></svg>

After

Width:  |  Height:  |  Size: 775 B

File diff suppressed because one or more lines are too long

View File

@@ -4,6 +4,7 @@ import {Circle as CircleStyle, Fill, Stroke, Style} from '../src/ol/style.js';
import {Draw, Modify, Snap} from '../src/ol/interaction.js';
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
import {get} from '../src/ol/proj.js';
const raster = new TileLayer({
source: new OSM(),
@@ -29,12 +30,18 @@ const vector = new VectorLayer({
}),
});
// Limit multi-world panning to one world east and west of the real world.
// Geometry coordinates have to be within that range.
const extent = get('EPSG:3857').getExtent().slice();
extent[0] += extent[0];
extent[2] += extent[2];
const map = new Map({
layers: [raster, vector],
target: 'map',
view: new View({
center: [-11000000, 4600000],
zoom: 4,
extent,
}),
});

View File

@@ -7,7 +7,6 @@ docs: >
makes it so the map view uses geographic coordinates (even if the view projection is
not geographic).
tags: "geographic"
experimental: true
---
<div id="map" class="map"></div>
<select id="mode">

View File

@@ -1,30 +1,28 @@
import GeoJSON from '../src/ol/format/GeoJSON.js';
import VectorLayer from '../src/ol/layer/Vector.js';
import VectorSource from '../src/ol/source/Vector.js';
import {Draw, Modify, Select, Snap} from '../src/ol/interaction.js';
import {Map, View} from '../src/ol/index.js';
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
import {useGeographic} from '../src/ol/proj.js';
useGeographic();
const source = new VectorSource({
url: 'data/geojson/countries.geojson',
url: 'https://openlayers.org/data/vector/us-states.json',
format: new GeoJSON(),
});
const map = new Map({
target: 'map',
layers: [
new TileLayer({
source: new OSM(),
}),
new VectorLayer({
background: 'white',
source: source,
}),
],
view: new View({
center: [0, 0],
zoom: 2,
center: [-100, 38.5],
zoom: 4,
}),
});

View File

@@ -1,20 +1,46 @@
import GeoJSON from '../src/ol/format/GeoJSON.js';
import Map from '../src/ol/Map.js';
import VectorSource from '../src/ol/source/Vector.js';
import View from '../src/ol/View.js';
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
import {Fill, Style} from '../src/ol/style.js';
import {
Heatmap as HeatmapLayer,
Vector as VectorLayer,
} from '../src/ol/layer.js';
import {asArray} from '../src/ol/color.js';
const style = new Style({
fill: new Fill({
color: '#eeeeee',
}),
});
const map = new Map({
layers: [
new TileLayer({
source: new OSM(),
}),
new VectorLayer({
source: new VectorSource({
url: 'data/geojson/countries.geojson',
url: 'https://openlayers.org/data/vector/ecoregions.json',
format: new GeoJSON(),
}),
opacity: 0.5,
background: 'white',
style: function (feature) {
const color = asArray(feature.get('COLOR_NNH') || '#eeeeee');
color[3] = 0.75;
style.getFill().setColor(color);
return style;
},
}),
new HeatmapLayer({
source: new VectorSource({
url: 'data/geojson/world-cities.geojson',
format: new GeoJSON(),
}),
weight: function (feature) {
return feature.get('population') / 1e7;
},
radius: 15,
blur: 15,
opacity: 0.75,
}),
],
target: 'map',
@@ -32,17 +58,37 @@ document.getElementById('export-png').addEventListener('click', function () {
mapCanvas.height = size[1];
const mapContext = mapCanvas.getContext('2d');
Array.prototype.forEach.call(
document.querySelectorAll('.ol-layer canvas'),
map.getViewport().querySelectorAll('.ol-layer canvas, canvas.ol-layer'),
function (canvas) {
if (canvas.width > 0) {
const opacity = canvas.parentNode.style.opacity;
const opacity =
canvas.parentNode.style.opacity || canvas.style.opacity;
mapContext.globalAlpha = opacity === '' ? 1 : Number(opacity);
const backgroundColor = canvas.parentNode.style.backgroundColor;
if (backgroundColor) {
mapContext.fillStyle = backgroundColor;
mapContext.fillRect(0, 0, canvas.width, canvas.height);
}
let matrix;
const transform = canvas.style.transform;
// Get the transform parameters from the style's transform matrix
const matrix = transform
.match(/^matrix\(([^\(]*)\)$/)[1]
.split(',')
.map(Number);
if (transform) {
// Get the transform parameters from the style's transform matrix
matrix = transform
.match(/^matrix\(([^\(]*)\)$/)[1]
.split(',')
.map(Number);
} else {
matrix = [
parseFloat(canvas.style.width) / canvas.width,
0,
0,
parseFloat(canvas.style.height) / canvas.height,
0,
0,
];
}
// Apply the transform to the export map context
CanvasRenderingContext2D.prototype.setTransform.apply(
mapContext,
@@ -52,6 +98,7 @@ document.getElementById('export-png').addEventListener('click', function () {
}
}
);
mapContext.globalAlpha = 1;
if (navigator.msSaveBlob) {
// link download attribute does not work on MS browsers
navigator.msSaveBlob(mapCanvas.msToBlob(), 'map.png');

View File

@@ -83,6 +83,7 @@ exportButton.addEventListener(
}
}
);
mapContext.globalAlpha = 1;
const pdf = new jspdf.jsPDF('landscape', undefined, format);
pdf.addImage(
mapCanvas.toDataURL('image/jpeg'),

View File

@@ -1,24 +1,15 @@
import ExtentInteraction from '../src/ol/interaction/Extent.js';
import GeoJSON from '../src/ol/format/GeoJSON.js';
import Map from '../src/ol/Map.js';
import OSM from '../src/ol/source/OSM.js';
import TileLayer from '../src/ol/layer/Tile.js';
import View from '../src/ol/View.js';
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
import {shiftKeyOnly} from '../src/ol/events/condition.js';
const vectorSource = new VectorSource({
url: 'data/geojson/countries.geojson',
format: new GeoJSON(),
});
const map = new Map({
layers: [
new TileLayer({
source: new OSM(),
}),
new VectorLayer({
source: vectorSource,
}),
],
target: 'map',
view: new View({

View File

@@ -0,0 +1,13 @@
---
layout: example.html
title: External map
shortdesc: Move a map to a seperate window.
docs: >
Move a map to a seperate window.
tags: "external, window"
sources:
- path: resources/external-map-map.html
---
<div id="map" class="map"></div>
<input id="external-map-button" type="button" value="Open external map"></input>
<span id="blocker-notice" hidden>Could not open map in external window. If you are using a popup or ad blocker you may need to disable it for this example.</span>

112
examples/external-map.js Normal file
View File

@@ -0,0 +1,112 @@
import Map from '../src/ol/Map.js';
import OSM from '../src/ol/source/OSM.js';
import TileLayer from '../src/ol/layer/Tile.js';
import View from '../src/ol/View.js';
import {
Control,
FullScreen,
defaults as defaultControls,
} from '../src/ol/control.js';
import {fromLonLat} from '../src/ol/proj.js';
class UnusableMask extends Control {
constructor() {
super({
element: document.createElement('div'),
});
this.element.setAttribute('hidden', 'hidden');
this.element.className = 'ol-mask';
this.element.innerHTML = '<div>Map not usable</div>';
}
}
const localMapTarget = document.getElementById('map');
const map = new Map({
target: localMapTarget,
controls: defaultControls().extend([new FullScreen(), new UnusableMask()]),
layers: [
new TileLayer({
source: new OSM(),
}),
],
view: new View({
center: fromLonLat([37.41, 8.82]),
zoom: 4,
}),
});
let mapWindow;
function closeMapWindow() {
if (mapWindow) {
mapWindow.close();
mapWindow = undefined;
}
}
// Close external window in case the main page is closed or reloaded
window.addEventListener('pagehide', closeMapWindow);
const button = document.getElementById('external-map-button');
function resetMapTarget() {
localMapTarget.style.height = '';
map.setTarget(localMapTarget);
button.disabled = false;
}
function updateOverlay() {
if (!mapWindow) {
return;
}
const externalMapTarget = mapWindow.document.getElementById('map');
if (!externalMapTarget) {
return;
}
if (document.visibilityState === 'visible') {
// Show controls and enable keyboard input
externalMapTarget.classList.remove('unusable');
externalMapTarget.setAttribute('tabindex', '0');
externalMapTarget.focus();
} else {
// Hide all controls and disable keyboard input
externalMapTarget.removeAttribute('tabindex');
externalMapTarget.classList.add('unusable');
}
}
window.addEventListener('visibilitychange', updateOverlay);
button.addEventListener('click', function () {
const blockerNotice = document.getElementById('blocker-notice');
blockerNotice.setAttribute('hidden', 'hidden');
button.disabled = true;
// Reset button and map target in case window did not load or open
let timeoutKey = setTimeout(function () {
closeMapWindow();
resetMapTarget();
blockerNotice.removeAttribute('hidden');
timeoutKey = undefined;
}, 3000);
mapWindow = window.open(
'resources/external-map-map.html',
'MapWindow',
'toolbar=0,location=0,menubar=0,width=800,height=600'
);
mapWindow.addEventListener('DOMContentLoaded', function () {
const externalMapTarget = mapWindow.document.getElementById('map');
localMapTarget.style.height = '0px';
map.setTarget(externalMapTarget);
if (timeoutKey) {
timeoutKey = clearTimeout(timeoutKey);
}
mapWindow.addEventListener('pagehide', function () {
resetMapTarget();
// Close window in case user does a page reload
closeMapWindow();
});
updateOverlay();
});
});

View File

@@ -7,6 +7,7 @@ import View from '../src/ol/View.js';
import {Stroke, Style} from '../src/ol/style.js';
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
import {getVectorContext} from '../src/ol/render.js';
import {getWidth} from '../src/ol/extent.js';
const tileLayer = new TileLayer({
source: new Stamen({
@@ -18,7 +19,7 @@ const map = new Map({
layers: [tileLayer],
target: 'map',
view: new View({
center: [0, 0],
center: [-11000000, 4600000],
zoom: 2,
}),
});
@@ -31,7 +32,6 @@ const style = new Style({
});
const flightsSource = new VectorSource({
wrapX: false,
attributions:
'Flight data by ' +
'<a href="https://openflights.org/data.html">OpenFlights</a>,',
@@ -55,18 +55,23 @@ const flightsSource = new VectorSource({
);
const arcLine = arcGenerator.Arc(100, {offset: 10});
if (arcLine.geometries.length === 1) {
const line = new LineString(arcLine.geometries[0].coords);
// paths which cross the -180°/+180° meridian are split
// into two sections which will be animated sequentially
const features = [];
arcLine.geometries.forEach(function (geometry) {
const line = new LineString(geometry.coords);
line.transform('EPSG:4326', 'EPSG:3857');
const feature = new Feature({
geometry: line,
finished: false,
});
// add the feature with a delay so that the animation
// for all features does not start at the same time
addLater(feature, i * 50);
}
features.push(
new Feature({
geometry: line,
finished: false,
})
);
});
// add the features with a delay so that the animation
// for all features does not start at the same time
addLater(features, i * 50);
}
tileLayer.on('postrender', animateFlights);
});
@@ -88,7 +93,7 @@ const flightsLayer = new VectorLayer({
map.addLayer(flightsLayer);
const pointsPerMs = 0.1;
const pointsPerMs = 0.02;
function animateFlights(event) {
const vectorContext = getVectorContext(event);
const frameState = event.frameState;
@@ -101,26 +106,41 @@ function animateFlights(event) {
// only draw the lines for which the animation has not finished yet
const coords = feature.getGeometry().getCoordinates();
const elapsedTime = frameState.time - feature.get('start');
const elapsedPoints = elapsedTime * pointsPerMs;
if (elapsedTime >= 0) {
const elapsedPoints = elapsedTime * pointsPerMs;
if (elapsedPoints >= coords.length) {
feature.set('finished', true);
if (elapsedPoints >= coords.length) {
feature.set('finished', true);
}
const maxIndex = Math.min(elapsedPoints, coords.length);
const currentLine = new LineString(coords.slice(0, maxIndex));
// animation is needed in the current and nearest adjacent wrapped world
const worldWidth = getWidth(map.getView().getProjection().getExtent());
const offset = Math.floor(map.getView().getCenter()[0] / worldWidth);
// directly draw the lines with the vector context
currentLine.translate(offset * worldWidth, 0);
vectorContext.drawGeometry(currentLine);
currentLine.translate(worldWidth, 0);
vectorContext.drawGeometry(currentLine);
}
const maxIndex = Math.min(elapsedPoints, coords.length);
const currentLine = new LineString(coords.slice(0, maxIndex));
// directly draw the line with the vector context
vectorContext.drawGeometry(currentLine);
}
}
// tell OpenLayers to continue the animation
map.render();
}
function addLater(feature, timeout) {
function addLater(features, timeout) {
window.setTimeout(function () {
feature.set('start', Date.now());
flightsSource.addFeature(feature);
let start = Date.now();
features.forEach(function (feature) {
feature.set('start', start);
flightsSource.addFeature(feature);
const duration =
(feature.getGeometry().getCoordinates().length - 1) / pointsPerMs;
start += duration;
});
}, timeout);
}

View File

@@ -7,7 +7,6 @@ docs: >
makes it so the map view uses geographic coordinates (even if the view projection is
not geographic).
tags: "geographic"
experimental: true
resources:
- https://code.jquery.com/jquery-3.5.1.min.js
- https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css

View File

@@ -63,10 +63,15 @@ map.on('moveend', function () {
});
map.on('click', function (event) {
$(element).popover('dispose');
const feature = map.getFeaturesAtPixel(event.pixel)[0];
if (feature) {
const coordinate = feature.getGeometry().getCoordinates();
popup.setPosition(coordinate);
popup.setPosition([
coordinate[0] + Math.round(event.coordinate[0] / 360) * 360,
coordinate[1],
]);
$(element).popover({
container: element.parentElement,
html: true,
@@ -75,8 +80,6 @@ map.on('click', function (event) {
placement: 'top',
});
$(element).popover('show');
} else {
$(element).popover('dispose');
}
});

View File

@@ -1,60 +1,67 @@
import GeoJSON from '../src/ol/format/GeoJSON.js';
import Map from '../src/ol/Map.js';
import OSM from '../src/ol/source/OSM.js';
import Projection from '../src/ol/proj/Projection.js';
import VectorTileLayer from '../src/ol/layer/VectorTile.js';
import VectorTileSource from '../src/ol/source/VectorTile.js';
import View from '../src/ol/View.js';
import {
Tile as TileLayer,
VectorTile as VectorTileLayer,
} from '../src/ol/layer.js';
import {Fill, Style} from '../src/ol/style.js';
// Converts geojson-vt data to GeoJSON
const replacer = function (key, value) {
if (value.geometry) {
let type;
const rawType = value.type;
let geometry = value.geometry;
if (rawType === 1) {
type = 'MultiPoint';
if (geometry.length == 1) {
type = 'Point';
geometry = geometry[0];
}
} else if (rawType === 2) {
type = 'MultiLineString';
if (geometry.length == 1) {
type = 'LineString';
geometry = geometry[0];
}
} else if (rawType === 3) {
type = 'Polygon';
if (geometry.length > 1) {
type = 'MultiPolygon';
geometry = [geometry];
}
}
return {
'type': 'Feature',
'geometry': {
'type': type,
'coordinates': geometry,
},
'properties': value.tags,
};
} else {
if (!value || !value.geometry) {
return value;
}
let type;
const rawType = value.type;
let geometry = value.geometry;
if (rawType === 1) {
type = 'MultiPoint';
if (geometry.length == 1) {
type = 'Point';
geometry = geometry[0];
}
} else if (rawType === 2) {
type = 'MultiLineString';
if (geometry.length == 1) {
type = 'LineString';
geometry = geometry[0];
}
} else if (rawType === 3) {
type = 'Polygon';
if (geometry.length > 1) {
type = 'MultiPolygon';
geometry = [geometry];
}
}
return {
'type': 'Feature',
'geometry': {
'type': type,
'coordinates': geometry,
},
'properties': value.tags,
};
};
const style = new Style({
fill: new Fill({
color: '#eeeeee',
}),
});
const layer = new VectorTileLayer({
background: '#1a2b39',
style: function (feature) {
const color = feature.get('COLOR') || '#eeeeee';
style.getFill().setColor(color);
return style;
},
});
const map = new Map({
layers: [
new TileLayer({
source: new OSM(),
}),
],
layers: [layer],
target: 'map',
view: new View({
center: [0, 0],
@@ -62,7 +69,7 @@ const map = new Map({
}),
});
const url = 'data/geojson/countries.geojson';
const url = 'https://openlayers.org/data/vector/ecoregions.json';
fetch(url)
.then(function (response) {
return response.json();
@@ -106,8 +113,5 @@ fetch(url)
tile.setFeatures(features);
},
});
const vectorLayer = new VectorTileLayer({
source: vectorSource,
});
map.addLayer(vectorLayer);
layer.setSource(vectorSource);
});

View File

@@ -35,7 +35,7 @@ tags: "fullscreen, geolocation, orientation, mobile"
left: 10px;
}
</style>
<script src="https://unpkg.com/elm-pep"></script>
<script src="https://unpkg.com/elm-pep@1.0.6/dist/elm-pep.js"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=fetch,requestAnimationFrame,Element.prototype.classList,URL"></script>
</head>
<body>

View File

@@ -3,8 +3,8 @@ layout: example.html
title: WMS GetFeatureInfo (Image Layer)
shortdesc: Using an image WMS source with GetFeatureInfo requests
docs: >
This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS image layer. Additionally <code>map.forEachLayerAtPixel</code> is used to change the mouse pointer when hovering a non-transparent pixel on the map.
tags: "getfeatureinfo, forEachLayerAtPixel"
This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS image layer. Additionally `layer.getData(pixel)` is used to change the mouse pointer when hovering a non-transparent pixel on the map.
tags: "getfeatureinfo, getData"
---
<div id="map" class="map"></div>
<div id="info">&nbsp;</div>

View File

@@ -47,9 +47,7 @@ map.on('pointermove', function (evt) {
if (evt.dragging) {
return;
}
const pixel = map.getEventPixel(evt.originalEvent);
const hit = map.forEachLayerAtPixel(pixel, function () {
return true;
});
const data = wmsLayer.getData(evt.pixel);
const hit = data && data[3] > 0; // transparent pixels have zero for data[3]
map.getTargetElement().style.cursor = hit ? 'pointer' : '';
});

View File

@@ -3,8 +3,8 @@ layout: example.html
title: WMS GetFeatureInfo (Tile Layer)
shortdesc: Issuing GetFeatureInfo requests with a WMS tiled source
docs: >
This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS tile layer. Additionally <code>map.forEachLayerAtPixel</code> is used to change the mouse pointer when hovering a non-transparent pixel on the map.
tags: "getfeatureinfo, forEachLayerAtPixel"
This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS tile layer. Additionally `layer.getData(pixel)` is used to change the mouse pointer when hovering a non-transparent pixel on the map.
tags: "getfeatureinfo, getData"
---
<div id="map" class="map"></div>
<div id="info">&nbsp;</div>

View File

@@ -47,9 +47,7 @@ map.on('pointermove', function (evt) {
if (evt.dragging) {
return;
}
const pixel = map.getEventPixel(evt.originalEvent);
const hit = map.forEachLayerAtPixel(pixel, function () {
return true;
});
const data = wmsLayer.getData(evt.pixel);
const hit = data && data[3] > 0; // transparent pixels have zero for data[3]
map.getTargetElement().style.cursor = hit ? 'pointer' : '';
});

View File

@@ -1,12 +1,12 @@
---
layout: example.html
title: Vector Layer Hit Detection
shortdesc: Example of hit detection on a countries vector layer with country information.
shortdesc: Example of hit detection on an ecoregions vector layer with protection status.
docs: >
The countries are loaded from a GeoJSON file. Information about countries is
on hover and click is retrieved using the layer's `getFeatures()` method. For
The ecoregions are loaded from a GeoJSON file. Information about features is
retrieved using the layer's `getFeatures()` method on hover and click. For
vector layers, this function resolves with an array of only the topmost
feature. It uses a very efficient hit detection algorithm, at the cost of
feature. It uses an efficient hit detection algorithm, at the cost of
accuracy. For pixel exact hit detection, when performance is not a concern,
use the map's `getFeaturesAtPixel()` or `forEachFeatureAtPixel()` methods.
tags: "vector, geojson, click, hover, hit detection"

View File

@@ -3,35 +3,23 @@ import Map from '../src/ol/Map.js';
import VectorLayer from '../src/ol/layer/Vector.js';
import VectorSource from '../src/ol/source/Vector.js';
import View from '../src/ol/View.js';
import {Fill, Stroke, Style, Text} from '../src/ol/style.js';
import {Fill, Stroke, Style} from '../src/ol/style.js';
const style = new Style({
fill: new Fill({
color: 'rgba(255, 255, 255, 0.6)',
}),
stroke: new Stroke({
color: '#319FD3',
width: 1,
}),
text: new Text({
font: '12px Calibri,sans-serif',
fill: new Fill({
color: '#000',
}),
stroke: new Stroke({
color: '#fff',
width: 3,
}),
color: '#eeeeee',
}),
});
const vectorLayer = new VectorLayer({
background: '#1a2b39',
source: new VectorSource({
url: 'data/geojson/countries.geojson',
url: 'https://openlayers.org/data/vector/ecoregions.json',
format: new GeoJSON(),
}),
style: function (feature) {
style.getText().setText(feature.get('name'));
const color = feature.get('COLOR_NNH') || '#eeeeee';
style.getFill().setColor(color);
return style;
},
});
@@ -47,31 +35,15 @@ const map = new Map({
const highlightStyle = new Style({
stroke: new Stroke({
color: '#f00',
width: 1,
}),
fill: new Fill({
color: 'rgba(255,0,0,0.1)',
}),
text: new Text({
font: '12px Calibri,sans-serif',
fill: new Fill({
color: '#000',
}),
stroke: new Stroke({
color: '#f00',
width: 3,
}),
color: 'rgba(255, 255, 255, 0.7)',
width: 2,
}),
});
const featureOverlay = new VectorLayer({
source: new VectorSource(),
map: map,
style: function (feature) {
highlightStyle.getText().setText(feature.get('name'));
return highlightStyle;
},
style: highlightStyle,
});
let highlight;
@@ -80,7 +52,7 @@ const displayFeatureInfo = function (pixel) {
const feature = features.length ? features[0] : undefined;
const info = document.getElementById('info');
if (features.length) {
info.innerHTML = feature.getId() + ': ' + feature.get('name');
info.innerHTML = feature.get('ECO_NAME') + ': ' + feature.get('NNH_NAME');
} else {
info.innerHTML = '&nbsp;';
}

View File

@@ -4,33 +4,30 @@ import VectorImageLayer from '../src/ol/layer/VectorImage.js';
import VectorLayer from '../src/ol/layer/Vector.js';
import VectorSource from '../src/ol/source/Vector.js';
import View from '../src/ol/View.js';
import {Fill, Stroke, Style, Text} from '../src/ol/style.js';
import {Fill, Stroke, Style} from '../src/ol/style.js';
const style = new Style({
fill: new Fill({
color: 'rgba(255, 255, 255, 0.6)',
color: '#eeeeee',
}),
stroke: new Stroke({
color: '#319FD3',
width: 1,
});
const vectorLayer = new VectorImageLayer({
background: '#1a2b39',
imageRatio: 2,
source: new VectorSource({
url: 'https://openlayers.org/data/vector/ecoregions.json',
format: new GeoJSON(),
}),
text: new Text(),
style: function (feature) {
const color = feature.get('COLOR') || '#eeeeee';
style.getFill().setColor(color);
return style;
},
});
const map = new Map({
layers: [
new VectorImageLayer({
imageRatio: 2,
source: new VectorSource({
url: 'data/geojson/countries.geojson',
format: new GeoJSON(),
}),
style: function (feature) {
style.getText().setText(feature.get('name'));
return style;
},
}),
],
layers: [vectorLayer],
target: 'map',
view: new View({
center: [0, 0],
@@ -43,47 +40,42 @@ const featureOverlay = new VectorLayer({
map: map,
style: new Style({
stroke: new Stroke({
color: '#f00',
width: 1,
}),
fill: new Fill({
color: 'rgba(255,0,0,0.1)',
color: 'rgba(255, 255, 255, 0.7)',
width: 2,
}),
}),
});
let highlight;
const displayFeatureInfo = function (pixel) {
map
.getLayers()
.item(0)
.getFeatures(pixel)
.then(function (features) {
const feature = features.length > 0 ? features[0] : undefined;
const feature = map.forEachFeatureAtPixel(pixel, function (feature) {
return feature;
});
const info = document.getElementById('info');
if (feature) {
info.innerHTML = feature.getId() + ': ' + feature.get('name');
} else {
info.innerHTML = '&nbsp;';
}
const info = document.getElementById('info');
if (feature) {
info.innerHTML = feature.get('ECO_NAME') || '&nbsp;';
} else {
info.innerHTML = '&nbsp;';
}
if (feature !== highlight) {
if (highlight) {
featureOverlay.getSource().removeFeature(highlight);
}
if (feature) {
featureOverlay.getSource().addFeature(feature);
}
highlight = feature;
}
});
if (feature !== highlight) {
if (highlight) {
featureOverlay.getSource().removeFeature(highlight);
}
if (feature) {
featureOverlay.getSource().addFeature(feature);
}
highlight = feature;
}
};
map.on('pointermove', function (evt) {
if (!evt.dragging) {
displayFeatureInfo(evt.pixel);
if (evt.dragging) {
return;
}
const pixel = map.getEventPixel(evt.originalEvent);
displayFeatureInfo(pixel);
});
map.on('click', function (evt) {

View File

@@ -10,6 +10,5 @@ docs: >
any geometry on each render frame. The `useGeographic` function is used in this example so that
geometries can be in geographic coordinates.
tags: "immediate, geographic"
experimental: true
---
<div id="map" class="map"></div>

View File

@@ -1,22 +1,22 @@
---
layout: example.html
title: Disable Image Smoothing
shortdesc: Example of disabling image smoothing
title: Interpolation
shortdesc: Example of data interpolation
docs: >
Example of disabling image smoothing when using raster DEM (digital elevation model) data.
The <code>imageSmoothing: false</code> setting is used to disable canvas image smoothing during
Example of data resampling when using raster DEM (digital elevation model) data.
The <code>interpolate: false</code> setting is used to disable interpolation of data values during
reprojection and rendering. Elevation data is
calculated from the pixel value returned by <b>forEachLayerAtPixel</b>. For comparison a second map
with smoothing enabled returns inaccuate elevations which are very noticeable close to 3107 meters
with interpolation enabled returns inaccurate elevations which are very noticeable close to 3107 meters
due to how elevation is calculated from the pixel value.
tags: "disable image smoothing, xyz, maptiler, reprojection"
tags: "disable image interpolation, xyz, maptiler, reprojection"
cloak:
- key: get_your_own_D6rA4zTHduk6KOKTXzGB
value: Get your own API key at https://www.maptiler.com/cloud/
---
<div class="wrapper">
<div class="half">
<h4>Smoothing Disabled</h4>
<h4>Not Interpolated</h4>
<div id="map1" class="map"></div>
<div>
<label>
@@ -24,16 +24,9 @@ cloak:
<span id="info1">0.0</span> meters
</label>
</div>
<div>
<label>
Imagery opacity
<input id="opacity" type="range" min="0" max="100" value="80" />
<span id="output"></span> %
</label>
</div>
</div>
<div class="half">
<h4>Uncorrected Comparison</h4>
<h4>Interpolated</h4>
<div id="map2" class="map"></div>
<div>
<label>

View File

@@ -8,63 +8,31 @@ const attributions =
'<a href="https://www.maptiler.com/copyright/" target="_blank">&copy; MapTiler</a> ' +
'<a href="https://www.openstreetmap.org/copyright" target="_blank">&copy; OpenStreetMap contributors</a>';
const disabledLayer = new TileLayer({
const notInterpolated = new TileLayer({
// specify className so forEachLayerAtPixel can distinguish layers
className: 'ol-layer-dem',
source: new XYZ({
attributions: attributions,
url:
'https://api.maptiler.com/tiles/terrain-rgb/{z}/{x}/{y}.png?key=' + key,
maxZoom: 10,
tileSize: 512,
maxZoom: 12,
crossOrigin: '',
imageSmoothing: false,
interpolate: false,
}),
});
const imagery = new TileLayer({
className: 'ol-layer-imagery',
source: new XYZ({
attributions: attributions,
url: 'https://api.maptiler.com/tiles/satellite/{z}/{x}/{y}.jpg?key=' + key,
maxZoom: 20,
crossOrigin: '',
}),
});
const enabledLayer = new TileLayer({
const interpolated = new TileLayer({
source: new XYZ({
attributions: attributions,
url:
'https://api.maptiler.com/tiles/terrain-rgb/{z}/{x}/{y}.png?key=' + key,
maxZoom: 10,
tileSize: 512,
maxZoom: 12,
crossOrigin: '',
}),
});
imagery.on('prerender', function (evt) {
// use opaque background to conceal DEM while fully opaque imagery renders
if (imagery.getOpacity() === 1) {
evt.context.fillStyle = 'white';
evt.context.fillRect(
0,
0,
evt.context.canvas.width,
evt.context.canvas.height
);
}
});
const control = document.getElementById('opacity');
const output = document.getElementById('output');
const listener = function () {
output.innerText = control.value;
imagery.setOpacity(control.value / 100);
};
control.addEventListener('input', listener);
control.addEventListener('change', listener);
output.innerText = control.value;
imagery.setOpacity(control.value / 100);
const view = new View({
center: [6.893, 45.8295],
zoom: 16,
@@ -73,13 +41,13 @@ const view = new View({
const map1 = new Map({
target: 'map1',
layers: [disabledLayer, imagery],
layers: [notInterpolated],
view: view,
});
const map2 = new Map({
target: 'map2',
layers: [enabledLayer],
layers: [interpolated],
view: view,
});
@@ -99,7 +67,7 @@ const showElevations = function (evt) {
},
{
layerFilter: function (layer) {
return layer === disabledLayer;
return layer === notInterpolated;
},
}
);
@@ -112,7 +80,7 @@ const showElevations = function (evt) {
},
{
layerFilter: function (layer) {
return layer === enabledLayer;
return layer === interpolated;
},
}
);

View File

@@ -18,7 +18,7 @@ cloak:
<li><span>OSM layer</span>
<fieldset id="layer0">
<label class="checkbox" for="visible0">
visibile <input id="visible0" class="visible" type="checkbox"/>
visible <input id="visible0" class="visible" type="checkbox"/>
</label>
<label>
opacity <input class="opacity" type="range" min="0" max="1" step="0.01"/>
@@ -29,7 +29,7 @@ cloak:
<span>Layer group</span>
<fieldset id="layer1">
<label class="checkbox" for="visible1">
visibile <input id="visible1" class="visible" type="checkbox"/>
visible <input id="visible1" class="visible" type="checkbox"/>
</label>
<label>
opacity <input class="opacity" type="range" min="0" max="1" step="0.01"/>
@@ -40,7 +40,7 @@ cloak:
<span>Food insecurity layer</span>
<fieldset id="layer10">
<label class="checkbox" for="visible10">
visibile <input id="visible10" class="visible" type="checkbox"/>
visible <input id="visible10" class="visible" type="checkbox"/>
</label>
<label>
opacity <input class="opacity" type="range" min="0" max="1" step="0.01"/>
@@ -51,7 +51,7 @@ cloak:
<span>World borders layer</span>
<fieldset id="layer11">
<label class="checkbox" for="visible11">
visibile <input id="visible11" class="visible" type="checkbox"/>
visible <input id="visible11" class="visible" type="checkbox"/>
</label>
<label>
opacity <input class="opacity" type="range" min="0" max="1" step="0.01"/>

View File

@@ -0,0 +1,17 @@
---
layout: example.html
title: Layer Opacity
shortdesc: Adjust layer opacity based on user input
docs: >
The `layer.setOpacity()` method can be called to adjust the opacity of a layer.
tags: "opacity"
cloak:
- key: get_your_own_D6rA4zTHduk6KOKTXzGB
value: Get your own API key at https://www.maptiler.com/cloud/
---
<div id="map" class="map"></div>
<label>
Layer opacity
<input id="opacity-input" type="range" min="0" max="1" step="0.01" value="1" />
<span id="opacity-output"></span>
</label>

42
examples/layer-opacity.js Normal file
View File

@@ -0,0 +1,42 @@
import Map from '../src/ol/Map.js';
import OSM from '../src/ol/source/OSM.js';
import TileLayer from '../src/ol/layer/WebGLTile.js';
import View from '../src/ol/View.js';
import XYZ from '../src/ol/source/XYZ.js';
const key = 'get_your_own_D6rA4zTHduk6KOKTXzGB';
const imagery = new TileLayer({
className: 'ol-layer-imagery',
source: new XYZ({
attributions:
'<a href="https://www.maptiler.com/copyright/" target="_blank">&copy; MapTiler</a> ',
url: 'https://api.maptiler.com/tiles/satellite/{z}/{x}/{y}.jpg?key=' + key,
maxZoom: 20,
crossOrigin: '',
}),
});
const osm = new TileLayer({
source: new OSM(),
});
const map = new Map({
layers: [imagery, osm],
target: 'map',
view: new View({
center: [0, 0],
zoom: 2,
}),
});
const opacityInput = document.getElementById('opacity-input');
const opacityOutput = document.getElementById('opacity-output');
function update() {
const opacity = parseFloat(opacityInput.value);
osm.setOpacity(opacity);
opacityOutput.innerText = opacity.toFixed(2);
}
opacityInput.addEventListener('input', update);
opacityInput.addEventListener('change', update);
update();

View File

@@ -5,6 +5,7 @@ import View from '../src/ol/View.js';
import {Icon, Stroke, Style} from '../src/ol/style.js';
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
import {get} from '../src/ol/proj.js';
const raster = new TileLayer({
source: new OSM(),
@@ -49,12 +50,19 @@ const vector = new VectorLayer({
style: styleFunction,
});
// Limit multi-world panning to one world east and west of the real world.
// Geometry coordinates have to be within that range.
const extent = get('EPSG:3857').getExtent().slice();
extent[0] += extent[0];
extent[2] += extent[2];
const map = new Map({
layers: [raster, vector],
target: 'map',
view: new View({
center: [-11000000, 4600000],
zoom: 4,
extent,
}),
});

View File

@@ -1,11 +1,10 @@
import GeoJSON from '../src/ol/format/GeoJSON.js';
import HeatmapLayer from '../src/ol/layer/Heatmap.js';
import Layer from '../src/ol/layer/Layer.js';
import Map from '../src/ol/Map.js';
import Source from '../src/ol/source/Source.js';
import VectorLayer from '../src/ol/layer/Vector.js';
import VectorSource from '../src/ol/source/Vector.js';
import View from '../src/ol/View.js';
import {Stroke, Style} from '../src/ol/style.js';
import {fromLonLat, toLonLat} from '../src/ol/proj.js';
const center = [-98.8, 37.9];
@@ -34,6 +33,7 @@ const mbLayer = new Layer({
const visible = mbLayer.getVisible();
canvas.style.display = visible ? 'block' : 'none';
canvas.style.position = 'absolute';
const opacity = mbLayer.getOpacity();
canvas.style.opacity = opacity;
@@ -66,19 +66,16 @@ const mbLayer = new Layer({
}),
});
const style = new Style({
stroke: new Stroke({
color: '#319FD3',
width: 2,
}),
});
const vectorLayer = new VectorLayer({
const cities = new HeatmapLayer({
source: new VectorSource({
url: 'data/geojson/countries.geojson',
url: 'data/geojson/world-cities.geojson',
format: new GeoJSON(),
}),
style: style,
weight: function (feature) {
return feature.get('population') / 1e7;
},
radius: 15,
blur: 15,
});
const map = new Map({
@@ -87,5 +84,5 @@ const map = new Map({
center: fromLonLat(center),
zoom: 4,
}),
layers: [mbLayer, vectorLayer],
layers: [mbLayer, cities],
});

View File

@@ -1,3 +0,0 @@
.map {
background: #f8f4f0;
}

View File

@@ -4,7 +4,7 @@ title: Full-Screen Mobile
shortdesc: Example of a full screen map.
tags: "fullscreen, geolocation, mobile"
cloak:
- key: ApTJzdkyN1DdFKkRAE6QIDtzihNaf6IWJsT-nQ_2eMoO4PN__0Tzhl2-WgJtXFSp
- key: AlEoTLTlzFB6Uf4Sy-ugXcRO21skQO7K8eObA5_L-8d20rjqZJLs2nkO1RMjGSPN
value: Your Bing Maps Key from https://www.bingmapsportal.com/ here
---
<!doctype html>
@@ -23,7 +23,7 @@ cloak:
height: 100%;
}
</style>
<script src="https://unpkg.com/elm-pep"></script>
<script src="https://unpkg.com/elm-pep@1.0.6/dist/elm-pep.js"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=fetch,requestAnimationFrame,Element.prototype.classList,URL"></script>
</head>
<body>

View File

@@ -13,7 +13,7 @@ const map = new Map({
layers: [
new TileLayer({
source: new BingMaps({
key: 'ApTJzdkyN1DdFKkRAE6QIDtzihNaf6IWJsT-nQ_2eMoO4PN__0Tzhl2-WgJtXFSp ',
key: 'AlEoTLTlzFB6Uf4Sy-ugXcRO21skQO7K8eObA5_L-8d20rjqZJLs2nkO1RMjGSPN',
imagerySet: 'RoadOnDemand',
}),
}),

View File

@@ -1,21 +1,19 @@
import GeoJSON from '../src/ol/format/GeoJSON.js';
import Map from '../src/ol/Map.js';
import VectorLayer from '../src/ol/layer/Vector.js';
import VectorSource from '../src/ol/source/Vector.js';
import View from '../src/ol/View.js';
import {
Modify,
Select,
defaults as defaultInteractions,
} from '../src/ol/interaction.js';
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
const raster = new TileLayer({
source: new OSM(),
});
import {fromLonLat} from '../src/ol/proj.js';
const vector = new VectorLayer({
background: 'white',
source: new VectorSource({
url: 'data/geojson/countries.geojson',
url: 'https://openlayers.org/data/vector/us-states.json',
format: new GeoJSON(),
wrapX: false,
}),
@@ -31,10 +29,10 @@ const modify = new Modify({
const map = new Map({
interactions: defaultInteractions().extend([select, modify]),
layers: [raster, vector],
layers: [vector],
target: 'map',
view: new View({
center: [0, 0],
zoom: 2,
center: fromLonLat([-100, 38.5]),
zoom: 4,
}),
});

View File

@@ -6,10 +6,12 @@ docs: >
The map in this example is rendered in a web worker, using `OffscreenCanvas`. **Note:** This is currently only supported in Chrome and Edge.
tags: "worker, offscreencanvas, vector-tiles"
experimental: true
sources:
- path: offscreen-canvas.worker.js
as: worker.js
cloak:
- key: get_your_own_D6rA4zTHduk6KOKTXzGB
value: Get your own API key at https://www.maptiler.com/cloud/
---
<div id="map" class="map">
<pre id="info" class="info"/>

View File

@@ -5,9 +5,12 @@ import View from '../src/ol/View.js';
import Worker from 'worker-loader!./offscreen-canvas.worker.js'; //eslint-disable-line
import stringify from 'json-stringify-safe';
import {FullScreen} from '../src/ol/control.js';
import {compose, create} from '../src/ol/transform.js';
import {
compose,
create,
toString as toTransformString,
} from '../src/ol/transform.js';
import {createXYZ} from '../src/ol/tilegrid.js';
import {toString as toTransformString} from '../src/ol/transform.js';
const worker = new Worker();

View File

@@ -1,12 +1,13 @@
import MVT from '../src/ol/format/MVT.js';
import TileQueue from '../src/ol/TileQueue.js';
import TileQueue, {
getTilePriority as tilePriorityFunction,
} from '../src/ol/TileQueue.js';
import VectorTileLayer from '../src/ol/layer/VectorTile.js';
import VectorTileSource from '../src/ol/source/VectorTile.js';
import stringify from 'json-stringify-safe';
import styleFunction from 'ol-mapbox-style/dist/stylefunction.js';
import {get} from '../src/ol/proj.js';
import {inView} from '../src/ol/layer/Layer.js';
import {getTilePriority as tilePriorityFunction} from '../src/ol/TileQueue.js';
/** @type {any} */
const worker = self;

View File

@@ -18,9 +18,10 @@ const closer = document.getElementById('popup-closer');
*/
const overlay = new Overlay({
element: container,
autoPan: true,
autoPanAnimation: {
duration: 250,
autoPan: {
animation: {
duration: 250,
},
},
});

View File

@@ -6,7 +6,7 @@ docs: >
<p>The map on the top preloads low resolution tiles. The map on the bottom does not use any preloading. Try zooming out and panning to see the difference.</p>
tags: "preload, bing"
cloak:
- key: ApTJzdkyN1DdFKkRAE6QIDtzihNaf6IWJsT-nQ_2eMoO4PN__0Tzhl2-WgJtXFSp
- key: AlEoTLTlzFB6Uf4Sy-ugXcRO21skQO7K8eObA5_L-8d20rjqZJLs2nkO1RMjGSPN
value: Your Bing Maps Key from https://www.bingmapsportal.com/ here
---
<div id="map1" class="map"></div>

View File

@@ -13,7 +13,7 @@ const map1 = new Map({
new TileLayer({
preload: Infinity,
source: new BingMaps({
key: 'ApTJzdkyN1DdFKkRAE6QIDtzihNaf6IWJsT-nQ_2eMoO4PN__0Tzhl2-WgJtXFSp',
key: 'AlEoTLTlzFB6Uf4Sy-ugXcRO21skQO7K8eObA5_L-8d20rjqZJLs2nkO1RMjGSPN',
imagerySet: 'Aerial',
}),
}),
@@ -27,7 +27,7 @@ const map2 = new Map({
new TileLayer({
preload: 0, // default value
source: new BingMaps({
key: 'ApTJzdkyN1DdFKkRAE6QIDtzihNaf6IWJsT-nQ_2eMoO4PN__0Tzhl2-WgJtXFSp',
key: 'AlEoTLTlzFB6Uf4Sy-ugXcRO21skQO7K8eObA5_L-8d20rjqZJLs2nkO1RMjGSPN',
imagerySet: 'AerialWithLabelsOnDemand',
}),
}),

View File

@@ -0,0 +1,18 @@
---
layout: example.html
title: Projection and Scale
shortdesc: Example of maintaining scale when changing projection.
docs: >
Example of maintaining scale when changing projection.
`getPointResolution()` is used to calculate the resolution for the
new projection which corresponds to that for the old projection.
tags: "projection, scale"
---
<div id="map" class="map"></div>
<div>
<label for="view-projection">View projection</label>
<select id="view-projection">
<option value="EPSG:3857">Spherical Mercator (EPSG:3857)</option>
<option value="EPSG:4326" selected>WGS 84 (EPSG:4326)</option>
</select>
</div>

View File

@@ -0,0 +1,68 @@
import Map from '../src/ol/Map.js';
import OSM from '../src/ol/source/OSM.js';
import TileLayer from '../src/ol/layer/Tile.js';
import View from '../src/ol/View.js';
import {ScaleLine, defaults as defaultControls} from '../src/ol/control.js';
import {
getPointResolution,
get as getProjection,
transform,
} from '../src/ol/proj.js';
const viewProjSelect = document.getElementById('view-projection');
const projection = getProjection(viewProjSelect.value);
const scaleControl = new ScaleLine({
units: 'metric',
bar: true,
steps: 4,
text: true,
minWidth: 140,
});
const map = new Map({
controls: defaultControls().extend([scaleControl]),
layers: [
new TileLayer({
source: new OSM(),
}),
],
target: 'map',
view: new View({
center: transform([0, 52], 'EPSG:4326', projection),
zoom: 6,
projection: projection,
}),
});
function onChangeProjection() {
const currentView = map.getView();
const currentProjection = currentView.getProjection();
const newProjection = getProjection(viewProjSelect.value);
const currentResolution = currentView.getResolution();
const currentCenter = currentView.getCenter();
const currentRotation = currentView.getRotation();
const newCenter = transform(currentCenter, currentProjection, newProjection);
const currentPointResolution = getPointResolution(
currentProjection,
1,
currentCenter,
'm'
);
const newPointResolution = getPointResolution(
newProjection,
1,
newCenter,
'm'
);
const newResolution =
(currentResolution * currentPointResolution) / newPointResolution;
const newView = new View({
center: newCenter,
resolution: newResolution,
rotation: currentRotation,
projection: newProjection,
});
map.setView(newView);
}
viewProjSelect.addEventListener('change', onChangeProjection);

View File

@@ -8,6 +8,6 @@ tags: "reprojection, projection, proj4js, image, imagestatic"
---
<div id="map" class="map"></div>
<div>
<input type="checkbox" id="imageSmoothing" checked />
<label for="imageSmoothing">Image smoothing</label>
<input type="checkbox" id="interpolate" checked />
<label for="interpolate">Interpolate</label>
</div>

View File

@@ -34,7 +34,7 @@ const map = new Map({
}),
});
const imageSmoothing = document.getElementById('imageSmoothing');
const interpolate = document.getElementById('interpolate');
function setSource() {
const source = new Static({
@@ -44,10 +44,10 @@ function setSource() {
crossOrigin: '',
projection: 'EPSG:27700',
imageExtent: imageExtent,
imageSmoothing: imageSmoothing.checked,
interpolate: interpolate.checked,
});
imageLayer.setSource(source);
}
setSource();
imageSmoothing.addEventListener('change', setSource);
interpolate.addEventListener('change', setSource);

Some files were not shown because too many files have changed in this diff Show More