Skip to content

Commit

Permalink
Merge pull request #1375 from Firefishy/patch-1
Browse files Browse the repository at this point in the history
Update Map.jsx to use correct tile.osm.org URL
  • Loading branch information
pierotofy authored Sep 2, 2023
2 parents 51f03be + f5ff31b commit 510cd96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/static/app/js/components/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -399,14 +399,14 @@ class Map extends React.Component {

const customLayer = L.layerGroup();
customLayer.on("add", a => {
const defaultCustomBm = window.localStorage.getItem('lastCustomBasemap') || 'https://a.tile.openstreetmap.org/{z}/{x}/{y}.png';
const defaultCustomBm = window.localStorage.getItem('lastCustomBasemap') || 'https://tile.openstreetmap.org/{z}/{x}/{y}.png';

let url = window.prompt([_('Enter a tile URL template. Valid coordinates are:'),
_('{z}, {x}, {y} for Z/X/Y tile scheme'),
_('{-y} for flipped TMS-style Y coordinates'),
'',
_('Example:'),
'https://a.tile.openstreetmap.org/{z}/{x}/{y}.png'].join("\n"), defaultCustomBm);
'https://tile.openstreetmap.org/{z}/{x}/{y}.png'].join("\n"), defaultCustomBm);

if (url){
customLayer.clearLayers();
Expand Down

0 comments on commit 510cd96

Please sign in to comment.