On Nov 12, 1:13 pm, Aaron Kreider <[email protected]> wrote: > I've now learned that Google Maps only takes kml files up to 10mb. So > I've decreased the size of counties.kml. > > Now my problem is that my kml file shows up fine in QuantumGIS and in > ArcView. But Google Maps shows nothing. > > You can see my kml:http://www.energyjustice.net/map/kml/counties01.kml
Unfortunately that can't be validated by the feed validator: http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.energyjustice.net%2Fmap%2Fkml%2Fcounties01.kml (it has a limit of 2MB) I tried a 3 county version of it: http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.geocodezip.com%2Fgeoxml3_test%2Fcounties01_2.xml It doesn't validate, but it displays on Google Maps: http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=http:%2F%2Fwww.geocodezip.com%2Fgeoxml3_test%2Fcounties01_2.xml&sll=37.0625,-95.677068&sspn=50.910968,78.837891&ie=UTF8&ll=39.529467,-94.932861&spn=6.252616,9.854736&t=h&z=7 I am not an expert on KML, it looks OK to me. It works with geoxml3 (which seems to be less picky than GGeoXml(v2)/kmlLayer(v3)): http://www.geocodezip.com/geoxml3_test/v3_geoxml3_us_counties01_highlight.html [*** warning extremely complex KML, I don't recommend opening it in IE ***] -- Larry > > You can see my html test page:http://www.energyjustice.net/map/ri.html > > What is the problem? > > Here is my sample kml format: > ?xml version="1.0" encoding="utf-8" ?> > <kml xmlns="http://www.opengis.net/kml/2.2"> > <Document><Folder><name>counties01b</name> > <Schema name="counties01b" id="counties01b"> > <SimpleField name="Name" type="string"></SimpleField> > <SimpleField name="Description" type="string"></SimpleField> > <SimpleField name="STATEFP00" type="string"></SimpleField> > <SimpleField name="COUNTYFP00" type="string"></SimpleField> > <SimpleField name="CNTYIDFP00" type="string"></SimpleField> > <SimpleField name="NAME00" type="string"></SimpleField> > <SimpleField name="NAMELSAD00" type="string"></SimpleField> > <SimpleField name="LSAD00" type="string"></SimpleField> > <SimpleField name="CLASSFP00" type="string"></SimpleField> > <SimpleField name="MTFCC00" type="string"></SimpleField> > <SimpleField name="UR00" type="string"></SimpleField> > <SimpleField name="FUNCSTAT00" type="string"></SimpleField> > </Schema> > <Placemark> > <name>19</name> > <description>175</description> > <Style><LineStyle><color>ff0000ff</color></LineStyle> > <PolyStyle><fill>0</fill></PolyStyle></Style> > <ExtendedData><SchemaData schemaUrl="#counties01b"> > <SimpleData name="Name">19</SimpleData> > <SimpleData name="Description">175</SimpleData> > <SimpleData name="STATEFP00">19175</SimpleData> > <SimpleData name="COUNTYFP00">Union</SimpleData> > <SimpleData name="CNTYIDFP00">Union County</SimpleData> > <SimpleData name="NAME00">06</SimpleData> > <SimpleData name="NAMELSAD00">H1</SimpleData> > <SimpleData name="LSAD00">G4020</SimpleData> > <SimpleData name="CLASSFP00">M</SimpleData> > <SimpleData name="MTFCC00">A</SimpleData> > </SchemaData></ExtendedData> > > <Polygon><outerBoundaryIs><LinearRing><coordinates>-94.470506,40.975042999999999,0 > -94.470602999999997,41.157565999999996,0 > -94.014188999999988,41.156762,0 -94.014803,40.897030999999998,0 > -94.470778999999993,40.899501999999998,0 > -94.470506,40.975042999999999,0</coordinates></LinearRing></ > outerBoundaryIs></Polygon> > </Placemark> > </Folder></Document></kml> -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
