Hi

We are doing a project with pmapper, and we want to show a layer with
their images.
For this we use the hyperlink resource.

We put the following code in js_config:

PM.Query.queryTpl = {
[...]
    "iquery":
       {"queryHeader": "<div>",
        "queryFooter": "</div>",
        "layers":
            {"#default":
               {"layerHeader":"<table class=\"pm-iquery\"
cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><th colspan=\"2\"
class=\"pm-iquery-header\">${description}</th></tr>",
                "theaderTop": false,
                "theader": false,
                "theaderBottom": false,
                "tvaluesTop": false,
                "tvalues":
                    {"shplink": false,
                     /*"hyperlink": "<tr><th>@</th><td>$[3]</td></tr>",*/
                     "hyperlink": "<tr><th>@</th><td><img
src='my_images/$[3]'></td></tr>",
                     "#default": "<tr><th>@</th><td>$</td></tr>"
                    },
                "tvaluesBottom": false,
                "layerFooter":"</table>"
               }
            },                  
        "nozoomparams": true
       }
};


I would like to customize iquery hypelink template for an especific
layer, it's possible?

Thanks.

------------------------------------------------------------------------------

_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to