• Resolved oekoplatt

    (@oekoplatt)


    Thank You for this great plugin!
    But I’ve a problem. If I use many markers, they create empty line in the post. How to avoid this?

    Thank You

    The code is
    [leaflet-map lat=51.097 lng=10.349 height=”800″ fitbounds]
    [leaflet-marker lat=49.0159,8.4095 ]Karlsruhe [/leaflet-marker]
    [leaflet-marker lat=49.8431642 lng=7.8657658 ]Bad Kreuznach [/leaflet-marker]
    [leaflet-marker lat=48.0532,8.4723 ]Villingen-Schwenningen [/leaflet-marker]
    [leaflet-marker lat=50.5525346 lng=8.5074406 ]Wetzlar [/leaflet-marker]
    [leaflet-marker lat=51.2419586 lng=7.16579446478791 ]Wuppertal [/leaflet-marker]
    [leaflet-marker lat=52.8703,11.1371 ]Salzwedel [/leaflet-marker]
    [leaflet-marker lat=50.2005518 lng=8.580452 ]Witzenhausen [/leaflet-marker]
    [leaflet-marker lat=51.514167 lng=7.463889 ]Dortmund [/leaflet-marker]
    [leaflet-marker lat=49.4362,11.1357 ]Nürnberg [/leaflet-marker]
    [leaflet-marker lat=50.7985,8.7428 ]Marburg [/leaflet-marker]
    [leaflet-marker lat=51.5144,6.8539 ]Oberhausen [/leaflet-marker]
    [leaflet-marker lat=50.2005518 lng=8.580452 ]Salzgitter [/leaflet-marker]
    [leaflet-marker lat=50.0500,10.2333 ]Schweinfurt [/leaflet-marker]
    [leaflet-marker lat=50.978056 lng=11.029167 ]Erfurt [/leaflet-marker]
    [leaflet-marker lat=49.8489566 lng=7.8628083 ]Bad Kreuznach [/leaflet-marker]
    [leaflet-marker lat=51.458069,7.014761 ] Essen [/leaflet-marker]
    [leaflet-marker lat=47.9223791 lng=8.7839359 ] Hattingen [/leaflet-marker]
    [leaflet-marker lat=54.2433326 lng=12.4319733 ] Ribnitz-Damgarten [/leaflet-marker]
    [leaflet-marker lat=48.8181556 lng=9.278085 ]Fellbach [/leaflet-marker]
    [leaflet-marker lat=50.733992 lng=7.099814]Bonn [/leaflet-marker]
    [leaflet-marker lat=48.1550,11.5418 ]München [/leaflet-marker]

    The page I need help with: [log in to see the link]

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

    (@hupe13)

    I think, the reason is the editor. WordPress is generating a <br/> after each leaflet-marker-line. Try to write this code as html block or without new-lines.

    Plugin Author bozdoz

    (@bozdoz)

    Gutenburg has a shortcode block as well that works best I believe.

    Plugin Contributor hupe13

    (@hupe13)

    In any case, <br/> is generated, I guessed the editor, I don’t know.

    Thread Starter oekoplatt

    (@oekoplatt)

    @bozdoz:
    Using the Gutenberg shortcode block I got the same result.
    @hupe13:
    There is no <br/> in the code. I use the TinyMCE html editor. But You directed me to the solution: I removed all weak breaks. So the code is now

    [leaflet-map lat=51.097 lng=10.349 height=”800″ fitbounds][leaflet-marker lat=49.0159,8.4095 ]Karlsruhe [/leaflet-marker][leaflet-marker lat=49.8431642 lng=7.8657658 ]Bad Kreuznach [/leaflet-marker][leaflet-marker lat=48.0532,8.4723 ]Villingen-Schwenningen [/leaflet-marker][leaflet-marker lat=50.5525346 lng=8.5074406 ]Wetzlar [/leaflet-marker][leaflet-marker …

    This solved my problem. But this is very confusing.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘markers create emty lines’ is closed to new replies.