<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:730425739;
        mso-list-type:hybrid;
        mso-list-template-ids:-668701172 269025297 676391420 269025307 269025295 269025305 269025307 269025295 269025305 269025307;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-number-format:roman-lower;
        mso-level-text:"%2\)";
        mso-level-tab-stop:90.0pt;
        mso-level-number-position:left;
        margin-left:90.0pt;
        text-indent:-36.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
</head>
<body lang=EN-CA link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Isaac,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>To add the capability to pan
northeast/northwest etc. you need to edit either your application.php & application_contents.php
files (where “application is the name of your application”) or to
make this a permanent addition edit …/htdocs/gmapfactory/templates/app_php_file.php
and …/htdocs/gmapfactory/build_phtml.php files and make changes similar
to the following:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><span style='mso-list:Ignore'>1)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'> </span></font></span></span></font><![endif]><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>Edit the interface to include controls for the new
directions. This will be added to either the build_phtml.php file around
line 574 or to the application_contents.php file.<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><span style='mso-list:Ignore'>2)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'> </span></font></span></span></font><![endif]><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>Edit the processing files to handle the pan. This will be
done in two steps:<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt;text-indent:-36.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><span style='mso-list:Ignore'>i)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>
</span></font></span></span></font><![endif]><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Edit the
app_php_file.php file around line 101 to check the url for the new pan
commands. <o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:54.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:54.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>i.e. <o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:72.0pt;text-indent:18.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>if ( strlen( trim( $http_form_vars["Pan_NorthEast_x"] ) )
> 0 )<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:54.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>{<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:54.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>
//
check mode and set appropriate vars<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:54.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>
if
( $http_form_vars['RosaMode'] == 1 )<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:54.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>
$http_form_vars["INPUT_COORD"]
= "0,0";<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:54.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>
else<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:54.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>
$http_form_vars[
"mainmap_x" ] = "0";<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:54.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:54.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> //
set the command<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:54.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>
$http_form_vars["ROSA_CMD"]
= "PAN_NE";<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>}<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt;text-indent:-36.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><span style='mso-list:Ignore'>ii)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>
</span></font></span></span></font><![endif]><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Edit the
checkNavigation function to perform the pan (around line 370)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>i.e.
<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>case
"PAN_NE":<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>
$oMapNavigator->pan( NORTH_EAST, 0.75 );<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>
return true;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>
break;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Where
NORTH_EAST is a constant (all other logical directions are also supported) and 0.75
is the percentage of map width/height to move.<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>These
changes can also be made directly to the application.php file.<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:90.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>HTH<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Regards,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Bill<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
maplab-users-bounces@lists.maptools.org
[mailto:maplab-users-bounces@lists.maptools.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b>ISAAC KWADWO NTI<br>
<b><span style='font-weight:bold'>Sent:</span></b> October 19, 2004 10:06 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
maplab-users@lists.maptools.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [maplab-users] Panning</span></font><span
lang=EN-US><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Hello,<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>I am
using maplab for my works and its very powerful and so good for my liking. I
have found out the the panning is only in the north/east/south/west directions
only. Is there a way of panning in any direction( like the ones with the hand
as icon) or if there is a way to pan northwest/northeast/southwest/southeast.<o:p></o:p></span></font></p>
<p style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>I will really appreciate your help.<br>
<br>
<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><em><i><font size=3 color="#330099" face="Times New Roman"><span
style='font-size:12.0pt;color:#330099'>--</span></font></i></em><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><em><i><font size=3 color="#330099" face="Times New Roman"><span
style='font-size:12.0pt;color:#330099'>That which persist in doing becomes
easier - not that the task has changed but our ability to do it has increased</span></font></i></em><font
color="#330099"><span style='color:#330099'>.</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=blue face="Times New Roman"><span
style='font-size:12.0pt;color:blue'>Isaac Kwadwo Nti</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=blue face="Times New Roman"><span
style='font-size:12.0pt;color:blue'>Bei Wiafe Owusu-Banahene,</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=blue face="Times New Roman"><span
style='font-size:12.0pt;color:blue'>Zi C3, Adenauerring,</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=blue face="Times New Roman"><span
style='font-size:12.0pt;color:blue'>76131 <st1:City w:st="on"><st1:place w:st="on">Karlsruhe</st1:place></st1:City></span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><st1:country-region w:st="on"><st1:place w:st="on"><font
size=3 color=blue face="Times New Roman"><span style='font-size:12.0pt;
color:blue'>Germany</span></font></st1:place></st1:country-region><font
color=blue><span style='color:blue'>.</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=blue face="Times New Roman"><span
style='font-size:12.0pt;color:blue'>Home Tel: +4972162814743</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><st1:City w:st="on"><st1:place w:st="on"><font size=3
color=blue face="Times New Roman"><span style='font-size:12.0pt;color:blue'>Mobile</span></font></st1:place></st1:City><font
color=blue><span style='color:blue'> : +491798846336</span></font><o:p></o:p></p>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br clear=all>
<o:p></o:p></span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Express yourself instantly with MSN Messenger! <a
href="http://g.msn.com/8HMAEN/2734??PS=47575" target="_top">MSN Messenger</a>
Download today it's FREE!<o:p></o:p></span></font></p>
</div>
</div>
</body>
</html>