Jump to content
JasperReports 7.0 is now available ×

Google maps http/https link problem from a different machine


deeperwhite

Recommended Posts

Hi,

I am using a jasperserver dashboard on linux. Dashboard contains a google map as well. I can also access that machine on windows using its web link.

The problem is since map comes up with an http link, the browser blocks it..I also need it to be https link.

Can you help me with that?

 

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...

For google maps displayed using the maps component of JasperReports / JasperServer, you can use the text editor of your choice to change all occurances of http://maps.google.com/maps/api to https://maps-api-ssl.google.com/maps/api in the three files named maps.js, jasperreportsmap.js, and MapElementHtmlTemplate.vm that can be found in the folder path net/sf/jasperreports/components/map/resources in the main jasperreports jar file.

That's the file in the WEB-INF/lib folder of JasperServer named something like jasperreports-5.5.0.jar.

If you are using the default map marker icons on your map, you may still get a warning message in your browser about unencrypted elements such as images, because of the references in these same files to the marker icon files at the non-SSL url that begins with http://chart.apis.google.com .

I'm not sure what the proper https location for those marker files should be - but if you figure it out, please post the proper URL here.

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...