Well, that was simple. It turns out that the KML file path should be absolute. Once it was changed to the full URL path on the local webserver, it worked.
That was embarrassing. The coding still needs to be cleaned up a bit, but I'm glad it was something simple. On Sep 16, 10:02 am, Matthew King <[EMAIL PROTECTED]> wrote: > I changed the path for the two KMLs (county boundary & natural areas > fill) back to the google page and they now show up on the map. In > summary, the KMLs only appear when being served from googlepages, but > not locally. I guess that means there's still something not right > with the MIME settings...I think. > > I wonder if having the correct vml namespace be the fix? I'll try and > see. > > On Sep 16, 9:35 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > > > On Sep 16, 5:54 am, Matthew King <[EMAIL PROTECTED]> wrote: > > > > It's almost there...the markers are showing up now. According to our > > > web admin, the server goes through a nightly "sys check" and well, who > > > knows. > > > > However, the two KML files being called with ggeoxml are not showing > > > up. I'm going to place those two KML files back on the google pages > > > server and see if it works. I also thought of the issue of bringing > > > in the two files but like I said in my first post, it worked on our > > > development site. > > > > Thanks for catching the extra </head>, this page brings in several > > > server side includes and that's the reason for the coding, though the > > > first </head> can be removed. > > > It seems to be working for me in every browser but IE6 (Opera, FF3, > > Chrome). I don't see the light green overlays in IE. You don't have > > the correct vml > > namespace:http://code.google.com/apis/maps/documentation/index.html#XHTML_and_VML > > But that doesn't seem to matter. > > > -- Larry > > > > On Sep 15, 8:49 pm, Rossko <[EMAIL PROTECTED]> wrote: > > > > > > I'm confused now. Why is it then that it's working for some folks and > > > > > not others? > > > > > Running FF2 I get a map, no error messages, no markers either. > > > > Firebug tells me this file request - > > > > > > > > http://www.pbcgov.com/erm/natural/natural-areas/kml/NATAREABND_200808... > > > > produces a 404 not-found reply from the server. > > > > > The HTML for the page is invalid, there are two </head> tags and a lot > > > > of functional scripts stranded in the no-mans-land between them, > > > > which will produce unpredictable results across browsers. > > > > > Although the maps script calls for this file - > > > > var kml = new GGeoXml("kml/PBC_Boundary.kml"); > > > > I never see a request generated for that in Firebugs NET trace. > > > > Perhaps that is because it is quickly followed by - > > > > var kml = new GGeoXml("kml/NATAREABND_20080815.kml"); > > > > which I guess will destroy the first request before it gets going. > > > > Maybe it's mutual destruction because I don't see any request for the > > > > second file either. > > > > > I think you should change that second one (and the associated > > > > addOverlay) to use a different variable e.g. > > > > var kmltwo = new GGeoXml("kml/NATAREABND_20080815.kml"); > > > > > cheers, Ross K- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
