skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class MapLayer

Base class for all layers.

Inheritance
System.Object
MapLayer
InformationLayer
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll

Syntax

public abstract class MapLayer : ItemsControl, ILayer

Constructors

MapLayer()

Initializes a new instance of the MapLayer class.

Declaration
protected MapLayer()

Fields

BaseZoomLevelProperty

Identifies the BaseZoomLevel dependency property.

Declaration
public static readonly DependencyProperty BaseZoomLevelProperty
Field Value
System.Windows.DependencyProperty

GeographicalSizeProperty

Identifies the GeographicalSize dependency property.

Declaration
public static readonly DependencyProperty GeographicalSizeProperty
Field Value
System.Windows.DependencyProperty

HotSpotProperty

Identifies the HotSpot dependency property.

Declaration
public static readonly DependencyProperty HotSpotProperty
Field Value
System.Windows.DependencyProperty

LocationProperty

Identifies the Location dependency property.

Declaration
public static readonly DependencyProperty LocationProperty
Field Value
System.Windows.DependencyProperty

MaxScaleProperty

Identifies the MaxScale dependency property.

Declaration
public static readonly DependencyProperty MaxScaleProperty
Field Value
System.Windows.DependencyProperty

MinScaleProperty

Identifies the MinScale dependency property.

Declaration
public static readonly DependencyProperty MinScaleProperty
Field Value
System.Windows.DependencyProperty

ZoomRangeProperty

Identifies the ZoomRange dependency property.

Declaration
public static readonly DependencyProperty ZoomRangeProperty
Field Value
System.Windows.DependencyProperty

Properties

MapControl

Gets or sets map control this layer belongs to.

Declaration
public RadMap MapControl { get; set; }
Property Value
RadMap

Implements
ILayer.MapControl

Methods

ArrangeOverride(Size)

Called to arrange and size the content.

Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
System.Windows.Size finalSize

The computed size that is used to arrange the content.

Returns
System.Windows.Size

The calculated size.

Dispose()

Dispose all resources are used by RadMap control.

Declaration
public virtual void Dispose()

GetBaseZoomLevel(DependencyObject)

Gets value of the attachable BaseZoomLevel property. The BaseZoomLevel affect FrameworkElements (except MapShape based ones.) It specify zoom level where framework element in the information layer have ScaleTransform with scale = 1. If this property is set, then scale transformation will be applied to the framework element when we zoom in/out map control.

Declaration
public static double GetBaseZoomLevel(DependencyObject element)
Parameters
System.Windows.DependencyObject element

Element to get value of the property from.

Returns
System.Double

Value of the BaseZoomLevel property.

GetGeographicalSize(DependencyObject)

Gets value of the attachable GeographicalSize property.

Declaration
public static Location GetGeographicalSize(DependencyObject element)
Parameters
System.Windows.DependencyObject element

Element to get value of the property from.

Returns
Location

Value of the GeographicalSize property.

GetHotSpot(DependencyObject)

Gets value of the attachable HotSpot property.

Declaration
public static HotSpot GetHotSpot(DependencyObject element)
Parameters
System.Windows.DependencyObject element

Element to get value of the property from.

Returns
HotSpot

Value of the HotSpot property.

GetLocation(DependencyObject)

Gets value of the attachable Location property.

Declaration
public static Location GetLocation(DependencyObject element)
Parameters
System.Windows.DependencyObject element

Element to get value of the property from.

Returns
Location

Value of the Location property.

GetMaxScale(DependencyObject)

Gets value of the attachable MaxScale property. The MaxScale affect FrameworkElements (except MapShape based ones.) It specify maximum scale factor which will be applied to the framework element when it has BaseZoomLevel property set and we zoom in map control.

Declaration
public static double GetMaxScale(DependencyObject element)
Parameters
System.Windows.DependencyObject element

Element to get value of the property from.

Returns
System.Double

Value of the MaxScale property.

GetMinScale(DependencyObject)

Gets value of the attachable MinScale property. The MinScale affect FrameworkElements (except MapShape based ones.) It specify maximum scale factor which will be applied to the framework element when it has BaseZoomLevel property set and we zoom out map control.

Declaration
public static double GetMinScale(DependencyObject element)
Parameters
System.Windows.DependencyObject element

