<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi <br>i have a map to get it from a geoserver <br>function init(){<br> map = new OpenLayers.Map( $('map') );<br> <br> layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", <br><span> "<a target="_blank" href="http://localhost:8080/geoserver/wms">http://localhost:8080/geoserver/wms</a>", {layers: 'topp:mymap'} );</span><br> map.addLayer(layer);<br> <br> map.addControl( new
OpenLayers.Control.LayerSwitcher() );<br> <span style="color: rgb(0, 0, 255);"> map.zoomToExtent(new OpenLayers.Bounds(871444,244922,871576,245050));</span><br> }<br> <br><br>when i tried this there is no map in the web page<br><br>but when i tried this <br>function init(){<br>
map = new OpenLayers.Map( $('map') );<br>
<br>
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", <br><span>
"<a target="_blank" href="http://localhost:8080/geoserver/wms">http://localhost:8080/geoserver/wms</a>?</span><span style="color: rgb(0, 0, 255);">bbox=871444,244922,871576,245050</span>",{layers'topp:mymap'});<br>
map.addLayer(layer);<br>
map.addControl( new OpenLayers.Control.LayerSwitcher() );<br>
<span style="color: rgb(0, 0, 255);"> map.zoomToMaxExtent(); </span><br>
}<br><br>this works but there is more than one map in the page and when i zoom it out there number decrease<br><br>and when i zoom it in there number increase<br><br>can any body helps me please ? <br><br><br>Olfa<br></div></div><br>
                <hr size="1">
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur <a href="http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com">Yahoo! Questions/Réponses</a>.</body></html>