Closed rahimramezanian closed 4 years ago
Hi @rahimramezanian,
you can customize how the date is displayed creating a custom L.Control.TimeDimension
and overwritting the method _getDisplayDateFormat
.
Example:
L.Control.TimeDimensionCustom = L.Control.TimeDimension.extend({
_getDisplayDateFormat: function(date){
return moment(date, 'jYYYY/jM/jD');
}
});
var timeDimensionControl = new L.Control.TimeDimensionCustom({});
map.addControl(timeDimensionControl);
More information at #145
Hi @bielfrontera Thanks.
The date time slider is always in Georgian calendar, Would you please use something like https://github.com/jalaali/moment-jalaali to also support Jalali calendar. Thanks.