• ccmp

    (@ccmp)


    The text in the popup is not formatted as HTML, I want to add a link. How to do this?

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

    (@hupe13)

    Do you have an example, what you have in the geojson file and what wish you get as popup?

    Thread Starter ccmp

    (@ccmp)

    Here: https://mtbcenter.acaseofcees.nl . The geosjon’s (the routes) show text and link but I can’t get HTML like the popup from the marker.

    Plugin Contributor hupe13

    (@hupe13)

    [leaflet-geojson src=https://url/to/file.geojson color=red]<a href="https://my-domain.tld/path/">{title}</a>[/leaflet-geojson]

    or

    [leaflet-geojson src=https://url/to/file.geojson color=red]<a href="https://my-domain.tld/path/">route red</a>[/leaflet-geojson]

    You can write what you like. If you want to get the data from geojson file then they must be in it and you can get these with {...} like {title}.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can I add HTML to a popup on GEOJSON?’ is closed to new replies.