Move standing woter to use libremap instead of mapbox

This commit is contained in:
Eli Ribble 2026-03-03 20:27:33 +00:00
parent 6aa7fa60b4
commit 38906db816
No known key found for this signature in database
4 changed files with 57 additions and 39 deletions

View file

@ -2,6 +2,11 @@
{{ define "title" }}Report Standing Water{{ end }}
{{ define "extraheader" }}
<script
type="text/javascript"
src="//unpkg.com/maplibre-gl@5.0.1/dist/maplibre-gl.js"
></script>
<script src="/static/js/map-locator.js"></script>
<style>
body {
background-color: #f8f9fa;
@ -117,7 +122,11 @@
<!-- Address Information -->
<div class="address-container">
<div class="mb-2"><strong>Detected Address:</strong></div>
<h5>123 Maple Street, Riverside, CA 92501</h5>
<h5>
{{ .C.Address.Number }} {{ .C.Address.Street }},
{{ .C.Address.Locality }}, {{ .C.Address.Region }}
{{ .C.Address.PostalCode }}
</h5>
</div>
<div class="mb-4">

View file

@ -2,7 +2,10 @@
{{ define "title" }}Report Standing Water{{ end }}
{{ define "extraheader" }}
<script src="https://api.mapbox.com/mapbox-gl-js/v3.17.0-beta.1/mapbox-gl.js"></script>
<script
type="text/javascript"
src="//unpkg.com/maplibre-gl@5.0.1/dist/maplibre-gl.js"
></script>
<script src="/static/js/address-suggestion.js"></script>
<script src="/static/js/geocode.js"></script>
<script src="/static/js/location.js"></script>