Hi Parveen,<div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<br class="Apple-interchange-newline">I need to export the data which is in form of latitudes and longitudes<br>when we click on the export feature of <a href="http://openstreetmap.org/" target="_blank">openstreetmap.org</a><br>
<br></blockquote></div><div>I am not sure I understand your question, but what I think you are asking is:</div><div>"How do I display a slippy map on a web site and determine the bounding box (lon/lat of bottom left and top right corner) of the displayed map once the user has adjusted it (panned and zoomed to select a particular area)?"</div>
<div><br></div><div>If that is the question, you should look at OpenLayers or Leaflet to display the map, then extract the appropriate javascript properties to get the coordinates of the map being displayed.</div><div><br>
</div><div>The OSM Export function will do this (but I am not sure exactly how it works - you can probably look at the javascript your browser is running to see (I am sure it will be interacting with OpenLayers).  </div><div>
<br></div><div>Alternatively, I have done something similar in Openlayers here: <a href="http://code.google.com/p/townguide/source/browse/#svn%2Ftrunk%2Fwww">http://code.google.com/p/townguide/source/browse/#svn%2Ftrunk%2Fwww</a> (look at SubmitForm.php and osm_map.js,</div>
<div><br></div><div>Or something that I have started on, but not finished using leaflet here: <a href="https://github.com/jones139/disrend/blob/master/www/application/media/js/editmap.js">https://github.com/jones139/disrend/blob/master/www/application/media/js/editmap.js</a> (look at the map2json function - map.getBounds seems to do it).</div>
<div><br></div><div>Hope that helps - sorry if I have answered the wrong question!</div><div><br></div><div>Regards</div><div><br></div><div><br>Graham.<br>-- <br>Graham Jones<div>Hartlepool, UK.</div><br>
</div>