{"action":"created","issue":{"url":"https://api.github.com/repos/googlemaps/v3-utility-library/issues/436","repository_url":"https://api.github.com/repos/googlemaps/v3-utility-library","labels_url":"https://api.github.com/repos/googlemaps/v3-utility-library/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/googlemaps/v3-utility-library/issues/436/comments","events_url":"https://api.github.com/repos/googlemaps/v3-utility-library/issues/436/events","html_url":"https://github.com/googlemaps/v3-utility-library/issues/436","id":331771198,"node_id":"MDU6SXNzdWUzMzE3NzExOTg=","number":436,"title":"MarkerManager: projectionhelper LatLngToPixel failing.","user":{"login":"ericnewton76","id":2211788,"node_id":"MDQ6VXNlcjIyMTE3ODg=","avatar_url":"https://avatars0.githubusercontent.com/u/2211788?v=4","gravatar_id":"","url":"https://api.github.com/users/ericnewton76","html_url":"https://github.com/ericnewton76","followers_url":"https://api.github.com/users/ericnewton76/followers","following_url":"https://api.github.com/users/ericnewton76/following{/other_user}","gists_url":"https://api.github.com/users/ericnewton76/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnewton76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnewton76/subscriptions","organizations_url":"https://api.github.com/users/ericnewton76/orgs","repos_url":"https://api.github.com/users/ericnewton76/repos","events_url":"https://api.github.com/users/ericnewton76/events{/privacy}","received_events_url":"https://api.github.com/users/ericnewton76/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-12T22:06:17Z","updated_at":"2018-07-06T05:37:51Z","closed_at":null,"author_association":"NONE","body":"source is v1.2:\r\nhttps://cdn.rawgit.com/googlemaps/v3-utility-library/markermanager/1.2/markermanager.js\r\n\r\nNote: google.maps.version = '3.33.3'\r\n\r\n```\r\nUncaught (in promise) TypeError: Cannot read property 'fromLatLngToDivPixel' of undefined\r\n    at ProjectionHelperOverlay.LatLngToPixel (markermanager.js:964)\r\n    at MarkerManager.getTilePoint_ (markermanager.js:233)\r\n    at MarkerManager.addMarkerBatch_ (markermanager.js:268)\r\n    at MarkerManager.addMarkers (markermanager.js:404)\r\n```\r\n\r\nProblem is on this line:\r\n```javascript\r\n964: var div = this.getProjection().fromLatLngToDivPixel(latlng);\r\n```\r\n\r\nthe function \"getProjection\" doesn't seem to exist on ProjectionHelperOverlaw nor on the prototype.\r\n\r\nThis looks weird to me:\r\n```\r\n935: ProjectionHelperOverlay.prototype = new google.maps.OverlayView();\r\n```\r\n\r\nare you trying to copy OverlayView's prototype?  Something must've changed in that prototype then, to where there's no getProjection anymore.\r\n"},"comment":{"url":"https://api.github.com/repos/googlemaps/v3-utility-library/issues/comments/402931150","html_url":"https://github.com/googlemaps/v3-utility-library/issues/436#issuecomment-402931150","issue_url":"https://api.github.com/repos/googlemaps/v3-utility-library/issues/436","id":402931150,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjkzMTE1MA==","user":{"login":"ericnewton76","id":2211788,"node_id":"MDQ6VXNlcjIyMTE3ODg=","avatar_url":"https://avatars0.githubusercontent.com/u/2211788?v=4","gravatar_id":"","url":"https://api.github.com/users/ericnewton76","html_url":"https://github.com/ericnewton76","followers_url":"https://api.github.com/users/ericnewton76/followers","following_url":"https://api.github.com/users/ericnewton76/following{/other_user}","gists_url":"https://api.github.com/users/ericnewton76/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnewton76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnewton76/subscriptions","organizations_url":"https://api.github.com/users/ericnewton76/orgs","repos_url":"https://api.github.com/users/ericnewton76/repos","events_url":"https://api.github.com/users/ericnewton76/events{/privacy}","received_events_url":"https://api.github.com/users/ericnewton76/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T05:37:51Z","updated_at":"2018-07-06T05:37:51Z","author_association":"NONE","body":"Following coe to setup ProjectionHelperOverlay prototype works\r\n\r\n```javascript\r\n/**\r\n*   Projection overlay helper. Helps in calculating\r\n*   that markers get into the right grid.\r\n*   @constructor\r\n*   @param {Map} map The map to manage.\r\n**/\r\nfunction ProjectionHelperOverlay(map) {\r\n  \r\n  google.maps.OverlayView.call(this); // call super constructor\r\n  this.setMap(map);\r\n\r\n  var TILEFACTOR = 8;\r\n  var TILESIDE = 1 << TILEFACTOR;\r\n  var RADIUS = 7;\r\n\r\n  this._map = map;\r\n  this._zoom = -1;\r\n  this._X0 =\r\n  this._Y0 =\r\n  this._X1 =\r\n  this._Y1 = -1;\r\n\r\n  \r\n}\r\n/* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create */\r\nProjectionHelperOverlay.prototype = Object.create(google.maps.OverlayView.prototype);\r\nProjectionHelperOverlay.prototype.constructor = ProjectionHelperOverlay;\r\n\r\n```"}}
{"actor":{"display_login":"ericnewton76"}}