-
Notifications
You must be signed in to change notification settings - Fork 94
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
Angular 2 registerElement XML not setting property #45
Comments
Maybe some progress:
But now there is no map (blank screen) |
The second approach works on android, not work on IOS. Don't know if is related:
|
Unfortunately that's a useless stacktrace (as usual on iOS). Can you try |
Correction the first approach works on android. Removing and adding ios do not work Example project: https://github.com/giovannicandido/tns-example |
I ran @giovannicandido's example; besides the above logs, there was a failed http call logged on my run: Nov 6 09:56:06 Jerics-MacBook-Pro tnsexample[5338]: CONSOLE INFO file:///app/app.component.js:17:21: AfterViewInit |
@lorcanfurey The log don't say what file is missing but I suspect that is the side-drawer-content.css (should be copied as side-drawer-content.platform.css to side-drawer-content.css) I going to check on that |
Make sure you're not using properties on the map component that are not explicitly listed in the readme (so stuff like id, row, etc need to go). You can control layout by wrapping the component in a <Page id="page"
xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:map="nativescript-mapbox"
xmlns:FAB="nativescript-floatingactionbutton" loaded="loaded">
<StackLayout height="100%">
<ContentView height="100%">
<map:Mapbox
latitude="39.8282"
longitude="-98.5795"
accessToken="your-key">
</map:Mapbox>
</ContentView>
</StackLayout>
</Page> |
Btw, you'll want to update to 2.2.3 as there was a little bug in the previous version for showing XML maps on iOS when not using the |
I guess that the xml with angular2 is not setting the accessToken property:
The map load in black with the message: Please set the 'accessToken' property because now the map will be entirely black :)
The text was updated successfully, but these errors were encountered: