[mapserver-users] drawing layer with user names from mysql table
Stephen Woodbridge
woodbri at swoodbridge.com
Wed Mar 20 06:29:05 PST 2002
Jan,
try doing this:
$map
=ms_newMapObj("c:/Apache/htdocs/pn_71/html/modules/map/data/europe.map");
printf("Map name=%s, num lay=%d<br>\n", $map->name, $map->numlayers);
for ($i=0; $i<$map->numlayers; $i++) {
$myLayer = $map->getLayer($i);
printf("Layer num=%d, name=%s <br>\n", $i, $myLayer->name);
}
see what you get, print out some other stuff ...
-Steve
Jan Mantkowski wrote:
>
> Steve,
>
> ist a layer of the europe.map:
>
> NAME FIRSTMAP
> SIZE 400 400
> STATUS ON
> EXTENT -5696501 1923039 5696501 11022882
> UNITS METERS
> SHAPEPATH "data"
>
> WEB
> IMAGEPATH "c:\Apache\htdocs\tmp\"
> IMAGEURL "/tmp/"
> END
>
> LAYER
> NAME world
> TYPE POLYGON
> STATUS ON
> DATA europa
> CLASS
> TEMPLATE void
> COLOR 110 50 100
> OUTLINECOLOR 200 200 200
> #END
> END
> TOLERANCE 10
> END
> LAYER
> NAME "Nations"
> DATA europa
> STATUS ON
> TYPE ANNOTATION
> CLASS
> COLOR -1 -1 -1 # no marker will be drawn
> LABEL
> SIZE MEDIUM
> COLOR 132 31 31
> OUTLINECOLOR 255 255 255
> BUFFER 4
> END
> END
> END
> END
>
> LAYER
> NAME "PNUsers"
> DATA users
> STATUS ON
> TYPE ANNOTATION
> LABELITEM "text"
> CLASS
> COLOR -1 -1 -1 # no marker will be drawn
> LABEL
> SIZE MEDIUM
> COLOR 132 31 31
> OUTLINECOLOR 255 255 255
> BUFFER 4
> END
> END
> END
>
> END
>
> -----Original Message-----
> From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com]
> Sent: Wednesday, March 20, 2002 2:06 PM
> To: Jan Mantkowski
> Subject: Re: [mapserver-users] drawing layer with user names from mysql
> table
>
> What is PNUsers and how is it defined?
More information about the MapServer-users
mailing list