If the "projects list" was in postgis as an attribute field
of your features, and if geoserver WMS is styled using that
field, you can do this with Javascript (and CQL) at the web
page level, as we do in
http://driftwatch.agriculture.purdue.edu  where all crops
are in one feature table (each field is a row) and you turn
on and off all fields of specific crops (analogous to your
"projects" I think)using javascript. 
In our case the pushpins and polygons are styled by
geoserver using rules in a style:
-style fragment - 
<Rule>   <!-- Rule 2: pushpins for crop type: Tomatoes -->
        <ogc:Filter>
          <ogc:PropertyIsEqualTo>
            <ogc:PropertyName>crop</ogc:PropertyName>
            <ogc:Literal>Tomatoes</ogc:Literal>
          </ogc:PropertyIsEqualTo>
        </ogc:Filter>        
        
        <!-- pushpins -->
        <PointSymbolizer>
              <Graphic>
                <ExternalGraphic>
                  <OnlineResource xlink:type="simple"
xlink:href="http://driftwatch.agriculture.purdue.edu/Images/
red_MarkerT.png"/>
                  <Format>image/png</Format>
                </ExternalGraphic>
                <Size><ogc:Literal>30</ogc:Literal></Size>
              </Graphic>
            </PointSymbolizer>
        <!-- end of pushpins -->  
- Larry


-----Original Message-----
From: Asle Benoni [mailto:[email protected]] 
Sent: Monday, April 30, 2012 8:35 AM
To: [email protected]
Subject: [Geoserver-users] Filtering what markers are shown
on layer depending on search params

Hi,
I am not sure if this is a GeoServer task. I have an
OpenLayers/Mapfish site using GeoServer 2.1.3 and I want to
have a search box where I search for i.ex. a project name.
When I get the list of projects I click on the projects and
the map only shows the markers from that project. Where do I
start to look for clues here? I see that you can make a
layer from SQL but how can I make a dynamic layer with I
guess dynamic SQL?
Thanks for any help!
~asle

------------------------------------------------------------
------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's
security and threat landscape has changed and how IT
managers can respond. Discussions will include endpoint
security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to