Implements Custom Tile Layer
#1121 adds default tile layer and allows user to pass a tile object to map
This commit is contained in:
@@ -43,6 +43,13 @@ type Story = StoryObj<MapProps>;
|
||||
export const GeoJSONPolygons: Story = {
|
||||
name: 'GeoJSON polygons map',
|
||||
args: {
|
||||
tile : {
|
||||
url : 'https://tiles.stadiamaps.com/tiles/alidade_satellite/{z}/{x}/{y}{r}.{ext}',
|
||||
attribution:'© CNES, Distribution Airbus DS, © Airbus DS, © PlanetObserver (Contains Copernicus Data) | © <a href="https://www.stadiamaps.com/" target="_blank">Stadia Maps</a> © <a href="https://openmaptiles.org/" target="_blank">OpenMapTiles</a> © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
||||
data: {
|
||||
ext: 'jpg'
|
||||
}
|
||||
},
|
||||
layers: [
|
||||
{
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user