Skip to content

Commit

Permalink
remove iframe coords click helper
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Dec 20, 2023
1 parent e329aa3 commit ee7a5d6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/routes/map/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,6 @@
// add tiles and basemaps
const baseMaps = layers(leaflet, map);
// add click event to help devs find lat/long of desired location for iframe embeds
map.on('click', () => {
const coords = map.getBounds();
// @ts-expect-error
console.log(`Here is your iframe embed URL: https://btcmap.org/map?lat=${coords._northEast.lat}&long=${coords._northEast.lng}&lat=${coords._southWest.lat}&long=${coords._southWest.lng}
Thanks for using BTC Map!`);
});
// add events to cache last viewed location so it can be used on next map launch
map.on('zoomend', () => {
const coords = map.getBounds();
Expand Down

0 comments on commit ee7a5d6

Please sign in to comment.