William, This is very useful - thanks for posting it. At the top of your script you use:
var stateBoundaryFeed = "http://maps.google.com/maps/feeds/features/108113052932458397912.00048842e1d3c599c5f02/full"; Presumably this is serving out the US state boundary polygons? How did you find this URL, and are there similar feeds for other data sources around the world? Cheers, Steve On 7 June 2010 13:03, William <[email protected]> wrote: > > this is possible using a data source which supports queries. At the > moment there are two options, either a Fusion Map Layer or the Maps > Data API KML Feature Feed. > > You can specify a query using the Maps Data API KML Feed with the mq > parameter. > > For example if you were searching for the State of New York, and it > had an id of NY, then the url would include this parameter ?mq=[id:NY] > > if we take the State Boundary KML polygons from this map > http://2010.census.gov/2010census/take10map/ > > and load them into a "My Map" which is accessible to the Maps Data > API, then you can make a map like the following example which allows > the user to choose a State, and also allows the user to decide how to > highlight the state, either a blue boundary with light shaded infill, > or a solid black boundary with inverse shading of areas outside the > state (use the "Inverse" checkbox to toggle the symbology display) > > http://www.william-map.com/20100607/1/states.htm > > ... > > -- > 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. > -- 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.
