qld-gov-au / qgov-mam-angularjs

Map-based information services based on Queensland Government data
http://qld-gov-au.github.io/qgov-mam-angularjs/demo/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

(Feature request) Checkbox for selecting multiple attributes in MAM search #44

Open bboyle opened 9 years ago

bboyle commented 9 years ago

From @scottssutton on October 21, 2014 4:5

In the MAM search it's possible to use dropdown menus to filter the displayed search results.

I'm building a roadside stops map that allows you to filter on the amenities they have at a location (for example toilets, picnic tables, camping, etc).

If possible it would be great to have tickboxes so that people could select multiple amenities, so they could look for places with fireplaces AND camping AND bush walking tracks.

Copied from original issue: qld-gov-au/page-organisation-map#2

bboyle commented 9 years ago

Can this be done already?

Structure data like this:

Name Fireplaces Camping Bush walking
foo Yes Yes
bar Yes Yes Yes

And search like this: <input type="checkbox" name="Camping" value="Yes">

If it doesn't work, we must be close to supporting this?

bboyle commented 9 years ago

From @scottssutton on October 21, 2014 6:13

Thanks Ben, I'll give this a crack but I'll need to see if there's a way I can get this to work while also being able to have a location's amenities display in a bulleted list:

image

bboyle commented 9 years ago

Ah. Yes to the do the list you'd use a single column and separate the values with semicolons.

You need angular man!

bboyle commented 9 years ago

From @scottssutton on October 21, 2014 22:19

Thanks Ben, in that case I think I'll park this one for now and wait for Angular...and start learning Angular.