ok, gave that all a shot but im still getting confused, nothing is
working for me.... i imagine i would have to write a functions similar
to this one...
function searchLocations() {
var address = document.getElementById('addressInput').value;
geocoder.getLatLng(address, function(latlng) {
if (!latlng) {
alert(address + ' not found');
} else {
searchLocationsNear(latlng);
}
});
}
that function basically says "find location based on what is put in
the text field and dropdown bar.....but i want to write one similar to
this that says "get location based on branch_id from the link on the
previous page.....how much of this statement do i have to change?
On Jul 31, 3:13 pm, opusrandy <[email protected]> wrote:
> ok i understand what your saying, im gonna give it a shot i will get
> back to you shortly, mite need a little assistance with the scripts
>
> On Jul 31, 3:08 pm, Rossko <[email protected]> wrote:
>
> > > ummm...so what would my link be...this?
> > > <?
> > > <a href='http://wesco.jp-clients.com/branch_locate/index.php?branch_id=
> > > $branch_id'><strong>$name</strong></a><br/>
> > > ?>
>
> > Yes. That would get you only a blank map still.
> > So you'd have to modify the javascript in index.php to do something
> > like
>
> > initialize map as usual
> > get the querystring
> > if -branch_idis set, do the fetch : something very like
> > searchLocationsNear() but usingbranch_id
> > else - wait for user form input as before, for centre/radius search
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---