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
You are assigning a string to markerTemplate and this cannot work. The markerTemplate option expects an object with functions measure and render as members in order to work. Could you post the code of your view, at least how you initialize the igMap control?
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.
Try to use the same statement but assign the value you provide at initialization to markerTemplate. That must do the trick.