{"action":"created","issue":{"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1845","repository_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps","labels_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1845/labels{/name}","comments_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1845/comments","events_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1845/events","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1845","id":269538776,"number":1845,"title":"Cannot access to the 'fromPointToLatLng' method.","user":{"login":"caereservices","id":4161010,"avatar_url":"https://avatars2.githubusercontent.com/u/4161010?v=4","gravatar_id":"","url":"https://api.github.com/users/caereservices","html_url":"https://github.com/caereservices","followers_url":"https://api.github.com/users/caereservices/followers","following_url":"https://api.github.com/users/caereservices/following{/other_user}","gists_url":"https://api.github.com/users/caereservices/gists{/gist_id}","starred_url":"https://api.github.com/users/caereservices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caereservices/subscriptions","organizations_url":"https://api.github.com/users/caereservices/orgs","repos_url":"https://api.github.com/users/caereservices/repos","events_url":"https://api.github.com/users/caereservices/events{/privacy}","received_events_url":"https://api.github.com/users/caereservices/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-10-30T09:54:31Z","updated_at":"2017-10-30T16:27:20Z","closed_at":null,"author_association":"NONE","body":"BaseClass.js:116 Cannot access to the 'fromPointToLatLng' method.\r\nerrorHandler @ BaseClass.js:116\r\n(anonymous) @ googlemaps-cdv-plugin.js:754\r\nsetTimeout (async)\r\ncommandQueue.push.args @ googlemaps-cdv-plugin.js:753\r\ncallbackFromNative @ cordova.js:296\r\n(anonymous) @ VM304:1\r\n\r\nThis following code cause errors:\r\n\r\nfunction touchStartEvt(e) {\r\n   e.preventDefault();\r\n   var x = e.pageX - this.offsetLeft;\r\n   var y = e.pageY - this.offsetTop;\r\n   map.fromPointToLatLng([x, y], function(LatLng) {\r\n      map.addPolyline({\r\n         'points': [new plugin.google.maps.LatLng(LatLng[0], LatLng[1])],\r\n         'color' : '#c0392b',\r\n         'width': 3\r\n      }, function(polyline) {\r\n         polyGlobal = polyline;\r\n         div.addEventListener(\"touchmove\", touchMoveEvt, true);\r\n         div.addEventListener(\"touchend\", touchEndEvt, true);\r\n      });\r\n   });\r\n}\r\n\r\nmap is defined like a GLOBAL variable and other functions/methods working correctly\r\n\r\nI work with this software version\r\n\r\ncordova 7.1.0\r\nandroid 6.3.0\r\nios 4.5.2\r\ncordova-plugin-googlemaps  2.0.11\r\n\r\nFYI: this problem occours on iOS platform also\r\n"},"comment":{"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/comments/340501096","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1845#issuecomment-340501096","issue_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1845","id":340501096,"user":{"login":"wf9a5m75","id":167831,"avatar_url":"https://avatars3.githubusercontent.com/u/167831?v=4","gravatar_id":"","url":"https://api.github.com/users/wf9a5m75","html_url":"https://github.com/wf9a5m75","followers_url":"https://api.github.com/users/wf9a5m75/followers","following_url":"https://api.github.com/users/wf9a5m75/following{/other_user}","gists_url":"https://api.github.com/users/wf9a5m75/gists{/gist_id}","starred_url":"https://api.github.com/users/wf9a5m75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wf9a5m75/subscriptions","organizations_url":"https://api.github.com/users/wf9a5m75/orgs","repos_url":"https://api.github.com/users/wf9a5m75/repos","events_url":"https://api.github.com/users/wf9a5m75/events{/privacy}","received_events_url":"https://api.github.com/users/wf9a5m75/received_events","type":"User","site_admin":false},"created_at":"2017-10-30T16:27:20Z","updated_at":"2017-10-30T16:27:20Z","author_association":"OWNER","body":"You can't share your project files?, then I can't help you. Because there is no problem on my side. I'm so busy. I don't have enough time with hidden code."}}
{"actor":{"display_login":"wf9a5m75"}}