[OpenLayers-Users] center an openlayers map using url

Ime Asangansi imeasangansi at gmail.com
Thu Nov 3 12:47:27 EDT 2011


Thanks Andreas.
That worked like magic.
Please where can I see the list of parameters I can use with that (other
than lat, lon and zoom).

Also, is it possible to change the focus without page reload?

thanks a lot.

Ime


On Thu, Nov 3, 2011 at 3:22 PM, Andreas Hocevar <ahocevar at opengeo.org>wrote:

> I think
> http://openlayers.org/dev/examples/controls.html?lat=30&lon=30&zoom=5does what you need.
>
> Andreas.
>
> On Nov 3, 2011, at 14:32 , Ime Asangansi wrote:
>
> > Hi,
> >
> > I just started looking at openlayers, and its a really good tool.
> >
> > I need some help. I would like to like to center an openlayers map on a
> particular latlng using a url e.g xy.com?lat=30&lng=30
> > the href is on a div outside the map and I'm using body onload as in the
> examples.
> >
> > Thanks for your suggestions.
> >
> > Ime
> > _______________________________________________
> > Users mailing list
> > Users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111103/6db478fb/attachment.html


More information about the Users mailing list