diff --git a/bower.json b/bower.json
index 7fe979f..539593e 100644
--- a/bower.json
+++ b/bower.json
@@ -1,6 +1,6 @@
{
"name": "leaflet-slider",
"homepage": "https://github.com/dwilhelm89/LeafletSlider",
- "version": "1.0.3",
+ "version": "1.0.4",
"main": "dist/leaflet.SliderControl.min.js"
}
\ No newline at end of file
diff --git a/dist/leaflet.SliderControl.min.js b/dist/leaflet.SliderControl.min.js
index 83f6f09..ce4d004 100644
--- a/dist/leaflet.SliderControl.min.js
+++ b/dist/leaflet.SliderControl.min.js
@@ -1 +1 @@
-L.Control.SliderControl=L.Control.extend({options:{position:"topright",layers:null,maxValue:-1,minValue:-1,markers:null,range:!1,follow:!1,alwaysShowDate:!1},initialize:function(a){L.Util.setOptions(this,a),this._layer=this.options.layer},setPosition:function(a){var b=this._map;return b&&b.removeControl(this),this.options.position=a,b&&b.addControl(this),this.startSlider(),this},onAdd:function(a){this.options.map=a;var b=L.DomUtil.create("div","slider",this._container);$(b).append('
'),$(b).mousedown(function(){a.dragging.disable()}),$(document).mouseup(function(){a.dragging.enable(),(c.range||!c.alwaysShowDate)&&$("#slider-timestamp").html("")});var c=this.options;return this.options.markers=[],this._layer?(this._layer.eachLayer(function(a){-1===c.minValue&&(c.minValue=a._leaflet_id),c.maxValue=a._leaflet_id,c.markers[a._leaflet_id]=a}),this.options=c):console.log("Error: You have to specify a layer via new SliderControl({layer: your_layer});"),b},onRemove:function(a){for(i=this.options.minValue;ib.values[1];d--)_options.markers[d]&&c.removeLayer(_options.markers[d]);for(d=_options.minValue;d'),$(b).mousedown(function(){a.dragging.disable()}),$(document).mouseup(function(){a.dragging.enable(),(c.range||!c.alwaysShowDate)&&$("#slider-timestamp").html("")});var c=this.options;if(this.options.markers=[],this._layer){var d=0;this._layer.eachLayer(function(a){c.markers[d]=a,++d}),c.maxValue=d-1,this.options=c}else console.log("Error: You have to specify a layer via new SliderControl({layer: your_layer});");return b},onRemove:function(a){for(i=this.options.minValue;i=i;i++)_options.map.addLayer(_options.markers[i])}}),L.control.sliderControl=function(a){return new L.Control.SliderControl(a)};
\ No newline at end of file
diff --git a/package.json b/package.json
index e6e2dc1..b347fa7 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "LeafletSlider",
"author": "Dennis Wilhelm",
- "version": "1.0.3",
+ "version": "1.0.4",
"description": "The Leaflet Time-Slider enables you to dynamically add and remove Markers on a map by using a JQuery UI slider.",
"license": "MIT",
"main": "dist/leaflet.SliderControl.min.js",