Re: [OpenMap Users] How to add demo layer sperately, etc

From: Don Dietrick <dietrick@bbn.com>
Date: Mon May 10 2004 - 14:20:15 EDT

On May 9, 2004, at 3:49 AM, zhj45321@mail.sc.cninfo.net wrote:

> Hi Don
>
> Thanks for your kindly help, it helps a lot. I've got some questions
> about demo layer, etc, and hope you could give an answer. They're
>
> 1. How to add demo layer sperately? We've add OMDrawingTool and
> OMDrawingToolLauncher to MapHandler object, and also
> add OMDrawingToolMouseMode to MapHandler object.

Add a LayerHandler and DemoLayer to the MapHandler.

> 2. How does the demo layer intercept the double_click mouse event?

The DemoLayer, by extending the OMGraphicHandlerLayer, implements the
GestureResponsePolicy interface. The layer contains a
MapMouseInterpreter that collects the mouse events and determines how
those affect the OMGraphics in the layer. There is more information on
this in the Dev Guide:

http://openmap.bbn.com/doc/OpenMapDevGuide.pdf

>
> 3. We are using shape layers to load GIS data. Is there any way to
> specify the initial color of a graphic element(eg., a country of a
> world map) and store it, so when open the map next time, the map show
> the countries' color
> as specified before.

You can change the settings for any layer in the openmap.properties
file if you are using the OpenMap application. Maybe I'm not really
understanding your question in terms of the chain of events...

- 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 Mon May 10 14:24:15 2004

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT