I have a place hierarchy with countries as parent to children cities. I would like to be able to have a detail page with the country and a map showing the cities as markers.
I can get as far as displaying the country on the map (using the coords of the country place record) and then displaying the city markers with the following code in detail.conf
map_attributes = [ca_places.children.coords],
mapLabelTemplate = ^ca_places.children.preferred_labels.name
However, I suppose as expected, the marker's popup is showing all of the city names instead of the city name for the specific child record.
Is there something I'm missing?
This does work completely fine if I add browse config to show all city place names and then go to the country facet. However I want this to show on a detail page
Many thanks