New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.googlecode.com gives me a 404 #55

Open
mochw opened this Issue May 11, 2016 · 44 comments

Comments

Projects
None yet
@mochw

mochw commented May 11, 2016

I'm currently using http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/src/markerclusterer.js?ver=4.5.2 for my clustering.
But it's giving me a 404. Is it down or has it moved?

If moved. What should I do to make it work again?

@HighAley

This comment has been minimized.

Show comment
Hide comment
@HighAley

HighAley May 11, 2016

Even on simple example https://googlemaps.github.io/js-marker-clusterer/examples/simple_example.html
I get next exception:
Failed to load resource: the server responded with a status of 404 ()
https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m1.png

and there is no circle markers.

HighAley commented May 11, 2016

Even on simple example https://googlemaps.github.io/js-marker-clusterer/examples/simple_example.html
I get next exception:
Failed to load resource: the server responded with a status of 404 ()
https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m1.png

and there is no circle markers.

@webhive

This comment has been minimized.

Show comment
Hide comment
@clementprevot

This comment has been minimized.

Show comment
Hide comment
@clementprevot

clementprevot May 12, 2016

+1 on this issue...

clementprevot commented May 12, 2016

+1 on this issue...

@loonytoadquack

This comment has been minimized.

Show comment
Hide comment
@loonytoadquack

loonytoadquack May 12, 2016

I've no idea why Google code is down, but if you want to host them on your web server for now change MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ , lines 192-194 on my markerclusterer.js to you local image path. If anyone finds a better solution or CDN please let me know!

loonytoadquack commented May 12, 2016

I've no idea why Google code is down, but if you want to host them on your web server for now change MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ , lines 192-194 on my markerclusterer.js to you local image path. If anyone finds a better solution or CDN please let me know!

@mochw

This comment has been minimized.

Show comment
Hide comment
@mochw

mochw May 12, 2016

Does anyone have a local version to share?

mochw commented May 12, 2016

Does anyone have a local version to share?

@mochw

This comment has been minimized.

Show comment
Hide comment
@mochw

mochw May 12, 2016

I was thinking of markerclusterer.js. But thanks anyway =)

mochw commented May 12, 2016

I was thinking of markerclusterer.js. But thanks anyway =)

@skurth

This comment has been minimized.

Show comment
Hide comment
@skurth

skurth May 12, 2016

+1, please fix this asap.
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/ must be back online, otherwise all applications need an update.

skurth commented May 12, 2016

+1, please fix this asap.
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/ must be back online, otherwise all applications need an update.

@voime

This comment has been minimized.

Show comment
Hide comment
@voime

voime May 12, 2016

Quick fis is:
Pull this project to vendor/marker-clusterer folder

<script src="vendor/marker-clusterer/src/markerclusterer.js"></script>

and edit file markerclusterer.js line 190-192

MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ =
  'vendor/marker-clusterer/images/m';

voime commented May 12, 2016

Quick fis is:
Pull this project to vendor/marker-clusterer folder

<script src="vendor/marker-clusterer/src/markerclusterer.js"></script>

and edit file markerclusterer.js line 190-192

MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ =
  'vendor/marker-clusterer/images/m';
@matteopelucco

This comment has been minimized.

Show comment
Hide comment
@matteopelucco

matteopelucco May 12, 2016

The problem is that our website use the SVN version of the library. This is not a good practice.
Quick (and right) solution:

  1. Download the GitHub version (zip) and put it local to your website (use _compiled.js for production)
  2. Reference it from your HTML file
  3. Download marker cluster icons (here an example..)
    cluster.zip
  4. Configure MarkerCluster with the following (or similar) options:
...
if (typeof MarkerClusterer == 'function') { 

  var mcClusterIconFolder = "/img/cluster";
  var mcOptions = {
    maxZoom: 11,
    styles: [
      {
      height: 53,
      url: mcClusterIconFolder + "/m1.png",
      width: 53
      },
      {
      height: 56,
      url: mcClusterIconFolder + "/m2.png",
      width: 56
      },
      {
      height: 66,
      url: mcClusterIconFolder + "/m3.png",
      width: 66
      },
      {
      height: 78,
      url: mcClusterIconFolder + "/m4.png",
      width: 78
      },
      {
      height: 90,
      url: mcClusterIconFolder + "/m5.png",
      width: 90
      }
    ]
  };

  markerCluster = new MarkerClusterer(map, mapMarkers, mcOptions);
}
...

Hope this helps.

PS: in any case, current lib must be updated, since images point to old svn path..

matteopelucco commented May 12, 2016

The problem is that our website use the SVN version of the library. This is not a good practice.
Quick (and right) solution:

  1. Download the GitHub version (zip) and put it local to your website (use _compiled.js for production)
  2. Reference it from your HTML file
  3. Download marker cluster icons (here an example..)
    cluster.zip
  4. Configure MarkerCluster with the following (or similar) options:
