Given that geoserver's kml exporter actually supports
"format_options=extrude:false", you could do
ghg.mergeNewParams({format_options: 'extrude:false'});

in a place in your code where you want this to happen. This is just
what I remember from the API docs, and it is untested.

See the link below for more details:
http://dev.openlayers.org/docs/files/OpenLayers/Layer/WMS-js.html#OpenLayers.Layer.WMS.OpenLayers.Layer.WMS


Alex

P.S. I haven't even seen the GE plugin until now, very cool...

On Wed, Oct 27, 2010 at 8:51 AM, Martin Gemeinholzer
<[email protected]> wrote:
> Hello everybody,
> this is my first posting to this mailinglist.
>
> We are currently working on a project involving GeoExt and the Google Earth
> Plugin and are experiencing some difficulties. Maybe someone can help.
>
> The Problem:
> We are trying to embed KML delivered by Geoserver as a WMS-service in a
> Geoext-Google-Earth-Plugin panel (using the following Example as base:
>
> http://dev.geoext.org/sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelWmsExample.html).
>
> When embedding kml via Networklink one can append:
>“format_options=extrude:false” to achieve that e.g. polygons (with heigth
> values via height.ftl in geoserver) are NOT extruded to the ground.
>
> How can we set this Option for specific layers in the Javascript code?
>
> The layers are embeded as follows:
>
> var ghg = new OpenLayers.Layer.WMS(
>              "GHG",
>              "http://localhost:8080/geoserver/wms?";,
>      {layers: 'ghg:ghg', transparent: 'true', kmscore: 100},
>      {singleTile: true, isBaseLayer: false}
>              );
>
> We already contacted Cedric Moullet, who wrote the GeoExt/GEPlugIn UX and he
> directed us to this mailinglist.
> So if anybody could give us a hint we would appreciate it a lot.
>
> Greetings,
> Andre  and Martin
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to