{"action":"created","issue":{"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1227","repository_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps","labels_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1227/labels{/name}","comments_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1227/comments","events_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1227/events","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1227","id":195981921,"number":1227,"title":"Map center is not working","user":{"login":"yasiramidtech","id":23521283,"avatar_url":"https://avatars.githubusercontent.com/u/23521283?v=3","gravatar_id":"","url":"https://api.github.com/users/yasiramidtech","html_url":"https://github.com/yasiramidtech","followers_url":"https://api.github.com/users/yasiramidtech/followers","following_url":"https://api.github.com/users/yasiramidtech/following{/other_user}","gists_url":"https://api.github.com/users/yasiramidtech/gists{/gist_id}","starred_url":"https://api.github.com/users/yasiramidtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasiramidtech/subscriptions","organizations_url":"https://api.github.com/users/yasiramidtech/orgs","repos_url":"https://api.github.com/users/yasiramidtech/repos","events_url":"https://api.github.com/users/yasiramidtech/events{/privacy}","received_events_url":"https://api.github.com/users/yasiramidtech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-12-16T05:05:47Z","updated_at":"2016-12-16T10:44:56Z","closed_at":null,"body":"I'm using this code for the change center of map.\r\n\r\n```\r\n var evtName = plugin.google.maps.event.MAP_CLICK;\r\n            map.on(evtName, function (latLng) {\r\n                var GOOGLE = new plugin.google.maps.LatLng(24.863610837474504, 67.03837305307388);\r\n                map.setCenter(GOOGLE);\r\n            });\r\n```\r\n\r\nBut i'm getting this error \r\n```\r\nUncaught TypeError: map.setCenter is not a function\r\n    at Map.<anonymous> (controllers.js:1268)\r\n    at HTMLDocument.listener (BaseClass.js:55)\r\n    at Map.BaseClass.self.trigger (BaseClass.js:43)\r\n    at Map._onMapEvent (Map.js:861)\r\n    at Map.nativeCallback (googlemaps-cdv-plugin.js:267)\r\n    at Object.fireDocumentEvent (cordova.js:235)\r\n    at <anonymous>:1:9\r\n```"},"comment":{"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/comments/267567279","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1227#issuecomment-267567279","issue_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1227","id":267567279,"user":{"login":"xemox","id":5990702,"avatar_url":"https://avatars.githubusercontent.com/u/5990702?v=3","gravatar_id":"","url":"https://api.github.com/users/xemox","html_url":"https://github.com/xemox","followers_url":"https://api.github.com/users/xemox/followers","following_url":"https://api.github.com/users/xemox/following{/other_user}","gists_url":"https://api.github.com/users/xemox/gists{/gist_id}","starred_url":"https://api.github.com/users/xemox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xemox/subscriptions","organizations_url":"https://api.github.com/users/xemox/orgs","repos_url":"https://api.github.com/users/xemox/repos","events_url":"https://api.github.com/users/xemox/events{/privacy}","received_events_url":"https://api.github.com/users/xemox/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T10:44:56Z","updated_at":"2016-12-16T10:44:56Z","body":"Any error on console? I've copy paste and fix partial of your code and running it. Any area on map where I click, it will go to \"karachi\" as expected."}}
{"actor":{"display_login":"xemox"}}