Re: [OpenMap Users] overviewMapHandler not drawing status layer

From: Don Dietrick <dietrick_at_bbn.com>
Date: Thu, 4 Oct 2007 13:15:58 -0400

Hi Tim,

Does your layer implement OverviewMapStatusListener?

- Don

On Oct 4, 2007, at 12:25 PM, Tim Schreiner wrote:

> 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"]

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



--
[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 - 13:16:23 EDT

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