1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Google Maps API - For Real Estate

Discussion in 'Google API' started by Cyber-SEO, Sep 9, 2012.

  1. #1
    How do we know programatically what portion of the map is visible at any given time? For example:

    When I load a map I set the center so I know which point I am on and will know what properties to load. However, when a user drags the map along or zooms into a smaller section of the map. How do I know which properties to plot at that point? How will know what exactly the user is looking at?

    Thanks.
     
    Cyber-SEO, Sep 9, 2012 IP
  2. Cyber-SEO

    Cyber-SEO Member

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    Found the answer:

    First use map.getBounds()
    Then bounds.getSouthWest() and bounds.getNorthEast()
     
    Cyber-SEO, Sep 10, 2012 IP
  3. rajeev99

    rajeev99 Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I really did search a bit for the solution. Anyway thanks for sharing the answer.
     
    rajeev99, Sep 14, 2012 IP