Any Idea how Listings are shown on Google Maps with its info ???

Discussion in 'PHP' started by superstan, Feb 28, 2010.

  1. #1
    I am trying to make something like Listings on Google maps.

    What is the logic behind it ? How it is done ?

    It will show an icon on google map and clicking it will show its information box...

    any idea????

    [​IMG]


    ?????????????????????????????????????????
     
    Last edited: Feb 28, 2010
    superstan, Feb 28, 2010 IP
  2. ThomasTwen

    ThomasTwen Peon

    Messages:
    113
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's quite easy, actually.... when a user clicks the image, Javascript code will show the message in the box. It can be done easily using the Google Maps API.
     
    ThomasTwen, Feb 28, 2010 IP
    superstan likes this.
  3. superstan

    superstan Peon

    Messages:
    244
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    can u tell me logic behind it thomas?
     
    superstan, Feb 28, 2010 IP
  4. ThomasTwen

    ThomasTwen Peon

    Messages:
    113
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Basically, you add a Google Map to your website. You then create markers for your locations on them, and when someone clicks a marker, the InfoWindow is shown. If you want to display thousands of markers at once, this might become a little more difficult due to Script size.


    You might want to read the related part of the Google Maps API documentation, and have a look at Google's example.


    EDIT: I came across another cool example: Google API Playground
     
    Last edited: Feb 28, 2010
    ThomasTwen, Feb 28, 2010 IP
  5. superstan

    superstan Peon

    Messages:
    244
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thankyou very very very much thomas !!!

    appreciated your efforts ;)
     
    superstan, Feb 28, 2010 IP