<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: LayerBaseVector</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: LayerBaseVector</h1> <section> <header> <h2>LayerBaseVector</h2> <div class="class-description">The Vector layer base</div> </header> <article> <div class="container-overview"> <h2>Constructor</h2> <h4 class="name" id="LayerBaseVector"><span class="type-signature">(abstract) </span>new LayerBaseVector<span class="signature">(url, options)</span><span class="type-signature"></span></h4> <div class="description"> The base vector layer </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>url</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">pass an empty string to prevent default load and add from a json source</td> </tr> <tr> <td class="name"><code>options</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">config <h6>Properties</h6> <table class="params"> <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>id</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">layer id</td> </tr> <tr> <td class="name"><code>name</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> Unnamed Layer </td> <td class="description last">layer name</td> </tr> <tr> <td class="name"><code>opacity</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> 1 </td> <td class="description last">opacity</td> </tr> <tr> <td class="name"><code>visible</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">default visible</td> </tr> <tr> <td class="name"><code>minZoom</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> </td> <td class="description last">min zoom level, 0 - 28</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"> </td> <td class="description last">max zoom level, 0 - 28</td> </tr> <tr> <td class="name"><code>params</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> {} </td> <td class="description last">the get parameters to include to retrieve the layer</td> </tr> <tr> <td class="name"><code>zIndex</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> 0 </td> <td class="description last">the z index for the layer</td> </tr> <tr> <td class="name"><code>loadCallback</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> </td> <td class="description last">function to call on load, context this is the layer object</td> </tr> <tr> <td class="name"><code>legendCollapse</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">if the legend item should be initially collapsed</td> </tr> <tr> <td class="name"><code>legendCheckbox</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">if the legend item should have a checkbox for visibility</td> </tr> <tr> <td class="name"><code>legendContent</code></td> <td class="type"> <span class="param-type">boolean</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> </td> <td class="description last">additional content to add to the legend</td> </tr> <tr> <td class="name"><code>autoLoad</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">if the layer should auto load if not visible</td> </tr> <tr> <td class="name"><code>style</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> </td> <td class="description last">the layer style, use openlayers default style if not defined</td> </tr> <tr> <td class="name"><code>onDemand</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">if the layer should be loaded by extent on map move</td> </tr> <tr> <td class="name"><code>onDemandDelay</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> 300 </td> <td class="description last">delay before the map move callback should be called</td> </tr> <tr> <td class="name"><code>mapMoveMakeGetParams</code></td> <td class="type"> <span class="param-type"><a href="global.html#mapMoveMakeGetParams">mapMoveMakeGetParams</a></span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> function(lyr, extent, zoomLevel){} </td> <td class="description last">function to create additional map move params</td> </tr> <tr> <td class="name"><code>mapMoveObj</code></td> <td class="type"> <span class="param-type"><a href="MapMoveCls.html">MapMoveCls</a></span> </td> <td class="attributes"> <optional><br> </td> <td class="default"> mapMove </td> <td class="description last">alternate map move object for use with multi map pages</td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line27">line 27</a> </li></ul></dd> </dl> </div> <h3 class="subsection-title">Extends</h3> <ul> <li><a href="LayerBase.html">LayerBase</a></li> </ul> <h3 class="subsection-title">Members</h3> <h4 class="name" id="_olLayer"><span class="type-signature"></span>_olLayer<span class="type-signature"> :ol.layer.Vector|ol.layer.Base</span></h4> <h5>Type:</h5> <ul> <li> <span class="param-type">ol.layer.Vector</span> | <span class="param-type">ol.layer.Base</span> </li> </ul> <dl class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"><ul class="dummy"><li> <a href="LayerBase.html#_olLayer">LayerBase#_olLayer</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line97">line 97</a> </li></ul></dd> </dl> <h4 class="name" id="autoLoad"><span class="type-signature"></span>autoLoad<span class="type-signature"> :boolean</span></h4> <div class="description"> get if the layer is autoloaded </div> <h5>Type:</h5> <ul> <li> <span class="param-type">boolean</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line185">line 185</a> </li></ul></dd> </dl> <h4 class="name" id="features"><span class="type-signature"></span>features<span class="type-signature"> :Array.<ol.Feature></span></h4> <div class="description"> array of ol features </div> <h5>Type:</h5> <ul> <li> <span class="param-type">Array.<ol.Feature></span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line268">line 268</a> </li></ul></dd> </dl> <h4 class="name" id="legendContent"><span class="type-signature"></span>legendContent<span class="type-signature"> :string</span></h4> <div class="description"> get the legend content </div> <h5>Type:</h5> <ul> <li> <span class="param-type">string</span> </li> </ul> <dl class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"><ul class="dummy"><li> <a href="LayerBase.html#legendContent">LayerBase#legendContent</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line203">line 203</a> </li></ul></dd> </dl> <h4 class="name" id="loaded"><span class="type-signature"></span>loaded<span class="type-signature"> :boolean</span></h4> <div class="description"> Check if the layer is loaded </div> <h5>Type:</h5> <ul> <li> <span class="param-type">boolean</span> </li> </ul> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a href="LayerBase.html#loaded">LayerBase#loaded</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line334">line 334</a> </li></ul></dd> </dl> <h4 class="name" id="mapCrs"><span class="type-signature"></span>mapCrs<span class="type-signature"> :string|*</span></h4> <div class="description"> get the map CRS if it is defined by the map move object </div> <h5>Type:</h5> <ul> <li> <span class="param-type">string</span> | <span class="param-type">*</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line210">line 210</a> </li></ul></dd> </dl> <h4 class="name" id="mapMove"><span class="type-signature"></span>mapMove<span class="type-signature"> :<a href="MapMoveCls.html">MapMoveCls</a>|*</span></h4> <div class="description"> get the map move object </div> <h5>Type:</h5> <ul> <li> <span class="param-type"><a href="MapMoveCls.html">MapMoveCls</a></span> | <span class="param-type">*</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line222">line 222</a> </li></ul></dd> </dl> <h4 class="name" id="mapMoveParams"><span class="type-signature"></span>mapMoveParams<span class="type-signature"> :object</span></h4> <div class="description"> map move params </div> <h5>Type:</h5> <ul> <li> <span class="param-type">object</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line230">line 230</a> </li></ul></dd> </dl> <h4 class="name" id="maxResolution"><span class="type-signature"></span>maxResolution<span class="type-signature"> :number|*</span></h4> <div class="description"> get the maximum resolution </div> <h5>Type:</h5> <ul> <li> <span class="param-type">number</span> | <span class="param-type">*</span> </li> </ul> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a href="LayerBase.html#maxResolution">LayerBase#maxResolution</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line245">line 245</a> </li></ul></dd> </dl> <h4 class="name" id="maxZoom"><span class="type-signature"></span>maxZoom<span class="type-signature"> :number|*</span></h4> <div class="description"> get max zoom </div> <h5>Type:</h5> <ul> <li> <span class="param-type">number</span> | <span class="param-type">*</span> </li> </ul> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a href="LayerBase.html#maxZoom">LayerBase#maxZoom</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line261">line 261</a> </li></ul></dd> </dl> <h4 class="name" id="minResolution"><span class="type-signature"></span>minResolution<span class="type-signature"> :number|*</span></h4> <div class="description"> get the minimum resolution </div> <h5>Type:</h5> <ul> <li> <span class="param-type">number</span> | <span class="param-type">*</span> </li> </ul> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a href="LayerBase.html#minResolution">LayerBase#minResolution</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line237">line 237</a> </li></ul></dd> </dl> <h4 class="name" id="minZoom"><span class="type-signature"></span>minZoom<span class="type-signature"> :number|*</span></h4> <div class="description"> get min zoom </div> <h5>Type:</h5> <ul> <li> <span class="param-type">number</span> | <span class="param-type">*</span> </li> </ul> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a href="LayerBase.html#minZoom">LayerBase#minZoom</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line253">line 253</a> </li></ul></dd> </dl> <h4 class="name" id="name"><span class="type-signature"></span>name<span class="type-signature"> :string</span></h4> <div class="description"> Get the layer name </div> <h5>Type:</h5> <ul> <li> <span class="param-type">string</span> </li> </ul> <dl class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"><ul class="dummy"><li> <a href="LayerBase.html#name">LayerBase#name</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line318">line 318</a> </li></ul></dd> </dl> <h4 class="name" id="olLayer"><span class="type-signature"></span>olLayer<span class="type-signature"></span></h4> <dl class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"><ul class="dummy"><li> <a href="LayerBase.html#olLayer">LayerBase#olLayer</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line276">line 276</a> </li></ul></dd> </dl> <h4 class="name" id="onDemandDelay"><span class="type-signature"></span>onDemandDelay<span class="type-signature"> :number|*</span></h4> <div class="description"> get on demand delay in miliseconds </div> <h5>Type:</h5> <ul> <li> <span class="param-type">number</span> | <span class="param-type">*</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line177">line 177</a> </li></ul></dd> </dl> <h4 class="name" id="opacity"><span class="type-signature"></span>opacity<span class="type-signature"> :number</span></h4> <div class="description"> Get the layer opacity </div> <h5>Type:</h5> <ul> <li> <span class="param-type">number</span> </li> </ul> <dl class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"><ul class="dummy"><li> <a href="LayerBase.html#opacity">LayerBase#opacity</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line299">line 299</a> </li></ul></dd> </dl> <h4 class="name" id="params"><span class="type-signature"></span>params<span class="type-signature"> :object</span></h4> <div class="description"> get the map get params </div> <h5>Type:</h5> <ul> <li> <span class="param-type">object</span> </li> </ul> <dl class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"><ul class="dummy"><li> <a href="LayerBase.html#params">LayerBase#params</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line220">line 220</a> </li></ul></dd> </dl> <h4 class="name" id="source"><span class="type-signature"></span>source<span class="type-signature"> :*</span></h4> <div class="description"> get the layer source </div> <h5>Type:</h5> <ul> <li> <span class="param-type">*</span> </li> </ul> <dl class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"><ul class="dummy"><li> <a href="LayerBase.html#source">LayerBase#source</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line342">line 342</a> </li></ul></dd> </dl> <h4 class="name" id="style"><span class="type-signature"></span>style<span class="type-signature"></span></h4> <div class="description"> set the style </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line201">line 201</a> </li></ul></dd> </dl> <h4 class="name" id="style"><span class="type-signature"></span>style<span class="type-signature"> :ol.Style|<a href="global.html#styleFunc">styleFunc</a></span></h4> <div class="description"> get the style definition </div> <h5>Type:</h5> <ul> <li> <span class="param-type">ol.Style</span> | <span class="param-type"><a href="global.html#styleFunc">styleFunc</a></span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line193">line 193</a> </li></ul></dd> </dl> <h4 class="name" id="url"><span class="type-signature"></span>url<span class="type-signature"> :string</span></h4> <div class="description"> get the url </div> <h5>Type:</h5> <ul> <li> <span class="param-type">string</span> </li> </ul> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a href="LayerBase.html#url">LayerBase#url</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line269">line 269</a> </li></ul></dd> </dl> <h4 class="name" id="visible"><span class="type-signature"></span>visible<span class="type-signature"></span></h4> <div class="description"> Set the layer visibility </div> <dl class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"><ul class="dummy"><li> <a href="LayerBase.html#visible">LayerBase#visible</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line285">line 285</a> </li></ul></dd> </dl> <h4 class="name" id="zIndex"><span class="type-signature"></span>zIndex<span class="type-signature"> :number</span></h4> <div class="description"> get the z index </div> <h5>Type:</h5> <ul> <li> <span class="param-type">number</span> </li> </ul> <dl class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"><ul class="dummy"><li> <a href="LayerBase.html#zIndex">LayerBase#zIndex</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line350">line 350</a> </li></ul></dd> </dl> <h3 class="subsection-title">Methods</h3> <h4 class="name" id="_load"><span class="type-signature">(protected) </span>_load<span class="signature">()</span><span class="type-signature"> → {boolean}</span></h4> <div class="description"> base load function, sets _loaded = true if it is not already </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a href="LayerBase.html#_load">LayerBase#_load</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line99">line 99</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> if already loaded </div> <dl> <dt> Type </dt> <dd> <span class="param-type">boolean</span> </dd> </dl> <h4 class="name" id="addFeatures"><span class="type-signature"></span>addFeatures<span class="signature">(featureCollection)</span><span class="type-signature"></span></h4> <div class="description"> dummy to be overridden </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>featureCollection</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">geojson or esrijson object</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line113">line 113</a> </li></ul></dd> </dl> <h4 class="name" id="addLegendContent"><span class="type-signature"></span>addLegendContent<span class="signature">(additionalContent=<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <div class="description"> add additional content to the legend </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>additionalContent=</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> <optional><br> </td> <td class="description last">additonal content to add</td> </tr> </tbody> </table> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a href="LayerBase.html#addLegendContent">LayerBase#addLegendContent</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line145">line 145</a> </li></ul></dd> </dl> <h4 class="name" id="clear"><span class="type-signature"></span>clear<span class="signature">()</span><span class="type-signature"></span></h4> <div class="description"> clear features in the layer </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line167">line 167</a> </li></ul></dd> </dl> <h4 class="name" id="getLegendDiv"><span class="type-signature"></span>getLegendDiv<span class="signature">()</span><span class="type-signature"> → {string}</span></h4> <div class="description"> Get the legend html, be sure to only add to the DOM once </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a href="LayerBase.html#getLegendDiv">LayerBase#getLegendDiv</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line113">line 113</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> html for layer wrapped in a div </div> <dl> <dt> Type </dt> <dd> <span class="param-type">string</span> </dd> </dl> <h4 class="name" id="mapMoveBefore"><span class="type-signature"></span>mapMoveBefore<span class="signature">(zoom, evtType<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {boolean}</span></h4> <div class="description"> Before call to map move callback, can prevent call by returning false </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>zoom</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="attributes"> </td> <td class="description last">zoom level</td> </tr> <tr> <td class="name"><code>evtType</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> <optional><br> </td> <td class="description last">undefined for initial load, otherwise one of 'change:center', 'change:resolution'</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line123">line 123</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> if the call should proceed </div> <dl> <dt> Type </dt> <dd> <span class="param-type">boolean</span> </dd> </dl> <h4 class="name" id="mapMoveCallback"><span class="type-signature"></span>mapMoveCallback<span class="signature">(d)</span><span class="type-signature"></span></h4> <div class="description"> callback function on map move </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>d</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">the json response</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line158">line 158</a> </li></ul></dd> </dl> <h4 class="name" id="mapMoveMakeGetParams"><span class="type-signature"></span>mapMoveMakeGetParams<span class="signature">(extent, zoomLevel)</span><span class="type-signature"></span></h4> <div class="description"> callback to generate the parameters passed in the get request </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>extent</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">extent object <h6>Properties</h6> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>minX</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last">minX</td> </tr> <tr> <td class="name"><code>minY</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last">minY</td> </tr> <tr> <td class="name"><code>maxX</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last">maxX</td> </tr> <tr> <td class="name"><code>maxY</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last">maxY</td> </tr> </tbody> </table> </td> </tr> <tr> <td class="name"><code>zoomLevel</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last">zoom level</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBaseVector.js.html">layers/LayerBaseVector.js</a>, <a href="layers_LayerBaseVector.js.html#line148">line 148</a> </li></ul></dd> </dl> <h4 class="name" id="refresh"><span class="type-signature"></span>refresh<span class="signature">()</span><span class="type-signature"></span></h4> <div class="description"> trick to refresh the layer </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a href="LayerBase.html#refresh">LayerBase#refresh</a> </li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="layers_LayerBase.js.html">layers/LayerBase.js</a>, <a href="layers_LayerBase.js.html#line189">line 189</a> </li></ul></dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="-_FeatureLayerProperties.html">_FeatureLayerProperties</a></li><li><a href="-_Slider.html">_Slider</a></li><li><a href="CommonSymbol.html">CommonSymbol</a></li><li><a href="DayRange.html">DayRange</a></li><li><a href="ItsLayerCollection.html">ItsLayerCollection</a></li><li><a href="LayerBase.html">LayerBase</a></li><li><a href="LayerBaseVector.html">LayerBaseVector</a></li><li><a href="LayerBaseVectorEsri.html">LayerBaseVectorEsri</a></li><li><a href="LayerBaseVectorGeoJson.html">LayerBaseVectorGeoJson</a></li><li><a href="LayerBaseXyzTile.html">LayerBaseXyzTile</a></li><li><a href="LayerEsriMapServer.html">LayerEsriMapServer</a></li><li><a href="LayerEsriTile.html">LayerEsriTile</a></li><li><a href="LayerGroup.html">LayerGroup</a></li><li><a href="LayerItsInventory.html">LayerItsInventory</a></li><li><a href="LayerLegend.html">LayerLegend</a></li><li><a href="LayerRealEarthTile.html">LayerRealEarthTile</a></li><li><a href="LayerSwipe.html">LayerSwipe</a></li><li><a href="LayerVectorRealEarth.html">LayerVectorRealEarth</a></li><li><a href="MapInteractionBase.html">MapInteractionBase</a></li><li><a href="MapMoveCls.html">MapMoveCls</a></li><li><a href="MapPopupCls.html">MapPopupCls</a></li><li><a href="RealEarthAnimate.html">RealEarthAnimate</a></li><li><a href="RealEarthAnimateTile.html">RealEarthAnimateTile</a></li><li><a href="RealEarthAnimateVector.html">RealEarthAnimateVector</a></li><li><a href="SingleSymbol.html">SingleSymbol</a></li><li><a href="Sliders.html">Sliders</a></li><li><a href="SortedFeatures.html">SortedFeatures</a></li><li><a href="UniqueValueSymbol.html">UniqueValueSymbol</a></li></ul><h3>Global</h3><ul><li><a href="global.html#$">$</a></li><li><a href="global.html#bundleEs2015Multiple">bundleEs2015Multiple</a></li><li><a href="global.html#dateToYyyyMmDdHh000">dateToYyyyMmDdHh000</a></li><li><a href="global.html#dateToYyyyMmDdHhMmSs">dateToYyyyMmDdHhMmSs</a></li><li><a href="global.html#definedAndNotNull">definedAndNotNull</a></li><li><a href="global.html#defineLegend">defineLegend</a></li><li><a href="global.html#defineStyle">defineStyle</a></li><li><a href="global.html#getUrlParams">getUrlParams</a></li><li><a href="global.html#gulp">gulp</a></li><li><a href="global.html#hexAlphaToRgbOrRgba">hexAlphaToRgbOrRgba</a></li><li><a href="global.html#htmlEscape">htmlEscape</a></li><li><a href="global.html#keyValPairs">keyValPairs</a></li><li><a href="global.html#makeBlueGreenRedGradient">makeBlueGreenRedGradient</a></li><li><a href="global.html#makeBlueGreenRedGradientZScore">makeBlueGreenRedGradientZScore</a></li><li><a href="global.html#makeFeatureServiceLegendAndSymbol">makeFeatureServiceLegendAndSymbol</a></li><li><a href="global.html#makeGuid">makeGuid</a></li><li><a href="global.html#makeMapServiceLegend">makeMapServiceLegend</a></li><li><a href="global.html#mapServiceLegendItem">mapServiceLegendItem</a></li><li><a href="global.html#offsetMinutes">offsetMinutes</a></li><li><a href="global.html#overflowScroll">overflowScroll</a></li><li><a href="global.html#processLessFile">processLessFile</a></li><li><a href="global.html#propertiesZoomStyle">propertiesZoomStyle</a></li><li><a href="global.html#provide">provide</a></li><li><a href="global.html#quickMap">quickMap</a></li><li><a href="global.html#quickMapBase">quickMapBase</a></li><li><a href="global.html#quickMapMulti">quickMapMulti</a></li><li><a href="global.html#resolutionToZoom">resolutionToZoom</a></li><li><a href="global.html#responsiveScroll">responsiveScroll</a></li><li><a href="global.html#rgb2hex">rgb2hex</a></li><li><a href="global.html#rgbToRgba">rgbToRgba</a></li><li><a href="global.html#triggerCallback">triggerCallback</a></li><li><a href="global.html#undefinedOrNull">undefinedOrNull</a></li><li><a href="global.html#windowScroll">windowScroll</a></li><li><a href="global.html#zoomToResolution">zoomToResolution</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Thu Jun 23 2016 08:20:56 GMT-0500 (Central Daylight Time) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>