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.



----- Original Message ----- 
From: "Armin Burger" <[EMAIL PROTECTED]>
To: "Gaston Izaguirre" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Thursday, January 25, 2007 5:38 AM
Subject: Re: [pmapper-users] need some help using XYLAYER_PROPERTIES


>
>> Between my needs they are:
>>
>> - With the XYLAYER_PROPERTIES I can get the data coordinates (in my case
>> GPS
>> very Dynamic data) for a layer from a datbase, bu I need to display more
>> data than the coordinates, other attributes from the table/view from 
>> which
>> are taken these coordinates. At the moment, the application draws an icon
>> for each point retrieved from the DB. Specifically, I want to show for
>> each
>> point it's velocity, direction, ID, etc., when I click the mouse over one
>> of
>> these icons.
>> Is there some idea of how facing this? can I continue using
>> XYLAYER_PROPERTIES or Must I change the way I retrieve the data?
>>
>
> does it not work with the settings for
> METADATA
>  "RESULT_FIELDS" "col1, col2,..."
> ?
>
> In principal XY layers should work as well with the auto-identify 
> function.
>
> In pm 3.1 you can set the debug level in the config.ini to 3 and you 
> should get the SQL command used for the query, written to the dir of the 
> PHP error log and with a name like pm_debug.log. This way you could check 
> where errors could be. XY layers are not so heavily tested by me since I 
> don't use them very much.
>
>
>> - This is not related to the problem with the database: how to auto 
>> refesh
>> the map area without a button press?, for example with a timer, one time
>> every minute. It's possible to do this with the pmapper autorefresh?
>>
>
> you can use the function reloadMap(false) and execute it every 60 seconds. 
> You need a nested loop of a timeout command, like
>
> function runPeriodically() {
>    window.setTimeout('runPeriodically()', 60000 );
>    reloadMap(false);
> }
>
> or something similar and run this with the body onload (or just put it in 
> pm_init()).
>
> or have a look at the jQuery plugin at 
> http://www.jasons-toolbox.com/JHeartbeat/
>
>> Any contribution will be welcome.
>> Thank you in advance,
>> specially thanks to Armin for his clarifying answers,
>> Gaston.
>>
>>
>
> -- 
> "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
> Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail
> 


-------------------------------------------------------------------------
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

Reply via email to