Add TileLayer Presets configuration

This commit is contained in:
William Lima
2024-06-18 22:01:59 -01:00
parent 31406d48e3
commit 134f72948c
4 changed files with 1338 additions and 33 deletions

View File

@@ -43,11 +43,9 @@ type Story = StoryObj<MapProps>;
export const GeoJSONPolygons: Story = {
name: 'GeoJSON polygons map',
args: {
tile : {
url : 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}',
attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://www.mapbox.com/about/maps/">Mapbox</a>',
tileLayerName:'OpenStreetMap',
tileLayerOptions:{
accessToken : 'pk.eyJ1Ijoid2lsbHktcGFsbWFyZWpvIiwiYSI6ImNqNzk5NmRpNDFzb2cyeG9sc2luMHNjajUifQ.lkoVRFSI8hOLH4uJeOzwXw',
id: 'mapbox/streets-v10'
},
layers: [
{