![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/html/libs/absol-acomp/out/ |
Upload File : |
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: MarkerClustererOptions</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: MarkerClustererOptions</h1> <section> <header> <h2><span class="attribs"><span class="type-signature"></span></span>MarkerClustererOptions<span class="signature">()</span><span class="type-signature"></span></h2> <div class="class-description">This class represents the optional parameter passed to the <a href="MarkerClusterer.html">MarkerClusterer</a> constructor.</div> </header> <article> <div class="container-overview"> <h2>Constructor</h2> <h4 class="name" id="MarkerClustererOptions"><span class="type-signature"></span>new MarkerClustererOptions<span class="signature">()</span><span class="type-signature"></span></h4> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th>Default</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>gridSize</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> 60 </td> <td class="description last">The grid size of a cluster in pixels. The grid is a square.</td> </tr> <tr> <td class="name"><code>maxZoom</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> null </td> <td class="description last">The maximum zoom level at which clustering is enabled or <code>null</code> if clustering is to be enabled at all zoom levels.</td> </tr> <tr> <td class="name"><code>zoomOnClick</code></td> <td class="type"> <span class="param-type">boolean</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> true </td> <td class="description last">Whether to zoom the map when a cluster marker is clicked. You may want to set this to <code>false</code> if you have installed a handler for the <code>click</code> event and it deals with zooming on its own.</td> </tr> <tr> <td class="name"><code>averageCenter</code></td> <td class="type"> <span class="param-type">boolean</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> false </td> <td class="description last">Whether the position of a cluster marker should be the average position of all markers in the cluster. If set to <code>false</code>, the cluster marker is positioned at the location of the first marker added to the cluster.</td> </tr> <tr> <td class="name"><code>minimumClusterSize</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> 2 </td> <td class="description last">The minimum number of markers needed in a cluster before the markers are hidden and a cluster marker appears.</td> </tr> <tr> <td class="name"><code>ignoreHidden</code></td> <td class="type"> <span class="param-type">boolean</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> false </td> <td class="description last">Whether to ignore hidden markers in clusters. You may want to set this to <code>true</code> to ensure that hidden markers are not included in the marker count that appears on a cluster marker (this count is the value of the <code>text</code> property of the result returned by the default <code>calculator</code>). If set to <code>true</code> and you change the visibility of a marker being clustered, be sure to also call <code>MarkerClusterer.repaint()</code>.</td> </tr> <tr> <td class="name"><code>title</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> "" </td> <td class="description last">The tooltip to display when the mouse moves over a cluster marker. (Alternatively, you can use a custom <code>calculator</code> function to specify a different tooltip for each cluster marker.)</td> </tr> <tr> <td class="name"><code>calculator</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> MarkerClusterer.CALCULATOR </td> <td class="description last">The function used to determine the text to be displayed on a cluster marker and the index indicating which style to use for the cluster marker. The input parameters for the function are (1) the array of markers represented by a cluster marker and (2) the number of cluster icon styles. It returns a <a href="ClusterIconInfo.html">ClusterIconInfo</a> object. The default <code>calculator</code> returns a <code>text</code> property which is the number of markers in the cluster and an <code>index</code> property which is one higher than the lowest integer such that <code>10^i</code> exceeds the number of markers in the cluster, or the size of the styles array, whichever is less. The <code>styles</code> array element used has an index of <code>index</code> minus 1. For example, the default <code>calculator</code> returns a <code>text</code> value of <code>"125"</code> and an <code>index</code> of <code>3</code> for a cluster icon representing 125 markers so the element used in the <code>styles</code> array is <code>2</code>. A <code>calculator</code> may also return a <code>title</code> property that contains the text of the tooltip to be used for the cluster marker. If <code>title</code> is not defined, the tooltip is set to the value of the <code>title</code> property for the MarkerClusterer.</td> </tr> <tr> <td class="name"><code>clusterClass</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> "cluster" </td> <td class="description last">The name of the CSS class defining general styles for the cluster markers. Use this class to define CSS styles that are not set up by the code that processes the <code>styles</code> array.</td> </tr> <tr> <td class="name"><code>styles</code></td> <td class="type"> <span class="param-type">Array</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> </td> <td class="description last">An array of <a href="ClusterIconStyle.html">ClusterIconStyle</a> elements defining the styles of the cluster markers to be used. The element to be used to style a given cluster marker is determined by the function defined by the <code>calculator</code> property. The default is an array of <a href="ClusterIconStyle.html">ClusterIconStyle</a> elements whose properties are derived from the values for <code>imagePath</code>, <code>imageExtension</code>, and <code>imageSizes</code>.</td> </tr> <tr> <td class="name"><code>enableRetinaIcons</code></td> <td class="type"> <span class="param-type">boolean</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> false </td> <td class="description last">Whether to allow the use of cluster icons that have sizes that are some multiple (typically double) of their actual display size. Icons such as these look better when viewed on high-resolution monitors such as Apple's Retina displays. Note: if this property is <code>true</code>, sprites cannot be used as cluster icons.</td> </tr> <tr> <td class="name"><code>batchSize</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> MarkerClusterer.BATCH_SIZE </td> <td class="description last">Set this property to the number of markers to be processed in a single batch when using a browser other than Internet Explorer (for Internet Explorer, use the batchSizeIE property instead).</td> </tr> <tr> <td class="name"><code>batchSizeIE</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> MarkerClusterer.BATCH_SIZE_IE </td> <td class="description last">When Internet Explorer is being used, markers are processed in several batches with a small delay inserted between each batch in an attempt to avoid Javascript timeout errors. Set this property to the number of markers to be processed in a single batch; select as high a number as you can without causing a timeout error in the browser. This number might need to be as low as 100 if 15,000 markers are being managed, for example.</td> </tr> <tr> <td class="name"><code>imagePath</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> MarkerClusterer.IMAGE_PATH </td> <td class="description last">The full URL of the root name of the group of image files to use for cluster icons. The complete file name is of the form <code>imagePath</code>n.<code>imageExtension</code> where n is the image file number (1, 2, etc.).</td> </tr> <tr> <td class="name"><code>imageExtension</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> MarkerClusterer.IMAGE_EXTENSION </td> <td class="description last">The extension name for the cluster icon image files (e.g., <code>"png"</code> or <code>"jpg"</code>).</td> </tr> <tr> <td class="name"><code>imageSizes</code></td> <td class="type"> <span class="param-type">Array</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> MarkerClusterer.IMAGE_SIZES </td> <td class="description last">An array of numbers containing the widths of the group of <code>imagePath</code>n.<code>imageExtension</code> image files. (The images are assumed to be square.)</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="absol-acomp.js.html">absol-acomp.js</a>, <a href="absol-acomp.js.html#line39091">line 39091</a> </li></ul></dd> </dl> </div> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="-_anonymous_-__webpack_modules__.13886-OMTBaseType.html">OMTBaseType</a></li><li><a href="-_anonymous_-__webpack_modules__.16700-ResizeSystem.html">ResizeSystem</a></li><li><a href="-_anonymous_-__webpack_modules__.21769-CalendarInput.html">CalendarInput</a></li><li><a href="-_anonymous_-__webpack_modules__.22483-FlexiconButton.html">FlexiconButton</a></li><li><a href="-_anonymous_-__webpack_modules__.25590-ContextCaptor.html">ContextCaptor</a></li><li><a href="-_anonymous_-__webpack_modules__.27268-TTHeadRow.html">TTHeadRow</a></li><li><a href="-_anonymous_-__webpack_modules__.27386-ChromeCalendar.html">ChromeCalendar</a></li><li><a href="-_anonymous_-__webpack_modules__.27718-DropPanelStack.html">DropPanelStack</a></li><li><a href="-_anonymous_-__webpack_modules__.39421-DateInput.html">DateInput</a></li><li><a href="-_anonymous_-__webpack_modules__.43766-DropPanel.html">DropPanel</a></li><li><a href="-_anonymous_-__webpack_modules__.57401-CircleSectionLabel.html">CircleSectionLabel</a></li><li><a href="-_anonymous_-__webpack_modules__.58982_STATE_TO_STRING.html">STATE_TO_STRING</a></li><li><a href="-_anonymous_-__webpack_modules__.70402-SearchTextInput.html">SearchTextInput</a></li><li><a href="-_anonymous_-__webpack_modules__.86841-DateInput2.html">DateInput2</a></li><li><a href="-_anonymous_-__webpack_modules__.87114-Cluster.html">Cluster</a></li><li><a href="-_anonymous_-__webpack_modules__.87114-MarkerClusterer.html">MarkerClusterer</a></li><li><a href="-_anonymous_-__webpack_modules__.92759-Rectangle_A.html">A</a></li><li><a href="-_anonymous_-__webpack_modules__.93252-Activity.html">Activity</a></li><li><a href="-_anonymous_-__webpack_modules__.93252-Application.html">Application</a></li><li><a href="-_anonymous_-__webpack_modules__.94589-Time24Input.html">Time24Input</a></li><li><a href="ClusterIconInfo.html">ClusterIconInfo</a></li><li><a href="ClusterIconStyle.html">ClusterIconStyle</a></li><li><a href="MarkerClustererOptions.html">MarkerClustererOptions</a></li></ul><h3>Events</h3><ul><li><a href="MarkerClusterer.html#event:click">click</a></li><li><a href="MarkerClusterer.html#event:clusteringbegin">clusteringbegin</a></li><li><a href="MarkerClusterer.html#event:clusteringend">clusteringend</a></li><li><a href="MarkerClusterer.html#event:mouseout">mouseout</a></li><li><a href="MarkerClusterer.html#event:mouseover">mouseover</a></li></ul><h3><a href="global.html">Global</a></h3> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Wed Jan 04 2023 18:23:09 GMT+0700 (Indochina Time) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>