[Mapserver-users] annotation not show on map

Dan Liu dan.liu at mnplan.state.mn.us
Wed Apr 9 09:04:22 PDT 2003


Hi all,
DOes anybody know why I can see this layer on the map?I have other layers like polygon and line,they both work.But not this annotation layer.What is wrong?

  $Layer = ms_newLayerObj($map);
  $Layer -> set("name","lakeLabel");
  $Layer -> set("status", MS_ON);
  $Layer -> set("type", MS_LAYER_ANNOTATION);
  $Layer -> set("data","lakespy2");
  $Layer -> set("classitem", "LAKE_NAME");
  $Layer -> set("labelitem", "LAKE_NAME");
  $otherClass = ms_newClassObj($Layer);
  $otherClass -> set("size", MS_GIANT);
  $otherClass -> set("color",$Color);

Thanks.
Dan

Dan Liu
MN Land Management Information Center
658 Cedar Street
Saint Paul, MN 55155
(651) 483-2324 [phone]
(651) 296-1212 [fax]
dan.liu at state.mn.us

On April 23 the Land Management Information Center will be transferred from Minnesota Planning to the Minnesota Department of Administration.  LMIC will continue to be located in our current location and offer the same quality GIS services that our clients have learned to expect.





More information about the MapServer-users mailing list