rlebosse Report post Posted July 20, 2010 I'm using FusionMaps for my GWT project. I would like to get the area ID by clicking in this area? Is it possible? Thanks, - Romain Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted July 21, 2010 Hi Romain, Welcome to FusionCharts forum. Please try passing the Entity Id in the "link" attribute of the <entity> element for the same. Ref.- <entity id='NA' value='515' link="myJS('NA');"/> <SCRIPT LANGUAGE="JavaScript"> <!-- function myJS(myVar){ window.alert(myVar); } //--> </SCRIPT> For further details please refer to the link below :- Ref.- http://www.fusioncharts.com/maps/docs/Contents/DrillDown/JavaScript.html Additionally, if you set the value of the attribute "exposeHoverEvent" to '1' in the <map> element, it would automatically raise an event that returns an object containing the id of the hovered over entity. Ref.- http://www.fusioncharts.com/maps/docs/Contents/JS_Hover.html Hope this helps. Share this post Link to post Share on other sites
rlebosse Report post Posted July 21, 2010 Thanks Basundhara Ghosal, I will try what you're suggesting! I just wondered if I can write the following part between the "< map >< /map >" xml data? < SCRIPT LANGUAGE="JavaScript" > < !-- function myJS(myVar){ window.alert(myVar); } //-- > < /SCRIPT > Share this post Link to post Share on other sites
rlebosse Report post Posted July 21, 2010 I really don't know where I can write the < SCRIPT > < /SCRIPT > part. I'm using GWT. The ChartMap is created into an XML file and I work on it into a GWT class. Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted July 21, 2010 Hi, You are welcome. Please try using a JavaScript function where you need to pass the parameters mentioned in the "link" attribute(in this case the parameter is the ID of the entity). Hope this helps. Share this post Link to post Share on other sites
rlebosse Report post Posted July 23, 2010 Is it possible to set a java method in the "link" attribute instead of a javascript function? Share this post Link to post Share on other sites
Sanjukta Report post Posted July 23, 2010 Hi, Is it possible to set a java method in the "link" attribute instead of a javascript function? I am afraid, this is not possible with FusionCharts, as of now. Share this post Link to post Share on other sites