# GrapeCity.ActiveReports.PageReportModel.MapElementView

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_PageReportModel_MapElementView" data-uid="GrapeCity.ActiveReports.PageReportModel.MapElementView" class="text-break">MapElementView Class
</h1>
  <div class="markdown level0 summary"><p>Defines the center/zoom of the view port based on map spatial element</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"><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapView.html">MapView</a></div>
    <div class="level2"><span class="xref">MapElementView</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.html">GrapeCity.ActiveReports.PageReportModel</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Rdl.dll</h6>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_MapElementView_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class MapElementView : MapView</code></pre>
  </div>
  <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="GrapeCity_ActiveReports_PageReportModel_MapElementView__ctor" data-uid="GrapeCity.ActiveReports.PageReportModel.MapElementView.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapElementView.-ctor.html#GrapeCity_ActiveReports_PageReportModel_MapElementView__ctor">MapElementView()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapElementView.html">MapElementView</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_MapElementView_LayerName" data-uid="GrapeCity.ActiveReports.PageReportModel.MapElementView.LayerName">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapElementView.LayerName.html#GrapeCity_ActiveReports_PageReportModel_MapElementView_LayerName">LayerName</a>
        </td>
        <td class="markdown level1 summary"><p>Layer name containing the spatial element to be centered.
An expression should evaluate to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_MapElementView_MapBindingFieldPairs" data-uid="GrapeCity.ActiveReports.PageReportModel.MapElementView.MapBindingFieldPairs">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapElementView.MapBindingFieldPairs.html#GrapeCity_ActiveReports_PageReportModel_MapElementView_MapBindingFieldPairs">MapBindingFieldPairs</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the set of fields used to identify the element to be centered. If omitted, the view center will be the center of the bounding rectangle of all the map elements of the specified layer.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange.html#GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange__2___0_System_Collections_Generic_IEnumerable___1__">CollectionExtensions.AddRange&lt;TCollection, TItem&gt;(TCollection, IEnumerable&lt;TItem&gt;)</a>
  </div>

</div>
