parent
07cbf7f9df
commit
359d030a5b
2 changed files with 16 additions and 0 deletions
|
@ -145,7 +145,14 @@ L.OSM.share = function (options) {
|
|||
.text(I18n.t('javascripts.share.image'))
|
||||
.appendTo($imageSection);
|
||||
|
||||
$('<div>')
|
||||
.attr('id', 'export-warning')
|
||||
.attr('class', 'deemphasize')
|
||||
.text(I18n.t('javascripts.share.only_standard_layer'))
|
||||
.appendTo($imageSection);
|
||||
|
||||
$form = $('<form>')
|
||||
.attr('id', 'export-image')
|
||||
.attr('class', 'standard-form')
|
||||
.attr('action', '/export/finish')
|
||||
.attr('method', 'post')
|
||||
|
@ -364,6 +371,14 @@ L.OSM.share = function (options) {
|
|||
|
||||
$("#mapnik_image_width").text(Math.round(size.x / scale / 0.00028));
|
||||
$("#mapnik_image_height").text(Math.round(size.y / scale / 0.00028));
|
||||
|
||||
if (map.getMapBaseLayerId() === 'mapnik') {
|
||||
$('#export-image').show();
|
||||
$('#export-warning').hide();
|
||||
} else {
|
||||
$('#export-image').hide();
|
||||
$('#export-warning').show();
|
||||
}
|
||||
}
|
||||
|
||||
function select() {
|
||||
|
|
|
@ -2172,6 +2172,7 @@ en:
|
|||
center_marker: "Center map on marker"
|
||||
paste_html: "Paste HTML to embed in website"
|
||||
view_larger_map: "View Larger Map"
|
||||
only_standard_layer: "Only the standard layer can be exported as an image"
|
||||
embed:
|
||||
report_problem: "Report a problem"
|
||||
key:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue