{"action":"created","issue":{"url":"https://api.github.com/repos/Mapwize/mapwize-android-sdk/issues/3","repository_url":"https://api.github.com/repos/Mapwize/mapwize-android-sdk","labels_url":"https://api.github.com/repos/Mapwize/mapwize-android-sdk/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Mapwize/mapwize-android-sdk/issues/3/comments","events_url":"https://api.github.com/repos/Mapwize/mapwize-android-sdk/issues/3/events","html_url":"https://github.com/Mapwize/mapwize-android-sdk/issues/3","id":160819399,"number":3,"title":"Uncaught ReferenceError when calling MapView#getVenueWithAlias","user":{"login":"jcyu0208","id":3261988,"avatar_url":"https://avatars.githubusercontent.com/u/3261988?v=3","gravatar_id":"","url":"https://api.github.com/users/jcyu0208","html_url":"https://github.com/jcyu0208","followers_url":"https://api.github.com/users/jcyu0208/followers","following_url":"https://api.github.com/users/jcyu0208/following{/other_user}","gists_url":"https://api.github.com/users/jcyu0208/gists{/gist_id}","starred_url":"https://api.github.com/users/jcyu0208/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcyu0208/subscriptions","organizations_url":"https://api.github.com/users/jcyu0208/orgs","repos_url":"https://api.github.com/users/jcyu0208/repos","events_url":"https://api.github.com/users/jcyu0208/events{/privacy}","received_events_url":"https://api.github.com/users/jcyu0208/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-17T06:17:37Z","updated_at":"2016-06-17T07:34:58Z","closed_at":null,"body":"Hello,\r\n\r\nI'm using the sample application provided and tried to make a request to get a venue with alias using this in onCreate of MainActivity\r\n\r\n```java\r\n protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        ....\r\n\r\n        Exception exception = new Exception();\r\n        mapview = (MWZMapView) this.findViewById(R.id.mwzview);\r\n        mapview.setListener(this);\r\n\r\n        mapview.getVenueWithAlias(\"test_alias\", new VenueCallbackInterface() {1\r\n            @Override\r\n            public void onResponse(MWZVenue venue) {\r\n\r\n            }\r\n        });\r\n    }\r\n```\r\n\r\nIn the xml file, I've set the appropriate API Key provided in the dashboard.\r\n\r\nHowever, I keep getting this error: \r\n```\r\n06-17 14:13:52.500 11670-11670/io.mapwize.example D/onJsConsoleCallback: Javascript console message - ERROR : Uncaught ReferenceError: Mapwize is not defined\r\n06-17 14:13:52.501 11670-11670/io.mapwize.example I/chromium: [INFO:CONSOLE(1)] \"Uncaught ReferenceError: Mapwize is not defined\", source:  (1)\r\n```\r\n\r\nMay I ask if there's any additional setup needed?\r\n\r\nEdit: The version I'm using is 1.5.0"},"comment":{"url":"https://api.github.com/repos/Mapwize/mapwize-android-sdk/issues/comments/226701086","html_url":"https://github.com/Mapwize/mapwize-android-sdk/issues/3#issuecomment-226701086","issue_url":"https://api.github.com/repos/Mapwize/mapwize-android-sdk/issues/3","id":226701086,"user":{"login":"mathieugerard","id":815928,"avatar_url":"https://avatars.githubusercontent.com/u/815928?v=3","gravatar_id":"","url":"https://api.github.com/users/mathieugerard","html_url":"https://github.com/mathieugerard","followers_url":"https://api.github.com/users/mathieugerard/followers","following_url":"https://api.github.com/users/mathieugerard/following{/other_user}","gists_url":"https://api.github.com/users/mathieugerard/gists{/gist_id}","starred_url":"https://api.github.com/users/mathieugerard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathieugerard/subscriptions","organizations_url":"https://api.github.com/users/mathieugerard/orgs","repos_url":"https://api.github.com/users/mathieugerard/repos","events_url":"https://api.github.com/users/mathieugerard/events{/privacy}","received_events_url":"https://api.github.com/users/mathieugerard/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T07:34:58Z","updated_at":"2016-06-17T07:34:58Z","body":"This issue comes from the fact that the MWZMapView is not fully loaded at the moment getVenueWithAlias is called, and this causes issues.\r\nTo solve this problem, the listener callback onMapLoaded has been added in the 1.6.0 version of the SDK. All map methods can be safely called after that callback has been triggered.\r\nHope this helps\r\n\r\n\r\n"}}
{"actor":{"display_login":"mathieugerard"}}