when I try to add a “geo attribute” to a class I get error:
“Cannot deserialize value of type LinkedHashMap<String, Boolean> from Array value”
looking at the payload sent from the GUI I see this:
{
“_id”: “CMDBuildUI.model.map.GeoAttribute-1”,
“name”: “zz”,
“geoAttributeName”: “”,
“owner_type”: “Building”,
“description”: “zz”,
“type”: “geometry”,
“subtype”: “point”,
“index”: 0,
“zoomMin”: 1,
“zoomDef”: 13,
“zoomMax”: 25,
“active”: true,
“visibility”: [
“Building”
],
“_icon”: “”,
“associatedClass”: “”,
“associatedCard”: 0,
“infoWindowEnabled”: false,
“infoWindowImage”: “”,
“infoWindowContent”: “”,
“style”: {
“externalGraphic”: “”,
“fillColor”: “#000000”,
“fillOpacity”: “1”,
“pointRadius”: 3,
“strokeColor”: “#000000”,
“strokeDashstyle”: “solid”,
“strokeOpacity”: 1,
“strokeWidth”: 1,
“clusterEnable”: false,
“clusterDistance”: 20,
“fillOpacityCent”: “100.00”,
“strokeOpacityCent”: “100”
}
}
and the error is about:
“visibility”: [
“Building”
],
where instead should be:
“visibility”: {
“Building”: true
}
Is this a known bug? or something wrong on myconfiguration? Any workaround?
thank you
Fabrizio