V-7.7.9 JJW Maps Issues

We recently upgraded from 7.4 to 7.7.9 our developer fixed a few things to get the maps to work including cluster icons.

Problem 1 - Suite CRM parsing from the module search screens. Example-> Procedure: go to meetings, enter search params, produce list of meetings, select all, choose map. In my example we select 25 meetings but 1485 are displayed in the resulting map.

Problem 2 - Legend is on top of the toggle clustering button.

Any help to fix these would be gratly appreciated as the mapping is a high value bonus that keeps our salespeople interested in using the product.

Thanks,
CustomMachine

same here…can anybody suggest a fix…

For me sometimes happens that some icon marker will disapear…

thanks

Has anyone been able to get this working? Seems like this plugin is no longer being developed and not up to date with the Google API.

this article by the developer:
http://www.jjwdesign.com/google-maps-usage-policy-enforcement/

:slight_smile: So I GOT IT WORKING!

Couple of things needed to be changed. in the jjwg_Maps.php … the URL setting was not passing correctly to the GEOCODE Function … I couldn’t find the problem… BUT! I simply changed the $base_url var on line 849;

Even though the documentation says the API KEY is not required … this didn’t work… you have to include &KEY= to the URI.

NEXT…

Markers don’t show up either … because googlecode.com is out of service.

You need to change the file jjwg_Maps/views/view.map_marker.php line 197; to include
https://raw.githubusercontent.com/googlemaps/v3-utility-library/master/markerclustererplus/images/m as the ImagePath.

Hope this helps someone!

CHEERS!

hi

can you explain your solution please ? i don’t understand

Please give us details.

I got the same problem with Suitecrm ver. 7.9

If I do a search on accounts and “Select this page (30)” and then Bulk Action->Maps it shows correctly the 30 accounts on maps.
Doing the same search and choosing “Select All” and then Bulk Action->Maps it shows all accounts in the database and not only the all of the search list.
What ever is the number of rows filtered using “Select All” gets the same issue.

  1. anyone did fix this issue?
  2. what is the problem suitecrm selection or data passed to jjw map?

thank you

The following was enough for me to get the maps to work:

You need to edit the file /modules/jjwg_Maps/views/view.map_markers.php

On line 197 replace

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

with

MarkerClusterer.IMAGE_PATH = “https://raw.githubusercontent.com/googlemaps/v3-utility-library/master/markerclustererplus/images/m”;

After this the cluster icons work fantamaizingly.

Timo, is that a fix that we should do in the code? If so, can you make a Pull Request on Github?

I think so.
How do I make a Pull Request?

Timo

For this kind of simple edit, and since you don’t seem to have any git experience, I would try this method from GitHub:

https://help.github.com/articles/editing-files-in-another-user-s-repository/

Make sure you select the correct branch before navigating to the file and starting the edit. That branch should be hotfix-7.8.x., so basically this is the file you need to edit:

https://github.com/salesagility/SuiteCRM/blob/hotfix-7.8.x/modules/jjwg_Maps/views/view.map_markers.php

It still worked yesterday. Today it does not.
Pehaps not wort taking this into code yet?

The old URL goes to a 404 (Googlecode is now dead).
The new solution do not work because the github linked file is now also a 404

https://raw.githubusercontent.com/googlemaps/v3-utility-library/master/markerclustererplus/images/m

External dependencies files shouldn’t be linked to github in the raw mode, they need a proper url or to be placed inside the SuiteCRM code.
I think this require an issue to be raised in Github

Found it on Github already: the first PR was created on 21 Jul 2016 … not merged yet!
https://github.com/salesagility/SuiteCRM/pull/1777
https://github.com/salesagility/SuiteCRM/pull/3089

1 Like

Fix worked for me.

the last posts were only about icons and cluster icons, isn’t it?

Did anybody experience the original problem (#1) of the post?

Problem 1 - Suite CRM parsing from the module search screens. Example-> Procedure: go to meetings, enter search params, produce list of meetings, select all, choose map. In my example we select 25 meetings but 1485 are displayed in the resulting map.

Any solutions?

thank you

I can not make this work in 7.8.5. Cluster icons do not work with the #3089 fix.