WEB Google Maps -- Zoom level based on locations displayed?

Discussion in 'OT Technology' started by fishbulb, Jan 14, 2008.

  1. fishbulb

    fishbulb Active Member

    Joined:
    Oct 29, 2001
    Messages:
    6,848
    Likes Received:
    4
    Location:
    md
    Hi, I'm working on a page that will show all locations in a selected state on a google map. I've found plenty of good PHP classes to display maps , but is there anyway I can have the map simply zoom by default to a level that allows all mapped locations to be shown?

    As it stands I have to set a default zoom for all. I suppose I could code a zoom level for each state to make it work, but it is still often not centered correctly. Thanks.
     
  2. LOLZILLA

    LOLZILLA New Member

    Joined:
    Jul 11, 2004
    Messages:
    97,923
    Likes Received:
    0
    wait, doesn't googley have walk-thrus for this?
     
  3. fishbulb

    fishbulb Active Member

    Joined:
    Oct 29, 2001
    Messages:
    6,848
    Likes Received:
    4
    Location:
    md
    I'm trying to dynamically set map.setCenter somehow based on showing all the markers in the XML file and at a zoom level that shows all of the markers but not much else. Maybe its just not possible.
     

Share This Page