diff --git a/src/components/minimap/Minimap.ts b/src/components/minimap/Minimap.ts index 8757252..468ef67 100644 --- a/src/components/minimap/Minimap.ts +++ b/src/components/minimap/Minimap.ts @@ -11,6 +11,7 @@ export default class Minimap extends Vue { mounted() { const map = L.map('map', { center: [47.71, 13.55], + zoomControl: false, // Disable zoom controls zoom: 6, maxZoom: 9, minZoom: 5, @@ -55,13 +56,13 @@ export default class Minimap extends Vue { // If y_min and y_max (and x_min and x_max) are equal, generate a circle const center = [southWest[0], southWest[1]] as L.LatLngExpression; const radius = 1000; // You can adjust the radius as needed - const circle = L.circle(center, { radius, color: '#336699', weight: 4, opacity: 1 }).addTo(map); + const circle = L.circle(center, { radius, color: '#30D5C8', weight: 4, opacity: 1 }).addTo(map); //336699 // Fit the map's view to the circle's bounds map.fitBounds(circle.getBounds()); } else { // Otherwise, generate a rectangle - const rectangle = L.rectangle(this.bounds, { color: '#336699', weight: 2, opacity: 1 }).addTo(map); + const rectangle = L.rectangle(this.bounds, { color: '#30D5C8', weight: 2, opacity: 1 }).addTo(map); //336699 // Fit the map's view to the rectangle's bounds map.fitBounds(this.bounds);