Skip to content

Commit

Permalink
fix: made sure only create map export string if dialog is open, shoul…
Browse files Browse the repository at this point in the history
…d help with performance; fix: made sure style is exported correctly (#2722)
  • Loading branch information
santilland authored Dec 19, 2024
1 parent 4185fdc commit 0d90fbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/components/OLExportButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<div>
Copy and paste this code into the map <b>layers</b> field of the storytelling editor:
</div>
<div
<div v-if="dialog"
class="pa-3"
style="background-color: #ddd;font-family: monospace;font-size: 11px;max-height: 300px; overflow-y: auto;">
{{ layersConfig }}
Expand Down Expand Up @@ -283,7 +283,7 @@ Text describing the current step of the tour and why it is interesting what the
if (foundType === 'Vector') {
// We can't export a function style function
// only flat styles, for now we ignore this case
if (typeof l.getStyle !== 'function') {
if (typeof l.getStyle() !== 'function') {
layerConfig.style = l.getStyle();
}
}
Expand Down

0 comments on commit 0d90fbc

Please sign in to comment.