Skip to content

Commit

Permalink
changes suggested in jupyter-widgets#339
Browse files Browse the repository at this point in the history
  • Loading branch information
fitoprincipe committed Apr 24, 2019
1 parent 95ef9d6 commit 01cd696
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -753,7 +753,7 @@ class MapStyle(Style, Widget):
""" Map Style Widget """
_model_name = Unicode('LeafletMapStyleModel').tag(sync=True)
_model_module = Unicode("jupyter-leaflet").tag(sync=True)
cursor = Unicode(help='Cursor type').tag(sync=True)
cursor = Unicode('move', help='Cursor type').tag(sync=True)


class Map(DOMWidget, InteractMixin):
Expand Down
5 changes: 3 additions & 2 deletions js/src/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var LeafletMapModel = widgets.DOMWidgetModel.extend({
layers : [],
controls : [],
crs: 'EPSG3857',
style: 'move'
style: null
}),

update_bounds: function() {
Expand Down Expand Up @@ -99,7 +99,8 @@ var LeafletMapModel = widgets.DOMWidgetModel.extend({
}, {
serializers: _.extend({
layers : { deserialize: widgets.unpack_models },
controls : { deserialize: widgets.unpack_models }
controls : { deserialize: widgets.unpack_models },
style : { deserialize: widgets.unpack_models }
}, widgets.DOMWidgetModel.serializers)
});

Expand Down

0 comments on commit 01cd696

Please sign in to comment.