218 lines
6.5 KiB
HTML
218 lines
6.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>JSDoc: Module: changeResolutionHandler</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">Module: changeResolutionHandler</h1>
|
|
|
|
<section>
|
|
<header></header>
|
|
|
|
<article>
|
|
<div class="container-overview">
|
|
<dl class="details">
|
|
<dt class="tag-source">Source:</dt>
|
|
<dd class="tag-source">
|
|
<ul class="dummy">
|
|
<li>
|
|
<a href="modules_changeResolutionHandler.js.html"
|
|
>modules/changeResolutionHandler.js</a
|
|
>,
|
|
<a href="modules_changeResolutionHandler.js.html#line1"
|
|
>line 1</a
|
|
>
|
|
</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<h3 class="subsection-title">Members</h3>
|
|
|
|
<h4 class="name" id="~CUTOFF">
|
|
<span class="type-signature">(inner, constant) </span>CUTOFF<span
|
|
class="type-signature"
|
|
>
|
|
:number</span
|
|
>
|
|
</h4>
|
|
|
|
<div class="description">Maximum zoom level to show pins</div>
|
|
|
|
<h5>Type:</h5>
|
|
<ul>
|
|
<li>
|
|
<span class="param-type">number</span>
|
|
</li>
|
|
</ul>
|
|
|
|
<dl class="details">
|
|
<dt class="tag-default">Default Value:</dt>
|
|
<dd class="tag-default">
|
|
<ul class="dummy">
|
|
<li>5</li>
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
<dd class="tag-source">
|
|
<ul class="dummy">
|
|
<li>
|
|
<a href="modules_changeResolutionHandler.js.html"
|
|
>modules/changeResolutionHandler.js</a
|
|
>,
|
|
<a href="modules_changeResolutionHandler.js.html#line9"
|
|
>line 9</a
|
|
>
|
|
</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h3 class="subsection-title">Methods</h3>
|
|
|
|
<h4 class="name" id="~changeResolutionHandler">
|
|
<span class="type-signature">(inner) </span
|
|
>changeResolutionHandler<span class="signature"
|
|
>(pinning, map, pinLayer)</span
|
|
><span class="type-signature"></span>
|
|
</h4>
|
|
|
|
<div class="description">
|
|
Adds or removes pin vector layer depending on zoom level
|
|
</div>
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr>
|
|
<td class="name"><code>pinning</code></td>
|
|
|
|
<td class="type">
|
|
<span class="param-type">boolean</span>
|
|
</td>
|
|
|
|
<td class="description last">
|
|
Boolean to toggle between new pin creation and viewing
|
|
existing pins. If this is true, existing pins are not visible.
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="name"><code>map</code></td>
|
|
|
|
<td class="type">
|
|
<span class="param-type">ol.Map</span>
|
|
</td>
|
|
|
|
<td class="description last">OpenLayers map to center</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="name"><code>pinLayer</code></td>
|
|
|
|
<td class="type">
|
|
<span class="param-type">ol.layer.Vector</span>
|
|
</td>
|
|
|
|
<td class="description last">
|
|
OpenLayers vector layer for pins
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<dl class="details">
|
|
<dt class="tag-source">Source:</dt>
|
|
<dd class="tag-source">
|
|
<ul class="dummy">
|
|
<li>
|
|
<a href="modules_changeResolutionHandler.js.html"
|
|
>modules/changeResolutionHandler.js</a
|
|
>,
|
|
<a href="modules_changeResolutionHandler.js.html#line16"
|
|
>line 16</a
|
|
>
|
|
</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</article>
|
|
</section>
|
|
</div>
|
|
|
|
<nav>
|
|
<h2><a href="index.html">Home</a></h2>
|
|
<h3>Modules</h3>
|
|
<ul>
|
|
<li>
|
|
<a href="module-changeResolutionHandler.html"
|
|
>changeResolutionHandler</a
|
|
>
|
|
</li>
|
|
<li><a href="module-fetchPins.html">fetchPins</a></li>
|
|
<li><a href="module-makePin.html">makePin</a></li>
|
|
<li><a href="module-newButton.html">newButton</a></li>
|
|
<li><a href="module-pointerMoveHandler.html">pointerMoveHandler</a></li>
|
|
<li><a href="module-searchBar.html">searchBar</a></li>
|
|
<li><a href="module-searchInputHander.html">searchInputHander</a></li>
|
|
<li><a href="module-toLatLon.html">toLatLon</a></li>
|
|
</ul>
|
|
<h3>Classes</h3>
|
|
<ul>
|
|
<li><a href="module-newButton-ButtonControl.html">ButtonControl</a></li>
|
|
</ul>
|
|
<h3>Global</h3>
|
|
<ul>
|
|
<li><a href="global.html#disposePopover">disposePopover</a></li>
|
|
<li><a href="global.html#map-onclick">map.onclick</a></li>
|
|
<li><a href="global.html#passlocation">window.passLocation</a></li>
|
|
<li><a href="global.html#placepin">window.placePin</a></li>
|
|
<li><a href="global.html#map">map</a></li>
|
|
<li><a href="global.html#pinLayer">pinLayer</a></li>
|
|
<li><a href="global.html#pinSource">pinSource</a></li>
|
|
<li><a href="global.html#popup">popup</a></li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<br class="clear" />
|
|
|
|
<footer>
|
|
Documentation generated by
|
|
<a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Sun Dec 31
|
|
2023 15:19:11 GMT-0800 (Pacific Standard Time)
|
|
</footer>
|
|
|
|
<script>
|
|
prettyPrint();
|
|
</script>
|
|
<script src="scripts/linenumber.js"></script>
|
|
</body>
|
|
</html>
|