title: Offline OpenLayers web app using offline OSM
body: <p>I'm trying to create map based web app which user can set landmark on the provided map. Boundaries of map is limited to a small city, and the client computer is always offline, no internet access at all. After a whole day of googling I've found that combination of <a href="https://github.com/openlayers/ol3" rel="nofollow">OpenLayers</a> and <a href="http://www.openstreetmap.org/" rel="nofollow">OpenStreetMap</a> is a good choice.</p>
  
  <p>The following example is provided by <strong>OpenLayers</strong> website:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;link rel="stylesheet" href="http://openlayers.org/en/v3.0.0/css/ol.css" type="text/css"&gt;
      &lt;style&gt;
        .map {
          height: 400px;
          width: 100%;
        }
      &lt;/style&gt;
      &lt;script src="http://openlayers.org/en/v3.0.0/build/ol.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;title&gt;OpenLayers 3 example&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h2&gt;My Map&lt;/h2&gt;
      &lt;div id="map" class="map"&gt;&lt;/div&gt;
      &lt;script type="text/javascript"&gt;
        var map = new ol.Map({
          target: 'map',
          layers: [
            new ol.layer.Tile({
              source: new ol.source.MapQuest({layer: 'sat'})
            })
          ],
          view: new ol.View({
            center: ol.proj.transform([37.41, 8.82], 'EPSG:4326', 'EPSG:3857'),
            zoom: 4
          })
        });
      &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This works fine, but needs an internet connected computer. 
  After couple of hours of googling, I found another <a href="http://download.geofabrik.de/index.html" rel="nofollow">website</a> that provides offline <strong>OpenStreetMap</strong> data with <code>.osm</code> format. 
  Now I don't know is it possible to feed the OpenLayers with these <code>.osm</code> files or not, something like a local map server? the client computer is running <strong>IIS 8</strong></p>