JJWG Maps: drawing isn't available anymore

Hi, have you noticed you can’t select pins anymore and add them to a Target List?

If you check on the Browser Console (inspect), you’ll get:

Uncaught Error: The DrawingManager functionality in the Maps JavaScript API is no longer available in the Maps JavaScript API as of version 3.65. For more info, see https://developers.google.com/maps/deprecations

PS: the behaviour is driven here:
/modules/jjwg_Maps/views/view.map_markers.php

Around line 95, check if you have below or not:

 <script type="text/javascript" src="//maps.googleapis.com/maps/api/js?key=<?= $GLOBALS['jjwg_config']['google_maps_api_key']; ?>&libraries=drawing,geometry,marker"></script>

Maybe it is deprecated


GitHub - jjwdesign/JJWDesign-Google-Maps: SugarCRM Google Maps Integration: Accounts, Contacts, Leads, Opportunities, Cases and Projects (records) can be mapped. Multiple records can be mapped, instead of just one record at a time. Records can be mapped from a module's listing or by distance. · GitHub

Yes, exactly; that’s what i was pointing out: the library has been deprecated by Google Maps.
I was asking:

  1. if you ever noticed that
  2. if you have any suggestion how to fix it
    Thanks in advance,

Hello,

are you using this in Suite 8 or 7?

I haven’t used it in while, since most customers require a bit more from mapping like:

  • territory management and automatic record assignment
  • campaign / target list management sourced from a map
  • route optimization / calculation

Plus: Google Maps is always a bit questionable in the EU / some projects with data privacy in mind.

It seems like the jjwg extension hasn’t seen updates in quite a while.

Hi Bastian,

i noticed this behaviour on
7.12.6
7.14.8
8.10.1

It’s not dependent on the SuiteCRM version.. simply Google Map deprecated the drawing library used by the JJWG Maps module.

Have you already helped your clients with:
#1 territory management and automatic record assignment
#3 route optimization / calculation
?

We made custom development for the first one and a plugin for the third one

Yes, I have implemented all three of those features.
I’ve been using an external SaaS in some projects and a custom build on Drupal + Mapping modules for more data privacy focused companies.

As for the versions:
If the JJWG Maps module would have kept up with current mapping solution, maybe there would have been more integrations into OSM, Nominatim etc. as well as leaflet.js, GeoJSON overlay and further features.
The last commit was in 2015 .. probably the demand was just too small or similar.

Yes, Jeff Walters: the creator of the JJWG Maps module, donated it to SuiteCRM 11 years ago.
I think it has still a huge potential for all the purposes you mentioned, of course after adding there some additional features.

The SuiteCRM Team removed the JJWG Maps module from SuiteAssured considering it experimental.
Anyway let’s see how things will evolve.. we’ll probably contribute to this enhancement.

Have you tried using Terra Draw

Thank you very much @cherub-chum, since Terra Draw is open source and clearly supported by Google Maps, your is a good suggestion