View WMS service's legend - Java API

539
0
09-13-2013 03:40 AM
PernillaSpetz
New Contributor
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'}]"
0 Kudos
0 Replies