Hi folks,
I’m a little curious about how the html/kml parsing works in the title.ftl file used be geoserver and Google Earth. It seems in the description.ftl file you can use HTML formatting as you like, but when I add HTML styling to “title.ftl” , it doesn’t label the placemarks properly. Size and colour tags work, but the tags don’t get filtered out in the layer name for some reason.
The strings returned from “title.ftl” gets put in three places: the side “places” pane, at the top of the placemark balloon, and on the map itself.
Examples:
“${state_name.value}” returns:
Places: “Idaho”
Balloon: “Idaho”
Map: “Idaho”
“${state_name.value}” returns:
Places: “Idaho” (proper size)
Balloon: “Idaho” (proper size)
Map: “Idaho”
“${state_name.value}” returns:
Places: “Idaho” (proper size)
Balloon: “Idaho” (proper size)
Map: “Idaho”
End goal, I’m trying to style my layers such that the “Places” pane and the features in the map window both look slick and professional, and I don’t know what’s going on behind the scenes with freemarker and GE regarding the title.ftl file.
Any thoughts? Should this go to the Dev group?
Damian Bradley
Have you tried encasing everything in <![CDATA]> construct? I have
not checked if Geoserver outputs this by default, but it may be
required. Maybe give a try and see if it works.
On Mon, Aug 25, 2008 at 11:27 PM, <Damian_Bradley@anonymised.com> wrote:
Hi folks,
I'm a little curious about how the html/kml parsing works in the title.ftl
file used be geoserver and Google Earth. It seems in the description.ftl
file you can use HTML formatting as you like, but when I add HTML styling to
"title.ftl" , it doesn't label the placemarks properly. Size and colour
tags work, but the tags don't get filtered out in the layer name for some
reason.
The strings returned from "title.ftl" gets put in three places: the side
"places" pane, at the top of the placemark balloon, and on the map itself.
Examples:
"${state_name.value}" returns:
Places: "Idaho"
Balloon: "Idaho"
Map: "Idaho"
"<big>${state_name.value}</big>" returns:
Places: "Idaho" (proper size)
Balloon: "Idaho" (proper size)
Map: "<big>Idaho</big>"
"<body><big>${state_name.value}</big></body>" returns:
Places: "Idaho" (proper size)
Balloon: "Idaho" (proper size)
Map: "<body><big>Idaho</big></body>"
End goal, I'm trying to style my layers such that the "Places" pane and the
features in the map window both look slick and professional, and I don't
know what's going on behind the scenes with freemarker and GE regarding the
title.ftl file.
Any thoughts? Should this go to the Dev group?
Damian Bradley
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
GeoServer does include the CDDATA tag around the output... I am not sure but this may just be a Google Earth limitation...
Jason Pickering wrote:
Have you tried encasing everything in <![CDATA]> construct? I have
not checked if Geoserver outputs this by default, but it may be
required. Maybe give a try and see if it works.
On Mon, Aug 25, 2008 at 11:27 PM, <Damian_Bradley@anonymised.com> wrote:
Hi folks,
I'm a little curious about how the html/kml parsing works in the title.ftl
file used be geoserver and Google Earth. It seems in the description.ftl
file you can use HTML formatting as you like, but when I add HTML styling to
"title.ftl" , it doesn't label the placemarks properly. Size and colour
tags work, but the tags don't get filtered out in the layer name for some
reason.
The strings returned from "title.ftl" gets put in three places: the side
"places" pane, at the top of the placemark balloon, and on the map itself.
Examples:
"${state_name.value}" returns:
Places: "Idaho"
Balloon: "Idaho"
Map: "Idaho"
"<big>${state_name.value}</big>" returns:
Places: "Idaho" (proper size)
Balloon: "Idaho" (proper size)
Map: "<big>Idaho</big>"
"<body><big>${state_name.value}</big></body>" returns:
Places: "Idaho" (proper size)
Balloon: "Idaho" (proper size)
Map: "<body><big>Idaho</big></body>"
End goal, I'm trying to style my layers such that the "Places" pane and the
features in the map window both look slick and professional, and I don't
know what's going on behind the scenes with freemarker and GE regarding the
title.ftl file.
Any thoughts? Should this go to the Dev group?
Damian Bradley
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org