WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. devGOD
    Member
    Posted 10 months 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 );

    http://wordpress.org/plugins/basic-google-maps-placemarks/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.