Class MapSource
Base class for all sources that may be used by the MapShapeReader.
Inherited Members
Namespace: Telerik.Maui.Controls.Compatibility.Map
Assembly: Telerik.Maui.Controls.Compatibility.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
|