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 @@