tangrams / tangram

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

basemap tiles aren't loading while setDataSource is also being called #622

Open burritojustice opened 7 years ago

burritojustice commented 7 years ago

TANGRAM VERSION:

0.14.2 (via mapzen.js 0.9)

ENVIRONMENT:

Mac OS X 10.12.16, Chrome 61.0.3163.100

TO REPRODUCE THE ISSUE, FOLLOW THESE STEPS:

call scene.setDataSource for a layer (in this case, point geojson from the Mapzen Places API) while panning or zooming the map, forcing the loading of basemap tiles

http://mapzen.github.io/marketing/demos/services/index.html#lat=37.74398&lng=-122.42163&z=16.2917

RESULT:

some tiles don't load when panning and zooming the map

EXPECTED RESULT:

all tiles should load

(adding a scene.update.config() after drawing the points will force all tiles that didn't load to load (h/t @rfriberg) but it would be nice if all tiles loaded)