PMTile Source
This map shows how to use PMTile sources on a map.
<MapLibre
style="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
class={mapClasses}
standardControls
center={[-87.622088, 41.878781]}
zoom={10}
>
<VectorTileSource
url={'pmtiles://https://r2-public.protomaps.com/protomaps-sample-datasets/cb_2018_us_zcta510_500k.pmtiles'}
>
<LineLayer
paint={{
'line-opacity': 0.6,
'line-color': 'rgb(53, 175, 109)',
'line-width': 2,
}}
sourceLayer={'zcta'}
/>
</VectorTileSource>
</MapLibre>