Opened 15 years ago

Closed 14 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 15 years ago.
resize_auto.jpg (249.4 KB ) - added by bleukert 15 years ago.
resize_button.jpg (181.2 KB ) - added by bleukert 15 years ago.
requests.txt (709 bytes ) - added by bleukert 15 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 by bleukert, 15 years ago

Component: administrationuser interface

comment:2 by marc, 15 years ago

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 by bleukert, 15 years ago

Resolution: worksforme
Status: assignedclosed

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

Boris

comment:4 by bleukert, 15 years ago

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

by bleukert, 15 years ago

Attachment: resize_auto.gif added

by bleukert, 15 years ago

Attachment: resize_auto.jpg added

by bleukert, 15 years ago

Attachment: resize_button.jpg added

by bleukert, 15 years ago

Attachment: requests.txt added

comment:5 by marc, 15 years ago

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 by marc, 14 years ago

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.