Skip to content

Commit

Permalink
Fix model name for LayerGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Dec 14, 2017
1 parent aeeb824 commit f999f64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ipyleaflet/leaflet.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ class MarkerCluster(Layer):

class LayerGroup(Layer):
_view_name = Unicode('LeafletLayerGroupView').tag(sync=True)
_view_name = Unicode('LeafletLayerGroupModel').tag(sync=True)
_model_name = Unicode('LeafletLayerGroupModel').tag(sync=True)

layers = List(Instance(Layer)).tag(sync=True, **widget_serialization)

Expand Down
2 changes: 1 addition & 1 deletion js/src/jupyter-leaflet.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ var LeafletMarkerClusterModel = LeafletLayerModel.extend({
var LeafletLayerGroupModel = LeafletLayerModel.extend({
defaults: _.extend({}, LeafletLayerModel.prototype.defaults, {
_view_name : 'LeafletLayerGroupView',
_view_name : 'LeafletLayerGroupModel',
_model_name : 'LeafletLayerGroupModel',
layers : []
})
}, {
Expand Down

0 comments on commit f999f64

Please # to comment.