Community Questions & Answers
rightButton doesn't show image in annotation on android
Hi, here is my code : ~~~~~~ var boutique = MapModule.createAnnotation({ latitude: locations[i].latitude, longitude: locations[i].longitude, pincolor: MapModule.ANNOTATION_RED, rightButton: '/images/flecheDroite.png', ...
map current geo location gives error in android ?
i am using geolocation for getting current position of the user . in IOS it works fine , but in android it show an error like cannot read property 'longitude' of undefined. i search in google and in this Q/A community but not get perfect answer. error is...
Select an annotation programmatically.
I wanna select/highlight an annotation programmatically by using the myid. Is it workable? maybe something like : mapview.selectAnnotation({myid:'123'}); ~~~ aPin = Titanium.Map.createAnnotation({ latitude: 10.0000, longitude: 10.0000, title:...
Titanium Mobile Web Architecture
Do we have a Titanium Mobile Web Architecture as Titanium Architecture? If it is there can you explain about it. How it works with a diagram?
How to make only annotation title clickable
I am currently fighting with a map. What I would like to achieve is click on the annotation and get the title and subtitle [no problem with this] and then when I click on the title/subtitle region to fire event 'A'. Only on the title click [that is what I...
sliding
Hi all i had written the following code ~~~ function slide(e){ var anim1 = Ti.UI.createAnimation({ left: -320, duration: 1000 }); var anim2 = Ti.UI.createAnimation({ left: 0, duration: 1000 }); ...
MAPVIEW
how to make a mapview which has a static destination latitude and longitude with dynamic user location??
shadow property not working for label
_ "#label":{ height:"40dp", width:"50%", color:"blue", backgroundColor:"white", shadowColor:"black", shadowOffset:{x:0,y:10}, shadowRadius:6 } _ ~~~ <Label id="label"...
Wrap annotation title text?
Im not finding a way to wrap the title text of an annotation ...is it even possible?..I even tried to split the title and use a \n , \r or \r\n characters and mash the strings together but its not working. Has anyone found a solution when your title is...
marker animation on map - how somebody built a workaround?
As far as I can see there is no way to animate the movement of a pin on a map. However did anybody produce a workaround, such as displaying the annotations and animating them on a view which is overlapped on the map view, so it gives the impression the...
Ti.Map.Annotation leftButton shows past settings
Hi, in my app I have a map with multiple type of pins, one type has a leftButton image, the others dont. they are all created in one functions which sets the different parameters and uses only local variables. everything works as expected, but on the...
Hide map annotation title
I have a click event on a map annotation to pull up an overlay, but the tooltip that brings up the title on the annotation comes up on click. If I do a deselct annotation on the map right after I click it, my click event gets run twice. I remove the title...
Opening a detailview from annotationview - Android.
Im having problem opening a detailview, another window, from an annotationview in Android. This code works fine for IOS but in Android it will not open, no API connection. SDK 3.1.0GA Android ver 2.3 - 4.2...
how to add action on right button in annotation
Im trying to add action on right button but it doesn't work can someone help me please... ~~~ var annotation = Titanium.Map.createAnnotation({ animate : true, hasChild:true , pincolor :...
Rotate Annotation Image
I need to rotate the image on an annotation. I have tried doing a 2Dmatrix on an ImageView and then doing .toImage() of the imageview for the image property of the annotation, but it doesn't rotate the image, it just shows the image in it's original...
Database get record problem
I want to get the record from database to create map annotation , I can only success with 2 record with 2 column, if I add more column. It will have error that force to close ? What is wrong of this? PS. My database have 2 record with 5 column (latitude,...
Multiple annotation with SearchBar address Problem
I m developping an application in which i want to search an adress and create restaurants annotations near my location in map,Here is my code: ~~~ win1 = Titanium.UI.createWindow ({ backgroundColor:'#000', title: 'Window', ...
Multple annotation Problem
Hi, Here is my code, i m developping an application that detect the restaurant near you, this is working fine, but the problem is that i can only detect one annotation in map, i want a multiple annotations showing on map ~~~ win1 =...
How to add an new annotations on mapview with a click?
I have found some sample code. But most of them not work properly. Can anyone help me?
Dynamic annotation json problem
Here is my code, first it tells me that annotations is not defined and when i delete this line, application is closed. here is my code: ~~~ Titanium.Geolocation.distanceFilter = 10; var win1 = Titanium.UI.createWindow({ title:'Window', ...
How to delete an array of Annotations
Hi, I'm having lots of trouble removing an array of annotations on my mapview. I already asked about it in this [thread](http://developer.appcelerator.com/question/146709/fetching-annotation-data-from-sqlite-database) earlier today, but decided to start a...
How can I insert the annotation's coordinate into database?
I am using SQLite for my application, I want to save the annotation's latitude and longitude into database. However, after inserting, I cant find any change for my database. I am very confuse now. Can anyone help me to solve the problem? Here is my...
Try to create pins based on JSON data
Hi, My question is, It is possible to create a searchbar to write an address, and when tap a button, an annotation is placed on a map? Thanks
How can I save the annotation information into database and retrieve on the map?
When I click on the map, I will add an annotation on it. However how can I save the information such as latitude and longitude into database so that after I close the application. It still can retrieve on the map? Here is my code now. var win =...
How to drag & drop the map annotation on Titanium-Android
I am using the map view on Android with annotation but not able to drag the pin. i think draggable:true, property not working on Android. I am using the titanium sdk 2.1.1 Please help me out .
Hide bubble view,which is showing title and subtitle of place.
Hi, How can I hide bubble view ,which comes whenever you select any annotation of MapView ,like in IOS we have property name canShowCallOut = No.here we have any property where we can hide that. Thanks
search bar and google map annotation
Hi, I create a serachbar with a tableview, i can detect places , i created also a map , i want when i write the name of a place in my search bar, an annotation is placed in the map, here is my code: ~~~ win1 = Titanium.UI.createWindow ({ ...
customView@Ti.Map.Annotation doesn't work
Hello, since v3 I see a new property of [annotation](http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Map.Annotation). Here my code: ~~~ exports.start = function(line) { var customView = Ti.UI.createView({ backgroundImage :...
zIndex of annotations
Hi, first I add the stations, then routes and finally the busses:  But if you can see, the bus is partial under the station. How can I solve. The object annotation has no...
MapView Annotation Draggable Functionality
I was hoping someone has found a working draggable annotation code for Titanium 1.6? I couldn't get the code yury wrote to work for me, and troubleshooting that code is a bit out of my league. Anyone know where I should start if I wanted to make map pins...
toImage() for maps annotations on Alloy
Hey there. I'm trying to make a custom annotation image using a view and the toImage() method. However, I can't find a way to make it work properly. I'm trying to accomplish this with Alloy, SDK 3.0.2 and testing it on Android. Here's some...
Message: Uncaught ReferenceError: annotation is not defined
I have this code and there is an error that can't read the variable annotation... // Map annotation... var xhr = Ti.Network.createHTTPClient({ onload: function() { json = JSON.parse(this.responseText); var j; for (j = 0; j < json.length; j++)...
Touch google maps Android Application
hi, I just wanna ask if it is possible to touch a point in google maps to indicate a location et create annotation
rightButton in Annotation is not visible in Android
Hi, I have added right and left button in Annotation in mapView. but the problem is the right button is not visible. Left button is visible in Android. The code works fine in iphone. what will be the problem, is the mapKit is buggy??? here is my...
MapView, how to hide popup, but still receive click event
Hi, Is there a way to hide the annotation popup, but still detect the click event? I want to create a custom overlay graphic when a user clicks on a pin. I've noticed that popup doesnt appear if I dont specify the title, but that also prevents click...
Show/Hide Annotations in a mapview ~ Android
Hello all. I am currently working with fellow students to make an android app that will track the position of our campus shuttles as they go along their routes. On the mapview we've created, there are a few annotations that mark our parking lots and other...
display remote image as pin annotation on MapModule (Google Map API V2)
Hello, I have recently migrate from Titanium.Map to MapModule (ti.map module, for Google Map API V2), downloaded at https://marketplace.appcelerator.com/apps/5005?1344321916 I have problems adding custom image as annotation, it doesn't work as before. I...
Android Google - Drag & Drop annotation
Hi there, I want to share a little exemple to create a google map on android phones that handle the drag & drop for annotations. At the moment this functionnalitie doesn't work on the native map for android phone (feel free to prove me wrong ;) ), so...
Remote image on a mapview annotation
I cannot get an image to appear on the map annotations. I'm sure it's something simple. (Developing for iOS using latest (3.1) Titanium everything.) I've tried setting the leftButton to a remote URL (as the doc's suggest), I've tried setting both...
Load dynamic Images as pin image of annotation on map view
Hi, I am implementing map view in my project and I am showing annotations on this map view. now I want to use images for annotations image. I am able to do this with local images that are already stored in my filesystem. so my question is that "is it...
Issues adding dynamic annotations for SQLite to an iOS MapView
Hi folks, Just a quick one, and most likely a schoolboy error on my part here. Just trying to grab a handful of data points from my onboard SQLite database in my app and display them on my MapView for an iPad application with annotations. Anyone see why...
how can i delete from database in alloy?
how can i delete and make edit in text in database working with alloy ?! i wont codes
Custom annotation BALLOON
Hello, i am developing a mobile app for iOS and Android (Titanium 3.0.2) that uses maps and annotations. It already uses customized pins, but we also need to customize annotation balloons. I already tried setting a custom view as "leftView" or...
Displaying Annotation on Map on viewing region only.
I have locally stored the 1200 anotation data in array. Now I want to add only annotation to region that is presently viewing. When user updates the region this will add new annotations. I know we can implement this in regionupdate method. I want this to...
Why is an annotation with an image so slow
When I have an annotation with an image it is super slow to load about 85 annotations. If I don't use an image, (it defaults to a green circle), then it is just fine. I am on Android and Titanium version 2.1. Even if I use a 1x1 pixel png as the image it...
how to dynamically create Annotations
Hello, I can't see Annotation dynamically with alloy ~~~ <Alloy> <Window id="index"> <View id="mapview" ns="Ti.Map" animate="true" regionFit="true" userLocation="true"...
Adjust Popoverview Place for annotation like Maps application.
Hello Friends, I am currently using popover View for showing detail of map annotation. problem is that my popover is of fixed size so when my annotation is near of any ends of device than half popover cuts down. i need to adjust it like Maps...
Annotation Click Events not working on Android
Using Android 2.3 SDK I have a map with pins. Clicking the pin brings up an annotation, but clicking the annotation does nothing. It works just fine in iOS. Code is below ~~~ var annotation =...
Action on map annotations
Hello, is possible to add a eventlistener to map annotations, if they dont have title/subtitle tag?? i've a custom view to display when an annotation is clicked, something similar to new google maps. but i dont want to show the "title bubble"...
Android mapview annotation properties
How to add a custom leftview image for the annotation in Android map view. Actually i want to display a imageview in leftview of annotation. please advice. thanks in advance.