-
I have a point PMTiles layer uploaded on my server: https://lidar.digitalforestry.org/vt/in/2022/IN2022-Address_Points.pmtiles |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It should work. Make sure you use the correct the layer name. https://protomaps.github.io/PMTiles/?url=https%3A%2F%2Flidar.digitalforestry.org%2Fvt%2Fin%2F2022%2FIN2022-Address_Points.pmtiles#map=7.46/39.614/-86.797 |
Beta Was this translation helpful? Give feedback.
-
Try this one. The style can be a mapbox style. import leafmap.foliumap as leafmap
m = leafmap.Map()
style = {
"version": 8,
"sources": {
"example_source": {
"type": "vector",
"url": "pmtiles://" + url,
"attribution": 'PMTiles',
}
},
"layers": [
{
"id": "in2022_address_points",
"source": "example_source",
"source-layer": "in2022_address_points",
"type": "circle",
'paint': {
'circle-radius': 3,
'circle-color': '#0000ff'
}
},
],
}
m.add_pmtiles(
url, name='PMTiles', style=style, overlay=True, show=True, zoom_to_layer=True
)
m |
Beta Was this translation helpful? Give feedback.
Try this one. The style can be a mapbox style.