The expected behavior is to hide the particular series of data on click of that series of legend and show the rest. The legend item corresponding to that particular series is clickable but In the map those data points don't get hidden. The options used is shown below
Welcome to our forum and thanks for contacting us with your question!
Do you want to hide a country from your map or maybe a point (mappoint)? Could you reproduce this issue in an online editor that I could work on? Please point out where the issue is.
Hello Dominik,
Thank you for the reply. The issue has been solved.
But I want to ask is it possible to increase the size of the marker in legend with "view full screen mode". As in full screen The map is larger but legend doesn't increase it size.
Thank you for the approach but I am actually using menu provided by highmaps which contains "View in full screen" not a custom button.
This is my complete react code. Can you help me in modifying the below code so that while using "View in full screen" of the contextMenu provided by react I can increase the legend size in full screen mode.
Also, by default when we click on the legend belonging to a particular series, map-points belonging to that series gets hidden and rest of the map-points belonging to other series are visible. But our requirement is only for the legends which are being clicked/selected the map-point should be visible in the map and rest should be invisible. To simplify we want just opposite of the default behaviour.
In your code, I've got a problem with usCities module, so if you want to fix your issue in React please reproduce this issue firstly in the online editor.
Besides that, I've prepared a demo in which I replaced the default "View in full screen" button in the context menu with a custom one. Here you've got a demo: https://jsfiddle.net/BlackLabel/q6vo1xyr/
I hope it'll help you to implement this solution in your code.
Hi Dominik,
Thanks a lot for the piece of code. I am able to implement that in my react code. But after I click on "exit full screen" I need to update those legend size again. So how do I track through the code if I am currently in full screen and update the context menu so that after I click on "exit full screen" the legend size decreases again.