Topic on Extension talk:Maps

Compound Queries with multiple attributes as result don't show on map

2
C holtermann (talkcontribs)

Hello,


I've got this query to show a map of subobjects:

{{#ask: [[Belongs to::{{PAGENAME}}]] |[[Coordinates::+]] |?Coordinates |?Name |?Adresse |?Online |?Typ | template=Popup Maps | showtitle=off | format=leaflet | icon=Map marker icon – Nicolas Mollet – Library – Stores – classic.png | cluster=yes | clustermaxradius=8 }}


which works fine. I want to make use of the same thing with compound subqueries.


{{#compound_query: [[Belongs to::{{PAGENAME}}]] [[Coordinates::+]]  ; format=leaflet  ; ?Coordinates  ; ?Name | [[Belongs to::{{PAGENAME}}]] [[Coordinates::+]] [[Typ::Krankenhaus]]  ; format=leaflet  ; icon=Hospital_symbol_FLC.svg  ; ?Coordinates | template=Popup Maps | showtitle=off | cluster=yes | clustermaxradius=8 }}

does not work as it does not return a map but a table of results. As soon as I add another attribute except for the coordinates like "Name" above which I'd like to show using the template things don't work. I couldn't find a clue yet. Maybe someone can help.

Thanks!

C holtermann (talkcontribs)

And just seconds after writing this I found a solution:

{{#compound_query: [[Belongs to::{{PAGENAME}}]] [[Coordinates::+]] ; ?Coordinates ; ?Name | [[Belongs to::{{PAGENAME}}]] [[Coordinates::+]] [[Typ::Krankenhaus]] ; icon=Hospital_symbol_FLC.svg; ?Coordinates | template=Popup Maps | showtitle=off | cluster=yes | clustermaxradius=8 | format=leaflet }}

format=leaflet needs to be at the end. It's a bit weird though that it only breaks when searching for a second attribute.