If you add a label (could be using a wingdings font or blank text with a
shield) then GeoServer will adjust label positions a bit if they are too
close together.  This approach isn't great because if the labels are too
dense GeoServer doesn't mind omitting them from the map entirely, and
GeoServer forgets where the labels went after it finishes rendering, so you
might get icons that don't have any features show up in the getfeatureinfo
popup that way.

If your data is small, you might want to investigate client-side clustering
with openlayers.  If that doesn't perform well, you could consider
generating a pre-clustered layer on the server side (it would take some SQL
skills to generate; I don't have an example handy.)

http://openlayers.org/dev/examples/strategy-cluster-threshold.html

--
David Winslow
OpenGeo - http://opengeo.org/

On Thu, Sep 15, 2011 at 8:24 AM, Tito, Joseph <[email protected]>wrote:

> When there are multiple points at the same location, is there a way to
> do one of the following:
>
>        - Slightly move one of the points so that you know there's 2
> points there instead of one
>
>        - Label the point to indicate there are multiple points at a
> certain location
>
>        - Style the icon differently based on what points are there?
> Currently my app has a 'type' attribute for each location. If type 1
> shows as a red point, and type
>          2 shows as a blue point. Is there a way to dynamically create
> a point that's half red half blue?
>
> -----Original Message-----
> From: Rahkonen Jukka [mailto:[email protected]]
> Sent: Wednesday, September 14, 2011 1:04 PM
> To: Tito, Joseph; [email protected]
> Subject: Re: Multiple points at same location
>
> Hi,
>
> Add  &FEATURE_COUNT=100 into your GetFeatureInfo request. Parameter is
> optional and if is not given WMS server must use the default value of 1.
> Using feature_count is perfect also if data contain overlapping
> polygons.
>
> -Jukka Rahkonen-
>
> Tito, Joseph wrote:
>
>
> > I'm running into an issue with GeoServer when I have multiple points
> that are at the same location.
>
> > I plotted 2 points at the exact same Lon/Lat. When a user clicks on a
> feature, I do a getFeatureInfo request, but GeoServer is only returning
> information on 1 of the 2 features at that location.
>
> > Is there any way to tell GeoServer to get information on multiple
> points that are at the same location?
>
> Joe Tito
> Cyber Security Operation
> SPARTA National Security Business Unit
> [email protected]
> Tel: 443.430.8054
>
>
>
> ------------------------------------------------------------------------------
> Doing More with Less: The Next Generation Virtual Desktop
> What are the key obstacles that have prevented many mid-market businesses
> from deploying virtual desktops?   How do next-generation virtual desktops
> provide companies an easier-to-deploy, easier-to-manage and more affordable
> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to