From 08fa95cbfcc3a2ebaa8fb693c8a2c42c9734010f Mon Sep 17 00:00:00 2001 From: nertc Date: Wed, 10 Jul 2024 14:04:58 +0400 Subject: [PATCH] When downloading image, allow other map styles --- app/assets/javascripts/leaflet.share.js | 55 ++++++++++++++++++++-- app/controllers/export_controller.rb | 14 ++++-- config/locales/en.yml | 4 +- test/controllers/export_controller_test.rb | 14 ++++++ 4 files changed, 78 insertions(+), 9 deletions(-) diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index b92d70796..40ba020e6 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -160,6 +160,7 @@ L.OSM.share = function (options) { $("
") .appendTo($form) .attr("class", "row mb-3") + .attr("id", "mapnik_scale_row") .append($("