Bug 84 - [MapLab3]Map view doesn't display image of extent specified into the Web object
: [MapLab3]Map view doesn't display image of extent specified into the Web object
Status: ASSIGNED
: MapLab
Preview
: 3.0
: All All
: P2 major
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2003-10-23 17:51 by
Modified: 2003-10-27 17:13 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-10-23 17:51:28
Map view doesn't display image of extent specified into the Web object
automatically into the map view after I applied changes.

I used the "tutorial.map".  The whole Canada is shown into the map view.  I
selected the Web object into the object browser view.  I changed the extent into
the object properties view to cover a single province extent (example: 
Ontario).  I applied the changes and I expected to see the Ontario province only
into the map view.  The whole Canada is still showing.

I zoomed to the full extent of the map.  The whole Canada is showing again.  I
had to zoom in to the Ontario province.  I then zoomed to the full extent again
and now the Ontario province only is shown.  So, it is corresponding
approximatively to the extent I specified.

RedHat 7.2, Firebird 0.7, Chameleon cvs 10/16/2003, MapLab 10/14/2003
------- Comment #1 From 2003-10-23 19:05:29 -------
Fix:
-Update dhtml map widget to use mapfile values if none are specified in the application template
-Update the preview template to ensure it doesn't specify any extents.
------- Comment #2 From 2003-10-24 08:38:38 -------
the problem is that the preview was (and probably still is) designed to remember
the last extents you zoomed to.  In most cases, this is desirable.  I think the
reasonable behaviour in this case is that if the new extents do not entirely
encompass the current extents, then the preview should be zoomed to the new
extents, otherwise the maximum extents of the preview should be updated (so the
zoom to full extents button works reasonably) but the current extents should not
be changed.

An alternative would be to zoom to the new extents any time the extents are
changed.  

This would be the first time that we would do something special based on a value
in the map file changing.  Not sure I like this idea.
------- Comment #3 From 2003-10-24 14:59:41 -------
I don't think the extents of the preview should change when you change the
extents in the object properties.

However if you click the zoom to full extents button, you should be zoomed to
the extents that you just applied to the mapfile for sure!
------- Comment #4 From 2003-10-25 11:09:48 -------
Paul says:

"...otherwise the maximum extents of the preview should be updated (so the
zoom to full extents button works reasonably) but the current extents should not
be changed.".

Can explain me a little bit more what do you mean by "the current extents should
not be change." and where the current extents appear?
------- Comment #5 From 2003-10-27 10:09:18 -------
Additional comments:

1)When we change the properties of an object and we apply the changes, the map
preview is updated as soon as we apply the changes.  For example, if we change
the outline color in the scalebar object properties and we apply the change, the
outline color of the scalebar in the preview map is updated right away.

So, what I have in mind for the behaviour of the map extents was the same.

2)Based on Paul comments:

      Preview                 Current extents         Zoom to full extents
1) Smaller new extents     Change to new extents         Not changed

2) Greater new extents        Not changed            Changed to new extents

In case two, if I apply the changes and come back to look to the map extents in
the object properties view, the extents will be the same as before I entered the
new extents.  Correct?

In case one, suppose I built an application based on the data of the whole
Canada and I want to show a map of the Ontario province only.  I specified the
Ontario extents.  Then, if I do a zoom to full extents, how can I come back to
the Ontario province map?
------- Comment #6 From 2003-10-27 16:14:39 -------
This is what I propose.

     Preview                 Current extents         Zoom to full extents
1) Smaller new extents        Not changed            Changed to new extents
2) Greater new extents        Not changed            Changed to new extents

That's consistent behaviour that makes sense to me.  The other way feels
inconsistant, and may lead users to think somethings broken.
------- Comment #7 From 2003-10-27 17:13:39 -------
3) At previous full extents   Changed to new extents Changed to new extents