Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Clustering Icons are broken? #602

Closed
Oztrea opened this issue May 13, 2016 · 4 comments
Closed

Clustering Icons are broken? #602

Oztrea opened this issue May 13, 2016 · 4 comments

Comments

@Oztrea
Copy link

Oztrea commented May 13, 2016

I think google moved the icons to another repository...
See the example here:
https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/marker-clusterer.html

https://code.google.com/p/google-maps-utility-library-v3/

for example this url returns 404 not found.
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m2.png

Any idea how we can fix that? Does someone has a workaround?

@Oztrea Oztrea changed the title Clustering Icon is broken? Clustering Icons are broken? May 13, 2016
@allenhwkim
Copy link
Owner

There are issues with markerclusterer. googlearchive/js-marker-clusterer#54

@tmpduarte
Copy link

tmpduarte commented Jun 7, 2016

indeed it seems they forgot to update the path to their icons.
What I did was to store the icons on my project and then pass the imagePath in the markerCluster instantiation:

new MarkerClusterer(map, markers, {imagePath: './images/MapsCluster'});

With this you need to have inside your /images folder 5 images: MapsCluster1.png, MapsCluster2.png ... MapsCluster5.png and MarketClusterer will use these images to display the clusters

@SbstnErhrdt
Copy link

Solution

Line 1614 in markercluser.js
OLD
MarkerClusterer.IMAGE_PATH = "https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m";
NEW
MarkerClusterer.IMAGE_PATH = "https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m";

@allenhwkim
Copy link
Owner

Closing since I can't do any for this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants