skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    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
  • Migrate to .NET MAUI
  • Support and Learning

    • Support and Learning Hub
    • Release History
    • Docs
    • Demos
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket

    Productivity and Design Tools

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

Class MapSource

Base class for all sources that may be used by the MapShapeReader.

Inheritance
System.Object
NotifyPropertyChangedBase
MapSource
FileMapSource
StreamMapSource
Inherited Members
NotifyPropertyChangedBase.OnPropertyChanged(String)
NotifyPropertyChangedBase.UpdateValue<T>(T, T, String)
NotifyPropertyChangedBase.PropertyChanged
Namespace: Telerik.XamarinForms.Map
Assembly: Telerik.XamarinForms.Map.dll

Syntax

public abstract class MapSource : NotifyPropertyChangedBase, INotifyPropertyChanged

Constructors

MapSource()

Declaration
protected MapSource()

Methods

FromFile(String)

Loads the MapSource from a file.

Declaration
public static MapSource FromFile(string file)
Parameters
System.String file

The path of the file.

Returns
MapSource

The MapSource that could be used by the MapShapeReader for loading of the shapes.

FromResource(String, Assembly)

Loads the MapSource from a resource.

Declaration
public static MapSource FromResource(string resource, Assembly sourceAssembly = null)
Parameters
System.String resource

The name of the resource that needs to be loaded.

System.Reflection.Assembly sourceAssembly

The System.Reflection.Assembly inside which the shape file resides.

Returns
MapSource

The MapSource that could be used by the MapShapeReader for loading of the shapes.

FromResource(String, Type)

Loads the MapSource from a resource.

Declaration
public static MapSource FromResource(string resource, Type resolvingType)
Parameters
System.String resource

The name of the resource that needs to be loaded.

System.Type resolvingType

The type of the page inside which the resource resides.

Returns
MapSource

The MapSource that could be used by the MapShapeReader for loading of the shapes.

FromStream(Stream)

Loads the MapSource from a stream.

Declaration
public static MapSource FromStream(Stream stream)
Parameters
System.IO.Stream stream

The stream from which the shape should be read.

Returns
MapSource

The MapSource that could be used by the MapShapeReader for loading of the shapes.

Operators

Implicit(Stream to MapSource)

Converts stream into a MapSource.

Declaration
public static implicit operator MapSource(Stream stream)
Parameters
System.IO.Stream stream

Returns
MapSource

Implicit(String to MapSource)

Converts string into a MapSource.

Declaration
public static implicit operator MapSource(string source)
Parameters
System.String source

Returns
MapSource

Sample Applications
  • Telerik Tagit
  • iOS Demo App
  • Android Demo App
Support Resources
  • iOS Wrappers
  • Android Wrappers
  • Xamarin.Forms SDK Examples
Community
  • Forums
  • Blogs
  • 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.