From 06401a831be456d4f17ae5df9f8fb2f2a7408bad Mon Sep 17 00:00:00 2001 From: Mark Phillips Date: Tue, 15 Dec 2020 21:36:26 +0000 Subject: [PATCH 1/2] move editor/noter url values to config.yml --- example-config.yml | 3 +++ mbgl-map.js | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/example-config.yml b/example-config.yml index 455af3b..9e494b7 100644 --- a/example-config.yml +++ b/example-config.yml @@ -9,3 +9,6 @@ INITIAL_LAT: "40.74096" INITIAL_LON: "-73.99254" SITE_NAME: "Kartta Labs" CONTACT_EMAIL: "kartta@example.com" +EDITOR_URL: "http://localhost:8000/e" +NOTER_URL: "http://localhost:8000/nf" +NOTER_API_URL: "http://localhost:8000/nb" diff --git a/mbgl-map.js b/mbgl-map.js index 8099fbb..ed098c5 100644 --- a/mbgl-map.js +++ b/mbgl-map.js @@ -139,9 +139,9 @@ document.addEventListener("DOMContentLoaded", function(){ map.addControl(new PhotoMapControl({ layer: "buildings", outlineLayer: "buildings_outline", - editorUrl: "https://re.city/e", - noterUrl: "https://re.city/nf", - noterApiUrl: "https://re.city/nb" + editorUrl: "{{ EDITOR_URL }}", + noterUrl: "{{ NOTER_URL }}", + noterApiUrl: "{{ NOTER_API_URL }}" })); From c4721f3fab644cd7de0766b0d38f049213326bfa Mon Sep 17 00:00:00 2001 From: Mark Phillips Date: Tue, 15 Dec 2020 22:01:45 +0000 Subject: [PATCH 2/2] change 'PH' icon to 'i' --- mbgl-map.css | 5 ++++- mbgl-photomap.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mbgl-map.css b/mbgl-map.css index bfd223e..9c578f1 100644 --- a/mbgl-map.css +++ b/mbgl-map.css @@ -109,10 +109,13 @@ canvas.mapboxgl-canvas.crosshair-cursor { } .button-photo { + width: 17px; border: 1px solid #aaa; padding: 5px; font-weight: bold; - font-size: 14px; + font-size: 26px; + text-align: center; + font-family: 'Zilla Slab'; border-radius: 5px; background-color: white; } diff --git a/mbgl-photomap.js b/mbgl-photomap.js index 37acb41..4514704 100644 --- a/mbgl-photomap.js +++ b/mbgl-photomap.js @@ -20,7 +20,7 @@ class PhotoMapControl { this._container = document.createElement('div'); this._container.className = "mapboxgl-ctrl button-photo"; this._container.id = "button-photo"; - this._container.textContent = 'PH'; + this._container.textContent = 'i'; this.sideBarContainer = document.getElementById("map-wrapper"); this.searchResults = document.getElementById("search-results"); this.searchResultsList = document.getElementById("search-results-list");