Skip to content

Commit

Permalink
A feature group should be a layer group
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Jun 27, 2018
1 parent 850f3ca commit ba57943
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ipyleaflet/leaflet.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def clear_layers(self):
self.layers = ()


class FeatureGroup(Layer):
class FeatureGroup(LayerGroup):
_view_name = Unicode('LeafletFeatureGroupView').tag(sync=True)
_model_name = Unicode('LeafletFeatureGroupModel').tag(sync=True)

Expand Down
4 changes: 2 additions & 2 deletions js/src/jupyter-leaflet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1283,8 +1283,8 @@ var LeafletLayerGroupModel = LeafletLayerModel.extend({
});


var LeafletFeatureGroupModel = LeafletLayerModel.extend({
defaults: _.extend({}, LeafletLayerModel.prototype.defaults, {
var LeafletFeatureGroupModel = LeafletLayerGroupModel.extend({
defaults: _.extend({}, LeafletLayerGroupModel.prototype.defaults, {
_view_name : 'LeafletFeatureGroupView',
_model_name : 'LeafletFeatureGroupModel'
})
Expand Down

0 comments on commit ba57943

Please sign in to comment.