Skip to content

Commit

Permalink
fix(OverlayView): add invariant for mapPaneName
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchentw committed Aug 18, 2015
1 parent 757bda0 commit f102577
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/creators/OverlayViewCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export default class OverlayViewCreator extends Component {

overlayView._mountContainerToPane = function () {
const mapPaneName = this.get("mapPaneName");
invariant(!!mapPaneName, "OverlayView requires a mapPaneName/defaultMapPaneName in your props instead of %s", mapPaneName);

this.getPanes()[mapPaneName].appendChild(this._containerElement);
};

Expand Down

0 comments on commit f102577

Please sign in to comment.