Legend problem
Dave Stone
D.Stone at ED.AC.UK
Mon May 1 06:14:26 PDT 2006
Indeed it does -- map file snippet below illustrates:
LAYER # query layer using the dedloc PostgreSQL view
CONNECTIONTYPE postgis
NAME saint_dedications
CONNECTION "user=erdb13 dbname=stdraft"
# Original DATA statement below doesn't work; gives blank query template
# DATA "geom from dedloc using unique dr using SRID=27700"
DATA "geom from dedloc using srid=27700"
STATUS OFF
DEBUG ON
TYPE POINT
FILTERITEM dedicationtype
FILTER "dedicationtype='%dtype%'"
TOLERANCE 25
HEADER "result_hdr.html"
FOOTER "result_ftr.html"
CLASS
NAME "Dedications"
MINSCALE 2000000
TEMPLATE "result.html"
DEBUG ON
The funny thing is, the 'Dedications' legend entry used to appear when
the layer's mode was DEFAULT (in the map file) -- but only when the
layer was NOT selected on the calling template.
Dave
Fawcett, David wrote:
> Dave,
>
> Does the class in your 'dot' layer have a name?
>
> If you don't specify a name for the class, it won't show up in the
> legend.
>
> David.
>
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
> Behalf Of DjwStone
> Sent: Monday, May 01, 2006 4:54 AM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] Legend problem
>
>
> I've noticed the legend on my inline map is behaving oddly.
>
> If I call up MapServer with 2 layers (boundaries + annotation) I get the
> legend for their classes, as expected.
>
> If I select a third layer which puts dots on the map generated from a
> PostGIS table (as well as the original 2), the dot layer legend doesn't
> appear.
>
> Any ideas what might be going on?
>
> The boundary (polygon) layer has STATUS ON in the map file, the
> annotation and 'dot' layers have STATUS OFF.
>
> Dave
> --
> View this message in context:
> http://www.nabble.com/Legend-problem-t1535639.html#a4172218
> Sent from the Mapserver - User forum at Nabble.com.
>
More information about the MapServer-users
mailing list