info-window.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: directive: info-window</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">directive: info-window</h1>
  17. <section>
  18. <header>
  19. <h2>
  20. info-window
  21. </h2>
  22. </header>
  23. <article>
  24. <div class="container-overview">
  25. <dt>
  26. <a href="info-window.js.html#line2" class="name-link"><h4 class="name" id="info-window"><span class="type-signature"></span>info-window<span class="signature">(visible, visible-on-marker, &lt;InfoWindowOption>, &lt;InfoWindowEvent>)</span><span class="type-signature"></span></h4></a>
  27. </dt>
  28. <dd>
  29. <div class="description">
  30. <p>Defines infoWindow and provides compile method</p>
  31. <p> Requires: map directive</p>
  32. <p> Restrict To: Element</p>
  33. </div>
  34. <h5>Parameters:</h5>
  35. <table class="params">
  36. <thead>
  37. <tr>
  38. <th>Name</th>
  39. <th>Type</th>
  40. <th class="last">Description</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <tr>
  45. <td class="name"><code>visible</code></td>
  46. <td class="type">
  47. <span class="param-type">Boolean</span>
  48. </td>
  49. <td class="description last"><p>Indicates to show it when map is initialized</p></td>
  50. </tr>
  51. <tr>
  52. <td class="name"><code>visible-on-marker</code></td>
  53. <td class="type">
  54. <span class="param-type">Boolean</span>
  55. </td>
  56. <td class="description last"><p>Indicates to show it on a marker when map is initialized</p></td>
  57. </tr>
  58. <tr>
  59. <td class="name"><code>&lt;InfoWindowOption></code></td>
  60. <td class="type">
  61. <span class="param-type">String</span>
  62. </td>
  63. <td class="description last"><p>Any InfoWindow options,
  64. https://developers.google.com/maps/documentation/javascript/reference?csw=1#InfoWindowOptions</p></td>
  65. </tr>
  66. <tr>
  67. <td class="name"><code>&lt;InfoWindowEvent></code></td>
  68. <td class="type">
  69. <span class="param-type">String</span>
  70. </td>
  71. <td class="description last"><p>Any InfoWindow events, https://developers.google.com/maps/documentation/javascript/reference</p></td>
  72. </tr>
  73. </tbody>
  74. </table>
  75. <dl class="details">
  76. <dt class="tag-source">Source:</dt>
  77. <dd class="tag-source"><ul class="dummy"><li>
  78. <a href="info-window.js.html">directives/info-window.js</a>, <a href="info-window.js.html#line2">line 2</a>
  79. </li></ul></dd>
  80. </dl>
  81. <h5>Requires:</h5>
  82. <ul>
  83. <li>module:Attr2Options</li>
  84. <li>module:$compile</li>
  85. </ul>
  86. <h5>Example</h5>
  87. <pre class="prettyprint"><code>Usage:
  88. &lt;map MAP_ATTRIBUTES>
  89. &lt;info-window id="foo" ANY_OPTIONS ANY_EVENTS">&lt;/info-window>
  90. &lt;/map>
  91. Example:
  92. &lt;map center="41.850033,-87.6500523" zoom="3">
  93. &lt;info-window id="1" position="41.850033,-87.6500523" >
  94. &lt;div ng-non-bindable>
  95. Chicago, IL&lt;br/>
  96. LatLng: {{chicago.lat()}}, {{chicago.lng()}}, &lt;br/>
  97. World Coordinate: {{worldCoordinate.x}}, {{worldCoordinate.y}}, &lt;br/>
  98. Pixel Coordinate: {{pixelCoordinate.x}}, {{pixelCoordinate.y}}, &lt;br/>
  99. Tile Coordinate: {{tileCoordinate.x}}, {{tileCoordinate.y}} at Zoom Level {{map.getZoom()}}
  100. &lt;/div>
  101. &lt;/info-window>
  102. &lt;/map></code></pre>
  103. </dd>
  104. </div>
  105. <h3 class="subsection-title">Requires</h3>
  106. <ul>
  107. <li>module:Attr2Options</li>
  108. <li>module:$compile</li>
  109. </ul>
  110. </article>
  111. </section>
  112. </div>
  113. <nav>
  114. <h2><a href="index.html">Index</a></h2><h3>service</h3><ul><li><a href="Attr2Options.html">Attr2Options</a></li><li><a href="GeoCoder.html">GeoCoder</a></li><li><a href="NavigatorGeolocation.html">NavigatorGeolocation</a></li><li><a href="StreetView.html">StreetView</a></li></ul><h3>directive</h3><ul><li><a href="bicycling-layer.html">bicycling-layer</a></li><li><a href="cloud-layer.html">cloud-layer</a></li><li><a href="custom-control.html">custom-control</a></li><li><a href="drawing-manager.html">drawing-manager</a></li><li><a href="dynamic-maps-engine-layer.html">dynamic-maps-engine-layer</a></li><li><a href="fusion-tables-layer.html">fusion-tables-layer</a></li><li><a href="heatmap-layer.html">heatmap-layer</a></li><li><a href="info-window.html">info-window</a></li><li><a href="kml-layer.html">kml-layer</a></li><li><a href="lazy-load.html">lazy-load</a></li><li><a href="map.html">map</a></li><li><a href="map-data.html">map-data</a></li><li><a href="map-type.html">map-type</a></li><li><a href="MapController.html">MapController</a></li><li><a href="maps-engine-layer.html">maps-engine-layer</a></li><li><a href="marker.html">marker</a></li><li><a href="overlay-map-type.html">overlay-map-type</a></li><li><a href="shape.html">shape</a></li><li><a href="traffic-layer.html">traffic-layer</a></li><li><a href="transit-layer.html">transit-layer</a></li><li><a href="weather-layer.html">weather-layer</a></li></ul>
  115. </nav>
  116. <br clear="both">
  117. <footer>
  118. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
  119. and <a href="https://github.com/allenhwkim/angular-jsdoc">angular-jsdoc</a>
  120. </footer>
  121. <script> prettyPrint(); </script>
  122. <script src="scripts/linenumber.js"> </script>
  123. <script>
  124. var href=window.location.href.match(/\/([^\/]+$)/)[1];
  125. document.querySelector("nav a[href='"+href+"']").scrollIntoView(true);
  126. if (window.location.hash == "")
  127. document.querySelector("body").scrollIntoView(true);
  128. </script>
  129. </body>
  130. </html>