{"action":"created","issue":{"url":"https://api.github.com/repos/naderio/nativescript-google-maps-utils/issues/13","repository_url":"https://api.github.com/repos/naderio/nativescript-google-maps-utils","labels_url":"https://api.github.com/repos/naderio/nativescript-google-maps-utils/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/naderio/nativescript-google-maps-utils/issues/13/comments","events_url":"https://api.github.com/repos/naderio/nativescript-google-maps-utils/issues/13/events","html_url":"https://github.com/naderio/nativescript-google-maps-utils/issues/13","id":354244789,"node_id":"MDU6SXNzdWUzNTQyNDQ3ODk=","number":13,"title":"app crashed when setupMarkerCluster","user":{"login":"weijyewang","id":8890603,"node_id":"MDQ6VXNlcjg4OTA2MDM=","avatar_url":"https://avatars3.githubusercontent.com/u/8890603?v=4","gravatar_id":"","url":"https://api.github.com/users/weijyewang","html_url":"https://github.com/weijyewang","followers_url":"https://api.github.com/users/weijyewang/followers","following_url":"https://api.github.com/users/weijyewang/following{/other_user}","gists_url":"https://api.github.com/users/weijyewang/gists{/gist_id}","starred_url":"https://api.github.com/users/weijyewang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weijyewang/subscriptions","organizations_url":"https://api.github.com/users/weijyewang/orgs","repos_url":"https://api.github.com/users/weijyewang/repos","events_url":"https://api.github.com/users/weijyewang/events{/privacy}","received_events_url":"https://api.github.com/users/weijyewang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-08-27T09:23:48Z","updated_at":"2018-10-17T08:43:03Z","closed_at":null,"author_association":"NONE","body":"I'm trying to enable clustered marker in android using angular 6.\r\n\r\nMy code was rather simple, and I had no idea when the app crashed (it exited to the emulator home screen automatically) when it ran this line of code\r\n`GoogleMapsUtils.setupMarkerCluster(this.mapView, markerSet);`\r\n\r\n\r\nHere's the code snippet:\r\nimport section:\r\n\r\n```\r\nimport { MapView, Marker, Position } from 'nativescript-google-maps-sdk';\r\nimport * as GoogleMapsUtils from \"nativescript-google-maps-utils\"\r\n\r\n```\r\ninside the function\r\n```\r\nlet markerSet = [];\r\nthis.journeys.forEach(journey => {\r\n\tlet theMarker: Marker = new Marker();\r\n\ttheMarker.position = Position.positionFromLatLng(journey.latitude, journey.longitude);\r\n\ttheMarker.title = journey.vehicleRegistrationNumber;\r\n        theMarker.snippet = journey.vehicleRegistrationNumber;\r\n\tmarkerSet.push(theMarker);\r\n});\r\n\r\nsetTimeout(() => {\r\n\tGoogleMapsUtils.setupMarkerCluster(this.mapView, markerSet);\r\n\tthis.zoomCenterOnMultipleMarkers();\r\n}, 1000)\r\n```\r\n\r\nDoes anyone get it to working on angular? Please help"},"comment":{"url":"https://api.github.com/repos/naderio/nativescript-google-maps-utils/issues/comments/430542131","html_url":"https://github.com/naderio/nativescript-google-maps-utils/issues/13#issuecomment-430542131","issue_url":"https://api.github.com/repos/naderio/nativescript-google-maps-utils/issues/13","id":430542131,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDU0MjEzMQ==","user":{"login":"weijyewang","id":8890603,"node_id":"MDQ6VXNlcjg4OTA2MDM=","avatar_url":"https://avatars3.githubusercontent.com/u/8890603?v=4","gravatar_id":"","url":"https://api.github.com/users/weijyewang","html_url":"https://github.com/weijyewang","followers_url":"https://api.github.com/users/weijyewang/followers","following_url":"https://api.github.com/users/weijyewang/following{/other_user}","gists_url":"https://api.github.com/users/weijyewang/gists{/gist_id}","starred_url":"https://api.github.com/users/weijyewang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weijyewang/subscriptions","organizations_url":"https://api.github.com/users/weijyewang/orgs","repos_url":"https://api.github.com/users/weijyewang/repos","events_url":"https://api.github.com/users/weijyewang/events{/privacy}","received_events_url":"https://api.github.com/users/weijyewang/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T08:43:03Z","updated_at":"2018-10-17T08:43:03Z","author_association":"NONE","body":"@sedrak1987  \r\n1. Fork this project in Github\r\n![image](https://user-images.githubusercontent.com/8890603/47073704-726d6a00-d22b-11e8-98ae-ee313293a6ba.png)\r\n2.  Do whatever changes neccessary like what @fawadmukhtar  suggested in your forked new repo.\r\n3. Publish to npm or Nativescript  plugin market (https://docs.nativescript.org/plugins/building-plugins#step-4-publish-your-plugin)\r\n4. Install back your published version."}}
{"actor":{"display_login":"weijyewang"}}