Jump to content
We've recently updated our Privacy Statement, available here ×

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


nazaf
Go to solution Solved by nazaf,

Recommended Posts

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? 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

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"> [/code]
   <valueExpression>[/code]
      <![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&gt]]>[/code]
  </valueExpression>[/code]
</mp: itemProperty>[/code]

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...