1page.title=Google Maps Android API v2 2page.tags=mapview,location 3header.hide=1 4 5@jd:body 6 7 8<div class="landing-banner"> 9 10<div class="col-6"> 11 <img src="{@docRoot}images/google/gps-maps.png" alt=""> 12</div> 13<div class="col-6"> 14 15 <h1 itemprop="name" style="margin-bottom:0;">Google Maps Android API v2</h1> 16 <p itemprop="description">Allow your users to explore the world with rich maps provided by 17 Google. Identify locations with <b>custom markers</b>, augment the map data 18 with <b>image overlays</b>, embed <b>one or more maps</b> as fragments, 19 and much more.</p> 20 <p>Explore the <a 21href="{@docRoot}reference/com/google/android/gms/maps/package-summary.html" 22>Google Maps Android API v2 reference</a> or visit <a class="external-link" 23href="https://developers.google.com/maps/documentation/android/">developers.google.com/maps</a> 24for more information about adding maps to your app.</p> 25</div> 26</div> 27 28 29 30<div class="landing-docs"> 31 <div class="col-6 normal-links"> 32 <h3 style="clear:left">Key Developer Features</h3> 33 <h4>Add maps to your app</h4> 34 <p>With Google Maps Android API v2, you can embed maps into an activity 35 as a fragment with a simple XML snippet. The new Maps offer exciting features such as 3D maps; 36 indoor, satellite, terrain, and hybrid maps; 37 vector-based tiles for efficient caching and drawing; animated transitions; and much more. 38 <a class="external-link" href="https://developers.google.com/maps/documentation/android/map">Add 39 a map object</a>.</p> 40 41 <h4>Customize the map</h4> 42 <p>Add markers onto the map to indicate special points of interest for your users. 43 You can define custom colors or icons for your map markers to 44 match your app's look and feel. To further enhance the app, draw polylines 45 and polygons to indicate paths or regions, or provide complete image overlays. 46 <a class="external-link" href="https://developers.google.com/maps/documentation/android/marker">Draw 47 markers</a>.</p> 48 </a> 49 50 <h4>Control the user's view</h4> 51 <p>Give your users a different view of the world with the ability to control the rotation, tilt, 52 zoom, and pan properties of the "camera" perspective of the map. 53 <a class="external-link" href="https://developers.google.com/maps/documentation/android/views">Change 54 the view</a>.</p> 55 56 <h4>Add Street View to your app</h4> 57 <p>Embed Street View into an activity and let your users explore the world 58 through panoramic 360-degree views. Programmatically control the zoom and 59 orientation (tilt and bearing) of the Street View camera, and animate the 60 camera movements over a given duration. 61 <a class="external-link" href="https://developers.google.com/maps/documentation/android/streetview">Add Street View</a>.</p> 62 </div> 63 64 65 <div class="col-6 normal-links"> 66 <h3 style="clear:left">Getting Started</h3> 67 <h4>1. Get the Google Play services SDK</h4> 68 <p>Google Maps Android API v2 is part of the Google Play services platform.</p> 69 <p>To use Google Maps, <a href="{@docRoot}google/play-services/setup.html">set up 70 the Google Play services SDK</a>. Then see the <a class="external-link" 71 href="https://developers.google.com/maps/documentation/android/start#installing_the_google_maps_android_v2_api"> 72 Getting Started guide</a> to get your API key for Maps and set up your app. 73 </p> 74 75 <h4>2. Run the sample</h4> 76 77 <p>Once you've installed the Google Play services package, the Google Maps sample is located in 78 <code><android-sdk>/extras/google-play-services/samples/maps</code> and shows you 79 how to use the major components of Google Maps Android API v2. 80 </p> 81 82 <h4>3. Read the documentation</h4> 83 84 <p>Read the <a href="https://developers.google.com/maps/terms">Google Maps 85 API Terms of Service</a>.</p> 86 87 <p>For quick access while developing your Android apps, the 88 <a href="{@docRoot}reference/com/google/android/gms/maps/package-summary.html">Google Maps 89 Android API v2 reference</a> is available here on developer.android.com.</p> 90 91 <p>Detailed documentation for Google Maps Android API v2 is available with the rest of the 92 Google Maps developer documents at <a class="external-link" 93 href="https://developers.google.com/maps/documentation/android/">developers.google.com/maps</a>. 94 </p> 95 </div> 96 97</div> 98