KML layers need to be hosted on a public server. When you create the KML layer and pass it the URL Google requests the file and processes the information and creates the Layer for you. This is one of the main requirements for KML layers.
As quoted from Google: The Google Maps API supports the KML and GeoRSS data formats for displaying geographic information. These data formats are displayed on a map using a KmlLayer object, whose constructor takes the URL of a* publicly accessible KML or GeoRSS file.* * * *So the KML file will need to be located on a public server.* * * *As long as you have Internet access during your local development you should be good. Just add an extra step and upload the KML/KMZ file to a public server and send the url of the file to the user to pass in the KML Layer creation. * On Fri, Jul 30, 2010 at 10:31 AM, sgiddings <[email protected]> wrote: > Thank you everyone for your input here. > The content of the KML file will indeed be dynamic, based on user > options - wouldn't be using it otherwise! > In addition, as the number of markers that can be displayed is limited > (or so I understand), this is also a necessity. > > Just one further clarification I need here. > > During development, I work on my local system. > If I understand you correctly Nathan, when creating a KML Layer, the > passed in URL is forwarded to the Google server for processing. > This means that I cannot work with KML Layers during local development > (usage of localhost) ? > Am I correct ? > > -- > 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]<google-maps-js-api-v3%[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.
