JJW Design Map not working - Google API error

Hi there, did you already notice that the JJW Map module is not working anymore?

This is what i get on Chrome > inspect > console when i tried to Map my Leads



index.php?module=jjwg_Maps&action=map_display&relate_module=Leads&display_module=Lead&record=3a2225…:559 Resource interpreted as Document but transferred with MIME type image/gif: "http://[Removed]index.php?entryPoint=getImage&imageName=blank.png".
/index.php?module=jjwg_Maps&action=map_markers&display_module=Lead&record=3a2225ec-a1d6-fdbe-d705-546f0c46f78c&current_post=session:72 GET http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/sha3.js 
/index.php?module=jjwg_Maps&action=map_markers&display_module=Lead&record=3a2225ec-a1d6-fdbe-d705-546f0c46f78c&current_post=session:73 GET http://crypto-js.googlecode.com/svn/tags/3.1.2/build/components/enc-base64-min.js 
index.php?module=jjwg_Maps&action=map_markers&display_module=Lead&record=3a2225ec-a1d6-fdbe-d705-54…:563 Uncaught ReferenceError: CryptoJS is not definedsetAU @ index.php?module=jjwg_Maps&action=map_markers&display_module=Lead&record=3a2225ec-a1d6-fdbe-d705-54…:563initialize @ index.php?module=jjwg_Maps&action=map_markers&display_module=Lead&record=3a2225ec-a1d6-fdbe-d705-54…:596(anonymous function) @ index.php?module=jjwg_Maps&action=map_markers&display_module=Lead&record=3a2225ec-a1d6-fdbe-d705-54…:789k @ jquery-1.8.0.min.js:2l.fireWith @ jquery-1.8.0.min.js:2p.extend.ready @ jquery-1.8.0.min.js:2D @ jquery-1.8.0.min.js:2
util.js:222 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
util.js:222 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required

I tested it on SuiteCRM 7.5.3 and 7.1.8

I think this because of broken links such as:
http://crypto-js.googlecode.com/svn/tags/3.1.2/build/components/enc-base64-min.js

In modules/jjwg_Maps/views/view.map_markers.php
there is:

I’ve downloaded scripts from here:

https://github.com/sytelus/CryptoJS

I uploaded them here: modules/jjwg_Maps/javascript/

and i’ve modified
modules/jjwg_Maps/views/view.map_markers.php
and
custom/modules/jjwg_Maps/views/view.map_markers.php

in this way:

1 Like

Note
i found in an update here: http://stackoverflow.com/questions/37087583/google-maps-not-working-in-https
that since Google on May the 12th 2016 decommissioned googlecode

you have also to change in modules/jjwg_Maps/views/view.map_markers.php

MarkerClusterer.IMAGE_PATH = “//google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m”;

to

MarkerClusterer.IMAGE_PATH = “//cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m”;

When you write “and i’ve modified” what does that mean?

Have you replaced some code, if so which code? Have you added code, if so where?

Please clarify

Timo

HI Timo12357,
you can find more details here:
https://github.com/salesagility/SuiteCRM/issues/1438
as i opened an issue about this

1 Like

This fixed the problem in my installation.

Hi everybody,
i tested the Map functionality on a 7.6.3 istance and it’s not working.
I had also to copy

jjwg_Address_Cache.gif

and folders

jjwg_Maps
jjwg_Markers

from
themes/default/images
to
custom/themes/default images

because the system was looking for markers and pins images in the custom folder.

I’ve posted the solution here:

https://suitecrm.com/forum/installation-upgrade-help/9471-jjw-design-map-not-working-on-7-6-3-after-upgrade#32473

1 Like