[OpenLayers-Users] Re: Increase usability when vectors are very close

JavierMR javiersdevmail at ymail.com
Wed Aug 10 03:28:41 EDT 2011


Hi,

no suggestions?, what i'm trying to is going from the image on the left to
the right one.
http://osgeo-org.1803224.n2.nabble.com/file/n6671347/map_current.jpg  --> 
http://osgeo-org.1803224.n2.nabble.com/file/n6671347/map_goal.jpg 

What i have done so far is to create my own Vector implementation wich has
as attributes (among others):

 - The 'real' point LonLat and the style
 - The 'draw' point x and y pixels displacement and the style
 - The 'lineLink' only calculated if the real point is diferent from the
draw point and it's style

And basicaly is all the same except for the methods to set the draw
displacements and the line and real point styles, and a modified 'show'
method; and in case a real point is not supplied it's just like a regular
vector.

Note that my current implementation does not support automatic overlap
avoidance.

So my questions are:
 - Is this the best way to approach my goal
 - Is there an strategy, control or something that allows automatic overlap
avoidance?
 - If there is no such thing, should be proposed in the dev list?

Best regards.
Javier Monge

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Increase-usability-when-vectors-are-very-close-tp6656100p6671347.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list