Skip to content

Commit

Permalink
Merge pull request #44 from embeepea/master
Browse files Browse the repository at this point in the history
move editor/noter url values to config.yml, and change 'PH' icon to 'i'
  • Loading branch information
embeepea authored Dec 15, 2020
2 parents e8b9bf1 + c4721f3 commit 45133bd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions example-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ INITIAL_LAT: "40.74096"
INITIAL_LON: "-73.99254"
SITE_NAME: "Kartta Labs"
CONTACT_EMAIL: "[email protected]"
EDITOR_URL: "http://localhost:8000/e"
NOTER_URL: "http://localhost:8000/nf"
NOTER_API_URL: "http://localhost:8000/nb"
5 changes: 4 additions & 1 deletion mbgl-map.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions mbgl-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
}));


Expand Down
2 changes: 1 addition & 1 deletion mbgl-photomap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 45133bd

Please sign in to comment.