Commit Graph

11551 Commits

Author SHA1 Message Date
Roman Zoller ee57b197e5 Fix offset passed from linearRingssAreOriented to linearRingsAreOriented
The offset needs to be set to the end of the previous Polygon,
see `offset = orientLinearRings(...)` in function orientLinearRingsArray

Fixes #9189
2019-02-05 17:56:52 +01:00
Roman Zoller 2c859b1196 Rename misnamed functions in geom/flat/orient
- Rename linearRingIsOriented => linearRingsAreOriented
  The function checks all linear rings of a Polygon, so
  the plural "rings" is more appropriate
- Rename linearRingsAreOriented => linearRingssAreOriented
  The double s is appropriate because the check is done for
  all Polygons of a MultiPolygon

This commit restores the function names from OpenLayers v4,
they were changed (wrongly IMHO) in #7820.
2019-02-05 17:49:21 +01:00
Guillaume Beraudo 168edac4a6 Allow declutter with image render mode
Using declutter in image render mode is legitimate: each tile is
decluttered, avoiding symbol/text overlaps.
2019-02-05 17:25:00 +01:00
Frederic Junod ba02320fcc Remove unused layerState param 2019-02-05 11:46:12 +01:00
Frederic Junod 427c73ddf9 Remove unnecessary type cast
`npx tsc` output is the same before and after the changes.
2019-02-05 11:46:12 +01:00
Frédéric Junod 2c3ffdfdf8 Merge pull request #9186 from fredj/cleanup
Simplify typing in EsriJSON format
2019-02-05 10:57:36 +01:00
Frederic Junod 97b21145c4 Simplify typing in EsriJSON format 2019-02-05 10:27:26 +01:00
Frederic Junod 0b53a3229b Remove unneeded type cast 2019-02-04 09:58:49 +01:00
Frederic Junod 5318d52036 Use type template for the source type of layers 2019-02-04 09:58:48 +01:00
ahocevar 47679a9686 Document the correct render events 2019-01-31 14:05:10 +01:00
Andreas Hocevar b76626071b Merge pull request #9167 from ahocevar/jsdoc-fixes
JSDoc fixes
2019-01-30 12:44:08 +01:00
ahocevar 37eb6de37d JSDoc fixes 2019-01-30 09:42:20 +01:00
simonseyock c18a833880 event chain documentation 2019-01-28 20:50:33 +01:00
Frédéric Junod 8674da9a3e Merge pull request #9157 from fredj/rm_inherits
Remove deprecated inherits function
2019-01-28 11:01:07 +01:00
Frederic Junod 1ba85a11e9 Change 'cacheSize' description in typedef 2019-01-25 16:50:17 +01:00
ahocevar 59cf0c31b6 Allow bigger cache now that we do less clipping 2019-01-25 16:50:12 +01:00
ahocevar 4f487c4df1 Update comment 2019-01-25 16:49:35 +01:00
ahocevar 6e58796f66 Do not keep potentially unused tiles in the render queue 2019-01-25 16:49:34 +01:00
ahocevar 26ff8899c3 Do not load new tiles when low on frame budget 2019-01-25 16:49:34 +01:00
Frederic Junod fe5da2e160 Remove deprecated inherits function 2019-01-25 16:33:02 +01:00
ahocevar 164635f28c Safer check for window.screen 2019-01-25 12:01:36 +01:00
ahocevar 09a1c1ef1b Avoid clipping when rendering to tiles that don't exceed the clip extent 2019-01-24 09:09:22 +01:00
ahocevar 592b6cf362 Keep track of used labels 2019-01-23 21:52:22 +01:00
Frédéric Junod ea45068335 Merge pull request #9131 from fredj/opacity_cmp
Don't use strict comparison with style.opacity
2019-01-23 08:32:11 +01:00
Tim Schaub 63c079257f Merge pull request #9013 from weskamm/scalebar
Added scalebar option to ol.control.scaleline
2019-01-22 18:04:08 -07:00
Frederic Junod 8dbe8bc34e Parse the opacity from style as float 2019-01-22 12:48:14 +01:00
Frederic Junod af8a22d34d Keep two digits for the opacity value in layer state 2019-01-22 12:47:34 +01:00
ahocevar e37734826c Release canvas memory faster 2019-01-21 23:04:31 +01:00
ahocevar b6d115d868 Make tile cache smaller and screen size dependant 2019-01-21 22:35:48 +01:00
ahocevar a5d93117ed Also consider lower resolution tiles as used tiles 2019-01-21 22:34:01 +01:00
Frédéric Junod 2078b5d355 Merge pull request #9129 from fredj/tmp_array
Reduce garbage generation
2019-01-21 14:29:44 +01:00
Frederic Junod 89ca596eaf Reduce garbage generation 2019-01-21 10:18:19 +01:00
Johannes Weskamm 347e721025 Fixup prop evaluation 2019-01-21 09:33:29 +01:00
ahocevar cd6d195e3f Render whole image queue in hifi mode to avoid extra render cycles 2019-01-20 23:44:28 +01:00
Frédéric Junod 62f270a172 Merge pull request #9118 from fredj/format_read_no_event
Don't dispatch change events when reading features
2019-01-15 09:49:23 +01:00
Frederic Junod 787fd4aa44 Don't dispatch change events when reading features
Based on initial work by https://github.com/Jinkwon
2019-01-15 09:08:15 +01:00
ahocevar 5389e9675c Faster extent calculation with less garbage 2019-01-15 00:30:39 +01:00
ahocevar 90c8fc7888 Properly unregister prepareTile listeners 2019-01-13 23:09:24 +01:00
Vincent Lecrubier 4d54ad0daf Update Zoomify.js 2019-01-12 13:44:17 +01:00
Vincent Lecrubier 37b1cca027 Add TilePixelRatio to Zoomify 2019-01-12 13:23:18 +01:00
ahocevar 0f3c0d1af4 Rename VectorImageTile to VectorRenderTile 2019-01-09 13:45:01 +01:00
ahocevar 32696638d2 Simplify vector tile code 2019-01-09 13:45:01 +01:00
ahocevar ab797b7160 Let source set the key, like other sources do 2019-01-08 13:44:20 +01:00
ahocevar 523d3a4e8c Let the source load source tiles 2019-01-08 13:44:19 +01:00
Frédéric Junod cf6b1ca1cc Merge pull request #9072 from fredj/rm_layerStates
Remove 'layerStates' property from the FrameState
2019-01-07 10:11:52 +01:00
ahocevar 2e21b9f975 Always load tiles while animating and interacting 2019-01-06 21:29:24 +01:00
Andreas Hocevar 06e30e8884 Merge pull request #9083 from ahocevar/fix-draw-condition
Reset lastDragTime when condition is not met
2018-12-31 11:24:33 +01:00
Tim Schaub 511e580c76 Merge pull request #9090 from jahow/add-webgl-points-example
Add texture & color to the WebGL points renderer
2018-12-29 22:12:12 -07:00
Olivier Guyot 33c717e159 Use a cleaner way to create a webgl context 2018-12-28 16:10:38 +01:00
Olivier Guyot 62c7a49943 Webgl points / added a texture option & improved doc 2018-12-28 15:53:07 +01:00