[gnome-maps/wip/mlundblad/night-mode: 2/5] mapSource: Add function to create dark source
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/night-mode: 2/5] mapSource: Add function to create dark source
- Date: Tue, 9 Jun 2020 16:37:27 +0000 (UTC)
commit b864d7eb3ebc0e5be09f2e9e2fc3a6b1ea4f0dbd
Author: Marcus Lundblad <ml update uu se>
Date: Thu Jun 4 23:45:33 2020 +0200
mapSource: Add function to create dark source
Add a function to create a map source for a
dark variant of the street source.
src/mapSource.js | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/mapSource.js b/src/mapSource.js
index 49358a94..9104984d 100644
--- a/src/mapSource.js
+++ b/src/mapSource.js
@@ -132,6 +132,10 @@ function createStreetSource() {
return _createCachedSource(Service.getService().tiles.street);
}
+function createStreetDarkSource() {
+ return _createCachedSource(Service.getService().tiles.streetDark)
+}
+
function createPrintSource() {
return _createCachedSource(Service.getService().tiles.print);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]