I’m using Google Maps API v3 and am displaying a basic map with about 250 place markers from a KMZ file. I’d like to add a search box to the page that allows users to search for a specific item in the KML. I’m pretty sure this is possible, but am not sure about the best way to get started… any help pointing me in the right direction would be much appreciated.
Thanks.
As I understand, a KMZ file is a zipped file containing the .KML file and other related files. Reading the KML and extracting values from it is trivial using jquery and you can get information about how to do it here.
http://think2loud.com/224-reading-xml-with-jquery/
I’ve not done unzipping a file in javascript, but you can check out this StackOverflow question if you want to do everything on the client side.
Unzipping files
Alternately, you can unzip the KMZ file on the server, and let the client code get the KML file using an AJAX get (as shown in the first link).
Hope this helps.