Adjust url from custom baselayer in OSM

pull/801/head
James Léon-Dufour 2020-01-23 13:09:14 -05:00
rodzic 9f4307e3fd
commit 5ca116299c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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",