Hi, im actually creating my first google map and searching for a
solution with my next problem. My map contains some points with a
rollover. When you rollover the point the info window opens with a
little picture and some text.
Now this picture should be just a small thumbnail and i m searching
for a possibility to click this thumbnail and open a bigger image. Is
it possible to do this in the map? Or should i do it with popups in a
extra window? Will popups be blocked actually?

Here is my code exemple:
The Thumbnail is "img src="250150.jpg" and by clicking this image a
bigger window where a larger picture is in should open.


    if (GBrowserIsCompatible()) {

      function createMarker(point,html) {
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
                GEvent.addListener(marker,"mouseover", function() {
                        marker.openInfoWindowHtml(html);
                });
        return marker;
      }

      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GSmallMapControl());
      map.setCenter(new GLatLng(48.623711,11.013794), 13);
          map.setMapType(G_HYBRID_MAP);

          map.openInfoWindow(map.getCenter(),
                document.createTextNode("blablabla"));



      var point = new GLatLng(48.623711,11.013794);
      var marker = createMarker(point,'Exemple <br> <img
src="250150.jpg" width=250 height=150> <br> <a href="http://
www.google.com">Project</a> ')
      map.addOverlay(marker);

    }


    else {
      alert("blablabla");
    }


    //]]>
    </script>
  </body>

</html>


Actually i can t write javascript and just trying to do this buy
making some tutorials.
So it would be great if you could help me on a basic level ;D i m not
a pro :-(

Thanks in advance for every hint.
Greets
Chris



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to