Skip to content

Instantly share code, notes, and snippets.

@zpratt
Created March 29, 2015 06:10
Show Gist options
  • Save zpratt/d2310a9cd8f9618a3b56 to your computer and use it in GitHub Desktop.
Save zpratt/d2310a9cd8f9618a3b56 to your computer and use it in GitHub Desktop.
Custom Overlay - Define onAdd method
BaseOverlay.prototype.onAdd = function () {
var panes = this.getPanes();
panes.overlayLayer.appendChild(this.el);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment