RE: [OpenMap Users] parametric zoom

From: Lepkowski, Thomas M., CTR, OSD-PA&E <>
Date: Thu, 3 Nov 2005 14:56:32 -0500

Classification: UNCLASSIFIED
D'Oh! should be

m.setScale( newScale );


-----Original Message-----
From: []On
Behalf Of Lepkowski, Thomas M., CTR, OSD-PA&E
Sent: Thursday, November 03, 2005 2:08 PM
To: ''
Subject: RE: [OpenMap Users] parametric zoom

Classification: UNCLASSIFIED

Hello Luigi,

Don might give you some good advise, but here are my two cents.

To zoom, you set a scale using the mapBean object. It would go something
like this:

MapBean m = mapPanel().getMapBean();
float scale = m.getScale();
float change = m.getScale() / 10; // take a small bit of the scale
float newScale = scale+change;

m.setScale( scale ); // does the zoom on the map.

to make it parametric, make your favorite class listen for changes you like.
Your listener's method should be fired by a class that contains your
parameters of interest. When fired, your listener's method should grab the
MapBean and do the scale change (zoom). You need to understand how to make
a class "listen" to another class. This is a separate Java issue.

I hope this bit helps.


-----Original Message-----
From: [
<> ]On
Behalf Of Luigi Trevisant
Sent: Thursday, November 03, 2005 1:54 PM
To: ''
Subject: Re: [OpenMap Users] parametric zoom

Yes, this could be a good explanation

Lepkowski, Thomas M., CTR, OSD-PA&E ha scritto:

> Classification: UNCLASSIFIED
> That's great! Err, what's a parametric zoom? Are you talking about a
> zoom that happens automagically, based on certain parameters?
> Thanks for clarifying.
> -Tom

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Nov 03 2005 - 14:57:07 EST

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