• Resolved chaosad2

    (@chaosad2)


    Hi, I added a GeoJson file with many points (2500, all french passes).

    I want to add them as “an option”, and I would to uncheck them when map is loaded. Is there an option to do this ?

    Thank you.

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

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

    (@hupe13)

    I see in your code you would like to group the markers with shortcode geojsonmarker. But something is wrong. What is your geojsonmarker shortcode and the options?

    Thread Starter chaosad2

    (@chaosad2)

    Thanks for your answer.

    Here is my code :

    [geojsonmarker property=name markerColor=red icondefault=blue-dark shape=circle icon=fa-solid prefix=fa-mountain disableClusteringAtZoom=14 maxClusterRadius=150 groups=”Cols,Cols > 2000 m,others” values=”Cols,Cols > 2000 m,others” position=topright collapsed=true]

    Plugin Author hupe13

    (@hupe13)

    There is a problem with [] in the name property: "name":"[ColsFr]" and the > in groups. If I remove all [] to "name":"ColsFr" and the > , then it works like expected:

    [geojsonmarker property=name groups="ColsFr +2000,ColsFr,others" values="ColsFr +2000,ColsFr,others" markerColor=red shape=circle icon=fa-solid prefix=fa-mountain disableClusteringAtZoom=14 maxClusterRadius=150 position=topright collapsed=true visible=0]

    You can use auto, then [] works okay, but visible does not work right. It is a bug.

    [geojsonmarker property=name auto markerColor=red shape=circle icon=fa-solid prefix=fa-mountain disableClusteringAtZoom=14 maxClusterRadius=150 position=topright collapsed=true visible=0]

    And there is a bug with others.

    Thread Starter chaosad2

    (@chaosad2)

    OK, I removed all [] and > in geojson file.

    OK for bugs with auto

    I just keptgroups="Cols,Cols 2000 m,others" values="Cols,Cols 2000 m,others" in code and added visible=0. It seems to work fine.

    Thanks.

    Geojson files are loaded with map, even if markers are not shown, right ?

    • This reply was modified 7 months ago by chaosad2.
    Plugin Author hupe13

    (@hupe13)

    Geojson files are loaded with map, even if markers are not shown, right ?

    Yes, files are loaded.

    but visible does not work right. It is a bug.

    It is not a bug, it is a feature. ?? It is valid only, if groups and values are specified.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘GeoJson – uncheck by default’ is closed to new replies.