The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Basic Google Maps Placemarks
How do I set a custom pin (1 post)

  1. devGOD
    Posted 3 years ago #

    I'm having trouble getting a custom placemarker to set. can you please example how to set it up. and where exactly doing you get the ID

    i saw the code on the install page but after adding it to my theme's functions.php file nothing happens. I got the placemarkID from the placemarker post url /wp-admin/post.php?post=56&action=edit is that the correct ID

    function setBGMPDefaultIconByID( $iconURL, $placemarkID )
        if( $placemarkID == 56 )
            $iconURL = get_bloginfo( 'stylesheet_directory' ) . '/images/new_pin.png';
        return $iconURL;
    add_filter( 'bgmp_default-icon', 'setBGMPDefaultIcon', 10, 2 );


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.