diff --git a/public/themes/bootstrap/scss/_gis.scss b/public/themes/bootstrap/scss/_gis.scss index 16c0f24f51..e1c4a077a9 100644 --- a/public/themes/bootstrap/scss/_gis.scss +++ b/public/themes/bootstrap/scss/_gis.scss @@ -8,12 +8,6 @@ min-height: 230px; } -#gis_data_textarea { - height: 6em; - resize: vertical; - width: 100%; -} - #gis_data_editor { input[type="text"] { width: 75px; diff --git a/resources/js/src/table/gis_visualization.ts b/resources/js/src/table/gis_visualization.ts index 47254e22c1..ec5dc9e6a8 100644 --- a/resources/js/src/table/gis_visualization.ts +++ b/resources/js/src/table/gis_visualization.ts @@ -459,11 +459,11 @@ class GisVisualizationController { constructor () { this.boundOnChoiceChange = this.onChoiceChange.bind(this); - $(document).on('click', '#choice', this.boundOnChoiceChange); + $(document).on('click', '#useOsmAsBaseLayerSwitch', this.boundOnChoiceChange); if (typeof window.ol === 'undefined') { - $('#choice, #labelChoice').hide(); - $('#choice').prop('checked', false); + $('#useOsmAsBaseLayerSwitch, #useOsmAsBaseLayerSwitchLabel').hide(); + $('#useOsmAsBaseLayerSwitch').prop('checked', false); } this.selectVisualization(); @@ -477,7 +477,7 @@ class GisVisualizationController { * Initially loads either SVG or OSM visualization based on the choice. */ private selectVisualization () { - const showOl = $('#choice').prop('checked') === true; + const showOl = $('#useOsmAsBaseLayerSwitch').prop('checked') === true; const oldVis = showOl ? this.svgVis : this.olVis; if (oldVis) { oldVis.hide(); @@ -508,7 +508,7 @@ class GisVisualizationController { * Cleanup events when no longer needed */ public dispose () { - $(document).off('click', '#choice'); + $(document).off('click', '#useOsmAsBaseLayerSwitch'); if (this.svgVis) { this.svgVis.dispose(); diff --git a/resources/templates/gis_data_editor_form.twig b/resources/templates/gis_data_editor_form.twig index 12e82950aa..f3ed891cb1 100644 --- a/resources/templates/gis_data_editor_form.twig +++ b/resources/templates/gis_data_editor_form.twig @@ -1,63 +1,71 @@
-
- - - {# The input field to which the final result should be added and corresponding null checkbox #} - {% if input_name is not null %} - - {% endif %} - {{ get_hidden_inputs() }} +
+ + + {# The input field to which the final result should be added and corresponding null checkbox #} + {% if input_name is not null %} + + {% endif %} + {{ get_hidden_inputs() }} - {# Visualization section #} -
-
-
{{ visualization|raw }}
-
-
- -
- - -
-
- - - {# End of visualization section #} - - {# Data section #} -
+
+
+
+
{# Header section - Inclueds GIS type selector and input field for SRID #}
- + - - + +
{# End of header section #} - +
- {# End of data section #} -
-

{{ t('Output') }}

- +
+
+
+
+
{{ visualization|raw }}
+
+
+
- - + + +
+
+ +
+ + +
+ +
+ + +
+
diff --git a/resources/templates/table/gis_visualization/gis_visualization.twig b/resources/templates/table/gis_visualization/gis_visualization.twig index 0b4979e949..5372f5e10e 100644 --- a/resources/templates/table/gis_visualization/gis_visualization.twig +++ b/resources/templates/table/gis_visualization/gis_visualization.twig @@ -35,8 +35,8 @@
- - + +