Hi there
It really wasn't easy finding a way of providing feedback, so I hope this 
account is appropriate.

On the page "Google Maps Javascript API V3 Overlays", I was looking for an 
example to help me in my development and found the section below:
Throughout the code snippet you refer to nyLayer but when listening for the 
event, you refer to ctaLayer (highlighted yellow).

Could you correct this error and perhaps add a feedback link to each page ?

In any case, thank you for this fantastic resource, it has been very useful!!

Regards
Graham

The following example displays KML feature <Description> text within a side 
<div> when the feature is clicked:
var myLatlng = new google.maps.LatLng(40.65, -73.95);
var myOptions = {
  zoom: 12,
  center: myLatlng,
  mapTypeId: google.maps.MapTypeId.ROADMAP
}

var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

var nyLayer = new 
google.maps.KmlLayer('http://www.searcharoo.net/SearchKml/newyork.kml',
    {suppressInfoWindows: true});
nyLayer.setMap(map);
google.maps.event.addListener(ctaLayer, 'click', function(kmlEvent) {
  var text = kmlEvent.featureData.description;
  showInDiv(text);
});

function showInDiv(text) {
  var sidediv = document.getElementById('contentWindow');
  sidediv.innerHTML = text;
}


******************************************************************************************************************
Get Safe Online Week 2010 runs from 15-19 November. Visit 
http://www.getsafeonline.org to learn more or follow Get Safe Online on twitter 
@GetSafeOnline

Get Safe Online is a joint initiative between the Government, the Serious 
Organised Crime Agency, private sector sponsors, Ofcom and other public sector 
sponsors from the worlds of technology, communication, retail and finance to 
raise awareness of internet security, and help individuals and smaller 
businesses in the UK to use the internet confidently and safely.
******************************************************************************************************************
For more information visit www.ofcom.org.uk

This email (and any attachments) is confidential and intended for the use of 
the addressee only.

If you have received this email in error please notify the originator of the 
message and delete it from your system.

This email has been scanned for viruses. However, you open any attachments at 
your own risk.

Any views expressed in this message are those of the individual sender and do 
not represent the views or opinions of Ofcom unless expressly stated otherwise.
******************************************************************************************************************

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

-- 
You received this message because you are subscribed to the Google Groups 
"Project Hosting on Google Code" 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-code-hosting?hl=en.

Reply via email to