Gaston you have to be aware that the XY layers in p.mapper are no standard layer types of Mapserver but a definition inside p.mapper. So they might not support all the features of normal layers like labels. I checked the possibility to label the points in an easy way. In principal it should work with the call in line 905 in incphp/map.php
$xyPoint->draw($this->map, $mLayer, $img, $clIdx, ""); For a test i changed to $xyPoint->draw($this->map, $mLayer, $img, $clIdx, "pippo"); but the text "pippo" is not displayed. The PHP Mapscript docs say for function PointObj->draw(): "... The text string is used to annotate the point." I'm wondering how this text should be drawn if nothing is specified how the text should look like. You could ask on the Mapserver list about that. The point itself is drawn according to the class ($clIdx) defined in the draw() command. So the text could in principal be drawn like the LABEL definition for that class, but it is not. Maybe it's a bug in Mapscript, I don't know... The reason why XY layers exist in pm is that there was no other possibility some years ago. Now you can also use the OGR version of DATA definition. That layer definition is probably working as a 'normal' layer with all of its features. see http://mapserver.gis.umn.edu/docs/howto/ogrmysql and http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData -- The second part of your question (coordinates display) is easier: in javascript/zoombox.js/displayCoordinates() modify var rfactor = 0; to the number of decimals you want. armin Gaston Izaguirre wrote: > Armin, > > With your aid and a some test and error =), I'm doing some progress with > the implementation of my small application. Thank you very much. > > 1) Now I'm trying to label some XYLAYER points with data available in > the RESULT_FIELDS. > I want to use one result field (TEXTID) for the text label and other > result field (SENTIDO, in degrees, from 0 to 360) to give the angle to > the label. > In the XYLAYER of my mapfile I have defined: > > ..... > METADATA > ..... > "RESULT_FIELDS" "TEXTID,LATITUD,LONGITUD,SENTIDO,....." > "RESULT_HEADERS" "Etiqueta,Latitud,Longitud,Rumbo,....." > ..... > END # Metadata > ..... > LABELITEM "TEXTID" > # LABELITEM "Etiqueta" > LABELANGLEITEM "SENTIDO" > # LABELANGLEITEM "Rumbo" > LABELCACHE ON > POSTLABELCACHE TRUE > ..... > > I am making some error? Is possible to do what i want to do? > > > 2) Another question, I have my map in geographic coordinates (UNITS DD) > and the showCoords() function displays something like > X: -60 > Y: -60 > that is, only the integer part of the longitude (xcoord). Is there a way > to display lat/lon coordinates? In degrees or in decimal degrees? > > > Thank you in advance. > > Gaston. > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ pmapper-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pmapper-users
