Lutz Helm
3f3fbe7e4b
Remove IIIF source rounding workarounds
...
Always try to use canonical URI form. If the server serves wrong tile
heights for given w, shaped size request URI parameters, so be it.
2019-05-09 18:00:18 +02:00
Lutz Helm
0ab7ad741f
Add error codes for IIIF errors
...
60: "Missing or invalid `size`."
Without at least a size, no IIIF can be displayed.
61: "Cannot determine IIIF Image API version from provided image
information JSON."
Without finding out the version information, one could only guess how to
use the image info JSON.
2019-05-09 18:00:18 +02:00
Lutz Helm
58efe1f850
Limit IIIF tile source percentages to 10 decimals max
...
IIIF Image API versions 1 and 2 recommend limiting the number of
decimals digits to 10 at most.
2019-05-09 18:00:18 +02:00
Lutz Helm
66b41a53b8
Fix error in IIIF v3 level0 size paramter
...
Size request parameter in w,h form for level 0 services that only support
listed sizes had been using erroneous w,w instead of w,h.
2019-05-09 18:00:18 +02:00
Lutz Helm
c00400c500
Add IIIF Image API tilesource with example
...
src/ol/source/IIIF.js contains a tile source for IIIF Image API services.
It supports Image API version 1 and 2 on compliance levels 0, 1 and 2.
To get working constructor options for IIIF from an IIIF image info.json,
use src/ol/format/IIIFInfo.js.
An example is available in examples/iiif.html respectivly examples/iiif.js.
2019-05-09 18:00:18 +02:00
Frederic Junod
0e08d9e0fd
Add empty declutterItems in RasterSource frameState
...
To please the type checker.
2019-05-07 13:52:25 +02:00
Andreas Hocevar
046e73e785
Merge pull request #9439 from ahocevar/vectortile-attributions
...
Add attributionsCollapsible option to source/VectorTile
2019-04-18 07:36:50 -07:00
ahocevar
887d8e8a90
Disable opacity transition for raster source sources
2019-04-17 17:38:50 -07:00
ahocevar
756f63e212
Add attributionsCollapsible option to source/VectorTile
2019-04-17 09:06:37 -07:00
Frederic Junod
617dd9f031
Remove opt_this param in ol/structs/RBush
2019-04-08 13:46:54 +02:00
Andreas Hocevar
7ebae2ba80
Fix typo in vector tile source docs
2019-03-26 14:54:44 +01:00
Andreas Hocevar
1be6050da8
Merge pull request #9360 from KaiVolland/9281-rastersouce-attributions
...
Enables attributions for the RasterSource
2019-03-25 12:10:57 +01:00
Kai Volland
62ebe29ead
Enables attributions for the RasterSource
...
Attributions included in the passed sources are concatenated.
2019-03-25 11:47:45 +01:00
ahocevar
681c3169c1
Add zDirection memeber to the baes class, for type checking
2019-03-21 18:50:03 +01:00
Lutz Helm
085c60af49
Remove tile source zDirection getter
...
The renderer now accesses the zDirection member directly if it exists.
This also has the advantage of not advertising any object methods that
hav no use for most tile sources.
2019-03-21 14:47:09 +01:00
Lutz Helm
f5abb45de0
Add a zDirection option for Zoomify
...
Via zDirection, the renderer's selection of a tile source's resolution can be
controlled if the view's resolution does not match any tile source resolution.
Currently the zDirection option is only available for Zoomify. The comment
https://github.com/openlayers/openlayers/issues/9343#issuecomment-474341033
describes why caution is advised when using zDirection for other sources.
ol/source/Tile~TileSource#getZDirection has been added to avoid having the
getZDirection method solely in the Zoomify source - just to document the
possibility.
2019-03-21 10:06:22 +01:00
Frederic Junod
92cb9f1c51
Don't refresh the layer after addFeatures call
2019-03-14 10:25:19 +01:00
Andreas Hocevar
df3d771c53
Merge pull request #9320 from RobertOrthofer/master
...
enhance tile-debug readability
2019-03-13 12:16:23 +01:00
Robert Orthofer
0aa14db88b
move stroke behind text to achieve halo
2019-03-13 09:31:01 +01:00
Andreas Hocevar
d75caaa3df
Merge pull request #9318 from ahocevar/smart-cache-size
...
Smart cache size
2019-03-13 08:17:24 +01:00
ahocevar
ac0d67b273
Use closest lower source resolution for render tiles
2019-03-12 16:51:20 +01:00
Robert Orthofer
a051892b92
enhance tile-debug readability
...
this commit enhances the readability of
tile debug coordinates by adding a stroke
for better readability on aerial imagery
and a maxWidth for high zoom levels
2019-03-12 12:48:26 +01:00
ahocevar
0f217392d7
Adjust tile cache size when too small
2019-03-12 00:19:13 +01:00
Andreas Hocevar
8a02a6f9f1
Merge pull request #9308 from ahocevar/vectortile-loader-projection
...
Simplify vector tile projection handling
2019-03-11 09:28:48 +01:00
Bart van den Eijnden
4a67bd86a8
Merge pull request #9312 from bartvde/stamen-minzoom
...
Update zoom levels for Stamen source
2019-03-11 09:17:50 +01:00
bartvde
9ad2924f00
Update zoom levels for Stamen source
2019-03-11 08:50:28 +01:00
Frederic Junod
0401aed6e3
Add transition options to Stamen source
2019-03-11 08:34:42 +01:00
ahocevar
b2722542fe
Simplify vector tile projection handling
2019-03-10 09:37:58 +01:00
Petr Sloup
67ee5a41b0
Add note about ignoring tileSize TileJSON property
2019-02-22 09:05:18 +01:00
Petr Sloup
bc25097899
Add tileSize option to ol/source/TileJSON
...
The TileJSON spec does not specify the tile size
and there is no TileJSON property specifying the value.
Many providers nowadays provide 512x512 with TileJSON.
2019-02-21 19:00:07 +01:00
Andreas Hocevar
6ce499532c
Merge pull request #9250 from ahocevar/clear-refresh
...
Clearer behaviour of clear() and refresh() on sources
2019-02-21 17:12:26 +01:00
Andreas Hocevar
90034e4d48
Merge pull request #9251 from ahocevar/cache-size
...
Fix cache size calculation
2019-02-21 01:57:40 +01:00
ahocevar
d06d00ccbb
Fix typo
2019-02-21 01:29:15 +01:00
Andreas Hocevar
959dba169d
Merge pull request #9110 from crubier/master
...
Add TilePixelRatio to Zoomify
2019-02-21 00:29:42 +01:00
Vincent Lecrubier
900adaaffb
Update Zoomify.js
2019-02-20 22:40:24 +00:00
ahocevar
94cd126189
Add setUrl function and don't reset loaded extents in setLoader
2019-02-20 21:55:29 +01:00
ahocevar
e4873a9952
Improve documentation for ol/Source#refresh
2019-02-20 20:40:09 +01:00
ahocevar
8d1022046e
Clear loaded extents when a new loader is set
2019-02-20 20:39:26 +01:00
ahocevar
f40cbf2cac
Do not reload on clear(), but on refresh()
2019-02-20 20:39:04 +01:00
ahocevar
a0ba8dd8c6
Add a clear() method for tile sources
2019-02-20 20:37:58 +01:00
ahocevar
667cadc403
Remove extent default so we catch errors when extent is not set
2019-02-18 12:07:10 +01:00
Vincent Lecrubier
44942dffb5
Update Zoomify.js
2019-02-18 10:04:02 +00:00
Frederic Junod
2879c0b6ad
Remove opt_this param in forDataAtCoordinate function
2019-02-07 11:51:28 +01:00
ahocevar
37eb6de37d
JSDoc fixes
2019-01-30 09:42:20 +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
164635f28c
Safer check for window.screen
2019-01-25 12:01:36 +01:00
ahocevar
b6d115d868
Make tile cache smaller and screen size dependant
2019-01-21 22:35:48 +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