|
@@ -54,13 +54,12 @@ export function createLeafletMapProvider(): MapProvider {
|
|
|
return {
|
|
return {
|
|
|
async init(container, center, zoom) {
|
|
async init(container, center, zoom) {
|
|
|
try {
|
|
try {
|
|
|
- map = L.map(container, { zoomControl: true }).setView(
|
|
|
|
|
- [center[1], center[0]],
|
|
|
|
|
- zoom,
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ map = L.map(container, {
|
|
|
|
|
+ zoomControl: false,
|
|
|
|
|
+ attributionControl: false,
|
|
|
|
|
+ }).setView([center[1], center[0]], zoom)
|
|
|
|
|
|
|
|
L.tileLayer(TILE_URL, {
|
|
L.tileLayer(TILE_URL, {
|
|
|
- attribution: TILE_ATTR,
|
|
|
|
|
maxZoom: 19,
|
|
maxZoom: 19,
|
|
|
}).addTo(map)
|
|
}).addTo(map)
|
|
|
|
|
|