<div>Thank you again Rich</div> <div> </div> <div>It's was like you sad: You need to define the CLASS END, even if is empty. You just need to have CLASS defined</div> <div> </div> <div>William<BR><BR><B><I>Richard Greenwood <richard.greenwood@GMAIL.COM></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On 1/25/07, william paul <WILLIAMPAUL28@YAHOO.COM>wrote:<BR>><BR>> Hi:<BR>><BR>> I am using Dbox, example from<BR>> http://maps.dnr.state.mn.us/tools/dbox/<BR>> I want to have more background layers, and each background layer is a<BR>> raster. I have setup the metadata in the map file:<BR>> METADATA<BR>> # dLegend XML legend control<BR>> dlegend_metagroups "foreground,background"<BR>> dlegend_foreground_name "foreground:"<BR>> dlegend_foreground_layers_and_groups "layer1,layer2"<BR>> dlegend_background_name "background: "<BR>>
dlegend_background_layers_and_groups "raster1,raster2"<BR>> dlegend_background_element "radio"<BR>> dlegend_layer1_name "Layer1"<BR>> dlegend_layer2_name "Layer2"<BR>> dlegend_raster1_name "Raster1"<BR>> dlegend_raster2_name "Raster2"<BR>> END<BR>><BR>> When I load the page I can see the legend up to Raster1 and without Raster2<BR>> I tried to replace the layers from the background with vector data and is<BR>> working OK, but with raster data I can see only 1 background layer<BR>><BR>> Is it possible to use 2 or more background layers with raster data?<BR>><BR>> Thank you in advance<BR>><BR>> William<BR><BR>Yes, you can can have many background layers. I ran into the same<BR>problem that I think you are seeing: not all of my legend was showing<BR>up. It was syntax with the legend definitions, unfortunately I can not<BR>remember the details. Try changing the order of the layers in the<BR>legend, and/or removing them one at a
time. This will help you find<BR>the problem layer. And look at the class names in the layer definition<BR>itself.<BR><BR>HTH,<BR>Rich<BR><BR><BR>-- <BR>Richard Greenwood<BR>richard.greenwood@gmail.com<BR>www.greenwoodmap.com<BR></BLOCKQUOTE><BR><p>
<hr size=1>No need to miss a message. <a href="http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail
">Get email on-the-go </a><br>with Yahoo! Mail for Mobile. <a href="http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail
">Get started.</a>