Community Questions & Answers
Android Application crashes badly on adding mapview.
I am trying to create a mapview in tabbar window but my application crashes badly whenever I try to add mapview. I even try to add to add a view and add my mapview onto it and add that view onto window but application is still crashes sometime randomly. My...
left button click doesn't work on Android...?
Hi All. I would really love some help with this little strange issue. I have a mapView with 3 annotations which each should return a different value, close the view and open another view when the user clicks the leftButton. It works fine on iPhone but on...
Android Google maps ver 2, Google Play services out of date
Is anyone else getting this error message from the Android Maps Module? 05-22 14:51:36.347: W/GooglePlayServicesUtil(11144): Google Play services out of date. Requires 2012100 but found 1015
android maps v2 is blurred
Hi, here is my code. it seems ok but the map is blurred ? have i missed anything ? ~~~~~ function displayMapForAndroid(locations){ var currentLatitude, currentLongitude; Ti.Geolocation.getCurrentPosition( function...
Android generate route on mapview
I've gt a few question to ask: 1) Does generating route works on android? according to this link (https://wiki.appcelerator.org/display/guides/Native+Maps+and+Annotations) ,route is for iOS only. 2) If answer to above question is yes, what must i...
Mobile Map route from google server
Hello. I am trying to make a map that will display a route that is not stored on the phone, but one that is received from a service. I have some experience at this using this...
Alloy view xml attribute : ns
I have read "ns" in the example of Alloy mapping. What does it mean? here is the code. ("ns" is in line 2.) ~~~ <Alloy> <View ns="Ti.Map" id="map" mapType="Ti.Map.STANDARD_TYPE"> ...
Google Map v2 3.1.0GA it.map
I’ve successfully installed the it.map module and IDE can find it correctly. But the module won’t work. Both Web Browser and Android Device crashed. Web Browser: Uncaught TypeError: Cannot read property 'NORMAL_TYPE' of undefined at /app.js (line...
Android Map Module v2 - Latest version crashes (2.1.0)
Hello, I'm working with Android Map Module v2 and the latest version which can be found here: https://github.com/appcelerator/titanium_modules/tree/master/map/mobile/android The app is crashing with the following error: ~~~ 04-05 14:39:41.130:...
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...
How to limit the zoom on Google Maps v2 and iOS maps?
Hi All, I'm working with maps on both iOS and Android. I've gone through the docs and I don't see anything that appears to address this need. I have as a goal to display locations in a way that supplies strictly high level information- nothing too...
Map with Pins using ImageViews
Hi, I am currently trying to create a map with over-layed pins using Titanium. Similar to how Google Maps looks. Below is a simplified view of my Alloy page layout: ~~~ <Alloy> <Window id="Map"...
Android: Google Maps V2 Tiles Only Load the First Time Mapview is Rendered
Hi, I recently upgraded our app to use Google Maps V2 in Android. Everything seems to be setup correctly now and when the map is first loaded it renders normally -- tiles load and the map is moved to the specified lat and long. When the user starts...
Google Maps V2 in Android: Empty Map View
SDK 3.1.0.GA, T-Mobile G2 device I created debug and release API Keys using the Google Console, installed the maps module successfully, added the API Keys to tiapp.xml, and now when I create a map view it is empty. The only things visible are the zoom...
Map setCenter() does nothing
~~~ $.companyMap.setCenter({x: jobLat, y: jobLng}); ~~~ jobLat and jobLng contain values like 50.30 depending on where a location is. But the setCenter function doesn't change the center of the map. I'm using the latest SDK and Titanium alloy
How to submit a bug to Titanium: setRegion not working on Ti.Map
Hi guys, setRegion() is throwing "Invalid Region" on real devices (not the simulator). This is a bug that breaks functionality in my app and it needs to be listed as a bug in titanium. Is there a guide on how to submit this?
Geolocation - Check if user is in circle
I'm working on a Titanium Project and need to check on a map if the current location is in the circle / radius of an annotation. When this state is true my app has to fire an event. I'm looking for a solution something similar to this:...
Titanium.map Issue
The Titanium Maps module uses version 1 of Google Maps. Google is no longer providing api keys for version 1. The Maps module mentions needing to use a new plugin for Android, in order to use version2 of Google Maps, but makes no mention of what to do on...
Crete Map, and set location in constructor - not working
~~~ var mapView = Titanium.Map.createView({ //bottom : 0, //top : 0, region : { latitude : 46.776949336547666, longitude : 16.630390014964945, latitudeDelta : 0.001, longitudeDelta : 0.001 }, mapType :...
Map view remains blank Android
Hi, I am developing an application where I need to use the map view. The app is a mobile app for both the iOS and Android. As you know using a map view in iOS is quite simple. I am having problems in Android. The map view shows but it remains blank. Only...
MapView is no working in my APP
Hi All, I am developing an application in which i include Mapview in currentWindow.. first time it is working. but when i want to see ot again it throws an exception. java.lang.IllegalStateException: MapView already created. Android can support one...
user location near a annotation
Im building an app with titanium and i am creating multiple annotations on a google map. My question is if somehow i can check if user location is near an annotation and lets say fire an alert. Is this possible? In a similar project with javascript i was...
Google Maps V2 module crashes when view placed in tab group
In my app I have a main screen with a tab group, where I now want to add a "Map" tab. This has worked in tests with 3.0.0 GA previously (on a very simple "Hello world" level...), using the "old" cross-platform Ti.Map (on...
get longitude and latitude from adress
Hi, Is it possible to get latitude and longitude after taping an adresse ? for example : paris.. thanks
Can't make Google Maps v2 work
Evening, I'm using **Titanium SDK 3.1.0.GA** and **Alloy 1.0**. Imported Maps Module 2.1 as well (even if the docs say that it's bundled on SDK 3.1). The only thing I achieve is a blank map, with zoom buttons, just as described...
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...
Google Maps Android API v2 doesn't work with new CLI
Hi, I'm trying to integrate the module for **Google Maps Android API v2** in my android app (what else?). Description ======== I have done every steps explained in these 2 pages : - [Titanium Map...
Google map v2 SDK 3.1.0 GA map appears blanck
Hi guys, I've a problem with the new version of Ti.Map. I installed the new titanium sdk 3.1.0GA and I installed manually the new module ti.map-android-2.1.0.zip, because it did not appear in the list of default modules. When I try to put a goole map into...
Google map, serach ACS query and Tab-group ortientaion
I am developing the android app using titanium mobile Sdk 2.X with backend ACS cloud services. I am facing the following issue while developing app 1) I want to implement the Google map in my project. I checked the titanium 2.x map Documentation I...
Map iOS ignoring longitudeDelta
When I create a mapview ~~~ var zoom = 0.05; Ti.API.info("------------- zoom:" + zoom); // zoom = 0.05 var map = Ti.Map.createView({ mapType : Titanium.Map.STANDARD_TYPE, region : { latitude : lat, longitude : lon, latitudeDelta : zoom,...
Does Titanium support drawing overlays on native map view?
In the Google maps javascript library you can draw overlays of arbitrary shapes on the map. See, for example, http://code.google.com/apis/maps/documentation/javascript/overlays.html#Polygons Google maps in the Android SDK has something similar with the...
click event on Map.View does not fire if title property isn't set
I'm using SDK 3.1 and I don't want to display the full annotation when the user clicks on it, I just want to show the pin on the map and detect the click to show an overlay view. In order to do that, I create the annotation without the `title` property. It...
Create a thumbnail of a picture
Hi I created an iPhone app, where you can take pictures and put it on a map. I just want a pin. When you click on it, there should be a thumbnail picture. Is there a way to shrink the picture with Titanium Mobile? Thanks! Felix
Ti.Map Module doesnt run on 3.0.2
hello everyone, I was wondering what I need to do to make the Ti.Map module run on 3.0.2? every piece of literature I find says that 3.0.2 is the min SDK, however the manifest file in the map modules says minsdk 3.1.0. Look at the box on the right side of...
Clickable polygons on maps
Hi, in this [map project](https://github.com/AppWerft/Botanischer-Garten-Hamburg/blob/master/Resources/module/picker.window.js) I'am using `netfunctional.mapoverlay` for polygones on map. Here the screenshot: ![alt...
Google Maps v2 for Android - Map appears blank, only zoom and location buttons appear
In my app I use a view manager that loads content offscreen and then animates the View onscreen by setting the left property. The only way I can get the map to appear is if I also include changing the opacity in the animation call. I created a small Alloy...
Map: Fit Region automatical
Hi, is there a way to set my Map region dynamical by the annotations that are on my map? E.g. i got 5 Annotations and i want my map to fit the screen so all 5 are visible in the window.
Map with Google Json
I hope this helps every one ~~~ var win = Ti.UI.createWindow({ title: 'Map Google' }); var address = Ti.UI.createTextField({ hintText: 'Your Address', top: 60, width: 400, left: 10 }); var ok = Ti.UI.createButton({ title: 'Show Map', top:...
draw route between point A and B in Titanium Android Project
Hi; Here is my code: ~~~ Ti.UI.setBackgroundColor('#000'); var tab1; function decodeLine(encoded) { var len = encoded.length; var index = 0; var array = []; var lat = 0; var lng = 0; while (index < len) { var b; ...
Google Maps v2
Hi, i have read in : http://docs.appcelerator.com/titanium/latest/#!/guide/Google_Maps_v2_for_Android that ti.map module version 2 is available for titanium sdk 3.1 but when i try to added it in tiapp.xml i dont find it... should i configure something...
App crash after google maps web view update
Hi, I have an ipad app for clients geolocalization, I'm using a webview to display google maps(I need google maps not apple maps), the problem is when I update the geolocalization, the app close without any error message. here is my...
Markers can t be deleted in map
Hi, Here is my html code: ~~~ <script> var map; var infowindow; var y= 0.0; var x= 0.0; //var requestback= new array(); function initialize() { alert("x-----"+x+"y-----"+y); var pyrmont = new...
Animate a map with a button!
Hi! Can someone explain me why this code i wrote do not work? When i press the buttom... the map would go down from 200 to 300 in 1 sec, but the code give me an error in the part "tView.animate(anim);" ~~~ var win = Ti.UI.createWindow({title :...
Open external app with titanium!
Hi! I need that when i press a button, it automatically open the google navigator. For example there is a restaurant in one row, i put near it a button witch once pressed asks me "Would you navigate here?" so, in this way, it opens the...
evalJs and HTML
Hi, Here is my Html code, i can open a map but i can't see a marker in my current location, when i fix a value for x and y everything is working fine but if it's not i see only a map without seeing the marker as i said before. ~~~ var map; var...
Titanium maps number of step problem
Hi folks I m using Ti.3.0 for ios and I added map to my application. and I have problem with number of step. route line not following the driving line correctly. I use this...
find out location in 10 km radius from user current location
Hi, can anybody help ,how to put pins on location in map which are in radius of 10 km from current location. I had saved location coordiantes ( latitude-longitude) in local database , how to fetch the location . i am using appcelerator mapview. can...
MapView Animate make it's region change
var mymap = Ti.Map.createView({ mapType : Titanium.Map.STANDARD_TYPE, top : 0, left : 0, right : 0, bottom : 0, userLocation : false, animate : true, regionFit : false }); function getLocation()...
Html and map Problem
I created a web page called index.html and load this web page in my js file like this: ~~~ var webview = Titanium.UI.createWebView ({ top : 0, width : 320, height : 400, url:'index.html' }); ~~~ also in js file i created a map called mapview i...
Map view crashes on first launch
Hi I am currently using Titanium SDK 3.0.0. In my app i am opening a window and adding two views to it : a list view and a map view. The map view is set using the previously acquired current lat, lon. When i install the app for the first time (tested on...