DATA is a compilation of files which are regularly used.
PMTiles is a single-file archive format for tiled data. Use the script below to initialize MapLibre. You can use this in any application.
import maplibregl from 'maplibre-gl';
import { Protocol } from 'pmtiles';
const protocol = new Protocol();
maplibregl.addProtocol("pmtiles", protocol.tile);
const map = new maplibregl.Map({
container: 'map',
style: {
version: 8,
sources: {
"mapsource": {
type: "vector",
url: "pmtiles://https://objects.eplg.cloud/maps/planet.pmtiles"
}
},
layers: [
]
},
center: [-74.006, 40.7128],
zoom: 10
});Interactive map using PMTiles data. You can zoom and pan to explore the map.