pages not displaying

88 views
Skip to first unread message

rmcguire

unread,
Mar 29, 2012, 9:06:27 AM3/29/12
to Google Maps JavaScript API v3
Could someone please look at my page at www.meadowlarkco.com/regulationsmap2.html
and tell me why my borders around my states aren't showing up and
hence why my infowindows don't display?

thanks

geoco...@gmail.com

unread,
Mar 29, 2012, 9:46:20 AM3/29/12
to Google Maps JavaScript API v3
I'm not sure. KmlLayer doesn't seem to want to render it, try looking
at the status returned. The kml itself is not valid:

http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.meadowlarkco.com%2Fregulationsmap.xml

But the errors I see there don't seem like showstoppers.

geoxml3 parses it (for what that is worth):
http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?filename=http://www.geocodezip.com/xmlProxy060215.asp?http://www.meadowlarkco.com/regulationsmap.xml

Google Maps doesn't like it:
http://maps.google.com/maps?q=http:%2F%2Fwww.meadowlarkco.com%2Fregulationsmap.xml&hl=en&sll=35.817813,-95.712891&sspn=42.260512,56.513672&t=m&z=4

It doesn't think it is valid kml:
http://www.meadowlarkco.com... could not be displayed because it is
not a valid KML or KMZ file.

So maybe one of those validator erros is important.

-- Larry



>
> thanks

rmcguire

unread,
Mar 29, 2012, 10:00:09 AM3/29/12
to Google Maps JavaScript API v3
any ideas on where to start as far as fixing this? I haven't touched
this in a few weeks, so is something missing or not available with
earth.google.com/kml/2.2?

On Mar 29, 7:46 am, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
> On Mar 29, 6:06 am, rmcguire <rmcgu...@meadowlarkco.com> wrote:
>
> > Could someone please look at my page atwww.meadowlarkco.com/regulationsmap2.html
> > and tell me why my borders around my states aren't showing up and
> > hence why my infowindows don't display?
>
> I'm not sure.  KmlLayer doesn't seem to want to render it, try looking
> at the status returned.  The kml itself is not valid:
>
> http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.meadowlar...
>
> But the errors I see there don't seem like showstoppers.
>
> geoxml3 parses it (for what that is worth):http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.htm...
>
> Google Maps doesn't like it:http://maps.google.com/maps?q=http:%2F%2Fwww.meadowlarkco.com%2Fregul...
>
> It doesn't think it is valid kml:http://www.meadowlarkco.com... could not be displayed because it is
> not a valid KML or KMZ file.
>
> So maybe one of those validator erros is important.
>
>   -- Larry
>
>
>
>
>
> > thanks- Hide quoted text -
>
> - Show quoted text -

geoco...@gmail.com

unread,
Mar 29, 2012, 10:03:35 AM3/29/12
to Google Maps JavaScript API v3
On Mar 29, 7:00 am, rmcguire <rmcgu...@meadowlarkco.com> wrote:
> any ideas on where to start as far as fixing this? I haven't touched
> this in a few weeks, so is something missing or not available with
> earth.google.com/kml/2.2?

That may be an invalid schema, the current kml 2.2 schema is:
'http://www.opengis.net/kml/2.2'

-- Larry

rmcguire

unread,
Mar 29, 2012, 10:09:22 AM3/29/12
to Google Maps JavaScript API v3
that didn't seem to do anything, any other ideas?

thanks

On Mar 29, 8:03 am, "geocode...@gmail.com" <geocode...@gmail.com>
> > > - Show quoted text -- Hide quoted text -

geoco...@gmail.com

unread,
Mar 29, 2012, 12:20:54 PM3/29/12
to Google Maps JavaScript API v3
On Mar 29, 7:09 am, rmcguire <rmcgu...@meadowlarkco.com> wrote:
> that didn't seem to do anything, any other ideas?

See if you are missing any "required" tags (Folder might be, looks
like you have document). That was what the problem was last time I
saw something like this happen (valid xml, parsed OK with geoxml3, but
not working with google maps or the API renderer).

Larry

rmcguire

