Your KML appears to be invalid:
http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.searchdirectoryof.com%2Fdna.google.kml

--
Marcelo - http://maps.forum.nu
--



On Jul 30, 3:25 am, "[email protected]" <[email protected]>
wrote:
> Hello everyone. I normally do not like jumping in first thing asking
> people for help, but I really have no where else to turn.
>
> I just started getting into developing maps for a project we are
> doing. And, I have managed to export data from a spreadsheet and
> create a kml file. I also managed to use the kml file to create my
> google map, showing only the listings I wanted.
>
> However, I am trying to add on the search feature 
> here:http://code.google.com/apis/ajaxsearch/documentation/localsearch/inde....
>
> Here is the page where the map is located:http://www.searchdirectoryof.com/
>
> But, with ONLY data from the KML file and nothing else.I have tried
> setting the options to listingtype: kmlonly, and it still pulls local
> listings.
>
> Can anyone help me with the code below and show me how to only display
> the listings from the KML file, and nothing else. Preferably with the
> info windows automatically opening when the search results display?
>
> If so, I would greatly appreciate it.
>
> Here is the code I am using:
>
> <script type="text/javascript">
> function initialize() {
> var map;
> geoXml = new GGeoXml("http://www.searchdirectoryof.com/
> dna.google.kml");
> map = new GMap2(document.getElementById("map_canvas"));
> map.setCenter(new GLatLng(25.496675,-102.65625), 2);
> map.addOverlay(geoXml);
>
> };
>
> </script>
--~--~---------~--~----~------------~-------~--~----~
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