SDK Examples
Jump into Mappinest map style integration examples for Mapbox GL JS, MapLibre GL, Leaflet, OpenLayers, and desktop GIS.
These SDK examples use the StyleJSON endpoint. Start by choosing a style from Mappinest Styles, then replace YOUR_KEY and the style ID in each snippet.
- The supported style IDs are
streets,light,dark, andsatellite. - Most snippets below use
streetsorlightas defaults. - You can swap only the
{styleId}part in the URL and keep the rest unchanged.
Examples:
Last updated: March 13, 2026