Commit Graph

24695 Commits

Author SHA1 Message Date
Guillaume Beraudo 5ecd832c92 Adapt test to new text builder behaviour 2018-11-15 15:20:41 +01:00
Guillaume Beraudo 87a1b926c9 Cleanup executor of unused properties 2018-11-15 15:20:41 +01:00
Guillaume Beraudo 4ba84d7926 Cleanly separate text building and execution 2018-11-15 15:20:41 +01:00
Guillaume Beraudo afc946b215 Cleanup duplicated and unused code 2018-11-15 15:20:41 +01:00
Guillaume Beraudo c0df61468f Move drawText along line to executor 2018-11-15 15:20:41 +01:00
Guillaume Beraudo 0ece0fb002 Cleanup unused text replay code 2018-11-15 15:20:41 +01:00
ahocevar 4ce19530ce Remove unused methods 2018-11-15 15:20:41 +01:00
ahocevar 3d203f990e Move measureTextWidths to render/canvas 2018-11-15 15:20:41 +01:00
Guillaume Beraudo 3170355b07 Remove unused function from executor 2018-11-15 15:20:41 +01:00
Guillaume Beraudo f5a8ad63f9 Improve typing 2018-11-15 15:20:41 +01:00
Guillaume Beraudo ba6a6fff7d Module renaming 2018-11-15 15:20:41 +01:00
Guillaume Beraudo 951d4d5ade Fix tests 2018-11-15 15:20:41 +01:00
Guillaume Beraudo e299863117 More renaming 2018-11-15 15:20:41 +01:00
Guillaume Beraudo f3bd08321a Rename Replay to InstructionsBuilder 2018-11-15 15:20:41 +01:00
Guillaume Beraudo 8097be8419 Remove replay code from Instruction Builder class 2018-11-15 15:20:41 +01:00
Guillaume Beraudo fcf470fc8d Introduce Instruction executors
Executors are use to render instructions.
They do not contain cod for building instructions.

Signed-off-by: Guillaume Beraudo <guillaume.beraudo@camptocamp.com>
2018-11-15 15:20:41 +01:00
Guillaume Beraudo ecf79a9ec2 First step in uncoupling replay creation and rendering
Signed-off-by: Guillaume Beraudo <guillaume.beraudo@camptocamp.com>
2018-11-15 15:20:41 +01:00
Frédéric Junod d0f66b7cec Merge pull request #8943 from fredj/text-style-tests
Port text style rendering tests
2018-11-15 15:20:11 +01:00
Frederic Junod 63b04210ab Allow tolerance to be passed to the render function 2018-11-15 12:51:15 +01:00
Frederic Junod 87c721b071 Port text style rendering tests 2018-11-15 12:51:15 +01:00
Frédéric Junod 0d94b1a566 Merge pull request #8940 from jahow/fix-overview
Make layers mandatory in the OverviewMap control
2018-11-15 12:18:29 +01:00
Olivier Guyot 593632daea Fix the OverviewMap control & example
Layers must now always be specified for the control.
Base example was amended to reflect that.

The breaking change was added in the update notes.
2018-11-15 12:04:49 +01:00
Frédéric Junod 96dd5417e3 Merge pull request #8938 from fredj/render-toContext-tests
Port render-toContext rendering test
2018-11-15 11:31:13 +01:00
Frederic Junod 68b4ef5ec8 Store rendering artifacts 2018-11-15 11:27:48 +01:00
Frederic Junod 6e964c7934 Port render-toContext rendering test 2018-11-15 11:27:48 +01:00
Frédéric Junod 50ae34fcc6 Merge pull request #8941 from fredj/render_message
Rendering tests render message
2018-11-15 10:36:16 +01:00
Frederic Junod f295a97894 Rendering tests render message 2018-11-14 21:37:45 +01:00
Frédéric Junod aa841c7de2 Merge pull request #8933 from fredj/icon-symbol-svg
Port icon-symbol-svg rendering test
2018-11-14 20:42:33 +01:00
Tim Schaub 0452da92d3 Merge pull request #8931 from fgravin/mapbox-layer
Add Mapbox-gl-js example
2018-11-14 17:14:05 +01:00
Tim Schaub 7ae051c07a Merge pull request #8937 from tschaub/debug-tiles
Make the tile debug source useful for understanding tiles
2018-11-14 17:06:52 +01:00
Frederic Junod bed9c6b09a Don't add mapbox-gl into dependencies 2018-11-14 16:34:36 +01:00
Florent gravin cac323a785 Add mapboxgl npm dependency 2018-11-14 16:30:52 +01:00
Florent gravin c62ebb9f61 Add mapbox-gl-js example 2018-11-14 16:30:52 +01:00
Frederic Junod 488a104a92 Port icon-symbol-svg rendering tests 2018-11-14 16:26:10 +01:00
Frédéric Junod 7a472321c4 Merge pull request #8930 from fredj/better_export_example
Give the layers container a CSS class name
2018-11-14 16:24:12 +01:00
Frédéric Junod 4adcb5ae6c Merge pull request #8914 from fredj/layer_className
Add new className property to ol/layer/Base
2018-11-14 16:23:56 +01:00
Frédéric Junod 19541699c3 Merge pull request #8910 from fredj/containsXY
Implements containsXY for all geometries
2018-11-14 16:23:26 +01:00
Tim Schaub d6e8711172 Merge pull request #8922 from fgravin/layerrenderapi
Layer is reponsible for its renderer
2018-11-14 16:09:23 +01:00
Tim Schaub 46b8f39c71 Merge pull request #8936 from tschaub/rendering-sourcemaps
Serve sourcemaps from webpack during rendering tests
2018-11-14 16:00:20 +01:00
Tim Schaub 0e91365859 Make the tile debug source useful for understanding tiles 2018-11-14 15:58:08 +01:00
Tim Schaub c74d80504e Serve sourcemaps from webpack 2018-11-14 15:51:56 +01:00
Frédéric Junod f9a7cf2251 Merge pull request #8932 from fredj/dt_pbf
Add pbf TypeScript type definitions
2018-11-14 14:02:38 +01:00
Frederic Junod 5afd8178f4 Add pbf TypeScript type definitions 2018-11-13 18:25:42 +01:00
Andreas Hocevar 82ab50a22b Merge pull request #8924 from ahocevar/reuse-vt-replays
Reuse vector tile replays for interim tiles
2018-11-13 17:21:38 +01:00
Frederic Junod bdf98d9003 Give the layers container an CSS class name 2018-11-13 17:04:07 +01:00
Frédéric Junod 2bc0d7f2ce Merge pull request #8918 from fredj/dom-to-image-more
Use dom-to-image-more library in export-map
2018-11-13 16:59:06 +01:00
ahocevar 30909ddbcd When rendering interim tiles, reuse existing replay groups 2018-11-13 16:08:49 +01:00
Andreas Hocevar cda23e0d53 Merge pull request #8928 from ahocevar/mapbox-style
Add vector tile example using ol-mapbox-style
2018-11-13 16:03:31 +01:00
ahocevar 5bfe7089af Update keywords 2018-11-13 15:58:33 +01:00
Frédéric Junod 9c0a7b9ba7 Fix typo
Co-Authored-By: ahocevar <andreas.hocevar@gmail.com>
2018-11-13 15:49:39 +01:00