Gaston

it's not possible for the moment. A first problem is the definition of 
more complex constellations in a simple string in the map file. One 
could of course move everything out of the map file, but that means 
another configuration file etc. All config directly related to the layer 
data and their display I find better suited within the map file. This 
problem could be overcome using e.g. JSON syntax for the definition and 
I'm thinking about this for some parts.

More complicated is to put the logic inside the query result output 
(query.php, etc.). Currently every field is treated separately. To 
define that a field shall together with another one become a link will 
require more substantial changes for this kind of logic. This is not to 
be expected very soon.

If your data is in a database, why don't you concatenate the 2 fields 
you want, either in the SELECT statement of your layer definition or 
using a database view? Then you get both values and split them up later 
on with the Javascript function.

Armin

Gaston Izaguirre wrote:
> Hi all,
> 
> Is there any possibility to use two RESULT_HYPERLINK fields to "construct" 
> only one URL to be open as an hypelink from an infoWindow?
> 
> E.g. defining something like:
>     METADATA
>       ...
>       "RESULT_FIELDS"      "textid,id,vid,latitude,longitude,vel,sent,fecha"
>       "RESULT_HEADERS" 
> "Etiqueta,ID,Unidad,Latitud,Longitud,Velocidad,Rumbo,Fecha/Hora"
>       "RESULT_HYPERLINK"   "latitude,longitude" ???
>       ...
>     END
> 
> in the metadata section of an VRT OGR layer, to get an URL with both 
> "latitude" and "longitude" fields values in it.
> 
> My intention is to create (in custom.js?) a link to open a google maps 
> window with the map centered in this "latitude" and "longitude" values:
>     http://maps.google.com/maps?z=18&ll='latitude,longitude'
> 
> Somebody has made something similar?
> 
> Is there one more straightforward way to achieve this?
> 
> Some suggestion?
> 
> Thanks in advance for any help.
> 
> Regards,
> Gaston.
> 
> 
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to