Bring an open catalog of geospatial services to your Leaflet, OpenLayers or MapLibre GL JS application with just a few lines of code.
If you develop web mapping applications, you are probably familiar with the routine of finding suitable basemaps, searching for service URLs, configuring tile layers and building basemap selection controls.
What if you could simply embed an existing catalog of geospatial services directly into your application?
With the new QuickMapServices SDK, available as part of NextGIS Frontend, you can do exactly that.

QuickMapServices (QMS) is an open, community-driven catalog of geospatial services maintained by NextGIS. It brings together satellite imagery, topographic maps, historical maps, government geospatial services, thematic layers and much more.
Many GIS professionals know QuickMapServices as one of the most popular QGIS plugins, with more than 13 million downloads.

However, QuickMapServices has long been more than a QGIS plugin. It is an open catalog with a dedicated web interface, a public API and integrations with desktop, mobile and web GIS applications.
Now, we are making it easy for web developers to integrate QMS into their own applications!
The new SDK provides dedicated JavaScript packages for three widely used web mapping libraries:
Leaflet: @nextgis/qms-leaflet
OpenLayers: @nextgis/qms-ol
MapLibre GL JS: @nextgis/qms-maplibre-gl
Each package works directly with an existing native map instance. There is no need to change your mapping library, rebuild your application or use NextGIS Web as a backend.
With these libraries, you can:
Already have a Leaflet map? Install the QMS package:
npm install @nextgis/qms-leaflet
Import the component and add it to your existing map:
import { createQmsControl } from '@nextgis/qms-leaflet';
import '@nextgis/qms-leaflet/lib/qms-leaflet.css';
createQmsControl({
initialLayer: 448,
position: 'topright'
}).addTo(map);
That’s it! Your Leaflet map now has an integrated QuickMapServices search and catalog control. Users can discover available map services and display them without leaving your application.
Try the interactive Leaflet example
The integration with OpenLayers is just as straightforward:
npm install @nextgis/qms-ol
import { createQmsControl } from '@nextgis/qms-ol';
import '@nextgis/qms-ol/lib/qms-ol.css';
map.addControl(createQmsControl({
initialLayer: 448
}));
The QMS control can also be placed in a separate HTML container, making it easy to integrate the catalog into a sidebar or a custom application layout.
Try the interactive OpenLayers example
If you are building your application with MapLibre GL JS, the integration follows the same pattern:
npm install @nextgis/qms-maplibre-gl
import { createQmsControl } from '@nextgis/qms-maplibre-gl';
import '@nextgis/qms-maplibre-gl/lib/qms-maplibre-gl.css';
map.addControl(
createQmsControl({ initialLayer: 448 }),
'top-left'
);
The same QuickMapServices catalog and a consistent user experience, regardless of the underlying mapping library.
Try the interactive MapLibre GL JS example

The SDK is not limited to providing a ready-made user interface. You can also interact with QuickMapServices programmatically.
For example, adding a particular QMS service to a Leaflet map requires just a service ID:
import { addQmsLayer } from '@nextgis/qms-leaflet';
await addQmsLayer(map, 448);
If you are working with a regional dataset, you can also automatically adjust the map extent when adding it:
await addQmsLayer(map, 4646, {
fit: {
padding: [24, 24],
maxZoom: 14
}
});
This makes it possible to reference geospatial services by their QMS identifiers in your application configuration rather than manually storing and configuring service URLs.
Want to build a completely custom interface or integrate QuickMapServices with another mapping library?
The @nextgis/qms-core package provides map-independent access to QMS functionality.
npm install @nextgis/qms-core
For example, you can search the catalog programmatically:
import { QmsClient } from '@nextgis/qms-core';
const qms = new QmsClient();
const services = await qms.searchServices(
'OpenStreetMap',
{ type: 'tms' }
);
console.log(services);
You can retrieve individual service definitions, obtain their geographic extents and use the shared QMS interface components to build your own integration.
This opens up possibilities beyond traditional web maps, including custom geospatial data discovery tools, map configuration interfaces and specialized GIS applications.
Explore the QMS Core documentation
The built-in QMS control is designed to be customizable. Developers can independently enable or disable catalog browsing and search, adjust the number of search results, customize styling and define the initial map layer.
Whether you are developing an environmental monitoring dashboard, a municipal geoportal, a real estate application, a scientific data explorer or a general-purpose web mapping tool, QuickMapServices can help you extend its capabilities without reinventing the basemap management functionality.
One of the ideas behind QuickMapServices is to make geospatial services easier to discover and reuse, regardless of the software people are working with.

A service registered in QMS becomes discoverable by QGIS users, web GIS users, mobile applications and now developers building their own web mapping solutions.
The more applications integrate QuickMapServices, the more valuable the shared catalog becomes for both data providers and data users!
The new QMS SDK is open-source and available as part of NextGIS Frontend.
Explore the documentation, try the interactive examples and bring QuickMapServices to your own web map!
Black Friday
50% off NextGIS spatial data and cloud subscriptions. Follow us on LinkedIn to be notified when the promotion starts.