Skip to content

Commit ed54ffc

Browse files
authored
Merge pull request #263 from open-energy-transition/mapit-andy
added our hashtag in gfl
2 parents 69d8b92 + cf7e99a commit ed54ffc

File tree

1 file changed

+3
-3
lines changed
  • overrides/assets/javascripts

1 file changed

+3
-3
lines changed

overrides/assets/javascripts/gfl.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,19 @@ function getCountryFlag(country) {
8181
function createJOSMUrl(lat, lon) {
8282
// Use a small buffer around the point for zoom
8383
const buffer = 0.001;
84-
const josmUrl = `http://localhost:8111/zoom?left=${lon - buffer}&right=${lon + buffer}&top=${lat + buffer}&bottom=${lat - buffer}`;
84+
const josmUrl = `http://localhost:8111/zoom?left=${lon - buffer}&right=${lon + buffer}&top=${lat + buffer}&bottom=${lat - buffer}&changeset_tags=hashtags=mapyourgrid`;
8585

8686
const iframe = document.createElement('iframe');
8787
iframe.style.display = 'none';
8888
iframe.src = josmUrl;
8989
document.body.appendChild(iframe);
9090
setTimeout(() => document.body.removeChild(iframe), 1000);
9191

92-
alert('✓ Great! Now go to JOSM');
92+
alert('✓ Great! Now go to JOSM.');
9393
}
9494

9595
function createiDUrl(lat, lon) {
96-
return `https://www.openstreetmap.org/edit#map=18/${lat}/${lon}`;
96+
return `https://www.openstreetmap.org/edit#map=18/${lat}/${lon}&hashtags=mapyourgrid`;
9797
}
9898

9999
async function loadLines() {

0 commit comments

Comments
 (0)