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, and satellite.
  • Most snippets below use streets or light as defaults.
  • You can swap only the {styleId} part in the URL and keep the rest unchanged.

Examples:

Last updated: March 13, 2026