Skip to content

Commit

Permalink
feat(apis_entities): introduce a e53_place autocomplete template
Browse files Browse the repository at this point in the history
This autocomplete template shows a small `location` symbol with the
autocomplete results of a E53_Place type entity. On hovering the symbol,
a map with the location of the entity is displayed.
  • Loading branch information
b1rger committed Sep 20, 2024
1 parent 1e56ad1 commit ac358a7
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% if result.longitude and result.latitude %}
<a data-latitude="{{ result.latitude|floatformat:"4u" }}"
data-longitude="{{ result.longitude|floatformat:"4u" }}"
title="Map"
onmouseenter="showMap(this);"
onmouseout="delMap(this);"><span class="material-symbols-outlined material-symbols-align">location_on</span></a>
{% endif %}
{{ result }}
{% if result.kind %}<i>({{ result.kind }})</i>{% endif %}
<a href="{{ result.uri }}">local result</a>

0 comments on commit ac358a7

Please sign in to comment.