RE: [OpenMap Users] parametric zoom

From: Lepkowski, Thomas M., CTR, OSD-PA&E <Thomas.Lepkowski.ctr_at_osd.mil>
Date: Thu, 3 Nov 2005 14:07:37 -0500

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.

-Tom


-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com]On
Behalf Of Luigi Trevisant
Sent: Thursday, November 03, 2005 1:54 PM
To: 'openmap-users_at_bbn.com'
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 "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Nov 03 2005 - 14:09:26 EST

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