Opened 10 years ago

Closed 10 years ago

#512 closed defect (fixed)

Resize Mapsize does not work

Reported by: bleukert Owned by: marc
Priority: minor Milestone: 2.7 release
Component: user interface Version: 2.6 rc1
Keywords: Cc:

Description

Fresh Installation of Mapbender 2.6 from SVN.
Press the "Resize Mapsize" button in gui2: nothing happens.
The Error Console of Firefox shows the following error:

Error: skipMapRequest is not defined
Source File: http://<hostname>/mapbender/javascripts/map.php?&guiID=gui2&mb_myBBOX=
Line: 13418

Attachments (4)

resize_auto.gif (807 bytes) - added by bleukert 10 years ago.
resize_auto.jpg (249.4 KB) - added by bleukert 10 years ago.
resize_button.jpg (181.2 KB) - added by bleukert 10 years ago.
requests.txt (709 bytes) - added by bleukert 10 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 10 years ago by bleukert

Component: administrationuser interface

comment:2 Changed 10 years ago by marc

Owner: changed from dev to marc
Status: newassigned

Hi,

bug is fixed.
skipMapRequest hasn't defined in function call.

I noticed another attitude with this module if you use EPSG:4326.
In Mb_2.6 the function getScale() in mapObj.js has been rebuild.
Now the function checks if EPSG:4326 is used, and caculates the scale (for the first time) correctly.
There is just one detriment. The following function repaintScale() needs this wrong scale(in 4326) to set the new Maprequest correctly.

To solve this too, i rebuilded the getScale() function a little.

see here in 2.6.
http://trac.osgeo.org/mapbender/changeset/4592/branches/2.6/http/javascripts

cheers Marc

comment:3 Changed 10 years ago by bleukert

Resolution: worksforme
Status: assignedclosed

Hi Marc,
the module now works for me, thanks for your help.

Boris

comment:4 Changed 10 years ago by bleukert

Resolution: worksforme
Status: closedreopened

Hi Marc, sorry but the module does not work correctly. When I set the resize_option to auto
and start the GUI the initial image is distorted (please see image resize_auto.jpg). After
the initial loading of the GUI I press the resize button and the image loads correct
(please see image resize_button.jpg). I think that the initial request to the mapserver
(BBOX) is not correct (please see requests.txt). Can you please help again?

Best regards, Boris

Changed 10 years ago by bleukert

Attachment: resize_auto.gif added

Changed 10 years ago by bleukert

Attachment: resize_auto.jpg added

Changed 10 years ago by bleukert

Attachment: resize_button.jpg added

Changed 10 years ago by bleukert

Attachment: requests.txt added

comment:5 Changed 10 years ago by marc

Hi Boris,

the boolean parameter skipMapRequest was set to the Module
to solve this ticket.
http://trac.osgeo.org/mapbender/ticket/394

I see that this it's gonna bite a little.

If you want a quick sollution: change in mod_resize_mapsize.php

from (line 121)

if (resize_option == 'auto'){
 	    eventInit.register(function() {
	        control(true);
 	    });
 	}

to:

if (resize_option == 'auto'){
 	    eventInit.register(function() {
	        control();
 	    });
 	}

but this will log the first MapRequest? twice again.

regards Marc

comment:6 Changed 10 years ago by marc

Resolution: fixed
Status: reopenedclosed

Hi again,

this is solved now,

see Christoph's changeset...

http://trac.osgeo.org/mapbender/changeset/4980

Note: See TracTickets for help on using tickets.