All examples By author By category About

Andrew-Reid

Toggle topojson layers (change visibility)

Alternative approach to toggling layers, compared to : Toggling layers, reload file

Has the advantage of loading data only once, so it should be a smoother transition between toggles.

Click anywhere on the map to toggle layers.