Hi,
I am using marker template to show the labels of the state.
I want to provide option for the user to hide/show labels. For hiding labels I am using
$("#map").igMap("option", "series", [{ name: "Parent", markerTemplate: null, tooltipTemplate: null }]);
To show labels again what shall I do?
Regards,
Pavan
Hi, Pavan
Try to use the same statement but assign the value you provide at initialization to markerTemplate. That must do the trick.
Cheers, Lazar
I assigned the value of marker Template name I applied earlier as below.
$("#map").igMap("option", "series", [{name:"Parent",markerTemplate:"IRSMarker",tooltipTemplate:"IRSTooltip", remove:false }]);
It is actually making all the shapes dissapear.