Move export-related JS to export.js
This commit is contained in:
parent
012d5b69c6
commit
52daf1dbc4
2 changed files with 283 additions and 281 deletions
|
@ -108,17 +108,6 @@ $(document).ready(function () {
|
|||
map.setCenter(centre, zoom);
|
||||
});
|
||||
|
||||
$("#exportanchor").click(function (e) {
|
||||
$.ajax({ url: $(this).data('url'), success: function (sidebarHtml) {
|
||||
startExport(sidebarHtml);
|
||||
}});
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
if (window.location.pathname == "/export") {
|
||||
$("#exportanchor").click();
|
||||
}
|
||||
|
||||
$("#search_form").submit(function () {
|
||||
var extent = unproj(map.getExtent());
|
||||
|
||||
|
|
|
@ -1,3 +1,15 @@
|
|||
$(document).ready(function () {
|
||||
$("#exportanchor").click(function (e) {
|
||||
$.ajax({ url: $(this).data('url'), success: function (sidebarHtml) {
|
||||
startExport(sidebarHtml);
|
||||
}});
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
if (window.location.pathname == "/export") {
|
||||
$("#exportanchor").click();
|
||||
}
|
||||
|
||||
function startExport(sidebarHtml) {
|
||||
var vectors,
|
||||
box,
|
||||
|
@ -316,3 +328,4 @@ function startExport(sidebarHtml) {
|
|||
validateControls();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue