Skip to content

Demo - Examples


SDK EXAMPLES

Display a map

Initialize a map in an HTML element with MapLibre GL JS.

tile

Source code demo:

jslogo reactjslogo angularlogo vuejslogo

Add a GeoJSON line

Add a GeoJSON line to a map using addSource, then style it using addLayer’s paint properties.

tile

Source code demo:

jslogo1 reactjslogo1 angularlogo1 vuejslogo1

Add a GeoJSON polygon

Add a GeoJSON polygon to a map using addSource, then style a polygon with the fill layer type.

tile

Source code demo:

jslogo2 reactjslogo2 angularlogo2 vuejslogo2