<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904"></HEAD>
<BODY>
<DIV><SPAN class=632213606-23042010><FONT color=#0000ff size=2
face=Arial>Sriram,</FONT></SPAN></DIV>
<DIV><SPAN class=632213606-23042010><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=632213606-23042010><FONT color=#0000ff size=2 face=Arial>In
case you want to have a 'sticky' rememberance (sic) of last view of map seen by
user you could try something similar to what we did:</FONT></SPAN></DIV>
<DIV><SPAN class=632213606-23042010><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=632213606-23042010><FONT color=#0000ff size=2 face=Arial>either
at cookie level (or if you ask user to login, then login id) remember the center
and extent - Using javascript you can record this at the back end whenever
view/center is changed. (In our case we created toolbar action). Then when the
session is created the first time, get the information from cookie and/or login
id set the initial center and extent - the best place we found was in
ajaxmappane.templ</FONT></SPAN></DIV>
<DIV><SPAN class=632213606-23042010><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=632213606-23042010><FONT color=#0000ff size=2 face=Arial>hope
this helps. </FONT></SPAN></DIV>
<DIV><SPAN class=632213606-23042010><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=632213606-23042010><FONT color=#0000ff size=2
face=Arial>thx</FONT></SPAN></DIV>
<DIV> </DIV>
<P><FONT size=2>--------------------------------------------<BR>Rajeev K.
Singh<BR>IntelliPlanner Software Systems, Inc.<BR>West Windsor, NJ (USA) / New
Delhi (India)<BR>+1.609.945.4927 (o) / +1.203.558.3224 (c)<BR>+91.11.4672
6635(o) / +91.995 841
1064(c)<BR>--------------------------------------------<BR>This mail contains
proprietary and confidential information.<BR>Please destroy it if <SPAN
class=632213606-23042010>y</SPAN>ou received it by mistake and notify the
sender.<BR></FONT></P>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV dir=ltr class=OutlookMessageHeader align=left><FONT size=2
face=Tahoma>-----Original Message-----<BR><B>From:</B>
mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org]<B>On Behalf Of </B>Jason
Birch<BR><B>Sent:</B> 23 April 2010 02:13<BR><B>To:</B> MapGuide Users Mail
List<BR><B>Subject:</B> Re: [mapguide-users] Modify Scale Ranges Of a
Layers<BR><BR></FONT></DIV>The Session repository only stores resources for as
long as the session exists. You will need to persist the layer
definition somewhere in the Library repository, and then figure out how to
retrieve it next time the user accesses your application. Be aware that
the anonymous user is not permitted to write to the Library repository, so
your app will need to authenticate as a different user to do this.
<DIV><BR></DIV>
<DIV>Jason<BR><BR>
<DIV class=gmail_quote>On 22 April 2010 22:51, SriRam007 wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><BR>I want to keep permanently the modified scale ranges
of a layers.<BR><BR>I already have done By modifing the XML file of
Layerdefinition for changing<BR>the scale dynamically.<BR>And it is working
fine also. But it exists till the session end. I want to<BR>keep it
permanently.<BR><BR></BLOCKQUOTE></DIV></DIV></BLOCKQUOTE></BODY></HTML>