[mapserver-users] Displaying multiple labels with the same lat/long

Ian Walberg ian.walberg at airborne.aero
Tue Nov 13 06:18:02 PST 2012


Steve,

I thought with a layer type of point or annotation with label mode as
auto that if there were 2 points with same lat/long only 1 would be
displayed.

Thanks

Ian

-----Original Message-----
From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] 
Sent: Tuesday, November 13, 2012 6:15 AM
To: Ian Walberg; List (MapServer Users)
Subject: RE: Displaying multiple labels with the same lat/long

Not sure about clustering, but there may be other options as well:

You might be able to simply use POSITION AUTO and give these labels a
high priority. MapServer will place them. If you need markers in this
case you'll need to draw those separately to avoid marker collisions.
So, one layer for points and the other for high-priority labels.
  
Version 6.2 supports multiple labels per feature. If you can
de-normalize your data so you have 1 point plus multiple columns of
companies (e.g. company1, company2, etc...) then you can use this
approach. There's also leader support when things get really tight.

Steve


________________________________________
From: mapserver-users-bounces at lists.osgeo.org
[mapserver-users-bounces at lists.osgeo.org] on behalf of Ian Walberg
[ian.walberg at airborne.aero]
Sent: Monday, November 12, 2012 12:11 PM
To: List (MapServer Users)
Subject: [mapserver-users] Displaying multiple labels with the same
lat/long

Folks,

We have some data we need to display which has a number of companies in
the same city so the same lat/long.

So in these cases only one of the labels is displayed.

Can this be done using the cluster functionality and where do we find an
easy example?

Thanks

Ian
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list