Try to use groups and set a METADATA entry for one layer to "SKIP_LEGEND" "1" or "SKIP_LEGEND" "2"
and see if you get what you want. I guess 2 layers with the same name will not work with p.mapper due to the specific definition of groups and layers there. I never used it that way. You could also try to modify the line in common.php for the function setGroups() at the beginning from $grouplist = array_unique_key($_SESSION["grouplist"]); to $grouplist = $_SESSION["grouplist"]; It might be that the disableing (fading) of the whole group even if one layer of the group should be active might be a bug. I will have a look on it the next days. Armin Nuria Gonz?lez wrote: > >> on the one hand you say you see the features of 'these layers' (so >> both). Do you mean just the query results or also the features on the >> map? > > > Sorry, the layer available for the properly scale. I mean the query > results. The features on the map are right. > >> >> Then you say you don't see the features of the second layer. Again, >> query results or map features? Or highlighted features? > > Query results and highlighted features. > >> You say you have layers with the same *name*, that will not work. You >> just can have 2 layers with different names but belonging to the same >> group. >> > I read in mapserver documentation that you can have layers with the same > "name" when a layer replaces another at different scales. > > ------- > NAME [string] > Short name for this layer. Limit is 20 characters. This name is the > link between the mapfile and web interfaces that refer to this name. > They must be identical. The name should be unique, unless one layer > replaces another at different scales. Use the GROUP option to associate > layers with each other. > ------- > > I have two layers of rivers: the first one contains the important rivers > and the other one contains all rivers. At first I want to see the > important rivers, but when I zoom plus I want to see all rivers. Then I > want that this is transparent for the user (the user only sees a layer, > according with the scale). > > If in my .map file I don't use the GROUP label, I get the results that I > explain you in the last e-mail. If I set GROUP label, I see the correct > query results and the features map, but the legend is incorrect. I see > (two layers): > > --Rios > - Rios > - Rios > > and I want to see (only one layer): > --Rios > - Rios > > Furthermore, when the scale is less than 500000 the layer is disabled, > and this is wrong, because in this scale the second layer (Rios) is > available. (If I don't use GROUP the legend icons are correct, I only > see a layer, but the layer is disabled when the scale decreases, too). > > These are my layers in the .map file: > > ----------------------------------------------------------------- > LAYER #important rivers > GROUP "rios" > NAME "Rios" > TYPE line > DATA 'rios_prales' > STATUS ON > TOLERANCEUNITS pixels > TOLERANCE 4 > MINSCALE 500000 > METADATA > "DESCRIPTION" "R?os" > "RESULT_FIELDS" "LENGTH" > "RESULT_HEADERS" "LONGITUD" > END > CLASS > NAME "Rios" > TEMPLATE "void" > COLOR 0 0 255 > END > END > > LAYER #total rivers > GROUP "rios" > NAME "Rios" > TYPE line > DATA 'rivers' > STATUS ON > TOLERANCEUNITS pixels > TOLERANCE 4 > MAXSCALE 500000 > METADATA > "DESCRIPTION" "R?os" > "RESULT_FIELDS" "LENGTH" > "RESULT_HEADERS" "LONGITUD" > END > CLASS > NAME "Rios" > TEMPLATE "void" > COLOR 0 0 255 > END > END > > -------------------------------------------- > > Thanks you very much. > Regards. > > > > > >> Nuria Gonz?lez wrote: >> >>> Hi, >>> >>> I am using pmapper2 (2005-11-06) on Windows. >>> >>> In my .map file I have two layers with the same name, because one >>> layer replaces another at different scales (a layer has MINSCALE >>> 500000 (at first this layer is displayed) and other one MAXSCALE >>> 500000). When I run my application, I see the features of these >>> layers with "identify" and "select" options, but >>> when I zoom the map and the second layer is on (and the first is off) >>> I don't see the features of this substitute layer. I should see the >>> features of this second layer.... Is this a bug of the application? >>> I apologise by my bad english, I hope you can understand me. >>> >>> Other question, how can I increase the search radius for identifying >>> features? >>> >>> Thanks in advance. >>> Regards. >>> >>> _________________________________________________________________ >>> Dale rienda suelta a tu tiempo libre. Encuentra mil ideas para >>> exprimir tu ocio con MSN Entretenimiento. http://entretenimiento.msn.es/ >>> >>> >>> _______________________________________________ >>> Pmapper-users mailing list >>> [EMAIL PROTECTED] >>> http://faunalia.it/cgi-bin/mailman/listinfo/pmapper-users >>> >>> > > _________________________________________________________________ > Descarga gratis la Barra de Herramientas de MSN > http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH > > > >
