spetzper

View WMS service's legend - Java API

Discussion created by spetzper on Sep 13, 2013
Hi!

Today I have a number of WMS services that I download from other sites and shows in my WebClient - Java API

How can I encode to also show the service legend?

Ex. to a service that is available in my application:


}, {
  id : 'Stranderosion - SGI',
  title : 'Stranderosion - SGI',
  type : 'WMS',
  visible : 'false',
  url: 'http://maps3.sgu.se/geoserver/sgi/SE.GOV.SGI.FOREKOMST_STRANDEROSION/wms?',
  wkid: 3006,
  layers:"[{name:'sgi:SE.GOV.SGI.FOREKOMST_STRANDEROSION',title:'Stranderosion'}]",
  Viewers : "[{userGroup:'1_2#',Layers:'*',Rights:'READ'}]"

Outcomes