Hello,
I’ll try to answer your questions, one by one:
Q: Can I somehow use custom image for a cluster marker? Css solution is also ok, no need for admin option.
A: You will need some of code:
– Open the “/wp-content/plugins/codepeople-post-map/js/markerclusterer_compiled.js” file with the text editor of your choice.
– Go to the piece of code:
MarkerClusterer.IMAGE_PATH="https://raw.githubusercontent.com/googlemaps/js-marker-clusterer/gh-pages/images/m";
and modify it, pointing to the directory that includes the new .png files for the clusters backgrounds.
– Upload the files: 1.png, 2.png, 3.png, and 4.png with the different backgrounds to this directory.
– Finally, clear the browser’s cache after edit the online file.
Q: Is there a way to prevent grouping of the infowindows when their point is the same?
A: Similar to the previous case, would be required to edit the plugin’s files, in this case the “/wp-content/plugins/codepeople-post-map/js/cpm.js” file.
– Open the file with the text editor of your choice.
– Go to the piece of code:
for( var i = 0, h = unique.length; i < h; i++ )
{
info += ( i < h-1 ) ? $( '<div></div>').html( me.data.markers[ unique[ i ].id ].info ).find( '.cpm-infowindow-additional' ).remove().end().html() : me.data.markers[ unique[ i ].id ].info;
}
and edit it as follows:
for( var i = 0, h = unique.length; i < h; i++ )
{
info += ( i < h-1 ) ? $( '<div></div>').html( me.data.markers[ unique[ i ].id ].info ).find( '.cpm-infowindow-additional' ).remove().end().html() : me.data.markers[ unique[ i ].id ].info;
break;
}
Q: Can I use svg marker image?
A: you simply should to upload the image file to the “/wp-content/plugins/codepeople-post-map/images/icons/” directory, and select it through the point’s definition.
Q: After a bit of clicking around admin, your demo page starts saying “This page can’t load Google Maps correctly.”. Why does that happen and what to do when it does? Is there a “reset to factory settings” option?
A: There are different possible causes of this issue, the most usual, is that you have exhausted the quote of use of Google Maps APIs, but this issue is not generated by our plugin. The limits are defined on your Google account.
Best regards.