ts-maps

Examples

Twelve examples. Each page has a .ts sibling you can copy into your own project.

To try the library without installing anything, open the playground: every demo there runs in the browser, from a real basemap and search to turn-by-turn and offline maps.

#TitleWhat it shows
01Basic mapOSM basemap + marker + popup.
02CameraBearing, pitch, flyTo, easeTo.
03Vector tilesSynthetic MVT through VectorTileMapLayer.
04Style specsetStyle + dynamic setPaintProperty.
05Heatmap500 random points with an animated gradient.
06HillshadeSynthetic DEM + hillshade preview.
07Clusters5,000 points in GeoJSONClusterSource.
08SymbolsLabeled POIs with collision.
09GeocoderSearch box wired to Nominatim.
10DirectionsClick two points, draw OSRM route.
11OfflineDownload a bbox, toggle the network.
12GlobeCanvas2D orthographic projection preview.