Merge pull request #384 from stesie/add-overpass-layer-re
Add (Overpass based) POI layer
This commit is contained in:
commit
f3d4b23726
76 changed files with 1562 additions and 59 deletions
51
index.html
51
index.html
|
|
@ -208,24 +208,26 @@
|
|||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<input
|
||||
class="form-control"
|
||||
type="text"
|
||||
id="layer_name"
|
||||
spellcheck="true"
|
||||
wrap="off"
|
||||
data-i18n="[placeholder]layers.placeholder-layer-name"
|
||||
placeholder="Custom layer name. (ex: OpenStreetMap)"
|
||||
/>
|
||||
<input
|
||||
class="form-control"
|
||||
type="text"
|
||||
id="layer_url"
|
||||
spellcheck="false"
|
||||
wrap="off"
|
||||
data-i18n="[placeholder]layers.placeholder-layer-url"
|
||||
placeholder="Custom layer URL. (ex: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png)"
|
||||
/>
|
||||
<div class="form-group">
|
||||
<label for="layer_name" data-i18n="layers.custom-layer-name-label">Custom layer name</label>
|
||||
<input class="form-control" type="text" id="layer_name" spellcheck="true" wrap="off" />
|
||||
<p class="help-block" data-i18n="layers.custom-layer-name-helptext">ex: OpenStreetMap</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="layer_name" data-i18n="layers.custom-layer-url-label"
|
||||
>Custom layer URL/Query</label
|
||||
>
|
||||
<input class="form-control" type="text" id="layer_url" spellcheck="false" wrap="off" />
|
||||
<p class="help-block">
|
||||
<span data-i18n="layers.custom-layer-url-helptext-normal"
|
||||
>URL for normal layers, ex: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png</span
|
||||
><br />
|
||||
<span data-i18n="layers.custom-layer-url-helptext-overpass"
|
||||
>Overpass Query, ex: nwr[shop]['diet:vegan']['diet:vegan'!=no];</span
|
||||
>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
|
|
@ -243,6 +245,14 @@
|
|||
>
|
||||
Add overlay
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="custom_layers_add_overpass"
|
||||
class="btn btn-success"
|
||||
data-i18n="layers.add-overpass"
|
||||
>
|
||||
Add overpass query
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="custom_layers_remove"
|
||||
|
|
@ -898,7 +908,10 @@
|
|||
|
||||
<div class="leaflet-sidebar-flex-row flexgrow">
|
||||
<div id="map" class="leaflet-sidebar-map">
|
||||
<div id="message"></div>
|
||||
<div id="notification_jar">
|
||||
<div id="message"></div>
|
||||
<div id="overpass_loading_indicator"></div>
|
||||
</div>
|
||||
<div id="preview" hidden data-i18n="map.preview">Preview</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue