[OpenMap Users] BufferedLayerMapBean

From: Tobias Gorgs <tobias.gorgs_at_t-online.de>
Date: Mon, 22 Aug 2005 18:35:18 +0200

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_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Aug 22 2005 - 13:53:12 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT