[GeoNode-users] Set size to the info popup in Geoexplorer

Annalisa Schiavon annalisa.schiavon at gmail.com
Mon Sep 26 01:23:37 PDT 2016


Thank you very much. Now I point to GeoExplorer-debug.js, I will look
for displayPopup
function ...
This affects all maps, right? I wonder if there is a way to modify the
getfeatureinfo in only some maps, those that have pictures ...

Yes, I already use freemarker templates, though only content.ftl works fine
and my tests with header.ftl files don't work ... I was thinking to add
some easy javascripts on header

Thanks
Annalisa

2016-09-23 21:37 GMT+02:00 Amedeo Fadini <amefad at gmail.com>:

> Here I am.
>
> 2016-09-23 16:01 GMT+02:00 Amedeo Fadini <amefad at gmail.com>:
> > I've done it....
> > You'll find a width property inside the big geoexplorer.js file... its
> > somewhere around line 82000.
>
> I'm using the packet version on ubuntu ppa, in my installation inside
> the file /static/geoexplorer/script/GeoExplorer.js I found the width
> value inside the displayPopup function
>
> Line 80079
>
> Maybe you already know how to use  freemarker templates[0]
> I use thtem to show only a list of specific attributes in
> getfeatureinfo response.
>
> Based on the standard getfeatureinfo templates [1] I assign a list of
> fields to display to a variable and print only the field that is
> needed. It's easy to insert link and show pictures inside the info
> popup
>
> something like this:
>
> <#assign campi=['id', 'nome', 'descrizione', 'foto_1', 'foto_2']>
>
> <#if !attribute.isGeometry>
>    <#if attribute.name?matches("foto_")>
>        <a href="/uploaded/img/"+${attribute.value}><img
> src="/thumbnails/"+${attribute.value}>
>       </a>
>    <#else>
>    ${campi?seq_contains(attribute.name)?string("<td>${
> attribute.value}"</td>,
> "")}
>     </#if>
> </#if>
>
> Enjoy!
>
> Amefad
>
> [0]  http://docs.geoserver.org/2.7.0/user/tutorials/freemarker.html
> [1] http://docs.geoserver.org/2.7.0/user/tutorials/
> GetFeatureInfo/index.html#tutorials-getfeatureinfo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160926/7cc349df/attachment.html>


More information about the geonode-users mailing list