Skip to content

Commit

Permalink
fix: cast this.get_options to support @types/leaflet@1.9.9
Browse files Browse the repository at this point in the history
  • Loading branch information
iisakkirotko committed Apr 11, 2024
1 parent 32e94db commit 77e7670
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/jupyter_leaflet/src/layers/Circle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class LeafletCircleView extends LeafletCircleMarkerView {
obj: Circle;

create_obj() {
this.obj = L.circle(this.model.get('location'), this.get_options());
this.obj = L.circle(this.model.get('location'), this.get_options() as L.CircleOptions);
}

model_events() {
Expand Down
2 changes: 1 addition & 1 deletion python/jupyter_leaflet/src/layers/CircleMarker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class LeafletCircleMarkerView extends LeafletPathView {
obj: CircleMarker;

create_obj() {
this.obj = L.circleMarker(this.model.get('location'), this.get_options());
this.obj = L.circleMarker(this.model.get('location'), this.get_options() as L.CircleMarkerOptions);
}

model_events() {
Expand Down

0 comments on commit 77e7670

Please sign in to comment.