Hi Yulei,
On May 10, 2004, at 9:48 PM, zhj45321@mail.sc.cninfo.net wrote:
> Hi Don,
>
> Thanks for your time to answer my questions. Here I describe my
> questions more clearly and hope you can give me some further help:
>
> 1. Why the seperatedly added demo layer does not response to mouse
> double-click on OMGraphic object, and the object is not draggable?
> I've added a LayerHandler and DemoLayer to the MapHandler. And for the
> demo layer to receive mouse events, I've add add OMDrawingTool,
> OMDrawingToolLauncher, and also OMDrawingToolMouseMode specifically to
> the MapHandler, and I've set the mouse mode to OMDrawingToolMouseMode
> .
You also need to add a MouseDelegator and a SelectMouseMode to the
MapHandler to process the initial events of the MapBean. That's what
triggers the layer to call on the drawing tool.
> 2.By setting the layer's DrawingAttributes, we can set the overall
> filling color of ALL regions on a layer. Is it possible to set the
> color for a part of regions of a layer? And how to store the region
> color settings so that I can reload the map with my required region
> color?
You can use the com.bbn.openmap.layer.shape.areas.AreaShapeLayer to
render certain areas differently than the rest. Instructions for this
layer are in the JavaDocs.
- Don
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Tue May 11 15:35:13 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT