Neil, you are using Google Maps version 2 and this is a version 3
forum.
Anyway, here is a link to the version 2 reference for that function:
http://code.google.com/apis/maps/documentation/reference.html#GMap2.openInfoWindowHtml
Please post any other questions to the correct group.

Helen

On Jan 13, 7:58 am, "[email protected]" <[email protected]>
wrote:
> Hi All
>
> Apologies for the newbie question and its possible misplacement in the
> discussion board but this is the first map I have tried to create and
> not being a javascript expert I am having problems.
>
> I want to create an info window and be able to add an image and style
> the text but whatever i have tried hasnt worked
>
> This  is the code i have been using which creates the info window but
> i dont have control over styling and I cant see how to add an image.
>
>      function initialize() {
>       if (GBrowserIsCompatible()) {
>         var map = new GMap2(document.getElementById("map_canvas"));
>         map.setCenter(new GLatLng(51.5540, 0.6078), 13);
>
>                 // Add controls
>                         map.setUIToDefault();
>
>                 // Add markers to the map at Lat Long
>                 var latlng = new GLatLng(51.5540, 0.6078);
>                         map.addOverlay(new GMarker(latlng));
>
>                 // Open info window with message
>                         map.openInfoWindow(map.getCenter(),
>                         document.createTextNode("Entertainers, 200 London 
> Road, Hadleigh,
> Benfleet, Essex SS7 2PD, United Kingdom"));
>       }
>     }
>
> I believe i can use 'openInfoWindowHTML' but cant find any reference
> on using it on Google Maps info.
>
> Thanks in advance
> Neil
-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.


Reply via email to