Since yesterday I have been getting this message
and if one tries to visit this page

http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer.js

its says error file not found which probably means that its not temporary error

As a workaround anyone has an alternate URL for marketclusterer ?

Comments

GiorgosK created an issue. See original summary.

giorgosk’s picture

I downloaded this file
https://code.google.com/p/google-maps-utility-library-v3/source/browse/t...

and put in the module folder and changed

    if ($this->options['use_marker_clusterer']) {
      drupal_add_js($protocol . '://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer.js', array('type' => 'external'));
    }

to

    if ($this->options['use_marker_clusterer']) {
      drupal_add_js(drupal_get_path('module', 'geolocation_views') . '/markerClusterer.js');
    }

it worked great but the clustered icon was not showing

http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclu...
https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markercl...

with either the github library (https://github.com/googlemaps/js-marker-clusterer) or the library from googlecode.com

I changed the "Custom icon url" on the view settings markerClusterer options and it was displaying the icon with wrong offset and always on the top of the map

Any ideas ?

vincenzodb’s picture

Mapcluster library has moved to github. see https://code.google.com/p/google-maps-utility-library-v3/

I've downloaded the library from the new repo then added to the page

drupal_add_js($base_url . base_path() . path_to_theme() . '/js/markerclusterer_compiled.js');

By removing old library with a js_alter I've removed errors in the page and markers are showing without problems

  // Remove old google maps marker library.
  $maps_marker = $protocol .'://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer.js';
  if (isset($javascript[$maps_marker])) {
    unset($javascript[$maps_marker]);
  }

In the general project js:

var marker_image = {
 url : Drupal.settings.pathToTheme.pathToTheme + '/images/map-pin.png',
 scaledSize : new google.maps.Size(40, 81)
}

$.each(Drupal.geolocationViews[mapId].markers, function( i, v) {
  v.setIcon(marker_image);
  .....
}
giorgosk’s picture

@vincenzodb what is "general project js" ?
your theme's js file ?

it would be nice to change this module with a patch so it can get committed !

vincenzodb’s picture

@GiorgosK yes sorry

at this moment I can't generate a patch. I'll try tonigh..

alex8080’s picture

I've the same error, but with de GMap module. I don't have installed the Geolocation Views.
I've updated the module, but the error persist. Finally, I've downloaded the file markercluster.js from GitHub and change manually the line number 191. I've commented the URL and I've put this URL: 'https://raw.githubusercontent.com/googlemaps/js-marker-clusterer/gh-page...'.
Now, all it's OK.

sagar ramgade’s picture

Status: Active » Needs review
StatusFileSize
new17.31 KB

The attached patch saves the markerclusterer_complied.js and geolocation_views.js file in the js folder.

thommyboy’s picture

solved- wrong path, sorry...

slashrsm’s picture

Status: Needs review » Needs work

MarkerCluser is not GPL and delivering it with the module violates drupal.org rules.

Correct way to solve this would be to create a library and add instructions for installation.

  • xandeadx committed f21b735 on 7.x-1.x
    Issue #2723951: Move markerclusterer.js localy
    
xandeadx’s picture

Fixed.
Thanks all!

xandeadx’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

DrCord’s picture

Title: file for markerclusterer.js not found - marketClusterer not defined » file for markerclusterer.js not found - markerClusterer not defined