unread,
Mar 29, 2012, 1:49:39 PM3/29/12
to Google Maps JavaScript API v3
where would I look for this?

thanks

On Mar 29, 10:20 am, "geocode...@gmail.com" <geocode...@gmail.com>

geoco...@gmail.com

unread,
Mar 29, 2012, 6:08:28 PM3/29/12
to Google Maps JavaScript API v3
On Mar 29, 10:49 am, rmcguire <rmcgu...@meadowlarkco.com> wrote:
> where would I look for this?

The kml reference would be my first guess:
https://developers.google.com/kml/documentation/kmlreference

-- Larry

Katarzyna Derc

unread,
Mar 30, 2012, 7:56:02 AM3/30/12
to google-map...@googlegroups.com
just rename the file to 
and you should be good to go :)

geoco...@gmail.com

unread,
Mar 30, 2012, 8:43:23 AM3/30/12
to Google Maps JavaScript API v3
On Mar 30, 4:56 am, Katarzyna Derc <kaskad...@gmail.com> wrote:
> just rename the file tohttp://www.meadowlarkco.com/regulationsmap.kml
> and you should be good to go :)

That is not the problem (I use files with a .xml extension all the
time, my server doesn't understand .kml files).

Example:
http://www.geocodezip.com/geoxml3_test/v3_geoxml3_us_states_HI_kml_test.html

Can display this file using KmlLayer (click on the "unhide kmlLayer
button to see it):
http://www.geocodezip.com/geoxml3_test/us_states_HI.xml

It also works in google maps:
http://maps.google.com/maps?q=http:%2F%2Fwww.geocodezip.com%2Fgeoxml3_test%2Fus_states_HI.xml&hl=en&sll=32.85015,-117.197199&sspn=0.010221,0.013797&t=h&z=7

-- Larry

rmcguire

unread,
Mar 30, 2012, 9:37:05 AM3/30/12
to Google Maps JavaScript API v3
renaming the xml file to .kml didn't do anything.....the odd thing is
I haven't touched this project in a couple weeks, now I open it up to
continue on with it and my layers don't show up?

On Mar 30, 6:43 am, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
> On Mar 30, 4:56 am, Katarzyna Derc <kaskad...@gmail.com> wrote:
>
> > just rename the file tohttp://www.meadowlarkco.com/regulationsmap.kml
> > and you should be good to go :)
>
> That is not the problem (I use files with a .xml extension all the
> time, my server doesn't understand .kml files).
>
> Example:http://www.geocodezip.com/geoxml3_test/v3_geoxml3_us_states_HI_kml_te...
>
> Can display this file using KmlLayer (click on the "unhide kmlLayer
> button to see it):http://www.geocodezip.com/geoxml3_test/us_states_HI.xml
>
> It also works in google maps:http://maps.google.com/maps?q=http:%2F%2Fwww.geocodezip.com%2Fgeoxml3...
>
>   -- Larry
>
>
>
>
>
> > On Thursday, 29 March 2012 15:06:27 UTC+2, rmcguire wrote:
>
> > > Could someone please look at my page at
> > >www.meadowlarkco.com/regulationsmap2.html
> > > and tell me why my borders around my states aren't showing up and
> > > hence why my infowindows don't display?
>

geoco...@gmail.com

unread,
Mar 30, 2012, 1:27:09 PM3/30/12
to Google Maps JavaScript API v3
On Mar 30, 6:37 am, rmcguire <rmcgu...@meadowlarkco.com> wrote:
> renaming the xml file to .kml didn't do anything.....the odd thing is
> I haven't touched this project in a couple weeks, now I open it up to
> continue on with it and my layers don't show up?

If the kml file hasn't changed, then the kml rendering engine probably
did. We (or at least I) don't have much insight into when that
changes, but it seems to be common among Google Maps, and the 2 Google
Maps APIs (v2 & v3).

I am not sure where bugs against it should be reported, but you might
bring the issue up over on Stack Overflow.

-- Larry

Enoch Lau (Google Employee)

unread,
Mar 31, 2012, 5:08:41 AM3/31/12
to google-map...@googlegroups.com
If you notice problems rendering a KML file using KmlLayer in the API, feel free to add an issue on the Maps API issue tracker (http://code.google.com/p/gmaps-api-issues/issues/list).

Enoch

geoco...@gmail.com

unread,
Mar 31, 2012, 1:48:24 PM3/31/12
to Google Maps JavaScript API v3
On Mar 31, 5:08 am, "Enoch Lau (Google Employee)"
<enoch...@google.com> wrote:
> If you notice problems rendering a KML file using KmlLayer in the API, feel
> free to add an issue on the Maps API issue tracker
> (http://code.google.com/p/gmaps-api-issues/issues/list).

Was there a recent change to the kml rendering engine that would
explain the OP's problem?

Larry

Enoch Lau (Google Employee)

unread,
Apr 3, 2012, 11:04:26 AM4/3/12
to google-map...@googlegroups.com
There's a team that works on improving the KML rendering engine, and if a bug is filed, we'll make sure it gets routed to them - but otherwise, I'm not familiar with the specifics of any changes.

Enoch

rmcguire

unread,
Apr 3, 2012, 5:26:55 PM4/3/12
to Google Maps JavaScript API v3
this is just really weird though, I haven't changed anything and now
my polygon layers don't show up at all. I would really hope to not
have to start over.

On Apr 3, 9:04 am, "Enoch Lau (Google Employee)" <enoch...@google.com>
> > > > > > - Show quoted text -- Hide quoted text -

Andrew Leach

unread,
Apr 3, 2012, 6:16:57 PM4/3/12
to google-map...@googlegroups.com
On 3 April 2012 16:04, Enoch Lau (Google Employee) <enoc...@google.com> wrote:
> There's a team that works on improving the KML rendering engine, and if a
> bug is filed, we'll make sure it gets routed to them - but otherwise, I'm
> not familiar with the specifics of any changes.

So you don't get details of changes which might break things?

Enoch Lau (Google Employee)

unread,
Apr 4, 2012, 12:11:04 AM4/4/12
to google-map...@googlegroups.com
We took a look and it appears that this file wasn't detected as a valid KML file by the rendering engine. To fix this, you could:
  • Remove the comments between the kml & kml tags at the top of the file
  • Rename to .kml
  • Set the content type to be   Content-Type: application/vnd.google-earth.kml+xml
To assist with debugging, KmlLayer now has a status property: https://developers.google.com/maps/documentation/javascript/reference#KmlLayer
In this particular instance, the status was INVALID_DOCUMENT.

Enoch

geoco...@gmail.com

unread,
Apr 4, 2012, 6:05:36 AM4/4/12
to Google Maps JavaScript API v3
On Apr 4, 12:11 am, "Enoch Lau (Google Employee)"
<enoch...@google.com> wrote:
> We took a look and it appears that this file wasn't detected as a valid KML
> file by the rendering engine. To fix this, you could:
>
>    - Remove the comments between the kml & kml tags at the top of the file
Why would comments cause validation to fail?

>    - Rename to .kml
This has never been required before. My server doesn't let me
serve .kml; .xml files have always worked fine with Google Maps
before.

>    - Set the content type to be   Content-Type:
>    application/vnd.google-earth.kml+xml
again, this is a change; plain xml has always worked before now (and
continues to I believe)

-- Larry

>
> To assist with debugging, KmlLayer now has a status property:https://developers.google.com/maps/documentation/javascript/reference...

geoco...@gmail.com

unread,
Apr 4, 2012, 6:13:37 AM4/4/12
to Google Maps JavaScript API v3
On Apr 4, 6:05 am, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
> On Apr 4, 12:11 am, "Enoch Lau (Google Employee)"<enoch...@google.com> wrote:
> > We took a look and it appears that this file wasn't detected as a valid KML
> > file by the rendering engine. To fix this, you could:
>
> >    - Remove the comments between the kml & kml tags at the top of the file
>
> Why would comments cause validation to fail?
>
> >    - Rename to .kml
>
> This has never been required before.  My server doesn't let me
> serve .kml; .xml files have always worked fine with Google Maps
> before.
>
> >    - Set the content type to be   Content-Type:
> >    application/vnd.google-earth.kml+xml
>
> again, this is a change; plain xml has always worked before now (and
> continues to I believe)
Example:
http://maps.google.com/maps?q=http:%2F%2Fwww.geocodezip.com%2Fgeoxml3_test%2Fus_states_HI.xml&hl=en&sll=37.0625,-95.677068&sspn=38.41771,86.572266&t=m&z=7

Enoch Lau (Google Employee)

unread,
Apr 4, 2012, 6:53:54 AM4/4/12
to google-map...@googlegroups.com
It's not required that the file extension be .kml. But if it does not end in .kml, you can say that it is a KML file by specifying the content-type. If the content-type is not set and the file extension is not .kml, we try to guess whether it is a KML file by looking at the first little bit of the document - which is why removing the comments would help.

rmcguire

unread,
Apr 4, 2012, 9:37:35 AM4/4/12
to Google Maps JavaScript API v3
which comments between the kml tags?

On Apr 4, 4:53 am, "Enoch Lau (Google Employee)" <enoch...@google.com>

rmcguire

unread,
Apr 4, 2012, 12:04:53 PM4/4/12
to Google Maps JavaScript API v3
where do I set the content type at.....this just doesn't make sense
why this stopped working?
> > - Show quoted text -- Hide quoted text -

Enoch Lau (Google Employee)

unread,
Apr 4, 2012, 7:23:06 PM4/4/12
to google-map...@googlegroups.com
Renaming the file to .kml should be the easiest option. If it doesn't work, post back with a link to a demo page that uses the .kml file that doesn't work.

Also try deleting the comments on lines 2-4 of your file.

Rossko

unread,
Apr 4, 2012, 9:29:54 PM4/4/12
to Google Maps JavaScript API v3
I don't see any comments in
http://www.meadowlarkco.com/regulationsmap.xml

This is now displaying for me in maps.google.com and
www.meadowlarkco.com/regulationsmap2.html
This all feels like one of those variable timeout issues.

geoco...@gmail.com

unread,
Apr 5, 2012, 8:51:22 AM4/5/12
to Google Maps JavaScript API v3

Enoch Lau (Google Employee)

unread,
Apr 5, 2012, 7:20:40 PM4/5/12
to google-map...@googlegroups.com
Cool, well that seems like it's fixed it!

rmcguire

unread,
Apr 6, 2012, 10:06:48 AM4/6/12
to Google Maps JavaScript API v3
weird....what changed as I didnt' change anything


On Apr 5, 5:20 pm, "Enoch Lau (Google Employee)" <enoch...@google.com>
wrote:
> Cool, well that seems like it's fixed it!
>
>
>
> On Thursday, April 5, 2012 10:51:22 PM UTC+10, geoco...@gmail.com wrote:
>
> > n Apr 4, 6:29 pm, Rossko <ros...@culzean.clara.co.uk> wrote:
> > > I don't see any comments in
> >http://www.meadowlarkco.com/regulationsmap.xml
>
> > The current version is working for me in google maps also:
>
> >http://maps.google.com/maps?q=http:%2F%2Fwww.meadowlarkco.com%2Fregul...
>
> > This is my copy of the problem kml:
>
> >http://www.geocodezip.com/geoxml3_test/regulationsmap_20120329.xml
>
> > has the comments and doesn't work in google maps:
>
> >http://maps.google.com/maps?q=http:%2F%2Fwww.geocodezip.com%2Fgeoxml3...
>
> >   -- Larry
>
> > > This is now displaying for me in maps.google.com and
> >www.meadowlarkco.com/regulationsmap2.html
> > > This all feels like one of those variable timeout issues.- Hide quoted text -

geoco...@gmail.com

unread,
Apr 6, 2012, 10:56:29 AM4/6/12
to Google Maps JavaScript API v3
On Apr 6, 7:06 am, rmcguire <rmcgu...@meadowlarkco.com> wrote:
> weird....what changed as I didnt' change anything

The file on the server is definitely different. Something changed it.

Larry
Reply all
Reply to author
Forward
0 new messages