On Jun 7, 7:08 am, Svarog <[email protected]> wrote:
> I have a webpage with GoogleMap and KML overlay. I also have 2
> TextBox controls in which user can manually enter Lat and Lng. Is
> there a way I can "query" KML overlay with Lat and Lng user entered
> manually so it will return region name ? If user clicks on the map,
> everything is working, but if he decides to enter values manually,
> I haven't been able to retrieve region name.
>
> Is it possible to use "google.maps.event.trigger" to trigger click
> on KML layer ?

Not at present.  I believe there is an enhancement request for that
kind of functionality, but I don't think it will be easy to do given
the KmlLayer is displayed as tiles.

> If I pass only entered Lat and Lng coordinates as args, I don't
> have any value in "kmlEvent.featureData.name" property which is
> used to retrieve region name.

Depending on how complex your KML is, you could look at geoxml3 or
importing it into FusionTables and using a FusionTablesLayer to
display it, then querying the table by lat/lng for the manually
entered data.

  -- Larry

-- 
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