Well, I gave up on using KML layers. Instead, I used javascript to do it all. In order to get the labels to show right, I used a custom overlay, as described here: http://code.google.com/apis/maps/documentation/javascript/overlays.html#CustomOverlays
So, my problem still exists, but I figured out a way around it. On Aug 23, 4:16 pm, Jerrac <[email protected]> wrote: > I created a polygon with 50% opacity. In the same location, I created > a ground overlay with an image to label the polygon. The polygon > covers the ground overlay, and makes it hard to read the label. How do > I get the label to be on top of the polygon? Demo > here:http://develzone.aetwirk.com/test/lccmaps/ > > Is there a better way to label the polygon? > > I did do a search to find help, but didn't find anything applicable to > my question. > > Thanks! > > KML File: > <?xml version="1.0" encoding="UTF-8"?> > <kml xmlns="http://www.opengis.net/kml/2.2"> > <Style id="styleBuildingOverlay"> > <LineStyle> > <color>ff000000</color> > </LineStyle> > <PolyStyle> > <color>4cffaa00</color> > </PolyStyle> > </Style> > > <Placemark id="center"> > <name>Center</name> > > <styleUrl>#styleBuildingOverlay</styleUrl> > <drawOrder>10</drawOrder> > <Polygon> > <altitudeMode>clampToGround</altitudeMode> > <outerBoundaryIs> > <LinearRing> > <coordinates> > -123.0330029440272,44.00967162781043,0 > -123.0328135679598,44.00888330816156,0 > -123.0322608282065,44.00894656223851,0 > -123.032457200073,44.00973397720281,0 > -123.0330029440272,44.00967162781043,0 > </coordinates> > </LinearRing> > </outerBoundaryIs> > </Polygon> > </Placemark> > > <GroundOverlay> > <name>Center Label</name> > <description>Image overlay to label building</description> > <drawOrder>50</drawOrder> > <Icon> > <href>http://develzone.aetwirk.com/test/lccmaps/txtPngs/ > centerTxt.png</href> > </Icon> > <LatLonBox> > <north>44.00954418287356</north> > <south>44.00943636942087</south> > <east>-123.0324103693085</east> > <west>-123.0329317774512</west> > </LatLonBox> > </GroundOverlay> > </kml> -- 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.
