hotosm / HDM-CartoCSS

CartoCSS project focused on the Humanitarian Data Model
Other
136 stars 41 forks source link

Possible to use with mod_tile? #250

Closed mapmeld closed 9 years ago

mapmeld commented 9 years ago

I recently visited two schools in Haiti using Internet in a Box to view maps offline. I'd like to replace their default Mapnik tiles with the HOTOSM mapping layer. Their server currently renders tiles using mod_tile.

Does CartoCSS in a way 'compile' to a static Mapnik XML file which could be used for mod_tile? Or would it be necessary to have them install TileMill or another CartoCSS-specific library?

mapmeld commented 9 years ago

Closing the issue - creating a mapnik.xml file turned out to be really simple:

git clone https://github.com/hotosm/HDM-CartoCSS
git clone https://github.com/mapbox/carto.git
cd carto
npm install
./bin/carto ../HDM-CartoCSS/project.mml > output_mapnik.xml
yohanboniface commented 9 years ago

Oh, damn, totally missed this issue. It's often that I miss Github notification and I still don't know why. Anyway, cool if you finally made it, and sorry for not having answered.

CrazyCoder4Carrot commented 7 years ago

But there is only project.yml file rather than project.xml file.

yohanboniface commented 7 years ago

carto project.yml > project.xml