e-n-f / datamaps

Indexes points and lines and generates map tiles to display them
BSD 2-Clause "Simplified" License
341 stars 53 forks source link

Specifying color for data points in large file #17

Open ramyaragupathy opened 8 years ago

ramyaragupathy commented 8 years ago

@ericfischer Is there an option to specify a color code for a huge dataset using encode? In my case, there is a .osm file for buildings in SF Peninsula and I want the output gif from osm-animate to be shown in some bright color.

e-n-f commented 8 years ago

Datamaps is basically unmaintained at this point, and all the recent development is on Tippecanoe.

Datamaps only has one metadata field per feature, and osm-animate uses it for the time stamp, so it is not available to encode a color for each object. If you just want everything to have a color, you can use the -c option to render to specify one hex color that applies to everything.