Yes, but just to monitor what was happening. I have removed the
listener in testlink7.htm. Same (non) effect.
On Aug 3, 1:53 pm, Rossko wrote:
> > There is a demo at http://www.bexley.gov.uk/xml/testlink6.htm
>
> But you've put your own click listener on the KmlLayer - which does
> get trigger
> There is a demo at http://www.bexley.gov.uk/xml/testlink6.htm
But you've put your own click listener on the KmlLayer - which does
get triggered and produces the alert box.
I thought you were trying to trigger the 'native' click handling of
the KmlLayer in the hope that it would in turn trigger
There is a demo at http://www.bexley.gov.uk/xml/testlink6.htm
There is a 10 second wait between the map displaying and the trigger
test. The click is on the bottom-left polygon.
On Aug 3, 12:13 pm, Rossko wrote:
> > I guess in my naive logic, if I use the mouse to click on the kml
> > layer (
> I guess in my naive logic, if I use the mouse to click on the kml
> layer (at the specific location I require) it knows which polygon is
> underneath the click
Yup, you are correct there, the API can work out which poly from the
mouse position. The 'missing link' is that you (your own code) hav
I guess in my naive logic, if I use the mouse to click on the kml
layer (at the specific location I require) it knows which polygon is
underneath the click, and pops up the infowindow containing the name
and description from that polygon's kml entry. Therefore, if I merely
trigger a click at a spe
> If I add a 3rd parameter
> google.maps.event.trigger(ctaLayer ,'click',null);
> then obj is null ie the listener only receives what is sent by the
> trigger.
>
> This does not appear to be the correct behaviour.
I'm not sure why you think that is incorrect. What would you expect
it to se
On Aug 3, 8:01 am, Lenius wrote:
> Hi,
>
> I think you can use this example :
>
> map = new
> google.maps.Map(document.getElementById("map_canvas"),myOptions);
>
> ctaLayer = new google.maps.KmlLayer(''http://www..xx.uk/xml/
> newbinsgr.kml',{suppressInfoWindows:true,preserveViewport:true});
On Aug 2, 11:21 pm, Rossko wrote:
> > I would like to display the infoWindow for a kml polygon automatically
> > on loading the layer. To do this I am trying to trigger a click on
> > the polygon. In order to specify the location I pass the LatLng to
> > the trigger.
>
> I don't see anywhere i
Hi,
I think you can use this example :
map = new
google.maps.Map(document.getElementById("map_canvas"),myOptions);
ctaLayer = new google.maps.KmlLayer(''http://www..xx.uk/xml/
newbinsgr.kml',{suppressInfoWindows:true,preserveViewport:true});
google.maps.event.addListener(ctaLayer, 'cli
> I would like to display the infoWindow for a kml polygon automatically
> on loading the layer. To do this I am trying to trigger a click on
> the polygon. In order to specify the location I pass the LatLng to
> the trigger.
I don't see anywhere in your code snippet that you trigger any event.
10 matches
Mail list logo