title: Geoserver layer to leaflet
body: <p>I have my file stored in Geoserver in wms service and
  I want to display the data into leaflet.</p>
  
  <p>This is the link for </p>
  
  <p>The code: </p>
  
  <pre><code>  &lt;!DOCTYPE html --&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt; leaflet webviewer with Geoserver&lt;/title&gt;
  &lt;!--Load the style stylesheet of leaflet --&gt;
  &lt;link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css" integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ==" crossorigin=""/&gt;
  &lt;!--Load leaflet --&gt;
  &lt;script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js" integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw==" crossorigin=""&gt;&lt;/script&gt;
  
    &lt;!--Load vectorGrid plugin for Leaflet --&gt;
    &lt;script src="https://unpkg.com/leaflet.vectorgrid@latest/dist/Leaflet.VectorGrid.bundled.js"&gt;&lt;/script&gt;
  
  
  &lt;style&gt;
  /*Set the dimensions of our map */
  .map {
  height: 100%;
  width: 100%;
  }
  &lt;/style&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;!--Create our map object --&gt;
  &lt;div id="map" class="map"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  &lt;script&gt;
  // Find our map id
  var map = L.map('map')
  // Set open openstreetmap
  L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
  
  
   var wmsLayer= L.tileLayer.wms("localhost:8080/geoserver/cite/wms?service=WMS", {
          layers: 'cite:vnm_adm3',
          format: 'image/png',
          transparent: false
      });
      map.addLayer(wmsLayer);
  
  // Set our initial location and zoomlevel
  map.setView([16.4637, 107.59], 6);
  
  
  
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>This is the error</strong> : </p>
  
  <blockquote>
    <p>localhost:8080/geoserver/cite/wms?service=WMS&amp;service=WMS&amp;request=GetMap&amp;layers=cite%3Avnm_adm3&amp;styles=&amp;format=image%2Fpng&amp;transparent=false&amp;version=1.1.1&amp;width=256&amp;height=256&amp;srs=EPSG%3A3857&amp;bbox=11897270....net::ERR_UNKNOWN_URL_SCHEME</p>
  </blockquote>
  
  <p>How I can fix that?</p>