[mapserver-users] Insert javascript toolbox in html template (MS4W)

Alberto Fernández Sánchez djabex at hotmail.com
Wed Apr 1 02:57:51 PDT 2009


Hello friends,

I'm trying to insert a toolbox (zoom in, zoom out, pan, full extent,...) in my html template (working with MS4W). I've thinking in mapscript or other. The problem is that I don't know how insert javascript language in my html template. How I can insert javascript? Which is the best library (and easy for me) for this work? How is the code necessary for this labour?


For example, i want insert the toolbox for this simple windows visor:

______________________________________________________________________________



<html>
<head>
       
    <title>Example</title>

</head>
<body>

<form name=sigrural action="/cgi-bin/Example" method="post">

<table width="100 %" border="2" cellpadding="10" bgcolor="#32CD32"> 
<tr>
# Hear I want to put the toolbar in a new row
<td width="800" valign="top" bgcolor="#CFB53B">
    <input type="image" name="img" src="[img]"
        width="800" height="600" border="5">
      <strong>Escala </strong>1:[scale]
</td>

<td valign="top">
<h3>Layers:</h3>
        <h4>Cities</h4>
        &nbsp<input type="checkbox" name="layer" value="Cities"  [Cities_check]>
        Cities<br>
</td>
</tr>

<input type="hidden" name="map" value="[map]">
<input type="hidden" name="imgext" value="[mapext]">
<input type="hidden" name="imgxy" value="[center]">  
</form>

</body>

</html>



_______________________________________________________________________________________



Thanks to all

_________________________________________________________________
¿Quieres que tus hijos naveguen seguros? Aprende aquí cómo con Protección Infantil
http://www.protegeatushijos.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090401/23eb1baf/attachment.htm>


More information about the MapServer-users mailing list