-
Notifications
You must be signed in to change notification settings - Fork 23
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
bug annotation #22
Comments
+1 I know it's an old thread, but I got the same problem. var Map = require('com.polancomedia.mapbox');
var mapFile = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory, 'custom-world-6.mbtiles');
Ti.App.Map = Map.createView({
map: mapFile,
minZoom: 0,
maxZoom: 6,
zoom: 2,
accessToken: 'xxxxx', //REQUIRED!!!
centerLatLng: [37.322831,7.490234],
width: Ti.UI.FILL,
height: Ti.UI.FILL,
hideAttributes: true,
userLocation: true
});
var a1 = Map.createAnnotation({
latitude: 18.467354,
longitude: -91.903534,
title: "Test Title",
subtitle: "Subtitle"
});
Ti.App.Map.addAnnotation(a1); // Crashes here With the following error code when adding a annotation: *** -[__NSCFConstantString stringByAppendingString:]: nil argument Using Titanium SDK 5.3.1.GA and iOS 9.3 |
@ilker55 I've come across the same issue. |
@Abdelalim-dev When I use |
To be on the same page make sure you are using the same map module I'm using (ti.map). |
To solve the issue of annotations not showing on the map (Android) I used a custom view instead of a simple image like so:
You can then add the annotation to the map. |
But i'm using the map-box module (com.polancomedia.mapbox) so ti.map annotations don't work. |
Hello,
I try to add annotations on my mapView, but it doesn't work.
Here the simple code : http://pastebin.com/hjFfCaZE
Error : "nil argument" ... Ok but what argument?
Do you have any idea how to resolve this?
Thanks!
The text was updated successfully, but these errors were encountered: