exactly, i was interaction directly with the mapcontext, saw some results, but
couldn't do no pan.
idea is that from the entire mapcontext, i do some zoom-in on a small specific
area just like the zoom-in button from the toolbar does. i just have to specify
the coordinates of the position i want to make the zoom.
another way i thought i could do it was the use of a mappane:
mapPane = new JMapPane();
mapPane.setRenderer(new StreamingRenderer());
mapPane.setMapContext(map);
Envelope env = mapPane.getDisplayArea();
double width = env.getWidth();
double delta = width * 0.3 * 1;
env.expandBy(delta);
mapPane.setDisplayArea((org.opengis.geometry.Envelope) env);
mapPane.repaint();
maframe = new JMapFrame();
maframe.add(mapPane);
...
but it didn't work either. :(
> Date: Sun, 22 May 2011 21:17:46 +1000
> Subject: Re: [Geotools-gt2-users] need to perform zoomin actions
> From: [email protected]
> To: [email protected]
> CC: [email protected]
>
> Hello Robert,
>
> Please provide some more information with your question.
>
> I guess you are talking about a GUI problem but you need to confirm
> that and, if that's the case, tell us whether it involves the gt-swing
> or gt-swt module.
>
> From your code snippet it looks like you are interacting directly with
> a MapContext but I won't guess further until hearing back from you.
>
> Michael
>
>
> On 22 May 2011 21:06, robert benjamin shimirwa <[email protected]> wrote:
> > hello everyone, I'm trying to do some zoom actions on a map Layer on a
> > specific area, i tried first a referencedEnvelope, but didn't really work,
> >
> > ReferencedEnvelope envel = new ReferencedEnvelope( a,b,c,d, cs);
> > map.setAreaOfInterest(envel)
> > ...
> >
> > if anybody got something for me, I'll appreciate.
> >
> > ------------------------------------------------------------------------------
> > What Every C/C++ and Fortran developer Should Know!
> > Read this article and learn how Intel has extended the reach of its
> > next-generation tools to help Windows* and Linux* C/C++ and Fortran
> > developers boost performance applications - including clusters.
> > http://p.sf.net/sfu/intel-dev2devmay
> > _______________________________________________
> > Geotools-gt2-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> >
> >
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users