tangrams / tangram

WebGL map rendering engine for creative cartography
https://tangram.city
MIT License
2.22k stars 290 forks source link

Transition from one data source to another #752

Closed Shanki1 closed 4 years ago

Shanki1 commented 4 years ago

Hi I have two data sources. first i load png source till certain zoom level and after that the vector data source the issue is the png is still on the page while the vector is loading so is there a way to refresh or erase the png's on the map after certain zoom level and get a specific data source

thank you

bcamper commented 4 years ago

Try using the max_display_zoom parameter on your raster data source: https://tangrams.readthedocs.io/en/master/Syntax-Reference/sources/#max_display_zoom-min_display_zoom

Shanki1 commented 4 years ago

Hi

Thank you so much it worked !!!!