Ghini / ghini.web

web and geo interface to ghini.desktop database
GNU Affero General Public License v3.0
4 stars 1 forks source link

Separate icons for different types of vegetation #18

Closed smbantjes closed 7 years ago

smbantjes commented 7 years ago

Is it possible to have different icons for different types of vegetation like trees, palms, bushes, herbs, grasses, orchids.....

mfrasca commented 7 years ago

yes it is possible. in the ghini.desktop database the species table contains a habit field. not always filled in, but it is there and could be exported into the ghini.web database. it's not too difficult to add a custom icon to the standard list. technically, you either follow the directions for custom icons, or you add them to the file glyphicons-halflings.png and refer them from bootstrap.css. already did it once, for icon-faucet.

mfrasca commented 7 years ago

@smbantjes , do you want to look for possible glyphs? they should fit in 24×24 and actually the limit is tighter. have a look at the glyphicons-halflings file. the leaf is sixth row, third column.

mfrasca commented 7 years ago

more recent versions of bootstrap include a couple more icons for plants. I am going to move to that. we will loose 'icon-faucet' for the time being, and if we need it (to indicate water points), we can still revive it.

mfrasca commented 7 years ago

there is a nice collection of icons in the GPL software for Telegram. they are coloured, not black and white. we could use them... (resized to 20×20, they are now 24×24) plant-icons

but to use them as they are, I think we need change the marker background, I think we should prepare some white space in a coloured marker frame. something like ... icon-blue

mfrasca commented 7 years ago

some possible resulting icons, based on the blue background: grass: icon-grass banana: icon-banana generic tree: icon-tree cactus: icon-cactus conifer: icon-conifer palm: icon-palm

mfrasca commented 7 years ago

this works, it's not based on the habit, it's based on the Ordo to which the species belongs. we should import the ordo-familia-tribus-genus database, but that's a different issue.