Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunsinghofficial committed Sep 23, 2024
1 parent b794af3 commit a4df314
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/components/MapContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src/lib/Provider/GoogleMapProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
}
</script>
<div class="absolute top-0 left-0 right-0 z-40">
<div class="absolute left-0 right-0 top-0 z-40">
<Header on:searchResults={handleSearch} />
</div>
Expand All @@ -91,7 +91,7 @@
on:stopSelected={stopSelected}
/>
{:else}
<p class="dark:text-gray-200 p-4 text-center">No results found.</p>
<p class="p-4 text-center dark:text-gray-200">No results found.</p>
{/if}
</ModalPane>
{/if}
Expand Down

0 comments on commit a4df314

Please sign in to comment.