[OpenLayers-Users] Restrict effective viewport
Nicolas Dietrich
nicodietrich at gmail.com
Mon Jun 25 14:43:14 PDT 2012
Hi all,
we have a need to define a secondary `effective viewport` in addition to
the current full map viewport.
This `effective viewport` shall come into effect when calling
- zoomToExtent
- getCenter
- zoomIn, zoomOut
and similar functions.
The reason to want such a thing is that putting overlay elements on top
of the map, such as a search box, the map key, etc. shall not impair the
visibility of objects after calling `zoomToExtent`. Similarly, the
conceived map center is in the center of this `effective viewport`, and
`zoomIn` should center at that point.
Quick: Has anybody been doing something like that? Do you have a hackish
proposal?
Correct: Is this a good idea? Do you think it is worth including this as
a new feature in OpenLayers? Or are there even plans to do so? What
would be `the right way` to implement this? Are there any caveats? Shall
I open a ticket?
Thanks and cheers,
Nicolas
More information about the Users
mailing list