Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/core/src/style/polylineStyle.cpp b/core/src/style/polylineStyle.cpp
- index 9bb3a2bb..cd155c4f 100644
- --- a/core/src/style/polylineStyle.cpp
- +++ b/core/src/style/polylineStyle.cpp
- @@ -238,13 +238,13 @@ void PolylineStyleBuilder<V>::setup(const Marker& marker, int zoom) {
- m_zoom = zoom;
- m_overzoom2 = 1.f;
- - m_tileUnitsPerMeter = 1.f / marker.extent();
- + m_tileUnitsPerMeter = 1.f / marker.modelScale();
- float metersPerTile = MapProjection::metersPerTileAtZoom(zoom);
- // In general, a Marker won't cover the same area as a tile, so the effective
- // "tile size" for building a Marker is the size of a tile in pixels multiplied
- // by the ratio of the Marker's extent to the length of a tile side at this zoom.
- - m_tileUnitsPerPixel = metersPerTile / (marker.extent() * 256.f);
- + m_tileUnitsPerPixel = metersPerTile / (marker.modelScale() * 256.f);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement