Skip to content

Commit

Permalink
Add osmcarto theme
Browse files Browse the repository at this point in the history
Uses the new flex configuration file currently discussed in
gravitystorm/openstreetmap-carto#4977
  • Loading branch information
joto committed Jun 4, 2024
1 parent e32f2b6 commit 9082696
Show file tree
Hide file tree
Showing 4 changed files with 776 additions and 0 deletions.
15 changes: 15 additions & 0 deletions config/osmcarto.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-- ---------------------------------------------------------------------------
--
-- Example config for osmcarto theme
--
-- Configuration for the osm2pgsql Themepark framework
--
-- ---------------------------------------------------------------------------

local themepark = require('themepark')

-- ---------------------------------------------------------------------------

themepark:add_topic('osmcarto/osmcarto')

-- ---------------------------------------------------------------------------
17 changes: 17 additions & 0 deletions themes/osmcarto/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

# Theme "osmcarto"

This theme contains the definition for the OpenStreetMap Carto style from
https://github.com/gravitystorm/openstreetmap-carto .

There is only one topic called `osmcarto` available. Use like this:

```{lua}
themepark:add_topic('osmcarto/osmcarto')
```

Note that this contains a [copy of the
config](topics/openstreetmap-carto-flex.lua) from the [openstreetmap-carto
repository](https://github.com/gravitystorm/openstreetmap-carto). If that file
is changed, it needs to be copied here.

11 changes: 11 additions & 0 deletions themes/osmcarto/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- ---------------------------------------------------------------------------
--
-- Theme: osmcarto
--
-- ---------------------------------------------------------------------------

local theme = {}

return theme

-- ---------------------------------------------------------------------------
Loading

0 comments on commit 9082696

Please sign in to comment.