Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ android {
listOf(
"GradleDependency",
"InvalidPackage",
"LogNotTimber",
"MissingTranslation",
"PrivateResource",
"UnusedQuantity",
Expand Down Expand Up @@ -301,7 +302,8 @@ dependencies {
implementation("com.github.yalantis:ucrop:2.2.11")

implementation("io.github.elye:loaderviewlibrary:3.0.0")
implementation("org.osmdroid:osmdroid-android:6.1.20")
implementation("org.maplibre.compose:maplibre-compose:0.12.1")
implementation("org.maplibre.compose:maplibre-compose-material3:0.12.1")
implementation("fr.dudie:nominatim-api:3.4") {
//noinspection DuplicatePlatformClasses
exclude(group = "org.apache.httpcomponents", module = "httpclient")
Expand Down
379 changes: 379 additions & 0 deletions app/src/main/assets/map_style_dark.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,379 @@
{
"version": 8,
"name": "Talk Night",
"sources": {
"openmaptiles": {
"type": "vector",
"url": "https://tiles.openfreemap.org/planet",
"attribution": "Β© OpenFreeMap and OpenStreetMap contributors"
}
},
"glyphs": "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": { "background-color": "#111c2a" }
},
{
"id": "water",
"type": "fill",
"source": "openmaptiles",
"source-layer": "water",
"paint": { "fill-color": "#071018" }
},
{
"id": "waterway",
"type": "line",
"source": "openmaptiles",
"source-layer": "waterway",
"minzoom": 8,
"paint": {
"line-color": "#071018",
"line-width": ["interpolate", ["linear"], ["zoom"], 8, 0.5, 12, 1.5, 16, 3]
}
},
{
"id": "landcover-wood",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landcover",
"filter": ["==", "class", "wood"],
"paint": { "fill-color": "#0c2016" }
},
{
"id": "landcover-grass",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landcover",
"filter": ["in", "class", "grass", "scrub", "crop"],
"paint": { "fill-color": "#102219" }
},
{
"id": "landuse-residential",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landuse",
"filter": ["in", "class", "residential", "suburb", "neighbourhood"],
"paint": { "fill-color": "#131f2c" }
},
{
"id": "landuse-commercial",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landuse",
"filter": ["in", "class", "commercial", "retail", "industrial"],
"paint": { "fill-color": "#14202e" }
},
{
"id": "landuse-park",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landuse",
"filter": ["in", "class", "park", "pitch", "playground", "golf", "cemetery"],
"paint": { "fill-color": "#102219" }
},
{
"id": "park",
"type": "fill",
"source": "openmaptiles",
"source-layer": "park",
"paint": { "fill-color": "#102219", "fill-opacity": 0.8 }
},
{
"id": "building",
"type": "fill",
"source": "openmaptiles",
"source-layer": "building",
"minzoom": 13,
"paint": {
"fill-color": "#14202e",
"fill-outline-color": "#1c2a3c"
}
},
{
"id": "road-path",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["in", "class", "path", "track"],
"minzoom": 14,
"layout": { "line-cap": "round", "line-join": "round" },
"paint": {
"line-color": "#142434",
"line-width": 1,
"line-dasharray": [2, 2]
}
},
{
"id": "road-service-casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["==", "class", "service"],
"minzoom": 14,
"layout": { "line-cap": "round", "line-join": "round" },
"paint": { "line-color": "#0c1620", "line-width": 3 }
},
{
"id": "road-service",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["==", "class", "service"],
"minzoom": 13,
"layout": { "line-cap": "round", "line-join": "round" },
"paint": { "line-color": "#243348", "line-width": 1.5 }
},
{
"id": "road-minor-casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["in", "class", "minor", "tertiary"],
"minzoom": 12,
"layout": { "line-cap": "round", "line-join": "round" },
"paint": {
"line-color": "#0c1620",
"line-width": ["interpolate", ["linear"], ["zoom"], 12, 2, 16, 5]
}
},
{
"id": "road-minor",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["in", "class", "minor", "tertiary"],
"minzoom": 11,
"layout": { "line-cap": "round", "line-join": "round" },
"paint": {
"line-color": "#263548",
"line-width": ["interpolate", ["linear"], ["zoom"], 11, 0.5, 14, 2, 16, 4]
}
},
{
"id": "road-secondary-casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["==", "class", "secondary"],
"layout": { "line-cap": "round", "line-join": "round" },
"paint": {
"line-color": "#0c1620",
"line-width": ["interpolate", ["linear"], ["zoom"], 8, 2, 14, 7]
}
},
{
"id": "road-secondary",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["==", "class", "secondary"],
"layout": { "line-cap": "round", "line-join": "round" },
"paint": {
"line-color": "#2e3e54",
"line-width": ["interpolate", ["linear"], ["zoom"], 8, 1, 14, 5]
}
},
{
"id": "road-primary-casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["in", "class", "primary", "trunk"],
"layout": { "line-cap": "round", "line-join": "round" },
"paint": {
"line-color": "#0c1620",
"line-width": ["interpolate", ["linear"], ["zoom"], 6, 2, 14, 9]
}
},
{
"id": "road-primary",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["in", "class", "primary", "trunk"],
"layout": { "line-cap": "round", "line-join": "round" },
"paint": {
"line-color": "#344e68",
"line-width": ["interpolate", ["linear"], ["zoom"], 6, 1, 14, 7]
}
},
{
"id": "road-motorway-casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["==", "class", "motorway"],
"layout": { "line-cap": "round", "line-join": "round" },
"paint": {
"line-color": "#0e1e30",
"line-width": ["interpolate", ["linear"], ["zoom"], 4, 2, 14, 12]
}
},
{
"id": "road-motorway",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["==", "class", "motorway"],
"layout": { "line-cap": "round", "line-join": "round" },
"paint": {
"line-color": "#385068",
"line-width": ["interpolate", ["linear"], ["zoom"], 4, 1, 14, 10]
}
},
{
"id": "rail",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["in", "class", "rail", "transit"],
"minzoom": 10,
"paint": {
"line-color": "#1c2836",
"line-width": 1.5,
"line-dasharray": [4, 3]
}
},
{
"id": "boundary-country",
"type": "line",
"source": "openmaptiles",
"source-layer": "boundary",
"filter": ["==", "admin_level", 2],
"paint": {
"line-color": "#44607e",
"line-width": 1.5,
"line-dasharray": [4, 3]
}
},
{
"id": "boundary-state",
"type": "line",
"source": "openmaptiles",
"source-layer": "boundary",
"filter": ["==", "admin_level", 4],
"minzoom": 4,
"paint": {
"line-color": "#385068",
"line-width": 1,
"line-dasharray": [3, 4]
}
},
{
"id": "place-country",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"filter": ["==", "class", "country"],
"layout": {
"text-field": ["get", "name"],
"text-font": ["Noto Sans Bold"],
"text-size": ["interpolate", ["linear"], ["zoom"], 2, 11, 6, 15],
"text-max-width": 8
},
"paint": {
"text-color": "#dce8f6",
"text-halo-color": "#111c2a",
"text-halo-width": 1.5
}
},
{
"id": "place-city",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"filter": ["==", "class", "city"],
"layout": {
"text-field": ["get", "name"],
"text-font": ["Noto Sans Bold"],
"text-size": ["interpolate", ["linear"], ["zoom"], 4, 10, 10, 14],
"text-max-width": 10
},
"paint": {
"text-color": "#eef4fc",
"text-halo-color": "#111c2a",
"text-halo-width": 1.5
}
},
{
"id": "place-town",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"filter": ["in", "class", "town", "state"],
"minzoom": 6,
"layout": {
"text-field": ["get", "name"],
"text-font": ["Noto Sans Regular"],
"text-size": ["interpolate", ["linear"], ["zoom"], 6, 9, 12, 13],
"text-max-width": 8
},
"paint": {
"text-color": "#c6d5e4",
"text-halo-color": "#111c2a",
"text-halo-width": 1.5
}
},
{
"id": "place-village",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"filter": ["in", "class", "village", "hamlet"],
"minzoom": 9,
"layout": {
"text-field": ["get", "name"],
"text-font": ["Noto Sans Regular"],
"text-size": 11,
"text-max-width": 8
},
"paint": {
"text-color": "#a8b8cc",
"text-halo-color": "#111c2a",
"text-halo-width": 1
}
},
{
"id": "place-suburb",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"filter": ["in", "class", "suburb", "neighbourhood"],
"minzoom": 11,
"layout": {
"text-field": ["get", "name"],
"text-font": ["Noto Sans Regular"],
"text-size": 10,
"text-transform": "uppercase",
"text-max-width": 8,
"text-letter-spacing": 0.1
},
"paint": {
"text-color": "#94a8c0",
"text-halo-color": "#111c2a",
"text-halo-width": 1
}
},
{
"id": "road-label",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 12,
"layout": {
"text-field": ["get", "name"],
"text-font": ["Noto Sans Regular"],
"text-size": 10,
"symbol-placement": "line",
"text-max-angle": 30
},
"paint": {
"text-color": "#94a8c0",
"text-halo-color": "#111c2a",
"text-halo-width": 1
}
}
]
}
Loading
Loading