# C1.Web.Mvc.Fluent.MapLayerListFactory-3

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Fluent_MapLayerListFactory_3" data-uid="C1.Web.Mvc.Fluent.MapLayerListFactory`3" class="text-break">MapLayerListFactory&lt;T, TOwner, TMapLayer&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Define a factory to create different layers.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">HideObjectMembers</span></div>
    <div class="level2"><a class="xref" href="C1.Web.Mvc.Fluent.BaseBuilder-2.html">BaseBuilder</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="C1.Web.Mvc.MapLayerBase-1.html">MapLayerBase</a>&lt;T&gt;&gt;, <a class="xref" href="C1.Web.Mvc.Fluent.MapLayerListFactory-3.html">MapLayerListFactory</a>&lt;T, TOwner, TMapLayer&gt;&gt;</div>
    <div class="level3"><a class="xref" href="C1.Web.Mvc.Fluent.MapLayerListBaseFactory-3.html">MapLayerListBaseFactory</a>&lt;T, TOwner, TMapLayer&gt;</div>
    <div class="level4"><span class="xref">MapLayerListFactory&lt;T, TOwner, TMapLayer&gt;</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.Fluent.html">C1.Web.Mvc.Fluent</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_Fluent_MapLayerListFactory_3_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class MapLayerListFactory&lt;T, TOwner, TMapLayer&gt; : MapLayerListBaseFactory&lt;T, TOwner, TMapLayer&gt; where TOwner : FlexMap&lt;T&gt; where TMapLayer : MapLayerBase&lt;T&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class MapLayerListFactory(Of T, TOwner As FlexMap(Of T), TMapLayer As MapLayerBase(Of T))
    Inherits MapLayerListBaseFactory(Of T, TOwner, TMapLayer)</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>Model Type</p>
</td>
      </tr>
      <tr>
        <td><span class="parametername">TOwner</span></td>
        <td><p>Chart Map derived from FlexMap</p>
</td>
      </tr>
      <tr>
        <td><span class="parametername">TMapLayer</span></td>
        <td><p>MapLayer derived from MapLayerBase</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_Fluent_MapLayerListFactory_3__ctor_System_Collections_Generic_IList_C1_Web_Mvc_MapLayerBase__0____1_" data-uid="C1.Web.Mvc.Fluent.MapLayerListFactory`3.#ctor(System.Collections.Generic.IList{C1.Web.Mvc.MapLayerBase{`0}},`1)">
          <a class="xref" href="C1.Web.Mvc.Fluent.MapLayerListFactory-3.-ctor.html#C1_Web_Mvc_Fluent_MapLayerListFactory_3__ctor_System_Collections_Generic_IList_C1_Web_Mvc_MapLayerBase__0____1_">MapLayerListFactory(IList&lt;MapLayerBase&lt;T&gt;&gt;, TOwner)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the MapLayerListFactory class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_Fluent_MapLayerListFactory_3_AddGeoGridLayer" data-uid="C1.Web.Mvc.Fluent.MapLayerListFactory`3.AddGeoGridLayer">
          <a class="xref" href="C1.Web.Mvc.Fluent.MapLayerListFactory-3.AddGeoGridLayer.html#C1_Web_Mvc_Fluent_MapLayerListFactory_3_AddGeoGridLayer">AddGeoGridLayer()</a>
        </td>
        <td class="markdown level1 summary"><p>Add a GeoGridLayer to the layers list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_MapLayerListFactory_3_AddGeoMapLayer" data-uid="C1.Web.Mvc.Fluent.MapLayerListFactory`3.AddGeoMapLayer">
          <a class="xref" href="C1.Web.Mvc.Fluent.MapLayerListFactory-3.AddGeoMapLayer.html#C1_Web_Mvc_Fluent_MapLayerListFactory_3_AddGeoMapLayer">AddGeoMapLayer()</a>
        </td>
        <td class="markdown level1 summary"><p>Add a GeoMapLayer to the layers list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_MapLayerListFactory_3_AddScatterMapLayer" data-uid="C1.Web.Mvc.Fluent.MapLayerListFactory`3.AddScatterMapLayer">
          <a class="xref" href="C1.Web.Mvc.Fluent.MapLayerListFactory-3.AddScatterMapLayer.html#C1_Web_Mvc_Fluent_MapLayerListFactory_3_AddScatterMapLayer">AddScatterMapLayer()</a>
        </td>
        <td class="markdown level1 summary"><p>Add a ScatterMapLayer to the layers list.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
