filter map on click of btn

arbab anis asked on April 4, 2018 17:01

Hi all,

In my project i have 2 types of showrrom one is sales and another is service. so requirement is like in map i have 3 btn "All" "Service" and "Sales" on clicking of this btn i want to show rtespective showroom on map. default all will show

Recent Answers


Rui Wang answered on April 4, 2018 17:07 (last edited on April 4, 2018 17:08)

You can do it with folder structure or with field. And the data for the map may be a data source.

With folder, you have /Showrooms, then /Showrooms/Service and /Showrooms/Sales. The 3 button will control the folder path of the data source to show which folder will be used to list all showrooms.

With field like a checkbox or radio button for "Service" and "Sales". Then the button click will change the data source WHERE condition to RoomType = "Service", RoomType = "Sales", RoomType = "Service" or "Sales".

0 votesVote for this answer Mark as a Correct answer

arbab anis answered on April 5, 2018 07:33

Hi Rui,

As per you the buttons will handle the location filter but where i should put the code

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on April 5, 2018 14:07 (last edited on December 10, 2019 02:31)

the button/link button can pass the parameter to the URL using macro, e.g. default URL /showrooms, then /showrooms?type=services so the macro for the link button URL is {% CurrentDocument.NodeAliasPath + "?type=services" |(identity)GlobalAdministrator%}

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.