Support » Plugin: Google Maps CP » Default Marker

  • Resolved Wes Modes

    (@wmodes)


    Is there a way to change or customize the default marker? I understand that on a per-map basis I can change an individual location marker, but for the auto-generated exif-based photo markers, they use the default google red pin marker. I’d like to change that.

    I have the registered version which reports version 1.01

    Thanks.
    Wes

    https://wordpress.org/plugins/codepeople-post-map/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anything?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    I’m sorry, I’ve not received the notifications of your questions.

    If you want change the default pin’s image of markers, there are two possible solutions:

    The first, and easiest method, is replace the marker.png file, located in “/wp-content/plugins/codepeople-post-map/images/icons/marker.png”, with the image to use as default pin.

    The second method, requires modify the plugin’s code:

    1. Open the functions.php file, located in “/wp-content/plugins/codepeople-post-map/include/functions.php”, with the text editor your choice.

    2. Go to the snippet of code:

    ‘default_icon’ => CPM_PLUGIN_URL.’/images/icons/marker.png’,

    and replace the marker.png text with the name of the icon file to use by default.

    Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Default Marker’ is closed to new replies.