[maplab-users] default status

matthias matthias.mueller at gfz-potsdam.de
Thu Feb 3 03:46:42 EST 2005


Hello there,
 
does anyone know how that works with the default layer status in MapEdit
and later in the MapBrowser too?
 
Explanation: If I declare my layer to the default status, I can do what
I want later in the legend -> I can toggle between visible and not
visible! But that is not what I want. And further if I comment out the
group and/or the class name as I think so that it should work (see the
example from my mapscript),  then the layer will not be existent in the
legend. So far so good, but just only the full layer is visible in my
starting view. If I zoom in - the default layers are missing and I get a
white background. I tried many combinations in the mapfile and in the
legend template but nothing helps!
 
My question: How can I declare a default layer so that it is ever
visible in my map?
 
 
LAYER
    NAME "Mecklenburg-Vorpommern"
    #GROUP "default"
    STATUS DEFAULT
    METADATA
          "wms_title" "Mecklenburg-Vorpommern"
          "wms_group_title" "Topographie"
          "wfs_title" "Mecklenburg-Vorpommern"
          "legendenposition" "19"
     END
    DATA "mvl_01_f"
    TYPE POLYGON
    UNITS METERS
    SIZEUNITS PIXELS
    MINSCALE 10000
    MAXSCALE 6000000
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    CLASS
      #NAME "Mecklenburg-Vorpommern"
      STYLE
        COLOR 255 255 204
      END
    END
 
 
Any suggestions?
 
 
Thanks Matthias
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20050203/c6180b44/attachment-0001.html


More information about the Maplab-users mailing list