Re: [OpenMap Users] showing layers in a scale range

From: Don Dietrick <>
Date: Tue, 13 Sep 2005 11:57:11 -0400

Hi Tom,

The next version of OpenMap will let you set minScale and maxScale
properties on layers to control when they are displayed.

The easiest thing to do is to ask the layer for the projection and
check the scale, and not have anything painted when the layer.paint()
method is called. Setting OMGraphic visibility would result in work
the CPU doesn't really need to do, as opposed to just not reacting at

- Don

On Aug 25, 2005, at 11:48 AM, Lepkowski, Thomas M., CTR, OSD-PA&E wrote:

> Classification: UNCLASSIFIED
> Hello,
> We'd like to show a layer only if the map has been zoomed-in to a
> set scale. Has anybody had experience making this happen? I
> suppose the Layer class needs to capture a projection change event,
> then set visible all the OMGraphics in the visible map (or entire
> layer-could be ugly).
> Thanks for any thoughts on this.
> -Tom

Don Dietrick,
BBN Technologies, Cambridge, MA

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Sep 13 2005 - 11:57:57 EDT

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