epyks23,
as far as I know, layers from raster sources should be the same from a
client's point of view as rendering to WMS images occurs on the server
side. The main difference is the use of RasterSymbolizer in SLDs:
http://docs.geoserver.org/stable/en/user/styling/sld-reference/rastersymbolizer.html
Kind regards,
Ben.
On 05/01/16 18:25, epyks23 wrote:
> Hi,
>
> Is code different when adding raster data (in comparison to adding the
> vector data)?
>
> Like this?
>
> new ol.layer.Tile({
> title: 'Bathymetry B2',
> source: new ol.source.TileWMS({
> url: 'http://localhost:8080/geoserver/wms',
> params: {'LAYERS': 'Marine:Bathymetry_B2', 'TILED': true},
> serverType: 'geoserver'
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/layerswitcher-js-and-adding-vector-data-from-Geoserver-tp5243249p5243715.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
Ben Caradoc-Davies <[email protected]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users