Add TileLayer Presets configuration
This commit is contained in:
@@ -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:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://www.mapbox.com/about/maps/">Mapbox</a>',
|
||||
tileLayerName:'OpenStreetMap',
|
||||
tileLayerOptions:{
|
||||
accessToken : 'pk.eyJ1Ijoid2lsbHktcGFsbWFyZWpvIiwiYSI6ImNqNzk5NmRpNDFzb2cyeG9sc2luMHNjajUifQ.lkoVRFSI8hOLH4uJeOzwXw',
|
||||
id: 'mapbox/streets-v10'
|
||||
},
|
||||
layers: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user