Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Does anyone know of a javascript library containing functions that would allow me to generate labels for points on the map so that the labels don't overlap one another, and have optional leader lines connecting the label to the point?

I'm using Esri's javascript API, but would also be interested in finding a generic conflict detection/resolution algorithm that I could adapt.

share|improve this question
1  
Not so Maplex but have you seen the Geometry Service - Label in Polygon example? help.arcgis.com/en/webapi/javascript/arcgis/demos/util/… or looking for more control on your labels? –  Mapperz Jul 16 '12 at 20:14
    
@Mapperz Thanks for the response. Hadn't seen that sample. There's no mention of polygon labeling in the requirements doc, only points. Think of a mapservice with a point layer in it representing cities. Would like to label them on the client using a Name attribute. –  Kirk Kuykendall Jul 16 '12 at 22:59

1 Answer 1

Not exactly what you want but I've used this and it works well:

https://github.com/jawj/OverlappingMarkerSpiderfier

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.