kopia lustrzana https://github.com/OpenDroneMap/WebODM
Adjust url from custom baselayer in OSM
rodzic
9f4307e3fd
commit
5ca116299c
|
@ -7,7 +7,7 @@ PluginsAPI.Map.addActionButton(function(options){
|
|||
var tile = options.tiles[0];
|
||||
var url = window.location.protocol + "//" +
|
||||
window.location.host +
|
||||
tile.url.replace(/tiles\.json$/, "tiles/{zoom}/{x}/{ty}.png");
|
||||
tile.url + "tiles/{zoom}/{x}/{y}.png";
|
||||
|
||||
return React.createElement("button", {
|
||||
type: "button",
|
||||
|
|
Ładowanie…
Reference in New Issue