Discussion Forums  >  Maps, Device Location, Tracking

Replies: 3    Views: 96

jawdoss
Android Fan
Profile
Posts: 359
Reg: Jun 10, 2012
Gold Coast, Que...
9,090
07/01/12 01:36 AM (13 years ago)

When opening map results in magnifying glass.

When my map loads up in android v1.5, it is zoomed out so far that is shows grey tiles with a magnifying glass with a minus symbol inside of it. I have location all around the world on there, so how do i fix it so that it loads up on a certain location instead of trying to show all. If you need reference to what i am saying, my app is here: https://play.google.com/store/apps/details?id=com.mountainbiking&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5tb3VudGFpbmJpa2luZyJd Regards, Jawdoss
 
rob151
Aspiring developer
Profile
Posts: 40
Reg: Feb 14, 2012
london
2,250
like
07/01/12 10:59 AM (13 years ago)
Hi jawdoss I persume you are developing for android so you need to follow these further instructions: Android Project ------------------------ AN ADJUSTMENT NEED TO BE MADE TO YOUR PROJECT AFTER YOU DOWNLOAD YOUR CODE BEFORE YOU CAN USE MAPS IN ANDROID Before the map will work you'll need to obtain two Google Maps API keys for Google Maps. One is called a Debug key and one a Release key. These do not cost money but do confuse lots of people. It's easy once you get the hang of it. Instructions on how to get the API keys are here: http://code.google.com/android/add-ons/google-apis/mapkey.html After getting your Google Maps API keys, you need to enter them in the projects strings.xml file. This file is included in your project download in the /src/values folder. Open /src/values/strings.xml with a simple text editor, or in Eclipse, then find two entries: googleMapsAPIKeyDebug googleMapsAPIKeyRelease Enter your Google Maps API keys in the appropriate sections. Next, you'll need to tell the screen_map.xml file which key to use. Open screen_map.xml and find the Google Maps API key entry. The value you here enter depends on how you're compiling. If you're compiling in Debug mode it should looks like this: android:apiKey="@string/googleMapsAPIKeyDebug" If you're compiling in Release mode it should look like this: android:apiKey="@string/googleMapsAPIKeyRelease" Entering these values tells the Android compiler which of the two values you entered in the strings.xml file to use. Lastly, you'll need to make sure you AndroidManifest.xml file knows you are using maps. Open that file and be sure this section is uncommented: <uses-library android:name="com.google.android.maps"/> BT_screen_map.java is the Activity class that displays the map. The layout is handled by screen_map.xml. Additionally, several graphic files are needed to show the locations on the map.
 
jawdoss
Android Fan
Profile
Posts: 359
Reg: Jun 10, 2012
Gold Coast, Que...
9,090
like
07/01/12 04:38 PM (13 years ago)
I have already done this all ages ago. The maps are working, once you zoom in on the screen its just when you have it zoomed out (when it starts up this happens by default)
 
jawdoss
Android Fan
Profile
Posts: 359
Reg: Jun 10, 2012
Gold Coast, Que...
9,090
like
07/04/12 05:23 AM (13 years ago)
Don't quite know what the problem is..
 

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.