[OpenMap Users] Auto-zooming map to RpfLayer

From: Zacker, Jeremy <Jeremy.Zacker@ngc.com>
Date: Thu Sep 02 2004 - 14:40:15 EDT

RpfLayer is just one of those things that make me scratch me head.

I have a GUI that allows the user to select an A.TOC from their file system. Once they choose it, I construct an RpfLayer. I am trying to get my MapBean to recenter on the center of the RPF data and zoom to the widest scale which will display the RpfLayer. I used the RpfFrameProvider to calculate the upper left and lower right corners of the map by calling getCatalogCoverage with the whole world as my coverage area. But even when I recenter my map, and rescale it to an appropriate scale to cover the upper left and lower right corners of the RpfLayer, it still won't display the RPF data unless I zoom in (twice).

So how can I determine the scale at which the RpfLayer will display its graphics?

--------------------------------
Jeremy Zacker
Northrop Grumman
(732) 530-5063
jeremy.zacker@ngc.com

--
[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 Thu Sep 2 14:41:06 2004

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:39 EDT