React-google-maps: MarkerClusterer images and others are broken due to google-maps-utility-library-v3 moving to github

Created on 11 May 2016  路  11Comments  路  Source: tomchentw/react-google-maps

Since google code is shutting down, google has moved their utility library from Google Code to github:

Images urls pointing to their old library no longer work, and will have to be changed, e.g.:

http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m2.png

to
https://raw.githubusercontent.com/googlemaps/v3-utility-library/master/markerclustererplus/images/m2.png

Although ideally there should be an option to let the user self-host them so this doesn't happen again.

Most helpful comment

Thanks for the pointer @11th. @wedneyyuri I just opened a PR to fix it: https://github.com/mikesaidani/marker-clusterer-plus/pull/2

All 11 comments

There is option to self-host the markers. Just set the imagePath prop.

From docs:

@property {string} [imagePath=MarkerClusterer.IMAGE_PATH]

  • The full URL of the root name of the group of image files to use for cluster icons.
  • The complete file name is of the form imagePathn.imageExtension
  • where n is the image file number (1, 2, etc.).

This works for me (both absolute or relative is fine):

<MarkerCluster imagePath="./path/to/clusters/m" />

Cool, thanks! I should've checked the docs before mentioning the self-hosting bit. The default URLs are still broken though, so I'll leave this ticket open for now.

Is there any open pull request about this?

What's curious is that the string google-maps-utility-library-v3.googlecode.com only exists in commented form in this repo, which makes me think the URL is being dynamically loaded somehow through some google library. I think we have to find the source of whatever library is loading it and fix it there instead of in this repo.

@wedneyyuri nope

@pirate This project has marker-clusterer-plus as a dependency. There you can find the hardcoded, dead url.

Thanks for the pointer @11th. @wedneyyuri I just opened a PR to fix it: https://github.com/mikesaidani/marker-clusterer-plus/pull/2

https://github.com/tomchentw/react-google-maps/pull/259 closes this issue (but we cant merge it until @mikesaidani merges https://github.com/mikesaidani/marker-clusterer-plus/pull/3)

Hello guys,

I just published the new version to NPM. Sorry for the inconvenience.
@pirate Thanks for all the efforts :)

Cheers,
Mike

Published v4.10.2. Thanks to @11th, @pirate, @wedneyyuri and @mikesaidani !

We're also looking for maintainers. Involve in #266 to help strengthen our community!

Might want to update this example page so people know that cluster markers are back :) http://react-google-maps.tomchentw.com/#/addons/marker-clusterer?_k=zvrnxa

@doubleoevan a PR is welcomed!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shrimpy picture shrimpy  路  3Comments

bossbossk20 picture bossbossk20  路  3Comments

ShintaroNippon picture ShintaroNippon  路  3Comments

tahir-masood1 picture tahir-masood1  路  4Comments

manoj150283 picture manoj150283  路  3Comments