Skip to content

Instantly share code, notes, and snippets.

@matheusgimenez
Last active September 27, 2021 18:19
Show Gist options
  • Save matheusgimenez/a0edb2f53e081887ab51e2e4f5d54211 to your computer and use it in GitHub Desktop.
Save matheusgimenez/a0edb2f53e081887ab51e2e4f5d54211 to your computer and use it in GitHub Desktop.
<?php
function jeo_change_js_image( $images ) {
$images[ '/js/src/icons/news-marker' ][ 'url'] = JEO_BASEURL . '/js/src/icons/testeicon.png';
$images[ '/js/src/icons/news-marker' ][ 'icon_size' ] = 0.3;
$images[ '/js/src/icons/news' ][ 'url'] = JEO_BASEURL . '/js/src/icons/testnews.png';
$images[ '/js/src/icons/news' ][ 'icon_size' ] = 0.25;
$images[ '/js/src/icons/news' ][ 'text_color' ] = '#FFFFFF';
return $images;
}
add_filter( 'jeomap_js_images', 'jeo_change_js_image', 10, 1 );
function jeo_change_js_cluster( $cluster ) {
$cluster[ 'circle_color'] = '#523096';
return $cluster;
}
add_filter( 'jeomap_js_cluster', 'jeo_change_js_cluster', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment