I have a Map element report in which i am displaying lables on markers. I looked over all the forums but couldn't find any. I wanted to have tool-tip so that if i hover over the markers, some data would be displayed accordignly. The same way it works in Google Map. How do i incorporate that?
1 Answer:
Posted on September 4, 2015 at 3:15am
Ok, I found a solution using this http://community.jaspersoft.com/wiki/how-add-marker-tooltips-and-hyperlinks-google-map-component
I used infowindow to display the data i needed to.
<mp:itemProperty name="infowindow.content">
<valueExpression>
<![CDATA["<pstyle='text-align:left;'><a href="+$F{url}+"target=_blank><b>"+$F{markername}+"</b></a><br/>latitude:<b>"+$F{latitude}+"</b><br/>longitude:<b>"+$F{longitude}+"</b></p>"]]>
</valueExpression>
</mp: itemProperty>