Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First of all use this command on your terminal:</p> <pre><code>svn checkout http://osmdroid.googlecode.com/svn/branches/release_3_0_5 </code></pre> <p>It will download a stable version </p> <p>Then follow this to import contents of the folder u downloaded:</p> <blockquote> <p>In Eclipse, right-click on the Package area, and select the following:</p> <pre><code>click on Import... select General -&gt; Existing Projects into Workspace click Next click Browse... select the checked out projects' directories osmdroid-android (import as a java project) OSMMapTilePackager (import as a java project) OpenStreetMapViewer (mport as an android project) click OK click Finish </code></pre> </blockquote> <ol> <li>Now open this java file--> osmdroid-android/src/org/osmdroid/view/MapView.java</li> <li>Now as stated in this <a href="http://code.google.com/p/osmdroid/issues/attachmentText?id=209&amp;aid=2090009000&amp;name=LimitScrollToGeographicArea.patch&amp;token=CQsZgqNJAaL-nV9zbQ_fev6hrho:1326885819018" rel="noreferrer">patch file</a>, modify MapView.java ( add code wherever + , remove code wherever -)</li> <li>Also modify <code>computeScroll()</code> in MapView.java as stated <a href="http://code.google.com/p/osmdroid/issues/detail?id=209#c23" rel="noreferrer">here</a></li> <li><p>Now, to use this modified .java file, u need to create a new jar file that u can include in your project Here is a step by step process <a href="http://mappingdev.wordpress.com/2011/08/24/166/" rel="noreferrer">to create jar</a></p></li> <li><p>Add this newly created jar file to your project's build path and you r ready to use your modified jar</p></li> <li><p>Now use this in your activity class:</p> <blockquote> <p>BoundingBoxE6 bbox = new BoundingBoxE6(limit north, limit east, limit south, limit west);<br> mapView.setScrollableAreaLimit(bbox);</p> </blockquote></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload