Developer forum

Forum » CMS - Standard features » Maps module - js reference yields 404

Maps module - js reference yields 404

Martin Christensen
Reply

Hey,

I recently tried using the Maps module with clustering functionality. Apparently this causes the module to include a reference to an external javascript located at this CDN: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/src/markerclusterer.js - which isn't there. This caused the module to break or at least disregarding any setup concerning clusters.

It's perhaps a little dangerous to rely on a CDN when it's beyond template control. Any page with the maps module using clustering will have an error going forward. However, we can include an alternative file to restore functionality. I spent some time looking for a replacement that didn't conflict with the other scripts associated with the module and found this one: https://code.google.com/p/google-maps-utility-library-v3/source/browse/tags/markerclustererplus/2.1.2/markerclustererplus/src/markerclusterer_packed.js?r=473

Perhaps the module should be updated and contain the dependencies locally rather than relying on CDNs that may change.

 

//Martin

 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Martin

We will look into this. This module will at all times be relying on Google services and they will deprecate and get replaced.

So we should be able to give you new templates, but that would be it.

BR Nicolai

 
Martin Christensen
Reply

Hey, thanks for replying! Sounds good - the reference to the js is not part of the template, though. It's injected into the parsed page using black magic :)

 
Nicolai Høeg Pedersen
Reply

Ah, yes. Even worse! My appologies...

 
Adrian Ursu
Reply

Hi guys,

I confirm I have the same issue with an international solution.

If there's anything we can change directly on the template, please let me know.

Thanks,

Adrian

 
Christian Rud Skovgaard
Reply

Hi,

Thank you for this observation and suggested solution.

The bug has been created as TFS-24002.

Kind regards

Christian

 

You must be logged in to post in the forum