Skip to content

Commit

Permalink
hide refresh-mapcss button if a following query does not have user ma…
Browse files Browse the repository at this point in the history
…pcss
  • Loading branch information
tyrasd committed Oct 1, 2023
1 parent c61767e commit 9e89b7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/overpass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@ class Overpass {
//overpass.fire("onProgress", "applying styles"); // doesn't correspond to what's really going on. (the whole code could in principle be put further up and called "preparing mapcss styles" or something, but it's probably not worth the effort)

// show rerender button, if query contains mapcss styles
if (user_mapcss) $("#rerender-button").show();
if (user_mapcss) {
$("#rerender-button").show();
} else {
$("#rerender-button").hide();
}

overpass.rerender = function (userMapCSS) {
// test user supplied mapcss stylesheet
Expand Down

0 comments on commit 9e89b7c

Please sign in to comment.