• Hello,

    I would like to insert a link in an article/post that would open the page of a map that would focus on a given brand.

    Thanks in advance for the help provided.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor hupe13

    (@hupe13)

    Create a page or post with a map and a marker and insert the URL to this in the article.

    https://my-domain.tld/brands/brand1/

    [leaflet-map]
    [leaflet-marker lat=... lng=...]brand1[/leaflet-marker]

    https://my-domain.tld/article1/
    Here is a link to https://my-domain.tld/brands/brand1/

    Of course, you can insert the map directly in the article.
    Or what do you mean?

    • This reply was modified 2 years, 7 months ago by hupe13. Reason: typo
    Thread Starter aloury

    (@aloury)

    Hello,
    thank you for your interest in my question. I specify:

    – I have a page that contains a map with several marks, each of its last contains 1 name and an address. Here is the code:

    [leaflet-map lat=46.553636917437416 lng=0.3422391414642334 zoom=9 zoomcontrol !detect-retina]
    [leaflet-marker lat=46.553643 lng=0.342238]Comité de la Vienne de Volley-Ball<br>56 route de Poitiers<br>86280 Saint-Benoit[/leaflet-marker]
    [leaflet-marker lat=46.6210703 lng=0.4233897]Gymnase de Montamisé<br>Rue de l'ancien porche<br>86360 Montamisé[/leaflet-marker]
    [leaflet-marker lat=46.7142408 lng=0.5447886]Gymnase de Vouneuil sur Vienne<br>Rue de Bel Air<br>86210 Vouneuil sur Vienne[/leaflet-marker]

    – in another page, I want to insert a link to the previous page where the map would center on a mark defined in the link.

    Am I clearer?

    Plugin Contributor hupe13

    (@hupe13)

    It is easier to link from a marker to a page.
    [leaflet-marker lat=46.553643 lng=0.342238]<a href="https://my-domain.tld/brands/brand1/">Comité de la Vienne de Volley-Ball</a><br>56 route de Poitiers<br>86280 Saint-Benoit[/leaflet-marker]
    I think without php knowledge your wish can not be realized. lat and lng would have to be passed as parameters and the map must center to it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link to a specific brand’ is closed to new replies.