[OpenLayers-Users] Openlayers WMS CQL_FILTER example
eoinyp
eoinyp at yahoo.com
Wed Sep 23 10:25:50 EDT 2009
Looks good to go,
its just like adding a normal WMS layer, but has an additional line as you
have there,
CQL_FILTER: 'airspace_type="A" ;
now just add it to the map:
map.addLayer(us_states);
Eoinyp
jim.meyer wrote:
>
> Hi,
>
>
>
> I'd like to use Openlayers to make a new WMS layer using a CQL_FILTER.
> This is what I have so far. Could someone help me with the syntax?
>
>
>
> var us_states = new OpenLayers.Layer.WMS(
>
> "US States",
>
> "/geoserver/wms?",
>
> {
>
> layers: 'SUA:schedule',
>
> srs: 'EPSG:4326',
>
> format: 'image/png8',
>
> cql_filter: 'airspace_type="A"',
>
> tiled: 'true',
>
> transparent: true
>
> },
>
> {
>
> 'isBaseLayer': false, 'wrapDateLine': true
>
> }
>
> );
>
>
>
> Thanks,
> Jim
>
>
>
> Jim Meyer
>
> Java Programmer
>
> ConceptSolutions, LLC
>
> We Make Business Intelligent
>
> 703.889.8434 [desk]
>
> 703.391.9041[fax]
>
> www.Concept-Solutions.com
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context: http://n2.nabble.com/Openlayers-WMS-CQL-FILTER-example-tp3699732p3699982.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list