• Resolved lindsayihart

    (@lindsayihart)


    A few weeks ago I updated your plug in and lost the custom markers. I found your instructions from a year ago and successfully loaded the two marker sizes into the marker folder and they are showing up in the settings…BUT when I choose them…they do not display.

    From you instructions from a year ago…it appears changes need to be made in the wpsl.gmap.js file, but I can’t find “markerPath

    Has this code changed?

    https://www.ads-software.com/plugins/wp-store-locator/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    A few things changed with the marker code. ‘markerPath’ is now called ‘url’, you can see the relevant code here.

    Do you have a link to what I wrote a year ago?

    Thread Starter lindsayihart

    (@lindsayihart)

    Thread Starter lindsayihart

    (@lindsayihart)

    Could you please send me the exact snippet that needs to be changed in
    wpsl-gmap.js to make the code point to the custom pngs?

    Thanks

    Plugin Author Tijmen Smit

    (@tijmensmit)

    You can try and replace this ( line 1337 – 1345 ):

    if ( storeId === 0 ) {
        infoWindowData = {
            store: wpslLabels.startPoint
        };
    
        url = markerSettings.url + wpslSettings.startMarker;
    } else {
        url = markerSettings.url + wpslSettings.storeMarker;
    }

    With this. This will assume the markers are located in the default marker folder and are called custom-start-marker.png and custom-store-marker.png.

    if ( storeId === 0 ) {
        infoWindowData = {
            store: wpslLabels.startPoint
        };
    
        url = markerSettings.url + "custom-start-marker.png";
    } else {
        url = markerSettings.url + "custom-store-marker.png";
    }

    But if you see the markers on the settings page and select them, then they should show up without having to modify any files. Can you share the url where this happens? Or maybe email the markers you are trying to use to tijmen at wpstorelocator.co ?

    You do need to minify the wpsl-gmap.js, and save it as wpsl-gmap.min.js before it’s used on the front-end.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Markers no longer visible when plug in updated’ is closed to new replies.