~craftyguy/ridecasa

d7a123c316e36a798b6e86605a8ef61ca1fc90ac — Clayton Craft 7 months ago 375227f
templates/settings/privacy: add leaflet.GestureHandling to page
1 files changed, 4 insertions(+), 1 deletions(-)

M ridecasa/templates/settings/privacy.html
M ridecasa/templates/settings/privacy.html => ridecasa/templates/settings/privacy.html +4 -1
@@ 2,6 2,8 @@
{% block head %}
    <link rel="stylesheet" href={{ url_for('static',filename='css/leaflet.css') }}>
    <script type="text/javascript" src="/static/js/leaflet.js" nonce="{{ csp_nonce() }}"></script>
    <script type="text/javascript" src="/static/js/leaflet-gesture-handling.min.js" nonce="{{ csp_nonce() }}"></script>
    <link rel="stylesheet" href={{ url_for('static',filename='css/leaflet-gesture-handling.min.css') }}>
{% endblock %}

{% block settings_content %}


@@ 86,7 88,8 @@
  L.Icon.Default.imagePath = "{{ url_for('static', filename='img/') }}";
  var geofence_map = L.map('geofence_mapid', {
    zoomDelta: 0.25,
    zoomSnap: 0
    zoomSnap: 0,
    gestureHandling: true
  });
	var osmUrl='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
	var osmAttrib='Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';