how can i put image in an info window??

Discussion in 'Google API' started by nourelmasry, Sep 25, 2007.

  1. #1
    To put image in an info windowi do these steps:

    var point = new GLatLng(43.91892,-78.89231);
    var marker = createMarker(point,'Some stuff to display in the<br>Second Info Window with an image<br><img src="image.jpg" width=150 height=100>')
    map.addOverlay(marker);

    but the html can't find the image so, it doesn't open it while it is in the same directory and even if i put the whole path...

    so how can i solve this problem??
     
    nourelmasry, Sep 25, 2007 IP
  2. Awanish

    Awanish Peon

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you tried <img src="http://servername/app/image/image.jpg" > that is full path to the image
     
    Awanish, Sep 26, 2007 IP
  3. nourelmasry

    nourelmasry Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes i tried it and it can't find it too
     
    nourelmasry, Sep 26, 2007 IP