[OpenLayers-Users] Changing Map bounds Dynamically

tino.desjardins at arcor.de tino.desjardins at arcor.de
Wed Jul 21 07:42:53 EDT 2010


"mzp" is a typing error and means the map-object. You have to call "map.zoomToExtent(new OpenLayers.Bounds(left, bottom, right, top));"

Regards 

Tino


----- Original Nachricht ----
Von:     Kalyan Kamepalli <kalyan.kamepalli at gmail.com>
An:      tino.desjardins at arcor.de
Datum:   21.07.2010 13:32
Betreff: Re: Re: [OpenLayers-Users] Changing Map bounds Dynamically

> So, should my call be like
> 
> OpenLayers.map.mzp.zoomToExtent(new OpenLayers.Bounds(left, bottom, right,
> top));
> 
> 
> 
> On Wed, Jul 21, 2010 at 6:38 PM, <tino.desjardins at arcor.de> wrote:
> 
> > Hello Kalyan,
> >
> > this is an object/instance from the map-class "OpenLayers.Map".
> >
> > Regards
> >
> > Tino
> >
> >
> > ----- Original Nachricht ----
> > Von:     Kalyan Kamepalli <kalyan.kamepalli at gmail.com>
> > An:      christopher.schmidt at nokia.com
> > Datum:   21.07.2010 10:29
> > Betreff: Re: [OpenLayers-Users] Changing Map bounds Dynamically
> >
> > > I am sorry, I am new to OpenLayers and a beginner in Java Script.
> > >
> > > What is mzp here ??  Is it a class like OpenLayers or a function in
> > > OpenLayers ?
> > >
> > >
> > > On Wed, Jul 21, 2010 at 4:44 PM, <christopher.schmidt at nokia.com> wrote:
> > >
> > > >
> > > > On Jul 21, 2010, at 2:41 AM, ext Kalyan Kamepalli wrote:
> > > >
> > > > > Hello Group,
> > > > >
> > > > > I want to change the map bounds dynamically based on the user
> > selected
> > > > object bounds from a form. This  bounds change should not affect the
> > > > maxExtent of the Map so that the user is further allowed to zoom out
> > from
> > > > the dynamically set bounds. In one line , How do I make my current
> map
> > > zoom
> > > > to the bounds I have while retaining the same maxExtent bounds.
> > > > >
> > > >
> > > > mzp.zoomToExtent(new OpenLayers.Bounds(left, bottom, right, top));
> > > >
> > > > >
> > > > > <ATT00001..txt>
> > > >
> > > > Regards,
> > > > --
> > > > Christopher Schmidt
> > > > Nokia
> > > >
> > > >
> > >
> > >
> > > --------------------------------
> > >
> > > _______________________________________________
> > > Users mailing list
> > > Users at openlayers.org
> > > http://openlayers.org/mailman/listinfo/users
> > >
> >
> > --
> > E-Cards: Schon fertig für die ganz Eiligen oder individuell zum
> > Selbstgestalten - für jeden Anlass gibt´s die richtige E-Card auf
> arcor.de
> > .
> > http://www.arcor.de/rd/footer.ecard
> >
> 

-- 
E-Cards: Schon fertig für die ganz Eiligen oder individuell zum Selbstgestalten - für jeden Anlass gibt´s die richtige E-Card auf arcor.de.
http://www.arcor.de/rd/footer.ecard



More information about the Users mailing list