title: Open Layers 3: how to display only a KML layer
body: <p>i am trying to create an OpenLayers map that only displays a KML layer without a base map or underlying tile layer.</p>
  
  <p>the KML layer will be an indoor floormap, but it does not need to sit on top of an existing map, in a particular coordinate location. I just need to display the floormap on its own, with no other map. i will also want to set pan limits so the user can not pan away from the map.</p>
  
  <p>below is some code that i used to successfully display the KML layer on top of an existing base map. I've tried many things to try get the KML layer to display on its own but to no avail. </p>
  
  <p>can anyone help with this, or tell me what i need to change with the code below to display the KML on its own?</p>
  
  <pre><code>var vector = new ol.layer.Vector({
          source: new ol.source.Vector({
              url: MAPS_URL + 'map1.kml',
              format: new ol.format.KML()
          })
      });
  
  var map = new ol.Map({
             target: 'map',
             layers: [
                new ol.layer.Tile({
                    source: new ol.source.MapQuest({layer: 'sat'})
                }),
                vector
             ],
             view: new ol.View({
             center: ol.proj.transform([37.41, 8.82], 'EPSG:4326', 'EPSG:3857'),
             zoom: 2
         })
     });
  
  map.addLayer(vector);
  </code></pre>
  
  <p>thanks!</p>