pointObj point.draw(..)
Jose Luis Gonzalez
joseluismapserver at YAHOO.ES
Wed Feb 2 06:37:21 PST 2005
Hello to everybody
I have finally solved how to draw a point on my map.
But I have an other doubt: in the definition of the draw method of the pointObj you have a text parameter. I thought that that would be writen next to the point, but it doesn't. Is that normal?Is it just a reference to name the point in some way?
this is my program:
mapObj map = new mapObj("mymap.map");
imageObj img=map.draw();
layerObj point_layer=new layerObj(map);
point_layer=map.getLayerByName("Point");
pointObj pt=new pointObj(3460000,5540000,0,0);
pt.draw(map,point_layer,img,0,"point1");
And part of my .map file:
LAYER
NAME "Point"
TYPE POINT
STATUS DEFAULT
CLASS
STYLE
COLOR 255 0 0
END
END
END
If I want to draw a text next to the point, what do I have to use, a labelObj?
Thank you
Jose Luis
---------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050202/2ec11d14/attachment.htm>
More information about the MapServer-users
mailing list