On Nov 13, 4:18 pm, "[email protected]" <[email protected]> wrote: > 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.energyjus... > (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.geocodezi... > > 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%... > > 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_highl... > [*** warning extremely complex KML, I don't recommend opening it in IE > ***] Another note: that example is a v3 map, as is the one that follows, and the same warning applies for IE: You seem to be missing at least one county: http://www.geocodezip.com/geoxml3_test/v3_geoxml3_us_counties01_highlight.html?lat=33.678198&lng=-114.15285124218751&zoom=8 [*** warning extremely complex KML, I don't recommend opening it in IE ***] -- Larry > > -- 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.9750429999 > > 99999,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.
