Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get markers to display #86

Closed
shivapersad opened this issue Feb 21, 2017 · 8 comments
Closed

Unable to get markers to display #86

shivapersad opened this issue Feb 21, 2017 · 8 comments
Milestone

Comments

@shivapersad
Copy link

shivapersad commented Feb 21, 2017

@EddyVerbruggen

I am running "nativescript-mapbox @ 2.5.1". I was able to get the map to show on the Android version but the markers are not appearing and I get the following in my console log:

JS: Unhandled Promise rejection: iconFactory.fromDrawable is not a function ; Zone: ; Task: Promise.then ; Value: TypeError: iconFactory.fromDrawable is not a function TypeError: iconFactory.fromDrawable is not a function
JS: at file:///data/data/org.ngccng.cngApp/files/app/tns_modules/nativescript-mapbox/mapbox.js:510:47
JS: at ZoneDelegate.invoke (file:///data/data/org.ngccng.cngApp/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:190:28)
JS: at Zone.run (file:///data/data/org.ngccng.cngApp/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:83:43)
JS: at file:///data/data/org.ngccng.cngApp/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:449:57
JS: at ZoneDelegate.invokeTask (file:///data/data/org.ngccng.cngApp/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:223:37)
JS: at Zone.runTask (file:///data/data/org.ngccng.cngApp/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:123:47)
JS: at drainMicroTaskQueue (file:///data/data/org.ngccng.cngApp/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:355:35)
JS: Error: Uncaught (in promise): TypeError: iconFactory.fromDrawable is not a function

Any assistance on what is causing this issue is appreciated.

@EddyVerbruggen
Copy link
Collaborator

I've found the cause and fixed this problem in 2.5.2 in issue #80. Thanks for reporting it!

@shivapersad
Copy link
Author

Ok great. I would like to test but presently getting an issue adding the android platform back to my Nativescript application (error: sed: invalid replacement string). Once I get it back up and running I'll test it and let you know.

@EddyVerbruggen
Copy link
Collaborator

OK, I'll publish 2.5.2 to npm shortly.

@shivapersad
Copy link
Author

Ok will try to update the package in a couple hours and see if you've pushed it to npm. By the way do I still need to add

to the AndroidManifest.xml or can I use the previous service?

Thanks.

@EddyVerbruggen
Copy link
Collaborator

The plugin will handle that for you, no need to add it yourself.

@shivapersad
Copy link
Author

Ok great. Thanks! Sorry for being a pain.

@EddyVerbruggen
Copy link
Collaborator

You're not 👍

@shivapersad
Copy link
Author

shivapersad commented Mar 5, 2017

Hey @EddyVerbruggen. I tested the 2.5.2 so my map displays with markers but when I zoom in on an area the app crashes :(. This is only affecting the Android version. iOS is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants