Hey-

Lance Dyas wrote:
> Double clicking to end a polygon when drawing it while easy .. is not 
> totally obvious ... if I could give a title to the elements as they are 
> being drawn  so that users who pause wondering what to do next could get 
> a message that might solve the issue in a very clean fashion... anyone 
> have a clue how to do this?

We don't currently provide a "tooltip" ui component.  There are plenty 
of ui libs that do.  We occasionally rely on default browser behavior 
with regard to the title attribute of element nodes (which sometimes 
results in the display of a "tooltip").

I just confirmed that in Firefox, if you set the title on a path or 
circle element and get a tooltip when you hover over it.  Don't think 
this would do the trick for informing the user to double-click to end 
drawing, as they probably aren't stopping long enough to get the 
tooltip.  In any case, you'll have to do something custom at this point.

> 
> I also want to customize the nodes (really just draw smaller squares 
> instead of circles for the nodes)

See http://openlayers.org/dev/examples/measure.html

You can use any well-known name for a point (where well-known is 
determined by the SLD spec).

Note that setting the style for a sketch handler is harder than it 
should be - we should be using the temporary rendering intent of the 
target layer's style map (see http://trac.openlayers.org/ticket/1634). 
In the case of the measure control, there is no target layer - so you'd 
still need to set the style as shown in the above example.

You'll have to adapt the code for your use case.

> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users


-- 
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to