Skip to content

Instantly share code, notes, and snippets.

@softiconic
Last active December 2, 2023 18:49
Show Gist options
  • Save softiconic/19b3790e39bfcf8bb19ee91bf7d08bb7 to your computer and use it in GitHub Desktop.
Save softiconic/19b3790e39bfcf8bb19ee91bf7d08bb7 to your computer and use it in GitHub Desktop.
Modify the image path for marker clustering on Google Maps.
//Cluster init
if (s.cluster) {
markerCluster = new MarkerClusterer(map, markers, {
maxZoom: 12,
gridSize: 40,
//add image path url
imagePath: "https://www.bitcoinatmnearme.com/wp-content/themes/findall/images/m",
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment