[fusion-trac] #113: Can't zoom out beyond initial map view
Fusion
trac_fusion at osgeo.org
Tue Sep 16 16:23:39 EDT 2008
#113: Can't zoom out beyond initial map view
----------------------+-----------------------------------------------------
Reporter: andrewd | Owner: madair
Type: defect | Status: new
Priority: P2 | Milestone: 2.0
Component: Core | Version: SVN
Severity: Critical | Resolution:
Keywords: | External_id:
State: New | Browser: All
Os: All |
----------------------+-----------------------------------------------------
Changes (by pagameba):
* milestone: 1.1 => 2.0
Comment:
As far as I understand, there are two places where you can specify an
extent related to the map (ignoring for the moment that you can also set
predefined scales):
* In the map definition, you can set an initial view
* In the application definition (flexible layout), you can choose to use
the map's initial view OR set a custom view.
There is nowhere to specify what the maximum extent of the data or map
view is. I suppose that we could determine a maximum scale from
inspecting the scale range of the layers in the map (these are already
processed per layer for legend purposes).
We have had requests to support the concept of a maximum extent for the
map (so users can't pan beyond a certain point) which also translates into
a maximum scale for zooming out and I think this makes sense. The way we
chose to implement this was to use the initial view in the Map definition
as the maximum extent of the map and the custom view in the flexible
layout/application definition as the starting point. This allows the same
map definition to have different starting points for different
applications, which is fairly flexible but can require a bit more
configuration.
Perhaps a reasonable compromise would be to have a setting in the
ApplicationDefinition that would allow you to choose to have a limited
extent based on the map's initial view. This wouldn't be supported in
Studio obviously, but perhaps we could convince Kenneth to put it in
Maestro :)
We should also look at employing the layer's scale ranges for determining
the maximum scale for zooming.
This is too much work for 1.1.
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/113#comment:11>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list