• Hi ??

    I want to remove the start point. It’s no longer on the map or in the cluster but if I click on ‘directions’ it’s still the starting address on google maps. The ‘origin’ (link) variable should be blank.

    function custom_settings( $settings ) {
    	$settings['startMarker'] = '';
    	$settings['excludeStartFromCluster'] = true;
    	return $settings;
    }
    add_filter( 'wpsl_js_settings', 'custom_settings' );

    Thanks

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

    (@tijmensmit)

    That’s a good point. Will look into adding a check in the code that if the start marker is hidden that it will then let the origin section empty in the direction url.

    Thanks for letting me know ??

    Hi @tamarazambrana, @tijmensmit

    i’m having the same issue. using WPSL for one of my client who has several stores around Germany. in some city my client has only one store, when i search on WPSL, The Markerclustor is including the StartMarker as a store (it shows a result of 2 instead of 1) . when i zoom in then i see only one store available AND THE START MARKER.

    Can you please tell me if you fixed a similar problem. Or can i fix it using your code above? if so where i can add/edit this function?

    Thank you so so much for your time.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @khalilmouelhi you can hide the start marker with the above code, and if you want to exclude it from the markers cluster count, then you need to enable the ‘Exclude the start marker from the marker cluster?’ option.

    The code has to go in the functions.php inside your active theme folder.

    @tamarazambrana thanks for the answer. The code works thought.

    But there’s no option that allows me to exclude the start marker from the cluster?! what am i missing?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @khalilmouelhi if you use the latest version, then the ‘Exclude the start marker from the marker cluster?’ will show up on WPSL settings page in the marker section. You do need to have enable the marker cluster option for it to show up.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove start point from directions link’ is closed to new replies.