...
if (typeof MarkerClusterer == 'function') { 

  var mcClusterIconFolder = "/img/cluster";
  var mcOptions = {
    maxZoom: 11,
    styles: [
      {
      height: 53,
      url: mcClusterIconFolder + "/m1.png",
      width: 53
      },
      {
      height: 56,
      url: mcClusterIconFolder + "/m2.png",
      width: 56
      },
      {
      height: 66,
      url: mcClusterIconFolder + "/m3.png",
      width: 66
      },
      {
      height: 78,
      url: mcClusterIconFolder + "/m4.png",
      width: 78
      },
      {
      height: 90,
      url: mcClusterIconFolder + "/m5.png",
      width: 90
      }
    ]
  };

  markerCluster = new MarkerClusterer(map, mapMarkers, mcOptions);
}
...

Hope this helps.

PS: in any case, current lib must be updated, since images point to old svn path..

@synthesis85

This comment has been minimized.

Show comment
Hide comment
@synthesis85

synthesis85 May 12, 2016

+1
We are getting the same error for the marker clusterer images (404).
It could be good to restore images in the previous url, otherwise we will have to hot fix in production.

synthesis85 commented May 12, 2016

+1
We are getting the same error for the marker clusterer images (404).
It could be good to restore images in the previous url, otherwise we will have to hot fix in production.

@yannbug

This comment has been minimized.

Show comment
Hide comment
@yannbug

yannbug commented May 12, 2016

+1

@qkdreyer

This comment has been minimized.

Show comment
Hide comment
@qkdreyer

qkdreyer commented May 20, 2016

+1

4 similar comments
@morkov4o

This comment has been minimized.

Show comment
Hide comment
@morkov4o

morkov4o commented May 20, 2016

+1

@Kilhog

This comment has been minimized.

Show comment
Hide comment
@Kilhog

Kilhog commented May 20, 2016

+1

@btazi

This comment has been minimized.

Show comment
Hide comment
@btazi

btazi commented May 20, 2016

+1

@mkdizajn

This comment has been minimized.

Show comment
Hide comment
@mkdizajn

mkdizajn commented May 21, 2016

+1

@mkdizajn

This comment has been minimized.

Show comment
Hide comment
@mkdizajn

mkdizajn May 21, 2016

why do we all write this comment "+1" while we have emoticons for each comment (little smiley) ,, that's better solution

mkdizajn commented May 21, 2016

why do we all write this comment "+1" while we have emoticons for each comment (little smiley) ,, that's better solution

@dpastov

This comment has been minimized.

Show comment
Hide comment
@dpastov

dpastov May 23, 2016

@mkdizajn it's because when this post will get 100 '+1' issue will be automatically fixed.

dpastov commented May 23, 2016

@mkdizajn it's because when this post will get 100 '+1' issue will be automatically fixed.

@Yggwit

This comment has been minimized.

Show comment
Hide comment
@Yggwit

Yggwit May 24, 2016

+1

Fixed by replacing
Q = 'https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/m';
to
Q = '/images/markerclusterer/m';

Yggwit commented May 24, 2016

+1

Fixed by replacing
Q = 'https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/m';
to
Q = '/images/markerclusterer/m';

@PeterTheOne

This comment has been minimized.

Show comment
Hide comment
@PeterTheOne

PeterTheOne May 24, 2016

Contributor

Even easier: Just download the images and use the imagePath option to set it to your local image path.

Contributor

PeterTheOne commented May 24, 2016

Even easier: Just download the images and use the imagePath option to set it to your local image path.

@PatrickBorkowicz

This comment has been minimized.

Show comment
Hide comment
@PatrickBorkowicz

PatrickBorkowicz commented May 24, 2016

+1

CrazyLemon added a commit to ubuntu-si/arso-api that referenced this issue May 24, 2016

@stefanlorenz85

This comment has been minimized.

Show comment
Hide comment
@stefanlorenz85

stefanlorenz85 commented May 25, 2016

+1

1 similar comment
@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost commented May 25, 2016

+1

@mygod0520

This comment has been minimized.

Show comment
Hide comment
@mygod0520

mygod0520 May 26, 2016

the solution:
you can search the key words "MARKER_CLUSTER_IMAGE_PATH_" in the markerclusterer.js
and change the path.
The path must be ended of "m" likes "/img/m" because markerclusterer would re-organize the full path to /img/m+(i+1)+.png
you also could find the image of m1 to m5.png on the internet.
After you doing all these change, restart your server and clean your browser's cookies, and you will see the images.

mygod0520 commented May 26, 2016

