Installation guide
42
var zoom = 12;
// Add layers
map.addLayers([mapnik,vector_layer2,vector_layer]);
// Add a vector editing control. Must do it after map.addLayers([...]).
map.addControl(new OpenLayers.Control.EditingToolbar(vector_layer));
// Add a point feature.
vector_layer2.addFeatures([new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point
(userlon,userlat).transform(fromProjection,toProjection))]);
// Set center
map.setCenter(position, zoom);
}
</script>
</head>
<body onload="init();">
<!-- BEGIN wrapper -->
<div id="wrapper">
<!-- BEGIN header -->
<div id="header">
<p class="links"><a>Login Successfully</a></p>
<div class="break"></div>
<div class="logo">
<h1><a>Example of JSP Webpage</a></h1>
</div>
<div class="break"></div>
<ol>
<div class="Logout">
<form name="form1" action="UserServlet.do?method=logout" method="post">
<table width="300" border="0">
<tr>
<td width="40" align="right">Welcome!</td>
<td width="60" align="center"><%=(String) session.getAttribute("username")%></td>
<td width="80" align="right"><%=(String) session.getAttribute("userlat")%></td>
<td width="5" align="left">,</td>
<td width="80" align="left"><%=(String) session.getAttribute("userlon")%></td>
<td width="40" align="right"><input class="btn" type="submit" name="submit" value="Logout"></td>
</tr>
</table>
</form>
</div>
</ol>
</div>
<!-- END header -->
<!-- BEGIN content -->