<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial, sans-serif" size="2">
<div>I have a map created within a map panel.. My map is defined like so - </div>
<div> </div>
<div><font face="Courier New" color="#008000">//Create Map</font></div>
<div><font face="Courier New"> map = <font color="#0000FF">new</font> OpenLayers.Map(<font color="#A31515">'map'</font>,{controls: [],</font></div>
<div><font face="Courier New"> maxExtent: <font color="#0000FF">new</font> OpenLayers.Bounds(-3508.86612616335,5778517.56154675,33162.5587151875,5808814.49155551),</font></div>
<div><font face="Courier New"> maxResolution: <font color="#A31515">'auto'</font>,</font></div>
<div><font face="Courier New"> numZoomLevels: 20,</font></div>
<div><font face="Courier New"> units: <font color="#A31515">'m'</font>,</font></div>
<div><font face="Courier New"> projection: <font color="#0000FF">new</font> OpenLayers.Projection(<font color="#A31515">"EPSG:3776"</font>),</font></div>
<div><font face="Courier New"> displayProjection: <font color="#0000FF">new</font> OpenLayers.Projection(<font color="#A31515">"EPSG:4326"</font>)</font></div>
<div><font face="Courier New"> });</font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New"> <font color="#008000">//Define Map Longitude/Latitude and Start zoom levels</font></font></div>
<div><font face="Courier New"> startupLat = 52.27210;</font></div>
<div><font face="Courier New"> startupLon = -113.80288;</font></div>
<div><font face="Courier New"> startupLevel = 12;</font></div>
<div><font face="Courier New"> lonLat = <font color="#0000FF">new</font> OpenLayers.LonLat(startupLon,startupLat).transform(<font color="#0000FF">new</font> OpenLayers.Projection(<font color="#A31515">"EPSG:4326"</font>), map.getProjectionObject());</font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New"> <font color="#008000">//Define MapPanel</font></font></div>
<div><font face="Courier New"> mapPanel = <font color="#0000FF">new</font> GeoExt.MapPanel({</font></div>
<div><font face="Courier New"> collapsed: <font color="#0000FF">false</font>,</font></div>
<div><font face="Courier New"> height: 900,</font></div>
<div><font face="Courier New"> map: map,</font></div>
<div><font face="Courier New"> center: lonLat,</font></div>
<div><font face="Courier New"> zoom: startupLevel,</font></div>
<div><font face="Courier New"> tbar: toolbarItems</font></div>
<div><font face="Courier New"> });</font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New">Except no matter what I do the center of the map is not the coordinates I put in but just remains the same at every zoom level. Even if I put the statement</font></div>
<div><font face="Courier New">map.setCenter(<font color="#0000FF">new</font> OpenLayers.LonLat(17.99,59.3),11);</font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New">At the very end of my code only the zoom level of the map is modified but the variables for lon/lat under my map are the same.. How can I actually change this so I can modify the center to be actually the center? (for some reason
it is to the left of the center). Appreciate any assistance.</font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New"> </font></div>
<div> </div>
</font>
<DIV><P><HR>
This e-mail is intended for the original recipient(s) only. If you have received it in error, please advise the sender and delete this message.
</P></DIV>
</body>
</html>