diff --git a/Dockerfile b/Dockerfile index 88d90db26..080a759b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -183,6 +183,7 @@ RUN groupadd www \ ADD --chown=www:www resources ${TETHYS_HOME}/tethys/resources/ ADD --chown=www:www tethys_apps ${TETHYS_HOME}/tethys/tethys_apps/ ADD --chown=www:www tethys_cli ${TETHYS_HOME}/tethys/tethys_cli/ +ADD --chown=www:www tethys_components ${TETHYS_HOME}/tethys/tethys_components/ ADD --chown=www:www tethys_compute ${TETHYS_HOME}/tethys/tethys_compute/ ADD --chown=www:www tethys_config ${TETHYS_HOME}/tethys/tethys_config/ ADD --chown=www:www tethys_layouts ${TETHYS_HOME}/tethys/tethys_layouts/ diff --git a/tethys_gizmos/static/tethys_gizmos/js/tethys_map_view.js b/tethys_gizmos/static/tethys_gizmos/js/tethys_map_view.js index e773df934..ad5c7b3ec 100644 --- a/tethys_gizmos/static/tethys_gizmos/js/tethys_map_view.js +++ b/tethys_gizmos/static/tethys_gizmos/js/tethys_map_view.js @@ -1312,6 +1312,12 @@ add_drag_box_interaction = function() { // Call draw end callback draw_end_callback(feature); + + m_select_interaction.getFeatures().push(feature); + m_select_interaction.dispatchEvent({ + type: 'select', + selected: [feature] + }); }); m_map.addInteraction(m_drag_box_interaction); @@ -1340,9 +1346,7 @@ add_snap_interaction = function() { add_modify_interaction = function() { // Modify interaction works in conjunction with a selection interaction - var selected_features; - - selected_features = null; + var selected_features = null; // Create select interaction m_modify_select_interaction = new ol.interaction.Select({