kopia lustrzana https://github.com/openstreetmap-polska/aed-mapa
Merge branch 'main' of https://github.com/openstreetmap-polska/aed-mapa into main
commit
170efd69b6
23
src/map.js
23
src/map.js
|
@ -15,19 +15,16 @@ var map = new maplibregl.Map({
|
|||
'https://c.tile.openstreetmap.org/{z}/{x}/{y}.png'
|
||||
],
|
||||
'tileSize': 256,
|
||||
'attribution':
|
||||
'map © <a target="_top" rel="noopener" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.',
|
||||
'attribution': 'map © <a target="_top" rel="noopener" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.',
|
||||
},
|
||||
},
|
||||
'layers': [
|
||||
{
|
||||
'id': 'background',
|
||||
'type': 'raster',
|
||||
'source': 'raster-tiles',
|
||||
'minzoom': 0,
|
||||
'maxzoom': 22,
|
||||
},
|
||||
]
|
||||
'layers': [{
|
||||
'id': 'background',
|
||||
'type': 'raster',
|
||||
'source': 'raster-tiles',
|
||||
'minzoom': 0,
|
||||
'maxzoom': 22,
|
||||
}, ]
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -46,7 +43,7 @@ map.on('load', () => {
|
|||
'source': 'aed-locations',
|
||||
'layout': {
|
||||
'icon-image': ['image', 'aed-icon'],
|
||||
'icon-size': 0.2,
|
||||
'icon-size': 0.1,
|
||||
},
|
||||
'filter': ['!', ['has', 'point_count']],
|
||||
});
|
||||
|
@ -78,4 +75,4 @@ map.on('load', () => {
|
|||
'filter': ['has', 'point_count'],
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
Ładowanie…
Reference in New Issue