Skip to content

Commit 6df5864

Browse files
committed
Add osmcarto theme
Uses the new flex configuration for openstreetmap-carto which has recently been merged.
1 parent 82eca55 commit 6df5864

File tree

4 files changed

+732
-0
lines changed

4 files changed

+732
-0
lines changed

config/osmcarto.lua

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
-- ---------------------------------------------------------------------------
2+
--
3+
-- Example config for osmcarto theme
4+
--
5+
-- Configuration for the osm2pgsql Themepark framework
6+
--
7+
-- ---------------------------------------------------------------------------
8+
9+
local themepark = require('themepark')
10+
11+
-- ---------------------------------------------------------------------------
12+
13+
themepark:add_topic('osmcarto/osmcarto')
14+
15+
-- ---------------------------------------------------------------------------

themes/osmcarto/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
# Theme "osmcarto"
3+
4+
This theme contains the definition for the OpenStreetMap Carto style from
5+
https://github.com/gravitystorm/openstreetmap-carto .
6+
7+
There is only one topic called `osmcarto` available. Use like this:
8+
9+
```{lua}
10+
themepark:add_topic('osmcarto/osmcarto')
11+
```
12+
13+
Note that this contains a [copy of the
14+
config](topics/openstreetmap-carto-flex.lua) from the [openstreetmap-carto
15+
repository](https://github.com/gravitystorm/openstreetmap-carto). If that file
16+
is changed, it needs to be copied here.
17+

themes/osmcarto/init.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- ---------------------------------------------------------------------------
2+
--
3+
-- Theme: osmcarto
4+
--
5+
-- ---------------------------------------------------------------------------
6+
7+
local theme = {}
8+
9+
return theme
10+
11+
-- ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)