text: L.Coordinates = L.Control.extend({
    options: {
      position: 'bottomright'
    },
  
    onAdd: function(map) {
      this._container = L.DomUtil.create('div', 'leaflet-bar');
      this._container.style.background = '#ffffff';
      map.on('mousemove', this._onMouseMove, this);
      return this._container;
    },
  
    _onMouseMove: function(e) {
      this._container.innerHTML = '<span style="padding: 5px">' +
        e.latlng.lng.toFixed(3) + ', ' + e.latlng.lat.toFixed(3) + '</span>';
    }
  
  });