[mapguide-internals] PATCH: Fix for ticket #844: Put more relevant default minimum and maximum scales in basic weblayout

Maxime Suing Maxime.Suing at autodesk.com
Thu Feb 12 15:23:32 EST 2009


The *.patch extension is blocked somewhere... txt is maybe better.

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Maxime Suing
Sent: jeudi 12 février 2009 21:16
To: mapguide-internals at lists.osgeo.org
Subject: [mapguide-internals] PATCH: Fix for ticket #844: Put more relevant default minimum and maximum scales in basic weblayout

Hi Folks,

Since it is my first contribution, it will be very small.
Tell me if something is wrong in this delivery.

Max.

-----Original Message-----
From: trac_mapguide at osgeo.org [mailto:trac_mapguide at osgeo.org]
Sent: jeudi 12 février 2009 12:09
Cc: mapguide-trac at lists.osgeo.org
Subject: [mapguide-trac] #844: Put more relevant default minimum and maximum scales in basic weblayout

#844: Put more relevant default minimum and maximum scales in basic weblayout
---------------------------+--------------------------------------------
---------------------------+----
   Reporter:  msuing       |       Owner:
       Type:  enhancement  |      Status:  new
   Priority:  low          |   Milestone:  2.1
  Component:  AJAX Viewer  |     Version:  2.0.1
   Severity:  trivial      |    Keywords:  scale
External_id:               |
---------------------------+--------------------------------------------
---------------------------+----
 By default, the minimum and maximum scales in the basic weblayout are :
 ''var minScale = 0.001, maxScale = 1000000000000;''
 it would be more realistic to replace it by  ''var minScale = 10, maxScale = 1000000000;''
 This would be more realistic, especially when we zoom to a point and see a  null scale...

--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/844>
MapGuide Open Source <http://mapguide.osgeo.org/> MapGuide Open Source Internals
-------------- next part --------------
Index: ajaxmappane.templ
===================================================================
--- ajaxmappane.templ	(revision 3614)
+++ ajaxmappane.templ	(working copy)
@@ -325,7 +325,7 @@
 var curimg = "mapImage1";
 var curSelImg = "selImage1";
 var ovimgloaded = false;
-var minScale = 0.001, maxScale = 1000000000000;
+var minScale = 10, maxScale = 1000000000;
 var digihandler = null;
 var digitizing = false;
 var cancelTgt;


More information about the mapguide-internals mailing list