Element to get value of the property from.

Returns
System.Double

Value of the MinScale property.

GetZoomRange(DependencyObject)

Gets value of the attachable ZoomRange property.

Declaration
public static ZoomRange GetZoomRange(DependencyObject element)
Parameters
System.Windows.DependencyObject element

Element to get value of the property from.

Returns
ZoomRange

Value of the ZoomRange property.

MultiscaleImage_MotionFinished(Object, RoutedEventArgs)

Handle motion finished event on master multi-scale image. This method is designed for internal use.

Declaration
public virtual void MultiscaleImage_MotionFinished(object sender, RoutedEventArgs e)
Parameters
System.Object sender

Sender.

System.Windows.RoutedEventArgs e

Event args.

Implements
ILayer.MultiscaleImage_MotionFinished(Object, RoutedEventArgs)

MultiscaleImage_ViewportChanged(Object, RoutedEventArgs)

Handle viewport changed event on master multi-scale image. This method is designed for internal use.

Declaration
public virtual void MultiscaleImage_ViewportChanged(object sender, RoutedEventArgs e)
Parameters
System.Object sender

Sender.

System.Windows.RoutedEventArgs e

Event args.

Implements
ILayer.MultiscaleImage_ViewportChanged(Object, RoutedEventArgs)

OnMapChanged(RadMap, RadMap)

Is called when map control is changed for this map layer.

Declaration
protected abstract void OnMapChanged(RadMap oldMap, RadMap newMap)
Parameters
RadMap oldMap

Old map control.

RadMap newMap

New map control.

SetBaseZoomLevel(DependencyObject, Double)

Sets value of the attachable BaseZoomLevel property. The BaseZoomLevel affect FrameworkElements (except MapShape based ones.) It specify zoom level where framework element in the information layer have ScaleTransform with scale = 1. If this property is set, then scale transformation will be applied to the framework element when we zoom in/out map control.

Declaration
public static void SetBaseZoomLevel(DependencyObject element, double value)
Parameters
System.Windows.DependencyObject element

Element to set value of the property to.

System.Double value

Zoom level.

SetClip(Size)

Set up clipping for layer.

Declaration
protected abstract void SetClip(Size size)
Parameters
System.Windows.Size size

SetGeographicalSize(DependencyObject, Location)

Sets value of the attachable GeographicalSize property.

Declaration
public static void SetGeographicalSize(DependencyObject element, Location value)
Parameters
System.Windows.DependencyObject element

Element to set value of the property to.

Location value

Geographical size of the element.

SetHotSpot(DependencyObject, HotSpot)

Sets value of the attachable HotSpot property.

Declaration
public static void SetHotSpot(DependencyObject element, HotSpot value)
Parameters
System.Windows.DependencyObject element

Element to set value of the property to.

HotSpot value

Hotspot.

SetLocation(DependencyObject, Location)

Sets value of the attachable Location property.

Declaration
public static void SetLocation(DependencyObject element, Location value)
Parameters
System.Windows.DependencyObject element

Element to set value of the property to.

Location value

Geographical location of the element.

SetMaxScale(DependencyObject, Double)

Sets value of the attachable MaxScale property. The MaxScale affect FrameworkElements (except MapShape based ones.) It specify maximum scale factor which will be applied to the framework element when it has BaseZoomLevel property set and we zoom in map control.

Declaration
public static void SetMaxScale(DependencyObject element, double value)
Parameters
System.Windows.DependencyObject element

Element to get value of the property from.

System.Double value

Value of the MaxScale property.

SetMinScale(DependencyObject, Double)

Sets value of the attachable MinScale property. The MinScale affect FrameworkElements (except MapShape based ones.) It specify maximum scale factor which will be applied to the framework element when it has BaseZoomLevel property set and we zoom out map control.

Declaration
public static void SetMinScale(DependencyObject element, double value)
Parameters
System.Windows.DependencyObject element

Element to get value of the property from.

System.Double value

Value of the MinScale property.

SetZoomRange(DependencyObject, ZoomRange)

Sets value of the attachable ZoomRange property.

Declaration
public static void SetZoomRange(DependencyObject element, ZoomRange value)
Parameters
System.Windows.DependencyObject element

Element to set value of the property to.

ZoomRange value

Zoom range of the element.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.