• Resolved raperez

    (@raperez)


    Hello:

    Playing with this fantastic plugin I see that I can group markers and also gpx,kml and geojson under optiongroup field options. However, I have not been able to repeat this procedure with leaflet-line shortcode. Could this be added to the extension?

    Thanks!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author hupe13

    (@hupe13)

    Do you have an example?
    But you can only group by the options for leaflet-line.

    Thread Starter raperez

    (@raperez)

    This works for all options excepts leaflet-line:

    [leaflet-map height=600 width=800 zoom=10 fitbounds zoomcontrol]
    [leaflet-gpx className=”red” src=https://cdn.jsdelivr.net/gh/mapbox/togeojson@master/test/data/run.gpx color=black]
    [leaflet-line className=”yellow” addresses=”Montreal;Ottawa” color=”purple”]Ottawa Line[/leaflet-line]
    [leaflet-optiongroup option=”className” values=”red,yellow” groups=”Linea Linea,Linea Ottawa”]
    [leaflet-marker alt=”mar1″]
    [leaflet-marker alt=”mar2″ lat=43.68 lng=-79.275]
    [leaflet-marker alt=”mar3″ lat=43.67 lng=-79.4]
    [leaflet-optiongroup option=”alt” values=”mar1,mar2,mar3″ groups=”Linea 1,Linea 2,Linea 3″]

    Thread Starter raperez

    (@raperez)

    I have also tested with “native” options, as color, and nothing seems to work….

    Am I missing something?

    Thanks!

    Plugin Author hupe13

    (@hupe13)

    No, it works only for marker (+ extramarker) and geojsons (+ gpx, kml). I will provide this in the next version.

    Thread Starter raperez

    (@raperez)

    Thanks!!!

    Plugin Author hupe13

    (@hupe13)

    If you want test it, see the Github version.

    Thread Starter raperez

    (@raperez)

    Thanks again!

    You are a machine, much more than ChatGPT!

    Plugin Author hupe13

    (@hupe13)

    Version 3.4.1 released.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘optiongroup for leaflet-line’ is closed to new replies.