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

Support for multiple icons for location pins #45

Open bboyle opened 9 years ago

bboyle commented 9 years ago

From @scottssutton on October 21, 2014 3:1

On the Science capability directory there are different icons used for different sectors. These icons are displayed on the map itself.

I'm in the process of putting together a MAM for roadside stops and if I were able to specify a FontAwesome icon for a particular type of centre (rest area, scenic stop, etc) it would make scanning the map easier and more visually appealing.

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

bboyle commented 9 years ago

Custom icons code we'd need to refactor is around these spots:

bboyle commented 9 years ago

Yes, we can patch this in OK. I'd like to make it more generic but it's tricky supporting the icons AND alt text in the CSV data. Unless you're happy to add both? A column that lists types and another that lists the corresponding icons?

Example:

Name Category Icon
foo Rest area, Scenic stop tree, camera

would indicate that 'Rest area' uses 'tree' and 'Scenic stop' uses 'camera'. You would have to repeat these icons for every row of data though.

If we add it to the script (which we can), then changes will be locked to our release cycle. (You could submit the changes here though.)

bboyle commented 9 years ago

From @scottssutton on October 21, 2014 6:28

Hi Ben, I'd be happy to do as much as possible on my end. I think at least in my case each entry would only have one icon type. Is something like this what you're referring to, or is there another reason for there being 2 sets of categories/icons in the cells?

NameCategoryIcon
Brisbane Driver reviver centreDriver revivercupofcoffee
Cairns heavy vehicle rest stopHeavy vehicle rest stoptruck
bboyle commented 9 years ago

Supporting only a single icon would be quicker for the first enhancement

Thanks Ben, I'd only need a single icon per point so hopefully that would make it easier.