Default locations
Permalink Browser Info Environment
I do have one question, my client has several locations all in about 100 mile radius. Is there a way that all of those locations can show on the map by default without having to enter a zip code first?
Thanks!
Thanks!
Type: | Discussion |
---|---|
Status: | In Progress |
If you override the view template you can probably just set the correct values for the radius and address fields with javascript or php, then in the document.ready function you could call the searchLocations function which would be the same as submitting the form.
I'll give that a shot. This won't affect the search capabilities will it, should someone use the search function?
Not unless it's causing a javascript error..
Do you think it would be possible to call out a zip code in the load function at the beginning of the view.php file? I did modify the map's coordinates to zoom to the area I need by default.
Yeah, my suggestion was to set the form fields with javascript or manually, then run the searchLocations function, that would search by zip or whatever.
Is that what you're looking for?
Is that what you're looking for?
Yeah, I just need it to return a zip and radius on page load so that all the entered location show up without the user having to put in a zip first.
The way it is setup by default works great if you're company's locations are nationwide, but not really for a local company with say, 10 locations.
The way it is setup by default works great if you're company's locations are nationwide, but not really for a local company with say, 10 locations.
Got it working.
This is the code I used:
This is the code I used:
Tony,
Where did you put this code? Having trouble figuring out how to do the same thing on my site.
Lamar Brantley
Where did you put this code? Having trouble figuring out how to do the same thing on my site.
Lamar Brantley