You won't be able to use the KMLLayer to do this - it will render the entire file.
There isn't an easily pre-written way to do that. You'd have to read in the KML file, parse the results and find your specific polygon, then create a google maps polygon using the specified points. Chad Killingsworth On Jun 6, 6:26 am, robbom <[email protected]> wrote: > Hi, > Using the Google Maps API v 3, I wish to extract out one polygon from > a KML file and display that polygon as an overlay. > > The KML file has 55 polygons, however based on passing a unique ID > (e.g. the name of an area, attached as an attibute on each polygon), > to the KML file I wish to just store one of the polygons in a polygon > variable, then use that single polygon as an overlay on the map. > > Is this possible? Thanks. -- 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.
