[Geoserver-users] Hide KML info points for lines and polygons

Hello, Is there a way to append the kml_reflect URL so that info points are not shown for line and polygon features? If it cannot be done this easily, how would you go about doing this through the styles? See this link: http://maps.google.com/maps?f=q&hl=en&geocode=&q=http:%2F%2Fsigma.openplans.org:8080%2Fgeoserver%2Fwms%2Fkml_reflect%3Flayers%3Dtopp:states&ie=UTF8&ll=37.370157,-98.085937&spn=38.693486,67.851562&z=4


View this message in context: Hide KML info points for lines and polygons
Sent from the GeoServer - User mailing list archive at Nabble.com.

bmcbride wrote:

Hello, Is there a way to append the kml_reflect URL so that info points are not shown for line and polygon features? If it cannot be done this easily, how would you go about doing this through the styles? See this link: http://maps.google.com/maps?f=q&hl=en&geocode=&q=http:%2F%2Fsigma.openplans.org:8080%2Fgeoserver%2Fwms%2Fkml_reflect%3Flayers%3Dtopp:states&ie=UTF8&ll=37.370157,-98.085937&spn=38.693486,67.851562&z=4

------------------------------------------------------------------------

Hi,

the points are shown because Google Earth doesn't let you click on polygons or lines to get the description, so there you need a point for every feature. At least for the time being.

What I would try is using an external graphic that points to a 32x32 pixel transparent PNG, and use that as the PointSymbolizer in the SLD. There's an 8 bit one here which you are welcome to copy: http://icons.opengeo.org/markers/blank.png (You can hotlink if you're using it exclusively with KML, but you'll want a local copy if you use it with regular WMS)

-Arne

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers