diff --git a/frontend/src/common/mapbox/layers.js b/frontend/src/common/mapbox/layers.js index b21194eef..f77f753e9 100644 --- a/frontend/src/common/mapbox/layers.js +++ b/frontend/src/common/mapbox/layers.js @@ -298,7 +298,7 @@ export function wellsBaseAndArtesianLayer (options = {}) { return vectorLayerConfig(layerId, options.source || WELLS_SOURCE_ID, options.layerType || 'circle', styles, options.layout, filter) } -// Same function as above, but using one color for all wells +// Builds Mapbox layer config object for wells using a single color export function wellsBaseLayer (options = {}) { const layerId = options.id || WELLS_BASE_AND_ARTESIAN_LAYER_ID const styles = defaultsDeep(options.styles, { @@ -310,12 +310,14 @@ export function wellsBaseLayer (options = {}) { return vectorLayerConfig(layerId, options.source || WELLS_SOURCE_ID, options.layerType || 'circle', styles, options.layout, filter) } -// Same as above, with different id, color, and dot size +// Builds Mapbox layer config object, meant to go with above layer, to highlight a well(s) export function highlightedWellsLayer (options = {}) { const layerId = options.id || HIGHLIGHTED_WELL_LAYER_ID const styles = defaultsDeep(options.styles, { - 'circle-color': '#EE14CA', - 'circle-radius': 5.5, + 'circle-color': '#0162FE', + 'circle-radius': 3, + 'circle-stroke-color': '#FF5C00', // a shade of "neon orange" + 'circle-stroke-width': 3 }) const filter = options.filter || wellLayerFilter(false) @@ -486,7 +488,7 @@ export function wellLayerFilter (showUnpublishedWells) { ] } -export function wellFilterId (id) { +export function wellFilterOutId (id) { return ['!', ['==', ['get', 'well_tag_number'], id]] } diff --git a/frontend/src/wells/components/SearchMap.vue b/frontend/src/wells/components/SearchMap.vue index 694db2c18..eb2784cce 100644 --- a/frontend/src/wells/components/SearchMap.vue +++ b/frontend/src/wells/components/SearchMap.vue @@ -379,6 +379,7 @@ export default { createWellPopupElement (features, { canInteract }) { return createWellPopupElement(features, this.map, this.$router, { canInteract, + openInNewTab: true, wellLayerIds: [ WELLS_BASE_AND_ARTESIAN_LAYER_ID, SEARCHED_WELLS_LAYER_ID diff --git a/frontend/src/wells/components/SingleWellMap.vue b/frontend/src/wells/components/SingleWellMap.vue index dd1d1c7be..d81ad39cf 100644 --- a/frontend/src/wells/components/SingleWellMap.vue +++ b/frontend/src/wells/components/SingleWellMap.vue @@ -20,6 +20,7 @@ Licensed under the Apache License, Version 2.0 (the "License");