Commit Graph

13704 Commits

Author SHA1 Message Date
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
Andreas Hocevar b88a466601 Fix strokeStyle documentation 2021-11-20 17:25:14 +01: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 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 6f80ba93c8 Add the renderer type to generic layer template variables 2021-11-19 10:56:37 -07:00
Andreas Hocevar d4cc76f3f1 Add background to MapboxVector layer 2021-11-19 18:17:55 +01: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 a2f3c02ac5 Allow canvas reuse for WebGL layers 2021-11-14 12:34:14 -07:00
Maximilian Krög c47fac19b5 Fix style related apidoc issues 2021-11-14 16:56:59 +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 0dfbedb099 Lazily create the WebGL helper 2021-11-13 11:37:09 -07:00
Tim Schaub 371bb85350 Add a map property to layers 2021-11-12 17:54:10 -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
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
Andreas Hocevar 58806aaec1 No context sharing when layer opacity is set 2021-11-05 15:00:56 +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 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 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 9a6bb4d751 Fix FullScreen state when changing target in fullscreen mode 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 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
Maximilian Krög d1560176ba Fix mouse interactions with tabindex in external window 2021-11-02 00:21:10 +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
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 2adf74ece4 Include WebGL context in render events for WebGL layers 2021-10-29 08:39:47 -06:00
Edward Nash e1b4634fa4 Correct parsing multi-properties with attributes
When parsing GML then conversion of properties containing XML attributes
to objects with a _content_ property must occur before the handling of
multiple attributes (conversion/adding to an array), as otherwise the
_content_ property and attributes are set on the array and not on the
array element.

Prior to this change, only multiple properties without attributes could
be correctly parsed.

Example problemeatic GML section:
<Link xlink:href="http://example.com/a"/>
<Link xlink:href="http://example.com/b"/>

Resulting property as JSON extract after this change:
{
  "Link": [
    {
      "_content_": undefined,
      "xlink:href": "http://example.com/a",
    },
    {
      "_content_": undefined,
      "xlink:href": "http://example.com/b"
    }
  ]
}

Prior to this change, the _content_ property and the properties for the
XML attributes would be set on the resulting JS Array object, with
previous entries being represented as nested arrays.
2021-10-29 16:35:05 +02: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
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
mike-000 94a125357e Avoid startsWith for browser compatibility 2021-10-18 16:10:08 +01: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 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
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