Discussion Forums  >  Uncategorized

Replies: 1    Views: 187

Dimitrios
Aspiring developer
Profile
Posts: 1
Reg: Nov 08, 2011
location unknow...
10
11/10/11 07:34 AM (14 years ago)

Source Code Latitude, Longitude and the Default Zoom

Hello all , i want to ask if it is possible to change the Latitude, Longitude and the default Zoom from the source code ? Thank you
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/10/11 10:53 AM (14 years ago)
Sure. iOS? Android? You could simpy hard-code the values in the map screen controller if you think it's best. Keep in mind that if you do this you'll have the same value in all the maps because all the maps in your app share the same controller. For iOS have a look at BT_screen_map.m, it's BT_screen_map.java in android. Search for defaultZoom and find where it's using the value from the JSON data in the project. Oh, wait, I see you're not on the Early Adopter list so you must be using v1.4. Same idea in v1.4 as in v1.5 but I don't remember the names of the controllers. In iOS it's probably an individual folder in the Xcode project called 'maps' or something.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.