Map effects playground
Post-process the map with bloom, glare, grade, tint, fog, edge blur, depth of field and vignette.
A tilted dark map of Amsterdam with live traffic is post-processed from its own pixels, so every effect works on any style.
effectKnobCataloguegenerates one control per knob, with its range and default, without a map loaded.effects.applyConfigswaps in a whole use case at once, a muted base for data or a glow for night driving, written as a typed config. Each control instead callssetKnob, which changes only the knob it names.- The street lights use case scopes glare and bloom
to
colors.roadMajor, so the major roads shine in the colour the loaded style paints them. - The milky distance use case sets
fog.colorto a pale air over the dark style. Without it, the fog takes the theme’s own dark air. setKnobsrestores the panel fromlocalStorageon reload. Saved values are data, so it checks each one against its knob and sets none if one is refused.capturere-renders the view and its effects at twice the pixel ratio into one canvas.
Related examples
Bloom playground
Every bloom knob on one panel, including the scope that decides which part of the map is allowed to glow.
Playground
Traffic
Map Style
Plugins
Web
Cinematic city fly-by
Fly like a bird through eight cities and over five landscapes, banking round their landmarks and down their avenues, in twenty looks with skies, typefaces and effects of their own
Playground
Terrain and 3D
Map Style
Plugins
Web
Cinematic city orbit
Circle the Empire State Building through Midtown in eight looks, each mixing 3D buildings, bloom, depth of field and a map theme
Playground
Terrain and 3D
Map Style
Plugins
Web
GL Surfaces playground
Give the map's water, glaciers, forests, fields, sand, mud, paving and roads living textures, and tune their look live
Playground
Map Style
Plugins
Web