Skip to content
Snippets Groups Projects
Commit b07a51e7 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

Merge branch 'develop' into redmine-issues/11834

parents 77cf2e93 7ea25b55
No related branches found
No related tags found
No related merge requests found
......@@ -293,7 +293,7 @@ const mapUtil = {
},
retrieveFeatureColor: function (featureType, properties) {
const colorsStyle = featureType.colors_style && featureType.colors_style.value ? featureType.colors_style.value : featureType.colors_style;
const colorsStyle = featureType.colors_style;
if (featureType && colorsStyle && colorsStyle.custom_field_name) {
const currentValue = properties[colorsStyle.custom_field_name];
const colorStyle = colorsStyle.colors[currentValue];
......@@ -400,7 +400,13 @@ const mapUtil = {
}
const colorValue = color.value ? color.value : color;
if (geomJSON.type === 'Point') {
if (customFieldOption && featureType.colors_style && featureType.colors_style.value && featureType.colors_style.value.icons) {
if (
customFieldOption &&
featureType.colors_style &&
featureType.colors_style.value &&
featureType.colors_style.value.icons &&
!!Object.keys(featureType.colors_style.value.icons).length
) {
if (featureType.colors_style.value.icons[customFieldOption]) {
const iconHTML = `
<i
......
......@@ -139,8 +139,10 @@ const feature = {
const features_count = response.data.count;
commit("SET_FEATURES_COUNT", features_count);
}
return response;
} catch (error) {
console.error(error);
return error;
}
},
GET_PROJECT_FEATURE({ commit, rootState }, { project_slug, feature_id }) {
......
......@@ -90,7 +90,7 @@
<!-- //* s'affiche après sélection d'option de type liste dans type de champ -->
<div
v-if="colorsStyleList.length > 0"
v-if="colorsStyleList.length > 0 && selectedGeomType !== 'Point'"
class="custom_style"
id="id_style_container"
>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment