pnorman / openstreetmap-cartographic

A port of OpenStreetMap Carto to Mapbox GL for client-side rendering
Other
58 stars 4 forks source link

Build sprites #1

Open pnorman opened 4 years ago

pnorman commented 4 years ago

We need to be able to include symbols on the map. To do this, we need to compile images into spritesheets and serve them locally.

ref https://github.com/mapbox/mapbox-gl-js/issues/4086#issuecomment-627728512

pnorman commented 3 years ago

The way Mapbox mentions for sprites is spritezero, but it depends on Mapnik. I'm looking for alternatives.

pathmapper commented 3 years ago

@pnorman you might have a look at https://github.com/orangemug/spriter

pnorman commented 3 years ago

@pnorman you might have a look at https://github.com/orangemug/spriter

It doesn't seem to have a CLI output to files, does it?

pnorman commented 3 years ago

https://github.com/elastic/spritezero was mentioned as an option

pathmapper commented 3 years ago

It doesn't seem to have a CLI output to files, does it?

Currently not, but you could save the png / json from the URLs.

https://github.com/elastic/spritezero was mentioned as an option

Depends also on Mapnik: https://github.com/elastic/spritezero/blob/3b89dc0fef2acbf9db1e77a753a68b02f74939a8/package.json#L21 (from https://github.com/pnorman/openstreetmap-cartographic/issues/1#issuecomment-758451922 I understood this is not desired)