- This topic has 5 replies, 4 voices, and was last updated 2 years, 12 months ago by Perry.
April 13, 2017 at 3:29 pm #26113jborkMember
I’ve been able to change the default search radius in the wpGoogleMaps.php file all the way down to 1 mile, but I’m looking to disable the radius altogether. We have a delivery zone mapped out using a polygon and the idea would be that if they search their address they would find out if their location pin falls inside the polygon.
Here’s an example, I’m testing to see if your service will work for us here: Marcello’s Pizza Delivery Cassopolis, Michigan
Thanks in Advance,
JayApril 13, 2017 at 4:30 pm #26119PerryModerator
I suggest keeping the functionality the same and picking an appropriate radius, but hiding the circle
We can do that with some custom code,
Firstly I would like you to search in wp-google-maps.js for any lines that say new google.maps.Circle, I make this lines 202 and 345. Please comment these lines out.
Would that work for you?
Thank youApril 17, 2017 at 5:22 pm #26170kdragoneMember
I am looking to make this exact same edit and attempted your suggestion. The Big Red Radius Circle still appears.April 26, 2017 at 3:37 pm #26523PerryModerator
Apologies for the slow reply, can you please direct me to your site so I can firstly check that you’ve made the changes correctly?
Thank youJanuary 28, 2018 at 1:28 pm #34128maikworldMember
I just want the same thing. The changes in wp-google-maps.js doesn’t work.
How can I remove the red circle in the map?January 29, 2018 at 9:30 am #34144PerryModerator
Thanks for getting in touch.
Have you tried setting the circles opacity to 0 in the store locator settings?
- You must be logged in to reply to this topic.