Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhaney committed Jun 12, 2019
2 parents 5b7461a + 4f011d7 commit b525dea
Show file tree
Hide file tree
Showing 26 changed files with 130 additions and 45 deletions.
2 changes: 1 addition & 1 deletion lakegallery/lakegallery/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
VERSION = '1.1.0'
VERSION = '2.0.1'

ALLOWED_HOSTS = ['localhost', '0.0.0.0', '.tnris.org', '.tnris.org.']

Expand Down
Binary file removed lakegallery/map/static/map/images/google-25px.png
Binary file not shown.
Binary file modified lakegallery/map/static/map/images/instructions-step1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lakegallery/map/static/map/images/instructions-step2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lakegallery/map/static/map/images/instructions-step3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lakegallery/map/static/map/images/instructions-step4.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lakegallery/map/static/map/images/instructions-step5.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions lakegallery/map/static/map/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ html {
}

body {
font-family: "Clear Sans";
/* font-family: "Clear Sans"; */
font-family: 'Roboto', sans-serif;
max-width: 100%;
overflow-x: hidden;
}
Expand Down Expand Up @@ -206,6 +207,7 @@ img.texas-home:hover {

#instructionModalContent > .modal-body {
overflow: auto;
overflow-y: scroll;
}
}

Expand All @@ -226,8 +228,7 @@ img.texas-home:hover {
cursor: pointer;
}

#expand-instructions {
float: left;
#expand-all-instructions {
width: auto;
height: 100%;
padding: 10px;
Expand Down
26 changes: 26 additions & 0 deletions lakegallery/map/templates/map/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ <h6>v{{ version }}</h6>
<!-- <li class="nav-item">
<a class="nav-link" href="#Acknowledge">Acknowledge</a>
</li> -->
<li class="nav-item">
<a class="nav-link" href="#FAQ">FAQ</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#Contact">Contact</a>
</li>
Expand Down Expand Up @@ -81,6 +84,29 @@ <h2>Data Sources</h2>
<p><a href="#topNav"><small>Back to Top</small></a></p>
</div>
</div>
<div id="FAQ" class="row">
<div class="col">
<h2>Frequently Asked Questions (FAQ)</h2>
<ul>
<li>
<p>
<strong>Who built and maintains this website/application?</strong><br/>
This applicaiton was built and is maintained by the Texas Natural Resources Information System, a Division of the Texas Water Development Board.
</p>
</li>
<li>
<p>
<strong>Where does the lake/reservoir data come from?</strong><br />
The data for this application comes from a variety of locations including:
<a href="https://waterdatafortexas.org" target="_blank">Water Data for Texas</a>,
<a href="www.twdb.texas.gov/surfacewater/rivers/reservoirs/index.asp" target="_blank">Texas Water Development Board's Texas Lakes & Reservoirs</a>,
&amp; the <a href="" target="_blank">Texas Water Development Board Hydrographic Survey</a>.
</p>
</li>
</ul>
<p><a href="#topNav"><small>Back to Top</small></a></p>
</div>
</div>
<!-- <div id="Acknowledge" class="row">
<div class="col">
<h2>Acknowledge</h2>
Expand Down
5 changes: 3 additions & 2 deletions lakegallery/map/templates/map/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
gtag('config', 'UA-491601-15');
</script>

<!-- google roboto font -->
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">

{% leaflet_js %}
{% leaflet_css %}

Expand All @@ -43,8 +46,6 @@
<link rel="stylesheet" type="text/css" href="{% static 'map/leaflet_markercluster/css/MarkerCluster.Default.css' %}" />
<script type="text/javascript" src="{% static 'map/leaflet_markercluster/leaflet.markercluster.js' %}"></script>

<!-- <script src="http://libs.cartocdn.com/cartodb.js/v3/3.15/cartodb.core.js"></script> -->

{% bootstrap_css %}
{% bootstrap_javascript %}
{% bootstrap_messages %}
Expand Down
113 changes: 82 additions & 31 deletions lakegallery/map/templates/map/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<div class="modal-dialog" role="document">
<div id="instructionModalContent" class="modal-content">
<div class="modal-body">
<p>
<strong style="color:red;">Please note that this application is currently in beta and is still undergoing final testing before its official release.</strong>
<p style="color:red;">
Please note that this application is currently in beta and is still undergoing final testing before its official release.
</p>

<h2 class="modal-title">Welcome to Lakes of Texas!</h2>
Expand All @@ -22,37 +22,60 @@ <h2 class="modal-title">Welcome to Lakes of Texas!</h2>
any information on the site/application.
</p>

<div style="bottom:0;">
<label class="form-check-label">
<input id="modalHideCheckbox" class="form-check-input" type="checkbox" value="">
Don't show this message again
</label>
<button id="dismiss-modal-btn" type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<div class="container">
<div class="row">
<div class="col-md" style="bottom:0; margin-bottom:20px;">
<button id="expand-collapse-btn"
onclick="changeBtnTxt()"
class="btn btn-info"
type="button"
data-toggle="collapse"
data-target="#expand-all-instructions"
aria-expanded="false">
Show Instructions
</button>
</div>
<div class="col-md" style="bottom:0;">
<label class="form-check-label">
<input id="modalHideCheckbox" class="form-check-input" type="checkbox" value="">
Don't show this message again
</label>
<button id="dismiss-modal-btn" type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>

<div style="padding:20px; bottom:0; float:left;">
<button id="expand-collapse-btn"
style="text-align:center;"
onclick="changeBtnTxt()"
class="btn btn-success"
<div class="collapse" id="expand-all-instructions" style="width:100%;">

<h4 id="top" style="text-align:left;">
<strong>Instructions:</strong>
</h4>