the solution:
you can search the key words "MARKER_CLUSTER_IMAGE_PATH_" in the markerclusterer.js
and change the path.
The path must be ended of "m" likes "/img/m" because markerclusterer would re-organize the full path to /img/m+(i+1)+.png
you also could find the image of m1 to m5.png on the internet.
After you doing all these change, restart your server and clean your browser's cookies, and you will see the images.

@PeterTheOne

This comment has been minimized.

Show comment
Hide comment
@PeterTheOne

PeterTheOne May 26, 2016

Contributor

@mygod0520 don't change MARKER_CLUSTER_IMAGE_PATH_, just set the imagePath option like: var mc = new MarkerClusterer(map, makers, {imagePath: 'images/m'});!

Contributor

PeterTheOne commented May 26, 2016

@mygod0520 don't change MARKER_CLUSTER_IMAGE_PATH_, just set the imagePath option like: var mc = new MarkerClusterer(map, makers, {imagePath: 'images/m'});!

@PeterTheOne

This comment has been minimized.

Show comment
Hide comment
@PeterTheOne

PeterTheOne May 28, 2016

Contributor

fixed by 2f659a3

Contributor

PeterTheOne commented May 28, 2016

fixed by 2f659a3

@ITfee

This comment has been minimized.

Show comment
Hide comment
@ITfee

ITfee Jun 2, 2016

I've uploaded the markerclusterer.js to my server and set my custom image path. Now my map markers work again. Thanks to the hints given here. ;-)

ITfee commented Jun 2, 2016

I've uploaded the markerclusterer.js to my server and set my custom image path. Now my map markers work again. Thanks to the hints given here. ;-)

@hamedcrm

This comment has been minimized.

Show comment
Hide comment
@hamedcrm

hamedcrm Jul 7, 2016

Just fixed this in Suitecrm. It's caused by images moving to github. To fix it replace every place that has 'https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/'

with

'https://raw.githubusercontent.com/googlemaps/js-marker-clusterer/gh-pages/images/'

In SuiteCRM/SugarCRM, make sure to only switch the difference in address. E.g. some of the addresses end with /m so keep this on the end of the new URL

hamedcrm commented Jul 7, 2016

Just fixed this in Suitecrm. It's caused by images moving to github. To fix it replace every place that has 'https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/'

with

'https://raw.githubusercontent.com/googlemaps/js-marker-clusterer/gh-pages/images/'

In SuiteCRM/SugarCRM, make sure to only switch the difference in address. E.g. some of the addresses end with /m so keep this on the end of the new URL

@rinatio

This comment has been minimized.

Show comment
Hide comment
@rinatio

rinatio Jul 8, 2016

+1, Why don't you keep previous URL available?

rinatio commented Jul 8, 2016

+1, Why don't you keep previous URL available?

@bonditka

This comment has been minimized.

Show comment
Hide comment
@bonditka

bonditka Jul 15, 2016

hamedcrm, thx. it's work for me

bonditka commented Jul 15, 2016

hamedcrm, thx. it's work for me

@EZS-JD

This comment has been minimized.

Show comment
Hide comment
@EZS-JD

EZS-JD Dec 19, 2016

The URL given by hamedcrm doesn't work for me. But this worked instead:
https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/[...]

In SuiteCRM I changed files:
/custom/modules/jjwg_Maps/javascript/markerclusterer.js
/custom/modules/jjwg_Maps/javascript/views/view.map_markers.php

EZS-JD commented Dec 19, 2016

The URL given by hamedcrm doesn't work for me. But this worked instead:
https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/[...]

In SuiteCRM I changed files:
/custom/modules/jjwg_Maps/javascript/markerclusterer.js
/custom/modules/jjwg_Maps/javascript/views/view.map_markers.php

@1thrasher

This comment has been minimized.

Show comment
Hide comment
@1thrasher

1thrasher Jan 3, 2017

The easiest way to fix this is to simply set the imagePath when declaring your MarkerClusterer, like so:

