-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Rescale vector tiles depending on dpi in print (#1911)
* Rescale vector tiles depending on dpi in print Added rescaling functionality in the olms extension. The extension creates one style for each configured print resolution, which is then applied when said print resolution is chosen. * Remove extensions.js from PR Remove extensions.js which was mistakenly added from the PR. * Created general method for scaling mapbox vector tiles Created a general method for scaling mapbox vector tiles to avoid duplicated almost identical code. The method is only used if the layer is of format 'mvt' to avoid applying it to regular vector tile layers. * Use style-type to determine if layer should use olms rescaling Style-type is now used instead of layer format to determine how to rescale the style of a mapbox vector tile. * Rescaling of circles in mapbox style added Circles in the mapbox vector tile style is now rescaled in the same way as other style elements. * Removed unnecessary null argument Removed null as argument from ScaleMapboxLayer
- Loading branch information
1 parent
9707c1d
commit e026d3b
Showing
3 changed files
with
102 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters