Support

Account

Home Forums Front-end Issues Unable to add custom marker image to Goolge map

Helping

Unable to add custom marker image to Goolge map

  • Hello, I’ve followed this tutorial https://support.advancedcustomfields.com/forums/topic/google-maps-custom-marker to use a custom marker image but It doesn’t work for me. I’ve also spent many hours searching on the internet but couldn’t get it done, still see the default red marker.

    Can anybody please give me some information?

  • After adding an image like this

    icon: 'http://www.mysite.com/myicon.png'

    It doesn’t update anything until I change the number in the code below, for example, 3.6.0.

    wp_enqueue_script( 'google-map', get_stylesheet_directory_uri() . '/maps.js', array( 'jquery' ), '3.6.0', true );

    Change another number, for example 1.1.0, 2.1.0, also shows my history change. Why is that?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.