var markerCluster = new MarkerClusterer(map, markers,
            {imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'});

https://developers.google.com/maps/documentation/javascript/marker-clustering

1thrasher commented Jan 3, 2017

The easiest way to fix this is to simply set the imagePath when declaring your MarkerClusterer, like so:

var markerCluster = new MarkerClusterer(map, markers,
            {imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'});

https://developers.google.com/maps/documentation/javascript/marker-clustering

@Yonn-Trimoreau

This comment has been minimized.

Show comment
Hide comment
@Yonn-Trimoreau

Yonn-Trimoreau Jan 9, 2017

Using this URL:

https://raw.githubusercontent.com/googlemaps/js-marker-clusterer/gh-pages/images/

gave me this error:

Cannot execute https://raw.githubusercontent.com/googlemaps/js-marker-clusterer/gh-pages/images/ because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

Instead, I had to use this URL:

http://rawgit.com/googlemaps/js-marker-clusterer/gh-pages/src/markerclusterer.js

Yonn-Trimoreau commented Jan 9, 2017

Using this URL:

https://raw.githubusercontent.com/googlemaps/js-marker-clusterer/gh-pages/images/

gave me this error:

Cannot execute https://raw.githubusercontent.com/googlemaps/js-marker-clusterer/gh-pages/images/ because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

Instead, I had to use this URL:

http://rawgit.com/googlemaps/js-marker-clusterer/gh-pages/src/markerclusterer.js

@PeterTheOne

This comment has been minimized.

Show comment
Hide comment
@PeterTheOne

PeterTheOne Jan 9, 2017

Contributor

Don't use GitHub as a CDN, just download and include it.

Contributor

PeterTheOne commented Jan 9, 2017

Don't use GitHub as a CDN, just download and include it.

@Yonn-Trimoreau

This comment has been minimized.

Show comment
Hide comment
@Yonn-Trimoreau

Yonn-Trimoreau Jan 9, 2017

I agree. Now go tell them http://www.magestore.com/magento-2-store-locator-extension.html and btw that Google Maps doesn't work anymore without an API key. Or instead, tell Google to stop changing their API assuming that the entire world will follow without balking.

Yonn-Trimoreau commented Jan 9, 2017

I agree. Now go tell them http://www.magestore.com/magento-2-store-locator-extension.html and btw that Google Maps doesn't work anymore without an API key. Or instead, tell Google to stop changing their API assuming that the entire world will follow without balking.

@PeterTheOne

This comment has been minimized.

Show comment
Hide comment
@PeterTheOne

PeterTheOne Jan 9, 2017

Contributor

@Yonn-Trimoreau I'm not at Google, feel free to tell them yourself.. ^^

Contributor

PeterTheOne commented Jan 9, 2017

@Yonn-Trimoreau I'm not at Google, feel free to tell them yourself.. ^^

@Yonn-Trimoreau

This comment has been minimized.

Show comment
Hide comment
@Yonn-Trimoreau

Yonn-Trimoreau Jan 9, 2017

@PeterTheOne If only they'd listen LOL

Yonn-Trimoreau commented Jan 9, 2017

@PeterTheOne If only they'd listen LOL

@ryancastle

This comment has been minimized.

Show comment
Hide comment
@ryancastle

ryancastle Mar 1, 2018

@MrPro100's answer works great. The point of rawgit is to use it as a CDN, but make sure you use the "cdn.rawgit.com" hostname so it gets properly cached. rawgit will block you if you send too much traffic to "rawgit.com".

MarkerClusterer.IMAGE_PATH = "https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m";

ryancastle commented Mar 1, 2018

@MrPro100's answer works great. The point of rawgit is to use it as a CDN, but make sure you use the "cdn.rawgit.com" hostname so it gets properly cached. rawgit will block you if you send too much traffic to "rawgit.com".

MarkerClusterer.IMAGE_PATH = "https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m";

@slavutichsochi

This comment has been minimized.

Show comment
Hide comment
@slavutichsochi

slavutichsochi Apr 16, 2018

я прямо в файле markerclusterer.js изменил путь к png
вот так:
MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ = '../img/gmap/m';

в папку /img/gmap/ предварительно скопировал все png изображения.

все работает и протолок https подсвечен теперь зеленым цветом

slavutichsochi commented Apr 16, 2018

я прямо в файле markerclusterer.js изменил путь к png
вот так:
MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ = '../img/gmap/m';

в папку /img/gmap/ предварительно скопировал все png изображения.

все работает и протолок https подсвечен теперь зеленым цветом

@Yonn-Trimoreau

This comment has been minimized.

Show comment
Hide comment
@Yonn-Trimoreau

Yonn-Trimoreau commented Apr 16, 2018

xD

@Yonn-Trimoreau

This comment has been minimized.

Show comment
Hide comment
@Yonn-Trimoreau

Yonn-Trimoreau Apr 16, 2018

Russian detected

Yonn-Trimoreau commented Apr 16, 2018

Russian detected

@slavutichsochi

This comment has been minimized.

Show comment
Hide comment
@slavutichsochi

slavutichsochi Apr 16, 2018

excuse me ))
edit file: markerclusterer.js
changed and commented:

MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ = '../img/gmap/m';
/** 'http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/' +
'images/m'; */

MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_ = 'png';

png icons previously copied to a folder: ../img/gmap/

slavutichsochi commented Apr 16, 2018

excuse me ))
edit file: markerclusterer.js
changed and commented:

MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ = '../img/gmap/m';
/** 'http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/' +
'images/m'; */

MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_ = 'png';

png icons previously copied to a folder: ../img/gmap/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment