Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rrose-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ L.Rrose = L.Popup.extend({
}

// Set the pixel distances from the map edges at which popups are too close and need to be re-oriented.
var x_bound = 80, y_bound = 80;
var x_bound = this.options.x_bound || 80, y_bound = this.options.y_bound || 80;
// Determine the alternate direction to pop up; north mimics Leaflet's default behavior, so we initialize to that.
this.options.position = 'n';
// Then see if the point is too far north...
Expand Down