dynamic location as a starting point

This commit is contained in:
Laura Klünder 2019-12-27 23:27:50 +01:00
parent cca263c605
commit 1ecdc89a68
7 changed files with 63 additions and 13 deletions

View file

@ -1547,6 +1547,7 @@ c3nav = {
$.getJSON('/api/locations/' + location.id + '/geometry/', c3nav._location_geometry_loaded);
}
if (!location.point) return;
var point = c3nav._location_point_overrides[location.id] || location.point.slice(1),
latlng = L.GeoJSON.coordsToLatLng(point),
buttons = $('#location-popup-buttons').clone();

View file

@ -4,9 +4,9 @@ from c3nav.site.views import (about_view, access_redeem_view, account_view, chan
login_view, logout_view, map_index, position_create, position_detail, position_list,
position_set, qr_code, register_view, report_create, report_detail, report_list)
slug = r'(?P<slug>[a-z0-9-_.:]+)'
slug = r'(?P<slug>[a-zA-Z0-9-_.:]+)'
coordinates = r'(?P<coordinates>[a-z0-9-_:]+:-?\d+(\.\d+)?:-?\d+(\.\d+)?)'
slug2 = r'(?P<slug2>[a-z0-9-_.:]+)'
slug2 = r'(?P<slug2>[a-zA-Z0-9-_.:]+)'
details = r'(?P<details>details/)?'
nearby = r'(?P<nearby>nearby/)?'
options = r'(?P<options>options/)?'