<button id="expand-index-btn"
style="text-align:center; margin:5px;"
class="btn btn-default"
type="button"
data-toggle="collapse"
data-target="#expand-instructions"
data-target="#index-instructions"
aria-expanded="false">
Show Instructions
Home Map Instructions
</button>
</div>

<div class="collapse" id="expand-instructions">
<h4 style="text-align:left;">
<strong>Instructions:</strong>
</h4>
<button id="expand-story-btn"
style="text-align:center; margin:5px;"
class="btn btn-default"
type="button"
data-toggle="collapse"
data-target="#story-instructions"
aria-expanded="false">
Story Map Instructions
</button>

<div class="container">
<div id="index-instructions" class="collapse" style="margin:20px 0;">
<div class="row">
<div class="col-lg">
<ol style="text-align:left;">
<li>Click a marker cluster to zoom closer to the area of those lake markers/locations.</li>
<li>Click a marker cluster to zoom closer to the area of those lake locations.</li>
<img class="img-fluid" src="{% static 'map/images/instructions-step1.gif' %}">
<li>Hover over markers to view lake name and region.</li>
<img class="img-fluid" src="{% static 'map/images/instructions-step2.gif' %}">
Expand All @@ -61,24 +84,49 @@ <h4 style="text-align:left;">
<li>Keep zooming to view lake polygons and labels. Click a polygon to view that lakes' story.</li>
<img class="img-fluid" src="{% static 'map/images/instructions-step4.gif' %}">
<li>Click a polygon to go to a lake story.</li>
<img class="img-fluid" src="{% static 'map/images/instructions-step5.gif' %}"
<img class="img-fluid" src="{% static 'map/images/instructions-step5.gif' %}">
</ol>
</div>
</div>
<button id="back-to-top"
style="text-align:center; margin:5px;"
class="btn btn-link"
type="button">
<a href="#top"><small>Back to top</small></a>
</button>
</div>

<div id="story-instructions" class="collapse" style="margin:20px 0;">
<div class="row">
<div class="col-lg">
<ol style="text-align:left;">
<li>Lake story content is in the left pane. A map with the lake boundary is in the right pane.</li>
<li>Click a content section header to jump to different sections of the story.</li>
<img class="img-fluid" src="{% static 'map/images/instructions-step6.gif' %}">
<li>In the map pane, there is a tools menu. Click a year in the slider tool to view historical imagery layers.</li>
<img class="img-fluid" src="{% static 'map/images/instructions-step7.gif' %}">
<li>Zooming and panning is enabled, but limited to near the selected lake. Use the 'Full Lake Extent' button to zoom back to the extent.</li>
<img class="img-fluid" src="{% static 'map/images/instructions-step8.gif' %}">
<li>Use the 'swiper' tool to view the changes between historical imagery layers and 'current' google imagery.</li>
<img class="img-fluid" src="{% static 'map/images/instructions-step9.gif' %}">
</ol>
</div>
</div>
<button id="back-to-top"
style="text-align:center; margin:5px;"
class="btn btn-link"
type="button">
<a href="#top"><small>Back to top</small></a>
</button>
</div>

</div>

</div>
</div>
</div>
</div>

<!-- <div id="lake-count" class="count-container">
<p class="count-text">
<strong>Total lake stories available: <span id="count-output" class="count"></span></strong>
</p>
</div> -->

<div id="no-results" class="search-results-container">
<p>
<strong>No results. Try searching again or using the map to find a lake.</strong>
Expand Down Expand Up @@ -165,6 +213,7 @@ <h4 style="text-align:left;">
{permanent: true}
);

// popup functionality for desktop
if (window.innerWidth > 991) {
// bind popup content to layer
layer.bindPopup(
Expand All @@ -190,6 +239,7 @@ <h4 style="text-align:left;">
window.location.href = `/${feature.properties.res_lbl}`;
});
}
// popup functionality for mobile/smaller screens (hover doesn't work on mobile)
else {
layer.bindPopup(
`<p style="text-align:center;">
Expand Down Expand Up @@ -217,15 +267,16 @@ <h4 style="text-align:left;">
maxClusterRadius: 100, // increase radius from default 80
animate: true,
showCoverageOnHover: true,
zoomToBoundsOnClick: true
zoomToBoundsOnClick: true,
polygonOptions: {color: '#ffa64d'} // change default (blue) hover polygon to orange
});
pointLayer = L.geoJson(data, {
onEachFeature: lakePopup
});
lakeClusters.addLayer(pointLayer);
map.addLayer(lakeClusters);
});

// poly lake layer
$.getJSON(polyUrl, function(data) {
polyLayer = L.geoJson(data, {
onEachFeature: lakeLabel
Expand Down
Binary file modified lakegallery/static/map/images/instructions-step1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lakegallery/static/map/images/instructions-step2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lakegallery/static/map/images/instructions-step3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lakegallery/static/map/images/instructions-step4.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lakegallery/static/map/images/instructions-step5.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions lakegallery/static/map/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ html {
}

body {
font-family: "Clear Sans";
/* font-family: "Clear Sans"; */
font-family: 'Roboto', sans-serif;
max-width: 100%;
overflow-x: hidden;
}
Expand Down Expand Up @@ -206,6 +207,7 @@ img.texas-home:hover {

#instructionModalContent > .modal-body {
overflow: auto;
overflow-y: scroll;
}
}

Expand All @@ -226,8 +228,7 @@ img.texas-home:hover {
cursor: pointer;
}

#expand-instructions {
float: left;
#expand-all-instructions {
width: auto;
height: 100%;
padding: 10px;
Expand Down
15 changes: 10 additions & 5 deletions lakegallery/static/rest_framework/css/bootstrap-theme.min.css

Large diffs are not rendered by default.

0 comments on commit b525dea

Please sign in to comment.