Como puedo hacer que se visualice la leyenda de las capas en el panel Leyenda?

32 views
Skip to first unread message

Alicia Guadalupe Robertos Pinto

unread,
Oct 24, 2017, 7:02:23 PM10/24/17
to Heron Mapping Client Development
{
              xtype: 'hr_layerlegendpanel',
              defaults: {
                      useScaleParameter : false,
                      baseParams: {
                          // Override default image/gif in WMS GetLegendGraphic
                              FORMAT: 'image/png'
                      }
              },
              hropts: {
                      // Preload Legends on initial startup
                      // Will fire WMS GetLegendGraphic's for WMS Legends
                      // Otherwise Legends will be loaded only when Layer
                      // becomes visible. Default: false
                      prefetchLegends: false
              }
      }

Abraham Coiman

unread,
Nov 30, 2017, 1:36:48 PM11/30/17
to Heron Mapping Client Development
Hola,

¿Puedes aportar más información sonre el problema?

michael räder

unread,
Nov 30, 2017, 4:32:35 PM11/30/17
to Heron Mapping Client Development
{				
									xtype: 'hr_layerlegendpanel',
									hropts: Heron.widgets.LayerLegendPanel,
									id: 'hr-layerlegend-panel',
									defaults: {
											useScaleParameter : true,
											showTitle: true,
											//defaultStyleIsFirst: true,
											baseParams: {
												FORMAT: 'image/png',
												defaultStyleIsFirst: false
												// width: '90',
												// LEGEND_OPTIONS: 'forceLabels:on'																	
														}
												},	
									/* Should Legend Image URL be fetched from WMS Capabilities? */
									legendFromCapabilities: false,
									 /* Should Legend Image URL be fetched from WMS Capabilities for these URL patterns? */
									legendFromCapabilitiesPatterns: ['gdisrv.bsh.de/arcgis','geoseaportal.de/wss','umweltkarten.niedersachsen.de/arcgis','MU_GSG'],
									hropts: {
										// Preload Legends on initial startup
										// Will fire WMS GetLegendGraphic's for WMS Legends
										// Otherwise Legends will be loaded only when Layer
										// becomes visible. Default: false
										prefetchLegends: false
									}
								},		
Reply all
Reply to author
Forward
0 new messages