Skip to content

Commit b86695d

Browse files
scottamainAndroid Git Automerger
authored andcommitted
am b00e37d: docs: update location/maps doc with info for maps api
* commit 'b00e37de181dc2f816962bc9301f64dd2a773c2a': docs: update location/maps doc with info for maps api
2 parents 92e0b07 + b00e37d commit b86695d

File tree

1 file changed

+36
-53
lines changed

1 file changed

+36
-53
lines changed

docs/html/guide/topics/location/index.jd

Lines changed: 36 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,25 @@ device's location and bearing and register for updates</li>
1111
<li>A Google Maps external library is available that lets you display and manage Maps data</li>
1212
</ul>
1313

14-
<h2>Topics</h2>
14+
<h2>In this document</h2>
1515
<ol>
16-
<li><a href="{@docRoot}guide/topics/location/strategies.html">Location Strategies</a></li>
16+
<li><a href="#location">Location Services</a></li>
17+
<li><a href="#maps">Google Maps Android API</a></li>
1718
</ol>
1819

19-
<h2>See Also</h2>
20-
<ol>
21-
<li><a
22-
href="http://code.google.com/android/add-ons/google-apis/maps-overview.html">Google
23-
Maps External Library &raquo;</a></li>
24-
</ol>
2520
</div>
2621
</div>
2722

28-
<p>Location and maps-based applications are compelling for mobile device users. You
29-
can build these capabilities into your applications using the classes of the {@link
30-
android.location} package and the Google Maps external library. The sections below provide details.
23+
<p>Location and maps-based apps offer a compelling experience on mobile devices. You
24+
can build these capabilities into your app using the classes of the {@link
25+
android.location} package and the Google Maps Android API. The sections below provide
26+
an introduction to how you can add the features.
3127
</p>
3228

3329
<h2 id="location">Location Services</h2>
3430

3531
<p>Android gives your applications access to the location services supported by
36-
the device through the classes in the {@code android.location} package. The
32+
the device through classes in the {@code android.location} package. The
3733
central component of the location framework is the
3834
{@link android.location.LocationManager} system service, which provides APIs to
3935
determine location and bearing of the underlying device (if available). </p>
@@ -56,52 +52,39 @@ user location.</li>
5652
comes within a given proximity (specified by radius in meters) of a given lat/long.</li>
5753
</ul>
5854

59-
<p>For more information, read the guide to <a
60-
href="{@docRoot}guide/topics/location/strategies.html">Location Strategies</a>.</p>
55+
<p>For more information about acquiring the user location, read the <a
56+
href="{@docRoot}guide/topics/location/strategies.html">Location Strategies</a> guide.</p>
57+
6158

6259

63-
<h2 id="maps">Google Maps External Library</h2>
60+
<h2 id="maps">Google Maps Android API</h2>
6461

65-
<p>To make it easier for you to add powerful mapping capabilities to your
66-
application, Google provides a Maps external library that includes the
67-
com.google.android.maps package. The classes of the com.google.android.maps
68-
package offer built-in downloading, rendering, and caching of Maps tiles, as
69-
well as a variety of display options and controls. </p>
62+
<p>With the Google Maps Android API, you can add maps to your app that are based on Google
63+
Maps data. The API automatically handles access to Google Maps servers, data downloading,
64+
map display, and touch gestures on the map. You can also use API calls to add markers,
65+
polygons and overlays, and to change the user's view of a particular map area.</p>
7066

71-
<p>The key class in the Maps package is
72-
<code>com.google.android.maps.MapView</code>, a subclass of
73-
{@link android.view.ViewGroup ViewGroup}. A MapView displays a map with data obtained
74-
from the Google Maps service. When the MapView has focus, it will capture
67+
<p>The key class in the Google Maps Android API is
68+
<a href="{@docRoot}reference/com/google/android/gms/maps/MapView.html">{@code MapView}</a>.
69+
A <a href="{@docRoot}reference/com/google/android/gms/maps/MapView.html">{@code MapView}</a>
70+
displays a map with data obtained
71+
from the Google Maps service. When the
72+
<a href="{@docRoot}reference/com/google/android/gms/maps/MapView.html">{@code MapView}</a>
73+
has focus, it will capture
7574
keypresses and touch gestures to pan and zoom the map automatically, including
7675
handling network requests for additional maps tiles. It also provides all of the
7776
UI elements necessary for users to control the map. Your application can also
78-
use MapView class methods to control the MapView programmatically and draw a
79-
number of Overlay types on top of the map. </p>
80-
81-
<p>In general, the MapView class provides a wrapper around the Google Maps API
82-
that lets your application manipulate Google Maps data through class methods,
83-
and it lets you work with Maps data as you would other types of Views.</p>
84-
85-
<p>The Maps external library is not part of the standard Android library, so it
86-
may not be present on some compliant Android-powered devices. Similarly, the
87-
Maps external library is not included in the standard Android library provided
88-
in the SDK. So that you can develop using the classes of the
89-
com.google.android.maps package, the Maps external library is made available to
90-
you as part of the Google APIs add-on for the Android SDK. </p>
91-
92-
<p>To learn more about the Maps external library and how to download and use the
93-
Google APIs add-on, visit</p>
94-
95-
<p style="margin-left:2em;"><a
96-
href="http://code.google.com/android/add-ons/google-apis">http://code.google.com/android/add-ons/google-apis</a></p>
97-
98-
<p>For your convenience, the Google APIs add-on is also available as a downloadable component from
99-
the Android SDK Manager (see <a href="{@docRoot}sdk/exploring.html">Exploring the
100-
SDK</a>).</p>
101-
102-
<p class="note"><strong>Note:</strong> In order to display Google Maps data in a
103-
MapView, you must register with the Google Maps service and obtain a Maps API
104-
Key. For information about how to get a Maps API Key, see <a
105-
href="http://code.google.com/android/add-ons/google-apis/mapkey.html">Obtaining
106-
a Maps API Key</a>.</p>
77+
use <a href="{@docRoot}reference/com/google/android/gms/maps/MapView.html">{@code MapView}</a>
78+
class methods to control the map programmatically and draw a
79+
number of overlays on top of the map. </p>
80+
81+
<p>The Google Maps Android APIs are not included in the Android platform,
82+
but are available on any device
83+
with the Google Play Store running Android 2.2 or higher, through
84+
<a href="{@docRoot}google/play-services/index.html">Google Play services</a>.</p>
85+
86+
<p>To integrate Google Maps into your app, you need to install the Google Play services
87+
libraries for your Android SDK. For more details, read about <a
88+
href="{@docRoot}google/play-services/index.html">Google Play services</a>.</p>
89+
10790

0 commit comments

Comments
 (0)