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();
|
$("#query").focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
initializeExport(map);
|
||||||
initializeBrowse(map);
|
initializeBrowse(map);
|
||||||
initializeNotes(map);
|
initializeNotes(map);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
$(document).ready(function () {
|
function initializeExport(map) {
|
||||||
$("#exportanchor").click(function (e) {
|
$("#exportanchor").click(function (e) {
|
||||||
$.ajax({ url: $(this).data('url'), success: function (sidebarHtml) {
|
$.ajax({ url: $(this).data('url'), success: function (sidebarHtml) {
|
||||||
startExport(sidebarHtml);
|
startExport(sidebarHtml);
|
||||||
|
@ -38,7 +38,7 @@ $(document).ready(function () {
|
||||||
|
|
||||||
openSidebar();
|
openSidebar();
|
||||||
|
|
||||||
if (getMapBaseLayerId() == "mapnik") {
|
if (getMapBaseLayerId(map) == "mapnik") {
|
||||||
$("#format_mapnik").prop("checked", true);
|
$("#format_mapnik").prop("checked", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ $(document).ready(function () {
|
||||||
|
|
||||||
function htmlUrlChanged() {
|
function htmlUrlChanged() {
|
||||||
var bounds = getBounds();
|
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 url = "http://" + OSM.SERVER_URL + "/export/embed.html?bbox=" + bounds.toBBoxString() + "&layer=" + layerName;
|
||||||
var markerUrl = "";
|
var markerUrl = "";
|
||||||
|
@ -203,7 +203,7 @@ $(document).ready(function () {
|
||||||
|
|
||||||
var zoom = map.getBoundsZoom(bounds);
|
var zoom = map.getBoundsZoom(bounds);
|
||||||
|
|
||||||
var layers = getMapLayers();
|
var layers = getMapLayers(map);
|
||||||
|
|
||||||
var text = I18n.t('export.start_rjs.view_larger_map');
|
var text = I18n.t('export.start_rjs.view_larger_map');
|
||||||
var escaped = [];
|
var escaped = [];
|
||||||
|
@ -281,4 +281,4 @@ $(document).ready(function () {
|
||||||
validateControls();
|
validateControls();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue