developmentseed / observe

Cross-platform, offline, field mapping tool for OpenStreetMap
ISC License
67 stars 5 forks source link

Script to prepare map icons #194

Closed geohacker closed 4 years ago

geohacker commented 4 years ago

We rely on maki and temaki icons to render features on the map. These icon packages get regular updates along with new presets. We should write a script to:

geohacker commented 4 years ago

This is probably not that straightforward. We need to first make them fill white with transparent background, and then convert to svg. Previously @ricardoduplos may have done this with Illustrator batch operations.

cc @LanesGood @batpad @sethvincent

geohacker commented 4 years ago

@ricardoduplos told me a trick that we could add fill='#fff' to the svg path to turn it white before converting. So now I can do something like sed -e "s/<path /<path fill='#FFF' /" aerialway-11.svg | convert-svg-to-png --height 64 --width 64 > aerialway.png

sethvincent commented 4 years ago

@geohacker was this resolved by #193?

geohacker commented 4 years ago

@sethvincent yes it was. Closing.