Display a piece of data on tool-tip mouse-over in Map Element.

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? 

nazaf's picture
102
Joined: Aug 12 2015 - 1:22am
Last seen: 5 years 2 months ago

1 Answer:

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>

nazaf's picture
102
Joined: Aug 12 2015 - 1:22am
Last seen: 5 years 2 months ago
Feedback