Created
March 29, 2015 06:00
-
-
Save zpratt/bc28f1d36da2eea584e3 to your computer and use it in GitHub Desktop.
Custom Overlay - Define constructor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function BaseOverlay(options) { | |
var point = options.point; | |
this.el = options.el; | |
this.point = new google.maps.LatLng(point.lat, point.lng); | |
this.el.style.position = 'absolute'; | |
} | |
BaseOverlay.prototype = Object.create(google.maps.OverlayView.prototype); | |
BaseOverlay.prototype.constructor = BaseOverlay; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment