Created
June 28, 2013 16:51
-
-
Save CaptainN/5886163 to your computer and use it in GitHub Desktop.
a backfill for the deprecated google.maps.MarkerImage
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
// Backfill deprecated MarkerImage | |
function MarkerImage(url, size, origin, anchor, scaledSize) | |
{ | |
if (console && console.warn) | |
console.warn("google.maps.MarkerImage is deprecated. Use a vanilla JS Object."); | |
this.anchor = anchor; | |
this.origin = origin; | |
this.scaledSize = scaledSize; | |
this.size = size; | |
this.url = url; | |
} | |
google.maps.MarkerImage = MarkerImage; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment