Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.91 KB | None | 0 0
  1. diff --git a/core/src/style/polylineStyle.cpp b/core/src/style/polylineStyle.cpp
  2. index 9bb3a2bb..cd155c4f 100644
  3. --- a/core/src/style/polylineStyle.cpp
  4. +++ b/core/src/style/polylineStyle.cpp
  5. @@ -238,13 +238,13 @@ void PolylineStyleBuilder<V>::setup(const Marker& marker, int zoom) {
  6.  
  7.      m_zoom = zoom;
  8.      m_overzoom2 = 1.f;
  9. -    m_tileUnitsPerMeter = 1.f / marker.extent();
  10. +    m_tileUnitsPerMeter = 1.f / marker.modelScale();
  11.      float metersPerTile = MapProjection::metersPerTileAtZoom(zoom);
  12.  
  13.      // In general, a Marker won't cover the same area as a tile, so the effective
  14.      // "tile size" for building a Marker is the size of a tile in pixels multiplied
  15.      // by the ratio of the Marker's extent to the length of a tile side at this zoom.
  16. -    m_tileUnitsPerPixel = metersPerTile / (marker.extent() * 256.f);
  17. +    m_tileUnitsPerPixel = metersPerTile / (marker.modelScale() * 256.f);
  18.  
  19.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement