Skip to content
Snippets Groups Projects
Commit a6ecdb86 authored by Camille Blanchon's avatar Camille Blanchon
Browse files

Merge branch 'redmine-issues/17474' into 'develop'

REDMINE_ISSUE-17474 | Ajouter un geocodeur ETALAB sur les cartes

See merge request !624
parents 56199254 874458c3
No related branches found
No related tags found
1 merge request!624REDMINE_ISSUE-17474 | Ajouter un geocodeur ETALAB sur les cartes
...@@ -5,11 +5,13 @@ ...@@ -5,11 +5,13 @@
> >
<button <button
class="button-geocoder" class="button-geocoder"
@click="toggleGeocoder"
title="Rechercher une adresse" title="Rechercher une adresse"
@click="toggleGeocoder"
> >
<i class="search icon" /> <i class="search icon" />
</button> </button>
<!-- internal-search should be disabled to avoid filtering options, which is done by the api calls anyway https://stackoverflow.com/questions/57813170/vue-multi-select-not-showing-all-the-options -->
<!-- otherwise approximate results are not shown (cannot explain why though) -->
<Multiselect <Multiselect
v-if="isExpanded" v-if="isExpanded"
ref="multiselect" ref="multiselect"
...@@ -18,7 +20,8 @@ ...@@ -18,7 +20,8 @@
:options="addresses" :options="addresses"
:options-limit="limit" :options-limit="limit"
:allow-empty="true" :allow-empty="true"
track-by="label" :internal-search="false"
track-by="id"
label="label" label="label"
:show-labels="false" :show-labels="false"
:reset-after="true" :reset-after="true"
...@@ -196,6 +199,15 @@ export default { ...@@ -196,6 +199,15 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
#marker {
width: 20px;
height: 20px;
border: 1px solid rgb(136, 66, 0);
border-radius: 10px;
background-color: rgb(201, 114, 15);
opacity: 0.7;
}
#geocoder-container { #geocoder-container {
position: absolute; position: absolute;
right: 6px; right: 6px;
...@@ -244,16 +256,6 @@ export default { ...@@ -244,16 +256,6 @@ export default {
border-radius: 2px 0 0 2px; border-radius: 2px 0 0 2px;
} }
} }
#marker {
width: 20px;
height: 20px;
border: 1px solid rgb(136, 66, 0);
border-radius: 10px;
background-color: rgb(201, 114, 15);
opacity: 0.7;
}
// /* keep placeholder width when opening dropdown */ // /* keep placeholder width when opening dropdown */
.multiselect { .multiselect {
min-width: 208px; min-width: 208px;
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div class="geolocation-container"> <div class="geolocation-container">
<button <button
:class="['button-geolocation', { tracking }]" :class="['button-geolocation', { tracking }]"
@click.prevent="toggleTracking"
title="Me localiser" title="Me localiser"
@click.prevent="toggleTracking"
> >
<i class="crosshairs icon" /> <i class="crosshairs icon" />
</button> </button>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment