kopia lustrzana https://github.com/OpenDroneMap/WebODM
Update Map.jsx to use correct tile.osm.org URL
See: https://github.com/openstreetmap/operations/issues/737pull/1375/head
rodzic
51f03be14e
commit
f5ff31b3ff
|
@ -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();
|
||||
|
|
Ładowanie…
Reference in New Issue