Hello,
I have some code that creates an overviewMap window in my OpenMap
application and uses an overviewMapHandler to do this. The overview map gets
populated with the layers I give it, and is displayed nicely in my
application, but the status layer I created is not being drawn. Is there
something I'm missing in the following code, that enables me to see the
current viewing rectangle in the overviewMap ?
Properties overviewLayerProps = new Properties();
overviewLayerProps.put("prettyName", "CrrelView OverView");
overviewLayerProps.put("lineColor", "ff000000");
overviewLayerProps.put("fillColor", "ffbdde83");
overviewLayerProps.put("shapeFile",
"./shape/dcwpo-browse.shp");
overviewLayerProps.put("spatialIndex",
"./shape/dcwpo-browse.ssx");
ShapeLayer overviewLayer= new ShapeLayer();
overviewLayer.setVisible(true);
overviewLayer.setProperties(overviewLayerProps);
OverviewMapHandler overviewMapHandler = new OverviewMapHandler();
overviewMapHandler.setScaleFactor(10);
overviewMapHandler.setMinScale(10000000);
Layer[] overviewLayers = {overviewLayer};
overviewMapHandler.setLayers(overviewLayers);
overviewMapHandler.setStatusLayer(
new com.bbn.openmap.layer.OverviewMapAreaLayer());
// myAppPanel is a JPanel in my application
myAppPanel.add(overviewMapHandler);
Tim
--
[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 Thu Oct 04 2007 - 12:27:35 EDT