I have the map module working for accounts with GeoCoding. The map displays correctly.
When I click on a pin an info box displays above the pin.
At the bottom of this box is a link to Google Maps View.
This link is incorrect:
http://maps.googleapis.com/maps ?
Correct link:
http://maps.google.com/maps ?
The base of the link should be: http://maps.google.com
NOT: http://maps.googleapis.com
If I manually change the link it works.
How do I change the base link as the page is generated? I have been dig into the files but I can’t find the file that is generating this link.
Which version is this?
Unfortunately it seems to be scattered in text around the code, instead of defined in a system setting…
https://github.com/salesagility/SuiteCRM/search?p=2&q=maps.googleapis.com&unscoped_q=maps.googleapis.com
Can you please open a new issue on Github suggesting this (if it isn’t already there)?
Workaround: define an entry for maps.googleapis.com in your operating system’s “hosts” file, redirecting it to maps.google.com
BUT it needs to be done on each client computer…
pgr:
Which version is this?
Unfortunately it seems to be scattered in text around the code, instead of defined in a system setting…
Repository search results · GitHub
Can you please open a new issue on Github suggesting this (if it isn’t already there)?
Finally got back to looking at this. The GitHub code search was a big help.
The fix is to change the address in:
/modules/jjwg_Maps/tpls/AccountsInfoWindow.tpl
/modules/jjwg_Maps/tpls/InfoWindow.tpl
These files build the two links that I wanted to fix in the map pin popup.
Thanks for the help!
Suite CRM Version 7.10.10
1 Like
I’m glad you got it working.
Your changes won’t be upgrade-safe… whenever an upgrade replaces those files, you will have to do the changes again.
If you could still please open that new GitHub issue, it would be a help for the Project. This is buggy and needs to be fixed properly.
Thanks for reporting.