Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(SearcEngine): Ajout de l'option markerUrl #197

Merged
merged 5 commits into from
Oct 16, 2024

Conversation

lowzonenose
Copy link
Collaborator

@lowzonenose lowzonenose commented Oct 14, 2024

image

Ajout de l'option markerUrl afin de personnaliser l'icone de géolocalisation

var search = new ol.control.SearchEngine({
  markerUrl : "data:image/svg+xml;base64,..."
});

Ainsi que des événements sur la géolocalisation et recherche par coordonnées :

                   search.on("searchengine:autocomplete:click", function (e) {
                        console.warn("autocomplete", e.location);
                    });
                    search.on("searchengine:search:click", function (e) {
                        console.warn("search", e.suggest);
                    });
                    search.on("searchengine:geocode:click", function (e) {
                        console.warn("location", e.location);
                    });
                    search.on("searchengine:geolocation:click", function (e) {
                        console.warn("geolocation", e.coordinates);
                    });
                    search.on("searchengine:coordinates:click", function (e) {
                        console.warn("coordinate", e.coordinates);
                    });

Dev qui va nous permettre de résoudre le ticket suivant :
cf. IGNF/cartes.gouv.fr-entree-carto#332

@lowzonenose lowzonenose changed the title Ajout de l'option markerUrl feat(SearcEngine): Ajout de l'option markerUrl Oct 15, 2024
Copy link
Contributor

@elias75015 elias75015 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK pour moi.

Attention à bien récupérer la dernière version de la main avant de merger (avec tgz)

@lowzonenose lowzonenose merged commit ff631bb into main Oct 16, 2024
@azarz azarz deleted the feature/marker-url-searchengine branch October 16, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants