You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a PoiCollection is assigned to more than one category the frontend behaviour acts not like expected.
Example:
Poi1 is assigned to CatA and CatB, both categories are selected and Poi1 is displayed in the Frontend. If unselecting CatA Poi1 disappears on the map although CatB is still active and Poi1 assigned to it.
Poi1 should only disappear if all assigned categories are not selected.
The text was updated successfully, but these errors were encountered:
in PoiCollectionRepository->addConstraintForCategories(...)
Rec1 = Poi1 => [CatA, CatB]
Rec2 = Poi1 => [CatA, CatB]
Rec3 = Poi2 => [CatA]
Rec4 = Poi3 => [CatB]
Categorized marker array
in OpenStreetMaps2.js -> OpenStreetMaps2.prototype.createPointByCollectionType
Cat A => [Rec1, Rec2, Rec3]
CatB => [Rec1, Rec2, Rec4]
The four records from the database arte the result of a LEFT JOIN in the mentioned method. With this concept each record represents a poi for one category. So each record (_leaflet_id) should be in only one category after 'createPointByCollectionType':
Cat A => [Rec1, Rec3]
CatB => [Rec2, Rec4]
I created a workaround in the OpenStreetMaps2.js file:
let categorizedLeafletIds = [];
...
if (categorizedLeafletIds.indexOf(marker._leaflet_id) < 0) {
this.categorizedMarkers[categoryUid].push(marker);
categorizedLeafletIds.push(marker._leaflet_id);
}
If a PoiCollection is assigned to more than one category the frontend behaviour acts not like expected.
Example:
Poi1 is assigned to CatA and CatB, both categories are selected and Poi1 is displayed in the Frontend. If unselecting CatA Poi1 disappears on the map although CatB is still active and Poi1 assigned to it.
Poi1 should only disappear if all assigned categories are not selected.
The text was updated successfully, but these errors were encountered: