[Geoserver-users] hide points names and/or description

Hey guys, i need to make the names of the points hidden on the map and they are shown only when i click on the point, the point is an icon ‘.png’ added in the ‘style’, icon of airport,shopping … i’ll appreciate ur help, thanks.


Stay up to date on your PC, the Web, and your mobile phone with Windows Live. See Now

Hi Georges,

So if I understand it correctly what you want is a standard label but you only want the label to show up when you click on a point on the map?

I am not sure it is possible with straight SLD. One think you could so is use openlayers. Basically you have a regular WMS map (no labels), and when the user clicks you do a WFS query, to get the point at the corresponding point. Then you can actually load that feature onto the client and label it using openlayers styling. Not trivial but doable.

Another approach would be to use popups, either with openlayers or with google maps/ earth. You can use a geoserver template to customize the template to show the name of the feature you click on. This is probably a much easier approach.

Hope that helps,

-Justin

Georges Aoun wrote:

Hey guys, i need to make the names of the points hidden on the map and they are shown only when i click on the point, the point is an icon '.png' added in the 'style', icon of airport,shopping ..... i'll appreciate ur help, thanks.
------------------------------------------------------------------------
Stay up to date on your PC, the Web, and your mobile phone with Windows Live. See Now <http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/&gt;

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

-------------------------------------------------------------------------
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
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Hi, just to add on Justin's comment, he's right there won't be a way to do what you expect without getting your hands dirty. It all lays down to how you want it to be, how dynamic, how ajax like, etc.
Off the top of my head, among the options Justin mentioned, I can just think of another single approach, which would involve sending a custom sld to geoserver when you clock on the map, containing a textsymbolizer inside a rule with a bbox filter. the _exact_ solution I should of think a bit more, but that'd be feasible and I already did something similar a couple years ago.

cheers,

Gabriel
Justin Deoliveira escribió:

Hi Georges,

So if I understand it correctly what you want is a standard label but you only want the label to show up when you click on a point on the map?

I am not sure it is possible with straight SLD. One think you could so is use openlayers. Basically you have a regular WMS map (no labels), and when the user clicks you do a WFS query, to get the point at the corresponding point. Then you can actually load that feature onto the client and label it using openlayers styling. Not trivial but doable.

Another approach would be to use popups, either with openlayers or with google maps/ earth. You can use a geoserver template to customize the template to show the name of the feature you click on. This is probably a much easier approach.

Hope that helps,

-Justin

Georges Aoun wrote:
  

Hey guys, i need to make the names of the points hidden on the map and they are shown only when i click on the point, the point is an icon '.png' added in the 'style', icon of airport,shopping ..... i'll appreciate ur help, thanks.
------------------------------------------------------------------------
Stay up to date on your PC, the Web, and your mobile phone with Windows Live. See Now <http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/&gt;

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

-------------------------------------------------------------------------
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