Skip to content

Commit

Permalink
Rescaling of circles in mapbox style added
Browse files Browse the repository at this point in the history
Circles in the mapbox vector tile style is now rescaled
in the same way as other style elements.
  • Loading branch information
sweco-seguro committed Dec 8, 2023
1 parent 9558c57 commit 9cd8ea6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/extensions/olms.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ const Olms = function Olms(options = {}) {
if (lineWidth) {
paint['line-width'] = Style.multiplyByFactor(lineWidth, dpi);
}
const circleRadius = paint['circle-radius'];
if (circleRadius) {
paint['circle-radius'] = Style.multiplyByFactor(circleRadius, dpi);
}
const circleStrokeWidth = paint['circle-stroke-width'];
if (circleStrokeWidth) {
paint['circle-stroke-width'] = Style.multiplyByFactor(circleStrokeWidth, dpi);
}
}
if (layout) {
const textSize = layout['text-size'];
Expand Down

0 comments on commit 9cd8ea6

Please sign in to comment.