Map layer groups visibility animation

Making key layers of the map appear in an animation.

View on GitHub
SDK 1.0.0-rc.7

The map assembles itself a layer group at a time, borders first and traffic flow last, then clears and starts over.

  • BaseMapModule.setVisible takes the layerGroups to act on, so each step is one call with one group name and no layer ids anywhere.
  • TrafficIncidentsModule, POIsModule and TrafficFlowModule sit in the same array of steps, because showing a module or a base map group is the same setVisible call.
  • map.mapLibreMap hands back the MapLibre map underneath, so the slow zoomTo running throughout is plain MapLibre.

Related examples