Commit Graph

402 Commits

Author SHA1 Message Date
Olivier Guyot 442fa907ce Vector source / prevent adding features with duplicate id...
...in the collection.

Previously two features with the same id could be pushed manually in the
features collection and stay there.

This would cause an error when clearing the source.

Fixes #6183.
2019-05-24 23:29:48 +02:00
Lutz Helm 3895a59c5e Fix typo 2019-05-09 18:00:18 +02:00
Lutz Helm c25dba415f Add more IIIF tile source tests 2019-05-09 18:00:18 +02:00
Lutz Helm 27d943dcc3 Add tests for IIIF tile source and fix source
The tests are still incomplete.
This commit also corrects the IIIF source where tests have failed.
2019-05-09 18:00:18 +02:00
ahocevar 752b69680e Do not round view center to pixels 2019-04-17 15:52:58 -07:00
Frederic Junod 746f92d597 Fix tile state condition in raster layer test
The state was duplicated from the beginning, see 3ddb8712a3
2019-04-08 17:04:37 +02:00
Andreas Hocevar 3a7f9d93f4 Merge pull request #9357 from ahocevar/vectortile-view-resolution-2
Render vector tiles at the view resolution
2019-03-25 17:44:31 +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 a25ca03040 Do not use tile.load() for getting source tiles 2019-03-20 22:45:17 +01:00
Frederic Junod 72788187c8 Remove tilePixelRatio options from ol.source.VectorTile
Was removed in #7070
2019-03-18 14:35:58 +01:00
ahocevar ac0d67b273 Use closest lower source resolution for render tiles 2019-03-12 16:51:20 +01:00
Frederic Junod c01dee0884 Update Bing's imagerySet used in examples 2019-02-28 10:43:59 +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
ahocevar 4166c80c6e Test cache size 2019-02-21 01:35:40 +01:00
ahocevar 94cd126189 Add setUrl function and don't reset loaded extents in setLoader 2019-02-20 21:55:29 +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 8557bd96b5 Test refresh() for image sources 2019-02-20 20:36:40 +01:00
ahocevar ce7a1b4365 Add test to verify that removefeature is triggered 2019-02-04 12:46:51 +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
Tim Schaub e9a30c5cb7 Use standard tile coords 2018-11-21 11:14:17 -07:00
Tim Schaub 37c987de0a Move quadKey function to the one place it is used 2018-11-21 10:10:51 -07:00
Tim Schaub 2ec509fbca Add an image vector layer for rendering vectors to an image 2018-11-12 14:54:11 +01:00
ahocevar 4aff3d0631 Simplify logic for fixed tile url functions 2018-10-02 17:26:22 +02:00
Guillaume Beraudo 315cfa1033 Fix WMTS layers URLs with dimensions 2018-08-16 15:34:56 +02:00
Tim Schaub affbf59b77 Use Object<Foo, Bar> instead of Object.<Foo, Bar> 2018-07-25 18:33:49 -07:00
ahocevar 0a126b620c Use class keyword in tests 2018-07-18 16:30:09 +02:00
Tim Schaub 9ce36da349 Remove @extends and @constructor annotations 2018-07-18 00:36:29 -06:00
Frederic Junod f257a8938f Rename ol/source/TileUTFGrid to ol/source/UTFGrid 2018-06-19 14:02:15 +02:00
ahocevar 137c875df7 Support vector layers instead of renderers for ol/source/Raster 2018-05-28 10:23:47 +02:00
ahocevar f53a1e7507 Accept renderers as sources for the raster source 2018-05-25 12:18:02 +02:00
Ilia Choly b8d3bb5766 Add hasFeature method to ol.source.Vector 2018-04-17 14:22:30 -04:00
Tim Schaub 00f891c3f9 Named exports from ol/source/WMTS 2018-02-25 08:06:50 -07:00
Frederic Junod 2fd75566fb Named exports from ol/Observable 2018-02-21 09:01:08 +01:00
Marc Jansen 685b46f1e3 Named exports from tilecoord 2018-02-15 18:04:51 +01:00
Tim Schaub f95fe4caab Remove private static members from Zoomify source 2018-02-12 07:12:02 -07:00
Tim Schaub 564315a690 Remove private static members from TileUTFGrid source 2018-02-12 07:12:02 -07:00
Andreas Hocevar da8874862d Make sure the requested image size matches the desired ratio 2018-02-10 11:11:16 +01:00
Tim Schaub 9ed3881f34 Named exports from ol/tilegrid 2018-02-09 09:30:16 -07:00
Tim Schaub 25a607973d Merge pull request #7782 from tschaub/default-names
Named exports from specific proj modules
2018-02-08 04:03:31 -07:00
Tim Schaub 6701d19a45 Named exports from ol/proj/epsg3857 2018-02-07 12:44:02 -07:00
Tim Schaub cd9b06135f Named exports from ol/net 2018-02-07 11:35:05 -07:00
Marc Jansen 753ce9ca8e Named exports from loadingstrategy 2018-02-06 06:51:38 +01:00
Tim Schaub 7e7631c42a Named exports from ol/events 2018-01-24 10:09:57 -07:00
Frederic Junod 106fe3c138 Rename _ol_format_WMTSCapabilities_ to WMTSCapabilities 2018-01-15 10:26:36 +01:00
Tim Schaub ad62739a6e Use blocked scoped variables
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub aa89746c47 Rename _ol_proj_Projection_ to Projection 2018-01-11 13:33:41 -07:00
Tim Schaub 176021e188 Rename _ol_Collection_ to Collection 2018-01-11 12:06:58 -07:00
Tim Schaub 1552f27a43 Rename _ol_Tile_ to Tile 2018-01-11 12:06:58 -07:00