[OpenMap Users] BufferedLayerMapBean

From: Tobias Gorgs <tobias.gorgs@t-online.de>
Date: Mon Aug 22 2005 - 12:35:18 EDT

Hi,

I have a problem with the BufferedLayerMapBean I can`t solve on my own. Perhaps anyone of you can help me.

I have written a kind of moving map application with a SimpleBeanLayer and a SimpleBeanObject. Further there are two layers (DTED, RPF). Every three seconds the map is repainted with a other center point. First I had a MapBean, now a BufferedLayerMapBean - but there is no difference in the performance of the two. The layers are painted slow and not together. Here are parts of my code, have I forgotten something or doing something wrong, and how do I have to use the LayerEvent/setLayers()-method?

...
BufferedLayerMapBean mapBean = new BufferedLayerMapBean();
MapHandler mapHandler = new MapHandler();
LayerHandler layerHandler = new LayerHandler();
MouseDelegator mouseDelegator = new MouseDelegator();
SelectMouseMode selectMM = new SelectMouseMode();

...

BufferedLayer bufferedLayer = mapBean.getBufferedLayer();
bl.addLayer(dtedLayer);
bl.addLayer(rpfLayer);
Layer[] layers = {dtedLayer, rpfLayer};
mapBean.setLayers(new LayerEvent(rpfLayer, LayerEvent.ALL, layers);
mapBean.setBufferedLayer(bl);

mapHandler.add(mapBean);
mapHandler.add(layerHandler);
mapHandler.add(mouseDelegator);
mapHandler.add(selectMM);
mapHandler.add(rpfLayer);
mapHandler.add(dtedLayer);
mapHandler.add(bufferedLayer);
...

Thanks for your time.

Tobi

--
[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 Aug 22 13:54:31 2005

This archive was generated by hypermail 2.1.8 : Mon Aug 22 2005 - 13:54:32 EDT