diff --git a/src/components/MapContainer.svelte b/src/components/MapContainer.svelte index cff43f4..4c9f69a 100644 --- a/src/components/MapContainer.svelte +++ b/src/components/MapContainer.svelte @@ -2,7 +2,10 @@ import MapView from './map/MapView.svelte'; import GoogleMapProvider from '$lib/Provider/GoogleMapProvider'; import OpenStreetMapProvider from '$lib/Provider/OpenStreetMapProvider'; - import { PUBLIC_OBA_MAP_PROVIDER, PUBLIC_OBA_GOOGLE_MAPS_API_KEY as apiKey } from '$env/static/public'; + import { + PUBLIC_OBA_MAP_PROVIDER, + PUBLIC_OBA_GOOGLE_MAPS_API_KEY as apiKey + } from '$env/static/public'; import { createEventDispatcher, onMount } from 'svelte'; let mapProvider = null; diff --git a/src/lib/Provider/GoogleMapProvider.js b/src/lib/Provider/GoogleMapProvider.js index acfcf30..1873a29 100644 --- a/src/lib/Provider/GoogleMapProvider.js +++ b/src/lib/Provider/GoogleMapProvider.js @@ -66,17 +66,17 @@ export default class GoogleMapProvider { }); const overlay = new google.maps.OverlayView(); - overlay.onAdd = function() { + overlay.onAdd = function () { this.getPanes().overlayMouseTarget.appendChild(container); }; - overlay.draw = function() { + overlay.draw = function () { const projection = this.getProjection(); const position = projection.fromLatLngToDivPixel(marker.getPosition()); container.style.left = position.x - 20 + 'px'; container.style.top = position.y - 20 + 'px'; container.style.position = 'absolute'; }; - overlay.onRemove = function() { + overlay.onRemove = function () { container.parentNode.removeChild(container); }; overlay.setMap(this.map); diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index a9cedfd..b68dbc5 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -66,7 +66,7 @@ } -
No results found.
+No results found.
{/if} {/if}