• Resolved Wizard

    (@badmp3)


    We have checked out the parent group / nested example

    But trying it out with our alittle more complex setup doesnt work

    [leaflet-optiongroup disableClusteringAtZoom=0 option="iconUrl" values="perk,npctown,stronghold,majorhold,wagon,field,blackiron,coal,copper,iron,jade,meteoriteiron,zalt,saltpeter,boar,crocodile,deer,elephant,fox,rabbit,rhinoceros,wolf" groups='Points,NPC Towns,Stronghold,Major Stronghold,Collect,Field
    Resources,Black Iron,Coal,Copper,Iron,Jade,Meteorite Iron,Crude Salt,Saltpeter
    Animals,Boar,Crocodile,Deer,Elephants,Fox,Rabbits,Rhinoceros,Wolf' substr]


    Is it safe to say the “[parentgroup parent=Markers childs="Points,NPC Towns,Stronghold,Major Stronghold,Collect,Field
    Resources,Black Iron,Coal,Copper,Iron,Jade,Meteorite Iron,Crude Salt,Saltpeter
    Animals,Boar,Crocodile,Deer,Elephants,Fox,Rabbits,Rhinoceros,Wolf"]
    ” wont work with our markers?

    Thanks!

    • This topic was modified 2 years, 2 months ago by Wizard.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author hupe13

    (@hupe13)

    If leaflet-optiongroup work, then should parentgroup work also. But your code is difficult to read. Some pictures (of icons?) are missing. However, pictures of icons have no place in groups. Use it like:

    [leaflet-map ...]
    [leaflet-marker iconurl=.../perk/.../icon1.png ...]Perk[/leaflet-[marker]
    [leaflet-marker iconurl=.../npctown/.../icon2.png ...]Npctown[/leaflet-marker]
    ...
    [leaflet-optiongroup option="iconUrl" values="perk,npctown,..." groups="perkgroup,npctowngroup,..." substr]
    [parentgroup parent=mygroup childs="perkgroup,npctowngroup,..."]
    
    Thread Starter Wizard

    (@badmp3)

    We added the Icons to the optionsgroup so the Popup Menu look better

    example:
    groups='<img height=20 src=https://WebSite/media/icons/perk.png width=20>Points,

    I guess this will cause the problem

    Plugin Author hupe13

    (@hupe13)

    Yes. I only tested text for the group names, otherwise it will be too complicated to apply to everyone.

    To insert pictures there, I would have to do some things differently, but at the moment I have no idea how.

    Thread Starter Wizard

    (@badmp3)

    If possible a additional option like this

    [leaflet-optiongroup option=”iconUrl” showIconsInMenu=”on” values=”perk,npctown,…” groups=”perkgroup,npctowngroup,…” substr]

    Some parameter here would be super easy for people to use, if they want the icon to show in the Menu, and I wouldn’t think it would be to hard to implement.

    • This reply was modified 2 years, 2 months ago by Wizard.
    Plugin Author hupe13

    (@hupe13)

    showIconsInMenu=”on”

    You mean the same icons as in leaflet-marker should be shown? I will think about it.

    Thread Starter Wizard

    (@badmp3)

    Yup, same icon as in the IconURL

    Plugin Author hupe13

    (@hupe13)

    Sometimes all that’s missing is the right idea, and then it is easy. You can test the Github version, running already on leaflet.de.

    Thread Starter Wizard

    (@badmp3)

    Can you also add in the feature so when someone Presses on the Parent Check Box and Turns it off, all of the Child Nodes under also get Turned off

    And then have the reverse, when a user then presses the Parent button that isnt currently checked, it will check it off and again all the child nodes in the group.

    I feel this is kinda missing, but overall this feature update is a great addition!

    Plugin Author hupe13

    (@hupe13)

    It works like the demo from Leaflet.FeatureGroup.SubGroup. Someone has already had your wish, but there is not really a solution.

    Thread Starter Wizard

    (@badmp3)

    I believe in you!

    Maybe chatGPT can give you ideas / codes to make it happen!

    Plugin Author hupe13

    (@hupe13)

    If it’s not written anywhere, ChatGPT has no idea either. πŸ˜‰

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

The topic ‘ParentGroup – Does it work with IconURL?’ is closed to new replies.