Skip to content

Commit c3e6e70

Browse files
authored
changes default maps url and moves field type tu 'url'
1 parent ed0ee8e commit c3e6e70

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

config-example.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ hash_kennels = Nerd H3, Nerd Full Moon H3
9797
# Define a maps url (google, apple, open street map) template,
9898
# params "lat" and "long" will be substituted if present for a run
9999
# and field "Maps Location URL" has not been defined.
100-
#maps_url_template = "https://www.google.com/maps/search/?api=1&query={lat},{long}"
100+
#maps_url_template = https://www.openstreetmap.org/?mlat={lat}&mlon={long}#map=17/{lat}/{long}
101101

102102
###
103103
### [listmonk]

config/models/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
log = get_logger()
1919

20-
maps_url_template = "https://www.google.com/maps/search/?api=1&query={lat},{long}"
20+
maps_url_template = "https://www.openstreetmap.org/?mlat={lat}&mlon={long}#map=17/{lat}/{long}"
2121

2222

2323
# noinspection PyMethodParameters

source/manage_event_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __init__(self):
112112
"label": "Maps Location URL",
113113
"description": "Add an maps URL with a specific location",
114114
"required": False,
115-
"type": "text"
115+
"type": "url"
116116
}
117117
}
118118

0 commit comments

Comments
 (0)