Thanks for the suggestions, both are pretty tricky to implement though
(especially considering I'm using kmz!)

I found this suggestion
http://stackoverflow.com/questions/210881/access-kml-placemarks-in-a-google-maps-overlay-via-javascript
which I can use for assigning JS functions to individual markers
within the GGeoXML object.

On Sep 8, 3:26 pm, Barry Hunter <[email protected]> wrote:
> GGeoXML strips javascript - primarlly because it allows content to be
> loaded cross domain so would make a site vulnerable to script
> injection attacks. (they use it to power Google Maps where that is
> quite important!)
>
> Probably your best alternative would be to use a different KML parser
> (but probably wouldnt support .kmz!) - such as EGeoXml, which could
> then dynamically just add the zoom in link to every marker.
>
> Alternatively there are unofficial ways to rewrite the content of a
> GGeoXml layer, but they rely on undocumented features.
>
> On 08/09/2009, jamesct <[email protected]> wrote:
>
>
>
>
>
> >  I am generating all the markers in a kml file that gets imported into
> >  a GGeoXML overlay for my map (http://www.capetown-direct.com/
> >  map.aspx) .
>
> >  The problem is that I want a 'Zoom In' link in the InfoWindow popup
> >  for suburb markers, and I have coded this into the
> >  <Placemark><description> tag in the kml as something like <a
> >  href="javascript:zoomin(x,y)">Zoom In</a> but this doesn't work
> >  because apparently JS is blocked in kml files or something.
>
> >  (I have of course got a js function zoomin)
>
> >  Any suggestions on how to accomplish this (it really shouldn't be so
> >  difficult surely?)
>
> >  Thanks,
> >  James
>
> --
> Barry
>
> -www.nearby.org.uk-www.geograph.org.uk-
--~--~---------~--~----~------------~-------~--~----~
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