Re: [OpenMap Users] overviewMapHandler not drawing status layer

From: Don Dietrick <dietrick_at_bbn.com>
Date: Thu, 11 Oct 2007 09:07:29 -0400

Hi Tim,

The status layer should implement OverviewMapStatusListener, or it
won't received updates about the source map's projection.

I'm not sure why the scaleFactor and minScale wouldn't be working,
but they would only really take effect after a new source map
projection.

- Don

On Oct 5, 2007, at 10:18 AM, Tim Schreiner wrote:

> Don,
>
> In my example, which layer should be implementing
> OverviewMapStatusListener
> ?
>
> Also, I notice I can not control the scale of the map drawn in the
> overviewMap. I tried using the setScaleFactor and setMinScale
> methods, but
> these seem to have no effect on the overviewMap.
>
>
> Tim
>
>
> -----Original Message-----
> From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-
> users_at_bbn.com] On
> Behalf Of Don Dietrick
> Sent: Thursday, October 04, 2007 1:16 PM
> To: Tim Schreiner
> Cc: openmap-users_at_bbn.com
> Subject: Re: [OpenMap Users] overviewMapHandler not drawing status
> layer
>
> 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"]
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 11 2007 - 09:07:42 EDT

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