New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render polygons behind points and lines #100
Comments
Hi @rainitesh, L.TimeDimension.Layer.GeoJson.CustomLayer = L.TimeDimension.Layer.GeoJson.extend({
_update: function() {
L.TimeDimension.Layer.prototype._update.call(this);
this._currentLayer.bringToBack();
},
});
L.timeDimension.layer.geojson.customLayer = function(layer, options) {
return new L.TimeDimension.Layer.GeoJson.CustomLayer(layer, options);
}; You could also try to use the |
@bielfrontera this really didn't work for me. I tried few things but I keep gettin |
I also tried using timeload in this way but didn't work.
|
@rainitesh, |
@bielfrontera that worked, Thanks heaps. The issue was here I also had one other quick question on time slider. The slider speed is very much dependent on the number of features on map during run time. I do have close to 14 features with toggling option for each of them but specially for large polygon features the slider gets very slow. Is there a way to make the slider speed consistent irrespective of the feature load? Thanks. |
@rainitesh, |
I am trying to use leaflet method bringToBack( ) for polygons in order to place them behind points and lines.
It does work in the first instance of time but overtime the polygon features with future dates overlap on top of points and lines. Is this because we are adding the features on map based on time and not as one complete layer? I did look into
layer.geojson.js
to check if there a way to handle this but couldn't find much info atm.Any help is appreciated.
The text was updated successfully, but these errors were encountered: