Skip to content

Commit 162f3b1

Browse files
committed
fix: made sure only create map export string if dialog is open, should help with performance; fix: made sure style is exported correctly
1 parent 4185fdc commit 162f3b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: app/src/components/OLExportButton.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<div>
4747
Copy and paste this code into the map <b>layers</b> field of the storytelling editor:
4848
</div>
49-
<div
49+
<div v-if="dialog"
5050
class="pa-3"
5151
style="background-color: #ddd;font-family: monospace;font-size: 11px;max-height: 300px; overflow-y: auto;">
5252
{{ layersConfig }}
@@ -283,7 +283,7 @@ Text describing the current step of the tour and why it is interesting what the
283283
if (foundType === 'Vector') {
284284
// We can't export a function style function
285285
// only flat styles, for now we ignore this case
286-
if (typeof l.getStyle !== 'function') {
286+
if (typeof l.getStyle() !== 'function') {
287287
layerConfig.style = l.getStyle();
288288
}
289289
}

0 commit comments

Comments
 (0)