Skip to content

Commit de7f271

Browse files
authored
add location control to historical images map
1 parent 63a6ba8 commit de7f271

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

_ultra-maps/historical-images.ultra

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
---
22
type: dsv
3+
controls:
4+
- type: GeolocateControl
5+
options:
6+
positionOptions:
7+
enableHighAccuracy: true
8+
trackUserLocation: true
39
style:
410
layers:
511
- type: circle
@@ -18,7 +24,8 @@ popupTemplate: >
1824
<img style="width: 100%; max-width: 25em;" src="{{ properties.img_url }}">
1925
</a>
2026
<p>
21-
Year: {% if properties.year == "" %}Unknown{% else %}{{ properties.year }}{% endif %}<br>
27+
Year: {% if properties.year is "" %}{{ properties.year }}{% else %}Unknown{% endif %}
28+
<br>
2229
Source: <a href="{{ properties.source_url }}" target="_blank">
2330
{{ properties.source }}
2431
</a>

0 commit comments

Comments
 (0)