Closed Zaitsev closed 4 years ago
Hi - this looks like the intended behavior. The bounds
parameter determines which tiles are requested for a data source, but it is not a visual clipping parameter. The primary intended use of the feature is to avoid 404 tile responses (spurious errors), usually in cases where the geometry does not extend outside of the bounds, so effect you are pointing out is not visible (e.g. empty area around features that are completely inside the bounds). You would have to implement any visual clipping of geometry yourself, if you need to do this client-side, you could try a data source transform
function.
TANGRAM VERSION:
0.20
If you're not using the latest version, please try that first before filing an issue!
ENVIRONMENT:
https://play.tangram.city/?#4.167/57.429/1.644
TO REPRODUCE THE ISSUE, FOLLOW THESE STEPS:
RESULT:
clipping rectangle "jumpy" not consistent with coordinates, its scaling etc
I'd tested it with bounds from documentation
bounds: [-74.1274, 40.5780, -73.8004, 40.8253]
with the same errorsEXPECTED RESULT:
it should clipp map by given bounds coordinates