blob: 7f40aa6d246157c386ca4d7388654db0df8fbbfe [file] [log] [blame]
Robert Ly3c4b4f72012-11-30 04:02:04 -08001<!DOCTYPE html>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Dirk Dougherty78ec7322013-09-16 10:37:40 -070076
77
Robert Ly3c4b4f72012-11-30 04:02:04 -080078<html>
79<head>
Dirk Dougherty4af1bf82013-05-09 15:04:08 -070080
81
Dirk Dougherty78ec7322013-09-16 10:37:40 -070082<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
83<meta name="viewport" content="width=device-width" />
Robert Ly3c4b4f72012-11-30 04:02:04 -080084
85<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
86<title>Marker | Android Developers</title>
87
88<!-- STYLESHEETS -->
89<link rel="stylesheet"
Robert Lyf6f5cf42013-02-04 18:24:15 -080090href="//fonts.googleapis.com/css?family=Roboto:regular,medium,thin,italic,mediumitalic,bold" title="roboto">
Robert Ly3c4b4f72012-11-30 04:02:04 -080091<link href="/assets/css/default.css" rel="stylesheet" type="text/css">
92
93
94
95<!-- JAVASCRIPT -->
Dirk Dougherty8a72b6e2013-02-01 15:00:09 -080096<script src="//www.google.com/jsapi" type="text/javascript"></script>
Robert Lyf6f5cf42013-02-04 18:24:15 -080097<script src="/assets/js/android_3p-bundle.js" type="text/javascript"></script>
Robert Ly3c4b4f72012-11-30 04:02:04 -080098<script type="text/javascript">
99 var toRoot = "/";
Dirk Doughertyd1898452013-12-02 11:34:20 -0800100 var metaTags = [];
Robert Lyf6f5cf42013-02-04 18:24:15 -0800101 var devsite = false;
Robert Ly3c4b4f72012-11-30 04:02:04 -0800102</script>
103<script src="/assets/js/docs.js" type="text/javascript"></script>
104
Robert Lyf6f5cf42013-02-04 18:24:15 -0800105<script type="text/javascript">
106 var _gaq = _gaq || [];
107 _gaq.push(['_setAccount', 'UA-5831155-1']);
108 _gaq.push(['_trackPageview']);
109
110 (function() {
111 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
112 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
113 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
114 })();
115</script>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800116</head>
Robert Ly555c93b2012-12-03 12:24:07 -0800117<body class="gc-documentation google
Robert Ly3c4b4f72012-11-30 04:02:04 -0800118 develop" itemscope itemtype="http://schema.org/Article">
119 <div id="doc-api-level" class="" style="display:none"></div>
120 <a name="top"></a>
121
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700122<a name="top"></a>
123
Robert Ly3c4b4f72012-11-30 04:02:04 -0800124 <!-- Header -->
125 <div id="header">
126 <div class="wrap" id="header-wrap">
127 <div class="col-3 logo">
128 <a href="/index.html">
129 <img src="/assets/images/dac_logo.png" width="123" height="25" alt="Android Developers" />
130 </a>
131 <div class="btn-quicknav" id="btn-quicknav">
132 <a href="#" class="arrow-inactive">Quicknav</a>
133 <a href="#" class="arrow-active">Quicknav</a>
134 </div>
135 </div>
136 <ul class="nav-x col-9">
137 <li class="design">
Robert Ly05c8e632013-02-25 14:43:01 -0800138 <a href="/design/index.html"
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700139 zh-tw-lang="設計"
140 zh-cn-lang="设计"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800141 ru-lang="Проектирование"
142 ko-lang="디자인"
143 ja-lang="設計"
144 es-lang="Diseñar"
145 >Design</a></li>
Robert Ly05c8e632013-02-25 14:43:01 -0800146 <li class="develop"><a href="/develop/index.html"
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700147 zh-tw-lang="開發"
148 zh-cn-lang="开发"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800149 ru-lang="Разработка"
150 ko-lang="개발"
151 ja-lang="開発"
152 es-lang="Desarrollar"
153 >Develop</a></li>
Robert Ly05c8e632013-02-25 14:43:01 -0800154 <li class="distribute last"><a href="/distribute/index.html"
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700155 zh-tw-lang="發佈"
156 zh-cn-lang="分发"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800157 ru-lang="Распространение"
158 ko-lang="배포"
159 ja-lang="配布"
160 es-lang="Distribuir"
161 >Distribute</a></li>
162 </ul>
163
164 <!-- New Search -->
165 <div class="menu-container">
166 <div class="moremenu">
167 <div id="more-btn"></div>
168 </div>
169 <div class="morehover" id="moremenu">
170 <div class="top"></div>
171 <div class="mid">
172 <div class="header">Links</div>
173 <ul>
174 <li><a href="https://play.google.com/apps/publish/">Google Play Developer Console</a></li>
175 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li>
176 <li><a href="/about/index.html">About Android</a></li>
177 </ul>
178 <div class="header">Android Sites</div>
179 <ul>
180 <li><a href="http://www.android.com">Android.com</a></li>
181 <li class="active"><a>Android Developers</a></li>
182 <li><a href="http://source.android.com">Android Open Source Project</a></li>
183 </ul>
Robert Lyf6f5cf42013-02-04 18:24:15 -0800184
Robert Lyf6f5cf42013-02-04 18:24:15 -0800185
186
187 <div class="header">Language</div>
188 <div id="language" class="locales">
189 <select name="language" onChange="changeLangPref(this.value, true)">
190 <option value="en">English</option>
191 <option value="es">Español</option>
192 <option value="ja">日本語</option>
193 <option value="ko">한국어</option>
194 <option value="ru">Русский</option>
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700195 <option value="zh-cn">中文 (中国)</option>
196 <option value="zh-tw">中文 (台灣)</option>
Robert Lyf6f5cf42013-02-04 18:24:15 -0800197 </select>
198 </div>
199 <script type="text/javascript">
200 <!--
201 loadLangPref();
202 //-->
203 </script>
204
205
206
207
Robert Ly3c4b4f72012-11-30 04:02:04 -0800208 <br class="clearfix" />
209 </div>
210 <div class="bottom"></div>
211 </div>
212 <div class="search" id="search-container">
213 <div class="search-inner">
214 <div id="search-btn"></div>
215 <div class="left"></div>
216 <form onsubmit="return submit_search()">
217 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q"
218onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)"
219onkeydown="return search_changed(event, true, '/')"
220onkeyup="return search_changed(event, false, '/')" />
221 </form>
222 <div class="right"></div>
223 <a class="close hide">close</a>
224 <div class="left"></div>
225 <div class="right"></div>
226 </div>
227 </div>
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700228
229 <div class="search_filtered_wrapper reference">
230 <div class="suggest-card reference no-display">
231 <ul class="search_filtered">
232 </ul>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800233 </div>
234 </div>
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700235
236 <div class="search_filtered_wrapper docs">
237 <div class="suggest-card dummy no-display">&nbsp;</div>
238 <div class="suggest-card develop no-display">
239 <ul class="search_filtered">
240 </ul>
241 <div class="child-card guides no-display">
242 </div>
243 <div class="child-card training no-display">
244 </div>
quddusc563daee2013-12-03 19:31:14 -0800245 <div class="child-card samples no-display">
246 </div>
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700247 </div>
248 <div class="suggest-card design no-display">
249 <ul class="search_filtered">
250 </ul>
251 </div>
252 <div class="suggest-card distribute no-display">
253 <ul class="search_filtered">
254 </ul>
255 </div>
256 </div>
257
Robert Ly3c4b4f72012-11-30 04:02:04 -0800258 </div>
259 <!-- /New Search>
260
261
262 <!-- Expanded quicknav -->
263 <div id="quicknav" class="col-9">
264 <ul>
265 <li class="design">
266 <ul>
267 <li><a href="/design/index.html">Get Started</a></li>
268 <li><a href="/design/style/index.html">Style</a></li>
269 <li><a href="/design/patterns/index.html">Patterns</a></li>
270 <li><a href="/design/building-blocks/index.html">Building Blocks</a></li>
271 <li><a href="/design/downloads/index.html">Downloads</a></li>
272 <li><a href="/design/videos/index.html">Videos</a></li>
273 </ul>
274 </li>
275 <li class="develop">
276 <ul>
277 <li><a href="/training/index.html"
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700278 zh-tw-lang="訓練課程"
279 zh-cn-lang="培训"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800280 ru-lang="Курсы"
281 ko-lang="교육"
282 ja-lang="トレーニング"
283 es-lang="Capacitación"
284 >Training</a></li>
quddusc563daee2013-12-03 19:31:14 -0800285 <li><a href="/guide/index.html"
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700286 zh-tw-lang="API 指南"
287 zh-cn-lang="API 指南"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800288 ru-lang="Руководства по API"
289 ko-lang="API 가이드"
290 ja-lang="API ガイド"
291 es-lang="Guías de la API"
292 >API Guides</a></li>
293 <li><a href="/reference/packages.html"
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700294 zh-tw-lang="參考資源"
295 zh-cn-lang="参考"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800296 ru-lang="Справочник"
297 ko-lang="참조문서"
298 ja-lang="リファレンス"
299 es-lang="Referencia"
300 >Reference</a></li>
301 <li><a href="/tools/index.html"
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700302 zh-tw-lang="相關工具"
303 zh-cn-lang="工具"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800304 ru-lang="Инструменты"
305 ko-lang="도구"
306 ja-lang="ツール"
307 es-lang="Herramientas"
308 >Tools</a>
309 <ul><li><a href="/sdk/index.html">Get the SDK</a></li></ul>
310 </li>
311 <li><a href="/google/index.html">Google Services</a>
312 </li>
Dirk Dougherty78ec7322013-09-16 10:37:40 -0700313
Dirk Doughertyd1898452013-12-02 11:34:20 -0800314 <li><a href="/samples/index.html">Samples</a>
315 </li>
316
Robert Ly3c4b4f72012-11-30 04:02:04 -0800317 </ul>
318 </li>
319 <li class="distribute last">
320 <ul>
321 <li><a href="/distribute/index.html">Google Play</a></li>
322 <li><a href="/distribute/googleplay/publish/index.html">Publishing</a></li>
323 <li><a href="/distribute/googleplay/promote/index.html">Promoting</a></li>
324 <li><a href="/distribute/googleplay/quality/index.html">App Quality</a></li>
325 <li><a href="/distribute/googleplay/spotlight/index.html">Spotlight</a></li>
326 <li><a href="/distribute/open.html">Open Distribution</a></li>
327 </ul>
328 </li>
329 </ul>
330 </div>
331 <!-- /Expanded quicknav -->
332 </div>
333 </div>
334 <!-- /Header -->
335
336
337 <div id="searchResults" class="wrap" style="display:none;">
338 <h2 id="searchTitle">Results</h2>
339 <div id="leftSearchControl" class="search-control">Loading...</div>
340 </div>
341
342
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700343
Robert Ly3c4b4f72012-11-30 04:02:04 -0800344 <!-- Secondary x-nav -->
345 <div id="nav-x">
346 <div class="wrap">
347 <ul class="nav-x col-9 develop" style="width:100%">
Robert Ly05c8e632013-02-25 14:43:01 -0800348 <li class="training"><a href="/training/index.html"
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700349 zh-tw-lang="訓練課程"
350 zh-cn-lang="培训"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800351 ru-lang="Курсы"
352 ko-lang="교육"
353 ja-lang="トレーニング"
354 es-lang="Capacitación"
355 >Training</a></li>
quddusc563daee2013-12-03 19:31:14 -0800356 <li class="guide"><a href="/guide/index.html"
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700357 zh-tw-lang="API 指南"
358 zh-cn-lang="API 指南"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800359 ru-lang="Руководства по API"
360 ko-lang="API 가이드"
361 ja-lang="API ガイド"
362 es-lang="Guías de la API"
363 >API Guides</a></li>
Robert Ly05c8e632013-02-25 14:43:01 -0800364 <li class="reference"><a href="/reference/packages.html"
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700365 zh-tw-lang="參考資源"
366 zh-cn-lang="参考"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800367 ru-lang="Справочник"
368 ko-lang="참조문서"
369 ja-lang="リファレンス"
370 es-lang="Referencia"
371 >Reference</a></li>
Robert Ly05c8e632013-02-25 14:43:01 -0800372 <li class="tools"><a href="/tools/index.html"
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700373 zh-tw-lang="相關工具"
374 zh-cn-lang="工具"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800375 ru-lang="Инструменты"
376 ko-lang="도구"
377 ja-lang="ツール"
378 es-lang="Herramientas"
379 >Tools</a></li>
Robert Ly05c8e632013-02-25 14:43:01 -0800380 <li class="google"><a href="/google/index.html"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800381 >Google Services</a>
382 </li>
Dirk Dougherty78ec7322013-09-16 10:37:40 -0700383
Dirk Doughertyd1898452013-12-02 11:34:20 -0800384 <li class="samples"><a href="/samples/index.html"
385 >Samples</a>
386 </li>
387
Robert Ly3c4b4f72012-11-30 04:02:04 -0800388 </ul>
389 </div>
390
391 </div>
392 <!-- /Sendondary x-nav -->
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700393
394
395
396
Robert Ly3c4b4f72012-11-30 04:02:04 -0800397
398
Robert Ly3c4b4f72012-11-30 04:02:04 -0800399
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700400
401
Robert Ly3c4b4f72012-11-30 04:02:04 -0800402 <div class="wrap clearfix" id="body-content">
403 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
404 <div id="devdoc-nav" class="scroll-pane">
405<a class="totop" href="#top" data-g-event="left-nav-top">to top</a>
406
407
408
409<ul id="nav">
Dirk Doughertya38ca332013-05-15 02:36:33 -0700410
Robert Ly3c4b4f72012-11-30 04:02:04 -0800411 <li class="nav-section">
412 <div class="nav-section-header empty"><a href="/google/index.html">
Dirk Doughertya38ca332013-05-15 02:36:33 -0700413 <span class="en">Overview</span>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800414 </a></div>
415 </li>
416
417 <li class="nav-section">
Dirk Doughertya38ca332013-05-15 02:36:33 -0700418 <div class="nav-section-header empty"><a href="/google/play-services/games.html">
419 <span class="en">Games</span>
420 </a></div>
421 </li>
422 <li class="nav-section">
423 <div class="nav-section-header empty"><a href="/google/play-services/location.html">
424 <span class="en">Location</span>
425 </a></div>
426 </li>
427 <li class="nav-section">
428 <div class="nav-section-header empty"><a href="/google/play-services/plus.html">
429 <span class="en">Google+</span>
430 </a></div>
431 </li>
432 <li class="nav-section">
433 <div class="nav-section-header empty"><a href="/google/play-services/maps.html">
Dirk Doughertyeb768482013-10-29 22:25:12 -0700434 <span class="en">Maps</span>
435 </a></div>
436 </li>
437 <li class="nav-section">
438 <div class="nav-section-header"><a href="/google/play-services/ads.html">
439 <span class="en">Ads</span></a>
440 </div>
441 <ul>
442 <li><a href="/google/play-services/id.html">
443 <span class="en">Advertising ID</span></a>
444 </li>
445 </ul>
446 </li>
447 <li class="nav-section">
448 <div class="nav-section-header empty"><a href="/google/play-services/wallet.html">
449 <span class="en">Wallet</span>
Dirk Doughertya38ca332013-05-15 02:36:33 -0700450 </a></div>
451 </li>
452 <li class="nav-section">
453 <div class="nav-section-header empty"><a href="/google/play-services/auth.html">
454 <span class="en">Authorization</span>
455 </a></div>
456 </li>
457
458
459
460 <li class="nav-section">
Robert Ly3c4b4f72012-11-30 04:02:04 -0800461 <div class="nav-section-header"><a href="/google/play-services/index.html">
Robert Lyd84d5cc2013-01-04 10:13:35 -0800462 <span class="en">Google Play Services</span></a>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800463 </div>
464 <ul>
465 <li><a href="/google/play-services/setup.html">
466 <span class="en">Setup</span></a>
467 </li>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800468 <li id="gms-tree-list" class="nav-section">
469 <div class="nav-section-header">
470 <a href="/reference/gms-packages.html">
471 <span class="en">Reference</span>
472 </a>
473 <div>
474 </li>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800475 </ul>
476 </li>
477
Robert Lyd84d5cc2013-01-04 10:13:35 -0800478
Robert Ly3c4b4f72012-11-30 04:02:04 -0800479 <li class="nav-section">
480 <div class="nav-section-header"><a href="/google/play/billing/index.html">
Robert Ly672b3ad2012-11-30 16:15:46 -0800481 <span class="en">Google Play In-app Billing</span></a>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800482 </div>
483 <ul>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800484 <li><a href="/google/play/billing/billing_overview.html">
485 <span class="en">Overview</span></a>
486 </li>
487 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/api.html">
488 <span class="en">Version 3 API</span></a></div>
489 <ul>
490 <li><a href="/google/play/billing/billing_integrate.html">
491 <span class="en">Implementing the API</span></a></li>
492 <li><a href="/google/play/billing/billing_reference.html">
493 <span class="en">Reference</span></a></li>
494 </ul>
495 </li>
496 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/v2/api.html">
497 <span class="en">Version 2 API</span></a></div>
498 <ul>
499 <li><a href="/google/play/billing/v2/billing_integrate.html">
500 <span class="en">Implementing the API</span></a></li>
501 <li><a href="/google/play/billing/v2/billing_subscriptions.html">
502 <span class="en">Subscriptions</span></a></li>
503 <li><a href="/google/play/billing/v2/billing_reference.html">
504 <span class="en">Reference</span></a></li>
505 </ul>
506 </li>
Robert Ly05c8e632013-02-25 14:43:01 -0800507 <li><a href="/google/play/billing/billing_subscriptions.html">
508 <span class="en">Subscriptions</span></a>
509 </li>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800510 <li><a href="/google/play/billing/billing_best_practices.html">
Robert Ly3c4b4f72012-11-30 04:02:04 -0800511 <span class="en">Security and Design</span></a>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800512 </li>
513 <li><a href="/google/play/billing/billing_testing.html">
Robert Ly555c93b2012-12-03 12:24:07 -0800514 <span class="en">Testing In-app Billing</span></a>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800515 </li>
516 <li><a href="/google/play/billing/billing_admin.html">
Robert Ly3c4b4f72012-11-30 04:02:04 -0800517 <span class="en">Administering In-app Billing</span></a>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800518 </li>
Dirk Doughertyfe3da792013-06-12 18:06:08 -0700519 <li><a href="/google/play/billing/gp-purchase-status-api.html">
520 <span class="en">Purchase Status API</span></a>
521 </li>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800522 <li><a href="/google/play/billing/versions.html">
523 <span class="en">Version Notes</span></a>
524 </li>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800525 </ul>
526 </li>
527
Dirk Doughertya38ca332013-05-15 02:36:33 -0700528
529
Dirk Doughertyd1898452013-12-02 11:34:20 -0800530 <li class="nav-section">
Dirk Doughertya38ca332013-05-15 02:36:33 -0700531 <div class="nav-section-header"><a href="/google/gcm/index.html">
532 <span class="en">Google Cloud Messaging</span></a>
533 </div>
534 <ul>
Dirk Doughertyd1898452013-12-02 11:34:20 -0800535 <li><a href="/google/gcm/gcm.html">
536 <span class="en">Overview</span></a>
537 </li>
Dirk Doughertya38ca332013-05-15 02:36:33 -0700538 <li><a href="/google/gcm/gs.html">
539 <span class="en">Getting Started</span></a>
540 </li>
Dirk Doughertyd1898452013-12-02 11:34:20 -0800541 <li><a href="/google/gcm/client.html">
542 <span class="en">Implementing GCM Client</span></a>
Dirk Doughertya38ca332013-05-15 02:36:33 -0700543 </li>
Dirk Doughertyd1898452013-12-02 11:34:20 -0800544 <li class="nav-section"><div class="nav-section-header"><a href="/google/gcm/server.html">
545 <span class="en">Implementing GCM Server</span></a></div>
546 <ul>
547 <li><a href="/google/gcm/ccs.html">
548 <span class="en">CCS (XMPP)</span></a></li>
549 <li><a href="/google/gcm/http.html">
550 <span class="en">HTTP</span></a></li>
551 </ul>
Dirk Doughertyfe3da792013-06-12 18:06:08 -0700552 </li>
553 <li><a href="/google/gcm/notifications.html">
554 <span class="en">User Notifications</span></a>
555 </li>
Dirk Doughertya38ca332013-05-15 02:36:33 -0700556 <li><a href="/google/gcm/adv.html">
557 <span class="en">Advanced Topics</span></a>
558 </li>
559 <li><a href="/google/gcm/c2dm.html">
560 <span class="en">Migration</span></a>
561 </li>
562 <li id="gcm-tree-list" class="nav-section">
563 <div class="nav-section-header">
564 <a href="/reference/gcm-packages.html">
565 <span class="en">Reference</span>
566 </a>
567 <div>
568 </li>
569 </ul>
570 </li>
571
Robert Ly3c4b4f72012-11-30 04:02:04 -0800572 <li class="nav-section">
573 <div class="nav-section-header"><a href="/google/play/dist.html">
Robert Ly672b3ad2012-11-30 16:15:46 -0800574 <span class="en">Google Play Distribution</span></a>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800575 </div>
576 <ul>
577 <li><a href="/google/play/filters.html">
578 <span class="en">Filters on Google Play</span></a>
579 </li>
580
581 <li><a href="/google/play/publishing/multiple-apks.html">
582 <span class="en">Multiple APK Support</span></a>
583 </li>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800584 <li><a href="/google/play/expansion-files.html">
585 <span class="en">APK Expansion Files</span></a>
586 </li>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800587 <li class="nav-section">
588 <div class="nav-section-header"><a href="/google/play/licensing/index.html">
589 <span class="en">Application Licensing</span></a>
590 </div>
591 <ul>
592 <li><a href="/google/play/licensing/overview.html">
593 <span class="en">Licensing Overview</span></a>
594 </li>
595 <li><a href="/google/play/licensing/setting-up.html">
596 <span class="en">Setting Up for Licensing</span></a>
597 </li>
598 <li><a href="/google/play/licensing/adding-licensing.html">
599 <span class="en">Adding Licensing to Your App</span></a>
600 </li>
601 <li><a href="/google/play/licensing/licensing-reference.html">
602 <span class="en">Licensing Reference</span></a>
603 </li>
604 </ul>
605 </li>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800606
Robert Lyd84d5cc2013-01-04 10:13:35 -0800607 <li class="nav-section">
608 <div class="nav-section-header"><a href="/google/backup/index.html">
609 Android Backup Service</a>
610 </div>
611 <ul>
612 <li><a href="/google/backup/signup.html">
613 Register</a>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800614 </li>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800615 </ul>
616 </li>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800617
Dirk Doughertya38ca332013-05-15 02:36:33 -0700618 </ul>
619
620</li>
621
622
623
Robert Ly3c4b4f72012-11-30 04:02:04 -0800624</ul>
625
626<script type="text/javascript">
627<!--
628 buildToggleLists();
629 changeNavLang(getLangPref());
630//-->
631</script>
632
633
634
635
636 </div>
637 <script type="text/javascript">
638 showGoogleRefTree();
639
640 </script>
641 </div> <!-- end side-nav -->
642 <script>
643 $(document).ready(function() {
644 scrollIntoView("devdoc-nav");
645 });
646 </script>
647
648
Dirk Dougherty4af1bf82013-05-09 15:04:08 -0700649
650
Robert Ly3c4b4f72012-11-30 04:02:04 -0800651
652
653<div class="col-12" id="doc-col">
654
655<div id="api-info-block">
656
657
658
659
660
661
662
663
664
665
666
667<div class="sum-details-links">
668
669Summary:
670
671
672
673
674
675
676
677
678
679
680
681 <a href="#pubmethods">Methods</a>
682
683
684
685
686 &#124; <a href="#inhmethods">Inherited Methods</a>
687
688&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
689
690</div><!-- end sum-details-links -->
691<div class="api-level">
692
693
694
695
696</div>
697</div><!-- end api-info-block -->
698
699
700<!-- ======== START OF CLASS DATA ======== -->
701
702<div id="jd-header">
703 public
704
705 final
706
707 class
708<h1 itemprop="name">Marker</h1>
709
710
711
712
Dirk Dougherty78ec7322013-09-16 10:37:40 -0700713 extends Object<br/>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800714
715
716
717
718
719
720
721
722
723</div><!-- end header -->
724
725<div id="naMessage"></div>
726
727<div id="jd-content" class="api apilevel-">
728<table class="jd-inheritance-table">
729
730
731 <tr>
732
Dirk Dougherty78ec7322013-09-16 10:37:40 -0700733 <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800734 </tr>
735
736
737 <tr>
738
739 <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
740
741 <td colspan="1" class="jd-inheritance-class-cell">com.google.android.gms.maps.model.Marker</td>
742 </tr>
743
744
745</table>
746
747
748
749
750
751
752
753<div class="jd-descr">
754
755
756<h2>Class Overview</h2>
757<p itemprop="articleBody">An icon placed at a particular point on the map's surface. A marker icon is drawn oriented
758 against the device's screen rather than the map's surface; i.e., it will not necessarily change
759 orientation due to map rotations, tilting, or zooming.
760 <p>
761 A marker has the following properties:
762 <dl>
763 <dt>Anchor</dt>
764 <dd>The point on the image that will be placed at the <code><a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></code> position of the marker. This
765 defaults to 50% from the left of the image and at the bottom of the image.</dd>
766 <dt>Position</dt>
767 <dd>The <code><a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></code> value for the marker's position on the map. You can change this value at
768 any time if you want to move the marker.</dd>
769 <dt>Title</dt>
770 <dd>A text string that's displayed in an info window when the user taps the marker. You can
771 change this value at any time.</dd>
772 <dt>Snippet</dt>
773 <dd>Additional text that's displayed below the title. You can change this value at any time.</dd>
774 <dt>Icon</dt>
775 <dd>A bitmap that's displayed for the marker. If the icon is left unset, a default icon is
776 displayed. You can specify an alternative coloring of the default icon using
Robert Ly05c8e632013-02-25 14:43:01 -0800777 <code><a href="/reference/com/google/android/gms/maps/model/BitmapDescriptorFactory.html#defaultMarker(float)">defaultMarker(float)</a></code>. You can't change the icon once you've
778 created the marker.</dd>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800779 <dt>Drag Status</dt>
780 <dd>If you want to allow the user to drag the marker, set this property to <code>true</code>. You can
Robert Ly05c8e632013-02-25 14:43:01 -0800781 change this value at any time. The default is <code>false</code>.</dd>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800782 <dt>Visibility</dt>
783 <dd>By default, the marker is visible. To make the marker invisible, set this property to
784 <code>false</code>. You can change this value at any time.</dd>
Dirk Dougherty78ec7322013-09-16 10:37:40 -0700785 <dt>Flat or Billboard</dt>
786 <dd>If the marker is flat against the map, it will remain stuck to the map as the camera rotates
787 and tilts but will still remain the same size as the camera zooms, unlike a
788 <code><a href="/reference/com/google/android/gms/maps/model/GroundOverlay.html">GroundOverlay</a></code>. If the marker is a billboard, it will always be drawn facing the camera
789 and will rotate and tilt with the camera. The default is a billboard (<code>false</code>)</dd>
790 <dt>Rotation</dt>
791 <dd>The rotation of the marker in degrees clockwise about the marker's anchor point. The
792 axis of rotation is perpendicular to the marker. A rotation of 0 corresponds to the default
793 position of the marker. When the marker is flat on the map, the default position is North
794 aligned and the rotation is such that the marker always remains flat on the map. When the
795 marker is a billboard, the default position is pointing up and the rotation is such that the
796 marker is always facing the camera. The default value is 0.</dd>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800797 </dl>
798 <h3>Example</h3>
799
800 <pre> <code>GoogleMap map = ... // get a map.
801 // Add a marker at San Francisco.
Robert Ly05c8e632013-02-25 14:43:01 -0800802 Marker marker = map.addMarker(new MarkerOptions()
Robert Ly3c4b4f72012-11-30 04:02:04 -0800803 .position(new LatLng(37.7750, 122.4183))
804 .title("San Francisco")
805 .snippet("Population: 776733"));</code></pre>
Robert Ly05c8e632013-02-25 14:43:01 -0800806
807 <p>
808 <h3>Developer Guide</h3>
809 <p>
810 For more information, read the <a
811 href="https://developers.google.com/maps/documentation/android/marker">Markers</a>
812 developer guide.
Robert Ly3c4b4f72012-11-30 04:02:04 -0800813</p>
814
815
816
817
818
819</div><!-- jd-descr -->
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836<div class="jd-descr">
837
838
839<h2>Summary</h2>
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867<!-- ========== METHOD SUMMARY =========== -->
868<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>
869
870
871
872
873 <tr class="alt-color api apilevel-" >
874 <td class="jd-typecol"><nobr>
875
876
877
878
879
880 boolean</nobr>
881 </td>
882 <td class="jd-linkcol" width="100%"><nobr>
Dirk Dougherty78ec7322013-09-16 10:37:40 -0700883 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#equals(java.lang.Object)">equals</a></span>(Object other)</nobr>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800884
885 </td></tr>
886
887
888
889 <tr class=" api apilevel-" >
890 <td class="jd-typecol"><nobr>
891
892
893
894
895
Dirk Doughertyeb768482013-10-29 22:25:12 -0700896 float</nobr>
897 </td>
898 <td class="jd-linkcol" width="100%"><nobr>
899 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#getAlpha()">getAlpha</a></span>()</nobr>
900
901 <div class="jd-descrdiv">Gets the alpha of the marker.</div>
902
903 </td></tr>
904
905
906
907 <tr class="alt-color api apilevel-" >
908 <td class="jd-typecol"><nobr>
909
910
911
912
913
Dirk Dougherty78ec7322013-09-16 10:37:40 -0700914 String</nobr>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800915 </td>
916 <td class="jd-linkcol" width="100%"><nobr>
917 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#getId()">getId</a></span>()</nobr>
918
919 <div class="jd-descrdiv">Gets this marker's id.</div>
920
921 </td></tr>
922
923
924
Dirk Doughertyeb768482013-10-29 22:25:12 -0700925 <tr class=" api apilevel-" >
Robert Ly3c4b4f72012-11-30 04:02:04 -0800926 <td class="jd-typecol"><nobr>
927
928
929
930
931
932 <a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></nobr>
933 </td>
934 <td class="jd-linkcol" width="100%"><nobr>
935 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#getPosition()">getPosition</a></span>()</nobr>
936
937 <div class="jd-descrdiv">Returns the position of the marker.</div>
938
939 </td></tr>
940
941
942
Dirk Doughertyeb768482013-10-29 22:25:12 -0700943 <tr class="alt-color api apilevel-" >
Robert Ly3c4b4f72012-11-30 04:02:04 -0800944 <td class="jd-typecol"><nobr>
945
946
947
948
949
Dirk Dougherty78ec7322013-09-16 10:37:40 -0700950 float</nobr>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800951 </td>
952 <td class="jd-linkcol" width="100%"><nobr>
Dirk Dougherty78ec7322013-09-16 10:37:40 -0700953 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#getRotation()">getRotation</a></span>()</nobr>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800954
Dirk Dougherty78ec7322013-09-16 10:37:40 -0700955 <div class="jd-descrdiv">Gets the rotation of the marker.</div>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800956
957 </td></tr>
958
959
960
Dirk Doughertyeb768482013-10-29 22:25:12 -0700961 <tr class=" api apilevel-" >
Robert Ly3c4b4f72012-11-30 04:02:04 -0800962 <td class="jd-typecol"><nobr>
963
964
965
966
967
Dirk Dougherty78ec7322013-09-16 10:37:40 -0700968 String</nobr>
969 </td>
970 <td class="jd-linkcol" width="100%"><nobr>
971 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#getSnippet()">getSnippet</a></span>()</nobr>
972
973 <div class="jd-descrdiv">Gets the snippet of the marker.</div>
974
975 </td></tr>
976
977
978
Dirk Doughertyeb768482013-10-29 22:25:12 -0700979 <tr class="alt-color api apilevel-" >
Dirk Dougherty78ec7322013-09-16 10:37:40 -0700980 <td class="jd-typecol"><nobr>
981
982
983
984
985
986 String</nobr>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800987 </td>
988 <td class="jd-linkcol" width="100%"><nobr>
989 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#getTitle()">getTitle</a></span>()</nobr>
990
991 <div class="jd-descrdiv">Gets the title of the marker.</div>
992
993 </td></tr>
994
995
996
Dirk Doughertyeb768482013-10-29 22:25:12 -0700997 <tr class=" api apilevel-" >
Robert Ly3c4b4f72012-11-30 04:02:04 -0800998 <td class="jd-typecol"><nobr>
999
1000
1001
1002
1003
1004 int</nobr>
1005 </td>
1006 <td class="jd-linkcol" width="100%"><nobr>
1007 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#hashCode()">hashCode</a></span>()</nobr>
1008
1009 </td></tr>
1010
1011
1012
Dirk Doughertyeb768482013-10-29 22:25:12 -07001013 <tr class="alt-color api apilevel-" >
Robert Ly3c4b4f72012-11-30 04:02:04 -08001014 <td class="jd-typecol"><nobr>
1015
1016
1017
1018
1019
1020 void</nobr>
1021 </td>
1022 <td class="jd-linkcol" width="100%"><nobr>
1023 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#hideInfoWindow()">hideInfoWindow</a></span>()</nobr>
1024
1025 <div class="jd-descrdiv">Hides the info window if it is shown from this marker.</div>
1026
1027 </td></tr>
1028
1029
1030
Dirk Doughertyeb768482013-10-29 22:25:12 -07001031 <tr class=" api apilevel-" >
Robert Ly3c4b4f72012-11-30 04:02:04 -08001032 <td class="jd-typecol"><nobr>
1033
1034
1035
1036
1037
1038 boolean</nobr>
1039 </td>
1040 <td class="jd-linkcol" width="100%"><nobr>
1041 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#isDraggable()">isDraggable</a></span>()</nobr>
1042
1043 <div class="jd-descrdiv">Gets the draggability of the marker.</div>
1044
1045 </td></tr>
1046
1047
1048
Dirk Doughertyeb768482013-10-29 22:25:12 -07001049 <tr class="alt-color api apilevel-" >
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001050 <td class="jd-typecol"><nobr>
1051
1052
1053
1054
1055
1056 boolean</nobr>
1057 </td>
1058 <td class="jd-linkcol" width="100%"><nobr>
1059 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#isFlat()">isFlat</a></span>()</nobr>
1060
1061 <div class="jd-descrdiv">Gets the flat setting of the Marker.</div>
1062
1063 </td></tr>
1064
1065
1066
Dirk Doughertyeb768482013-10-29 22:25:12 -07001067 <tr class=" api apilevel-" >
Robert Ly3c4b4f72012-11-30 04:02:04 -08001068 <td class="jd-typecol"><nobr>
1069
1070
1071
1072
1073
1074 boolean</nobr>
1075 </td>
1076 <td class="jd-linkcol" width="100%"><nobr>
1077 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#isInfoWindowShown()">isInfoWindowShown</a></span>()</nobr>
1078
1079 <div class="jd-descrdiv">Returns whether the info window is currently shown above this marker.</div>
1080
1081 </td></tr>
1082
1083
1084
Dirk Doughertyeb768482013-10-29 22:25:12 -07001085 <tr class="alt-color api apilevel-" >
Robert Ly3c4b4f72012-11-30 04:02:04 -08001086 <td class="jd-typecol"><nobr>
1087
1088
1089
1090
1091
1092 boolean</nobr>
1093 </td>
1094 <td class="jd-linkcol" width="100%"><nobr>
1095 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#isVisible()">isVisible</a></span>()</nobr>
1096
1097 </td></tr>
1098
1099
1100
Dirk Doughertyeb768482013-10-29 22:25:12 -07001101 <tr class=" api apilevel-" >
Robert Ly3c4b4f72012-11-30 04:02:04 -08001102 <td class="jd-typecol"><nobr>
1103
1104
1105
1106
1107
1108 void</nobr>
1109 </td>
1110 <td class="jd-linkcol" width="100%"><nobr>
1111 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#remove()">remove</a></span>()</nobr>
1112
1113 <div class="jd-descrdiv">Removes this marker from the map.</div>
1114
1115 </td></tr>
1116
1117
1118
Dirk Doughertyeb768482013-10-29 22:25:12 -07001119 <tr class="alt-color api apilevel-" >
1120 <td class="jd-typecol"><nobr>
1121
1122
1123
1124
1125
1126 void</nobr>
1127 </td>
1128 <td class="jd-linkcol" width="100%"><nobr>
1129 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#setAlpha(float)">setAlpha</a></span>(float alpha)</nobr>
1130
1131 <div class="jd-descrdiv">Sets the alpha (opacity) of the marker.</div>
1132
1133 </td></tr>
1134
1135
1136
Robert Ly3c4b4f72012-11-30 04:02:04 -08001137 <tr class=" api apilevel-" >
1138 <td class="jd-typecol"><nobr>
1139
1140
1141
1142
1143
1144 void</nobr>
1145 </td>
1146 <td class="jd-linkcol" width="100%"><nobr>
Dirk Dougherty4af1bf82013-05-09 15:04:08 -07001147 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#setAnchor(float, float)">setAnchor</a></span>(float anchorU, float anchorV)</nobr>
1148
1149 <div class="jd-descrdiv">Sets the anchor point for the marker.</div>
1150
1151 </td></tr>
1152
1153
1154
1155 <tr class="alt-color api apilevel-" >
1156 <td class="jd-typecol"><nobr>
1157
1158
1159
1160
1161
1162 void</nobr>
1163 </td>
1164 <td class="jd-linkcol" width="100%"><nobr>
Robert Ly3c4b4f72012-11-30 04:02:04 -08001165 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#setDraggable(boolean)">setDraggable</a></span>(boolean draggable)</nobr>
1166
1167 <div class="jd-descrdiv">Sets the draggability of the marker.</div>
1168
1169 </td></tr>
1170
1171
1172
Dirk Dougherty4af1bf82013-05-09 15:04:08 -07001173 <tr class=" api apilevel-" >
1174 <td class="jd-typecol"><nobr>
1175
1176
1177
1178
1179
1180 void</nobr>
1181 </td>
1182 <td class="jd-linkcol" width="100%"><nobr>
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001183 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#setFlat(boolean)">setFlat</a></span>(boolean flat)</nobr>
1184
1185 <div class="jd-descrdiv">Sets whether this marker should be flat against the map <code>true</code> or a billboard facing
1186 the camera <code>false</code>.</div>
1187
1188 </td></tr>
1189
1190
1191
1192 <tr class="alt-color api apilevel-" >
1193 <td class="jd-typecol"><nobr>
1194
1195
1196
1197
1198
1199 void</nobr>
1200 </td>
1201 <td class="jd-linkcol" width="100%"><nobr>
Dirk Dougherty4af1bf82013-05-09 15:04:08 -07001202 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#setIcon(com.google.android.gms.maps.model.BitmapDescriptor)">setIcon</a></span>(<a href="/reference/com/google/android/gms/maps/model/BitmapDescriptor.html">BitmapDescriptor</a> icon)</nobr>
1203
1204 <div class="jd-descrdiv">Sets the icon for the marker.</div>
1205
1206 </td></tr>
1207
1208
1209
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001210 <tr class=" api apilevel-" >
1211 <td class="jd-typecol"><nobr>
1212
1213
1214
1215
1216
1217 void</nobr>
1218 </td>
1219 <td class="jd-linkcol" width="100%"><nobr>
1220 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#setInfoWindowAnchor(float, float)">setInfoWindowAnchor</a></span>(float anchorU, float anchorV)</nobr>
1221
1222 <div class="jd-descrdiv">Specifies the point in the marker image at which to anchor the info window when it is
1223 displayed.</div>
1224
1225 </td></tr>
1226
1227
1228
Robert Ly3c4b4f72012-11-30 04:02:04 -08001229 <tr class="alt-color api apilevel-" >
1230 <td class="jd-typecol"><nobr>
1231
1232
1233
1234
1235
1236 void</nobr>
1237 </td>
1238 <td class="jd-linkcol" width="100%"><nobr>
1239 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#setPosition(com.google.android.gms.maps.model.LatLng)">setPosition</a></span>(<a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a> latlng)</nobr>
1240
1241 <div class="jd-descrdiv">Sets the position of the marker.</div>
1242
1243 </td></tr>
1244
1245
1246
1247 <tr class=" api apilevel-" >
1248 <td class="jd-typecol"><nobr>
1249
1250
1251
1252
1253
1254 void</nobr>
1255 </td>
1256 <td class="jd-linkcol" width="100%"><nobr>
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001257 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#setRotation(float)">setRotation</a></span>(float rotation)</nobr>
Robert Ly3c4b4f72012-11-30 04:02:04 -08001258
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001259 <div class="jd-descrdiv">Sets the rotation of the marker in degrees clockwise about the marker's anchor point.</div>
Robert Ly3c4b4f72012-11-30 04:02:04 -08001260
1261 </td></tr>
1262
1263
1264
1265 <tr class="alt-color api apilevel-" >
1266 <td class="jd-typecol"><nobr>
1267
1268
1269
1270
1271
1272 void</nobr>
1273 </td>
1274 <td class="jd-linkcol" width="100%"><nobr>
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001275 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#setSnippet(java.lang.String)">setSnippet</a></span>(String snippet)</nobr>
1276
1277 <div class="jd-descrdiv">Sets the snippet of the marker.</div>
1278
1279 </td></tr>
1280
1281
1282
1283 <tr class=" api apilevel-" >
1284 <td class="jd-typecol"><nobr>
1285
1286
1287
1288
1289
1290 void</nobr>
1291 </td>
1292 <td class="jd-linkcol" width="100%"><nobr>
1293 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#setTitle(java.lang.String)">setTitle</a></span>(String title)</nobr>
Robert Ly3c4b4f72012-11-30 04:02:04 -08001294
1295 <div class="jd-descrdiv">Sets the title of the marker.</div>
1296
1297 </td></tr>
1298
1299
1300
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001301 <tr class="alt-color api apilevel-" >
Robert Ly3c4b4f72012-11-30 04:02:04 -08001302 <td class="jd-typecol"><nobr>
1303
1304
1305
1306
1307
1308 void</nobr>
1309 </td>
1310 <td class="jd-linkcol" width="100%"><nobr>
1311 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#setVisible(boolean)">setVisible</a></span>(boolean visible)</nobr>
1312
1313 <div class="jd-descrdiv">Sets the visibility of this marker.</div>
1314
1315 </td></tr>
1316
1317
1318
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001319 <tr class=" api apilevel-" >
Robert Ly3c4b4f72012-11-30 04:02:04 -08001320 <td class="jd-typecol"><nobr>
1321
1322
1323
1324
1325
1326 void</nobr>
1327 </td>
1328 <td class="jd-linkcol" width="100%"><nobr>
1329 <span class="sympad"><a href="/reference/com/google/android/gms/maps/model/Marker.html#showInfoWindow()">showInfoWindow</a></span>()</nobr>
1330
1331 <div class="jd-descrdiv">Shows the info window of this marker on the map, if this marker <code><a href="/reference/com/google/android/gms/maps/model/Marker.html#isVisible()">isVisible()</a></code>.</div>
1332
1333 </td></tr>
1334
1335
1336
1337</table>
1338
1339
1340
1341
1342
1343
1344
1345<!-- ========== METHOD SUMMARY =========== -->
1346<table id="inhmethods" class="jd-sumtable"><tr><th>
1347 <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
1348 <div style="clear:left;">Inherited Methods</div></th></tr>
1349
1350
1351<tr class="api apilevel-" >
1352<td colspan="12">
1353 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
1354 ><img id="inherited-methods-java.lang.Object-trigger"
1355 src="/assets/images/triangle-closed.png"
1356 class="jd-expando-trigger-img" /></a>
1357From class
1358
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001359 java.lang.Object
Robert Ly3c4b4f72012-11-30 04:02:04 -08001360
1361<div id="inherited-methods-java.lang.Object">
1362 <div id="inherited-methods-java.lang.Object-list"
1363 class="jd-inheritedlinks">
1364 </div>
1365 <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
1366 <table class="jd-sumtable-expando">
1367
1368
1369
1370
1371 <tr class="alt-color api apilevel-" >
1372 <td class="jd-typecol"><nobr>
1373
1374
1375
1376
1377
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001378 Object</nobr>
Robert Ly3c4b4f72012-11-30 04:02:04 -08001379 </td>
1380 <td class="jd-linkcol" width="100%"><nobr>
1381 <span class="sympad">clone</span>()</nobr>
1382
1383 </td></tr>
1384
1385
1386
1387 <tr class=" api apilevel-" >
1388 <td class="jd-typecol"><nobr>
1389
1390
1391
1392
1393
1394 boolean</nobr>
1395 </td>
1396 <td class="jd-linkcol" width="100%"><nobr>
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001397 <span class="sympad">equals</span>(Object arg0)</nobr>
Robert Ly3c4b4f72012-11-30 04:02:04 -08001398
1399 </td></tr>
1400
1401
1402
1403 <tr class="alt-color api apilevel-" >
1404 <td class="jd-typecol"><nobr>
1405
1406
1407
1408
1409
1410 void</nobr>
1411 </td>
1412 <td class="jd-linkcol" width="100%"><nobr>
1413 <span class="sympad">finalize</span>()</nobr>
1414
1415 </td></tr>
1416
1417
1418
1419 <tr class=" api apilevel-" >
1420 <td class="jd-typecol"><nobr>
1421
1422
1423 final
1424
1425
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001426 Class&lt;?&gt;</nobr>
Robert Ly3c4b4f72012-11-30 04:02:04 -08001427 </td>
1428 <td class="jd-linkcol" width="100%"><nobr>
1429 <span class="sympad">getClass</span>()</nobr>
1430
1431 </td></tr>
1432
1433
1434
1435 <tr class="alt-color api apilevel-" >
1436 <td class="jd-typecol"><nobr>
1437
1438
1439
1440
1441
1442 int</nobr>
1443 </td>
1444 <td class="jd-linkcol" width="100%"><nobr>
1445 <span class="sympad">hashCode</span>()</nobr>
1446
1447 </td></tr>
1448
1449
1450
1451 <tr class=" api apilevel-" >
1452 <td class="jd-typecol"><nobr>
1453
1454
1455 final
1456
1457
1458 void</nobr>
1459 </td>
1460 <td class="jd-linkcol" width="100%"><nobr>
1461 <span class="sympad">notify</span>()</nobr>
1462
1463 </td></tr>
1464
1465
1466
1467 <tr class="alt-color api apilevel-" >
1468 <td class="jd-typecol"><nobr>
1469
1470
1471 final
1472
1473
1474 void</nobr>
1475 </td>
1476 <td class="jd-linkcol" width="100%"><nobr>
1477 <span class="sympad">notifyAll</span>()</nobr>
1478
1479 </td></tr>
1480
1481
1482
1483 <tr class=" api apilevel-" >
1484 <td class="jd-typecol"><nobr>
1485
1486
1487
1488
1489
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001490 String</nobr>
Robert Ly3c4b4f72012-11-30 04:02:04 -08001491 </td>
1492 <td class="jd-linkcol" width="100%"><nobr>
1493 <span class="sympad">toString</span>()</nobr>
1494
1495 </td></tr>
1496
1497
1498
1499 <tr class="alt-color api apilevel-" >
1500 <td class="jd-typecol"><nobr>
1501
1502
1503 final
1504
1505
1506 void</nobr>
1507 </td>
1508 <td class="jd-linkcol" width="100%"><nobr>
1509 <span class="sympad">wait</span>()</nobr>
1510
1511 </td></tr>
1512
1513
1514
1515 <tr class=" api apilevel-" >
1516 <td class="jd-typecol"><nobr>
1517
1518
1519 final
1520
1521
1522 void</nobr>
1523 </td>
1524 <td class="jd-linkcol" width="100%"><nobr>
1525 <span class="sympad">wait</span>(long arg0, int arg1)</nobr>
1526
1527 </td></tr>
1528
1529
1530
1531 <tr class="alt-color api apilevel-" >
1532 <td class="jd-typecol"><nobr>
1533
1534
1535 final
1536
1537
1538 void</nobr>
1539 </td>
1540 <td class="jd-linkcol" width="100%"><nobr>
1541 <span class="sympad">wait</span>(long arg0)</nobr>
1542
1543 </td></tr>
1544
1545
1546</table>
1547 </div>
1548</div>
1549</td></tr>
1550
1551
1552</table>
1553
1554
1555</div><!-- jd-descr (summary) -->
1556
1557<!-- Details -->
1558
1559
1560
1561
1562
1563
1564
1565
1566<!-- XML Attributes -->
1567
1568
1569<!-- Enum Values -->
1570
1571
1572<!-- Constants -->
1573
1574
1575<!-- Fields -->
1576
1577
1578<!-- Public ctors -->
1579
1580
1581
1582<!-- ========= CONSTRUCTOR DETAIL ======== -->
1583<!-- Protected ctors -->
1584
1585
1586
1587<!-- ========= METHOD DETAIL ======== -->
1588<!-- Public methdos -->
1589
1590<h2>Public Methods</h2>
1591
1592
1593
1594<A NAME="equals(java.lang.Object)"></A>
1595
1596<div class="jd-details api apilevel-">
1597 <h4 class="jd-details-title">
1598 <span class="normal">
1599 public
1600
1601
1602
1603
1604 boolean
1605 </span>
1606 <span class="sympad">equals</span>
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001607 <span class="normal">(Object other)</span>
Robert Ly3c4b4f72012-11-30 04:02:04 -08001608 </h4>
1609 <div class="api-level">
1610 <div></div>
1611
1612
1613
1614 </div>
1615 <div class="jd-details-descr">
1616
1617 <div class="jd-tagdata jd-tagdescr"><p></p></div>
1618
1619 </div>
1620</div>
1621
1622
Dirk Doughertyeb768482013-10-29 22:25:12 -07001623<A NAME="getAlpha()"></A>
1624
1625<div class="jd-details api apilevel-">
1626 <h4 class="jd-details-title">
1627 <span class="normal">
1628 public
1629
1630
1631
1632
1633 float
1634 </span>
1635 <span class="sympad">getAlpha</span>
1636 <span class="normal">()</span>
1637 </h4>
1638 <div class="api-level">
1639 <div></div>
1640
1641
1642
1643 </div>
1644 <div class="jd-details-descr">
1645
1646 <div class="jd-tagdata jd-tagdescr"><p>Gets the alpha of the marker.</p></div>
1647 <div class="jd-tagdata">
1648 <h5 class="jd-tagtitle">Returns</h5>
1649 <ul class="nolist"><li>the alpha of the marker in the range [0, 1].
1650</li></ul>
1651 </div>
1652
1653 </div>
1654</div>
1655
1656
Robert Ly3c4b4f72012-11-30 04:02:04 -08001657<A NAME="getId()"></A>
1658
1659<div class="jd-details api apilevel-">
1660 <h4 class="jd-details-title">
1661 <span class="normal">
1662 public
1663
1664
1665
1666
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001667 String
Robert Ly3c4b4f72012-11-30 04:02:04 -08001668 </span>
1669 <span class="sympad">getId</span>
1670 <span class="normal">()</span>
1671 </h4>
1672 <div class="api-level">
1673 <div></div>
1674
1675
1676
1677 </div>
1678 <div class="jd-details-descr">
1679
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001680 <div class="jd-tagdata jd-tagdescr"><p>Gets this marker's id. The id will be unique amongst all Markers on a map.</p></div>
Robert Ly3c4b4f72012-11-30 04:02:04 -08001681 <div class="jd-tagdata">
1682 <h5 class="jd-tagtitle">Returns</h5>
1683 <ul class="nolist"><li>this marker's id.
1684</li></ul>
1685 </div>
1686
1687 </div>
1688</div>
1689
1690
1691<A NAME="getPosition()"></A>
1692
1693<div class="jd-details api apilevel-">
1694 <h4 class="jd-details-title">
1695 <span class="normal">
1696 public
1697
1698
1699
1700
1701 <a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a>
1702 </span>
1703 <span class="sympad">getPosition</span>
1704 <span class="normal">()</span>
1705 </h4>
1706 <div class="api-level">
1707 <div></div>
1708
1709
1710
1711 </div>
1712 <div class="jd-details-descr">
1713
1714 <div class="jd-tagdata jd-tagdescr"><p>Returns the position of the marker.</p></div>
1715 <div class="jd-tagdata">
1716 <h5 class="jd-tagtitle">Returns</h5>
1717 <ul class="nolist"><li>A <code><a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></code> object specifying the marker's current position.
1718</li></ul>
1719 </div>
1720
1721 </div>
1722</div>
1723
1724
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001725<A NAME="getRotation()"></A>
1726
1727<div class="jd-details api apilevel-">
1728 <h4 class="jd-details-title">
1729 <span class="normal">
1730 public
1731
1732
1733
1734
1735 float
1736 </span>
1737 <span class="sympad">getRotation</span>
1738 <span class="normal">()</span>
1739 </h4>
1740 <div class="api-level">
1741 <div></div>
1742
1743
1744
1745 </div>
1746 <div class="jd-details-descr">
1747
1748 <div class="jd-tagdata jd-tagdescr"><p>Gets the rotation of the marker.</p></div>
1749 <div class="jd-tagdata">
1750 <h5 class="jd-tagtitle">Returns</h5>
1751 <ul class="nolist"><li>the rotation of the marker in degrees clockwise from the default position.
1752</li></ul>
1753 </div>
1754
1755 </div>
1756</div>
1757
1758
Robert Ly3c4b4f72012-11-30 04:02:04 -08001759<A NAME="getSnippet()"></A>
1760
1761<div class="jd-details api apilevel-">
1762 <h4 class="jd-details-title">
1763 <span class="normal">
1764 public
1765
1766
1767
1768
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001769 String
Robert Ly3c4b4f72012-11-30 04:02:04 -08001770 </span>
1771 <span class="sympad">getSnippet</span>
1772 <span class="normal">()</span>
1773 </h4>
1774 <div class="api-level">
1775 <div></div>
1776
1777
1778
1779 </div>
1780 <div class="jd-details-descr">
1781
1782 <div class="jd-tagdata jd-tagdescr"><p>Gets the snippet of the marker.</p></div>
1783 <div class="jd-tagdata">
1784 <h5 class="jd-tagtitle">Returns</h5>
1785 <ul class="nolist"><li>A string containing the marker's snippet.
1786</li></ul>
1787 </div>
1788
1789 </div>
1790</div>
1791
1792
1793<A NAME="getTitle()"></A>
1794
1795<div class="jd-details api apilevel-">
1796 <h4 class="jd-details-title">
1797 <span class="normal">
1798 public
1799
1800
1801
1802
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001803 String
Robert Ly3c4b4f72012-11-30 04:02:04 -08001804 </span>
1805 <span class="sympad">getTitle</span>
1806 <span class="normal">()</span>
1807 </h4>
1808 <div class="api-level">
1809 <div></div>
1810
1811
1812
1813 </div>
1814 <div class="jd-details-descr">
1815
1816 <div class="jd-tagdata jd-tagdescr"><p>Gets the title of the marker.</p></div>
1817 <div class="jd-tagdata">
1818 <h5 class="jd-tagtitle">Returns</h5>
1819 <ul class="nolist"><li>A string containing the marker's title.
1820</li></ul>
1821 </div>
1822
1823 </div>
1824</div>
1825
1826
1827<A NAME="hashCode()"></A>
1828
1829<div class="jd-details api apilevel-">
1830 <h4 class="jd-details-title">
1831 <span class="normal">
1832 public
1833
1834
1835
1836
1837 int
1838 </span>
1839 <span class="sympad">hashCode</span>
1840 <span class="normal">()</span>
1841 </h4>
1842 <div class="api-level">
1843 <div></div>
1844
1845
1846
1847 </div>
1848 <div class="jd-details-descr">
1849
1850 <div class="jd-tagdata jd-tagdescr"><p></p></div>
1851
1852 </div>
1853</div>
1854
1855
1856<A NAME="hideInfoWindow()"></A>
1857
1858<div class="jd-details api apilevel-">
1859 <h4 class="jd-details-title">
1860 <span class="normal">
1861 public
1862
1863
1864
1865
1866 void
1867 </span>
1868 <span class="sympad">hideInfoWindow</span>
1869 <span class="normal">()</span>
1870 </h4>
1871 <div class="api-level">
1872 <div></div>
1873
1874
1875
1876 </div>
1877 <div class="jd-details-descr">
1878
1879 <div class="jd-tagdata jd-tagdescr"><p>Hides the info window if it is shown from this marker.
1880 <p>
1881 This method has no effect if this marker is not visible.
1882</p></div>
1883
1884 </div>
1885</div>
1886
1887
1888<A NAME="isDraggable()"></A>
1889
1890<div class="jd-details api apilevel-">
1891 <h4 class="jd-details-title">
1892 <span class="normal">
1893 public
1894
1895
1896
1897
1898 boolean
1899 </span>
1900 <span class="sympad">isDraggable</span>
1901 <span class="normal">()</span>
1902 </h4>
1903 <div class="api-level">
1904 <div></div>
1905
1906
1907
1908 </div>
1909 <div class="jd-details-descr">
1910
1911 <div class="jd-tagdata jd-tagdescr"><p>Gets the draggability of the marker. When a marker is draggable, it can be moved by the user
1912 by long pressing on the marker.</p></div>
1913 <div class="jd-tagdata">
1914 <h5 class="jd-tagtitle">Returns</h5>
1915 <ul class="nolist"><li><code>true</code> if the marker is draggable; otherwise, returns <code>false</code>.
1916</li></ul>
1917 </div>
1918
1919 </div>
1920</div>
1921
1922
Dirk Dougherty78ec7322013-09-16 10:37:40 -07001923<A NAME="isFlat()"></A>
1924
1925<div class="jd-details api apilevel-">
1926 <h4 class="jd-details-title">
1927 <span class="normal">
1928 public
1929
1930
1931
1932
1933 boolean
1934 </span>
1935 <span class="sympad">isFlat</span>
1936 <span class="normal">()</span>
1937 </h4>
1938 <div class="api-level">
1939 <div></div>
1940
1941
1942
1943 </div>
1944 <div class="jd-details-descr">
1945
1946 <div class="jd-tagdata jd-tagdescr"><p>Gets the flat setting of the Marker.</p></div>
1947 <div class="jd-tagdata">
1948 <h5 class="jd-tagtitle">Returns</h5>
1949 <ul class="nolist"><li><code>true</code> if the marker is flat against the map; <code>false</code> if the marker
1950 should face the camera.
1951</li></ul>
1952 </div>
1953
1954 </div>
1955</div>
1956
1957
Robert Ly3c4b4f72012-11-30 04:02:04 -08001958<A NAME="isInfoWindowShown()"></A>
1959
1960<div class="jd-details api apilevel-">
1961 <h4 class="jd-details-title">
1962 <span class="normal">
1963 public
1964
1965
1966
1967
1968 boolean
1969 </span>
1970 <span class="sympad">isInfoWindowShown</span>
1971 <span class="normal">()</span>
1972 </h4>
1973 <div class="api-level">
1974 <div></div>
1975
1976
1977
1978 </div>
1979 <div class="jd-details-descr">
1980
1981 <div class="jd-tagdata jd-tagdescr"><p>Returns whether the info window is currently shown above this marker. This does not consider
1982 whether or not the info window is actually visible on screen.
1983</p></div>
1984
1985 </div>
1986</div>
1987
1988
1989<A NAME="isVisible()"></A>
1990
1991<div class="jd-details api apilevel-">
1992 <h4 class="jd-details-title">
1993 <span class="normal">
1994 public
1995
1996
1997
1998
1999 boolean
2000 </span>
2001 <span class="sympad">isVisible</span>
2002 <span class="normal">()</span>
2003 </h4>
2004 <div class="api-level">
2005 <div></div>
2006
2007
2008
2009 </div>
2010 <div class="jd-details-descr">
2011
2012 <div class="jd-tagdata jd-tagdescr"><p></p></div>
2013
2014 </div>
2015</div>
2016
2017
2018<A NAME="remove()"></A>
2019
2020<div class="jd-details api apilevel-">
2021 <h4 class="jd-details-title">
2022 <span class="normal">
2023 public
2024
2025
2026
2027
2028 void
2029 </span>
2030 <span class="sympad">remove</span>
2031 <span class="normal">()</span>
2032 </h4>
2033 <div class="api-level">
2034 <div></div>
2035
2036
2037
2038 </div>
2039 <div class="jd-details-descr">
2040
2041 <div class="jd-tagdata jd-tagdescr"><p>Removes this marker from the map. After a marker has been removed, the behavior of all its
2042 methods is undefined.
2043</p></div>
2044
2045 </div>
2046</div>
2047
2048
Dirk Doughertyeb768482013-10-29 22:25:12 -07002049<A NAME="setAlpha(float)"></A>
2050
2051<div class="jd-details api apilevel-">
2052 <h4 class="jd-details-title">
2053 <span class="normal">
2054 public
2055
2056
2057
2058
2059 void
2060 </span>
2061 <span class="sympad">setAlpha</span>
2062 <span class="normal">(float alpha)</span>
2063 </h4>
2064 <div class="api-level">
2065 <div></div>
2066
2067
2068
2069 </div>
2070 <div class="jd-details-descr">
2071
2072 <div class="jd-tagdata jd-tagdescr"><p>Sets the alpha (opacity) of the marker. This is a value from 0 to 1, where 0 means the marker
2073 is completely transparent and 1 means the marker is completely opaque.
2074</p></div>
2075
2076 </div>
2077</div>
2078
2079
Dirk Dougherty4af1bf82013-05-09 15:04:08 -07002080<A NAME="setAnchor(float, float)"></A>
2081
2082<div class="jd-details api apilevel-">
2083 <h4 class="jd-details-title">
2084 <span class="normal">
2085 public
2086
2087
2088
2089
2090 void
2091 </span>
2092 <span class="sympad">setAnchor</span>
2093 <span class="normal">(float anchorU, float anchorV)</span>
2094 </h4>
2095 <div class="api-level">
2096 <div></div>
2097
2098
2099
2100 </div>
2101 <div class="jd-details-descr">
2102
2103 <div class="jd-tagdata jd-tagdescr"><p>Sets the anchor point for the marker.
2104 <p>
2105 The anchor specifies the point in the icon image that is anchored to the marker's
2106 position on the Earth's surface.
2107 <p>
2108 The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0], where (0,
2109 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner. The
2110 anchoring point in a <em>W</em> x <em>H</em> image is the nearest discrete grid point in
2111 a <em>(W + 1) </em> x <em>(H + 1)</em> grid, obtained by scaling the then rounding. For
2112 example, in a 4 x 2 image, the anchor point (0.7, 0.6) resolves to the grid point at (3,
2113 1).
2114 <pre>
2115 *-----+-----+-----+-----*
2116 | | | | |
2117 | | | | |
2118 +-----+-----+-----+-----+
2119 | | | X | | (U, V) = (0.7, 0.6)
2120 | | | | |
2121 *-----+-----+-----+-----*
2122
2123 *-----+-----+-----+-----*
2124 | | | | |
2125 | | | | |
2126 +-----+-----+-----X-----+ (X, Y) = (3, 1)
2127 | | | | |
2128 | | | | |
2129 *-----+-----+-----+-----*
2130 </pre></p></div>
2131 <div class="jd-tagdata">
2132 <h5 class="jd-tagtitle">Parameters</h5>
2133 <table class="jd-tagtable">
2134 <tr>
2135 <th>anchorU</td>
2136 <td>u-coordinate of the anchor, as a ratio of the image width
2137 (in the range [0, 1])</td>
2138 </tr>
2139 <tr>
2140 <th>anchorV</td>
2141 <td>v-coordinate of the anchor, as a ratio of the image height
2142 (in the range [0, 1])
2143</td>
2144 </tr>
2145 </table>
2146 </div>
2147
2148 </div>
2149</div>
2150
2151
Robert Ly3c4b4f72012-11-30 04:02:04 -08002152<A NAME="setDraggable(boolean)"></A>
2153
2154<div class="jd-details api apilevel-">
2155 <h4 class="jd-details-title">
2156 <span class="normal">
2157 public
2158
2159
2160
2161
2162 void
2163 </span>
2164 <span class="sympad">setDraggable</span>
2165 <span class="normal">(boolean draggable)</span>
2166 </h4>
2167 <div class="api-level">
2168 <div></div>
2169
2170
2171
2172 </div>
2173 <div class="jd-details-descr">
2174
2175 <div class="jd-tagdata jd-tagdescr"><p>Sets the draggability of the marker. When a marker is draggable, it can be moved by the user
2176 by long pressing on the marker.
2177</p></div>
2178
2179 </div>
2180</div>
2181
2182
Dirk Dougherty78ec7322013-09-16 10:37:40 -07002183<A NAME="setFlat(boolean)"></A>
2184
2185<div class="jd-details api apilevel-">
2186 <h4 class="jd-details-title">
2187 <span class="normal">
2188 public
2189
2190
2191
2192
2193 void
2194 </span>
2195 <span class="sympad">setFlat</span>
2196 <span class="normal">(boolean flat)</span>
2197 </h4>
2198 <div class="api-level">
2199 <div></div>
2200
2201
2202
2203 </div>
2204 <div class="jd-details-descr">
2205
2206 <div class="jd-tagdata jd-tagdescr"><p>Sets whether this marker should be flat against the map <code>true</code> or a billboard facing
2207 the camera <code>false</code>.
2208</p></div>
2209
2210 </div>
2211</div>
2212
2213
Dirk Dougherty4af1bf82013-05-09 15:04:08 -07002214<A NAME="setIcon(com.google.android.gms.maps.model.BitmapDescriptor)"></A>
2215
2216<div class="jd-details api apilevel-">
2217 <h4 class="jd-details-title">
2218 <span class="normal">
2219 public
2220
2221
2222
2223
2224 void
2225 </span>
2226 <span class="sympad">setIcon</span>
2227 <span class="normal">(<a href="/reference/com/google/android/gms/maps/model/BitmapDescriptor.html">BitmapDescriptor</a> icon)</span>
2228 </h4>
2229 <div class="api-level">
2230 <div></div>
2231
2232
2233
2234 </div>
2235 <div class="jd-details-descr">
2236
2237 <div class="jd-tagdata jd-tagdescr"><p>Sets the icon for the marker.</p></div>
2238 <div class="jd-tagdata">
2239 <h5 class="jd-tagtitle">Parameters</h5>
2240 <table class="jd-tagtable">
2241 <tr>
2242 <th>icon</td>
2243 <td>if null, the default marker is used.
2244</td>
2245 </tr>
2246 </table>
2247 </div>
2248
2249 </div>
2250</div>
2251
2252
Dirk Dougherty78ec7322013-09-16 10:37:40 -07002253<A NAME="setInfoWindowAnchor(float, float)"></A>
2254
2255<div class="jd-details api apilevel-">
2256 <h4 class="jd-details-title">
2257 <span class="normal">
2258 public
2259
2260
2261
2262
2263 void
2264 </span>
2265 <span class="sympad">setInfoWindowAnchor</span>
2266 <span class="normal">(float anchorU, float anchorV)</span>
2267 </h4>
2268 <div class="api-level">
2269 <div></div>
2270
2271
2272
2273 </div>
2274 <div class="jd-details-descr">
2275
2276 <div class="jd-tagdata jd-tagdescr"><p>Specifies the point in the marker image at which to anchor the info window when it is
2277 displayed. This is specified in the same coordinate system as the anchor. See
2278 <code><a href="/reference/com/google/android/gms/maps/model/Marker.html#setAnchor(float, float)">setAnchor(float, float)</a></code> for more details. The default is the top middle of the
2279 image.</p></div>
2280 <div class="jd-tagdata">
2281 <h5 class="jd-tagtitle">Parameters</h5>
2282 <table class="jd-tagtable">
2283 <tr>
2284 <th>anchorU</td>
2285 <td>u-coordinate of the info window anchor, as a ratio of the image width (in the
2286 range [0, 1])</td>
2287 </tr>
2288 <tr>
2289 <th>anchorV</td>
2290 <td>v-coordinate of the info window anchor, as a ratio of the image height (in the
2291 range [0, 1])
2292</td>
2293 </tr>
2294 </table>
2295 </div>
2296
2297 </div>
2298</div>
2299
2300
Robert Ly3c4b4f72012-11-30 04:02:04 -08002301<A NAME="setPosition(com.google.android.gms.maps.model.LatLng)"></A>
2302
2303<div class="jd-details api apilevel-">
2304 <h4 class="jd-details-title">
2305 <span class="normal">
2306 public
2307
2308
2309
2310
2311 void
2312 </span>
2313 <span class="sympad">setPosition</span>
2314 <span class="normal">(<a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a> latlng)</span>
2315 </h4>
2316 <div class="api-level">
2317 <div></div>
2318
2319
2320
2321 </div>
2322 <div class="jd-details-descr">
2323
2324 <div class="jd-tagdata jd-tagdescr"><p>Sets the position of the marker.
2325</p></div>
2326
2327 </div>
2328</div>
2329
2330
Dirk Dougherty78ec7322013-09-16 10:37:40 -07002331<A NAME="setRotation(float)"></A>
2332
2333<div class="jd-details api apilevel-">
2334 <h4 class="jd-details-title">
2335 <span class="normal">
2336 public
2337
2338
2339
2340
2341 void
2342 </span>
2343 <span class="sympad">setRotation</span>
2344 <span class="normal">(float rotation)</span>
2345 </h4>
2346 <div class="api-level">
2347 <div></div>
2348
2349
2350
2351 </div>
2352 <div class="jd-details-descr">
2353
2354 <div class="jd-tagdata jd-tagdescr"><p>Sets the rotation of the marker in degrees clockwise about the marker's anchor point. The
2355 axis of rotation is perpendicular to the marker. A rotation of 0 corresponds to the default
2356 position of the marker.
2357</p></div>
2358
2359 </div>
2360</div>
2361
2362
Robert Ly3c4b4f72012-11-30 04:02:04 -08002363<A NAME="setSnippet(java.lang.String)"></A>
2364
2365<div class="jd-details api apilevel-">
2366 <h4 class="jd-details-title">
2367 <span class="normal">
2368 public
2369
2370
2371
2372
2373 void
2374 </span>
2375 <span class="sympad">setSnippet</span>
Dirk Dougherty78ec7322013-09-16 10:37:40 -07002376 <span class="normal">(String snippet)</span>
Robert Ly3c4b4f72012-11-30 04:02:04 -08002377 </h4>
2378 <div class="api-level">
2379 <div></div>
2380
2381
2382
2383 </div>
2384 <div class="jd-details-descr">
2385
2386 <div class="jd-tagdata jd-tagdescr"><p>Sets the snippet of the marker.
2387</p></div>
2388
2389 </div>
2390</div>
2391
2392
2393<A NAME="setTitle(java.lang.String)"></A>
2394
2395<div class="jd-details api apilevel-">
2396 <h4 class="jd-details-title">
2397 <span class="normal">
2398 public
2399
2400
2401
2402
2403 void
2404 </span>
2405 <span class="sympad">setTitle</span>
Dirk Dougherty78ec7322013-09-16 10:37:40 -07002406 <span class="normal">(String title)</span>
Robert Ly3c4b4f72012-11-30 04:02:04 -08002407 </h4>
2408 <div class="api-level">
2409 <div></div>
2410
2411
2412
2413 </div>
2414 <div class="jd-details-descr">
2415
2416 <div class="jd-tagdata jd-tagdescr"><p>Sets the title of the marker.
2417</p></div>
2418
2419 </div>
2420</div>
2421
2422
2423<A NAME="setVisible(boolean)"></A>
2424
2425<div class="jd-details api apilevel-">
2426 <h4 class="jd-details-title">
2427 <span class="normal">
2428 public
2429
2430
2431
2432
2433 void
2434 </span>
2435 <span class="sympad">setVisible</span>
2436 <span class="normal">(boolean visible)</span>
2437 </h4>
2438 <div class="api-level">
2439 <div></div>
2440
2441
2442
2443 </div>
2444 <div class="jd-details-descr">
2445
2446 <div class="jd-tagdata jd-tagdescr"><p>Sets the visibility of this marker. If set to <code>false</code> and an info window is currently
2447 showing for this marker, this will hide the info window.
2448</p></div>
2449
2450 </div>
2451</div>
2452
2453
2454<A NAME="showInfoWindow()"></A>
2455
2456<div class="jd-details api apilevel-">
2457 <h4 class="jd-details-title">
2458 <span class="normal">
2459 public
2460
2461
2462
2463
2464 void
2465 </span>
2466 <span class="sympad">showInfoWindow</span>
2467 <span class="normal">()</span>
2468 </h4>
2469 <div class="api-level">
2470 <div></div>
2471
2472
2473
2474 </div>
2475 <div class="jd-details-descr">
2476
2477 <div class="jd-tagdata jd-tagdescr"><p>Shows the info window of this marker on the map, if this marker <code><a href="/reference/com/google/android/gms/maps/model/Marker.html#isVisible()">isVisible()</a></code>.</p></div>
2478 <div class="jd-tagdata">
2479 <h5 class="jd-tagtitle">Throws</h5>
2480 <table class="jd-tagtable">
2481 <tr>
Dirk Dougherty78ec7322013-09-16 10:37:40 -07002482 <th>IllegalArgumentException</td>
Robert Ly3c4b4f72012-11-30 04:02:04 -08002483 <td>if <code>marker</code> is not on this map
2484</td>
2485 </tr>
2486 </table>
2487 </div>
2488
2489 </div>
2490</div>
2491
2492
2493
2494
2495
2496<!-- ========= METHOD DETAIL ======== -->
2497
2498
2499
2500<!-- ========= END OF CLASS DATA ========= -->
2501<A NAME="navbar_top"></A>
2502
2503<div id="footer" class="wrap" >
2504
2505
2506 <div id="copyright">
2507
2508 Except as noted, this content is licensed under <a
2509 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
2510 For details and restrictions, see the <a href="/license.html">
2511 Content License</a>.
2512 </div>
Robert Lyf6f5cf42013-02-04 18:24:15 -08002513 <div id="build_info">
2514
2515<script src="/timestamp.js" type="text/javascript"></script>
2516<script>document.write(BUILD_TIMESTAMP)</script>
2517
2518 </div>
Robert Ly3c4b4f72012-11-30 04:02:04 -08002519
2520
2521 <div id="footerlinks">
2522
2523 <p>
2524 <a href="/about/index.html">About Android</a>&nbsp;&nbsp;|&nbsp;
2525 <a href="/legal.html">Legal</a>&nbsp;&nbsp;|&nbsp;
2526 <a href="/support.html">Support</a>
2527 </p>
2528 </div>
2529
2530</div> <!-- end footer -->
2531</div> <!-- jd-content -->
2532
2533</div><!-- end doc-content -->
2534
2535</div> <!-- end body-content -->
2536
2537
2538
2539
Robert Ly3c4b4f72012-11-30 04:02:04 -08002540
2541
2542</body>
2543</html>