OpenLayers with Mappinest
Use OpenLayers with Mappinest map styles, uploaded vector tilesets, and uploaded raster tilesets.
Choose a OpenLayers guide
These OpenLayers guides separate each integration path into its own page. Start with the map style guide for available Mappinest map styles, then use the vector or raster tileset guides for your own uploaded data.
If your tileset starts as an MBTiles or PMTiles file, upload it through the console first. See Upload Data for the full upload workflow, then return with the tileset Id and API key from API Keys & Access.
Load a Mappinest style in OpenLayers
Use StyleJSON when you want an available Mappinest map style such as streets, light, dark, or satellite.
Add an uploaded vector tileset in OpenLayers
Use TileJSON when your uploaded MBTiles or PMTiles file contains vector tiles and you want the tile template, bounds, zoom range, and source layer metadata behind one URL.
Add an uploaded raster tileset in OpenLayers
Use TileJSON when you want the raster tile template and zoom metadata behind one URL, or use direct raster XYZ URLs when the integration requires a tile template.
What each guide uses
What to read next
Last updated: June 24, 2026