[Geoserver-devel] Decorating animations

Hi,
we’d like to extend the animator to have the indication of the param values associated with that
frame as a label in a corner of the animation.

I was thinking about it and it seems to me the easiest, most natural way could be to leverage
map decorations, adding a new type of templatable decoration that uses the “env” filter
function as the source of values to be expanded.

This new “MessageDecoration” would be configurable using font family, size, bold/italic,
halo radius and halo color, and the message could be either fixed, or a CQL expression
just like in the “dynamic symbolizers”, that is something like:

This is year ${env(“time”)}

where whatever is in ${…} is interpreted as a CQL expression.

Another option could be that the message is interpreted as a Freemarker template that is
then fed the env variables as the evaluation context.

Hum… I guess I like the second better, what do you say?

The animator would then stick into the env function the current param value.
Text wise, nothing fancy, I don’t think I’m going to add wrapping and the like for example.

Opinions?

Cheers
Andrea

Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf


Not by domain but it sounds pretty reasonable to me. Not sure which option I like better… I think the first maybe… seems more direct. If the second is used how will the template lookup occur? Same directory that the current template file is located in? Regardless though +1 on the idea.

On Mon, Oct 24, 2011 at 7:42 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi,
we’d like to extend the animator to have the indication of the param values associated with that
frame as a label in a corner of the animation.

I was thinking about it and it seems to me the easiest, most natural way could be to leverage
map decorations, adding a new type of templatable decoration that uses the “env” filter
function as the source of values to be expanded.

This new “MessageDecoration” would be configurable using font family, size, bold/italic,
halo radius and halo color, and the message could be either fixed, or a CQL expression
just like in the “dynamic symbolizers”, that is something like:

This is year ${env(“time”)}

where whatever is in ${…} is interpreted as a CQL expression.

Another option could be that the message is interpreted as a Freemarker template that is
then fed the env variables as the evaluation context.

Hum… I guess I like the second better, what do you say?

The animator would then stick into the env function the current param value.
Text wise, nothing fancy, I don’t think I’m going to add wrapping and the like for example.

Opinions?

Cheers
Andrea

Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf



The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@anonymised.com Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

On Wed, Oct 26, 2011 at 7:50 AM, Justin Deoliveira <jdeolive@anonymised.com.1501…> wrote:

Not by domain but it sounds pretty reasonable to me. Not sure which option I like better… I think the first maybe… seems more direct. If the second is used how will the template lookup occur? Same directory that the current template file is located in? Regardless though +1 on the idea.

Ah, I was thinking of putting the template right inside the decorator configuraton, as a cdata section (it’s going to be very small anyways)

Cheers
Andrea

Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf