a
This commit is contained in:
parent
289606db87
commit
661d9f500e
4
app.py
4
app.py
@ -6,6 +6,6 @@ client = stravalib.client.Client()
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
return flask.render_template('index.html')
|
||||
return flask.render_template('test.html')
|
||||
|
||||
app.run(host='0.0.0.0',debug=True)
|
||||
app.run(host='0.0.0.0')
|
||||
@ -14,8 +14,5 @@
|
||||
<main>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>© 2025 Ian Burgess. Licensed under the <a href="https://www.gnu.org/licenses/agpl-3.0.html" target="_blank" rel="license noopener noreferrer">GNU Affero General Public License</a>, <a href="https://source.ionburger.me/turfrun" target="_blank" rel="noopener noreferrer">View Source</a>.</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
49
templates/test.html
Normal file
49
templates/test.html
Normal file
@ -0,0 +1,49 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Runturf</title>
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
|
||||
crossorigin=""/>
|
||||
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
|
||||
crossorigin=""></script>
|
||||
<style>
|
||||
#map { height: 300px; } /* Adjust height as needed */
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="map"></div>
|
||||
|
||||
<script>
|
||||
// Initialize the map
|
||||
var map = L.map('map').setView([45.6782, -111.0387], 13); // Bozeman, MT as default center and zoom
|
||||
|
||||
// Add a tile layer (you can choose a different provider)
|
||||
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
||||
}).addTo(map);
|
||||
|
||||
// Define the coordinates of the polygon vertices
|
||||
var polygonCoordinates = [
|
||||
[45.6850, -111.0450],
|
||||
[45.6900, -111.0300],
|
||||
[45.6800, -111.0250],
|
||||
[45.6750, -111.0400]
|
||||
];
|
||||
|
||||
// Create the polygon with orange color
|
||||
var orangePolygon = L.polygon(polygonCoordinates, {
|
||||
color: 'orange',
|
||||
fillColor: 'orange',
|
||||
fillOpacity: 0.7 // Adjust opacity as needed
|
||||
}).addTo(map);
|
||||
|
||||
// You can also add a popup to the polygon
|
||||
orangePolygon.bindPopup("ionburger");
|
||||
</script>
|
||||
<footer>
|
||||
<p>© 2025 Ian Burgess. Licensed under the <a href="https://www.gnu.org/licenses/agpl-3.0.html" target="_blank" rel="license noopener noreferrer">GNU Affero General Public License</a>, <a href="https://source.ionburger.me/turfrun" target="_blank" rel="noopener noreferrer">View Source</a>.</p>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user