I'm outputting vector KML for a polygon layer which does need to display labels, but needs a custom pop-up description. I have set an SLD for the polygon layer that only has a PolygonSymbolizer and I've created the appropriate featureType description.ftl and tile.ftl files for the custom popup. When I output the KML to display in Google Earth using a direct WMS query everything looks great and works how I expect it to.
However when I try to display this same KML in Google Maps an additional point show up. Looking at the KML file it seems that an extra point geometry (maybe a centroid?) is being encoded into the multi-geometry object for each placemark, along with the style icon of http://icons.opengeo.org/markers/icon-poly.1.png. If I edit the KML file and take out the addition point geometry and remove the IconStyle, everything looks correct in both GE and GM i.e no more point placemarks. Also my popups are working how I except them to. Does anyone know if it is possible to get Geoserver to suppress the creation of this point geometry for each polygon placement? This is the specific query I used for getting the KML from geoserver: http://myserver/geoserver/wms?height=1024&width=1024&layers=mylayer&request=GetMap&service=wms&styles=mystyle&format_options=SUPEROVERLAY%3Afalse%3BKMPLACEMARK%3Afalse%3BKMSCORE%3A100%3BKMATTR%3Atrue%3B&srs=EPSG%3A4326&format=application%2Fvnd.google-earth.kmz%2Bxml&transparent=false&mode=download&version=1.1.1&BBOX=150,-60,195,-25 I'm using Geoserver 2.0.2. Kind Regards, Jeremy ______________________________________________________________________________________________________ This message contains information, which is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or [email protected]) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank you. ______________________________________________________________________________________________________ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
