@nextgis/qms-kit
v2.1.0
Published
Build webmap with QuickMapServices
Downloads
511
Readme
Qms kit
Build webmap with QuickMapServices baselayers.
Usage
Use with webmap starter kit
import { WebMap } from '@nextgis/webmap';
import { QmsKit } from '@nextgis/qms-kit';
import LeafletMapAdapter from '@nextgis/leaflet-map-adapter';
const webMap = new WebMap({
mapAdapter: new LeafletMapAdapter(),
starterKits: [new QmsKit()],
});
webMap.addBaseLayer('QMS', { qmsId: 3335 });
Use with createQmsAdapter function
import { WebMap } from '@nextgis/webmap';
import { createQmsAdapter } from '@nextgis/qms-kit';
import LeafletMapAdapter from '@nextgis/leaflet-map-adapter';
const webMap = new WebMap({
mapAdapter: new LeafletMapAdapter(),
});
webMap.addBaseLayer(createQmsAdapter({ webMap, qmsId: 3335 }));