Support » Plugins and Hacks » SIMPLEMAP plugin – custom markers

  • hello
    can’t find how to customize markers in simplemap plugin.
    anyone knows how to?
    I didn’t find any solutions about…
    please help me


Viewing 2 replies - 1 through 2 (of 2 total)
  • Mark


    Add the code below to the functions.php file for your theme. Then put an image called marker.png into the images subdirectory of your theme. That’s it.

    add_action( 'wp_head', 'custom_markers' );
    	function custom_markers() { 
    			function simplemapCustomMarkers() {
    				var blueIcon = new GIcon(G_DEFAULT_ICON);
    				blueIcon.image = "<?php echo get_bloginfo('stylesheet_directory') ?>/images/marker.png";
    				return { icon: blueIcon };

    This only works 2.3 and below. There is updated code for 2.4+ with Google’s updated API.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SIMPLEMAP plugin – custom markers’ is closed to new replies.