[OpenLayers-Users] Ovewriting previous map

Surya Tarigan surya.tarigan at yahoo.com
Tue Sep 8 00:26:50 EDT 2009


Dear List,
 
I need help, when I,m passing lonlat value to init() function from html drop downlist see snippet below), the next map will be displayed beneath previous map whithout overwriting it.  What statement do I  have to ad to the script to overwite previous map every time I' select new latlon value from dropdownlist?
 
sincerely
 
surya
 
<body>
<style type="text/css"> #map { width: 350px; height: 350px; border: 1px solid black; target="_blank" } </style> 
<div id="map" </div>
<select id="lonlat" onchange="init()">
<option value="232064.944, 9631783.43">River A</option>
<option value="231064.944, 9631783.43">River B</option>
<option value="230064.944, 9631783.43">River C</option>
<option value="229064.944, 9631783.43">River D</option>
<option value="228064.944, 9631783.43">River E</option>
</select>
</body>


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090907/a800dcc3/attachment.html


More information about the Users mailing list