title: Openlayers3 get map from element
body: <p>Is there a way in Openlayers 3 to get the map that is attached to a specific html element?</p>
  
  <p>Something like:
  </p>
  
  <pre><code>var map = new ol.Map({
    view: new ol.View({
      center: [0, 0],
      zoom: 1
    }),
    layers: [
      new ol.layer.Tile({
        source: new ol.source.MapQuest({layer: 'osm'})
      })
    ],
    target: 'map'
  });
  
  //Later on, in a different file
  var myMap = $("#map").ol.Map()
  </code></pre>