[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 530
  • Last Modified:

How do I span a google map api v3 with a text link?

I have a google map that displays multiple markers.  I am centering the map on the center of the zip code or city/state searched.  I am also finding the closest location based on lat/long distance and displaying that in a text string external to the map.

I need to have a link in the text string that will recenter the map on that location.  What is the bes tway to do this?

Thanks!
Rose
0
rdurban
Asked:
rdurban
  • 3
  • 2
1 Solution
 
Ray PaseurCommented:
If you want to post the code you're using for this, I can probably show you how to recenter the map.  I would pass a "center=" argument in the URL (GET) string.  If present, I would use this geocode (lat/lon pair) to center the map.

I have a Google Maps API class that might be useful to you.  Please see the public method "setCenter" in the code here:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_3350.html

HTH, ~Ray
0
 
rdurbanAuthor Commented:
Thanks Ray,

I will give that a try.  It will probably be tomorrow afternoon before I am able to work on it again however.

Thanks!
Rose
0
 
Ray PaseurCommented:
Glad to help.  Please post back if you have any questions about the class or how it might be used.  Cheers, ~Ray
0
 
rdurbanAuthor Commented:
Thanks Ray!  It was great!

Rose
0
 
Ray PaseurCommented:
Thanks for the points!  It's a great question, ~Ray
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now