Skip to content

Commit

Permalink
fix(templates): drop custom map because thats now part of apis-core
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Oct 23, 2024
1 parent e683a36 commit 928652f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions apis_ontology/templates/generic/partials/object_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,3 @@
</tr>
{% endblock objecttable %}
</table>
<table class="table table-hover table-bordered">
{% if object.latitude and object.longitude %}
<td id="map" style="height: 300px">
</td>
<script>
var map = L.map('map').setView([{{ object.latitude|floatformat:"4u" }}, {{ object.longitude|floatformat:"4u" }}], 13);

L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);

L.marker([{{ object.latitude|floatformat:"4u"}}, {{ object.longitude|floatformat:"4u"}}]).addTo(map)
.bindPopup('{{ object }}')
.openPopup();
</script>
{% endif %}
</table>

0 comments on commit 928652f

Please sign in to comment.