Fix export
This commit is contained in:
parent
74293c8946
commit
1f4e41f672
2 changed files with 6 additions and 5 deletions
|
@ -161,6 +161,7 @@ $(document).ready(function () {
|
|||
$("#query").focus();
|
||||
}
|
||||
|
||||
initializeExport(map);
|
||||
initializeBrowse(map);
|
||||
initializeNotes(map);
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$(document).ready(function () {
|
||||
function initializeExport(map) {
|
||||
$("#exportanchor").click(function (e) {
|
||||
$.ajax({ url: $(this).data('url'), success: function (sidebarHtml) {
|
||||
startExport(sidebarHtml);
|
||||
|
@ -38,7 +38,7 @@ $(document).ready(function () {
|
|||
|
||||
openSidebar();
|
||||
|
||||
if (getMapBaseLayerId() == "mapnik") {
|
||||
if (getMapBaseLayerId(map) == "mapnik") {
|
||||
$("#format_mapnik").prop("checked", true);
|
||||
}
|
||||
|
||||
|
@ -186,7 +186,7 @@ $(document).ready(function () {
|
|||
|
||||
function htmlUrlChanged() {
|
||||
var bounds = getBounds();
|
||||
var layerName = getMapBaseLayerId();
|
||||
var layerName = getMapBaseLayerId(map);
|
||||
|
||||
var url = "http://" + OSM.SERVER_URL + "/export/embed.html?bbox=" + bounds.toBBoxString() + "&layer=" + layerName;
|
||||
var markerUrl = "";
|
||||
|
@ -203,7 +203,7 @@ $(document).ready(function () {
|
|||
|
||||
var zoom = map.getBoundsZoom(bounds);
|
||||
|
||||
var layers = getMapLayers();
|
||||
var layers = getMapLayers(map);
|
||||
|
||||
var text = I18n.t('export.start_rjs.view_larger_map');
|
||||
var escaped = [];
|
||||
|
@ -281,4 +281,4 @@ $(document).ready(function () {
|
|||
validateControls();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue