stevevance / ttp-2016-transit-investments

Map of the transit investments in 2016
11 stars 5 forks source link

Make existing systems always the bottom layer of geojsons #36

Open yfreemark opened 8 years ago

yfreemark commented 8 years ago

Because several of the projects on the renovations geojson are positioned directly on top of existing lines, it would be preferable for the existing lines geojson to be at the bottom.

stevevance commented 8 years ago

The code loads each file asynchronously. Each layer is begun to be added to the map in the order it is listed in the array, but some layers may take longer to add to the map because they have more data.

I think a solution would be to add a new property in the layers array that is "delay": true and then I would edit the processLayers() function to delay adding those by 1 second.